Analysis and Design of CAN Communication in CGSE Control System
- Author
- HeYu
- Advisor
- YangZuoPu
- School
- Shanghai Jiaotong University
- Major
- Control Theory and Control Engineering
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 55
- Citations
- 0
Abstract
This paper mainly studies CGSE (AMS ultra-low temperature ground support system) control system CAN communication analysis and design work, including: communication system combined architecture design, communication system specific module design and realization, data transmission, and encapsulation protocols, data operations and backup systems underlying driver program design and implementation. The CGSE the hardware system using Siemens S7-400H redundant PLC as controller via Profibus fieldbus network architecture distributed data acquisition system, the communication between PC and controller DP port by Siemens CP5613A2 Card achieve; communication interface system, a PC running Linux plug EPP-CAN Box, interpolation Ethernet card, CAN and Ethernet heterogeneous network interconnection. System software design based on the original FEP's CAN bus and Ethernet communications software based on the increase of many functions, including the CGSE communication system, using Visual C MFC client application architecture design and ActiveX secondary development components, Socket development of TCP connection-based network communication procedures, the development of the CAN-Bus and Ethernet communication module in the Linux environment and the underlying drivers. Communication system including: communication protocol and data format conversion, Linux underlying device driver design socket applications, cross-platform communication module division and integration. The communication protocol is mainly related to the stability and compatibility of the system, and ensure a smooth transfer of the case to retain the extended functionality, create the conditions for other subsystems shared channel. The data format depends on the realization of the communication protocol, the system uses the CAN bus and Ethernet communication, they design a different data package format. The underlying driver development mainly depends on the communication interface and hardware platform, and combines the features of the Linux operating system, the system on the basis of curing Linux driver mode drivers and hardware platform interface, as well as interface with the upper application software. FEP communication software using sockets to implement network transmission and local process communication, the system will change the local process communication efficient Named Pipes and retains FEP socket network transmission function, to achieve a leap Ethernet communication for different operating system platforms and software structure. Because of the many functions of the system, large-scale, must be divided into different functional modules, and ordered them to integrate, form a complete communication program. Except that the system also implements a number of additional features, such as user interface, data backup features and extensions development interface. The host computer system to provide users with a good user interface, ease of use. Data backup functions related to the operation of the back-end database, taking into account the platform hardware and operating system features, the system did not use the DBMS, but directly read and write the database file. The system also provides a scalable components for secondary development, increase the flexibility of the system. The test results show that this article communication interface design with high stability and reliability, and ease of maintenance.
Table of contents
Summary 2-4
Abstract 4-10
Chapter 1 Introduction 10-14
Chapter 2 AMS-02 CAN bus protocol and EPP -CAN interface analysis 14-37
2.1 CAN bus technology the performance characteristics 14-18
2.1.1 CAN 14-15
2.1. the 2 CAN hierarchy 15
2.1.3 packet transmission and frame structure of 15-17
2.1.4 error types and define 17-18 < br /> 2.2 AMS-02 CAN bus protocol 18-22
2.2.1 AMS-02 CAN physical layer 18
2.2.2 AMS-02 CAN data link the road layer 18-19
2.2.3 AMS-02 CAN Transport Layer 19-21
2.2.4 AMS-02 CAN application layer 21-22 < br /> 2.3 EPP-CAN interface functions and features 22-25
2.4 EPP-CAN BOX works 25-27
2.4.1 CAN controller 25-26
2.4.2 CAN transceiver 26-27
2.4.3 EPP-CAN interface circuit 27
2.5 EPP-CAN BOX user space driver program 27-33
2.5.1 Linux under the C language, the use of the I / O port, and EPP initialization 28-30
2.5.2 Linux EPP- CAN Box user space driver 30-33
2.5.3 EPP-CAN Box use 33
2.6 CGSE system CAN bus communication interface requirements 33-34
2.7 CAN communication interface design principles 34-37
Chapter 3, LINUX platform CANFEP interface analysis 37-54
under LINUX 3.1 devices driver 37-44
3.1.1 Linux device driver characteristics 38
3.1.2 Linux device driver structure and input and output characteristics 38 - 43
3.1.3 Linux device drivers loaded 43-44
3.2 FEP CAN driver interface analysis 44-51
3.2.1 CAN communication The process flow control card device driver 45-46
3.2.2 initialization load and unload part 46-47
3.2.3 CAN communication card device driver interrupt processing part to manage
3.2.4 buffers, 47-48 48-50
3.2.5 Service device driver in the I / O request 50 -51
3.3 CANFEP interface 51-54
Chapter 4 the CGSE control system communication process design and protocol encapsulation 54-65
4.1 CGSE with CAB communication flow 54-55
4.2 CGSE with the CAB communications protocol encapsulation 55-65
4.2.1 Ethernet communication 55-60
4.2.2 AMS-02 CAN bus communication 60-62
4.2.3 Named Pipes module 62-65
Chapter 5 the CGSE communication system integration 65 - 76
5.1 CGSE software communication systems constitute 65-66
5.2 CAB_MASTER overall design the 66-69 5.2.1 CAN bus communication module
67
5.2.2 TCP / IP network interface module the 67-68
5.2.3 Named Pipes module 68
the 5.2.4 protocol data conversion module 68-69 the
of 5.3 CAB_SLAVE overall design 69-70
5.3.1 CAN bus communication module 69-70
5.3.2 sensorless control a module 70
5.4 host computer overall design the 70-76
5.4.1 client functions and modules divided 70-73
5.4.2 client software application Program mode 73-74
5.4.3 extension of the client software development model 74-76
Chapter 6 summarizes 76-77
Reference literature 77-79
during the master's degree research 79-80
Acknowledgements 80-81
Shanghai Jiaotong University dissertation defense resolution book 81-83