diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2023-02-09 22:36:35 -0600 |
---|---|---|
committer | Harsh Sharma <harsh.sharma@multitech.com> | 2023-02-09 22:36:35 -0600 |
commit | 16a81ff8b5b3502fdd21250eeaa45557568e6b3d (patch) | |
tree | 53a01b127c618eab8a19f194fe74d28155416ef0 /recipes-connectivity | |
parent | 3aa3bbc2c5358ac44cee9aa96b8ca19f3377f52a (diff) | |
download | meta-mlinux-16a81ff8b5b3502fdd21250eeaa45557568e6b3d.tar.gz meta-mlinux-16a81ff8b5b3502fdd21250eeaa45557568e6b3d.tar.bz2 meta-mlinux-16a81ff8b5b3502fdd21250eeaa45557568e6b3d.zip |
Added lora 2.4g card setup
Diffstat (limited to 'recipes-connectivity')
-rwxr-xr-x | recipes-connectivity/lora/lora-network-server/lora-network-server.init | 17 |
1 files changed, 17 insertions, 0 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 0c1ae19..8e2e729 100755 --- a/recipes-connectivity/lora/lora-network-server/lora-network-server.init +++ b/recipes-connectivity/lora/lora-network-server/lora-network-server.init @@ -117,6 +117,23 @@ hardware_found() { fi } +setup_mtcdt_2g4() { + mts-io-sysfs store lora/reset 0 + mts-io-sysfs store lora/boot 0 + sleep 0.25 + mts-io-sysfs store lora/reset 1 + GLOBAL_CONF=/opt/lora/global_conf.json.2g4 + set +e + diff $GLOBAL_CONF /opt/lora/global_conf.json 1>/dev/null + if [ $? -ne 0 ]; then + cp $GLOBAL_CONF /opt/lora/global_conf.json + fi + set -e + ln -sf /opt/lora/lora_pkt_fwd_2g4 $pkt_fwd + ln -sf /opt/lora/lora_pkt_fwd_2g4 $pkt_fwd_2 + return 0 +} + setup_mtcdt_2_1() { if [[ "$lora_id" = "$lora_mtac_g16_id868" ]]; then GLOBAL_CONF=/opt/lora/global_conf.json.MTAC_LORA_2_1_loc_single_antenna_16ch_EU868 |