Field buses (part 2): time triggered protocols

Similar documents
Distributed Embedded Systems and realtime networks

16 Time Triggered Protocol

FlexRay International Workshop. Protocol Overview

A Fault Management Protocol for TTP/C

FlexRay and Automotive Networking Future

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

FlexRay Requirements Specification

Automotive and highly dependable Networks!

An Introduction to FlexRay as an Industrial Network

Institutionen för datavetenskap Department of Computer and Information Science

Various Emerging Time- Triggered Protocols for Driveby-Wire

Additional Slides (informative)

Flexray Protocol in Automotive Network Communications

Communication in Avionics

Communication Networks for the Next-Generation Vehicles

An Encapsulated Communication System for Integrated Architectures

A Comparison of TTP/C and FlexRay

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

Content. Deterministic Access Polling(1) Master-Slave principles: Introduction Layer 2: Media Access Control

Flexray Communication Controller for Intra-Vehicular Communication and Its Realization in FPGA

ISO INTERNATIONAL STANDARD. Road vehicles FlexRay communications system Part 2: Data link layer specification

An Introduction to TTEthernet

Time Triggered CAN, Implementations, Development and Testing Tools

Comparison of In-Vehicle Communication Protocols for Critical Applications

Embedded Systems. 8. Communication

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

X-by-wire systems and time-triggered protocols

Distributed System Control with FlexRay Nodes in Commercial Vehicles

Dependable Computer Systems

ASAM-MCD-2 NET (FIBEX)

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

This document is a preview generated by EVS

Hardware platform architecture

Serial Buses in Industrial and Automotive Applications

Evaluation of numerical bus systems used in rocket engine test facilities

Scheduling Mechanisms for SpaceWire Networks

Protocols for Aerospace Control Systems A Comparison of AFDX, ARINC 429, CAN, and TTP

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

Fault tolerant TTCAN networks

Distributed IMA with TTEthernet

The House Intelligent Switch Control Network based On CAN bus

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

CAN Connected To FlexRay

APPLICATIONS FLEXRAY AND ITS WILEY REAL TIME MULTIPLEXED NETWORK. Dominique Paret. dp-consulting, Paris, France. Claygate, Esher, UK

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

Automotive and industrial use cases for CAN FD

Smart Transducer Networks. Embedded Systems Engineering Armin Wasicek

Timing in the TTCAN Network

Smart Transducer Networks

A Study of Time Triggered Systems

Performance improvements of automobile communication protocols in electromagnetic interference environments

FlexRay. Requirements Specification. Version 2.1

Chapter 39: Concepts of Time-Triggered Communication. Wenbo Qiao

FlexRay Communication System in Automotives : Design and Development of Power Window Control System

A CAN-Based Architecture for Highly Reliable Communication Systems

Today. Last Time. Motivation. CAN Bus. More about CAN. What is CAN?

FlexRay and MOST Automotive Protocols

Communication Systems in Automobiles

Design of Serial Interface for Neuron Base Smart Sensors

Real-Time Communication

Mixed-Criticality Systems based on a CAN Router with Support for Fault Isolation and Selective Fault-Tolerance

Data Link Layer Technologies

In-Vehicle Network Architecture for the Next-Generation Vehicles SAE TECHNICAL PAPER SERIES

Real-Time Communications. LS 12, TU Dortmund

A Reliable Gateway for In-vehicle Networks

Controller area network

Trends in Automotive Communication Systems

DEFINITION AND IMPLEMENTATION OF AN ARCHITECTURAL CONCEPT FOR CONFIGURING A CAN NETWORK

CORBA in the Time-Triggered Architecture

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

CAN Network with Time Triggered Communication

Sharif University of Technology, Tehran, Iran

Implementation and validation of SAE J1850 (VPW) protocol solution for diagnosis application

FlexRay Analysis, Configuration Parameter Estimation, and Adversaries

CAN bus and NMEA2000 1

A. DEMĐRCĐ METU 2009 PERFORMANCE EVALUATION OF FLEXRAY NETWORKS FOR IN-VEHICLE COMMUNICATION ALĐ DEMĐRCĐ

Simulation based Timing Analysis of FlexRay Communication at System Level. Stefan Buschmann Till Steinbach Franz Korf Thomas C.

CAN-FD Flexible Data Rate CAN

Course Introduction. Purpose. Objectives. Content. Learning Time

The Time-Triggered Architecture

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

Communication (III) Kai Huang

Resistance Is Futile Electronics Are on the Rise Electronic Control Units and Communication Protocols

Analysis and Optimization of Distributed Real-Time Embedded Systems

in Mainz (Germany) Sponsored by Allen Bradley National Semiconductor Philips Semiconductors Organized by

ISO INTERNATIONAL STANDARD. Road vehicles FlexRay communications system Part 4: Electrical physical layer specification

in Mainz (Germany) Sponsored by Allen Bradley National Semiconductor Philips Semiconductors Organized by

UNDERSTANDING THE CONTROLLER AREA NETWORK (CAN)

Fault Tolerance Tradeoffs in Moving from Decentralized to Centralized Embedded Systems

In Vehicle Networking : a Survey and Look Forward

Chapter 15 Local Area Network Overview

Fault Effects in FlexRay-Based Networks with Hybrid Topology

Page 1. Real-Time Communication. TU Wien. Outline. Example of the Networks onboar a Car. Requirements on RT Communication Protocols

Controller Area Network

Model-Based Design of Automotive RT Applications

Peripheral Sensor Interface for Automotive Applications

Communication in Automotive Networks Illustrated with an Example of Vehicle Stability Program: Part I - Control Area Network

BOSCH. CAN Specification. Version , Robert Bosch GmbH, Postfach , D Stuttgart

Design and Quantitative Evaluation of a Novel FlexRay Bus Guardian

E Copyright VARAN BUS USER ORGANIZATION 06/2015. Real Time Ethernet VARAN Bus

Transcription:

Field buses (part 2): time triggered protocols Nico Fritz Universität des Saarlandes Embedded Systems 2002/2003 (c) Daniel Kästner. 1

CAN and LIN LIN CAN Type Arbitration Transfer rate Serial communication protocol event triggered Master/slave 20kbps Decentral by message priorities 20kbps 1Mbps Relative costs per node Average number of nodes 0.5 8-16 1 20-40 Embedded Systems 2002/2003 (c) Daniel Kästner. 2

Distributed real-time systems Safety-critical system demands: Determinism required: reception time of messages must be known Fault tolerance, i.e. redundant bus Higher bit rate required (faster message cycling) Example: Break-by-wire Sensor at the break pedal sends to all 4 breaks Each break sends its understanding of the sensor data to all other breaks Each brake applies the brake force appropriately Inconsistencies must be recognized and handled Some needs can t be matched by the event-triggered protocols Embedded Systems 2002/2003 (c) Daniel Kästner. 3

Time Triggered Protocols Global time Exact time point of a certain message is known (determinism) Real time capable, for safety-critical systems Each node gets a time slot in the transmission loop where only it can send a message No arbitration necessary Less flexible Examples: TTCAN Flexray TTP/C Embedded Systems 2002/2003 (c) Daniel Kästner. 4

TTCAN Enhancement of CAN to time triggered model All nodes have a global time, set by a reference message sent by a time master More than one time master with different priorities Each node knows when it should send or receive a message Each message gets its own time window A system matrix determines the time windows Embedded Systems 2002/2003 (c) Daniel Kästner. 5

TTCAN system matrix Embedded Systems 2002/2003 (c) Daniel Kästner. 6

TTCAN Possibility to include the event triggered CAN in so called arbitration windows No redundancy support Data rates must not exceed the CAN limitations Suitable for the first generation of x-by-wire systems CAN based monitoring and analyzing tools can be used Embedded Systems 2002/2003 (c) Daniel Kästner. 7

FlexRay Developed by Daimler-Chrysler, BMW and some semiconductor manufacturers in 1999 Free, not commercial Standardized Real time capable Target transfer rate: 10Mbps Synchronous and asynchronous (based on Byteflight) transmission Time triggered, no arbitration To fulfil future demands Embedded Systems 2002/2003 (c) Daniel Kästner. 8

FlexRay - Features Scalability Bus access via TDMA (Time Division Multiple Access) Deterministic data transmission, guaranteed message latency Support of optical and electrical physical layer Support of redundant transmission channels Error containment on the physical layer through independent Bus Guardians Fast error detection and signalling Up to 64 nodes on the bus Various topologies Embedded Systems 2002/2003 (c) Daniel Kästner. 9

FlexRay - Topologies Active Star: Optional redundant communication channels 1 to 1 communication connections in combination with active stars Support of wakeup via bus Support of net data rates up to 5 Mbit/sec Communication Controller and µc Redundancy ECU Bus Driver Physical 1 to 1 Communication Connection Active Star Embedded Systems 2002/2003 (c) Daniel Kästner. 10

FlexRay - Topologies Passive bus Solution with restrictions (reuse of available Physical Layer): Optional redundant communication channels Support of wakeup via bus, depends on the Physical Layer low gross data rate (similar to CAN) communication controller (and host) Redundancy Node Bus Driver passive bus Embedded Systems 2002/2003 (c) Daniel Kästner. 11

FlexRay ECU & Active Star ECU (Electrical Control Unit): CC regulates the communication between host and the bus BG is controlled by the CC and watches the time slots and other safety relevant functions Each ECU is connected to a power supply which is connected to a permanent power (vehicle battery) Active Star: No host or CC required Many bus driver needed ECU Microcontroller (Host) Communication Controller Bus Guardian Bus Bus Driver Active Star Bus Driver Bus Guardian Bus Bus Driver Bus Driver Permanent Power Power Supply Permanent Power Power Supply Embedded Systems 2002/2003 (c) Daniel Kästner. 12 Bus Bus

FlexRay Data transmission Communication cycle is divided in an static and a dynamic part Static part: For high priority messages Each node gets his time slot(s) Nodes connected to both channels and send synchronously on both Dynamic part: For lower priority messages Messages are sent according to the Byteflight protocol Variable slots Flexible TDMA Embedded Systems 2002/2003 (c) Daniel Kästner. 13

FlexRay dynamic part Byteflight protocol Some node is declared synch master The synch master determines the cycle time, so the cycle time is fixed. Current implementation: cycle time 250 µs, data rate 10Mbps Each node has one or more unique Ids A slot counter tells each node when it may send The counter is stopped during transmission Increasement after transmission or some waiting time t_wx Embedded Systems 2002/2003 (c) Daniel Kästner. 14

FlexRay Data transmission node A node B node C node D node E node F node G channel 1 sync symbol channel 2 slot 0 messages channel 1 1 2 3 4 5 6 7 8 9 1011 12 1314 15 slot 0 1 2 3 4 5 6 7 9 d a d b d c d d d e A B C B D messages channel 2 d d d e C B D static part d f E d g 1 2 3 4 5 6 7 8 9 d a A d h B d i F d j G d k C d k C 1011 1 2 3 8 9 4 5 11 communication cycle 11 d l A 12 12 d m A 12 d n 13 13 14 15 d p d o F d l A A G dynamic part 1415 d q E...... frame (static part) ID data type node frame (dynamic part) ID data type node Embedded Systems 2002/2003 (c) Daniel Kästner. 15

FlexRay Frame format ID MUX SYNC LEN DATA CRC 10 bit 1 bit 1 bit 4 bit 0...12 byte 16 bit ID: MUX: SYNC: Identifier, 10 bit, range: (1 10... 1023 10 ), defines the slot number in the static part or the priority in the dynamic part Multiplex Field, 1 bit, enables a node to transmit different messages with the same ID Synchronisation Field, 1 bit, tags the frames which will be used for the clock synchronisation LEN: Length field, 4 bit, LEN = number of used data bytes (0 10... 12 10 ) D0... D11:Data bytes, 0-12 bytes CRC: Cyclic Redundancy Check Field, 16 bit Embedded Systems 2002/2003 (c) Daniel Kästner. 16

FlexRay Frame format ID MUX SYNC LEN CYCLE DATA CRC 10 bit 1 bit 1 bit 4 bit 8 bit 0...11 byte 16 bit CYCLE: SYNC: Cycle Counter, 8 bit, range: (0 10... 255 10 ). The CYCLE-field will be used as cycle counter or as a data byte. The cycle counter will be incremented consistently in all communication controllers at the beginning of each communication cycle Synchronisation field, 1 bit, tags the frames which contain the cycle counter D0... D10: Data bytes, 0-11 bytes Embedded Systems 2002/2003 (c) Daniel Kästner. 17

FlexRay - Synchronisation Only possible in the static part of the transmission cycle Pure dynamical systems are synchronized by a bus master A failing bus master must be handled on application level At start-up a node waits for timeout and sends its messages. As soon as another node synchronizes on that message communication begins Embedded Systems 2002/2003 (c) Daniel Kästner. 18

TTP/C TTP/C = Time Triggered Protocol Class C (hard real-time system) Part of the Time-Triggered Architecture (TTA) Designed as a solution for safety-critical applications Scaled-down version called TTP/A (soft real-time systems) Designed by the TTA-Group Development begun in the early 80 s (university of Vienna) Airbus, Audi, VW, Renault, TTTech, Delphi, Esterel,... Goal Safety critical protocol with low costs Target applications are for example X-by-wire Data rate: 25Mbps with today's controllers Embedded Systems 2002/2003 (c) Daniel Kästner. 19

TTP/C - Features Autonomous fault-tolerant message transport with known delay between nodes of a cluster Messages are send host independent, the host only provides the data Membership for nodes: Every node is informed about the health state of every other node Defective nodes are excluded from membership until they restart with a correct protocol state Clique avoidance Detect and eliminate formation of cliques Fault tolerant clock synchronization Embedded Systems 2002/2003 (c) Daniel Kästner. 20

TTP/C - Features Topologies (same as mentioned with FlexRay) Active star Passive bus Combinations Shadow nodes: Can take the place of former failed active nodes So if an active node fails it can be deactivated and replaced by its shadow node Embedded Systems 2002/2003 (c) Daniel Kästner. 21

TTP/C - Node Any host only communicates through TTP/Ccontrollers Controller synchronizes on its own by comparing with the MEDL and adjusting Host CPU TTP/C Controller TTP/C-Bus Communications Network Interface (CNI) Protocol Processor Driver Bus Guardian Driver ROM (TTP/C Data Controlling (MEDL)) Embedded Systems 2002/2003 (c) Daniel Kästner. 22

TTP/C - MEDL MEDL = Message Descriptor List Control information are saved there at initialisation, so that a controller can work without getting control signals by the host Data: For each message to send the time point and the CNI address For reception the time point and the CNI address Additional control flow information Embedded Systems 2002/2003 (c) Daniel Kästner. 23

TTP/C - Frames I-Frames are used for initialisation and resynchronisation C-State is the current controller state including global time, MEDL position and current mode N-Frames are used to send data All frames contain a CRC field for error detection I-Frame C-State N-Frame Embedded Systems 2002/2003 (c) Daniel Kästner. 24

TTP/C Cluster Cycle A cluster cycle contains several TDMA rounds A TDMA round contains several node slots The message a node sends in its slot varies in different TDMA rounds A node slot can be multiplexed, i.e. used by different nodes in different TDMA rounds Embedded Systems 2002/2003 (c) Daniel Kästner. 25

FlexRay vs. TTP/C FlexRay: More flexible (free specification of synch. and asynchronous part) Some safety features not within the controller but left to the application Still under development TTP/C: More integrated safety features Less flexible (no asynchronous transmission) More mature Already 20 years of development and testing 2nd generation controllers available Lower implementation costs (only one guardian per node) Embedded Systems 2002/2003 (c) Daniel Kästner. 26

Summary For safety-related systems time-triggered protocols are needed because of their determinism Future applications demand an increase in band with, so high data rates must be supported TTCAN is only a temporary solution FlexRay is more flexible than its competitor TTP/C but is still under development TTP/C is the most mature protocol for future safetycritical systems at the moment Embedded Systems 2002/2003 (c) Daniel Kästner. 27

References Bussyteme im Automobil, Thomas Dohmke TTP High-Level Specification Document, TTTech The Time-triggered architecture, H.Kopetz, G.Bauer A Comparison of Bus Architectures for Safety-critical Embedded Systems, J.Rushby Time Triggered Communication on CAN, Bosch www.flexray-group.com (docs and presentations) www.tta-group.org Embedded Systems 2002/2003 (c) Daniel Kästner. 28