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

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