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.

  • In three places in main.c i have commented out following rows: //err_code = sd_power_system_off(); //APP_ERROR_CHECK(err_code); But i saw that there are timeout for advertising in connectable and not connectable mode. So if I want the program to send in connectable or not connectable mode the whole time how do I do then? BR Magnus

Reply Children
No Data
Related