Hardware watchdog
-
Hello everyone
I want to try to implement hardware watchdog in one of my boards (wall socket insertable nodes). I've received 10pcs of TPS3813K33 chips. I chose this IC as relatively inexpensive solution with large programmable window range. I need to generate heartbeat pulses on dedicated WDI pin. Pulses must be not so frequently but frequently enough to prevent watchdog reset (approximately 1 - 25sec). I use mysensors 2.0 library now but I don't know very well structure of library. May be library has some functionality I can use? So I don't want to invent my bike from scratchNow I want to chose one of three (?) variants:
- Write separete library
- Add functionality to mysensors library
- Use existing functionality.
Thanks for any help!
-
@Koresh : you can find some stuff about wdt, hardware, and 328p at MyHwATMega328 files. mysensorscore files too. There is also an heartbeat function but not done in this way i think.
I'm not sure, i let others answer, if for something like this (a bit specific to an external chip) it wouldn't be better outside mysensors, in a specific lib for the application for instance. or use timers etc...
it depends what you want to do, i'm not sure.
-
@Koresh Intresting option: to generate a full reset if no sign of life for ... time limit. I would implement this without special library/ MySensors functionality. Just use gw.sleep( xx ms) ; and generate a pulse every xx ms in the main loop.
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
MQTT-Help me understand about the MQTT Gateway.
Development • 27 days ago • dpcons 16 days ago -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Home Assistant/MySensors quirks
Development • 12 days ago • OldSurferDude 12 days ago -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26