In Vehicle Networking : a Survey and Look Forward

Similar documents
Architectures of Automotive Electrical. Nicolas Navet. Can be freely used for teaching Complexity Mastered. Outline

Pushing the limits of CAN - Scheduling frames with offsets provides a major performance boost

Automotive Networks Are New Busses and Gateways the Answer or Just Another Challenge? ESWEEK Panel Oct. 3, 2007

Timing Analysis of Automotive Architectures and Software. Nicolas Navet University of Luxembourg, founder RealTime-at-Work

FlexRay and Automotive Networking Future

AUTOSAR stands for AUTomotive Open Systems ARchitecture. Partnership of automotive Car Manufacturers and their Suppliers

CAN FD - Flexible Tools for Flexible Data Rates

Schedule Integration for Time-Triggered Systems

The CAN Bus From its Early Days to CAN FD By Friedhelm Pickhard (ETAS/P)

Software Architecture. Definition of Software Architecture. The importance of software architecture. Contents of a good architectural model

Distributed Embedded Systems and realtime networks

Tomorrow s In-Car Interconnect? A Competitive Evaluation of IEEE AVB and Time-Triggered Ethernet (AS6802) NET

Industrial practices of real-time scheduling Nicolas Navet

An Encapsulated Communication System for Integrated Architectures

Insights on the performance and configuration of AVB and TSN in automotive applications

A specification proposed by JASPAR has been adopted for AUTOSAR.

A Practical Message ID Assignment Policy for Controller Area Network that Maximizes Extensibility

Outline INSIGHTS ON THE CONFIGURATION AND PERFORMANCES OF SOME/IP SERVICE DISCOVERY. What is SOME/IP and SOME/IP SD

Developing deterministic networking technology for railway applications using TTEthernet software-based end systems

AUTOSAR proofs to be THE automotive software platform for intelligent mobility

Insights into the performance and configuration of TCP in Automotive Ethernet Networks

Lecture 2. Basics of networking in automotive systems: Network. topologies, communication principles and standardised protocols

Model Based Development and Code Generation for Automotive Embedded Systems. April 26, 2017 Dr. Gergely Pintér, Dr. Máté Kovács thyssenkrupp Steering

Field buses (part 2): time triggered protocols

Mentor Automotive. Vehicle Network Design to meet the needs of ADAS and Autonomous Driving

Real-Time Communications. LS 12, TU Dortmund

10 th AUTOSAR Open Conference

DEVELOPMENT OF DISTRIBUTED AUTOMOTIVE SOFTWARE The DaVinci Methodology

SW-Update. Thomas Fleischmann June 5 th 2015

Embedded Systems. 8. Communication

Guido Sandmann MathWorks GmbH. Michael Seibt Mentor Graphics GmbH ABSTRACT INTRODUCTION - WORKFLOW OVERVIEW

Automotive Requirements for a Flexible Control Traffic Class Markus Jochim (General Motors)

A journey into time-triggered communication protocols with a focus on Ethernet TSN

AUTOSAR: from concept to code.

Agenda. > AUTOSAR Overview. AUTOSAR Solution. AUTOSAR on the way

ETHERNET AS AN EMERGING TREND IN VEHICLE NETWORK TECHNOLOGY PART II

Operating Systems, Concurrency and Time. real-time communication and CAN. Johan Lukkien

Additional Slides (informative)

November 16, TTTech Computertechnik AG / TTTech Auto AG Copyright TTTech Auto AG. All rights reserved

1 November Basics of In-Vehicle Networking (IVN) Protocols

NET. A Hardware/Software Co-Design Approach for Ethernet Controllers to Support Time-triggered Trac in the Upcoming IEEE TSN Standards

AUTOSAR design flow. Yoon-Jin Kim Application Engineer. July mentor.com/automotive

Communication (III) Kai Huang

Till Steinbach 1 Franz Korf 1 René Röllig 2 Thomas Eymann 2.

Systems. Roland Kammerer. 10. November Institute of Computer Engineering Vienna University of Technology. Communication Protocols for Embedded

Deterministic Ethernet & Unified Networking

In March 2007, over 200 developers met in Stuttgart for the. control algorithms that have become increasingly faster are

PREEvision Technical Article

Automotive and industrial use cases for CAN FD

WeVe: When Smart Wearables Meet Intelligent Vehicles

Ethernet Design Challenges The requirements and use of Ethernet with AUTOSAR

FlexRay International Workshop. Protocol Overview

Trends in Automotive Communication Systems

ESCAN An Open Source, High Bandwidth, Event Scheduled Controller Area Network

Mentor Automotive Save Energy with Embedded Software! Andrew Patterson Presented to CENEX 14 th September 2016

CAN FD with Dynamic Multi-PDU-to-Frame Mapping

AUTOSAR Software Design with PREEvision

ETHERNET JOURNEY AT JAGUAR LAND ROVER CHALLENGES IN THE DEVELOPMENT OF AN ETHERNET BACKBONE

Communication Networks for the Next-Generation Vehicles

Model transformation and scheduling analysis of an AUTOSAR system

The AUTOSAR Timing Model --- Status and Challenges. Dr. Kai Richter Symtavision GmbH, Germany

10 th AUTOSAR Open Conference

BMW Group Technology Office Palo Alto Automotive Use Cases AVB in a vehicular environment.

Design Optimization of Multi-Cluster Embedded Systems for Real-Time Applications

Software integration challenge multi-core experience from real world projects

Introduction of CAN FD into the next generation of vehicle E/E architectures

Real-Time (Paradigms) (47)

The Influence of Real-time Constraints on the Design of FlexRay-based Systems

Architecture concepts in Body Control Modules

Isolation of Cores. Reduce costs of mixed-critical systems by using a divide-and-conquer startegy on core level

ISO meets AUTOSAR - First Lessons Learned Dr. Günther Heling

ASAM-MCD-2 NET (FIBEX)

Autonomous Driving From Fail-Safe to Fail-Operational Systems

Introduction of CAN FD into the next generation of vehicle E/ E architectures. Vector CAN FD Symposium 2017, Marc Schreiner, Daimler AG

In-vehicle communication networks - a historical perspective and review

CAN-FD Flexible Data Rate CAN

Timing Analysis on Complex Real-Time Automotive Multicore Architectures

European Conference on Nanoelectronics and Embedded Systems for Electric Mobility. Automotive Ethernet The Road Ahead

Verification of automotive networks -

Atacama: An Open Experimental Platform for Mixed-Criticality Networking on Top of Ethernet

A CAN Protocol for Calibration and Measurement Data Acquisition

Distributed IMA with TTEthernet

New Generation of CAN Controllers Optimized for 8-bit MCUs

S32K Microcontroller Press Pack

AMDC 2017 Liviona Multi-Core in Automotive Powertrain and Next Steps Towards Parallelization

dspace GmbH Rathenaustr Paderborn Germany

High-Speed Reprogramming and Calibration with CAN FD: A Case Study

10 th AUTOSAR Open Conference

MATLAB Expo Simulation Based Automotive Communication Design using MATLAB- SimEvent. Sudhakaran M Anand H General Motors

Probabilistic Worst-Case Response-Time Analysis for the Controller Area Network

AUTOSAR Method. Webinar

AUTOSAR - Challenges and Solutions from a Software Vendor s Perspective

A Reliable Gateway for In-vehicle Networks

In-Vehicle Global Synchronization

Trends in Automotive Communication Systems

Chapter 12: Multiprocessor Architectures

Software and Hardware Tools for Driver Assistance & Automated Driving Chris Thibeault Head of US Product Expert Group Elektrobit November 8, 2018

Cyber security mechanisms for connected vehicles

Operating System Support for Multimedia. Slides courtesy of Tay Vaughan Making Multimedia Work

TU Wien. Fault Isolation and Error Containment in the TT-SoC. H. Kopetz. TU Wien. July 2007

Transcription:

In Vehicle Networking : a Survey and Look Forward Nicolas Navet Workshop on Specialized Networks, ETFA09, Palma, Spain - 25/09/2009 Complexity Mastered Outline 1. Architecture of Automotive Embedded Systems What they look like example of BMW Constraints in their design case at Volvo Need for optimizing resource usage (ECU, networks) 2. The Autosar Communication Stack 3. Automotive Networks Time Triggered versus Event Triggered Controller Area Network at high loads FlexRay concepts and performances 2009 INRIA / RealTime-at-Work - 2 1

Architecture of Automotive Electrical and Electronics (E/E) Systems 2009 INRIA / RealTime-at-Work - 3 Electronics is the driving force of innovation 90% of new functions use software Electronics: 40% of total costs Huge complexity: 70 ECUs, 2500 signals, 6 networks, multi-layered run-time environment (AUTOSAR), multi-source software, multi-core CPUs, etc Strong costs, safety, reliability, time to market, reusability, legal constraints! 2009 INRIA / RealTime-at-Work - 4 2

BMW 7 Series networking architecture [10] Picture from [10] ZGW = central gateway 3 CAN buses 1 FlexRay Bus 1 MOST bus Several LIN Buses (not shown here) Ethernet is used for uploading code/parameters (End of Line) 2009 INRIA / RealTime-at-Work - 5 BMW 7 Series architecture wiringharness[10] 27Millions variants Body, audio, doors, battery, wiring harnesses Each wiring harness is tailored to the options Picture from [10] 2009 INRIA / RealTime-at-Work - 6 3

There are many non technical issues in the design of E/E architecture The case at Volvo in [2] : Influence of E/E architecture wrt to business value? lacks long term strategy Architectural decisions often: lack well accepted process Lack of background in E/E at management level often mechanical background are made on experience / gut feeling (poor tool Lack of clear strategy between in-house and externalized developments support) Technical parameters are regarded as less important than cost for supplier / components selection Vehicle Family Management : How to share architecture and sub-systems between several brands/models with different constraints/objectives? Sub-optimal solutions for each component / function Legal / regulatory constraints 2009 INRIA / RealTime-at-Work - 7 Proliferation of ECUs raises problems! 50 Number of ECUs (CAN/MOST/LIN) 45 40 35 30 25 20 15 10 5 0 1986 1988 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 Year Mercedes-Benz BMW Audi VW Pictures from [3] Lexus LS430 has more than 100 ECUs [wardsauto] 2009 INRIA / RealTime-at-Work - 8 4

Optimizing the use of networks is becoming an industrial requirement too Good reasons for optimizing : Complexity of the architectures (protocols, wiring, ECUs, gateways, etc ) Hardware cost, weight, room, fuel consumption, etc Need for incremental design Industrial risk and time to master new technologies (e.g. FlexRay) Performances (sometimes): a 60% loaded CAN network may be more efficient that two 30% networks interconnected by a gateway Some signals must be transmitted on several networks 2009 INRIA / RealTime-at-Work - 9 from [3] Likely upcoming architectures Fewer ECUs but more powerful Multi-core μ-controller Multi-source software Autosar OS strong protection mechanisms Virtualization? ISO2626-2 dependability standard FlexRay as backbone at BWM in a few years [8] Backbone: High speed CAN : 500Kbit/s FlexRay : 10 Mbit/s Ethernet? Picture from [8] 2009 INRIA / RealTime-at-Work - 10 5

AUTOSAR Communication Stack 2009 INRIA / RealTime-at-Work - 11 AUTOSAR at a glance Automotive Open System Architecture Industry initiative that is becoming a de facto standard Standardize: architecture (basic software modules inc. communication), methodology and exchange format, application interfaces Cooperate on standards, compete on implementation Benefits Picture from [5] cost savings for legacy features quality through reuse and market competition focus on real innovation versus basic enablers ability to re-allocate a function helps to master complexity Caveat: great complexity and still evolving specifications 2009 INRIA / RealTime-at-Work - 12 6

Picture from [5] AUTOSAR layered architecture: the global picture Supported networks are: CAN : Controller Area Network LIN : Local Interconnect Network MOST : Media Oriented Systems Transport Ethernet in the upcoming release for diag./upload Vehicle Flashing Times [8]: 4th-generation BMW 7 series via CAN: ~ 81 MB in 10 h 5th-generation BMW 7 series via Ethernet: ~ 1 GB in 20 min 2009 INRIA / RealTime-at-Work - 13 Intra and inter ECU Communication MW hides the distribution and the characteristics of the HW platform Compliance: SW C must only call entry points in the RTE 2009 INRIA / RealTime-at-Work - 14 7

AUTOSAR layered architecture: some more details Picture from [5] 2009 INRIA / RealTime-at-Work - 15 There are some 50 standardized basic software components (BSW) Picture from [5] 2009 INRIA / RealTime-at-Work - 16 8

Zoom on the communication services Explicit call to communication services or MW initiative: implicit mode Signals are: triggered or pending data or event 2009 INRIA / RealTime-at-Work - 17 Sending a signal through the CAN communication stack [6] Hyundai chassis ECU : 271μs for a signal to reach communication controller [6] Picture from [6] 2009 INRIA / RealTime-at-Work - 18 9

Generation of the operational architecture Picture from [5] 2009 INRIA / RealTime-at-Work - 19 Automotive networks 2009 INRIA / RealTime-at-Work - 20 10

Event Triggered vs Time Triggered Communication Event-triggered communication Transmission on occurrence of events Collision resolution on the bus is needed Bandwidth efficient but performance degradation at high loads Incremental design and latencies computation non-obvious Ex: CAN Time-triggered communication frames are transmitted at pre-determined points in time Synchronization is needed Bandwidth not optimized but Timing constraints are easy to check Missing messages are detected asap Ex: static segment of FlexRay 2009 INRIA / RealTime-at-Work - 21 In practice best of both world approaches are needed and used 1. Offsets on CAN : impose some fixed desynchronization between streams of messages on an ECU less collision, better performances 2. FlexRay dynamic segment : reduce waste of bandwidth and increase flexibility 3. Upcoming FlexRay V3.0 : more flexibility with slot multiplexing also in the static segment 2009 INRIA / RealTime-at-Work - 22 11

Controller Area Network: a Recap Priority bus with non destructive collision resolution Id of the frame is the priority At most 8 data bytes per frame Data rate up to 1Mbit/s (500kbit/s in practice) Normalized by ISO in 1994 defacto standard in vehicles more than 2 billions controllers produced 2009 INRIA / RealTime-at-Work - 23 Scheduling CAN frames with offsets?! Principle: desynchronize transmissions to avoid load peaks 0 0 0 10 5 0 15 5 5 Periods 20 ms 15 ms 10 ms 0 10 20 30 40 50 60 70 80 90 100 110 5 2,5 0 5 2,5 0 Periods 20 ms 15 ms 10 ms 0 10 20 30 40 50 60 70 80 90 100 110 Algorithms to decide offsets are based on arithmetical properties of the periods and size of the frame [1] 2009 INRIA / RealTime-at-Work - 24 12

But task scheduling has to be adapted otherwise data freshness is not much improved ECU task Frame Transmission request CAN Higher prio. frames frame Frame response time without offsets Tasks and messages scheduling should be designed jointly 2009 INRIA / RealTime-at-Work - 25 Offsets Algorithm applied on a typical body network 65 ms 21 ms 2009 INRIA / RealTime-at-Work - 26 13

Efficiency of offsets some insight Work = time to transmit the CAN frames sent by the stations Almost a straight line, suggests that the algorithm is near-optimal 2009 INRIA / RealTime-at-Work - 27 FlexRay protocol basics TDMA MAC F-TDMA MAC Typically ST segment: 3 ms and DYN: 2ms Frames: up to 254 bytes, size is fixed in the static segment (BMW:16bytes) Data rate: between 500kbit/s and 10Mbit/s 64 communication schedules max. (but a slot always belongs to the same station) 2009 INRIA / RealTime-at-Work - 28 14

FlexRay bus design and configuration Requirements on FlexRay Performance requirements: response times, jitters, Incrementality requirements: additional functions or ECUs Dependability requirements: fail-silence, babbling idiot, Platform requirements: platform wide frames (e.g., NM), carry-over of ECUs, etc Complex Problem Mixed of TT and ET scheduling Tightly linked with task scheduling Large number of parameters (>70) AUTOSAR constraints (OS, COM, etc) Crucial question : applicative software synchronous or not wrt FlexRay? all applicative modules are synchronized with FlexRay global time? all applicative modules are running asynchronously? combination of synchronized and asynchronous modules (likely)? Optimal solutions probably out of reach but there are good heuristics, e.g. [11] 2009 INRIA / RealTime-at-Work - 29 Useful load (signals) FlexRay 2.5Mbit/s FlexRay 10Mbit/s 1x CAN 500Kbit/s Load 1x ( 60kbit/s) Load 2x ( 120kbit/s) Load 3x ( 180kbit/s) Load 4x ( 240kbit/s) Load 5x ( 300kbit/s) Load 10x ( 600kbit/s) 2009 INRIA / RealTime-at-Work - 30 FlexRay VS (multi )CAN [11] ST 23 DYN 9 ST 21 DYN 9 ST 19 DYN 7 ST 19 DYN 7 ST 15 DYN 6 ST 3 DYN 0 ST 100 DYN 43 ST 98 DYN 43 ST 96 DYN 41 ST 96 DYN 40 ST 92 DYN 40 ST 84 DYN 36 network load 31% R without offsets 15.3 R with offsets 7.8 network load 57% R without offsets 49.6 R with offsets 14.9 network load 85% R without offsets 148.5 R with offsets 79.7 non-schedulable 2x CAN 500 OK non-schedulable 2x CAN 500 depending on the overlap non-schedulable with two CAN buses In our experiments, between 2 and 2.5 MBit/s of data can be transmitted on FlexRay 10Mbit/s 15

Conclusion Automotive MAC protocols are well mastered technologies that respond to the current needs Com. systems architectures will change AUTOSAR will probably require one or two car generations to replace all what exists Dependability will create new needs: Increasing safety related functions (X by Wire) Certification in the context of ISO26262 2009 INRIA / RealTime-at-Work - 31 References 2009 INRIA / RealTime-at-Work - 32 16

References Automotive Embedded Systems General [1] N. Navet, F. Simonot Lion, editors, The Automotive Embedded Systems Handbook, Industrial Information Technology series, CRC Press / Taylor and Francis, ISBN 978 0849380266, December 2008. [2] P. Wallin, Axelsson, A Case Study of Issues Related to Automotive E/E System Architecture Development, IEEE International Conference and Workshop on the Engineering of Computer Based Systems, 2008. [3] T. Nolte, Hierarchical Scheduling of Complex Embedded Real Time Systems, Summer School on Real Time Systems (ETR 09), Paris, 2009. AUTOSAR [4] AUTOSAR layered software architecture, part of release 3.1, V2.2.2. [5] AUTOSAR an open standardized software architecture for the automotive industry, Simon Fürst, 1st Autosar Open Conference, 2008. [6] Performance of AUTOSAR Basic Software modules in a chassis ECU, HYUNDAI MOTOR Company HYUNDAI & KPIT Cummins, 1st AUTOSAR Open Conference, 2008. [7] J. Buczkowski, Keynote address to the AUTOSAR conference, Ford, 1st AUTOSAR Open Conference, 2008. [8] T. Thomsen, G. Drenkhan, Ethernet for AUTOSAR, EB Automotive Gmbh, 2008. FlexRay [9] A. Schedl, Goals and Architecture of FlexRay at BMW, slides presented at the Vector FlexRay Symposium, March 2007. [10] H. Kellerman, G. Nemeth, J. Kostelezky, K. Barbehön, F. El Dwaik, L. Hochmuth, BMW 7 Series architecture, ATZextra, November 2008. [11] M. Grenier, L. Havet, N. Navet, Configuring the communication on FlexRay: the case of the static segment, Proceedings of ERTS 2008. 2009 INRIA / RealTime-at-Work - 33 Questions / feedback? Please get in touch at: nicolas.navet@realtimeatwork.com http://www.realtimeatwork.com 2009 INRIA / RealTime-at-Work - 34 17