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

SDK9 s110 8.0.0 advertising time out doesn't work

I implemented an application to advertise indefinitely with APP_ADV_TIMEOUT_IN_SECONDS set to 0 and it works just fine. Now I want to have a time out and set APP_ADV_TIMEOUT_IN_SECONDS to 30 but the device doesn't stop advertising after 30s. Please help.

  • After the timeout the function sleep_mode_enter() / sd_power_system_off() is called, and the system will try to enter system-off mode.

    If a wake-up condition is true when you enter system off, the chip will immediately wake back-up, which will appear as a reset, since the chip is always reset when waking from system off.

    This means that before entering system off, you should make sure that no configured wakeup button is already low, and if it is, you may want to wait for it to be released before entering system off.

  • Dear Sigurd, You are right. A recursive timer event keeps waking up the system after advertise time out. My solution is to remove sd_power_system_off() from sleep_mode_enter(). Thank you very much for the help.

Related