Power consumption for Rainmaker [IDFGH-5540]
Power consumption for Rainmaker [IDFGH-5540]
Hi Espressif,
I tested power consumption of a board with ESP32S2 with simple Rainmaker app running.
Only ESP32S2 consumption were measured, no additional electronics added.
My results is the following:
* ESP32S2 connected to WiFi, connected to cloud and idle: ~30mA
* ESP32S2 is looking for an access point: ~80mA
The 80mA is quite big for my application and I'm looking for a way to lower this number. My goal to have about 10-20mA.
If I understood correctly the ESP32S2 in continuously in RX mode when looking for a AP. I believe the duty cycling can help. For example, to be in RX mode for 100ms in every second.
Can I add a duty cycling while looking for an AP?
Also, is there way to lower consumption when connected to AP?
I tested power consumption of a board with ESP32S2 with simple Rainmaker app running.
Only ESP32S2 consumption were measured, no additional electronics added.
My results is the following:
* ESP32S2 connected to WiFi, connected to cloud and idle: ~30mA
* ESP32S2 is looking for an access point: ~80mA
The 80mA is quite big for my application and I'm looking for a way to lower this number. My goal to have about 10-20mA.
If I understood correctly the ESP32S2 in continuously in RX mode when looking for a AP. I believe the duty cycling can help. For example, to be in RX mode for 100ms in every second.
Can I add a duty cycling while looking for an AP?
Also, is there way to lower consumption when connected to AP?
-
- Posts: 310
- Joined: Wed Feb 20, 2019 7:02 am
Re: Power consumption for Rainmaker
Copied this topic under esp-idf forum because power saving mechanism would be more relevant here.
Re: Power consumption for Rainmaker
Hi ESP-IDF team,
Could you please comment how to reduce the current consumption when ESP32S2 is searching for an AP?
I need to add some duty cycling to this process to keep average current in 10-20mA in this mode.
Could you please comment how to reduce the current consumption when ESP32S2 is searching for an AP?
I need to add some duty cycling to this process to keep average current in 10-20mA in this mode.
Re: Power consumption for Rainmaker
Not part of IDF Team, but so far in all my tests WiFi is what most consumes, so I don't really think it's possible to keep consumption that low when searching for an Access point. Would love to know if it's possible though so I will stay tuned.
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design
Re: Power consumption for Rainmaker
Hi fasani,
Thank you for your answer.
I'm sure that the average current can be reduced.
If the searching for AP consumes 80mA we can run it each second and stop after 100-200ms.
This will cause some degradation in the AP connection time, but this the acceptable trade-off for me.
I just looking for a standard API for doing this.
Thank you for your answer.
I'm sure that the average current can be reduced.
If the searching for AP consumes 80mA we can run it each second and stop after 100-200ms.
This will cause some degradation in the AP connection time, but this the acceptable trade-off for me.
I just looking for a standard API for doing this.
Re: Power consumption for Rainmaker [IDFGH-5540]
Moderator's note: edit the topic title for issue tracking, thanks for reporting.
- espressif_liuuu
- Posts: 2
- Joined: Tue Jul 13, 2021 6:09 am
Re: Power consumption for Rainmaker [IDFGH-5540]
Hi, thanks for your questions.
For your first question, if you want to scan for AP when connected with AP, there is no other specific way to control it. You may need to call scan API periodically to control power consumption. Meanwhile, if you want to scan at disconnected status, please update your version to 4.3.0 or newest one, then enable the option ESP_WIFI_STA_DISCONNECTED_PM_ENABLE in menuconfig, which supports chip to sleep at disconnected status.
For your second question, there are three ways to do power consumption for our chip:
1. Modem sleep, average current is about 30mA
2. Light sleep, average current is about 1mA
3. Deep sleep
I recommend that you can try lightsleep in your application and get lower power consumption.
For your first question, if you want to scan for AP when connected with AP, there is no other specific way to control it. You may need to call scan API periodically to control power consumption. Meanwhile, if you want to scan at disconnected status, please update your version to 4.3.0 or newest one, then enable the option ESP_WIFI_STA_DISCONNECTED_PM_ENABLE in menuconfig, which supports chip to sleep at disconnected status.
For your second question, there are three ways to do power consumption for our chip:
1. Modem sleep, average current is about 30mA
2. Light sleep, average current is about 1mA
3. Deep sleep
I recommend that you can try lightsleep in your application and get lower power consumption.
Re: Power consumption for Rainmaker [IDFGH-5540]
I use ESP IDF 4.4.espressif_liuuu wrote: ↑Tue Jul 13, 2021 6:37 amHi, thanks for your questions.
For your first question, if you want to scan for AP when connected with AP, there is no other specific way to control it. You may need to call scan API periodically to control power consumption. Meanwhile, if you want to scan at disconnected status, please update your version to 4.3.0 or newest one, then enable the option ESP_WIFI_STA_DISCONNECTED_PM_ENABLE in menuconfig, which supports chip to sleep at disconnected status.
I tried to enable ESP_WIFI_STA_DISCONNECTED_PM_ENABLE but nothing changed. It still consume 80mA while searching for AP.
One thing that could be important: the Rainmaker app invokes esp_wifi_connect() every 2 seconds.
So I suggest that esp_wifi_connect() power on WiFi RX with 100% duty. And when the connection fails the rainmaker app just restart it again. Is there a standart way to duty cycling WiFi RX in esp_wifi_connect()?
Thank you! This helped me to achieve 10mA of average current consumption while connected to AP!espressif_liuuu wrote: ↑Tue Jul 13, 2021 6:37 amFor your second question, there are three ways to do power consumption for our chip:
1. Modem sleep, average current is about 30mA
2. Light sleep, average current is about 1mA
3. Deep sleep
I recommend that you can try lightsleep in your application and get lower power consumption.
- espressif_liuuu
- Posts: 2
- Joined: Tue Jul 13, 2021 6:09 am
Re: Power consumption for Rainmaker [IDFGH-5540]
"I use ESP IDF 4.4.
I tried to enable ESP_WIFI_STA_DISCONNECTED_PM_ENABLE but nothing changed. It still consume 80mA while searching for AP.
One thing that could be important: the Rainmaker app invokes esp_wifi_connect() every 2 seconds.
So I suggest that esp_wifi_connect() power on WiFi RX with 100% duty. And when the connection fails the rainmaker app just restart it again. Is there a standart way to duty cycling WiFi RX in esp_wifi_connect()?"
The option, ESP_WIFI_STA_DISCONNECTED_PM_ENABLE, could let chip go sleep at disconnected, otherwise chip would stay RX mode and keep current about 100mA even when its not about to connect. However, it could do nothing to decrease consumption at scaning.
We are not able to do duty cycling in esp_wifi_connect, WiFi event would be thrown according to the result of esp_wifi_connect. Is it possible to do duty cycle outside esp_wifi_connect?
I tried to enable ESP_WIFI_STA_DISCONNECTED_PM_ENABLE but nothing changed. It still consume 80mA while searching for AP.
One thing that could be important: the Rainmaker app invokes esp_wifi_connect() every 2 seconds.
So I suggest that esp_wifi_connect() power on WiFi RX with 100% duty. And when the connection fails the rainmaker app just restart it again. Is there a standart way to duty cycling WiFi RX in esp_wifi_connect()?"
The option, ESP_WIFI_STA_DISCONNECTED_PM_ENABLE, could let chip go sleep at disconnected, otherwise chip would stay RX mode and keep current about 100mA even when its not about to connect. However, it could do nothing to decrease consumption at scaning.
We are not able to do duty cycling in esp_wifi_connect, WiFi event would be thrown according to the result of esp_wifi_connect. Is it possible to do duty cycle outside esp_wifi_connect?
Re: Power consumption for Rainmaker [IDFGH-5540]
Thank you for support. Will try to add some delay between esp_wifi_connect calls.espressif_liuuu wrote: ↑Wed Jul 14, 2021 1:11 pmThe option, ESP_WIFI_STA_DISCONNECTED_PM_ENABLE, could let chip go sleep at disconnected, otherwise chip would stay RX mode and keep current about 100mA even when its not about to connect. However, it could do nothing to decrease consumption at scaning.
We are not able to do duty cycling in esp_wifi_connect, WiFi event would be thrown according to the result of esp_wifi_connect. Is it possible to do duty cycle outside esp_wifi_connect?
Who is online
Users browsing this forum: No registered users and 63 guests