ADR is on but DR stays at 0 (SF12) with loraserver 2.5.1 (working with loraserver 0.18.2)


#1

I have a node running STM32LRWAN 1.2.1

If I connect the gateway to lora-server/lora-app-server 0.18.2 then the DR is managed correctly (it goes to SF7) while if I connect the same gateway to lora-server/lora-app-server 2.5.1 then DR is stuck to 0 (SF12). With lora-server 2.5.1 I see that the network server is instructed to send DR=5 request:
Mar 06 09:44:11 y-server loraserver[1485]: time=“2019-03-06T09:44:11Z” level=info msg=“adr request added to mac-command queue” dev_eui=0101010101190015 dr=0 nb_trans=1 req_dr=5 req_nb_trans=1 req_tx_power_idx=3 tx_power=0 anyway the node stays at DR=0. I don’t understand why it was working with old (0.18.2) loraserver.

LORASERVER 0.18.1

gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:928581284,“frequency”:868500000,“channel”:2,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-54,“loRaSNR”:9.2,“size”:23,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“AAEBAQEBAQEBFQAZAQEBAQEsGLULwgw=”}
application/30/node/0101010101190015/join {“applicationID”:“30”,“applicationName”:“ThermalCamera”,“deviceName”:“Infrared Camera 0015”,“devEUI”:“0101010101190015”,“devAddr”:“0705553b”}
gateway/00800000a0002529/tx {“token”:20052,“txInfo”:{“mac”:“00800000a0002529”,“immediately”:false,“timestamp”:933581284,“frequency”:868500000,“power”:14,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“codeRate”:“4/5”,“iPol”:null,“board”:0,“antenna”:0},“phyPayload”:“ILfSjRl1FRoiNMzrJTZhruc=”}
gateway/00800000a0002529/ack {“mac”:“00800000a0002529”,“token”:20052}
gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:937738387,“frequency”:868100000,“channel”:0,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-89,“loRaSNR”:5.8,“size”:43,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:7,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“gGZYAwKAwAICjYwplsFDga8h1IOp4pupMGbdvEAs1Skk9qten/x7AIMa0Q==”}
gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:938433004,“frequency”:868300000,“channel”:1,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-40,“loRaSNR”:8.5,“size”:18,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“QDtVBQeAAQACL09M8MIczdI9”}
application/30/node/0101010101190015/rx {“applicationID”:“30”,“applicationName”:“ThermalCamera”,“deviceName”:“Infrared Camera 0015”,“devEUI”:“0101010101190015”,“rxInfo”:[{“mac”:“00800000a0002529”,“rssi”:-40,“loRaSNR”:8.5,“name”:“00800000a0002529”,“latitude”:0,“longitude”:0,“altitude”:0}],“txInfo”:{“frequency”:868300000,“dataRate”:{“modulation”:“LORA”,“bandwidth”:125,“spreadFactor”:12},“adr”:true,“codeRate”:“4/5”},“fCnt”:1,“fPort”:2,“data”:“wAMEBQY=”,“object”:null}
gateway/00800000a0002529/tx {“token”:58366,“txInfo”:{“mac”:“00800000a0002529”,“immediately”:false,“timestamp”:939433004,“frequency”:868300000,“power”:14,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“codeRate”:“4/5”,“iPol”:null,“board”:0,“antenna”:0},“phyPayload”:“YDtVBQeFAAADUQcAARVvlBQ=”}
gateway/00800000a0002529/ack {“mac”:“00800000a0002529”,“token”:58366}
gateway/00800000a0002529/stats {“mac”:“00800000a0002529”,“time”:“2019-03-06T09:28:26Z”,“rxPacketsReceived”:3,“rxPacketsReceivedOK”:3,“txPacketsReceived”:2,“txPacketsEmitted”:2,“customData”:{“ip”:“172.30.0.116”}}
gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:947169643,“frequency”:868100000,“channel”:0,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-46,“loRaSNR”:10.5,“size”:20,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:7,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“QDtVBQeCAgADBwIsgfhm+pVyIt8=”}
application/30/node/0101010101190015/rx {“applicationID”:“30”,“applicationName”:“ThermalCamera”,“deviceName”:“Infrared Camera 0015”,“devEUI”:“0101010101190015”,“rxInfo”:[{“mac”:“00800000a0002529”,“rssi”:-46,“loRaSNR”:10.5,“name”:“00800000a0002529”,“latitude”:0,“longitude”:0,“altitude”:0}],“txInfo”:{“frequency”:868100000,“dataRate”:{“modulation”:“LORA”,“bandwidth”:125,“spreadFactor”:7},“adr”:true,“codeRate”:“4/5”},“fCnt”:2,“fPort”:2,“data”:“wAMEBQY=”,“object”:null}
gateway/00800000a0002529/tx {“token”:43581,“txInfo”:{“mac”:“00800000a0002529”,“immediately”:false,“timestamp”:948169643,“frequency”:868100000,“power”:14,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:7,“bandwidth”:125},“codeRate”:“4/5”,“iPol”:null,“board”:0,“antenna”:0},“phyPayload”:“YDtVBQeFAQADUwcAAel4DgA=”}
gateway/00800000a0002529/ack {“mac”:“00800000a0002529”,“token”:43581}
gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:957168619,“frequency”:868100000,“channel”:0,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-49,“loRaSNR”:9.5,“size”:20,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:7,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“QDtVBQeCAwADBwKRLNo4VYc/p40=”}
application/30/node/0101010101190015/rx {“applicationID”:“30”,“applicationName”:“ThermalCamera”,“deviceName”:“Infrared Camera 0015”,“devEUI”:“0101010101190015”,“rxInfo”:[{“mac”:“00800000a0002529”,“rssi”:-49,“loRaSNR”:9.5,“name”:“00800000a0002529”,“latitude”:0,“longitude”:0,“altitude”:0}],“txInfo”:{“frequency”:868100000,“dataRate”:{“modulation”:“LORA”,“bandwidth”:125,“spreadFactor”:7},“adr”:true,“codeRate”:“4/5”},“fCnt”:3,“fPort”:2,“data”:“wAMEBQY=”,“object”:null}
gateway/00800000a0002529/tx {“token”:31761,“txInfo”:{“mac”:“00800000a0002529”,“immediately”:false,“timestamp”:958168619,“frequency”:868100000,“power”:14,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:7,“bandwidth”:125},“codeRate”:“4/5”,“iPol”:null,“board”:0,“antenna”:0},“phyPayload”:“YDtVBQeFAgADVQcAAdPigdE=”}
gateway/00800000a0002529/ack {“mac”:“00800000a0002529”,“token”:31761}
gateway/00800000a0002529/stats {“mac”:“00800000a0002529”,“time”:“2019-03-06T09:28:46Z”,“rxPacketsReceived”:2,“rxPacketsReceivedOK”:2,“txPacketsReceived”:2,“txPacketsEmitted”:2,“customData”:{“ip”:“172.30.0.116”}}
gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:967167563,“frequency”:868300000,“channel”:1,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-54,“loRaSNR”:9.2,“size”:20,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:7,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“QDtVBQeCBAADBwJXoMuigDXzF9I=”}
application/30/node/0101010101190015/rx {“applicationID”:“30”,“applicationName”:“ThermalCamera”,“deviceName”:“Infrared Camera 0015”,“devEUI”:“0101010101190015”,“rxInfo”:[{“mac”:“00800000a0002529”,“rssi”:-54,“loRaSNR”:9.2,“name”:“00800000a0002529”,“latitude”:0,“longitude”:0,“altitude”:0}],“txInfo”:{“frequency”:868300000,“dataRate”:{“modulation”:“LORA”,“bandwidth”:125,“spreadFactor”:7},“adr”:true,“codeRate”:“4/5”},“fCnt”:4,“fPort”:2,“data”:“wAMEBQY=”,“object”:null}
gateway/00800000a0002529/tx {“token”:14980,“txInfo”:{“mac”:“00800000a0002529”,“immediately”:false,“timestamp”:968167563,“frequency”:868300000,“power”:14,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:7,“bandwidth”:125},“codeRate”:“4/5”,“iPol”:null,“board”:0,“antenna”:0},“phyPayload”:“YDtVBQeFAwADVwcAAUaUdAM=”}
gateway/00800000a0002529/ack {“mac”:“00800000a0002529”,“token”:14980}

LORASERVER 2.4.1

06.03.2019 09:37:01 gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:115229260,“frequency”:868300000,“channel”:1,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-58,“loRaSNR”:13,“size”:23,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“AAEBAQEBAQEBFQAZAQEBAQEddTMj67k=”}
06.03.2019 09:37:01 gateway/00800000a0002529/tx {“token”:58503,“txInfo”:{“mac”:“00800000a0002529”,“immediately”:false,“timestamp”:120229260,“frequency”:868300000,“power”:14,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“codeRate”:“4/5”,“iPol”:true,“board”:0,“antenna”:0},“phyPayload”:“IOHkeLgnMiBh9kJCemLfWSk=”}
06.03.2019 09:37:01 gateway/00800000a0002529/ack {“mac”:“00800000a0002529”,“token”:58503}
06.03.2019 09:37:08 gateway/00800000a0002529/stats {“mac”:“00800000a0002529”,“time”:“2019-03-06T09:35:52Z”,“rxPacketsReceived”:1,“rxPacketsReceivedOK”:1,“txPacketsReceived”:1,“txPacketsEmitted”:1,“customData”:{“ip”:“172.30.0.116”}}
06.03.2019 09:37:11 gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:125082940,“frequency”:868500000,“channel”:2,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-38,“loRaSNR”:9.2,“size”:18,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“QIrVkgGAAQACWYjjZCZLqM4U”}
06.03.2019 09:37:11 application/165/device/0101010101190015/join {“applicationID”:“165”,“applicationName”:“InfraredCameraGroup”,“deviceName”:“Infrared Camera 0015”,“devEUI”:“0101010101190015”,“devAddr”:“0192d58a”}
06.03.2019 09:37:11 application/165/device/0101010101190015/rx {“applicationID”:“165”,“applicationName”:“InfraredCameraGroup”,“deviceName”:“Infrared Camera 0015”,“devEUI”:“0101010101190015”,“txInfo”:{“frequency”:868500000,“dr”:0},“adr”:true,“fCnt”:1,“fPort”:2,“data”:“wAMEBQY=”,“object”:{“dataHex”:“c003040506”,“message”:“Raw message bytes”}}
06.03.2019 09:37:11 gateway/00800000a0002529/tx {“token”:25176,“txInfo”:{“mac”:“00800000a0002529”,“immediately”:false,“timestamp”:126082940,“frequency”:868500000,“power”:14,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“codeRate”:“4/5”,“iPol”:true,“board”:0,“antenna”:0},“phyPayload”:“YIrVkgGFAABbgpmt5aknWDE=”}
06.03.2019 09:37:11 gateway/00800000a0002529/ack {“mac”:“00800000a0002529”,“token”:25176}
06.03.2019 09:37:14 gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:128636188,“frequency”:868500000,“channel”:2,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-100,“loRaSNR”:8.8,“size”:23,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:9,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“AAEAAABQkU6QdRoD8I/Vs3D/YlHKcYM=”}
06.03.2019 09:37:21 gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:135081900,“frequency”:868300000,“channel”:1,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-39,“loRaSNR”:10.5,“size”:18,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“QIrVkgGAAgACzHjb5MyYGgj+”}
06.03.2019 09:37:21 application/165/device/0101010101190015/rx {“applicationID”:“165”,“applicationName”:“InfraredCameraGroup”,“deviceName”:“Infrared Camera 0015”,“devEUI”:“0101010101190015”,“txInfo”:{“frequency”:868300000,“dr”:0},“adr”:true,“fCnt”:2,“fPort”:2,“data”:“wAMEBQY=”,“object”:{“dataHex”:“c003040506”,“message”:“Raw message bytes”}}
06.03.2019 09:37:21 gateway/00800000a0002529/tx {“token”:42206,“txInfo”:{“mac”:“00800000a0002529”,“immediately”:false,“timestamp”:136081900,“frequency”:868300000,“power”:14,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“codeRate”:“4/5”,“iPol”:true,“board”:0,“antenna”:0},“phyPayload”:“YIrVkgGFAQCb0umL0Xke4R0=”}
06.03.2019 09:37:21 gateway/00800000a0002529/ack {“mac”:“00800000a0002529”,“token”:42206}
06.03.2019 09:37:28 gateway/00800000a0002529/stats {“mac”:“00800000a0002529”,“time”:“2019-03-06T09:36:12Z”,“rxPacketsReceived”:4,“rxPacketsReceivedOK”:3,“txPacketsReceived”:2,“txPacketsEmitted”:2,“customData”:{“ip”:“172.30.0.116”}}
06.03.2019 09:37:31 gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:145080868,“frequency”:868500000,“channel”:2,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-39,“loRaSNR”:9.5,“size”:18,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“QIrVkgGAAwAC8x0NqlsWcODk”}
06.03.2019 09:37:32 application/165/device/0101010101190015/rx {“applicationID”:“165”,“applicationName”:“InfraredCameraGroup”,“deviceName”:“Infrared Camera 0015”,“devEUI”:“0101010101190015”,“txInfo”:{“frequency”:868500000,“dr”:0},“adr”:true,“fCnt”:3,“fPort”:2,“data”:“wAMEBQY=”,“object”:{“dataHex”:“c003040506”,“message”:“Raw message bytes”}}
06.03.2019 09:37:32 gateway/00800000a0002529/tx {“token”:22362,“txInfo”:{“mac”:“00800000a0002529”,“immediately”:false,“timestamp”:146080868,“frequency”:868500000,“power”:14,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“codeRate”:“4/5”,“iPol”:true,“board”:0,“antenna”:0},“phyPayload”:“YIrVkgGFAgAvPUTwc8hM/IQ=”}
06.03.2019 09:37:32 gateway/00800000a0002529/ack {“mac”:“00800000a0002529”,“token”:22362,“error”:“TOO_EARLY”}
06.03.2019 09:37:32 gateway/00800000a0002529/tx {“token”:22362,“txInfo”:{“mac”:“00800000a0002529”,“immediately”:false,“timestamp”:147080868,“frequency”:869525000,“power”:14,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“codeRate”:“4/5”,“iPol”:true,“board”:0,“antenna”:0},“phyPayload”:“YIrVkgGFAgAvPUTwc8hM/IQ=”}
06.03.2019 09:37:32 gateway/00800000a0002529/ack {“mac”:“00800000a0002529”,“token”:22362}
06.03.2019 09:37:37 gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:151162580,“frequency”:868100000,“channel”:0,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-113,“loRaSNR”:2.2,“size”:43,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:11,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“gBBYAwKAFgACHKpX1C2quhTJ9xMS3MPK1AngKiQ98RdWwsW91Djw6PZU1Q==”}
06.03.2019 09:37:41 gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:155079836,“frequency”:868300000,“channel”:1,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-40,“loRaSNR”:13.2,“size”:18,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“QIrVkgGABAACfTzCSiRp0lKo”}
06.03.2019 09:37:41 application/165/device/0101010101190015/rx {“applicationID”:“165”,“applicationName”:“InfraredCameraGroup”,“deviceName”:“Infrared Camera 0015”,“devEUI”:“0101010101190015”,“txInfo”:{“frequency”:868300000,“dr”:0},“adr”:true,“fCnt”:4,“fPort”:2,“data”:“wAMEBQY=”,“object”:{“dataHex”:“c003040506”,“message”:“Raw message bytes”}}
06.03.2019 09:37:41 gateway/00800000a0002529/tx {“token”:54374,“txInfo”:{“mac”:“00800000a0002529”,“immediately”:false,“timestamp”:156079836,“frequency”:868300000,“power”:14,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“codeRate”:“4/5”,“iPol”:true,“board”:0,“antenna”:0},“phyPayload”:“YIrVkgGFAwA7DICW5ebTTUs=”}
06.03.2019 09:37:41 gateway/00800000a0002529/ack {“mac”:“00800000a0002529”,“token”:54374}
06.03.2019 09:37:48 gateway/00800000a0002529/stats {“mac”:“00800000a0002529”,“time”:“2019-03-06T09:36:32Z”,“rxPacketsReceived”:3,“rxPacketsReceivedOK”:3,“txPacketsReceived”:3,“txPacketsEmitted”:2,“customData”:{“ip”:“172.30.0.116”}}
06.03.2019 09:37:51 gateway/00800000a0002529/rx {“rxInfo”:{“mac”:“00800000a0002529”,“timestamp”:165078812,“frequency”:868500000,“channel”:2,“rfChain”:0,“crcStatus”:1,“codeRate”:“4/5”,“rssi”:-38,“loRaSNR”:10,“size”:18,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“board”:0,“antenna”:0},“phyPayload”:“QIrVkgGABQACDZSDpbnb5uML”}
06.03.2019 09:37:51 application/165/device/0101010101190015/rx {“applicationID”:“165”,“applicationName”:“InfraredCameraGroup”,“deviceName”:“Infrared Camera 0015”,“devEUI”:“0101010101190015”,“txInfo”:{“frequency”:868500000,“dr”:0},“adr”:true,“fCnt”:5,“fPort”:2,“data”:“wAMEBQY=”,“object”:{“dataHex”:“c003040506”,“message”:“Raw message bytes”}}
06.03.2019 09:37:51 gateway/00800000a0002529/tx {“token”:20579,“txInfo”:{“mac”:“00800000a0002529”,“immediately”:false,“timestamp”:166078812,“frequency”:868500000,“power”:14,“dataRate”:{“modulation”:“LORA”,“spreadFactor”:12,“bandwidth”:125},“codeRate”:“4/5”,“iPol”:true,“board”:0,“antenna”:0},“phyPayload”:“YIrVkgGFBADRviWz0WHLz6E=”}
06.03.2019 09:37:51 gateway/00800000a0002529/ack {“mac”:“00800000a0002529”,“token”:20579}


#2

What is the max DR value in your service-profile?


#3

In loraserver 0.18.2 I had 0 for min and 0 for max and ADR was working.
In loraserver 2.5.1 I tested 0 for min and 0 for max and also 0 for min and 5 for max with no luck.

This is a screenshot for loraserver 2.5.1:

P.S: I discovered I’m using loraserver 2.5.1 and in theory right now I can update to 2.6.0 if you think can be helpful


#4

There is an ADR related change in 2.6, but that is for tuning the device back when it uses a DR higher than allowed by the service-profile.

A lot has changed since the 0.x version and I suggest you to set the max. allowed data-rate properly and re-activate your device to be sure.