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

Enter in sleep mode and wake up after one hour

Hi all, 

I installed this app on my nrf52832 DK and it works great. I'm totally newbie with Nordic and its hardware so i can't figure out how to adjust this code so the app broadcasts for 3 minutes and then goes to sleep for 1 hour.

I noticed that I need to use the 'sd_app_evt_wait ()' function instead 'sd_power_system_off()' to be able to restart the application with Timer.

But since I am a beginner in this I do not know how to implement it. Is there any example of this situation? Where exactly should I call the 'sd_app_evt_wait ()' function and how to implement a Timer countdown?

  • Hi,

    Calling sd_power_system_off() will put the nRF in SYSTEM OFF which is different from calling sd_app_evt_wait() which will basically put the system in SYSTEM ON sleep . A wakeup from system off will completely reset the whole system. What you rather want is to use a sd_app_evt_wait() with an app timer that is set to 3 minutes, which will put the system in SYSTEM ON sleep where it consumes little current until 3 minutes has passed. The application timer tutorial would be a good start for a better understanding on using timers. 

    You can find it here.

    regards

    Jared e

Related