I didn´t try the force Light-sleep or Deep-sleep, because I suppose, the Modem-sleep would be the best solution for my application. The modem-sleep features are:
- ESP keep connected with the router through the DTIM beacon mechanism
- DTIM interval from 100 ms to 1000 ms
- ESP8266 automatically waked-up before the next Beacon arrival
I read further in the ESP8266 Sleep Mode Function Description: "The sleep time is dedicted by Beacon DTIM of router. During sleep, ESP8266 can keep the Wi-Fi connection with router, and receiving the interactive information from mobile phone or server."
It is probably what I want. I would like to stay connected with minimal delay caused by wake-up or sleep process and also to interactively receive the data requests from the router. The expected time between two data requests should be 500 ms (it matches the DTIM interval requirements).
The application is to have a several ESP8266 Wi-Fi modules simultaneously connected to one AP (or soft-AP on mobile phone). Each ESP8266 module should be requested for 2 kiloBytes data packet in 500 ms intervals. Example for two ESP8266 modules: 1) AP Scans for connected ESP8266 modules. 2) AP requests data from 1st ESP8266 module. 3) The 1st ESP8266 module sends the 2kB data packet and enter the Modem-sleep for <500 ms. 4) AP requests data from 2nd ESP8266 module. 5) The 2nd ESP8266 module sends the 2kB data packet and enter the Modem-sleep for <500 ms. 6) The 1st ESP8266 is automatically waked-up waiting for new data request from the AP. 7) and so on... I would like to be able to serve as many ESP8266 modules as possible (ideally tens of modules) during the 500 ms interval.Statistics: Posted by Jan Kijonka — Tue Jun 13, 2017 6:21 am
]]>