I am successfully able to write values to this sketch from a USB to RS485 converter connected to a Mac and using the python pymodbus REPL. The problem is I am not able to read the values back in any way, am I doing something wrong?
When I try to read the arduino resets (millis starts over) and I don't get a response ever on the master side.
> client.read_discrete_inputs address=1 count=1 unit=1
{
"original_function_code": "2 (0x2)",
"error": "[Input/Output] No Response received from the remote unit/Unable to decode response"
}
> client.read_coils address=1 count=5 unit=1
{
"original_function_code": "1 (0x1)",
"error": "[Input/Output] No Response received from the remote unit/Unable to decode response"
}
Hi,
I am successfully able to write values to this sketch from a USB to RS485 converter connected to a Mac and using the python pymodbus REPL. The problem is I am not able to read the values back in any way, am I doing something wrong?
When I try to read the arduino resets (millis starts over) and I don't get a response ever on the master side.
Trying to read: