Table of Contents:

1.  Introduction

The LPS8-V2 of Dragino LoRaWAN gateway can communicate with LoRaWAN ABP End Node, the working is based on the built-in server TTN-Stack.

It can be used in some cases such as:

  • No internet connection.
  • Users want to get data forward in the gateway and forward it to their server based on MQTT/HTTP.
  • Forward the data to the built-in Application server Node-Red.
  • Just storing the data on the gateway or external storage

The basic of this feature is the decoding of LoRaWAN ABP End Node. Requirements:

  1. LoRaWAN End Node in ABP mode. Make sure your end node works in this mode. End node most are default set to OTAA mode
  2. LoRaWAN Gateway model: LPS8-V2
  3. System version: Since V.12

2.  Quick Start

The default factory version of LPS8-V2 is installed with the Built-in LoRaWAN Server: The Things Network - Stack (Open Source 3.19 Version).

Once the gateway is DHCP an IPV4 address, and then you can access the build-in server TTN-Stack.

2.1.  Configure the gateway mode

You can access  the gateway's Manage Web UI, via the URL ( http://<hostname> or http://<local-IPV4-address> ) in your browser

Selecting the right frequency band

image-20220802142103-1.png

Configure the Semtech UDP forwarder

image-20220802142147-3.png

2.2.  Login to the built-in server TTN-Stack

You can access the gateway's built-in server of The Things Network - Stack via the URL( http://<hostname>:8080 or http://<local-IPV4-address:8080> ) in your browser.

Such as  http://dragino-54ff12:8080  or http://<Local-IPV4-Address>

Login account:

 User ID:              admin

 Password:          dragino

image-20220725171719-1.png

2.3.  Add the gateway & the sensor

Here only show the image of the finish, more details about how to add the gateway & sensor refer to this wiki: 

Add the gateway

image-20220802142946-5.png

Add the Sensor

image-20220802143031-6.png

2.4.  Add the decoder

If you use dragino sensors then you can find the recorder on this URL: 

image-20220802143129-7.png

2.5.  Visual Data

In this section, you can be seen that the payload of the sensor has been interpreted as visual data.

And the next part will discuss where to let the data flow。

image-20220802143214-8.png

3.  Forward the data or store the data

You are done most of the work, now you just need to plan the flow of data to where.

3.1  Forward data to an external server based on MQTT/HTTP.

MQTT

You need to connect to this public address on your external server and subscribe to the topic (v3/<application_name>/devices/<devices_name>/up).

image-20220802144754-9.png

subscribe to the topic and get the data

image-20220802145408-10.png

HTTP

image-20220802145450-11.png

3.2  Forward data to the built-in application server Node-Red.

image-20220802150715-1.png

3.3  Just storing the data on the gateway or external storage.

Data can be stored or read by subscribing to topics: v3/<application_name>/devices/<devices_name>/up.

Then add the storage node (write file), Users can download the Node-Red flowchart from this link to test data storage:test_data_storage.json

After the configuration is complete, users can find the node logs in the root/ directory

image-20220806153310-11.png

image-20220806153112-9.png

image-20220806153048-8.png

image-20220806153150-10.png

4.  Sent the downlink to the sensor

Downlinks can be scheduled by publishing the message to the topic  v3/<application_name>/devices/<devices_name>/down/push.

NoteRemember that the format of this topic for The Things Stack Open Source deployment would be (v3/<application_name>/devices/<devices_name>/down/push).

MQTT Server | The Things Stack for LoRaWAN (thethingsindustries.com)

Instead of /push, you can also use /replace to replace the downlink queue. Replacing with an empty array clears the downlink queue.

Example:

{
  "downlinks": [{
    "f_port": 2,
    "frm_payload": "AwAA",  
    "priority": "HIGH",
    "confirmed": true
  }]
}

image-20220802170358-4.png

image-20220802164844-3.png

Node-red

Users can download the Node-Red flowchart for testing mqtt-test.json

image-20220802172021-6.png

5.  Trouble Shootings

 

Tags:
    
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0