README 1.4 KB

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