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

    RTC sync not working

    Scheduled Pinned Locked Moved LoPy
    2 Posts 2 Posters 68 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.
    • S Offline
      Stephan Trattner
      last edited by Stephan Trattner

      Hi all,

      I am trying to get my 8-chan gateway extension board with a LoPy4.0 up and running, but i am running into this issue over and over again:

      When reseting, and even after safe rebooting and reuploading the code, the board gets stuck in syncing with the ntp.
      Does anyone have an idea how to solve this?

      This is the corresponding terminal output from visual studio code:

      Pybytes Version: 1.6.1
      Type "help()" for more information.
      Uploading project (main folder)...
      Not safe booting, disabled in settings
      Uploading to /flash...
      Reading file status
      [1/1] Writing file main.py (1kb)
      Upload done, resetting board...
      OKWMAC: F008D1CBCD24
      Firmware: 1.20.2.r4
      Pybytes: 1.6.1
      Initialized watchdog for WiFi and LTE connection with timeout 1260000 ms
      WiFi connection established
      Connected to MQTT mqtt.pybytes.pycom.io
      Pybytes connected successfully (using the built-in pybytes library)
      Pybytes configuration read from /flash/pybytes_config.json

      Starting LoRaWAN concentrator
      Connecting to WiFi... OK
      Syncing RTC via ntp............

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        Hi,
        First of all, we do not recommend running the Pygate in combination with Pybytes. Could you use the following to disable the pybytes on boot:

        import pycom
        pycom.pybytes_on_boot(False)
        

        Next, check if your network is allowed to connect to the ntp server listed in the file (rtc.ntp_sync(server="pool.ntp.org"))

        And make sure you're using the Pygate version of the micropython firmware (you can look for the pygate version in os.uname()

        Let me know
        Gijs

        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