How to further process data receive in gateway
Table of Contents:
- 1. Introduction
- 2. Case 1: Standard LoRaWAN connection-- LoRaWAN server is a public server
- 3. Case 2: Standard LoRaWAN connection-- LoRaWAN server is a private server
- 4. Case 3: Standard LoRaWAN connection-- use Gateway built-in LoRaWAN server to connect to external IoT server
- 5. Case 4: Standard LoRaWAN connection-- use Gateway built-in LoRaWAN server and IoT server
- 6. Case 5: Standard LoRaWAN connection-- without LoRaWAN server, use ABP LoRaWAN End node
- 7. Case 6: None standard LoRaWAN connection-- without LoRaWAN server, none standard LoRaWAN protocol, no security
- 8. Case 7: Private LoRa connection-- without LoRaWAN server, use Raw LoRa protocol
1. Introduction
This instruction explains how to process the LoRa/LoRaWAN data receive on LoRa/LoRaWAN gateway.
There are different network topology. Please check the suitable one for you.
2. Case 1: Standard LoRaWAN connection-- LoRaWAN server is a public server
LoRaWAN connection
This is a standard LoRaWAN connection. Gateway will forward all end nodes' data to LoRaWAN server. The LoRaWAN server stores the sensor data and communicate with Application server. The Application server in charge for data process for different industrial solutions.
Reference Link:
- Gateway set up instruction to LoRaWAN server. Gateway User Manual
- Examples free public LoRaWAN server is: The Things Network. Example for IoT Server is : DataCake
- TTN provides the integration instruction for how to connect to Application servers.
3. Case 2: Standard LoRaWAN connection-- LoRaWAN server is a private server
LoRaWAN connection
Basically, this is the same network topology as above, except users build the LoRaWAN server themselves. Below are two open source LoRaWAN servers commonly used:
Please note LoRaWAN server is for managing device and store sensor data, you still need to link the LoRaWAN server to an application server for your IoT solution to better analize the data and show to final clients.
4. Case 3: Standard LoRaWAN connection-- use Gateway built-in LoRaWAN server to connect to external IoT server
Application Scenario:
- There is already IoT server but no LoRaWAN server.
- Not willing to use public LoRaWAN server nor built own LoRaWAN server.
Suitable Gateway:
- LoRaWAN Gateway model: LPS8v2.
How it works:
- a) LPS8v2 already includes a LoRaWAN server (TTN Stack v3). Enable this server in Web UI.
- b) Input End Nodes keys in LPS8v2 LoRaWAN server.
- c) Configure LPS8v2, End Node and LoRaWAN server frequency plan.
- d) Configure local LoRaWAN server to forward data to external Application Server.
5. Case 4: Standard LoRaWAN connection-- use Gateway built-in LoRaWAN server and IoT server
Application Scenario:
- No cloud IoT Server or LoRaWAN server
- Not willing to use public LoRaWAN server nor built own LoRaWAN server.
Suitable Gateway:
- LoRaWAN Gateway model: LPS8v2.
How it works:
- a) LPS8v2 already includes a LoRaWAN server (TTN Stack v3). Enable this server in Web UI.
- b) Input End Nodes keys in LPS8v2 LoRaWAN server.
- c) Configure LPS8v2, End Node and LoRaWAN server frequency plan.
- d) Configure IoT server (Node-Red) in LPS8v2
6. Case 5: Standard LoRaWAN connection-- without LoRaWAN server, use ABP LoRaWAN End node
Recommend using Case3 as a replacement.
Below gateways support this mode:
How it works:
- a) LoRaWAN End Nodes runs ABP mode
- b) No LoRaWAN server involved.
- c) Gateway stores keys from node and decode end nodes' data locally
- d) Gateway sends end node data to Application Server.
Reference Instruction: Communication with ABP End Node
LoRaWAN connection without LoRaWAN server
7. Case 6: None standard LoRaWAN connection-- without LoRaWAN server, none standard LoRaWAN protocol, no security
This method is to encryption part from LoRaWAN protocol and make the server side simple.
Unencrypt Network modified from LoRaWAN
Detail see: How to send none encryption LoRaWAN Packet
8. Case 7: Private LoRa connection-- without LoRaWAN server, use Raw LoRa protocol
Below gateways support this mode:
How it works:
- a) LoRa End Node send Raw LoRa packet base on pre-define format
- b) No LoRaWAN server involved.
- c) Gateway parse the packet and get sensor ID and data.
- d) Gateway sends these data to Application Server.
Reference Intruction: MQTT Forward Instruction
Raw LoRa uplink