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 Nanogateway - is NTP sync necessary?

    Scheduled Pinned Locked Moved LoPy
    5 Posts 3 Posters 356 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.
    • T Offline
      tsemwal
      last edited by

      I have two LoPys -

      1. LoPy1.0 as nanogateway and connected to a RPi3 running a chirpstack.io (or loraserver.io) LoRaWAN server.
      2. LoPy4.0 end node sending packets every 5 secods over OTAA.

      Since there is no internet on RPi3, I removed the NTP sync lines from the nanogateway.py file.

      The gateway connects and the node also joins the network.

      I can see the data on the RPi3 BUT I do not see them at the required rate i.e. 5 seconds. The packets are received in an interval ranging from 20 seconds to more than 1 minutes. i.e., I can guess there are some losses. At the application side, the time on RX packet is in 1970s. Does this matter?

      The clock at RPi3 is also not set to current local time.

      My question is does NTP sync causing this behaviour OR am I missing something?

      I have gone through all the issues in the pycom forum but nothing solves my problem.

      robert-hhR J 2 Replies Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @tsemwal
        last edited by

        @tsemwal The LoRaWAN messages do not include the time. Given that, the ntp-sync is not required for the LoraWAN communication.
        It just happened here that after a power outage my Lora Gateways started with a wrong time. That does not stop them from working.

        1 Reply Last reply Reply Quote 0
        • T Offline
          tsemwal
          last edited by

          Thanks @robert-hh . As you said ntp-sync is not the issue, I was able to focus on other areas and finally able to solve my problem. I was using my own code at the end node side which does not remove channels. I switched to the code provided by PyCom.

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

            @tsemwal one frame every 5 seconds? Which region are you in? What data rate/spreading factor are your using? Which channel(s)/frequency(ies)? What’s the size of your frames?

            In many combinations this could be way above regulations.

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              tsemwal @jcaron
              last edited by

              @jcaron Yes, I know, just used it for few minutes for testing.

              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