w01 Intro
w01 Intro
Giorgio Buttazzo
E-mail: [email protected]
Ri
user other units
1
10/8/2019
multimedia
automotive
robotics
avionics
0
1970 1980 1990 2000 2010 year
avionics
automotive
robotics
telecommunications
multimedia systems
consumer electronics
Animation Smart toys
Tele-rehabilitation
Assisted Living
Sport agriculture
civil protection
Smart buildings
2
10/8/2019
Smart cork
Recording pen
Cardio pulse meter Watch computer Smart glasses
Examples
heart ear eye brain
– Money
– Documents
– Books
– Music
– Pictures
– Movies
– Tickets
– Education
3
10/8/2019
40
Novel solutions for:
Component-based software design 20
Analysis for guaranteeing predictability and safety
0
Testing 2010 year
1970 1980 1990 2000
80 108
107
60 106
40 105
104
20
103
0 102
2010 year
1970 1980 1990 2000 1980 1990 2000 2010 2020
Control
2. Record the driving style of the driver
Unit
Sensor 3. Develop self-parking functions
Motor Motor
Sensor 4. Autonomous driving
4
10/8/2019
ECU Assistance
System
Steering
actuators ECU ECU
Data Bus
Wheel angle
sensors Main Redundant
ECU ECU
100
10
Lines of code
0
1K 10K 100 K 1M 10 M
5
10/8/2019
Control Design
We will not consider how to control a system,
Analysis software
but only how to provide a predictable software
support to control applications. Commun. Programming
Graphics
system
dynamics Embedded
Computer
Controlled System
6
10/8/2019
>0 <0
u>0 u<0
7
10/8/2019
i i
t t
u u>0 u
u>0 wrong!
u>0
t t
correct
u<0 wrong!
u<0 u<0
u<0
t t
>0 >0 >0 >0
<0 <0
<0
<0
<0 <0
<0
8
10/8/2019
Embedded systems
They are computing systems hidden in an object to control
its functions, enhance its performance, manage the available
resources and simplify the interaction with the user.
Object
actuators
micro- Environment
processor sensors
communication
9
10/8/2019
Controller actuators
OUTPUT
Environ.
sensor sensor
feedback internal state
INPUT
task buffer
Other activities
filtering, classification, data fusion, recognition, planning
10
10/8/2019
ROBOT
camera
Controller System actuators
sensing control
Environment
Data
Planning sensors
processing
11
10/8/2019
camera pan tilt US1 US2 mot_dx mot_sx camera pan tilt US1 US2 mot_dx mot_sx
INPUT x (t)
RT System Environment
t t
task resource y (t+)
The operating system is responsible for providing REAL means that system time must be synchronized
the proper mechanisms for a predictable interaction with the time flowing in the environment.
between tasks and resources.
12
10/8/2019
Controlled System
Operating system
minimize the guarantee that the scheduling, synchronization, communication
average response time worst-case response time
of a task set of each individual task does Language
not exceed a given bound lack of explicit support for time
13
10/8/2019
In spite of this large application domain, most of 1. Tedious programming which heavily
RT applications are designed using empirical depends on programmer’s ability
techniques:
– assembly programming
2. Difficult code understanding
Disadvantages Implications
4. Difficult to verify timing constraints without When the system fails is very difficult to
explicit support from the OS and the language understand why.
low reliability
Lessons learned
Tests, although necessary, allow only a
partial verification of system’s behavior.
Let’s studying
Predictability must be improved at the level of
the operating system.
real-time systems
The system must be designed to be fault-tolerant and fight against Murphy’s Laws
and handle overload conditions.
14