My application on TTN is working fine, I can send uplink and downlink with my Dragino LG308 gateway to my LS01 and LHT65 end nodes.
But now I have built my MQTT Broker server on Raspberry Pi and my end node can send the uplink into my Raspberry Broker very well.
My problem is that I can’t send a downlink to my end node.
What data format should I use to send a downlink to my end node?
I’m not using TTN and instead I’m using a MQTT broker on the RPi. I have sent the “0xA601” function to it encoded as base64 but I get no response from the LG308 . In the LG308 log I get INFO~ [DNLK]Format error: when i try to sent some payload like pgE=
The topic on the LG308 that its subscribed to is also CLIENTID/# would this be correct?
the LG308 does appear to be receiving the instruction from mqtt but will not broadcast to LORA radios.
I user TTN MQTT broker and sending base64 coded json message. In TTN livedata I receive the coded message, but I’n not able to make a decoder for my Payload.
I’m searching everywhere but found nothing.
Thx for Reply.
I publish with an ESP8266 via SMQTT to the TTN Broker this message:
{“downlinks”: [{“f_port”: 1,“frm_payload”: “6piB”,“priority”: “NORMAL”}]}, where 6piB is the base64 coded message A601 to this topic v3/myapplication/devices/eui-aaaaaaaaaaaaaaaa/down/push
In the livedata I see following
I have no idea to write the download Decoder in the TTN Console for this device and find nothing helpful in the web.
You don’t need a downlink decoder. It is just a convenience function providing a human readable version of the downlink. Not having a downlink decoder doesn’t mean the downlink isn’t sent to the device.
I’ve never used a downlink decoder in 8 years working with TTN and my downlinks get to the end devices without any issues.
thank you so much for your reply. First I changed the device downlink formatter to none, but still get the same Bytes in the TTN-Console.
Today I checked the base64 Code and coded it again at Base64 to hex: Encode and decode bytes online - cryptii and got a different Code.
After recompiling my ESP8266 and sending it, I got the right Bytes in the TTN-Console and with next received packet it resets the counter.