Communication test system and method for vehicle equipment

By using a simulation device to connect with the test equipment and the device under test in vehicle equipment communication testing, and generating a test report, the problem of high testing costs in existing technologies is solved, and efficient communication testing is achieved.

CN122120178APending Publication Date: 2026-05-29CHONGQING CHANGAN AUTOMOBILE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHONGQING CHANGAN AUTOMOBILE CO LTD
Filing Date
2026-04-23
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing vehicle equipment communication testing requires the participation of other vehicle equipment, resulting in high testing costs.

Method used

A vehicle equipment simulation device is used to generate a simulation device, which is connected to the test equipment and the vehicle equipment under test respectively. Communication tests are performed through the simulation device, and a test report is generated.

Benefits of technology

It reduces testing costs, improves testing efficiency, shortens connection time, and eliminates the need for manual testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122120178A_ABST
    Figure CN122120178A_ABST
Patent Text Reader

Abstract

The application relates to a communication test system and method of a vehicle device, in the method, a test device, a vehicle device to be tested and a vehicle device simulation device are connected with an Ethernet bus respectively, the vehicle device to be tested is used for operating according to preset standard data volume and a PLCA mechanism, the vehicle device simulation device is used for generating simulation devices according to preset node quantity, and each simulation device is controlled to operate according to preset standard data volume and the PLCA mechanism. The test device is used for acquiring communication data transmitted by the vehicle device to be tested and each simulation device in the operating process, and then testing the communication data to generate a test report. According to the scheme, the simulation devices generated by the vehicle device simulation device participate in the test, and the cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and more specifically to a communication testing system and method for vehicle equipment. Background Technology

[0002] With the increasing number of devices in vehicles, the IEEE 802.3cg standard, specifically the 10BASE-T1S standard, was proposed to ensure stable and accurate data transmission. The Physical Layer Collision Avoidance (PLCA) mechanism within this standard effectively prevents data transmission conflicts and provides high determinism. Communication testing is required to determine whether vehicle devices can correctly execute the PLAC mechanism.

[0003] In existing technologies, communication testing typically involves connecting the test equipment, the device under test (DUT) in the vehicle, and other vehicle devices via an Ethernet bus. The DUT and other vehicle devices operate according to the PLCA mechanism, and the test equipment performs tests based on the data collected during operation.

[0004] In summary, existing vehicle equipment communication testing requires the participation of other vehicle equipment, resulting in high testing costs. Summary of the Invention

[0005] One objective of this invention is to provide a communication testing system for vehicle equipment, thereby solving the problem that existing communication testing of vehicle equipment requires the participation of other vehicle equipment, resulting in high testing costs; another objective is to provide a communication testing method for vehicle equipment.

[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0007] In a first aspect, the present invention provides a communication testing system for vehicle equipment, comprising:

[0008] An Ethernet bus, and test equipment, vehicle equipment under test, and vehicle equipment simulation equipment respectively connected to the Ethernet bus;

[0009] The device under test is used to operate according to the preset standard data volume and physical layer conflict avoidance PLCA mechanism.

[0010] The vehicle equipment simulation device is used to generate simulation devices according to a preset number of nodes, and to control each simulation device to operate according to the preset standard data volume and the PLCA mechanism;

[0011] The testing equipment is used for:

[0012] Acquire the communication data sent by the vehicle under test and each simulation device during operation;

[0013] The communication data is tested, and a test report is generated.

[0014] Furthermore, when the testing equipment is used to acquire communication data sent by the vehicle under test and each simulation device during operation, it is specifically used for:

[0015] The communication data sent by the vehicle under test and each simulation device during operation is acquired at the physical layer.

[0016] Furthermore, the communication data includes multiple BEACON frames, multiple data frames, the acquisition time of each BEACON frame, and the acquisition time of each data frame.

[0017] When the testing equipment is used to test the communication data and generate a test report, it is specifically used for:

[0018] Based on the acquisition time of each BEACON frame and the acquisition time of each data frame, each BEACON frame and each data frame are sorted and segmented to obtain multiple data sequences. Each data sequence includes one BEACON frame and the preset number of data frames.

[0019] Based on the acquisition time of each BEACON frame, the acquisition time of each data frame, and each data sequence, data transmission conflict test, period duration test, period jitter test, data transmission order test, and transmission time deviation test are performed, and the test report is generated.

[0020] Furthermore, when the testing equipment is used to perform data transmission conflict testing, period duration testing, period jitter testing, data transmission order testing, and transmission time deviation testing based on the acquisition time of each BEACON frame, the acquisition time of each data frame, and each data sequence, and to generate the test report, it is specifically used for:

[0021] Based on the acquisition time of each data frame, generate a data transmission conflict test result indicating whether a data transmission conflict exists;

[0022] Calculate the BEACON frame acquisition interval based on the acquisition time of each BEACON frame;

[0023] Based on the preset cycle duration and the acquisition interval of each BEACON frame, a cycle duration test result is generated to indicate whether there are any abnormalities in the data transmission cycle;

[0024] Based on the preset variance threshold and the acquisition interval of each BEACON frame, a period jitter test result is generated to indicate whether there is an abnormality in the jitter of the data transmission period.

[0025] Based on the preset identifier order and the data frames in each data sequence, generate a data transmission order test result indicating whether there is an anomaly in the data transmission order;

[0026] Based on the preset transmission time deviation threshold, the preset transmission opportunity duration, and each data sequence, a transmission time deviation test result is generated to indicate whether there is an abnormality in the transmission time deviation of the vehicle equipment.

[0027] The test report is generated based on the data transmission conflict test results, the period duration test results, the period jitter test results, the data transmission order test results, and the transmission time deviation test results.

[0028] Furthermore, when the testing equipment is used to sort and segment each BEACON frame and each data frame according to the acquisition time of each BEACON frame and the acquisition time of each data frame to obtain multiple data sequences, it is specifically used for:

[0029] According to the acquisition time from morning to evening, each BEACON frame and each data frame are sorted to obtain the total data sequence;

[0030] For each BEACON frame in the total data sequence, if there is a data frame preceding the BEACON frame, then the data sequence is divided between the BEACON frame and the preceding data frame to obtain the multiple data sequences.

[0031] Furthermore, when the testing equipment generates a data transmission order test result indicating whether there is an anomaly in the data transmission order based on a preset identifier order and data frames in each data sequence, it is specifically used for:

[0032] The data frames in each data sequence are parsed and sorted to obtain the test identifier order corresponding to each data sequence;

[0033] If the order of each identifier to be tested is the same as the preset identifier order, a data transmission order test result indicating that there is no abnormality in the data transmission order is generated;

[0034] If any of the test identifier sequences is different from the preset identifier sequence, a test result indicating an abnormal data transmission sequence is generated.

[0035] Furthermore, when the testing equipment generates a transmission time deviation test result indicating whether there is an anomaly in the transmission time deviation of the vehicle equipment based on a preset transmission time deviation threshold, a preset transmission opportunity duration, and each data sequence, it is specifically used for:

[0036] For each data frame in each data sequence, the data frame is parsed to obtain the identifier of the data frame;

[0037] For each data frame in each data sequence, the theoretical transmission time of the data frame is calculated based on the preset transmission opportunity duration, the identifier of the data frame, and the acquisition time of the BEACON frame in the data sequence.

[0038] For each data frame in each data sequence, if the interval between the acquisition time and the theoretical transmission time of the data frame is greater than the preset transmission time deviation threshold, then the data frame is regarded as an abnormal data frame.

[0039] If there is an abnormal data frame in all data frames of all data sequences, a transmission time deviation test result indicating that the transmission time deviation of the vehicle equipment is abnormal is generated.

[0040] If no abnormal data frames are found in any of the data frames in all data sequences, a transmission timing deviation test result indicating that there is no abnormality in the transmission timing deviation of the vehicle equipment is generated.

[0041] Furthermore, the device for the vehicle under test is also used to operate according to a preset data volume threshold and the PLCA mechanism, wherein the preset data volume threshold is greater than the preset standard data volume;

[0042] The vehicle equipment simulation device is also used to control each simulation device to operate according to the preset data volume threshold and the PLCA mechanism;

[0043] The testing equipment is also used for:

[0044] Obtain the total network throughput;

[0045] Based on the total network throughput and the preset throughput threshold, a throughput test result is generated to determine whether there are any abnormalities in the network throughput.

[0046] Add the throughput test results to the test report.

[0047] Furthermore, the testing equipment is also used for:

[0048] The master node in the vehicle under test and all simulation devices is disabled, and timing begins;

[0049] When a BEACON frame is acquired, stop the timer and obtain the timeout duration.

[0050] Based on the timeout duration and the preset recovery duration, a recovery test result is generated indicating whether there are any abnormalities in the recovery duration;

[0051] When a data frame is acquired, it is parsed to obtain the election device identifier;

[0052] Based on the election device identifier and the preset identifier, generate an election test result to determine whether there are any abnormalities in the master node election;

[0053] Add the recovery test results and the election test results to the test report.

[0054] Furthermore, the vehicle equipment simulation device is also used to control the failure of one slave node among all simulation devices;

[0055] The testing equipment is also used for:

[0056] The acquired data frames are parsed to obtain node identifiers;

[0057] Based on the identifier of each node and the identifier of the slave node, generate a failure handling test result to determine whether there are any abnormalities in the failure handling of the slave node;

[0058] The vehicle equipment simulation device is also used to control the slave node to return to normal;

[0059] The testing equipment is also used for:

[0060] The acquired data frames are parsed to obtain node identifiers;

[0061] Based on the identifier of each node and the identifier of the slave node, generate an online processing test result to determine whether there are any abnormalities in the online processing of the slave node;

[0062] Add the failure handling test results and the online handling test results to the test report.

[0063] Furthermore, the vehicle equipment simulation device is also used to inject interference signals into the Ethernet bus when the vehicle equipment under test sends data frames;

[0064] The testing equipment is also used for:

[0065] Based on the acquired data frames, calculate the packet loss rate, error frame rate, and network recovery time;

[0066] Based on the packet loss rate, the error frame rate, and the network recovery time, generate anti-interference test results indicating whether there are any abnormalities in the anti-interference performance;

[0067] Add the anti-interference test results to the test report.

[0068] In a second aspect, the present invention provides a communication testing method for vehicle equipment, applied to the communication testing system of vehicle equipment according to any one of the first aspects, the method comprising:

[0069] The equipment in the vehicle under test operates according to the preset standard data volume and PLCA mechanism;

[0070] The vehicle equipment simulation device generates simulation devices according to a preset number of nodes, and controls each simulation device to operate according to the preset standard data volume and the PLCA mechanism;

[0071] The testing equipment acquires the communication data sent by the vehicle under test and each simulated device during operation;

[0072] The testing equipment tests the communication data and generates a test report.

[0073] Furthermore, acquiring the communication data sent by the test vehicle equipment and each simulation device during operation includes:

[0074] The communication data sent by the vehicle under test and each simulation device during operation is acquired at the physical layer.

[0075] Furthermore, the communication data includes multiple BEACON frames, multiple data frames, the acquisition time of each BEACON frame, and the acquisition time of each data frame.

[0076] The step of testing the communication data and generating a test report includes:

[0077] Based on the acquisition time of each BEACON frame and the acquisition time of each data frame, each BEACON frame and each data frame are sorted and segmented to obtain multiple data sequences. Each data sequence includes one BEACON frame and the preset number of data frames.

[0078] Based on the acquisition time of each BEACON frame, the acquisition time of each data frame, and each data sequence, data transmission conflict test, period duration test, period jitter test, data transmission order test, and transmission time deviation test are performed, and the test report is generated.

[0079] Furthermore, based on the acquisition time of each BEACON frame, the acquisition time of each data frame, and each data sequence, data transmission conflict testing, period duration testing, period jitter testing, data transmission order testing, and transmission time deviation testing are performed to generate the test report, including:

[0080] Based on the acquisition time of each data frame, generate a data transmission conflict test result indicating whether a data transmission conflict exists;

[0081] Calculate the BEACON frame acquisition interval based on the acquisition time of each BEACON frame;

[0082] Based on the preset cycle duration and the acquisition interval of each BEACON frame, a cycle duration test result is generated to indicate whether there are any abnormalities in the data transmission cycle;

[0083] Based on the preset variance threshold and the acquisition interval of each BEACON frame, a period jitter test result is generated to indicate whether there is an abnormality in the jitter of the data transmission period.

[0084] Based on the preset identifier order and the data frames in each data sequence, generate a data transmission order test result indicating whether there is an anomaly in the data transmission order;

[0085] Based on the preset transmission time deviation threshold, the preset transmission opportunity duration, and each data sequence, a transmission time deviation test result is generated to indicate whether there is an abnormality in the transmission time deviation of the vehicle equipment.

[0086] The test report is generated based on the data transmission conflict test results, the period duration test results, the period jitter test results, the data transmission order test results, and the transmission time deviation test results.

[0087] Furthermore, based on the acquisition time of each BEACON frame and the acquisition time of each data frame, each BEACON frame and each data frame are sorted and segmented to obtain multiple data sequences, including:

[0088] According to the acquisition time from morning to evening, each BEACON frame and each data frame are sorted to obtain the total data sequence;

[0089] For each BEACON frame in the total data sequence, if there is a data frame preceding the BEACON frame, then the data sequence is divided between the BEACON frame and the preceding data frame to obtain the multiple data sequences.

[0090] Furthermore, the step of generating a data transmission order test result indicating whether there are any abnormalities in the data transmission order based on a preset identifier order and data frames in each data sequence includes:

[0091] The data frames in each data sequence are parsed and sorted to obtain the test identifier order corresponding to each data sequence;

[0092] If the order of each identifier to be tested is the same as the preset identifier order, a data transmission order test result indicating that there is no abnormality in the data transmission order is generated;

[0093] If any of the test identifier sequences is different from the preset identifier sequence, a test result indicating an abnormal data transmission sequence is generated.

[0094] Furthermore, the step of generating a transmission time deviation test result indicating whether there is an anomaly in the transmission time deviation of the vehicle equipment, based on a preset transmission time deviation threshold, a preset transmission opportunity duration, and each data sequence, includes:

[0095] For each data frame in each data sequence, the data frame is parsed to obtain the identifier of the data frame;

[0096] For each data frame in each data sequence, the theoretical transmission time of the data frame is calculated based on the preset transmission opportunity duration, the identifier of the data frame, and the acquisition time of the BEACON frame in the data sequence.

[0097] For each data frame in each data sequence, if the interval between the acquisition time and the theoretical transmission time of the data frame is greater than the preset transmission time deviation threshold, then the data frame is regarded as an abnormal data frame.

[0098] If there is an abnormal data frame in all data frames of all data sequences, a transmission time deviation test result indicating that the transmission time deviation of the vehicle equipment is abnormal is generated.

[0099] If no abnormal data frames are found in any of the data frames in all data sequences, a transmission timing deviation test result indicating that there is no abnormality in the transmission timing deviation of the vehicle equipment is generated.

[0100] Furthermore, the method also includes:

[0101] The test vehicle equipment operates according to a preset data volume threshold and the PLCA mechanism, wherein the preset data volume threshold is greater than the preset standard data volume;

[0102] The vehicle equipment simulation device controls each simulation device to operate according to the preset data volume threshold and the PLCA mechanism;

[0103] The test equipment obtains the total network throughput;

[0104] The testing equipment generates throughput test results to determine whether there are any abnormalities in the network throughput based on the total network throughput and a preset throughput threshold.

[0105] The testing equipment adds the throughput test results to the test report.

[0106] Furthermore, the method also includes:

[0107] The test equipment controls the master node in the vehicle under test and all simulation equipment to fail and starts timing;

[0108] When the test device acquires a BEACON frame, it stops timing and obtains the timing duration.

[0109] The testing equipment generates a recovery test result indicating whether there is an abnormality in the recovery time based on the timing duration and the preset recovery duration;

[0110] When the test device acquires a data frame, it parses the data frame to obtain the election device identifier;

[0111] The testing equipment generates an election test result to determine whether there are any abnormalities in the master node election based on the election equipment identifier and the preset identifier.

[0112] The testing equipment adds the recovery test results and the election test results to the test report.

[0113] Furthermore, the method also includes:

[0114] The vehicle equipment simulation device controls the failure of one slave node among all simulation devices;

[0115] The testing device parses the acquired data frames to obtain node identifiers;

[0116] The testing equipment generates a failure handling test result to determine whether there are any abnormalities in the failure handling of the slave node, based on the identifier of each node and the identifier of the slave node.

[0117] The vehicle equipment simulation device controls the slave node to return to normal;

[0118] The testing device parses the acquired data frames to obtain node identifiers;

[0119] The testing equipment generates an online processing test result to determine whether there are any abnormalities in the online processing of the slave nodes, based on the identifier of each node and the identifier of the slave node.

[0120] The testing equipment adds the failure handling test results and the online handling test results to the test report.

[0121] Furthermore, the method also includes:

[0122] The vehicle equipment simulation device injects interference signals into the Ethernet bus when the vehicle equipment under test sends data frames.

[0123] The testing equipment calculates packet loss rate, error frame rate, and network recovery time based on the acquired data frames;

[0124] The testing equipment generates anti-interference test results indicating whether there are any abnormalities in the anti-interference based on the packet loss rate, the error frame rate, and the network recovery time.

[0125] The testing equipment adds the anti-interference test results to the test report.

[0126] The beneficial effects of this invention are:

[0127] (1) This application connects the test equipment, the vehicle under test equipment, and the vehicle equipment simulation equipment to an Ethernet bus respectively. The vehicle under test equipment is used to operate according to a preset standard data volume and a PLCA mechanism. The vehicle equipment simulation equipment is used to generate simulation equipment according to a preset number of nodes and control each simulation equipment to operate according to the preset standard data volume and a PLCA mechanism. The test equipment is used to acquire the communication data sent by the vehicle under test equipment and each simulation equipment during operation, and then test the communication data to generate a test report. This solution reduces costs by generating simulation equipment through the vehicle equipment simulation equipment to participate in the test;

[0128] (2) This application only requires the test equipment, the vehicle equipment under test and the vehicle equipment simulation equipment to be connected to the Ethernet bus respectively. Compared with the prior art, which requires multiple vehicle equipment to be connected to the Ethernet bus, the connection time can be reduced and the test efficiency can be improved. Attached Figure Description

[0129] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0130] Figure 1 A schematic diagram of the architecture of the communication test system for the vehicle equipment provided in this application;

[0131] Figure 2 A flowchart illustrating an embodiment of the communication testing method for vehicle equipment provided in this application;

[0132] Figure 3 A flowchart illustrating Embodiment 2 of the communication testing method for vehicle equipment provided in this application;

[0133] Figure 4 A flowchart illustrating Embodiment 3 of the communication testing method for vehicle equipment provided in this application;

[0134] Figure 5 A flowchart illustrating Embodiment 4 of the communication testing method for vehicle equipment provided in this application;

[0135] Figure 6 A flowchart illustrating Embodiment 5 of the communication testing method for vehicle equipment provided in this application.

[0136] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0137] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.

[0138] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0139] With the increasing number of devices in vehicles, the IEEE 802.3cg standard, specifically the 10BASE-T1S standard, was proposed to ensure stable and accurate data transmission. The Physical Layer Collision Avoidance (PLCA) mechanism within this standard effectively prevents data transmission conflicts and provides high determinism. Communication testing is required to determine whether vehicle devices can correctly execute the PLAC mechanism.

[0140] In existing technologies, communication testing typically involves connecting the test equipment, the device under test (DUT) in the vehicle, and other vehicle equipment via an Ethernet bus. The DUT and other vehicle equipment operate according to a PLCA (Plug and Play) mechanism, and the test equipment performs tests based on the data collected during operation. However, the need for the participation of other vehicle equipment leads to high testing costs.

[0141] To address the problems existing in the prior art, the inventors, during their research on communication testing systems for vehicle equipment, discovered that, in order to reduce costs, a vehicle equipment simulation device can be used to generate a simulated device for testing. The test equipment, the vehicle equipment under test, and the vehicle equipment simulation device are each connected to an Ethernet bus. After the vehicle equipment simulation device generates the simulated device, the simulated device and the vehicle equipment under test operate according to the PLCA mechanism. The test equipment acquires the communication data sent by the vehicle equipment under test and each simulation device during operation, and then tests the communication data to generate a test report. Based on the above inventive concept, the communication testing scheme for vehicle equipment in this application was designed.

[0142] The technical solution of this application will now be described in detail through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0143] Figure 1 A schematic diagram of the architecture of the communication test system for the vehicle equipment provided in this application is shown below. Figure 1 As shown, the communication test system for vehicle equipment includes:

[0144] Ethernet bus 11, test device 12, vehicle device under test 13 and vehicle device simulation device 14 are respectively connected to Ethernet bus 11.

[0145] The device 13 in the vehicle under test is used to operate according to the preset standard data volume and PLCA mechanism.

[0146] It should be noted that the device 13 in the vehicle to be tested can be an electronic control unit, sensor, gateway, etc. This application embodiment does not limit the device in the vehicle to be tested, and it can be determined according to the actual situation.

[0147] The vehicle equipment simulation device 14 is used to generate simulation devices according to a preset number of nodes, and to control each simulation device to operate according to a preset standard data volume and PLCA mechanism. The number of simulation devices is the preset number of nodes.

[0148] In the PLCA mechanism, the vehicle under test (V2T) device 13 and all simulation devices are referred to as nodes. One node is the master node, and the others are slave nodes. The master node's identifier (NODE_ID) is 0, and the identifiers of the other slave nodes start from 1 and increase sequentially. At the beginning of a data transmission cycle, the master node first sends a BEACON frame to the Ethernet bus 11. The transmission opportunity (TO) arrives at the master node, which generates a data frame with a preset standard data size and sends it to the Ethernet bus 11. The transmission opportunity arrives at the slave node with identifier 1, which generates a data frame with a preset standard data size and sends it to the Ethernet bus 11. The transmission opportunity arrives at the slave node with identifier 2, which generates a data frame with a preset standard data size and sends it to the Ethernet bus 11. Slave nodes send data sequentially in ascending order of identifier until the last slave node finishes sending, at which point the current data transmission cycle ends, and the next data transmission cycle begins.

[0149] It should be noted that the preset number of nodes can be 3, 5, 10, 30, etc.; the preset standard data volume can be 120 bytes, 200 bytes, 300 bytes, etc. This application embodiment does not limit the preset number of nodes or the preset standard data volume, and can be determined according to the actual situation.

[0150] Test equipment 12 is used to acquire communication data sent by the vehicle under test and each simulated device during operation. The communication data is then tested, and a test report is generated.

[0151] It should be noted that the test equipment 12 may include a control device and a monitoring device. The control device is connected to the monitoring device, and the testing device is connected to an Ethernet bus. The monitoring device is used to acquire the communication data sent by the vehicle under test and each simulated device during operation, and send the communication data to the control device. The control device is used to perform tests based on the communication data and generate a test report. The monitoring device may be a protocol analyzer, an oscilloscope with serial bus triggering and decoding functions, etc. This application embodiment does not limit the monitoring device, and it can be determined according to the actual situation.

[0152] Test device 12 acquires communication data sent by the vehicle under test device 13 and each simulation device during operation at the physical layer. The communication data includes multiple BEACON frames, multiple data frames, the acquisition time of each BEACON frame, and the acquisition time of each data frame.

[0153] The physical layer is one layer in the Open Systems Interconnection (OSI) model, which has seven layers: Application Layer, Presentation Layer, Session Layer, Transport Layer, Network Layer, Data Link Layer, and Physical Layer. The Application Layer assembles data into application layer messages according to protocols; the Presentation Layer processes these messages through encryption, compression, and format conversion; the Session Layer establishes sessions and adds session control information to presentation layer messages; the Transport Layer adds port numbers, segmentation, sequence numbers, and error control to session layer messages to create segments; the Network Layer adds IP addresses and routing information to segments to create packets; the Data Link Layer adds MAC addresses, PLCA scheduling, and frame trailers to packets to create frames; and the Physical Layer encodes frames and converts them into electrical signals for transmission.

[0154] Although the PLCA mechanism operates at the data link layer, it directly controls the sending and receiving behavior of the physical layer. Therefore, communication data can be obtained from the physical layer to determine whether the vehicle equipment under test can execute the PLCA mechanism normally.

[0155] By acquiring data at the physical layer, BEACON frames and data frames can be directly obtained, providing direct insight into the operation of the PLCA mechanism and resolving the issue of existing technologies being unable to acquire BEACON frames and data frames. This also improves the accuracy of the timing of BEACON and data frame acquisition, thereby enhancing the accuracy of each test result in the test report.

[0156] The test device 12 sorts and segments each BEACON frame and each data frame according to the acquisition time of each BEACON frame and the acquisition time of each data frame, resulting in multiple data sequences. Each data sequence includes one BEACON frame and a preset number of data frames.

[0157] That is, each BEACON frame and each data frame are sorted according to the acquisition time from early to late to obtain the total data sequence; for each BEACON frame in the total data sequence, if there is a data frame before the BEACON frame, the data is split between the BEACON frame and the data frame before the BEACON frame to obtain multiple data sequences.

[0158] For example, the overall sequence is: a1, b1, b2, b3, b4, a2, b5, b6, b7, b8, a3, b9, b10, b11, b12. Here, a1, a2, and a3 are BEACON frames, and b1 to b12 are data frames. The data is then segmented between b4 and a2, and between b8 and a3, resulting in three data sequences: the first data sequence is: a1, b1, b2, b3, b4; the second data sequence is: a2, b5, b6, b7, b8; and the third data sequence is: a3, b9, b10, b11, b12.

[0159] After obtaining the data sequence, based on the acquisition time of each BEACON frame, the acquisition time of each data frame, and each data sequence, data transmission conflict test, period duration test, period jitter test, data transmission order test, and transmission time deviation test are performed, and a test report is generated.

[0160] Based on the acquisition time of each data frame, a data transmission conflict test result is generated indicating whether a data transmission conflict exists.

[0161] In other words, for every two data frames, if the interval between their acquisition times is less than the preset conflict duration, it indicates that two nodes are sending data frames simultaneously, and a data transmission conflict test result indicating a data transmission conflict is generated. If the interval between the acquisition times of every two data frames is greater than or equal to the preset conflict duration, it indicates that no nodes are sending data frames simultaneously, and a data transmission conflict test result indicating that no data transmission conflict is generated.

[0162] It should be noted that the preset conflict duration can be 0.1 microseconds, 0.15 microseconds, 0.2 microseconds, etc. This application embodiment does not limit the preset conflict duration, which can be determined according to the actual situation.

[0163] The acquisition interval of each BEACON frame is calculated based on its acquisition time. In other words, each BEACON frame is sorted in order of acquisition time from early to late. The interval between the acquisition times of any two adjacent BEACON frames in the sequence is the acquisition interval of the BEACON frame.

[0164] Based on the preset cycle duration and the acquisition interval of each BEACON frame, a cycle duration test result is generated to indicate whether there are any abnormalities in the data transmission cycle.

[0165] In other words, if the acquisition interval of each BEACON frame is less than or equal to the preset period length, a period length test result indicating that there is no abnormality in the data transmission period is generated. If there is a BEACON frame acquisition interval that is longer than the preset period length, a period length test result indicating that there is an abnormality in the data transmission period is generated.

[0166] It should be noted that the preset period duration can be 3 milliseconds, 4 milliseconds, 5 milliseconds, etc. This application embodiment does not limit the preset period duration, and it can be determined according to the actual situation.

[0167] Based on the preset variance threshold and the acquisition interval of each BEACON frame, a period jitter test result is generated to indicate whether there is an abnormality in the jitter of the data transmission period.

[0168] In other words, the variance of the acquisition interval of all BEACON frames is calculated. If the variance is less than or equal to a preset variance threshold, it indicates that the period jitter is normal, and a period jitter test result indicating that there is no abnormality in the period jitter of the data transmission is generated. If the variance is greater than the preset variance threshold, it indicates that the period jitter is abnormal, and a period jitter test result indicating that there is abnormality in the period jitter of the data transmission is generated.

[0169] According to the formula Calculate the variance of the duration of all BEACON frame acquisition intervals. Here, V represents the variance, and N represents the number of BEACON frame acquisition intervals. This represents the duration of the acquisition interval for the i-th BEACON frame. This represents the average duration of all BEACON frame acquisition intervals.

[0170] It should be noted that the preset variance threshold can be... , , The unit is squared per second. This application does not limit the preset variance threshold, which can be determined according to the actual situation.

[0171] Based on the preset identifier order and the data frames in each data sequence, a data transmission order test result is generated to indicate whether there are any abnormalities in the data transmission order.

[0172] In other words, the data frames in each data sequence are parsed and sorted to obtain the test identifier order corresponding to each data sequence; the identifiers of the nodes can be parsed from the data frames, and then the identifiers are sorted in order from earliest to latest according to the acquisition time of the data frames to obtain the test identifier order.

[0173] If the order of each identifier to be tested is the same as the preset identifier order, a data transmission order test result indicating that there is no abnormality in the data transmission order is generated; if there is an identifier order among all the identifiers to be tested that is different from the preset identifier order, a data transmission order test result indicating that there is an abnormality in the data transmission order is generated.

[0174] The preset identifier order is 0, 1, ..., N, where N is the preset number of nodes.

[0175] After obtaining the data sequence, based on the preset transmission time deviation threshold, the preset transmission opportunity duration, and each data sequence, a transmission time deviation test result is generated to indicate whether there is an abnormality in the transmission time deviation of the vehicle equipment.

[0176] That is, for each data frame in each data sequence, the data frame is parsed to obtain the identifier of the data frame, which is also the identifier of the node; then, for each data frame in each data sequence, the theoretical transmission time of the data frame is calculated based on the preset transmission opportunity duration, the identifier of the data frame, and the acquisition time of the BEACON frame in the data sequence.

[0177] Multiply the preset transmission opportunity duration by the identifier of the data frame, and then add it to the acquisition time of the BEACON frame in the data sequence to obtain the theoretical transmission time of the data frame.

[0178] For each data frame in each data sequence, if the interval between the acquisition time and the theoretical transmission time of the data frame is greater than the preset transmission time deviation threshold, then the data frame is regarded as an abnormal data frame.

[0179] If an abnormal data frame is present in all data frames across all data sequences, a transmission timing deviation test result indicating an abnormal transmission timing deviation of the vehicle equipment is generated; if no abnormal data frame is present in all data frames across all data sequences, a transmission timing deviation test result indicating no abnormal transmission timing deviation of the vehicle equipment is generated.

[0180] It should be noted that the preset transmission time deviation threshold can be 0.5 microseconds, 1 microsecond, 1.5 microseconds, etc.; the preset transmission opportunity duration can be 3 microseconds, 3.2 microseconds, 4 microseconds, etc. This application embodiment does not limit the preset transmission time deviation threshold and the preset transmission opportunity duration, which can be determined according to the actual situation.

[0181] Then, based on the data transmission conflict test results, cycle duration test results, cycle jitter test results, data transmission order test results, and transmission time deviation test results, a test report is generated. In other words, a blank report is first generated, and the data transmission conflict test results, cycle duration test results, cycle jitter test results, data transmission order test results, and transmission time deviation test results are added to the blank report to obtain the final test report.

[0182] It should be noted that communication data can also be added to the test report.

[0183] The vehicle equipment communication testing system provided in this embodiment connects the test equipment, the vehicle equipment under test, and the vehicle equipment simulation equipment to an Ethernet bus. The vehicle equipment under test operates according to a preset standard data volume and a PLCA mechanism. The vehicle equipment simulation equipment generates simulation equipment according to a preset number of nodes and controls each simulation equipment to operate according to the preset standard data volume and PLCA mechanism. The test equipment acquires the communication data sent by the vehicle equipment under test and each simulation equipment during operation, tests the communication data, and generates a test report. This solution reduces costs by generating simulation equipment through the vehicle equipment simulation equipment, and only requires connecting the test equipment, the vehicle equipment under test, and the vehicle equipment simulation equipment to the Ethernet bus, respectively. Compared to the prior art, which requires multiple vehicle equipment to be connected to the Ethernet bus, this reduces connection time, eliminates the need for manual testing, and improves testing efficiency.

[0184] Based on the above embodiments, the following describes the testing process of the test equipment and the vehicle equipment to be tested, as well as each simulation device, running according to the preset data volume threshold and PLCA mechanism.

[0185] The device 13 in the vehicle under test is also used to operate according to a preset data volume threshold and a PLCA mechanism.

[0186] The vehicle equipment simulation device 14 is also used to control each simulation device to operate according to a preset data volume threshold and PLCA mechanism.

[0187] It should be noted that the way the test vehicle equipment and the simulation equipment operate according to the preset data volume threshold and the PLCA mechanism in this embodiment is similar to the way the test vehicle equipment and the simulation equipment operate according to the preset standard data volume and the PLCA mechanism in the above embodiments, and will not be described again here.

[0188] It should be noted that the preset data volume threshold is the maximum amount of data that a node can send, and the preset data volume threshold is greater than the preset standard data volume. The preset data volume threshold can be 500 bytes, 600 bytes, 700 bytes, etc. This application embodiment does not limit the preset data volume threshold, and it can be determined according to the actual situation.

[0189] The test equipment 12 can acquire the communication data sent by the vehicle equipment 13 under test and each simulated device during operation, and then perform tests based on the communication data according to the test method in the above embodiment to obtain new data transmission conflict test results, new cycle duration test results, new cycle jitter test results, new data transmission order test results and new transmission time deviation test results. The new data transmission conflict test results, new cycle duration test results, new cycle jitter test results, new data transmission order test results and new transmission time deviation test results are then added to the test report.

[0190] The test device 12 is also used to: obtain the total network throughput; then generate throughput test results to determine whether there are any abnormalities in the network throughput based on the total network throughput and a preset throughput threshold; and add the throughput test results to the test report.

[0191] If the total network throughput exceeds a preset throughput threshold, a throughput test result indicating an anomaly in network throughput is generated. If the total network throughput is less than or equal to the preset throughput threshold, a throughput test result indicating no anomalies in network throughput is generated.

[0192] It should be noted that the preset throughput threshold can be 6Mbps, 7Mbps, 8Mbps, etc. This application embodiment does not limit the preset throughput threshold, and it can be determined according to the actual situation.

[0193] The communication testing system provided in this embodiment operates by setting a data volume threshold and a PLCA mechanism for the equipment under test and the simulation equipment. The testing equipment can test the operation of the PLCA mechanism of the vehicle under test under high load, thus realizing performance stress testing.

[0194] Based on the above embodiments, the following describes the testing of the recovery time and election rules when the test device controls the master node to fail.

[0195] Test device 12 is also used to control the failure of the master node in the test vehicle device 13 and all simulation devices, and start timing; when the BEACON frame is acquired, timing is stopped and the timing duration is obtained; based on the timing duration and the preset recovery duration, a recovery test result indicating whether there is an abnormality in the recovery duration is generated.

[0196] When a data frame is acquired, it is parsed to obtain the election device identifier. Based on the election device identifier and the preset identifier, an election test result is generated to determine whether there is an anomaly in the master node election.

[0197] Add the recovery test results and election test results to the test report.

[0198] After the master node fails, a new master node will be elected from the slave nodes according to the election rules. At the beginning of a data transmission cycle, the new master node will first send a BEACON frame to Ethernet bus 11. The transmission opportunity (TO) is at the master node. After the master node generates a data frame, it will send it to Ethernet bus 11.

[0199] Therefore, when test device 12 receives a BEACON frame, it indicates that a new master node has been elected. If the timing duration is less than or equal to the preset recovery duration, a recovery test result indicating that the recovery duration is not abnormal is generated. If the timing duration is greater than the preset recovery duration, a recovery test result indicating that the recovery duration is abnormal is generated.

[0200] It should be noted that the preset recovery time can be 100 milliseconds, 500 milliseconds, 1 second, etc. This application embodiment does not limit the preset recovery time, which can be determined according to the actual situation.

[0201] Furthermore, when the test device 12 receives a data frame, which is sent by the new master node, it can parse the data frame to obtain the election device identifier, which is the identifier of the new master node. If the election device identifier is the same as the preset identifier, an election test result indicating that there is no anomaly in the master node election is generated; if the election device identifier is different from the preset identifier, an election test result indicating that there is an anomaly in the master node election is generated.

[0202] The communication testing system provided in this embodiment can test network recovery time by obtaining the duration from the failure of the master node to the acquisition of the BEACON frame. The election rules can be tested by parsing the acquired data frames to obtain the election device identifier. No manual operation is required, achieving standardized and systematic testing.

[0203] Based on the above embodiments, the following describes the testing of the failure and recovery process of slave nodes in the control simulation device.

[0204] The vehicle equipment simulation device 14 is also used to control the failure of one slave node among all simulation devices.

[0205] The test device 12 is also used to parse the acquired data frames to obtain node identifiers; based on each node identifier and the identifier of the slave node, it generates a failure handling test result to determine whether there are any abnormalities in the failure handling of the slave node.

[0206] After a slave node fails, it will no longer send data frames. Therefore, if the slave node's identifier is not found among all the parsed node identifiers, a failure handling test result indicating that the slave node failure handling is not abnormal will be generated; if the slave node's identifier is found among all the parsed node identifiers, a failure handling test result indicating that the slave node failure handling is abnormal will be generated.

[0207] The vehicle equipment simulation device 14 is also used to control the recovery of the node to normal.

[0208] The test device 12 is also used to parse the acquired data frames to obtain node identifiers; based on each node identifier and the identifier of the slave node, it generates online processing test results to determine whether there are any abnormalities in the online processing of the slave node.

[0209] Once the slave node recovers to normal, it will send data frames. Therefore, if the slave node's identifier is present among all the parsed node identifiers, a test result indicating that the slave node's online processing is not abnormal will be generated; otherwise, a test result indicating that the slave node's online processing is abnormal will be generated.

[0210] Test device 12 adds the failure handling test results and the online handling test results to the test report.

[0211] The communication testing system provided in this embodiment controls the failure and recovery of slave nodes, and tests the failure and recovery processes of slave nodes based on whether the identifier in the data frame includes the identifier of the slave node. This eliminates the need for manual operation, achieving standardized and systematic testing.

[0212] Based on the above embodiments, the following describes the situation where interference signals are injected when the device under test sends data frames to test the network's anti-interference capabilities.

[0213] The vehicle equipment simulation device 14 is also used to inject interference signals into the Ethernet bus 11 when the vehicle equipment 13 under test sends data frames.

[0214] The test device 12 is also used to calculate the packet loss rate, error frame rate and network recovery time based on the acquired data frames; generate anti-interference test results indicating whether there are any abnormalities in anti-interference based on the packet loss rate, error frame rate and network recovery time; and add the anti-interference test results to the test report.

[0215] The test equipment 12 acquires data frames from multiple periods. The vehicle equipment simulation equipment 14 injects interference signals when the vehicle equipment 13 under test sends data frames in the first period. The test equipment 12 divides the number of data frames in the first period by the total number of nodes to obtain the packet loss rate. The total number of nodes is the preset number of nodes plus one.

[0216] Test device 12 verifies the data frames in the first cycle and identifies erroneous data frames. The error frame rate is obtained by dividing the number of erroneous data frames by the total number of nodes.

[0217] Test device 12 sorts data frames not within the first cycle according to their acquisition time from earliest to latest, obtaining a data frame sequence. The data frames are then parsed to obtain node identifiers, which are then sorted according to the data frame sequence to obtain a node identifier sequence. The node identifier of the first device under test (vehicle device 13) in the node identifier sequence is used as the recovery node identifier; the acquisition time of the data frame corresponding to the recovery node identifier is used as the recovery time. Vehicle device simulation device 14 transmits the time of injecting interference signals to test device 12, which is used as the interference time. The interval between the interference time and the recovery time is used as the network recovery time.

[0218] If the packet loss rate is less than the preset packet loss rate threshold, the error frame rate is less than the preset frame rate threshold, and the network recovery time is less than the preset time threshold, an anti-interference test result indicating that there is no abnormality in anti-interference is generated; if the packet loss rate is greater than or equal to the preset packet loss rate threshold, the error frame rate is greater than or equal to the preset frame rate threshold, or the network recovery time is greater than or equal to the preset time threshold, an anti-interference test result indicating that there is an abnormality in anti-interference is generated.

[0219] It should be noted that the preset packet loss rate threshold and preset frame rate threshold can be 0.1%, 0.5%, 1%, etc. The preset duration threshold can be 3 milliseconds, 4 milliseconds, 5 milliseconds, etc. This application embodiment does not limit the preset packet loss rate threshold, preset frame rate threshold, and preset duration threshold, and they can be determined according to the actual situation.

[0220] The communication testing system provided in this embodiment injects interference signals into the data frames sent by the device under test, and performs anti-interference testing based on packet loss rate, error frame rate, and network recovery time. No manual operation is required, achieving standardized and systematic testing.

[0221] Figure 2 This is a flowchart illustrating an embodiment of the communication testing method for vehicle equipment provided in this application. The method is applied to the communication testing system for vehicle equipment in the above embodiments. This embodiment generates a simulated device for the vehicle equipment, and the vehicle equipment under test and the simulated device operate according to a preset standard data volume and PLCA mechanism. The testing process is described below. The method in this embodiment can be implemented through software, hardware, or a combination of both. Figure 2 As shown, the communication testing method for this vehicle equipment specifically includes the following steps.

[0222] S201: The equipment in the vehicle under test operates according to the preset standard data volume and PLCA mechanism.

[0223] S202: The vehicle equipment simulation equipment generates simulation equipment according to the preset number of nodes, and controls each simulation equipment to run according to the preset standard data volume and PLCA mechanism.

[0224] It should be noted that the test vehicle equipment, the vehicle equipment simulation equipment, and the execution process of the simulation equipment have been described in the above embodiments, and will not be repeated here.

[0225] S203: The test equipment acquires the communication data sent by the equipment in the vehicle under test and each simulation device during operation.

[0226] S204: The test equipment tests the communication data and generates a test report.

[0227] In the above steps, the communication data sent by the vehicle under test and each simulation device during operation is acquired at the physical layer.

[0228] The communication data includes multiple BEACON frames, multiple data frames, the acquisition time of each BEACON frame, and the acquisition time of each data frame.

[0229] The testing equipment sorts and segments each BEACON frame and each data frame according to the acquisition time of each BEACON frame and the acquisition time of each data frame, resulting in multiple data sequences. Each data sequence includes one BEACON frame and a preset number of data frames.

[0230] Based on the acquisition time of each BEACON frame, the acquisition time of each data frame, and each data sequence, data transmission conflict test, period duration test, period jitter test, data transmission order test, and transmission time deviation test are performed, and a test report is generated.

[0231] Based on the acquisition time of each data frame, a data transmission conflict test result is generated indicating whether a data transmission conflict exists.

[0232] Calculate the BEACON frame acquisition interval based on the acquisition time of each BEACON frame.

[0233] Based on the preset cycle duration and the acquisition interval of each BEACON frame, a cycle duration test result is generated to indicate whether there are any abnormalities in the data transmission cycle.

[0234] Based on the preset variance threshold and the acquisition interval of each BEACON frame, a period jitter test result is generated to indicate whether there is an abnormality in the jitter of the data transmission period.

[0235] Based on the preset identifier order and the data frames in each data sequence, a data transmission order test result is generated to indicate whether there are any abnormalities in the data transmission order.

[0236] Based on the preset transmission time deviation threshold, the preset transmission opportunity duration, and each data sequence, a transmission time deviation test result is generated to indicate whether there is an abnormality in the transmission time deviation of the vehicle equipment.

[0237] A test report is generated based on the results of data transmission conflict test, cycle duration test, cycle jitter test, data transmission order test, and transmission time deviation test.

[0238] The test equipment sorts and segments each BEACON frame and each data frame in the following way:

[0239] The data sequence is obtained by sorting each BEACON frame and each data frame in order of acquisition time from early to late.

[0240] For each BEACON frame in the overall data sequence, if there is a data frame preceding the BEACON frame, then the data sequence is split between the BEACON frame and the preceding data frame to obtain multiple data sequences.

[0241] The test equipment generates data transmission order test results in the following way:

[0242] The data frames in each data sequence are parsed and sorted to obtain the test identifier order corresponding to each data sequence.

[0243] If the order of each identifier to be tested is the same as the preset identifier order, a data transmission order test result indicating that there is no abnormality in the data transmission order will be generated.

[0244] If any of the test identifier sequences differs from the preset sequence, a test result indicating an abnormal data transmission sequence is generated.

[0245] The test equipment generates the transmission time deviation test results in the following way:

[0246] For each data frame in each data sequence, the data frame is parsed to obtain the data frame identifier.

[0247] For each data frame in each data sequence, the theoretical transmission time of the data frame is calculated based on the preset transmission opportunity duration, the identifier of the data frame, and the acquisition time of the BEACON frame in the data sequence.

[0248] For each data frame in each data sequence, if the interval between the acquisition time of the data frame and the theoretical transmission time is longer than the preset transmission time deviation threshold, the data frame is regarded as an abnormal data frame.

[0249] If an abnormal data frame is found in all data frames across all data sequences, a transmission timing deviation test result indicating an abnormal transmission timing deviation of the vehicle equipment is generated.

[0250] If no abnormal data frames are found in any of the data frames in all data sequences, a transmission timing deviation test result indicating that there is no abnormality in the transmission timing deviation of the vehicle equipment is generated.

[0251] It should be noted that the method of generating test reports based on communication data has been described in the above embodiments and will not be repeated here.

[0252] The vehicle equipment communication testing method provided in this embodiment involves the vehicle equipment under test operating according to a preset standard data volume and a PLCA mechanism. A vehicle equipment simulation device generates simulated devices based on a preset number of nodes and controls each simulated device to operate according to the preset standard data volume and PLCA mechanism. The testing equipment acquires the communication data sent by the vehicle equipment under test and each simulated device during operation, and then performs tests based on the communication data to generate a test report. This solution reduces costs by using a vehicle equipment simulation device to generate simulated devices for testing.

[0253] Figure 3 This is a flowchart illustrating a second embodiment of the communication testing method for vehicle equipment provided in this application. Based on the above embodiments, this application describes the throughput testing of the testing equipment. Figure 3 As shown, the communication testing method for this vehicle equipment specifically includes the following steps.

[0254] S301: The equipment in the vehicle under test operates according to the preset data volume threshold and PLCA mechanism.

[0255] S302: Vehicle equipment simulation equipment controls each simulation device to operate according to a preset data volume threshold and PLCA mechanism.

[0256] S303: Test the device to obtain the total network throughput.

[0257] S304: The test equipment generates throughput test results to determine whether there are any abnormalities in network throughput based on the total network throughput and the preset throughput threshold.

[0258] S305: The test equipment adds the throughput test results to the test report.

[0259] It should be noted that the execution process of the vehicle equipment to be tested, the vehicle equipment simulation equipment, and the test equipment in this embodiment has been described in the above embodiments and will not be repeated here.

[0260] The communication testing method for vehicle equipment provided in this embodiment operates by setting a data volume threshold and a PLCA mechanism for the vehicle equipment under test and the simulation equipment. The testing equipment can test the PLCA mechanism of the vehicle under test under high load, thus realizing performance stress testing.

[0261] Figure 4 This is a flowchart illustrating a third embodiment of the communication testing method for vehicle equipment provided in this application. Based on the above embodiments, this application describes the results of master node recovery testing and election testing. Figure 4 As shown, the communication testing method for this vehicle equipment specifically includes the following steps.

[0262] S401: The test equipment controls the master node in the test vehicle and all simulation equipment to fail and starts timing.

[0263] S402: When the test device acquires a BEACON frame, it stops timing and obtains the timing duration.

[0264] S403: The test equipment generates a recovery test result indicating whether there is an abnormality in the recovery time based on the timing duration and the preset recovery time.

[0265] S404: When the test device receives a data frame, it parses the data frame to obtain the election device identifier.

[0266] S405: The test equipment generates election test results to determine whether there are any abnormalities in the master node election based on the election equipment identifier and the preset identifier.

[0267] S406: The test equipment will add the recovery test results and election test results to the test report.

[0268] It should be noted that the execution process of the test device in this embodiment has been described in the above embodiments and will not be repeated here.

[0269] The communication testing method for vehicle equipment provided in this embodiment can test the network recovery time by obtaining the time from the failure of the master node to the acquisition of the BEACON frame. The election rules can be tested by parsing the acquired data frames to obtain the election device identifier.

[0270] Figure 5 This is a flowchart illustrating Embodiment 4 of the communication testing method for vehicle equipment provided in this application. Based on the above embodiments, this application describes the failure handling test and online handling test of the test equipment from the slave node. Figure 5 As shown, the communication testing method for this vehicle equipment specifically includes the following steps.

[0271] S501: Vehicle equipment simulation equipment controls the failure of one slave node in all simulation equipment.

[0272] S502: The test equipment parses the acquired data frames to obtain the node identifiers.

[0273] S503: The test equipment generates failure handling test results based on the identifier of each node and the identifier of the slave node to determine whether there are any abnormalities in the failure handling of the slave node.

[0274] S504: Vehicle equipment simulation equipment control has returned to normal from the node.

[0275] S505: The test equipment parses the acquired data frames to obtain the node identifiers.

[0276] S506: The test equipment generates online processing test results based on the identifier of each node and the identifier of the slave node to determine whether there are any abnormalities in the online processing of the slave node.

[0277] S507: The test equipment adds the failure handling test results and the online handling test results to the test report.

[0278] It should be noted that the execution process of the vehicle equipment simulation equipment and the testing equipment in this embodiment has been described in the above embodiments and will not be repeated here.

[0279] The communication testing method for vehicle equipment provided in this embodiment tests the failure and recovery of slave nodes by controlling the failure and recovery of slave nodes, and tests the failure and recovery of slave nodes based on whether the identifier in the data frame includes the identifier of the slave node.

[0280] Figure 6 This is a flowchart illustrating Embodiment 5 of the communication testing method for vehicle equipment provided in this application. Based on the above embodiments, this application describes the situation of performing anti-interference testing on the testing equipment. Figure 6 As shown, the communication testing method for this vehicle equipment specifically includes the following steps.

[0281] S601: The vehicle equipment simulation device injects interference signals into the Ethernet bus when the vehicle equipment under test sends data frames.

[0282] S602: The test device calculates the packet loss rate, error frame rate, and network recovery time based on the acquired data frames.

[0283] S603: The test equipment generates anti-interference test results indicating whether there are any abnormalities in anti-interference based on packet loss rate, error frame rate, and network recovery time.

[0284] S604: The test equipment adds the anti-interference test results to the test report.

[0285] It should be noted that the execution process of the vehicle equipment simulation equipment and the testing equipment in this embodiment has been described in the above embodiments and will not be repeated here.

[0286] The communication testing method for vehicle equipment provided in this embodiment injects interference signals into the data frames sent by the vehicle equipment under test, and achieves anti-interference testing based on packet loss rate, error frame rate and network recovery time.

[0287] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A communication testing system for vehicle equipment, characterized in that, include: An Ethernet bus, and test equipment, vehicle equipment under test, and vehicle equipment simulation equipment respectively connected to the Ethernet bus; The device under test is used to operate according to the preset standard data volume and physical layer conflict avoidance PLCA mechanism. The vehicle equipment simulation device is used to generate simulation devices according to a preset number of nodes, and to control each simulation device to operate according to the preset standard data volume and the PLCA mechanism; The testing equipment is used for: The communication data sent by the vehicle under test and each simulation device during operation is acquired at the physical layer; the communication data includes multiple BEACON frames, multiple data frames, the acquisition time of each BEACON frame, and the acquisition time of each data frame. Based on the acquisition time of each BEACON frame and the acquisition time of each data frame, each BEACON frame and each data frame are sorted and segmented to obtain multiple data sequences. Each data sequence includes one BEACON frame and the preset number of data frames. Based on the acquisition time of each BEACON frame, the acquisition time of each data frame, and each data sequence, data transmission conflict test, period duration test, period jitter test, data transmission order test, and transmission time deviation test are performed, and a test report is generated.

2. The communication testing system for vehicle equipment according to claim 1, characterized in that, The testing equipment, when used to perform data transmission conflict testing, period duration testing, period jitter testing, data transmission order testing, and transmission time deviation testing based on the acquisition time of each BEACON frame, the acquisition time of each data frame, and each data sequence, and to generate a test report, is specifically used for: Based on the acquisition time of each data frame, generate a data transmission conflict test result indicating whether a data transmission conflict exists; Calculate the BEACON frame acquisition interval based on the acquisition time of each BEACON frame; Based on the preset cycle duration and the acquisition interval of each BEACON frame, a cycle duration test result is generated to indicate whether there are any abnormalities in the data transmission cycle; Based on the preset variance threshold and the acquisition interval of each BEACON frame, a period jitter test result is generated to indicate whether there is an abnormality in the jitter of the data transmission period. Based on the preset identifier order and the data frames in each data sequence, generate a data transmission order test result indicating whether there is an anomaly in the data transmission order; Based on the preset transmission time deviation threshold, the preset transmission opportunity duration, and each data sequence, a transmission time deviation test result is generated to indicate whether there is an abnormality in the transmission time deviation of the vehicle equipment. The test report is generated based on the data transmission conflict test results, the period duration test results, the period jitter test results, the data transmission order test results, and the transmission time deviation test results.

3. The communication testing system for vehicle equipment according to claim 1, characterized in that, When the testing equipment is used to sort and segment each BEACON frame and each data frame according to the acquisition time of each BEACON frame and each data frame to obtain multiple data sequences, it is specifically used for: According to the acquisition time from morning to evening, each BEACON frame and each data frame are sorted to obtain the total data sequence; For each BEACON frame in the total data sequence, if there is a data frame preceding the BEACON frame, then the data sequence is divided between the BEACON frame and the preceding data frame to obtain the multiple data sequences.

4. The communication testing system for vehicle equipment according to claim 2, characterized in that, When the testing equipment is used to generate a data transmission order test result indicating whether there is an anomaly in the data transmission order based on a preset identifier order and data frames in each data sequence, it is specifically used for: The data frames in each data sequence are parsed and sorted to obtain the test identifier order corresponding to each data sequence; If the order of each identifier to be tested is the same as the preset identifier order, a data transmission order test result indicating that there is no abnormality in the data transmission order is generated; If any of the test identifier sequences is different from the preset identifier sequence, a test result indicating an abnormal data transmission sequence is generated.

5. The communication testing system for vehicle equipment according to claim 2, characterized in that, When the testing equipment is used to generate a transmission time deviation test result indicating whether there is an anomaly in the transmission time deviation of the vehicle equipment, based on a preset transmission time deviation threshold, a preset transmission opportunity duration, and each data sequence, it is specifically used for: For each data frame in each data sequence, the data frame is parsed to obtain the identifier of the data frame; For each data frame in each data sequence, the theoretical transmission time of the data frame is calculated based on the preset transmission opportunity duration, the identifier of the data frame, and the acquisition time of the BEACON frame in the data sequence. For each data frame in each data sequence, if the interval between the acquisition time and the theoretical transmission time of the data frame is greater than the preset transmission time deviation threshold, then the data frame is regarded as an abnormal data frame. If there is an abnormal data frame in all data frames of all data sequences, a transmission time deviation test result indicating that the transmission time deviation of the vehicle equipment is abnormal is generated. If no abnormal data frames are found in any of the data frames in all data sequences, a transmission timing deviation test result indicating that there is no abnormality in the transmission timing deviation of the vehicle equipment is generated.

6. The communication testing system for vehicle equipment according to any one of claims 1 to 5, characterized in that, The test vehicle equipment is also used to operate according to a preset data volume threshold and the PLCA mechanism, wherein the preset data volume threshold is greater than the preset standard data volume. The vehicle equipment simulation device is also used to control each simulation device to operate according to the preset data volume threshold and the PLCA mechanism; The testing equipment is also used for: Obtain the total network throughput; Based on the total network throughput and the preset throughput threshold, a throughput test result is generated to determine whether there are any abnormalities in the network throughput. Add the throughput test results to the test report.

7. The communication testing system for vehicle equipment according to any one of claims 1 to 5, characterized in that, The testing equipment is also used for: The master node in the vehicle under test and all simulation devices is disabled, and timing begins; When a BEACON frame is acquired, stop the timer and obtain the timeout duration. Based on the timeout duration and the preset recovery duration, a recovery test result is generated indicating whether there are any abnormalities in the recovery duration; When a data frame is acquired, it is parsed to obtain the election device identifier; Based on the election device identifier and the preset identifier, generate an election test result to determine whether there are any abnormalities in the master node election; Add the recovery test results and the election test results to the test report.

8. The communication testing system for vehicle equipment according to any one of claims 1 to 5, characterized in that, The vehicle equipment simulation device is also used to control the failure of one slave node among all simulation devices; The testing equipment is also used for: The acquired data frames are parsed to obtain node identifiers; Based on the identifier of each node and the identifier of the slave node, generate a failure handling test result to determine whether there are any abnormalities in the failure handling of the slave node; The vehicle equipment simulation device is also used to control the slave node to return to normal; The testing equipment is also used for: The acquired data frames are parsed to obtain node identifiers; Based on the identifier of each node and the identifier of the slave node, generate an online processing test result to determine whether there are any abnormalities in the online processing of the slave node; Add the failure handling test results and the online handling test results to the test report.

9. The communication testing system for vehicle equipment according to any one of claims 1 to 5, characterized in that, The vehicle equipment simulation device is also used to inject interference signals into the Ethernet bus when the vehicle equipment under test sends data frames; The testing equipment is also used for: Based on the acquired data frames, calculate the packet loss rate, error frame rate, and network recovery time; Based on the packet loss rate, the error frame rate, and the network recovery time, generate anti-interference test results indicating whether there are any abnormalities in the anti-interference performance; Add the anti-interference test results to the test report.

10. A communication testing method for vehicle equipment, characterized in that, The communication test system applied to the vehicle equipment according to any one of claims 1 to 9, the method comprising: The equipment in the vehicle under test operates according to the preset standard data volume and PLCA mechanism; The vehicle equipment simulation device generates simulation devices according to a preset number of nodes, and controls each simulation device to operate according to the preset standard data volume and the PLCA mechanism; The test equipment acquires the communication data sent by the vehicle under test and each simulation device during operation at the physical layer; the communication data includes multiple BEACON frames, multiple data frames, the acquisition time of each BEACON frame, and the acquisition time of each data frame. Based on the acquisition time of each BEACON frame and the acquisition time of each data frame, each BEACON frame and each data frame are sorted and segmented to obtain multiple data sequences. Each data sequence includes one BEACON frame and the preset number of data frames. Based on the acquisition time of each BEACON frame, the acquisition time of each data frame, and each data sequence, data transmission conflict test, period duration test, period jitter test, data transmission order test, and transmission time deviation test are performed, and a test report is generated.

11. The method according to claim 10, characterized in that, The process involves performing data transmission conflict tests, period duration tests, period jitter tests, data transmission order tests, and transmission time deviation tests based on the acquisition time of each BEACON frame, the acquisition time of each data frame, and each data sequence, generating a test report, including: Based on the acquisition time of each data frame, generate a data transmission conflict test result indicating whether a data transmission conflict exists; Calculate the BEACON frame acquisition interval based on the acquisition time of each BEACON frame; Based on the preset cycle duration and the acquisition interval of each BEACON frame, a cycle duration test result is generated to indicate whether there are any abnormalities in the data transmission cycle; Based on the preset variance threshold and the acquisition interval of each BEACON frame, a period jitter test result is generated to indicate whether there is an abnormality in the jitter of the data transmission period. Based on the preset identifier order and the data frames in each data sequence, generate a data transmission order test result indicating whether there is an anomaly in the data transmission order; Based on the preset transmission time deviation threshold, the preset transmission opportunity duration, and each data sequence, a transmission time deviation test result is generated to indicate whether there is an abnormality in the transmission time deviation of the vehicle equipment. The test report is generated based on the data transmission conflict test results, the period duration test results, the period jitter test results, the data transmission order test results, and the transmission time deviation test results.

12. The method according to claim 10, characterized in that, The process involves sorting and segmenting each BEACON frame and each data frame based on their acquisition times to obtain multiple data sequences, including: According to the acquisition time from morning to evening, each BEACON frame and each data frame are sorted to obtain the total data sequence; For each BEACON frame in the total data sequence, if there is a data frame preceding the BEACON frame, then the data sequence is divided between the BEACON frame and the preceding data frame to obtain the multiple data sequences.

13. The method according to claim 11, characterized in that, The step of generating a data transmission order test result indicating whether there are any abnormalities in the data transmission order based on a preset identifier order and data frames in each data sequence includes: The data frames in each data sequence are parsed and sorted to obtain the test identifier order corresponding to each data sequence; If the order of each identifier to be tested is the same as the preset identifier order, a data transmission order test result indicating that there is no abnormality in the data transmission order is generated; If any of the test identifier sequences is different from the preset identifier sequence, a test result indicating an abnormal data transmission sequence is generated.

14. The method according to claim 11, characterized in that, The step of generating a transmission time deviation test result indicating whether there is an anomaly in the transmission time deviation of the vehicle equipment, based on a preset transmission time deviation threshold, a preset transmission opportunity duration, and each data sequence, includes: For each data frame in each data sequence, the data frame is parsed to obtain the identifier of the data frame; For each data frame in each data sequence, the theoretical transmission time of the data frame is calculated based on the preset transmission opportunity duration, the identifier of the data frame, and the acquisition time of the BEACON frame in the data sequence. For each data frame in each data sequence, if the interval between the acquisition time and the theoretical transmission time of the data frame is greater than the preset transmission time deviation threshold, then the data frame is regarded as an abnormal data frame. If there is an abnormal data frame in all data frames of all data sequences, a transmission time deviation test result indicating that the transmission time deviation of the vehicle equipment is abnormal is generated. If no abnormal data frames are found in any of the data frames in all data sequences, a transmission timing deviation test result indicating that there is no abnormality in the transmission timing deviation of the vehicle equipment is generated.