OpenModbus is an opensource modbus stack, noblocking function call by main, without RTOS, it support multi-master and slave mode in one device.
TestPlatform:
- Chip:NXP K64
- Board:FRDM-K64
- IDE: IAR
- SDK: NXP SDK_2.6.0
File description
- Modbus.c/.h stack core file, no need to modify.
- Modbus_Porting.c/.h porting file, user need to modify it if change the MCU platform, please fellow this guide.
- ModbusSlaveApp.c/.h Slave demo code, user need to modify it according to requirement.
- ModbusMasterApp.c/.h Master demo code, user need to modify it according to requirement.
OpenModbus是一个开源的Modbus协议栈,采用非阻塞函数调用,无需使用RTOS,支持主/从机模式,并支持多个主从机在同一个设备运行。
运行平台:
- 芯片:NXP K64
- 开发板:FRDM-K64
- 编译环境:IAR
- SDK:NXP SDK_2.6.0
文件说明:
- Modbus.c/.h 协议栈核心,用户不需要修改
- Modbus_Porting.c/.h 移植文件,主要处理UART以及定时器的配置,如果更换MCU平台请根据移植要点进行移植
- ModbusSlaveApp.c/.h 从站示例代码,用户可以根据需求修改
- ModbusMasterApp.c/.h 主站示例代码,用户可以根据需求修改