Hello,
I'm evaluating hardware for a system where a master pi3 would communicate with a slave dsp board over Ethernet, likely as not with Modbus tcp.
I added avahi-daemon and avahi-auto-ipd and connected the PIs together.
ifconfig told me the addresses, and I can ping between them.
I edited unit-test-server.c on one pi and unit-test-client.c on the other.
I changed the line "ctx = Modbus_new_tcp("127.0.0.1",1502);" in each PI to use the correct IP address for the other PI.
sudo make install in both ~/libmodbus folders.
When I run ./unit-test-server tcp in the one PI the response is
"Waiting for a indication"
But when I ran ./unit-test-client tcp on the other I get
Connection failed: Connection refused"
Can anyone suggest how I can run the unit tests between a libmodbus server on one PI and a libmodbus client on another PI?
Thank you,
Bob