Research of Interconnenction between CAN Bus and Ethernet Based on Embedded System

Author
ZhouQianHua
Advisor
TanSiYun
School
Wuhan University of Technology
Major
Control Theory and Control Engineering
Classification
TP273.5 Computer control, computer control system
Degree
Master's thesis
Year
2008
Downloads
190
Citations
2

Request the full text

Abstract

With the development of embedded technology,network technology and constant improvement of modern industrial demand for control requirements,the applications of fieldbus and Ethernet are increasingly extensive.The control system which is consisted of fieldbus becomes a typical model of control network in industrial enterprise network.As the most promising fieldbus,CAN bus is only initially used for data communications between automotive interior measurement and implemental parts.However,because of its high performance,high reliability and low price,it has widely used on all kinds of occasions.But it also has using limitation which is so difficult to get on the Internet and not suitable for long-distance transmission.Compared to CAN bus,Ethernet is not like CAN bus in performance which is well adapted to the harsh production scene,but it has the development of mature technology.High rate in communication,rich software and hardware, application support of mature technology and long-distance communication by utilizing network are all its advantages.All of these can just complement with CAN bus.For this reason,it has the practical significance of studying in the Can bus interconnects with Ethernet.LPC2294 is a 32-bit ARM7TDMI-S CPU microcontroller.It has the characteristics of high performance and low power loss,its structure is based on RISC principles which use the pipeline technology.All parts of handling and storage system can continuously work.In addition,it has the rich resources of peripheral interface and is very suitable for communications gateways,protocol converting and other various types of applications.μC/OS-Ⅱis a preemptive real-time operating system with the open-source code,which is designed specifically for embedded applications.Its core is small,it can be trimmed and has real-time and high stability.Most codes in the system use C language,which can be transplanted easily and used widely.So it is suitable for small control systems with its high efficiency,small space costing,excellent real-time performance,good expansibility and other characteristics. This dissertation takes ARM7 processor as the core and the embeddedμC/OS-Ⅱoperating system as the platform.After making deep analysis of the CAN bus and Ethernet network model and the structure of their data,this paper presents an overall framework of the CAN bus and Ethernet interconnection system,the hardware circuit design,the corresponding driver,the transplantation and the application ofμC/OS-Ⅱsystem,processes and procedures of software implementation and the different conversion agreements between them,which makes a design based on the embedded system of CAN bus and Ethernet.

Table of contents

Abstract 4-5 Abstract 5-9 first chapter 9-16 1.1 Overview 9-11 1.1.1 fieldbus technology 9-10 1.1.2 Ethernet technology 10-11 1.2 development status at home and abroad 11-14 1.2.1 Fieldbus development status 11-13 1.2.2 Ethernet development status 13-14 1.3 research significance 14-15 1.4 studies the main content and the overall design 15-16 Chapter 2, the characteristics of the CAN bus and agreements 16-25 2.1 CAN bus features 16-17 2.2 CAN bus hierarchy 17-18 2.3 CAN bus frame structure 18-24 2.3.1 data frame 19-21 2.3.2 remote frame 21-22 2.3.3 error frame 22 2.3.4 overload frame 22-23 2.3.5 Interframe Space 23-24 2.4 CAN bus communication 24-25 Chapter 3 Ethernet technology 25-34 3.1 Ethernet technology features and advantages 25-26 3.2 TCP / IP protocol model 26-28 3.2.1 the OSI reference model 26-27 3.2.2 TCP / IP protocol stack model 27-28 3.3 TCP / IP protocol stack main agreement 28-34 3.3.1 ARP protocol 28-29 3.3.2 IP protocol 29-30 3.3.3 ICMP protocol 30 3.3.4 TCP protocol 30-32 3.3.5 UDP protocol 32-33 3.3.6 UDP protocol and TCP protocol contrast 33-34 Chapter 4 system hardware design 34-46 Introduction to the main chip 4.1 ARM 34-36 4.1.1 chip characteristics 34-35 4.1.2 structure outlined 35-36 4.1.3 the ARM7TDMI-S processor 36 4.2 ARM the main chip peripheral circuit 36-40 the 4.2.1 system clock circuit 36-37 4.2.2 power circuit 37-38 4.2.3 reset circuit 38 the 4.2.4 system memory circuit 38-40 4.3 CAN interface circuit 40-41 4.4 Ethernet interface circuit 41-46 4.4.1 Ethernet controller RTL8019AS About 41-43 4.4.2 Ethernet interface circuit 43-46 Chapter 5 system software design 46-69 5.1 embedded operating system 46-48 the 5.1.1 embedded operating system selection 47-48 5.2 μC / OS-II transplantation 48-52 5.2.1 μC / OS-II porting conditions 48-49 5.2.2 μC / OS-II Kernel Analysis 49 5.2.3 μC / OS-II transplantation 49-52 5.3 CAN's driven design 52-57 the 5.4 RTL8019AS the software programming 57-64 5.4.1 RTL8019AS software operating 57-58 5.4.2 RTL8019AS driver 58-64 5.5 protocol conversion 64-67 5.6 upper machine design 67-69 Chapter 6 Conclusion 69-70 the References 70-73 the author of academic papers published during the master's degree 73-74 Acknowledgements 74

Related dissertations

  1. Based on Can Field-bus Technology and Web Service Home Intelligent Control System Design and Realization
  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. Design of Mine Underground Personnel Positioning System Based on CAN Bus
  5. Design and Implementation of Marine Sensors Platform Based on Embedded System
    HouPingYu ·Ocean University of China ·2013 ·Master's thesis
  6. Design and Implementation of Multimodal Traffic Signal Controller
    XuZuoLong ·South China University of Technology ·2012 ·Master's thesis
  7. Research and Implementation of CAN Bus and Ethernet Communication Based on ARM7Embedded System
    HuangBing ·Anhui University ·2012 ·Master's thesis
  8. Design of Vehicle Data Recorder Based on the Dual Bus
    LinGuoZheng ·University of North ·2012 ·Master's thesis
  9. The Research of Data Transfers Unit & Application in Environment Monitoring
    XiongJiaZuo ·Zhejiang University ·2007 ·Master's thesis
  10. The Design of Small Coal Mine Remote Monitoring System Based on ARM
    XuJin ·Northeastern University ·2011 ·Master's thesis
  11. The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
  12. Design of Remote Control System Based on Ethernet
    YaoGaoHua ·South China University of Technology ·2013 ·Master's thesis
  13. The Design of Monitoring System for the Photovoltaic Plant Based on DSP
  14. Design and Application of the Distributed Monitoring System Based on Embedded Web
  15. The Design of Hybrid Electric Bus Data Acquisition and Test System
    LiHuiXian ·Hunan University ·2012 ·Master's thesis
  16. Design of Remote Strain Measurement System Based on FGPA
    LiuNanNan ·Harbin Engineering University ·2013 ·Master's thesis
  17. Industrial Field Data Acquisition System Design Based on CAN Bus
  18. Design of the Hazard Source Monitoring System Based on CAN Bus
  19. Design and Implementation of Multi-channel Data Acquisition System
  20. The Design of Displacement Detection System Based on CPLD Grating Subdividing Technology