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