wklenk / lmic-rpi-lora-gps-hat

Hardware Abstraction Layer (HAL) for IBM's LMIC 1.6 communication stack targeted to RPi and Dragino LoRA/GPS HAT.
Other
46 stars 48 forks source link

Connection with a Kerlink Gateway #8

Open chauvinf opened 6 years ago

chauvinf commented 6 years ago

Hi, I am trying to connect my rpi device to a Kerlink gateway thanks to the dragino hat and the work you provided. During my tests, when I run the join program, I can see that this one succeed in the state JOINED and just after returns to the state JOINING and then, on the gateway side I can't see the sending messages in the RX windows. I just wanted to know your gateway configuration (maybe with the different channels). Thank you for your work on the HAL.

wklenk commented 6 years ago

Hello, good to hear from someone using this stuff. Unfortunatelly, I don't quite understand what your problem is: You can see a "JOINED" debug message, so everything should be okay. But why should the LMIC stack return to state "JOINING" ? That makes no sense to me. Once the LMIC stack has joined the LoRaWAN network, there is no need to join again (except you intentionally want to do this). Could you try to state your issues in other words?

About the gateway configuration: At home I use a LoRa gateway based on a RPi and a IMST iC880a board. I think you can find the configuration here on github: https://github.com/ttn-zh/packet_forwarder/blob/master/poly_pkt_fwd/global_conf.json

chauvinf commented 6 years ago

Hi, thank you for your quick response. I will try to explain my problem in other words. I can see the event Joined but it automatically returns to the event Joining at the same time (same time number in the output window). I have put your code without changes and it does this action again like in a loop.