Hi I am trying to remotely (using wifi) wake up a ESP32 WROOM device ideally from deep sleep mode but can opt for light sleep mode if no option. After it wakes up I should be able to perform OTA (Over the air firmware update) using wifi.
Can anyone please guide me if there is any example code or any way to wake up device using wifi remotely?
I did come across a statement in the latest esp32 reference manual table 156 which shows as
WAKEUP_ENA Wake-up Source Light-sleep Deep-sleep Hibernation Notes*
0x20 Wi-Fi Y - - 5
My hardware is: Sparkfun's Esp32 Thing plus
Tool : Using Arduino IDE to program
thanks in advance
How to remotely wake up and OTA esp32
Re: How to remotely wake up and OTA esp32
Hi @atif_m
have a look at this example https://github.com/espressif/esp-idf/tr ... power_save which allows the ESP32 to sleep as much as possible while still maintaining a WiFi connection. (Sorry not an Arduino example, but you should get the idea.)
Thanks
Felix
have a look at this example https://github.com/espressif/esp-idf/tr ... power_save which allows the ESP32 to sleep as much as possible while still maintaining a WiFi connection. (Sorry not an Arduino example, but you should get the idea.)
Thanks
Felix
Re: How to remotely wake up and OTA esp32
Hi @felmue,
Thank you very much for your response.
Although, that is indeed helpful. But there is a way I came across not sure how it works using which device, whenever it wakes up using normal process such as in my case it wakes up when user presses the push button and then goes back to deep sleep mode.
On each wake up request send to check on https url provided if the version number is same no update done otherwise software is updated and device goes back to deep sleep?
Any idea about that. If this can be done we can use any sleep mode without need to keep wifi awake other than when device wakes up.
Regards
Atif
Thank you very much for your response.
Although, that is indeed helpful. But there is a way I came across not sure how it works using which device, whenever it wakes up using normal process such as in my case it wakes up when user presses the push button and then goes back to deep sleep mode.
On each wake up request send to check on https url provided if the version number is same no update done otherwise software is updated and device goes back to deep sleep?
Any idea about that. If this can be done we can use any sleep mode without need to keep wifi awake other than when device wakes up.
Regards
Atif
Who is online
Users browsing this forum: No registered users and 125 guests