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

    OTAA LoPy Nanogateway to TTN - Unable to Join

    Scheduled Pinned Locked Moved LoPy
    lopyttnttn gatewayas923unable join
    1 Posts 1 Posters 1.1k Views 1 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
      sh4nnongoh
      last edited by

      Hi,

      Is there a working example for interaction with the Things Network using AS923?

      I have 2 LoPys with each acting as an OTAA node and a nano gateway node respectively.
      I modified the following files as follows,

      config_py:

      SERVER = 'router.as.thethings.network'
      LORA_FREQUENCY = 923200000
      LORA_DR = "SF10BW125"

      nanogateway_py:

      RX_PK = {"rxpk": [{"time": "", "tmst": 0,
      "chan": 2, "rfch": 0,
      "freq": 923.2, "stat": 1,
      "modu": "LORA", "datr": "SF10BW125",
      "codr": "4/5", "rssi": 0,
      "lsnr": 0, "size": 0,
      "data": ""}]}

      OTAA/main.py:

      for channel in range(0, 72):
      lora.remove_channel(channel)

      for i in range(0, 16):
      lora.add_channel(i, frequency=923200000, dr_min=0, dr_max=4) #not sure why cannot set DR5

      The JOIN_REQUEST & JOIN_ACCEPT messages have been successfully generated. However, my OTAA node is unable to join the network.

      0_1495957213042_upload-8bac8a53-2805-4984-bcb8-fc7477c08da8

      Please advise, thank you.

      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