How to send data from gateway to LoRa node (downlink) using ChirpStack?

@sandeep_sivadas

This link may answer your question
link
I hope your mqtt broker runs in raspberrypi itself.If so you try publishing MQTT downlink from raspberrypi by the below command

mosquitto_pub -h <mosquito ip> -t application/<application_id>/device/<DevEUI>/command/down -m '{"devEui": " <DevEUI >", "confirmed": true, "fPort": 1, "devaddr": "<Devaddr>", "data": "R09PRE1PUk5JTkc=", "port":6}' -q 1

Note: Make sure to add the parameters like DevEUI,DevAddr,Fport of the node where you want to send the data.

Meanwhile
in case of class A device,send an uplink message so to open the Rx window to see data in you node something like below

+MSG: PORT: 1; RX: "474F4F444D4F524E494E47"
+MSG: RXWIN0, RSSI -59, SNR 7.0
+MSG: Done

in case of class C, i think you have to send one uplink(as a trigger) thereafter you will keep receiving the downlink

For automation you can create a python code sending a downlink from gateway to the node and run the same in your raspberrypi

I hope this may help you you

1 Like