DESK-XZU-L/Peripherals/Temperature sensor

From DAVE Developer's Wiki
Jump to: navigation, search
History
Issue Date Notes
2026/06/25 DESK-XZU-L 2.x.x release


Peripheral Temperature sensors[edit | edit source]

ONDA and ONDA Plus SOMs have a TMP421AIDCN temperature sensor onboard.

Accessing the peripheral[edit | edit source]

The temperature information can be accessed through the sysfs interface:

read the PCB temperature[edit | edit source]

root@onda:~# cat /sys/class/hwmon/hwmon0/temp1_input

the returned value has to be divided by 1000 for a °C temperature.

read the CPU temperature[edit | edit source]

root@onda:~# cat /sys/class/hwmon/hwmon0/temp2_input

the returned value has to be divided by 1000 for a °C temperature.