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

Can someone tell me how to make device go to sleep and make it wakeup after a few hous using systick timer. I know how to create a timer but i wanna know which system call is the most efficient.

Can someone tell me how to make device go to sleep and make it wakeup after a few hous using systick timer. I know how to create a timer but i wanna know which system call is the most efficient. i know sd_app_evt_wait makes the device in standby mode but it keeps the radio on , I dont wanna use lpn feature but i want that my device sleeps and mesh and ble is deinitialized and it initializes again when the device wakes up with systick timer that i create. I am using nrf52840 and 832  with segger studios.

Parents
  • Hello, 

    sd_app_evt_wait makes the device in standby mode but it keeps the radio on

    Are you certain that you have configured the SoftDevice correctly? When configured correctly, the radio should be able to wake up only when needed and go back to sleep when finished. The SoftDevice uses RTC0 to ensure timing in the system. Which leads to the initial question:

    Can someone tell me how to make device go to sleep and make it wakeup after a few hous using systick timer.

    RTC (32kHz) is usually used for this kind of applications.  Be aware that the SoftDevice documentation states: "the application must ensure calibration at least once every 8 seconds to ensure +/-500 ppm clock stability.", read more here

    Have a look at this thread and this thread.

    Kind regards,
    Øyvind

Reply
  • Hello, 

    sd_app_evt_wait makes the device in standby mode but it keeps the radio on

    Are you certain that you have configured the SoftDevice correctly? When configured correctly, the radio should be able to wake up only when needed and go back to sleep when finished. The SoftDevice uses RTC0 to ensure timing in the system. Which leads to the initial question:

    Can someone tell me how to make device go to sleep and make it wakeup after a few hous using systick timer.

    RTC (32kHz) is usually used for this kind of applications.  Be aware that the SoftDevice documentation states: "the application must ensure calibration at least once every 8 seconds to ensure +/-500 ppm clock stability.", read more here

    Have a look at this thread and this thread.

    Kind regards,
    Øyvind

Children
Related