Ethernet mirroring function control method of vehicle switch and electronic device

By using an automated Ethernet mirroring control method, the problem of test engineers having to manually operate the DoIP protocol was solved, improving testing efficiency and information security, and enabling convenient control of the vehicle switch.

CN122160350APending Publication Date: 2026-06-05VOYAH AUTOMOBILE TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
VOYAH AUTOMOBILE TECH CO LTD
Filing Date
2026-02-25
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

In existing technologies, controlling the Ethernet mirroring function of vehicle switches requires test engineers to master the DoIP diagnostic message sending method, which requires high professional skills and standardized operation, resulting in low testing efficiency and easy errors, affecting the information security of vehicle Ethernet communication.

Method used

A method for controlling the Ethernet mirroring function of a vehicle switch is provided. By displaying a control interface, responding to user operations, automatically requesting to establish a communication connection with the vehicle ECU, switching to an extended diagnostic session, and performing secure access unlocking, the method finally sends a mirroring function control command to control the vehicle switch to perform the Ethernet mirroring function.

Benefits of technology

It enables convenient, efficient, and reliable control of vehicle switches to perform Ethernet mirroring functions, reduces operational errors, and improves the information security of in-vehicle Ethernet communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122160350A_ABST
    Figure CN122160350A_ABST
Patent Text Reader

Abstract

The application provides an Ethernet function control method of a vehicle switch and an electronic device. The method can respond to a triggering operation of a function control control by a user, request to establish a communication connection with a vehicle-mounted ECU, request the vehicle-mounted ECU to switch to an extended diagnostic session after determining that the communication connection is successful, request the vehicle-mounted ECU to perform security access unlocking on the extended diagnostic session after determining that the extended diagnostic session is successful, and send a mirror function control instruction to the vehicle-mounted ECU to make the vehicle-mounted ECU control the vehicle switch to perform an Ethernet mirroring function after determining that the security access unlocking is successful. In this way, the user only needs to trigger one key, and the vehicle-mounted ECU can control the vehicle switch to perform the Ethernet mirroring function, which is convenient, efficient, and reliable, and is less likely to cause operation errors, thereby improving the information security of the vehicle-mounted Ethernet communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle testing technology, and in particular to a method and electronic device for controlling the Ethernet function of a vehicle switch. Background Technology

[0002] With the upgrade of automotive electronic and electrical architecture towards intelligent connectivity, Ethernet has become the core carrier of in-vehicle communication. As a core component for Ethernet data forwarding, the vehicle switch's functional testing and troubleshooting are crucial aspects of the entire vehicle lifecycle. Ethernet mirroring can copy raw network traffic (e.g., data packets from cameras to the vehicle's ECU) to a monitoring port and save it. This saved raw network traffic is a core support for analyzing in-vehicle data transmission protocols, locating communication faults, and is an essential function for ensuring vehicle information security during in-vehicle Ethernet testing.

[0003] Currently, before controlling the Ethernet mirroring function, test engineers need to manually trigger preparatory steps (such as communication connection, extended session entry, secure access unlocking, and control command issuance) based on the Diagnostic Communication Over Internet Protocol (DoIP) protocol, which relies on the ISO 13400 standard (the international standard for diagnostic communication based on Internet Protocol (IP)). However, triggering each of these preparatory steps based on the DoIP protocol requires test engineers to master the DoIP diagnostic message sending method of the test equipment. This requires extremely high professional skills and operational standardization, is not convenient, leads to low testing efficiency, and is prone to errors, thus affecting the information security of in-vehicle Ethernet communication. Summary of the Invention

[0004] This application provides a method and electronic device for controlling the Ethernet function of a vehicle switch, which solves the problem that in the prior art, before controlling the Ethernet mirroring function, test engineers need to master the DoIP diagnostic message sending method of the test equipment, which requires a high level of professional ability and operational standardization, is not convenient, and leads to low testing efficiency and easy operation errors, thereby affecting the information security of vehicle Ethernet communication.

[0005] Firstly, this application provides a method for controlling the Ethernet mirroring function of a vehicle switch, applied to a host computer. The method provided in this application includes: Displays the Ethernet mirroring function control interface, which includes function control controls. In response to the user's triggering operation of the function control controls, a request is made to establish a communication connection with the vehicle ECU; After confirming a successful communication connection, request the vehicle ECU to switch to the extended diagnostic session; After confirming the success of the extended diagnostic session, request the onboard ECU to securely unlock the extended diagnostic session; After confirming successful secure access unlocking, a mirroring function control command is sent to the vehicle ECU to enable the vehicle ECU to control the vehicle switch to perform the Ethernet mirroring function.

[0006] In some implementations, when the mirroring function control command is a mirroring function enable command, executing the Ethernet mirroring function means enabling the Ethernet mirroring function. When the mirroring function control command is the mirroring function disable command, executing the Ethernet mirroring function will disable the Ethernet mirroring function.

[0007] In some embodiments, the method provided in this application further includes: receiving and displaying on the Ethernet mirroring function control interface: Operation log of establishing communication connection between vehicle ECU; And / or the running logs of the onboard ECU switching to the extended diagnostic session; And / or the operation log of the onboard ECU for secure access to and unlocking of the extended diagnostic session; And / or the operation log of the vehicle switch controlled by the onboard ECU to perform Ethernet mirroring function.

[0008] In some embodiments, the method provided in this application further includes: Receive and display on the Ethernet mirroring function control interface: After confirming a communication connection failure, display the error message indicating the failure and the reason for the failure. Once it is determined that the extended diagnostic session has failed, the system displays a message indicating the failure and the reason for the failure. Once it is determined that secure access unlocking has failed, the system will display a message indicating the reason for the failure. After determining that the vehicle ECU has failed to perform the Ethernet mirroring function, the system displays a prompt message indicating the reason why the vehicle ECU failed to perform the Ethernet mirroring function.

[0009] In some implementations, requesting to establish a communication connection with the vehicle ECU includes: Request to establish a communication connection with the vehicle's ECU; If a communication connection is determined to have failed, a failure count is performed. If the failure count does not reach the set count threshold, a new request will be made to establish a communication connection with the vehicle ECU. If the failure count reaches the set threshold, the communication connection is determined to have failed.

[0010] In some implementations, requesting the onboard ECU to switch to an extended diagnostic session includes: Request the vehicle ECU to switch to the extended diagnostic session; If an error response code is received from the vehicle ECU, it indicates that the extended diagnostic session has failed. Based on the error response code, determine the reason for the extended diagnostic session failure from the preset mapping relationship; Displays a message indicating that the extended diagnostic session failed and the reason for the failure.

[0011] In some implementations, prior to a user's triggering operation on the function control control, the method provided in this application further includes: After confirming the physical connection between the host computer and the 100Mbps Ethernet box, the system checks whether a communication connection has been established with the 100Mbps Ethernet box. The 100Mbps Ethernet box is used to establish a communication connection between the host computer and the vehicle's ECU. If no communication connection is established with the Ethernet 100Mbps box, a hardware connection error message will be output on the Ethernet mirroring function control interface.

[0012] Secondly, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device performs the method provided in the first aspect of this application.

[0013] Thirdly, this application also provides a storage medium storing a computer program, which, when executed by a processor, causes the computer to perform the method provided in the first aspect of this application.

[0014] Fourthly, this application also provides a computer program product, including a computer program that, when run, causes an electronic device to perform the method provided in the first aspect of this application.

[0015] This application provides a method and electronic device for controlling the Ethernet function of a vehicle switch. Responding to a user's trigger operation on the function control control, the method requests to establish a communication connection with the vehicle's ECU. After confirming a successful communication connection, it requests the vehicle's ECU to switch to an extended diagnostic session. After confirming a successful extended diagnostic session, it requests the vehicle's ECU to securely unlock the extended diagnostic session. After confirming successful secure unlock, it sends a mirroring function control command to the vehicle's ECU, enabling the vehicle's ECU to control the vehicle switch to perform Ethernet mirroring. Thus, with just a single user trigger, the method controls the vehicle's ECU to control the vehicle switch to perform Ethernet mirroring, offering high convenience, efficiency, and reliability, reducing the risk of operational errors, and thereby improving the information security of vehicle Ethernet communication. Attached Figure Description

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

[0017] Figure 1 This is a schematic diagram illustrating the communication interaction between the host computer and the vehicle ECU provided in an embodiment of this application. Figure 2 A flowchart of the Ethernet mirroring function control method for a vehicle switch provided in an embodiment of this application; Figure 3 A functional block diagram of the Ethernet mirroring function control device for a vehicle switch provided in this application embodiment. Detailed Implementation

[0018] Embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. Furthermore, descriptions of well-known structures and technologies are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

[0019] The accompanying drawings illustrate various structural schematics according to embodiments of the present disclosure. These drawings are not to scale, and some details have been enlarged for clarity, and some details may have been omitted. The shapes of the various regions and layers shown in the drawings, as well as their relative sizes and positional relationships, are merely exemplary and may deviate from reality due to manufacturing tolerances or technical limitations. Furthermore, those skilled in the art can design regions / layers with different shapes, sizes, and relative positions as needed.

[0020] In the context of this disclosure, when a layer / element is referred to as being "above" another layer / element, the layer / element may be directly above the other layer / element, or there may be an intermediate layer / element between them. Additionally, if a layer / element is "above" another layer / element in one orientation, then when the orientation is reversed, the layer / element may be "below" the other layer / element.

[0021] The technical solutions of this application and how they solve the aforementioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0022] Please see Figure 1 This application provides a method for controlling the Ethernet mirroring function of a vehicle switch, applied to a host computer. The host computer has an Ethernet mirroring function control application installed, which is developed based on the Python language and includes an Ethernet mirroring function control interface. For example... Figure 2 As shown, the host computer can be connected to the host computer interface of the 100Mbps Ethernet box via an RJ45 network cable. The 100Mbps Ethernet box is used for communication with the vehicle ECU. It should be noted that after establishing a physical connection between the host computer and the 100Mbps Ethernet box, the host computer can detect whether a communication connection has been established with the Ethernet box. The 100Mbps Ethernet box is used to establish a communication connection between the host computer and the vehicle ECU. If a communication connection is not established with the Ethernet box, a hardware connection error message will be output on the Ethernet mirroring function control interface.

[0023] Still Figure 1 As shown, the method provided in this application embodiment includes: S101: Displays the Ethernet mirroring function control interface, which includes function control controls.

[0024] For example, the function control control may include an enable control and a disable control, wherein the enable control is used to trigger a mirror function enable command and the disable control is used to trigger a mirror function disable command.

[0025] S102: In response to the user's triggering operation of the function control control, request to establish a communication connection with the vehicle ECU.

[0026] For example, the host computer can send a connection request to the vehicle ECU via a 100Mbps Ethernet box. Based on the connection request, the vehicle ECU sends a confirmation packet back to the host computer, which then establishes a communication connection with the vehicle ECU based on the confirmation packet. Additionally, the system receives and displays on the Ethernet mirroring function control interface a message indicating communication failure and the reason for the failure, for the user to view.

[0027] Furthermore, S102 can be specifically implemented as follows: requesting to establish a communication connection with the vehicle ECU; if it is determined that the communication connection has failed, then performing a failure count; if the failure count has not reached the set counting threshold (e.g., 3 times), then re-requesting to establish a communication connection with the vehicle ECU; if the failure count reaches the set counting threshold (e.g., 3 times), then determining that the communication connection has failed.

[0028] S103: After confirming a successful communication connection, request the on-board ECU to switch to the extended diagnostic session.

[0029] For example, a 0x10 0x03 command can be sent to the vehicle's ECU to request the ECU to switch to an extended diagnostic session. It's important to note that the extended diagnostic session is a series of preparatory, negotiation, and configuration interactions between the testing or diagnostic personnel and the vehicle's network system before officially starting network mirroring for data capture. Subsequent steps S104-S105 can only proceed after switching to the extended diagnostic session. Additionally, the Ethernet mirroring function control interface can receive and display: a prompt indicating the extended diagnostic session failure and the reason for the failure (such as insufficient permissions or unsupported commands), for the user to review.

[0030] Specifically, S103 can be implemented as: requesting the on-board ECU to switch to the extended diagnostic session; If an error response code is received from the vehicle ECU, the extended diagnostic session is determined to have failed. Based on the error response code, the reason for the extended diagnostic session failure is determined from the preset mapping relationship. The prompt message indicating the extended diagnostic session failure and the reason for the failure are displayed.

[0031] S104: After confirming that the extended diagnostic session is successful, request the on-board ECU to securely unlock the extended diagnostic session.

[0032] Specifically, a 0x10 0x03 command can be sent to the vehicle ECU to request the ECU to securely unlock the extended diagnostic session. Additionally, it can receive and display on the Ethernet mirroring function control interface a prompt indicating a failed secure access unlock and the reason for the failure, for the user to view.

[0033] For example, the secure access unlocking process can be, but is not limited to, the following: The vehicle ECU sends a random number (seed) to the host computer. The host computer uses a preset security algorithm and key to calculate the key based on the seed and sends it back to the vehicle ECU. After verifying that the key is correct, the vehicle ECU grants secure access to the extended diagnostic session, allowing the execution of S105 as described below.

[0034] S105: After confirming that the secure access has been successfully unlocked, a mirroring function control command is sent to the vehicle ECU to enable the vehicle ECU to control the vehicle switch to perform the Ethernet mirroring function.

[0035] For example, when the mirroring function control instruction is a mirroring function enable instruction (such as the 0x2E 0x05 0xC1 0x01 instruction), executing the Ethernet mirroring function enables the Ethernet mirroring function; when the mirroring function control instruction is a mirroring function disable instruction (such as the 0x2E 0x05 0xC1 0x00 instruction), executing the Ethernet mirroring function disables the Ethernet mirroring function.

[0036] It should be noted that after enabling the Ethernet mirroring function, the test terminal can control the vehicle to perform specific functions (such as activating adaptive cruise control (ACC) and triggering blind spot monitoring by turning on the turn signal), while simultaneously capturing network data from the monitoring port throughout the process, detecting any anomalies in the network data, and generating inspection results.

[0037] Additionally, it can receive and display on the Ethernet mirroring function control interface: after determining that the control of the vehicle ECU has failed to execute the Ethernet mirroring function, it can display a prompt message indicating the reason for the failure of the control of the vehicle ECU to execute the Ethernet mirroring function, for the user to view.

[0038] In addition, the method provided in this application embodiment also includes: receiving and displaying on the Ethernet mirroring function control interface: the operation log of the vehicle ECU establishing a communication connection; and / or the operation log of the vehicle ECU switching to an extended diagnostic session; and / or the operation log of the vehicle ECU performing secure access unlocking of the extended diagnostic session; and / or the operation log of the vehicle ECU controlling the vehicle switch to perform the Ethernet mirroring function, so that the user can view the operation log of the vehicle ECU performing each step.

[0039] In summary, the Ethernet function control method for a vehicle switch provided in this application responds to a user's trigger operation on the function control control, requesting the establishment of a communication connection with the vehicle ECU; after confirming a successful communication connection, requesting the vehicle ECU to switch to an extended diagnostic session; after confirming a successful extended diagnostic session, requesting the vehicle ECU to securely unlock the extended diagnostic session; and after confirming successful secure unlocking, sending a mirroring function control command to the vehicle ECU to enable the vehicle ECU to control the vehicle switch to perform Ethernet mirroring. Thus, with just a single user trigger, the method can control the vehicle ECU to control the vehicle switch to perform Ethernet mirroring, offering high convenience, efficiency, and reliability, reducing the likelihood of operational errors, and thereby improving the information security of vehicle Ethernet communication.

[0040] In addition, such as Figure 3 As shown, this application embodiment provides an Ethernet mirroring function control device for a vehicle switch, applied to a host computer. It should be noted that the basic principle and technical effects of the Ethernet mirroring function control device for a vehicle switch provided in this application embodiment are the same as those in the above embodiments. For the sake of brevity, any parts not mentioned in this application embodiment can be referred to the corresponding content in the above embodiments. The device provided in this application embodiment includes an interface display unit, a communication connection unit, a session extension unit, an access unlocking unit, and a mirroring function control unit, wherein... The interface display unit is used to display the Ethernet mirroring function control interface, which includes function control controls. The communication connection unit is used to request the establishment of a communication connection with the vehicle ECU in response to the user's trigger operation on the function control control. The session extension unit is used to request the on-board ECU to switch to the extended diagnostic session after confirming that the communication connection is successful; The access unlocking unit is used to request the on-board ECU to securely unlock the extended diagnostic session after confirming that the extended diagnostic session is successful. The mirroring function control unit is used to send mirroring function control commands to the vehicle ECU after confirming that the secure access has been successfully unlocked, so that the vehicle ECU controls the vehicle switch to perform the Ethernet mirroring function.

[0041] In some implementations, when the mirroring function control command is a mirroring function enable command, executing the Ethernet mirroring function enables the Ethernet mirroring function; when the mirroring function control command is a mirroring function disable command, executing the Ethernet mirroring function disables the Ethernet mirroring function.

[0042] In some implementations, the interface display unit is also used to receive and display on the Ethernet mirroring function control interface: the operation log of the vehicle ECU establishing a communication connection; and / or the operation log of the vehicle ECU switching to an extended diagnostic session; and / or the operation log of the vehicle ECU performing secure access unlocking of the extended diagnostic session; and / or the operation log of the vehicle ECU controlling the vehicle switch to perform the Ethernet mirroring function.

[0043] In some implementations, the interface display unit is further configured to receive and display on the Ethernet mirroring function control interface: after determining that a communication connection has failed, a prompt message indicating the communication connection failure and the reason for the communication connection failure; after determining that an extended diagnostic session has failed, a prompt message indicating the extended diagnostic session and the reason for the extended diagnostic session failure; after determining that a secure access unlock has failed, a prompt message indicating the secure access unlock has failed and the reason for the secure access unlock failure; and after determining that controlling the vehicle ECU to perform the Ethernet mirroring function has failed, a prompt message indicating that controlling the vehicle ECU to perform the Ethernet mirroring function has failed and the reason for controlling the vehicle ECU to perform the Ethernet mirroring function.

[0044] In some implementations, the communication connection unit is specifically used to request to establish a communication connection with the vehicle ECU; if it is determined that the communication connection has failed, a failure count is performed; if the failure count has not reached a set count threshold, a new request is made to establish a communication connection with the vehicle ECU; if the failure count reaches the set count threshold, the communication connection is determined to have failed.

[0045] In some implementations, the session extension unit is specifically used to request the vehicle ECU to switch to an extended diagnostic session; if an error response code is received from the vehicle ECU, it is determined that the extended diagnostic session has failed; based on the error response code, the reason for the extended diagnostic session failure is determined from a preset mapping relationship; and a prompt message indicating the failure of the extended diagnostic session and the reason for the failure are displayed.

[0046] In some embodiments, the apparatus provided in this application may further include: a communication detection unit, used to detect whether a communication connection has been established with the Ethernet 100Mbps box after determining that a physical connection has been established between the host computer and the Ethernet 100Mbps box, wherein the Ethernet 100Mbps box is used to establish a communication connection between the host computer and the vehicle ECU, and if no communication connection has been established with the Ethernet 100Mbps box, a hardware connection abnormality prompt message is output on the Ethernet mirroring function control interface.

[0047] In addition, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the electronic device performs the method provided in the above embodiments of this application.

[0048] In addition, this application embodiment also provides a storage medium storing a computer program, which, when executed by a processor, causes the computer to perform the method provided in the above embodiments of this application.

[0049] In addition, this application also provides a computer program product, including a computer program that, when run, causes an electronic device to perform the method provided in the above embodiments of this application.

[0050] The above description does not provide detailed technical specifications regarding the structure of each layer. However, those skilled in the art should understand that layers and regions of desired shapes can be formed using various technical means. Furthermore, to form the same structure, those skilled in the art can also design methods that are not entirely identical to those described above. Additionally, although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be advantageously combined.

[0051] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0052] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for controlling Ethernet mirroring function of a vehicle switch, characterized in that, Applied to a host computer, the method includes: The Ethernet mirroring function control interface is displayed, wherein the Ethernet mirroring function control interface includes function control controls; In response to the user's triggering operation of the function control control, a request is made to establish a communication connection with the vehicle ECU; After confirming that the communication connection is successful, the vehicle ECU is requested to switch to an extended diagnostic session; After confirming the success of the extended diagnostic session, the vehicle ECU is requested to securely unlock the extended diagnostic session. After confirming that the secure access has been successfully unlocked, a mirroring function control command is sent to the vehicle ECU to enable the vehicle ECU to control the vehicle switch to perform the Ethernet mirroring function.

2. The method according to claim 1, characterized in that, When the mirroring function control command is a mirroring function enable command, executing the Ethernet mirroring function means enabling the Ethernet mirroring function; When the mirroring function control command is a mirroring function disable command, executing the Ethernet mirroring function means disabling the Ethernet mirroring function.

3. The method according to claim 1, characterized in that, The method further includes: receiving and displaying on the Ethernet mirroring function control interface: The operation log of the vehicle-mounted ECU establishing a communication connection; And / or the operation log of the vehicle ECU switching to the extended diagnostic session; And / or the operation log of the on-board ECU for secure access unlocking of the extended diagnostic session; And / or the operation log of the vehicle switch controlled by the on-board ECU to perform Ethernet mirroring function.

4. The method according to claim 1, characterized in that, The method further includes: Receive and display on the Ethernet mirroring function control interface: After determining that the communication connection has failed, a prompt message indicating the failure of the communication connection and the reason for the failure are provided. After determining that the extended diagnostic session has failed, a prompt message indicating the extended diagnostic session and the reason for the failure are provided. After determining that the security access unlocking has failed, a prompt message indicating the failure of the security access unlocking and the reason for the failure are displayed. After determining that the control of the vehicle ECU to perform the Ethernet mirroring function has failed, a prompt message indicating the failure to control the vehicle ECU to perform the Ethernet mirroring function and the reason for the failure to control the vehicle ECU to perform the Ethernet mirroring function are displayed.

5. The method according to claim 1, characterized in that, The request to establish a communication connection with the vehicle's ECU includes: Request to establish a communication connection with the vehicle ECU; If it is determined that the communication connection has failed, then a failure count is performed; If the failure count does not reach the set count threshold, a new request is made to establish a communication connection with the vehicle ECU. If the failure count reaches the set counting threshold, the communication connection is determined to have failed.

6. The method according to claim 1, characterized in that, The request to switch the vehicle ECU to an extended diagnostic session includes: Request the vehicle ECU to switch to an extended diagnostic session; If an error response code is received from the vehicle ECU, it is determined that the extended diagnostic session has failed. Based on the error response code, the reason for the extended diagnostic session failure is determined from the preset mapping relationship; Displays a message indicating that the extended diagnostic session failed and the reason for the failure.

7. The method according to claim 1, characterized in that, Prior to responding to a user's triggering operation on the function control control, the method further includes: After confirming that a physical connection has been established between the host computer and the Ethernet 100Mbps box, it checks whether a communication connection has been established with the Ethernet 100Mbps box. The Ethernet 100Mbps box is used to establish a communication connection between the host computer and the vehicle ECU. If no communication connection is established with the Ethernet 100Mbps box, a hardware connection error message will be output on the Ethernet mirroring function control interface.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it causes the electronic device to perform the method as described in any one of claims 1 to 7.

9. A storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it causes the computer to perform the method as described in any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is run, it causes the electronic device to perform the method as described in any one of claims 1 to 7.