摘要
Modbus/TCP是运行在TCP/IP协议之上的应用层实时报文传输协议;分析了Modbus/TCP协议构成,并在实时内核μC/OS-Ⅱ及嵌入式ARM软硬件环境下,将Modbus帧嵌入到TCP帧中,实现了Modbus/TCP协议;通过Modbus/TCP通信组件模型,实现了μC/OS-Ⅱ内核下的C/S通信;提出了嵌入式ARM平台上Modbus/TCP原型测试与性能分析方案;经测试,数据延迟在300帧/秒的发送速率下基本稳定在1.3ms以内,有用数据的传送量约为30kb/s;测试结果表明,Modbus/TCP协议具有较好的实时性与稳定性,能达到工业化标准。
Abstract: Modbus/TCP is a real--time application--layer protocol running on TCP/IP protocol. After analyzing components of Modbus/TCP protocol, we applied it on real--time μC/OS-Ⅱ kernel and ARM software and hardware environment with Modbus frame embedded in TCP frame. Eased on Modbus/TCP communication component model, this paper realized C/S communication in μC/OS-Ⅱ kernel, and put forward prototype testing and performance analyzing solution. After testing, data latency of 300 frames/sec transmission rate basically stable at 1.3ms or less, the transmission capacity of useful data can be about 30kb/s. The testing results showed that Modbus/TCP protocol has a good performance in the aspect of real--time and stability, which matches industrial standard.
出处
《计算机测量与控制》
CSCD
北大核心
2012年第6期1632-1635,共4页
Computer Measurement &Control
基金
陕西省"13115"科技创新工程重大科技专项(2010ZDKG-83)