Car data bus
A typical modern car will be equipped with various buses and protocols and choose the right network from LIN, CAN, FlexRay, MOST and Ethernet. Multimedia/audio-visual signals and car surround camera systems require higher data rates, so car manufacturers and OEMs choose Ethernet instead of MOST for network solutions. But for many standard automotive functions, the bandwidth and performance provided by LIN and CAN are sufficient.
In the automotive architecture, ECUs are grouped together to form "clusters" that are connected via communication "gateways". Clusters typically share the same type of bus, so to achieve high reliability and high speed standards, a FlexRay network is used, but less demanding door lock ECUs can be handled by CAN or LIN. ECU gateways often have to connect different types of signals and perform mapping and conversion functions between different bus architectures. The automotive industry has a strong demand for continuous improvement in safety and compliance with standards such as ISO26262, which has improved the performance of in-vehicle networks while also reducing manufacturing and component costs. Continuously evolving network standards can accommodate higher and higher data rates, and automotive cables have also achieved the goal of being safe and low-cost. See Table 1 for the characteristics and applications of typical automotive network solutions.
Table 1: Automotive network buses
Network Timing Analysis
Next, let's look at timing analysis of CAN and FlexRay networks in more detail. It is useful to understand the basic characteristics and differences between these two types of networks.
CAN Network:
CAN is a widely used type of in-vehicle network, with ISO 15765-2 as the operating standard. The CAN bus provides a high level of system flexibility, making it relatively easy to add new ECU receiver nodes to an existing CAN network without making major hardware or software changes to the existing ECU nodes. For automotive designers, this can greatly help them expand or upgrade existing networks, or design new variants.
FlexRay Network:
The FlexRay protocol is more deterministic than CAN. FlexRay is a "time-triggered" protocol that provides different options for sending messages to a destination within a precise time frame - down to 1us. FlexRay messages can be up to 254 bytes, so the capacity for complex messages that need to be exchanged between ECUs is large. FlexRay also has a higher data rate than CAN. Because the timing is predetermined, the arrangement of messages needs to be planned in advance and is generally pre-configured or designed by the automotive OEM or Tier 1 supplier partner. In a network using the CAN protocol, ECU nodes only need to know the correct baud rate when communicating, but ECU nodes on a FlexRay network must know how the various parts of the network are configured and connected when communicating. Checking and verifying the timing of a FlexRay network is time-consuming - therefore, automated timing analysis and packaging of messages into time frames can reduce errors and design cycle time.
Defining Network Timing
The first step in simulating automotive network timing is to accurately define the connections between ECUs. The software approach proposed by AUTOSAR defines all automotive functions as a collection of software components and maps them to physical ECU hardware. An ECU may have several functions, and internal signals are passed between them. Once the connections are defined, the timing parameters of each object in the design (if known) can be defined. There are several external sources of timing information; a widely used automotive standard is FIBEX - a standardized XML-based file format defined by the Association for Standardization of Automation and Measuring Systems (ASAM).
The physical path of the example system is shown in Figure 1 and Figure 2. The brake position monitor module is connected to the controller ECU, which in turn is connected to the actuator. Within each module, individual software components also contribute to latency. We will look at the impact of these components on the overall system latency.
Overview of brake system signal paths
Braking system using AUTOSAR components - detailed timing parameters can be defined
Table 2: Transfer steps for the AUTOSAR braking example
In the example provided in Table 2, the maximum allowable end-to-end signal path is 100ms. From actual measurement results, we know that the sender needs 5ms and the receiver needs 10ms, so the maximum allowable communication path delay is 85ms.
If you use an advanced AUTOSAR component editor, such as Mentor's VSA COM Designer tool, you can enter the timing information for each component in the path, but this is also a difficult task. Another approach is to import the timing and connectivity information from an external database.
When simulating a CAN bus data path, it is necessary to account for the uncertainty at the start of a transmission. It is possible that a higher priority message will occupy the data bus, causing a delay in the transmission. Therefore, it is necessary to find the jitter factor that causes delay variation - usually knowing in advance how many higher priority signals may be on the bus so that the jitter factor can be predicted as accurately as possible. Using these parameters and automated design rule checking (DRC), the maximum delay from step (3) to step (7) is 74.5 milliseconds, which allows the design to pass. This is a "worst case" test, and the designer needs to trust that the path delay will never be worse than this, and in fact it will be much better.
Typical timing report from the VSA COM timing analysis tool showing DRC violations
Figure 3 shows a typical timing report with signal path violations highlighted in red. The overall bus utilization is shown at the top of the table (3.69%).
Automotive Communication Matrix Synthesis
The overall definition of the automotive network timing schedule is typically stored in a “communication matrix” that is part of a central gateway ECU. Mentor has developed a design tool solution that can be used to automatically synthesize this database and package all the different information into frames in the correct order.
AUTOSAR signal information is grouped into protocol data units (PDUs), which are then grouped into transmission frames. For CAN and LIN frames, there is one PDU per frame, but a FlexRay frame may contain multiple signal PDUs.
One challenge in installing a fully defined communications architecture is that subsequent architectural changes are difficult and may require a complete redesign of the network, but the high speed and determinism of transmission make this approach very attractive for FlexRay applications and can ensure the safety-critical functions of the car.
in conclusion
AUTOSAR provides predefined standard methods for in-vehicle network and ECU design. However, designers still face challenges in improving the efficiency and performance of their designs. By using design automation tools to calculate timing and generate in-vehicle communication systems, the utilization of valuable network bandwidth can be greatly improved while maintaining a safe range of automotive performance. As the complexity of CAN, FlexRay, and Ethernet convergence increases, the use of automated design rule checking and timing performance synthesis tools will help shorten design time and avoid tedious manual verification processes.
Previous article:How to implement electric vehicle power control and telemetry
Next article:Does engine braking damage the car? What are the dangers of using engine braking?
Recommended ReadingLatest update time:2024-11-16 12:58
- Popular Resources
- Popular amplifiers
- New Energy Vehicle Control System Inspection and Maintenance (Edited by Bao Pili)
- Detailed explanation of big data technology system: principles, architecture and practice (Dong Xicheng)
- Automotive CAN embedded intrusion detection system based on deep learning
- Lightweight FPGA-based IDS-ECU architecture for automotive CAN networks
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Recommend an FPGA development board, with schematic diagram
- [Mil MYS-8MMX] Mil MYS-8MMQ6-8E2D-180-C National Day Application - Use the terminal to draw
- FAQ: Developing secure IoT edge-to-cloud applications on Linux using PKCS #11 and secure devices
- CC2640 TIRTOS adds IIC configuration
- ARM co-founder launches "SAVE ARM" campaign to intervene in NVIDIA acquisition
- How to convert PWM signal into analog signal
- Uf2 Introduction
- Wi-Fi-7?
- Analog Series: RF: In the 5G Era, RF Front-End Shines
- FPGA Design Tips