Research on CAN Bus Test System & TTCAN Scheduler

Author
ZhouJieKe
Advisor
JiaGuiZuo
School
Tianjin University
Major
Power Electronics and Power Drives
Classification
TP273.5 Computer control, computer control system
Degree
Master's thesis
Year
2008
Downloads
158
Citations
2

Request the full text

Abstract

CAN bus is a field bus which is widely used in industrial control field. During the development process of CAN system, it is necessary to evaluate its performance. This thesis uses Ethernet instead of USB which is usually applied in CAN Bus Test System to obtain wide bandwidth and long transport distance.TTCAN is a Time-Triggered Mechanism based on CAN, which avoid transport uncertainty of message in CAN bus. At present, Atmel Corporation has already produced ARM microcontroller to support TTCAN. This thesis researches on TTCAN Scheduler based on this microprocessor.For the study of the CAN Bus Test System monitor software, the static and dynamic models of the monitor software are developed by the UML based on object-oriented design methods. Then, the monitor software is divided into main thread and receiving threads by Multi-threading Technology via the MFC. After that, UDP/IP protocol for the real time messages transmission in the receiving thread is realized by the Socket, and the conflict while two threads try to access the FIFO at the same time is solved through Critical Section Synchronization, thus the information accession is safe. At last, the basic functions of the monitor software are confirmed by test cases.For the research on the CAN Analysis System’s lower computer firmware which is based on AT91SAM7X256 microprocessor, the firmware is divided into CAN module, Ethernet module and master routine through modularization methods. Then, the functions of CAN module are implemented by interrupt handling and expanding FIFO. And the functions of Ethernet module are realized by using DLLs of IDE. Both of the above modules are invoked by master routine. Finally, the basic functions of the firmware are confirmed through test cases.Cyclical control messages of the Motor Control System are the object which this thesis studies. By using the static scheduling algorithm based on average number analysis, matrix cycle structure is obtained. TTCAN Scheduler is designed on the AT91SAM7X256 which supports the TTC protocol.The above results provide a basis for the further research on the CAN Bus Test System based on Ethernet and the realization of TTCAN Scheduler.

Table of contents

Abstract 3-4 ABSTRACT 4-8 first chapter 8-12 1.1 CAN bus system supporting development tools 8-9 1.2 Ethernet-based communication CAN bus test system 9-10 1.3 from CAN of TTCAN 10 1.4 research the meaning and content of 10-12 CAN bus test system software design and implementation of the host computer 12-38 2.1 network communication protocols, as well as Windows Socket programming techniques introduced 12-13 2.1.1 TCP (UDP) / IP network transport protocol 12-13 2.1.2 Windows Socket network programming technology 13 2.2 Widonws multi-threading technology 13-16 2.2.1 process and thread 13-14 2.2.2 multi-threaded communications 14-16 2.3 PC software design and 16-37 2.3.1 Introduction 16-18 2.3.1.1 object-oriented analysis and design 16-17 2.3.1.2 This section is organized 17-18 2.3.2 software requirements analysis and modeling 18-22 2.3.2.1 System Requirements and Analysis 18 2.3.2.2 UML-based modeling 18-22 2.3.3 software design and programming 22-33 2.3.3.1 software development methodology 22-23 2.3.3.2 Software Design and Implementation 23-33 2.3.4 host computer software testing 33-37 2.4 Summary 37-38 CAN bus test system the next machine software design and 38-61 3.1 development platform introduced 38-40 3.1.1 ARM microcontroller-based hardware platform 38-39 3.1.1.1 AT91SAM7X256 microcontroller 38 3.1.1.2 based the AT91SAM7X256 microcontroller development board 38-39 3.1.2 Development Tools 39-40 3.2-bit machine software requirements analysis and the overall design 40-43 3.2.1 needs analysis 40-41 3.2.2 Overall design 41-43 3.2.2.1 software overall architecture 41 3.2.2.2 software hierarchy 41-42 3.2.2.3 software based on finite state machine described in the dynamic behavior of the model 42-43 3.3 machine software detailed design 43-59 3.3.1 custom data types and structures 43-45 3.3.2 CAN Module Design and 45-52 3.3.3 Ethernet communication module design and 52-56 3.3.4-bit machine software main program design and realization of 56-59 3.4 machine software testing 59-60 3.5 Summary 60-61 Chapter TTCAN scheduler 61-73 4.1 TTCAN protocol introduced 61-63 4.1.1 TTCAN static message exchange schedule 61-63 4.1.2 of TTCAN the main research questions 63 4.2 AT91SAM7X256 the TTCAN mechanism of support 63-64 4.3 car automatic control system matrix cycle planning 64-67 4.3.1 Periodic message scheduling algorithm 64-65 4.3.2 automotive automatic control system control messages 65-66 4.3.3 Scheduling Algorithm planning vehicle automatic control system matrix cycle 66-67 4.4-based the AT91SAM7X256 microcontroller TTCAN scheduler design 67-72 4.5 Summary 72-73 Chapter Summary and Outlook 73-74 References 74-77 papers and to participate in the research situation description 77-78 Acknowledgements 78

Related dissertations

  1. Design and Implementation of Dynamic Monitoring System for Budget Enforcement Based on J2EE
    WangZhiJun ·Xiamen University ·2014 ·Master's thesis
  2. The Design and Implementation of Statistical Data Collection and Process System of Dujiangyan Statistical Bureau
  3. Study on conversion and UML testing and model based on AADL
    LiuBo ·Shaanxi Normal University ·2013 ·Master's thesis
  4. Analysis of Design and Implementation of B2C E-business Store System
  5. Designing and Implementing for Guizhou Huaxi Guest House Information Management System
  6. Design and implementation of the Qilu Petrochemical Industries Co bidding management system
  7. Design and implementation of hotel management system based on UML
  8. Design and Implementation of Personnel Management System of University
    WangJianLong ·Shandong University ·2013 ·Master's thesis
  9. The Design and Implementation of Labor Resource Management and Employment Placement System for Somewhere
    WangFeng ·Shandong University ·2013 ·Master's thesis
  10. Design and Implement of Telematics System Service Center Subsystem
    WangHuaChen ·Northeastern University ·2013 ·Master's thesis
  11. The Design and Realization of Motor Vehicle Pre-registration System
    ZhangFuFeng ·Hebei University of Technology ·2013 ·Master's thesis
  12. Design and Implementation of Subjects Teaching Performance Monitoring and Analysis System
    SunQing ·Shanghai Jiaotong University ·2013 ·Master's thesis
  13. Design and Implementation of Ji’nan Waterconservancy Bureau Covers Security Information System
    MaShiTao ·Shandong University ·2013 ·Master's thesis
  14. The architecture of B/S auto repair technical support system design and Implementation Based on
  15. Design and Implementation of Emergency Command System for Digitizing Prison Based on Contingency Plans
    LiChunLong ·Sun Yat-sen University ·2013 ·Master's thesis
  16. Design and Implementation of Chengdu Bank Credit Decision Support Information Systems
  17. Design and Implementation of Sichuan Province Security Technology Center PPE Examining Information Management System
  18. Based on B/S Mode of Tibetan and Qiang Style Shopping Site Design and Implementation
  19. Design and Implementation of Staff Education and Training System in Electric Power Bureau of San Ming
  20. Design and Implementation of Campus Office Platform Based on Android