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