Communication evaluation method, device and equipment of vehicle-mounted domain control unit, and medium

By configuring the Ethernet switch as a transmissive and transfer mode, the communication quality of the processor and switch in the on-board domain control unit is evaluated using the evaluation equipment, and the problem of difficult to obtain accurate communication data and positioning problem modules in the prior art is solved, and efficient communication quality evaluation and problem positioning are achieved.

CN119906647AActive Publication Date: 2025-04-29CHONGQING CHANGAN AUTOMOBILE CO LTD

Patent Information

Application Number
CN202510069322.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-04-29
Estimated Expiration
2045-01-16

AI Technical Summary

Technical Problem

The internal communication of the vehicle-mounted domain control unit is extremely complex, and the prior art is difficult to obtain accurate communication data, and it is difficult to locate problem modules, making it difficult to evaluate the internal communication quality of the domain control unit.

Method used

By configuring the Ethernet switch in transit mode, the processor's data to be forwarded is sent to the evaluation device as it is, thereby evaluating the communication quality of the processor; when configuring the Ethernet switch in transfer mode, the connection between the processor and the switch is disconnected, so that the evaluation device sends the data to be forwarded to the switch instead of the processor, and evaluates the communication quality of the switch.

Benefits of technology

During communication testing, strip away the interface effects between multiple hardware modules, disassemble and evaluate one by one, and position the problematic modules and communication problems in the domain control unit in advance, shorten the development cycle, save development costs, and improve the accuracy of the evaluation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906647A_ABST
    Figure CN119906647A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle-mounted controller testing, and discloses a communication evaluation method, device and equipment of a vehicle-mounted domain control unit and a medium. An evaluation device is used for configuring an Ethernet switch to be in a transparent transmission mode, so that a processor can send first to-be-forwarded data sent to the Ethernet switch to the evaluation device in an original mode; therefore, the evaluation equipment can evaluate the communication quality of the processor; and configuring the Ethernet switch to be in a transfer mode by using the evaluation equipment, disconnecting the connection between the processor and the Ethernet switch, enabling the evaluation equipment to replace the original processor to send different types of second to-be-forwarded data to the Ethernet switch, and evaluating the communication quality of the Ethernet switch according to the obtained forwarding result data. Therefore, the interface influence among a plurality of hardware modules is stripped during communication testing, the hardware modules are disassembled one by one for evaluation, problem modules and communication problems in the domain control unit are positioned in advance, the development period is shortened, and the development cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle-mounted controller testing, and in particular to a communication evaluation method, device, equipment and medium for a vehicle-mounted domain control unit. Background Art

[0002] The Ethernet Central Integrated Regional Control Unit (hereinafter referred to as the domain control unit) is a control unit that integrates multiple functions and interfaces. It communicates with the central processing unit at high speed through Ethernet technology and manages various devices and systems in its area. The domain control unit usually integrates an Ethernet switch (Switch), a high-performance processor such as multiple microcontrollers (Micro Control Unit, MCU) or system-on-chip (System on Chip, SOC), etc., and also has a variety of communication interfaces such as controller area network (Controller Area Network, CAN), virtual local area network (Virtual Local Area Network, VLAN), etc., to meet the control needs of complex systems.

[0003] At present, when testing the in-vehicle Ethernet, the communication test is often performed by obtaining the communication data between the Ethernet switch and the processor. However, the internal communication of the domain control unit is extremely complex, and it is very easy to have communication problems between internal modules, and it is also very difficult to locate the problems. Both the Ethernet switch and the processor may have communication problems, so it is difficult to ensure that accurate communication data is obtained, which makes it very difficult to evaluate the internal communication quality of the domain control unit. Summary of the invention

[0004] In view of this, the present invention provides a communication evaluation method, device, equipment and medium for a vehicle-mounted domain control unit to solve the problem that the internal communication of the domain control unit is extremely complex, the prior art is difficult to obtain accurate communication data and cannot locate the problem module, and it is difficult to evaluate the internal communication quality of the domain control unit.

[0005] In a first aspect, the present invention provides a communication evaluation method for a vehicle-mounted domain control unit, the vehicle-mounted domain control unit comprising an Ethernet switch and at least one processor, the method being applied to an evaluation device, the method comprising:

[0006] The Ethernet switch is configured to be in a transparent transmission mode, so that a first port of the Ethernet switch is connected to at least one processor, and a second port of the Ethernet switch is connected to a first transceiver port of the evaluation device;

[0007] Acquire first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations, and evaluate the communication quality of the processor based on the first data to be forwarded;

[0008] The Ethernet switch is configured to a transfer mode so that the reserved port of the Ethernet switch is connected to the second transceiver port of the evaluation device, and the connection state of the second port and the first transceiver port is maintained;

[0009] Based on pre-stored standard communication data generated when the processor does not fail, different types of second data to be forwarded are obtained and sent to the Ethernet switch, the Ethernet switch is controlled to forward the second data to be forwarded, forwarding result data is obtained, and the communication quality of the Ethernet switch is evaluated based on the forwarding result data.

[0010] Beneficial effect: The present invention uses the evaluation equipment to configure the Ethernet switch in the transparent transmission mode, so that the processor can send the first data to be forwarded sent to the Ethernet switch to the evaluation equipment as it is, so that the evaluation equipment can evaluate the communication quality of the processor; the evaluation equipment is used to configure the Ethernet switch in the transfer mode, disconnect the connection between the processor and the Ethernet switch, so that the evaluation equipment replaces the original processor to send different types of second data to be forwarded to the Ethernet switch, and evaluate the communication quality of the Ethernet switch according to the forwarding result data obtained. In this way, the interface influence between multiple hardware modules is stripped off during the communication test, and they are disassembled one by one for evaluation, so that the problem modules and communication problems in the domain control unit are located in advance, the development cycle is shortened, and the development cost is saved.

[0011] In some optional implementations, obtaining different types of second data to be forwarded and sending them to the Ethernet switch based on pre-stored standard communication data generated when the processor does not fail includes:

[0012] Extracting standard communication data generated when at least one processor pre-stored in the processor does not fail, to obtain different types of frame data;

[0013] Different types of second data to be forwarded are obtained according to different types of frame data, and the second data to be forwarded is sent to a reserved port of the Ethernet switch by using the second transceiver port.

[0014] Beneficial effect: In the embodiment of the present invention, by configuring the Ethernet switch to the forwarding mode, the evaluation device will use the second transceiver port to send various communication data generated when the processor is not faulty to the reserved port of the Ethernet switch, replace the function of the processor, and simulate the communication interaction between the processor and the Ethernet switch. Compared with the solution of evaluating the function of the Ethernet switch alone, the data forwarding function in the interaction process between the Ethernet switch and the processor can be better evaluated, and the functions of the Ethernet switch involving the processor interaction can be evaluated, thereby ensuring the comprehensiveness and integrity of the Ethernet switch function evaluation. In addition, it can ensure that the Ethernet switch forwards the correct second data to be forwarded, thereby eliminating the influence of the processor failure on the data forwarding quality of the Ethernet switch, thereby improving the accuracy of the evaluation result.

[0015] In some optional implementations, obtaining first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations includes:

[0016] Read the first transceiver port to obtain transparent transmission data corresponding to the second port; wherein the transparent transmission data is obtained after the Ethernet switch transparently transmits the received data of the first port to the second port;

[0017] According to the transparent transmission data corresponding to the second port, first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations are obtained.

[0018] Beneficial effect: By configuring the Ethernet switch to transparent transmission mode, the Ethernet switch will transmit the first data to be forwarded sent by the processor to the first port to the second port intactly, so that the evaluation equipment can directly obtain the original data sent by the processor to the Ethernet switch during the communication between the Ethernet switch and the processor. Compared with the communication test of the processor alone, the interaction quality between the processor and the Ethernet switch can be evaluated. In addition, the influence of certain forwarding failures of the Ethernet switch on the quality of the first data to be forwarded can be eliminated, and the original and accurate first data to be forwarded can be obtained, which is conducive to improving the accuracy of the communication quality evaluation of the processor.

[0019] In some optional implementations, evaluating the communication quality of the processor based on the first data to be forwarded includes:

[0020] According to the first data to be forwarded, obtaining message transmission data of the processor under different communication protocols, communication status data of the processor under different communication voltages, first connection status data of the processor before establishing a physical layer connection, and second connection status data of the processor after establishing the physical layer connection;

[0021] The evaluation is performed based on the message transmission data under different communication protocols to obtain the protocol consistency function evaluation results of the processor;

[0022] Performing evaluation based on the communication state data and / or the first connection state data under different communication voltages to obtain a performance evaluation result of the processor;

[0023] An evaluation is performed based on the second connection state data to obtain a stability evaluation result of the processor.

[0024] Beneficial effects: The communication protocol, communication voltage and physical layer connection of the processor are configured using the evaluation equipment, so that the protocol consistency of the processor can be evaluated according to the message transmission data under different communication protocols, the performance of the processor can be evaluated according to the communication status data under different communication voltages and / or the first connection status data of the processor before establishing the physical layer connection, and the stability of the processor can be evaluated according to the second connection status data of the processor after establishing the physical layer connection, so as to timely discover the communication problems of the processor in terms of function, performance and documentation, guide relevant personnel to debug, and shorten the development cycle.

[0025] In some optional implementations, evaluating the communication state data and / or the first connection state data under different communication voltages to obtain a performance evaluation result of the processor includes:

[0026] According to the communication status data under different communication voltages, the communication voltage range corresponding to the processor, the communication maintenance time from the communication stable state to the communication stop state, the communication recovery time and the communication recovery voltage from the communication stop state to the communication stable state are determined to obtain the communication voltage evaluation result;

[0027] And / or, according to the first connection state data, obtaining the startup time of establishing a physical layer connection after the processor enters the power-on / wake-up state from the power-off / sleep state, and determining the physical layer connection startup evaluation result of the processor based on the relationship between the startup time and the preset startup time;

[0028] The performance evaluation result of the processor is obtained according to the communication voltage evaluation result and / or the physical layer connection startup evaluation result.

[0029] Beneficial effects: The present invention uses the evaluation equipment to control the processor to communicate under different communication voltages, so as to evaluate the communication voltage of the processor, which is conducive to discovering communication voltage problems in advance. The evaluation equipment is used to control the processor to enter the power-on / wake-up state from the power-off / sleep state, and to detect the startup time for establishing a physical layer connection. According to the evaluation results, guidance is provided for the development process to ensure that the processor can establish a physical layer connection within the specified time.

[0030] In some optional implementations, performing evaluation based on the second connection state data to obtain a stability evaluation result of the processor includes:

[0031] According to the second connection state data, secondary connection data is obtained when the processor re-establishes a physical layer connection after entering a power-on / connection-on / wake-up state from a power-off / connection-off / sleep state;

[0032] According to the secondary connection data, it is determined whether the physical layer connection of the processor is reestablished and whether the processor receives a reply message returned by the Ethernet switch; wherein the reply message is generated by the Ethernet switch based on the request message sent by the processor;

[0033] When it is detected that the physical layer connection of the processor is re-established and the processor receives a reply message returned by the Ethernet switch, it is determined that the stability evaluation result of the processor is passed.

[0034] Beneficial effect: After the processor establishes a physical layer connection, the present invention uses an evaluation device to control the processor to re-enter a power-on / connection-on / wake-up state from a power-off / connection-closed / sleep state, and obtains secondary connection data when the processor re-establishes the connection to determine whether the processor can re-establish a physical layer connection and whether communication with the Ethernet switch can be restored, thereby evaluating the stability of the processor, making it easy to discover processor problems in advance based on the evaluation results for debugging, thereby improving development efficiency.

[0035] In some optional implementations, the evaluation is performed based on the message transmission data under different communication protocols to obtain the protocol consistency function evaluation result of the processor, including:

[0036] According to the message transmission data, communication identifiers corresponding to different communication protocols are obtained; wherein the communication protocol includes at least one of a virtual local area network communication protocol, a data link layer communication protocol, a network layer communication protocol, a user datagram protocol, and a transmission control protocol, and the communication identifier includes at least one of a target address, a source address, a message header, a target port, and a source port;

[0037] When it is detected that the communication identifier is consistent with the preset communication identifier, it is determined that the protocol consistency function evaluation result of the processor is passed.

[0038] Beneficial effect: The present invention utilizes the evaluation equipment to control the processor to communicate through different types of communication protocols, and detects the communication identifier in the corresponding message transmission data. If the communication identifiers such as the target address, source address, message header, target port and source port are consistent with the preset communication identifier defined by the processor, it is confirmed that the protocol consistency function evaluation of the processor has passed, thereby eliminating the influence of communication problems in the Ethernet switch, and evaluating the protocol consistency of the basic communication protocol of the processor separately.

[0039] In some optional implementations, evaluating the communication quality of the Ethernet switch based on the forwarding result data includes:

[0040] According to the forwarding result data, the forwarding status of the Ethernet switch for different types of frame data, the forwarding delay time of the Ethernet switch forwarding the frame data to the evaluation device, the forwarding frame loss status of the Ethernet switch under different load states and / or the forwarding status data under different power supply voltages are obtained;

[0041] Based on the forwarding situation of different types of frame data, the functional evaluation results of the Ethernet switch are obtained;

[0042] Based on the forwarding delay time, the performance evaluation results of the Ethernet switch are obtained;

[0043] The stability evaluation result of the Ethernet switch is obtained by performing evaluation based on the forwarding frame loss situation and / or forwarding status data.

[0044] Beneficial effects: Use the evaluation equipment to send different types of data to the Ethernet switch, and perform a functional evaluation based on the Ethernet switch's forwarding of different types of frame data. Perform a performance evaluation based on the forwarding delay time when the Ethernet switch forwards the frame data to the evaluation equipment. Perform a stability evaluation based on the Ethernet switch's forwarding frame loss under different load conditions and / or forwarding status data under different power supply voltages. This allows timely discovery of communication problems with the Ethernet switch in terms of function, performance, and documentation, guides relevant personnel in debugging, and shortens the development cycle.

[0045] In some optional implementations, the evaluation is performed based on the forwarding conditions of different types of frame data to obtain the functional evaluation results of the Ethernet switch, including:

[0046] According to the forwarding conditions of different types of frame data, it is judged whether the Ethernet switch can forward the first type of frame data and the second type of frame data; wherein the first type of frame data includes at least one of a labeled message frame and an addressed message frame, and the second type of frame data includes at least one of an unlabeled message frame, an error message frame, and an unaddressed message frame;

[0047] When it is detected that the Ethernet switch can forward the first type of frame data but cannot forward the second type of frame data, it is determined that the function evaluation result of the Ethernet switch is passed.

[0048] Beneficial effects: The present invention utilizes the testing equipment to send different types of frame data to the Ethernet switch to determine whether the Ethernet switch can forward the corresponding frame data according to the setting, thereby detecting the forwarding function of the Ethernet switch. The influence of the processor is eliminated during the detection, thereby improving the detection accuracy, facilitating the location of communication problems of the Ethernet switch, and timely debugging, thereby improving development efficiency.

[0049] In some optional implementations, the performance evaluation result of the Ethernet switch is obtained by performing evaluation based on the forwarding delay time, including:

[0050] Determine whether the forwarding delay time is less than a preset forwarding delay time;

[0051] If the forwarding delay time is less than the preset forwarding delay time, it is determined that the performance evaluation result of the Ethernet switch is passed.

[0052] Beneficial effect: The present invention evaluates the forwarding delay time when the Ethernet switch forwards frame data, eliminates the influence of the processor, locates the data forwarding problem of the Ethernet switch in advance, facilitates its timely debugging, and ensures that the Ethernet switch can send the frame data to other ports within the specified time.

[0053] In some optional implementations, the stability evaluation result of the Ethernet switch is obtained by evaluating the forwarding frame loss situation and / or the forwarding state data, including:

[0054] According to the forwarding frame loss situation, the forwarding frame loss rate of the Ethernet switch under the preset maximum load state is obtained, and based on the relationship between the forwarding frame loss rate and the preset forwarding frame loss rate, the forwarding frame loss evaluation result of the Ethernet switch is determined;

[0055] and / or, determining a power supply voltage range when the Ethernet switch forwards frame data based on the forwarding state data, and obtaining a power supply voltage evaluation result;

[0056] According to the forwarding frame loss evaluation results and the power supply voltage evaluation results, the stability evaluation results of the Ethernet switch are obtained.

[0057] Beneficial effect: The present invention facilitates locating stability problems of the Ethernet switch by evaluating the forwarding frame loss rate of the Ethernet switch under a preset maximum load state and the power supply voltage range when it can forward frame data, thereby timely debugging, shortening the development cycle, and improving development efficiency.

[0058] In a second aspect, the present invention provides a communication evaluation device for a vehicle-mounted domain control unit, the vehicle-mounted domain control unit includes an Ethernet switch and at least one processor, the device is applied to an evaluation device, and the device includes:

[0059] A first control module, configured to configure the Ethernet switch to a transparent transmission mode, so that a first port of the Ethernet switch is connected to at least one processor, and a second port of the Ethernet switch is connected to a first transceiver port of the evaluation device;

[0060] A first processing module, configured to obtain first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations, and evaluate the communication quality of the processor based on the first data to be forwarded;

[0061] A second control module, configured to configure the Ethernet switch to a transfer mode, so that the reserved port of the Ethernet switch is connected to the second transceiver port of the evaluation device, and maintain the connection state between the second port and the first transceiver port;

[0062] The second processing module is used to obtain different types of second data to be forwarded and send them to the Ethernet switch based on the pre-stored standard communication data generated when the processor does not fail, control the Ethernet switch to forward the second data to be forwarded, obtain forwarding result data, and evaluate the communication quality of the Ethernet switch based on the forwarding result data.

[0063] In a third aspect, the present invention provides an evaluation device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the communication evaluation method of the vehicle domain control unit of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0064] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the communication evaluation method for a vehicle-mounted domain control unit of the first aspect or any corresponding embodiment thereof.

[0065] The beneficial effects of the present invention are:

[0066] The present invention uses an evaluation device to configure an Ethernet switch in a transparent transmission mode, so that the processor can send the first data to be forwarded sent to the Ethernet switch to the evaluation device as it is, so that the evaluation device can evaluate the communication quality of the processor; the evaluation device is used to configure the Ethernet switch in a transfer mode, disconnect the connection between the processor and the Ethernet switch, so that the evaluation device replaces the original processor to send different types of second data to be forwarded to the Ethernet switch, and evaluate the communication quality of the Ethernet switch according to the forwarding result data obtained. In this way, the interface influence between multiple hardware modules is stripped off during communication testing, and they are disassembled one by one for evaluation, so that the problem modules and communication problems in the domain control unit are located in advance, the development cycle is shortened, and the development cost is saved. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0068] Figure 1 is a flow chart of a communication evaluation method of a vehicle-mounted domain control unit according to an embodiment of the present invention;

[0069] Figure 2 is a schematic diagram of the structure of the Ethernet switch transparent transmission mode according to an embodiment of the present invention;

[0070] Figure 3 is a structural diagram of an Ethernet switch transfer mode according to an embodiment of the present invention;

[0071] Figure 4 is a flow chart of another communication evaluation method of a vehicle-mounted domain control unit according to an embodiment of the present invention;

[0072] Figure 5 is a schematic diagram of a process for evaluating MCU / SOC communication quality according to an embodiment of the present invention;

[0073] Figure 6 is a schematic diagram of a process for evaluating the communication quality of an Ethernet switch according to an embodiment of the present invention;

[0074] Figure 7 is a structural block diagram of a communication evaluation device of a vehicle-mounted domain control unit according to an embodiment of the present invention;

[0075] Figure 8 It is a schematic diagram of the hardware structure of the evaluation device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0076] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0077] The internal communication of the vehicle domain control unit is complex, and it is very easy to have communication problems with the internal modules, and it is also very difficult to locate the problems. For communication problems such as MCU sending data frame loss, SOC sending data frame loss, and Switch forwarding frame loss with internal communication, dedicated evaluation equipment is needed to avoid them, which has a positive and active significance for guiding development.

[0078] Therefore, an embodiment of the present invention provides a communication evaluation method for a vehicle-mounted domain control unit, which uses an evaluation device to configure the Switch to be in transparent transmission mode and transfer mode respectively to evaluate the communication quality of the vehicle-mounted domain control unit, wherein when the Switch is in transparent transmission mode, the processor in the domain control unit can send the first data to be forwarded sent to the Switch to the evaluation device as is, so that the evaluation device can evaluate the communication quality of the processor; when the Switch is in transfer mode, the connection between the processor and the Switch is disconnected, so that the evaluation device replaces the original processor to send different types of second data to be forwarded to the Switch, and evaluates the communication quality of the Switch according to the corresponding forwarding result data. In this way, the interface influences between multiple hardware modules can be stripped off during communication testing, and they can be disassembled one by one for evaluation, and the problem modules and communication problems in the domain control unit can be located in advance, thereby shortening the development cycle and saving development costs.

[0079] According to an embodiment of the present invention, an embodiment of a communication evaluation method for a vehicle-mounted domain control unit is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0080] In this embodiment, a communication evaluation method for a vehicle-mounted domain control unit is provided, which can be used for an evaluation device such as a computer to evaluate vehicle-mounted Ethernet communication. Figure 1 is a flow chart of a communication evaluation method of a vehicle-mounted domain control unit according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0081] Step S101: configure the Ethernet switch to a transparent transmission mode, so that a first port of the Ethernet switch is connected to at least one processor, and a second port of the Ethernet switch is connected to a first transceiver port of an evaluation device.

[0082] Specifically, the vehicle-mounted domain control unit includes an Ethernet switch and at least one processor such as an MCU / SOC. Figure 2As shown, in a normal configuration, the Ethernet switch Switch communicates with the evaluation device and the processor MCU / SOC respectively, wherein the Switch has a first port Port_1 and a second port Port_2. In practical applications, in order to locate the problem module with communication problems in the vehicle domain control unit, it is necessary to evaluate the communication quality of the internal MCU / SOC on the one hand, and the communication quality of the internal Switch on the other hand.

[0083] Therefore, in order to evaluate the communication quality of the MCU / SOC hidden behind the Switch, the data sent by the MCU / SOC to the Switch for routing forwarding needs to be sent intact from the Switch external port to the evaluation device, in order to directly evaluate the communication quality of the MCU / SOC. Figure 2 , configure the Switch to transparent transmission mode, in which the first port Port_1 of the Switch is connected to the MCU / SOC, and the second port Port_2 of the Switch is connected to the first transceiver port of the evaluation device, so that the Switch is configured to send the data of the first port Port_1 intact from the second port Port_2, and the evaluation device is directly connected to the port of the MCU / SOC for evaluation. In this way, the MCU / SOC can send the data sent to the Switch directly to the evaluation device, which is convenient for evaluating the communication quality of the MCU / SOC and eliminating the impact of the Switch communication problem on the MCU / SOC evaluation.

[0084] The present invention sets the Ethernet switch to transparent transmission mode to test the transmission performance of the MCU / SOC during Ethernet communication. In this way, the instructions sent by the evaluation equipment do not pass through the Switch, but directly reach the MCU / SOC, thereby avoiding the following situation: the MCU / SOC has no problem, but the Switch has a problem, resulting in the MCU / SOC connected thereto not receiving data or not feeding back data, and mistakenly judging that the MCU / SOC has poor performance in transmission.

[0085] It should be noted that the domain control unit with the Ethernet switch Switch may include one or more processors such as MCU / SOC. The embodiment of the present application is explained by taking the communication between the Ethernet switch Switch and one MCU / SOC as an example, but in actual application, the present application is also applicable to multiple MCU / SOCs.

[0086] Step S102: acquiring first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations, and evaluating the communication quality of the processor based on the first data to be forwarded.

[0087] Specifically, the evaluation device can perform different types of communication configurations on the processor, such as configuring the processor's communication protocol, communication voltage, power-on / power-off status, wake-up / sleep status, etc. The processor will send different types of first data to be forwarded to the Switch under the corresponding communication configuration, and the first data to be forwarded will also be sent directly to the evaluation device so that the evaluation device can evaluate the communication quality of the processor.

[0088] Specifically, see again Figure 2 , the evaluation device will read the first transceiver port and obtain the transparent data corresponding to the second port Port_2, and then obtain the first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations according to the transparent data corresponding to the second port Port_2. It should be noted that the transparent data is obtained after the Ethernet switch transparently transmits the received data of the first port Port_1 to the second port Port_2. During the transmission process of the transparent transmission mode, the Switch does not care about the content and data protocol format of the received data of the first port Port_1, and does not process the data to be transmitted. It just treats the received data of the first port Port_1 as a set of binary data and perfectly transmits it to the second port Port_2. In this way, it can be ensured that the evaluation device can obtain the first data to be forwarded sent by the MCU / SOC to the Switch intact.

[0089] The related technology uses the host computer to obtain the communication data between the Switch and the MCU / SOC. When a communication failure occurs in the Switch, it is difficult to ensure the accuracy of the communication data, which will affect the accuracy of the MCU / SOC communication quality evaluation. However, if the MCU / SOC communication quality is evaluated alone, it is difficult for the host computer to perfectly replace the function of the Switch. Some data sent by the MCU / SOC to the Switch are difficult for the host computer to directly obtain, and indirect acquisition using other devices cannot guarantee that the data is exactly the same as the data originally sent by the MCU / SOC, thereby affecting the accuracy of the MCU / SOC communication quality evaluation.

[0090] In the embodiment of the present invention, by configuring the Ethernet switch to the transparent transmission mode, the Ethernet switch will transmit the first data to be forwarded sent by the processor to the first port to the second port intactly, so that the evaluation device can directly obtain the original data sent by the processor to the Ethernet switch during the communication between the Ethernet switch and the processor. Compared with the communication test of the processor alone, the interaction quality between the processor and the Ethernet switch can be evaluated. In addition, the influence of certain forwarding failures of the Ethernet switch on the quality of the first data to be forwarded can be eliminated, and the original and accurate first data to be forwarded can be obtained, which is conducive to improving the accuracy of the communication quality evaluation of the processor.

[0091] Step S103: configure the Ethernet switch to a transfer mode, so that the reserved port of the Ethernet switch is connected to the second transceiver port of the evaluation device, and the connection state between the second port and the first transceiver port is maintained.

[0092] Specifically, Figure 3 As shown in the figure, in a normal configuration, the Ethernet switch Switch communicates with the evaluation device and the processor MCU / SOC respectively, wherein the Switch has a first port Port_1 and a second port Port_2, so it is impossible to determine whether the communication problem occurs in the MCU / SOC or the Switch. Therefore, it is necessary to disassemble the hardware in the domain control unit and evaluate them one by one.

[0093] Furthermore, in order to evaluate the communication quality of the Switch, it is necessary to configure the internal port connected to the MCU / SOC as it is to reserve a port that is not used by the system, in order to directly evaluate the internal communication quality of the Switch connected to the MCU / SOC. Figure 3 , configure the Switch to transfer mode, in which the reserved port (Port_reserved) of the Switch is connected to the second transceiver port of the evaluation device, the second port Port_2 of the Switch is connected to the first transceiver port of the evaluation device, and the first port Port_1 of the Switch is disconnected from the MCU / SOC, and the configuration of the first port Port_1 connected to the MCU / SOC is configured as it is to a port Port_reserved that is not used by the system. The evaluation device is connected to the Switch through Port_reserved, replacing the position of the MCU / SOC to complete the evaluation. In this way, the evaluation device can replace the original MCU / SOC to send the data that needs to be forwarded to the evaluation device to test the communication quality of the Switch, and eliminate the impact of the MCU / SOC communication problem on the Switch evaluation.

[0094] The present invention tests the Switch after the MCU / SOC passes the test. The test port on the Switch is switched so that the command sent by the evaluation device reaches the Switch directly, and the transmission performance of the Switch is tested to avoid the following situation: the Switch has no problem, but the MCU / SOC has a problem, which leads to problems in the data reception and / or data transmission of the Switch, and is mistakenly judged as poor performance of the Switch in transmission.

[0095] Step S104, based on the pre-stored standard communication data generated when the processor does not fail, obtain different types of second data to be forwarded and send them to the Ethernet switch, control the Ethernet switch to forward the second data to be forwarded, obtain forwarding result data, and evaluate the communication quality of the Ethernet switch based on the forwarding result data.

[0096] Specifically, the Ethernet switch extracts the standard communication data generated when at least one processor pre-stored in the Ethernet switch is not faulty, and obtains different types of frame data. Then, different types of second data to be forwarded are obtained according to the different types of frame data, and the second data to be forwarded is sent to the reserved port Port_reserved of the Ethernet switch by using the second transceiver port.

[0097] It should be noted that the evaluation equipment stores standard communication data generated by various MCU / SOCs under normal circumstances, that is, when no various faults occur. In this way, the evaluation equipment can replace the different types of frame data sent by various MCU / SOC processors to the Switch by calling the standard communication data of the corresponding processor, thereby simulating the communication process between the MCU / SOC and the Switch when no fault occurs.

[0098] The related technology uses the host computer to obtain the communication data between the Switch and the MCU / SOC. When a communication failure occurs in the MCU / SOC, it is difficult to ensure the accuracy of the communication data, which will affect the accuracy of the Switch communication quality evaluation; however, if the Switch communication quality is evaluated alone, the related technology only evaluates the function of the Switch itself, and it is difficult to evaluate the interaction quality between the Switch and the MCU / SOC, which will affect the comprehensiveness and completeness of the Switch function evaluation.

[0099] In the embodiment of the present invention, by configuring the Ethernet switch to the forwarding mode, the evaluation device will use the second transceiver port to send various communication data generated when the processor is not faulty to the reserved port of the Ethernet switch, replace the function of the processor, and simulate the communication interaction between the processor and the Ethernet switch. Compared with the solution of evaluating the function of the Ethernet switch alone, the data forwarding function in the interaction process between the Ethernet switch and the processor can be better evaluated, and the functions of the Ethernet switch involving the processor interaction can be evaluated, thereby ensuring the comprehensiveness and integrity of the Ethernet switch function evaluation. In addition, it can ensure that the Ethernet switch forwards the correct second data to be forwarded, thereby eliminating the influence of the processor failure on the data forwarding quality of the Ethernet switch, thereby improving the accuracy of the evaluation result.

[0100] Specifically, the evaluation device can send different types of second data to be forwarded to the Switch instead of the MCU / SOC, so that the Switch forwards it. At the same time, the evaluation device can act as the forwarding object of the Switch and obtain the forwarding result data of the Switch for different types of second data to be forwarded, thereby evaluating the communication quality of the Switch.

[0101] In an embodiment of the present invention, the evaluation device can be directly connected to the external Ethernet port corresponding to the transparent transmission / transfer mode, and effectively evaluate the internal communication functions, performance and stability of the MCU / SOC and Switch, respectively, to obtain high-standard evaluation results, so as to improve the software development quality of the Ethernet domain control unit.

[0102] The communication evaluation method of the vehicle-mounted domain control unit provided in this embodiment uses the evaluation device to configure the Ethernet switch in the transparent transmission mode, so that the processor can send the first data to be forwarded sent to the Ethernet switch to the evaluation device as it is, so that the evaluation device can evaluate the communication quality of the processor; use the evaluation device to configure the Ethernet switch in the transfer mode, disconnect the connection between the processor and the Ethernet switch, so that the evaluation device replaces the original processor to send different types of second data to be forwarded to the Ethernet switch, and evaluate the communication quality of the Ethernet switch based on the forwarding result data obtained. In this way, the interface influence between multiple hardware modules is stripped off during the communication test, and they are disassembled one by one for evaluation, so that the problem modules and communication problems in the domain control unit are located in advance, the development cycle is shortened, and development costs are saved.

[0103] In this embodiment, a communication evaluation method for a vehicle-mounted domain control unit is provided, which can be used for evaluation equipment for vehicle-mounted Ethernet communication evaluation, such as a mobile phone, a computer, etc. Figure 4 is a flow chart of a communication evaluation method of a vehicle-mounted domain control unit according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0104] Step S401, configure the Ethernet switch to a transparent transmission mode, so that the first port of the Ethernet switch is connected to at least one processor, and the second port of the Ethernet switch is connected to the first transceiver port of the evaluation device. Figure 1 The description of step S101 of the illustrated embodiment will not be repeated here.

[0105] Step S402: acquiring first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations, and evaluating the communication quality of the processor based on the first data to be forwarded.

[0106] Specifically, the above step S402 includes:

[0107] Step S4021, based on the first data to be forwarded, obtain the message transmission data of the processor under different communication protocols, the communication status data of the processor under different communication voltages, the first connection status data of the processor before establishing a physical layer connection, and the second connection status data after establishing a physical layer connection.

[0108] Specifically, the evaluation device is used to perform different types of communication configurations on the processor. Under different configurations, the processor will send different first data to be forwarded to the evaluation device. For details about the specific configuration process, acquired data and evaluation process, please refer to the description of steps S4022 to S4024 below, which will not be repeated here.

[0109] Step S4022, performing evaluation based on message transmission data under different communication protocols to obtain a protocol consistency function evaluation result of the processor.

[0110] Specifically, according to the message transmission data, the communication identifiers corresponding to different communication protocols are obtained, and when it is detected that the communication identifier is consistent with the preset communication identifier, it is determined that the protocol consistency function evaluation result of the processor is passed. Among them, the communication protocol includes at least one of the virtual local area network communication protocol, the data link layer communication protocol, the network layer communication protocol, the user datagram protocol and the transmission control protocol, and the communication identifier includes at least one of the target address, the source address, the message header, the target port and the source port;

[0111] In some optional implementations, when using a virtual LAN communication protocol for communication, in order to confirm that the MCU / SOC uses the correct VLAN tags, a testing device is used to put the MCU / SOC in a normal communication state, and the data whose source MAC is the MCU / SOC MAC is checked. If it does not contain undefined VLANs, it is confirmed that the priority and IP address corresponding to each VLAN of the MCU / SOC are correct, and the VLAN tags evaluation of the MCU / SOC passes.

[0112] In some optional implementations, when using a virtual LAN communication protocol for communication, to confirm that the MCU / SOC uses the correct VLAN tags-ping, a testing device is used to put the MCU / SOC in a normal communication state, and ICMP echo is sent to each address of the MCU / SOC one by one to check the data whose source MAC is the MCU / SOC MAC. If each address has a corresponding echo reply and does not contain undefined VLANs, it is confirmed that the MCU / SOC uses the correct VLAN tags-ping and the priority and IP address corresponding to each VLAN are correct, and the VLAN tags-ping test of the MCU / SOC passes.

[0113] In some optional implementations, when using the data link layer communication protocol for communication, in order to confirm that the target MAC address sent by the MCU / SOC meets the requirements, the evaluation equipment is used to put the MCU / SOC in a normal communication state, and then the target MAC addresses of all messages in the bus are checked. If there is no MAC that is not defined for the MCU / SOC (multicast MAC, broadcast MAC, etc. need to be considered), it is confirmed that the target MAC address of the MCU / SOC has passed the evaluation.

[0114] In some optional implementations, when using the data link layer communication protocol for communication, in order to confirm that the source MAC addresses are all the MACs of the MCU / SOC, the evaluation equipment is used to put the MCU / SOC in a normal communication state, and then the source MAC addresses of all messages in the bus are checked. If the source MAC address is the MAC defined by the MCU / SOC (not multicast, broadcast or other MAC), it is confirmed that the source MAC address of the MCU / SOC has passed the evaluation.

[0115] In some optional implementations, when using the network layer communication protocol for communication, in order to confirm that the target IP address sent by the MCU / SOC meets the requirements, the evaluation equipment is used to put the MCU / SOC in a normal communication state, and the target IPs of all messages in the bus are checked. If there are no IPs that are not defined for the MCU / SOC (multicast IP, broadcast IP, etc. need to be considered), it is confirmed that the target IP address of the MCU / SOC has passed the evaluation.

[0116] In some optional implementations, when using the network layer communication protocol for communication, in order to confirm that the source IP address is the IP address of the MCU / SOC, the evaluation equipment is used to put the MCU / SOC in a normal communication state, and all messages in the bus are checked. If the source IP address is the IP of the MCU / SOC (not multicast, broadcast or other IP), it is confirmed that the source IP address of the MCU / SOC has passed the evaluation.

[0117] In some optional embodiments, when using the network layer communication protocol for communication, in order to confirm that the IPv4 TTL (lifetime) setting of the MCU / SOC in the communication network inside the vehicle is correct, the MCU / SOC is put into a normal communication state using an evaluation device, and the IPv4 message sent by the MCU / SOC is detected. If the TTL field in the message header is set to 64, it is confirmed that the IP message header evaluation of the MCU / SOC has passed.

[0118] In some optional embodiments, when using the User Datagram Protocol for communication, in order to confirm that the UDP destination port sent by the MCU / SOC meets the requirements, the MCU / SOC is put into a normal communication state using an evaluation device, and the UDP destination port is checked. If the destination port number is a known port defined to the MCU / SOC, it is confirmed that the UDP destination port evaluation of the MCU / SOC has passed.

[0119] In some optional embodiments, when using the User Datagram Protocol for communication, in order to confirm that the UDP source port sent by the MCU / SOC meets the requirements, the MCU / SOC is put into a normal communication state using an evaluation device, and the UDP source port is checked. If the source port number is a known port defined to the MCU / SOC or is between 49152 and 65535, it is confirmed that the UDP source port evaluation of the MCU / SOC has passed.

[0120] In some optional embodiments, when using the transmission control protocol for communication, in order to confirm that the TCP target port sent by the MCU / SOC meets the requirements, the MCU / SOC is put into a normal communication state using an evaluation device, and the TCP target port is checked. If the target port number is a known port defined to the MCU / SOC, it is confirmed that the TCP target port evaluation of the MCU / SOC has passed.

[0121] In some optional embodiments, when using the transmission control protocol for communication, in order to confirm that the TCP source port sent by the MCU / SOC meets the requirements, the MCU / SOC is put into a normal communication state using an evaluation device, and the TCP source port is checked. If the port number is a known port defined to the MCU / SOC or is between 49152 and 65535, it is confirmed that the TCP source port evaluation of the MCU / SOC has passed.

[0122] The present invention utilizes the evaluation equipment to control the processor to communicate through different types of communication protocols, and detects the communication identifiers in the corresponding message transmission data. If the communication identifiers such as the target address, source address, message header, target port and source port are consistent with the preset communication identifiers defined by the processor, it is confirmed that the protocol consistency function evaluation of the processor has passed, thereby eliminating the influence of communication problems in the Ethernet switch, and evaluating the protocol consistency of the basic communication protocol of the processor separately.

[0123] Step S4023: Perform evaluation based on the communication status data and / or the first connection status data under different communication voltages to obtain a performance evaluation result of the processor.

[0124] Specifically, according to the communication status data under different communication voltages, the communication voltage range corresponding to the processor, the communication maintenance time from the communication stable state to the communication stop state, the communication recovery time and the communication recovery voltage from the communication stop state to the communication stable state are determined to obtain the communication voltage evaluation result. And / or, according to the first connection state data, the startup time of establishing a physical layer connection after the processor enters the power-on / wake-up state from the power-off / sleep state is obtained, and the physical layer connection startup evaluation result of the processor is determined based on the size relationship between the startup time and the preset startup time. Finally, according to the communication voltage evaluation result and / or the physical layer connection startup evaluation result, the performance evaluation result of the processor is obtained.

[0125] In some optional embodiments, when evaluating the MCU / SOC communication voltage range, first use the evaluation equipment to set the MCU / SOC power supply voltage to 12±0.2V, and wait for 5s until the bus communication is stable after waking up the MCU / SOC locally. Then, with a step size of 0.1V, continuously reduce the power supply voltage from 7.0V until the communication stops or 6.0V, monitor the MCU / SOC communication state, and obtain the communication maintenance time for the MCU / SOC to enter the communication stop state from the communication stable state. Again with a step size of 0.1V, continue to increase the power supply voltage until 7.5V or communication is restored, monitor the communication state of the MCU / SOC, and obtain the communication recovery time and communication recovery voltage for the MCU / SOC to enter the communication stable state from the communication stop state. By repeating the above steps, the voltage is increased from 17.5V to 18.5V, and then reduced to 17V. Finally, it is found that communication can be restored when the voltage is restored to 6.9V and above, thereby obtaining the communication voltage range of the MCU / SOC.

[0126] In some optional implementations, the initialization time of the physical layer connection (PHY Link) is evaluated to evaluate whether the Link up state can be established within the expected time after the MCU / SOC is powered on. The evaluation equipment is used to disconnect the power supply of the MCU / SOC, and then the MCU / SOC is controlled to power on (and a local wake-up event is triggered at the same time), and the start-up time of the Link up is checked. If the MCU / SOC establishes the Link up within the preset start-up time, it is confirmed that the PHY Link initialization evaluation has passed.

[0127] In some optional implementations, the PHY Link startup is evaluated to evaluate whether the MCU / SOC can establish a Link up state within the expected time after entering the wake-up state. The evaluation equipment is used to put the MCU / SOC into a dormant state, and then a wake-up event is triggered to check the start-up time of the Link up. If the MCU / SOC establishes a Link up within the preset start-up time, it is confirmed that the PHYLink startup evaluation has passed.

[0128] The present invention uses an evaluation device to control the processor to communicate under different communication voltages, so as to evaluate the communication voltage of the processor, which is conducive to discovering communication voltage problems in advance. The evaluation device is used to control the processor to enter the power-on / wake-up state from the power-off / sleep state, and to detect the startup time of establishing a physical layer connection. According to the evaluation results, guidance is provided for the development process to ensure that the processor can establish a physical layer connection within the specified time.

[0129] Step S4024: Perform an evaluation based on the second connection status data to obtain a stability evaluation result of the processor.

[0130] Specifically, according to the second connection state data, the secondary connection data when the processor re-establishes the physical layer connection after entering the power-on / connection-on / wake-up state from the power-off / connection-off / sleep state is obtained. Then, according to the secondary connection data, it is respectively determined whether the physical layer connection of the processor is re-established and whether the processor receives the reply message returned by the Ethernet switch. When it is detected that the physical layer connection of the processor is re-established and the processor receives the reply message returned by the Ethernet switch, it is determined that the stability evaluation result of the processor is passed. It should be noted that the reply message of the Ethernet switch is generated by the Ethernet switch based on the request message sent by the processor.

[0131] In some optional implementations, the stability of the PHY Link is evaluated to evaluate whether the MCU / SOC can maintain stability after establishing the Linkup state. The evaluation equipment is used to disconnect the power supply of the MCU / SOC, and then the MCU / SOC is controlled to power on (and a local wake-up event is triggered at the same time), and the MCU / SOC is waited for to establish the Linkup. A check is continuously made for 20 seconds to see if a Linkup state jump occurs. If the MCU / SOC establishes the Linkup and the MCU / SOC maintains the Linkup state, the PHY Link stability evaluation is passed.

[0132] In some optional implementations, the unexpected interruption of PHY Link is evaluated to evaluate whether the MCU / SOC can maintain stability after establishing the Link up state. The evaluation equipment is used to control the MCU / SOC to power on, so that the MCU / SOC can communicate normally. After its communication is stable, the Link Partner enters Link down (connection closed), and after waiting for about 5 seconds, the Link Partner is restored (connection opened). After waiting for Link up, the monitoring continues for 20 seconds. If the MCU / SOC maintains the Link up state and does not go down, the unexpected interruption of PHY Link is evaluated.

[0133] In some optional implementations, the PHY Link sleep wakeup is evaluated to evaluate whether the MCU / SOC can maintain stability after establishing the Linkup state. The evaluation equipment is used to put the MCU / SOC into sleep state, and then a wakeup event is triggered. If the MCU / SOC enters the link up state, the PHY Link wakeup evaluation is passed; after waiting for the Link up, continue to monitor for 20 seconds, and then meet the sleep conditions of the MCU / SOC. If the MCU / SOC enters the link down state, the PHY Link sleep evaluation is passed.

[0134] In some optional implementations, the PHY Link sleep communication startup is evaluated to evaluate the time it takes for the MCU / SOC to establish a physical layer connection to send and receive valid data. The evaluation equipment is used to put the MCU / SOC into sleep mode, and then the Switch of the domain control unit is awakened, so that the Switch of the domain control unit enters Link up, and ICMPPING messages are continuously sent to the Switch, waiting for the Switch to reply to ICMP PING. If the Switch replies to ICMP Reply within a period of time after Link up, it is confirmed that the PHY Link sleep communication startup evaluation has passed.

[0135] In some optional implementations, the PHY Link power-on communication startup is evaluated, and the time from when the MCU / SOC establishes the Link to when effective data can be sent and received is evaluated. The MCU / SOC is powered off using the evaluation equipment, and then it is controlled to power on and wake up the Switch at the same time, so that the Switch enters Link up, and ICMP PING messages are continuously sent to the Switch, waiting for the Switch to reply to the ICMP PING. If the Switch replies to the ICMP Reply within a period of time after Link up, it is confirmed that the PHYLink power-on communication startup evaluation has passed.

[0136] After the processor establishes a physical layer connection, the present invention uses an evaluation device to control the processor to re-enter a power-on / connection-on / wake-up state from a power-off / connection-closed / sleep state, and obtains secondary connection data when the processor re-establishes the connection to determine whether the processor can re-establish the physical layer connection and whether communication with the Ethernet switch can be restored, thereby evaluating the stability of the processor, making it easy to discover processor problems in advance according to the evaluation results for debugging, thereby improving development efficiency.

[0137] In an embodiment of the present invention, the communication protocol, communication voltage and physical layer connection of the processor are configured using an evaluation device, so as to perform a protocol consistency evaluation on the processor according to message transmission data under different communication protocols, perform a performance evaluation on the processor according to communication status data under different communication voltages and / or the first connection status data of the processor before establishing a physical layer connection, and perform a stability evaluation based on the second connection status data of the processor after establishing a physical layer connection, thereby timely discovering communication problems in the function, performance and documentation of the processor, guiding relevant personnel to perform debugging, and shortening the development cycle.

[0138] Step S403, configure the Ethernet switch to transfer mode, so that the reserved port of the Ethernet switch is connected to the second transceiver port of the evaluation device, and maintain the connection state between the second port and the first transceiver port. Figure 1 The description of step S103 of the illustrated embodiment will not be repeated here.

[0139] Step S404: Control the Ethernet switch to forward different types of second data to be forwarded, obtain forwarding result data, and evaluate the communication quality of the Ethernet switch based on the forwarding result data.

[0140] Specifically, the above step S404 includes:

[0141] Step S4041, based on the forwarding result data, obtain the forwarding status of the Ethernet switch for different types of frame data, the forwarding delay time of the Ethernet switch to forward the frame data to the evaluation device, the forwarding frame loss status of the Ethernet switch under different load states and / or the forwarding status data under different power supply voltages.

[0142] Specifically, the evaluation device is used to replace the function of the original processor, send different types of second data to be forwarded to the Switch, and obtain the forwarding result data of the corresponding data by the Switch. For details about the specific data sent by the evaluation device and the evaluation process, please refer to the description of steps S4042 to S4044, which will not be repeated here.

[0143] Step S4042: Perform evaluation based on the forwarding conditions of different types of frame data to obtain a function evaluation result of the Ethernet switch.

[0144] Specifically, according to the forwarding conditions of different types of frame data, it is judged whether the Ethernet switch can forward the first type of frame data and the second type of frame data. When it is detected that the Ethernet switch can forward the first type of frame data and cannot forward the second type of frame data, it is determined that the function evaluation result of the Ethernet switch is passed. The first type of frame data includes at least one of a labeled message frame and an addressed message frame, and the second type of frame data includes at least one of an unlabeled message frame, an error message frame, and an unaddressed message frame.

[0145] Exemplarily, the first type of frame data may include VLAN_single-tagged, normal frame data, frames with a unique source MAC address and a single tag, and the second type of frame data may include VLAN_untagged frames, FCS error frame data, frames with a unique source MAC address and no tag, frames with an unknown destination MAC address, etc., but the present invention is not limited to this.

[0146] In some optional implementations, a forwarding test is performed on VLAN_untagged data to test whether the internal port can forward the VLAN_untagged frame. The test device is used to send VLAN_untagged frames to the internal port of the Switch to detect the forwarding status. If the internal port of the domain control unit Switch cannot forward the VLAN_untagged frame, the test passes.

[0147] In some optional implementations, a forwarding test is performed on VLAN_single-tagged data to test whether the internal port can forward the VLAN_single-tagged frame. The test device is used to send the VLAN_single-tagged frame to the internal port of the Switch to detect the forwarding status. If the internal port of the Switch can forward the VLAN_single-tagged frame, the test passes.

[0148] In some optional implementations, a forwarding test is performed on the stored frame data to test the storage and forwarding working mode of the internal port. A test device is used to send frames that can be forwarded normally to the internal port of the Switch to test the forwarding status, and then frames that can be forwarded normally are sent again but with an FCS error to test the forwarding status. If no frame with an FCS error is received at any port, the test passes.

[0149] In some optional implementations, the time for the internal port to forward the first frame message - power initialization is evaluated, and the time for the internal port power initialization to forward the first frame message is evaluated. After the evaluation device is used to control the Switch power initialization, the time when the internal port starts forwarding the message is detected (the time for each internal port to send to all other ports and all other ports to each internal port is traversed, and the maximum and minimum values ​​are recorded). If the Switch forwards according to actual needs, the evaluation passes.

[0150] In some optional implementations, the time for the internal port to forward the first frame message - KL15 wake-up is evaluated, and the time for the internal port KL15 to wake up and forward the first frame message is evaluated. Use the evaluation equipment to control the Switch to power on, wait for the Switch to enter sleep, then power on KL15 to wake up the internal port, and detect the time when it starts forwarding messages (traverse the time for each internal port to send to all other ports and all other ports to each internal port, measure 10 times, and record the maximum and minimum values). If the Switch forwards according to actual needs, the evaluation passes.

[0151] In some optional implementations, the time for the internal port to forward the first frame message - NM wake-up is evaluated, and the time for the internal port NM to wake up and forward the first frame message is evaluated. Use the evaluation equipment to control the power-on, wait for the Switch to enter sleep and then wake up the NM message, and detect the time when the internal port starts forwarding messages (traverse the time for each internal port to send to all other ports and all other ports to each internal port, measure 10 times, and record the maximum and minimum values). If the Switch forwards according to actual needs, the evaluation passes.

[0152] In some optional implementations, the maximum frame length-single-tagged is evaluated to evaluate the maximum frame length of the single-tagged frame forwarded by the internal port. The maximum length of the single-tagged frame forwarded by the internal port of the Switch is obtained by using an evaluation device. If the Switch forwards according to actual requirements, the evaluation passes.

[0153] In some optional implementations, untagged address learning is evaluated to evaluate whether the internal port can learn untagged frames with unique source MAC addresses. Untagged frames with unique source MAC addresses are sent to the internal port to verify the address learning. If the Switch does not learn and discards the frames, the evaluation is passed.

[0154] In some optional implementations, single-label address learning is evaluated to evaluate whether the internal port can learn single-label frames. A single-label frame with a unique source MAC address is sent to the internal port to verify the address learning. If the Switch can learn, the evaluation passes.

[0155] In some optional implementations, the address learning aging is evaluated, the internal port address aging time is evaluated, a message carrying an unlearned source MAC address is sent to the internal port, and the aging time of the internal port is verified. If the result is that the aging time is according to the actual required time, the evaluation passes.

[0156] In some optional implementations, the message processing of unknown destination MAC addresses is evaluated, the processing of unknown destination MAC address frames by internal ports is evaluated, frames with unknown destination MAC addresses are sent to the internal ports, and the forwarding status is verified. If the Switch discards the message, the evaluation passes.

[0157] In some optional implementations, the static learning address is evaluated to evaluate whether the internal port forwards the message according to the configured static learning address, and the message is sent according to the static address configured for the internal port to detect the forwarding status of the message. If the Switch forwards according to the configured static learning address, the evaluation passes.

[0158] The present invention utilizes an evaluation device to send different types of frame data to an Ethernet switch to determine whether the Ethernet switch can forward the corresponding frame data according to the setting, thereby detecting the forwarding function of the Ethernet switch. The influence of the processor is eliminated during the detection, thereby improving the detection accuracy, facilitating the positioning of communication problems of the Ethernet switch, and timely debugging, thereby improving development efficiency.

[0159] Step S4043: Perform evaluation based on the forwarding delay time to obtain a performance evaluation result of the Ethernet switch.

[0160] Specifically, it is determined whether the forwarding delay time is less than the preset forwarding delay time. If the forwarding delay time is less than the preset forwarding delay time, it is determined that the performance evaluation result of the Ethernet switch is passed.

[0161] In some optional implementations, the forwarding delay time is evaluated, and the forwarding delay time of the internal port is evaluated. The evaluation device is used to send a frame that can be forwarded to the internal port to verify the time from the internal port of the Switch receiving the last bit of the frame to the other ports receiving the first bit of the frame (traversing from each internal port to all other ports and from all other ports to each internal port). If the forwarding delay meets the requirements, the evaluation passes.

[0162] The present invention evaluates the forwarding delay time when the Ethernet switch forwards frame data, eliminates the influence of the processor, locates the data forwarding problem of the Ethernet switch in advance, facilitates timely debugging, and ensures that the Ethernet switch can send the frame data to other ports within a specified time.

[0163] Step S4044: Perform evaluation based on the forwarding frame loss situation and / or the forwarding state data to obtain a stability evaluation result of the Ethernet switch.

[0164] Specifically, according to the forwarding frame loss situation, the forwarding frame loss rate of the Ethernet switch under the preset maximum load state is obtained, and based on the relationship between the forwarding frame loss rate and the preset forwarding frame loss rate, the forwarding frame loss evaluation result of the Ethernet switch is determined. And / or, according to the forwarding state data, the power supply voltage range when the Ethernet switch forwards the frame data is determined to obtain the power supply voltage evaluation result. Finally, according to the forwarding frame loss evaluation result and the power supply voltage evaluation result, the stability evaluation result of the Ethernet switch is obtained.

[0165] In some optional implementations, the Ethernet switch under full load is evaluated to evaluate whether the internal port can work without frame loss under full load. Frames that can be forwarded are sent to the internal port to make its load reach 100%, and the forwarding situation is verified. If there is no frame loss when the load reaches 100%, the evaluation passes.

[0166] In some optional implementations, the power supply voltage range when forwarding data is evaluated, and the forwarding voltage range of the Switch of the internal port is evaluated. The Switch is controlled to power on, and after the communication of the Switch is stable, all ports continue to send messages that can be forwarded to other ports, and the power supply voltage is gradually reduced until a certain port of the Switch stops forwarding, and the voltage value when forwarding stops is recorded; normal power supply is restored, and after the communication of the Switch is stable, all ports continue to send messages that can be forwarded to other ports, and the power supply voltage is gradually increased until a certain port of the domain control unit Switch stops forwarding, and the voltage value when forwarding stops is recorded. Based on the above two voltage values, the power supply voltage range when the Switch can normally forward frame data is obtained.

[0167] The present invention facilitates locating stability problems of the Ethernet switch by evaluating the forwarding frame loss rate of the Ethernet switch under a preset maximum load state and the power supply voltage range when frame data can be forwarded, thereby timely debugging, shortening the development cycle, and improving development efficiency.

[0168] In an embodiment of the present invention, an evaluation device is used to send different types of data to an Ethernet switch, and a functional evaluation is performed on the Ethernet switch based on the forwarding conditions of different types of frame data. A performance evaluation is performed on the Ethernet switch based on the forwarding delay time when the Ethernet switch forwards the frame data to the evaluation device. A stability evaluation is performed on the Ethernet switch based on the forwarding frame loss conditions under different load states and / or the forwarding status data under different power supply voltages, thereby timely discovering communication problems of the Ethernet switch in terms of function, performance and documentation, guiding relevant personnel to perform debugging, and shortening the development cycle.

[0169] The communication evaluation method of the vehicle-mounted domain control unit according to an embodiment of the present invention is described in detail below with reference to a specific application example.

[0170] See again Figure 2 In order to evaluate the MCU / SOC hidden behind the Switch, the data sent by the MCU / SOC to the Switch routing forwarding needs to be sent out from the Switch external port intact, in order to directly evaluate the communication quality of the MCU / SOC. Figure 5 As shown, it mainly includes the following steps:

[0171] Step S501, according to the evaluation requirements, the communication quality of the MCU / SOC Ethernet hidden behind the Switch is evaluated, and the Switch needs to be skipped to achieve the requirement of directly evaluating the communication capability of the MCU / SOC.

[0172] Step S502, configure the Switch to transparent transmission mode, that is, transparent transmission from Port_1 to Port_2, so that the evaluation equipment can be directly connected to the Port of the MCU / SOC to evaluate the function, performance and stability of its Ethernet communication.

[0173] Step S503, testing is performed according to the evaluation scenario of the designed invention to obtain the evaluation result.

[0174] Specifically, the protocol consistency function evaluation includes: target MAC address, source MAC address, target IP address, source IP address, IP header, UDP target port, UDP source port, TCP target port, TCP source port and other evaluations.

[0175] Specifically, the performance evaluation includes: communication voltage range, communication recovery time and communication recovery voltage from abnormal voltage to normal voltage, communication maintenance time from normal voltage to abnormal voltage, PHY Link initialization time, PHY Link startup and other evaluations.

[0176] Specifically, the stability evaluation includes: PHY Link stability, PHY Link unexpected interruption, PHY Link sleep wake-up, PHY Link sleep communication startup, PHY Link power-on communication startup and other evaluations.

[0177] See again Figure 3 To evaluate the Switch, the internal port connected to the MCU / SOC is configured as is to reserve a port that is not used by the system, in order to directly evaluate the internal communication quality between the Switch and the MCU / SOC. Figure 6 As shown, it mainly includes the following steps:

[0178] Step S601, according to the evaluation requirements, the communication quality of the Switch is evaluated, and the internal port data connected to the MCU / SOC needs to be simulated to achieve the requirement of directly evaluating the communication capability of the Switch.

[0179] Step S602, configure the Switch to transfer mode, that is, transfer Port_1 to Port_reserved, so that the evaluation device replaces the internal MCU / SOC to communicate with the Switch, and evaluates the function, performance and stability of the Switch Ethernet communication.

[0180] Step S603, testing is performed according to the evaluation scenario of the designed invention to obtain the evaluation result.

[0181] Specifically, for VLAN_untagged forwarding, the internal port of the control unit cannot forward VLAN_untagged frames; for VLAN_single-tagged forwarding, the internal port of the control unit can forward VLAN_single-tagged frames.

[0182] Specifically, a frame that can be forwarded normally is sent from an internal port of the control unit to detect the forwarding situation, and then a frame that can be forwarded normally is sent again but with an FCS error, and the forwarding situation is detected, and no frame with an FCS error can be received at any port.

[0183] Specifically, for the time of forwarding the first frame message of the internal port - power initialization, it is evaluated according to actual needs; for the time of forwarding the first frame message of the internal port - KL15 wake-up, it is evaluated according to actual needs; for the time of forwarding the first frame message of the internal port - NM wake-up, it is evaluated according to actual needs; for the maximum length of forwarding single-tagged frames by the internal port of the unit, it is evaluated according to actual needs.

[0184] Specifically, a frame with a unique source MAC address and no label is sent to the internal port to verify the address learning status. If it cannot be learned, it is discarded. A frame with a unique source MAC address and a single label is sent to the internal port to verify the address learning status. If it can be learned, it is discarded.

[0185] Specifically, send messages with unlearned source MAC addresses to the internal port to verify the aging time of the internal port and evaluate according to actual needs; send frames with unknown destination MAC addresses to the internal port to verify the forwarding status and discard them; send messages according to the static address configured on the internal port to detect the forwarding status of the messages and forward them according to the configured static learned address.

[0186] Specifically, send a frame that can be forwarded to the internal port, verify the time from the last bit of the frame received at the internal port to the first bit of the frame received at other ports (traverse each internal port to all other ports and all other ports to each internal port), and evaluate according to actual needs.

[0187] Specifically, frames that can be forwarded are sent to the internal port to make its load reach 100%, and the forwarding situation is verified. No frames are lost when the load reaches 100%.

[0188] Specifically, the domain control unit is powered on, and after the communication of the domain control unit is stable, messages that can be forwarded to other ports are continuously sent from all ports, and the power supply voltage is gradually reduced until a port of the domain control unit stops forwarding, and the voltage value when forwarding stops is recorded; normal power supply is restored, and after the communication of the domain control unit is stable, messages that can be forwarded to other ports are continuously sent from all ports, and the power supply voltage is gradually increased until a port of the domain control unit stops forwarding, and the voltage value when forwarding stops is recorded, and normal forwarding can be achieved within the maximum working voltage range.

[0189] The present invention changes the internal switch configuration of the Ethernet domain control unit to remove the interface influence between multiple hardware modules, disassemble and evaluate them one by one, use black box testing methods to find white box problems, move the test forward, and find communication problems that are difficult to locate later in advance, which can shorten the development cycle and save development costs. In particular, it has a positive effect on the internal communication quality evaluation of the domain control unit in extreme performance working scenarios, and is effective in practical application.

[0190] In this embodiment, a communication evaluation device for a vehicle-mounted domain control unit is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0191] This embodiment provides a communication evaluation device for a vehicle-mounted domain control unit, such as Figure 7 As shown, including:

[0192] The first control module 701 is used to configure the Ethernet switch to a transparent transmission mode, so that the first port of the Ethernet switch is connected to at least one processor, and the second port of the Ethernet switch is connected to the first transceiver port of the evaluation device;

[0193] A first processing module 702 is used to obtain first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations, and evaluate the communication quality of the processor based on the first data to be forwarded;

[0194] The second control module 703 is used to configure the Ethernet switch to a transfer mode so that the reserved port of the Ethernet switch is connected to the second transceiver port of the evaluation device and maintain the connection state between the second port and the first transceiver port;

[0195] The second processing module 704 obtains different types of second data to be forwarded based on the pre-stored standard communication data generated when the processor does not fail, and sends the data to the Ethernet switch, controls the Ethernet switch to forward the second data to be forwarded, obtains forwarding result data, and evaluates the communication quality of the Ethernet switch based on the forwarding result data.

[0196] In some optional implementations, the first processing module 702 is further configured to:

[0197] Read the first transceiver port to obtain transparent transmission data corresponding to the second port; wherein the transparent transmission data is obtained after the Ethernet switch transparently transmits the received data of the first port to the second port;

[0198] According to the transparent transmission data corresponding to the second port, first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations are obtained.

[0199] In some optional implementations, the first processing module 702 is further configured to:

[0200] According to the first data to be forwarded, obtaining message transmission data of the processor under different communication protocols, communication status data of the processor under different communication voltages, first connection status data of the processor before establishing a physical layer connection, and second connection status data of the processor after establishing the physical layer connection;

[0201] The evaluation is performed based on the message transmission data under different communication protocols to obtain the protocol consistency function evaluation results of the processor;

[0202] Performing evaluation based on the communication state data and / or the first connection state data under different communication voltages to obtain a performance evaluation result of the processor;

[0203] An evaluation is performed based on the second connection state data to obtain a stability evaluation result of the processor.

[0204] In some optional implementations, the first processing module 702 is further configured to:

[0205] According to the message transmission data, communication identifiers corresponding to different communication protocols are obtained; wherein the communication protocol includes at least one of a virtual local area network communication protocol, a data link layer communication protocol, a network layer communication protocol, a user datagram protocol, and a transmission control protocol, and the communication identifier includes at least one of a target address, a source address, a message header, a target port, and a source port;

[0206] When it is detected that the communication identifier is consistent with the preset communication identifier, it is determined that the protocol consistency function evaluation result of the processor is passed.

[0207] In some optional implementations, the first processing module 702 is further configured to:

[0208] According to the communication status data under different communication voltages, the communication voltage range corresponding to the processor, the communication maintenance time from the communication stable state to the communication stop state, the communication recovery time and the communication recovery voltage from the communication stop state to the communication stable state are determined to obtain the communication voltage evaluation result;

[0209] And / or, according to the first connection state data, obtaining the startup time of establishing a physical layer connection after the processor enters the power-on / wake-up state from the power-off / sleep state, and determining the physical layer connection startup evaluation result of the processor based on the relationship between the startup time and the preset startup time;

[0210] The performance evaluation result of the processor is obtained according to the communication voltage evaluation result and / or the physical layer connection startup evaluation result.

[0211] In some optional implementations, the first processing module 702 is further configured to:

[0212] According to the second connection state data, secondary connection data is obtained when the processor re-establishes a physical layer connection after entering a power-on / connection-on / wake-up state from a power-off / connection-off / sleep state;

[0213] According to the secondary connection data, it is determined whether the physical layer connection of the processor is reestablished and whether the processor receives a reply message returned by the Ethernet switch; wherein the reply message is generated by the Ethernet switch based on the request message sent by the processor;

[0214] When it is detected that the physical layer connection of the processor is re-established and the processor receives a reply message returned by the Ethernet switch, it is determined that the stability evaluation result of the processor is passed.

[0215] In some optional implementations, the second processing module 704 is further configured to:

[0216] Extracting standard communication data generated when at least one processor pre-stored in the processor does not fail, to obtain different types of frame data;

[0217] Different types of second data to be forwarded are obtained according to different types of frame data, and the second data to be forwarded is sent to a reserved port of the Ethernet switch by using the second transceiver port.

[0218] In some optional implementations, the second processing module 704 is further configured to:

[0219] According to the forwarding result data, the forwarding status of the Ethernet switch for different types of frame data, the forwarding delay time of the Ethernet switch forwarding the frame data to the evaluation device, the forwarding frame loss status of the Ethernet switch under different load states and / or the forwarding status data under different power supply voltages are obtained;

[0220] Based on the forwarding situation of different types of frame data, the functional evaluation results of the Ethernet switch are obtained;

[0221] Based on the forwarding delay time, the performance evaluation results of the Ethernet switch are obtained;

[0222] The stability evaluation result of the Ethernet switch is obtained by performing evaluation based on the forwarding frame loss situation and / or forwarding status data.

[0223] In some optional implementations, the second processing module 704 is further configured to:

[0224] According to the forwarding conditions of different types of frame data, it is judged whether the Ethernet switch can forward the first type of frame data and the second type of frame data; wherein the first type of frame data includes at least one of a labeled message frame and an addressed message frame, and the second type of frame data includes at least one of an unlabeled message frame, an error message frame, and an unaddressed message frame;

[0225] When it is detected that the Ethernet switch can forward the first type of frame data but cannot forward the second type of frame data, it is determined that the function evaluation result of the Ethernet switch is passed.

[0226] In some optional implementations, the second processing module 704 is further configured to:

[0227] Determine whether the forwarding delay time is less than a preset forwarding delay time;

[0228] If the forwarding delay time is less than the preset forwarding delay time, it is determined that the performance evaluation result of the Ethernet switch is passed.

[0229] In some optional implementations, the second processing module 704 is further configured to:

[0230] According to the forwarding frame loss situation, the forwarding frame loss rate of the Ethernet switch under the preset maximum load state is obtained, and based on the relationship between the forwarding frame loss rate and the preset forwarding frame loss rate, the forwarding frame loss evaluation result of the Ethernet switch is determined;

[0231] and / or, determining a power supply voltage range when the Ethernet switch forwards frame data based on the forwarding state data, and obtaining a power supply voltage evaluation result;

[0232] According to the forwarding frame loss evaluation results and the power supply voltage evaluation results, the stability evaluation results of the Ethernet switch are obtained.

[0233] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0234] The communication evaluation device of the vehicle-mounted domain control unit in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.

[0235] The embodiment of the present invention also provides an evaluation device having the above Figure 7 The communication evaluation device of the vehicle-mounted domain control unit is shown.

[0236] See also Figure 8 , Figure 8 is a schematic diagram of the structure of an evaluation device provided by an optional embodiment of the present invention, such as Figure 8 As shown, the evaluation device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the evaluation device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 10 is taken as an example.

[0237] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0238] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0239] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of the evaluation device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the evaluation device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0240] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0241] The evaluation device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0242] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the evaluation device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0243] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0244] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0245] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A communication evaluation method for a vehicle-mounted domain control unit, characterized in that: The vehicle-mounted domain control unit includes an Ethernet switch and at least one processor. The method is applied to the evaluation device, and the method includes: The Ethernet switch is configured to be in a transparent transmission mode, so that a first port of the Ethernet switch is connected to at least one processor, and a second port of the Ethernet switch is connected to a first transceiver port of the evaluation device; Acquire first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations, and evaluate the communication quality of the processor based on the first data to be forwarded; The Ethernet switch is configured to a transfer mode so that the reserved port of the Ethernet switch is connected to the second transceiver port of the evaluation device, and the connection state of the second port and the first transceiver port is maintained; Based on pre-stored standard communication data generated when the processor does not fail, different types of second data to be forwarded are obtained and sent to the Ethernet switch, the Ethernet switch is controlled to forward the second data to be forwarded, forwarding result data is obtained, and the communication quality of the Ethernet switch is evaluated based on the forwarding result data.

2. The method according to claim 1, characterized in that: The method of obtaining different types of second data to be forwarded based on the pre-stored standard communication data generated when the processor does not fail and sending the second data to be forwarded to the Ethernet switch includes: Extracting the standard communication data generated when at least one of the processors is not faulty and stored in the processor to obtain different types of frame data; Different types of second data to be forwarded are obtained according to the different types of frame data, and the second data to be forwarded are sent to a reserved port of the Ethernet switch by using the second transceiver port.

3. The method according to claim 2, characterized in that The obtaining of first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations includes: Read the first transceiver port to obtain transparent transmission data corresponding to the second port; wherein the transparent transmission data is obtained after the Ethernet switch transparently transmits the received data of the first port to the second port; According to the transparent transmission data corresponding to the second port, first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations are obtained.

4. The method according to any one of claims 1 to 3, characterized in that The evaluating the communication quality of the processor based on the first data to be forwarded includes: According to the first data to be forwarded, obtaining message transmission data of the processor under different communication protocols, communication status data of the processor under different communication voltages, first connection status data of the processor before establishing a physical layer connection, and second connection status data of the processor after establishing the physical layer connection; Performing evaluation based on message transmission data under different communication protocols to obtain protocol consistency function evaluation results of the processor; Performing evaluation based on communication state data and / or first connection state data under different communication voltages to obtain a performance evaluation result of the processor; An evaluation is performed based on the second connection status data to obtain a stability evaluation result of the processor.

5. The method according to claim 4, characterized in that The evaluating based on the communication state data and / or the first connection state data under different communication voltages to obtain the performance evaluation result of the processor includes: According to the communication state data under different communication voltages, determine the communication voltage range corresponding to the processor, the communication maintenance time from the communication stable state to the communication stop state, the communication recovery time and the communication recovery voltage from the communication stop state to the communication stable state, and obtain the communication voltage evaluation result; And / or, according to the first connection state data, obtaining the startup time of establishing a physical layer connection after the processor enters the power-on / wake-up state from the power-off / sleep state, and determining the physical layer connection startup evaluation result of the processor based on the relationship between the startup time and the preset startup time; The performance evaluation result of the processor is obtained according to the communication voltage evaluation result and / or the physical layer connection startup evaluation result.

6. The method according to claim 5, characterized in that The performing evaluation based on the second connection state data to obtain a stability evaluation result of the processor includes: According to the second connection state data, obtaining secondary connection data when the processor re-establishes a physical layer connection after entering a power-on / connection-on / wake-up state from a power-off / connection-off / sleep state; According to the secondary connection data, determining whether the physical layer connection of the processor is re-established and whether the processor receives a reply message returned by the Ethernet switch; wherein the reply message is generated by the Ethernet switch based on the request message sent by the processor; When it is detected that the physical layer connection of the processor is re-established and the processor receives a reply message returned by the Ethernet switch, it is determined that the stability evaluation result of the processor is passed.

7. The method according to claim 6, characterized in that The evaluation is performed based on the message transmission data under different communication protocols to obtain the protocol consistency function evaluation result of the processor, including: According to the message transmission data, communication identifiers corresponding to different communication protocols are obtained; wherein the communication protocol includes at least one of a virtual local area network communication protocol, a data link layer communication protocol, a network layer communication protocol, a user datagram protocol, and a transmission control protocol, and the communication identifier includes at least one of a target address, a source address, a message header, a target port, and a source port; When it is detected that the communication identifier is consistent with the preset communication identifier, it is determined that the protocol consistency function evaluation result of the processor is passed.

8. The method according to any one of claims 1 to 3, characterized in that The evaluating the communication quality of the Ethernet switch based on the forwarding result data includes: According to the forwarding result data, the forwarding status of the Ethernet switch for different types of frame data, the forwarding delay time of the Ethernet switch forwarding the frame data to the evaluation device, the forwarding frame loss status of the Ethernet switch under different load states and / or the forwarding status data under different power supply voltages are obtained; Perform evaluation based on the forwarding conditions of different types of frame data to obtain a functional evaluation result of the Ethernet switch; Performing evaluation based on the forwarding delay time to obtain a performance evaluation result of the Ethernet switch; The evaluation is performed based on the forwarding frame loss situation and / or the forwarding state data to obtain the stability evaluation result of the Ethernet switch.

9. The method according to claim 8, characterized in that The evaluation is performed based on the forwarding conditions of different types of frame data to obtain the functional evaluation result of the Ethernet switch, including: According to the forwarding conditions of different types of frame data, it is judged whether the Ethernet switch can forward the first type of frame data and the second type of frame data; wherein the first type of frame data includes at least one of a labeled message frame and an addressed message frame, and the second type of frame data includes at least one of an unlabeled message frame, an error message frame, and an unaddressed message frame; When it is detected that the Ethernet switch can forward the first type of frame data but cannot forward the second type of frame data, it is determined that the function evaluation result of the Ethernet switch is passed.

10. The method according to claim 9, characterized in that The evaluation based on the forwarding delay time is performed to obtain the performance evaluation result of the Ethernet switch, including: Determining whether the forwarding delay time is less than a preset forwarding delay time; If the forwarding delay time is less than the preset forwarding delay time, it is determined that the performance evaluation result of the Ethernet switch is passed.

11. The method according to claim 10, characterized in that The evaluation based on the forwarding frame loss situation and / or the forwarding state data is performed to obtain the stability evaluation result of the Ethernet switch, including: According to the forwarding frame loss situation, a forwarding frame loss rate of the Ethernet switch under a preset maximum load state is obtained, and based on a magnitude relationship between the forwarding frame loss rate and a preset forwarding frame loss rate, a forwarding frame loss evaluation result of the Ethernet switch is determined; and / or, determining a power supply voltage range when the Ethernet switch forwards frame data according to the forwarding state data, and obtaining a power supply voltage evaluation result; The stability evaluation result of the Ethernet switch is obtained according to the forwarding frame loss evaluation result and the power supply voltage evaluation result.

12. A communication evaluation device for a vehicle-mounted domain control unit, characterized in that: The vehicle-mounted domain control unit includes an Ethernet switch and at least one processor. The device is applied to the evaluation equipment, and the device includes: A first control module, configured to configure the Ethernet switch to a transparent transmission mode, so that a first port of the Ethernet switch is connected to at least one processor, and a second port of the Ethernet switch is connected to a first transceiver port of the evaluation device; A first processing module, configured to obtain first data to be forwarded sent by the processor to the Ethernet switch under different types of communication configurations, and evaluate the communication quality of the processor based on the first data to be forwarded; A second control module, configured to configure the Ethernet switch to a transfer mode, so that the reserved port of the Ethernet switch is connected to the second transceiver port of the evaluation device, and maintain the connection state between the second port and the first transceiver port; The second processing module is used to obtain different types of second data to be forwarded and send them to the Ethernet switch based on the pre-stored standard communication data generated when the processor does not fail, control the Ethernet switch to forward the second data to be forwarded, obtain forwarding result data, and evaluate the communication quality of the Ethernet switch based on the forwarding result data.

13. An evaluation device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the communication evaluation method of the vehicle-mounted domain control unit according to any one of claims 1 to 11 by executing the computer instructions.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the communication evaluation method for a vehicle-mounted domain control unit according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Test method, system, device and storage medium for switch control plane

    CN109495293A

  • Domain controller network test system, method and device

    CN119094387A

  • Vehicle-mounted Ethernet switch for rail vehicle

    CN204481852U

  • Enabling and disabling links of a networking switch responsive to compute node fitness

    US10693813B1

  • Managed Switch With Physically Distributed Ports

    US20210359876A1

Cited By

  • 5G-based vehicle-mounted TBOX protocol test method, equipment and medium

    CN120692205A