Thanks for pointing that out, my mistake, just learning this stuff. Understood now that the contents of the LoRaWAN frame is encrypted each time. I have double checked the topic and is correct, see screenshot below.
I tried injecting into the queue like you suggest using this command:
mosquitto_pub -t "application/6f815454-25a3-4486-b8e6-5cd57a788c1f/device/24e124460e220202/command/down" -m '{"devEui": "24e124460e220202", "confirmed": true, "fPort": 1, "data": "/ZmYxZDIwMDA=="}'
ff1d2000 (hex) = ZmYxZDIwMDA= (Base64)
So I think I have the correct MQTT topic so that the message is directed to Chirpstack but it doesnât appear in the device queue in the UI. It is a class C device but not sure that makes a difference?
Note when I submit the above command a new LoRaWAN frame does show up in the Chirpstack UI like before but the device does not respond.
I repeated the test by submitting the same command via the Chirpstack UI (works) and via MQTT (fails). Below are the LoRaWAN frames in each case. I still canât figure out what I am doing wrong here, it must be that I am formatting the MQTT payload wrong I guess.
Success via Chirpstack UI
{
"phy_payload": {
"mhdr": {
"m_type": "ConfirmedDataUp",
"major": "LoRaWANR1"
},
"mic": [
209,
22,
181,
46
],
"payload": {
"f_port": 85,
"fhdr": {
"devaddr": "008ce744",
"f_cnt": 5412,
"f_ctrl": {
"ack": false,
"adr": true,
"adr_ack_req": false,
"class_b": false,
"f_opts_len": 0,
"f_pending": false
},
"f_opts": []
},
"frm_payload": "03010104c8cd880000"
}
},
"rx_info": [
{
"channel": 7,
"context": "63GuhA==",
"crcStatus": "CRC_OK",
"gatewayId": "24e124fffef8e260",
"gwTime": "2025-04-30T22:52:05.734170+00:00",
"location": {},
"metadata": {
"region_common_name": "AU915",
"region_config_id": "au915_1"
},
"nsTime": "2025-04-30T22:52:32.331187998+00:00",
"rfChain": 1,
"rssi": -92,
"snr": 8,
"timeSinceGpsEpoch": "1430088743.734s",
"uplinkId": 14795
}
],
"tx_info": {
"frequency": 918200000,
"modulation": {
"lora": {
"bandwidth": 125000,
"codeRate": "CR_4_5",
"spreadingFactor": 7
}
}
}
}
````Preformatted text`
**Fails via MQTT**
{
âphy_payloadâ: {
âmhdrâ: {
âm_typeâ: âConfirmedDataUpâ,
âmajorâ: âLoRaWANR1â
},
âmicâ: [
85,
30,
75,
126
],
âpayloadâ: {
âf_portâ: 85,
âfhdrâ: {
âdevaddrâ: â008ce744â,
âf_cntâ: 5414,
âf_ctrlâ: {
âackâ: false,
âadrâ: true,
âadr_ack_reqâ: false,
âclass_bâ: false,
âf_opts_lenâ: 0,
âf_pendingâ: false
},
âf_optsâ:
},
âfrm_payloadâ: â03010004c8359b0000â
}
},
ârx_infoâ: [
{
âcontextâ: â8hQyRg==â,
âcrcStatusâ: âCRC_OKâ,
âgatewayIdâ: â24e124fffef8e260â,
âgwTimeâ: â2025-04-30T22:53:57.047035+00:00â,
âlocationâ: {},
âmetadataâ: {
âregion_common_nameâ: âAU915â,
âregion_config_idâ: âau915_1â
},
ânsTimeâ: â2025-04-30T22:54:23.652065625+00:00â,
ârssiâ: -92,
âsnrâ: 7.800000190734863,
âtimeSinceGpsEpochâ: â1430088855.047sâ,
âuplinkIdâ: 10614
}
],
âtx_infoâ: {
âfrequencyâ: 916800000,
âmodulationâ: {
âloraâ: {
âbandwidthâ: 125000,
âcodeRateâ: âCR_4_5â,
âspreadingFactorâ: 7
}
}
}
}