ESP8266 Developer Zone The Official ESP8266 Forum 2018-11-17T00:04:29+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=24393 2018-11-17T00:04:29+08:00 2018-11-17T00:04:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=24393&p=35533#p35533 <![CDATA[Re: wifi_set_listen_interval is counter-productive]]> https://github.com/espressif/ESP8266_NO ... issues/192

Statistics: Posted by tvoneicken — Sat Nov 17, 2018 12:04 am


]]>
2018-11-16T22:22:26+08:00 2018-11-16T22:22:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=24393&p=35532#p35532 <![CDATA[Re: wifi_set_listen_interval is counter-productive]]> https://github.com/espressif/ESP8266_NONOS_SDK

The forum is not as active as it used to be... :(

Statistics: Posted by blubb — Fri Nov 16, 2018 10:22 pm


]]>
2018-11-15T05:23:28+08:00 2018-11-15T05:23:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=24393&p=35487#p35487 <![CDATA[Re: wifi_set_listen_interval is counter-productive]]>
First with sleep-level=1, I annotated the light-sleep, modem-sleep, radio-receive, and radio-transmit power levels. The horizontal divisions are 500ms long and you can clearly see how the radio RX turns on every 100ms, which is the beacon interval. You can also see how many of the intervals are at light-sleep level, some are at modem-sleep level, and some have the radio turned on, presumably waiting for a packet that was announced in the TIM. The application is asleep practically the entire time (it is very briefly active at the start and end of the yellow pulse).

NewFile13b.png


Now with sleep-level = 5. It is very obvious that the radio RX is only turned on every 500ms, so far so good. But what is bad is how often it sits at modem-sleep level instead of going down to light-sleep level. One can see that when the receiver is turned on for an extended period of time to receive a packet it can switch to light-sleep afterwards. But somehow during many intervals after the TIM is received the system goes straight to modem-sleep level and stays there even though evidently there is no packet to be received (else the RX would be on).

NewFile14.png


I am using a 3.0 dev SDK, the latest one used by esp8266/Arduino.

Statistics: Posted by tvoneicken — Thu Nov 15, 2018 5:23 am


]]>
2018-11-15T04:47:09+08:00 2018-11-15T04:47:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=24393&p=35486#p35486 <![CDATA[wifi_set_listen_interval is counter-productive]]> - the system wakes up to receive a beacon/TIM (traffic indication map)
- if the TIM indicates that there is no traffic the system goes to light sleep for the N beacon times (good)
- if there is traffic then the system probably receives it and then stays in modem sleep for N beacon times, it never drops down to light sleep level (bad!)

This means that if there is some regular traffic (e.g. broadcasts) on the network the effect is that with increasing the listen interval the probability that there is traffic goes up and then the proportion of periods spent at modem sleep level go up too.

Why does the system never drop down to light sleep level if it had to process some packets?

Statistics: Posted by tvoneicken — Thu Nov 15, 2018 4:47 am


]]>