Last modified by Xiaoling on 2023/04/20 18:14
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -39,7 +39,7 @@ 39 39 40 40 We need to input above keys in LG308 and enable ABP decryption. 41 41 42 -[[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]] 43 43 44 44 Input the ABP keys in LG308 45 45 ... ... @@ -52,7 +52,7 @@ 52 52 We can see the log of LG308 to know this packet arrive 53 53 ))) 54 54 55 -[[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]] 56 56 57 57 LG308 log by "logread -f" command 58 58 ... ... @@ -62,8 +62,8 @@ 62 62 (% class="box" %) 63 63 ((( 64 64 root@dragino-1d25dc:~~# hexdump /var/iot/channels/2602111D 65 -0000000 (% class="mark" %)**4646 4646 4646 3946 3030 3030 3030 3546**(%%) ~-~-> Got RSSI and SNR66 -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 67 67 000001c 68 68 ))) 69 69 ... ... @@ -73,8 +73,8 @@ 73 73 74 74 (% class="box" %) 75 75 ((( 76 -(% 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:77 -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 78 78 root@dragino-1d25dc:~~# hexdump /var/iot/channels/2602111D 79 79 0000000 4646 4646 4646 3946 3030 3030 3030 3546 80 80 0000010 6865 6c6c 6f20 776f 726c 6400 ~-~-> Got ASCII code "hello world" ... ... @@ -83,7 +83,7 @@ 83 83 84 84 (% class="box" %) 85 85 ((( 86 -(% 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. 87 87 ))) 88 88 89 89 === 2.2.1 Decode Method ===