sleep mode current high (3mA) after enabling and disabling BLE, if not < 1 mA
Posted: Tue Mar 31, 2020 4:23 pm
Hello,
I am able to achieve sleep mode current < 1 mA if my BLE is not enabled for first time.
Now with gpio if I enable BLE and then disable it by below commands and then if I do above sleep commands,
it is going to sleep but taking around 3+ mA of current. I am unable to bring it down.
I am using above commands to disable BLE completely and no user task is running and all tasks are blocked using a SLEEP_EVENT before issuing the esp_light_sleep_start.
Issue can be solved only if I reboot the esp32 and if ble is not enabled for first time and if I sleep the device, it takes <1 mA. At any time if I use ble and later disable also, then the sleep mode current is increased to 3+ mA and I am unable to reduce it
IDE VERSION 3.3 STABLE
I am able to achieve sleep mode current < 1 mA if my BLE is not enabled for first time.
Code: Select all
esp_sleep_enable_gpio_wakeup();
esp_light_sleep_start();
Now with gpio if I enable BLE and then disable it by below commands and then if I do above sleep commands,
it is going to sleep but taking around 3+ mA of current. I am unable to bring it down.
Code: Select all
esp_bluedroid_disable();
esp_bluedroid_deinit();
esp_bt_controller_disable();
esp_bt_controller_deinit();
Issue can be solved only if I reboot the esp32 and if ble is not enabled for first time and if I sleep the device, it takes <1 mA. At any time if I use ble and later disable also, then the sleep mode current is increased to 3+ mA and I am unable to reduce it
IDE VERSION 3.3 STABLE