[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 663
  • Last Modified:

Temperature info?

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
raya70
Asked:
raya70
1 Solution
 
VincentLawlorCommented:
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
 
raya70Author Commented:
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
 
VincentLawlorCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
raya70Author Commented:
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
 
VincentLawlorCommented:
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
 
raya70Author Commented:
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
 
raya70Author Commented:
Anyone?
0
 
VincentLawlorCommented:
What are the Automation errors you are getting.

Vin.
0
 
raya70Author Commented:
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
 
VincentLawlorCommented:
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
 
raya70Author Commented:
I got the oportunity to test and run my app on most MS OS'es, but this machine is W98 SE.
0
 
raya70Author Commented:
I saw that I can use the SMbus for getting this info...but does anyone know how?
0
 
DanRollinsCommented:
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
 
Computer101Commented:
Placed in PAQ

Computer101
E-E Moderator
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now