Modbus master err = 0x107 (ESP_ERR_TIMEOUT)
Posted: Wed Mar 30, 2022 1:02 pm
I am using the Modbus master example with the following hardware:
- ESP32 DevKitC V4
- RTU mode, baud rate 115200
- Slave respond timeout: 2000 ms
- SparkFun RS485 breakout board
- RS485-to-USB adapter
- pyModSlave simulator
I've compiled the example code and it runs on the board. Using pyModSerial, I can see the traffic, example below:
[RTU]>Rx > 15:52:24:847 - 05 04 00 00 00 02 70 4F /* ESP32 query */
[RTU]>Tx > 15:52:24:851 - 05 04 04 21 C0 8F 3B 91 A7 /* pyModSlave response */
However, despite the response being sent on time, I always get err = 0x107 (ESP_ERR_TIMEOUT).
What would be the reason for that?
- ESP32 DevKitC V4
- RTU mode, baud rate 115200
- Slave respond timeout: 2000 ms
- SparkFun RS485 breakout board
- RS485-to-USB adapter
- pyModSlave simulator
I've compiled the example code and it runs on the board. Using pyModSerial, I can see the traffic, example below:
[RTU]>Rx > 15:52:24:847 - 05 04 00 00 00 02 70 4F /* ESP32 query */
[RTU]>Tx > 15:52:24:851 - 05 04 04 21 C0 8F 3B 91 A7 /* pyModSlave response */
However, despite the response being sent on time, I always get err = 0x107 (ESP_ERR_TIMEOUT).
What would be the reason for that?