description | libmodbus mirror |
homepage URL | http://libmodbus.org/ |
repository URL | https://github.com/stephane/libmodbus |
owner | kirr@navytux.spb.ru |
last change | Tue, 22 Oct 2024 14:52:57 +0000 (22 16:52 +0200) |
last refresh | Thu, 21 Nov 2024 07:52:36 +0000 (21 08:52 +0100) |
mirror URL | git://repo.or.cz/libmodbus.git |
https://repo.or.cz/libmodbus.git | |
ssh://git@repo.or.cz/libmodbus.git | |
bundle info | libmodbus.git downloadable bundles |
content tags |
libmodbus is a free software library to send/receive data with a device which respects the Modbus protocol. This library can use a serial port or an Ethernet connection.
The functions included in the library have been derived from the Modicon Modbus Protocol Reference Guide which can be obtained from www.modbus.org.
The license of libmodbus is LGPL v2.1 or later.
The official website is www.libmodbus.org. The website contains the latest version of the documentation.
The library is written in C and designed to run on Linux, Mac OS X, FreeBSD, Embox, QNX and Windows.
You can use the library on MCUs with Embox RTOS.
You will only need to install automake, autoconf, libtool and a C compiler (gcc or clang) to compile the library and asciidoc and xmlto to generate the documentation (optional).
To install, just run the usual dance, ./configure && make install
. Run
./autogen.sh
first to generate the configure
script if required.
You can change installation directory with prefix option, eg. ./configure
--prefix=/usr/local/
. You have to check that the installation library path is
properly set up on your system (/etc/ld.so.conf.d) and library cache is up to
date (run ldconfig
as root if required).
The library provides a libmodbus.pc file to use with pkg-config
to ease your
program compilation and linking.
If you want to compile with Microsoft Visual Studio, you should follow the
instructions in ./src/win32/README.md
.
To compile under Windows, install MinGW and MSYS then select the common packages (gcc, automake, libtool, etc). The directory ./src/win32/ contains a Visual C project.
To compile under OS X with homebrew, you
will need to install the following dependencies first: brew install autoconf
automake libtool
.
To build under Embox, you have to use its build system.
Some tests are provided in tests directory, you can freely edit the source code to fit your needs (it's Free Software :).
See tests/README for a description of each program.
For a quick test of libmodbus, you can run the following programs in two shells:
By default, all TCP unit tests will be executed (see --help for options).
It's also possible to run the unit tests with make check
.
See CONTRIBUTING document.
You can serve the local documentation with:
pip install mkdocs-material
mkdocs serve
4 weeks ago | v3.1.11 | commitlog | ||
23 months ago | v3.1.10 | commitlog | ||
23 months ago | v3.1.9 | commitlog | ||
2 years ago | v3.1.8 | commitlog | ||
2 years ago | v3.1.7 | commitlog | ||
5 years ago | v3.0.8 | commitlog | ||
5 years ago | v3.1.6 | commitlog | ||
5 years ago | v3.1.5 | commitlog | ||
5 years ago | v3.0.7 | commitlog | ||
8 years ago | v3.1.4 | commitlog | ||
8 years ago | v3.1.3 | commitlog | ||
9 years ago | v3.1.2 | commitlog | ||
10 years ago | v3.0.6 | commitlog | ||
11 years ago | v3.0.5 | commitlog | ||
11 years ago | v3.1.1 | commitlog | ||
11 years ago | v3.0.4 | commitlog | ||
... |
4 weeks ago | master | logtree |
4 months ago | win32-configure | logtree |
4 months ago | ascii-support | logtree |
5 years ago | v3.0.X | logtree |
8 years ago | file-record | logtree |
8 years ago | read-device-id | logtree |
8 years ago | compliance | logtree |
13 years ago | v2.0.X | logtree |