1 Star 7 Fork 3

hudiekaxp / OpenModbus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

OpenModbus

OpenModbus is an opensource modbus stack, noblocking function call by main, without RTOS, it support multi-master and slave mode in one device.

TestPlatform:

  1. Chip:NXP K64
  2. Board:FRDM-K64
  3. IDE: IAR
  4. SDK: NXP SDK_2.6.0

File description

  1. Modbus.c/.h stack core file, no need to modify.
  2. Modbus_Porting.c/.h porting file, user need to modify it if change the MCU platform, please fellow this guide.
  3. ModbusSlaveApp.c/.h Slave demo code, user need to modify it according to requirement.
  4. ModbusMasterApp.c/.h Master demo code, user need to modify it according to requirement.

OpenModbus是一个开源的Modbus协议栈,采用非阻塞函数调用,无需使用RTOS,支持主/从机模式,并支持多个主从机在同一个设备运行。

运行平台:

  1. 芯片:NXP K64
  2. 开发板:FRDM-K64
  3. 编译环境:IAR
  4. SDK:NXP SDK_2.6.0

文件说明:

  1. Modbus.c/.h 协议栈核心,用户不需要修改
  2. Modbus_Porting.c/.h 移植文件,主要处理UART以及定时器的配置,如果更换MCU平台请根据移植要点进行移植
  3. ModbusSlaveApp.c/.h 从站示例代码,用户可以根据需求修改
  4. ModbusMasterApp.c/.h 主站示例代码,用户可以根据需求修改
BSD 3-Clause License Copyright (c) 2022, hudiekaxp All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

这是一个通用的Modbus RTU协议栈 展开 收起
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/hudiekaxp/OpenModbus.git
git@gitee.com:hudiekaxp/OpenModbus.git
hudiekaxp
OpenModbus
OpenModbus
master

搜索帮助