ArticleslgStudy

computer science

FlexRay

FlexRay is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand FlexRay rather than just read about it. In short: FlexRay is an automotive network communications protocol developed by the FlexRay Consortium to govern on-board automotive computing. It is designed to be faster and more reliable than CAN and TTP, but it is also more expensive.

Key takeaways

  • FlexRay belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect FlexRay to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of FlexRay from memory before moving on to harder problems.

Reference excerpt

FlexRay is an automotive network communications protocol developed by the FlexRay Consortium to govern on-board automotive computing. It is designed to be faster and more reliable than CAN and TTP, but it is also more expensive. The FlexRay consortium disbanded in 2009, but the FlexRay standard is now a set of ISO standards, ISO 17458-1 to 17458-5. FlexRay is a communication bus designed to ensure high data rates, fault tolerance, operating on a time cycle, split into static and dynamic segments for event-triggered and time-triggered communications. It is mainly used in aeronautic and automotive sectors.

Features FlexRay supports data rates up to 10 Mbit/s, explicitly supports both star and bus physical topologies, and can have two independent data channels for fault-tolerance (communication can continue with reduced bandwidth if one channel is inoperative). The bus operates on a time cycle, divided into two parts: the static segment and the dynamic segment. The static segment is preallocated into slices for individual communication types, providing stronger determinism than its predecessor CAN. The dynamic segment operates more like CAN, with nodes taking control of the bus as available, allowing event-triggered behavior.

Consortium The FlexRay Consortium was made up of the following core members:

Freescale Semiconductor Bosch NXP Semiconductors BMW Volkswagen Daimler General Motors There were also Premium Associate and Associate members of FlexRay consortium. By September 2009, there were 28 premium associate members and more than 60 associate members. At the end of 2009, the consortium disbanded.

Commercial deployment The first series production vehicle with FlexRay was at the end of 2006 in the BMW X5 (E70), enabling a new and fast adaptive damping system. Full use of FlexRay was introduced in 2008 in the new BMW 7 Series (F01).

Vehicles Audi A4 (B9) (2015–) Audi A5 (F5) (2016–) Audi A6 (C7) (2011–2018) Audi A7 Audi A8 (D4) (2010–2017) Audi Q7 (2015–) Audi TT Mk3 (2014–2023) Audi R8 (2015–2023) Audi e-tron GT (F8) Bentley Flying Spur (2013-2019) Bentley Mulsanne (2010–2020) BMW X5 (E70) (2006–2013) BMW X6 (E71) (2008–2014) BMW 1 Series BMW 3 Series BMW 5 Series (2009–2017) BMW 6 Series (2011–2018) BMW 7 Series (2008–2015) Lamborghini Huracán Mercedes-Benz S-Class (W222) (2013–2020) Mercedes-Benz S-Class (C217) (2014–2020) Mercedes-Benz E-Class (W213) (2016–2023) Mercedes-Benz C-Class (W205) (2015-2023) Mercedes-Benz C-Class (W206) (2021–) Mercedes-Benz S-Class (W223) (2020–) Rolls-Royce Ghost (2009–) Land Rover Volvo XC90 (2015–)

Details

Clock The FlexRay system consists of a bus and electronic control units (ECUs). Each ECU has an independent clock. The clock drift must be not more than 0.15% from the reference clock, so the difference between the slowest and the fastest clock in the system is no greater than 0.3%. This means that, if ECU-s is a sender and ECU-r is a receiver, then for every 300 cycles of the sender there will be between 299 and 301 cycles of the receiver. The clocks are resynchronized frequently enough to assure that this causes no problems. The clock is sent in the static segment.

Bits on the bus

At each time, only one ECU writes to the bus. Each bit to be sent is held on the bus for 8 sample clock cycles. The receiver keeps a buffer of the last 5 samples, and uses the majority of the last 5 samples as the input signal. Single-cycle transmission errors may affect results near the boundary of the bits, but will not affect cycles in the middle of the 8-cycle region.

Sampled bits The value of the bit is sampled in the middle of the 8-bit region. The errors are moved to the extreme cycles, and the clock is synchronized frequently enough for the drift to be small. (Drift is smaller than 1 cycle per 300 cycles, and during transmission the clock is synchronized more than once every 300 cycles.)

Frame All the communication is sent in the form of frames. The message consists of bytes {x0,x1,…,xm−1}, packed in the following way:

Transmission Start Signal (TSS) – bit 0 Frame Start Signal (FSS) – bit 1 m times: Byte Start Signal 0 (BSS0) – bit 1 Byte Start Signal 1 (BSS1) – bit 0 0th bit of i-th byte 1st bit of i-th byte 2nd bit of i-th byte ... 7th bit of i-th byte Frame End Signal (FES) – bit 0 Transmission End Signal (TES) – bit 1 If nothing is being communicated, the bus is held in state 1 (high voltage), so every receiver knows that the communication started when the voltage drops to 0. The receiver knows when the message is complete by checking whether BSS0 (1) or FES (0) was received. Note that 8-cycle per bit has nothing to do with bytes. Each byte takes 80 cycles to transfer. 16 for BSS0 and BSS1 and 64 for its bits. Also note that BSS0 has value 1, and BSS1 has value 0.

Clock synchronization Clocks are resynchronized when the voted signal changes from 1 to 0, if the receiver was in either idle state or expecting BSS1. As synchronization is done on the voted signal, small transmission errors during synchronization that affect the boundary bits may skew the synchronization no more than 1 cycle. As there are at most 88 cycles between synchronization (BSS1, 8 bits of the last byte, FES and TES - 11 bits of 8 cycles each), and the clock drift is no larger than 1 per 300 cycles, the drift may skew the clock no more than 1 cycle. Small transmission errors during the receiving may affect only the boundary bits. So in the worst case the two middle bits are correct, and thus the sampled value is correct. Here's an example of a particularly bad case - error during synchronization, a lost cycle due to clock drift and error in transmission. Errors that happened in the example:

Because of a single-bit error during synchronization, the synchronization was delayed by 1 cycle Receiver clock was slower than sender clock, so receiver missed one cycle (marked X). This will not happen again before the next synchronization due to limits on maximum allowable clock drift. Because of a single-bit error during transmission, a bit was voted wrongly near the result. Despite so many errors, the communication was received correctly. The green cells are sampling points. All except the first are synchronized by the 1->0 edge in the transmission fragment shown.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with FlexRay

Start with the simplest possible case. Write down what FlexRay claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to FlexRay before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about FlexRay ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of FlexRay

In research
FlexRay appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses FlexRay in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
FlexRay is common in secondary-school and first-year university syllabi. It links to neighbouring topics Network protocols, so understanding it makes those chapters shorter.
In everyday life
Look for FlexRay outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “FlexRay” →

How to study FlexRay in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what FlexRay means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain FlexRay out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is FlexRay in simple terms?

FlexRay is an automotive network communications protocol developed by the FlexRay Consortium to govern on-board automotive computing. It is designed to be faster and more reliable than CAN and TTP, but it is also more expensive.

Why does FlexRay matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study FlexRay?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on FlexRay.

Tags

  • Network protocols

Keep exploring