libmodbus-master

所属分类:通讯编程
开发工具:C/C++
文件大小:142KB
下载次数:15
上传日期:2016-11-25 07:39:12
上 传 者anapp1e
说明:  开源Modbus。VS下编译需要下一个msinttypes的开源包,就两个.h头文件。然后运行src下的win32的.js文件就可以用vs2008编译了。想在vs2005下编译只要将.sln的中的vision 改为8.0就可以了
(Open source Modbus. VS compilation requires the next msinttypes open source package on the two. H header files. And then run src win32. Js file can be compiled with vs2008. Want to compile under VS2005 as long as the .sln in the vision to 8.0 on it)

文件列表:
.dir-locals.el (96, 2016-11-10)
.travis.yml (100, 2016-11-10)
AUTHORS (336, 2016-11-10)
CONTRIBUTING.md (1256, 2016-11-10)
COPYING.LESSER (26530, 2016-11-10)
ISSUE_TEMPLATE.md (2731, 2016-11-10)
MIGRATION (1780, 2016-11-10)
Makefile.am (307, 2016-11-10)
NEWS (21213, 2016-11-10)
acinclude.m4 (1489, 2016-11-10)
autogen.sh (385, 2016-11-10)
configure.ac (4947, 2016-11-10)
doc (0, 2016-11-10)
doc\Makefile.am (2665, 2016-11-10)
doc\asciidoc.conf (1233, 2016-11-10)
doc\libmodbus.txt (9064, 2016-11-10)
doc\modbus_close.txt (792, 2016-11-10)
doc\modbus_connect.txt (965, 2016-11-10)
doc\modbus_flush.txt (564, 2016-11-10)
doc\modbus_free.txt (444, 2016-11-10)
doc\modbus_get_byte_from_bits.txt (764, 2016-11-10)
doc\modbus_get_byte_timeout.txt (957, 2016-11-10)
doc\modbus_get_float.txt (868, 2016-11-10)
doc\modbus_get_float_abcd.txt (830, 2016-11-10)
doc\modbus_get_float_badc.txt (849, 2016-11-10)
doc\modbus_get_float_cdab.txt (853, 2016-11-10)
doc\modbus_get_float_dcba.txt (862, 2016-11-10)
doc\modbus_get_header_length.txt (638, 2016-11-10)
doc\modbus_get_response_timeout.txt (1090, 2016-11-10)
doc\modbus_get_slave.txt (664, 2016-11-10)
doc\modbus_get_socket.txt (633, 2016-11-10)
doc\modbus_mapping_free.txt (558, 2016-11-10)
doc\modbus_mapping_new.txt (1833, 2016-11-10)
doc\modbus_mapping_new_start_address.txt (2620, 2016-11-10)
doc\modbus_mask_write_register.txt (917, 2016-11-10)
doc\modbus_new_rtu.txt (2117, 2016-11-10)
doc\modbus_new_tcp.txt (1560, 2016-11-10)
... ...

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.

近期下载者

相关文件


收藏者