Waziup / WaziGate

Waziup LoRa Edge gateway
21 stars 20 forks source link

No downlink received with WaziHat and LMIC #134

Closed cdupont closed 2 years ago

cdupont commented 3 years ago

I don't get the downlink sent by WaziHat. WaziHat seems to send it:

2020-12-15T11:56:07.838634372Z [     ] rx: LoRa: 868.10 MHz, SF12 BW125 CR4/5, Data: QD8UASaAAgABkai8eWTB0SE=
2020-12-15T11:56:07.839043327Z [     ] received 1 packets, pushing to upstream ...
2020-12-15T11:56:07.840303162Z [     ] (-> 172.18.0.2:1700) PushData: Token: C5EF, Gateway ID: AA55A00000000000, 1 rx packets
2020-12-15T11:56:07.844161051Z [     ] (<- 172.18.0.2:1700) PushAck: Token: C5EF
2020-12-15T11:56:08.254095218Z [     ] (<- 172.18.0.2:1700) PullResp: Token: 31B5, 1 tx packet
2020-12-15T11:56:08.304252726Z [     ] waiting for packets ...
2020-12-15T11:56:08.304406683Z [     ] received packet from upstream
2020-12-15T11:56:08.305471936Z [     ] tx queue: 1 packets, next packet in 533.979481ms
2020-12-15T11:56:08.305626049Z [     ] (-> 172.18.0.2:1700) TxAck: Token: 31B5, Gateway ID: AA55A00000000000
2020-12-15T11:56:08.840179069Z [     ] tx: LoRa: 868.10 MHz, SF12 BW125 CR4/5, Data: YD8UASaMFQADBgcAAQUA0q2ECAFksglKBleBqpjSPTJe
2020-12-15T11:56:11.438466145Z [     ] tx: ok
2020-12-15T11:56:11.438662238Z [     ] tx queue: 0 packets (no pending packets)
2020-12-15T11:56:11.901229308Z [     ] waiting for packets ...

In this log, I can see a packet beeing received by WaziHat, then it sees that there is a downlink packet queued and sends it. However, it is not received by WaziDev (LMIC):

16721219: EV_TXCOMPLETE (includes waiting for RX windows)
Packet queued

This works with other concentrators.

cdupont commented 3 years ago

The reception happens at 56:07.838, and the transmission at 56:08.840 and lasts nearly 2 seconds. @j-forster is it OK?

cdupont commented 3 years ago

Downlink works with non-LMIC library, though. LMIC timings might be too precise...

cdupont commented 2 years ago

closing as obsolete (we don't use LMIC anymore)