RIOT-OS / RIOT

RIOT - The friendly OS for IoT
https://riot-os.org
GNU Lesser General Public License v2.1
4.97k stars 1.99k forks source link

gnrc_lorawan: downlink data might not be received when using ABP. #16962

Open jia200x opened 3 years ago

jia200x commented 3 years ago

Description

There are some scenarios where the LoRaWAN Network Server will try to negotiate RX configuration for ABP nodes using Fopts. GNRC LoRaWAN only implements a minimal sets of Fopts, so it will simply ignore some of this Fopts.

Some Network Servers such as TTNv3 or the newer version of Chirpstack will keep sending these Fopts requests until the node replies, delaying the scheduled downlink forever. Therefore, an application would never receive any downlink data under these circumstances.

This issue DOES NOT affect OTAA nodes. (and in fact, OTAA should be always preferred regardless of the issue due to security reasons.

The only solution would be to implement the following Fopts:

Exptected results

A node running examples/gnrc_lorawan should be able to receive DL frames when joining with ABP (using TTNv3 or the newest Chirpstack)

Actual results

The node will never receive a downlink under the circumstances.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.