Development of CAN Simulation System

Author
WangTong
Advisor
ZhuQiDan
School
Harbin Engineering University
Major
Control Theory and Control Engineering
Classification
TP391.9 Computer simulation
Degree
Master's thesis
Year
2007
Downloads
368
Citations
4

Request the full text

Abstract

CAN has many advantages, so it has become one of the most used Field buses. The paper takes the development of CAN simulation system as its goal and has made many steps as follows.Firstly, the paper introduces the general development of CAN and general design for the CAN simulation system, which includes the demands for the system and structure design, the functions of every module, the realization methods and the ways to contact and so on. Then the paper makes the study on structure characteristics and correspondence principles in detail.Next the paper sets up Mathematical Model for CAN. It firstly brings in the basic structure of the Physical Layer of CAN, sets up the respective Mathematical Model for CAN Transceiver and wire on basis of their structure characteristics and sets up Mathematical Model of Physical Layer on basis of the structure characteristics of CAN Physical Layer, CAN Transceiver Model and Wire Model.Thirdly, the paper sets up Mathematical Models for CAN Data Link Layer and Application Layer. It brings forward the methods for setting up modules on the theory on Finite State Machine, describes the methods of setting up Data Link Layer Module through the UML and sets up the Mathematical Model for Application Layer on the basis of its characteristic.Lastly, the paper introduces the development methods for simulation system and the ways to realize simulation functions in detail; it also makes the simulation studies of some representative net structures.

Table of contents

Abstract 5-6 ABSTRACT 6-11 Chapter 1 Introduction 11-16 1.1 Overview 11-14 1.1.1 CAN bus technology overview 11-13 1.1.2 simulation technology development status 13-14 1.1.3 CAN bus simulation research purposes and significance 14 1.2 the main research work 14-16 Chapter 2 simulation System 16-20 2.1 simulation System requirements 16-18 2.1.1 system feature Overview 16 2.1.2 simulation parameters input and output 16 2.1.3 network performance simulation 16-17 2.1.4 network Performance optimization 17 2.1.5 simulation and optimization results output 17-18 2.2 simulation system Design 18-19 2.2.1 overall design philosophy 18 2.2.2 network model visualization editor 18-19 2.2.3 network Emulator 19 2.2.4 statistical and analytical tools 19 2.2.5 optimization tool 19 2.2.6 database 19 <br / > 2.3 Chapter Summary 19-20 Chapter 3 CAN bus protocol analysis 20-33 3.1 Overview 20-21 3.2 packets transmission 21-26 3.2.1 frame format 21-22 3.2.2 frame Type 22-26 3.3 arbitration 26-27 3.4 packet filtering 27-28 3.5 error Detection 28-30 3.5.1 CAN bus error detection method 28 - 29 3.5.2 bit Error 29 3.5.3 stuffing error 29 3.5.4 CRC error 29 3.5.5 form errors 29 3.5.6 acknowledge Error 29-30 3.6 error Status 30-31 3.7 system modeling 31 -32 3.8 Chapter Summary 32-33 Chapter 4 CAN bus physical layer modeling 33-51 4.1 CAN bus physical layer general structure 33-34 4.2 CAN bus driver PCA82C250 structural characteristics and modeling 34-39 4.2.1 PCA82C250 basic characteristics 34 4.2.2 PCA82C250 functional Overview 34-35 4.2.3 PCA82C250 model 35-36 4.2.4 model parameter determination 36-39 4.3 features and build communication medium mold 39-42 4.3.1 UTP Overview 39-40 4.3.2 UTP characteristic parameters 40-41 4.3.3 UTP modeling 41-42 4.4 with N nodes CAN bus physical layer modeling 42-46 4.4.1 contains N nodes CAN bus physical layer structure 42-44 4.4.2 with N nodes of the physical layer model 44-46 4.5 CAN bus physical layer simulation and results analysis 46-50 4.5.1 emulator 46-47 4.5.2 wire length and communication baud rate of the CAN bus communication 47-48 <br / > 4.5.3 CAN bus communication terminal resistor impact 48-50 4.6 Chapter Summary 50-51 Chapter 5 CAN bus data link layer and application layer construction mold 51-64 5.1 Overview 51-53 5.2 basic theory of finite state machines 53-54 5.3 of the CAN based on finite state machine bus data link layer modeling 54-61 5.3.1 CAN bus node status 54-55 5.3.2 CAN bus node state transition rules 55-61 5.4 application layer modeling 61-63 5.5 Chapter Summary 63-64 Chapter 6 CAN bus simulation system development and simulation results analysis 64-76 6.1 network Simulator simulation capabilities to achieve 64-69 6.1.1 the basic object-oriented design features 64-66 <br / > 6.1.2 simulation implementations classes form 66-67 6.1.3 simulation process 67-69 6.2 simulation results analysis 69-75 < br /> 6.3 chapter Summary 75-76 Conclusion 76-77 References 77-80 papers published during the master's degree and research achievements 80-81 Thanks 81-82 Appendix 82-84