arduino-libraries / MKRWAN

An Arduino library for sending and receiving data using LoRaWAN protocol and LoRa® radios.
https://www.arduino.cc
GNU Lesser General Public License v3.0
88 stars 60 forks source link

"FirstConfiguration" ABP not working #57

Closed nikiromagnoli closed 5 years ago

nikiromagnoli commented 5 years ago

Hello everyone,

First things first: Arduino MKRWAN 1300, firmware just updated to ARD-078 1.1.9, and MKRWAN library 1.0.10 .

For me ABP join using bare "First configuration" example fails, while OTAA 1.0 works nicely. Is it just me or that happens to you too?

facchinm commented 5 years ago

Hi @TechNyquist , this is quite strange... Which network are you trying to connect to?

nikiromagnoli commented 5 years ago

Hello @facchinm , I'm using a local dev LoRaServer framework, with two gateways. I guess the issue doesn't apply to you too, does it?

facchinm commented 5 years ago

It doesn't indeed. We tested ABP with TTN and the Arduino Pro gateway (A2A network) and they both work correctly. Probably it's a LoRaServer issue? This should be the right place to report it

nikiromagnoli commented 5 years ago

Ok, thank you for your feedback (LoRa is pretty difficult to debug), I'll ping them. I'm closing this issue and I'd reopen it whenever should the lights fall back here again. Good job.

nikiromagnoli commented 5 years ago

Ok, sorry everyone, it was my fault. I was facing a simple frame counter validation issue. Just needed to set the right counter value with "setFCU" and all worked. Thanks and sorry.

For anyone facing this on the same environment, I redirect you to this LoRaServer forum post that might give you all the required clues to understand and solve why ABP activation is not working.