Research on Real-time Performance of CAN

Author
TangZongMei
Advisor
YangGuangYou , MaZhiYan
School
Hubei University of Technology
Major
Mechanical and Electronic Engineering
Classification
TP273 Automatic control,automatic control system
Degree
Master's thesis
Year
2013
Downloads
5
Citations
0

Request the full text

Abstract

CAN, designed as a kind of multi-line network communication system, itsapplication range is no longer limited to automotive electronics.Because of its cost-effective performance design and good reliability,it hasobvious advantage in the connection of electronic monitoring equipment used inindustry scene. Coupled with its excellent flexibility and real-time performance, CANhad been widely used in ships, industrial automation, medical equipment, electricpower system,etc.Along with the increasingly complex system control algorithm and highreal-time requirements of control network, under the heavy network load conditions,traditional fixed priority algorithm of CANbus has not been able to meet the real-timerequirements.In order to make the messages transmit effectively and accurately inCAN network, the developer should make a reasonable allocation and dispatchingstrategies to make sure the message reaches the target node in the deadline. So theresearch of real-time performance of CAN message and its scheduling algorithm notonly has profound theoretical significance, but also has extensive application value.This paper provides a probabilistic analysis of worst case response time(WCRT)of message with faults in CAN network.The response time mainly contains such a fewparts:release jitter, the worst blocking time, the worst transmission delay, theinterference caused by the messages who have higher priority.Studying about severalkinds of mainstream static scheduling algorithms and dynamic scheduling algorithm,By studying and analyzing static scheduling algorithm Deadline MonotonousScheduling(DMS) which assigns the priority fixedly to each message based on itsdeadline before starting the system and dynamic scheduling algorithm EarliestDeadline First(EDF) which assigns the priority dynamically based on its remainingdeadline in the running time of system, combining the cheap CPU cost of DMS andhigh network utilization of EDF and using the layered structure, we presented ahybrid scheduling algorithm with considering critical level of messages. Based on thework mentioned above, the simulation platform of CANbus is developed withMATLAB/SimEvents tool box. The platform was used to real-time analysis for thescheduling algorithms mentioned before, the simulation results showed that the hybridscheduling algorithm could not only improve the real-time performance of system, butalso reduce the cost of processor.Then we transplant the MicroCANopen protocol stack in μC/OS-II operatingsystem,moreover,the three kinds of real-time scheduling algorithm is implemented onStm32f107VC processor.It has turned out clearly that the performance of CANnetwork is improved after introducing the hybrid scheduling algorithm.

Table of contents

Abstract 4-5 Abstract 5-6 catalog 6-8 Chapter 1 Introduction 8-14 <br / > 1.1 topics sources 8 1.2 subject background and significance domestic and foreign research status quo 1.3 8-9 9-11 1.4 main contents 11-13 1.5 Chapter Summary 13-14 Chapter 2 CAN message response time analysis 14-23 2.1 release jitter 15 2.2 worst blocking time 15 2.3 worst transmission delay 15-18 2.4 higher priority than all the news caused interference i 18 2.5 nbsp delay occurred due to transmission errors caused by bus ; 18-22 2.6 Chapter Summary 22-23 Chapter 3, CAN bus in real time scheduling algorithm 23-38 3.1 static scheduling algorithm 23-30 3.1.1 usual static scheduling algorithm 24-26 3.1 .2 DMS algorithm analysis 26-30 3.2 dynamic scheduling algorithm 30-35 3.2.1 commonly used dynamic scheduling algorithm 31-32 3.2.2 analysis on the number of partitions EDF algorithm 32-35 3.3 hybrid scheduling algorithm 35-37 3.4 Summary 37-38 Article 4 CAN bus real-time scheduling algorithm simulation 38-44 4.1 MATLAB / Simevents Toolbox introduces build 38-39 4.2 CAN network simulation model 39 -41 4.2.1 CAN node model 39-40 4.2.2 bus arbitration mechanism module 40-41 4.3 real-time scheduling algorithm simulation and results analysis 41-43 4.4 Summary 43-44 Chapter 5 MicroCANopen network real-time scheduling algorithm 44-65 5.1 CANopen agreement 44-49 5.1.1 CANopen communication protocol Profile 44-45 5.1.2 object Dictionary 45-47 5.1.3 CANopen communication object 47-49 5.2 hardware platform to introduce 49-50 5.2.1 stm32f107vc processor 49 5.2.2 bxCAN 49-50 5.3 μC / OS-II porting on the target platform 50-55 5.3.1 μCOS-II Overview 50-51 5.3 .2 μCOS-II transplantation 51-55 5.4 MicroCANopen protocol stack transplant 55-59 5.4.1 microCANopen Overview 55 5.4. 2 microCANopen transplant achieve 55-59 5.5 real-time scheduling algorithm achieve 59-61 5.5.1 on the number of partitions EDF algorithm 59-60 5.5.2 hybrid scheduling algorithm to achieve 60-61 5.6 performance Analysis 61-64 5.6.1 experimental system 61-63 5.6.2 experimental results 63-64 5.7 Chapter Summary 64-65 Chapter 6 summary and Outlook 65-67 6.1 full Summary 65-66 6.2 late work prospects 66-67 references 67-70 Thanks 70-71 Appendix 71

Related dissertations

  1. Digital Cross Section Data Acquisition System Based on Industrial Standard System Bus
    ZhangZhiQiang ·Tianjin University ·2009 ·Master's thesis
  2. Resistance and Ultrasonic Dual-modality Measurement for Gas-oil-water Multi-phase Flow
    XuCong ·Tianjin University ·2012 ·Doctoral dissertation
  3. Reaearch on Modeling and Optimization Strategy in Industry Multi-service Real-time Networks
    LuLi ·Zhejiang University ·2013 ·Doctoral dissertation
  4. Performance Analysis of EPL and Its Application in DCS System
    TanQu ·Zhejiang University ·2014 ·Master's thesis
  5. Research on Embedded Control Systems for Mobile Cleaning Robot
    XiaoZan ·Hunan University ·2013 ·Master's thesis
  6. Design and Study of Four-legged Hydraulic Robot Servo Driver Based on DSP
  7. Based on I/O Performance of Virtual Machine Resource Scheduling Algorithm Research
  8. Research on Scheduling Algorithm of Instance-Intensive Workflows on the Cloud Computing Invironment
    LiFang ·Zhejiang University of Technology ·2013 ·Master's thesis
  9. Research on Electronic Image Stabilization Algorithm Based on Gray-scale Projection
  10. Design and Implementation of Educational Administration System of Military Academies
  11. Research on Adaptive Scheduling on Infrastructure as a Service Cloud Computing Platform
    YuHai ·Sun Yat-sen University ·2013 ·Master's thesis
  12. Navigation System CAN Network Design and Implementation Based on Time-triggered
    YuYing ·Harbin Engineering University ·2013 ·Master's thesis
  13. Research and Implementation of Downlink Scheduling in the MAC Layer of3GPP LTE System
    ZhangWei ·Tianjin University ·2012 ·Master's thesis
  14. Research on Topology Structures and Communication Algorithms for Some New Wireless Mesh Networks
    CaoZuoZuo ·South China University of Technology ·2011 ·Doctoral dissertation
  15. Research on Opportunistic Network Coding in Wireless Networks
    ZhouJinZuo ·Tsinghua University ·2013 ·Doctoral dissertation
  16. Research of MAC’s Scheduling and HARQ in LTE System
    SunLingZhi ·Beijing Jiaotong University ·2014 ·Master's thesis
  17. Research on Scheduling Algorithm for Reconfigurable Embedded System
  18. Design of AFDX Swtich Chip Based on Shared Memory
    LiuYu ·Shanghai Jiaotong University ·2013 ·Master's thesis
  19. The Communication Information Security Research on Substation Automation System
  20. Design and Experimental Verification of Light Vehicle Electric Chassis Dynamometer
    DuLei ·University of North ·2014 ·Master's thesis