RTC sync not working

  • 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............

  • 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

    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

Log in to reply

Pycom on Twitter