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

nRF52832 wake up from sleep mode from internal timer

SDK 17_0_2

Hi!

I can't understand is it any possibility to wake up nRF32 from sleep mode via internal RTC timer?

For example- I set ADV duration 30 sec. After that time nRF32 goes to sleep mode. After some time I need to wake up it without any GPIO interrupts. How can I do it?

  • Hello,

    You will notice that on advertisment timeout that there is BLE_ADV_EVT_IDLE event in on_adv_evt() for most BLE peripheral examples. Typically the chip then go to system OFF state by calling sd_power_system_off(). In your case you must remove sd_power_system_off(), and instead start an app_timer with a 30second timeout, on app_timer timeout you can for instance start advertisement again (or do other action). You should find several examples that show how to define, create, and start app timer.

    Kenneth

  • Thanks. I able to run app timer. But I can't understand what do you mean.

    Yes, after advertising time elapsed, I go to the  sd_power_system_off(); function.

    Do you mean that in the event BLE_ADV_EVT_IDLE instead of go to sd_power_system_off() func, should I run app timer and after it goes off, run advetrising again?

  • Mikhail said:
    Do you mean that in the event BLE_ADV_EVT_IDLE instead of go to sd_power_system_off() func, should I run app timer and after it goes off, run advetrising again?

    For instance yes, or any other action you want to do when the timer goes off.

    Kenneth

Related