CongducPham / LowCostLoRaGw

Low-cost LoRa IoT & gateway with SX12XX (SX1261/62/68; SX1272/76/77/78/79; SX1280/81), RaspberryPI and Arduino boards
699 stars 352 forks source link

No ACK from Gateway #210

Open aniket1002 opened 6 years ago

aniket1002 commented 6 years ago

hello @CongducPham sir, I have an issue running the ping_pong code. When i run it using no-ACK version of the code I receive the following on my serial monitor:

no_ack

And when I run it with ACK I get the following on the serial monitor: with_ack Although in both the cases my gateway displays this: 2018-06-19-120459_1824x984_scrot

what can be the issue here? how can i receive packets with ACK in ping_pong code? Looking forward to your response. Regards.

jtroeth1 commented 6 years ago

Without ACK, there is no way of knowing if the message is received, hence the Serial monitor says pong received. With ACK, the pro mini is waiting for a reply to confirm that the message was received. In both cases the message is not received by the gateway.

CongducPham commented 6 years ago

There are several issues I see from your screenshot:

1/ there is state=2 when setting power at device, it is not normal. 2/ cr=4 is not a valid option at gw, the minimum is 5 to have the 4/5 mode.

Please be sure to have the same setting at both ends.