Comments on: ESP32 Timer Wake Up from Deep Sleep https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sat, 12 Oct 2024 10:00:25 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Steve https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/#comment-916519 Sun, 19 May 2024 21:21:19 +0000 https://randomnerdtutorials.com/?p=84115#comment-916519 The deep sleep code works fine on a Seeed XIAOESP32-C3. The problem is how do I regain control of the ESP32? The com port appears every time it wakes up but almost instantly vanishes, leaving no time to upload new code

]]>
By: Euan https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/#comment-891344 Thu, 15 Feb 2024 01:45:32 +0000 https://randomnerdtutorials.com/?p=84115#comment-891344 This will disable the wakeup time. Change the source for any other wake up trigger.

esp_sleep_disable_wakeup_source(ESP_SLEEP_WAKEUP_TIMER);

]]>
By: dailigon https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/#comment-784755 Tue, 20 Sep 2022 13:27:14 +0000 https://randomnerdtutorials.com/?p=84115#comment-784755 Hello, I would like to know whether it is possible to turn off the timer wake up once enabled (if the battery is too low, to not destroy it).

]]>
By: bongo https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/#comment-718010 Mon, 10 Jan 2022 06:55:10 +0000 https://randomnerdtutorials.com/?p=84115#comment-718010 In reply to bongo.

in the mean time, i found a solution:
using RTC_NOINIT_ATTR instead of RTC_DATA_ATTR does the job.

]]>
By: bongo https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/#comment-717557 Fri, 07 Jan 2022 14:47:25 +0000 https://randomnerdtutorials.com/?p=84115#comment-717557 as i get a reboot from time to time (for no known reason, it’s reported as SW_CPU_RESET for both cores), i tried to put all data that should survive a reboot in rtc ram by defining them as globals with RTC_DATA_ATTR in front.
to check out if it works, i used ESP.restart() to force a reboot after data has been configured.
unfortunately, my data reads back as 0 instead of the previously configured value.
shouldn’t this work?

]]>
By: Fred Verhoeckx https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/#comment-599643 Sun, 02 May 2021 11:19:30 +0000 https://randomnerdtutorials.com/?p=84115#comment-599643 In reply to Fred Verhoeckx.

Hi,

Problem solved by moving my include lines to the top of the code.
I did this after reading the comment of Sergi (add #include Arduino.h).

Still, it puzzles me: why does the site example not need to include Arduino.h ? And why does my own code need it??

Fred

]]>
By: Fred Verhoeckx https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/#comment-599636 Sun, 02 May 2021 11:13:20 +0000 https://randomnerdtutorials.com/?p=84115#comment-599636 In reply to Shashi Kiran.

Hi, any progress on this behaviour????

I get the same error, I use the timer wake-up sketch on a WiFi Lora 32(V2) board. The timer sketch, directly taken from the sample runs OK. Also when I re-compile it.

When I copy the first lines (up to and including the print_wakeup_reason() procedure into my own sketch, the compiler states: ‘RTC_DATA_ATTR’ does not name a type.

I thought that it could have something to do with the board still cycling the timer wake-up sketch, but as the original sketch compiles OK, this cannot be the cause.

]]>
By: Jordan https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/#comment-535365 Thu, 31 Dec 2020 15:55:14 +0000 https://randomnerdtutorials.com/?p=84115#comment-535365 I would like to put my esp32 into deep sleep with a timer. Currently esp 32 exposes an api which is called every 20 minutes. I would like to put him to sleep for 19 minutes, allow the api to respond and then put him back to sleep. I’ve seen your example but it doesn’t use the loop method. In my loop method there is the server.handleClient () statement; and with the sleep timer it is never called. how can i solve? Thanks to those who will answer

]]>
By: Jordan https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/#comment-535339 Thu, 31 Dec 2020 14:54:27 +0000 https://randomnerdtutorials.com/?p=84115#comment-535339 I would like to put my esp32 into deep sleep with a timer. Currently esp 32 exposes an api which is called every 20 minutes. I would like to put him to sleep for 19 minutes, allow the api to respond and then put him back to sleep. I’ve seen your example but it doesn’t use the loop method. In my loop method there is the server.handleClient () statement; and with the sleep timer it is never called. how can i solve? Thanks to those who will answer

]]>
By: Thomas https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/#comment-532800 Thu, 24 Dec 2020 08:48:50 +0000 https://randomnerdtutorials.com/?p=84115#comment-532800 anyone knows how to disable the timer function in the code?
(i have to use the eneble function earlier)

]]>