CAN bus and Ethernet - based embedded system design and research
- Author
- ZhaoHao
- Advisor
- LiShengJin
- School
- Northwestern Polytechnical University
- Major
- Mechanical and Electronic Engineering
- Classification
- TP273.5 Computer control, computer control system
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 480
- Citations
- 3
Abstract
With the development of information and network technology, embedded system penetrated into various fields, and a wide range of applications. Embedded μC/OS- Ⅱ free, open source code as well as a powerful network functions has been more and more attention. In the field of industrial control, fieldbus industrial control automation, has more than 10 years of history. With the development of computer network, the direction of development of industrial control Internet direction from the original information silos or local bus to development. However, due to the initial the congenital condition limitations of the computer network, resulting in the slow development in the field of industrial control. How to computer networks, especially Ethernet (Ethernet) applications to the field of industrial control, and is currently a hot research field of information. CAN (Control Area Net) bus as an excellent fieldbus, was born in the late 1980s, because of its reliability, real-time, so be widely applied to the field of automotive, aerospace, factory. CAN bus and Ethernet connectivity, you can the advantages of both combined, weaknesses, and greatly improve the distributed nature of the control system, truly integrate enterprise information systems. Embedded μC/OS- Ⅱ as a platform, in the analysis of the model based on the CAN bus and Ethernet network, the interconnection between CAN bus and Ethernet, as well as the two related research and design of the physical The system for authentication. The main results are as follows: According to the research purpose, select the appropriate program LPC2290 ARM7 processor speed as the core design of the set based on CAN bus and Ethernet embedded systems. The principle of CAN bus data transfer mechanism, CAN intelligent node based on the needs of design, hardware and software design, and the formation of the CAN network. The principles of composition and the internal implementation of the TCP / IP protocol stack, and use it as the basis for network programming. Research μC/OS- Ⅱ operating system kernel operating mechanism, analysis of its internal functions, and completed the transplant on the target board and the preparation of the CAN bus device driver μC/OS- Ⅱ. Completed under CAN-TCP/IP μC/OS- Ⅱ operating system applications, bi-stable transmission of CAN data and Ethernet data. Write PC-Windows client program and complete system host computer display control interface design using VB. The system has been developed experimental test with better ease of use and stability, the full realization of the the bidirectional transfer function of the Ethernet and CAN network information.
Table of contents
Abstract 3-4
Abstract 4-8
first chapter 8-14
1.1 research significance 8
1.2 development in the world 8-11
1.2.1 Fieldbus development status 9-11
1.2.2 Ethernet development status 11
1.3 The main research content and applications 11-14
Chapter embedded systems 14-22
2.1 Embedded System Introduction 14
2.2 Embedded System composition 14-20
2.2.1 Embedded Processor 15-16
2.2.2 Embedded Software Systems 16-20
2.3 embedded system development trend 20-22
Chapter overall system design and functional analysis 22-26
3.1 System Architecture Design 22-23
3.2 system architecture of each subsystem functional analysis 23-24
3.2.1 CAN network subsystem functional analysis 23
3.2.2 protocol conversion ( CAN-TCP/IP) main system functional analysis 23-24
3.2.3 PC display control subsystem functional analysis 24
3.3 system hardware and software design and selection 24-26
Chapter CAN network formation 26-42
4.1 CAN bus network system structure principle analysis 26-29
4.1 .1 CAN bus network system structure 26-27
4.1.2 CAN bus system nodes 27-28
4.1.3 CAN bus network topology 28-29
4.2 based on PIC16F877 CAN intelligent node hardware circuit design and implementation 29-35
4.2.1 PIC minimum system circuit design 30-32 <br / > 4.2.2 CAN interface circuit design 32-33
4.2.3 LCD interface circuit design 33-35
4.3 CAN intelligent node software system design 35-40
4.3.1 CAN communication program design 35-39
4.3.2 LCD programming 39-40
4.4 CAN network debugging 40-42
Chapter Master System (CAN-TCP/IP) hardware design and implementation 42-52
5.1 LPC2290 ARM processor Characteristics 42 - 43
5.2 hardware system design and implementation of the main circuit module 43-49
5.2.1 Power circuit 44-45
5.2.2 clock circuit 45
5.2.3 reset circuit 45-46
5.2.4 debug and test interface 46
5.2.5 memory circuit 46-48 < br /> 5.2.6 Ethernet interface circuit 48-49
5.2.7 CAN interface circuit 49
5.3 hardware system debugging 49-50
5.4 Main System (CAN-TCP/IP) and CAN networks FBI 50-52
Chapter VI Main System (CAN-TCP/IP) software system design and implementation 52 -78
6.1 OSI model 53-56
6.1.1 OSI model hierarchy 53-54
6.1.2 OSI model and TCP / IP and CAN- correspondence analysis 54-56
6.1.3 Main System (CAN-TCP/IP) model building 56
6.2 embedded operating system μC / OS-II porting 56-60
6.2.1 μC / OS-II porting conditions 57
6.2.2 μC / OS-II kernel analysis 57-58 <br / > 6.2.3 μC / OS-II porting 58-60
6.2.4 μC / OS-II porting code to test 60
6.3 embedded TCP / IP protocol analysis of the design and implementation of 60-75
6.3.1 TCP / IP protocol layer structure and the IP addresses to analyze 60-62
6.3.2 Embedded TCP / IP protocol stack The structure 62-64
6.3.3 Data link layer protocol (Ethernet protocol) analysis and implementation 64-68
6.3.4 Network layer protocols (IP, ARP, ICMP) Analysis and Implementation 68-71
6.3.5 Transport Protocol (TCP), analysis and implementation 71-74
6.3.6 SOCKET interface functions Design 74-75
6.4 Main System (CAN-TCP/IP) CAN communication program design 75
6.5 Main System (CAN-TCP/IP) application layer design and implementation 75-77
6.6 Main System (CAN-TCP/IP) debugging results 77-78
Chapter VII PC display control subsystem design and implementation 78-86
7.1 PC display control subsystem overall structure 78-80
7.2 communication module design and implementation 80-83
7.2.1 WINSOCK control's properties, methods and events 80-81
7.2.2 Communication Module Programming 81-83
7.3 software system reliability 83-84
7.3.1 to avoid infinite loop and reduce the cycle 83-84
7.3.2 Error Handling 84
7.3.3 reliability of data 84
7.4 system works 84-86
Chapter Summary and Outlook work full 86-88
8.1 full summary of the work 86 <br / > 8.2 system, the main problems 86-87
8.3 Prospects 87-88
References 88-90
participate in scientific research papers and case Description 90-91
Thanks 91-92
Related dissertations
- CAN-Bus Fault Analysis System Based-on Short-range Communication and RFID
- Design and Development on Electric Actuator Based on Industrial Ethernet
- The Development of the Gateway in Networked Digital Home
- Parallel Robot Motion Controller Remote Monitoring System Design and Implementation
- Research on Key Techniques of the NC System for Micro-injection Tag Machine
- Design and Implementation of Embedded Video Encoding System with Network
- Research of Embedded Monitor and Control System Based on Internet
- Research of TCP/IP Protocol Stack on μC/OS-Ⅱ OS
- Design and Development on Electric Actuator Based on Industrial Ethernet
- Design and Implementation of Embedded Internet program
- The Design of a Measurement and Control Node in Industrial Ethernet
- Power monitoring system based on Modbus protocol
- Design and Research of Remote Monitor and Control System Based on General Packet Radio Service
- Research of Monitor System of Signal Power Supply Panel Based on Embedded Web Server
- Study of an Embedded Image Monitoring System Based on ARM
- Based μC/OS- Ⅱ embedded Modbus-TCP/IP protocol conversion gateway design and implementation
- Design and Realization of Automatic Audio Switcher Based on ARM
- The Research and Design of ECG Signal Acquisition and Remote Transmission System Based on ARM
- Research of USB & Ethernet Technology Based on Embedded Platform
- The Research on the System of Monitoring and Control for Greenhouse Environment Based on Internet and Expert System