How to modify the algorithm or strategy for selecting the gateway in ChirpStack

Viewed 23

I currently have two gateways and one node. In the picture I provided, since Chirpstack chose a gateway with poor signal, the node failed to receive the data sent by the gateway. According to your previous post, the gateway to be selected is determined based on SNR and RSSI simultaneously. However, as can be seen from the screenshot, there is a gateway with better signal, but the node chose the gateway with poor signal to issue instructions. I saw the value of "gateway_prefer_min_margin" in your source code, but I couldn't find the place to modify it in the server's background. I would like to know how Chirpstack selects the gateway algorithm and whether there is a way for users to modify this algorithm. Because I didn't find any option to modify this strategy in Chirpstack.

image.png

image.png

image.png

image.png

1 Answers

In your region_XXXXX.toml file, you can put this gateway_prefer_min_margin configuration under [regions.network]