Professional Documents
Culture Documents
Marie-Agnès Peraldi-Frati
AOSTE Project
UNSA- CNRS-INRIA
December 2007
1
Course Schedule
Plan
Evolutions in real-time architecture
Real-time control system design example
Technical context
Mapping of function
to hardware and
software components
controler
controler
controler
Hard RTS
Timing problems
Response time, Execution time, Blocking ,Scheduling,
Arbitration, Transmission time, Jitters, Transient error,
Etc …
Safety : absence of catastrophic consequences on
the user and the environment
Reliability : continuity of correct service
Complexity
Contrôleur Actionneurs
Processus
10
11
Contrôleur 1
Processus
Contrôleur 2
13
Distributed
Processus
Communication link
14
Intelligent sensors/actuators
Input/Output
16
module by one.
Modularity in the certification ( Avionic DO-
18
Error ?
Error ? Error ?
Network cutted
Where is the problem ? 19
20
Fault tolerance
One single point of failure in a centralized system
In a distributed potential fault recovery
mechanisms
A defection of one node may not imply the
defection of all the system.
21
Input/output management
Event Triggered
• system must reacts to significant external events directly and
immediately.
• external Events arrive in a sporadic way
• Closed to “interrupt- driven I/O”
• Efficient – treatments are only executed if necessary
• Concurrency problem – What’s happen if all potential events
arrive concurrently ?
22
Inputs/Outputs management
Time-triggered
• system must reacts to significant external events at pre-
specified instants.
• Events arrive according to a scheduling (fixed or variable
scheduling)
• Closed to the “I/O polling”
• Sometimes inefficient – Treatments are executed in a
periodic way even if it is not necessary.
• Calculable load – for the full system
23
Communications in distributed
systems
Event-Triggered protocols
Communications are initiated when a “send” message is received.
Problem of multiple access ,
Events arrive in a sporadic manner
Time-triggered protocols
Communication are triggered at pre-specified periodic instants.
Message sending is periodic
Message carry the newest information
Message lost is not a big problem
Message update is detected thanks to a modification of its value.
24
System on Chip …
25
Evolution in automotive
Past
[Kassadian96]
27
Evolution in automotive
28
Evolution in automotive
ECU ECU
ECU ECU
Present
[Kassadian96]
29
30
Complexity !
Functional :
Architectural
Flexibility
33
Functional complexity
Systems size
Number of automatic control laws
Coupling between controllers
34
CourtoisieJ.P.Elloy - Irccyn
Cylinder Head
Flame Front
Fresh
Compressed
Auto Ignition
Mixture
Knocking
Functional complexity
Multiple sampling asynchronous periods
Régulation AirFuel : Lambda sensor,
Gas : vanne EGAS
Sampling periods with variation
Knock sensor acquisition : Hertz
Engine Rotation Speed : CAMShaft rotation
Event-triggered sampling
Epuration du catalyseur à accumulateur : richesse
Knock control : Knock detection; Ignition angle correction.
37
Architectural complexity
Number and heterogeneity of
numerical controllers
Multiplicity of networks
Gear Box
controller
Engine controller
Comfort network
Powertrain
network
38
CourtoisieJ.P.Elloy - Irccyn
Architectural complexity
39
Functionalities Inclusion :
ABS => ESP
Anti-lock Braking System
Electronic Stability Program
Yaw-rate sensor
40
CourtoisieJ.P.Elloy - Irccyn
power-assisted steering
Security functions
Detection of hypo vigilance of the driver
Obstacle detection and assistance to braking
41
VersionV,
Year A1
Vehicle
Gamme G,
VersionV,
Year A2
43
CourtoisieJ.P.Elloy - Irccyn
44
CourtoisieJ.P.Elloy - Irccyn
45
Courtoisie J.P.Elloy - Irccyn
47
Cycab equipements
Caméra CCD pour la téléopération
Cycab architecture
Control and command of 9 motors
An distributed hardware architecture : 3 intelligent nodes
One Steering node that control the joystick and the steering
actuator
twowheel drive nodes that control the wheel drive motors
and brakes
An industrial PC manage the finger touch screen
A MVME162 microcontroller with VxWorks operating
system for implementing control motor laws
Communication between nodes with a fielbusController
Area Network (CAN).
Ultasonics sensors and the CCD camera are connected on
the CAN bus.
49
Cycab architecture
50
SIL 4
Safety
Dependability
Certification
Redundancy
51
52
53
A380
IMA (Integrated Modular Avionic)
Complexity increase
Number of Functionalities
Communication increase
Buses arinc, ethernet commuté full duplex
54
55
56
Design methodology
Hardware architecture process
Computation resources (CPU, memory, ASIC…)
Communication resources (protocols, interfaces … )
OS and middleware
Implementation process
Allocation
Automatic code generation
Preserve properties
Take into account physical architecture parameters
OS compatible with specifications ?
57
58
Courtoisie J.P.Elloy - Irccyn
Functional layer
Functions and sub-fonctions : what the system do ?
Sensor #1
Actuator #3
F1.1
F2
F1.2
Sensor #2 F1
F1.3
Non-defined
F3 Actuator
Sub-functions :
Can be shared by different functions
59
60
CourtoisieJ.P.Elloy - Irccyn
Software components :
Driver Com-SC ICEM OS-SC
Drivers
OS
61
Operational layer
Projection of functional components onto hardware and
software
62
CourtoisieJ.P.Elloy - Irccyn
Operational layer
Control and data flow connections
#1 #3
#6
#2 #4
#5
63
CourtoisieJ.P.Elloy - Irccyn
Deployment phase
Deployment of components into logical tasks
Transformation of logical tasks into
executable tasks
Projection of
synchronizations and
communication onto OS
and network primitives
64
Courtoisie J.P.Elloy - Irccyn
#2 #4 #3 #6
#5
#2
#1
a b
A #4
#5
B
b a
#6
65
Courtoisie J.P.Elloy - Irccyn
Conclusion
temporal validation…?
66
Plan of course 2
Realtime Communications
STANDARD
OSEK/VDX standard
AUTOSAR
ISO and realtime
Medium Access Protocols
67
Thanks
68
Réferences
69
71
Supervision
Contrôle de Steering
Execution
Controller châssis control
72