Downlink for RAK7431

Hello guys, I am setting up the system with the following components, the goal is to control turn the LIGHT on/off from ChirpStack:

ChirpStack (version 4) ↔ Gateway (RAK7268V2/RAK7289CV2) ↔ RAK7431 (RS485 Bridge) ↔ Modbus RS485 Relay Module ↔ LIGHT.

  1. I have successfully sent Downlink from Chirpstack to RAK7431, for example, I successfully sent a command to restart RAK7431, add a polling, delete a polling…
  2. Testing the Relay Module: I use USB-to-RS485 Dongle to connect my Laptop directly to Relay Module using Modbus Poll software and send hex string: “01 05 00 00 FF 00 8C 3A”, Relay Module is turned on and the LIGHT is on. This proves that the Relay Module is working properly.
  3. I connected the RAK7431 and the Relay Module as the 02 pictures attached!
  4. I continued to send the hex string: “01 05 00 00 FF 00 8C 3A” from ChirpStack to RAK7431 and used RAK Serial Port Tool to read the received data and saw that the hex string was sent to RAK7431. In addition, I also received a response (ACK) from RAK7431 sent back to Chirpstack, showing that the command was successfully received.
  5. But, when connecting the Relay Module to RAK7431 via port A/B to receive the RS485 signal, the Relay Module did not work, even though the signal was sent down. Please see in the text attached file is the code and command on the RAK7431 and ChirpStack

I am researching how to fix this and have some questions as follows:

  • Does RAK Serial Port Tool support sending hex code from a laptop to RAK7431 and transmitting to the Relay Module? Or do you have any tool that can do this? I want to verify the data transmission from RAK7431 to the Relay Module if it is successful and correct.
  • Or can you tell me, what configuration/command/code do I need on RAK7431 to ensure the hex code is transmitted to the Relay Module correctly and the light is on?
  • How to check to make sure that RAK7431 has sent the correct control command to the Relay Module?

Looking forward to receiving support to solve this problem!

Sorry but your question is not TTN related and this forum is for TTN and very generic LoRaWAN related questions.

You could try the forum of the hardware manufacturer and/or the chirpstack forum.

As your questions all mostly related to this module, why ask here when RAK have their own forum? Why ask us about a software tool for a RAK module - have you checked the RAK support downloads section?

This isn’t a commercial support facility.