如何检测和读取各种PC传感器? [英] How to detect and read various PC sensors?

查看:221
本文介绍了如何检测和读取各种PC传感器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好! :)

我正在编写一个硬件监视实用程序,我必须要读取PC中所有可能的传感器.即:温度,风扇速度,电压等...

经过漫长的搜索,我发现与传感器读取的其他因素(例如CPU/GPU负载,RAM使用率等)不同,没有便利的DLL,您可以将其加载到应用程序中,获取"GetUsageOf..."之类的函数的地址,然后瞧!更不用说Google搜索主要显示各种实用程序,而不是有关如何完成此工作的文章.

由于传感器及其控制器的数量和种类在不同的供应商之间以及在主板与主板之间都存在很大差异,因此没有标准化的方法来获取传感器的数量,种类和读出方法.

因此,如果想要在自己的应用程序中实现这种功能,那么他们会弄脏双手并编写自己的内核驱动程序,该内核驱动程序必须能够扫描各种总线以获取控制器,识别它们,然后才可以进行传感器读数. >
我尝试使用Depends.exe(一个标准的VS工具,可以显示应用程序加载的DLL的静态和动态).我试图找到一个可能在各种硬件实用程序中引入此功能的DLL,但没有成功.似乎程序的EXE本身负责该功能.

现在,如果您能向我展示一种检测和读取传感器的方式,那就太好了,但是如果您能将我指向信息,书籍,文章等的来源,例如地址和公共汽车,我也将不胜感激.这些控制器可以找到.当然,DDK知识是绝对必要的,我已经知道了:).

在此先感谢:)

Hi all! :)

I''m writing a hardware monitoring utility and I got to the point I have to read all the possible sensors in my PC. That is: tempeartures, fan speeds, voltages, etc...

After a very long search I found that unlike other factors like CPU/GPU load, RAM usage etc. for sensors readout there isn''t a convinient DLL you can just load into your application, get the address of a function like "GetUsageOf..." and voila! Not to mention that a google search mostly shows all sorts of utilities instead of articles onto how this job is done.

Since the number and the kind of sensors and their controllers varies greatly from vendor to vendor and from motherboard to motherboard there is no standardized way of getting the number of sensors, their kind and reading them out.

So if one wants this fuctionality in their own app they sould get their hands dirty and write their own kernel driver that has to be able to scan various buses for controllers, identify them and only after that a sensor readout could be possible.

Using Depends.exe (a standard VS tool that can show what DLLs an application loads. Both statically and dynamically) I tried to find a DLL that might incrporate this functionality in various hardware utilities, but without any success. it appears that the EXE of a program itself is responsible for that functionality.

Now, it would be great if you can show me a way of detecting and reading the sensors, but I would also greatly appreciate if you can point me to a source of information, book, article ..., like in which addresses and buses those controllers could be found. Of course DDK knowledge is absolutely needed I already know that :).

Thanks in advance :)

推荐答案

我认为您可能需要了解Windows管理规范 [ ^ ].
I think you probably need to learn about Windows Management Instrumentation[^].


这篇关于如何检测和读取各种PC传感器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆