LoRaWAN and Node-RED Tutorial and Deployment Tips

Resources for developers and hackers tinkering with MultiTech gear.

Yitaek Hwang
LoRaWAN and Node-RED Tutorial and Deployment Tips

This series is intended for developers and hackers looking to test out a LoRaWAN network using MultiTech’s Conduit and mDot RF modules. The Things Network has an extensive forum and support for public gateways and nodes in Europe, but little documentation exists for those wanting to test a private network in the US.

This is the first post in a four-part guide which covers:

  1. Configuring the Conduit & Starter Kit
  2. Node-RED & Bypassing IBM Bluemix
  3. Programming MultiTech Developer Kit & Adding Sensors
  4. Using the mDot, xbee shield, and Arduino

Configuring the Conduit & Starter Kit

Hardware & Software Requirements

We purchased a MultiConnect Conduit Starter Kit (MTCDT-STARTER-KIT-915) to test out the our first LoRaWAN Applications. The starter kit is not cheap (~$900), but I recommend it if you want to test the capabilities of LoRaWAN right away as the network tester is pre-configured out of the box.

However, if you do want to only buy the essentials, you can separately purchase a Conduit gateway, LoRa gateway accessory MultiConnect mCard (MTAC-LORA-915), MultiConnectmDot Developer Kit (MTUDK2-ST-MDOT), some 915 MHz LoRa Antennas, and MultiConnect mDot Long-Range RF Module (MTDOT-915-X1P-SMA-1).

On the software side, I am using macOS, but a Windows or Linux computer with ethernet, USB, and terminal-like application (e.g. PuTTY) should suffice.

Configuring the Conduit

Although MultiTech will provide you with a quickstart guide, the guide on the Things Network forum is more extensive. If you purchased a starter kit, you will have an AEP version, in which you can follow the instructions here. Otherwise, you can read the directions to configure the mLinux model here.

Several comments about the AEP configuration steps:

  1. After the initial setup, the documentation directs you to change the access configuration. However, if you have already allowed WAN access for HTTPS and SSH, then you can just hit Save and Restart to complete the setup process.
  2. Although it is not required, you can upgrade the firmware to 1.3.3 to fix Node-Red being disabled sometimes.
  3. If you want to test out a public LoRaWAN network, you can proceed with TTN Configuration. If not, you can skip that step and make note of your Network Name and Passphrase under Setup → LoRa Network Server. This should match the serial number of your mDot box.

This should complete your setup process. If you have the mDot box, you can power it on, select LoRa Demo and start to send data to IBM Bluemix. The official MultiTech guide does a great job walking you through the steps, but in case you run into some problems (like I did) you can keep reading. Otherwise, skip to part II of this series to start forwarding data to any cloud service you want.

Finding the New IP Address Assigned by DHCP

If you followed the TTN setup process, you will lose access to the web UI (initially set to after you reset the gateway. To find the IP address that the network assigned your gateway, you can use the following options:

  1. The best and easiest method: Access the network router’s admin page and find the IP address.
  2. Use ifconfig in the terminal or Network Settings to find the subnet mask. Replace any 0 values with 255 in the subnet mask and ping the network. So for example, if the IP address is, ping in the terminal and try a list of those networks that you get a response back from.
  3. If you have a small network (in-home or office with only a few connections), chances are that DHCP has issued an IP address close to the one that your laptop has received. So if your ethernet IP address shows,, try or 25 and see if you can access the MultiTech login page.
  4. Macworld article suggests using the arp -a command, but that only works if the Mac has already probed the host. Instead use homebrew or equivalent software to download nmap. You can issue nmap -sP <your-ip-address start/end> to populate the arp -a table and find the assigned IP address.

mDot Box Not Joining the Gateway

For some reason, one of the mDot boxes was not configured correctly, so it could not join the gateway. You will see this if the mDot Box gets stuck in “Joining Network” phase with the attempts count (the number next to A=) keeps increasing.

To fix this, you need to use either a Micro Developer Kit (MDK) or a UDK2. You can follow the instructions here, keeping in mind that the name and phrase mentioned on the guide should be same as the LoRa network settings you noted above.

For Mac users, to connect to a new TTY/COM port at 115200 bps, you can issue the following commands in the terminal.

ls /dev/tty.*

This will list the serial connections available to you. Let’s say one of the options was /dev/tty.usbmodem14221. Then to connect to it:

screen /dev/tty.usbmodem14221 115200

Now you can issue all the AT commands to set up the network. After saving by issuing AT&W command, you can exit the program by typing Control+A then Control+\ .

Yitaek Hwang
Yitaek Hwang - Senior Writer, IoT For All
Yitaek is a Senior Writer at IoT For All who loves learning about IoT, machine learning, and artificial intelligence. He graduated from Duke University with a dual degree in electrical/computer and biomedical engineering and is a huge Cameron Crazie.
Yitaek is a Senior Writer at IoT For All who loves learning about IoT, machine learning, and artificial intelligence. He graduated from Duke University with a dual degree in electrical/computer and biomedical engineering and is a huge Cameron Crazie.