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

    LoRa Nano-Gateway Set Up Help

    Scheduled Pinned Locked Moved LoPy
    lopylorawan nano gwlora gatewaylora
    5 Posts 2 Posters 1.6k 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.
    • A Offline
      az311
      last edited by

      Hello All,

      I have been running into an issue with running example 5.3.4. I'm using the example parts exactly as provided by the guide but have been running into this error. I would really appreciate if someone can shed some light on this issue.

      Thanks in advance

      0_1514394805966_546a8836-92e3-4f61-ba7f-060fa2d2029d-image.png

      X 1 Reply Last reply Reply Quote 0
      • X Offline
        Xykon administrators @az311
        last edited by

        @az311 Even though you're not running the latest firmware, we didn't make any changes to the code recently and it's running fine on my LoPy with the current version.

        I suggest you double-check your code around line 16 in main.py.

        You can also post the code here, with the following formatting:

        ``` python
        <paste your code>
        ```

        Christian Ehlers

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          az311
          last edited by

          Hello Thank you for your feedback. The code is per below and exactly as in the example provided. Thank you.

          
          """ LoPy LoRaWAN Nano Gateway example usage """
          
          import config
          from nanogateway import NanoGateway
          
          if __name__ == '__main__':
              nanogw = NanoGateway(
                  id=config.GATEWAY_ID,
                  frequency=config.LORA_FREQUENCY,
                  datarate=config.LORA_GW_DR,
                  ssid=config.WIFI_SSID,
                  password=config.WIFI_PASS,
                  server=config.SERVER,
                  port=config.PORT,
                  ntp_server=config.NTP,
                  ntp_period=config.NTP_PERIOD_S
                  )
          
              nanogw.start()
              nanogw._log('You may now press ENTER to enter the REPL')
              input()
          
          1 Reply Last reply Reply Quote 0
          • A Offline
            az311 @Xykon
            last edited by

            @xykon
            Hello Thank you for your feedback. The code is per below and exactly as in the example provided. Thank you.

            """ LoPy LoRaWAN Nano Gateway example usage """
            
            import config
            from nanogateway import NanoGateway
            
            if __name__ == '__main__':
                nanogw = NanoGateway(
                    id=config.GATEWAY_ID,
                    frequency=config.LORA_FREQUENCY,
                    datarate=config.LORA_GW_DR,
                    ssid=config.WIFI_SSID,
                    password=config.WIFI_PASS,
                    server=config.SERVER,
                    port=config.PORT,
                    ntp_server=config.NTP,
                    ntp_period=config.NTP_PERIOD_S
                    )
            
                nanogw.start()
                nanogw._log('You may now press ENTER to enter the REPL')
                input()
            
            1 Reply Last reply Reply Quote 0
            • X Offline
              Xykon administrators
              last edited by

              This looks like the example from 5.3.6 rather than 5.3.4

              You can get the most up2date version from our GitHub repository. The easiest way is to download an archive of the most recent version and then open the directory examples/lorawan-nano-gateway/ in either Visual Studio Code or Atom, modify config.py and upload the code to the board.

              Christian Ehlers

              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