How to connect iFrog LoRa Gateway to QNAP QIoT Suite Lite

In this tutorial, you will learn how to send data from the iFrogLab LoRa Gateway to QNAP QIoT Suite Lite.

 

Prepare

Set up the iFrogLab LoRa USB to QIoT Suite Lite and iFrogLab LoRa Gateway Container. Setup steps can be found at http://www.ifroglab.com/en/?p=6613  (If in Step 10 the expected output is not displayed, using SSH to access the NAS and enter the following commands:
           insmod /usr/local/modules/cdc-acm.ko
           insmod /usr/local/modules/cp210x.ko
           insmod /usr/local/modules/ftdi_sio.ko )

If the NAS restarts, then the commands must be entered again.

 

Set up iFrogLab LoRa Gateway MQTT

0

 

  • Open Container Station, choose your iFrog Lora Gateway, and click “Terminal“.

1

 

  • Enter the command: “nano /ifroglab/IL-LORA1272/LoRa-Gateway/Gateway/Python/ap-01-lora-gateway-2-read-httpGet.py” and click “OK“.
  • Move to “mqtt=” mosquitto_pub -d -t ifroglab/mqtt -m ‘%s’ -h test.mosquitto.org”%(HexString);” and add a “#” in front of it. As below:

2

  • Add a new string as below:

2-1

-h : Enter the QIoT service IP (If QIoT Suite Lite and iFrogLab LoRa Gateway are in the same NAS, enter the Container Station NAT Gateway IP -the default value is                     10.0.3.1)
-p : Default value: 21883, modify this according to your resourceinfo.json data
-t : (topic) Modify this according to your resourceinfo.json data
-u : (username) Modify this according to your resourceinfo.json data
-P : (password) Modify this according to your resourceinfo.json data
-m : (message type) Modify this according the above example

The change as below:

3

 

  • Click “Ctrl+O” and click “Enter” to save then click “Crtl+X” to leave

4

 

  • Open the “iFrogLora Gateway” Container. The following screen will appear if it has been modified successfully

5

 

  • Open “QIoT Suite Lite” >  “IoT Application“. The “Thing Data Log” display this status

6

 

  • Go to “Rule” and you can start your IoT Application. The received data will be HEX. (Example rule as below)

7

 

Example rule:

Related posts

Leave a Reply