Changes for page How to send none encryption LoRaWAN Packet
Last modified by Xiaoling on 2023/04/19 17:49
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -2,8 +2,6 @@ 2 2 3 3 {{toc/}} 4 4 5 - 6 - 7 7 = 1. Introduce = 8 8 9 9 A standard LoRaWAN packet via UDP packet forward to LoRaWAN server is AES128 encryption. In this chapter, we will show how this packet looks like in the server and see the possibility to get the content of this packet. ... ... @@ -30,7 +30,7 @@ 30 30 31 31 32 32 ((( 33 -From above screen shot, we can see most of the meaning except this** (% style="color:#4 f81bd" %)"data":"QHxqASaAygwCXrumS1oFsgRq"(%%)**(% style="color:#4f81bd" %).(%%) This is the AES128 encryption data we mention above, it is base64 format. To decode this data, we need to have the**(% style="color:#4f81bd" %)APP Session Key(%%)**(% style="color:#4f81bd" %) (%%)and(% style="color:#4f81bd" %)**Network Session Key**(%%)of this end node. If we have these two keys, we are able to decode this packet by some LoRaWAN decode website like: [[LoRaWAN Decode Website>>url:https://lorawan-packet-decoder-0ta6puiniaut.runkit.sh/]].31 +From above screen shot, we can see most of the meaning except this** (% style="color:#4F81BD" %)"data":"QHxqASaAygwCXrumS1oFsgRq"**.(%%) This is the AES128 encryption data we mention above, it is base64 format. To decode this data, we need to have the APP Session Key and Network Session Key of this end node. If we have these two keys, we are able to decode this packet by some LoRaWAN decode website like: [[LoRaWAN Decode Website>>url:https://lorawan-packet-decoder-0ta6puiniaut.runkit.sh/]]. 34 34 ))) 35 35 36 36 ... ... @@ -42,7 +42,6 @@ 42 42 43 43 Decode the packet 44 44 45 - 46 46 = 3. Difference between OTAA and ABP mode = 47 47 48 48 There are two mode for End Node: ... ... @@ -55,7 +55,7 @@ 55 55 According to above, it is possible to get the payload from sensor without LoRaWAN server: 56 56 57 57 1. Setting the end node to ABP mode 58 -1. Add decode program and add the keys of the sensor. So to get the payload. There is an example for such application, see [[Communication with ABP End Node>>doc :Main.Communicatewithwithout LoRaWAN Network Server --- LG308.WebHome]]55 +1. Add decode program and add the keys of the sensor. So to get the payload. There is an example for such application, see [[Communication with ABP End Node>>url:https://wiki.dragino.com/index.php/Communication_with_ABP_End_Node]] 59 59 60 60 = 5. Use an unencrypt firmware = 61 61 ... ... @@ -62,10 +62,10 @@ 62 62 If user doesn't care about the security of the data and use Dragino end node, it is possible that we provide a firmware without AES128 encrytion, so the server no need to decode packet. Please note this software is no LoRaWAN compatible and no security. 63 63 64 64 ((( 65 -The software will disable encryption, so the LoRaWAN payload raw **(% style="color:#4f81bd" %)"data":"QHxqASaAygwCXrumS1oFsgRq"(%%)**will looks like(% style="color:#4f81bd" %)**"data":"4068370126000000000c9e11223361898841"**(%%), and the meaning is as below:62 +The software will disable encryption, so the LoRaWAN payload raw "data":"QHxqASaAygwCXrumS1oFsgRq" will looks like "data":"4068370126000000000c9e11223361898841", and the meaning is as below: 66 66 ))) 67 67 68 -[[image:image -20220527090341-5.png]]65 +[[image:https://wiki.dragino.com/images/thumb/d/d6/None_Encryption_4.png/600px-None_Encryption_4.png||height="70" width="600"]] 69 69 70 70 Unencrypt packet 71 71