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

Modify ble_app_pwr_profiling to not go into system off mode

Hi, I was wondering if it is some easy way to turn off that the system goes into system off mode after a while for ble_app_pwr_profiling?

I would also like to test it with DC/DC converter, how do I do then?

BR Magnus

Parents
  • In on_ble_evt(), you have a couple of err_code = sd_power_system_off() at BLE_GAP_EVT_DISCONNECTED and BLE_GAP_EVT_TIMEOUT. I guess the one in the timeout is what you mean by "after a while", so just remove that.

    For the DCDC there is a SoftDevice call to sd_power_dcdc_mode_set(dcdc_mode) you can use, and pass it either NRF_POWER_DCDC_MODE_OFF, NRF_POWER_DCDC_MODE_ON or NRF_POWER_DCDC_MODE_AUTOMATIC after the SoftDevice is initialised.

Reply
  • In on_ble_evt(), you have a couple of err_code = sd_power_system_off() at BLE_GAP_EVT_DISCONNECTED and BLE_GAP_EVT_TIMEOUT. I guess the one in the timeout is what you mean by "after a while", so just remove that.

    For the DCDC there is a SoftDevice call to sd_power_dcdc_mode_set(dcdc_mode) you can use, and pass it either NRF_POWER_DCDC_MODE_OFF, NRF_POWER_DCDC_MODE_ON or NRF_POWER_DCDC_MODE_AUTOMATIC after the SoftDevice is initialised.

Children
Related