pycom / pycom-libraries

MicroPython libraries and examples that work out of the box on Pycom's IoT modules
330 stars 377 forks source link

otaa_node never joins #56

Open RussNelson opened 6 years ago

RussNelson commented 6 years ago

Running the current version of otaa_node.py and it never joins. I've checked and double-checked my eui and key. Gateway is in the other room, and another node is joined to it and sending data. How might I diagnose this problem? Is there any way to find out why the join is failing?

andreac commented 6 years ago

same problem. Anyone??

AlexandreLogist commented 6 years ago

Same problem

ryanfeist1 commented 6 years ago

Same here. Running on original lopy. Release 1.17.3.b1. Eventually will join (multiple minutes) but very inconsistent join times.

mtalhaf commented 6 years ago

We are currently facing the same issue. We have a LoPy4 v1.18.0 attached to a Expansion board 3 v0.0.9 acting as our LoraWan gateway and a node with a FiPy v1.18.0 attached to a Pytrack v0.0.8.

Everything is set up properly in TTN the gateway shows that its properly connected and the device is correctly configured in the application as well.

We observed that once everything is set up properly, the first time we connect the node to the gateway it joined the network almost immediately and we could see the example messages being sent through. However, upon reconnecting the device we faced the same issue where the node doesn't join the network.

We wiped everything all the devices and deleted everything from TTN and reinstalled everything from scratch and observed the same thing. It would connect and join the network first time but subsequent attempts would fail.

Investigating this a little further on TTN we can see that the Join request is sent by the device, the gateway accepts the request. But the device never gets the confirmation and keeps trying to join the network in an infinite loop.

Following is a picture of our gateway traffic: image

Attached our code as well. PyCom.zip

danspndl commented 6 years ago

Hi everyone 👋 I was able to reproduce this and looking into this problem. I'll update this issue once I have a solution.

AlexSartori commented 5 years ago

Same problem for me.

itrich commented 4 years ago

More than one year later, I'm still facing the same problem...