Vehicle-mounted Ethernet bus fault injection test method and system based on CANoe

Through the CANoe-based on-board Ethernet bus fault injection test method, the problem that traditional testing methods cannot cover more abnormal conditions is solved, and comprehensive fault testing and performance verification of Ethernet controllers are achieved.

CN119996258APending Publication Date: 2025-05-13SHENYANG DOTRUST TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510108526.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-23
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

Traditional Ethernet bus testing methods cannot effectively cover more abnormal conditions and cannot fully verify the response of Ethernet controllers under various abnormal signals.

Method used

Using CANoe-based on-board Ethernet bus fault injection testing method, the Ethernet network is configured through CANoe testing software and VN5620 hardware equipment, a virtual gateway node is created, and packet routing and monitoring is implemented using the CAPL programming language, simulating fault signals, and monitoring network status in real time.

Benefits of technology

It realizes a comprehensive fault injection test of the on-board Ethernet bus, which can simulate various types of faults, monitor the system response in real time, detect abnormal situations in a timely manner, and verify the performance of the controller under fault conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996258A_ABST
    Figure CN119996258A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle-mounted Ethernet communication, in particular to a vehicle-mounted Ethernet bus fault injection test method and system based on CANoe, and the test method comprises the following steps: 1, determining a fault injection object; step 2, configuring at least two Ethernet networks by using test software and hardware equipment, and loading an Arxml database; step 3, creating a virtual gateway node between the tested ECUs, and using a CAPL programming language to realize routing and monitoring of a data packet; step 4, realizing an injection relation between the original signal value and the changed signal value by calling a database and a CAPL script, and simulating a fault signal; 5, the state of the vehicle-mounted Ethernet network is monitored in real time, and system response after fault injection is recorded and analyzed. The vehicle-mounted Ethernet bus fault injection testing method and system based on the CANoe can be used for simulating fault phenomena of a whole vehicle under various working conditions, and related actions are made and fault information is recorded when abnormal signals are detected and received.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle-mounted Ethernet communication, and in particular to a vehicle-mounted Ethernet bus fault injection test method and system based on CANoe. Background Art

[0002] With the widespread application of Ethernet bus in the automotive electrical and electronic fields, the reliability, fault tolerance and stability of Ethernet communication are crucial, and the rationality of function development and the accuracy of test verification are becoming increasingly prominent. However, traditional ETH bus testing, including TC8 3.0 protocol testing, Ethernet basic communication and other testing methods are basically normal testing, and fault injection is basically focused on ETH bus short circuit and open circuit faults, which cannot cover more abnormal conditions.

[0003] At present, in order to verify the reliability and fault tolerance of the ETH bus as much as possible, various types of faults are simulated in a hybrid vehicle based on CANoe devices, such as signal loss, erroneous data transmission and timing problems, so as to verify whether the response of the Ethernet controller when encountering various abnormal signals meets expectations. In order to ensure the comprehensiveness of functional verification, it is of great practical significance to design a CANoe-based vehicle Ethernet bus fault injection test system. Therefore, in view of the above status quo, it is urgent to develop a CANoe-based vehicle Ethernet bus fault injection test method and system to overcome the shortcomings in current practical applications. Summary of the invention

[0004] The object of the present invention is to provide a vehicle-mounted Ethernet bus fault injection test method and system based on CANoe to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] A vehicle Ethernet bus fault injection test method based on CANoe specifically comprises the following steps:

[0007] Step 1: Determine the fault injection object, that is, modify the signal value sent by a specific ECU;

[0008] Step 2: Use CANoe test software and VN5620 hardware device to configure at least two Ethernet networks and load the Arxml database;

[0009] Step 3: Create a virtual gateway node between the ECUs under test and use the CAPL programming language to implement data packet routing and monitoring;

[0010] Step 4: By calling the database and CAPL script, the injection relationship between the original signal value and the changed signal value is realized to simulate the fault signal;

[0011] Step 5: Monitor the status of the vehicle Ethernet network in real time, and record and analyze the system response after fault injection.

[0012] As a further solution of the present invention: in step 1, the fault injection includes at least one of network layer fault simulation, physical layer fault simulation and protocol layer fault simulation.

[0013] As a further solution of the present invention: in step 3, the virtual gateway node intercepts and modifies the real signal sent by the controller through the CAPL script to simulate the sending of an error signal.

[0014] As a further solution of the present invention: the testing method further includes the step of using a Panel to send a simulation signal for fault injection.

[0015] As a further solution of the present invention: in step 5, the system can timely discover and report abnormal conditions that occur in the system after the fault is injected.

[0016] As a further solution of the present invention: the testing method also includes counting, comparing and analyzing data packets of two Ethernet networks to evaluate the performance of the controller under fault conditions.

[0017] As a further solution of the present invention: in step 1, the fault injection object is to modify the signal value sent by ECU1 and determine the processing logic after ECU2 receives the error signal.

[0018] A vehicle Ethernet bus fault injection test system based on CANoe, including CANoe test software and VN5620 hardware equipment, and also includes:

[0019] Configuration module, used to configure at least two Ethernet networks and load the Arxml database;

[0020] Virtual gateway node module, used to create virtual gateway nodes between ECUs under test and implement data packet routing and monitoring using CAPL programming language;

[0021] The fault injection module is used to realize the injection relationship between the original signal value and the changed signal value by calling the database and the CAPL script, and simulate the fault signal.

[0022] As a further solution of the present invention: the test system also includes a real-time monitoring module for real-time monitoring of the vehicle Ethernet network status and recording the system response after fault injection.

[0023] As a further solution of the present invention: the test system also includes a data analysis module for counting, comparing and analyzing data packets of two Ethernet networks to evaluate the performance of the controller under fault conditions.

[0024] Compared with the prior art, the present invention has the following beneficial effects:

[0025] This application creates an intermediary layer between two Ethernet ECUs through the virtual gateway created by CANoe, monitors the bus data in real time, and enables seamless transmission of Ethernet data between the two ECUs. In addition, the real signal sent by the interception controller can be injected through the CAPL script to simulate the sending of error signals, judge the processing logic of ECU2, and thus verify the correctness of the processing of abnormal data received. While injecting faults, the system monitors the network status of the vehicle Ethernet in real time to promptly detect abnormal conditions in the system after fault injection. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a schematic diagram of an Ethernet fault injection connection method based on CANoe in an embodiment of the present invention.

[0027] Figure 2 The figure is a flow chart of vehicle Ethernet signal routing in an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments.

[0030] See also Figure 1 and Figure 2 The embodiment of the present invention provides a vehicle Ethernet bus fault injection test method based on CANoe, which specifically includes the following steps:

[0031] Step 1: Determine the fault injection object, that is, modify the signal value sent by a specific ECU;

[0032] Step 2: Use CANoe test software and VN5620 hardware device to configure at least two Ethernet networks and load the Arxml database;

[0033] Step 3: Create a virtual gateway node between the ECUs under test and use the CAPL programming language to implement data packet routing and monitoring;

[0034] Step 4: By calling the database and CAPL script, the injection relationship between the original signal value and the changed signal value is realized to simulate the fault signal;

[0035] Step 5: Monitor the status of the vehicle Ethernet network in real time, and record and analyze the system response after fault injection.

[0036] The present application provides a vehicle Ethernet bus fault injection test method based on CANoe, which is used to simulate the fault phenomena under various working conditions of the whole vehicle, so as to detect the receipt of abnormal signals, take relevant actions and record fault information.

[0037] Common Ethernet faults include network layer fault simulation (packet loss, delay, jitter, bandwidth limitation, etc.), physical layer fault simulation (physical layer flash, FCS error, CRC error, etc.), and protocol layer fault simulation (link failure, frame error injection, etc.). This application mainly implements Ethernet fault injection by changing the datagram mode at the application layer.

[0038] The specific test method is as follows:

[0039] Determine the fault injection object. The present invention modifies the signal value sent by ECU1 and determines the processing logic of ECU2 receiving the error signal;

[0040] Test equipment: The hardware device is VN5620, and the test software is CANoe;

[0041] Configure two networks ETH1 and ETH2, load the database Arxml in the two networks, and set the bus type;

[0042] Test environment: Use CAPL programming language to create a virtual gateway node Proxy between the tested samples ECU1 and ECU2;

[0043] Ethernet fault injection: By calling the database, use functions such as this.longHeaderID to implement the injection relationship between the original value and the changed value.

[0044] The simulation signal can be sent in the form of a Panel.

[0045] This application creates an intermediary layer between two Ethernet ECUs through the virtual gateway created by CANoe, monitors the bus data in real time, and enables seamless transmission of Ethernet data between the two ECUs. In addition, the real signal sent by the interception controller can be injected through the CAPL script to simulate the sending of error signals, judge the processing logic of ECU2, and thus verify the correctness of the processing of abnormal data received. While injecting faults, the system monitors the network status of the vehicle Ethernet in real time to promptly detect abnormal conditions in the system after fault injection.

[0046] In one embodiment of the present invention, see Figure 1 and Figure 2 In step 1, the fault injection includes at least one of network layer fault simulation, physical layer fault simulation and protocol layer fault simulation.

[0047] In step 3, the virtual gateway node intercepts and modifies the real signal sent by the controller through the CAPL script to simulate sending an error signal.

[0048] The testing method also includes the step of using a Panel to send a simulation signal to perform fault injection.

[0049] In step 5, the system can promptly detect and report abnormal conditions that occur in the system after fault injection.

[0050] The test method also includes counting, comparing and analyzing data packets of two Ethernet networks to evaluate the performance of the controller under fault conditions.

[0051] In step 1, the fault injection object is to modify the signal value sent by ECU1 and determine the processing logic after ECU2 receives the error signal.

[0052] A vehicle Ethernet bus fault injection test system based on CANoe, including CANoe test software and VN5620 hardware equipment, and also includes:

[0053] Configuration module, used to configure at least two Ethernet networks and load the Arxml database;

[0054] Virtual gateway node module, used to create virtual gateway nodes between ECUs under test and implement data packet routing and monitoring using CAPL programming language;

[0055] The fault injection module is used to realize the injection relationship between the original signal value and the changed signal value by calling the database and the CAPL script, and simulate the fault signal.

[0056] The test system also includes a real-time monitoring module for real-time monitoring of the vehicle Ethernet network status and recording the system response after fault injection.

[0057] The test system also includes a data analysis module for counting, comparing and analyzing data packets of two Ethernet networks to evaluate the performance of the controller under fault conditions.

[0058] Table 1 shows the radar status in the driving assistance data report, which defines three radar states: time synchronization success, time synchronization failure, and reserved status, as well as the low-speed emergency brake vehicle trigger success or failure status.

[0059] Table 1 Ethernet radar status routing values:

[0060]

[0061]

[0062] Figure 2 This is the flow chart of the CAPL program execution system. First, after CANoe is turned on, the CAPL program starts running, and then receives and monitors all channel Ethernet data packets. The route to the network segment is defined through the on ethernetPacket ethernetPort::Ethernet1::Proxy.* function.

[0063] (1) If the judgment condition of the environment variable value is not set: the virtual gateway directly routes the data packet sent by Eth2 to Eth1 (the data is not changed);

[0064] (2) Set the environment variable value judgment conditions:

[0065] If the routed signal value does not change, the virtual gateway directly routes the data packet sent by Eth1 to Eth2 (the data does not change);

[0066] If the routed signal value needs to be changed, it is determined again whether the HeaderID (ServiceID + MessageID) has changed. If it has changed, the virtual gateway will route the changed data packet from Eth1 to Eth2; if it does not need to be changed, the virtual gateway will directly route the data packet sent by Eth1 to Eth2.

[0067] By collecting relevant data information, comparing and analyzing the data of the two ETHs, the performance of the controller under fault conditions can be understood, providing a basis for its performance optimization and improvement.

[0068] It should be noted that in the present invention, it should be understood that although this specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that those skilled in the art can understand.

Claims

1. A vehicle Ethernet bus fault injection test method based on CANoe, characterized in that: The specific steps include: Step 1: Determine the fault injection object, that is, modify the signal value sent by a specific ECU; Step 2: Use CANoe test software and VN5620 hardware device to configure at least two Ethernet networks and load the Arxml database; Step 3: Create a virtual gateway node between the ECUs under test and use the CAPL programming language to implement data packet routing and monitoring; Step 4: By calling the database and CAPL script, the injection relationship between the original signal value and the changed signal value is realized to simulate the fault signal; Step 5: Monitor the status of the vehicle Ethernet network in real time, and record and analyze the system response after fault injection.

2. The vehicle-mounted Ethernet bus fault injection test method based on CANoe according to claim 1 is characterized in that: In step 1, the fault injection includes at least one of network layer fault simulation, physical layer fault simulation and protocol layer fault simulation.

3. The vehicle-mounted Ethernet bus fault injection test method based on CANoe according to claim 2 is characterized in that: In step 3, the virtual gateway node intercepts and modifies the real signal sent by the controller through the CAPL script to simulate sending an error signal.

4. The vehicle-mounted Ethernet bus fault injection test method based on CANoe according to claim 1, characterized in that: The testing method also includes the step of using a Panel to send a simulation signal to perform fault injection.

5. The vehicle-mounted Ethernet bus fault injection test method based on CANoe according to claim 3 is characterized in that: In step 5, the system can promptly detect and report abnormal conditions that occur in the system after fault injection.

6. The vehicle-mounted Ethernet bus fault injection test method based on CANoe according to claim 1, characterized in that: The test method also includes counting, comparing and analyzing data packets of two Ethernet networks to evaluate the performance of the controller under fault conditions.

7. The vehicle-mounted Ethernet bus fault injection test method based on CANoe according to claim 1, characterized in that: In step 1, the fault injection object is to modify the signal value sent by ECU1 and determine the processing logic after ECU2 receives the error signal.

8. A vehicle Ethernet bus fault injection test system based on CANoe, including CANoe test software and VN5620 hardware equipment, characterized in that: Also includes: Configuration module, used to configure at least two Ethernet networks and load the Arxml database; Virtual gateway node module, used to create virtual gateway nodes between ECUs under test and implement data packet routing and monitoring using CAPL programming language; The fault injection module is used to realize the injection relationship between the original signal value and the changed signal value by calling the database and the CAPL script, and simulate the fault signal.

9. The vehicle-mounted Ethernet bus fault injection test system based on CANoe according to claim 8, characterized in that: The test system also includes a real-time monitoring module for real-time monitoring of the vehicle Ethernet network status and recording the system response after fault injection.

10. The vehicle-mounted Ethernet bus fault injection test system based on CANoe according to claim 9, characterized in that: The test system also includes a data analysis module for counting, comparing and analyzing data packets of two Ethernet networks to evaluate the performance of the controller under fault conditions.

Citation Information

Cited By

  • Method and system for automatically testing consistency of vehicle-mounted Ethernet protocol

    CN121283910A