Advantech RSB-4210 Evaluation Kit User Manual Page 96

  • Download
  • Add to my manuals
  • Print
  • Page
    / 104
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 95
RSB-4210 User Manual 88
There is also a get function for getting the pretimeout:
ioctl(fd, WDIOC_GETPRETIMEOUT, &timeout);
printf("The pretimeout was is %d seconds\n", timeout);
Not all watchdog drivers will support a pretimeout.
Get the number of seconds before reboot:
Some watchdog drivers have the ability to report the remaining time before the sys-
tem will reboot. The WDIOC_GETTIMELEFT is the ioctl that returns the number of
seconds before reboot.
ioctl(fd, WDIOC_GETTIMELEFT, &timeleft);
printf("The timeout was is %d seconds\n", timeleft);
3.11.8.5 Environmental monitoring:
All watchdog drivers are required return more information about the system, some do
temperature, fan and power level monitoring, some can tell you the reason for the
last reboot of the system. The GETSUPPORT ioctl is available to ask what the
device can do:
struct watchdog_info ident;
ioctl(fd, WDIOC_GETSUPPORT, &ident);
the fields returned in the ident struct are:
identity a string identifying the watchdog driver
firmware_version the firmware version of the card if available
options a flags describing what the device supports
WDIOF_OVERHEAT Reset due to CPU overheat
The machine was last rebooted by the watchdog because the thermal limit was
exceeded
WDIOF_FANFAULT Fan failed
A system fan monitored by the watchdog card has failed
WDIOF_EXTERN1 External relay 1
External monitoring relay/source 1 was triggered. Controllers intended for real world
applications include external monitoring pins that will trigger a reset.
WDIOF_EXTERN2 External relay 2
External monitoring relay/source 2 was triggered
Page view 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 102 103 104

Comments to this Manuals

No comments