A groovy modbus library
=======================
[![Build Status](https://travis-ci.org/stephane/libmodbus.svg?branch=master)](https://travis-ci.org/stephane/libmodbus)
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](http://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/](http://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](http://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](http://www.mingw.org/) 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](http://mxcl.github.com/homebrew/), you
will need to install the following dependencies first: `brew install autoconf
automake libtool`.
Documentation
-------------
The documentation is available [online](http://libmodbus.org/documentation) or
as manual pages after installation.
The documentation is based on
[AsciiDoc](http://www.methods.co.nz/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](CONTRIBUTING.md) document.
没有合适的资源?快使用搜索试试~ 我知道了~
libmodbus_打包.rar
共146个文件
txt:63个
c:12个
in:9个
需积分: 47 102 下载量 169 浏览量
2020-06-28
10:43:41
上传
评论
收藏 3.36MB RAR 举报
温馨提示
包含了libmodbus_3.1.6版本,和能对其进行configure的MSYS软件
资源推荐
资源详情
资源评论
收起资源包目录
libmodbus_打包.rar (146个子文件)
configure.ac 5KB
Makefile.am 3KB
Makefile.am 1KB
Makefile.am 947B
Makefile.am 307B
AUTHORS 336B
modbus.c 57KB
modbus-rtu.c 36KB
unit-test-client.c 33KB
modbus-tcp.c 22KB
random-test-client.c 9KB
unit-test-server.c 6KB
bandwidth-client.c 6KB
modbus-data.c 5KB
bandwidth-server-many-up.c 4KB
bandwidth-server-one.c 2KB
random-test-server.c 1KB
version.c 693B
compile 7KB
asciidoc.conf 1KB
configure 608KB
depcomp 23KB
MSYS-1.0.11.exe 3.13MB
config.guess 43KB
modbus.h 11KB
config.h 7KB
modbus-private.h 3KB
unit-test.h 2KB
modbus-version.h 2KB
modbus-rtu-private.h 2KB
modbus-tcp.h 1KB
modbus-tcp-private.h 1KB
modbus-rtu.h 1KB
Makefile.in 38KB
Makefile.in 30KB
Makefile.in 24KB
Makefile.in 20KB
config.h.in 6KB
unit-test.h.in 2KB
modbus-version.h.in 2KB
modbus.dll.manifest.in 528B
libmodbus.pc.in 201B
install-sh 15KB
COPYING.LESSER 26KB
libtool 346KB
config.log 11KB
libtool.m4 300KB
aclocal.m4 41KB
ltoptions.m4 14KB
lt~obsolete.m4 6KB
ltsugar.m4 4KB
acinclude.m4 1KB
ltversion.m4 723B
Makefile 37KB
Makefile 30KB
Makefile 23KB
Makefile 20KB
modbus.dll.manifest 514B
README.md 3KB
README.md 1KB
MIGRATION 2KB
missing 7KB
NEWS 22KB
libmodbus.pc 210B
modbus-tcp.Plo 8B
modbus-data.Plo 8B
modbus-rtu.Plo 8B
modbus.Plo 8B
bandwidth-server-one.Po 8B
unit-test-server.Po 8B
version.Po 8B
bandwidth-client.Po 8B
random-test-client.Po 8B
random-test-server.Po 8B
unit-test-client.Po 8B
bandwidth-server-many-up.Po 8B
ltmain.sh 323KB
unit-tests.sh 283B
stamp-h1 23B
stamp-h2 32B
config.status 70KB
config.sub 35KB
test-driver 5KB
libmodbus.txt 9KB
modbus_mapping_new_start_address.txt 3KB
modbus_set_error_recovery.txt 2KB
modbus_new_rtu.txt 2KB
modbus_set_slave.txt 2KB
modbus_rtu_set_rts.txt 2KB
modbus_new_tcp_pi.txt 2KB
modbus_send_raw_request.txt 2KB
modbus_mapping_new.txt 2KB
modbus_new_tcp.txt 2KB
modbus_report_slave_id.txt 2KB
modbus_rtu_set_serial_mode.txt 2KB
modbus_rtu_get_serial_mode.txt 2KB
modbus_read_registers.txt 2KB
modbus_receive_confirmation.txt 2KB
modbus_tcp_listen.txt 2KB
modbus_set_response_timeout.txt 2KB
共 146 条
- 1
- 2
资源评论
图灵小眼睛
- 粉丝: 148
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于yolov5识别算法实现的DNF自动脚本源码.zip
- 基于Python实现的自动化办公项目.zip
- 基于python实现的基于PyQt5和爬虫的小说阅读系统.zip
- 机械设计整经机上纱自动化sw20非常好的设计图纸100%好用.zip
- Screenshot_20240427_031602.jpg
- 网页PDF_2024年04月26日 23-46-14_QQ浏览器网页保存_QQ浏览器转格式(6).docx
- 直接插入排序,冒泡排序,直接选择排序.zip
- 在排序2的基础上,再次对快排进行优化,其次增加快排非递归,归并排序,归并排序非递归版.zip
- 实现了7种排序算法.三种复杂度排序.三种nlogn复杂度排序(堆排序,归并排序,快速排序)一种线性复杂度的排序.zip
- 冒泡排序 直接选择排序 直接插入排序 随机快速排序 归并排序 堆排序.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功