Brownout detection vs custom WDT usage
Posted: Sun Jan 23, 2022 10:32 am
Hi,
I found viewtopic.php?t=7268&p=41350 to answer the question how to detect brownouts, but it opens another one:
If the right way to detect brownouts is to check the reset_cause() to be machine.WDT_RESET, then how can I differentiate brownouts from custom watchdog setups? In my case, I configured the watchdog to listen for pings from a timer function (capturing and uploading data points) . If it fails too often, the watchdog will restart the device. But I can't figure out if there was a brownout this way.
Did I miss something?
I found viewtopic.php?t=7268&p=41350 to answer the question how to detect brownouts, but it opens another one:
If the right way to detect brownouts is to check the reset_cause() to be machine.WDT_RESET, then how can I differentiate brownouts from custom watchdog setups? In my case, I configured the watchdog to listen for pings from a timer function (capturing and uploading data points) . If it fails too often, the watchdog will restart the device. But I can't figure out if there was a brownout this way.
Did I miss something?