Hi,
Is the watchdog on Linino active by default ? If it is, does this means it will automatically reboot if Linino freezes for any unforeseen reason ?
Thanks in advance!
Hi,
Is the watchdog on Linino active by default ? If it is, does this means it will automatically reboot if Linino freezes for any unforeseen reason ?
Thanks in advance!
Yes.
ls /dev/watchdog -al
crw-r--r-- 1 root root 10, 130 Mar 9 08:50 /dev/watchdog
means hardware driver is loaded
ps |grep watchdog
861 root 1504 S /sbin/watchdog -t 5 /dev/watchdog
2179 root 1496 S grep watchdog
means service is started.
killall -9 watchdog
testing watchdog, if after few second Yun is reboot then watchdog is working.
Thanks sonnyyu,
I was reading that the 32u4 also has a "watchdog" that can be setup.
Do you know if the watchdog on the 32u4 side is reseted at startup (so it does not get caught up in an infinite "booting" loop).
I found this post about it: Watchdog in Arduino Library - or at least support by bootloader - #58 by system - Project Guidance - Arduino Forum
But have not found a definite answer yet...
Thanks again,
sonnyyu:
Yes.ls /dev/watchdog -al
crw-r--r-- 1 root root 10, 130 Mar 9 08:50 /dev/watchdog
means hardware driver is loadedps |grep watchdog
861 root 1504 S /sbin/watchdog -t 5 /dev/watchdog
2179 root 1496 S grep watchdogmeans service is started.killall -9 watchdog
testing watchdog, if after few second Yun is reboot then watchdog is working.
bilica:
...
Do you know if the watchdog on the 32u4 side is reseted at startup (so it does not get caught up in an infinite "booting" loop).
...
No, 32u4 side is not reseted at linono reboot.
You need reset it by yourself.
nano /etc/rc.local
/usr/bin/reset-mcu
wifi-live-or-reset
exit 0
Sorry sonnyyu, I did not expressed myself properly.
I meant the AVR command:
wdt_enable(WDTO_8S);
and
wdt_reset();
I would like to know if, on reboot, the 32u4 will remove the wdt_enable() command (so it prevents from going into an undesirable infinite loop of reboots).
Thanks
sonnyyu:
bilica:
...
Do you know if the watchdog on the 32u4 side is reseted at startup (so it does not get caught up in an infinite "booting" loop).
...No, 32u4 side is not reseted at linono reboot.
You need reset it by yourself.
nano /etc/rc.local/usr/bin/reset-mcu
wifi-live-or-reset
exit 0
You might post it at Using Arduino :: Microcontrollers forum?
Thanks I will try there - although I have already tried Arduino Forum :: Using Arduino :: Project Guidance
[Project Guidance - Arduino Forum
sonnyyu:
You might post it at Using Arduino :: Microcontrollers forum?