Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Hibernation mode

    Scheduled Pinned Locked Moved Discussion
    3 Posts 2 Posters 34 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L Offline
      livius
      last edited by

      Hi

      is there a way to go into hibernation mode?
      I see in documentation only lowest mode as deepsleep but i need hibernation.

      think about people first, then computers

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @livius
        last edited by

        @livius The ESP32 documentation does not distinguish between hibernation and deep sleep. It's just a matter of which wake up sources are configured, and thus which parts of the chip are kept running or not (ULP, RTC memory, RTC timers...).

        Most of that is automatic at the ESP-IDF level, so since ULP is not used, and pin wake up uses ext1, you're probably already close to the lowest power mode (ULP off, RTC peripherals off). There seem to be a few things stored in RTC memory via RTC_DATA_ATTR, though, so this means it's supposed to be kept on.

        To be sure you can try to modify the firmware to call esp_sleep_pd_config before going to deep sleep (esp32/mods/modmachine.c, around line 473), setting all domains to OFF, to see if that changes anything. It might break some functionality such as wake reason, remaining time, and so on, though.

        Note also that behaviour varies slightly depending on the ESP32 revision, I'm not quite sure which Pycom devices use what revision.

        L 1 Reply Last reply Reply Quote 1
        • L Offline
          livius @jcaron
          last edited by livius

          @jcaron
          Yes, i know that many infos are lost then.
          But i have suppoesd that there is currently a way from python code but only i miss it ;-)

          here is good overview of modes:
          https://lastminuteengineers.com/esp32-sleep-modes-power-consumption/
          and this one about what to modify to take hibernation
          https://esp32.com/viewtopic.php?t=3083

          think about people first, then computers

          1 Reply Last reply Reply Quote 1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom