RAK5802 on RAK7391

Hi,

I’m currently working on a project where I’m using a RAK7391 gateway and a RAK5802, connected to the WisBlock interface of my RAK7391. I’m trying to reinforce the serial communication by converting UART to RS485.

My goal is to acquire data and interface them with Node-RED, so for now, I’m testing by sending data from my PC to the serial bus using a UART/RS485 adapter, and I expect the RAK5802 to receive this data and forward it internally. However, I’m not seeing any data coming through on the other end. I also tried to receive data by uart on the GPIOs and it worked perfectly.

I’m wondering:

  • Does the RAK5802 need to be configured in a specific way to allow RS485 reception and forward them to the serial port ?
  • Given that the RAK5802 doesn’t expose UART outputs, only I2C, is it even possible to retrieve the data this way?

I would really appreciate your help to understand if my setup is valid or if I need to take a different approach.

Thank you!

Hello @Amadou
You might want to check the example with have for the RAK5802 on a RAK7391 using Node-RED: wisblock-node-red/interface/rak5802/rak5802_modbus at master · RAKWireless/wisblock-node-red · GitHub

Thank you for the quick reply!

I’ve already seen that example. So, if I want to use UART on the RAK5802 with my RAK7391, do I have to use the Modbus RTU protocol with Node-RED?

I was hoping to use the Serial nodes directly to handle data received via UART.