Chen Yudong 216af569c4 ci(fix): pre-commit check wifi power save rules %!s(int64=2) %!d(string=hai) anos
..
image 815d9ec6bd Power consumption graphs were added to ulp and wifi power save examples %!s(int64=5) %!d(string=hai) anos
main e148390b6d feat(esp_wifi): support get AP info from stdin in wifi powersave example %!s(int64=2) %!d(string=hai) anos
CMakeLists.txt facab8c5a7 tools: Increase the minimal supported CMake version to 3.16 %!s(int64=3) %!d(string=hai) anos
README.md 216af569c4 ci(fix): pre-commit check wifi power save rules %!s(int64=2) %!d(string=hai) anos
pytest_wifi_power_save.py dae4b3f046 ci(wifi): add wifi powersave pytest case %!s(int64=2) %!d(string=hai) anos
sdkconfig.ci.c2_xtal26m dae4b3f046 ci(wifi): add wifi powersave pytest case %!s(int64=2) %!d(string=hai) anos
sdkconfig.ci.default dae4b3f046 ci(wifi): add wifi powersave pytest case %!s(int64=2) %!d(string=hai) anos
sdkconfig.ci.pd_top dae4b3f046 ci(wifi): add wifi powersave pytest case %!s(int64=2) %!d(string=hai) anos
sdkconfig.defaults c8be36c3f4 examples/wifi/power_save: use 1000Hz freertos tick to lower sleep time threshold %!s(int64=2) %!d(string=hai) anos

README.md

Supported Targets ESP32 ESP32-C2 ESP32-C3 ESP32-C6 ESP32-S2 ESP32-S3

Wifi Power Save Example

This example shows how to use power save mode of wifi.

Power save mode only works in station mode. If the modem sleep mode is enabled, station will switch between active and sleep state periodically after connecting to AP successfully. In sleep state, RF, PHY and BB are turned off in order to reduce power consumption. Station can keep connection with AP in modem sleep mode.

  • No power save: This is default mode. And the esp32 will work with full power.

  • Minimum modem sleep: In minimum modem sleep mode, station wakes up every DTIM to receive beacon. Broadcast data will not be lost because it is transmitted after DTIM. However, it can not save much more power if DTIM is short for DTIM is determined by AP.

  • Maximum modem sleep: In maximum modem sleep mode, station wakes up every listen interval to receive beacon. Broadcast data may be lost because station may be in sleep state at DTIM time. If listen interval is longer, more power is saved but broadcast data is more easy to lose.

  • others: not supported yet.

Typical current consumption with management enabled

current consumption with CONFIG_PM_ENABLE enabled

Typical current consumption with management disabled

current consumption with CONFIG_PM_ENABLE disabled

Note that current consumption and average current are higher when disabled.