A groovy modbus library
=======================
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 Schneider at
[www.schneiderautomation.com](http://www.schneiderautomation.com).
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
<http://code.google.com/p/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`.
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).
Report a Bug
------------
Before reporting a bug, take care to read the documentation (RTFM!) and to
provide enough information:
1. libmodbus version
2. OS/environment/architecture
3. libmodbus backend (TCP, RTU, IPv6)
3. Modbus messages when running in debug mode (`man modbus_set_debug`)
To report your problem, you can:
* fill a bug report on the issue tracker <http://github.com/stephane/libmodbus/issues>.
* or send an email to the libmodbus mailing list [libmodbus@googlegroups.com](https://groups.google.com/forum/#!forum/libmodbus).
If your prefer live talk when your're looking for help or to offer contribution,
there is also a channel called #libmodbus on Freenode.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
基于qt5下的modbus协议库 (166个子文件)
configure.ac 4KB
Makefile.am 2KB
Makefile.am 1KB
Makefile.am 1KB
Makefile.am 286B
AUTHORS 154B
AUTHORS 152B
build_mingw32 147B
modbus.c 61KB
modbus-rtu.c 34KB
modbus-ascii.c 31KB
unit-test-client.c 28KB
modbus-tcp.c 22KB
random-test-client.c 9KB
unit-test-server.c 7KB
bandwidth-client.c 6KB
modbus-data.c 4KB
bandwidth-server-many-up.c 4KB
bandwidth-server-one.c 2KB
random-test-server.c 1KB
version.c 766B
changelog 4KB
MinGWCrossCompile.cmake 1KB
Win32Toolchain-Native.cmake 998B
Win32Toolchain.cmake 119B
compat 2B
asciidoc.conf 1KB
control 1KB
COPYING 18KB
copyright 2KB
posix_qextserialport.cpp 30KB
win_qextserialport.cpp 28KB
mainwindow.cpp 14KB
qextserialenumerator_osx.cpp 11KB
qextserialport.cpp 7KB
qextserialenumerator_win.cpp 7KB
BatchProcessor.cpp 6KB
serialsettingswidget.cpp 4KB
qextserialenumerator_unix.cpp 2KB
tcpipsettingswidget.cpp 2KB
main.cpp 1KB
ipaddressctrl.cpp 1KB
asciisettingswidget.cpp 925B
rtusettingswidget.cpp 833B
iplineedit.cpp 347B
qmodbus-diff.diff 7KB
libmodbus-dev.docs 28B
.dir-locals.el 96B
libmodbus-dev.examples 26B
format 12B
.gitignore 708B
.gitignore 63B
modbus.h 10KB
qextserialport.h 9KB
qextserialenumerator.h 7KB
config.h 6KB
modbus-private.h 4KB
qwineventnotifier_p.h 3KB
mainwindow.h 3KB
modbus-rtu-private.h 2KB
modbus-ascii-private.h 2KB
modbus-tcp.h 2KB
modbus-version.h 2KB
modbus-tcp-private.h 2KB
modbus-rtu.h 2KB
BatchProcessor.h 2KB
modbus-ascii.h 1KB
tcpipsettingswidget.h 940B
serialsettingswidget.h 856B
ipaddressctrl.h 690B
asciisettingswidget.h 478B
rtusettingswidget.h 418B
qextserialport_global.h 339B
iplineedit.h 188B
imodbus.h 183B
qmodbus.ico 66KB
libmodbus.spec.in 3KB
modbus-version.h.in 2KB
unit-test.h.in 2KB
qmodbus.rc.in 1001B
modbus.dll.manifest.in 528B
libmodbus.pc.in 201B
INSTALL 186B
libmodbus-dev.install 110B
libmodbus5.install 36B
configure.js 5KB
COPYING.LESSER 26KB
acinclude.m4 2KB
Make-tests 2KB
libmodbus-dev.manpages 74B
README.md 3KB
MIGRATION 2KB
NEWS 16KB
logo.png 39KB
qmodbus.pro 2KB
qmodbus.qrc 94B
modbus.rc 1KB
README 1KB
README 1KB
rules 191B
共 166 条
- 1
- 2
暗剑
- 粉丝: 11
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
前往页