<
From version < 19.1 >
edited by Xiaoye
on 2022/08/02 11:54
To version < 19.2 >
edited by Xiaoling
on 2022/09/17 16:42
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Xiaoye
1 +XWiki.Xiaoling
Content
... ... @@ -12,6 +12,8 @@
12 12  * No internet connection.
13 13  * 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>>MQTT Forward Instruction]]).
14 14  
15 +
16 +
15 15  (((
16 16  The basic of this feature is the decoding of (% style="color:red" %)**LoRaWAN ABP End Node**(%%). Requirements:
17 17  )))
... ... @@ -22,6 +22,7 @@
22 22  
23 23  
24 24  
27 +
25 25  = 2. How it works =
26 26  
27 27  
... ... @@ -45,8 +45,10 @@
45 45  
46 46  We need to input above keys in LG308 and enable ABP decryption.
47 47  
51 +
48 48  [[image:image-20220527161119-1.png]]
49 49  
54 +
50 50  Input the ABP keys in LG308
51 51  
52 52  
... ... @@ -57,14 +57,18 @@
57 57  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.
58 58  
59 59  (((
60 -We can see the log of LG308 to know this packet arrive
65 +We can see the log of LG308 to know this packet arrive.
66 +
67 +
61 61  )))
62 62  
63 63  [[image:image-20220527161149-2.png]]
64 64  
72 +
65 65  LG308 log by "(% style="color:red" %)**logread -f**" (%%)command
66 66  
67 67  
76 +
68 68  The data of End Node is stored in the file /var/iot/channels/2602111D. We can use hexdump command to check it.
69 69  
70 70  (% class="box" %)
... ... @@ -80,6 +80,7 @@
80 80  * **Payload**: 0xcc0c 0b63 0266 017f ff7f ff00
81 81  
82 82  
92 +
83 83  (% class="box" %)
84 84  (((
85 85  (% style="color:red" %)**Notice 1**(%%): The data file stored in LG308 for the end node is bin file. If the end node sends ASCII string to gateway, the output will as below:
... ... @@ -167,6 +167,7 @@
167 167  
168 168  
169 169  
180 +
170 170  == 2.2 Downstream ==
171 171  
172 172  
... ... @@ -176,6 +176,7 @@
176 176  
177 177  (% style="color:#037691" %)**dev_addr,imme/time,txt/hex,payload**
178 178  
190 +
179 179  Since fimware > Dragino-v2 lgw-5.4.1608518541 . Support more option
180 180  
181 181  (% style="color:#037691" %)**dev_addr,imme/time,txt/hex,payload,txpw,txbw,SF,frequency,rxwindow**
... ... @@ -198,13 +198,17 @@
198 198  * **Frequency:** Transmit Frequency: example: 923300000
199 199  * **rxwindow:** transmit on Rx1Window or Rx2Window.
200 200  
213 +
214 +
201 201  (% style="color:blue" %)**Completely exmaple:**
202 202  
203 203  * **Old version:** echo 018193F4,imme,hex,0101 > /var/iot/push/test
204 204  * **New version:** echo 018193F4,imme,hex,0101,20,1,SF12,923300000,2 > /var/iot/push/test
205 205  
206 -(% style="color:#037691" %)**Downstream Frequency**
207 207  
221 +
222 +(% style="color:#037691" %)**Downstream Frequency:**
223 +
208 208  The LG308 will use the RX2 window info to send the downstream payload, use the default LoRaWAN settings, as below:
209 209  
210 210  * EU868: 869.525Mhz, DR0(SF12BW125)
... ... @@ -216,6 +216,8 @@
216 216  * IN865: 866.55Mhz, SF10 BW125
217 217  * RU864: 869.1Mhz, SF12 BW125
218 218  
235 +
236 +
219 219  (% style="color:#037691" %)**Examples:**
220 220  
221 221  (% class="box" %)
... ... @@ -309,32 +309,39 @@
309 309  )))
310 310  
311 311  
312 -**~1. Input keys**
330 +(% style="color:blue" %)**1. Input keys**
313 313  
332 +
314 314  [[image:image-20220527162450-3.png]]
315 315  
316 316  Input Keys in LPS8
317 317  
318 318  
319 -**2. Make sure the LPS8 and LT use the same frequency bands, choose EU868 in this test.**
320 320  
339 +(% style="color:blue" %)**2. Make sure the LPS8 and LT use the same frequency bands, choose EU868 in this test.**
321 321  
322 -**3. Choose Built-in server**
323 323  
342 +(% style="color:blue" %)**3. Choose Built-in server**
343 +
344 +
324 324  [[image:image-20220527162518-4.png]]
325 325  
326 326  Choose Built-in server
327 327  
328 328  
329 -**4. Run the script.**
330 330  
351 +(% style="color:blue" %)**4. Run the script.**
352 +
353 +
331 331  [[image:image-20220722115213-2.png]]
332 332  
333 333  Run the script
334 334  
335 335  
336 -**5. Output:**
337 337  
360 +(% style="color:blue" %)**5. Output:**
361 +
362 +
338 338  [[image:image-20220722115133-1.png]]
339 339  
340 340  Output from LPS8
... ... @@ -366,8 +366,9 @@
366 366  
367 367  
368 368  
369 -**run socket tool in PC**
394 +(% style="color:blue" %)**run socket tool in PC**
370 370  
396 +
371 371  [[image:image-20220527163028-9.png]]
372 372  
373 373  
... ... @@ -375,8 +375,9 @@
375 375  
376 376  
377 377  
378 -**Input Server address and port**
404 +(% style="color:blue" %)**Input Server address and port**
379 379  
406 +
380 380  [[image:image-20220527163106-10.png]]
381 381  
382 382  Input Server address and port
... ... @@ -383,8 +383,9 @@
383 383  
384 384  
385 385  
386 -**See value receive in socket tool:**
413 +(% style="color:blue" %)**See value receive in socket tool:**
387 387  
415 +
388 388  [[image:image-20220527163144-11.png]]
389 389  
390 390  value receive in socket tool
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0