lightsleep, deepsleep & wifi #12092
Replies: 5 comments 8 replies
-
Beta Was this translation helpful? Give feedback.
-
Sometimes yes and sometimes no. I tested it with an ESP32 with 60 seconds. I was able to make an HTTP GET request after the So even after a |
Beta Was this translation helpful? Give feedback.
-
I usually see these write-ups to see which parts of the ESP32 are active during which low mode: https://lastminuteengineers.com/esp32-sleep-modes-power-consumption/ It looks like only the ULP co-processor and the RTC are active during the light sleep mode, nothing else...... |
Beta Was this translation helpful? Give feedback.
-
I do not know why you look at secondary sources when the good primary source of information is available: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/sleep_modes.html |
Beta Was this translation helpful? Give feedback.
-
Thank you. I am saving it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When using the esp32 to send remote sensor data every 20 mins or so I generally use deepsleep between updates. I originally did this to reduce battery drain but it also means I don't have to think too much about 802.11 complexity since the program connects to the wifi after each deepsleep. The problem is 3s of the 7s awake time each cycle is the time taken to connect to wifi.
I'd like to try lightsleep to see if not having to reconnect to the wifi each cycle could be worth a look. I've tried reading up on listen intervals & the requirement for APs to buffer frames for dozing stations but it's heavy going & none of it is esp32 specific. Does the esp32 WLAN keep itself connected in lightsleep? If so how often is it likely to wake up to listen for beacons or do whatever it does to stay connected?
Beta Was this translation helpful? Give feedback.
All reactions