Deep Sleep delay issue
Moderators: grovkillen, Stuntteam, TD-er
Deep Sleep delay issue
Hi everyone,
i use ESP Easy but i have i issue with the deep sleep delay.
If i use a deep sleep delay > 1 hour (i.e. 3600 s), the esp module reboot each hour. It works well for delay < 3600 s
In my case i would like a reboot each 6 or twelve hours (depending the application).
Anyone has the same issue?
i use ESP Easy but i have i issue with the deep sleep delay.
If i use a deep sleep delay > 1 hour (i.e. 3600 s), the esp module reboot each hour. It works well for delay < 3600 s
In my case i would like a reboot each 6 or twelve hours (depending the application).
Anyone has the same issue?
Re: Deep Sleep delay issue
Deepsleep uses an internal 32 bit counter in uSecs. So i would expect it to be working up to 4294 seconds. I think this is bound to hardware limitation where the internal circuitry uses a 32 bit counter to wake up the main system.
Re: Deep Sleep delay issue
Ok, thank you.
Maybe put this information in the wiki.
Do you know a way to use external device to achieve that?
Maybe put this information in the wiki.
Do you know a way to use external device to achieve that?
Re: Deep Sleep delay issue
Depending on the sensor, you could use ultra deep sleep: http://www.esp8266.com/viewtopic.php?f=11&t=4458
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Deep Sleep delay issue
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Deep Sleep delay issue
Perfect.
But i thought to a low power timer device to wake up the pi each x seconds where x is > at the limit.
Is anyone know that, could you give me a reference (it is for a battery powered project.
Thank you
Re: Deep Sleep delay issue
You could also wake it up manually by pulling RST to GND, and using a deepsleep time of 0. Then it will never wakeup automaticly.
Dont know if this is feasible for your project.
Dont know if this is feasible for your project.
Re: Deep Sleep delay issue
No it is not possible while i would like an automatic measurement once a day.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Deep Sleep delay issue
Wouldn't it be possible if we had a dump variable that let you use Deep Sleep Delay X seconds (maximum 4294) and let the ESP wake up after y number of Deep Sleep Delay Cycles.
If deep sleep delay is 3600 seconds and deep sleep delay cycle is 24 then the wake up would happen once every 24 hours?
Just a thought.
Default value for cycle is 1 for backwards compatibility.
If deep sleep delay is 3600 seconds and deep sleep delay cycle is 24 then the wake up would happen once every 24 hours?
Just a thought.
Default value for cycle is 1 for backwards compatibility.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Deep Sleep delay issue
hm... not sure about that.grovkillen wrote: ↑05 Jun 2017, 16:47 Wouldn't it be possible if we had a dump variable that let you use Deep Sleep Delay X seconds (maximum 4294) and let the ESP wake up after y number of Deep Sleep Delay Cycles.
If deep sleep delay is 3600 seconds and deep sleep delay cycle is 24 then the wake up would happen once every 24 hours?
Just a thought.
Default value for cycle is 1 for backwards compatibility.
The deep sleep timer is an internal ESP8266 thing.
For an additional variable you have to wake up the ESP and go back to deep sleep.
The more this variable has to be written to the flash to keep it.
Regards
Regards
Shardan
Shardan
Re: Deep Sleep delay issue
I know some timer chips but they are programmable up to two hours.
A solution might be using a CD4060 but this is not really low power
and not very precise.
Maybe an idea:
I just took a look into one of my timer clocks.
It is made of two PCB's, the clock itself and power supply/relay board.
It should be possible to use the clock part only, it just has Vcc/Gnd/Out.
As it is just a standard LCD clock it should not take too much power
and can be set felxibly to any wanted time.
Regards
Shardan
Regards
Shardan
Shardan
Re: Deep Sleep delay issue
this would be possible via rtc memory. such a wakeup would also take very little time.grovkillen wrote: ↑05 Jun 2017, 16:47 Wouldn't it be possible if we had a dump variable that let you use Deep Sleep Delay X seconds (maximum 4294) and let the ESP wake up after y number of Deep Sleep Delay Cycles.
If deep sleep delay is 3600 seconds and deep sleep delay cycle is 24 then the wake up would happen once every 24 hours?
Just a thought.
Default value for cycle is 1 for backwards compatibility.
this can be a post 2.0.0 feature.
also you can just wakeup the esp manually by setting deepsleep to 0 and pulling RST to gnd to wake it up.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Deep Sleep delay issue
Great news! Glad to have been of some kind of help.psy0rz wrote: ↑05 Jun 2017, 18:54this would be possible via rtc memory. such a wakeup would also take very little time.grovkillen wrote: ↑05 Jun 2017, 16:47 Wouldn't it be possible if we had a dump variable that let you use Deep Sleep Delay X seconds (maximum 4294) and let the ESP wake up after y number of Deep Sleep Delay Cycles.
If deep sleep delay is 3600 seconds and deep sleep delay cycle is 24 then the wake up would happen once every 24 hours?
Just a thought.
Default value for cycle is 1 for backwards compatibility.
this can be a post 2.0.0 feature.
also you can just wakeup the esp manually by setting deepsleep to 0 and pulling RST to gnd to wake it up.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Deep Sleep delay issue
Indeed, i found some information about rtc memory but to be honest i won't be able to program it.
How is it possible to ask this feature? Of course, it is dedicated for low power usage (to boot without wifi and check if the sleep is stillpending or not).
How is it possible to ask this feature? Of course, it is dedicated for low power usage (to boot without wifi and check if the sleep is stillpending or not).
- budman1758
- Normal user
- Posts: 301
- Joined: 15 Apr 2017, 05:13
- Location: Riverside CA USA
Re: Deep Sleep delay issue
No idea how to implement it but perhaps support for this module could help with long delay issues. A new plugin maybe?
http://www.ebay.com/itm/IIC-Precision-R ... 2078379042
Looks like it has a multitude of features.
http://www.ebay.com/itm/IIC-Precision-R ... 2078379042
Looks like it has a multitude of features.
"The glass is twice as big as it needs to be".
Re: Deep Sleep delay issue
Like i said before in this thread: use ultra deep sleep en connect the ds3231 SQW to the CH_PD pin according to the attached layout. Now you only need to program the ds3231 to activate the SQW pin: https://forum.arduino.cc/index.php?topic=139955.0budman1758 wrote: ↑06 Jun 2017, 03:41 No idea how to implement it but perhaps support for this module could help with long delay issues. A new plugin maybe?
http://www.ebay.com/itm/IIC-Precision-R ... 2078379042
Looks like it has a multitude of features.
- Attachments
-
- PIR-ESP8266-Low-Power.png (4.79 KiB) Viewed 22553 times
Re: Deep Sleep delay issue
Post an feature request on github for it.
Re: Deep Sleep delay issue
Yeah we could even make it easier for the user: Just let the user specify the actual sleep delay they want. If its longer than the max sleep time of the ESP, then wake up every ~4 hours until we can do the final sleep after which we do our task.grovkillen wrote: ↑05 Jun 2017, 19:16Great news! Glad to have been of some kind of help.psy0rz wrote: ↑05 Jun 2017, 18:54this would be possible via rtc memory. such a wakeup would also take very little time.grovkillen wrote: ↑05 Jun 2017, 16:47 Wouldn't it be possible if we had a dump variable that let you use Deep Sleep Delay X seconds (maximum 4294) and let the ESP wake up after y number of Deep Sleep Delay Cycles.
If deep sleep delay is 3600 seconds and deep sleep delay cycle is 24 then the wake up would happen once every 24 hours?
Just a thought.
Default value for cycle is 1 for backwards compatibility.
this can be a post 2.0.0 feature.
also you can just wakeup the esp manually by setting deepsleep to 0 and pulling RST to gnd to wake it up.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Deep Sleep delay issue
Yeah let's not confuse the users. Love simplicity and ESP Easy is getting closer to perfection with each commit! Good job all developers.psy0rz wrote: ↑06 Jun 2017, 13:40Yeah we could even make it easier for the user: Just let the user specify the actual sleep delay they want. If its longer than the max sleep time of the ESP, then wake up every ~4 hours until we can do the final sleep after which we do our task.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Who is online
Users browsing this forum: No registered users and 146 guests