Hello !
Do you know how to reduce the current consumption (about 110 mA) when the ESP32 has the BLE activated?
Can I use one of the sleep mode (deep, light, modem) to make it mostly sleep and then turning on the BLE only for short periods?
Thank you
Reduce current consumption in BLE
Re: Reduce current consumption in BLE
At the moment, BLE is not compatible with sleep modes. Some work is in progress to make modem sleep for BLE possible, with the first version to be finished before by mid February.
Re: Reduce current consumption in BLE
is it possible to turn off the BLE and then go to deep sleep ?(esp_err_t esp_bluedroid_deinit()
esp_err_t esp_bluedroid_disable())?
esp_err_t esp_bluedroid_disable())?
Re: Reduce current consumption in BLE
Yes, disabling bluetooth and going into deep sleep should work, however the existing connections will be terminated.
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: Reduce current consumption in BLE
Adding to reply by ESP_igrr, I have an application of such scenario and it works very well in my case.athankok wrote:is it possible to turn off the BLE and then go to deep sleep ?(esp_err_t esp_bluedroid_deinit()
esp_err_t esp_bluedroid_disable())?
Whether it will work for you depends on how often you need to read the data. In my application It takes 1 - 2 s to reestablish BLE connection after each wake up but I am reading the data (from a heart rate sensor it this case) every 15 s.
Here are some sample trends of heart rate - https://github.com/krzychb/esp32-everes ... asurements
Re: Reduce current consumption in BLE
Thank you all !krzychb wrote:Adding to reply by ESP_igrr, I have an application of such scenario and it works very well in my case.athankok wrote:is it possible to turn off the BLE and then go to deep sleep ?(esp_err_t esp_bluedroid_deinit()
esp_err_t esp_bluedroid_disable())?
Whether it will work for you depends on how often you need to read the data. In my application It takes 1 - 2 s to reestablish BLE connection after each wake up but I am reading the data (from a heart rate sensor it this case) every 15 s.
Here are some sample trends of heart rate - https://github.com/krzychb/esp32-everes ... asurements
krzychb I don't find where you start the BLE in your altimeter-main.c file. Can you explain me? Thanks !!
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: Reduce current consumption in BLE
BLE is started by function update_heart_rate()leoleo93 wrote:krzychb I don't find where you start the BLE in your altimeter-main.c file. Can you explain me? Thanks !!
Then this function is doing two things:
1. Setting up a BLE callback implemented in component polar-h7-client.
2. Waiting couple of seconds for BLE to establish connection and return the heart rate by the callback.
The whole polar-h7-client component is a simple adaptation of ESP-IDF GATT CLIENT demo that now comes with a tutorial.
Re: Reduce current consumption in BLE
Thank you !!krzychb wrote:BLE is started by function update_heart_rate()leoleo93 wrote:krzychb I don't find where you start the BLE in your altimeter-main.c file. Can you explain me? Thanks !!
Then this function is doing two things:
1. Setting up a BLE callback implemented in component polar-h7-client.
2. Waiting couple of seconds for BLE to establish connection and return the heart rate by the callback.
The whole polar-h7-client component is a simple adaptation of ESP-IDF GATT CLIENT demo that now comes with a tutorial.
Who is online
Users browsing this forum: No registered users and 136 guests