Descrypt MQTT package.

Home Forums General Descrypt MQTT package.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21623
    Antonio Fernandez
    Participant

    Hello everyone
    I read every post with Decrypt phrase, and I do not understand anything.
    I got form Conduit with Mosquitto subscription the following data:

    lora/00-80-00-00-00-00-db-13/packet_recv {“chan”:1,”codr”:”4/5″,”data”:”ADUN9ZDRz4IuE9sAAAAAgAA6/FmEmlQ=”,”datr”:”SF11BW125″,”freq”:868.29999999999995,”lsnr”:8.5,”modu”:”LORA”,”rfch”:0,”rssi”:-33,”size”:23,”stat”:1,”time”:”2017-10-26T05:37:14.157780Z”,”tmst”:408263060}lora/00-80-00-00-00-00-db-13/joined
    lora/00-80-00-00-00-00-db-13/packet_sent {“codr”:”4/5″,”data”:”IDq3gPlvemuMG51U1jJEs+MPqOFTsCuFI2OE4IcmHJFI”,”datr”:”SF11BW125″,”freq”:868.29999999999995,”ipol”:true,”modu”:”LORA”,”ncrc”:false,”powe”:11,”rfch”:0,”size”:33,”tmst”:413263060}
    lora/00-80-00-00-00-00-db-13/packet_recv {“chan”:0,”codr”:”4/5″,”data”:”ADUN9ZDRz4IuE9sAAAAAgAALoCtCFe4=”,”datr”:”SF7BW125″,”freq”:868.10000000000002,”lsnr”:10.5,”modu”:”LORA”,”rfch”:0,”rssi”:-35,”size”:23,”stat”:1,”time”:”2017-10-26T05:40:32.278947Z”,”tmst”:606402499}
    lora/00-80-00-00-00-00-db-13/joined
    lora/00-80-00-00-00-00-db-13/packet_sent {“codr”:”4/5″,”data”:”IP4FlMWhSiJhbgd8EgQOCnGXTp1APlKHmogoywyTzBT8″,”datr”:”SF7BW125″,”freq”:868.10000000000002,”ipol”:true,”modu”:”LORA”,”ncrc”:false,”powe”:11,”rfch”:0,”size”:33,”tmst”:611402499}
    lora/00-80-00-00-00-00-db-13/packet_recv {“chan”:0,”codr”:”4/5″,”data”:”ADUN9ZDRz4IuE9sAAAAAgABDbUGITD8=”,”datr”:”SF7BW125″,”freq”:868.10000000000002,”lsnr”:10.199999999999999,”modu”:”LORA”,”rfch”:0,”rssi”:-33,”size”:23,”stat”:1,”time”:”2017-10-26T05:41:35.722699Z”,”tmst”:669841643}
    lora/00-80-00-00-00-00-db-13/joined
    lora/00-80-00-00-00-00-db-13/packet_sent {“codr”:”4/5″,”data”:”IKIJ6iCz+EMAFJoeQRj+/PnPyQz+ElHjzX+rz7Y3GMtN”,”datr”:”SF7BW125″,”freq”:868.10000000000002,”ipol”:true,”modu”:”LORA”,”ncrc”:false,”powe”:11,”rfch”:0,”size”:33,”tmst”:674841643}

    I tried this command to decrypt -> echo ADUN9ZDRz4IuE9sAAAAAgAA6/FmEmlQ=|base64
    And I get this: QURVTjlaRFJ6NEl1RTlzQUFBQUFnQUE2L0ZtRW1sUT0K

    Also, I try a web application https://www.base64decode.org/ and response:
    5
    ς.:YT

    what could I do to decrypt the message?
    Best regard
    Antonio

    #21625
    Jason Reiss
    Keymaster

    The payload is binary not ascii. The arg -d is need for base64 decoding.

    echo ADUN9ZDRz4IuE9sAAAAAgAA6/FmEmlQ= | base64 -d | hexdump -e ‘/1 “%02x”‘
    00350df590d1cf822e13db0000000080003afc59849a54

    This specific lorawan decoder is helpful for the packet_recv and packet_sent data.
    https://lorawan-packet-decoder-0ta6puiniaut.runkit.sh/

    Or in node.js
    new Buffer("ADUN9ZDRz4IuE9sAAAAAgAA6/FmEmlQ=", "base64").toString("hex")

    • This reply was modified 6 years, 4 months ago by Jason Reiss.
    #22077
    Antonio Fernandez
    Participant

    Hello Jason,

    thank you for your answer.

    However, we don’t get to decrypt the whole byte sequence. With your link, we transform “VPokJSksT4jBM/w4N1I=” into “54FA2425292C4F88C133FC383752”, which turns into 28 hex digits, as expected from http://www.multitech.net/developer/software/dot-box-and-evb-software/data-packet-format/

    But we were also expecting to get an information such as 05xxxx 08xxxxxx and so on, since 05 means that the following two bytes indicate lux and 08 means that the following three bytes indicate pressure.

    What are doing wrong? Can you please help us?

    Thank you very much in advance for your support and assistance.

    #22110
    Jason Reiss
    Keymaster

    I have no clue where your data is coming from.
    What event is this taken from?

    Are you using the mtdot box hardware?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.