summaryrefslogtreecommitdiff
path: root/recipes-connectivity/lora/lora-network-server
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-network-server
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-network-server')
-rwxr-xr-xrecipes-connectivity/lora/lora-network-server/lora-network-server.init18
1 files changed, 12 insertions, 6 deletions
diff --git a/recipes-connectivity/lora/lora-network-server/lora-network-server.init b/recipes-connectivity/lora/lora-network-server/lora-network-server.init
index 5e2f085..eb13720 100755
--- a/recipes-connectivity/lora/lora-network-server/lora-network-server.init
+++ b/recipes-connectivity/lora/lora-network-server/lora-network-server.init
@@ -162,16 +162,22 @@ setup_mtcap() {
hw=$(mts-io-sysfs show hw-version 2> /dev/null)
if [ "$lora_id" = "$lora_mtcap_id868" ]; then
- if [ "$hw" = "MTCAP-0.2" ]; then
- GLOBAL_CONF=/opt/lora/global_conf.json.MTCAP2_LORA_1_5.EU868
- else
+ if [ "$hw" = "MTCAP-0.1" ]; then
GLOBAL_CONF=/opt/lora/global_conf.json.MTCAP_LORA_1_5.EU868
+ else
+ GLOBAL_CONF=/opt/lora/global_conf.json.MTCAP2_LORA_1_5.EU868
+ if [ "$hw" = "MTCAP-0.3" ]; then
+ cp /opt/lora/temp_lut.json.MTCAP2.EU868 /var/run/lora/1/temp_lut.json
+ fi
fi
elif [ "$lora_id" = "$lora_mtcap_id915" ]; then
- if [ "$hw" = "MTCAP-0.2" ]; then
- GLOBAL_CONF=/opt/lora/global_conf.json.MTCAP2_LORA_1_5.US915
- else
+ if [ "$hw" = "MTCAP-0.1" ]; then
GLOBAL_CONF=/opt/lora/global_conf.json.MTCAP_LORA_1_5.US915
+ else
+ GLOBAL_CONF=/opt/lora/global_conf.json.MTCAP2_LORA_1_5.US915
+ if [ "$hw" = "MTCAP-0.3" ]; then
+ cp /opt/lora/temp_lut.json.MTCAP2.US915 /var/run/lora/1/temp_lut.json
+ fi
fi
else
return 1