Skip to content
Artur Balanuta edited this page Sep 7, 2017 · 27 revisions

This tutorial will show you how to add a LoRa Gateway using a MultiTech Conduit (MTCDT) and a LoRa accessory board (MTAC-LORA).

Prepare the Hardware

Before inserting the LoRa mCard the Operating System and software should be updated.

Install the latest version of mLinux Operating System

Visit Flashing mLinux Firmware for a detailed process on how to update your MultiTech Conduit to the most recent version. For this consider the pre-built images in the Download Section for your specific Hardware (MTCDT). After updating the OS and PF shutdown the device and inser the mCard. Verify that the LoRa mCard was detected using the command: mts-io-sysfs show lora/hw-version

Packet Forwarder Configuration

After determining the HW of the LoRa mCard (mts-io-sysfs show lora/hw-version) the correspondent configuration file should be copied to the working directory and the lora-packet-forwarder started. Check the following link for configuration examples.

# Create the configuration folder
mkdir /var/config/lora/

# Copy the configuration file (in our case the MTAC-LORA-1.5 and US915 Region) 
wget <link to text file> -O /var/config/lora/global_conf.json
cp /opt/lora/local_conf.json /var/config/lora/

# Get the device Device_ID from the lora EUI
mts-io-sysfs show lora/eui | sed -e 's/://g'

# Configure the /opt/lora/local_conf.json file an replace the gateway_ID
{
 "gateway_conf": {
    "gateway_ID": "<WILL-BE-REPLACED-WITH-LORA-EUI>",
    "server_address": "localhost",
    "serv_port_up": 1700,
    "serv_port_down": 1700
    }
}

# Enable start-up on boot
update-rc.d lora-packet-forwarder defaults 80 30

# Edit /etc/default/lora-packet-forwarder:
ENABLED = "yes"

# Start packet forwarder using this command
/etc/init.d/lora-packet-forwarder start

# Check if the process is running
ps -faux | grep lora

Install the LoRa Gateway Bridge

Download the latest release of the precompiled LoRa Gateway Bridge Binary (lora-gateway-bridge_x.x.x_linux_arm.tar.gz) from the loraserver.io website into the /opt/lora/ folder. Decompress it (tar -xf lora-gateway-bridge_*_linux_arm.tar.gz) and delete the compressed file. Configuration examples.

# Create and complete the default configuration file
nano /etc/default/lora-gateway-bridge

# Create init file and enable boot at startup
nano /etc/init.d/lora-gateway-bridge
chmod +x /etc/init.d/lora-gateway-bridge
update-rc.d lora-gateway-bridge defaults
/etc/init.d/lora-gateway-bridge start

# If error occurs verify if the init file was correctly copied,
# 'newline symbols' may have been introduced

# Check if the process is running
ps -faux | grep lora

# Check process log in /var/log/*

Other Configurations

# Stop and remove unused Services
/etc/init.d/mosquitto stop
update-rc.d -f mosquitto remove