问题
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.
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?
If so, how?
来源:https://stackoverflow.com/questions/42539556/reading-motherboard-sensors-with-java-device-i-o