Demystifying the high-speed car bus system FlexRay: CAN bus has OUT? ! Look at the BMW X5 protocol decoding analysis

The FlexRay communication protocol is a high-speed automotive bus system with fault tolerance. It has been maturely used in the electronically controlled damping and main control suspension systems of the BMW X5. This article shares with you the FlexRay protocol and the corresponding decoding scheme.

one

Introduction to FlexRay bus

FlexRay is a high-speed deterministic, fault-tolerant automotive bus system. In most cars today, data exchange is mainly carried out via the CAN bus. The emergence of new x-by-wire system design ideas has also led to an increasing demand for information transmission speed, especially fault tolerance and time certainty. FlexRay meets these new requirements by passing information in defined time slots, as well as fault tolerance and redundant information transfer on both channels.

The FlexRay topology can be divided into single channel and dual channel, including single channel bus type, single channel star type, single channel hybrid type and dual channel independently selectable topology. Figure 1 shows a single-channel bus type, and Figure 2 shows a two-channel topology.

Figure 1 Single channel bus topology

Figure 2 Dual Channel Bus Topology

FlexRay physically communicates over two separate buses, with a total data rate of up to 20 Mbit/s;

FlexRay has reliability features, especially its redundant communication capability, which enables full network configuration replication and progress monitoring through hardware;

FlexRay supports a variety of topologies such as bus, star, and hybrid topologies.

Figure 3 Comparison of data rates for each protocol

Although FlexRay itself does not ensure system security, it can support the design of a safety-oriented system such as the X-by-Wire system.

Figure 4 FlexRay application system

two

FlexRay data frame structure

A data frame consists of a frame header, a valid data segment, and a frame tail. As shown in Figure 5:

Figure 5 FlexRay data frame

Frame header

Reserved bits (1 bit) to prepare for future expansion;

The preamble indication (1 bit) of the load segment indicates the vector information of the load segment of the frame;

A null frame indication (1 bit) indicating whether the data frame of the load segment is zero;

Synchronization frame indication (1 bit) indicating that this is a sync frame;

The start frame indication (1 bit) indicates whether the node transmitting the frame is a start frame;

Frame ID (11 bits) indicating the ID assigned to each node during system design;

Valid data length (7 bits) indicating the length of valid data;

Head CRC (11 bits) indicating the CRC calculation value of the sync frame indicator and the start frame indicator;

Cycle (6 digits). Indicates the period count of the node that transmitted the frame during the frame transfer time.

Valid data section

The data part is represented by data0, data1... in the figure;

Information ID;

Network management vector.

End of frame

There is only a single data field, the CRC part, including the frame header CRC and the CRC of the data frame.

three

Zhiyuan electronic oscilloscope FlexRay decoding solution

Relying on the powerful computing platform of the ZDS4054 Plus oscilloscope, we have the decoding function of the FlexRay protocol as standard. It can decode 512M full-memory FlexRay data and monitor vehicle communication signals. The information of each frame can be viewed in the event table, as shown in Figure 6 below:

Figure 6 FlexRay bus decoding

Perform anomaly analysis on long-term monitoring data, and use the dual ZOOM multi-window display function in the zoom mode of the oscilloscope to perform multi-window abnormality monitoring and analysis on the signal, and analyze one data frame or one. The rise time of the rising edge is analyzed and measured, and the data changes in the event table can be observed in real time, as shown in Figure 7 below.

Figure 7 FlexRay detail analysis

4500 Puffs Vape

4500 puffs disposable vape pen are so convenient, portable, and small volume, you just need to take them
out of your pocket and take a puff, feel the cloud of smoke, and the fragrance of fruit surrounding you. It's so great.
We are China's leading manufacturer and supplier of disposable vape puff bars, 4500 puffs vape bar,4500 puff disposable vape,4500 puffs vape mod,
rechargeable vape 4500 puffs,4500 puffs vape stick, and e-cigarette kit, and we specialize in Disposable Vapes, e-cigarette vape pens, e-cigarette kits, etc.

4500 puffs vape bar,4500 puff disposable vape,4500 puffs vape mod,rechargeable vape 4500 puffs,4500 puffs vape stick

Ningbo Autrends International Trade Co.,Ltd. , https://www.supervapebar.com

Posted on