How Does Task Scheduling Affect Engine Control Performance?
Paolo Pazzaglia, Alessandro Biondi, Marco Di Natale and Giorgio Buttazzo Scuola Superiore Sant’Anna, Pisa, Italy
Affect Engine Control Performance? Paolo Pazzaglia, Alessandro - - PowerPoint PPT Presentation
How Does Task Scheduling Affect Engine Control Performance? Paolo Pazzaglia, Alessandro Biondi , Marco Di Natale and Giorgio Buttazzo Scuola Superiore SantAnna , Pisa, Italy 2 A. Biondi RTSOPS 2016 INTRODUCTION Engine control is a
Paolo Pazzaglia, Alessandro Biondi, Marco Di Natale and Giorgio Buttazzo Scuola Superiore Sant’Anna, Pisa, Italy
2
3
challenging CPS problem
computational power)
system performance
behavior
4
crankshaft
(t) t t /2
3/2 2
Task activations
activate task
10-120 ms
5
1 2
C(1) C(2) C(3)
1 2 3
To prevent overload at high rates, different control implementations are used
speed
time time WCET
6
CPU
ECU
7
Periodic computational activities
Periodic Real-Time Tasks – Studied since 70’s
Engine-triggered computational activities
AVR Tasks – Studied only in the last years
Davis et al. RTAS14 Buttazzo et al. DATE14 Guo and Baruah ICCPS15 Biondi et al. ICCPS15
Are engine control applications hard real-time?
9
Deadline misses can be tolerated
10
necessarily to meet al the deadlines.
Maximize the engine performance given a set
BUT
Engine control is a complex multi-criteria design
(power, fuel efficiency, noise, emissions,…)
11
Engine plant TPU CPU
Latch Angular Trigger
Injector
(injection angle, quantity of fuel, CR pressure…) If deadlines are missed (on the CPU), the TPU uses old data for the next injection
12
cycles.
injection angle. Scheduling errors
Inaccurate injection Decreasing performance
13
fuel injections
controller controller controller controller
C
implementations are used depending on the engine speed
Engine-triggered Task
14
C C C C C C C C C C C C
#1 #2 #3 #N
15
𝜕
WCET(𝜕)
Most complex implementation
𝜕𝑛𝑗𝑜 𝜕1 𝜕2 𝜕3 𝜕𝑛𝑏𝑦
simplified control implementations giving lower performance
implementation?
under the assumption of hard deadlines…
“Something” more systematic supported by a model and an analysis would be very useful…
17
problem from the functional (performance) analysis?
Timing Analysis Performance Analysis Metrics/Parameters Performance functions
18
Firm real-time (e.g., m-k model)
Generalized response-time analysis
deadline misses;
Value-based scheduling
19
used as it is.
be required.
Large lack of models (and corresponding analysis techniques) to take into account the system state (and hence performance)
20
Scheduling in engine control should be a design
simple function of timing parameters.
behavior.
considered. PROBLEMS
21
temporal parameters and performance is possible for simple control systems.
difficult for a realistic CPS due to the intrinsic complexity of the system. Use a simulation framework
Our attempt
22
Engine model Control laws
Simulink Scheduler interface
External Scheduling Simulator
Sensors Actuation
Control Unit
Simulink architecure