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

    LoPy - getting datetime after power interrupt

    Scheduled Pinned Locked Moved LoPy
    lopygpslora
    3 Posts 3 Posters 1.0k Views 3 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.
    • G Offline
      gdillen
      last edited by

      Hi,

      When having a (battery) power interrupt one can possibly use a cheap GPS module connected to the LoPy to get the correct datetime (and enter in the RTC) when power is again available. Is/are there other ways to get the datetime after a power interrupt: e.g. is it possible to get the datetime from the concentrator/gateway?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • R Offline
        robmarkcole
        last edited by

        Any ideas?

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          timh @robmarkcole
          last edited by

          @robmarkcole choices I see other than from GPS are

          1. use a real battery backed up RTC (maybe via i2c https://www.sparkfun.com/products/12708).

          2. get the time from network on startup.
            obviously NTP works with Cat-M1 and Wifi if you have an internet connection.
            It appears you could send date/time via downlink on sigfox, but due to rate limitations you would probably need to explicitly request time on boot.
            Lorawan - you would need to provide a time service. It doesn't appear to be in the protocol spec, and traversal time would mean time is a bit wrong if you hop through nodes.

          Option 1 would probably be the best option in my opinion. Works without a network if datetime/set correctly initially.

          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