This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to put ble_app_beacon with deep sleep and advertising

Hello everyone,

I need ble_app_beacon 1 second advertising and 5 second deep sleep mode i don't know how to implement that please suggest example code for beacon.

DK: NRF52832 /PCA10040

SDK:15.2

Parents
  • waking up from deep sleep (SystemOFF) would need external input as mentioned here. If your design does not have the convenience of having this external input to wake your chip from a deep sleep, then you need to stick with how ble_app_beacon is designed and

    1. start a timer which starts with advertising with one-second timeout.
    2. When this expires, you stop advertising and start the timer with 5 seconds timeout and sleep (WFE)
    3. chip will wakeup after 5 seconds (if nothing else woke the chip already) and repeat step 1
Reply
  • waking up from deep sleep (SystemOFF) would need external input as mentioned here. If your design does not have the convenience of having this external input to wake your chip from a deep sleep, then you need to stick with how ble_app_beacon is designed and

    1. start a timer which starts with advertising with one-second timeout.
    2. When this expires, you stop advertising and start the timer with 5 seconds timeout and sleep (WFE)
    3. chip will wakeup after 5 seconds (if nothing else woke the chip already) and repeat step 1
Children
No Data
Related