摘要
为实现信息化发射平台控制系统不同网段之间互联互通,实现了一种能够对以太网、CAN等不同协议数据进行解析、过滤及转发的多协议网关;该网关采用DSP+FPGA的控制器架构,在FPGA内部通过CAN IP核的方式实现了六路CAN控制器;FPGA内部还实现了一路Microblaze软核,软核上运行lwIP以太网协议栈,实现一路以太网控制器功能;DSP作为控制核心,调用FPGA实现的驱动函数实现以太网和CAN数据收发,并根据特定的转发策略对接收数据进行解析、过滤和转发;试验结果表明,该多协议网关单元具有通信接口种类多、数量多,数据转发实时性强、可靠性高,数据解析、转发规则可编程设定、灵活性高等特点,能够适应不同系统的应用需求。
In order to realize the interconnection between different network segments of the informatized launch platform control system,a multi-protocol gateway which can analyze,filter and forward the protocol data of Ethernet,CAN and so on was realized.The controller architecture of DSP+FPGA was used,and six CAN controllers was implemented by reusing CAN IP core inside the FPGA.Within the FPGA,a Microblaze core with the lwIP Ethernet protocol stack running on it was aimed to realize the function of Ethernet controller.As the control core,the DSP receives and transmits Ethernet data and CAN data by calling the API function provided by the FPGA,and analyzes,filters and forwards the received data according to specific forwarding strategy.The multi-protocol gateway has various and numerous communication interfaces,and the test results show that it is strongly real-time and highly reliable.Because the analyze and forward strategy is programmable,the gateway can meet the various requirements of different systems.
引文
[1]张素伟,王志刚,王红,等.基于Infineon单片机的CAN网关研究[J].电子技术应用,2009(12):125-127.
[2]李广鑫,秦贵和,刘文静,等.CAN总线网关的设计与实现[J].吉林大学学报(信息科学版),2010,28(2):166-171.
[3]刘晓莉,高军,赵延明.基于ARM的以太网与CAN总线互联网关的设计[J].工业控制计算机,2007,20(4):15-16.
[4]邹晓康,刘帅,张浩然.基于STM32嵌入式多协议网关设计[J].微型机与应用,2016,35(16):38-40.
[5]Texas Instrument,TMS320F28xxx Digital Signal Controllers(DSCs)Data Manual[Z].2007,6.
[6]Xilinx,Virtex-4Family Overview v3.1[Z].2010,8.
[7]张洁,傅明.LwIP协议栈在嵌入式Linux下的移植与实现[J].微计算机信息,2011,27(4):94-96.
[8]Philips Semiconductors,TJA1050High Speed CAN transceiver Data Sheet[Z]2000,5.
[9]Analog Devices,ADuM1402 Quad-Channel Digital Isolators Datasheet[Z].
[10]SMSC,LAN8740A/LAN8740Ai small footprint MII/RMII10/100Energy Efficient Ethernet Transceiver with HP Auto-MDIX and flexPWR Technology datasheet[Z].2005,10.