Moxa V2403-C3-W-T [52/90] Wdt watch dog timer

Moxa V2403-C3-W-T [52/90] Wdt watch dog timer
V2403 Series Linux Software Programmer’s Guide
4-5
Special Note
1. You need to build the moxalib in advance for DI/DO. The moxalib is included in the folder \example\ on
the CD.
2. Make sure to link the library libmoxalib for DI/DO programming, and include the header file
moxadevice.h. Only one program at a time can use the DI/DO library.
3. Due to hardware limitations, you need to modify MIN_DURATION as 60 for V2403 computers.
Examples
Example files tdio.c and Makefile are located in the folder \example\ on the CD.
WDT (Watch Dog Timer)
Introduction
The WDT works like a watchdog function, and can be enabled or disabled. When the WDT function is enabled
and the application does not acknowledge it, the system will reboot.
Watchdog Usage
Users can set the ack time from a minimum of 1 sec to a maximum of 1 day.The default timer is 60 seconds and
NO WAY OUT is enabled by default; there is no way of disabling the watchdog once it has been started, so if the
watchdog daemon crashes, the system will reboot after the timeout has passed. If the NO WAY OUT is disabled,
the user can stop the timer.
Example of setting the default timer
Edit the /etc/modprobe.d/watchdog.conf file to set the default timer. The following commands set the default
timer to 60 seconds:
moxa@Moxa:~$ vi /etc/modprobe.d/watchdog.conf
options moxa_v2100_wdt timer_margin=60
moxa@Moxa:~$
Enable or disable NO WAY OUT
Edit the /etc/modprobe.d/watchdog.conf file to enable or disable NO WAY OUT.
Enable NO WAY OUT:
moxa@Moxa:~$ vi /etc/modprobe.d/watchdog.conf
options moxa_v2100_wdt nowayout=1
moxa@Moxa:~$
Disable NO WAY OUT:
moxa@Moxa:~$ vi /etc/modprobe.d/watchdog.conf
options moxa_v2100_wdt nowayout=0
moxa@Moxa:~$

Содержание

Похожие устройства

Скачать