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

Device does not sleep after disconnection.

Hi,

 

I’m trying to measure the current on NRF52840, SDK 17.0.2.

I have modified the HeartRate Measurement example’s advertising parameters as PLper my requirement.

I observe that while my device is advertising, the current is around 40 Micro Amps and the sleep current is 3.2 Micro Amps.

Once I connect and disconnect to the device using NrfConnect, the current is 30 Micro Amps and does not drop back to 3.2 Micro Amps.

Why is my device not going to sleep after disconnection?

 

 

Thanks,

Chitra

Parents
  • Thanks for your reply, Vidar.

    I’m not using the ble_advertising_init(), I have modified the advertising_init(), to use sd_ble_gap_adv_set_configure() as followed in the ble_app_blinky example.

    Also, I have modified the application to transmit the beacon once every minute.

    With my changes, the device sleep current is around 3.2 Micro Amps(with logging turned off)  which seems reasonable.

    But, why does my device fail to go to sleep after a Connect and Disconnect?

    Kind Regards,

    Chitra

  • Thanks for the clarification. I assumed you were using the Advertising Module like in the original example.

    Unless you have already removed the module's source file from the build, please ensure you have the 'BLE_ADVERTISING_ENABLED' configuration setting disabled in sdk_Config. This will prevent the module from receiving BLE events such as connect and disconnect.

    Best regards,

    Vidar

Reply Children
No Data
Related