Restart RevPi with watchdog after disconnection

Show the world your Revolution Pi project!
Post Reply
alexandro
Posts: 1
Joined: 28 May 2021, 16:44
Answers: 0

Restart RevPi with watchdog after disconnection

Post by alexandro »

Hi,
I use RevPi Connect and I want create a project that reboot the RevPi after a disconnect.
I have seen that the watchdog can work separately from the RevPi OS and my goal is to create a program to manage the watchdog. It is possible?
I have seen the page in the manual but it's not very clear. How can I modify the script that currently manages the watchdog?

Thanks for help
User avatar
dirk
KUNBUS
Posts: 1926
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: Restart RevPi with watchdog after disconnection

Post by dirk »

Hi Alexandro, there is a code example under "/home/pi/demo".
You can customize this to your liking. In this script an interruption of the internet connection is tested cyclically as an example.
The watch dog timer will be reset until the internet connection is not possible.
So your task is to adapt this script or to write the image 6 of the variable "RevPiLED" cyclically in your code instead of the script itself.
This writing you omit, as soon as your error condition occurs - That is also already everything.
You can find more information here:
https://revolution.kunbus.com/tutorials ... rect=en_US

Here is a more in-depth tutorial about the available watchdog mechanisms in our Knowledge Base:
https://kunbus-gmbh.atlassian.net/servi ... /651132931
You just have to register with your E-Mail address to access it.
The registration page is currently in German language only so here is a short animation how it works:
Attachments
Video.JSD.Registration GIF.gif
Video.JSD.Registration GIF.gif (755.56 KiB) Viewed 5224 times
Post Reply