Make order of SX1301 config generated from multiple frequency plans deterministic #6614
Closed
4 tasks done
Labels
bug
Something isn't working
c/gateway server
This is related to the Gateway Server
in progress
We're working on it
Milestone
Summary
When multiple frequency plans are set for a gateway, the order in which those plans are used to generated the
SX1301
configuration for is in theory important since that is the order in which the gateway concentrators are configured.However, since we
Ref: #6580 (comment)
Steps to Reproduce
Current Result
There are two possibilites of
router_config
sent to the gateway.OR
(You can compare the frequency set on
radio_0
orradio_1
for the first item of thesx1301_conf
array as reference)One of these two is randomly sent to the gateway. This means that the FP:Concentrator mapping is not deterministic.
Expected Result
The order of the
sx1301_conf
should be the same and should match the order in which the--frequency-plan-ids
field of the gateway was set.Relevant Logs
No response
URL
No response
Deployment
The Things Stack Enterprise (self-hosted)
The Things Stack Version
3.27.2
Client Name and Version
Other Information
NA
Proposed Fix
The fix is pretty straightforward.
Change the gatewayFPs field in the connection from a map to an slice and update occurrences and tests.
Contributing
Code of Conduct
The text was updated successfully, but these errors were encountered: