Closed sa-wilson closed 5 years ago
Then their configuration is a bit inconsistent :wink:
{
"msgtype" : "router_config"
...
"DRs" : [ [INT,INT,INT], .. ] // sf,bw,dnonly
"sx1301_conf": [ SX1301CONF, .. ]
...
}
The field DRs defines the available data rates of the channel plan. It MUST be an array of 16 entries with each entry being an array of three (3) integers encoding the spreading factor SF, the bandwidth BW, and a DNONLY flag. SF MUST be in the range 7..12 for LoRa, or 0 for FSK. BW MUST be one of the numbers 125, 250, 500, and BW is ignored for FSK. DNONLY MUST be 1 if the data rate is valid for downlink frames only, and 0 otherwise.
For DRs
it must be in kHz.
BasicStation expects the bandwidth value for the ChanLoRaStd to be specified in Hz, rather than kHz. This is in the same format as the SX1301 section in the old LoRa Packet Forwarder config files.
Multiply the given value by 1000 in order to meet this requirement.