Deadlines misses and their Implication on Feedback Control Loops. Dip Goswami Eindhoven University of Technology (TU/e) The Netherlands

Similar documents
5HC99 Embedded Vision Control. Feedback Control Systems. dr. Dip Goswami Flux Department of Electrical Engineering

Real-time Systems: Scheduling Periodic Tasks

Control System Design

Task Models and Scheduling

Embedded Systems 14. Overview of embedded systems design

CBE507 LECTURE III Controller Design Using State-space Methods. Professor Dae Ryook Yang

State Space Design. MEM 355 Performance Enhancement of Dynamical Systems

10.4 The Cross Product

EE C128 / ME C134 Feedback Control Systems

Co-design of control and platform with dropped signals

Pithy P o i n t s Picked I ' p and Patljr Put By Our P e r i p a tetic Pencil Pusher VOLUME X X X X. Lee Hi^h School Here Friday Ni^ht

SECTION 7: STEADY-STATE ERROR. ESE 499 Feedback Control Systems

Tardiness Bounds under Global EDF Scheduling on a Multiprocessor

Scheduling Periodic Real-Time Tasks on Uniprocessor Systems. LS 12, TU Dortmund

Real-Time Scheduling and Resource Management

D(s) G(s) A control system design definition

Lecture 13. Real-Time Scheduling. Daniel Kästner AbsInt GmbH 2013

Embedded Systems Development

Andrew Morton University of Waterloo Canada

Worksheets for GCSE Mathematics. Quadratics. mr-mathematics.com Maths Resources for Teachers. Algebra

Clock-driven scheduling

Integrating Rational functions by the Method of Partial fraction Decomposition. Antony L. Foster

Decentralized control with input saturation

Networked Embedded Systems WS 2016/17

2/5/07 CSE 30341: Operating Systems Principles

Embedded Systems 15. REVIEW: Aperiodic scheduling. C i J i 0 a i s i f i d i

Topic # Feedback Control. State-Space Systems Closed-loop control using estimators and regulators. Dynamics output feedback

Non-Preemptive and Limited Preemptive Scheduling. LS 12, TU Dortmund

Real-Time Systems. LS 12, TU Dortmund

Optimal Utilization Bounds for the Fixed-priority Scheduling of Periodic Task Systems on Identical Multiprocessors. Sanjoy K.

Scheduling Lecture 1: Scheduling on One Machine

Real Time Operating Systems

ANALYZING REAL TIME LINEAR CONTROL SYSTEMS USING SOFTWARE VERIFICATION. Parasara Sridhar Duggirala UConn Mahesh Viswanathan UIUC

Embedded Systems Design: Optimization Challenges. Paul Pop Embedded Systems Lab (ESLAB) Linköping University, Sweden

Worksheets for GCSE Mathematics. Algebraic Expressions. Mr Black 's Maths Resources for Teachers GCSE 1-9. Algebra

TDDB68 Concurrent programming and operating systems. Lecture: CPU Scheduling II

EL 625 Lecture 10. Pole Placement and Observer Design. ẋ = Ax (1)

On the Soft Real-Time Optimality of Global EDF on Multiprocessors: From Identical to Uniform Heterogeneous

Real-Time Systems. Event-Driven Scheduling

Acknowledgements. Control System. Tracking. CS122A: Embedded System Design 4/24/2007. A Simple Introduction to Embedded Control Systems (PID Control)

Lesson 7: Linear Transformations Applied to Cubes

Design and Analysis of Time-Critical Systems Response-time Analysis with a Focus on Shared Resources

Module 7 (Lecture 25) RETAINING WALLS

LOWELL WEEKLY JOURNAL

Tardiness Bounds under Global EDF Scheduling on a. Multiprocessor

Methods for analysis and control of. Lecture 6: Introduction to digital control

Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions

EE C128 / ME C134 Fall 2014 HW 9 Solutions. HW 9 Solutions. 10(s + 3) s(s + 2)(s + 5) G(s) =

Schedulability analysis of global Deadline-Monotonic scheduling

Class 27: Block Diagrams

Average-Consensus of Multi-Agent Systems with Direct Topology Based on Event-Triggered Control

System Model. Real-Time systems. Giuseppe Lipari. Scuola Superiore Sant Anna Pisa -Italy

TECHNICAL NOTE AUTOMATIC GENERATION OF POINT SPRING SUPPORTS BASED ON DEFINED SOIL PROFILES AND COLUMN-FOOTING PROPERTIES

Real-Time and Embedded Systems (M) Lecture 5

Lecture 11. Kernel Methods

Chapter 6: CPU Scheduling

Bounding the End-to-End Response Times of Tasks in a Distributed. Real-Time System Using the Direct Synchronization Protocol.

SECTION 7: FAULT ANALYSIS. ESE 470 Energy Distribution Systems

Secondary 3H Unit = 1 = 7. Lesson 3.3 Worksheet. Simplify: Lesson 3.6 Worksheet

inputs. The velocity form is used in the digital implementation to avoid wind-up [7]. The unified LQR scheme has been developed due to several reasons

NATCOR: Stochastic Modelling

Lesson 7: Algebraic Expressions The Commutative and Associative Properties

There are three priority driven approaches that we will look at

Real-Time Systems. Event-Driven Scheduling

EEE582 Homework Problems

Real Time Operating Systems

Real-time operating systems course. 6 Definitions Non real-time scheduling algorithms Real-time scheduling algorithm

DISTURBANCE OBSERVER BASED CONTROL: CONCEPTS, METHODS AND CHALLENGES

Predicting Time-Delays under Real-Time Scheduling for Linear Model Predictive Control

Real-time Scheduling of Periodic Tasks (1) Advanced Operating Systems Lecture 2

(a) Find the transfer function of the amplifier. Ans.: G(s) =

TDDI04, K. Arvidsson, IDA, Linköpings universitet CPU Scheduling. Overview: CPU Scheduling. [SGG7] Chapter 5. Basic Concepts.

Two Posts to Fill On School Board

Scheduling. Uwe R. Zimmer & Alistair Rendell The Australian National University

CDS 101/110: Lecture 6.2 Transfer Functions

Advanced Control Theory

Integrating Cache Related Preemption Delay Analysis into EDF Scheduling

Lecture Note #6: More on Task Scheduling EECS 571 Principles of Real-Time Embedded Systems Kang G. Shin EECS Department University of Michigan

Modeling Fixed Priority Non-Preemptive Scheduling with Real-Time Calculus

Control of Mobile Robots

Last Name _Piatoles_ Given Name Americo ID Number

1. The graph of a function f is given above. Answer the question: a. Find the value(s) of x where f is not differentiable. Ans: x = 4, x = 3, x = 2,

General Strong Polarization

Design of Real-Time Software

OPTIMAL CONTROL SYSTEMS

Discrete Structures Lecture Solving Congruences. mathematician of the eighteenth century). Also, the equation gggggg(aa, bb) =

Timing analysis and predictability of architectures

Wave Motion. Chapter 14 of Essential University Physics, Richard Wolfson, 3 rd Edition

Real-Time Systems. Lecture #14. Risat Pathan. Department of Computer Science and Engineering Chalmers University of Technology

Robust Control 9 Design Summary & Examples

Task assignment in heterogeneous multiprocessor platforms

EDF Feasibility and Hardware Accelerators

Aperiodic Task Scheduling

Modeling Buffers With Data Refresh Semantics in Automotive Architectures

Real-Time Systems. Lecture 4. Scheduling basics. Task scheduling - basic taxonomy Basic scheduling techniques Static cyclic scheduling

Module 7 (Lecture 27) RETAINING WALLS

7.3 The Jacobi and Gauss-Seidel Iterative Methods

Delay compensation in packet-switching network controlled systems

Modeling Buffers with Data Refresh Semantics in Automotive Architectures

A Novel Integral-Based Event Triggering Control for Linear Time-Invariant Systems

Transcription:

Deadlines misses and their Implication on Feedback Control Loops Dip Goswami Eindhoven University of Technology (TU/e) The Netherlands

Periodic tasks dd ii 2

Periodic tasks dd ii Hard deadlines 3

Periodic tasks dd ii Some jobs miss deadlines -- no restriction on order of misses: soft deadline 4

Firm deadlines (m,k)-firm deadline: A periodic task is said to have an (m,k)- firm guarantee if it is adequate to meet the deadlines of m out of k consecutive instances of the task (jobs), where m k. 5

(m,k)-firm deadline A periodic task is said to have an (m,k)-firm guarantee if it is adequate to meet the deadlines of m out of k consecutive instances of the task (jobs), where m k. miss=1 dd ii Window of size k=3 6

(m,k)-firm deadline A periodic task is said to have an (m,k)-firm guarantee if it is adequate to meet the deadlines of m out of k consecutive instances of the task (jobs), where m k. miss=1 dd ii Window of size k=3 7

(m,k)-firm deadline A periodic task is said to have an (m,k)-firm guarantee if it is adequate to meet the deadlines of m out of k consecutive instances of the task (jobs), where m k. miss=1 dd ii Window of size k=3 8

(m,k)-firm deadline A periodic task is said to have an (m,k)-firm guarantee if it is adequate to meet the deadlines of m out of k consecutive instances of the task (jobs), where m k. miss=1 dd ii Window of size k=3 9

(m,k)-firm deadline A periodic task is said to have an (m,k)-firm guarantee if it is adequate to meet the deadlines of m out of k consecutive instances of the task (jobs), where m k. miss=1 dd ii Window of size k=3 10

(m,k)-firm deadline A periodic task is said to have an (m,k)-firm guarantee if it is adequate to meet the deadlines of m out of k consecutive instances of the task (jobs), where m k. miss=0 dd ii Window of size k=3 11

(m,k)-firm deadline A periodic task is said to have an (m,k)-firm guarantee if it is adequate to meet the deadlines of m out of k consecutive instances of the task (jobs), where m k. miss=1 dd ii Window of size k=3 m=1 (1,3)-firm deadline 12

Outline Task model and deadlines in feedback control Typical application scenario Implication of an firm-deadline Analytical outlook Some results 13

...control task model and deadlines... 14

Feedback loop T m : measure Loop start u = K*[x1(i);x2(i)] + r*f; xkp1 = A*[x1(i);x2(i)]+ B*u; T c : compute T a : actuate x1(i+1) = xkp1(1); x2(i+1) = xkp1(2); Loop repeats T m sensor task T c controller task T a actuator task 15

Control loop Feedback loop Sensor reading τ = sensor-to-actuator delay T m : measure T m T c : compute T c T a : actuate T a h= sampling period Actuation Ideal design assumes: or 16

Control task triggering In general, T m and T a tasks consume negligible computational time and are time-triggered T c needs finite computation time and can be preemptive When multiple tasks are running on a processor, T c can be preempted T m T c T a τ τ τ τ Sensor-to-actuator delay: τ 17

Deadline for control tasks T c preemption wait T m Deadline D c T a T m Sampling period = h 18

T m T c T a T m D c T m T m T a T a pp ii =h dd ii =D c 19

Constant delay: sampled-data model x(t k ) x(t k+1 ) D c xx kk + 1 = xx kk + BB 1 (DD cc )uu kk 1 + BB 0 (DD cc )uu kk yy kk = CCCC[kk]...will be illustrated in Part 4 20

...automotive application scenario... Based on the article: Dip Goswami, Samarjit Chakraborty, Reinhard Schneider Relaxing Signal Delay Constraints in Distributed Embedded Controllers IEEE Trans. On Control Systems Technology, 2014 21

Distributed automotive control loops actuator Physical System sensor actuate() Plant ECU measure() T p Kx[k- ] m c FlexRay/CAN x[k] m x Other ECUs Kx[.] x[.] T c compute() Controller ECU 22

Task partitioning Feedback loop T p : measure T c : compute Loop start xkp1 = A*[x1(i);x2(i)]+ B*u; x1(i+1) = xkp1(1); x2(i+1) = xkp1(2); u = K*[x1(i+1);x2(i+1)] + r*f; Loop repeats T p plant task T c controller task 23

Timing diagram and deadline h Plant ECU T p T p FlexRay Controller ECU m x T c m c T c τ = sensor-to-actuator delay Deadline sampling period 24

FlexRay: typical delay profile 70 60 50 τ (ms) 40 30 20 10 0 0 20 40 60 80 100 Sampling instants k 25

Delay based classification 70 60 Non-ideal τ (ms) 50 40 30 Ideal 20 h 10 0 0 20 40 60 80 100 Sampling instants k 26

measure: x[k] x[0] x[1] x[2] x[3] x[4] x[5] τ h =1 τ h =1 τ h =1 τ h = 2 τ h =1 τ h =1 actuate: u[k] -- f(x[0]) f(x[1]) f(x[2]) f(x[2]) f(x[4]) sampling instant: k 0 ideal ideal ideal non-ideal ideal 1 2 3 4 5 time

Control scheme u[ k] = = Kx[ k F r 2 1] + F r 1 non -ideal ideal samples samples xx kk + 1 = AAAA kk + BBBB[kk] Ideal: x[ k Non -ideal : x[ k + 1] = Ax[ k] + BKx[ k + 1] = Ax[ k] + BF r 1] + BF r 2 1 z[ k z[ k + 1] = + 1] = A o z[ k] A cl z[ k] 28

Back to firm-deadline setting k k+1 k+2 k+3 k+4 k+5... zz kk + 1 = AA cccc zz kk zz kk + 2 = AA oo zz kk + 1 = AA oo AA cccc zz kk zz kk + 3 = AA cccc zz kk + 2 = AA cccc AA oo AA cccc zz kk zz kk + 4 = AA cccc zz kk + 3 = AA cccc AA cccc AA oo AA cccc zz kk zz kk + 5 = AA oo zz kk + 4 = AA oo AA cccc AA cccc AA oo AA cccc zz kk... 29

Performance: fast disturbance rejection SS zz[kk + αα] zz[kk] zz[kk] A cl α k kk + αα Hard deadlines 30

Performance and deadline miss zz[kk + αα]= AA oo AA cccc AA cccc AA oo AA cccc...z[k] zz[kk] SS zz[kk + αα] zz[kk] AA oo AA cccc AA cccc AA oo AA cccc... k kk + αα Firm deadlines 31

Simplified special case SS AA oo AA cccc AA cccc AA oo AA cccc... For any matrix A, the following property holds AA kk ccγγ kk where c and γγ are constants AA cccc kk cc 1 γγ 1 kk AA oo kk cc 2 γγ 2 kk Special case of (m,k)-firmness: m=1 1 deadline miss is allowed by within αα samples SS (cc 1 ) 2 γγ 1 αα 1 cc 2 γγ 2 Compute minimum αα 32

Some results Cruise control systems: Sampling period = 40ms Performance requirement: Change in reference speed should be adapted asap 95% of the disturbance must be rejected in 5 sec Implies αα=125 Allowed deadline miss: 7 out of 125 33

Simulation based results Number of samples 500 400 300 200 100 0 0 10 20 30 τ(ms) 40 50 60 v 1 [k] 100 80 60 40 20 0 0 20 40 60 80 100 Time (sec) 500 150 Number of samples 400 300 200 100 v 1 [k] 100 50 0 0 20 40 60 80 100 τ (ms) 0 0 20 40 60 80 100 Time (sec) 34

Summary Task model and deadlines in feedback control Typical application scenario Implication of an firm-deadline Analytical outlook Some results 35