Closed markruys closed 6 years ago
I've got the multitech-installer and TTN packet forwarder running on a Conduit AP. The gateway is based on mLinux. This what I did.
opkg update opkg install libmpsse nodejs
And this patch for /etc/init.d/ttn-pkt-forwarder:
@@ -13,8 +13,10 @@ port2=/sys/devices/platform/mts-io/ap2 lora_mtac_id="MTAC-LORA" +lora_mtcap_id="MTCAP-LORA" lora_1_0_hw="MTAC-LORA-1.0" lora_1_5_h_hw="MTAC-LORA-1.5" +lora_mtcap_hw="MTCAP-LORA-1.5" read_card_info() { # product-id of first lora card @@ -34,6 +36,8 @@ if [[ "$lora_id" =~ "$lora_mtac_id" ]]; then return 0 + elif [[ "$lora_id" =~ "$lora_mtcap_id" ]]; then + return 0 else return 1 fi @@ -53,7 +57,7 @@ rm -rf /opt/lora/mp_pkt_fwd > /dev/null 2>&1 ln -s /opt/lora/mp_pkt_fwd.usb /opt/lora/mp_pkt_fwd fi - if [ "$lora_hw" = "$lora_1_5_h_hw" ] ; then + if [ "$lora_hw" = "$lora_1_5_h_hw" -o "$lora_hw" = "$lora_mtcap_hw" ] ; then rm -rf /opt/lora/mp_pkt_fwd > /dev/null 2>&1 ln -s /opt/lora/mp_pkt_fwd.spi /opt/lora/mp_pkt_fwd fi
Installer and software have been updated for new mtac cards and the new ‘access point’ gateways.
I've got the multitech-installer and TTN packet forwarder running on a Conduit AP. The gateway is based on mLinux. This what I did.
And this patch for /etc/init.d/ttn-pkt-forwarder: