4) Run the watchdog test programsystem
a. The second parameter 10 represents the counting time of the watchdog. If
there is no dog feeding within this time, the will restart
b. We can feed the dog by pressing any key on the keyboard (except ESC).
After feeding the dog, the program will print a line of keep alive to indicate
that the dog is successfully fed
root@orangepi:~/wiringOP/examples# ./watchdog 10
open success
options is 33152,identity is sunxi-wdt
put_usr return,if 0,success:0
The old reset time is: 16
return ENOTTY,if -1,success:0
return ENOTTY,if -1,success:0
put_user return,if 0,success:0
put_usr return,if 0,success:0
keep alive
keep alive
keep alive
3.21. Temperature sensor
1) H616 has a total of 4 temperature sensors, the command to check the temperature is
as follows
a. sensor0
:
CPU
root@orangepi:~# cat /sys/class/thermal/thermal_zone0/type
cpu_thermal_zone
root@orangepi:~# cat /sys/class/thermal/thermal_zone0/temp
57734
b. sensor1:GPU
root@orangepi:~# cat /sys/class/thermal/thermal_zone1/type
gpu_thermal_zone
root@orangepi:~# cat /sys/class/thermal/thermal_zone1/temp
57410
c. sensor2:VE
root@orangepi:~# cat /sys/class/thermal/thermal_zone2/type
ve_thermal_zone
root@orangepi:~# cat /sys/class/thermal/thermal_zone2/temp
59273
d. sensor3
:
DDR
root@orangepi:~# cat /sys/class/thermal/thermal_zone3/type
ddr_thermal_zone
root@orangepi:~# cat /sys/class/thermal/thermal_zone3/temp
58949