Contact

Enabling industrial
IoT solutions

MultiTech Conduit integration to CommonSense IoT platform

Technical article

MultiTech Conduit integration to CommonSense IoT platform

Since 2015, we are labelled MultiTech MASTERS partner. Many projects featuring MultiTech equipment, especially the MultiConnect Conduit, and CommonSense IoT platform have been deployed by our partners or ourselves.

This guide will help users to properly configure a MultiTech Conduit AEP gateway for use in a private environment, as a stand-alone network server or as a packet forwarder in the CommonSense LoRa Private Network Server (LPNS).

CommonSense supports also other LoRaWAN CLOUD servers and LoRaWAN architectures. Get to know more on our LPWA webpage.

Others supported LoRaWAN servers include:

Diagrams of both architectures described in this article

Hardware pre-requisites

  • MultiTech Conduit AEP gateway
  • MultiTech LoRa mCard
  • Serial to USB cable + driver
  • Ethernet cable
  • Any hyper-terminal software such as PuTTy, XTerm, TeraTerm, …

First time set up wizard

Important: If you never configured a MultiTech Conduit before, please watch the following video before starting the tutorial, as it presents the product and its features:

If you want to follow this step by step, it is recommended to reset the conduit to factory settings.

  1. Take your Conduit and insert the LoRa mCard into one of the two back slots of the gateway (AP1 or AP2), using a cross-head screwdriver. Plug the power cord and the Ethernet cable to the Conduit and on your computer to have a direct network connection.

  2. By default, the Conduit has an hardcoded IP address, which is 192.168.2.1. Wait around 2 minutes for the Conduit to start and open your web browser. Browse the IP address mentioned above to get to the Conduit’s web interface.

    If you can’t browse it, check on your PC the Ethernet network settings and make sure that you are on the same subnet (you can type in manually the IP address if needed, for example 192.168.2.4, rather than using your network’s DHCP).

  3. Log in to the Conduit using the default factory credentials:

    Username: admin
    Password: admin

  4. After the login, the First Time Setup Wizard opens (this might take a little while):

    Click on Next.

  5. Then choose a new password and click on Next. If you want to live it as default, leave the field blanks and click on Next.

  6. Configure the NTP as you like if needed, then click Next to proceed.

  7. Configure your Internet connection accordingly. Choose either Static and enter IP addresses for the Conduit, network mask, gateways and DNS, or DHCP Client for your DHCP router to give your gateway an IP address within your sub-network.

  8. Click Finish to close the wizard.

  9. Click on Save and Restart (the red button on the left side of the page) to make the gateway save its new parameters and reboot itself. Wait for it to complete the process and reenter the Conduit Web interface.

Stand-alone private LoRa network configuration

Important: This process only works on firmware versions 1.4.4 and below. Support for later versions is currently under development.

  1. Login with your credentials. Click on Login.

  2. Click on Setup, then LoRa Network Server (or LoRa depending on the firmware version).

    1. Check the Enabled box (or set LoRa Mode to NETWORK SERVER)

    2. Select the Channel Plan corresponding to your location.

    3. Set Network ID to Name, and type in a Name as you like.

    4. Set Network Key to Passphrase and type in a Passphrase as you like.

    5. Check the Public box. This enables your gateway to communicate with third-party devices (devices which are not from MultiTech).

    6. Click on Submit

Hyper terminal operations

  1. Start your hyper-terminal and open a connection to the Conduit either in Serial mode (in that case, connect the gateway to your PC using a micro-USB/USB cable) or in SSH mode (in that case, use the IP address of your gateway) to access its command line. Connection parameters for Serial mode are: 115,200 bauds, 8 data bits, no parity, 1 stop bit.

    Example in Serial mode:

  2. Download and execute the installer program provided by Vertical M2M with the command below:

    bash <(curl -s http://repo.vm2m.net/scripts/install_aep.sh)
  3. Wait until the program finishes its execution by rebooting the Conduit. Once the Conduit is up again, enter in the command line: opkg list | grep vm2m. If aep-vm2m - 1.0.0 - LoRa to Vertical MQTT Broker appears, the gateway is ready to work.

  4. To examine program logs in real-time, you can use this command: tail -f /var/log/aep-vm2m.log

CommonSense provisioning

These operations takes place on CommonSense IoT platform device management interface:

  1. Navigate to Devices/Fast provisioning, and click on "Create a new device and provision it".

  2. Select the LoRa GW MultiTech Conduit Device Category, and click on Create.

  3. Fill the form and click on Validate

    You can access the status of the gateway by visiting Devices / Status.

CommonSense LoRa Private Network Server configuration

Provisioning the Conduit in CommonSense

  1. Inform us that you would like to provision a gateway with our LoRa Private Network Server as we will need to perform some operations.

  2. Log in to CommonSense: https://cs1.vm2m.net. Enter your account credentials to connect. Please contact Vertical M2M to get an account if you do not have one already.

  3. Go to Containers ⇒ Provisioning and unfold the Add a Container of Category frame. Select a Container Category and click on Add. Give it a Label and click on Validate. If you do not have access to at least one Container Category, please contact Vertical M2M support.

  4. Go to Devices ⇒ Categories and click on Add a category. Give it a unique Code and Label, and use LoRA LNS Vm2m Gateway as the Main Protocol. Click on Validate. If you do not have access to this Protocol, please contact Vertical M2M support.

  5. Go to Devices ⇒ Provisioning ⇒ List, unfold the Add a Device of Category frame and select the Category you created.

    Click on Add and give your new Device a Label and Container. Type in a Gateway ID, it must follow the criteria below:

    • Alphanumeric characters
    • Non-consecutive _ and/or -
    • Cannot start or end with _ or -

  6. Write down the randomly-generated Gateway KEY and click on Validate to finish the provisioning.

Configuring the Conduit

  1. Start your hyper-terminal and open a connection to the Conduit to access its command line. Enter the following commands in order:

    • cd /tmp
    • wget https://raw.githubusercontent.com/vm2m/multitech-installer/master/installer.sh
    • chmod +x installer.sh
    • ./installer.sh
  2. Answer 1 to the first question, then enter the Gateway ID and Gateway Key you noted when provisioning the gateway in CommonSense. Answer 1 to subsequent questions and wait until installation finishes.

  3. Check CommonSense LoRa Network server traffic with the command: tail -f /var/log/lora-pkt-fwd.log. If there is, your gateway is ready to work.

Contact us to speak about your IoT projects on + 33 1 43 15 69 85

September 25, 2018

linkedin icon linkedin icon linkedin icon linkedin icon
FR EN