I’ve been testing several end devices and no matter what I try ADR info is never added to Downlink or ACK message generated by server.
Devices are using 1.0.2 Region paraamters (SF12 and SF11 were added to Data rate in that version).
Yes, I’ve let device to do 20-30 uplinks before setting ADR flag on uplink packet expecting that ADR will optimize data rate.
I’ve done some analysis of trace on gateway and what is common is that error is reported by the trace and it seems to be related to “link-adr” command. Error is “the given data-rate does not exist”.
Only that portiion of the trace is listed bellow.
Would anyone be in a position to clarify what is the cause of this and where that message originates from ?
359.57ms networkserver ttn-networkserver-eu set ack
360.11ms networkserver ttn-networkserver-eu schedule mac command
cmd:link-adr
reason:initial
360.32 ms networkserver ttn-networkserver-eu mac error
cmd:link-adr
error:lorawan/band: the given data-rate does not exist
362.13ms broker ttn-broker-eu forward
handler:ttn-handler-eu
This happens on several devices that I’ve tried. They are custom made STM32+SX1276 bare metal devices running official Semtech stack. One that I have most control of is actually STM32L100 discovery board wired to Modtronix SX1276 915 device and it is running Mbed.
I am 100% certain that all devices operate OK. As uplink and downlinks are working reliably.
Setting request for ACK works fine and I can see messages coming back to device.
Issue is that ADR info never comes back so devices are stuck on SF12.
These issues have indeed been caused by the fact that our server used to implement the (revoked) 1.0.1 (also called 1.0.2RevA) Regional Parameters. I’ve prepared a fix that updates our implementation to 1.0.2 (RevB), which I hope we can deploy early next week.
Let us know when you’ve applied your fixes so we can test it here in AU.
Also, another thing comes to mind is that even 1.0.1 might be revoked there still might be some devices in a field that are using it. As it is right now my understanding is that ADR on TTN works for devices using 1.0.1 band plan but not 1.0.2.
Are your fixes going it cater for both 1.0.1 and 1.0.2 or only 1.0.2 (E.g. if device joined at SF12 it is 1.0.2 and if it joined on SF10 it is runing 1.0.1 band plan) ?
We just deployed the patches to the “meshed” region of the public community network. Let us know if this solves your issues.
Unfortunately, our v2 stack isn’t able to work with “mixed” versions of LoRaWAN and the Regional Parameters specification, so from now on we only support v1.0.2 (RevB). In our upcoming v3 stack, it will be possible to select the LoRaWAN and Regional Parameters version for each device that you register.
It doesn’t seem that ADR is working at all on AU915. 1.0.02b
I’ve restarted device,
It joined network at SF12 and it stays there despite ADR info being requested.
Question:
Have you updated “ttn-handler-eu” or “meshed-handler” or both ?
Our test application uses “ttn-handler-eu”.
I’ve waited for 30+ uploads and server traces are still showing “given data-rate does not exist” as before.
Here is an example of trace section around set-ack.
360.29 ms networkserver ttn-networkserver-eu set ack
361.02 ms networkserver ttn-networkserver-eu schedule mac command
cmd:link-adr
reason:initial
361.47 ms networkserver ttn-networkserver-eu mac error
cmd:link-adr
error:lorawan/band: the given data-rate does not exist
363.94 ms broker ttn-broker-eu forward
handler:ttn-handler-eu
366.1 ms handler ttn-handler-eu receive
Ok. This means that I’ll have to reregister at least on of my apps to point to meshed-handler.
Will do it tonight and will let you know as soon as I test it.
Should work…, i have read that very often in the last days since searching for solutions of the problem, but it seems that no one has a working node which uses LMIC and ADR. It’s little bit frustrating at the moment, i will try your suggestions and post more screenshots from the TTN console.