Difference in accuracy between light sleep and deep sleep modes

daniel1704
Posts: 4
Joined: Wed Oct 09, 2019 4:48 am

Difference in accuracy between light sleep and deep sleep modes

Postby daniel1704 » Tue Feb 11, 2020 3:12 am

I'm working on a project that will require to keep the ESP32 on an idle state for about 5 mins and then start again. As the project will be running with a battery, I decided I would like to use power saving options. When I run the code using light sleep, the accuracy of the sleep time is pretty good, and everything works fine. However, when I tried to use deep sleep, keeping every other configuration the same, the sleep time started to lag for about 10 s. Do any of you know why is this happening?

WiFive
Posts: 2868
Joined: Tue Dec 01, 2015 7:35 am

Re: Difference in accuracy between light sleep and deep sleep modes

Postby WiFive » Tue Feb 11, 2020 8:51 am

Light sleep can resume but deep sleep has to boot the whole app again. Are you taking that into account?

daniel1704
Posts: 4
Joined: Wed Oct 09, 2019 4:48 am

Re: Difference in accuracy between light sleep and deep sleep modes

Postby daniel1704 » Tue Feb 11, 2020 8:53 pm

WiFive wrote:
Tue Feb 11, 2020 8:51 am
Light sleep can resume but deep sleep has to boot the whole app again. Are you taking that into account?
I did, I measured the time from sleep start to reboot when I was using deep sleep. Even if I didn't, boot time with the configurations I'm using is about 1 s, and the difference between both sleeps modes is around 10 s, so it wouldn't be justified

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 23 guests