ESP8266 Developer Zone The Official ESP8266 Forum 2017-09-05T23:27:12+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=5680 2017-09-05T23:27:12+08:00 2017-09-05T23:27:12+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5680&p=15550#p15550 <![CDATA[Re: Light sleep and timers]]> Statistics: Posted by blubb — Tue Sep 05, 2017 11:27 pm


]]>
2017-09-05T20:47:11+08:00 2017-09-05T20:47:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5680&p=15547#p15547 <![CDATA[Re: Light sleep and timers]]> Statistics: Posted by Guest — Tue Sep 05, 2017 8:47 pm


]]>
2017-08-08T16:27:55+08:00 2017-08-08T16:27:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5680&p=15041#p15041 <![CDATA[Re: Light sleep and timers]]>
pratik wrote:
If you have ESP in station mode and server is enabled, then enable auto light-sleep


This is exactly my case. But the timers get unreliable since the wake ups from light sleep depend on the signals from my wifi router. Sometimes nothing is received and the timers oversleep.
This is why I am using modem sleep.

It is unfortunate there is no other way to save more power.

An option to wake up from automatic light sleep every x seconds would be great...

Statistics: Posted by blubb — Tue Aug 08, 2017 4:27 pm


]]>
2017-08-08T15:58:05+08:00 2017-08-08T15:58:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5680&p=15040#p15040 <![CDATA[Re: Light sleep and timers]]> So modem sleep is what you should use.
When ESP is the AP, power saving is not practical. An AP must stay up all the time. You can lower the transmit strength and PHY mode to save power if you wish to.
If you have ESP in station mode and server is enabled, then enable auto light-sleep or modem sleep, which will save power.

Statistics: Posted by Guest — Tue Aug 08, 2017 3:58 pm


]]>
2017-07-24T20:14:19+08:00 2017-07-24T20:14:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5680&p=14812#p14812 <![CDATA[Re: Light sleep and timers]]> So using MODEM sleep works. The web server is accessible all the time and also the timer callback is precisely called.

But in my opinion LIGHT sleep would be better. Wifi access is still ok (light sleep is interrupted by wifi), but the timer won't work anymore (at least not reliably). If there is no wifi access, the timer "oversleeps". So what I would need is an option to tell the automatic LIGHT sleep when to wake up. Like an RTC alarm of some kind.

Statistics: Posted by blubb — Mon Jul 24, 2017 8:14 pm


]]>
2017-07-24T18:05:11+08:00 2017-07-24T18:05:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5680&p=14799#p14799 <![CDATA[Re: Light sleep and timers]]>
What exactly is your system requirement? I can help find the sleep mode that will suit your application most.

Statistics: Posted by Guest — Mon Jul 24, 2017 6:05 pm


]]>
2017-07-20T23:28:30+08:00 2017-07-20T23:28:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5680&p=14734#p14734 <![CDATA[Light sleep and timers]]>
Now I wonder how the forced sleep functions work. I mean it is possible to set a timeout and still use light sleep, e.g.
wifi_fpm_do_sleep(50*1000);

What is their clock source and why can't this be implemented in the automatic light sleep functionality?

Statistics: Posted by blubb — Thu Jul 20, 2017 11:28 pm


]]>