LoRaWAN ADR howto



  • ADR (Adaptive Data Rate) is one of the most important feature of LoRaWAN. In production environment with large number of devices it is a must have feature and if enabled, dramatically can increase network performance and also helps to reduce power consumption of devices.

    ADR must be enabled in the device, by default it is disabled. Its status is shown in the network server:

    0_1502077314687_upload-80ace842-c850-488a-a572-2c194a993dd2

    When enables, Network Server send a MAC command to the device which contains the new DR value based on radio frequency parameters and a list of multi SF channels to use for ADR. This procedure requires that all channels on this list must be configured in LoPy, otherwise LoPy sends an error message to the LoRaWAN Network Server and do not change DR. Normally in EU production networks using the Semtech 8-channel frequency plan, while LoPy has only the 3 three mandatory channels enabled. Using ABP join, device has no information about the server/gateway channel plan, you must setup a matching channel set yourself. For an EU863-870 network add these lines to your program:

    0_1502077932956_upload-ceb75ea9-8c1a-4897-a92f-95a761ffb69f

    Now ADR will work. It is tested, LoPy was set to SF7 in a short time when configured to SF12, placed next to a GW, see RSSI/SNR on the first picture.

    Test was done with a LORIOT Network Server using 1.7.8.b1 PyCom firmware. For US915 and other regions, check band plan of your network and configure multi SF channels accordingly.

    Please note, LoRaWAN Specification doesn't describe how to calculate DR, it is up to the Network Server implementation and may vary server by server. It may require fine tuning of min/max DR settings for a specific device.

    Next we will test ADR with OTAA.



  • It is worth noting that LoPy node with multi-frequencies and ADR needs a proper LoRaWan gateway (with multi-frequencies and multi-SF).

    Not the LoPy LoRaWan nano-gateway which isn't certified as LoRaWan gateway.


Log in to reply
 

Pycom on Twitter