Changes

Jump to: navigation, search

Physical devices mapping (BELK/BXELK)

91 bytes added, 16:38, 10 April 2019
Temperature sensor
the returned value has to be divided by 1000 for a °C temperature
Moreover, the SOC has an internal temperature sensor device which can be read using the followgin following shell script:
<pre>
root@bora:~# cat temp.sh
# Tcpu
TEMP_RAW=`cat $path_dev_soc_adc/sys/devices/soc0/amba/f8007100.adc/iio:device0/in_temp0_raw`TEMP_OFFSET=`cat $path_dev_soc_adc/sys/devices/soc0/amba/f8007100.adc/iio:device0/in_temp0_offset`TEMP_SCALE=`cat $path_dev_soc_adc/sys/devices/soc0/amba/f8007100.adc/iio:device0/in_temp0_scale`
TEMP=`awk "BEGIN {print (($TEMP_RAW+$TEMP_OFFSET)*$TEMP_SCALE)/1000}"`
echo "Cpu Temp: ${TEMP}"
</pre>
8,157
edits

Navigation menu