Linux BSP v1.
Linux BSP v1.
Linux BSP v1.
Linux BSP v1.2
2
2
2....0
0
0
0 Development
Development
Development
Development Guide
Guide
Guide
Guide
36
For example, you want the system to restart automatically in 180 seconds, the
command format should look like the following texts.
# wdt_app
# wdt_app
# wdt_app
# wdt_app –
–
–
–t180
t180
t180
t180
After 180 seconds, the machine will reboot by itself.
5.8.3.
Get the watch dog timer
Once you set the watch dog timer, you may observe the value of the watch
dog timer by this order.
# wdt_app
# wdt_app
# wdt_app
# wdt_app ----tg
tg
tg
tg
Its return value will show the number counting down in your watch dog,
which indicates the remaining time before the system restarts.
For instance, in the last step you just set the watch dog timer to 180 seconds,
you will see the value of the watch dog timer decreases. Moreover, to print
the return value, add
”
echo $?
”
to the input command.