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
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
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
Thank you Magnus for your good questions. In order to make it easier for others to find your questions and potential answers, it is better to post unrelated questions on a new thread. Thanks a lot.
Hi Magnus
For recommendation on using the nRF51 DCDC with a softdevice, look at this thread