使用Java Device I/O读取主板传感器 [英] Reading motherboard sensors with Java Device I/O

查看:64
本文介绍了使用Java Device I/O读取主板传感器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OpenJDK具有设备I/O(DIO)库,可用于读取硬件传感器.DIO库中支持的一种总线是I2C.

OpenJDK has the Device I/O (DIO) library, which can be used to read hardware sensors. One supported bus in the DIO library is I2C.

我听说台式机主板传感器位于SMBus的后面,而SMBus基本上是I2C总线的受限版本.我可以使用DIO读取主板上的传感器数据,例如CPU温度吗?

I have heard that desktop motherboard sensors are behind SMBus, basically a more restricted version of the I2C bus. Can I use DIO to read sensor data from my motherboard - for example, the CPU temperature?

如果是,怎么办?

推荐答案

DIO库是Open JDK独有的.它使支持的设备(当前为ARMv6和ARMv7)能够读取I2c.在当前状态下,您必须自己构建,并且为Raspberry Pi编译是唯一受支持的Plattform.

the DIO library is exclusive to the Open JDK. It enables supported devices, currently ARMv6 and ARMv7 to read I2c. At the current state you have to build is yourself and compiling for the Raspberry Pi is the only supported Plattform.

通常,读取主板传感器值不是一件容易的事,这取决于供应商提供正确的信息.不幸的是,供应商没有使用任何类型的标准化协议,并且信息无处不在,支持不同的平台是他们自己的任务.

In general reading motherboard sensor values is not an easy task, it depends on the vendor providing correct information. Unfortunately vendors are not using any kind of standardized protocol and the information's are all over the place and supporting different platforms is a task of its own.

这篇关于使用Java Device I/O读取主板传感器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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