Version 20.5 by Xiaoling on 2022/07/21 17:47

Hide last authors
Xiaoling 20.4 1 *
Xiaoling 20.2 2 ** Table of** **Contents:
Xiaoling 1.1 3
Xiaoling 1.3 4 {{toc/}}
Xiaoling 1.1 5
Xiaoling 1.10 6
7
Xiaoling 1.2 8 = 1. Introduction =
Xiaoling 1.1 9
Xiaoling 1.2 10 This instruction explains how to process the LoRa/LoRaWAN data receive on LoRa/LoRaWAN gateway.
Xiaoling 1.1 11
Xiaoling 1.5 12 (((
Xiaoling 1.2 13 There are different network topology. Please check the suitable one for you.
Xiaoling 2.2 14
Xiaoling 20.2 15
Xiaoling 2.2 16
Xiaoling 1.5 17 )))
Xiaoling 1.1 18
Xiaoling 1.2 19 = 2. Case 1: Standard LoRaWAN connection~-~- LoRaWAN server is a public server =
Xiaoling 1.1 20
Xiaoling 20.5 21
Xiaoling 2.2 22 [[image:image-20220527151200-1.png]]
Xiaoling 1.1 23
Xiaoling 1.2 24 LoRaWAN connection
Xiaoling 1.1 25
Xiaoling 20.5 26
Xiaoling 1.5 27 (((
Xiaoling 1.2 28 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.
Xiaoling 1.5 29 )))
Xiaoling 1.1 30
Xiaoling 1.5 31 (((
32
33 )))
34
35 (((
Xiaoling 1.2 36 Reference Link:
Xiaoling 1.5 37 )))
Xiaoling 1.1 38
Xiaoling 8.2 39 * Gateway set up instruction to LoRaWAN server. [[Gateway User Manual>>https://www.dragino.com/downloads/downloads/LoRa_Gateway/LG308-LG301/LG308_LoRaWAN_Gateway_User_Manual_v1.4.2.pdf]]
Xiaoling 1.2 40 * Examples free public LoRaWAN server is: [[The Things Network>>url:https://www.thethingsnetwork.org/]].
41 * TTN provides the [[integration instruction>>url:https://www.thethingsnetwork.org/docs/applications/integrations.html]] for how to connect to Application servers.
Xiaoling 1.1 42
Xiaoling 20.4 43
44
Xiaoling 1.2 45 = 3. Case 2: Standard LoRaWAN connection~-~- LoRaWAN server is a private server =
Xiaoling 1.1 46
Xiaoling 20.4 47
Xiaoling 6.2 48 [[image:image-20220527151408-2.png]]
Xiaoling 1.1 49
Xiaoling 1.2 50 LoRaWAN connection
Xiaoling 1.1 51
Xiaoling 1.6 52 (((
Xiaoling 1.2 53 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:
Xiaoling 1.6 54 )))
Xiaoling 1.2 55
56 * [[ChirpStack>>url:https://www.chirpstack.io/]]
57 * [[TTN Stack V3>>url:https://www.thethingsnetwork.org/tech-stack#section1]]
58 * [[lorawan-server by Petr Gotthard>>url:https://github.com/gotthardp/lorawan-server]]
59
Xiaoling 1.6 60 (((
61 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.
62 )))
Xiaoling 1.2 63
64
Xiaoling 20.2 65
Edwin Chen 14.1 66 = 4. Case 3: Standard LoRaWAN connection~-~- use Gateway built-in LoRaWAN server to connect to external IoT server =
Xiaoling 1.2 67
Edwin Chen 9.1 68
Xiaoling 20.2 69 (% style="color:blue" %)**Application Scenario**:
70
Edwin Chen 14.1 71 * There is already IoT server but no LoRaWAN server.
72 * Not willing to use public LoRaWAN server nor built own LoRaWAN server.
73
Xiaoling 20.2 74 (% style="color:blue" %)**Suitable Gateway:**
75
Edwin Chen 19.1 76 * LoRaWAN Gateway model: [[LPS8v2>>doc:Main.User Manual for All Gateway models.HP0C.WebHome]].
Edwin Chen 14.1 77
Xiaoling 20.2 78 (% style="color:blue" %)**How it works:**
79
Edwin Chen 14.1 80 * a) LPS8v2 already includes a LoRaWAN server (TTN Stack v3). Enable this server in Web UI.
81 * b) Input End Nodes keys in LPS8v2 LoRaWAN server.
82 * c) Configure LPS8v2, End Node and LoRaWAN server frequency plan.
83 * d) Configure local LoRaWAN server to forward data to external Application Server.
84
85 [[image:image-20220626095429-4.png||height="523" width="864"]]
86
87
88
Edwin Chen 18.1 89 = 5. Case 4: Standard LoRaWAN connection~-~- use Gateway built-in LoRaWAN server and IoT server =
Edwin Chen 14.1 90
Edwin Chen 9.1 91
Xiaoling 20.3 92 (% style="color:blue" %)**Application Scenario**:
93
Edwin Chen 18.1 94 * No cloud IoT Server or LoRaWAN server
95 * Not willing to use public LoRaWAN server nor built own LoRaWAN server.
Edwin Chen 15.1 96
Xiaoling 20.3 97 (% style="color:blue" %)**Suitable Gateway:**
Edwin Chen 18.1 98
Edwin Chen 20.1 99 * LoRaWAN Gateway model: [[LPS8v2>>doc:Main.User Manual for All Gateway models.HP0C.WebHome]].
Edwin Chen 18.1 100
Xiaoling 20.3 101 (% style="color:blue" %)**How it works:**
Edwin Chen 18.1 102
103 * a) LPS8v2 already includes a LoRaWAN server (TTN Stack v3). Enable this server in Web UI.
104 * b) Input End Nodes keys in LPS8v2 LoRaWAN server.
105 * c) Configure LPS8v2, End Node and LoRaWAN server frequency plan.
106 * d) Configure IoT server (Node-Red) in LPS8v2
107
108 [[image:image-20220626100457-6.png||height="513" width="824"]]
109
110
111
112 = 6. Case 5: Standard LoRaWAN connection~-~- without LoRaWAN server, use ABP LoRaWAN End node =
113
114
Xiaoling 20.3 115 (% style="color:red" %)**Recommend using Case3 as a replacement.**
Xiaoling 1.2 116
Xiaoling 20.3 117
118 (% style="color:blue" %)**Below gateways support this mode:**
119
Xiaoling 1.2 120 * LoRaWAN Gateway model: [[LPS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]], [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]], [[DLOS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/160-dlos8.html]]
121
122
Xiaoling 20.3 123 (% style="color:blue" %)**How it works:**
124
Xiaoling 1.2 125 * a) LoRaWAN End Nodes runs ABP mode
126 * b) No LoRaWAN server involved.
127 * c) Gateway stores keys from node and decode end nodes' data locally
128 * d) Gateway sends end node data to Application Server.
129
Xiaoling 20.3 130
Edwin Chen 20.1 131 Reference Instruction: [[Communication with ABP End Node>>Communicate with ABP End Node without LoRaWAN Network Server --- LG308]]
Xiaoling 1.2 132
Xiaoling 20.4 133
Xiaoling 6.2 134 [[image:image-20220527151531-3.png]]
Xiaoling 1.2 135
136 LoRaWAN connection without LoRaWAN server
137
138
Xiaoling 20.4 139
Edwin Chen 18.1 140 = 7. Case 6: None standard LoRaWAN connection~-~- without LoRaWAN server, none standard LoRaWAN protocol, no security =
Xiaoling 1.2 141
Xiaoling 20.4 142
Xiaoling 1.2 143 This method is to encryption part from LoRaWAN protocol and make the server side simple.
144
Xiaoling 6.2 145 [[image:image-20220527151609-4.png]]
Xiaoling 1.2 146
147 Unencrypt Network modified from LoRaWAN
148
Xiaoling 20.4 149
Xiaoling 8.10 150 Detail see: [[How to send none encryption LoRaWAN Packet>>How to send none encryption LoRaWAN Packet]]
Xiaoling 1.2 151
152
Xiaoling 20.4 153
Edwin Chen 18.1 154 = 8. Case 7: Private LoRa connection~-~- without LoRaWAN server, use Raw LoRa protocol =
Xiaoling 1.2 155
156
Xiaoling 20.4 157 (% style="color:blue" %)**Below gateways support this mode:**
158
Xiaoling 1.2 159 * LoRaWAN Gateway model: [[LG01-N>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/143-lg01n.html]], [[OLG01-N>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/144-olg01n.html]], [[LG02>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/135-lg02.html]], [[OLG02>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/136-olg02.html]]
160
161
Xiaoling 20.4 162 (% style="color:blue" %)**How it works:**
163
Xiaoling 1.2 164 * a) LoRa End Node send Raw LoRa packet base on pre-define format
165 * b) No LoRaWAN server involved.
166 * c) Gateway parse the packet and get sensor ID and data.
167 * d) Gateway sends these data to Application Server.
168
Xiaoling 20.4 169
Xiaoling 8.5 170 Reference Intruction: [[MQTT Forward Instruction>>MQTT Forward Instruction]]
Xiaoling 1.2 171
172
Xiaoling 7.2 173 [[image:image-20220527152437-5.png]]
Xiaoling 1.2 174
175 Raw LoRa uplink
Xiaoling 20.4 176
177