Is there a way to send a downlink form RAK 7249 with TTN and fetching that message on rak4631?

I have a Rak4279 Gateway and I’m using the TTN server. Is there any way i can send a downlink message?
I have to receive said downlink and decode it on a Rak 4630 board. Could you tell me please how to do it? I know for sure ABP arduino sketchbook has functions to do so, since I get join acceptance messages the rak board joins the gateway. Yet, I can’t find the specific functions to do so.
Could you help me please?
Thanks in advance.

I think you don’t understand properly how Lora works :wink: Gateway is just forwarding messages, downlink messages have to be sent by the Lora server itself: TTN in your case ! you can do that through the TTN console or using TTN API or TTN MQTT bridge :wink:

1 Like

Thank you! I’m just learning LoRa and I might get confused from time to time. Could you also tell me, please, how to see said downlink with the rak4630 board?
Thanks in advance!!

On the RAK4631 you have to implement the callback function as you can see in our "LoRaWAN_OTAA_ABP example](WisBlock/LoRaWAN_OTAA_ABP.ino at 59cd47f4d85007fb76c730fab12a4055340bc3ee · RAKWireless/WisBlock · GitHub)

1 Like

Thank you very much! I was able to follow your advice and I printed the buffer on the serial monitor. I got two different buffers.

17:28:48.813 → LoRa Packet received on port 10, size:129, rssi:0, snr:21, data:
17:28:48.813 → 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 72 01 00 00 30 14 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
17:28:49.799 → LoRa Packet received on port 10, size:129, rssi:0, snr:21, data:
17:28:49.799 → 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 30 14 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Could you tell me how to know which device is the one sending this payload or how can I decode it?
Thank you very much in advance! :smiley:

“Which device is sending” I don’t understand that. Downlinks are not send by a device but by a LoRaWAN network server. And the RAk4631 can only be connected to ONE network server. So you know which server has sent the packet.

For the format, as you are sending the downlink, you should know the payload format.

From your log, converted into a uint8_t array the payload is

uint8_t down_packet[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x72, 0x01, 0x00, 0x00, 0x30, 0x14, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
1 Like

Thank you very much! I was just able to send my first downlink message and I saw it on the serial monitor! :smiley:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.