I’m attempting to develop a circuit which needs to retain variable information after removing power (which may last up to a week or two). I’m powering my mesh from USB and plan to connect a LiPo back-up. My plan is to detect the power loss and back up the necessary data to EEPROM for the next restart, then go to a deep sleep.
I’ve found posts on how to detect the power loss on the Gen 2 devices (through PCIM), but it does not appear that the mesh devices have this ability. Does anyone know how to do this (preferably software solution only. I’d rather not dedicate a pin and interrupt.)
Also, the notes seem to indicate that sleep is not functioning yet on mesh. Is that accurate? If so, is there a workaround? Thanks, all.