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

sleep and wakeup ble services

Hai Nordic 

I have a question related to nordic nrf52 sleep and wakeup

I want my ble services are to be in sleep mode for 5sec and it has to wake up after 5sec. is that possible in nrf52840?

And give me proper knowledge of sleep and wake-up functionality in nordic.

  • HI,

    You can set the application to System On sleep by calling nrf_pwr_mgmt_run() as in most of the BLE examples in the SDK. This function call will minimize the current consumption while the CPU waits for any event. You can use the app timer library to generate an interrupt after 5 seconds which will make the CPU wake-up from System On sleep. Note, that any event will "wake" the CPU up from System On sleep. See our application timer tutorial for SDK 15.2 here

    regards
    Jared
Related