The Design and Implement of a Ethernet and Multi-CAN Bus Gateway

Author
WangLei
Advisor
FangFang
School
Chengdu University of Technology
Major
Measuring Technology and Instruments
Classification
TP393.05 Network equipment
Degree
Master's thesis
Year
2007
Downloads
210
Citations
1

Request the full text

Abstract

Field-bus Control System is often consisted by filed devices, filed bus, computer interfaces, and communication devices. The communication between devices in filed is done by the filed bus, which can be used in process automation, make automation, building automation, family automation and so. So Filed-bus becomes very important and active. In the filed-buses, the first one certificated by the international organization for standardization is the CAN (CAN: Control Area Network) bus. Although the CAN bus has done excellently, it can directly connected to Ethernet. So the information can only follow in the local network, can not be shared by the remote user. It doesn’t contribute to the development of factory automation. If CAN bus can work together with the Ethernet well, the field control, the produce adjustment, the enterprise management and so on can get more convenient.Because of the above reasons, the paper designs a gateway of Ethernet and multiple CAN bus. It studies the protocol of CAN bus and Ethernet, interface technology of them, and communication technology between them. The LPC2294 used as the core processor of the gateway, DM9000 as the Ethernet controller, mcp2510 as CAN controller are the main devices in the gateway. The embedded OSμC/OS-Ⅱ, LWIP are used to implementation the system management and Ethernet communication.The Ethernet and multiple CAN bus gateway is designed successfully. The macro design, software and hardware design are talked in this paper, event how to port the LWIP to ARM7 andμC/OS-Ⅱand the driver of CAN controllers and DM9000 are introduced, too.

Table of contents

Abstract 4-5 ABSTRACT 5-7 directory 7-9 Chapter 1 Introduction 9-11 1.1 and research topics based on the significance of 9 1.2 Fieldbus research status 9-10 1.2.1 Fieldbus technology 9-10 1.2.2 Fieldbus Technology in Substations status 10 1.3 papers to complete the main task 10-11 Chapter 2 CAN bus technology and applications 11-16 2.1 CAN Bus Overview 11 2.2 CAN bus technology introduction 11-14 2.2.1 CAN hierarchy 11-12 2.2.2 CAN frame type 12 2.2.3 CAN bus bit value with communication distance 12-13 2.2.4 Bit Timing and Synchronization 13-14 2.3 CAN bus communication protocol design 14-16 Chapter 3 μC/OS- Ⅱ real-time operating system 16-24 3.1 βC/OS- Ⅱ features 16-17 3.2 μC/OS- Ⅱ task management and scheduling 17-19 3.2.1 Tasks storage space 17 3.2.2 task status 17-18 3.2.3 task scheduling 18-19 3.3 μC/OS- Ⅱ clock and interrupt 19-20 3.4 μC/OS- Ⅱ in messaging 20-21 3.5 μC/OS- Ⅱ on the LPC2294 transplant 21-24 3.5.1 transplantation conditions 21-22 3.5.2 μC/OS- Ⅱ transplant 22-24 Chapter 4 LWIP protocol stack working principle and its ARM7 transplant 24-42 4.1 TCP / IP protocol suite in several important agreements Profile 24-28 4.1.1 IP protocol 24 4.1.2 ARP protocol 24-25 4.1.3 ICMP protocol 25-26 4.1.4 UDP protocol 26-27 4.1.5 TCP protocol 27-28 4.2 Lightweight TCP / IP protocol stack LWIP introduction 28-30 4.2.1 LwIP process model 28-29 4.2.2 LwIP operating system encapsulation layer 29-30 4.3 LWIP on ARM7 transplant 30-42 4.3.1 System Initialization 30-31 4.3.2 Creating tcp / ip treatment process 31-32 4.3.3 LwIP in timed events 32-36 4.3.4 LwIP in mbox realization 36-42 Chapter 5, Ethernet, multi-channel CAN gateway system hardware design 42-49 5.1 system hardware architecture 42 5.2 mcp2510 application circuit design 42-43 5.3 DM9000 Ethernet controller hardware circuit 43-44 5.4 LPC2294 the CAN module 44-47 5.4.1 CAN Module Overview 44-45 5.4.2 CAN module address mapping 45-46 5.4.3 CAN module receives filtered 46-47 5.5 LPC2294 SPI interface in 47-49 Chapter 6 Ethernet, multi-channel CAN gateway software design 49-55 6.1 system software architecture 49 6.2 Ethernet controller driver module 49-50 6.3 CAN controller driver module 50-51 6.4 interrupt service function 51 6.5 Receive Transmit Buffer 51-53 6.6 Ethernet-CAN message conversion module 53-54 6.7 UART-CAN message conversion 54 6.8 system tasks 54-55 Chapter 7 System Test 55-60 7.1 network port connection test 55 7.2-CAN serial communications test 55-56 7.3 Ethernet-CAN communications test 56-58 7.4 hardware system kind 58-60 Conclusion 60-61 Thanks 61-62 References 62

Related dissertations

  1. Communication of DC Micro_Grid and It's Energy Management System
    ShenChuZuo ·Yangzhou University ·2013 ·Master's thesis
  2. Design and Realization of Multi-bus Gateway for Integrated Bridge System
    RenKangJian ·Harbin Engineering University ·2013 ·Master's thesis
  3. Design and Research of Cabin Monitoring System Based on CAN Bus
    HuangChengWei ·Wuhan University of Technology ·2013 ·Master's thesis
  4. The Study of WTB and Ethernet Gateway and Its Inauguration Module's Implementations
    ShiYongShuai ·East China Jiaotong University ·2013 ·Master's thesis
  5. Design of Mine Underground Personnel Positioning System Based on CAN Bus
  6. Design and Implementation of Multimodal Traffic Signal Controller
    XuZuoLong ·South China University of Technology ·2012 ·Master's thesis
  7. Intelligent Home Control System Based on the CAN Bus
    ZhuXiaoLi ·Hefei University of Technology ·2012 ·Master's thesis
  8. Research and Implementation of CAN Bus and Ethernet Communication Based on ARM7Embedded System
    HuangBing ·Anhui University ·2012 ·Master's thesis
  9. Design of Vehicle Data Recorder Based on the Dual Bus
    LinGuoZheng ·University of North ·2012 ·Master's thesis
  10. The Design and Realization of CAN Buses and Ethernet’s Gateway Based on FPGA
    YinJie ·Wuhan University of Technology ·2012 ·Master's thesis
  11. Design of Yanzhou Mining Group SMS Platform Application Gateway
  12. The Design of Wireless Sensor Network Gateway for Agricultural Monitoring
    LiuWanLu ·Dalian University of Technology ·2012 ·Master's thesis
  13. Design of Embedded Gateway Base on Heterogeneous Multi-protocol
    ZhengDongYue ·Beijing University of Technology ·2013 ·Master's thesis
  14. Design and implementation of Ethernet /MVB gateway based on Embedded System
  15. The Embedded Serial-Ethernet Server Design
    FanZuo ·Beijing Jiaotong University ·2008 ·Master's thesis
  16. Based on Embedded Ethernet and CAN bus Gateway Design
    SunBai ·Dalian Maritime University ·2008 ·Master's thesis
  17. Study and Realization of CAN-Ethernet Gateway Based on ARM7
  18. Research on the Coordination Management of Large-scale Project Interface of Chemical Enterprise
  19. Research of Layer-model of the Long-term Preservation of Digital Information Based on OASI
    ZhangBo ·Liaoning Normal University ·2013 ·Master's thesis
  20. The Design of Small Coal Mine Remote Monitoring System Based on ARM
    XuJin ·Northeastern University ·2011 ·Master's thesis