| With the development of computer control, as well as Ethernet technology, new demands have been made at the scene of industrial integration with the Ethernet, and desire using existing technology to make industrial management penetrate into the fieldbus. Controller Area Network (CAN) as a kind of industrial fieldbus networks can effectively support the distributed control and the real-time control. It has high performance and redundant reliable, and has been widely used at various control systems.This thesis is motivated by the project "Mine Safety Production Figures Control Platform". The architecture of the system is based on CAN bus & Industrial Ethernet network, so that the problems of two heterogeneous network equipments multiple access and communication need to be resolved. Furthermore, CAN bus is not suitable for long-distance communication and large number of network interconnection. So we design a new high-performance embedded CAN-Ethernet gateway based on the ARM7 processor core to obtain a simple and steady connection between monitor-layer and equipment-layer in a control system.Based on the analysis of the CAN bus and the Ethernet technology, a networking and communication feasibility study is made on. According to the functions of the embedded CAN-Ethernet gateway system, we have established the gateway framework, protocol conversion model, hardware and software scheme. In addition,μC/OS-II, embedded TCP/IP protocol stacks are tailored and transplanted onto the LPC2194.μC/OS- II tasks, CAN-Ethernet protocol conversion and communication programme are also developed. At last, using the queuing theory to obtain a performance analysis, the report proves the embedded CAN-Ethernet gateway achieves an efficient and reliably interconnection between CAN and Ethernet. |