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