Contributions to the Engineering of Safety Critical Automotive Systems



Similar documents
FlexRay A Communications Network for Automotive Control Systems

Introduction CHAPTER 1

Automotive Software Development Challenges Virtualisation and Embedded Security

Customer Experience. Silicon. Support & Professional Eng. Services. Freescale Provided SW & Solutions

Application of Software Watchdog as a Dependability Software Service for Automotive Safety Relevant Systems

The Problem: Automotive safety recalls, Control Systems Diagnostics, Stability Control, Traction Control, Anti-lock Braking, Adaptive Cruise Control

Comparison of FlexRay and CAN-bus for Real-Time Communication

Crucial Role of ICT for the Reinvention of the Car

Advanced Electronic Platform Technologies Supporting Development of Complicated Vehicle Control Software

ANSYS SCADE Model-Based Development Solutions for AUTOMOTIVE. Critical Systems & Software Development Solutions

Introduction to TTP and FlexRay real-time protocols

PEMS Conference. Acquiring Data from In-Vehicle Networks. Rick Walter, P.E. HEM Data Corporation

AutoSAR Overview. FESA Workshop at KTH Prof. Jakob Axelsson Volvo Cars and Mälardalen University

IaaS Cloud Architectures: Virtualized Data Centers to Federated Cloud Infrastructures

Lecture 3 - Model-based Control Engineering

Open Source Software

ELEC 5260/6260/6266 Embedded Computing Systems

Introduction to RACE FUELS Hans-Christian von der Wense Munich, Germany

An OSGi based HMI for networked vehicles. Telefónica I+D Miguel García Longarón

Linear Motion and Assembly Technologies Pneumatics Service. Industrial Ethernet: The key advantages of SERCOS III

Comparison of CAN, TTP and Flexray Communication Protocols

Software Development for Multiple OEMs Using Tool Configured Middleware for CAN Communication

Service Oriented Architecture for Agricultural Vehicles

Mixed-Criticality Systems Based on Time- Triggered Ethernet with Multiple Ring Topologies. University of Siegen Mohammed Abuteir, Roman Obermaisser

Continental, A*STAR s Institute for Infocomm Research (I²R) & TUM CREATE collaborate in an Intelligent Transport Systems (ITS) Lab

Welcome to the Introduction to Controller Area Network web seminar My name is William Stuart, and I am a Applications Engineer for the Automotive

EBERSPÄCHER ELECTRONICS automotive bus systems

Performance Study based on Matlab Modeling for Hybrid Electric Vehicles

Automotive Software Engineering at Hella KGaA. Software Engineering for Software Intensive Systems,

Automotive Software Engineering

Adaptive Cruise Control of a Passenger Car Using Hybrid of Sliding Mode Control and Fuzzy Logic Control

Adaptive Driver-assistance Systems

Software Engineering for Real- Time Systems.

CHAPTER 1: OPERATING SYSTEM FUNDAMENTALS

Telematics Workshop: Remote 2-Way Communication Meeting Results

The Temporal Firewall--A Standardized Interface in the Time-Triggered Architecture

Reducing Configuration Complexity with Next Gen IoT Networks

How to Hack Your Mini Cooper: Reverse Engineering CAN Messages on Passenger Automobiles

Architectures for Distributed Real-time Systems

Model-based Testing of Automotive Systems

Testing for the Unexpected: An Automated Method of Injecting Faults for Engine Management Development

Performance Testing BroadR-Reach Automotive Ethernet

from mind to motion Automotive Your partner for mechatronics

Software House Embedded Systems

Advanced Operating Systems (M) Dr Colin Perkins School of Computing Science University of Glasgow

Efficient and Faster PLC Software Development Process for Automotive industry. Demetrio Cortese IVECO Embedded Software Design

RETIS Lab Real-Time Systems Laboratory

A System-safety process for by-wire automotive systems

Bus Data Acquisition and Remote Monitoring System Using Gsm & Can

Why Adopt Model-Based Design for Embedded Control Software Development?

OPNET - Network Simulator

Wireless Sensor Network Performance Monitoring

Security risk analysis approach for on-board vehicle networks

EMC Countermeasures for In-Vehicle Communication Networks

CrossChasm Embedded Control Systems Whitepaper For Powertrain Design Teams

Using Smartphones to Detect Car Accidents and Provide Situational Awareness to First Responders

Advanced Safety. Driver Vehicle Interface Collision Avoidance & Mitigation Vehicle Communications. Helping industry engineer safe vehicles

LMS Imagine.Lab AMESim Powertrain Transmission

Making model-based development a reality: The development of NEC Electronics' automotive system development environment in conjunction with MATLAB

Understanding SAE J1939. by Simma Software, Inc.

SmartTrac Stability Control Systems

Safety and security related features in AUTOSAR

Real-Time Systems Hermann Härtig Real-Time Communication (following Kopetz, Liu, Schönberg, Löser)

TRW Automotive TRW Automotive Profile 2012

AUTOMOTIVE FIELDBUS TECHNOLOGY: DEVELOPMENT TOOLS AND ELECTRONIC EQUIPMENT FOR LABORATORY PRACTICES

Model-Based Development of ECUs

EPoSS Strategy Paper Smart Systems for the Full Electric Vehicle

EVITA-Project.org: E-Safety Vehicle Intrusion Protected Applications

The Growing Role of Electronics in Automobiles A Timeline of Electronics in Cars June 2, 2011

A very short history of networking

An Automated Model Based Design Flow for the Design of Robust FlexRay Networks

Java-based Functionality and Data Management in the Automobile. Prototyping at BMW Car IT GmbH. by Alexandre Saad, BMW Car IT GmbH, Munich/Germany

MultiPARTES. Virtualization on Heterogeneous Multicore Platforms. 2012/7/18 Slides by TU Wien, UPV, fentiss, UPM

Frost & Sullivan Cybersecurity Presentation

Intervid Fleet Management Fleet Telematics. Intervid, Inc Pegasus Court, Suite C Frederick, MD 21704

In-Vehicle Networking

How To Test A Robot Platform And Its Components

Multicore scheduling in automotive ECUs

STUDY AND SIMULATION OF A DISTRIBUTED REAL-TIME FAULT-TOLERANCE WEB MONITORING SYSTEM

Industrial Application of MultiPARTES

Trends in Embedded Software Engineering

Electrical/electronic components and installation locations

Neue Fahrzeugkonzepte erfordern einen ganzheitlichen Ansatz in der Integrationsstrategie

PRODUCT SAFETY. Volkswagen Passenger Cars

Modular Communication Infrastructure Design with Quality of Service

The relevance of cyber-security to functional safety of connected and automated vehicles

EMI in Electric Vehicles

Vehicular On-board Security: EVITA Project

climate unit for the passenger compartment.

Transcription:

Contributions to the Engineering of Safety Critical Automotive Systems 1 Nicolas NAVET INRIA - LORIA Laboratory Real-Time and Interoperability (TRIO) Group http://www.loria.fr/~nnavet On a sabbatical leave at the NCCU Taipei National Taiwan University, 16th June 2006 Credits: Figure on slide 21 comes from a lecture by Phil Koopman (CMU, US). Several figures come from Cédric Wilwert s Phd defence (Loria, France)

Some words about me and my research group.. - TRIO : Real-time and Interoperability - Around 18 people with 3 Prof., 1 Ass. Prof., 2 Researchers - Belongs to the INRIA located within the Loria Lab. in Nancy (France) - Research objective : Propose methods and tools for designing, validating, optimizing real-time systems 2 - My research field : design of dependable systems - Real-time scheduling - Design of fault-tolerant communication protocols - Probabilistic risk evaluation - Software engineering for real-time systems - Optimization techniques Application to in-vehicle embedded systems

3 In-Vehicle Embedded Systems : functional domains - Chassis domain : control the chassis components according to solicitations and driving conditions - ABS, ESP, ASC, 4WD, - Powertrain domain : control transmission and engine - Body domain : dashboard, lights, windows, seats,.. - Telematics and Human Man Interface (HMI) - Active and passive safety domain : impact and rollover sensors, airbags deployment,

4 In-Vehicle Embedded Systems - Complexity : up to 80 ECUs - 5 networks - up to 2500 messages - distributed functions - several distinct functional domains - Strong design constraints : cost, time-to-market, third part suppliers, - Safety Critical Functions : braking, steering, traction, suspension, engine control, active safety.. - Increasing amount of software : most new functions mainly implemented in software by 3rd part suppliers Issue : how to ensure the system reliability with a high confidence level? (e.g. 10-9 failure per functioning hour)

5 Threats to the correct functioning - Types of faults : - faults caused by the user - faults during production / implementation - Design flaws! - worst-case situation not considered - EMI : - transient faults due to the environment : temperature, α-particles, electromagnetic interferences (EMI) - caused by radio FM, radars, powerlines, - induce bit-flippings in RAM, ECU reboots, transmission errors, - reported to be involved in numerous road accidents / breakdowns

6 Example : Steer-by-Wire (1/2) X-by-Wire : hydraulic and mechanical connections are replaced by networks and actuators Mechanical Steering system «Steer-by-Wire» system hand-wheel angle sensors ECU Communication network Actuators on the front axle

Example : Steer-by-Wire (2/2) 7 Why Steer-by-Wire? Decrease weight / increase space Safety : intrusion of the steering column in the cockpit Enable new functions : variable steer ratio, lane keeping, park assistance, crash avoidance, differentiated control of the wheels Probably harder to implement than in airplanes because of costs, no maintenance and very high steering precision required

Example : Steer-by-Wire (1/2) 8 X-by-Wire : hydraulic and mechanical connections are replaced by networks and actuators Mechanical Steering system «Steer-by-Wire» system hand-wheel angle sensors ECU Communication network Actuators on the front axle Basic issue with Steer-by-Wire : a delayed transmission of the hand-wheel angle to the front-wheel impacts QoS and Safety

Steer-by-Wire : evaluation of the maximum tolerable delay 9 Road Tests Matlab Simulink model + Crucial questions at design time : - What is the probability to exceed the maximum delay? - How to optimize the configuration for more robustness? - Which transmission support / communication protocols / software layers are required? - How to detect dysfunctioning nodes at run-time?

Dependable systems : systems in which the user can trust 10 Focus on reliability : probability that a system performs as expected Hardware Vehicle Reliability Communication Software System approach is needed! Research issues : Conceive new mechanisms : e.g. communication protocols, scheduling policies (not discussed today) Propose models, methods and tools for validating dependability constraints

11 Validation = checking constraints fulfillment approaches : model-based evaluation (simulation, analysis), prototype-based evaluation, hybrid techniques Personal experience over the last 10 years : in use at time t Correctness by construct Probabilistic risk evaluation Worst-case deterministic analysis smart monitoring tools Simulation tools 1995 1997 2005

Correctness by construct Probabilistic risk evaluation Worst-case deterministic analysis smart monitoring tools Simulation tools 12 1995 1997 2005-1995 : Qnap2 Controller Area Network (CAN) model developed for Renault - 1996-97 : the VACANS tool (Validation of CAN based systems) - Initial developer: P. Belissent Vehicle Reliability Hardware Communication Software Content correctness Timely delivery

VACANS : Validation of CAN based systems discrete event simulator based on OPNET Network level 13 Specification through an Architecture Description Language Automatic generation of the models from ADL spec. Provides both simulation and analytic results Distributed by Delta-Partners in 1997-98 Node level modelling with Finite State Machine embedding C code

Correctness by construct Probabilistic risk evaluation Worst-case deterministic analysis smart monitoring tools Simulation tools 14 1995 1997 2005 1996-97 : Observer - a smart network analyzer for Controller Area Network (CAN) - industrial contract with PSA - used for a Citroën car. Vehicle Reliability Hardware Communication Software Content correctness Timely delivery

Observer : Analyzing CAN-based applications 15 Network monitoring is mandatory! check ECUs from suppliers meet their specification! gather statistics on transmission errors error models inject faults and see what happens verify the respect of high-level applicative constraints

Typical high-level constraint : delay between a gear change and the torque reduction 16 frames { 0x349 { name Automatic_Gear_Box dlc 5 field 0 0x03 gearchange field 3 0x0f poslevier field 3 0xf0 rapport } 0x208 { name Engine_Controller dlc 7 field 6 0xff torque } } rules { 0x349 } { } gearchange equal 1 wait 0x208 with torque in 0 255 maxdelay 20000 The delay observed on the bus is not the actual delay but it helps to determine a tight bound

Correctness by construct Probabilistic risk evaluation Worst-case deterministic analysis smart monitoring tools Simulation tools 17 1995 1997-1997 : Frame Deadline Failure Probability on CAN - 2004 : Optimal configuration for TDMA networks Vehicle Reliability 2005 Hardware Communication Software Content correctness Timely delivery

Frame Deadline Failure Probability Analysis 18 Question : what is the probability a given information arrives on time? Approach : bursts of errors 1) propose a realistic error model Interarrival times Single transmission errors 2) compute the maximum error threshold 3) compute the probability to exceed the threshold

Frame Deadline Failure Probability Analysis 19 Benefits : evaluate the «robustness» of the application to transmission errors basic block for functional-level safety analysis optimize the configuration - minimize choice of the transmission support

Frame Deadline Failure Probability Analysis 20 In the literature : improvements for particular cases (e.g. RTSS 01) optimization technique using this analysis (e.g. ICC 98) configuration tools implementing the analysis (e.g. ICC 99) same error model and approach re-used for other networks (e.g. wireless communication)

Optimal Configuration of TDMA networks 21 Question : how to best configure the communication for maximal safety? 2 replicated ECUs 2 replicated ECUs

Basics of TDMA networks 22 TDMA : well suited for dependability - in use in avionics - in production cars within the next few years (FlexRay) A B 1 slot TDMA C D 1 TDMA Round TDMA Round repeats in cycle t

Function : turn the wheels according to the driver s request 23 Hand-wheel angle A 1 A 2 Message update on each replicated ECU A 1 A 2 A 1 A 2 Frame transmission on TDMA A 1 A 1 A 2 A 2 t Actuation on the wheel

Function : turn the wheels according to the driver s request 24 Hand-wheel angle A 1 A 2 Message update on each replicated ECU A 1 A 2 A 1 A 2 Frame transmission on TDMA A 1 A 1 EMI A 2 A 2 t Actuation on the wheel

Maximizing the robustness of TDMA 25 Question: A 1 A 1 or A 1 A 1?? Fail-silent producer node : if a frame is received, the content is correct Fail-silent nodes : one frame is enough A 1 A 1 Non fail-silent nodes : all frames are needed A 1 A 1 Simple design guidelines providing large robustness improvements

Correctness by construct Probabilistic risk evaluation Deterministic analysis smart monitoring tools Simulation tools 26 1995 1997 2005 1998-2005 : Design of automotive middleware Vehicle Reliability Hardware Communication Software

Automotive Middleware Design 27 Application Application Middleware M i d Middleware d l e w Middleware a r Middleware e OS OS COM I/O COM I/O NW controller driver(s) drv 1 drv 2 drv n NW controller driver(s) drv 1 drv 2 drv n Network controller(s) Sensors and actuators Network controller(s) Sensors and actuators Middleware : software layer between platform and application

Automotive Middleware Design 28 Application Application Aims : Middleware M i d Middleware d l e w Middleware a r Middleware e OS hide the COM distribution of thei/oapplication: intra-ecu, COM inter-ecu, interdomains I/O communication provide a standard API hiding the heterogeneity of the platforms : networks, NW controller driver(s) drv 1 drv 2 drv n NW controller driver(s) drv 1 drv 2 drv CPU, OSs, n provide high-level services for reducing development time : mode Network controller(s) Network controller(s) management, redundancy Sensors and actuators management, download, OS Sensors and actuators ensure required QoS : correct protocol flaws, enhanced CRC, Benefits : improve interoperability, portability and reuse cut development time - increase application correctness

Automotive Middleware Design : context 29 AEE project (1998-2001) - partners : PSA, Renault, Sagem, Siemens, Valeo, Inria, ITEA EAST-EEA project (2000-2004) - partners : Audi, Volvo, DC, BMW, Fiat, Bosch, PSA, Renault, Etas, ZF, INRIA,T.U. Darmstadt, Specification of the MW for the Powertrain domain - implemented in demonstrator

MW : Ongoing research since 2001 30 1) Specification of the MW with Design Patterns 2) Optimize MW implementation wrt dependability constraints Create set of MW tasks and configure scheduling Configure the set of frames (frame packing) Minimize bandwidth consumption and respect deadline constraints F1 F2 ECU1 Frame X F3 F4 ECU2 Frame Y 3) Generate MW code and configuration files proven correct wrt dependability F5 F6 F7 ECU3 ECU4 Frame Z

Current practice and future work in the design of dependable automotive systems 31 COTS tools Proprietary tools Simulation tools Fields of research Probabilistic risk evaluation Deterministic analysis smart monitoring tools Correctness by construct 1995 1997 2005

Future work (1/2) 32 Fine-grained analytic models needed both for - dependability evaluation - being embedded in adaptive mechanisms guiding principles : - consider hardware / software / communication - no independency assumption between failures!!

Future work (2/2) 33 Component based engineering with correctness by construction current practice in formal methods: 1. deterministic fault-hypothesis (e.g. TTP/C: at most 1 error every 2 TDMA rounds) 2. proof under this assumption (e.g. a faulty node will be detected within 2 rounds) Step 1 : cooperation with researchers in formal methods - propose realistic fault-hypothesis - probabilistic guarantees? Step 2 : composition of components with guaranteed dependability expressed in a probabilistic way

34 Some references : available at http://www.loria.fr/~nnavet - N. Navet, F. Simonot-Lion, "Fault Tolerant Services for Safe In-Car Embedded Systems", in The Embedded Systems Handbook, CRC Press, ISBN 0-8493-2824-1, August 2005. - N. Navet, Y.-Q. Song, F. Simonot-Lion, C. Wilwert, "Trends in Automotive Communication Systems", Proceedings of the IEEE, special issue on Industrial Communications Systems, invited paper, vol 96, n 6, pp1204-1223, June 2005. - B. Gaujal, N. Navet, "Fault Confinement mechanisms on CAN : Analysis and Improvements", IEEE Transactions on Vehicular Technology, vol 54, n 3, pp1103-1113, May 2005. - B. Gaujal, N. Navet, "Maximizing the Robustness of TDMA Networks with Applications to TTP/C", Real- Time Systems, Kluwer Academic Publishers, vol 31, n 1-3, pp5-31, December 2005. - R. Saket, N. Navet, "Frame Packing Algorithms for Automotive Applications", available as research report INRIA RR-4998, to appear in Journal of Embedded Computing, issue 1/2006. - N. Navet, Y.-Q. Song, "Validation of Real-Time In-Vehicle Applications", Computers in Industry, Elsevier Science, vol. 46, n 2, pp107-122, 2001. - N. Navet, Y-Q. Song, F. Simonot, "Worst-Case Deadline Failure Probability in Real-Time Applications Distributed over CAN", Journal of Systems Architecture, Elsevier Science, vol. 46, n 7, 2000. - N. Navet, Y-Q. Song, "Design of Reliable Real Time Applications Distributed over CAN", Proc. of the 9th IFAC Symposium on Information Control in Manufacturing (INCOM'98), Metz (France), 22-24 June, 1998. - R. Santos Marques, F. Simonot-Lion, N. Navet, "Development of an in-vehicle communication middleware", to appear in a book gathering selected talks of the 3rd Workshop on Object-Oriented Modeling of Embedded Real-Time Systems, Heinz-Nixdorf Institute publisher, 2007.

Thanks for your attention! 35