Communication systems for vehicle electronics

Similar documents
Comfort Electronics: Thermal Management Chassis Control Parking Assistant

A premium passenger car is controlled and managed by 80+ Embedded Systems. Communication systems for vehicle electronics

Time Triggered Protocol (TTP/C): A Safety-Critical System Protocol

The Use of CAN Bus Message Electrical Signatures for Automotive Reverse Engineering

CAN for time-triggered systems

Automotive Engineering Section, UniKLMFI - Autotronic 2 (multiplexing) Why do we use multiplexing on cars?

DEMONSTRATIONAL SYSTEM FOR TRAINING IN FlexRay COMMUNICATION

SCI ISO-K CCD PCI CAN

Dependable Communication Synthesis for Distributed Embedded Systems *

PSI5: Safety & latest developments

Design of Vehicle Lamp Control System based on LIN bus Wen Jian-yue1, a, Luo Feng1, b

Modular Scheduling of Distributed Heterogeneous Time-Triggered Automotive Systems

IN-VEHICLE electronic systems have been replacing their

REAL-TIME OPTIMISATION OF TTCAN NETWORKS

IBM Platform Technology Symposium

Inter- and Intra-Vehicle Communications

DSI Bus Standard. Version March 29, 2005

Low Speed Serial Data Fundamentals

William Milam Ford Motor Co

Automatic car AC control using CAN protocol

COPYRIGHT AND CITATION CONSIDERATIONS FOR THIS THESIS/ DISSERTATION

Serial Bus Analysis Application Note

Communication. Messages. I/O Port Frames Physical Link

A PID Controller for Real-Time DC Motor Speed Control using the C505C Microcontroller

Scheduling and Communication Synthesis for Distributed Real-Time Systems

Findings of the Artist2 Workshop Beyond Autosar

ROM/UDF CPU I/O I/O I/O RAM

Politecnico di Milano Advanced Network Technologies Laboratory. Radio Frequency Identification

Peripheral Sensor Interface for Automotive Applications

Onboard supply control unit -J519- Fitting location: 1 - Onboard supply control unit -J519-

Automotive Control Solution for Brushless DC Motors

Peripheral Sensor Interface for Automotive Applications

Timing Analysis of the FlexRay Communication Protocol

Significant Reduction of Validation Efforts for Dynamic Light Functions with FMI for Multi-Domain Integration and Test Platforms

ECU with emulated partial networking functionality

STUDY OF POWER LINE COMMUNICATION MODEMS FOR AUTOMOTIVE COMMUNICATION NETWORKS

Arda Gumusalan CS788Term Project 2

Multiple Access Methods

Exact Response Time of FlexRay Communication Protocol

AES - Automotive Embedded Systems

Peripheral Sensor Interface for Automotive Applications

Standardised Ground Data Systems Implementation: A Dream?

Smart Actuators for Mini Unmanned Aerial Vehicles

Industrial Interface Standards Overview:

Distributed Systems Interface

Architectures of. Automotive Electrical. Teaching slidess. Complexity Mastered

Online Monitoring for Automotive Sub-systems Using

CANopen Programmer s Manual Part Number Version 1.0 October All rights reserved

Grundlagen der Rechnernetze. Introduction

Design and analysis of electric vehicle battery management system based on flexray bus

Communication bus systems

Convergence of Bandwidth, Robustness and Energy Saving Challenges on CAN Physical Layer

Adaptation of MAC Layer for QoS in WSN

BASIC CONCEPTS OF HSPA

Modbus communication module for TCX2: AEX-MOD

A SERVICE-ORIENTED SYSTEM ARCHITECTURE FOR THE HUMAN CENTERED DESIGN OF INTELLIGENT TRANSPORTATION SYSTEMS

Increasing Broadcast Reliability for Vehicular Ad Hoc Networks. Nathan Balon and Jinhua Guo University of Michigan - Dearborn

Systems. Roland Kammerer. 29. October Institute of Computer Engineering Vienna University of Technology. Communication in Distributed Embedded

CAN FD and the CRC issue

Message Scheduling Optimization for FlexRay Protocol

Optimized Schedule Synthesis under Real-Time Constraints for the Dynamic Segment of FlexRay

Multi-channel telemetry solutions

The design of safe automotive electronic systems

Advances in Antenna Measurement Instrumentation and Systems

Absolute encoder HE-65

DATE: 17/08/2006 Issue No 2 e-plate Operation Overview

ADVANCED DISTRIBUTED WIDEBAND DATA ACQUISITION SYSTEM

Industrial Interface Standards Overview: RS-485/422, PROFIBUS, RS-232, CAN, LIN, I2C, IO-Link. October 2018 Transceiver Interface Products

Lecture 8: Media Access Control. CSE 123: Computer Networks Stefan Savage

COVER STORY. how this new architecture will help carmakers master the complexity of autonomous driving.

From Shared Memory to Message Passing

HCM1A1305 Automotive grade High current power inductors

Tunnel Radio. STRABAG Infrastructure & Safety Solutions

Analysis and Optimisation of Distributed Embedded Systems with Heterogeneous Scheduling Policies

Distributed Control-as-a-Service with Wireless Swarm Systems"

Dual Protocol Transceivers Ease the Design of Industrial Interfaces

A Quantifying Notions of Extensibility in FlexRay Schedule Synthesis 1

Lecture 8: Media Access Control

COLLECTING USER PERFORMANCE DATA IN A GROUP ENVIRONMENT

Digital Radio in the car in 10 years

Roland Kammerer. 13. October 2010

Volkswagen Group: Leveraging VIRES VTD to Design a Cooperative Driver Assistance System

Common Public Radio Interface. CPRI overview Input requirements for CPRI

FlexRay Communications System. Electrical Physical Layer Specification. Version 2.1 Revision B

TIME- OPTIMAL CONVERGECAST IN SENSOR NETWORKS WITH MULTIPLE CHANNELS

The Physical Layer in the CAN FD world

FlexRay Communications System. Electrical Physical Layer Specification. Version 3.0.1

GC9838-LR - INTELLIGENT HYBRID PLC-RF DIN RAIL MODEM

Qosmotec. Software Solutions GmbH. Technical Overview. QPER C2X - Car-to-X Signal Strength Emulator and HiL Test Bench. Page 1

The physical layer in the CAN FD world The update

Towards Automotive Embedded Systems with Self-X Properties

ADAS & ADASIS v2. Sinisa Durekovic, NAVTEQ

Keysight Technologies Triggering on and Decoding the PSI5 Sensor Serial Bus

Automotive Sensor Signal Conditioner with LIN and PWM Interface

EUROPEAN ETS TELECOMMUNICATION July 1997 STANDARD

737 LF/HF/VHF/UHF/SHF Spectrum Monitoring System

MicroAutoBox. Platform for in-vehicle function prototyping Variants with CAN, LIN and FlexRay interfaces

Performance Analysis of Distributed Control Systems Using the FlexRay Protocol

MOBILE TRAIN RADIO COMMUNICATION

THIS article focuses on the design of an advanced

Transcription:

Background Communication systems for vehicle electronics Communication systems for vehicle electronics Presentation overview automotive electronics as an application area for realtime communication Real time protocols LIN Local Interconnection Network CAN Controller Area Network TTCAN Time Triggered CAN (based on CAN) CAN FD CAN with Flexible Datarate FlexRay, based on BMW s ByteFlight TTE Time Triggered Ethernet Hybrid scheduling combining static scheduling with fixed priority scheduling analysis 1 1

A premium passenger car is controlled and managed by 80+ Embedded Systems Comfort Electronics: Thermal Management Chassis Control Parking Assistant Infotainment: Telematics Solutions Car PC Wireless Connectivity Cartocar communication Floating Car Data Safety: Predictive Safety Systems Driver Assistance Systems Adaptive Cruise Control Electric Power Steering Powertrain: Engine Management Transmission Control Power Management 2 Courtesy of Daimler, Bosch 2

Virtual differentiation between variants Variant 1 Entertainment configuration A All variants of a specific model are physically identical and differ only in their individual software configuration The various included physical components can be activated or deactivated by the software Motor configuration A Motor configuration B Entertainment configuration F Variant 2 3

Example of the electrical system complexity 19271997 No. of fuses 27 54 1200 No. of meters of electric wires 575 Wiring diagram, Volvo ÖV4 ( Jacob ) 1927 4 5 7 1927 1944 1956 1966 1975 1982 1997 9 16 283 183 83 50 30 4

The evolution of functional requirements on the electrical system Power production and distribution Simple components More complex functions standalone systems ABS, Airbag Architecture Optimisation on many levels Standardised interfaces Integration of systems 100 Optimisation of information 50 Common data busses 0 450 400 350 300 250 200 150 Features 1930 1940 1950 1960 1970 1980 1990 1995 2000 2005 # of functions # of integrated functions 1970 1980 1990 2000 2010 5

Automotive electronics roadmap Communication systems for vehicle electronics 6

Multiplex Networks Conventional system Network Identifier Data Command Control Engine Control Module Driver Information Control units Automatic Transmission Central Module 7

Evolution of protocols MOST TT Ethernet Byteflight FlexRay TTP/C CAN VAN J1850 CAN 2.0 LIN TTCAN CAN FD 1985 1990 1995 2000 2005 2010 2015 8

Example of the electrical system Communication systems for vehicle electronics Mirror Lock Lock Window lift Power Train Instruments Seat Heating Heating Infotainment systems Central body control Climate Roof Heating Trunk Steering wheel panel Very high performance High performance Medium performance Low end performance Lock Lock Seat Mirror Mirror Heating Lock Seat Universal motor Universal panel Interior lights 9

The LIN protocol, started in 1998 Communication systems for vehicle electronics LIN Local Interconnection network predecessor: VOLCANO Lite Cooperation between partners: Freescale, VOLVO CAR, BMW, AUDI, Volkswagen, DaimlerChrysler Mentor Graphics (former: Volcano Communication Technology) Objectives: Low cost, modest performance and safety requirements, flexible system architecture 10

LIN target applications Roof: (high amount of wiring) Rain Sensor, Light Sensor, Light Control, Sun Roof (Rain Sensor needs to be interrogated every 1020ms) Door/window/seat: Mirror,Central ECU, Mirror, Switch, Window Lift, Seat Control Switch, Door Lock, etc. Climate: many Small Motors Control Panel Steering Wheel: (very many controls are going to be positioned on the steering wheel) Cruise Control, Wiper, Turning Light, Optional: Climate Control, Radio, Telephone, etc. Seat: many Seat Position Motors, Occupancy Sensor, Control Panel 11

LIN protocol features Communication systems for vehicle electronics Bus topology Masterslave protocol, no arbitration required UART protocol, 10 bits (uses sync break facility) 8 bits of data in a block 28 blocks of data per frame Single wire Maximum 20 kbits/s 12

LIN bus communication Communication systems for vehicle electronics master control unit polling master task slave task slave control unit slave task slave control unit slave task interframe spacing synch Identifier field next synch field Master Task Response spacing 2 byte 1 byte data block parity time Slave Task time 13

CAN Controller Area Network Bus topology CSMA/CR (Carrier sense, Multiple Access/ Collision Resolution) Error detection capabilities Supports atomic broadcast 064 bytes of data per frame Twisted pair Maximum 1 Mbit/s ARB CTRL DATA CRC ACK EOF Arbitration (identifier) Control information 08 bytes Checksum Acknowledge End of frame MESSAGE FRAME SOF ARB CTRL DATA CRC ACK EOF 14

Bus collission detection Idle bus (recessive level) Bus transceivers Open collector Bus level: Recessive (bit) 1 Dominant (bit) 0 Bus level +5V R 1 1 NodeA Node B 15

Bus arbitration Two nodes transmitting same level (1) transmit 1 transmit 1 receive 1 Bus level +5V I R = 0 receive 1 1 1 1 I A = 0 Node A 1 1 Node B 1 I B = 0 16

Collission Resolution transmit 1 transmit 0 receive 0 Bus level: 0V +5V R I R =I A receive 0 Node A Node B 0 0 0 1 1 0 1 1 I A I B =0 Node B aborts transmission since the received bit differs from the transmitted bit 17

Three messages collide... Arbitration field (identifier with priority) Nodes own specific message identifiers. EXAMPLE: Three nodes start simultaneously Node A transmits: $257 (0010 0101 0111) Node B transmits: $360 (0011 0110 0000) Node C transmits: $25F (0010 0101 1111) Bit number SOF 1 2 3 4 5 6 7 8 9 10 11 12 13 Bus level D D D R D D R D R D R R R R Node A 0 0 0 1 0 0 1 0 1 0 1 1 1 1 Node B 0 0 0 1 1 Aborts Node C 0 0 0 1 0 0 1 0 1 1 Aborts 18

Standard/Extended CAN drawback... Protocol bus arbitration, acknowledge and error handling slow down bitrate ( maximum 1 Mbits/s) Solution: New CAN FD specification CAN Flexible Datarate 19

Bywire control Electronic information carrier Hydraulic information carrier The F8 Digital FlyByWire (DFBW) flight research project validated the principal concepts of allelectric flight control systems now used on nearly all modern highperformance aircraft and on military and civilian transports. The first flight of the 13year project was on May 25, 1972. 20 Courtesy of Dryden Flight Research Center 20

Control system implementation strategies Local control Local information processing Independent control objects Centralized global control Local and central information processing Interconnected control objects Distributed global control Local and distributed information processing Interconnected control objects 21

Nonfunctional requirements Interoperability Safety System life time Changeability Testability Maintainability Extendability Portability Restructuring Performance/ Efficiency Security Costeffectiveness Produceability Timeliness System Architecture Conceptual integrity Usability Availability Reliability Understandability Robustness Fault tolerance Variability (variants, configurations) 22

Tradeoffs from Safety/Reliability requirements The extremes from reliability requirements leads to safety requirements. Safety requirements implies redundancy, (FailOperational, FailSafe, etc). Safety requirements also demands predictability, we has to show, a priori, that the system will fulfill it s mission in every surrounding at every time. In a distributed environment, only time triggered protocols with redundant buses can provide this safety. Contemporary TTP s are: TTCAN, based on Controller Area Network (CAN) which is widely used in today's vehicular electronic systems. FlexRay, based on BMW s ByteFlight. Operational in contemporary automotive electronic systems. TimeTriggered Ethernet. TTEthernet expands classical Ethernet with services to meet timecritical, deterministic or safetyrelevant conditions. 23

Time Triggered CAN Based on the CAN protocol Bus topology Media: twisted pair 1Mbit/s Basic cycle 0 Basic cycle 1 Basic cycle 2 Basic cycle 3 Transmission Columns t Exclusive guaranteed service Arbitration guaranteed service (high ID), best effort (low ID) Reserved for future expansion... Time is global and measured in network time units (NTU s) 24

Flexray Double channels, bus or star (even mixed). Media: twisted pair, fibre 10 Mbit/s for each channel Redundant channel can be used for an alternative schedule Static segment (TTCAN Exclusive ) guaranteed service Dynamic segment (TTCAN Arbitration ) guaranteed service (high ID), best effort (low ID) Max 64 nodes on a Flexray network. 25

Time Triggered Ethernet Classic Ethernet bus topology 1 Gbit for each channel Communication systems for vehicle electronics Every base period Every second base period Compare with TTCAN basic cycles Every fourth base 26 period 26

Comparisons All protocols targets real time applications. Provides for time AND event triggered paradigms. All protocols are suitable for scheduling tools. Commercial production tools are available. CAN, many years experiences, a lot of existing applications. Implies migration of existing CAN applications into TTCAN and CAN FD. Flexray is the automotive industries initiative. New hardware, promoted in for example AUTOSAR. TTEthernet. Proven technology with lots of existing hardware, 27

What to choose? 28 28

Combining time triggering with events: Example of Hybrid scheduling for TTCAN Messages are sorted into three different categories: Hard realtime, for minimal jitter with guaranteed response time. Firm realtime, for guaranteed response time, but can tolerate jitter. Soft realtime, for best effort messages. 29

TTCAN detailed study Communication systems for vehicle electronics Response time analysis Q T B R i B i T i Q i 30

Time triggered messages M h Basic cycle 0 Transmission Columns time windows Basic cycle 1 Basic cycle 2 Basic cycle 3 After structuring: M : {M h, M f, M s }, assume that at least M h is defined. We now construct a matrix cycle. Due to protocol constraints, the schedule has to fulfil: LCM( M h p ) = x 2 n where: LCM is least common multiple period for the M h message set; x is the preferred length of a basic cycle within LCM; n is the number of basic cycles. Hardware constraints: Hwc1: 1 x 2 y, has to be consistent with a hardware register, y bits Hwc2: 0 n k, always a power of 2, constraint in hardware. Hwc3: # of triggers Tr, columns in the matrix cycle. Limited by the number of available trigger registers. 31

Multiple solutions satisfies the equation... Choose a strategy: Strategy 1: Minimize number of basic cycles, requires a longer basic cycle, and more triggers. Strategy 2: Minimize length of basic cycles, increase probability of finding a feasible schedule for large message 32

Persuing the strategies... Communication systems for vehicle electronics Construct a schedule for the following set: M h = ( M1, M2, M3) with the following attributes (NTU): M1 p = 1000, M1 e = 168 M2 p = 2000, M2 e = 184 M3 p = 3000, M3 e = 216 It s obvious that: LCM( M1, M2, M3 ) = 6000. and: 6000 = x 2 n 33

Strategy 1 Minimizing number of basic cycles yields: 2 n = 1, so n = 0 and x = 6000. Hwc1 and Hwc2 are fulfilled. Total numbers of triggers for N messages in one basic cycle is: in this case: # of triggers = 6000 1000 So, strategy 1, leads to a solution with: 1 basic cycle and 11 triggers. MAtrix cycle length is 6000 NTU. Basic Cycle Triggers N i 1 6000 2000 LCM( M i M 6000 3000 ) 11 0 168 352 1000 2000 2168 3000 3352 40004168 5000 M 1 M 2 M 3 M 1 M 1 M 2 M 1 M 3 M 1 M 2 M 1 34 34

Strategy 2 n = 0: 6000 = x 2 0 x = 6000 (same as strategy 1) n = 1: 6000 = x 2 1 x = 3000 n = 2: 6000 = x 2 2 x = 1500 n = 3: 6000 = x 2 3 x = 750 n = 4: 6000 = x 2 4 x = 375 n = 5: 6000 = x 2 5 x = 187.5 Basic cycle 1 (at 0) 2 (at 375) 3 (at 750) 4 (at 1125) 5 (at 1500) 6 (at 1875) 7 (at 2250) 8 (at 2625) 9 (at 3000) 10 (at 3375) 11 (at 3750) 12 (at 4125) 13 (at 4500) 14 (at 4875) 15 (at 5250) 16 (at 5625) 0 3000 4125 168 4168 352 2000 2168 1000 3352 4000 5000 1 M 1 M 2 M 3 3 2 0 3 M 1 1 4 0 5 0 6 M 1 M 2 2 7 0 8 0 9 M 1 M 3 2 10 0 11 M 1? 1 12?M 1 M 2 2 13 0 14 M 1 1 15 0 16 0 Trigger Information 35 Minimum Triggers 35

Strategy 2 Avoid this conflict with the requirement that: a basic cycle shall be at least as long as the shortest period in the message set. Applying this restriction we get: n = 2, (x = 1500) which yields a feasible schedule: Basic cycle 1 2 3 4 0 3000 168 352 3352 2000 5000 2168 4000 1000 4168 1 M 1 M 2 M 3 M 1 4 2 M 1 M 2 2 3 M 1 M 3 M 1 M 2 4 4 M 1 1 Trigger Information Minimum Triggers 36

Verifying the events... (M f ) Communication systems for vehicle electronics Basic Grey slots are supposed to be allocated for M h Cycle NTUslots (Columns) 1 q 0 2 q 1 q 2 3 q 3 q 4 q 5.. 2 n q N3 q N2 q N1 for each message m in M f : for message m = 1 up to last_m for virtual message VM i = 1 up to last_vm if( Q m + T m ) falls within ( VM i,start, VM i,completion ) Q m = VM i,completion else Q m endif end end end 1 j: P P m j Q t m j T j 37

38 Thank you for your attention. 38