<
From version < 1.6 >
edited by Xiaoling
on 2022/05/12 17:52
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,10 +1,7 @@
1 - **Contents:**
1 +
2 2  
3 -{{toc/}}
3 += Introduction =
4 4  
5 -
6 -= 1. Introduction =
7 -
8 8  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:
9 9  
10 10  * No internet connection.
... ... @@ -18,11 +18,14 @@
18 18  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/]]
19 19  
20 20  
21 -= 2. How it works =
18 += How it works =
22 22  
23 23  
24 -Video Instruction: [[https:~~/~~/youtu.be/ZBjXwmp7rwM>>url:https://youtu.be/ZBjXwmp7rwM]]
21 +\\Video Instruction: [[https:~~/~~/youtu.be/ZBjXwmp7rwM>>url:https://youtu.be/ZBjXwmp7rwM]]
25 25  
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"]]
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]]
38 38  
39 39  Input the ABP keys in LG308
40 40  
41 41  
42 -== 2.1 Upstream ==
42 +== 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"]]
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]]
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 -=== 2.2.1 Decode Method ===
77 +=== 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 -=== 2.2.2 How to Decode My End Node ===
107 +=== 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,8 +126,9 @@
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  
129 -== 2.2 Downstream ==
130 130  
130 +== Downstream ==
131 +
131 131  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
132 132  
133 133  The file should use below format:
... ... @@ -220,7 +220,7 @@
220 220  2:3132333435363738 --> ASCII string "12345678"
221 221  }}}
222 222  
223 -= 3. Example 1: Communicate with LT-22222-L =
224 += Example 1: Communicate with LT-22222-L =
224 224  
225 225  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]]
226 226  
... ... @@ -261,7 +261,7 @@
261 261  
262 262  ~1. Input keys
263 263  
264 -[[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]]
265 265  
266 266  Input Keys in LPS8
267 267  
... ... @@ -269,26 +269,26 @@
269 269  
270 270  3. Choose Built-in server
271 271  
272 -[[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]]
273 273  
274 274  Choose Built-in server
275 275  
276 276  4. Run the script.
277 277  
278 -[[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]]
279 279  
280 280  Run the script
281 281  
282 282  5. Output:
283 283  
284 -[[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]]
285 285  
286 286  Output from LPS8
287 287  
288 288  
289 -= 4. Example 2: Communicate to TCP Server =
290 += Example 2: Communicate to TCP Server =
290 290  
291 -[[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]]
292 292  
293 293  Network Structure
294 294  
... ... @@ -303,13 +303,13 @@
303 303  
304 304  Assume we already set up ABP keys in the gateway:
305 305  
306 -[[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]]
307 307  
308 308  Input Keys in LPS8
309 309  
310 310  run socket tool in PC
311 311  
312 -[[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]]
313 313  
314 314  Socket tool
315 315  
... ... @@ -316,7 +316,7 @@
316 316  
317 317  Input Server address and port
318 318  
319 -[[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]]
320 320  
321 321  Input Server address and port
322 322  
... ... @@ -323,7 +323,7 @@
323 323  
324 324  See value receive in socket tool. :
325 325  
326 -[[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]]
327 327  
328 328  value receive in socket tool
329 329  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0