@peekay123 and @RWB,
OK, I have an idea and am willing to do some development and testing on the watchdog front. Please let me know what may be the most promising approach.
Objective (please let me know if I am missing something here):
- Monitor the Particle device and reset general lockups
- Monitor high value / high risk processes and reset if they don’t complete successfully
You can see how I am doing this in my current code. But there is an issue - my current setup has a set and fixed watchdog interval. I think the watchdog would be more effective if the interval was dynamic. Some examples:
- when I water, I would set the interval to a little longer than the watering period
- when sending a web hook, I would set the interval to just a few seconds
- when interacting with i2c devices, I would set the interval to a few hundred milliseconds
Two approaches:
- Use the current TPL5010 watchdog and an i2c controlled digital rheostat to change the interval as needed.
- Implement the ATTINY approach and communicate over the i2c bus with a multi-master scheme (see here for how I do this) or directly using something like a serial connection.
What do you think?
Chip