Communication evaluation method, device and equipment of vehicle-mounted domain control unit, and medium
By configuring Ethernet switches to pass-through and transfer modes, and using testing equipment to evaluate the communication quality between the processor and the switch of the domain control unit, the problem of complex internal communication within the domain control unit was solved, accurate communication quality assessment and problem localization were achieved, and the development cycle was shortened.
Patent Information
- Application Number
- CN202510069322.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2045-01-16
AI Technical Summary
The internal communication of the domain control unit is complex, and existing technologies make it difficult to obtain accurate communication data and locate problematic modules, resulting in difficulties in assessing communication quality.
By configuring the Ethernet switch to pass-through mode and transfer mode, the communication quality of the processor and the Ethernet switch was evaluated using testing equipment, the interface influence between hardware modules was isolated, and the problematic modules were disassembled one by one.
It improves the accuracy and comprehensiveness of communication quality assessment, shortens the development cycle, and saves development costs.
Smart Images

Figure CN119906647B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle-mounted controller testing, and particularly relates to a communication evaluation method, device and equipment of a vehicle-mounted domain control unit and a medium. BACKGROUND
[0002] An Ethernet central integrated regional control unit (hereinafter referred to as a domain control unit) is a control unit integrating multiple functions and interfaces, which communicates at high speed with a central processing unit through Ethernet technology and manages various devices and systems in the region where it is located. The domain control unit usually integrates an Ethernet switch, a high-performance processor such as multiple micro control units (MCU) or system on chip (SOC), and has rich communication interfaces such as controller area network (CAN) and virtual local area network (VLAN) to meet the control requirements of complex systems.
[0003] At present, when testing the vehicle-mounted Ethernet, the communication data between the Ethernet switch and the processor is usually obtained for communication testing. However, the internal communication of the domain control unit is extremely complex, and the communication problems of the internal modules are extremely easy to occur, and it is also very difficult to locate the problems. Therefore, it is difficult to ensure that accurate communication data is obtained, and the internal communication quality of the domain control unit is very difficult to evaluate. SUMMARY
[0004] Therefore, the present application provides a communication evaluation method, device and equipment of 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 application provides a communication evaluation method of 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, and the method comprising:
[0006] configuring the Ethernet switch to a transparent mode, so that a first port of the Ethernet switch is connected with the at least one processor, and a second port of the Ethernet switch is connected with a first transceiver port of the evaluation device;
[0007] obtaining first to-be-forwarded data 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 to-be-forwarded data;
[0008] The Ethernet switch is configured in a transfer mode, so that the reserved port of the Ethernet switch is connected with 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 the pre-stored standard communication data generated when the processor does not fail, different types of second to-be-transferred data are obtained and sent to the Ethernet switch, the Ethernet switch is controlled to transfer the second to-be-transferred data to obtain transfer result data, and the communication quality of the Ethernet switch is evaluated based on the transfer result data.
[0010] Beneficial effects: The Ethernet switch is configured in a transfer mode by the evaluation device, so that the processor can send the first to-be-transferred data to the evaluation device as it is, so that the evaluation device can evaluate the communication quality of the processor; the Ethernet switch is configured in a transfer mode by the evaluation device, the connection between the processor and the Ethernet switch is disconnected, the evaluation device sends different types of second to-be-transferred data to the Ethernet switch instead of the original processor, and the communication quality of the Ethernet switch is evaluated according to the obtained transfer result data. Therefore, the interface influence between multiple hardware modules is stripped during communication testing, and each module is evaluated one by one, so that the problem module and the communication problem in the domain control unit can be located in advance, the development cycle is shortened, and the development cost is saved.
[0011] In some optional embodiments, based on the pre-stored standard communication data generated when the processor does not fail, different types of second to-be-transferred data are obtained and sent to the Ethernet switch, including:
[0012] The standard communication data generated when at least one processor pre-stored by itself does not fail is extracted, and different types of frame data are obtained;
[0013] According to the different types of frame data, different types of second to-be-transferred data are obtained, and the second to-be-transferred data is sent to the reserved port of the Ethernet switch by using the second transceiver port.
[0014] Beneficial effects: in the embodiment of the present application, by configuring the Ethernet switch into the forwarding mode, the evaluation device sends various communication data generated when the processor is not faulty to the reserved port of the Ethernet switch through the second transceiver port, replacing the function of the processor, simulating the communication interaction between the processor and the Ethernet switch, compared with the scheme of separately evaluating the function of the Ethernet switch, the data forwarding function in the interaction process between the Ethernet switch and the processor can be better evaluated, and the function related to the processor interaction in the Ethernet switch is evaluated, thereby ensuring the comprehensiveness and integrity of the Ethernet switch function evaluation. And it can ensure that the Ethernet switch forwards the correct second to-be-forwarded data, so as to eliminate the influence of processor failure on the data forwarding quality of the Ethernet switch, thereby improving the accuracy of the evaluation result.
[0015] In some optional embodiments, the first to-be-forwarded data sent by the processor to the Ethernet switch under different types of communication configurations is obtained, including:
[0016] The first transceiver port is read to obtain the transparent data corresponding to the second port; wherein the transparent data is obtained after the Ethernet switch transmits the received data of the first port to the second port;
[0017] According to the transparent data corresponding to the second port, the first to-be-forwarded data sent by the processor to the Ethernet switch under different types of communication configurations is obtained.
[0018] Beneficial effects: by configuring the Ethernet switch into the transparent mode, the Ethernet switch will transmit the first to-be-forwarded data sent by the processor to the first port to the second port without opening, so that the evaluation device can directly obtain the original data sent by the processor to the Ethernet switch in the process of communication between the Ethernet switch and the processor, compared with the communication test of the processor alone, the interaction quality of the processor and the Ethernet switch can be evaluated. And it can eliminate the influence of some forwarding faults of the Ethernet switch on the quality of the first to-be-forwarded data, obtain the original and accurate first to-be-forwarded data, which is conducive to improving the accuracy of the communication quality evaluation of the processor.
[0019] In some optional embodiments, the communication quality of the processor is evaluated based on the first to-be-forwarded data, including:
[0020] According to the first to-be-forwarded data, the message transmission data of the processor under different communication protocols, the communication state data of the processor under different communication voltages, the first connection state data of the processor before establishing the physical layer connection and the second connection state data after establishing the physical layer connection are obtained;
[0021] The message transmission data under different communication protocols are evaluated to obtain a protocol consistency function evaluation result of the processor;
[0022] The communication state data under different communication voltages and / or the first connection state data are evaluated to obtain a performance evaluation result of the processor;
[0023] The second connection state data are evaluated to obtain a stability evaluation result of the processor.
[0024] Advantages: The communication protocol, communication voltage and physical layer connection of the processor are configured by the evaluation equipment, so that the protocol consistency of the processor is evaluated according to the message transmission data under different communication protocols, the performance of the processor is evaluated according to the communication state data under different communication voltages and / or the first connection state data of the processor before the physical layer connection is established, and the stability of the processor is evaluated according to the second connection state data of the processor after the physical layer connection is established, so that the communication problems of the processor in the aspects of function, performance and document are found in time, the related personnel are guided to debug, and the development cycle is shortened.
[0025] In some optional embodiments, the performance evaluation result of the processor is obtained by evaluating the communication state data under different communication voltages and / or the first connection state data, and the performance evaluation result of the processor includes:
[0026] According to the communication state data under different communication voltages, the corresponding communication voltage range of 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 a communication voltage evaluation result;
[0027] And / or, according to the first connection state data, the start time of the processor to establish the physical layer connection after the processor enters the power-on / wakeup state from the power-off / sleep state is obtained, and based on the size relationship between the start time and a preset start time, a physical layer connection start evaluation result of the processor is determined;
[0028] According to the communication voltage evaluation result and / or the physical layer connection start evaluation result, the performance evaluation result of the processor is obtained.
[0029] Advantages: The processor is controlled by the evaluation equipment to communicate under different communication voltages, so that the communication voltage of the processor is evaluated, and the communication voltage problem is found in advance. The processor is controlled by the evaluation equipment to enter the power-on / wakeup state from the power-off / sleep state, and the start time of the physical layer connection is detected, and the development process is guided according to the evaluation result, so that the processor can establish the physical layer connection within a specified time.
[0030] In some optional embodiments, based on the second connection state data, a stability evaluation result of the processor is obtained, including:
[0031] According to the second connection state data, second connection data when the processor re-establishes the physical layer connection after entering the power-on / connection open / wakeup state from the power-off / connection closed / sleep state is obtained;
[0032] According to the second connection data, whether the physical layer connection of the processor is re-established and whether the processor receives a reply message returned by the Ethernet switch are respectively judged; wherein the reply message is generated by the Ethernet switch based on a 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 the reply message returned by the Ethernet switch, it is determined that the stability evaluation result of the processor is passed.
[0034] Beneficial effects: After the processor establishes the physical layer connection, the evaluation device is used to control the processor to re-enter the power-on / connection open / wakeup state from the power-off / connection closed / sleep state, and the second connection data when the processor re-establishes the connection is obtained to judge whether the processor can re-establish the physical layer connection and whether the communication with the Ethernet switch can be restored, so as to evaluate the stability of the processor, facilitate to find the problem of the processor in advance for debugging, and improve the development efficiency.
[0035] In some optional embodiments, based on the message transmission data under different communication protocols, a protocol consistency function evaluation result of the processor is obtained, including:
[0036] According to the message transmission data, a communication identifier corresponding to different communication protocols is 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 effects: The evaluation device is used to control the processor to communicate through different types of communication protocols, and the communication identifier in the corresponding message transmission data is detected. If the target address, the source address, the message header, the target port and the source port and other communication identifiers are consistent with the preset communication identifier defined by the processor, it is confirmed that the protocol consistency function evaluation of the processor is passed, so as to exclude the influence of the communication problem of the Ethernet switch and evaluate the protocol consistency of the basic communication protocol of the processor.
[0039] In some optional embodiments, the communication quality of the Ethernet switch is evaluated based on the forwarding result data, including:
[0040] According to the forwarding result data, the forwarding of the Ethernet switch to different types of frame data, the forwarding delay time of the Ethernet switch forwarding frame data to the evaluation device, the forwarding frame loss of the Ethernet switch under different load states and / or the forwarding state data under different power supply voltages are obtained;
[0041] Based on the forwarding of different types of frame data, the functional evaluation result of the Ethernet switch is obtained;
[0042] Based on the forwarding delay time, the performance evaluation result of the Ethernet switch is obtained;
[0043] Based on the forwarding frame loss and / or the forwarding state data, the stability evaluation result of the Ethernet switch is obtained.
[0044] Beneficial effects: different types of data are sent to the Ethernet switch by the evaluation device, and the Ethernet switch is functionally evaluated according to the forwarding of different types of frame data, the performance of the Ethernet switch is evaluated according to the forwarding delay time of the Ethernet switch forwarding frame data to the evaluation device, and the stability of the Ethernet switch is evaluated according to the forwarding frame loss of the Ethernet switch under different load states and / or the forwarding state data under different power supply voltages, so that the communication problems of the Ethernet switch in function, performance and stability can be found in time, and the development cycle can be shortened.
[0045] In some optional embodiments, the functional evaluation result of the Ethernet switch is obtained based on the forwarding of different types of frame data, including:
[0046] According to the forwarding of different types of frame data, it is respectively judged whether the Ethernet switch can forward the frame data of the first type and the frame data of the second type; wherein the frame data of the first type includes at least one of the labeled message frame and the address message frame, and the frame data of the second type includes at least one of the labelless message frame, the error message frame and the addressless message frame;
[0047] When it is detected that the Ethernet switch can forward the frame data of the first type and cannot forward the frame data of the second type, it is determined that the functional evaluation result of the Ethernet switch is passed.
[0048] Beneficial effects: the application sends different types of frame data to the Ethernet switch through the evaluation device, judges whether the Ethernet switch can forward the corresponding frame data according to the setting, thereby detecting the forwarding function of the Ethernet switch, and excluding the influence of the processor during detection, improving the detection accuracy, facilitating the positioning of the communication problem of the Ethernet switch, and timely debugging, improving the development efficiency.
[0049] In some optional embodiments, the performance evaluation result of the Ethernet switch is obtained based on the forwarding delay time, including:
[0050] judging whether the forwarding delay time is less than the 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 effects: the application evaluates the forwarding delay time of the Ethernet switch when forwarding frame data, excludes 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 frame data to other ports within a specified time.
[0053] In some optional embodiments, the stability evaluation result of the Ethernet switch is obtained based on the forwarding frame loss situation and / or 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 size 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, according to the forwarding state data, the power supply voltage range of the Ethernet switch when forwarding frame data is determined, and the power supply voltage evaluation result is obtained;
[0056] 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.
[0057] Beneficial effects: the application evaluates the forwarding frame loss rate of the Ethernet switch under the preset maximum load state and the power supply voltage range when forwarding frame data, facilitates the positioning of the stability problem of the Ethernet switch, thereby timely debugging, shortening the development cycle, and improving the development efficiency.
[0058] In the second aspect, the application provides a communication evaluation device of a vehicle-mounted domain control unit, the vehicle-mounted domain control unit comprising an Ethernet switch and at least one processor, the device being applied to an evaluation device, and the device comprising:
[0059] The first control module is configured to configure the Ethernet switch in a transparent mode, so that a first port of the Ethernet switch is connected with the at least one processor, and a second port of the Ethernet switch is connected with a first transceiving port of the evaluation device.
[0060] The first processing module is configured to acquire first to-be-forwarded data 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 to-be-forwarded data.
[0061] The second control module is configured to configure the Ethernet switch in a transfer mode, so that a reserved port of the Ethernet switch is connected with a second transceiving port of the evaluation device, and the connection state of the second port and the first transceiving port is maintained.
[0062] The second processing module is configured to obtain second to-be-forwarded data of different types based on standard communication data generated when the processor does not fail, and send the second to-be-forwarded data to the Ethernet switch, control the Ethernet switch to forward the second to-be-forwarded data, 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 application provides an evaluation device, comprising a memory and a processor, which are communicatively connected with each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the communication evaluation method of the vehicle domain control unit according to the first aspect or any one of the corresponding embodiments thereof.
[0064] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer instructions for making a computer execute the communication evaluation method of the vehicle domain control unit according to the first aspect or any one of the corresponding embodiments thereof.
[0065] The present application has the following beneficial effects:
[0066] The present application configures the Ethernet switch in the transparent mode by using the evaluation device, so that the processor can send the first to-be-forwarded data to the evaluation device without any change, thereby enabling the evaluation device to evaluate the communication quality of the processor; the present application configures the Ethernet switch in the transfer mode by using the evaluation device, disconnects the processor and the Ethernet switch, and enables the evaluation device to send the second to-be-forwarded data of different types to the Ethernet switch instead of the processor, and evaluate the communication quality of the Ethernet switch based on the obtained forwarding result data. Therefore, the interface influence among multiple hardware modules can be eliminated during communication testing, the problem modules and communication problems in the domain control unit can be located in advance, and the development cycle can be shortened and the development cost can be saved. BRIEF DESCRIPTION OF DRAWINGS
[0067] In order to more clearly illustrate the technical solutions in the specific embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the description of the specific embodiments or the prior art. Obviously, the drawings described below are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0068] Figure 1 is a flowchart of a communication evaluation method of a vehicle domain control unit according to an embodiment of the present application;
[0069] Figure 2 is a structural diagram of an Ethernet switch transparent mode according to an embodiment of the present application;
[0070] Figure 3 is a structural diagram of an Ethernet switch transfer mode according to an embodiment of the present application;
[0071] Figure 4 is a flowchart of another communication evaluation method of a vehicle domain control unit according to an embodiment of the present application;
[0072] Figure 5 is a flowchart of evaluating MCU / SOC communication quality according to an embodiment of the present application;
[0073] Figure 6 is a flowchart of evaluating Ethernet switch communication quality according to an embodiment of the present application;
[0074] Figure 7 is a structural block diagram of a communication evaluation device of a vehicle domain control unit according to an embodiment of the present application;
[0075] Figure 8 is a hardware structural diagram of an evaluation device according to an embodiment of the present application. DETAILED DESCRIPTION
[0076] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will combine the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the present application.
[0077] The internal communication of the vehicle-mounted domain control unit is complex, and the communication problems of internal modules are prone to occur, and the positioning problem is also quite difficult. For communication problems such as MCU data transmission frame loss, SOC data transmission frame loss, and Switch forwarding frame loss in internal communication, special evaluation equipment is needed to avoid, which has positive significance for guiding development.
[0078] Therefore, the embodiment of the present application provides a communication evaluation method of a vehicle-mounted domain control unit, which configures a Switch in a transparent mode and a transfer mode by using an evaluation device to evaluate the communication quality of the vehicle-mounted domain control unit. When the Switch is in the transparent mode, a processor in the domain control unit can send the first to-be-forwarded data sent to the Switch to the evaluation device as it is, so that the evaluation device can evaluate the communication quality of the processor. When the Switch is in the transfer mode, the connection between the processor and the Switch is disconnected, the evaluation device sends different types of second to-be-forwarded data to the Switch instead of the original processor, and the communication quality of the Switch is evaluated according to the corresponding forwarding result data. In this way, the interface influence between multiple hardware modules can be stripped off during communication testing, and the problem modules and communication problems in the domain control unit can be located in advance, so as to shorten the development cycle and save the development cost.
[0079] According to the embodiment of the present application, a communication evaluation method of 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 group of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that here.
[0080] In the embodiment, a communication evaluation method of a vehicle-mounted domain control unit is provided, which can be used for an evaluation device such as a computer for evaluating vehicle-mounted Ethernet communication, Figure 1 The flowchart of the communication evaluation method of the vehicle-mounted domain control unit according to the embodiment of the present application is shown in FIG. 1, which includes the following steps: Figure 1
[0081] Step S101, configure the Ethernet switch in a transparent mode, so that the first port of the Ethernet switch is connected with at least one processor, and the second port of the Ethernet switch is connected with the first transceiver port of the evaluation device.
[0082] Specifically, the vehicle-mounted domain control unit includes an Ethernet switch and at least one processor such as MCU / SOC. For example, Figure 2 As shown, in the normal configuration, the Ethernet switch Switch communicates with the evaluation device and the processor MCU / SOC, respectively, wherein the Switch is provided with a first port Port_1 and a second port Port_2. In actual application, in order to locate the problem module in which the communication problem occurs in the vehicle domain control unit, on the one hand, the communication quality of the internal MCU / SOC needs to be evaluated, and on the other hand, the communication quality of the internal Switch needs to be evaluated.
[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 and forwarding needs to be sent to the evaluation device from the external port of the Switch without being opened, and the purpose is to directly evaluate the communication quality of the MCU / SOC. Referring again to Figure 2 The Switch is configured in a transparent mode, in which the first port Port_1 of the Switch is connected with the MCU / SOC, and the second port Port_2 of the Switch is connected with the first transceiver port of the evaluation device, so as to configure the Switch to send the data of the first port Port_1 from the second port Port_2 without being opened, and the evaluation device is directly connected to the port of the MCU / SOC for evaluation. In this way, the MCU / SOC can directly send the data sent to the Switch to the evaluation device, which is convenient for evaluating the communication quality of the MCU / SOC and excluding the influence of the communication problem of the Switch on the evaluation of the MCU / SOC.
[0084] The application sets the Ethernet switch in a transparent mode, and tests the performance of the MCU / SOC in transmission when communicating in the Ethernet, so that the instructions sent by the evaluation device directly reach the MCU / SOC without passing through the Switch, thereby avoiding the following situation: the MCU / SOC is not problematic, but the Switch is problematic, which leads to that the MCU / SOC connected with the Switch does not receive data or does not feedback data, and the MCU / SOC is misjudged as having poor performance in transmission.
[0085] It should be noted that the domain control unit with the Ethernet switch Switch may contain one or more processors such as MCU / SOC, and the embodiment of the application is described by taking the communication between the Ethernet switch Switch and one MCU / SOC as an example, but the application is also applicable to multiple MCU / SOC in actual application.
[0086] In step S102, the first to-be-forwarded data sent by the processor to the Ethernet switch in different types of communication configurations is acquired, and the communication quality of the processor is evaluated based on the first to-be-forwarded data.
[0087] Specifically, the evaluation device can configure the processor in different types of communication modes, such as configuring the communication protocol, communication voltage, power-on / power-off state, wake-up / sleep state, etc. of the processor, and the processor sends different types of first to-be-forwarded data to the Switch under the corresponding communication mode, and the first to-be-forwarded data is also directly sent to the evaluation device, so that the evaluation device evaluates the communication quality of the processor.
[0088] Specifically, referring again to Figure 2 , the evaluation device reads the first transceiver port to obtain the transparent data corresponding to the second port Port_2, so as to obtain the first to-be-forwarded data 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 transmits the received data of the first port Port_1 to the second port Port_2, and in the transmission process in the transparent mode, the Switch does not process the data to be transmitted regardless of the content and data protocol form of the received data of the first port Port_1, but only transmits the received data of the first port Port_1 to the second port Port_2 as a set of binary data. In this way, it can be ensured that the evaluation device can obtain the first to-be-forwarded data sent by the MCU / SOC to the Switch without any change.
[0089] The related art uses the host computer to obtain the communication data between the Switch and the MCU / SOC, and in the case of communication failure of the Switch, it is difficult to ensure the accuracy of the communication data, which affects the accuracy of the evaluation of the communication quality of the MCU / SOC. However, if the communication quality of the MCU / SOC is evaluated alone, the host computer is difficult to perfectly replace the function of the Switch, and some data sent by the MCU / SOC to the Switch cannot be directly obtained by the host computer, and indirectly obtained by other devices cannot guarantee that the data is exactly the same as the original data sent by the MCU / SOC, thereby affecting the accuracy of the evaluation of the communication quality of the MCU / SOC.
[0090] In the embodiment of the application, the Ethernet switch is configured in the transparent mode, so that the Ethernet switch transmits the first to-be-forwarded data sent by the processor to the first port to the second port without any change, so that the evaluation device can directly obtain the original data sent by the processor to the Ethernet switch in the communication process between the Ethernet switch and the processor. Compared with the communication test of the processor alone, the interaction quality of the processor and the Ethernet switch can be evaluated. Moreover, the influence of some forwarding faults of the Ethernet switch on the quality of the first to-be-forwarded data can be excluded, the original and accurate first to-be-forwarded data is obtained, and the accuracy of the evaluation of the communication quality of the processor is improved.
[0091] Step S103, configure the Ethernet switch into a transfer mode, so that the reserved port of the Ethernet switch is connected with the second transceiver port of the evaluation device, and the connection state of the second port with the first transceiver port is maintained.
[0092] Specifically, as shown in Figure 3 in the normal configuration, the Ethernet switch Switch respectively communicates with the evaluation device and the processor MCU / SOC, wherein the Switch is provided with a first port Port_1 and a second port Port_2, so that it is not determined whether the MCU / SOC or the Switch has a communication problem. Therefore, the hardware in the domain control unit needs to be disassembled and evaluated one by one.
[0093] Further, in order to evaluate the communication quality of the Switch, the configuration of the internal port connected with the MCU / SOC is configured to a port reserved for a system that is not used, and the purpose is to directly evaluate the internal communication quality of the Switch connected with the MCU / SOC. Referring again to Figure 3 configure the Switch into a transfer mode, in which the reserved port (Port_reserved) of the Switch is connected with the second transceiver port of the evaluation device, the second port Port_2 of the Switch is connected with the first transceiver port of the evaluation device, and the first port Port_1 of the Switch is disconnected with the MCU / SOC, the configuration of the first port Port_1 connected with the MCU / SOC is configured to a port Port_reserved that is not used by a system, the evaluation device is connected with the Switch through the Port_reserved, and the evaluation is completed instead of the position of the MCU / SOC. In this way, the evaluation device can replace the original MCU / SOC to send data that needs to be forwarded to the evaluation device, so as to test the communication quality of the Switch, and exclude the influence of the communication problem of the MCU / SOC on the evaluation of the Switch.
[0094] The application tests the Switch after the MCU / SOC is tested. The test port on the Switch is switched, so that the instruction sent by the evaluation device directly reaches the Switch, and the performance of the Switch in transmission is tested, avoiding the following situation: the Switch is not problematic, but the MCU / SOC is problematic, resulting in problems in data receiving and / or data sending of the Switch, and misjudging that the performance of the Switch in transmission is poor.
[0095] In step S104, the second to-be-forwarded data of different types is obtained based on the pre-stored standard communication data generated when the processor is not faulty, and is sent to the Ethernet switch, the Ethernet switch forwards the second to-be-forwarded data to obtain forwarding result data, and the communication quality of the Ethernet switch is evaluated based on the forwarding result data.
[0096] Specifically, the Ethernet switch extracts the standard communication data generated when at least one processor is not faulty, to obtain frame data of different types. Then, the second to-be-forwarded data of different types is obtained according to the frame data of different types, and 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 device stores standard communication data generated when various MCUs / SOCs are not faulty, so that the evaluation device can replace the frame data of different types sent by the various MCUs / SOCs to the Switch by calling the standard communication data of the corresponding processor, thereby simulating the communication process between the MCU / SOC not faulty and the Switch.
[0098] The related art uses the upper computer to obtain the communication data between the Switch and the MCU / SOC, and it is difficult to ensure the accuracy of the communication data in the case of communication failure of the MCU / SOC, which affects the accuracy of the evaluation of the communication quality of the Switch. However, if the communication quality of the Switch is evaluated alone, the related art only evaluates the functions of the Switch itself, and it is difficult to evaluate the interaction quality between the Switch and the MCU / SOC, which affects the comprehensiveness and integrity of the function evaluation of the Switch.
[0099] In the embodiment of the application, the Ethernet switch is configured in a forwarding mode, so that the evaluation device sends various communication data generated when the processor is not faulty to the reserved port of the Ethernet switch by using the second transceiver port, replaces the functions of the processor, simulates the communication interaction between the processor and the Ethernet switch, and compared with the scheme of evaluating the functions of the Ethernet switch alone, the data forwarding function in the interaction process between the Ethernet switch and the processor can be better evaluated, the functions related to the interaction of the processor in the Ethernet switch are evaluated, thereby ensuring the comprehensiveness and integrity of the function evaluation of the Ethernet switch. Moreover, the Ethernet switch can forward the correct second to-be-forwarded data, so that the influence of the processor failure on the data forwarding quality of the Ethernet switch is eliminated, thereby improving the accuracy of the evaluation result.
[0100] Specifically, the evaluation device can send different types of second to-be-forwarded data to the Switch instead of the MCU / SOC, so that the Switch forwards the data, and the evaluation device can act as a forwarding object of the Switch to obtain forwarding result data of the different types of second to-be-forwarded data, thereby evaluating the communication quality of the Switch.
[0101] In the embodiment of the application, the evaluation device can be directly connected to the external Ethernet port corresponding to the transparent / transfer mode, and can effectively evaluate the internal communication function, performance and stability of the MCU / SOC and the Switch, thereby obtaining high-standard evaluation results and improving the software development quality of the Ethernet domain control unit.
[0102] The communication evaluation method of the vehicle-mounted domain control unit provided in the embodiment can configure the Ethernet switch in the transparent mode by using the evaluation device, so that the processor can send the first to-be-forwarded data to the evaluation device without any change, thereby enabling the evaluation device to evaluate the communication quality of the processor. The communication evaluation method of the vehicle-mounted domain control unit provided in the embodiment can configure the Ethernet switch in the transfer mode by using the evaluation device, disconnect the processor and the Ethernet switch, and enable the evaluation device to send different types of second to-be-forwarded data to the Ethernet switch instead of the original processor, and evaluate the communication quality of the Ethernet switch according to the obtained forwarding result data. Therefore, the interface influence between multiple hardware modules can be stripped off during communication testing, and the problem modules and communication problems in the domain control unit can be located in advance, thereby shortening the development cycle and saving the development cost.
[0103] In the embodiment, a communication evaluation method of a vehicle-mounted domain control unit is provided, and an evaluation device for evaluating vehicle-mounted Ethernet communication, such as a mobile phone, a computer or the like, Figure 4 is a flowchart of the communication evaluation method of the vehicle-mounted domain control unit according to the embodiment of the application, as shown in Figure 4 The flowchart includes the following steps:
[0104] In step S401, the Ethernet switch is configured in the transparent 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. For details, refer to the description of step S101 in the embodiment shown in Figure 1 The description of step S101 in the embodiment shown in
[0105] In step S402, the first to-be-forwarded data sent by the processor to the Ethernet switch under different types of communication configurations is obtained, and the communication quality of the processor is evaluated based on the first to-be-forwarded data.
[0106] Specifically, step S402 includes the following steps:
[0107] In step S4021, the message transmission data of the processor under different communication protocols, the communication state data of the processor under different communication voltages, the first connection state data of the processor before establishing a physical layer connection, and the second connection state data of the processor after establishing a physical layer connection are obtained according to the first to-be-forwarded data.
[0108] Specifically, the processor is configured for different types of communication by using the evaluation device, and the processor sends different first to-be-forwarded data to the evaluation device under different configurations. The specific configuration process, obtained data, and evaluation process are described in steps S4022 to S4024 below, and will not be described here.
[0109] In step S4022, the protocol consistency function evaluation result of the processor is obtained by evaluating the message transmission data under different communication protocols.
[0110] Specifically, the communication identifier corresponding to different communication protocols is obtained according to the message transmission data. 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. 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. The communication identifier includes at least one of a target address, a source address, a message header, a target port, and a source port.
[0111] In some optional embodiments, when communication is performed using a virtual local area network communication protocol, to confirm that the MCU / SOC uses correct VLAN tags, the evaluation device is used to make the MCU / SOC in a normal communication state, data with a source MAC being the MCU / SOC MAC is checked, and if there is no undefined VLAN in the data, it is confirmed that the priority and IP address corresponding to each VLAN of the MCU / SOC are correct, and the VLAN tag evaluation of the MCU / SOC is passed.
[0112] In some optional embodiments, when communication is performed using a virtual local area network communication protocol, to confirm that the MCU / SOC uses correct VLAN tags-ping, the evaluation device is used to make the MCU / SOC in a normal communication state, and an ICMP echo is sent to each address of the MCU / SOC one by one, data with a source MAC being the MCU / SOC MAC is checked, and if there is a corresponding echo reply for each address and no undefined VLAN, it is confirmed that the MCU / SOC uses correct VLAN tags-ping and the priority and IP address corresponding to each VLAN are correct, and the VLAN tags-ping evaluation of the MCU / SOC is passed.
[0113] In some alternative embodiments, when using a 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 MCU / SOC is brought into a normal communication state by the test and evaluation device, and then the target MAC addresses of all messages in the bus are checked. If there is no MAC address 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 test and evaluation of the MCU / SOC is passed.
[0114] In some alternative embodiments, when using a data link layer communication protocol for communication, in order to confirm that the source MAC address is the MAC address of the MCU / SOC, the MCU / SOC is brought into a normal communication state by the test and evaluation device, and then the source MAC addresses of all messages in the bus are checked. If the source MAC address is the MAC address defined for the MCU / SOC (not multicast, broadcast, or other MAC), it is confirmed that the source MAC address test and evaluation of the MCU / SOC is passed.
[0115] In some alternative embodiments, when using a network layer communication protocol for communication, in order to confirm that the target IP address sent by the MCU / SOC meets the requirements, the MCU / SOC is brought into a normal communication state by the test and evaluation device, and then the target IP of all messages in the bus is checked. If there is no IP address that is not defined for the MCU / SOC (multicast IP, broadcast IP, etc. need to be considered), it is confirmed that the target IP address test and evaluation of the MCU / SOC is passed.
[0116] In some alternative embodiments, when using a network layer communication protocol for communication, in order to confirm that the source IP address is the IP address of the MCU / SOC, the MCU / SOC is brought into a normal communication state by the test and evaluation device, and then all messages in the bus are checked. If the source IP address is the IP address of the MCU / SOC (not multicast, broadcast, or other IP), it is confirmed that the source IP address test and evaluation of the MCU / SOC is passed.
[0117] In some alternative embodiments, when using a network layer communication protocol for communication, in order to confirm that the MCU / SOC correctly sets the IPv4 TTL (Time To Live) in the communication network inside the vehicle, the MCU / SOC is brought into a normal communication state by the test and evaluation device, and then the IPv4 messages sent by the MCU / SOC are detected. If the TTL field in the message header is set to 64, it is confirmed that the IP message header test and evaluation of the MCU / SOC is passed.
[0118] In some alternative embodiments, when using the user datagram protocol for communication, in order to confirm that the UDP target port sent by the MCU / SOC meets the requirements, the MCU / SOC is brought into a normal communication state by the evaluation device, the target port of the UDP is checked, and if the target port number is a known port defined to the MCU / SOC or is between 49152 and 65535, it is confirmed that the UDP target port evaluation of the MCU / SOC is passed.
[0119] In some alternative 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 brought into a normal communication state by the evaluation device, the source port of the UDP is checked, and 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 is passed.
[0120] In some alternative 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 brought into a normal communication state by the evaluation device, the target port of the TCP is checked, and 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 is passed.
[0121] In some alternative 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 brought into a normal communication state by the evaluation device, the source port of the TCP is checked, and 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 is passed.
[0122] The application uses an evaluation device to control a processor to communicate through different types of communication protocols, and detects the communication identifiers in the corresponding message transmission data. If the target address, the source address, the message header, the target port, and the source port, etc. communication identifiers are consistent with the preset communication identifiers defined by the processor, it is confirmed that the protocol consistency function evaluation of the processor is passed, thereby excluding the influence of the communication problem of the Ethernet switch, and evaluating the protocol consistency of the basic communication protocol of the processor alone.
[0123] Step S4023, based on the communication state data and / or the first connection state data under different communication voltages, the performance evaluation result of the processor is obtained.
[0124] Specifically, according to the communication state 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 start-up time of the processor to establish a physical layer connection after entering the power-on / wake-up state from the power-off / sleep state is obtained, and based on the size relationship between the start-up time and the preset start-up time, the physical layer connection start-up evaluation result of the processor is determined. Finally, according to the communication voltage evaluation result and / or the physical layer connection start-up 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, the evaluation device is used to set the MCU / SOC supply voltage to 12±0.2V, and the local wake-up MCU / SOC is waited for 5s to 5s to stabilize the bus communication. Then, the power supply voltage is continuously reduced from 7.0V at a step of 0.1V until the communication stops or 6.0V, the communication state of the MCU / SOC is monitored, and the communication maintenance time of the MCU / SOC from the communication stable state to the communication stop state is obtained. Again, the power supply voltage is continuously increased at a step of 0.1V until 7.5V or the communication recovers, the communication state of the MCU / SOC is monitored, and the communication recovery time and the communication recovery voltage of the MCU / SOC from the communication stop state to the communication stable state are obtained. By repeating the above steps, the voltage is increased from 17.5V to 18.5V, and then decreased to 17V. Finally, it is found that the communication can be recovered when the voltage is restored to 6.9V and above, so as to obtain the communication voltage range of the MCU / SOC.
[0126] In some optional embodiments, the initialization time of the physical layer connection (PHY Link) is evaluated to evaluate whether the MCU / SOC can establish a Link up state within the expected time after power-on. The evaluation device is used to disconnect the power supply of the MCU / SOC, and then the MCU / SOC is controlled to be powered on (while triggering a local wake-up event), 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 is passed.
[0127] In some optional embodiments, the PHY Link start-up 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 device is used to make the MCU / SOC in the sleep state, and then the wake-up event is triggered, 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 start-up evaluation is passed.
[0128] The application utilizes the evaluation device to control the processor to communicate under different communication voltages, so as to evaluate the communication voltage of the processor, and facilitate to find the communication voltage problem in advance. The evaluation device is utilized to control the processor to enter the power-on / wake-up state from the power-off / sleep state, and detect the start time of establishing the physical layer connection, and according to the evaluation result, provide guidance for the development process, so as to ensure that the processor can establish the physical layer connection within the specified time.
[0129] In step S4024, the second connection state data is used for evaluation, and a stability evaluation result of the processor is obtained.
[0130] Specifically, according to the second connection state data, the second connection data of the processor when re-establishing the physical layer connection after entering the power-on / connection opening / wake-up state from the power-off / connection closing / sleep state is obtained. Then, according to the second connection data, whether the physical layer connection of the processor is re-established and whether the processor receives the reply message returned by the Ethernet switch are respectively judged. 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 embodiments, the stability of the PHY Link is evaluated, and whether the MCU / SOC can maintain stability after establishing the Link up state is evaluated. The evaluation device is utilized to disconnect the power supply of the MCU / SOC, and then control the MCU / SOC to be powered on (while triggering the local wake-up event), wait for the MCU / SOC to establish the link up, and continuously check whether the link state jumps for 20s. If the MCU / SOC establishes the link up and the MCU / SOC maintains the link up state, the stability evaluation of the PHY Link is passed.
[0132] In some optional embodiments, the unexpected interruption of the PHY Link is evaluated, and whether the MCU / SOC can maintain stability after establishing the Link up state is evaluated. The evaluation device is utilized to control the MCU / SOC to be powered on, so that the MCU / SOC normally communicates, and after the communication of the MCU / SOC is stable, the Link Partner enters the Link down (connection closing). After waiting for about 5s, the Link Partner (connection opening) is restored, and after waiting for the Link up, the monitoring is continued for 20s. If the MCU / SOC maintains the link up state and the link down does not occur, the unexpected interruption evaluation of the PHY Link is passed.
[0133] In some alternative embodiments, the PHY Link hibernation wake-up is evaluated to determine whether the MCU / SOC can maintain stability after establishing a Linkup state. The evaluation device is used to make the MCU / SOC enter a hibernation state, and then trigger a wake-up event. If the MCU / SOC enters a link up state, the PHY Link wake-up evaluation is passed. After waiting for the Link up, the monitoring is continued for 20 seconds, and the hibernation condition of the MCU / SOC is met. If the MCU / SOC enters a link down state, the PHY Link hibernation evaluation is passed.
[0134] In some alternative embodiments, the PHY Link hibernation communication start is evaluated to determine the time for the MCU / SOC to establish a physical layer connection to enable effective data transmission and reception. The evaluation device is used to make the MCU / SOC enter a hibernation state, and then wake up the Switch of the domain control unit. The Switch of the domain control unit enters a Link up state, and the ICMPPING packet is continuously sent to the Switch. The ICMP PING reply of the Switch is waited for. If the Switch replies with an ICMP Reply within a period of time after the Link up, it is confirmed that the PHY Link hibernation communication start evaluation is passed.
[0135] In some alternative embodiments, the PHY Link power-on communication start is evaluated to determine the time for the MCU / SOC to establish a Link to enable effective data transmission and reception. The evaluation device is used to make the MCU / SOC enter a power-off state, and then control the MCU / SOC to be powered on and wake up the Switch at the same time. The Switch enters a Link up state, and the ICMP PING packet is continuously sent to the Switch. The ICMP PING reply of the Switch is waited for. If the Switch replies with an ICMP Reply within a period of time after the Link up, it is confirmed that the PHY Link power-on communication start evaluation is passed.
[0136] The present application uses the evaluation device to control the processor to re-enter a power-on / connection open / wake-up state from a power-off / connection closed / hibernation state after the processor establishes a physical layer connection, 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 the processor can resume communication with the Ethernet switch, thereby evaluating the stability of the processor. The evaluation result is used to find problems of the processor in advance for debugging, thereby improving the development efficiency.
[0137] In the embodiment of the present application, the communication protocol, communication voltage and physical layer connection of the processor are configured by the evaluation device, so as to evaluate the protocol consistency of the processor according to the message transmission data under different communication protocols, evaluate the performance of the processor according to the communication state data under different communication voltages and / or the first connection state data of the processor before the physical layer connection is established, and evaluate the stability of the processor according to the second connection state data of the processor after the physical layer connection is established, so as to discover the communication problems of the processor in the aspects of function, performance and document in time, guide the relevant personnel to debug and shorten the development cycle.
[0138] In step S403, the Ethernet switch is configured as a transfer mode, so as to connect the reserved port of the Ethernet switch with the second transceiver port of the evaluation device and maintain the connection state of the second port with the first transceiver port. For details, refer to the description of step S103 in the above embodiment. Figure 1 The description of step S103 in the above embodiment is not repeated here.
[0139] In step S404, the Ethernet switch is controlled to transfer different types of second frame data to be transferred, so as to obtain transfer result data and evaluate the communication quality of the Ethernet switch based on the transfer result data.
[0140] Specifically, step S404 includes:
[0141] In step S4041, the transfer of the Ethernet switch to different types of frame data, the transfer delay time of the Ethernet switch to transfer the frame data to the evaluation device, the transfer frame loss of the Ethernet switch under different load states and / or the transfer state data under different power supply voltages are obtained according to the transfer result data.
[0142] Specifically, the evaluation device replaces the function of the original processor, sends different types of second frame data to be transferred to the Switch, and obtains the transfer result data of the Switch to the corresponding data. For details, refer to the description of steps S4042 to S4044, which are not repeated here.
[0143] In step S4042, the function evaluation result of the Ethernet switch is obtained based on the transfer of different types of frame data.
[0144] Specifically, according to the forwarding of frame data of different types, it is respectively judged whether the Ethernet switch can forward the frame data of the first type and the frame data of the second type. When it is detected that the Ethernet switch can forward the frame data of the first type and cannot forward the frame data of the second type, it is determined that the function evaluation result of the Ethernet switch is passed. The frame data of the first type includes at least one of a tagged message frame and an address message frame, and the frame data of the second type includes at least one of an untagged message frame, an error message frame and an addressless message frame.
[0145] Exemplarily, the frame data of the first type can include VLAN_single-tagged, normal frame data, frame with single label and unique source MAC address, etc., and the frame data of the second type can include VLAN_untagged frame, FCS error frame data, frame with no label and unique source MAC address, frame with unknown destination MAC address, etc., and the present application is not limited thereto.
[0146] In some optional embodiments, the VLAN_untagged data is forwarded for evaluation, and it is evaluated whether the internal port of the domain control unit can forward the VLAN_untagged frame. The VLAN_untagged frame is sent to the internal port of the Switch by the evaluation device, and the forwarding condition is detected. If the domain control unit Switch internal port cannot forward the VLAN_untagged frame, the evaluation is passed.
[0147] In some optional embodiments, the VLAN_single-tagged data is forwarded for evaluation, and it is evaluated whether the internal port can forward the VLAN_single-tagged frame. The VLAN_single-tagged frame is sent to the internal port of the Switch by the evaluation device, and the forwarding condition is detected. If the Switch internal port can forward the VLAN_single-tagged frame, the evaluation is passed.
[0148] In some optional embodiments, the stored frame data is forwarded for evaluation, and the working mode of the internal port of the Switch is evaluated. The frame which can be normally forwarded is sent to the internal port of the Switch by the evaluation device, the forwarding condition is detected, then the frame which can be normally forwarded but has FCS error is sent again, the forwarding condition is detected, and if no frame with FCS error is received at any port, the evaluation is passed.
[0149] In some alternative embodiments, the time-power initialization of the internal port forwarding first frame packet is evaluated, and the time of the internal port power initialization forwarding first frame packet is evaluated. After the Switch power initialization is controlled by the evaluation device, the time when the internal port starts to forward the packet is detected (the time when each internal port sends to all other ports and all other ports sends to each internal port is traversed, measured 10 times, and the maximum and minimum values are recorded), and if the Switch forwards according to the actual demand, the evaluation is passed.
[0150] In some alternative embodiments, the time-KL15 wake-up of the internal port forwarding first frame packet is evaluated, and the time of the internal port KL15 wake-up forwarding first frame packet is evaluated. After the Switch is powered on, the internal port is woken up by KL15 after the Switch enters sleep, and the time when it starts to forward the packet is detected (the time when each internal port sends to all other ports and all other ports sends to each internal port is traversed, measured 10 times, and the maximum and minimum values are recorded), and if the Switch forwards according to the actual demand, the evaluation is passed.
[0151] In some alternative embodiments, the time-NM wake-up of the internal port forwarding first frame packet is evaluated, and the time of the internal port NM wake-up forwarding first frame packet is evaluated. After the Switch is powered on, the internal port is woken up by NM packet after the Switch enters sleep, and the time when it starts to forward the packet is detected (the time when each internal port sends to all other ports and all other ports sends to each internal port is traversed, measured 10 times, and the maximum and minimum values are recorded), and if the Switch forwards according to the actual demand, the evaluation is passed.
[0152] In some alternative embodiments, the maximum frame length-single-tagged is evaluated, and the maximum frame length of the internal port forwarding single-tagged frame is evaluated. The maximum length of the Switch internal port forwarding single-tagged frame is obtained by using the evaluation device, and if the Switch forwards according to the actual demand, the evaluation is passed.
[0153] In some alternative embodiments, the address learning without tag is evaluated, and whether the internal port can learn the frame without tag with a unique source MAC address is evaluated. The frame without tag with a unique source MAC address is sent to the internal port, and the address learning condition is verified, and if the Switch does not learn and discards, the evaluation is passed.
[0154] In some alternative embodiments, the address learning with single tag is evaluated, and whether the internal port can learn the frame with single tag is evaluated. The frame with single tag with a unique source MAC address is sent to the internal port, and the address learning condition is verified, and if the Switch can learn, the evaluation is passed.
[0155] In some optional embodiments, address learning aging is evaluated, 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.
[0156] In some optional embodiments, message processing of an unknown destination MAC address is evaluated, the internal port processing of a frame with an unknown destination MAC address is evaluated, a frame with an unknown destination MAC address is sent to the internal port, and the forwarding condition is verified.
[0157] In some optional embodiments, static learning addresses are evaluated, whether the internal port forwards messages according to the configured static learning addresses is evaluated, a message is sent according to the static address configured by the internal port, the forwarding condition of the message is detected, and if the Switch forwards according to the configured static learning addresses, the evaluation is passed.
[0158] The present application sends different types of frame data to the Ethernet switch by using the evaluation device, judges whether the Ethernet switch can forward the corresponding frame data according to the settings, thereby detecting the forwarding function of the Ethernet switch, and eliminates the influence of the processor during detection, improves the detection accuracy, facilitates positioning of the communication problem of the Ethernet switch, and timely debugging, thereby improving the development efficiency.
[0159] Step S4043, based on the forwarding delay time, the performance evaluation result of the Ethernet switch is obtained.
[0160] Specifically, it is judged whether the forwarding delay time is less than the preset forwarding delay time, and 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 embodiments, 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, and the time from the last bit of the frame received by the internal port to the first bit of the frame received by the other port (traversing each internal port to all other ports and all other ports to each internal port) is verified. If the forwarding delay meets the requirements, the evaluation is passed.
[0162] The present application 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 frame data to other ports within a specified time.
[0163] Step S4044, based on the forwarding frame loss condition and / or forwarding state data, the stability evaluation result of the Ethernet switch is obtained.
[0164] Specifically, according to the forwarding frame loss condition, the forwarding frame loss rate of the Ethernet switch under the preset maximum load state is obtained, and based on the size 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 frame data is determined, and the power supply voltage evaluation result is obtained. 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 embodiments, the Ethernet switch under full load is evaluated to evaluate whether the internal port can work without frame loss under full load. The frame capable of forwarding is sent to the internal port to make the load reach 100%, and the forwarding condition is verified. If there is no frame loss when the load reaches 100%, the evaluation is passed.
[0166] In some optional embodiments, the power supply voltage range when forwarding data is evaluated to evaluate the Switch forwarding voltage range of the internal port. The Switch power is controlled, and after the Switch communication is stable, the message capable of forwarding to other ports is continuously sent at all ports. The power supply voltage is gradually reduced until the Switch stops forwarding at some port, and the voltage value when the forwarding stops is recorded. The normal power supply is restored, and after the Switch communication is stable, the message capable of forwarding to other ports is continuously sent at all ports. The power supply voltage is gradually increased until the Switch stops forwarding at some port, and the voltage value when the forwarding stops is recorded. According to the above two voltage values, the power supply voltage range when the Switch can normally forward frame data is obtained.
[0167] The present application evaluates the forwarding frame loss rate of the Ethernet switch under the preset maximum load state and the power supply voltage range when the frame data can be forwarded, which is convenient for locating the stability problem of the Ethernet switch, so as to timely debug, shorten the development cycle and improve the development efficiency.
[0168] In the embodiments of the present application, the evaluation device is used to send different types of data to the Ethernet switch, and the function of the Ethernet switch is evaluated according to the forwarding condition of the Ethernet switch to different types of frame data. The performance of the Ethernet switch is evaluated according to the forwarding delay time of the Ethernet switch to forward the frame data to the evaluation device. The stability of the Ethernet switch is evaluated according to the forwarding frame loss condition of the Ethernet switch under different load states and / or the forwarding state data under different power supply voltages, so as to timely find the communication problems of the Ethernet switch in function, performance and document, guide the relevant personnel to debug, and shorten the development cycle.
[0169] The communication evaluation method of the vehicle-mounted domain control unit of the embodiment of the application is described in detail below in combination with a specific application example.
[0170] Referring again to Figure 2 To evaluate the MCU / SOC hidden behind the Switch, the data sent by the MCU / SOC to the Switch routing forwarding is sent out from the external port of the Switch without any change, and the purpose is to directly evaluate the communication quality of the MCU / SOC. As shown in Figure 5 , the following steps are mainly included:
[0171] Step S501, according to the evaluation requirement, the communication quality of the MCU / SOC Ethernet hidden behind the Switch needs to be evaluated, and the Switch needs to be skipped to realize the requirement of directly evaluating the communication capability of the MCU / SOC.
[0172] Step S502, the Switch is configured to be in a transparent mode, that is, transparently transmitting Port_1 to Port_2, so as to realize that the evaluation device is directly connected to the Port port of the MCU / SOC, and the function, performance and stability of the Ethernet communication are evaluated.
[0173] Step S503, according to the design of the evaluation scene, the test is performed, and the evaluation result is obtained.
[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 the like.
[0175] Specifically, the performance evaluation includes communication voltage range, communication recovery time and communication recovery voltage of non-normal voltage recovery normal voltage, communication maintenance time from normal voltage to non-normal voltage, PHY Link initialization time, PHY Link startup and the like.
[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 the like.
[0177] Referring again to Figure 3 To evaluate the Switch, the configuration of the internal port connected with the MCU / SOC is configured to a port reserved for not being used in a system, and the purpose is to directly evaluate the internal communication quality of the Switch connected with the MCU / SOC. As shown in Figure 6 , the following steps are mainly included:
[0178] Step S601, according to the evaluation requirements, the communication quality of the Switch is evaluated, the internal port data connected with the MCU / SOC is simulated, and the requirement of directly evaluating the communication capability of the Switch is realized.
[0179] Step S602, the Switch is configured as a transfer mode, i.e., the Port_1 is transferred to Port_reserved, so as to realize that the evaluation equipment replaces the internal MCU / SOC to communicate with the Switch, and the function, performance and stability of the Switch Ethernet communication are evaluated.
[0180] Step S603, according to the designed evaluation scene, the test is performed, and the evaluation result is obtained.
[0181] Specifically, for the forwarding of VLAN_untagged, the internal port of the control unit cannot forward the VLAN_untagged frame; for the forwarding of VLAN_single-tagged, the internal port of the control unit can forward the VLAN_single-tagged frame.
[0182] Specifically, the frame capable of being normally forwarded is sent at the internal port of the control unit, the forwarding condition is detected, then the frame capable of being normally forwarded is sent again, but the FCS is made to be wrong, the forwarding condition is detected, and the frame with wrong FCS cannot be received at any port.
[0183] Specifically, for the time of forwarding the first frame message of the internal port-power initialization, the actual requirement is evaluated; for the time of forwarding the first frame message of the internal port-KL15 wake-up, the actual requirement is evaluated; for the time of forwarding the first frame message of the internal port-NM wake-up, the actual requirement is evaluated; for the maximum length of forwarding the single-tagged frame of the internal port, the actual requirement is evaluated.
[0184] Specifically, the frame with unique source MAC address without tag is sent to the internal port, the address learning condition is verified, and the address is not learned and discarded; the frame with unique source MAC address with single tag is sent to the internal port, the address learning condition is verified, and the address can be learned.
[0185] Specifically, the message carrying the source MAC address not learned is sent to the internal port, the aging time of the internal port is verified, and the actual requirement is evaluated; the frame with unknown destination MAC address is sent to the internal port, the forwarding condition is verified, and the frame is discarded; the message is sent according to the static address configured by the internal port, the forwarding condition of the message is detected, and the message is forwarded according to the static learning address.
[0186] Specifically, the frame capable of forwarding is sent to the internal port, the time from the last bit of the frame received by the internal port to the first bit of the frame received by the other port is verified (traversing each internal port to all other ports and all other ports to each internal port), and the actual demand is evaluated.
[0187] Specifically, the frame capable of forwarding is sent to the internal port to make the load reach 100%, and the forwarding condition is verified without frame loss when the load reaches 100%.
[0188] Specifically, the domain control unit is powered on, and after waiting for the communication of the domain control unit to be stable, the frame capable of forwarding to other ports is continuously sent at all ports, the power supply voltage is gradually reduced until a port of the domain control unit stops forwarding, and the voltage value when the forwarding stops is recorded; the normal power supply is restored, and after waiting for the communication of the domain control unit to be stable, the frame capable of forwarding to other ports is continuously sent at all ports, the power supply voltage is gradually increased until a port of the domain control unit stops forwarding, and the voltage value when the forwarding stops is recorded, and the domain control unit can normally forward within the maximum working voltage range.
[0189] The present application realizes the separation of the interface influence between multiple hardware modules by changing the internal Switch configuration of the Ethernet domain control unit, realizes the step-by-step disassembly and evaluation, uses the black box testing method to find the white box problem, moves the test forward, and finds the communication problem difficult to locate in the later stage in advance, can shorten the development cycle and save the development cost. Especially for the internal communication quality evaluation of the extreme performance working scene of the domain control unit, it has a positive effect and is effective in practical application.
[0190] In the embodiment, a communication evaluation device of a vehicle-mounted domain control unit is also provided, which is used to realize the above-mentioned embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the device described in the following embodiments is preferably realized in software, the realization of hardware, or a combination of software and hardware, is also possible and conceived.
[0191] The embodiment provides a communication evaluation device of a vehicle-mounted domain control unit, as shown in Figure 7 , comprising:
[0192] The first control module 701 is configured to configure the Ethernet switch into a transparent mode, so that the first port of the Ethernet switch is connected with the at least one processor, and the second port of the Ethernet switch is connected with the first transceiver port of the evaluation device;
[0193] The first processing module 702 is configured to acquire first to-be-forwarded data 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 to-be-forwarded data;
[0194] The second control module 703 is configured to configure the Ethernet switch into a transfer mode, so that the reserved port of the Ethernet switch is connected with the second transceiver port of the evaluation device, and the connection state between the second port and the first transceiver port is maintained;
[0195] The second processing module 704 is configured to obtain different types of second to-be-transmitted data based on the pre-stored standard communication data generated when the processor is not faulty, and send the second to-be-transmitted data to the Ethernet switch, control the Ethernet switch to transmit the second to-be-transmitted data, and obtain transmission result data, and evaluate the communication quality of the Ethernet switch based on the transmission result data.
[0196] In some optional embodiments, the first processing module 702 is further configured to:
[0197] read the first transceiver port to obtain the 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] obtain the first to-be-transmitted data sent by the processor to the Ethernet switch under different types of communication configurations according to the transparent transmission data corresponding to the second port.
[0199] In some optional embodiments, the first processing module 702 is further configured to:
[0200] obtain the message transmission data of the processor under different communication protocols, the communication state data of the processor under different communication voltages, the first connection state data of the processor before establishing a physical layer connection, and the second connection state data of the processor after establishing a physical layer connection according to the first to-be-transmitted data;
[0201] evaluate based on the message transmission data under different communication protocols to obtain a protocol consistency function evaluation result of the processor;
[0202] evaluate based on the communication state data under different communication voltages and / or the first connection state data to obtain a performance evaluation result of the processor;
[0203] evaluate based on the second connection state data to obtain a stability evaluation result of the processor.
[0204] In some optional embodiments, the first processing module 702 is further configured to:
[0205] obtain the communication identifier corresponding to the different communication protocols according to the message transmission data; 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 embodiments, the first processing module 702 is further configured to:
[0208] According to the communication state 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 from the communication stop state to the communication stable state, and the communication recovery voltage are determined to obtain a communication voltage evaluation result.
[0209] And / or, according to the first connection state data, the start time of the processor to establish a physical layer connection after entering a power-on / wake-up state from a power-off / sleep state is obtained, and based on the size relationship between the start time and a preset start time, a physical layer connection start evaluation result of the processor is determined.
[0210] According to the communication voltage evaluation result and / or the physical layer connection start evaluation result, a performance evaluation result of the processor is obtained.
[0211] In some optional embodiments, the first processing module 702 is further configured to:
[0212] According to the second connection state data, second connection data of the processor when re-establishing a physical layer connection after entering a power-on / connection opening / wake-up state from a power-off / connection closing / sleep state is obtained.
[0213] According to the second connection data, whether the physical layer connection of the processor is re-established and whether the processor receives a reply message returned by the Ethernet switch are respectively judged; 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 the reply message returned by the Ethernet switch, it is determined that the stability evaluation result of the processor is passed.
[0215] In some optional embodiments, the second processing module 704 is further configured to:
[0216] The standard communication data generated when at least one processor pre-stored by itself does not fail is extracted to obtain different types of frame data.
[0217] According to the different types of frame data, different types of second to-be-forwarded data are obtained, and the second to-be-forwarded data is sent to the reserved port of the Ethernet switch by using the second transceiver port.
[0218] In some optional embodiments, the second processing module 704 is further configured to:
[0219] According to the forwarding result data, obtain the forwarding situation of the Ethernet switch for different types of frame data, the forwarding delay time of the Ethernet switch for forwarding the frame data to the evaluation device, the forwarding frame loss situation of the Ethernet switch under different load states and / or the forwarding state data under different power supply voltages;
[0220] Based on the forwarding situation of different types of frame data, evaluate to obtain the functional evaluation result of the Ethernet switch;
[0221] Based on the forwarding delay time, evaluate to obtain the performance evaluation result of the Ethernet switch;
[0222] Based on the forwarding frame loss situation and / or the forwarding state data, evaluate to obtain the stability evaluation result of the Ethernet switch.
[0223] In some optional embodiments, the second processing module 704 is further configured to:
[0224] According to the forwarding situation of different types of frame data, respectively judge whether the Ethernet switch can forward the frame data of the first type and the frame data of the second type; wherein the frame data of the first type includes at least one of the labeled message frame and the address message frame, and the frame data of the second type includes at least one of the labelless message frame, the error message frame and the addressless message frame;
[0225] When it is detected that the Ethernet switch can forward the frame data of the first type and cannot forward the frame data of the second type, determine that the functional evaluation result of the Ethernet switch is passed.
[0226] In some optional embodiments, the second processing module 704 is further configured to:
[0227] Judge whether the forwarding delay time is less than the preset forwarding delay time;
[0228] If the forwarding delay time is less than the preset forwarding delay time, determine that the performance evaluation result of the Ethernet switch is passed.
[0229] In some optional embodiments, the second processing module 704 is further configured to:
[0230] According to the forwarding frame loss situation, obtain the forwarding frame loss rate of the Ethernet switch under the preset maximum load state, and based on the size relationship between the forwarding frame loss rate and the preset forwarding frame loss rate, determine the forwarding frame loss evaluation result of the Ethernet switch;
[0231] And / or, according to the forwarding state data, determine the power supply voltage range of the Ethernet switch when forwarding frame data, and obtain the power supply voltage evaluation result;
[0232] According to the forwarding frame loss evaluation result and the power supply voltage evaluation result, a stability evaluation result of the Ethernet switch is obtained.
[0233] Further function descriptions of the above-mentioned modules and units are the same as those of the above-mentioned corresponding embodiments, and will not be described here again.
[0234] The communication evaluation device of the vehicle domain control unit in the embodiment is in the form of a functional unit, and the unit herein refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory executing one or more software or fixed programs, and / or other devices capable of providing the above-mentioned functions.
[0235] The embodiment of the application further provides a kind of evaluation equipment, with above-mentioned Figure 7 The communication evaluation device of the vehicle domain control unit shown in the figure.
[0236] Please refer to Figure 8 , Figure 8 It is a kind of structure schematic diagram of evaluation equipment provided by optional embodiment of the application, as shown in Figure 8 The evaluation equipment includes one or more processors 10, memories 20 and interfaces for connecting components, including high-speed interfaces and low-speed interfaces. Various components are communicatively connected to each other using different buses, and can be installed on a common motherboard or in other ways as needed. The processor can process instructions executed within the evaluation equipment, including instructions stored in the memory or memory to display GUI on external input / output devices (such as a display device coupled to the interface). In some alternative embodiments, multiple processors and / or multiple buses can be used with multiple memories and multiple memories as needed. Similarly, multiple devices can be connected, each providing part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 In the figure, a processor 10 is taken as an example.
[0237] The processor 10 can be a central processor, a network processor or a combination thereof. The processor 10 can further include a hardware chip. The hardware chip can be an application specific integrated circuit, a programmable logic device or a combination thereof. The programmable logic device can be a complex programmable logic device, a field programmable logic gate array, a general 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-mentioned embodiments.
[0239] The memory 20 can include a program storage area that can store an operating system and application programs required for at least one function, and a data storage area that can store data created according to use of the evaluation device, etc. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-transitory memory such as at least one of a magnetic disk storage device, a flash memory device, or other non-transitory solid state memory device. In some alternative embodiments, the memory 20 can optionally include a memory that is remotely located with respect to the processor 10, and these remote memories can be connected to the evaluation device through a network. Examples of the 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 can include a volatile memory such as a random access memory, and can also include a non-volatile memory such as a flash memory, a hard disk, or a solid state disk. The memory 20 can also include a combination of the above-mentioned types of memories.
[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 can be connected through a bus or other means, Figure 8 The connection through the bus is used as an example.
[0242] The input device 30 can receive inputted numerical or character information, and can also generate key signal inputs related to user settings and function controls of the evaluation device, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointing stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 can include a display device, an auxiliary lighting device (e.g., an LED), a tactile feedback device (e.g., a vibration motor), etc. The display device includes, but is not limited to, a liquid crystal display, a light emitting diode, a display, and a plasma display. In some alternative embodiments, the display device can be a touch screen.
[0243] The embodiments of the present application further provide a computer readable storage medium, and the method according to the embodiments of the present application can be implemented in hardware, firmware, or recorded in a storage medium, or stored in a remote storage medium or a non-transitory machine readable storage medium and downloaded to a local storage medium through network, so that the method described herein can be processed by such software on a storage medium using a general purpose computer, a special purpose processor, or programmable or special hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid state disk, etc. Further, the storage medium can also include a combination of the above-mentioned memories. It can be understood that the computer, the processor, the microprocessor controller, or the 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 the computer, the processor, or the hardware, the method shown in the above embodiments is implemented.
[0244] Part of the present application can be applied as a computer program product, for example, computer program instructions, when executed by a computer, through the operation of the computer, the method and / or technical solutions according to the present application can be called or provided. Those skilled in the art should understand that the form of computer program instructions in a computer readable medium includes but is not limited to source files, executable files, installation package files, etc. Correspondingly, the way of executing computer program instructions by computer includes but is not limited to: the computer directly executes the instructions, or the computer compiles the instructions and then executes the corresponding compiled program, or the computer reads and executes the instructions, or the computer reads and installs the instructions and then executes the corresponding installed program. Here, the computer readable medium can be any available computer readable storage medium or communication medium accessible to the computer.
[0245] Although the embodiments of the present application are described in conjunction with the accompanying drawings, various modifications and changes can be made by those skilled in the art without departing from the spirit and scope of the present application, and such modifications and changes fall 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 includes: Configuring 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; 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; Configuring 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, maintaining the connection between the second port and the first transceiver port, and disconnecting the processor from the Ethernet switch; Based on pre-stored standard communication data generated when the processor is not faulty, 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 pre-stored standard communication data generated when the processor is not faulty and sending the second data to be forwarded to the Ethernet switch includes: extracting pre-stored standard communication data generated by at least one of the processors when no failure occurs, 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 is 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: obtaining, based on the first data to be forwarded, 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 the communication status data and / or the first connection status 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 a performance evaluation result of the processor includes: Determine, based on 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, and obtain a communication voltage evaluation result; and / or, obtaining, based on the first connection state data, a startup time for the processor to establish a physical layer connection after entering a power-on / wake-up state from a power-off / sleep state, and determining a physical layer connection startup evaluation result of the processor based on a relationship between the startup time and a preset startup time; A 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 Performing an evaluation based on the second connection status data to obtain a stability evaluation result of the processor includes: Obtaining, based on the second connection state data, 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; Determining, based on the secondary connection data, 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 response 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 message transmission data under different communication protocols to obtain protocol consistency function evaluation results of the processor, including: Obtaining communication identifiers corresponding to different communication protocols based on the message transmission data; 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 destination address, a source address, a message header, a destination 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 conditions and / or the forwarding status data under different power supply voltages are obtained; Evaluate the forwarding status of different types of frame data to obtain a functional evaluation result of the Ethernet switch; Evaluate based on the forwarding delay time to obtain a performance evaluation result of the Ethernet switch; Evaluation is performed based on the forwarding frame loss situation and / or forwarding state data to obtain a 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 results of the Ethernet switch, including: Determining, based on forwarding conditions of different types of frame data, whether the Ethernet switch can forward first type frame data and second type 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 a 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 forwarding state data to obtain the stability evaluation result of the Ethernet switch includes: Obtaining a forwarding frame loss rate of the Ethernet switch under a preset maximum load state according to the forwarding frame loss situation, and determining a forwarding frame loss evaluation result of the Ethernet switch based on a relationship between the forwarding frame loss rate and a preset forwarding frame loss rate; 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; A 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 includes: A first control module is 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, maintain the connection state of the second port and the first transceiver port, and disconnect the processor from the Ethernet switch; The second processing module is configured to obtain different types of second data to be forwarded based on pre-stored standard communication data generated when the processor is not faulty, and send the data 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.
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