Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztow committed Jul 16, 2013
1 parent b12ebeb commit 959e8a6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,32 @@ modbus-utils
============

Modbus client and server command line tools based on libmodbus.

NOTE:
Both apps are linked with libmodbus library. After repository is pulled do the following:

compilation
===========
#assumes you are in a root of the repository
#go to libmodbus dir and compile it
cd ./libmodbus
./configure
./make
#as a result *.so libraries are in export ./src/.libs/ directory

#get back to the root
cd ..
gcc ./modbus_client/modbus_client.c -I./common -I./libmodbus/src/ -L./libmodbus/src/.libs/ -lmodbus -o mbClient
gcc ./modbus_server/modbus_server.c -I./common -I./libmodbus/src/ -L./libmodbus/src/.libs/ -lmodbus -o mbServer

running
=======
If modbus libraries are not in a default location (either it's needed to move libraries to app location or set
appropriate environment variable):
- on linux it would be:
1) LD_LIBRARY_PATH=./libmodbus/src/.libs/ ./mbClient OR
2) export LD_LIBRARY_PATH=./libmodbus/src/.libs/ and then run ./mbClient

usage
=====
Run apps with no arguments, descriptive help information will be provided.

0 comments on commit 959e8a6

Please sign in to comment.