summaryrefslogtreecommitdiff
path: root/recipes-connectivity
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2020-07-24 09:54:05 -0500
committerJohn Klug <john.klug@multitech.com>2020-11-12 09:03:43 -0600
commitf29a18a4b2584df8915be68f4fea35a0a361641f (patch)
treeeda6b06754bb3c5816726efc967749e0db42f288 /recipes-connectivity
parentf45c251f9d97a3ed4d7c4a0e68bc8bef6525b100 (diff)
downloadmeta-mlinux-f29a18a4b2584df8915be68f4fea35a0a361641f.tar.gz
meta-mlinux-f29a18a4b2584df8915be68f4fea35a0a361641f.tar.bz2
meta-mlinux-f29a18a4b2584df8915be68f4fea35a0a361641f.zip
lora: add default station conf files to lora-basic-station recipe
Diffstat (limited to 'recipes-connectivity')
-rw-r--r--recipes-connectivity/lora/lora-basic-station/mtcap-station.conf47
-rw-r--r--recipes-connectivity/lora/lora-basic-station/mtcdt-station.conf47
-rw-r--r--recipes-connectivity/lora/lora-basic-station_2.0.5-1.bb15
3 files changed, 108 insertions, 1 deletions
diff --git a/recipes-connectivity/lora/lora-basic-station/mtcap-station.conf b/recipes-connectivity/lora/lora-basic-station/mtcap-station.conf
new file mode 100644
index 0000000..baa9793
--- /dev/null
+++ b/recipes-connectivity/lora/lora-basic-station/mtcap-station.conf
@@ -0,0 +1,47 @@
+{
+ "SX1301_conf": {
+ "lorawan_public": true,
+ "clksrc": 0,
+ "pps": true,
+ "device": "/dev/spidev0.0",
+ "chan_FSK": {"bandwidth": 125000, "datarate": 50000, "enable": true, "if": 300000, "radio": 0},
+ "chan_Lora_std": {"bandwidth": 250000, "enable": true, "if": -200000, "radio": 0, "spread_factor": 7},
+ "chan_multiSF_0": {"enable": true, "if": -400000, "radio": 0},
+ "chan_multiSF_1": {"enable": true, "if": -200000, "radio": 0},
+ "chan_multiSF_2": {"enable": true, "if": 0, "radio": 0},
+ "chan_multiSF_3": {"enable": true, "if": -400000, "radio": 1},
+ "chan_multiSF_4": {"enable": true, "if": -200000, "radio": 1},
+ "chan_multiSF_5": {"enable": true, "if": 0, "radio": 1},
+ "chan_multiSF_6": {"enable": true, "if": 200000, "radio": 1},
+ "chan_multiSF_7": {"enable": true, "if": 400000, "radio": 1},
+ "radio_0": {"enable": true, "freq": 923600000, "rssi_offset": -162, "tx_enable": true, "type": "SX1257"},
+ "radio_1": {"enable": true, "freq": 922600000, "rssi_offset": -162, "tx_enable": false, "type": "SX1257"},
+ "tx_gain_lut": [
+ {"dac_gain": 3,"dig_gain":2,"mix_gain":15,"pa_gain":1,"rf_power":10},
+ {"dac_gain": 3,"dig_gain":3,"mix_gain":8,"pa_gain":3,"rf_power":11},
+ {"dac_gain": 3,"dig_gain":2,"mix_gain":11,"pa_gain":2,"rf_power":12},
+ {"dac_gain": 3,"dig_gain":0,"mix_gain":10,"pa_gain":2,"rf_power":13},
+ {"dac_gain": 3,"dig_gain":3,"mix_gain":14,"pa_gain":2,"rf_power":14},
+ {"dac_gain": 3,"dig_gain":1,"mix_gain":12,"pa_gain":2,"rf_power":15},
+ {"dac_gain": 3,"dig_gain":0,"mix_gain":12,"pa_gain":2,"rf_power":16},
+ {"dac_gain": 3,"dig_gain":2,"mix_gain":14,"pa_gain":2,"rf_power":17},
+ {"dac_gain": 3,"dig_gain":2,"mix_gain":15,"pa_gain":2,"rf_power":18},
+ {"dac_gain": 3,"dig_gain":1,"mix_gain":15,"pa_gain":2,"rf_power":19},
+ {"dac_gain": 3,"dig_gain":0,"mix_gain":9,"pa_gain":3,"rf_power":20},
+ {"dac_gain": 3,"dig_gain":1,"mix_gain":10,"pa_gain":3,"rf_power":21},
+ {"dac_gain": 3,"dig_gain":0,"mix_gain":10,"pa_gain":3,"rf_power":22},
+ {"dac_gain": 3,"dig_gain":0,"mix_gain":11,"pa_gain":3,"rf_power":23},
+ {"dac_gain": 3,"dig_gain":2,"mix_gain":14,"pa_gain":3,"rf_power":24},
+ {"dac_gain": 3,"dig_gain":0,"mix_gain":15,"pa_gain":3,"rf_power":25}
+ ]
+ },
+ "station_conf": {
+ "routerid": "<WILL-BE-AUTO-REPLACED-WITH-LORA-EUI>",
+ "euiprefix": "::0",
+ "log_file": "stderr",
+ "log_level": "INFO",
+ "log_size": 100000,
+ "log_rotate": 3,
+ "TC_TIMEOUT": "2s"
+ }
+}
diff --git a/recipes-connectivity/lora/lora-basic-station/mtcdt-station.conf b/recipes-connectivity/lora/lora-basic-station/mtcdt-station.conf
new file mode 100644
index 0000000..8cfa72d
--- /dev/null
+++ b/recipes-connectivity/lora/lora-basic-station/mtcdt-station.conf
@@ -0,0 +1,47 @@
+{
+ "SX1301_conf": {
+ "lorawan_public": true,
+ "clksrc": 0,
+ "pps": true,
+ "device": "/dev/spidev0.0",
+ "chan_FSK": {"bandwidth": 125000, "datarate": 50000, "enable": true, "if": 300000, "radio": 0},
+ "chan_Lora_std": {"bandwidth": 250000, "enable": true, "if": -200000, "radio": 0, "spread_factor": 7},
+ "chan_multiSF_0": {"enable": true, "if": -400000, "radio": 0},
+ "chan_multiSF_1": {"enable": true, "if": -200000, "radio": 0},
+ "chan_multiSF_2": {"enable": true, "if": 0, "radio": 0},
+ "chan_multiSF_3": {"enable": true, "if": -400000, "radio": 1},
+ "chan_multiSF_4": {"enable": true, "if": -200000, "radio": 1},
+ "chan_multiSF_5": {"enable": true, "if": 0, "radio": 1},
+ "chan_multiSF_6": {"enable": true, "if": 200000, "radio": 1},
+ "chan_multiSF_7": {"enable": true, "if": 400000, "radio": 1},
+ "radio_0": {"enable": true, "freq": 923600000, "rssi_offset": -162, "tx_enable": true, "type": "SX1257"},
+ "radio_1": {"enable": true, "freq": 922600000, "rssi_offset": -162, "tx_enable": false, "type": "SX1257"},
+ "tx_gain_lut": [
+ {"dig_gain": 0, "mix_gain": 11, "pa_gain": 0, "dac_gain": 3, "rf_power": -6},
+ {"dig_gain": 0, "mix_gain": 13, "pa_gain": 0, "dac_gain": 3, "rf_power": -3},
+ {"dig_gain": 0, "mix_gain": 9, "pa_gain": 1, "dac_gain": 3, "rf_power": 0},
+ {"dig_gain": 0, "mix_gain": 10, "pa_gain": 1, "dac_gain": 3, "rf_power": 3},
+ {"dig_gain": 0, "mix_gain": 12, "pa_gain": 1, "dac_gain": 3, "rf_power": 6},
+ {"dig_gain": 0, "mix_gain": 10, "pa_gain": 2, "dac_gain": 3, "rf_power": 10},
+ {"dig_gain": 0, "mix_gain": 11, "pa_gain": 2, "dac_gain": 3, "rf_power": 11},
+ {"dig_gain": 0, "mix_gain": 11, "pa_gain": 2, "dac_gain": 3, "rf_power": 12},
+ {"dig_gain": 2, "mix_gain": 12, "pa_gain": 2, "dac_gain": 3, "rf_power": 13},
+ {"dig_gain": 0, "mix_gain": 13, "pa_gain": 2, "dac_gain": 3, "rf_power": 14},
+ {"dig_gain": 0, "mix_gain": 15, "dac_gain": 3, "pa_gain": 2, "rf_power": 16},
+ {"dig_gain": 0, "mix_gain": 10, "pa_gain": 3, "dac_gain": 3, "rf_power": 20},
+ {"dig_gain": 0, "mix_gain": 12, "dac_gain": 3, "pa_gain": 3, "rf_power": 23},
+ {"dig_gain": 0, "dac_gain": 3, "mix_gain": 13, "pa_gain": 3, "rf_power": 25},
+ {"dig_gain": 0, "dac_gain": 3, "mix_gain": 15, "pa_gain": 3, "rf_power": 26},
+ {"dig_gain": 0, "mix_gain": 15, "dac_gain": 3, "pa_gain": 3, "rf_power": 27}
+ ]
+ },
+ "station_conf": {
+ "routerid": "<WILL-BE-AUTO-REPLACED-WITH-LORA-EUI>",
+ "euiprefix": "::0",
+ "log_file": "stderr",
+ "log_level": "INFO",
+ "log_size": 100000,
+ "log_rotate": 3,
+ "TC_TIMEOUT": "2s"
+ }
+}
diff --git a/recipes-connectivity/lora/lora-basic-station_2.0.5-1.bb b/recipes-connectivity/lora/lora-basic-station_2.0.5-1.bb
index f0df90b..c9309b2 100644
--- a/recipes-connectivity/lora/lora-basic-station_2.0.5-1.bb
+++ b/recipes-connectivity/lora/lora-basic-station_2.0.5-1.bb
@@ -16,9 +16,10 @@ SRC_URI = "git://github.com/MultiTechSystems/basicstation.git;protocol=git;branc
file://lora-basic-station.init \
file://lora-basic-station.default \
file://tc.uri \
+ file://mtcap-station.conf \
+ file://mtcdt-station.conf \
"
-
S = "${WORKDIR}/git"
B = "${S}"
@@ -47,6 +48,18 @@ do_install() {
install -m 0755 ${WORKDIR}/lora-basic-station.init ${D}${sysconfdir}/init.d/lora-basic-station
}
+do_install_mtcdt() {
+ install -d ${D}${LORA_DIR}
+ install -m 755 ${WORKDIR}/mtcap-station.conf ${D}${LORA_DIR}/station.conf
+}
+
+do_install_mtcdt() {
+ install -d ${D}${LORA_DIR}
+ install -m 755 ${WORKDIR}/mtcdt-station.conf ${D}${LORA_DIR}/station.conf
+}
+
+
+
FILES_${PN} += "${LORA_DIR}"
# disable this on purpose for dev purposes