Hi, I am trying to connect and see data from a Khomp NIT21LI endpoint using LoRaWAN Everynet network. I’m using NLT, and the network is running fine. The problem is that I don’t know how to decrypt the payload!
{
“variable”: “encrypted_payload”,
“value”: “HN6xhxnsmBgUsa91ftT/0DQ4WDY=”,
“serie”: “1634235535664”
}
[
{
"variable": "time",
"value": 1634235535.516,
"serie": "1634235535664"
},
{
"variable": "packet_id",
"value": "98861a13387416186cce32e03d493220",
"serie": "1634235535664"
},
{
"variable": "gateway",
"value": "b0fd0b7003e90000",
"serie": "1634235535664"
},
{
"variable": "gps_time",
"value": 1318270753384,
"serie": "1634235535664"
},
{
"variable": "delay",
"value": 0.09307336807250977,
"serie": "1634235535664"
},
{
"variable": "datarate",
"value": 3,
"serie": "1634235535664"
},
{
"variable": "modulation_bandwidth",
"value": 125000,
"serie": "1634235535664"
},
{
"variable": "modulation_type",
"value": "LORA",
"serie": "1634235535664"
},
{
"variable": "modulation_spreading",
"value": 9,
"serie": "1634235535664"
},
{
"variable": "modulation_coderate",
"value": "4/5",
"serie": "1634235535664"
},
{
"variable": "hardware_status",
"value": 1,
"serie": "1634235535664"
},
{
"variable": "hardware_chain",
"value": 1,
"serie": "1634235535664"
},
{
"variable": "hardware_tmst",
"value": 389946300,
"serie": "1634235535664"
},
{
"variable": "hardware_snr",
"value": -5.8,
"serie": "1634235535664"
},
{
"variable": "hardware_rssi",
"value": -91,
"serie": "1634235535664"
},
{
"variable": "hardware_channel",
"value": 5,
"serie": "1634235535664"
},
{
"variable": "gps_location",
"value": -23.93330955505371,
"location": {
"lat": -23.93330955505371,
"lng": -46.33211898803711
},
"serie": "1634235535664"
},
{
"variable": "gps_alt",
"value": 56,
"serie": "1634235535664"
},
{
"variable": "time",
"value": 1634235535.3742936,
"serie": "1634235535664"
},
{
"variable": "freq",
"value": 916.2,
"serie": "1634235535664"
},
{
"variable": "size",
"value": 33,
"serie": "1634235535664"
},
{
"variable": "port",
"value": 4,
"serie": "1634235535664"
},
{
"variable": "duplicate",
"value": false,
"serie": "1634235535664"
},
{
"variable": "counter_up",
"value": 60,
"serie": "1634235535664"
},
{
"variable": "header_class_b",
"value": false,
"serie": "1634235535664"
},
{
"variable": "header_confirmed",
"value": false,
"serie": "1634235535664"
},
{
"variable": "header_adr",
"value": false,
"serie": "1634235535664"
},
{
"variable": "header_ack",
"value": false,
"serie": "1634235535664"
},
{
"variable": "header_adr_ack_req",
"value": false,
"serie": "1634235535664"
},
{
"variable": "header_version",
"value": 0,
"serie": "1634235535664"
},
{
"variable": "header_type",
"value": 2,
"serie": "1634235535664"
},
{
"variable": "rx_time",
"value": 1634235535.3742936,
"serie": "1634235535664"
},
{
"variable": "encrypted_payload",
"value": "HN6xhxnsmBgUsa91ftT/0DQ4WDY=",
"serie": "1634235535664"
}
]
I’m using the default payload parser for LoRaWAN from Tago with a little modification:
// Search the payload variable in the payload global variable. It's contents is always [ { variable, value...}, {variable, value...} ...]
const payload_raw = payload.find(x => x.variable === 'payload_raw' || x.variable === 'payload' || x.variable === 'data' || x.variable === 'encrypted_payload');
But I can’t see temperature, humidity and battery voltage variables. Any suggestion?