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

Summary

Details

Page properties
Content
... ... @@ -1,8 +1,7 @@
1 -Contents:
1 +
2 2  
3 += Introduction =
3 3  
4 -= 1. Introduction =
5 -
6 6  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:
7 7  
8 8  * No internet connection.
... ... @@ -16,9 +16,14 @@
16 16  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/]]
17 17  
18 18  
19 -= 2. How it works
20 -\\Video Instruction: [[https:~~/~~/youtu.be/ZBjXwmp7rwM>>url:https://youtu.be/ZBjXwmp7rwM]] =
18 += How it works =
21 21  
20 +
21 +\\Video Instruction: [[https:~~/~~/youtu.be/ZBjXwmp7rwM>>url:https://youtu.be/ZBjXwmp7rwM]]
22 +
23 +
24 +\\
25 +
22 22  Assume we have the LoRaWAN tracker LGT92 which works in ABP mode and US915 band. It has below keys:
23 23  
24 24  {{{AT+NWKSKEY=72 32 63 95 dd 8f e2 b2 13 66 e4 35 93 8f 55 df
... ... @@ -30,18 +30,18 @@
30 30  
31 31  We need to input above keys in LG308 and enable ABP decryption.
32 32  
33 -[[image:https://wiki.dragino.com/images/thumb/5/55/LG308_MQTT_1.png/600px-LG308_MQTT_1.png||height="329" width="600"]]
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]]
34 34  
35 35  Input the ABP keys in LG308
36 36  
37 37  
38 -== 2.1 Upstream ==
42 +== Upstream ==
39 39  
40 40  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.
41 41  
42 42  We can see the log of LG308 to know this packet arrive
43 43  
44 -[[image:https://wiki.dragino.com/images/thumb/1/16/ABP_DECODE_2.png/600px-ABP_DECODE_2.png||height="205" width="600"]]
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]]
45 45  
46 46  LG308 log by "logread -f" command
47 47  
... ... @@ -70,7 +70,7 @@
70 70  {{{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.
71 71  }}}
72 72  
73 -=== 2.2.1 Decode Method ===
77 +=== Decode Method ===
74 74  
75 75  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.
76 76  
... ... @@ -100,7 +100,7 @@
100 100  Above scripts are store in /etc/lora/decoder/. User can put their scripts here and select it in the UI.
101 101  
102 102  
103 -=== 2.2.2 How to Decode My End Node ===
107 +=== How to Decode My End Node ===
104 104  
105 105  1/ Configure the ABP keys for your end node in the gateway. enable ABP decode in Web UI
106 106  
... ... @@ -122,8 +122,9 @@
122 122  * the last line return is what will be used for MQTT
123 123  * User can use other language ,not limited to Lua, just make sure the return is what you want to send.
124 124  
125 -== 2.2 Downstream ==
126 126  
130 +== Downstream ==
131 +
127 127  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
128 128  
129 129  The file should use below format:
... ... @@ -216,7 +216,7 @@
216 216  2:3132333435363738 --> ASCII string "12345678"
217 217  }}}
218 218  
219 -= 3. Example 1: Communicate with LT-22222-L =
224 += Example 1: Communicate with LT-22222-L =
220 220  
221 221  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]]
222 222  
... ... @@ -257,7 +257,7 @@
257 257  
258 258  ~1. Input keys
259 259  
260 -[[image:https://wiki.dragino.com/images/thumb/b/bf/LPS8_LT-22222_1.png/600px-LPS8_LT-22222_1.png||height="335" width="600"]]
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]]
261 261  
262 262  Input Keys in LPS8
263 263  
... ... @@ -265,26 +265,26 @@
265 265  
266 266  3. Choose Built-in server
267 267  
268 -[[image:https://wiki.dragino.com/images/thumb/d/d7/LPS8_LT-22222_2.png/600px-LPS8_LT-22222_2.png||height="264" width="600"]]
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]]
269 269  
270 270  Choose Built-in server
271 271  
272 272  4. Run the script.
273 273  
274 -[[image:https://wiki.dragino.com/images/thumb/3/39/LPS8_LT-22222_3.png/600px-LPS8_LT-22222_3.png||height="389" width="600"]]
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]]
275 275  
276 276  Run the script
277 277  
278 278  5. Output:
279 279  
280 -[[image:https://wiki.dragino.com/images/thumb/f/fe/LPS8_LT-22222_4.png/600px-LPS8_LT-22222_4.png||height="433" width="600"]]
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]]
281 281  
282 282  Output from LPS8
283 283  
284 284  
285 -= 4. Example 2: Communicate to TCP Server =
290 += Example 2: Communicate to TCP Server =
286 286  
287 -[[image:https://wiki.dragino.com/images/thumb/7/75/LPS8_TCP_0.png/600px-LPS8_TCP_0.png||height="370" width="600"]]
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]]
288 288  
289 289  Network Structure
290 290  
... ... @@ -299,13 +299,13 @@
299 299  
300 300  Assume we already set up ABP keys in the gateway:
301 301  
302 -[[image:https://wiki.dragino.com/images/thumb/b/bf/LPS8_LT-22222_1.png/600px-LPS8_LT-22222_1.png||height="335" width="600"]]
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]]
303 303  
304 304  Input Keys in LPS8
305 305  
306 306  run socket tool in PC
307 307  
308 -[[image:https://wiki.dragino.com/images/thumb/4/4b/LPS8_TCP_2.png/600px-LPS8_TCP_2.png||height="212" width="600"]]
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]]
309 309  
310 310  Socket tool
311 311  
... ... @@ -312,7 +312,7 @@
312 312  
313 313  Input Server address and port
314 314  
315 -[[image:https://wiki.dragino.com/images/thumb/c/c6/LPS8_TCP_3.png/600px-LPS8_TCP_3.png||height="306" width="600"]]
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]]
316 316  
317 317  Input Server address and port
318 318  
... ... @@ -319,7 +319,7 @@
319 319  
320 320  See value receive in socket tool. :
321 321  
322 -[[image:https://wiki.dragino.com/images/thumb/2/20/LPS8_TCP_4.png/600px-LPS8_TCP_4.png||height="219" width="600"]]
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]]
323 323  
324 324  value receive in socket tool
325 325  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0