<
From version < 1.4 >
edited by Xiaoling
on 2022/05/12 17:51
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,11 +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 =
18 += How it works =
20 20  
21 21  
22 -Video Instruction: [[https:~~/~~/youtu.be/ZBjXwmp7rwM>>url:https://youtu.be/ZBjXwmp7rwM]]
21 +\\Video Instruction: [[https:~~/~~/youtu.be/ZBjXwmp7rwM>>url:https://youtu.be/ZBjXwmp7rwM]]
23 23  
23 +
24 +\\
25 +
24 24  Assume we have the LoRaWAN tracker LGT92 which works in ABP mode and US915 band. It has below keys:
25 25  
26 26  {{{AT+NWKSKEY=72 32 63 95 dd 8f e2 b2 13 66 e4 35 93 8f 55 df
... ... @@ -32,18 +32,18 @@
32 32  
33 33  We need to input above keys in LG308 and enable ABP decryption.
34 34  
35 -[[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]]
36 36  
37 37  Input the ABP keys in LG308
38 38  
39 39  
40 -== 2.1 Upstream ==
42 +== Upstream ==
41 41  
42 42  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.
43 43  
44 44  We can see the log of LG308 to know this packet arrive
45 45  
46 -[[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]]
47 47  
48 48  LG308 log by "logread -f" command
49 49  
... ... @@ -72,7 +72,7 @@
72 72  {{{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.
73 73  }}}
74 74  
75 -=== 2.2.1 Decode Method ===
77 +=== Decode Method ===
76 76  
77 77  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.
78 78  
... ... @@ -102,7 +102,7 @@
102 102  Above scripts are store in /etc/lora/decoder/. User can put their scripts here and select it in the UI.
103 103  
104 104  
105 -=== 2.2.2 How to Decode My End Node ===
107 +=== How to Decode My End Node ===
106 106  
107 107  1/ Configure the ABP keys for your end node in the gateway. enable ABP decode in Web UI
108 108  
... ... @@ -124,8 +124,9 @@
124 124  * the last line return is what will be used for MQTT
125 125  * User can use other language ,not limited to Lua, just make sure the return is what you want to send.
126 126  
127 -== 2.2 Downstream ==
128 128  
130 +== Downstream ==
131 +
129 129  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
130 130  
131 131  The file should use below format:
... ... @@ -218,7 +218,7 @@
218 218  2:3132333435363738 --> ASCII string "12345678"
219 219  }}}
220 220  
221 -= 3. Example 1: Communicate with LT-22222-L =
224 += Example 1: Communicate with LT-22222-L =
222 222  
223 223  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]]
224 224  
... ... @@ -259,7 +259,7 @@
259 259  
260 260  ~1. Input keys
261 261  
262 -[[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]]
263 263  
264 264  Input Keys in LPS8
265 265  
... ... @@ -267,26 +267,26 @@
267 267  
268 268  3. Choose Built-in server
269 269  
270 -[[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]]
271 271  
272 272  Choose Built-in server
273 273  
274 274  4. Run the script.
275 275  
276 -[[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]]
277 277  
278 278  Run the script
279 279  
280 280  5. Output:
281 281  
282 -[[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]]
283 283  
284 284  Output from LPS8
285 285  
286 286  
287 -= 4. Example 2: Communicate to TCP Server =
290 += Example 2: Communicate to TCP Server =
288 288  
289 -[[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]]
290 290  
291 291  Network Structure
292 292  
... ... @@ -301,13 +301,13 @@
301 301  
302 302  Assume we already set up ABP keys in the gateway:
303 303  
304 -[[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]]
305 305  
306 306  Input Keys in LPS8
307 307  
308 308  run socket tool in PC
309 309  
310 -[[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]]
311 311  
312 312  Socket tool
313 313  
... ... @@ -314,7 +314,7 @@
314 314  
315 315  Input Server address and port
316 316  
317 -[[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]]
318 318  
319 319  Input Server address and port
320 320  
... ... @@ -321,7 +321,7 @@
321 321  
322 322  See value receive in socket tool. :
323 323  
324 -[[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]]
325 325  
326 326  value receive in socket tool
327 327  
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0