嵌入式Linux设备读取CPU温度的方法

1. ARM 平台下:
# cat /sys/devices/virtual/thermal/thermal_zone0/temp
62374
# cat /sys/class/thermal/thermal_zone0/temp

64036

x86 平台下:

# cat /proc/acpi/thermal_zone/THRM/temperature


cat得到的数据  手动除1000  就是cpu摄氏温度,例如:

62374/1000=62.374℃


参考:https://blog.csdn.net/lu_embedded/article/details/52465308

猜你喜欢

转载自blog.csdn.net/wxxgoodjob/article/details/79991133