ESP32 Hibernation

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

ESP32 Hibernation

Post by MMliam » Sat Aug 20, 2022 2:22 pm

ESP32 Power Modes: https://lastminuteengineers.com/esp32-s ... nsumption/
microPython clearly supports ESP deepsleep [e.g. machine.deepsleep()].

Does microPython support ESP32 hibernation? If so what is the code?

MM

MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Re: ESP32 Hibernation

Post by MMliam » Sun Aug 21, 2022 2:52 pm

Given the lack of replies it appears that microPython does not support ESP32 hibernation-mode; however, I may have found the reason. A search of Espressif datasheets reveals that only the ESP32-S2, released in Sep 3, 2019, appears to support hibernation.

MM

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: ESP32 Hibernation

Post by davef » Sun Aug 21, 2022 7:20 pm

I found this article yesterday https://www.mischianti.org/2021/03/15/e ... rnation-3/ but didn't see that it answered the question. However, when you mentioned hibernation only applied to the S2 variant I re-read this looking for the device he was referring to. It appears to be a a Generic variant and looking at the specs he links to I don't see S2 anywhere.

In the article the reduction in current is from 10uA to 5uA using hibernation.

MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Re: ESP32 Hibernation

Post by MMliam » Mon Aug 22, 2022 2:39 pm

I generally go direct to the source when it comes to technical issues.
When I initially looked up info on the generic I thought I downloaded the Reference Manual, it was the Data-Sheet that makes no reference to hibernation; the technical reference manual does.
https://www.espressif.com/sites/default ... ual_en.pdf

Then, that begs the question (again); does micropython support hibernation?
If not, why not?

Is the answer micropython supports only the functions that are common to all ESP modules?
If so, this could be addressed with an import of an "ESP32" module with functionality unique to the ESP32.

Post Reply