dkdileep wrote:
Hi,
Please let me know, how to set the ESP8266 to SLEEP mode (normal sleep). I tried disconnecting the AP and STATION and I still see a 70mA constant current draw. I tried system_deep_sleep(all options) but it still wakes up into normal operation mode. I also tried options wifi_sleep_type(1,2 and 4), but to no effect.
In SLEEP mode I expect to be interrupted by a UART or a GPIO interrupt, wake up and do some calculations, connect to WiFi, submit data and go back to sleep.
Right now my choices are limited,
Also can you let me know the max sampling rate of the ADC (TOUT) of ESP8266? And if I can use TIMER INTERRUPT based sampling?
Regards
DKD
1. 70mA seems Softap mode is still on, the sleep is based on WiFi beacon, please set the chip to STATION_MODE and connect to a router.
2. The default setting is modem-sleep, call wifi_set_sleep_type() to enable light-sleep.
3. What is your SDK version, we have fixed some errors in sleep in SDK v1.2
4. In modem-sleep , CPU still works , do not need to wakeup the chip.
5. In light-sleep , CPU pauses , need to WAKE UP the chip by GPIO before sending ,for example, uart data, but do not need to do anything to receive the data from WiFi.
6. If there is still problems in your test, please send your test code to support@espressif.com and tell us your SDK version. We would like to help.Statistics: Posted by costaud — Tue Jul 07, 2015 5:23 pm
]]>