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

    Wake up from deep sleep

    Scheduled Pinned Locked Moved LoPy
    2 Posts 2 Posters 255 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.
    • A Offline
      abhishek2101
      last edited by

      What is best way to wake up lopy4 from deep sleep at regular intervals say for eg every 60 minutes and send the data. After sending the data it should go back to deep sleep again. Since these are remote devices conserving power is very important.

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

        @abhishek2101 Not sure I understand the question? Just set up deep sleep to wake up after 60 minutes.

        If you are using "native" deep sleep (machine.deepsleep), then just pass the sleep time as an argument to machine.deepsleep. The argument is in milliseconds, so 60 minutes would be 60 * 60 * 1000.

        If you are using PyTrack/PySense/PyScan-controlled deep sleep (py.go_to_sleep), then pass the sleep time as an argument to setup_sleep. The argument is in seconds, so 60 minutes would be 60 * 60.

        When you wake up, do your thing, then go back to sleep.

        The details of what you should do while awake (especially in terms of network) depends a lot on the network used and many parameters, but this has been covered a lot in various topics in this forum, including some you initiated. You should probably go re-read the answers that were made to your previous questions.

        1 Reply Last reply Reply Quote 0

        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