手把手教 - 开源库 libmodbus 的RTU-Master 的使用笔记

测试环境:基于nuc980开发板

Linux信息:Linux buildroot 4.4.289+ #8 PREEMPT Thu Sep 21 14:29:45 CST 2023 armv5tejl GNU/Linux

目录:

一、libmodbus 库简介

二、下载链接

三、移植准备

四、移植过程和完整代码

五、测试结果

一、libmodbus 库简介

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.( libmodbus 是一个开源的软件库,可以用于Modbus协议数据设备的发送/接收。此库可以使用串行端口或以太网连接。)

741513379d024ecdfa242187cb7dcff3.png

二、下载链接

github:https://github.com/stephane/libmodbus/releases
gitee:https://gitee.com/idrm-iot/libmodbus/tree/v3.1.10
官网:https://libmodbus.org/reference/modbus_free/

三、移植准备

①下载 libmodbus 开源库

猜你喜欢

转载自blog.csdn.net/weixin_46158019/article/details/133287017