Continuing the discussion from Ethernet suddenly stops working:
Hi, How implement watchdog in the arduino? Why in sketch, or not in PLC side?
Continuing the discussion from Ethernet suddenly stops working:
Hi, How implement watchdog in the arduino? Why in sketch, or not in PLC side?
Is it Arduino UNO R3? Why do you want to implement it?
It is a Finder Arduino OPTA .
I have the same problem like author of this post . I use Modbus TCP server in OPTA, after about hour working Ethernet suddenly stops working... It helps to pull out and reinsert the RJ45
I don't know the OPTA, but I could offer a basic watchdog for the Uno R3 if you like.
Watch dog's sound nice but many only reset the processor, great for software recovery but do not solve latch problems in external devices. The best in my opinion is to cycle the power forcing everything to reset.
Good point! I would use an ATtiny85 as an external watchdog for this, which is regularly reset by the Arduino. If that doesn’t happen, it briefly cuts the power to all necessary components via a relay module (by opening the normally closed contact for, say, 5 seconds).
That is about the time I use, 5 seconds on 5 seconds off, if it gets a pat it resets the 5 seconds on. The circuit is AC coupled so the pat has to cycle. I am a bit on the old fashion side so it is a digalog (digital analog mix) design. I learned the hard way the PCF857x parts have a latch up problem when the signals are not clean, they would stall the I2C.