节点文献
基于Zynq-7000平台的智能相机通信程序设计与实现
Design and Implementation of Smart Camera Communication Program Based on Zynq-7000 Platform
【作者】 张强;
【导师】 杨浩;
【作者基本信息】 南京邮电大学 , 电子与通信工程(专业学位), 2018, 硕士
【摘要】 智能相机集图像采集、信息处理、数据通信功能于一体,广泛应用在现代工业自动化生产领域。随着网络技术的高速发展,越来越多的智能设备投入使用,对智能相机通信功能的要求也越来越高,万物互联场景下智能相机与其他设备之间的信息交互显得尤为重要。论文基于Zynq-7000平台的串行口和以太网通信模块,设计实现了智能相机通信程序,使得智能相机具备与串行设备通信的能力以及以太网高速数据传输的功能,论文的主要工作包括:(1)实现了基于Modbus协议的串行通信功能。分析Modbus协议主节点和子节点具体传输过程,实现了智能相机作为主节点的串行通信程序,配置作为子节点的PLC设备,测试并验证了串行通信功能。(2)针对智能相机对数据传输的任务需求,设计了基于TCP协议的应用层私有通信协议,实现XML配置文件可靠传输功能和远程通信功能,实现对智能相机任务作业的配置;设计了基于UDP协议的应用层私有图像传输协议,保证高清图像的稳定可靠传输。为了能够自动识别并发现本网段的智能相机,在PC软件终端和智能相机上设计实现了设备发现功能。(3)针对智能相机应用场景设计通信程序测试方案,对通信程序各个模块进行完整的功能测试与性能分析。实验数据表明,智能相机串行通信程序能够可靠地读写PLC设备数据,以太网通信程序能够稳定可靠地完成XML文件传输和远程通信任务,采用重传机制、流量控制、按序传输机制保证了图像数据的可靠稳定传输,智能相机与PC采用有线直连方式下,图像数据传输速度达到434Mbps。
【Abstract】 Smart cameras provide an excellent solution to solve the problems of modern industrial production with high-speed image processing and data transmission capabilities.With the rapid development of network technology,more and more smart devices are connected to the Internet.Data exchange is particularly important to smart camera in the scenary of Internet of Everything.This paper designed and implemented a smart camera communication program based on the serial and Ethernet solutions provided by the Zynq-7000 platform,which enabled the smart camera to communicate with traditional serial devices.The main work of this paper include:(1)This paper has realized the serial communication function of Modbus protocol and analyze the transmission process of the master node and sub-node of Modbus protocol,realize the common function code of the smart camera as the master node,configure the PLC device as the sub-node,test and verify the serial communication features.(2)The paper design the application layer protocol based on TCP to realize the reliable transmission function of XML file and remote communication function and design the protocol based on UDP to guarantee the stable and reliable transmission for the HD image.The paper design and implement the device discovery feature for identifying the smart camera equipment.(3)According to scenarios of the smart camera,the paper design communication program test cases and test all modules and performance analysis.Experimental data show that the smart camera communication program realized in this subject can accomplish the tasks of XML file transmission and remote communication.The retransmission mechanism,flow control and sequential transmission mechanism ensure the reliable and stable transmission of image data and the speed of image data transmission reach to 434 Mbps with directly connection.
【Key words】 Protocol Design; Modbus Protocol; Data Transmission; Zynq-7000;