This is a bug report for the Backend (and the Console).
When an unconfirmed uplink has ADR enabled and uses, say, application port 2, then when the application does not require any downlink itself, TTN might still send a DevStatusReq downlink using that port 2. I think it should then use port 0, as it's only a DevStatusReq MAC command without any application data, for which the LoRaWAN specifications state:
4.3.2 Port field (FPort)
If the frame payload field is not empty, the port field must be present. If present, an FPort value of 0 indicates that the FRMPayload contains MAC commands only; see Chapter 4.4 for a list of valid MAC commands. FPort values 1..223 (0x01..0xDF) are application-specific.
TTN Console shows the downlink is using port 0, while the payload really includes another value.
In the application data, TTN Console shows that the downlink was using port 0 (which it should, but did not, so maybe there's a bug in Console as well?):
This is a bug report for the Backend (and the Console).
When an unconfirmed uplink has ADR enabled and uses, say, application port 2, then when the application does not require any downlink itself, TTN might still send a
DevStatusReq
downlink using that port 2. I think it should then use port 0, as it's only aDevStatusReq
MAC command without any application data, for which the LoRaWAN specifications state:TTN Console shows the downlink is using port 0, while the payload really includes another value.
According to a forum post, Actility uses port 0 for the same use case.
Example:
Node sends
403A140126C0820002005629CDB1F73640BEDEF047
which is an Unconfirmed Uplink for application port 2, with theFCtrl.ADR
bit set.In the gateway traffic, TTN Console shows it's responding with
603A140126200300022A0F94A8
:603A140126200300022A0F94A8
decodes to an Unconfirmed Data Down without any application data, but withFPort
set to 2:In the application data, TTN Console shows that the downlink was using port 0 (which it should, but did not, so maybe there's a bug in Console as well?):
Environment
arjanvanb-bb-1
eui-5ccf7ff42f1970ec
router.eu.thethings.network:1700
arjanvanb-bb-1
70B3D57EF00037B4
70B3D5B020035CD1