Skip to content

Commit

Permalink
freq: fix and add missing sx1302 configs
Browse files Browse the repository at this point in the history
- add as923_4
- rename as923_1, _2 and _3
- correct au915
- correct us915, kr920, in865

Closes: #19
Relates-to: helium/sx1302_hal#19
  • Loading branch information
shawaj committed Aug 26, 2021
1 parent 5030f75 commit d3a6e5a
Show file tree
Hide file tree
Showing 9 changed files with 137 additions and 164 deletions.
127 changes: 0 additions & 127 deletions lora_templates_sx1302/AS-global_conf.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
85 changes: 85 additions & 0 deletions lora_templates_sx1302/AS923-4-global_conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"SX130x_conf": {
"com_type": "SPI",
"com_path": "/dev/spidev1.2",
"lorawan_public": true,
"clksrc": 0,
"antenna_gain": 0,
"full_duplex": false,
"fine_timestamp": {
"enable": false,
"mode": "all_sf"
},
"radio_0": {
"enable": true,
"type": "SX1250",
"freq": 917600000,
"rssi_offset": -215.4,
"rssi_tcomp": {"coeff_a": 0, "coeff_b": 0, "coeff_c": 20.41, "coeff_d": 2162.56, "coeff_e": 0},
"tx_enable": true,
"tx_freq_min": 917200000,
"tx_freq_max": 918800000,
"tx_gain_lut":[
{"rf_power": 12, "pa_gain": 1, "pwr_idx": 4},
{"rf_power": 13, "pa_gain": 1, "pwr_idx": 5},
{"rf_power": 14, "pa_gain": 1, "pwr_idx": 6},
{"rf_power": 15, "pa_gain": 1, "pwr_idx": 7},
{"rf_power": 16, "pa_gain": 1, "pwr_idx": 8},
{"rf_power": 17, "pa_gain": 1, "pwr_idx": 9},
{"rf_power": 18, "pa_gain": 1, "pwr_idx": 10},
{"rf_power": 19, "pa_gain": 1, "pwr_idx": 11},
{"rf_power": 20, "pa_gain": 1, "pwr_idx": 12},
{"rf_power": 21, "pa_gain": 1, "pwr_idx": 13},
{"rf_power": 22, "pa_gain": 1, "pwr_idx": 14},
{"rf_power": 23, "pa_gain": 1, "pwr_idx": 15},
{"rf_power": 24, "pa_gain": 1, "pwr_idx": 16},
{"rf_power": 25, "pa_gain": 1, "pwr_idx": 17},
{"rf_power": 26, "pa_gain": 1, "pwr_idx": 19},
{"rf_power": 27, "pa_gain": 1, "pwr_idx": 20}
]
},
"radio_1": {
"enable": true,
"type": "SX1250",
"freq": 918400000,
"rssi_offset": -215.4,
"rssi_tcomp": {"coeff_a": 0, "coeff_b": 0, "coeff_c": 20.41, "coeff_d": 2162.56, "coeff_e": 0},
"tx_enable": false
},
"chan_multiSF_All": {"spreading_factor_enable": [ 5, 6, 7, 8, 9, 10, 11, 12 ]},
"chan_multiSF_0": {"enable": true, "radio": 0, "if": -300000},
"chan_multiSF_1": {"enable": true, "radio": 0, "if": -100000},
"chan_multiSF_2": {"enable": true, "radio": 0, "if": 100000},
"chan_multiSF_3": {"enable": true, "radio": 0, "if": 300000},
"chan_multiSF_4": {"enable": true, "radio": 1, "if": -300000},
"chan_multiSF_5": {"enable": true, "radio": 1, "if": -100000},
"chan_multiSF_6": {"enable": true, "radio": 1, "if": 100000},
"chan_multiSF_7": {"enable": true, "radio": 1, "if": 300000},
"chan_Lora_std": {"enable": true, "radio": 0, "if": 300000, "bandwidth": 500000, "spread_factor": 8,
"implicit_hdr": false, "implicit_payload_length": 17, "implicit_crc_en": false, "implicit_coderate": 1},
"chan_FSK": {"enable": false, "radio": 1, "if": 300000, "bandwidth": 125000, "datarate": 50000}
},
"gateway_conf": {
"gateway_ID": "AA555A0000000000",

"server_address": "helium-miner",
"serv_port_up": 1680,
"serv_port_down": 1680,

"keepalive_interval": 10,
"stat_interval": 30,
"push_timeout_ms": 100,

"forward_crc_valid": true,
"forward_crc_error": false,
"forward_crc_disabled": false
},

"debug_conf": {
"ref_payload":[
{"id": "0xCAFE1234"},
{"id": "0xCAFE2345"}
],
"log_file": "loragw_hal.log"
}
}
22 changes: 11 additions & 11 deletions lora_templates_sx1302/AU-global_conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"radio_0": {
"enable": true,
"type": "SX1250",
"freq": 917200000,
"freq": 917100000,
"rssi_offset": -215.4,
"rssi_tcomp": {"coeff_a": 0, "coeff_b": 0, "coeff_c": 20.41, "coeff_d": 2162.56, "coeff_e": 0},
"tx_enable": true,
Expand Down Expand Up @@ -41,30 +41,30 @@
"radio_1": {
"enable": true,
"type": "SX1250",
"freq": 917900000,
"freq": 917800000,
"rssi_offset": -215.4,
"rssi_tcomp": {"coeff_a": 0, "coeff_b": 0, "coeff_c": 20.41, "coeff_d": 2162.56, "coeff_e": 0},
"tx_enable": false
},
"chan_multiSF_0": {
"enable": true,
"radio": 0,
"if": -400000
"if": -300000
},
"chan_multiSF_1": {
"enable": true,
"radio": 0,
"if": -200000
"if": -100000
},
"chan_multiSF_2": {
"enable": true,
"radio": 0,
"if": 0
"if": 100000
},
"chan_multiSF_3": {
"enable": true,
"radio": 0,
"if": 200000
"if": 300000
},
"chan_multiSF_4": {
"enable": true,
Expand All @@ -74,22 +74,22 @@
"chan_multiSF_5": {
"enable": true,
"radio": 1,
"if": -100000
"if": -200000
},
"chan_multiSF_6": {
"enable": true,
"radio": 1,
"if": 100000
"if": 0
},
"chan_multiSF_7": {
"enable": true,
"radio": 1,
"if": 300000
"if": 200000
},
"chan_Lora_std": {
"enable": true,
"radio": 0,
"if": 300000,
"radio": 1,
"if": 400000,
"bandwidth": 500000,
"spread_factor": 8
},
Expand Down
29 changes: 22 additions & 7 deletions lora_templates_sx1302/IN-global_conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,27 @@
"datarate": 100000
}
},
"gateway_conf": {
"gateway_ID": "AA555A0000000000",

"server_address": "helium-miner",
"serv_port_up": 1680,
"serv_port_down": 1680,

"keepalive_interval": 10,
"stat_interval": 30,
"push_timeout_ms": 100,

"forward_crc_valid": true,
"forward_crc_error": false,
"forward_crc_disabled": false
},

"debug_conf": {
"ref_payload":[
{"id": "0xCAFE1234"},
{"id": "0xCAFE2345"}
],
"log_file": "loragw_hal.log"
}
"debug_conf": {
"ref_payload":[
{"id": "0xCAFE1234"},
{"id": "0xCAFE2345"}
],
"log_file": "loragw_hal.log"
}
}
2 changes: 1 addition & 1 deletion lora_templates_sx1302/KR-global_conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"SX130x_conf": {
"spidev_path": "/dev/spidev0.0",
"spidev_path": "/dev/spidev1.2",
"lorawan_public": true,
"clksrc": 0,
"antenna_gain": 0,
Expand Down
36 changes: 18 additions & 18 deletions lora_templates_sx1302/US-global_conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,35 @@
"enable": true,
"type": "SX1250",
"freq": 904300000,
"rssi_offset": -207,
"rssi_offset": -215.4,
"rssi_tcomp": {"coeff_a": 0, "coeff_b": 0, "coeff_c": 20.41, "coeff_d": 2162.56, "coeff_e": 0},
"tx_enable": true,
"tx_freq_min": 902000000,
"tx_freq_max": 928000000,
"tx_gain_lut":[
{"rf_power": 12, "pa_gain": 0, "pwr_idx": 15},
{"rf_power": 13, "pa_gain": 0, "pwr_idx": 16},
{"rf_power": 14, "pa_gain": 0, "pwr_idx": 17},
{"rf_power": 15, "pa_gain": 0, "pwr_idx": 19},
{"rf_power": 16, "pa_gain": 0, "pwr_idx": 20},
{"rf_power": 17, "pa_gain": 0, "pwr_idx": 22},
{"rf_power": 18, "pa_gain": 1, "pwr_idx": 1},
{"rf_power": 19, "pa_gain": 1, "pwr_idx": 2},
{"rf_power": 20, "pa_gain": 1, "pwr_idx": 3},
{"rf_power": 21, "pa_gain": 1, "pwr_idx": 4},
{"rf_power": 22, "pa_gain": 1, "pwr_idx": 5},
{"rf_power": 23, "pa_gain": 1, "pwr_idx": 6},
{"rf_power": 24, "pa_gain": 1, "pwr_idx": 7},
{"rf_power": 25, "pa_gain": 1, "pwr_idx": 9},
{"rf_power": 26, "pa_gain": 1, "pwr_idx": 11},
{"rf_power": 27, "pa_gain": 1, "pwr_idx": 14}
{"rf_power": 12, "pa_gain": 1, "pwr_idx": 4},
{"rf_power": 13, "pa_gain": 1, "pwr_idx": 5},
{"rf_power": 14, "pa_gain": 1, "pwr_idx": 6},
{"rf_power": 15, "pa_gain": 1, "pwr_idx": 7},
{"rf_power": 16, "pa_gain": 1, "pwr_idx": 8},
{"rf_power": 17, "pa_gain": 1, "pwr_idx": 9},
{"rf_power": 18, "pa_gain": 1, "pwr_idx": 10},
{"rf_power": 19, "pa_gain": 1, "pwr_idx": 11},
{"rf_power": 20, "pa_gain": 1, "pwr_idx": 12},
{"rf_power": 21, "pa_gain": 1, "pwr_idx": 13},
{"rf_power": 22, "pa_gain": 1, "pwr_idx": 14},
{"rf_power": 23, "pa_gain": 1, "pwr_idx": 15},
{"rf_power": 24, "pa_gain": 1, "pwr_idx": 16},
{"rf_power": 25, "pa_gain": 1, "pwr_idx": 17},
{"rf_power": 26, "pa_gain": 1, "pwr_idx": 19},
{"rf_power": 27, "pa_gain": 1, "pwr_idx": 20}
]
},
"radio_1": {
"enable": true,
"type": "SX1250",
"freq": 905000000,
"rssi_offset": -207,
"rssi_offset": -215.4,
"rssi_tcomp": {"coeff_a": 0, "coeff_b": 0, "coeff_c": 20.41, "coeff_d": 2162.56, "coeff_e": 0},
"tx_enable": false
},
Expand Down

0 comments on commit d3a6e5a

Please sign in to comment.