Stéphane Raimbault 807c20f08d Parity setting is now a single char ('N', 'E' or 'O') 15 ani în urmă
..
Makefile.am 4a38de0a52 Revert "Rename src to modbus" 15 ani în urmă
README 87113d7a2a Add missing details to 'Fix inconsistent pkg-config file' 15 ani în urmă
bandwidth-master.c 2b985f8163 Fix #591142 - Slave id check should be disabled in TCP connection 15 ani în urmă
bandwidth-slave-many-up.c 2b985f8163 Fix #591142 - Slave id check should be disabled in TCP connection 15 ani în urmă
bandwidth-slave-one.c 2b985f8163 Fix #591142 - Slave id check should be disabled in TCP connection 15 ani în urmă
random-test-master.c 807c20f08d Parity setting is now a single char ('N', 'E' or 'O') 15 ani în urmă
random-test-slave.c 2b985f8163 Fix #591142 - Slave id check should be disabled in TCP connection 15 ani în urmă
unit-test-master.c 807c20f08d Parity setting is now a single char ('N', 'E' or 'O') 15 ani în urmă
unit-test-slave.c 2b985f8163 Fix #591142 - Slave id check should be disabled in TCP connection 15 ani în urmă
unit-test.h 192f17312b Restore slave ID (server ID) argument in functions 15 ani în urmă
version.c 93ce136561 Merge modbus.h and version.h 15 ani în urmă

README

Compilation
-----------

After installation, you can use pkg-config to compile these tests.
For example, to compile random-test-slave run:

gcc random-test-slave.c -o random-test-slave `pkg-config --libs --cflags libmodbus`

random-test-slave
-----------------
It's necessary to launch this server before run random-test-master. By
default, it receives and responses to Modbus query on the localhost
and port 1502.

random-test-master
------------------
This programm sends many different queries to a large range of
addresses and values to test the communication between the master and
the slave.

unit-test-slave
unit-test-master
----------------
By default, this program sends some queries with the values defined in
unit-test.h and checks the responses. These programs are useful to
test the protocol implementation.

bandwidth-slave-one
bandwidth-slave-many-up
bandwidth-master
-----------------------
It returns some very useful informations about the performance of
transfert rate between the slave and the master.

- bandwidth-slave-one: it can handles only one connection with a master.
- bandwidth-slave-many-up: it opens a connection each time a new master asks
for, but the number of connection is limited. The same slave process handles
all the connections.