Description
With ChirpStack, it's easy to set up a channel plan that disables all 500 kHz channels by putting the following in chirpstack-network-server.toml
:
[network_server.network_settings]
enabled_uplink_channels=[0, 1, 2, 3, 4, 5, 6, 7]
In this case, ChirpStack sends a MAC downlink with two LinkADRReq
commands.
The first one disables all 125 kHz channels, and disables all 500 kHz channels.
The second enables channels 0-7.
The LMIC, rejects the first command as invalid, due to code here:
arduino-lmic/src/lmic/lmic_us_like.c
Lines 118 to 126 in 26326e4
This makes the device not work properly with the network, as it rejects the channel mask, and also therefore doesn't honor the desired data rate.
The problem is at line 124; we cannot check whether all 125kHz channels are off, because it's legal as long as subsequent LinkADRReq
entries turn some on. We check this in LMICuslike_mapChannels()
and should not check in canMapChannels()
.