如何获取 PC 的主板温度(以及其他硬件统计数据)? [英] How to get the temperature of motherboard of a PC (and other hardware statistics)?

查看:46
本文介绍了如何获取 PC 的主板温度(以及其他硬件统计数据)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何获取当前主板、处理器或硬盘的温度统计数据吗?
在 GNU/Linux 中,我知道我可以使用 hddtemp 或 sensord 之类的东西来获取信息,然后解析它……但在 Windows 中:我该怎么做?并且,可以使用 C# 或 Java 或任何其他高级编程语言来完成吗?
谢谢!

解决方案

温度和其他监控传感器的问题在于硬件级别没有通用协议,也没有驱动程序允许使用通用 API 检索该信息.

像已经提到的 SpeedFan 和 HWMonitor 之类的软件(来自 CPU-Z 实用程序的制造商)通过精心编目各种传感器和总线控制器,并实现相应的协议,通常使用内核模式驱动程序来访问 SMBus 设备.

要将此功能嵌入到您自己的软件中,您可以自己开发此功能(通过针对您的特定硬件进行定制,并使用来自 www.lm-sensors.org 的 linux 代码作为参考,可能会减少工作量)或购买实现它的商业图书馆.一个由 HWMonitor 使用,可在此处获得.>

祝你好运

does any one know how to get the current motherboard, processor or HD temperature statistics?
In GNU/Linux, I know I could use something like hddtemp or sensord to get the info, and then parse it... but in Windows: How can I do this? And, Can it be done with with C# or Java or any other hight level programming language?
Thanks!

解决方案

The problem with temperature and other monitoring sensors is that there is no common protocol on the hardware level, nor drivers allowing to retrieve that information with common API.

Software like already mentioned SpeedFan and HWMonitor (from the makers of CPU-Z utility) work by painstakingly cataloging the various sensors and bus controllers, and implementing corresponding protocols, usually using kernel-mode driver to access SMBus devices.

To embed this functionality in you own software, you can either develop this functionality yourself (possibly reducing the amount of work by tailoring it to your specific hardware, and using linux code from www.lm-sensors.org as reference) or purchasing commercial library that implements it. One, used by HWMonitor, is available here.

good luck

这篇关于如何获取 PC 的主板温度(以及其他硬件统计数据)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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