
FlexRay and its Applications
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions


Person
Content
List of Abbreviations xvii
Part A 'SECURE REAL TIME' APPLICATIONS
1 Reminders about the CAN Protocol 3
1.1 The Limitations of CAN 3
1.2 'Event-Triggered' and 'Time-Triggered' Aspects 4
2 The TTCAN Protocol 7
2.1 TTCAN - ISO 11898-4 7
2.2 Session Layer 8
2.3 Principle of Operation of TTCAN 8
3 Emergence of 'X-by-Wire' Systems 11
3.1 High Throughput and X-by-Wire 11
3.2 Redundancy 11
3.3 High-Level Application Requirements 13
3.4 High-Level Functional Requirements 14
Part B THE FLEXRAY CONCEPT AND ITS COMMUNICATION PROTOCOL
4 The Genesis of FlexRay 19
4.1 The TTP/C Protocol 19
4.2 FlexRay 20
4.3 The FlexRay Consortium 20
4.4 The Aim of FlexRay 23
5 FlexRay and Real Time 29
5.1 Physical Time 29
5.2 Local Time 30
5.3 Global View at Network Level - Global Time 32
5.4 Summarising: Time and its Hierarchies in FlexRay 36
6 The FlexRay Protocol 41
6.1 History 41
6.2 General - Channels, Cycles, Segments and Slots 41
6.3 Channels and Cycles 44
6.4 Segments 47
6.5 Communication Frames 57
6.6 'SW - Symbol Window' Segment 74
6.7 'NIT - Network Idle Time' Segment 76
7 Access to the Physical Layer 77
7.1 Definition of Tasks 77
7.2 Execution of the Communication Cycle 80
7.3 Frame ID (11 Bits) 80
7.4 Arbitration Grid Level 81
7.5 Conditions of Transmission and Access to the Medium during the Static Segment 83
7.6 Conditions of Transmission and Access to the Medium during the Dynamic Segment 84
7.7 Similarity of the Use of the Dynamic Segment to the Network Access of the CAN Protocol 88
7.8 Some Additions in the Case of FlexRay Being Used with Two Channels 89
Appendices of Part B 91
Appendix B1 Examples of Applications 93
The BMW X5 (Development Code L6) 93
A Little Strategy 93
Global View of the Parameters of the FlexRay System 95
Desired Functional Parameters 96
Description and Justification of the Implemented Choice 97
Appendix B2 Scheduling Problems - Application of the FlexRay Protocol to Static and Dynamic Segments 103
Introduction 103
Problems of 'Real Time' Systems 104
FlexRay 108
Scheduling Real Time Systems 109
Different Approaches to Real Time Scheduling 113
Scheduling in Single-Processor Systems 116
Algorithms Based on Priorities 116
Scheduling Communications in Distributed Systems 120
Problem of Task Allocation in a Distributed System 121
Scheduling Communications 121
Policy of Assigning Priorities 126
Class of Scheduling Problem 127
Scheduling Algorithm 128
Conclusion 129
Part C THE FLEXRAY PHYSICAL LAYER
8 Creation and Transmission (Tx) of the FlexRay Signal 135
8.1 Creation of the Signal 135
8.2 Physical Representation of Bits 136
8.3 Line Driver 'Tx' 138
9 Medium, Topology and Transport of the FlexRay Signal 143
9.1 Medium 143
9.2 Effects Linked to Propagation 146
9.3 Topologies and Consequences for Network Performance 147
9.4 Single-Channel, Dual-Channel and Multi-Channel Communication Topologies 151
9.5 The FlexRay Topologies 153
9.6 Examples of Topologies 159
10 Reception of the FlexRay Signal 165
10.1 Signal Reception Stage 165
10.2 Processing of the Received Signal by the Communication Controller 170
11 The Bit Error Rate (BER) 175
11.1 Integrity of Signal and BER 175
11.2 Eye Diagram 175
11.3 Relationship between the Integrity of the Signal, the Eye Diagram and the BER 180
12 Modelling and Simulating the Performance of a Network 185
12.1 Modelling and Simulating the Performance of a Network and its Topology 185
12.2 Modelling the Elements of the Network 185
12.3 Simulation 188
13 Summary on the Physical Layer of FlexRay 193
Part D SYNCHRONISATION AND GLOBAL TIME
14 Communication Cycle, Macrotick and Microtick 197
14.1 The FlexRay Time Hierarchy 197
14.2 Synchronisation in a Network of TDMA-FlexRay Type 198
14.3 Proposed Solution to the Problem 202
14.4 Application and Implementation of Corrective Values 214
14.5 Summary 218
15 Network Wakeup, Network Startup and Error Management 223
15.1 Network Wakeup Phase 223
15.2 Network Startup Phase 225
15.3 Error Management 226
16 FlexRay v3.0 231
16.1 Protocol Enhancements 231
16.2 Physical Layer Enhancements 235
16.3 FlexRay and ISO 239
16.4 FlexRay in Other Industries 240
Part E ARCHITECTURE OF A NODE, COMPONENTS AND DEVELOPMENT AID TOOLS
17 Architecture of a FlexRay Node 245
17.1 The Major Components of a Node 245
17.2 Architecture of the Processor and Protocol Manager 245
18 Electronic Components for the FlexRay Network 249
18.1 The Component Range 249
18.1.1 FlexRay Protocol Manager 250
18.2 EMC and EMC Measurements 263
18.3 Protection from ESD 265
18.4 Conformity Tests 265
18.5 Bus Guardian 267
19 Tools for Development, Integration, Analysis and Testing 271
19.1 The V-Shaped Development Cycle 271
19.2 DaVinci Network Designer (Point 1 of the V Cycle) 271
19.3 CANoe.FlexRay 273
19.4 FlexRay CANalyzer (Covers Points 2, 4 and 5 of the V Cycle) 276
19.5 Test and Diagnostics (Point 6 of the V Cycle) 277
19.6 Features of the FlexRay Protocol 278
19.7 Communication Interface 280
20 Implementation of FlexRay Communication in Automotive Logic Controllers 283
20.1 FlexRay and AUTOSAR 283
20.2 The AUTOSAR Partnership 284
20.3 Communication in an AUTOSAR System 284
Appendix of Part E 291
21 Conclusion 297
Appendix 1 The Official Documents 299
Appendix 2 Principal Parameters of the FlexRay Protocol 301
Bibliography 311
Index 313
Chapter 1
Reminders about the CAN Protocol
As an introduction to this chapter, we will remind you of some general points about all the architectures of embedded systems, and starting from now we will take a very surprising turn by passing judgement on the properties of the well-known controller area network (CAN) protocol, presenting its principal limitations and finally imagining solutions which open up new horizons for decades to come.
1.1 The Limitations of CAN
Firstly, the concept of CAN, which was designed almost 30 years ago, is perfect for current applications, and will remain perfect for very many applications. However, time passes, and some of the inherent limitations of CAN, which have been known since its genesis, are now clearly visible. They are:
- Limitations of bit rate – Since it began, the maximum gross bit rate of CAN has been limited to 1 Mbit/s, and forthcoming and future application fields of embedded multiplexed networks require higher gross bit rates, of the order of 5–10 Mbit/s, either for purely functional reasons of timing or because of saturation of communication capacity. Everything must therefore be rebuilt. The word ‘everything’ in the previous sentence probably surprises you, but it's true! In fact, everything must be rethought and rebuilt, because 1 Mbit/s, the maximum bit rate value for CAN, corresponds in practice to the limit of a technical philosophy in which it was still possible to avoid talking too much about the phenomena and/or effect of line propagation, reflection coefficient, stubs, Smith's abacus, and so on. Beyond this value, when designing protocols and their physical layers, it is impossible to avoid considering and taking account of these physical parameters and their effects.
- Limitations of distance and topological flexibility – It should also be noted that the 1 Mbit/s maximum value of CAN is related to the structure of the acknowledgement bit of the protocol. In fact, so that the protocol functions correctly, it is necessary to be certain that the sum of the outgoing and incoming times of the signal allows the acknowledgement signal to fall within the duration of the bit. This special feature of the protocol imposes limits on the propagation time, and therefore a maximum distance, between nodes which are present on the network, but it also excludes some topological possibilities and solutions involving propagation asymmetries according to which branches of networks are used.
- Limitations of the possibility of topological redundancy – This point is linked to the two previous ones (distance and acknowledgement). Creating a network which makes it possible to provide redundancy of communication at the level of physical layers according to a CAN architecture/topology is difficult, not to say impossible. Consequently, it seems futile to hope to implement systems which are entirely controlled using links which function according to the famous ‘X-by-Wire’ (everything by wire) concept, which we will describe in detail in a later chapter.
- Limitations of access to the medium in real time – As we will show and/or remind you later, CAN has a strong ‘event-oriented’ orientation. The phases of communication on the network are mainly initiated by sporadic, random, probable, and so on events. Also, CAN lacks a ‘real time’ orientation, or in other words a philosophy with a ‘time-oriented’ orientation; that is, one in which the communication phases are initiated as a function of a clock, a date, a fixed instant. To get round that while preserving the structure of CAN, one of the first responses was the creation, by the R. Bosch company, of a higher-level application layer called ‘TTCAN’ or time-triggered communication on CAN, which is initiated by events in time, to refresh CAN a little (see Chapter 2).
It should be noted that all these points have been covered by the appearance of the FlexRay concept, which we will describe in detail later.
1.2 ‘Event-Triggered’ and ‘Time-Triggered’ Aspects
1.2.1 The Probabilistic Side of CAN
By its design and structure, the CAN protocol encourages transmission of communication frames when events occur at a node of the network. This is what is called an ‘event-triggered’ system. In fact, often a participant sends a message following an action, a reaction or a request for information as a function of the requirements of the intended application and/or of its own task.
As we explained in numerous previous works, CAN messages are prioritised (offline) by the system designer, using values which the designer has chosen to assign to the identifiers of the communication frames. On this principle, at a given instant, no node can be certain that its message is transmitted immediately, because of the conflict management and arbitration resulting from the values of the competing identifiers at this precise moment of access to the network. This type of concept and the management of it give transmission of messages on the network in CAN a strong ‘probabilistic’ emphasis, because it is subject to the arbitration procedure. The latter is a function of the respective values of the competing message identifiers at the time of the attempt to access, and then seize, the bus or medium, which makes the timing of this transmission – and the associated latency time – very dependent on the probability of the appearance of the respective values of the identifiers.
The only true CAN message which is truly ‘deterministic’ is the message with the identifier hex 0000, since, for this identifier value only, the latency time is strictly known, and its value is ‘one CAN frame minus one bit plus the inter-frame time (3 bits) …’, since, to within a bit, this (highest priority) message could not access the network last time round.
For other messages (identifiers other than hex 0000), that depends on big ideas of scheduling, obscure calculations of probability applied to the respective values of the activity model of the network, and to the appearance of the respective values of the competing message identifiers. Also, the probability of this arbitration phase taking place is excessively high, since each time the medium is occupied – as is very often the case – all the other nodes which have been unable to access it wait for the propitious moment to try to get it back, and all starting at the same moment, just after the inter-frame phase required by the CAN protocol, are all immediately subjected to the arbitration procedure.1
The problem then occurs when what is wanted is to communicate – transmit or receive – definitely, at a precise, predetermined instant, so that the timing is deterministic. In principle, nothing in CAN permits this. Consequently, it is necessary to create new systems, certain actions of which are triggered spontaneously at precise instants. These are usually called ‘time-triggered’ (TT) systems; that is, in our case three principal concepts, TTCAN, TTP/C (or Time Triggered Protocol Class C) and FlexRay, which we will explain in detail below.
1.2.2 The Deterministic Side of Applications
In very many applications, it is or becomes necessary to trigger certain actions spontaneously at precise instants. Such systems are called ‘time-triggered’ or systems functioning in so-called ‘real time’ mode. When systems must function in ‘real time’ (which in principle does not exist and is merely an abuse of language2), the big problem occurs when what is wanted is to be sure of communicating – transmitting or receiving – at a predetermined instant, or in specific time slots, thus adding a ‘deterministic’ aspect to communication.
As already mentioned, in principle nothing in CAN makes it possible to guarantee this. In these cases, it is therefore necessary to set up a mini real time ‘operating system’ of TT type, for example on the higher layers of the OSI (Open Systems Interconnection) model (at layer 5, ‘session’ or layer 7, ‘application’) or to integrate or encapsulate this type of function into a definition of the protocol which is capable of solving all or part of this problem.
To do this, customarily, so that information can circulate on the network, specific, well-defined time windows are used. How these time windows are implemented is, in principle, completely free and non-limiting. The only specific point consists of ensuring that all the participants are perfectly synchronised, so that each can talk or respond in its turn without overlapping into the time windows of its neighbours. To do this, it is generally necessary either to transmit a ‘reference clock’ cyclically to the whole network so that each participant resets its clock or to synchronise the clocks of all participants.
Notes
1 We refer anyone who is interested in this subject to the numerous publications written by Mr Laurent George.
2 To remove any doubt, the term ‘real time’ is customarily understood as actually implying ‘time with known latency’, that is it...
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.