<
From version < 1.2 >
edited by Xiaoling
on 2022/05/12 17:47
To version < 1.7 >
edited by Xiaoling
on 2022/05/12 17:54
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,14 +1,19 @@
1 -
1 + **Contents:**
2 2  
3 -= Introduction =
3 +{{toc/}}
4 4  
5 +
6 += 1. Introduction =
7 +
5 5  The Dragino LoRaWAN gateway can commuicate with LoRaWAN ABP End Node without the need of LoRaWAN server. It can be used in some cases such as:
6 6  
7 7  * No internet connection.
8 8  * User wants to get data forward in gateway and forward to their server base on MQTT/HTTP, etc. (Combine ABP communication method and [[MQTT forward together>>url:https://wiki.dragino.com/index.php/MQTT_Forward_Instruction]]).
9 9  
13 +(((
10 10  
11 11  The basic of this feature is the decoding of LoRaWAN ABP End Node. Requirements:
16 +)))
12 12  
13 13  1. LoRaWAN End Node in ABP mode. Make sure your end node works in this mode. End node most are default set to OTAA mode
14 14  1. 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]] ,[[LIG16>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.html]]
... ... @@ -15,14 +15,11 @@
15 15  1. Firmware version for below instruction:[[Since LG02_LG08~~-~~-build-v5.4.1593400722-20200629-1120>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]]
16 16  
17 17  
18 -= How it works =
23 += 2. How it works =
19 19  
20 20  
21 -\\Video Instruction: [[https:~~/~~/youtu.be/ZBjXwmp7rwM>>url:https://youtu.be/ZBjXwmp7rwM]]
26 +Video Instruction: [[https:~~/~~/youtu.be/ZBjXwmp7rwM>>url:https://youtu.be/ZBjXwmp7rwM]]
22 22  
23 -
24 -\\
25 -
26 26  Assume we have the LoRaWAN tracker LGT92 which works in ABP mode and US915 band. It has below keys:
27 27  
28 28  {{{AT+NWKSKEY=72 32 63 95 dd 8f e2 b2 13 66 e4 35 93 8f 55 df
... ... @@ -34,18 +34,18 @@
34 34  
35 35  We need to input above keys in LG308 and enable ABP decryption.
36 36  
37 -[[~[~[image:https://wiki.dragino.com/images/thumb/5/55/LG308_MQTT_1.png/600px-LG308_MQTT_1.png~|~|height="329" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LG308_MQTT_1.png]]
39 +[[image:https://wiki.dragino.com/images/thumb/5/55/LG308_MQTT_1.png/600px-LG308_MQTT_1.png||height="329" width="600"]]
38 38  
39 39  Input the ABP keys in LG308
40 40  
41 41  
42 -== Upstream ==
44 +== 2.1 Upstream ==
43 43  
44 44  Now when this End Node (Dev Addr=2602111D) send a uplink packet. When this packet arrive LG308, LG308 will decode it and put the decode data on the file /var/iot/channels/2602111D . So we have this data for further process with other applications in LG308.
45 45  
46 46  We can see the log of LG308 to know this packet arrive
47 47  
48 -[[~[~[image:https://wiki.dragino.com/images/thumb/1/16/ABP_DECODE_2.png/600px-ABP_DECODE_2.png~|~|height="205" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:ABP_DECODE_2.png]]
50 +[[image:https://wiki.dragino.com/images/thumb/1/16/ABP_DECODE_2.png/600px-ABP_DECODE_2.png||height="205" width="600"]]
49 49  
50 50  LG308 log by "logread -f" command
51 51  
... ... @@ -74,7 +74,7 @@
74 74  {{{Notice 2: The upstream payload length should match the LoRaWAN length requirement (max length depends on Frequency and DR), otherwise the gateway can't decode the payload.
75 75  }}}
76 76  
77 -=== Decode Method ===
79 +=== 2.2.1 Decode Method ===
78 78  
79 79  The decode methods: ASCII String, Decode_LHT65 doesn't affect how the sensor data is stored, they are to define how should the sensor data to be sent.
80 80  
... ... @@ -104,7 +104,7 @@
104 104  Above scripts are store in /etc/lora/decoder/. User can put their scripts here and select it in the UI.
105 105  
106 106  
107 -=== How to Decode My End Node ===
109 +=== 2.2.2 How to Decode My End Node ===
108 108  
109 109  1/ Configure the ABP keys for your end node in the gateway. enable ABP decode in Web UI
110 110  
... ... @@ -126,9 +126,8 @@
126 126  * the last line return is what will be used for MQTT
127 127  * User can use other language ,not limited to Lua, just make sure the return is what you want to send.
128 128  
131 +== 2.2 Downstream ==
129 129  
130 -== Downstream ==
131 -
132 132  In LG308, we can create a file in the directory /var/iot/push for downstream purpose. We recommend using each command to generate this file. This file will be used for transmission and auto-deleted after used
133 133  
134 134  The file should use below format:
... ... @@ -221,7 +221,7 @@
221 221  2:3132333435363738 --> ASCII string "12345678"
222 222  }}}
223 223  
224 -= Example 1: Communicate with LT-22222-L =
225 += 3. Example 1: Communicate with LT-22222-L =
225 225  
226 226  Script can be download from: [[Example Script 1>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/customized_script/&file=talk_to_lt-22222-l_v0.1.sh]]
227 227  
... ... @@ -262,7 +262,7 @@
262 262  
263 263  ~1. Input keys
264 264  
265 -[[~[~[image:https://wiki.dragino.com/images/thumb/b/bf/LPS8_LT-22222_1.png/600px-LPS8_LT-22222_1.png~|~|height="335" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LPS8_LT-22222_1.png]]
266 +[[image:https://wiki.dragino.com/images/thumb/b/bf/LPS8_LT-22222_1.png/600px-LPS8_LT-22222_1.png||height="335" width="600"]]
266 266  
267 267  Input Keys in LPS8
268 268  
... ... @@ -270,26 +270,26 @@
270 270  
271 271  3. Choose Built-in server
272 272  
273 -[[~[~[image:https://wiki.dragino.com/images/thumb/d/d7/LPS8_LT-22222_2.png/600px-LPS8_LT-22222_2.png~|~|height="264" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LPS8_LT-22222_2.png]]
274 +[[image:https://wiki.dragino.com/images/thumb/d/d7/LPS8_LT-22222_2.png/600px-LPS8_LT-22222_2.png||height="264" width="600"]]
274 274  
275 275  Choose Built-in server
276 276  
277 277  4. Run the script.
278 278  
279 -[[~[~[image:https://wiki.dragino.com/images/thumb/3/39/LPS8_LT-22222_3.png/600px-LPS8_LT-22222_3.png~|~|height="389" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LPS8_LT-22222_3.png]]
280 +[[image:https://wiki.dragino.com/images/thumb/3/39/LPS8_LT-22222_3.png/600px-LPS8_LT-22222_3.png||height="389" width="600"]]
280 280  
281 281  Run the script
282 282  
283 283  5. Output:
284 284  
285 -[[~[~[image:https://wiki.dragino.com/images/thumb/f/fe/LPS8_LT-22222_4.png/600px-LPS8_LT-22222_4.png~|~|height="433" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LPS8_LT-22222_4.png]]
286 +[[image:https://wiki.dragino.com/images/thumb/f/fe/LPS8_LT-22222_4.png/600px-LPS8_LT-22222_4.png||height="433" width="600"]]
286 286  
287 287  Output from LPS8
288 288  
289 289  
290 -= Example 2: Communicate to TCP Server =
291 += 4. Example 2: Communicate to TCP Server =
291 291  
292 -[[~[~[image:https://wiki.dragino.com/images/thumb/7/75/LPS8_TCP_0.png/600px-LPS8_TCP_0.png~|~|height="370" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LPS8_TCP_0.png]]
293 +[[image:https://wiki.dragino.com/images/thumb/7/75/LPS8_TCP_0.png/600px-LPS8_TCP_0.png||height="370" width="600"]]
293 293  
294 294  Network Structure
295 295  
... ... @@ -304,13 +304,13 @@
304 304  
305 305  Assume we already set up ABP keys in the gateway:
306 306  
307 -[[~[~[image:https://wiki.dragino.com/images/thumb/b/bf/LPS8_LT-22222_1.png/600px-LPS8_LT-22222_1.png~|~|height="335" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LPS8_LT-22222_1.png]]
308 +[[image:https://wiki.dragino.com/images/thumb/b/bf/LPS8_LT-22222_1.png/600px-LPS8_LT-22222_1.png||height="335" width="600"]]
308 308  
309 309  Input Keys in LPS8
310 310  
311 311  run socket tool in PC
312 312  
313 -[[~[~[image:https://wiki.dragino.com/images/thumb/4/4b/LPS8_TCP_2.png/600px-LPS8_TCP_2.png~|~|height="212" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LPS8_TCP_2.png]]
314 +[[image:https://wiki.dragino.com/images/thumb/4/4b/LPS8_TCP_2.png/600px-LPS8_TCP_2.png||height="212" width="600"]]
314 314  
315 315  Socket tool
316 316  
... ... @@ -317,7 +317,7 @@
317 317  
318 318  Input Server address and port
319 319  
320 -[[~[~[image:https://wiki.dragino.com/images/thumb/c/c6/LPS8_TCP_3.png/600px-LPS8_TCP_3.png~|~|height="306" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LPS8_TCP_3.png]]
321 +[[image:https://wiki.dragino.com/images/thumb/c/c6/LPS8_TCP_3.png/600px-LPS8_TCP_3.png||height="306" width="600"]]
321 321  
322 322  Input Server address and port
323 323  
... ... @@ -324,7 +324,7 @@
324 324  
325 325  See value receive in socket tool. :
326 326  
327 -[[~[~[image:https://wiki.dragino.com/images/thumb/2/20/LPS8_TCP_4.png/600px-LPS8_TCP_4.png~|~|height="219" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LPS8_TCP_4.png]]
328 +[[image:https://wiki.dragino.com/images/thumb/2/20/LPS8_TCP_4.png/600px-LPS8_TCP_4.png||height="219" width="600"]]
328 328  
329 329  value receive in socket tool
330 330  
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0