I am trying to interface a TCP ModBus device with unit-test-client.c simplified. The program now contains only a modbus_write_register. I would like to set a register value only. I can connect successfully the device but the modbus_write_register function fails with
“
[00][01][00][00][00][06][FF][06][00][69][00][01]
Waiting for a confirmation...
ERROR Connection timed out: select
“
Of course my test program works locally (127.0.0.1) with the libmodbus server test program.
Of course I have increased the timeout to 3 sec.
I think that my error is in some environment setting.
May you help me?
Ciao Franco