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