libmodbus

适用于 Linux、Mac OS X、FreeBSD、QNX 和 Windows 的 Modbus 库。「A Modbus library for Linux, Mac OS X, FreeBSD, QNX and Windows」

  • 所有者: stephane/libmodbus
  • 平台: Linux,Mac,BSD,QNX,Windows
  • 许可证: GNU Lesser General Public License v2.1
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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 and
QNX and Windows.

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.

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.

主要指标

概览
名称与所有者stephane/libmodbus
主编程语言C
编程语言Shell (语言数: 5)
平台
许可证GNU Lesser General Public License v2.1
所有者活动
创建于2010-01-21 10:42:06
推送于2024-10-22 14:53:14
最后一次提交2024-10-22 16:52:57
发布数34
最新版本名称v3.1.11 (发布于 )
第一版名称v1.2.0 (发布于 )
用户参与
星数3.8k
关注者数213
派生数1.8k
提交数0.9k
已启用问题?
问题数536
打开的问题数86
拉请求数48
打开的拉请求数85
关闭的拉请求数135
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?