I am trying to find a way to decode my payload from a gateway logfile.
The original payload is 0x1100000000
Can you give an example to decode the received payload and check the received MIC?
In your case, the full packet is hexadecimal 0x80 00E62D00 00 4C00 01 57D158A390 DA3D3EC8, and the online decoder shows its MIC is indeed valid. (To properly decrypt FRMPayload specify the true AppSKey; with the wrong AppSKey you get wrong results without any warning.)
Beware that your log file seems to show mostly decimal values. Like:
Decimal "MHdr":128 yields hexadecimal 0x80.
"DevAddr": 3008000 is 0x002DE600, which in the packet is transmitted Least Significant Byte first (LSB), being the reversed bytes 00E62D00.
"FCnt":76 is 0x004C, or 4C00 LSB.
The MIC shows as a negative number, being 0xC83E3DDA, shown as DA3D3EC8 in the full packet.
I am working on a project where I have to send some senso data from Arduino to a Raspberry Pi 3.
When I follow the tutorial for the single channel gateway, the communication is working and I can see data on the website.
I do receive the data on my RPi as you can see on the picture.
But I’m trying to get these same data without the encryption on the raspberry and save them locally on the RPi.
I know the encryption is related to these settings : NwkSKey, AppSKey, AppKey but I don’t know how to disable the encryption when I receive data on the RPi.
I wouldn’t even try to have the Raspberry Pi only handle the data it has received itself. Instead, set up an MQTT client (easily done in the Pi’s Node-RED) connected to the node’s application. That way, you even get the data on the Pi when the node’s transmission is received by another gateway.
I need to create an offline application for the RPI gateway that I am mounting. Can you get a graphical message to connect and disconnect the PC (connected to the gateway), offline?