Communication with HW Watchdog

From Aquarium-Control
Revision as of 12:49, 27 April 2025 by Uwe (talk | contribs) (Created page with "Raspberry Pi offers hardware-based [https://www.raspberrypi.com/documentation/pico-sdk/hardware.html#group_hardware_watchdog Watchdog functionality]. The watchdog is triggered when writing a first time to the <code>/dev/watchdog</code>. When the watchdog does not receive a heartbeat signal from the control application for 15 seconds, the watchdog will trigger a reboot of the system. When writing the character "V" to the watchdog file, the watchdog is deactivated. The c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Raspberry Pi offers hardware-based Watchdog functionality.

The watchdog is triggered when writing a first time to the /dev/watchdog. When the watchdog does not receive a heartbeat signal from the control application for 15 seconds, the watchdog will trigger a reboot of the system. When writing the character "V" to the watchdog file, the watchdog is deactivated.

The control application allows the configuration of:

  • activation of watchdog
  • watchdog file name
  • heartbeat string to be sent to device
  • duration between heartbeat signals in milliseconds
  • deactivation string to be sent to device (needs to be "V")

For testing purposes, one can stop the control application from sending a heartbeat signal to the watchdog, inducing a reset of the system: aquarium_client watchdog stop .