Open
Description
I've been trying to get my BLE Nano 2 current consumption down. Right now I have it at ~2.8mA with DCDC enabled.
If I call sd_app_evt_wait()
in my loop
right after the application starts up, my current consumption drops to ~0.33mA. Once I use a central (my iPhone) to connect to the Nano 2, the current consumption jumps up to 2.8mA and stays there even after the central disconnects, and even if I call sd_app_evt_wait()
again in my loop
.
My sketch looks roughly like this..
BLEService tempService("CCC0");
BLEFloatCharacteristic tempCharacteristic("CCC1", BLERead | BLENotify);
BLEDescriptor tempDescriptor("2901", "Temperature");
void setup(void)
{
ble.setDeviceName("temp");
ble.setAdvertisedServiceUuid(tempService.uuid());
ble.addAttribute(tempService);
ble.addAttribute(tempCharacteristic);
ble.addAttribute(tempDescriptor);
ble.setEventHandler(BLEConnected, connectHandler);
ble.setEventHandler(BLEDisconnected, disconnectHandler);
ble.begin();
}
void loop(void)
{
ble.poll();
sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);
sd_app_evt_wait();
}
2.8mA is pretty good, but I'd like it go back down to 0.33mA :D