CAN-Ethernet Gateway Design and Implementation Based on ARM9
- Author
- LiuZhiHai
- Advisor
- WangXuBen
- School
- Chengdu University of Technology
- Major
- Communication and Information System
- Classification
- TP273.5 Computer control, computer control system
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 227
- Citations
- 3
Abstract
In the network of mine safe monitoring system based on field-bus technology,general information transfers on the local network, and can not directly communicate with external network. Information can not be directly vertically integrated with the management. If you want to achieve directly communication between the field devices and the enterprise management, you must shield field-bus network protocols and other network differences, make field devices to enable seamless connection to Ethernet. Therefore, this paper presents gateway to resolve the field-bus and Ethernet communication between field-bus and Ethernet. The entire system solution for communications links takes CAN for field devices and Ethernet for management. This paper presents a design of interconnection between CAN and Ethernet,and put forward gateway design.CAN bus has became the one of most popular field buses with the advantage of reliability, real-time and flexibility. And Ethernet has become the most widely used as internet technology with its lower cost, more open, wider range of hardware and software support. As the transmission rate of CAN bus is limited by transmission distance , the CAN bus often is used to be the local network of control and connect to field monitoring equipment in the application; and Ethernet as an enterprise backbone network is used to connect each local field control network. Therefore, CAN bus which will connect to the internet has became a trend of the times.In recent years, ARM microprocessors are widely used in consumer electronics, communications systems and other fields. RISC-based 32-bit ARM9 microprocessor that has the features of low power consumption, high reliability and computing speed. ARM9 microcontroller S3C2410 is taken as hardware core in the system. It connects CAN with the CAN protocol controller chip MCP2515,connects Ethernet with the 10/100M Ethernet controller DM9000, and connects NAND FLASH and SDRAM as external memory.The gateway used ported Linux 2.4.18 core as operating system, constructed embedded file system with CRAMFS+YAFFS. It realizes the development of protocols conversion layer on this basis.The paper covers the topics as follows:Analyzed layers architecture of CAN protocol, the main content of this Ethernet protocol and TCP/IP protocol, and puts forward the design of protocol gateway; Analyzed gateway functions,designed CAN application layer protocol rules, putted forward system software and hardware architecture; Realized CAN network interface hardware design and MCP2515 device driver development; Established data channels of gateway using FIFO (First In First Out), encapsulated and parsed CAN application layer protocol, realized protocols conversion layer function.The design of CAN-Ethernet gateway, realized intercommunication between field devices and the device node of Ethernet, made field devices to seamless access internet, masked protocol difference, realized transparent data transmission.
Table of contents
Abstract 4-6
Abstract 6-10
Chapter 1 Introduction 10-15
1.1 subject sources 10
the 1.2 topics the basis for research significance 10-12
1.2.1 topics of basis 10-11
1.2.2 research significance 11-12
1.3 research status 12-13
1.3.1 fieldbus access Ethernet design methods 12-13
1.3.2 Gateway in the field of industrial control applications 13
1.4 papers 13
1.5 papers overall structure 13-15
Chapter 2 CAN Bus Overview 15-23
2.1 CAN bus characteristics 15-16
2.2 CAN hierarchy 16-23
2.2.1 Physical Layer 16-18
2.2.2 media access control sublayer 18-22
2.2.3 LLC sublayer 22-23
Chapter 3 Ethernet and TCP / IP protocol 23-30
3.1 Ethernet technology 23-25
the 3.1.1 media access control method 23-24
3.1.2 Ethernet hardware address 24
3.1.3 Ethernet frame structure 24
the 3.1.4 embedded Ethernet technology 24-25
3.2 TCP / IP protocol 25-30
3.2.1 TCP / IP overall architecture 25-26
3.2.2 embedded systems commonly used network protocol 26-30
Chapter 4 Gateway's overall design 30-37
4.1 gateway function design 30-31
4.2 gateway protocol architecture 31
4.3 system hardware architecture 31-35
4.3.1 hardware platforms 31-32
4.3.2 hardware module selection 32-35
4.4 system software architecture 35-37
Chapter 5 embedded Linux system build 37-43
the
Bootloader 5.1 transplantation 37-38
5.1.1 Bootloader 37-38
5.1.2 vivi transplant 38
5.2 Linux system transplant 38-40
5.2.1 Linux kernel structure 38-39
5.2.2 Linux kernel porting 39-40
5.3 YAFFS file system to transplant 40-42
5.4 build embedded file system 42-43
Chapter 6 Gateway Design and Implementation 43-65
6.1 CAN control module Design and Implementation 43-51
6.1.1 hardware design 43-44
6.1.2 Linux device driver development 44-45
6.1.3 MCP2515 SPI read / write functions to achieve 45-48
6.1.4 MCP2515 under Linux driver development 48-51
6.2 application layer software design and implementation of 51-62
6.2.1 application layer packet structure design 51-55
the 6.2.2 Gateway Protocol conversion model 55
The
a 6.2.3 application layer software to achieve 55-62
6.3 system testing and results 62-65
concluded 65-66
Acknowledgements 66-67
the
References 67-68
Related dissertations
- Design of Industrial Ethernet Motion Controller Based on ARM
- The design and application of the system master control EtherCAT based on Industrial Ethernet
- Design of Smart Terminal for New Energy Micro Grid of Island
- Design and Implementation of Climate Compensator Based on ARM9
- Lights Control and Test System Based on Qt
- Design of Remote Monitoring System for ZigBee-based Embedded Refrigerated Truck Environment
- Design of a Data Communication System for Theodolite Based on Embedded Technology
- Study of Eliminating Image Rotation Control Based on Altitude-azimuth Telescope
- The Design of the Atmospheric Environment Monitoring System Based on ARM
- Research of ARM9-Based NIR Nondestructive Testing Instrument for Camellia Oil
- Power and Environment Monitoring System in the Communications Front-end Design and Application
- Design and Implementation of the Embedded Video Surveillance Server Based on ARM and Linux
- A Design of Integrated RTU Based on ARM9and Linux
- Design on the System of Tower Crane Video Surveillance Based on Hi3512
- Design of embedded wireless network video monitoring system based on Web Technology
- The Design of Coal Mine Monitoring Station Based on Embedded
- The Research and Exoit of Intelligent Household Security Monitoirng System Based on ARM9
- ARM embedded video monitoring system based on compressed sensing
- Design and Implementation of Data Acquisition System Test Platform
- Design of Data Collecting System Based on ARM