Hi,
I am trying to read data from a Modbus RTU slave using RAK5802 on a Dual IO RAK19011, but I only receive timeout errors.
Using the example code from RAKWireless GitHub, I receive the following response when I call try to read from the coils: Request result: 0xE4, Mem:339847
. In the Modbus library the example code uses, 0xE4
corresponds to EX_TIMEOUT = 0xE4, // Custom. Operation not finished within reasonable time
I know the Modbus RTU slave is working correctly as I can read data from it on my PC using a Modbus RS485 to USB adaptor and Modbus Poll software.
I am using the following boards (my end goal is to read data from Modbus RTU and write the data to CAN bus):
- RAK19011 Dual IO Base Board with Power Slot
- RAK5802 RS485 Module 3PEAK TP8485E
- RAK13006 CAN Bus Interface Microchip MCP2518FD
- RAK11200 WiFi and BLE Espressif ESP32-WROVER
- RAK19012 USB LiPo Solar Power Slot Module
Is there something I should configure differently in the example code since I am using RAK19011 Dual IO Base Board?
Thanks for your help,
Andrew