SlideShare a Scribd company logo
.
.
.
The FlexRay protocol
Master Of Control Systems
Wissam Kafa
June 17, 2014
Outline
1 Introduction
2 Why FlexRay?
3 Network Topology
4 Structure of a FlexRay Node
5 FlexRay configuration: Cycle Segments
6 Clock Synchronization
7 Summary-Conclusion
.
.
.Wissam Kafa | HIAST 2/26
1 Introduction
• FlexRay: A Communication Protocol in distributed systems within
automotive context.
• developed by the FlexRay consortium (BMW, DaimlerChrysler, Mo-
torola, Philips) founded in 1999.
• since 1999 many well-known companies joined (e.g. Bosch, GM,
VW, Mazda, etc.)
• aim: fast, flexible, fault-tolerant communication protocol.
• FlexRay was used for the first time in BMW X5 model in 2007.
.
.
.Wissam Kafa | HIAST 3/26
2 Why FlexRay?
• X-by-wire Technique
steer-by-wire, brake-by-wire,. . .
• Hydraulic steering and braking is replaced by an electronic system
of sensors and actuators.
• Over years these new tasks have increased the requirements of the
communication between control units.
• CAN is not sufficient any more.
Real-time capabilities are not supported because of bit arbitra-
tion
.
.
.Wissam Kafa | HIAST 4/26
3 Network Topology
Figure 1: some possible FlexRay Network topologies (a) Passive bus. (b)
Active star. (c) Hybrid topology
.
.
.Wissam Kafa | HIAST 5/26
Passive Bus Topology
Figure 2: Passive Bus Topology
A node can be connected to one or both channels A and B.
.
.
.Wissam Kafa | HIAST 6/26
Active Star Topology
Figure 3: Active Star Topology
- free of closed rings.
- Received Signal is driven to all connected nodes.
- A node could be connected to a maximum of two star couplers.
.
.
.Wissam Kafa | HIAST 7/26
Hybrid Topology
Figure 4: Hybrid Topology
.
.
.Wissam Kafa | HIAST 8/26
4 Structure of a FlexRay Node
Figure 5: Structure of a FlexRay Node
.
.
.Wissam Kafa | HIAST 9/26
FlexRay Node: Host Controller
- Processor to execute the main application.
- It processes the received data.
- Decides what to do, and what to be
sent to the communication controller
.
.
.Wissam Kafa | HIAST 10/26
FlexRay Node: Communication Controller
- Realizes all functions of the FlexRay pro-
tocol.
- Receives data that should be sent from the
host controller.
- Decides what to do, and what to be sent
to the communication controller.
- Handles the data according to the FlexRay
protocol, and sends them to the bus driver
.
.
.Wissam Kafa | HIAST 11/26
FlexRay Node: Bus Guardian
- Changes in the supply of a node could oc-
cur.
This could cause defects on the bus.
- Important for the fault-tolerance of the
FlexRay.
- Bus guardian could prevent these defects.
- It organizes sending the data on the bus.
- It prevents the node from sending and re-
ceiving outside its time slots.
- It can Recognize synchronization and com-
munication errors
.
.
.Wissam Kafa | HIAST 12/26
FlexRay Node: Bus Driver
- Responsible for the connection between
the FlexRay nodes and the bus.
- Sends Data to the Bus.
- Receives Data from the Bus.
.
.
.Wissam Kafa | HIAST 13/26
5 FlexRay configuration: Cycle Segments
Figure 6: FlexRay Cycle Segment
.
.
.Wissam Kafa | HIAST 14/26
FlexRay configuration: Cycle Segments
- The communication on the bus passes in
cycles.
- Each cycle can be divided into three seg-
ments:
- Static segment.
- Dynamic segmentand.
- Symbol segment.
- A cycle is terminated by a network idle
time, the NIT.
- A typical FlexRay cycle takes about 2.5ms.
.
.
.Wissam Kafa | HIAST 15/26
Cycle Segments: Static Segment
- The static segment is time triggered.
- It is divided into time slots, Each slot has:
- A fixed length.
- ID assigned to a specific control unit.
- Hard real-time requirements possible by
guaranteed latency.
- No delays or collisions could occur.
- A node can be allocated to more than one
slot by clever distribution of slot IDs.
- A Hard real-time application which should
be realized in the static segment:
- Explosion of the airbag.
.
.
.Wissam Kafa | HIAST 16/26
Cycle Segments: Dynamic Segment
- For reacting flexibly on specific events.
- Event triggered segment.
- It is also divided into slots with IDs.
-If the ID of the actual slot corresponds with
the ID of the control unit, then the control
unit is allowed to send data.
- If a longer message has to be sent, the
time slot of the next node shifts backwards.
- An application for the dynamic segment:
The control of the wipers depending
on the rain sensor.
.
.
.Wissam Kafa | HIAST 17/26
Cycle Segments: The symbol segment
- In the symbol segment:
FlexRay sends internal control infor-
mation (starting the network).
.
.
.Wissam Kafa | HIAST 18/26
Cycle Segments: NIT and Frames
Figure 7: FlexRay-Frame
- The Network Idle Time is used for the synchronization of the clocks.
- Each slot corresponds to one frame.
- A frame can contain up to 254 bytes of data.
.
.
.Wissam Kafa | HIAST 19/26
6 Clock Synchronization
- Large temperature differences, voltage changes and production
tolerances have a negative influence on the accuracy of the clocks.
- A regular synchronization, especially for real-time and time-critical
applications is essential.
- For correct Operation, each node has to know the start time, the end
time and the number of the actual slots.
- Therefore, all nodes need a common time base.
- The Data rate also depends on the synchronization.
- The synchronization of FlexRay is an internal synchronization algorithm
and is most likely the midpoint algorithm.
.
.
.Wissam Kafa | HIAST 20/26
Clock Synchronization
- The problem is divided into two aspects:
- Nodes have to compound on a common time (offset correction).
- Nodes have to adjust the time deviation between them (rate
correction).
- Each nodes communication controller has a local clock.
counts in micro-ticks.
- For example a FlexRay network with 10MBit/s scans the bus with
80MHz. One tick of the oscillator correspond 0.0124 us. A micro-tick is
typical twice this time.
- The synchronization of the offset, as well as the rate correction uses
micro-ticks as smallest time unit.
.
.
.Wissam Kafa | HIAST 21/26
7 Summary-Conclusion
• FlexRay focuses on a set of core needs for todays automotive indus-
try.
• Higher data rates than previous standards.
• very flexible network topology.
• fault-tolerant operation.
• FlexRay thus delivers the speed and reliability required for next-
generation in-car control systems.
.
.
.Wissam Kafa | HIAST 22/26
Summary-Conclusion
• The CAN network has reached its highest performance levels with
a maximum speed of 1 Mbps.
• With a maximum data rate of 10 Mbps available on two channels,
A gross data rate of up to 20Mbit/sec.
• Time and Event Triggered Protocol.
.
.
.Wissam Kafa | HIAST 23/26
Summary-Conclusion
Figure 8: Vehicle-Network-Standards
.
.
.Wissam Kafa | HIAST 24/26
Summary-Conclusion
Figure 9: Comparision (LIN, CAN, FlexRay)
.
.
.Wissam Kafa | HIAST 25/26
.
.
.
Thanks!

More Related Content

PPT
CAN (Controller Area Network) Bus Protocol
PPTX
PPTX
PPTX
Solar based wireless charging of electric vehicle
PPTX
Electronic Control Unit(ECU)
PDF
Network time protocol
PPTX
Wireless charging of Electric Vehicles (IEEE Paper 2017)
CAN (Controller Area Network) Bus Protocol
Solar based wireless charging of electric vehicle
Electronic Control Unit(ECU)
Network time protocol
Wireless charging of Electric Vehicles (IEEE Paper 2017)

What's hot (20)

PDF
FlexRay
PPTX
Controller Area Network(CAN)
PPTX
Controller area network -ppt
PPTX
Controller area network (can bus)
PPTX
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
PPT
Role of CAN BUS in automotives
PPT
Controller area network (CAN bus) ppt
PPTX
What is AUTOSAR Communiation Stack
PPTX
Controller Area Network (Basic Level Presentation)
PDF
Can Protocol For Automobiles
ODP
Control Area Network
PDF
Automotive bus technologies
PPT
CAN- controlled area network
PPTX
Overview of automotive network protocol
PPTX
Local Interconnect Network
PDF
Embedded Systems in Automotive
PPT
LIN protocol description
PPTX
flexray technology in modern cars
FlexRay
Controller Area Network(CAN)
Controller area network -ppt
Controller area network (can bus)
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
Role of CAN BUS in automotives
Controller area network (CAN bus) ppt
What is AUTOSAR Communiation Stack
Controller Area Network (Basic Level Presentation)
Can Protocol For Automobiles
Control Area Network
Automotive bus technologies
CAN- controlled area network
Overview of automotive network protocol
Local Interconnect Network
Embedded Systems in Automotive
LIN protocol description
flexray technology in modern cars
Ad

Viewers also liked (9)

PDF
Configuring the communication on FlexRay: the case of the static segment
PPTX
Building ADAS system from scratch
PDF
RTL Presentation by Pr. John Connor
PDF
Flexray
PPT
Altera Cyclone IV FPGA Customer Presentation
PDF
Advanced Driver Assistance System using FPGA
PDF
FPGA Design with Python and MyHDL
PDF
20 Inspiring Quotes From William Zinsser's "On Writing Well"
PPTX
The Best Startup Investor Pitch Deck & How to Present to Angels & Venture Cap...
Configuring the communication on FlexRay: the case of the static segment
Building ADAS system from scratch
RTL Presentation by Pr. John Connor
Flexray
Altera Cyclone IV FPGA Customer Presentation
Advanced Driver Assistance System using FPGA
FPGA Design with Python and MyHDL
20 Inspiring Quotes From William Zinsser's "On Writing Well"
The Best Startup Investor Pitch Deck & How to Present to Angels & Venture Cap...
Ad

Similar to The flex ray protocol (20)

PDF
Voltaire ufm en_nov10
PDF
Tổng quan công nghệ Net backup - Phần 2
PPT
VANETS Vehicular Adhoc NETworkS
PDF
Sesar swim master class best in class 2014 overview of the submissions
PDF
IoT Harbour solutions & smart ports by Vertical M2M with CommonSense IoT Plat...
PPT
5G Enabled Vehicular Networks
PDF
Comtech advanced backhaul_solutions-rio_nov_2012
PPT
OpenPOWER Webinar
PPT
z/VM Performance Analysis
PPTX
The new imperative in the data center with workload centric networking
PDF
Understand LPWA tetchnologies (Sigfox and LoRa)
PPTX
Urban traffic management system assignment 2
PDF
Do We Really Need TSN in Next-Generation Helicopters? Insights From a Case-Study
PDF
New industrial networks in cars
PPTX
111ei0254ppt8thsem
PPTX
Data center network reference architecture with hpe flex fabric
ODP
DB2 Data Sharing Performance
PPTX
Vision one-customer
PPTX
BGP FlowSpec experience and future developments
PDF
ST Engineering iDirect Solution Overview Integrasys Alusat
Voltaire ufm en_nov10
Tổng quan công nghệ Net backup - Phần 2
VANETS Vehicular Adhoc NETworkS
Sesar swim master class best in class 2014 overview of the submissions
IoT Harbour solutions & smart ports by Vertical M2M with CommonSense IoT Plat...
5G Enabled Vehicular Networks
Comtech advanced backhaul_solutions-rio_nov_2012
OpenPOWER Webinar
z/VM Performance Analysis
The new imperative in the data center with workload centric networking
Understand LPWA tetchnologies (Sigfox and LoRa)
Urban traffic management system assignment 2
Do We Really Need TSN in Next-Generation Helicopters? Insights From a Case-Study
New industrial networks in cars
111ei0254ppt8thsem
Data center network reference architecture with hpe flex fabric
DB2 Data Sharing Performance
Vision one-customer
BGP FlowSpec experience and future developments
ST Engineering iDirect Solution Overview Integrasys Alusat

Recently uploaded (20)

PDF
Volvo EC290C NL EC290CNL Hydraulic Excavator Specs Manual.pdf
DOCX
lp of food hygiene.docxvvvvvvvvvvvvvvvvvvvvvvv
PPTX
laws of thermodynamics with complete explanation
PPTX
Lecture 3b C Library xnxjxjxjxkx_ ESP32.pptx
PPTX
Fire Fighting Unit IV industrial safety.pptx
PDF
higher edu open stores 12.5.24 (1).pdf forreal
PPTX
UNIT-2(B) Organisavtional Appraisal.pptx
PDF
Physics class 12thstep down transformer project.pdf
PDF
MANDIBLE (1).pdffawffffffffffffffffffffffffffffffffffffffffff
PPTX
laws of thermodynamics with diagrams details
PPTX
TOEFL ITP Grammar_ Clausessssssssssssssssss.pptx
PPTX
Gayatri Cultural Educational Society.pptx
PDF
3-REasdfghjkl;[poiunvnvncncn-Process.pdf
PDF
Delivers.ai: 2020–2026 Autonomous Journey
PDF
Caterpillar Cat 315C Excavator (Prefix ANF) Service Repair Manual Instant Dow...
PDF
Caterpillar CAT 311B EXCAVATOR (8GR00001-UP) Operation and Maintenance Manual...
PDF
Volvo EC20C Excavator Service maintenance schedules.pdf
PDF
Volvo EC300D L EC300DL excavator weight Manuals.pdf
PPT
Your score increases as you pick a category, fill out a long description and ...
PPT
Kaizen for Beginners and how to implement Kaizen
Volvo EC290C NL EC290CNL Hydraulic Excavator Specs Manual.pdf
lp of food hygiene.docxvvvvvvvvvvvvvvvvvvvvvvv
laws of thermodynamics with complete explanation
Lecture 3b C Library xnxjxjxjxkx_ ESP32.pptx
Fire Fighting Unit IV industrial safety.pptx
higher edu open stores 12.5.24 (1).pdf forreal
UNIT-2(B) Organisavtional Appraisal.pptx
Physics class 12thstep down transformer project.pdf
MANDIBLE (1).pdffawffffffffffffffffffffffffffffffffffffffffff
laws of thermodynamics with diagrams details
TOEFL ITP Grammar_ Clausessssssssssssssssss.pptx
Gayatri Cultural Educational Society.pptx
3-REasdfghjkl;[poiunvnvncncn-Process.pdf
Delivers.ai: 2020–2026 Autonomous Journey
Caterpillar Cat 315C Excavator (Prefix ANF) Service Repair Manual Instant Dow...
Caterpillar CAT 311B EXCAVATOR (8GR00001-UP) Operation and Maintenance Manual...
Volvo EC20C Excavator Service maintenance schedules.pdf
Volvo EC300D L EC300DL excavator weight Manuals.pdf
Your score increases as you pick a category, fill out a long description and ...
Kaizen for Beginners and how to implement Kaizen

The flex ray protocol

  • 1. . . . The FlexRay protocol Master Of Control Systems Wissam Kafa June 17, 2014
  • 2. Outline 1 Introduction 2 Why FlexRay? 3 Network Topology 4 Structure of a FlexRay Node 5 FlexRay configuration: Cycle Segments 6 Clock Synchronization 7 Summary-Conclusion . . .Wissam Kafa | HIAST 2/26
  • 3. 1 Introduction • FlexRay: A Communication Protocol in distributed systems within automotive context. • developed by the FlexRay consortium (BMW, DaimlerChrysler, Mo- torola, Philips) founded in 1999. • since 1999 many well-known companies joined (e.g. Bosch, GM, VW, Mazda, etc.) • aim: fast, flexible, fault-tolerant communication protocol. • FlexRay was used for the first time in BMW X5 model in 2007. . . .Wissam Kafa | HIAST 3/26
  • 4. 2 Why FlexRay? • X-by-wire Technique steer-by-wire, brake-by-wire,. . . • Hydraulic steering and braking is replaced by an electronic system of sensors and actuators. • Over years these new tasks have increased the requirements of the communication between control units. • CAN is not sufficient any more. Real-time capabilities are not supported because of bit arbitra- tion . . .Wissam Kafa | HIAST 4/26
  • 5. 3 Network Topology Figure 1: some possible FlexRay Network topologies (a) Passive bus. (b) Active star. (c) Hybrid topology . . .Wissam Kafa | HIAST 5/26
  • 6. Passive Bus Topology Figure 2: Passive Bus Topology A node can be connected to one or both channels A and B. . . .Wissam Kafa | HIAST 6/26
  • 7. Active Star Topology Figure 3: Active Star Topology - free of closed rings. - Received Signal is driven to all connected nodes. - A node could be connected to a maximum of two star couplers. . . .Wissam Kafa | HIAST 7/26
  • 8. Hybrid Topology Figure 4: Hybrid Topology . . .Wissam Kafa | HIAST 8/26
  • 9. 4 Structure of a FlexRay Node Figure 5: Structure of a FlexRay Node . . .Wissam Kafa | HIAST 9/26
  • 10. FlexRay Node: Host Controller - Processor to execute the main application. - It processes the received data. - Decides what to do, and what to be sent to the communication controller . . .Wissam Kafa | HIAST 10/26
  • 11. FlexRay Node: Communication Controller - Realizes all functions of the FlexRay pro- tocol. - Receives data that should be sent from the host controller. - Decides what to do, and what to be sent to the communication controller. - Handles the data according to the FlexRay protocol, and sends them to the bus driver . . .Wissam Kafa | HIAST 11/26
  • 12. FlexRay Node: Bus Guardian - Changes in the supply of a node could oc- cur. This could cause defects on the bus. - Important for the fault-tolerance of the FlexRay. - Bus guardian could prevent these defects. - It organizes sending the data on the bus. - It prevents the node from sending and re- ceiving outside its time slots. - It can Recognize synchronization and com- munication errors . . .Wissam Kafa | HIAST 12/26
  • 13. FlexRay Node: Bus Driver - Responsible for the connection between the FlexRay nodes and the bus. - Sends Data to the Bus. - Receives Data from the Bus. . . .Wissam Kafa | HIAST 13/26
  • 14. 5 FlexRay configuration: Cycle Segments Figure 6: FlexRay Cycle Segment . . .Wissam Kafa | HIAST 14/26
  • 15. FlexRay configuration: Cycle Segments - The communication on the bus passes in cycles. - Each cycle can be divided into three seg- ments: - Static segment. - Dynamic segmentand. - Symbol segment. - A cycle is terminated by a network idle time, the NIT. - A typical FlexRay cycle takes about 2.5ms. . . .Wissam Kafa | HIAST 15/26
  • 16. Cycle Segments: Static Segment - The static segment is time triggered. - It is divided into time slots, Each slot has: - A fixed length. - ID assigned to a specific control unit. - Hard real-time requirements possible by guaranteed latency. - No delays or collisions could occur. - A node can be allocated to more than one slot by clever distribution of slot IDs. - A Hard real-time application which should be realized in the static segment: - Explosion of the airbag. . . .Wissam Kafa | HIAST 16/26
  • 17. Cycle Segments: Dynamic Segment - For reacting flexibly on specific events. - Event triggered segment. - It is also divided into slots with IDs. -If the ID of the actual slot corresponds with the ID of the control unit, then the control unit is allowed to send data. - If a longer message has to be sent, the time slot of the next node shifts backwards. - An application for the dynamic segment: The control of the wipers depending on the rain sensor. . . .Wissam Kafa | HIAST 17/26
  • 18. Cycle Segments: The symbol segment - In the symbol segment: FlexRay sends internal control infor- mation (starting the network). . . .Wissam Kafa | HIAST 18/26
  • 19. Cycle Segments: NIT and Frames Figure 7: FlexRay-Frame - The Network Idle Time is used for the synchronization of the clocks. - Each slot corresponds to one frame. - A frame can contain up to 254 bytes of data. . . .Wissam Kafa | HIAST 19/26
  • 20. 6 Clock Synchronization - Large temperature differences, voltage changes and production tolerances have a negative influence on the accuracy of the clocks. - A regular synchronization, especially for real-time and time-critical applications is essential. - For correct Operation, each node has to know the start time, the end time and the number of the actual slots. - Therefore, all nodes need a common time base. - The Data rate also depends on the synchronization. - The synchronization of FlexRay is an internal synchronization algorithm and is most likely the midpoint algorithm. . . .Wissam Kafa | HIAST 20/26
  • 21. Clock Synchronization - The problem is divided into two aspects: - Nodes have to compound on a common time (offset correction). - Nodes have to adjust the time deviation between them (rate correction). - Each nodes communication controller has a local clock. counts in micro-ticks. - For example a FlexRay network with 10MBit/s scans the bus with 80MHz. One tick of the oscillator correspond 0.0124 us. A micro-tick is typical twice this time. - The synchronization of the offset, as well as the rate correction uses micro-ticks as smallest time unit. . . .Wissam Kafa | HIAST 21/26
  • 22. 7 Summary-Conclusion • FlexRay focuses on a set of core needs for todays automotive indus- try. • Higher data rates than previous standards. • very flexible network topology. • fault-tolerant operation. • FlexRay thus delivers the speed and reliability required for next- generation in-car control systems. . . .Wissam Kafa | HIAST 22/26
  • 23. Summary-Conclusion • The CAN network has reached its highest performance levels with a maximum speed of 1 Mbps. • With a maximum data rate of 10 Mbps available on two channels, A gross data rate of up to 20Mbit/sec. • Time and Event Triggered Protocol. . . .Wissam Kafa | HIAST 23/26
  • 25. Summary-Conclusion Figure 9: Comparision (LIN, CAN, FlexRay) . . .Wissam Kafa | HIAST 25/26