README 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Compilation
  2. -----------
  3. After installation, you can use pkg-config to compile these tests.
  4. For example, to compile random-test-server run:
  5. gcc random-test-server.c -o random-test-server `pkg-config --libs --cflags libmodbus`
  6. random-test-server
  7. -----------------
  8. It's necessary to launch this server before run random-test-client. By
  9. default, it receives and responses to Modbus query on the localhost
  10. and port 1502.
  11. random-test-client
  12. ------------------
  13. This programm sends many different queries to a large range of
  14. addresses and values to test the communication between the client and
  15. the server.
  16. unit-test-server
  17. unit-test-client
  18. ----------------
  19. By default, this program sends some queries with the values defined in
  20. unit-test.h and checks the responses. These programs are useful to
  21. test the protocol implementation.
  22. bandwidth-server-one
  23. bandwidth-server-many-up
  24. bandwidth-client
  25. -----------------------
  26. It returns some very useful informations about the performance of
  27. transfert rate between the server and the client.
  28. - bandwidth-server-one: it can handles only one connection with a client.
  29. - bandwidth-server-many-up: it opens a connection each time a new client asks
  30. for, but the number of connection is limited. The same server process handles
  31. all the connections.