04-11-2023, 12:54 PM
Hi,
It took me a while to source an RS485-USB adapter. Now I can see follow the communication between the A16 and the expansion board.
Physically, I can confirm that the A16 sends a request: 01 03 00 01 00 01 d5 ca
And that the expansion board sends a response: 01 03 02 00 01 79 84
That totally makes sense. But in the esphome log I confirm see that the response is not received by the UART (and therefore not handled by esphome).
Also, with a modbus test program (CAS Modbus Scanner) I can confirm the working of the expansion board. Reading and writing works.
Do you agree that the only remaining conclusion is that there must be something wrong on the board between the RS485 chip and the ESP32 input?
It took me a while to source an RS485-USB adapter. Now I can see follow the communication between the A16 and the expansion board.
Physically, I can confirm that the A16 sends a request: 01 03 00 01 00 01 d5 ca
And that the expansion board sends a response: 01 03 02 00 01 79 84
That totally makes sense. But in the esphome log I confirm see that the response is not received by the UART (and therefore not handled by esphome).
Code:
14:47:01 [V] [modbus_controller:036] Sending next modbus command to device 1 register 0x01 count 1
14:47:01 [VV] [uart.arduino_esp32:151] Flushing...
14:47:01 [V] [modbus:199] Modbus write: 01.03.00.01.00.01.D5.CA (8)
14:47:01 [V] [modbus_controller:486] Command sent 3 0x1 1
14:47:02 [D] [uart_debug:114] >>> 01 03 00 01 00 01 D5 CA
14:47:03 [D] [modbus_controller:032] Modbus command to device=1 register=0x01 countdown=0 no
response received - removed from send queue
Also, with a modbus test program (CAS Modbus Scanner) I can confirm the working of the expansion board. Reading and writing works.
Do you agree that the only remaining conclusion is that there must be something wrong on the board between the RS485 chip and the ESP32 input?