README 1002 B

1234567891011121314151617181920212223242526272829303132
  1. Compilation
  2. -----------
  3. After installation, you can use pkg-config to compile these tests.
  4. For example, to compile random-test-slave run:
  5. gcc random-test-slave.c -o random-test-slave `pkg-config --libs --cflags modbus`
  6. random-test-slave
  7. -----------------
  8. It's necessary to launch this server before run random-test-master. By
  9. default, it receives and responses to Modbus query on the localhost
  10. and port 1502.
  11. random-test-master
  12. ------------------
  13. This programm sends many different queries to a large range of
  14. addresses and values to test the communication between the master and
  15. the slave.
  16. unit-test-slave
  17. unit-test-master
  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. bench-bandwidth-slave
  23. bench-bandwidth-master
  24. ----------------------
  25. It returns some very useful informations about the performance of
  26. transfert rate between the slave and the master.