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 -
MQTT-Help me understand about the MQTT Gateway.
Development • 2 Mar 2025, 01:44 • dpcons 12 Mar 2025, 23:39 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26