摘要
在数据传输领域,UART作为可靠的传输协议被广泛使用,但是其通信接口RS422已经逐渐被PC机淘汰。针对这一问题,设计并实现了RS422到以太网的转换和传输。该设计以FPGA为控制核心来实现RS422和以太网转换的片上集成,在硬件设计上,RS422和以太网分别采用ADM2682EBRIZ和88E1111作为物理层;软件设计上,通过编写硬件描述语言和使用IP核完成对UART、UDP、IP、ARP和MAC模块的设计,将存储器中的数据通过UART缓存至FIFO中,并在UDP/IP协议下以太网各模块完成对数据报的帧封装,再通过物理层、网络变压器和RJ45水晶头将数据包上传到地面综合测控台的上位机软件。经过仿真实验和上位机数据处理验证,该设计能够完成RS422到以太网的转换和传输,对数据进行回读分析后丢帧率为0。
In the field of data transmission,UART is widely used as a reliable transmission protocol,but its communication interface RS422 has been gradually eliminated by PC.Aiming at this subject,the conversion and transmission from RS422 to Ethernet are designed and realized.The design takes FPGA as the control core to realize the on-chip integration of RS422 and Ethernet conversion.In the hardware design,ADM2682EBRIZ and 88E1111 are used as the physical layer of RS422 and Ethernet respectively.In terms of software design,the design of UART,UDP,IP,ARP and MAC modules are completed by writing hardware description language and using IP core,the data in the memory is cached into FIFO through UART,and the frame encapsulation of datagram is completed by Ethernet modules under UDP/IP protocol,and then the data packet is uploaded to the host computer software of ground integrated measurement and control platform through physical layer,network transformer and RJ45 crystal head.Through the simulation experiment and the data processing verification of the host computer,the design can complete the conversion and transmission from RS422 to Ethernet,and the frame loss rate is 0 after the data is read back and analyzed.
作者
文丰
张晋铭
张凯华
Wen Feng;Zhang Jinming;Zhang Kaihua(State Key Laboratory of Electronic Testing Technology,North University of China,Taiyuan 030051,China)
出处
《单片机与嵌入式系统应用》
2022年第10期58-61,共4页
Microcontrollers & Embedded Systems