This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GPIO wakeup and System OFf

I have developed a custom board with a NRF51822AB on which there is no power switch. I want to power up and power down the device with a push button. Power up : The user push the button for 2 seconds to wake up the device. Power down : The device go in System Off where there is no Bluetooth connection for more than 1 minute. I don't find how to go in system Off before starting advertising. I have tried but there is an unknown interruption that wake up the device.

I have read a lot of things about Powerdown examples but I don't find the way to do this.

Need help. thank you

  • On the first push, the device will go to System On. I suggest starting an app_timer with a 2sec timeout to track how long the button is held. If it times out, then start advertising the that app_timers handler function. If the user releases the button early trigger a System Off again

Related