摘要
将Modbus协议应用到农业信息化领域,设计了一种基于Modbus协议的嵌入式农田信息采集服务器。分析了Modbus协议,设计了系统各模块之间的数据通信接口,ARM服务器与应用层采用Modbus/TCP通信完成用户的查询,ARM服务器与数据采集层采用Modbus串口通信进行数据的存储,提出了Modbus/TCP帧与串行链路RTU帧的转换方法,实现了应用层与数据采集层的实时通信,提高了系统的有效性和可靠性。
Modbus protocol was applied in the farmland information collection system and a preliminary design of an embed-ded farmland information collection server based on Modbus protocol was presented. ARM server using Modbus/TCP to com-municate with the application layer for completing the user’s query, and ARM server using seriallink to communicate with data acquisition layer for data storage were analyzed. The conversion of Modbus/TCP frame with serial link RTU frame was pro-posed to realize the communication for the application layer and the data acquisition layer. The design improved the effective-ness and reliability of the system.
出处
《湖北农业科学》
北大核心
2014年第7期1667-1670,1674,共5页
Hubei Agricultural Sciences
基金
河北农业大学理工基金项目(LG201106)