Copyright Micropelt

MLRT-E documentation

Encoder/Decoder application

Encoder/Decoder Application

Download

Encoder/Decoder Application

Download

mlrt-hb-p-payload-decoder.png

 

NOTES:
Following the download of the respective exe payload tool, you may have to grant Windows access to use the tool.
Nach dem Download des entsprechenden Exe-Payload-Tools müssen Sie möglicherweise Windows-Zugriff gewähren, um das Tool verwenden zu können.

WidowsSicherheit-ZugriffZulassen-20240305-130153.png

 

MLR-HB-PiEU-AR REV 1.0

.exe Application

 

MLR-HB-PiEU-AR REV 0.0

Javascript file

 

Use the above script (mlr-hb-p-decoder.js) to decode the packets coming from Multitech Gateway

Eg. The MULTITECH Gateway sends the following JSON Output via MQTT

{ "tmst":1032057036, "chan":6, "rfch":1, "freq":867.7, "stat":1, "modu":"LORA", "datr":"SF10BW125", "codr":"4/5", "lsnr":9.5, "rssi":-53, "opts":"", "size":6, "fcnt":26, "cls":0, "port":1, "mhdr":"403f35f601801a00", "data":"AAAzMgGA", "appeui":"31-27-9a-c1-1e-c0-70-00", "joineui":"31-27-9a-c1-1e-ca-20-00", "deveui":"36-38-37-34-66-32-6f-18", "devaddr":"01f6353f", "ack":false, "adr":true, "gweui":"00-80-00-00-00-01-8c-8a", "seqn":26, "time":"2024-05-08T09:34:03.030289Z"}

The payload is present in the "data" field as a base64 value

"data":"AAAzMgGA"

The base64 value is converted to HEX and the output is decoded using the "decode_MLRT_HB_P_Uplink" function

The "decode_MLRT_HB_P_Uplink" function uses HEX Payload as input

"data":"AAAzMgGA" in HEX

# HEX BUFFER : [0x00, 0x00, 0x33, 0x32, 0x01, 0x80] # In DECIMAL : [0, 0, 51, 50, 1, 128]

Example Decoded Output: