NDU Gateway

Integrate legacy and third-party systems with NDU platform using IoT Gateway.

Install NDU Gateway as package.

Prerequisites

This guide describes how to install NDU Gateway on Ubuntu Server 18.04 LTS. The minimum system requirements match official minimum requirements for the OS.

Step 1. Download the deb file

Download installation package.

1
wget https://github.com/netcadlabs/ndu-gateway/releases/latest/download/python3-thingsboard-gateway.deb

Step 2. Install the gateway using apt

Install NDU Gateway as package and run it as daemon use the following command:

1
sudo apt install ./python3-thingsboard-gateway.deb -y

The deb package will automatically install the necessary libraries for the IOT Gateway to work:

  1. System libraries: libffi-dev, libglib2.0-dev, libxml2-dev, libxslt-dev, libssl-dev, zlib1g-dev, python3-dev, python3-pip.
  2. Python modules: importlib, importlib-metadata, jsonschema, pymodbus, lxml, jsonpath-rw, paho-mqtt, pyserial, PyYAML, simplejson, pyrsistent.

Step 3. Check gateway status

1
systemctl status thingsboard-gateway

You may notice some errors in the output. However, it is expected, since gateway is not configured to connect to NDU yet:

1
2
3
4
... python3[7563]: ''2019-12-26 09:31:15' - ERROR - mqtt_connector - 181 - Default Broker connection FAIL with error 5 not authorised!'
... python3[7563]: ''2019-12-26 09:31:15' - DEBUG - mqtt_connector - 186 - "Default Broker" was disconnected.'
... python3[7563]: ''2019-12-26 09:31:16' - DEBUG - tb_client - 78 - connecting to NDU'
... python3[7563]: ''2019-12-26 09:31:17' - DEBUG - tb_client - 78 - connecting to NDU'

Step 4. Configure the gateway

Now you can go to configuration guide to configure the gateway.