CN-121984635-A - Multifunctional vehicle-mounted TSN test equipment and test method thereof
Abstract
The invention belongs to the technical field of vehicle-mounted test, and discloses multifunctional vehicle-mounted TSN test equipment and a test method thereof, wherein the test method comprises the steps of enabling all test ports to share the same time reference; all incoming and outgoing frames generate inbound time stamps and outbound time stamps in a unified time domain, a port-level time-aware scheduling matrix is formed, a third-layer data packet load is deeply bound with an appointed physical port, test flow is output through the time stamp injection unit of each port, inbound and outbound time stamps of abnormal frames are recorded under the same time standard, TSN consistency verification results are generated based on the inbound and outbound time stamps, and cross-protocol delay consistency verification between the vehicle-mounted Ethernet and the CAN/LIN is executed. The invention realizes TSN function verification and cross-protocol delay consistency test under the unified time reference, and improves the overall test precision and consistency analysis capability under the multi-protocol vehicle-mounted network environment.
Inventors
- LUO XIANZHI
- GUO ZEMING
- WAN BIN
- LIN YANFEN
- CHEN QIUYUAN
Assignees
- 广州虹科电子科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260407
Claims (10)
- 1. The multifunctional vehicle-mounted TSN testing device is characterized by comprising the following steps: The multiport physical interface module is used for realizing physical signal access of the vehicle-mounted network; the data path module based on the FPGA comprises an integrated unit for realizing encoding, decoding and MAC processing of data of each port and a processing channel arranged on a data link layer, wherein the processing channel is used for executing flow mirroring, frame modification and frame injection operation and recording time information of inbound and outbound data frames of each port; the unified time synchronization module is used for sharing a unified time synchronization protocol among the ports and completing global time synchronization; the time stamp injection unit is arranged at the inlet and the outlet of each port MAC and used for inserting and extracting frame time stamps; The TSN control logic module is used for realizing Qav credit-based traffic shaping, qbv time-aware traffic shaping, qbu frame preemption, qci per-flow filtering and supervision and Qcb frame copying and elimination; the flow generation and control module comprises a Linux control subsystem, a second layer or third layer data packet generation engine and an open API interface, wherein the API interface is used for binding the generated data packet load to a designated physical port and sending the data packet load through a timestamp injection unit of a corresponding port; an error frame injection module for generating CRC tampered or damaged frames to simulate network anomalies; And the FPGA hardware interface is used for expanding and supporting conversion test between the CAN/LIN interface and the vehicle-mounted Ethernet.
- 2. The multi-function vehicle TSN test device of claim 1, further comprising an adaptive disturbance injection control module coupled to said error frame injection module, said adaptive disturbance injection control module automatically triggering disturbance frame injection to form a time closed loop verification mechanism when a port level time offset vector exceeds a first preset threshold.
- 3. A method of testing a test apparatus as claimed in claim 1, comprising the steps of: Generating a reference clock signal in the test equipment based on the high-precision oscillator and the phase-locked loop, establishing a full-port unified synchronous domain through an IEEE 802.1AS protocol, and setting the test equipment AS a time master node so that all test ports share the same time reference; establishing a multi-port data path based on a switching structure, respectively embedding a time stamp injection unit into an MAC inlet and an MAC outlet of each port, and enabling all incoming and outgoing frames to generate an inbound time stamp and an outbound time stamp in a unified time domain; Based on the unified time domain, performing Qav credit shaping, qbv time-aware scheduling, qbu frame preemption, qci per-flow filtering supervision and Qcb frame copying and eliminating on each port to form a port-level time-aware scheduling matrix; calling a flow generation engine through a Linux control subsystem, binding a third layer of data packet load with a designated physical port depth, and outputting test flow through the timestamp injection unit of each port; performing CRC tampering or corrupted frame injection and recording inbound and outbound time stamps of the anomalous frames at the same time reference; Generating a TSN consistency verification result based on the inbound and outbound time stamps, wherein the TSN consistency verification result comprises port level transmission delay, scheduling window deviation, preemption trigger time deviation and frame replication consistency difference value; and switching part of ports to a CAN or LIN hardware mode, and executing cross-protocol delay consistency verification between the vehicle-mounted Ethernet and the CAN/LIN in the unified time domain.
- 4. The method of testing according to claim 3, wherein the port level transmission delay includes a medium access control layer processing delay period, a scheduling wait delay period, a frame preemption insertion delay period, and a forwarding propagation delay period.
- 5. The method of testing of claim 4, further comprising: And generating a port level time offset vector according to the scheduling window deviation, the preemption trigger time deviation and the frame replication consistency difference, automatically triggering interference frame injection and re-recording a time stamp when the port level time offset vector exceeds a first preset threshold value so as to form closed loop verification.
- 6. The method of claim 5, wherein the first predetermined threshold comprises at least two classification thresholds, and wherein different classes of interference injection strategies are triggered when the port-level time offset vector is in different classification threshold intervals.
- 7. The method of testing of claim 5, further comprising: and when the port level time offset vector exceeds a second preset threshold value, generating a calibration frame, forming a loop structure in an internal data path, and correcting the port level time offset by comparing an inbound time stamp and an outbound time stamp of the calibration frame.
- 8. The method according to claim 3, wherein the step of performing cross-protocol delay consistency verification between the vehicle-mounted Ethernet and the CAN/LIN in the unified time domain includes the steps of acquiring time stamps of the Ethernet and the CAN/LIN in the unified time domain, performing time granularity mapping processing on the time stamps according to the scheduling time granularity of a target protocol to calculate an end-to-end time difference, and generating a cross-protocol delay consistency result according to the time difference.
- 9. An electronic device comprising a memory storing executable program code, a processor coupled to the memory, the processor invoking the executable program code stored in the memory for performing the method of testing the multifunctional vehicle-mounted TSN testing device of any of claims 3-8.
- 10. A computer-readable storage medium, characterized in that it stores a computer program, wherein the computer program causes a computer to execute the test method of the multi-function vehicle-mounted TSN test apparatus according to any one of claims 3 to 8.
Description
Multifunctional vehicle-mounted TSN test equipment and test method thereof Technical Field The embodiment of the invention relates to the technical field of vehicle-mounted testing, in particular to multifunctional vehicle-mounted TSN testing equipment, a testing method thereof, electronic equipment and a storage medium. Background The development of vehicle-mounted TSN test equipment is a key infrastructure for guaranteeing safety, improving efficiency and promoting industry coordination in the intelligent automobile era. The power assisting system is used for the multiparty subjects such as automobile manufacturers, spare part suppliers, test certification institutions and the like, the power assisting industry realizes the smooth transition from the traditional distributed architecture to the centralized high-performance network, and the power assisting system has long-term strategic value and market prospect. For example, 1) can support intelligent and networking upgrade of automobiles, and when in an automatic driving and advanced Assisted Driving (ADAS) scene, the TSN provides high-reliability and low-delay network communication, ensures real-time data synchronization between a sensor (camera, radar and laser radar) and a control unit, and the test equipment can verify whether the performance of the TSN network meets strict safety requirements. 2) The reliability and the safety of the vehicle-mounted network can be ensured, namely, the functional safety (ISO 26262) is that TSN test equipment can simulate extreme network conditions (such as delay, jitter and congestion) to verify the stability of the network under a fault scene and meet the safety standard of the vehicle function, and the network safety is that the test equipment can detect the anti-interference capability and the data integrity of the TSN network to prevent the key data loss or the control failure caused by network attack. 3) The development and verification cost can be reduced, namely, TSN design defects are found in advance through special test equipment in the laboratory and real vehicle test stage, so that the high cost of later rectification is avoided; And the standardized test flow is realized, namely a unified test method and tool are provided, the compliance verification of a train enterprise, a supplier and a test mechanism is effectively completed, and the development period is shortened. 4) The TSN can be promoted to be related to IEEE 802.1 series standards, the testing equipment can promote the standardized application of the TSN in the automobile industry, promote the cooperation of industry chains (chips, software and whole automobile), provide key tools for automobile enterprises, spare part suppliers and testing institutions, and accelerate the process from research and development to mass production of the TSN technology. However, the conventional TSN test equipment generally has the problems that the time references of all test ports are independent, consistency of cross-port measurement is difficult to ensure, the timestamp recording is finished in a software layer, jitter errors exist, the cross-protocol (such as Ethernet and CAN/LIN) test lacks a unified time reference, the interference injection is generally in a preset mode, a closed loop feedback mechanism is lacking, and the like. Therefore, there is a need for an integrated test device capable of port-level high-precision measurement, with cross-protocol consistency test capability. Disclosure of Invention In order to overcome the defects of the prior art, the embodiment of the invention aims to provide multifunctional vehicle-mounted TSN test equipment, a test method thereof and electronic equipment, a complete test flow under a unified time domain is established, cross-protocol consistency verification is realized, and the overall test precision and consistency analysis capability under a multi-protocol vehicle-mounted network environment are improved. To solve the above problems, a first aspect of the embodiments of the present invention discloses a multifunctional vehicle-mounted TSN testing device, which includes: The multiport physical interface module is used for realizing physical signal access of the vehicle-mounted network; the data path module based on the FPGA comprises an integrated unit for realizing encoding, decoding and MAC processing of data of each port and a processing channel arranged on a data link layer, wherein the processing channel is used for executing flow mirroring, frame modification and frame injection operation and recording time information of inbound and outbound data frames of each port; the unified time synchronization module is used for sharing a unified time synchronization protocol among the ports and completing global time synchronization; the time stamp injection unit is arranged at the inlet and the outlet of each port MAC and used for inserting and extracting frame time stamps; The TSN control logic module is used