libmodbus-master
所属分类:通讯编程
开发工具:C/C++
文件大小:140KB
下载次数:38
上传日期:2017-11-15 03:57:01
上 传 者:
tolegoleg
说明: modbus for STM32
文件列表:
.dir-locals.el (96, 2016-05-29)
.travis.yml (100, 2016-05-29)
AUTHORS (336, 2016-05-29)
CONTRIBUTING.md (1256, 2016-05-29)
COPYING.LESSER (26530, 2016-05-29)
ISSUE_TEMPLATE.md (265, 2016-05-29)
MIGRATION (1780, 2016-05-29)
Makefile.am (307, 2016-05-29)
NEWS (21213, 2016-05-29)
acinclude.m4 (1489, 2016-05-29)
autogen.sh (385, 2016-05-29)
configure.ac (4947, 2016-05-29)
doc (0, 2016-05-29)
doc\Makefile.am (2641, 2016-05-29)
doc\asciidoc.conf (1233, 2016-05-29)
doc\libmodbus.txt (9064, 2016-05-29)
doc\modbus_close.txt (792, 2016-05-29)
doc\modbus_connect.txt (965, 2016-05-29)
doc\modbus_flush.txt (564, 2016-05-29)
doc\modbus_free.txt (444, 2016-05-29)
doc\modbus_get_byte_from_bits.txt (764, 2016-05-29)
doc\modbus_get_byte_timeout.txt (957, 2016-05-29)
doc\modbus_get_float.txt (868, 2016-05-29)
doc\modbus_get_float_abcd.txt (830, 2016-05-29)
doc\modbus_get_float_badc.txt (849, 2016-05-29)
doc\modbus_get_float_cdab.txt (853, 2016-05-29)
doc\modbus_get_float_dcba.txt (862, 2016-05-29)
doc\modbus_get_header_length.txt (638, 2016-05-29)
doc\modbus_get_response_timeout.txt (1090, 2016-05-29)
doc\modbus_get_socket.txt (633, 2016-05-29)
doc\modbus_mapping_free.txt (558, 2016-05-29)
doc\modbus_mapping_new.txt (1833, 2016-05-29)
doc\modbus_mapping_new_start_address.txt (2620, 2016-05-29)
doc\modbus_mask_write_register.txt (917, 2016-05-29)
doc\modbus_new_rtu.txt (2117, 2016-05-29)
doc\modbus_new_tcp.txt (1560, 2016-05-29)
doc\modbus_new_tcp_pi.txt (1752, 2016-05-29)
... ...
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 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) ().
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
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 *docs* 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.
近期下载者:
相关文件:
收藏者: