summaryrefslogtreecommitdiff
path: root/recipes-connectivity/lora/lora-basic-station
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2021-04-19 17:02:11 -0500
committerHarsh Sharma <harsh.sharma@multitech.com>2021-04-19 17:02:11 -0500
commit63f037f118071e3594d8f50e7fc5804013d0f349 (patch)
treea41d3f06fe511131aab36c1bf97e55bea6f98148 /recipes-connectivity/lora/lora-basic-station
parentebe37fcd40cc1e277af2209798f41c425c0d68c2 (diff)
downloadmeta-mlinux-63f037f118071e3594d8f50e7fc5804013d0f349.tar.gz
meta-mlinux-63f037f118071e3594d8f50e7fc5804013d0f349.tar.bz2
meta-mlinux-63f037f118071e3594d8f50e7fc5804013d0f349.zip
Updated lora recipes to account for temperature compensation
Diffstat (limited to 'recipes-connectivity/lora/lora-basic-station')
-rwxr-xr-xrecipes-connectivity/lora/lora-basic-station/lora-basic-station.init16
-rw-r--r--recipes-connectivity/lora/lora-basic-station/mtcap-station.conf1
-rw-r--r--recipes-connectivity/lora/lora-basic-station/mtcdt-station.conf1
3 files changed, 15 insertions, 3 deletions
diff --git a/recipes-connectivity/lora/lora-basic-station/lora-basic-station.init b/recipes-connectivity/lora/lora-basic-station/lora-basic-station.init
index 45c6eee..80582d9 100755
--- a/recipes-connectivity/lora/lora-basic-station/lora-basic-station.init
+++ b/recipes-connectivity/lora/lora-basic-station/lora-basic-station.init
@@ -73,12 +73,22 @@ setup_mtcdt() {
ln -sf /dev/spidev32765.2 /dev/spidev0.0
fi
- ln -sf /opt/lora/station $pkt_fwd
+ ln -sf $opt_conf_dir/station $pkt_fwd
}
setup_mtcap() {
- ln -sf /opt/lora/station $pkt_fwd
+ ln -sf $opt_conf_dir/station $pkt_fwd
+
+ if [ "$lora_id" = "$lora_mtcap_id868" ]; then
+ if [ "$lora_hw" = "MTCAP-0.3" ]; then
+ cp $opt_conf_dir/temp_lut.json.MTCAP2.EU868 $run_dir/1/temp_lut.json
+ fi
+ elif [ "$lora_id" = "$lora_mtcap_id915" ]; then
+ if [ "$lora_hw" = "MTCAP-0.3" ]; then
+ cp $opt_conf_dir/temp_lut.json.MTCAP2.US915 $run_dir/1/temp_lut.json
+ fi
+ fi
}
setup_mtcdt_2_1() {
@@ -113,7 +123,7 @@ do_start() {
cp $tc_key_file $run_dir/1/
cp $tc_trust_file $run_dir/1/
- sed -i.bak "s/\(.*routerid\"\s*\:\s*\"\)<.*>[^\"]*\(.*\)/\1${lora_eui_raw}\2/g" /var/run/lora/1/station.conf
+ sed -i.bak "s/\(.*routerid\"\s*\:\s*\"\)<.*>[^\"]*\(.*\)/\1${lora_eui_raw}\2/g" $run_dir/1/station.conf
#
# start packet forwarder
diff --git a/recipes-connectivity/lora/lora-basic-station/mtcap-station.conf b/recipes-connectivity/lora/lora-basic-station/mtcap-station.conf
index baa9793..e8dd783 100644
--- a/recipes-connectivity/lora/lora-basic-station/mtcap-station.conf
+++ b/recipes-connectivity/lora/lora-basic-station/mtcap-station.conf
@@ -2,6 +2,7 @@
"SX1301_conf": {
"lorawan_public": true,
"clksrc": 0,
+ "antenna_gain": 3,
"pps": true,
"device": "/dev/spidev0.0",
"chan_FSK": {"bandwidth": 125000, "datarate": 50000, "enable": true, "if": 300000, "radio": 0},
diff --git a/recipes-connectivity/lora/lora-basic-station/mtcdt-station.conf b/recipes-connectivity/lora/lora-basic-station/mtcdt-station.conf
index 8cfa72d..11f6108 100644
--- a/recipes-connectivity/lora/lora-basic-station/mtcdt-station.conf
+++ b/recipes-connectivity/lora/lora-basic-station/mtcdt-station.conf
@@ -2,6 +2,7 @@
"SX1301_conf": {
"lorawan_public": true,
"clksrc": 0,
+ "antenna_gain": 3,
"pps": true,
"device": "/dev/spidev0.0",
"chan_FSK": {"bandwidth": 125000, "datarate": 50000, "enable": true, "if": 300000, "radio": 0},