libmodbus base on v3.1.10

Anton Bondarev ae66153244 Update README.md il y a 4 ans
doc 9d3b12861e Add modbus_[get|set]_indication_timeout to doc build il y a 4 ans
m4 c83fd17927 Fix m4 warnings from autotools il y a 12 ans
src 0814ecf778 Fix warning issues il y a 4 ans
tests 1d758ca214 docs: fix simple typo, reponse -> response il y a 4 ans
.appveyor.yml c409cf9a44 Add appveyor.com config il y a 5 ans
.dir-locals.el 66c59d6f85 Change indent level from 8 to 4 il y a 14 ans
.gitignore 44b0083069 Add .vscode/ to .gitignore il y a 7 ans
.travis.yml e2e22503bf Add travis hint file il y a 10 ans
AUTHORS 55d8e2c024 Add Jakob to AUTHORS with Contributor License Agreement il y a 9 ans
CODE_OF_CONDUCT.md 076992fb86 Create CODE_OF_CONDUCT.md il y a 6 ans
CONTRIBUTING.md 7612ce2029 Github's contributing and issue template files il y a 8 ans
COPYING.LESSER 12753875b5 Revert libmodbus licence from LGPLv3 to LGPLv2.1 il y a 13 ans
ISSUE_TEMPLATE.md db6962ee6b Refine issue template for Github il y a 8 ans
MIGRATION 7e673738b6 Minor change about version to MIGRATION il y a 14 ans
Makefile.am 671086111c Add an option to disable tests compilation il y a 9 ans
NEWS f9fe3b0a53 Bump version to 3.1.6 il y a 5 ans
README.md ae66153244 Update README.md il y a 3 ans
acinclude.m4 333db8e12a Rewrite documentation macro and Makefile il y a 10 ans
autogen.sh 1a4fb4eb8e Check return value of autoreconf. Thanks to Lauri Nurmi. il y a 11 ans
configure.ac f9fe3b0a53 Bump version to 3.1.6 il y a 5 ans
libmodbus.pc.in 63871ff304 Add modbus directory to include path of pkg-config file il y a 14 ans

README.md

A groovy modbus library

Build Status

Overview

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 documentation is available as manual pages (man libmodbus to read general description and list of available functions) or Web pages www.libmodbus.org/documentation/. The documentation is licensed under the Creative Commons Attribution-ShareAlike License 3.0 (Unported) (http://creativecommons.org/licenses/by-sa/3.0/).

The official website is www.libmodbus.org.

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.

Installation

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 need to install https://github.com/chemeris/msinttypes to fill the absence of stdint.h.

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.

Documentation

The documentation is available online or as manual pages after installation.

The documentation is based on AsciiDoc. Only man pages are built by default with make command, you can run make htmldoc in doc directory to generate HTML files.

Testing

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:

  1. ./unit-test-server
  2. ./unit-test-client

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.

To report a bug or to contribute

See CONTRIBUTING document.