如何获取各个thermal sensor实时温度
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
获取thermal sensor 实时温度温度的方法
[SOLUTION]
1、透过ADB,及SW 接口获取
user层可以通过这个路径获得CPU的温度
cat /sys/class/thermal/thermal_zone*/temp
每个thermal_zone代表的sensor,可以 cat /sys/class/thermal/thermal_zone*/type
其中* 是指的0,1,2,3,4,5........
driver层您可以调用如下sw 接口:
mediatek\kernel\drivers\thermal\mtk_thermal_monitor.c
mtk_thermal_get_temp(ID),其中ID的定义可以通过结构体MTK_THERMAL_SENSOR_ID获取
2、工程模式下
*#*#3646633#*#*
others-thermal-thermal sensors 可以获得各个sensor实时温度
