Solved

Temperature info?

Posted on 2001-07-11
14
628 Views
Last Modified: 2009-03-18
I would give away a million points for the correct answer on this (if I could, that is).

My problem: I'm writing a temperaturelogg program, but i have dificulties in finding this info on a majority of computers.
Now I use "Microsoft WMI scripting Library 1.1" to check for "Win32_TemperatureProbe" and also "Win32_Fan" and "Win32_HeatPipe".

The problem is that I have tested my program on a wide array of computers (letting over 50 ppl testing it) on diferent types of computers, new and old, hitech and lotech, win95/98/98SE/NT/W2K/ME/XP and the results are bad.

Only one (1) computer managed to report a temperatureprobe (but no degrees!) and other info i wanted (like CPU, mem, gfxboard etc) was only reported by W2K/ME/XP since they have this DLL installed from the start.

So I need another way of detecting any form of temperature in a system, via checking the motherboard, bios or whatever...

How can I do this so it will work on most machines (like software SiSoftSandra always reports the temp, so obviously it can be done)

A working examplecode or a direction to a code that works = you get the points...

Please....
Raya70
0
Comment
Question by:raya70
14 Comments
 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6272621
As far as I'm aware you need a sensor installed on the motherboard for this to work.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/hh/wmisdk/r_32hard_346d.asp

Have you looked at the website for WMI on MSDN ?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/hh/wmisdk/wmistart_5kth.asp

Vin.


0
 

Author Comment

by:raya70
ID: 6272898
Yes, I have several sensors on my system (as most new comupters have)

Yes, everything I have done with WMI was from MS site and one other site I cant remember. And I can get many  things to work, but those not supported generates an Automation error, like the "Win32_TemperatureProbe" in my case..

There must be other techniques of getting temperature info from the computer?
0
 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6272933
This may seem like a silly question but I presume you have installed the drivers on every machine and checked the status ?

What are you developing this for ?

Vin.
0
 

Author Comment

by:raya70
ID: 6273271
Yes, on most w98 and NT machines it wasn't installed, so it didn't work on them, fine, I understood and was expecting this when I tested, but on the W2K, ME and XP it works (but Automation error on some stuff).

 Althoug on  my W98 machine I did have version 1.0 of WMI scripting Library and it did tell me very little about my system, so I installed version 1.1 on it and it managed to report lots more about my system, but still no temperature (and some other stuff also missing) = Automation error!

Any ideas about how to get the temp?

I'm making a software to monitor the temperature on (several) probes in the computer compared to processor activity etc. It would ofcourse be nice if it would work on most windows OS'es but I could manage with only W2K/ME/XP I guess... :-(
0
 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6273299
It probably depends on what sensors are installed by the manufacturers on the individual machines :-(

I worked on sensor software a long time ago. You can buy fairly inexpensive temperature sensors that you can connect to the computer via a serial port. They have a timer that sends back a temperature reading every X millisecs. This is probably not what you want though.

Sorry I couldn't be of more assistance.

V.
0
 

Author Comment

by:raya70
ID: 6276509
Yes, but since many applications can read these values without problems, I guess there must be some common standards for getting them or a place where they are "hidden" (I dont believe that ie SiSift Sandra uses special code for every manufacturer there is)
0
 

Author Comment

by:raya70
ID: 6324021
Anyone?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6325954
What are the Automation errors you are getting.

Vin.
0
 

Author Comment

by:raya70
ID: 6326070
I cant reproduce the errors on the machine I'm sitting on (strange!) but when I run my app it fires upp the sound in windows that indicates that a error popup is present (which its not) and creates processes called "Winoldap"...I get about 7 new processes each time I run my pogram.
0
 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6326109
The 7 new processes are probably ActiveX exe's created by the WMI.

Funny name for a process Winoldap what are you running on NT4,W2K

Vin


 
0
 

Author Comment

by:raya70
ID: 6326130
I got the oportunity to test and run my app on most MS OS'es, but this machine is W98 SE.
0
 

Author Comment

by:raya70
ID: 6377712
I saw that I can use the SMbus for getting this info...but does anyone know how?
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7153043
Hi raya70,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Refund points and save as a 0-pt PAQ.

raya70, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 7179178
Placed in PAQ

Computer101
E-E Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now