Using this tutorial: ADR plugin creation example - #2 by brocaar
I have created my custom ADR lib, compiled it as separate file, then put into chirpstack server and made change in network-server-config.toml in “adr_plugin=” line.
Chirpstack network server was restarted and…?
How to check that my custom ADR lib was successfully loaded and is in use?
You can tweak this with the installation_margin setting:
# LoRaWAN network related settings.
# Installation margin (dB) used by the ADR engine.
# A higher number means that the network-server will keep more margin,
# resulting in a lower data-rate but decreasing the chance that the
# device gets disconnected because it is unable to reach one of the
# surrounded gateways.
Modifying “installation_margin” is bad solution. We have few specific locations where we have problems with Lora. With high installation_margin Chirpstack is keeping devices at low DR, transmissions are long and are interrupted by other transmissions. We found solution that sending message as fast as possible (at DR5) with high power works very well. We have prepared custom ADR lib and now we are fighting to run it in Chirpstack.
For Lora modules RN2483 Chirpstack tries to set module transmit power in range 0…7 but for 868MHz this module requires range 1…5. Our ADR lib also fixes that problem.