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

Enter on System on sleep mode on Ble timeout

how can I put nrf52832 in the system on sleep mode on advertising timeout?

Currently, on timeout, the device is going in system off mode and restarting on interrupt.

Parents
  • Hello,

    If you comment out, or remove the sleep_mode_enter() from

    on_adv_evt() -> case BLE_ADV_EVT_IDLE:

    the device will not enter system off mode. 

    By commenting out this line, the on_adv_evt() will finish without going to system_off, and the main() loop will resume, and idle_state_handle() / sd_app_evt_wait() will resume system on mode.

    Best regards,

    Edvin

Reply
  • Hello,

    If you comment out, or remove the sleep_mode_enter() from

    on_adv_evt() -> case BLE_ADV_EVT_IDLE:

    the device will not enter system off mode. 

    By commenting out this line, the on_adv_evt() will finish without going to system_off, and the main() loop will resume, and idle_state_handle() / sd_app_evt_wait() will resume system on mode.

    Best regards,

    Edvin

Children
No Data
Related