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 -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
PJON and Minicore not working
Development • 8 days ago • Trand 8 days ago -
Home Assistant/MySensors quirks
Development • 12 days ago • OldSurferDude 12 days ago