# A groovy modbus library
![Build Status](https://github.com/stephane/libmodbus/actions/workflows/build.yml/badge.svg)
## 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 official website is [www.libmodbus.org](http://www.libmodbus.org). The
website contains the latest version of the documentation.
The library is written in C and designed to run on Linux, Mac OS X, FreeBSD, Embox,
QNX and Windows.
You can use the library on MCUs with Embox RTOS.
## 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 should follow the
instructions in `./src/win32/README.md`.
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`.
To build under Embox, you have to use its build system.
## 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.
## Documentation
You can serve the local documentation with:
```shell
pip install mkdocs-material
mkdocs serve
```
没有合适的资源?快使用搜索试试~ 我知道了~
libmodbus windows下使用的两种方式源码,一种是直接加入vs工程,工程代码在资源里,另外一种是编译dll和lib库
共164个文件
md:74个
h:17个
c:16个
需积分: 5 1 下载量 23 浏览量
2023-09-21
09:54:02
上传
评论
收藏 37.51MB RAR 举报
温馨提示
libmodbus windows下使用的两种方式源码,一种是直接加入vs工程,工程代码在资源里,另外一种是编译dll和lib库也在资源里面
资源推荐
资源详情
资源评论
收起资源包目录
libmodbus windows下使用的两种方式源码,一种是直接加入vs工程,工程代码在资源里,另外一种是编译dll和lib库 (164个子文件)
configure.ac 5KB
Makefile.am 1KB
Makefile.am 947B
Makefile.am 306B
AUTHORS 336B
modbus.c 63KB
modbus.c 63KB
unit-test-client.c 37KB
modbus-rtu.c 36KB
modbus-rtu.c 36KB
modbus-tcp.c 23KB
modbus-tcp.c 23KB
random-test-client.c 9KB
unit-test-server.c 7KB
modbus-data.c 6KB
modbus-data.c 6KB
bandwidth-client.c 6KB
bandwidth-server-many-up.c 4KB
bandwidth-server-one.c 2KB
random-test-server.c 1KB
version.c 727B
.clabot 870B
.clang-format 2KB
libModbusConsoleApp.cpp 870B
Browse.VC.db 37.86MB
Browse.VC.db 33.48MB
modbus.dll 141KB
.editorconfig 223B
server-grafana.excalidraw 46KB
client-sensors.excalidraw 15KB
modbus.exp 10KB
libModbusConsoleApp.vcxproj.filters 2KB
modbus.vcxproj.filters 2KB
.gitignore 621B
.gitignore 63B
modbus.h 12KB
modbus.h 12KB
config.h 5KB
config.h 5KB
config.h 5KB
modbus-private.h 3KB
modbus-private.h 3KB
modbus-version.h 2KB
modbus-version.h 2KB
modbus-rtu-private.h 2KB
modbus-rtu-private.h 2KB
modbus-tcp.h 1KB
modbus-tcp.h 1KB
modbus-rtu.h 1KB
modbus-rtu.h 1KB
modbus-tcp-private.h 1KB
modbus-tcp-private.h 1KB
UpgradeLog.htm 34KB
unit-test.h.in 3KB
modbus-version.h.in 2KB
modbus.dll.manifest.in 528B
libmodbus.pc.in 201B
MODBUS.ipch 40.06MB
MODBUS-DATA.ipch 39.13MB
LIBMODBUSCONSOLEAPP.ipch 33.94MB
configure.js 5KB
COPYING.LESSER 26KB
modbus.lib 16KB
LICENSE 1KB
Make-tests 2KB
index.md 10KB
modbus_new_rtu.md 3KB
CODE_OF_CONDUCT.md 3KB
README.md 3KB
ISSUE_TEMPLATE.md 3KB
modbus_mapping_new_start_address.md 3KB
modbus_set_slave.md 2KB
modbus_set_error_recovery.md 2KB
README.md 2KB
modbus_rtu_set_rts.md 2KB
modbus_new_tcp_pi.md 2KB
modbus_send_raw_request.md 2KB
modbus_mapping_new.md 2KB
modbus_new_tcp.md 1KB
modbus_rtu_get_serial_mode.md 1KB
modbus_rtu_set_serial_mode.md 1KB
modbus_report_slave_id.md 1KB
modbus_read_registers.md 1KB
modbus_tcp_listen.md 1KB
modbus_set_response_timeout.md 1KB
modbus_set_byte_timeout.md 1KB
modbus_receive_confirmation.md 1KB
modbus_write_and_read_registers.md 1KB
modbus_tcp_pi_listen.md 1KB
CONTRIBUTING.md 1KB
README.md 1KB
modbus_reply_exception.md 1KB
modbus_read_input_registers.md 1KB
modbus_get_indication_timeout.md 1KB
modbus_reply.md 1KB
modbus_tcp_pi_accept.md 983B
modbus_tcp_accept.md 965B
modbus_set_indication_timeout.md 958B
modbus_enable_quirks.md 951B
modbus_get_response_timeout.md 935B
共 164 条
- 1
- 2
资源评论
miller19790113
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 沈丘盛世龙门图纸符合规范化
- HM3400-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 基于python+streamlit联邦学习进行高校学生成绩预测研究python源码+项目说明+模型+数据.zip
- HM3400D-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- HM3400B-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- spring-boot示例
- 搜集火星资源.py
- JAR应用启动停止脚本化解决方案.zip
- 配合eclipse svn插件subclipse-4.3.4版本的javahl
- Bash脚本教程:如何优雅地停止JAR服务.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功