A method, system, and medium for stability testing of vehicle-mounted Ethernet ring networks.

By setting up different test environments in the vehicle-mounted Ethernet ring network, the initial test object was preprocessed and functionally tested, which solved the problem of unstable ERPS function and realized the stability testing and reliability improvement of the vehicle-mounted Ethernet ring network.

CN119892702BActive Publication Date: 2025-10-31CHONGQING CHANGAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311397282.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2025-10-31
Estimated Expiration
2043-10-25

AI Technical Summary

Technical Problem

The ERPS function of the vehicle-mounted Ethernet ring network is not stable enough, which leads to disordered data flow, affects the correct implementation of data transmission inside the vehicle, and may even cause failures during vehicle use.

Method used

This paper provides a stability testing method for vehicle-mounted Ethernet ring networks. By setting up different test environments (component level and system level), the initial test object is preprocessed to obtain the target test object, and the ring network protection switching function and ring network recovery back-switching function are tested to ensure the reliability of the test results.

Benefits of technology

It enables accurate and convenient testing of vehicle-mounted Ethernet ring networks under different testing environments, improves the stability of ERPS functions, and ensures the reliability of vehicle-mounted Ethernet ring networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892702B_ABST
    Figure CN119892702B_ABST
Patent Text Reader

Abstract

This application discloses a stability testing method, system, and medium for an in-vehicle Ethernet ring network. The in-vehicle Ethernet ring network includes a master node, neighboring nodes, and at least one slave node. The master node and neighboring nodes are connected via a ring protection link. The stability testing method includes: setting up a test environment corresponding to the in-vehicle Ethernet ring network according to preset test requirements; ensuring the ring network protection switching function of the in-vehicle Ethernet ring network in the test environment is operating normally; performing preprocessing on the initial test object corresponding to the in-vehicle Ethernet ring network in the test environment to match a preset test scenario, thus obtaining a target test object in the preset test scenario; and sequentially testing the ring network protection switching function and the ring network recovery and back-switching function of the target test object to obtain test results. This allows for relatively accurate and convenient stability testing of the target test object corresponding to the in-vehicle Ethernet ring network in the preset test scenario.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automotive testing technology, and in particular to a method, system, and medium for testing the stability of an in-vehicle Ethernet ring network. Background Technology

[0002] Due to its advantages such as high bandwidth, high reliability, low electromagnetic radiation, and low power consumption, automotive Ethernet ring networks are widely used in automotive systems to undertake the main data transmission responsibilities. However, if the Ethernet Ring Protection Switching (ERPS) function is not stable enough, it will directly lead to the data flow on the automotive Ethernet ring network channel being disordered, which will affect the correct implementation of upper-layer functions that depend on the data flow. In severe cases, it can lead to serious failure problems during vehicle use. Summary of the Invention

[0003] The purpose of this application is to provide a method, system, and medium for testing the stability of an in-vehicle Ethernet ring network. This method can accurately and conveniently test the target device under test of the in-vehicle Ethernet ring network in a preset test scenario under relevant test environments (different test environments built based on different test requirements). This provides a foundation for improving the stability of the in-vehicle Ethernet ring network ERPS and ensures the reliability of the in-vehicle Ethernet ring network ERPS function.

[0004] This application provides a stability testing method for an in-vehicle Ethernet ring network. The in-vehicle Ethernet ring network includes a master node, neighboring nodes, and at least one slave node. The master node and the neighboring nodes are connected via a ring protection link. The stability testing method includes:

[0005] According to the preset test requirements, a test environment corresponding to the vehicle-mounted Ethernet ring network is set up; wherein, the ring network protection switching function of the vehicle-mounted Ethernet ring network located in the test environment is operating normally;

[0006] The initial test object corresponding to the vehicle-mounted Ethernet ring network located in the test environment is preprocessed to match the preset test scenario, so as to obtain the target test object in the preset test scenario.

[0007] For the target object under test, the ring network protection switching function and the ring network recovery and back-switching function are tested sequentially to obtain the test results.

[0008] In some embodiments of this application, the step of building a test environment corresponding to the vehicle-mounted Ethernet ring network according to preset test requirements includes: when the preset test requirement is to perform system-level testing on the vehicle-mounted Ethernet ring network, using a first test device to control multiple test units and connect to the link between any two nodes in the vehicle-mounted Ethernet ring network to obtain a system-level test environment corresponding to the vehicle-mounted Ethernet ring network; wherein, the test units are used for data simulation and data acquisition; when the preset test requirement is to test the node under test, using a second test device to simulate the control unit of the node directly connected to the node under test in the vehicle-mounted Ethernet ring network to obtain a component-level test environment corresponding to the vehicle-mounted Ethernet ring network; wherein, the node under test is any node in the vehicle-mounted Ethernet ring network.

[0009] In this way, by building different test environments (component-level test environment and system-level test environment), a foundation is laid for subsequent stability testing of vehicle-mounted Ethernet ring networks under different test environments, thereby more comprehensively ensuring the reliability of stability testing of vehicle-mounted Ethernet ring network ERPS.

[0010] In some embodiments of this application, the step of performing preprocessing on the initial test object corresponding to the vehicle-mounted Ethernet ring network located in the test environment to match a preset test scenario, thereby obtaining a target test object in the preset test scenario, includes: using a preset power supply module to provide a reference power supply voltage to the initial test object to obtain an intermediate test object; and performing preprocessing on the intermediate test object to match the preset test scenario to obtain the target test object.

[0011] In this way, the initial test object corresponding to the vehicle-mounted Ethernet ring network in the test environment is powered on to ensure that the initial test object is operating normally. The initially test object that is operating normally is preprocessed to match the preset test scenario, so as to obtain the target test object in the preset test scenario, and thus provide a basis for subsequent stability testing of related functions of the target test object.

[0012] In some embodiments of this application, the test environment includes: a system-level test environment corresponding to the vehicle-mounted Ethernet ring network; the step of using a preset power module to provide a reference power supply voltage to the initial test object to obtain an intermediate test object includes: using a first power module in the system-level test environment to provide a first reference voltage to the initial test system corresponding to the vehicle-mounted Ethernet ring network to obtain an intermediate test system; the step of performing preprocessing on the intermediate test object to match the preset test scenario to obtain the target test object includes: performing preprocessing on the intermediate test system to match the preset test scenario to obtain the target test system.

[0013] In this way, in the system-level test environment, the intermediate system under test corresponding to the vehicle Ethernet ring network is powered, that is, a reference voltage is provided to the intermediate system under test, thus providing a basis for the subsequent stability test of the vehicle Ethernet ring network under multiple different scenarios in the system-level test environment.

[0014] In some embodiments of this application, the preprocessing of the intermediate system under test (SUT) to match the preset test scenario to obtain the target SUT includes: using a programmable power supply module in the system-level test environment, adjusting the power supply voltage of the intermediate SUT from the first reference voltage to the first intermediate voltage, and then from the first intermediate voltage back to the first reference voltage according to a preset voltage adjustment step size, to obtain the target SUT in a scenario after power supply voltage fluctuation; or, using a test unit in the system-level test environment, sending sleep / wake-up conditions to each node in the intermediate SUT to obtain the target SUT in a scenario after network sleep / wake-up; or, using a test unit in the system-level test environment, simulating sending Ethernet packets with a network bus load rate higher than a first preset value to two ports of each node in the intermediate SUT to obtain the target SUT in a scenario corresponding to high network load; or, using a programmable power supply module in the system-level test environment, powering on each node in the intermediate SUT according to multiple different node access sequences to obtain the target SUT in a scenario corresponding to the power-on phase.

[0015] In this way, by performing different preprocessing steps on the intermediate system under test (e.g., adjusting the power supply voltage of the intermediate system under test after power voltage fluctuations; putting each node in the intermediate system under test into sleep mode and waking it up after network sleep / wake-up; sending relevant messages to the two ports of each node in the intermediate system under test to obtain the target system under test with a network bus load exceeding a certain value; adjusting the power-on sequence and power-on / off parameters of each node in the intermediate system under test during the power-on phase), the target system under test for subsequent stability testing under different test scenarios can be obtained, namely the test system corresponding to the vehicle Ethernet ring network. This allows for the relatively accurate and convenient construction of the system under test corresponding to the vehicle Ethernet ring network in different test scenarios, thus providing a foundation for the ERPS stability testing of the system under test corresponding to the vehicle Ethernet ring network, and further improving the reliability of subsequent ERPS functional testing of the vehicle Ethernet ring network.

[0016] In some embodiments of this application, the step of using a programmable power supply module in the system-level test environment to power on each node in the intermediate system under test according to multiple different node access sequences to obtain the target system under test in the scenario corresponding to the power-on phase includes: using the programmable power supply module to control each node in the intermediate system under test to be in a power-off state at the same time point, and after a first preset duration, sequentially powering on each node in the intermediate system under test according to the multiple different node access sequences to obtain the target system under test in the scenario corresponding to the power-on phase; or, using the programmable power supply module to sequentially power off each node in the intermediate system under test according to the multiple different node access sequences and stabilize for a second preset duration, and after the second preset duration, sequentially powering on each node in the intermediate system under test according to the multiple different node access sequences to obtain the target system under test in the scenario corresponding to the power-on phase.

[0017] This further subdivides the scenarios corresponding to the power-on phase, making the system-level test scenarios corresponding to the vehicle Ethernet ring network more abundant, thereby enabling a more comprehensive stability test of the vehicle Ethernet ring network under system-level test environments.

[0018] In some embodiments of this application, the test environment includes: a component-level test environment corresponding to the vehicle-mounted Ethernet ring network; the step of using a preset power supply module to provide a reference power supply voltage to the initial test object to obtain an intermediate test object includes: using a second power supply module in the component-level test environment to provide a second reference voltage to the initial test node in the vehicle-mounted Ethernet ring network to obtain an intermediate test node; the step of performing preprocessing on the intermediate test object to match the preset test scenario to obtain the target test object includes: performing preprocessing on the intermediate test node to match the preset test scenario to obtain the target test node.

[0019] In this way, in the component-level testing environment, the intermediate nodes under test in the vehicle Ethernet ring network are prepared for power supply, that is, normal voltage is provided to the initial nodes under test, thus providing a basis for subsequent stability testing of the vehicle Ethernet ring network in multiple different scenarios in the component-level testing environment.

[0020] In some embodiments of this application, the preprocessing of the intermediate node under test to match the preset test scenario to obtain the target node under test includes: using a programmable power supply module in the component-level test environment, adjusting the power supply voltage of the intermediate node under test from the second reference voltage to the second intermediate voltage, and then from the second intermediate voltage back to the second reference voltage according to a preset voltage adjustment step size, to obtain the target node under test in a scenario after power supply voltage fluctuation; or, using a first test device in the component-level test environment, sending a network management message for implementing network sleep wake-up to the intermediate node under test, to obtain the target node under test in a scenario after network sleep wake-up; or, using a first test device in the component-level test environment, simulating the sending of Ethernet messages with a corresponding link load rate higher than a second preset value to two ports of the intermediate node under test, to obtain the target node under test in a scenario corresponding to high network load.

[0021] In this way, by performing different preprocessing steps on the intermediate nodes under test (e.g., adjusting the power supply voltage of the intermediate node under test in scenarios with power voltage fluctuations; implementing network sleep and wake-up in scenarios with network sleep and wake-up; sending relevant messages to the two ports of the intermediate node under test in test scenarios with high network load to obtain target nodes under test with network link bus loads exceeding a certain value), target nodes under test that can be used for subsequent stability testing in different test scenarios can be obtained, i.e., the nodes under test corresponding to the vehicle Ethernet ring network. This allows for the relatively accurate and convenient construction of nodes under test corresponding to the vehicle Ethernet ring network in different test scenarios, thus providing a foundation for ERPS stability testing of the nodes under test in the vehicle Ethernet ring network, and thereby improving the reliability of subsequent ERPS functional testing of the vehicle Ethernet ring network.

[0022] This application provides a stability testing system for an in-vehicle Ethernet ring network. The in-vehicle Ethernet ring network includes: a master node, neighboring nodes, and at least one slave node. The master node and the neighboring nodes are connected via a ring protection link. The stability testing system includes:

[0023] The setup module is configured to build a test environment corresponding to the vehicle Ethernet ring network according to preset test requirements; wherein, the ring network protection switching function of the vehicle Ethernet ring network located in the test environment is operating normally;

[0024] The preprocessing module is configured to perform preprocessing on the initial test object corresponding to the vehicle-mounted Ethernet ring network located in the test environment, matching it with a preset test scenario, to obtain the target test object in the preset test scenario;

[0025] The testing module is configured to sequentially test the ring network protection switching function and the ring network recovery and back-switching function on the target test object, and obtain the test results.

[0026] This application provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are executed, they can implement any of the above-described methods for testing the stability of an in-vehicle Ethernet ring network.

[0027] The beneficial effects of this application are:

[0028] It can accurately and conveniently test the target object under test corresponding to the vehicle Ethernet ring network in the preset test scenario under relevant test environments (different test environments built based on different test requirements), thereby providing a foundation for improving the stability of the vehicle Ethernet ring network ERPS and ensuring the reliability of the vehicle Ethernet ring network ERPS function.

[0029] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the technical solutions provided in the embodiments of this application. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein:

[0031] Figure 1 This is a schematic diagram of the system composition of a vehicle-mounted Ethernet ring network in related technologies.

[0032] Figure 2 A schematic diagram of the stability test process for the vehicle-mounted Ethernet ring network provided in the embodiments of this application. Figure 1 ;

[0033] Figure 3 A schematic diagram of the stability test process for the vehicle-mounted Ethernet ring network provided in the embodiments of this application. Figure 2 ;

[0034] Figure 4 A schematic diagram of the stability test process for the vehicle-mounted Ethernet ring network provided in the embodiments of this application. Figure 3 ;

[0035] Figure 5 A schematic diagram of the stability test process for the vehicle-mounted Ethernet ring network provided in the embodiments of this application. Figure 4 ;

[0036] Figure 6 A schematic diagram of the stability test process for the vehicle-mounted Ethernet ring network provided in the embodiments of this application. Figure 5 ;

[0037] Figure 7 A schematic diagram of the system composition of a component-level test environment corresponding to an in-vehicle Ethernet ring network provided in this application embodiment;

[0038] Figure 8 A schematic diagram of the system composition of a system-level test environment corresponding to an in-vehicle Ethernet ring network provided in this application embodiment;

[0039] Figure 9 This is a schematic diagram of the composition structure of a stability system for an in-vehicle Ethernet ring network provided in an embodiment of this application. Detailed Implementation

[0040] The embodiments of this application 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 this application from the content disclosed in this specification. This application 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 this application. It should be understood that the preferred embodiments are only for illustrating this application and are not intended to limit the scope of protection of this application.

[0041] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0042] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0043] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which embodiments of this application belong. The terminology used herein is for descriptive purposes only and is not intended to limit the scope of embodiments of this application.

[0044] In related technologies, redundant links (e.g., ring networks) are typically used in Ethernet switched networks for link backup and to improve network reliability. However, using redundant links can create loops in the network, potentially causing broadcast storms and instability in the Media Access Control Address (MAC) table, thus affecting user communication quality and even leading to communication outages. ERPS is a protocol for breaking loops at the Ethernet link layer. It uses an ERPS ring as its basic unit, containing several nodes. By blocking the master node port in the Ethernet link layer and controlling other ordinary ports, the port states are switched between forwarding and discarding to eliminate loops. Furthermore, mechanisms such as Virtual Local Area Networks (VLANs), data VLANs, and protection instances can be used to better implement the functionality of ERPS. Figure 1 As shown, the system corresponding to the vehicle-mounted Ethernet ring network typically consists of three nodes, namely 101 to 103. Each node is connected to a corresponding switch (the master node of 101 is connected to switch 1 and processor 1, the neighboring node of 102 is connected to switch 2 and processor 2, and the slave node of 103 is connected to switch 3 and processor 3). Here, under normal Ethernet ring network link conditions, port 1 of the master node of 101 and port 0 of the neighboring node of 102 are both in a blocked state, that is, the Ring Protection Link (RPL) is not activated, while port 0 of the master node of 101, port 1 of the neighboring node of 102, and both ports of the slave node of 103 are in a forwarding state; the master node of 101 periodically sends fault detection messages to the slave node of 103.

[0045] In practical applications, when Ethernet ring networks are used in vehicle systems, if the ERPS switching function of the vehicle Ethernet ring network is not stable enough, it will directly lead to disordered data flow, affecting the correct implementation of functions that depend on the data flow, and consequently causing data transmission chaos within the vehicle system. Based on this, this application provides a stability testing method for vehicle Ethernet ring networks, such as... Figure 2 The diagram shown illustrates the process for stability testing of the vehicle-mounted Ethernet ring network provided in this embodiment of the application. Figure 1 The vehicle-mounted Ethernet ring network includes: a master node, neighboring nodes, and at least one slave node, wherein the master node and the neighboring node are connected via a ring protection link.

[0046] Step S101: Based on the preset test requirements, build the test environment corresponding to the vehicle-mounted Ethernet ring network.

[0047] The ring network protection switching function of the vehicle-mounted Ethernet ring network located in the test environment was operating normally.

[0048] In some embodiments of this application, the in-vehicle Ethernet ring network includes: a master node, neighboring nodes, and at least one slave node; wherein the master node can be connected to any execution unit in the vehicle (e.g., an autonomous driving control unit); correspondingly, the neighboring nodes and at least one slave node can be connected to other execution units of the vehicle. Here, the vehicle can be any vehicle, such as an autonomous driving vehicle.

[0049] In some embodiments of this application, different test environments can be built for the vehicle-mounted Ethernet ring network based on different test requirements. Specifically, if the test is to be performed on any node (master node, adjacent node, or slave node) in the vehicle-mounted Ethernet ring network, a component-level (node-level) test environment corresponding to the vehicle-mounted Ethernet ring network can be built. If the test is to be performed on the entire system corresponding to the vehicle-mounted Ethernet ring network, a system-level test environment corresponding to the vehicle-mounted Ethernet ring network can be built.

[0050] It should be noted that in the test environment set up, it is necessary to ensure that the ring network protection switching function of the vehicle Ethernet ring network can operate normally, so as to provide a basis for subsequent stability testing.

[0051] Step S102: Perform preprocessing on the initial test object corresponding to the vehicle-mounted Ethernet ring network located in the test environment to match the preset test scenario, so as to obtain the target test object in the preset test scenario.

[0052] In some embodiments of this application, the initial test object corresponding to the vehicle Ethernet ring network is different depending on the test environment. For example, when the test environment is a component-level test environment corresponding to the vehicle Ethernet ring network, the initial test object can be the node under test in the vehicle Ethernet ring network; when the test environment is a system-level test environment corresponding to the vehicle Ethernet ring network, the initial test object can be the entire system corresponding to the vehicle Ethernet ring network.

[0053] In some embodiments of this application, the preset test scenarios can be divided into the following categories: test scenarios after power supply voltage fluctuations; test scenarios after network sleep and wake-up; test scenarios corresponding to high network load; and test scenarios corresponding to the power-on process (test scenarios corresponding to the power-on initialization process, and test scenarios corresponding to power-off and power-on after power-on stabilization).

[0054] It should be noted that different preset test scenarios require different preprocessing. For example, a preset test scenario with power supply voltage fluctuations may involve adjusting the power supply voltage of the initial test object to account for voltage fluctuations; a preset test scenario with network sleep / wake-up may involve sequentially performing network sleep and network wake-up on the initial test object based on relevant messages or conditions; and a preset test scenario with high network load may involve simulating message transmission on two ports of the initial test object to simulate high load on relevant links or network buses.

[0055] Step S103: For the target object under test, perform tests on the ring network protection switching function and the ring network recovery back-switching function in sequence to obtain the test results.

[0056] In some embodiments of this application, the stability test of the target device under test includes: testing the ring network protection switching function and the ring network recovery switching function of the target device under test to obtain the test results of the initial device under test corresponding to the vehicle Ethernet ring network. Here, the test result can be obtained jointly based on the first test sub-result corresponding to the ring network protection switching function and the second test sub-result corresponding to the ring network recovery switching function.

[0057] For example, the first test sub-result corresponding to the ring network protection switching function can be represented by "test passed," "test failed," or "test succeeded," etc.; correspondingly, the second test sub-result corresponding to the ring network recovery switchback function can also be represented by "test passed," "test failed," or "test succeeded," etc. Here, if either the first test sub-result corresponding to the ring network protection switching function or the second test sub-result corresponding to the ring network recovery switchback function is "test failed," then the test result is "test failed." Conversely, if both the first test sub-result corresponding to the ring network protection switching function and the second test sub-result corresponding to the ring network recovery switchback function are "test passed" or "test succeeded," then the test result is considered "test passed" or "test succeeded."

[0058] It should be noted that the testing of the ring network protection switching function includes, but is not limited to: fault testing of link 1 between the master node and the slave node, fault testing of link 2 between the slave node and the adjacent node, and fault testing of the ring protection link (the link between the master node and the adjacent node). Among these, the fault testing of link 1 can be achieved by injecting Ethernet link shutdown using automated testing equipment in a component-level testing environment, and by using a fault injection board in a system-level testing environment. After a fault, the MAC address table corresponding to the target under test can be read to obtain the New Radio (NR) protocol messages and Ring Auto Protection Switch (RAPS) protocol messages related to the ring network ERPS, or the No Request RPL (Ring Protection Link Locking) message. The performance of the ring network ERPS function during link failures is determined by analyzing the Blocked (NRRB) RAPS protocol messages, the Link Failure (SF) RAPS messages, and the data flow. Correspondingly, the ring network recovery and back-off function test includes, but is not limited to: normal link failure recovery between master and slave nodes, link failure recovery and back-off test between slave nodes and adjacent nodes, and RPL link failure recovery and back-off test. Among them, normal link failure recovery and back-off can be achieved by canceling the Ethernet connection through automated test equipment in the component-level test environment, and by the device fault injection board in the system-level test environment. After the fault is recovered, the performance of the ring network ERPS function during link failures can be determined by reading the Layer 2 MAC address table corresponding to the object under test, listening to the NR RAPS protocol messages, NRRB RAPS protocol messages, or SF RAPS messages related to the ring network ERPS, and analyzing the data flow.

[0059] This process involves several steps. First, a test environment is constructed for the vehicle-mounted Ethernet ring network. Second, within this test environment, the initial test object corresponding to the vehicle-mounted Ethernet ring network is preprocessed to match a preset test scenario, resulting in the target test object of the vehicle-mounted Ethernet ring network within a specific test environment and preset test scenario. Finally, the ring network protection switching function and ring network recovery and back-switching function are tested sequentially on the target test object to achieve automated testing of the stability of the vehicle-mounted Ethernet ring network ERPS. This allows for relatively accurate and convenient testing of the target test object of the vehicle-mounted Ethernet ring network within a preset test scenario under relevant test environments (different test environments built based on different test requirements), thus providing a foundation for improving the stability of the vehicle-mounted Ethernet ring network ERPS and ensuring the reliability of the vehicle-mounted Ethernet ring network ERPS function.

[0060] In some embodiments of this application, corresponding test environments can be built according to different test requirements for vehicle-mounted Ethernet ring networks. That is, step S101 provided in the above embodiments can be implemented in the following two ways: Figure 3 The diagram shown illustrates the process for stability testing of the vehicle-mounted Ethernet ring network provided in this embodiment of the application. Figure 2 , combined Figure 3 The steps shown are explained below:

[0061] Step S201: When the preset test requirement is to perform system-level testing on the vehicle Ethernet ring network, the first test device controls multiple test units to connect to the link between any two nodes in the vehicle Ethernet ring network to obtain the system-level test environment corresponding to the vehicle Ethernet ring network.

[0062] The test unit is used for data simulation and data acquisition.

[0063] In some embodiments of this application, when system-level testing of an in-vehicle Ethernet ring network is required, a corresponding system test bench for the in-vehicle Ethernet ring network can be built. A corresponding test unit can be connected to the link between any two nodes in the in-vehicle Ethernet ring network. This test unit is used for data simulation and data acquisition, such as: Ethernet ring network ERPS protocol message simulation, ring network fault injection block, reading the status of each Ethernet port, and automated test execution sequences.

[0064] In some embodiments of this application, the first test device may include multiple software test modules, which may include the following: an Ethernet ring network ERPS protocol message simulation module, a ring network fault injection module, a status reading module for each Ethernet port, and an automated test execution sequence module, etc. Here, the multiple software test modules can be used to test the ring network protection switching function of any node in the vehicle-mounted Ethernet ring network, as well as the ring network recovery and back-switching function.

[0065] Step S202: When the preset test requirement is to test the node under test, a second test device is used to simulate the control unit of the node directly connected to the node under test in the vehicle Ethernet ring network, so as to obtain the component-level test environment corresponding to the vehicle Ethernet ring network.

[0066] The node under test is any node in the vehicle-mounted Ethernet ring network.

[0067] In some embodiments of this application, the node under test is any node in the vehicle-mounted Ethernet ring network, such as any of the master node, neighboring nodes, or slave nodes.

[0068] For example, when the node under test is the master node in the vehicle Ethernet ring network, a second test device can be used to simulate the control units connected to the adjacent nodes and slave nodes respectively, thereby obtaining the component-level test environment corresponding to the master node.

[0069] It should be noted that the component-level test environment can simulate the control unit accessed by the directly connected neighboring nodes of the node under test in the vehicle Ethernet ring network according to the role of the node under test in the vehicle Ethernet ring network. This allows for the testing of the stability of the ERPS switching function of the relevant nodes in the vehicle Ethernet ring network.

[0070] The vehicular Ethernet ring network consists of: a master node (RPL owner node), neighbor nodes (RPL neighbour nodes), and at least one slave node (ordinary link node). The RPL owner node plays a controlling role in the vehicular Ethernet ring network and can block its RPL port during initialization, while not blocking non-RPL ports. When a fault occurs, its RPL port is opened. After the fault is recovered, its RPL port is blocked again. Similarly, the RPL neighbour nodes assist the RPL owner node in the ring network and can block their RPL neighbor ports during initialization, while not blocking non-RPL ports. When a fault occurs, their RPL ports are opened. After the fault is recovered, their RPL ports are blocked again. Furthermore, ordinary link nodes are controlled by the RPL owner node and RPL neighbour nodes and can refrain from blocking ports during initialization. When a fault occurs, they cooperate by sending SF messages to notify the RPL owner node and RPL neighbour nodes to perform port operations. After the fault is recovered, they send NR messages to notify the RPL owner node and RPL neighbour nodes to perform port operations.

[0071] It should be noted that the first test device and the second test device are different because they are in different test environments and are for different test objects. Specifically, the test object of the first test device is the system corresponding to the vehicle Ethernet ring network, and the test object of the second test device is the node under test in the vehicle Ethernet ring network.

[0072] In addition, the vehicle-mounted Ethernet ring network in both the component-level test environment and the system-level test environment can operate normally with their respective ring network protection switching functions.

[0073] In this way, by building different test environments (component-level test environment and system-level test environment), a foundation is laid for subsequent stability testing of vehicle-mounted Ethernet ring networks under different test environments, thereby more comprehensively ensuring the reliability of stability testing of vehicle-mounted Ethernet ring network ERPS.

[0074] In some embodiments of this application, the initial test object corresponding to the vehicle-mounted Ethernet ring network in the test environment is first powered on to ensure that the initial test object is operating normally. Then, the normally operating initial test object undergoes preprocessing to match a preset test scenario to obtain the target test object. That is, step S102 provided in the above embodiments can be implemented by the following steps S301 and S302, such as... Figure 4 The diagram shown illustrates the process for stability testing of the vehicle-mounted Ethernet ring network provided in this embodiment of the application. Figure 3 , combined Figure 4 The steps shown are explained below:

[0075] Step S301: Using a preset power supply module, a reference power supply voltage is provided to the initial test object to obtain an intermediate test object.

[0076] In some embodiments of this application, a preset power supply module is used to power on the initial test object (providing a reference supply voltage) to obtain an intermediate test object that can operate normally. Here, the default supply voltage provided to the initial test object is: under the reference supply voltage, the initial test object can operate normally, that is, an intermediate test object with all its corresponding functions operating normally is obtained.

[0077] For example, if the test environment is a component-level test environment, the corresponding initial object under test is the node under test in the vehicle Ethernet ring network. The node under test can be powered up to a reference supply voltage, such as 12V or 6V, to obtain an intermediate node under test that can operate normally. If the test environment is a system-level test environment, the corresponding initial object under test is the system corresponding to the vehicle Ethernet ring network. The system can be powered up to a reference supply voltage, such as 12V or 6V, to obtain an intermediate system under test that can operate normally.

[0078] Step S302: Perform preprocessing on the intermediate test object to match the preset test scenario to obtain the target test object.

[0079] In some embodiments of this application, the intermediate test object can be adaptively preprocessed based on a preset test scenario to obtain the target test object.

[0080] Following the description above, if the intermediate test object is an intermediate test node (the test environment is a component-level test environment), a preset test scenario can be used, such as: a scenario after power supply voltage fluctuation, where the power supply module corresponding to the intermediate test node provides low-voltage or high-voltage fluctuations to the intermediate test node to obtain the target test node; a scenario after network sleep / wake-up, where relevant network management messages for network sleep / wake-up can be sent to the intermediate test node to obtain the intermediate test node after network sleep / wake-up, i.e., the target test node; a high network load scenario, where Ethernet messages can be simulated to be sent on two ports of the intermediate test node to obtain a bus load rate higher than a preset value (in a high network load scenario).

[0081] If the intermediate test object is an intermediate test system (the test environment is a system-level test environment), it can be preprocessed accordingly based on the preset test scenario. For details, please refer to the relevant description of the intermediate test node above.

[0082] In this way, the initial test object corresponding to the vehicle-mounted Ethernet ring network in the test environment is powered on to ensure that the initial test object is operating normally. The initially test object that is operating normally is preprocessed to match the preset test scenario, so as to obtain the target test object in the preset test scenario, and thus provide a basis for subsequent stability testing of related functions of the target test object.

[0083] In some embodiments of this application, when the test environment is a system-level test environment corresponding to an in-vehicle Ethernet ring network, step S301 provided in the above embodiments can be implemented by step S401, such as... Figure 5 The diagram shown illustrates the process for stability testing of the vehicle-mounted Ethernet ring network provided in this embodiment of the application. Figure 4 , combined Figure 5 The steps shown are explained below:

[0084] Step S401: Using the first power module in the system-level test environment, a first reference voltage is provided to the initial system under test corresponding to the vehicle-mounted Ethernet ring network to obtain the intermediate system under test.

[0085] In some embodiments of this application, if the test environment is a system-level test environment corresponding to an in-vehicle Ethernet ring network, a first reference voltage (e.g., 12V) can be provided by the first power module in the system-level test environment to the initial system under test corresponding to the in-vehicle Ethernet ring network, thereby obtaining an intermediate system under test.

[0086] Correspondingly, step S302 provided in the above embodiment can be implemented by step S402:

[0087] Step S402: Perform preprocessing on the intermediate system under test to match the preset test scenario to obtain the target system under test.

[0088] In some embodiments of this application, the intermediate system under test with a supply voltage of a first reference voltage can be preprocessed to obtain the target system under test that needs to undergo subsequent stability testing.

[0089] In this way, in the system-level test environment, the intermediate system under test corresponding to the vehicle Ethernet ring network is powered, that is, a reference voltage is provided to the intermediate system under test, thus providing a basis for the subsequent stability test of the vehicle Ethernet ring network under multiple different scenarios in the system-level test environment.

[0090] Here, the preset test scenarios can be divided into the following four categories of test scenarios. That is, step S402 provided in the above embodiment can perform the following four different preprocessing on the intermediate system under test to obtain the target system under test in different test scenarios, namely:

[0091] Preprocessing 1: Using the programmable power supply module in the system-level test environment, the power supply voltage of the intermediate system under test is adjusted from the first reference voltage to the first intermediate voltage according to the preset voltage adjustment step size, and then adjusted from the first intermediate voltage back to the first reference voltage to obtain the target system under test in the scenario after power supply voltage fluctuation.

[0092] Preprocessing 2: Using the test unit in the system-level test environment, the sleep-wake condition is sent to each node in the intermediate system under test to obtain the target system under test in the scenario after network sleep-wake.

[0093] Preprocessing 3: Using the test unit in the system-level test environment, simulate sending Ethernet packets with a network bus load rate higher than the first preset value to two ports of each node in the intermediate system under test, to obtain the target system under test in the scenario corresponding to high network load.

[0094] Preprocessing 4: Using the programmable power supply module in the system-level test environment, power on each node in the intermediate system under test according to various different node access sequences to obtain the target system under test in the scenario corresponding to the power-on stage.

[0095] In some embodiments of this application, various target systems under test in different test scenarios can be obtained based on the above-mentioned different preprocessing; wherein, the test scenarios include: scenarios after power supply voltage fluctuations, scenarios after network sleep wake-up, scenarios corresponding to high network load, and scenarios corresponding to power-on.

[0096] In the scenario of power supply voltage fluctuation, the first intermediate voltage can be higher or lower than the first reference voltage; for example, the first reference voltage is 12V, and the first intermediate voltage can be 6V or 18V; correspondingly, the preset voltage adjustment step size can be 0.1V / 100ms.

[0097] In this way, by performing different preprocessing steps on the intermediate system under test (e.g., adjusting the power supply voltage of the intermediate system under test after power voltage fluctuations; putting each node in the intermediate system under test into sleep mode and waking it up after network sleep / wake-up; sending relevant messages to the two ports of each node in the intermediate system under test to obtain the target system under test with a network bus load exceeding a certain value; adjusting the power-on sequence and power-on / off parameters of each node in the intermediate system under test during the power-on phase), the target system under test for subsequent stability testing under different test scenarios can be obtained, namely the test system corresponding to the vehicle Ethernet ring network. This allows for the relatively accurate and convenient construction of the system under test corresponding to the vehicle Ethernet ring network in different test scenarios, thus providing a foundation for the ERPS stability testing of the system under test corresponding to the vehicle Ethernet ring network, and further improving the reliability of subsequent ERPS functional testing of the vehicle Ethernet ring network.

[0098] In some embodiments of this application, the scenarios corresponding to the above-mentioned power-on stage can be further divided into the following two implementation methods, as follows:

[0099] Method 1: Using the programmable power supply module, each node in the intermediate system under test is controlled to be in a power-off state at the same time. After a first preset time period, each node in the intermediate system under test is powered on sequentially according to the various different node access sequences, thus obtaining the target system under test in the scenario corresponding to the power-on phase; or,

[0100] Method 2: Using the programmable power supply module, according to the various different node access sequences, each node in the intermediate system under test is powered down sequentially and stabilized for a second preset time. After the second preset time, according to the various different node access sequences, each node in the intermediate system under test is powered on sequentially to obtain the target system under test in the scenario corresponding to the power-on phase.

[0101] In some embodiments of this application, Method 1 can be the test scenario corresponding to the intermediate system under test during the power-on initialization phase, and Method 2 can be the test scenario corresponding to each node in the intermediate system under test after power-on stabilization and subsequent power-off and power-on.

[0102] Here, the first preset duration can be the same as or different from the second preset duration. For example, the first preset duration is 30 seconds, and the second preset duration is 10 seconds.

[0103] In some embodiments of this application, the intermediate system under test is described as including at least: an RPL owner node (the master node mentioned above), an RPL neighbor node (the neighboring node mentioned above), and a normal link node (at least one slave node mentioned above). Among them, various different node access orders may include at least: node access order 1 (RPL owner node - RPL neighbor node - normal link node), node access order 2 (RPL owner node - normal link node - RPL neighbor node), access order 3 (RPL neighbor node - RPL owner node - normal link node), node access order 4 (RPL neighbor node - normal link node - RPL owner node), node access order 5 (normal link node - RPL neighbor node - RPL owner node), node access order 6 (normal link node - RPL owner node - RPL neighbor node), etc.

[0104] It should be noted that when the target under test is the target system under test, step S103 provided in the above embodiment can be performed as follows: the ring network protection switching function and the ring network recovery back-switching function are tested sequentially for the target system under test, and the test results are obtained; the relevant implementation methods can be referred to step S103 provided in the above embodiment, and will not be repeated here.

[0105] This further subdivides the scenarios corresponding to the power-on phase, making the system-level test scenarios corresponding to the vehicle Ethernet ring network more abundant, thereby enabling a more comprehensive stability test of the vehicle Ethernet ring network under system-level test environments.

[0106] In some embodiments of this application, when the test environment is a component-level test environment corresponding to an in-vehicle Ethernet ring network, step S301 provided in the above embodiments can be implemented by step S501, such as... Figure 6 The diagram shown illustrates the process for stability testing of the vehicle-mounted Ethernet ring network provided in this embodiment of the application. Figure 5 , combined Figure 6 The steps shown are explained below:

[0107] Step S501: Using the second power module in the component-level test environment, a second reference voltage is provided to the initial node under test in the vehicle-mounted Ethernet ring network to obtain the intermediate node under test.

[0108] In some embodiments of this application, if the test environment is a component-level test environment corresponding to an in-vehicle Ethernet ring network, a second reference voltage (e.g., 12V) can be provided by the second power module in the component-level test environment to the initial node under test (i.e., the node under test mentioned above) in the in-vehicle Ethernet ring network, thereby obtaining the intermediate node under test.

[0109] It should be noted that, due to the different testing environment of the vehicle Ethernet ring network, the second power module in the component-level testing environment is different from the first power module in the system-level testing environment mentioned above. They respectively provide power to the initial node under test (the relevant node in the vehicle Ethernet ring network) and the initial system under test (the system corresponding to the vehicle Ethernet ring network).

[0110] Correspondingly, step S302 provided in the above embodiment can be implemented by step S502:

[0111] Step S502: Perform preprocessing on the intermediate node to be tested to match the preset test scenario to obtain the target node to be tested.

[0112] In some embodiments of this application, the intermediate test node with a supply voltage of the second reference voltage can be preprocessed to obtain the target test node that needs to be subjected to subsequent stability testing.

[0113] It should be noted that the first reference voltage and the second reference voltage can be the same or different.

[0114] In this way, in the component-level testing environment, the intermediate nodes under test in the vehicle Ethernet ring network are prepared for power supply, that is, normal voltage is provided to the initial nodes under test, thus providing a basis for subsequent stability testing of the vehicle Ethernet ring network in multiple different scenarios in the component-level testing environment.

[0115] Here, the preset test scenarios can be divided into the following three categories of test scenarios. That is, step S502 provided in the above embodiment can perform the following three different preprocessing on the intermediate test node to obtain the target test node in different test scenarios, namely:

[0116] Preprocessing 1: Using the programmable power supply module in the component-level test environment, the power supply voltage of the intermediate node under test is adjusted from the second reference voltage to the second intermediate voltage according to the preset voltage adjustment step size, and then adjusted from the second intermediate voltage to the second reference voltage to obtain the target node under test in the scenario after power supply voltage fluctuation.

[0117] Preprocessing 2: Using the first test device in the component-level test environment, a network management message for implementing network sleep-wake is sent to the intermediate node under test to obtain the target node under test in the scenario after network sleep-wake.

[0118] Preprocessing 3: Using the first test device in the component-level test environment, simulate sending Ethernet packets with a corresponding link load rate higher than the second preset value to the two ports of the intermediate node under test, to obtain the target node under test in the scenario corresponding to high network load.

[0119] In some embodiments of this application, various target test nodes in different test scenarios can be obtained based on the above-mentioned different preprocessing; wherein, the test scenarios include: scenarios after power supply voltage fluctuations, scenarios after network sleep-wake-up, and scenarios corresponding to high network load.

[0120] In the scenario of power supply voltage fluctuation, the second intermediate voltage can be higher or lower than the second reference voltage; for example, the second reference voltage is 12V, and the second intermediate voltage can be 6V or 18V; correspondingly, the preset voltage adjustment step size can be 0.1V / 100ms.

[0121] It should be noted that when the target to be tested is the target node to be tested, step S103 provided in the above embodiment can be performed as follows: the ring network protection switching function and the ring network recovery back-switching function are tested sequentially for the target node to be tested, and the test results are obtained; the relevant implementation methods can be referred to step S103 provided in the above embodiment, and will not be repeated here.

[0122] In this way, by performing different preprocessing steps on the intermediate nodes under test (e.g., adjusting the power supply voltage of the intermediate node under test in scenarios with power voltage fluctuations; implementing network sleep and wake-up in scenarios with network sleep and wake-up; sending relevant messages to the two ports of the intermediate node under test in test scenarios with high network load to obtain target nodes under test with network link bus loads exceeding a certain value), target nodes under test that can be used for subsequent stability testing in different test scenarios can be obtained, i.e., the nodes under test corresponding to the vehicle Ethernet ring network. This allows for the relatively accurate and convenient construction of nodes under test corresponding to the vehicle Ethernet ring network in different test scenarios, thus providing a foundation for ERPS stability testing of the nodes under test in the vehicle Ethernet ring network, and thereby improving the reliability of subsequent ERPS functional testing of the vehicle Ethernet ring network.

[0123] The stability testing method for the above-mentioned vehicle-mounted Ethernet ring network is described below with reference to a specific embodiment. However, it is worth noting that this specific embodiment is only for better illustrating the embodiments of this application and does not constitute an improper limitation on the embodiments of this application.

[0124] In related technologies, if an Ethernet ring network is applied to an in-vehicle system, the unstable ERPS switching function of the in-vehicle Ethernet ring network will directly lead to disordered data flow on the vehicle's Ethernet channel, affecting the correct implementation of functions dependent on the data flow, and consequently causing data transmission chaos within the in-vehicle system. Based on this, this application provides a stability testing method for an in-vehicle Ethernet ring network, mainly used to perform stability tests on various test scenarios in the following two types of test environments:

[0125] Step 1: Build a component-level test environment for the vehicle Ethernet ring network. This environment can simulate the control units of the directly connected neighboring nodes of different nodes in the vehicle Ethernet ring network according to their different roles in the ERPS of the vehicle Ethernet ring network. This will test the stability of the ERPS switching function of the node under test in the vehicle Ethernet ring network. Here, stability tests can be conducted based on the following principles (using an vehicular Ethernet ring network including the following nodes: RPL owner node, RPL neighbor node, and ordinary link nodes as an example): The RPL owner node plays a master control role in the vehicular Ethernet ring network. During initialization, it blocks its RPL port but does not block non-RPL ports. When a fault occurs, it opens its RPL port and blocks it again after the fault is recovered. The RPL neighbor node assists the RPL owner node in the vehicular Ethernet ring network. During initialization, it blocks its RPL neighbor port but does not block non-RPL ports. When a fault occurs, it opens its RPL port and blocks it again after the fault is recovered. Ordinary link nodes are controlled by the RPL owner node and RPL neighbor node. During initialization, they do not perform any port blocking operations. When a fault occurs, they cooperate by sending SF messages to notify the RPL owner node and RPL neighbor node to perform port operations. After the fault is recovered, they send NR messages to notify the RPL owner node and RPL neighbor node to perform port operations.

[0126] It should be noted that, as Figure 7The diagram shows a system composition schematic of a component-level test environment for a vehicle-mounted Ethernet ring network according to an embodiment of this application. The system includes: a programmable power supply module 701, a power board 702, a hardware interface board 704, and a first test device 705. Here, the power board 702 is used to control the programmable power supply module 701 to power on or off the node under test 703. The hardware interface board 704 includes: a message simulation and acquisition module and a fault injection module, which are respectively used for a dedicated hardware device for simulating ring network ERPS messages and a dedicated hardware device for activating the ring network ERPS function. In addition, the first test device 705 also includes: an Ethernet ring network ERPS protocol message simulation module, a ring network fault injection module, a status reading module for each Ethernet port, and an automated test execution sequence module. Among them, the Ethernet ring network ERPS protocol message simulation module is a software module used to simulate the ERPS protocol message required for ring network functions; the ring network fault injection module is a software module used to activate the ring network ERPS function; the Ethernet port status reading module is a software module used to read the Ethernet port status when the ring network exhibits different functional behaviors; and the automated test execution sequence module is a software module used to execute automated test cases.

[0127] Step 2: Set up a system-level test environment for the vehicle-mounted Ethernet ring network, build a system test bench, and perform stability testing and verification of the Ethernet ring network ERPS switching function by executing multiple different stability test scenarios. For example... Figure 8 The diagram shown is a schematic representation of the system composition of a system-level test environment corresponding to an in-vehicle Ethernet ring network provided in this application embodiment. The system includes: control units 1 to 3, each connected to one of the three nodes within the in-vehicle Ethernet ring network. Figure 8 As shown in 801 to 803, the second test device 807 is connected to the three control units 1 to 3, namely 801 to 803, based on the data acquisition boards 804 to 806 respectively.

[0128] It should be noted that, as Figure 8 The test system corresponding to the system test environment shown also includes a programmable power supply module and a power board (not shown in the figure); here, the modules included in the second test device 807 can be referred to above as follows. Figure 7 Description of the first test device 705 shown.

[0129] The test scenarios include: stability testing of the ERPS function of the vehicle Ethernet ring network after power supply voltage fluctuations (power supply voltage fluctuations within a low voltage range and / or power supply voltage fluctuations within a high voltage range); stability testing of the ERPS function of the vehicle Ethernet ring network after network sleep / wake-up (the component-level test system simulates network sleep / wake-up by sending network management messages, and the system-level test system simulates network sleep / wake-up by injecting sleep / wake-up conditions); stability testing of the ERPS function of the vehicle Ethernet ring network under high network load (the two Ethernet ports of the tested node in the component-level test environment simulate Ethernet packets, and each Ethernet port in the system-level test environment simulates Ethernet packets, resulting in a bus load rate of 90% or higher); during power-on initialization, simulating different node sequences, powering on the nodes in the vehicle Ethernet ring network sequentially, and then powering on all nodes; and after the nodes in the vehicle Ethernet ring network have stabilized after power-on, simulating different node sequences, controlling the nodes to power off and then power on sequentially, and simulating different node access sequences to test the stability of the ERPS function of the vehicle Ethernet ring network.

[0130] Here, different nodes are powered on in different sequences, such as: RPL owner node - RPL neighbor node - ordinary link node; or, RPL owner node - ordinary link node - RPL neighbor node; or, RPL neighbor node - RPL owner node - ordinary link node; or, RPL neighbor node - ordinary link node - RPL owner node; or, ordinary link node - RPL neighbor node - RPL owner node; or, ordinary link node - RPL owner node - RPL neighbor node - RPL neighbor node; or, ordinary link node - RPL owner node - RPL neighbor node, until all control units associated with all nodes in the vehicle Ethernet ring network are working.

[0131] The component-level test environment includes the component's test node and its corresponding test equipment (such as...). Figure 7 The first test device 705 shown in the figure simulates the control unit under test through the first test device 705. Figure 7The ERPS protocol messages of the node under test (703) shown in the figure, such as NR RAPS protocol messages, NRRB RAPS protocol messages, or SF RAPS messages, are injected into the Ethernet channel link down or simulated to send SF messages, activating the ERPS ring network protection switching function. Alternatively, the Ethernet channel link up is restored or SF message sending is stopped, activating the ERPS ring network recovery and back-off function. Simultaneously, the ERPS messages sent by the node under test (703) and the data flow of the two ports of the node under test (703) are analyzed and collected in real time. The FDB table is read and compared with the requirements to realize the automated testing of the component-level ring network functional stability.

[0132] Step 3: Test the ring network ERPS fault protection functions (ring network protection switching function and ring network recovery switchback function) in both component-level and system-level test environments. This mainly includes the following two aspects:

[0133] Aspect 1: Fault testing of link 1 between the master node and the slave node, fault testing of link 2 between the slave node and the adjacent node, and fault testing of the ring protection link (link between the master node and the adjacent node).

[0134] Part Two: Normal link failure recovery test between master node and slave node, link failure recovery and switchback test between slave node and adjacent node, and RPL link failure recovery and switchback test.

[0135] The stability testing method for vehicle-mounted Ethernet ring networks provided in this application considers different testing environments when designing test schemes and test scenarios under different testing environments to achieve automated testing of the stability of Ethernet ring network ERPS. In this way, it is possible to quickly perform stability testing of vehicle-mounted Ethernet ring network ERPS under limited testing time requirements, ensuring the reliability of the vehicle-mounted Ethernet ring network ERPS function.

[0136] This application provides a stability system for an in-vehicle Ethernet ring network, such as... Figure 9 The diagram shown is a schematic representation of the structural composition of a stability system for an in-vehicle Ethernet ring network provided in an embodiment of this application. Figure 9 The following explanation is provided:

[0137] The module 901 is configured to build a test environment corresponding to the vehicle Ethernet ring network according to preset test requirements; wherein, the ring network protection switching function of the vehicle Ethernet ring network located in the test environment is operating normally.

[0138] The preprocessing module 902 is configured to perform preprocessing on the initial test object corresponding to the vehicle-mounted Ethernet ring network located in the test environment, matching it with a preset test scenario, to obtain the target test object in the preset test scenario;

[0139] The test module 903 is configured to sequentially test the ring network protection switching function and the ring network recovery back-switching function on the target test object, and obtain the test results.

[0140] It should be noted that the description of the stability system of the vehicle-mounted Ethernet ring network in this embodiment is similar to the description of the method-side embodiment described above, and has similar beneficial effects as the method-side embodiment. For technical details not disclosed in the system embodiments of this application, please refer to the description of the method-side embodiment of this application for understanding.

[0141] Correspondingly, this application embodiment further provides a computer program product, which includes computer-executable instructions. After the computer-executable instructions are executed, they can implement the stability testing method for the vehicle-mounted Ethernet ring network provided in this application embodiment.

[0142] Accordingly, this application embodiment further provides a computer storage medium storing computer-executable instructions, which, when executed by a processor, implement the stability testing method for the vehicle-mounted Ethernet ring network provided in the above embodiment.

[0143] The description of the above embodiments of the vehicle-mounted Ethernet ring network stability testing system and storage medium is similar to the description of the above method embodiments, and has similar technical descriptions and beneficial effects as the corresponding system embodiments. Due to space limitations, please refer to the description of the above method embodiments, and therefore will not be repeated here. For technical details not disclosed in the embodiments of the vehicle-mounted Ethernet ring network stability testing system and storage medium provided in this application, please refer to the description of the method embodiments of this application for understanding.

[0144] It should be understood that the phrase "an embodiment" or "one embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Therefore, "in one embodiment" or "one embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of the present application, the sequence number of the above-described processes does not imply the order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0145] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0146] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0147] Furthermore, in the embodiments of this application, all functional units can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units. Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0148] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.

Claims

1. A stability testing method for an on-board Ethernet ring network, characterized in that, The vehicle-mounted Ethernet ring network includes: a master node, neighboring nodes, and at least one slave node. The master node and the neighboring nodes are connected via a ring protection link. The stability testing method includes: Given that the preset test requirement is to perform system-level testing on the vehicle-mounted Ethernet ring network, a first test device is used to control multiple test units, which are connected to the link between any two nodes in the vehicle-mounted Ethernet ring network to obtain the system-level test environment corresponding to the vehicle-mounted Ethernet ring network; wherein, the test units are used for data simulation and data acquisition. When the preset test requirement is to test the node under test, a second test device is used to simulate the control unit of the node directly connected to the node under test in the vehicle Ethernet ring network, thereby obtaining the component-level test environment corresponding to the vehicle Ethernet ring network; wherein, the node under test is any node in the vehicle Ethernet ring network; the ring network protection switching function of the vehicle Ethernet ring network located in the test environment is operating normally. The initial test object corresponding to the vehicle-mounted Ethernet ring network located in the test environment is preprocessed to match the preset test scenario, so as to obtain the target test object in the preset test scenario. For the target object under test, the ring network protection switching function and the ring network recovery and back-switching function are tested sequentially to obtain the test results.

2. The stability testing method according to claim 1, characterized in that, The step of preprocessing the initial test object corresponding to the vehicle-mounted Ethernet ring network located in the test environment to match it with a preset test scenario, thereby obtaining the target test object in the preset test scenario, includes: A preset power supply module is used to provide a reference power supply voltage to the initial test object to obtain an intermediate test object; The intermediate test object is preprocessed to match the preset test scenario to obtain the target test object.

3. The stability testing method according to claim 2, characterized in that, The test environment includes: the system-level test environment corresponding to the vehicle-mounted Ethernet ring network, wherein a preset power module is used to provide a reference power supply voltage to the initial test object to obtain an intermediate test object, including: Using the first power module in the system-level test environment, a first reference voltage is provided to the initial system under test corresponding to the vehicle-mounted Ethernet ring network to obtain the intermediate system under test; The step of preprocessing the intermediate test object to match the preset test scenario, thereby obtaining the target test object, includes: The intermediate system under test is preprocessed to match the preset test scenario to obtain the target system under test.

4. The method according to claim 3, characterized in that, The step of preprocessing the intermediate system under test to match the preset test scenario, thereby obtaining the target system under test, includes: Using the programmable power supply module in the system-level test environment, the power supply voltage of the intermediate system under test is adjusted from the first reference voltage to the first intermediate voltage, and then from the first intermediate voltage back to the first reference voltage, according to a preset voltage adjustment step size, to obtain the target system under test in a scenario with fluctuating power supply voltage; or... Using the test unit in the system-level test environment, sleep / wake-up conditions are sent to each node in the intermediate system under test to obtain the target system under test in a scenario after network sleep / wake-up; or, Using the test unit in the system-level test environment, simulate sending Ethernet packets with a network bus load rate higher than a first preset value to two ports of each node in the intermediate system under test, to obtain the target system under test in a scenario corresponding to high network load; or, Using the programmable power supply module in the system-level test environment, each node in the intermediate system under test is powered on according to various different node access sequences to obtain the target system under test in the scenario corresponding to the power-on stage.

5. The stability testing method according to claim 4, characterized in that, The system-level test environment employs a programmable power supply module to power on each node in the intermediate system under test according to various node access sequences, thereby obtaining the target system under test in the scenario corresponding to the power-on phase, including: Using the programmable power supply module, each node in the intermediate system under test is controlled to be in a power-off state at the same time. After a first preset time period, each node in the intermediate system under test is sequentially powered on according to the various different node access sequences, resulting in the target system under test in the scenario corresponding to the power-on phase; or, Using the programmable power supply module, each node in the intermediate system under test is powered down sequentially and stabilized for a second preset time according to the various different node access sequences. After the second preset time, each node in the intermediate system under test is powered on sequentially according to the various different node access sequences, thereby obtaining the target system under test in the scenario corresponding to the power-on phase.

6. The stability testing method according to claim 2, characterized in that, The test environment includes: the component-level test environment corresponding to the vehicle-mounted Ethernet ring network; the intermediate test object is obtained by using a preset power module to provide a reference power supply voltage to the initial test object, including: Using the second power module in the component-level test environment, a second reference voltage is provided to the initial node under test in the vehicle Ethernet ring network to obtain the intermediate node under test. The step of preprocessing the intermediate test object to match the preset test scenario, thereby obtaining the target test object, includes: The intermediate test nodes are preprocessed to match the preset test scenario to obtain the target test nodes.

7. The stability testing method according to claim 6, characterized in that, The step of preprocessing the intermediate test nodes to match the preset test scenario to obtain the target test node includes: Using a programmable power supply module in the component-level testing environment, the power supply voltage of the intermediate node under test is adjusted from the second reference voltage to the second intermediate voltage, and then from the second intermediate voltage back to the second reference voltage, according to a preset voltage adjustment step size, to obtain the target node under test in a scenario with fluctuating power supply voltage; or, Using the first test device in the component-level test environment, a network management message for implementing network sleep-wake-up is sent to the intermediate node under test, thereby obtaining the target node under test in the scenario after network sleep-wake-up; or, Using the first test device in the component-level test environment, simulate sending Ethernet packets with a corresponding link load rate higher than a second preset value to the two ports of the intermediate node under test, thereby obtaining the target node under test in the scenario corresponding to high network load.

8. A stability testing system for a vehicle-mounted Ethernet ring network, characterized in that, The vehicle-mounted Ethernet ring network includes: a master node, neighboring nodes, and at least one slave node. The master node and the neighboring nodes are connected via a ring protection link. The stability testing system includes: The module is configured to, under the preset test requirement of performing system-level testing on the vehicle-mounted Ethernet ring network, use a first test device to control multiple test units, connecting them to the link between any two nodes in the vehicle-mounted Ethernet ring network to obtain the system-level test environment corresponding to the vehicle-mounted Ethernet ring network; wherein, the test units are used for data simulation and data acquisition; under the preset test requirement of testing the node under test, a second test device is used to simulate the control unit of the node directly connected to the node under test in the vehicle-mounted Ethernet ring network to obtain the component-level test environment corresponding to the vehicle-mounted Ethernet ring network; wherein, the node under test is any node in the vehicle-mounted Ethernet ring network; the ring network protection switching function of the vehicle-mounted Ethernet ring network in the test environment operates normally; The preprocessing module is configured to perform preprocessing on the initial test object corresponding to the vehicle-mounted Ethernet ring network located in the test environment, matching it with a preset test scenario, to obtain the target test object in the preset test scenario; The testing module is configured to sequentially test the ring network protection switching function and the ring network recovery and back-switching function on the target test object, and obtain the test results.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed, enable the stability testing method for the vehicle-mounted Ethernet ring network as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Ring network communication method and device of vehicle-mounted Ethernet, vehicle and storage medium

    CN115714698A

  • Vehicle-mounted Ethernet ring network link switching method and system, vehicle and storage medium

    CN116455699A