Guaranteeing Message Latencies on Controller Area Network (CAN)

Slides:



Advertisements
Similar presentations
Simulation of Feedback Scheduling Dan Henriksson, Anton Cervin and Karl-Erik Årzén Department of Automatic Control.
Advertisements

Feedback Control Real-Time Scheduling: Framework, Modeling, and Algorithms Chenyang Lu, John A. Stankovic, Gang Tao, Sang H. Son Presented by Josh Carl.
Real Time Scheduling Terminologies define Fixed Priority Scheduler
Chapter 6 Dynamic Priority Servers
1 of 16 March 30, 2000 Bus Access Optimization for Distributed Embedded Systems Based on Schedulability Analysis Paul Pop, Petru Eles, Zebo Peng Department.
Distributed systems Module 1 -Basic networking Teaching unit 1 – LAN standards Ernesto Damiani University of Bozen-Bolzano Lesson 4 – Ethernet frame.
EE 249, Fall Discussion: Scheduling Haibo Zeng Amit Mahajan.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Real-Time Operating System Chapter – 8 Embedded System: An integrated approach.
A Tool for Describing and Evaluating Hierarchical Real-Time Bus Scheduling Policies Author: Trevor Meyerowitz, Claudio Pinello, Alberto DAC2003, June 24,2003.
Localized Asynchronous Packet Scheduling for Buffered Crossbar Switches Deng Pan and Yuanyuan Yang State University of New York Stony Brook.
SERIAL BUS COMMUNICATION PROTOCOLS
1 An Adaptive Energy-Efficient MAC Protocol for Wireless Sensor Networks The First ACM Conference on Embedded Networked Sensor Systems (SenSys 2003) November.
DESIGNING VM SCHEDULERS FOR EMBEDDED REAL-TIME APPLICATIONS Alejandro Masrur, Thomas Pfeuffer, Martin Geier, Sebastian Drössler and Samarjit Chakraborty.
Real-Time Systems Mark Stanovich. Introduction System with timing constraints (e.g., deadlines) What makes a real-time system different? – Meeting timing.
Design of Technical Condition Monitoring System of Vehicle Based on CAN Bus Authors : Ruili Zeng, Yunkui Xiao Department of Automobile Engineering Academy.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Performance Performance is about time and the software system’s ability to meet timing requirements.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Synthesis of Communication Schedules for TTEthernet-based Mixed-Criticality Systems Domițian Tămaș-Selicean 1, Paul Pop 1 and Wilfried Steiner 2 1 Technical.
Bluetooth: Quality of Service Reference: “QoS based scheduling for incorporating variable rate coded voice in Bluetooth”; Chawla, S.; Saran, H.; Singh,
Sandtids systemer 2.modul el. Henriks 1. forsøg m. Power Point.
Throughput-Guaranteed Resource-Allocation Algorithms for Relay-Aided Cellular OFDMA System 1 Megumi Kaneko, 2 Petar Popovski, and 1 Kazunori Hayashi 1.
SERENA: SchEduling RoutEr Nodes Activity in wireless ad hoc and sensor networks Pascale Minet and Saoucene Mahfoudh INRIA, Rocquencourt Le Chesnay.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
Undergraduate course on Real-time Systems Linköping TDDD07 Real-time Systems Lecture 5: Real-time Communication Simin Nadjm-Tehrani Real-time Systems Laboratory.
04/02/08 1 Packet Scheduling IT610 Prof. A. Sahoo KReSIT.
RT-OPEX: Flexible Scheduling for Cloud-RAN Processing
Chapter 20: Multimedia Systems
Congestion Control in Data Networks and Internets
ECE 720T5 Fall 2012 Cyber-Physical Systems
REAL-TIME OPERATING SYSTEMS
Chapter 19: Real-Time Systems
Team: Aaron Sproul Patrick Hamilton
Chapter 20: Multimedia Systems
EMERALDS Landon Cox March 22, 2017.
Lecture 12: Real-Time Scheduling
Response time analysis in real-time distributed automotive systems
EEE Embedded Systems Design Process in Operating Systems 서강대학교 전자공학과
Wayne Wolf Dept. of EE Princeton University
Paul Pop, Petru Eles, Zebo Peng
EEE 6494 Embedded Systems Design
Chapter 8 – Processor Scheduling
Period Optimization for Hard Real-time Distributed Automotive Systems
Chapter 20: Multimedia Systems
CprE 458/558: Real-Time Systems
CprE 458/558: Real-Time Systems
Scheduling in Packet Networks
Chapter 6 Dynamic Priority Servers
Operating System Concepts
Scheduling Algorithms in Broad-Band Wireless Networks
Intro to Deterministic Analysis
CSCI1600: Embedded and Real Time Software
On-time Network On-chip
Qingwen Liu, Student Member, IEEE Xin Wang, Member, IEEE,
Controller Area Networks (CAN)
Chapter 19: Real-Time Systems
CSCI1600: Embedded and Real Time Software
Sample Network Performance Problems
Chapter 20: Multimedia Systems
Mechanisms for Detecting and Handling Timing Errors
Real-Time Process Scheduling Concepts, Design and Implementations
Sample Network Performance Problems
Chapter 20: Multimedia Systems
The End Of The Line For Static Cyclic Scheduling?
Ch 4. Periodic Task Scheduling
Real-Time Process Scheduling Concepts, Design and Implementations
Chapter 20: Multimedia Systems
Anand Bhat*, Soheil Samii†, Raj Rajkumar* *Carnegie Mellon University
Fair Queueing.
Presentation transcript:

Guaranteeing Message Latencies on Controller Area Network (CAN) Garrett Chandler 27 March 2006 EE 699

Garrett Chandler Guaranteeing Message Latencies on CAN Outline Introduction System Model System Analysis SAE Benchmark Case Discussion and Conclusions 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

Garrett Chandler Guaranteeing Message Latencies on CAN Introduction Common Automotive Industry View CAN good for most urgent data CAN unable to provide guarantees for less urgent data View Incorrect CAN scheduling virtually identical to real-time process scheduling Analysis can be applied almost without change to CAN latency problem 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

Garrett Chandler Guaranteeing Message Latencies on CAN System Model: CAN Typical CAN Stuff… Assumptions Fixed Set of Messages Each w/ Unique Priority Rate Max Size No RTR Messages Soft Real-Time as Background Messages (low-priority IDs) Hardware Intel 82527 15 slots 1 in only, 14 in or out 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

System Model: Messaging Messages queued by software task Bounded time between event and queue entrance Queuing Jitter: variability between subsequent queuings of message Period: minimum time between same task invocations 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

System Model : Queuing Jitter Jitter is the difference between the earliest and latest possible times a given message can be queued Jitter important for analysis Options exist to reduce queuing jitter Tm = Period Jm = Jitter 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

Garrett Chandler Guaranteeing Message Latencies on CAN System Analysis Analysis will bound worst-case latency of given message Almost direct application of processor scheduling theory Assumptions Deadline of a message must not be more than the period of a message Controller always sends highest priority message 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

System Analysis: Notation Deadline, Dm – Maximum time between event and response Period, Tm – Minimum time between events Worst-Case Response Time, Rm – Longest time between message entering queue and the latest said message arrives at receiving nodes Queuing Jitter, Jm - Variability between subsequent queuings of message Queuing Delay, wm – Longest time a message may sit in a queue before being sent Transmission Time, Cm – Time it takes to send given message on the bus 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

System Analysis: Response Rm – Worst-case response time of message Jm – Queuing Jitter wm – Queuing Delay Cm – Transmission Time 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

System Analysis: Transmission Cm – Transmission Time Accounts For Frame Overhead Data Contents Stuff Bits sm – size of message in bytes tbit – bit time of the bus (1us at 1MHz) 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

System Analysis: Queuing wm – Queuing Delay Set hp(m) contains all messages in system of higher priority than m. Bm is the longest time that m can be delayed by lower priority messages. 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

System Analysis: Delay Bm – Arbitration Delay Set lp(m) contains all messages in system of lower priority than m. In case of unbounded number of lower-priority messages of indeterminate size, Bm is 130 bit-times. 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

System Analysis: Scheduling Given equations assume nothing about system choice of message priorities Work on processor scheduling shows that optimal ordering of priorities is deadline monotonic Tasks with smallest difference in deadline and jitter should have highest priority 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

Garrett Chandler Guaranteeing Message Latencies on CAN SAE Benchmark Case SAE Example System Battery, Vehicle Controller, Motor Controller, Instrument Panel, Driver Inputs, Brakes, Transmission 53 Messages according to Kopetz [6] 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

SAE Benchmark: Latencies Messages Ordered by D – J 1 to 1 ID to Data Assignment Bold = Sporadic Signal X = failed to meet latency requirements 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

SAE Benchmark: Utilization System can not be scheduled at 125 kbps Message Utilization Data bits / Bus bits Bus Utilization Total bits / Bus bits available 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

Garrett Chandler Guaranteeing Message Latencies on CAN 82527 Limitation Limitation Vehicle controller transmits more than 14 message IDs Solution Concatenate more data into single packet Results 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN

Discussion and Conclusions Scheduling analysis developed for fixed priority scheduling can be adapted for use with CAN. Analysis applied to benchmark system. Paper omits discussion and analysis of re-transmission of messages after a detected error. 27 March 2006 Garrett Chandler Guaranteeing Message Latencies on CAN