helium / sx1302_hal

SX1302 Hardware Abstraction Layer and Tools (packet forwarder...)
Other
36 stars 44 forks source link

fix AS1-AS2 #11

Closed lthiery closed 3 years ago

lthiery commented 3 years ago

This more closely models the AS1 configuration. and AS2 configuration from TTN.

The channel maps provided here are verifeid with sx13xx-config

sx13xx-conf ~/sx1302_hal/packet_forwarder/global_conf.json.sx1250.AS923.AS1`
1        923.2 MHz
2        923.4 MHz
3        922.2 MHz
4        922.4 MHz
5        922.6 MHz
6        922.8 MHz
7        923 MHz
8        922 MHz
Fat LoRa 922.1 MHz, BW 250 KHz
FSK      921.8 MHz, BW 125 KHz
sx13xx-conf ~/sx1302_hal/packet_forwarder/global_conf.json.sx1250.AS923.AS2`
1        923.2 MHz
2        923.4 MHz
3        923.6 MHz
4        923.8 MHz
5        924.2 MHz
6        924.4 MHz
7        924.6 MHz
8        924.5 MHz
Fat LoRa 924.5 MHz, BW 250 KHz
FSK      924.8 MHz, BW 125 KHz
JayKickliter commented 3 years ago

@lthiery I rebased this for you. One problem I see is that I'm not sure if miner will be able to load these, it only tracks regions as [A-Z]{2}[0-9]{3}, and we load the region querying miner via miner info region. The extra .AS[1,2] will break things.

lthiery commented 3 years ago

Ran through all of these again with information from the Miner PR.

sx13xx-conf ~/sx1302_hal/packet_forwarder/global_conf.json.sx1250.AS923-1 --region AS923_1
1        923.2 MHz
2        923.4 MHz
3        923.6 MHz
4        923.8 MHz
5        924 MHz
6        924.2 MHz
7        924.4 MHz
8        924.6 MHz
Fat LoRa 923.8 MHz, BW 500 KHz
FSK      Disabled
Channel 8 mismatch! Expected 924800000, but got 923800000
sx13xx-conf ~/sx1302_hal/packet_forwarder/global_conf.json.sx1250.AS923-2 --region AS923_2
1        921.4 MHz
2        921.6 MHz
3        921.8 MHz
4        922 MHz
5        922.2 MHz
6        922.4 MHz
7        922.6 MHz
8        922.8 MHz
Fat LoRa 922 MHz, BW 500 KHz
FSK      Disabled
Channel 8 mismatch! Expected 923000000, but got 922000000
sx13xx-conf ~/sx1302_hal/packet_forwarder/global_conf.json.sx1250.AS923-3 --region AS923_3
1        916.6 MHz
2        916.8 MHz
3        917 MHz
4        917.2 MHz
5        917.4 MHz
6        917.6 MHz
7        917.8 MHz
8        918 MHz
Fat LoRa 917.2 MHz, BW 500 KHz
FSK      Disabled
Channel 8 mismatch! Expected 918200000, but got 917200000

This print out was made with the sx13xx-conf verification tool.

I left one lingering question on the Miner PR concerning channels 9 and 10. But otherwise, I think this is good to go.