Page 1 of 1

ESP32 省电模式

Posted: Mon May 06, 2019 4:29 am
by pdxyze
测试esp-idf v3.3 中的例子power_save。
发现ESP32有时可以进入省电模式,有时不可以进入省电模式。感觉省电模式很不稳定,进入省电模式需要什么条件?是否受路由器的影响?
如果进入WIFI_PS_MIN_MODEM,测的电流约为10mA;如果进入WIFI_PS_MAX_MODEM,测的电流约为4mA。ESP32保持空连接,最省电可以达到多少电流?

Re: ESP32 省电模式

Posted: Mon May 06, 2019 9:22 am
by ESP_@In逍遥子
  • 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.

Re: ESP32 省电模式

Posted: Tue May 07, 2019 6:10 am
by pdxyze
@In逍遥子 wrote:
Mon May 06, 2019 9:22 am
  • 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.
Minimum modem sleep与Maximum modem sleep差别我理解。我遇到的问题是测官方的例子,有时半个小时都进不了省电模式,有时开机半分钟就进入省电模式,感觉很不稳定。你有没有遇到过这种情况?另外就是保持网络连接(不发送数据),最省电的功耗是多少?

Re: ESP32 省电模式

Posted: Mon Aug 12, 2019 12:25 pm
by littlesky
pdxyze wrote:
Tue May 07, 2019 6:10 am
@In逍遥子 wrote:
Mon May 06, 2019 9:22 am
  • 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.
Minimum modem sleep与Maximum modem sleep差别我理解。我遇到的问题是测官方的例子,有时半个小时都进不了省电模式,有时开机半分钟就进入省电模式,感觉很不稳定。你有没有遇到过这种情况?另外就是保持网络连接(不发送数据),最省电的功耗是多少?
若连接 AP 后一直有数据收发,不会进入省电模式,否则会进入省电模式。只保持网络连接,不发送和接收数据,最省电的功耗也与周围环境的干扰程度有关。在屏蔽箱中,light sleep 测到的最省电电流为 4.5mA。