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

does a peripheral automatically go to sleep between broadcasts

Hello,

We are using in nrf51822 in a product.

I do not understand whether by definition and, thus, always, before connecting, whether a peripheral

goes to sleep between broadcasts or whether this is hardware or software configurable.

Is this related?

// Enter main loop.
for (;;)
{
if (NRF_LOG_PROCESS() == false)
{
power_manage();
}
}

thanks,

Richard

  • Hi 

    Power management is controlled by the application, not the SoftDevice, so the system will not automatically go to sleep in between SoftDevice events.

    To enter sleep mode you have to request it through the SoftDevice (to avoid going to sleep when the SoftDevice is busy), and this is done implicitly through the call to power_manage().

    It is common practice to enter sleep mode continuously at the end of your main loop. Then you will go to sleep as long as there are no events/interrupts running, and as long as you don't run any other code in the main loop. 

    Best regards
    Torbjørn

Related