Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Temperature info?

Posted on 2001-07-11
14
Medium Priority
?
661 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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
 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

636 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