节点文献

基于FPGA的CAN总线与以太网的网关设计与实现

The Design and Realization of CAN Buses and Ethernet’s Gateway Based on FPGA

【作者】 尹杰

【导师】 吕锋;

【作者基本信息】 武汉理工大学 , 通信与信息系统, 2012, 硕士

【摘要】 随着计算机技术和工业控制技术的发展,传统的工业控制系统中使用模拟信号来控制工业系统中的测点已经不能满足人们的需求。CAN总线比起其他现场总线具有控制简单且通信速率高、纠错能力强等优点,而以太网具有应用面广,传输速率快等优点。因此将CAN总线技术和以太网技术进行结合运用,是将以太网应用到工业控制系统的发展潮流。本次课题在分析了CAN总线及以太网工作原理,互联网关的组成的基础上提出了一种新型的,性价比较高的互联网关实现方法。利用具有高度可编程,可重构性很强的FPGA作为本次网关设计的核心,通过对系统的硬件和软件进行详细的设计,实现了一个基于FPGA的CAN总线与以太网网关的方案。本次系统的设计与实现主要进行了以下几个方面的工作:(1)针对CAN总线与以太网两者之间的协议类型和数据通信方式的区别,提出一种基于FPGA的CAN总线与以太网的网关设计方案。此方案在实现两者通信的基础上,还具有可重构性和灵活性强的特点。(2)根据系统功能需求及FPGA芯片的特点来设计的原理框图,包括:FPGA模块、CAN模块、以太网模块、存储器模块以及调试模块等。本次设计的核心芯片是xilinx的XC3S500E-4PQG208C,在此芯片的基础上根据系统功能需求来完成硬件平台的设计。(3)进行软件设计。本系统采用了微处理器IP核MicroBlaze做为CPU,嵌入式操作系统Xilkernel作为应用软件平台,在此基础上对TCP/IP协议栈进行移植,对硬件的驱动程序、引导程序以及本系统中实现网关的主程序进行设计及实现。(4)进行系统测试。主要是通过从CAN总线端和以太网端来进行发送、接收数据来判断本次设计是否达到预期效果,即CAN总线端和以太网端能可靠的交互数据,并测试出CAN总线接收的速率。

【Abstract】 With the development of the computer technology and industrial control technology, the traditional industrial control systems that using analog signals to control the equipment in the industrial system can not meet people’s needs. As the CAN buses’ communication rate is very high, easy to implement, and cost-effective, and ethernet’s applications are increasingly being used, so the integration of CAN buses and Ethernet-technology which applied to the Ethernet industrial control system is the technology’s development tendency.Based on the analysis of work way of the connection of CAN buses and the basic knowledge of Ethernet and the research of the gateway of them. The subject raise up a new, cost-effective method to achieve the connection of CAN buses and Ethernet. Use the highly programmable, highly reconfigurable FPGA design as the core of this gateway, through the detailed design of the system both on the hardware and software part, to achieve an FPGA-based CAN buses and Ethernet’s gateway.This research is mainly focus on the following aspects:(1) For the differences of protocol type and data communication between the CAN buses and ethernet, i presents a program that realized the connection of CAN buses and Ethernet based on the FPGA. This program not only realization the bask connection of the two, but also have the reconfigurability and scalability characteristics.(2) According to the characteristics of the chip designed block diagram, including:FPGA module, the CAN module, the Ethernet module, memory module and debug module. In this system this design is mainly bask on one type of the xilinx chip:XC3S500E-4PQG208C, based on it to design the left parts, and finally completed the design of the hardware platform.(3) Software design. The system uses microprocessor IP core MicroBlaze as the CPU and embedded Xilkernel as the operating system. On this basis, to finish the implementation of the drivers, communication protocols, initialization, and system interconnect design.(4) The testing of the system. To send, receive data from the CAN buses side and the Ethernet side to judge the design test whether the system achieve the desired target or not.Through this test we have the result that:through this system the CAN buses and the ethernet can translate the reliable data,besides test the speed of the CAN buses’receive ability.

【关键词】 CAN总线以太网FPGA网关
【Key words】 CAN busesEthernetFPGAgateway
  • 【分类号】TP393.05
  • 【被引频次】4
  • 【下载频次】579
节点文献中: 

本文链接的文献网络图示:

本文的引文网络