Last modified by Xiaoling on 2023/04/20 18:14
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -11,18 +11,19 @@ 11 11 * 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]]). 12 12 13 13 ((( 14 -The basic of this feature is the decoding of **LoRaWAN ABP End Node**. Requirements: 14 +The basic of this feature is the decoding of (% style="color:red" %)**LoRaWAN ABP End Node**(%%). Requirements: 15 15 ))) 16 16 17 17 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 18 18 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]] 19 -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 +1. Firmware version for below instruction:**[[(% style="color:purple" %)Since LG02_LG08~~-~~-build-v5.4.1593400722-20200629-1120>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]](%%)** 20 20 21 21 = 2. How it works = 22 22 23 23 24 -**Video Instruction**: [[https:~~/~~/youtu.be/ZBjXwmp7rwM>>url:https://youtu.be/ZBjXwmp7rwM]] 24 +(% style="color:#037691" %)**Video Instruction**(%%): **[[https:~~/~~/youtu.be/ZBjXwmp7rwM>>url:https://youtu.be/ZBjXwmp7rwM]]** 25 25 26 + 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 (% class="box infomessage" %) ... ... @@ -38,7 +38,7 @@ 38 38 39 39 We need to input above keys in LG308 and enable ABP decryption. 40 40 41 -[[image: https://wiki.dragino.com/images/thumb/5/55/LG308_MQTT_1.png/600px-LG308_MQTT_1.png||height="329" width="600"]]42 +[[image:image-20220527161119-1.png]] 42 42 43 43 Input the ABP keys in LG308 44 44 ... ... @@ -51,7 +51,7 @@ 51 51 We can see the log of LG308 to know this packet arrive 52 52 ))) 53 53 54 -[[image: https://wiki.dragino.com/images/thumb/1/16/ABP_DECODE_2.png/600px-ABP_DECODE_2.png||height="205" width="600"]]55 +[[image:image-20220527161149-2.png]] 55 55 56 56 LG308 log by "logread -f" command 57 57 ... ... @@ -61,8 +61,8 @@ 61 61 (% class="box" %) 62 62 ((( 63 63 root@dragino-1d25dc:~~# hexdump /var/iot/channels/2602111D 64 -0000000 (% class="mark" %)**4646 4646 4646 3946 3030 3030 3030 3546**(%%) ~-~-> Got RSSI and SNR65 -0000010 (% class="mark" %)**cc0c 0b63 0266 017f ff7f ff00 **(%%) ~-~-> Payload65 +0000000 (% style="color:#037691" %)**4646 4646 4646 3946 3030 3030 3030 3546**(%%) ~-~-> Got RSSI and SNR 66 +0000010 (% style="color:#037691" %)**cc0c 0b63 0266 017f ff7f ff00 **(%%) ~-~-> Payload 66 66 000001c 67 67 ))) 68 68 ... ... @@ -72,8 +72,8 @@ 72 72 73 73 (% class="box" %) 74 74 ((( 75 -(% class="mark" %)**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:76 -in LGT92, use **AT+SEND=12 **:hello world to send ASCII string76 +(% 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: 77 +in LGT92, use **(% style="color:#037691" %)AT+SEND=12:hello world** (%%)to send ASCII string 77 77 root@dragino-1d25dc:~~# hexdump /var/iot/channels/2602111D 78 78 0000000 4646 4646 4646 3946 3030 3030 3030 3546 79 79 0000010 6865 6c6c 6f20 776f 726c 6400 ~-~-> Got ASCII code "hello world" ... ... @@ -82,12 +82,13 @@ 82 82 83 83 (% class="box" %) 84 84 ((( 85 -(% class="mark" %)**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.86 +(% style="color:#037691" %)**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. 86 86 ))) 87 87 89 + 88 88 === 2.2.1 Decode Method === 89 89 90 -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. 92 +The decode methods: **(% style="color:#037691" %)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. 91 91 92 92 For example we have a LHT65 , works in ABP mode and gateway successful get the data, which are: 93 93 ... ... @@ -325,11 +325,10 @@ 325 325 Full instruction video inlcude how to write scripts to fit server needed is here: 326 326 327 327 328 -Video Instruction: [[https:~~/~~/youtu.be/-nevW6U2TsE>>url:https://youtu.be/-nevW6U2TsE]] 330 +(% class="mark" %)**Video Instruction**: [[https:~~/~~/youtu.be/-nevW6U2TsE>>url:https://youtu.be/-nevW6U2TsE]] 329 329 332 +(% class="mark" %)**Note: Firmware version must be higher than lgw-5.4.1607519907** 330 330 331 -Note: Firmware version must be higher than lgw-5.4.1607519907 332 - 333 333 Assume we already set up ABP keys in the gateway: 334 334 335 335 [[image:https://wiki.dragino.com/images/thumb/b/bf/LPS8_LT-22222_1.png/600px-LPS8_LT-22222_1.png||height="335" width="600"]]
- image-20220527161119-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +128.8 KB - Content
- image-20220527161149-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +103.9 KB - Content