Has anyone had any success / offer any guidance on implementing a power-down interrupt on a Zigbee application using JN516x / JENOS and Zigbee Pro stack. There are some broken Google links that imply that perhaps this was a feature in the past.
We need to store some critical real time data in ~ 20 msec after detecting a power down. If we were programming bare metal this would not be an issue, but under JenOS, we cannot find any documentation to support.
Thank You
Hi Jack,
Are you trying to enter in sleep mode? Do you want to turn off your device?
What is the example that you are working on?
Regards,
Mario
No, not trying to enter sleep mode.
The functionality is to store a set of parameters to EEPROM when the device is powered down based on using an interrupt off the supply voltage monitor. The operation must complete in ~20msec.
The issue is not configuring the SVM, the issue is how to setup an interrupt and routine for storing into the EEPROM as such within JenOS (without breaking anything else).
Hi Jack,
I am not sure what is the application note that you are working on.
Please look at the vLowBatIndicationInit() JN-AN-1189 example.
PUBLIC void vCbSystemController(uint32 u32DeviceId, uint32 u32ItemBitmap)
Regards,
Mario