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