Vehicle-mounted equipment testing method and device, storage medium and vehicle
By testing the frame copy and frame cancellation functions in the on-board equipment, we ensure that the redundant protocol functions of the on-board AVB/TSN equipment are correctly implemented, and the problem of testing frame copy and frame cancellation functions in the existing technology is solved, and network stability and data redundancy are improved. Remaining backup capabilities reduce the risk of data loss.
Patent Information
- Application Number
- CN202411363553.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-03
AI Technical Summary
The prior art is difficult to effectively test and ensure the frame replication and frame cancellation functions of vehicle-mounted AVB/TSN devices, resulting in the inadequate meeting of network stability and data redundancy requirements, affecting the high reliability and low packet loss rate of automotive electronic systems.
By testing the frame copy function and frame cancellation function in the on-board equipment, the frame copy function test system and the frame cancellation function test system are used to verify the frame copy and frame cancellation capabilities of the unit to be tested respectively to ensure the correct implementation and efficient operation of the redundant protocol functions. .
It realizes comprehensive coverage of the redundant protocol functions of vehicle-mounted equipment, ensures stable data transmission and redundant backup, reduces data loss caused by network failure, and improves testing efficiency.
Smart Images

Figure CN119254658A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle testing, and in particular to a vehicle-mounted equipment testing method, device, storage medium and vehicle. Background Art
[0002] In modern automotive electronic systems, the introduction of on-board AVB (Audio Video Bridging) and TSN (Time-Sensitive Networking) devices has greatly improved the efficiency and reliability of data transmission between the vehicle's internal infotainment system and key control systems.
[0003] However, as automotive functions become increasingly complex, the demand for network stability and data redundancy is also increasing. The frame replication and elimination technology of the CB protocol is the key to ensuring this demand. Its correct implementation and efficient operation are essential to ensure high reliability and low packet loss rate of automotive electronic systems. Therefore, strict testing of the frame replication and frame elimination functions of in-vehicle AVB / TSN equipment is a necessary step to verify whether it can operate effectively in a complex in-vehicle environment, which is directly related to driving safety and passenger experience. Summary of the invention
[0004] In view of this, the present invention aims to propose a vehicle-mounted equipment testing method, device, storage medium and vehicle, which can comprehensively cover the redundant protocol functions of the vehicle-mounted equipment by respectively testing the frame replication function and frame elimination function of the unit to be tested, thereby ensuring the correct implementation and efficient operation of the redundant protocol functions, thereby ensuring the stable transmission and redundant backup of data, and further, reducing data loss caused by network failure.
[0005] According to a first aspect of the present invention, a vehicle-mounted device testing method is provided, which is applied to a vehicle, wherein the vehicle includes an audio video bridging device or a time sensitive network device, wherein the audio video bridging device or the time sensitive network device is mounted on a frame replication function testing system or a frame elimination function testing system, and the method includes:
[0006] In the case where the audio video bridging device or the time sensitive network device enables a redundant protocol, using the audio video bridging device or the time sensitive network device as a unit to be tested;
[0007] In the case where the unit to be tested is mounted on the frame copy function test system, testing whether the unit to be tested successfully copies a message of a preset type by the frame copy function test system;
[0008] If the unit to be tested successfully copies the message of the preset type, it is determined that the frame copy function of the unit to be tested is normal;
[0009] In the case where the unit to be tested is mounted on the frame elimination function test system, testing whether the unit to be tested successfully eliminates the message of the preset type by the frame elimination function test system;
[0010] If the unit to be tested successfully eliminates the message of the preset type, it is determined that the frame elimination function of the unit to be tested is normal.
[0011] Optionally, the frame copy function test system includes a first input test device and at least two first output test devices, the unit to be tested includes an input port and at least two split ports, wherein the input test device establishes a communication connection with the input port, and at least two of the output test devices respectively establish a communication connection with at least two of the split ports;
[0012] The testing of whether the unit to be tested successfully copies a message of a preset type by the frame copy function testing system comprises:
[0013] Configuring a frame copy function for the unit to be tested;
[0014] Sending reliability frame replication and elimination messages to the unit to be tested through the input test device;
[0015] If at least two of the output test devices receive the reliability frame replication and elimination message, the reliability frame replication and elimination message includes a reliability frame replication and elimination frame header, and the serial number in the reliability frame replication and elimination frame header is increasing, it is determined that the unit to be tested successfully replicates the reliability frame replication and elimination message.
[0016] Optionally, the testing, by the frame copy function test system, whether the unit to be tested successfully copies a message of a preset type comprises:
[0017] Configuring the frame copy function for the unit to be tested;
[0018] Sending a non-reliability frame duplication and elimination message to the unit to be tested through the input test device;
[0019] If any of the at least two output test devices receives the unreliability frame copy and elimination message and the unreliability frame copy and elimination message does not include the reliability frame copy and elimination frame header, it is determined that the unit to be tested has not successfully copied the unreliability frame copy and elimination message.
[0020] Optionally, the testing, by the frame copy function test system, whether the unit to be tested successfully copies a message of a preset type comprises:
[0021] Configuring the frame copy function for the unit to be tested;
[0022] Sending a plurality of the reliability frame replication and elimination messages to the unit to be tested through the input test device;
[0023] If at least two of the output test devices receive multiple reliability frame copy and elimination messages, multiple reliability frame copy and elimination messages include the reliability frame copy and elimination frame headers, and the serial numbers in the reliability frame copy and elimination frame headers are increasing, it is determined that the unit to be tested has successfully copied the multiple reliability frame copy and elimination messages.
[0024] Optionally, the frame elimination function test system includes at least two second input test devices and a second output test device, and the unit to be tested includes at least two of the input ports and the split port, wherein at least two of the second input test devices respectively establish communication connections with at least two of the input ports, and the second output test device establishes a communication connection with the split port;
[0025] The testing of whether the unit to be tested successfully eliminates the message of the preset type by the frame elimination function testing system includes:
[0026] Configuring a frame elimination function for the unit to be tested;
[0027] Sending the reliability frame replication and elimination message to the unit to be tested through at least two of the second input test devices;
[0028] If the second output test device receives the reliability frame copy and elimination message and there is no duplicate reliability frame copy and elimination message, it is determined that the unit to be tested successfully eliminates the reliability frame copy and elimination message.
[0029] Optionally, the testing, by the frame elimination function test system, whether the unit to be tested successfully eliminates the message of the preset type comprises:
[0030] Configuring the frame elimination function for the unit to be tested;
[0031] Sending unreliability frame duplication and elimination messages to the unit to be tested through at least two of the second input test devices;
[0032] If the second output test device receives the unreliability frame copy and elimination message and there are repeated unreliability frame copy and elimination messages, it is determined that the unit to be tested has not successfully eliminated the unreliability frame copy and elimination messages.
[0033] Optionally, the testing, by the frame elimination function test system, whether the unit to be tested successfully eliminates the message of the preset type comprises:
[0034] Configuring the frame elimination function for the unit to be tested;
[0035] Sending a plurality of the reliability frame replication and elimination messages to the unit to be tested through at least two of the second input test devices;
[0036] If the second output test device receives a plurality of the reliability frame copy and elimination messages and there is no duplicate reliability frame copy and elimination message, it is determined that the unit to be tested successfully eliminates a plurality of the reliability frame copy and elimination messages.
[0037] According to a second aspect of the present invention, there is provided a vehicle-mounted equipment testing device, the device comprising:
[0038] A unit to be tested determining module, configured to use the audio video bridging device or the time sensitive network device as a unit to be tested when a redundant protocol is enabled in the audio video bridging device or the time sensitive network device;
[0039] A frame copy function test module, used for testing whether the unit to be tested successfully copies a message of a preset type through the frame copy function test system when the unit to be tested is mounted on the frame copy function test system;
[0040] A frame copy function test result determination module, used to determine that the frame copy function of the unit to be tested is normal if the unit to be tested successfully copies the message of the preset type;
[0041] A frame elimination function test module, used for testing whether the unit to be tested successfully eliminates the message of the preset type through the frame elimination function test system when the unit to be tested is mounted on the frame elimination function test system;
[0042] The frame elimination function test result determination module is used to determine that the frame elimination function of the unit to be tested is normal if the unit to be tested successfully eliminates the message of the preset type.
[0043] Optionally, the frame copy function test module includes:
[0044] A first unit-to-be-tested configuration submodule, configured to configure a frame replication function for the unit to be tested;
[0045] A first message sending submodule, used for sending reliability frame replication and elimination messages to the unit to be tested through the input test device;
[0046] The first message receiving submodule is used to determine that the unit to be tested has successfully copied the reliability frame replication and elimination message if at least two of the output test devices receive the reliability frame replication and elimination message, the reliability frame replication and elimination message includes a reliability frame replication and elimination frame header, and the serial number in the reliability frame replication and elimination frame header is increasing.
[0047] Optionally, the frame copy function test module includes:
[0048] A second unit-to-be-tested configuration submodule, configured to configure the frame copy function for the unit to be tested;
[0049] A second message sending submodule, used for sending a non-reliability frame replication and elimination message to the unit to be tested through the input test device;
[0050] The second message receiving submodule is used to determine that the unit to be tested has not successfully copied the non-reliability frame copy and elimination message if any of the at least two output test devices receives the non-reliability frame copy and elimination message and the non-reliability frame copy and elimination message does not include the reliability frame copy and elimination frame header.
[0051] Optionally, the frame copy function test module includes:
[0052] A third unit-to-be-tested configuration submodule, configured to configure the frame copy function for the unit to be tested;
[0053] A third message sending submodule, used for sending a plurality of the reliability frame replication and elimination messages to the unit to be tested through the input test device;
[0054] The third message receiving submodule is used to determine that the unit to be tested has successfully copied the multiple reliability frame copy and elimination messages if at least two of the output test devices receive the multiple reliability frame copy and elimination messages, the multiple reliability frame copy and elimination messages include the reliability frame copy and elimination frame headers, and the serial numbers in the reliability frame copy and elimination frame headers are increasing.
[0055] Optionally, the frame elimination function test module includes:
[0056] A fourth unit-to-be-tested configuration submodule, configured to configure a frame elimination function for the unit to be tested;
[0057] a fourth message sending submodule, configured to send the reliability frame replication and elimination message to the unit to be tested through at least two of the second input test devices;
[0058] The fourth message receiving submodule is used to determine that the unit to be tested successfully eliminates the reliability frame replication and elimination message if the second output test device receives the reliability frame replication and elimination message and there is no repeated reliability frame replication and elimination message.
[0059] Optionally, the frame elimination function test module includes:
[0060] A fifth unit-to-be-tested configuration submodule, configured to configure the frame elimination function for the unit to be tested;
[0061] a fifth message sending submodule, configured to send the unreliability frame duplication and elimination message to the unit to be tested through at least two of the second input test devices;
[0062] The fifth message receiving submodule is used to determine that the unit to be tested has not successfully eliminated the non-reliability frame replication and elimination message if the second output test device receives the non-reliability frame replication and elimination message and there are repeated non-reliability frame replication and elimination messages.
[0063] Optionally, the frame elimination function test module includes:
[0064] A sixth unit-to-be-tested configuration submodule, configured to configure the frame elimination function for the unit to be tested;
[0065] A sixth message sending submodule, used for sending a plurality of the reliability frame replication and elimination messages to the unit to be tested through at least two of the second input test devices;
[0066] The sixth message receiving submodule is used to determine that the unit to be tested successfully eliminates multiple reliability frame replication and elimination messages if the second output test device receives multiple reliability frame replication and elimination messages and there are no repeated reliability frame replication and elimination messages.
[0067] According to a third aspect of the present invention, there is provided a storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the route planning method as described in any one of the first aspect are implemented.
[0068] According to a fourth aspect of the present invention, there is provided a vehicle, comprising the route planning device according to the second aspect of the present invention.
[0069] An embodiment of the present invention provides a vehicle-mounted device testing method, in which the audio video bridging device or the time sensitive network device is used as a unit to be tested when the redundant protocol is enabled in the audio video bridging device or the time sensitive network device; when the unit to be tested is mounted on a frame copy function test system, the frame copy function test system is used to test whether the unit to be tested successfully copies a message of a preset type; if the unit to be tested successfully copies a message of a preset type, it is determined that the frame copy function of the unit to be tested is normal; when the unit to be tested is mounted on a frame elimination function test system, the frame elimination function test system is used to test whether the unit to be tested successfully eliminates a message of a preset type; if the unit to be tested successfully eliminates a message of a preset type, it is determined that the frame elimination function of the unit to be tested is normal. The present invention can fully cover the redundant protocol functions of the vehicle-mounted device by testing the frame copy function and the frame elimination function of the unit to be tested respectively, ensuring the correct implementation and efficient operation of the redundant protocol function, thereby ensuring the stable transmission and redundant backup of data, and further reducing data loss caused by network failure. In addition, the present invention verifies the frame copy function of the unit to be tested through a frame copy function test system, and verifies the frame elimination function of the system to be tested through a frame elimination function test system, thereby realizing automated testing of the frame copy function and frame elimination function of the unit to be tested, reducing manual operations and testing time, and thus significantly improving testing efficiency.
[0070] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0072] Figure 1 This is one of the step flow charts of a vehicle-mounted device testing method provided by an embodiment of the present invention;
[0073] Figure 2 This is a second step flow chart of a vehicle-mounted device testing method provided by an embodiment of the present invention;
[0074] Figure 3 is a schematic diagram of a frame replication function test system provided by an embodiment of the present invention;
[0075] Figure 4This is a flowchart of the steps of a vehicle-mounted device testing method provided by an embodiment of the present invention;
[0076] Figure 5 is a schematic diagram of a frame elimination function test system provided by an embodiment of the present invention;
[0077] Figure 6 The present invention provides a device block diagram of a vehicle-mounted equipment testing device. DETAILED DESCRIPTION
[0078] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0079] The terms "first", "second", etc. in the specification and claims of the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0080] In conjunction with the accompanying drawings, a vehicle-mounted equipment testing method, device, storage medium and vehicle provided by an embodiment of the present invention are described in detail through specific embodiments and their application scenarios.
[0081] See also Figure 1 , Figure 1 A flowchart of a vehicle-mounted device testing method provided by an embodiment of the present invention, the vehicle-mounted device testing method comprises the following steps:
[0082] Step 101: When a redundant protocol is enabled on an audio video bridging device or a time sensitive network device, the audio video bridging device or the time sensitive network device is used as a unit to be tested.
[0083] Step 102: When the unit to be tested is mounted on a frame copy function test system, the frame copy function test system is used to test whether the unit to be tested successfully copies a message of a preset type.
[0084] Step 103: If the unit to be tested successfully copies the message of the preset type, it is determined that the frame copy function of the unit to be tested is normal.
[0085] Step 104: When the unit to be tested is mounted on a frame erasure function test system, the frame erasure function test system is used to test whether the unit to be tested successfully eliminates a message of a preset type.
[0086] Step 105: If the unit to be tested successfully eliminates the message of the preset type, it is determined that the frame elimination function of the unit to be tested is normal.
[0087] It should be noted that, in the embodiment of the present invention, the redundancy protocol may be a CB protocol.
[0088] In order to verify that the vehicle-mounted AVB (Audio Video Bridging) / TSN (Time-Sensitive Networking) device can correctly perform the frame replication function and the frame elimination function after enabling the CB protocol, ensure the stable transmission and redundant backup of audio and video data in the high-reliability vehicle network, and reduce data loss due to network failure. The present invention can use the audio video bridging device or the time-sensitive network device as a unit to be tested when the audio video bridging device or the time-sensitive network device enables the redundant protocol.
[0089] When the unit to be tested is mounted on the frame copy function test system, the frame copy function test system tests whether the unit to be tested successfully copies a message of a preset type. If the unit to be tested successfully copies a message of a preset type, it is determined that the frame copy function of the unit to be tested is normal.
[0090] When the unit to be tested is mounted on the frame erasure function test system, the frame erasure function test system tests whether the unit to be tested successfully erases the message of the preset type. If the unit to be tested successfully erases the message of the preset type, it is determined that the frame erasure function of the unit to be tested is normal.
[0091] The present invention can fully cover the redundant protocol functions of the vehicle-mounted equipment by testing the frame copy function and frame elimination function of the unit to be tested respectively, ensuring the correct implementation and efficient operation of the redundant protocol function, thereby ensuring the stable transmission and redundant backup of data, and further reducing the data loss caused by network failure. In addition, the present invention verifies the frame copy function of the unit to be tested through a frame copy function test system, and verifies the frame elimination function of the system to be tested through a frame elimination function test system, thereby realizing automatic testing of the frame copy function and frame elimination function of the unit to be tested, reducing manual operations and test time, and thereby significantly improving test efficiency.
[0092] Further, in an embodiment of the present invention, if Figure 2 As shown, step 102 may further include the following steps:
[0093] Step 201: configure a frame copy function for a unit to be tested.
[0094] Step 202: Send a reliability frame duplication and elimination message to the unit to be tested through the input test equipment.
[0095] Step 203, if at least two output test devices receive the reliability frame copy and elimination message, the reliability frame copy and elimination message includes the reliability frame copy and elimination frame header, and the serial number in the reliability frame copy and elimination frame header is increasing, it is determined that the unit to be tested successfully copies the reliability frame copy and elimination message.
[0096] It should be noted that, in an embodiment of the present invention, the frame copy function test system includes a first input test device and at least two first output test devices, and the unit to be tested includes an input port and at least two split ports, wherein the input test device establishes a communication connection with the input port, and at least two output test devices respectively establish communication connections with at least two split ports.
[0097] Preferably, if Figure 3 As shown, Figure 3 A schematic diagram of a frame copy function test system provided in an embodiment of the present invention, the frame copy function test system includes a first input test device (TS1) and two first output test devices (TS2, TS3), the unit to be tested includes an input port (P1) and two split ports (P2, P3), wherein the first input test device (TS1) establishes a communication connection with the input port (P1), the first output test device (TS2) establishes a communication connection with the split port (P2), and the first output test device (TS3) establishes a communication connection with the split port (P3).
[0098] The unit to be tested is configured through the following codes, including the frame copy function, queue function, destination MAC (Media Access Control) address of the message, VLAN (Virtual Local Area Network) ID, etc. of the unit to be tested.
[0099] px_DUT_role=e_relaysystem.
[0100] px_sequencingType=PER_SOURCE
[0101] px_supportsStreamSplitting=true
[0102] px_streamIdentifier=DMAC_VLAN
[0103] Traffic Incoming / Outgoing:Non-FRER / FRER
[0104] Set stream id 1:
[0105] Destination mac:0x000000000001
[0106] Vlan ID:1
[0107] Set ingress port:P1
[0108] Set split port:P2、P3
[0109] A FRER (Frame Replication and Elimination for Reliability) message is sent to the unit to be tested through the first input test device (TS1).
[0110] If both first output test devices (TS2, TS3) receive the FRER message, the FRER message includes a FRER frame header, and the sequence number in the FRER frame header is increasing, it is determined that the unit to be tested has successfully copied the FRER message.
[0111] If both first output test devices (TS2, TS3) do not receive the FRER message, or the FRER message does not include a FRER frame header, or the sequence number in the FRER frame header is not increasing, it is determined that the unit to be tested has not successfully copied the FRER message.
[0112] The present invention tests whether the unit to be tested can successfully copy the FRER message by configuring the frame copy function of the unit to be tested, can quickly verify whether the unit to be tested can successfully copy the FRER message, and then can quickly determine the normality of the frame copy function of the unit to be tested, thereby improving the test efficiency of the frame copy function.
[0113] Furthermore, in the embodiment of the present invention, step 102 may also include the following steps:
[0114] Configure the frame copy function for the unit to be tested.
[0115] The unreliability frame duplication and elimination message is sent to the unit under test through the input test equipment.
[0116] If any of the at least two output test devices receives a non-reliability frame copy and elimination message and the non-reliability frame copy and elimination message does not include a reliability frame copy and elimination frame header, it is determined that the unit to be tested has not successfully copied the non-reliability frame copy and elimination message.
[0117] It should be noted that, in the embodiment of the present invention, the unit to be tested is configured through the following codes, including configuring the frame copy function, queue function, destination MAC (Media Access Control) address of the message, VLAN (Virtual Local Area Network) ID, etc. of the unit to be tested.
[0118] px_DUT_role=e_relaysystem
[0119] px_sequencingType=PER_SOURCE
[0120] px_supportsStreamSplitting=true
[0121] px_streamIdentifier=DMAC_VLAN
[0122] Traffic Incoming / Outgoing:Non-FRER / Non-FRER
[0123] Set stream id 1:
[0124] Destination mac:0x000000000001
[0125] Vlan ID:1
[0126] Set ingress port:P1
[0127] Set split port:P2、P3
[0128] A non-FRER message is sent to the unit under test via a first input test device (TS1).
[0129] If any one of the two first output test devices (TS2, TS3) receives a non-FRER message and the non-FRER message does not include a FRER frame header, it is determined that the unit to be tested fails to copy the non-FRER message.
[0130] If any one of the two first output test devices (TS2, TS3) receives a non-FRER message and the non-FRER message does not include a FRER frame header, it is determined that the unit to be tested fails to copy the non-FRER message.
[0131] The present invention configures the frame copy function of the unit to be tested to test whether the unit to be tested can avoid copying non-FRER messages, and can quickly verify whether the unit to be tested can avoid copying non-FRER messages, thereby quickly determining the normality of the frame copy function of the unit to be tested, thereby improving the test efficiency of the frame copy function.
[0132] Furthermore, in the embodiment of the present invention, step 102 may also include the following steps:
[0133] Configure the frame copy function for the unit to be tested.
[0134] A plurality of reliability frame duplication and elimination messages are sent to the unit under test through the input test equipment.
[0135] If at least two output test devices receive multiple reliability frame copy and elimination messages, multiple reliability frame copy and elimination messages include reliability frame copy and elimination frame headers, and the serial numbers in the reliability frame copy and elimination frame headers are increasing, it is determined that the unit to be tested successfully copies multiple reliability frame copy and elimination messages.
[0136] It should be noted that, in the embodiment of the present invention, the unit to be tested is configured through the following codes, including configuring the frame copy function, queue function, destination MAC (Media Access Control) address of the message, VLAN (Virtual Local Area Network) ID, etc. of the unit to be tested.
[0137] px_DUT_role=e_relaysystem
[0138] px_sequencingType=PER_SOURCE
[0139] px_supportsStreamSplitting=true
[0140] px_streamIdentifier=DMAC_VLAN
[0141] Traffic Incoming / Outgoing:Non-FRER / Non-FRER
[0142] Set stream id 1:
[0143] Destination mac:0x000000000001
[0144] Vlan ID:1
[0145] Set ingress port:P1
[0146] Set split port:P2、P3
[0147] Set stream id 2:
[0148] Destination mac:0x000000000002
[0149] Vlan ID:1
[0150] Set ingress port:P1
[0151] Set split port:P2、P3
[0152] A plurality of FRER messages are sent to the unit to be tested through the first input test device (TS1). Taking sending two FRER messages to the unit to be tested as an example, the two FRER messages are FRER message ID 1 and FRER message ID 2 respectively.
[0153] If both output test devices (TS2, TS3) receive FRER message ID 1 and FRER message ID 2, FRER message ID 1 and FRER message ID 2 include the FRER frame header, and the sequence number in the FRER frame header is increasing, it is determined that the unit to be tested has successfully copied FRER message ID 1 and FRER message ID 2.
[0154] The present invention tests whether the unit to be tested can copy multiple FRER messages by configuring the frame copy function of the unit to be tested. This can not only simulate the network environment and protocol configuration in actual application scenarios and improve the actual application value of the frame copy function test results, but also verify the integrity of its frame copy function.
[0155] Further, in an embodiment of the present invention, if Figure 4 As shown, step 104 may also include the following steps:
[0156] Step 401: configure a frame elimination function for a unit to be tested.
[0157] Step 402: Send reliability frame duplication and elimination messages to the unit to be tested through at least two second input test devices.
[0158] Step 403: If the second output test device receives the reliability frame duplication and elimination message and there is no duplicate reliability frame duplication and elimination message, it is determined that the unit to be tested successfully eliminates the reliability frame duplication and elimination message.
[0159] It should be noted that, in an embodiment of the present invention, the frame elimination function test system includes at least two second input test devices and one second output test (TS6), and the unit to be tested includes at least two input ports and a split port, wherein the at least two second input test devices respectively establish communication connections with the at least two input ports, and the second output test device establishes a communication connection with the split port.
[0160] Preferably, if Figure 5 As shown, Figure 5 A schematic diagram of a frame elimination function test system provided in an embodiment of the present invention, the frame elimination function test system includes two second input test devices (TS4, TS5) and a second output test device (TS6), the unit to be tested includes two input ports (P4, P5) and a split port (P6), wherein the second input test device (TS4) establishes a communication connection with the input port (P4), the second input test device (TS5) establishes a communication connection with the input port (P5), and the second output test device (TS6) establishes a communication connection with the split port (P6).
[0161] The unit to be tested is configured through the following codes, including the frame elimination function of the unit to be tested, the destination MAC (Media Access Control) address of the message, the sequence number of the message, the VLAN (Virtual Local Area Network) ID of the message, etc.
[0162] px_DUT_role=e_relaysystem
[0163] px_recoveryAlgorithmType=VECTOR_RECOVERY
[0164] px_frerSeqRcvyHistoryLength=No.of frames from stream S1
[0165] frerSeqRcvyResetMSec=DUT's frerSeqRcvyResetMSec{min=1}
[0166] px_sequencingType=PER_SOURCE
[0167] Traffic Incoming / Outgoing:FRER / no-FRER
[0168] Set stream id 1:
[0169] Destination mac:0x000000000001
[0170] Vlan ID:1
[0171] The FRER message is sent to the unit to be tested via two second input test devices (TS4, TS5).
[0172] If the second output test device (TS6) receives the FRER message and there is no duplicate FRER message, it is determined that the unit to be tested has successfully eliminated the FRER message.
[0173] The present invention configures the frame elimination function of the unit to be tested to test whether the unit to be tested can successfully eliminate the FRER message, which can quickly verify whether the unit to be tested can successfully eliminate the FRER message, and then can quickly determine the normality of the frame elimination function of the unit to be tested, thereby improving the test efficiency of the frame elimination function.
[0174] Furthermore, in the embodiment of the present invention, step 104 may also include the following steps:
[0175] Configure the frame elimination function for the unit under test.
[0176] The unreliability frame duplication and elimination messages are sent to the unit to be tested through at least two second input test devices.
[0177] If the second output test device receives the unreliability frame duplication and elimination message and there are repeated unreliability frame duplication and elimination messages, it is determined that the unit to be tested has not successfully eliminated the unreliability frame duplication and elimination message.
[0178] It should be noted that, in the embodiment of the present invention, the unit to be tested is configured through the following codes, including configuring the frame elimination function of the unit to be tested, the destination MAC (Media Access Control) address of the message, the serial number of the message, the VLAN (Virtual Local Area Network) ID of the message, etc.
[0179] px_DUT_role=e_relaysystem
[0180] px_recoveryAlgorithmType=VECTOR_RECOVERY
[0181] px_frerSeqRcvyHistoryLength=No.of frames from stream S1
[0182] frerSeqRcvyResetMSec=DUT's frerSeqRcvyResetMSec{min=1}
[0183] px_sequencingType=PER_SOURCE.
[0184] Traffic Incoming / Outgoing:FRER / no-FRER
[0185] Set stream id 1:
[0186] Destination mac:0x000000000001
[0187] Vlan ID:1
[0188] Non-FRER messages are sent to the unit to be tested via two second input test devices (TS4, TS5).
[0189] If the second output test device (TS6) receives a non-FRER message and there are repeated non-FRER messages, it is determined that the unit to be tested has not successfully eliminated the non-FRER message.
[0190] The present invention configures the frame elimination function of the unit to be tested to test whether the unit to be tested can eliminate non-FRER messages, and can quickly verify whether the unit to be tested can eliminate non-FRER messages, and then can quickly determine the normality of the frame elimination function of the unit to be tested, thereby improving the test efficiency of the frame elimination function.
[0191] Furthermore, in the embodiment of the present invention, step 104 may also include the following steps:
[0192] Configure the frame elimination function for the unit under test.
[0193] A plurality of reliability frame duplication and elimination messages are sent to the unit to be tested through at least two second input test devices.
[0194] If the second output test device receives multiple reliability frame copy and elimination messages and there are no repeated reliability frame copy and elimination messages, it is determined that the unit to be tested successfully eliminates the multiple reliability frame copy and elimination messages.
[0195] It should be noted that, in the embodiment of the present invention, the unit to be tested is configured through the following codes, including configuring the frame elimination function of the unit to be tested, the destination MAC (Media Access Control) address of the message, the serial number of the message, the VLAN (Virtual Local Area Network) ID of the message, etc.
[0196] px_DUT_role=e_relaysystem
[0197] px_recoveryAlgorithmType=VECTOR_RECOVERY
[0198] px_frerSeqRcvyHistoryLength=No.of frames from stream S1
[0199] frerSeqRcvyResetMSec=DUT's frerSeqRcvyResetMSec{min=1}
[0200] px_sequencingType=PER_SOURCE
[0201] Traffic Incoming / Outgoing:FRER / no-FRER
[0202] Set stream id 1:
[0203] Destination mac:0x000000000001
[0204] Vlan ID:1
[0205] Set stream id 2:
[0206] Destination mac:0x000000000002
[0207] Vlan ID:1
[0208] A plurality of FRER messages are sent to the unit to be tested through two second input test devices (TS4, TS5). Taking sending two FRER messages to the unit to be tested as an example, the two FRER messages are FRER message ID 1 and FRER message ID 2 respectively.
[0209] If the second output test device (TS6) receives the FRER message ID 1 and the FRER message ID 2 and there are no duplicate FRER message ID 1 and FRER message ID 2, it is determined that the unit to be tested can successfully eliminate multiple FRER messages.
[0210] The present invention tests whether the unit to be tested can eliminate multiple FRER messages by configuring the frame elimination function of the unit to be tested. This can not only simulate the network environment and protocol configuration in actual application scenarios and improve the practical application value of the frame elimination function test results, but also verify the integrity of its frame elimination function.
[0211] The second embodiment of the present invention relates to a vehicle-mounted equipment testing device, the device block diagram of which is as follows: Figure 6 As shown, including:
[0212] The unit to be tested determining module 601 is used to use the audio video bridging device or the time sensitive network device as the unit to be tested when the audio video bridging device or the time sensitive network device enables the redundant protocol;
[0213] The frame copy function test module 602 is used to test whether the unit to be tested successfully copies a message of a preset type through the frame copy function test system when the unit to be tested is mounted on the frame copy function test system;
[0214] The frame copy function test result determination module 603 is used to determine that the frame copy function of the unit to be tested is normal if the unit to be tested successfully copies a message of a preset type;
[0215] The frame elimination function test module 604 is used to test whether the unit to be tested successfully eliminates a message of a preset type through the frame elimination function test system when the unit to be tested is mounted on the frame elimination function test system;
[0216] The frame erasure function test result determination module 605 is used to determine that the frame erasure function of the unit to be tested is normal if the unit to be tested successfully erases a message of a preset type.
[0217] Optionally, the frame copy function test module includes:
[0218] A first unit-to-be-tested configuration submodule, used for configuring a frame replication function for the unit to be tested;
[0219] A first message sending submodule, used for sending reliability frame replication and elimination messages to the unit to be tested through the input test device;
[0220] The first message receiving submodule is used to determine that the unit to be tested has successfully copied the reliability frame replication and elimination message if at least two output test devices receive the reliability frame replication and elimination message, the reliability frame replication and elimination message includes a reliability frame replication and elimination frame header, and the serial number in the reliability frame replication and elimination frame header is increasing.
[0221] Optionally, the frame copy function test module includes:
[0222] The second unit-to-be-tested configuration submodule is used to configure a frame replication function for the unit-to-be-tested;
[0223] The second message sending submodule is used to send a non-reliability frame copy and elimination message to the unit to be tested through the input test device;
[0224] The second message receiving submodule is used to determine that the unit to be tested has not successfully copied the non-reliability frame copy and elimination message if any output test device among at least two output test devices receives the non-reliability frame copy and elimination message and the non-reliability frame copy and elimination message does not include the reliability frame copy and elimination frame header.
[0225] Optionally, the frame copy function test module includes:
[0226] A third unit-to-be-tested configuration submodule, used for configuring a frame replication function for the unit to be tested;
[0227] A third message sending submodule, used for sending a plurality of reliability frame copy and elimination messages to the unit to be tested through the input test device;
[0228] The third message receiving submodule is used to determine that the unit to be tested has successfully copied multiple reliability frame copy and elimination messages if at least two output test devices receive multiple reliability frame copy and elimination messages, multiple reliability frame copy and elimination messages include reliability frame copy and elimination frame headers, and the serial numbers in the reliability frame copy and elimination frame headers are increasing.
[0229] Optionally, the frame elimination function test module includes:
[0230] The fourth unit-to-be-tested configuration submodule is used to configure a frame elimination function for the unit-to-be-tested;
[0231] A fourth message sending submodule, used for sending reliability frame replication and elimination messages to the unit to be tested through at least two second input test devices;
[0232] The fourth message receiving submodule is used to determine that the unit to be tested successfully eliminates the reliability frame duplication and elimination message if the second output test device receives the reliability frame duplication and elimination message and there is no repeated reliability frame duplication and elimination message.
[0233] Optionally, the frame elimination function test module includes:
[0234] A fifth unit-to-be-tested configuration submodule, used to configure a frame elimination function for the unit to be tested;
[0235] A fifth message sending submodule, used for sending a non-reliability frame copy and elimination message to the unit to be tested through at least two second input test devices;
[0236] The fifth message receiving submodule is used to determine that the unit to be tested has not successfully eliminated the unreliability frame duplication and elimination message if the second output test device receives the unreliability frame duplication and elimination message and there are repeated unreliability frame duplication and elimination messages.
[0237] Optionally, the frame elimination function test module includes:
[0238] The sixth unit-to-be-tested configuration submodule is used to configure a frame elimination function for the unit-to-be-tested;
[0239] a sixth message sending submodule, configured to send a plurality of reliability frame replication and elimination messages to the unit to be tested through at least two second input test devices;
[0240] The sixth message receiving submodule is used to determine that the unit to be tested successfully eliminates multiple reliability frame replication and elimination messages if the second output test device receives multiple reliability frame replication and elimination messages and there are no repeated reliability frame replication and elimination messages.
[0241] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0242] A third embodiment of the present invention relates to a storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the vehicle-mounted device testing method as described in the first aspect.
[0243] A fourth embodiment of the present invention provides a vehicle, the vehicle comprising the vehicle-mounted equipment testing device according to the second aspect of the present invention.
[0244] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0245] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.
[0246] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
Claims
1. A vehicle-mounted equipment testing method, characterized in that: Applied to a vehicle, the vehicle includes an audio video bridging device or a time sensitive network device, wherein the audio video bridging device or the time sensitive network device is mounted on a frame replication function test system or a frame elimination function test system, the method includes: In the case where the audio video bridging device or the time sensitive network device enables a redundant protocol, using the audio video bridging device or the time sensitive network device as a unit to be tested; In the case where the unit to be tested is mounted on the frame copy function test system, testing whether the unit to be tested successfully copies a message of a preset type by the frame copy function test system; If the unit to be tested successfully copies the message of the preset type, it is determined that the frame copy function of the unit to be tested is normal; In the case where the unit to be tested is mounted on the frame elimination function test system, testing whether the unit to be tested successfully eliminates the message of the preset type by the frame elimination function test system; If the unit to be tested successfully eliminates the message of the preset type, it is determined that the frame elimination function of the unit to be tested is normal.
2. The method according to claim 1, characterized in that The frame replication function test system comprises a first input test device and at least two first output test devices, the unit to be tested comprises an input port and at least two split ports, wherein the input test device establishes a communication connection with the input port, and at least two of the output test devices respectively establish a communication connection with at least two of the split ports; The testing of whether the unit to be tested successfully copies a message of a preset type by the frame copy function testing system comprises: Configuring a frame copy function for the unit to be tested; Sending reliability frame replication and elimination messages to the unit to be tested through the input test device; If at least two of the output test devices receive the reliability frame replication and elimination message, the reliability frame replication and elimination message includes a reliability frame replication and elimination frame header, and the serial number in the reliability frame replication and elimination frame header is increasing, it is determined that the unit to be tested successfully replicates the reliability frame replication and elimination message.
3. The method according to claim 2, characterized in that The testing of whether the unit to be tested successfully copies a message of a preset type by the frame copy function testing system comprises: Configuring the frame copy function for the unit to be tested; Sending a non-reliability frame duplication and elimination message to the unit to be tested through the input test device; If any of the at least two output test devices receives the unreliability frame copy and elimination message and the unreliability frame copy and elimination message does not include the reliability frame copy and elimination frame header, it is determined that the unit to be tested has not successfully copied the unreliability frame copy and elimination message.
4. The method according to claim 2, characterized in that: The testing of whether the unit to be tested successfully copies a message of a preset type by the frame copy function testing system comprises: Configuring the frame copy function for the unit to be tested; Sending a plurality of the reliability frame replication and elimination messages to the unit to be tested through the input test device; If at least two of the output test devices receive multiple reliability frame copy and elimination messages, multiple reliability frame copy and elimination messages include the reliability frame copy and elimination frame headers, and the serial numbers in the reliability frame copy and elimination frame headers are increasing, it is determined that the unit to be tested has successfully copied the multiple reliability frame copy and elimination messages.
5. The method according to claim 2, characterized in that: The frame elimination function test system comprises at least two second input test devices and a second output test device, the unit to be tested comprises at least two input ports and the split port, wherein at least two of the second input test devices respectively establish communication connections with at least two of the input ports, and the second output test device establishes communication connection with the split port; The testing of whether the unit to be tested successfully eliminates the message of the preset type by the frame elimination function testing system includes: Configuring a frame elimination function for the unit to be tested; Sending the reliability frame replication and elimination message to the unit to be tested through at least two of the second input test devices; If the second output test device receives the reliability frame copy and elimination message and there is no duplicate reliability frame copy and elimination message, it is determined that the unit to be tested successfully eliminates the reliability frame copy and elimination message.
6. The method according to claim 5, characterized in that The testing of whether the unit to be tested successfully eliminates the message of the preset type by the frame elimination function testing system includes: Configuring the frame elimination function for the unit to be tested; Sending unreliability frame duplication and elimination messages to the unit to be tested through at least two of the second input test devices; If the second output test device receives the unreliability frame copy and elimination message and there are repeated unreliability frame copy and elimination messages, it is determined that the unit to be tested has not successfully eliminated the unreliability frame copy and elimination messages.
7. The method according to claim 5, characterized in that The testing of whether the unit to be tested successfully eliminates the message of the preset type by the frame elimination function testing system includes: Configuring the frame elimination function for the unit to be tested; Sending a plurality of the reliability frame replication and elimination messages to the unit to be tested through at least two of the second input test devices; If the second output test device receives a plurality of the reliability frame copy and elimination messages and there is no duplicate reliability frame copy and elimination message, it is determined that the unit to be tested successfully eliminates a plurality of the reliability frame copy and elimination messages.
8. A vehicle-mounted equipment testing device, characterized in that: The device comprises: A unit to be tested determining module, configured to use the audio video bridging device or the time sensitive network device as a unit to be tested when a redundant protocol is enabled in the audio video bridging device or the time sensitive network device; A frame copy function test module, used for testing whether the unit to be tested successfully copies a message of a preset type through the frame copy function test system when the unit to be tested is mounted on the frame copy function test system; A frame copy function test result determination module, used to determine that the frame copy function of the unit to be tested is normal if the unit to be tested successfully copies the message of the preset type; A frame elimination function test module, used for testing whether the unit to be tested successfully eliminates the message of the preset type through the frame elimination function test system when the unit to be tested is mounted on the frame elimination function test system; The frame elimination function test result determination module is used to determine that the frame elimination function of the unit to be tested is normal if the unit to be tested successfully eliminates the message of the preset type.
9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the vehicle-mounted equipment testing method according to any one of claims 1 to 7 are implemented.
10. A vehicle, characterized in that: Includes the vehicle-mounted equipment testing device as described in claim 8.
