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.join never completes on OTAA example

    Scheduled Pinned Locked Moved FiPy
    lorawanfipyotaa
    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.
    • D Offline
      don
      last edited by

      The OTAA example is never returning from lora.join on line 32. Timeout is 0 so I think this should return immediately and continue executing?

      # config.py
      LORA_FREQUENCY = 903900000
      LORA_GW_DR = "SF7BW125" # DR_3
      LORA_NODE_DR = 0 # must be 0 or 4
      

      I'm seeing this problem trying to connect to a LoPy Gateway running lorawan-nano-gateway on The Things Network and a Multitech Gateway connected to MachineQ. The LoPy is connected to TNN but reports Messages Received as 0. The MachineQ log doesn't show any messages from this FiPy device.

      Does the lorawan-nano-gateway example code work with the latest firmware?

      MicroPython v1.8.6-849-83e2f7f on 2018-03-19; FiPy with ESP32

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @don
        last edited by

        @don The lorawan-nano-gateway example runs only with revision 1.17.3.b1. It does not work with earlier revisions. But I do not understand your setup.
        Do you use the LoPy as a end device (mote) or as gateway?

        Besides that, I use a LoPy as gateway (and a FiPy as a mote), with some minor tweaks to the gateway example. You'll find that here: https://github.com/robert-hh/pycom-libraries/blob/nanogateway/examples/lorawan-nano-gateway/nanogateway.py
        It runs pretty stable.

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          don @robert-hh
          last edited by

          @robert-hh I have a LoPy as a TNN gateway, a FiPy is a mote. I can't get any devices to join the LoPy gateway. I'll see if I can downgrade the LoPy to 1.17.3.b1 and use your code to get things working with TNN.

          I have 2nd FiPy mote I'm trying to add to Multitech gateway attached to a MachineQ network. I'm able to add a Arduino MRK1300 to that gateway, but the FiPy hangs on the lora.join.

          For now I'll see if I can get the LoPy gateway working with your code.

          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @don
            last edited by

            @don said in lora.join never completes on OTAA example:

            I'll see if I can downgrade the LoPy to 1.17.3.b1
            1.17.3b1 is the most recent revision of the Pycom firmware. So you just have to update to the latest version.

            1 Reply Last reply Reply Quote 0
            • D Offline
              don
              last edited by

              @robert-hh I got my FiPy nodes working with both The Things Network and Comcast MachineQ. To get it to work, I removed the code that modifies the channels before the connection https://github.com/pycom/pycom-libraries/blob/master/examples/lorawan-nano-gateway/otaa_node_US915.py#L23-L29

              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