Device and method for testing time from awakening to available time of vehicle-mounted Ethernet

By establishing test devices and methods in the vehicle Ethernet, the signal transmission and time recording between the test terminal and the terminal under test solve the problem of difficulty in timely discovery of the time between the vehicle Ethernet wake-up and the network availability, and achieve the reduction of test costs and shortening of testing time. The effect of project production time.

CN118694680APending Publication Date: 2024-09-24CHINA FAW CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410896703.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing technology makes it difficult to promptly discover and optimize the time between in-vehicle Ethernet wake-up and network availability during the development process, resulting in high testing costs and extended project mass production time.

Method used

Provide a test device and method for in-vehicle Ethernet wake-up to available time. Through the connection between the test terminal and the terminal under test, sleep and wake-up signals are sent, and relevant time points are recorded to calculate the wake-up to available time and realize the CSC Testing and optimization of the wake-up process.

Benefits of technology

Discover and solve CSC wake-up problems in advance during the development process, reduce testing costs, shorten project mass production time, and improve development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694680A
    Figure CN118694680A
Patent Text Reader

Abstract

The invention discloses a device and a method for testing time from awakening to available time of a vehicle-mounted Ethernet, and belongs to the technical field of the vehicle-mounted Ethernet, and the device comprises a test end and a to-be-tested end which are connected with each other. The test end is at least used for sending a dormancy signal to the started to-be-tested end so as to enable the to-be-tested end to be dormant; starting and sending the test data packet to the dormant to-be-tested end by using a client in the terminal; and sending the wake-up signal to the sleep to-be-tested end. The to-be-tested end is at least used for being controlled to start up and starting a server in the to-be- After receiving the wake-up signal, starting to execute a wake-up action; and in the process of executing the wake-up action, recording a starting point time point when the to-be-tested end receives the wake-up signal and an ending point time point when the server receives the test data packet through an internal log system so as to calculate the time when the to-be-tested end is waken up to be available. According to the application, the test from the CSC wakeup to the network available time can be realized in the actual development process, the CSC wakeup problem can be found and solved in advance, and the test cost can be reduced and the project mass production time can be shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of vehicle-mounted Ethernet, and in particular to a testing device and method for waking up a vehicle-mounted Ethernet to an available time. Background Art

[0002] In recent years, with the continuous development of the automobile industry, a series of car functions such as automatic parking, adaptive cruise control, and assisted driving have been proposed one after another. In order to meet the stringent requirements of these functions on the transmission rate, stability, load rate and other aspects of the car network, automotive Ethernet came into being.

[0003] In practical applications, vehicle sleep and wake-up is an important part of the key function implementation of in-vehicle Ethernet and automotive electronic system management, mainly used for energy saving and extending battery life. Figure 1 This is a schematic diagram of a structure of an existing vehicle sleep wake-up implementation provided by an embodiment of the present invention, see Figure 1 , cockpit space center (CSC), intelligent communication console (ICC) and other electronic control units (ECU) communicate via CAN bus ( Figure 1 Indicated by double-arrow dashed lines) and Ethernet ( Figure 1 The vehicle dynamic stability control system (VDC) is connected to the vehicle dynamic control system (VDC). Figure 1 The multiple CAN and Ethernet shown correspond to the CAN bus interface and Ethernet interface corresponding to the VDC, ICC, CSC, and ECU (1-n); Figure 1 The ECU (1-n) shown indicates that the number of ECUs may be more than one.

[0004] Continue to see Figure 1 The implementation process of vehicle sleep and wake-up is as follows: when the vehicle is in sleep mode, VDC sends a sleep signal to notify CSC to sleep; when the vehicle wakes up, VDC sends a wake-up signal to notify CSC to wake up; after receiving the wake-up notification, CSC performs Ethernet reinitialization, such as link down, link up, TCP / UDP protocol stack recovery, etc. of the Ethernet link; until Ethernet reinitialization is completed, CSC Ethernet is available, and CSC Ethernet service is restored.

[0005] Obviously, the time required for CSC to wake up and become available on the network (usually 3 to 4 time intervals) will directly affect the user experience, such as how long it takes for users to access the Internet, watch online videos, listen to online radio, etc. after CSC wakes up. At present, the time from CSC waking up to network availability can usually only be measured in a professional laboratory after the system development is completed and measured by professional software. Problems are discovered late, the testing cost is high, and related problems cannot be discovered and optimized in time during the development process, which easily affects the project mass production time. Summary of the invention

[0006] The embodiment of the present invention provides a testing device and method for the wake-up time of an in-vehicle Ethernet, which can at least realize the test of the CSC wake-up time to the network available time during the development process, so as to discover and solve the CSC wake-up problem in advance, which is conducive to reducing the testing cost and shortening the project mass production time.

[0007] In a first aspect, an embodiment of the present invention provides a test device for waking up an in-vehicle Ethernet to an available time, comprising a test end and a test end that establish a connection;

[0008] The test end is at least used to send a sleep signal to the end to be tested after it is powered on, so that the end to be tested enters a sleep state; and start and use the first client inside itself to send a test data packet to the end to be tested in the sleep state; and send a wake-up signal to the end to be tested in the sleep state;

[0009] The end to be tested is at least used for controlled startup, starting the first server inside itself and switching the first server to background operation; and starting to execute the wake-up action after receiving the wake-up signal; and in the process of executing the wake-up action, recording the starting time point when the end to be tested receives the wake-up signal and the ending time point when the first server receives the test data packet through an internal log system, so as to calculate the wake-up to available time based on the starting time point and the ending time point.

[0010] Optionally, the sleep and wake-up port of the test end is connected to the sleep and wake-up port of the end to be tested via a first communication link, and the data transmission interface of the test end is connected to the data transmission interface of the end to be tested via a second communication link;

[0011] The test end is at least specifically used to send the sleep signal to the end to be tested after it is turned on through the first communication link, so that the end to be tested enters the sleep state; and to start and use the first client inside itself to send the test data packet to the end to be tested in the sleep state through the second communication link; and to send the wake-up signal to the end to be tested in the sleep state through the first communication link.

[0012] Optionally, in the process of receiving the sleep signal and entering the sleep state, the end to be tested is at least specifically used to perform a first Down process on the second communication link to ensure that the first server does not exit abnormally during the sleep process of the end to be tested.

[0013] Optionally, in the process of executing the wake-up action, the tested end is at least specifically used to record the starting time through the internal log system when receiving the wake-up signal; and, after the first driver of the tested end receives the wake-up signal, use the first driver to successively execute the second Down processing and the first Up processing on the second communication link, and record the execution time of the second Down processing and the first Up processing through the internal log system; and, when the first server resumes background operation and receives the test data packet, the end time is recorded through the internal log system.

[0014] In a second aspect, an embodiment of the present invention further provides a test device for waking up an in-vehicle Ethernet to an available time, comprising a test end and a test end that establish a connection;

[0015] The test end is at least used to enable the second server inside itself at any time before the end to be tested starts to perform the wake-up action; and send a sleep signal to the end to be tested after it is powered on, so that the end to be tested enters a sleep state; and send a wake-up signal to the end to be tested in the sleep state, and record the sending time of the wake-up signal; and obtain the receiving time of the test data packet, so as to calculate the wake-up to available time according to the sending time of the wake-up signal and the receiving time of the test data packet;

[0016] The end to be tested is at least used for controlled startup, starting the second client inside itself and switching the second client to background operation; and starting to execute the wake-up action after receiving the wake-up signal; and after successful wake-up, using the second client to send the test data packet to the test end.

[0017] Optionally, the sleep and wake-up port of the test end is connected to the sleep and wake-up port of the end to be tested via a first communication link, and the data transmission interface of the test end is connected to the data transmission interface of the end to be tested via a second communication link;

[0018] The test end is at least specifically used to send the sleep signal to the powered-on end under test through the first communication link, so that the end under test enters a sleep state; and send the wake-up signal to the end under test in the sleep state through the first communication link, and record the sending time of the wake-up signal;

[0019] The end to be tested is at least specifically configured to send the test data packet to the test end through the second communication link by using the second client after being awakened successfully.

[0020] Optionally, in the process of receiving the sleep signal and entering the sleep state, the end to be tested is at least specifically used to perform Down processing on the second communication link to ensure that the second client does not exit abnormally during the sleep process of the end to be tested.

[0021] Optionally, during any round of testing, when the end to be tested executes the wake-up action for more than a preset time, the current round of testing is terminated.

[0022] In a third aspect, an embodiment of the present invention further provides a method for testing vehicle Ethernet wake-up to available time, and the testing method is performed using the vehicle Ethernet wake-up to available time testing device described in the first aspect of the embodiment of the present invention, and the testing method at least includes:

[0023] After the end to be tested establishes a physical connection with the test end, the end to be tested is controlled to start up, start the first server inside itself and switch the first server to background operation;

[0024] The test end sends a sleep signal to the powered-on end to be tested, so that the end to be tested enters a sleep state;

[0025] The test end starts and uses the first client inside itself to send a test data packet to the end to be tested in the dormant state;

[0026] The test end sends a wake-up signal to the end to be tested in the sleep state;

[0027] The end to be tested starts to perform a wake-up action after receiving the wake-up signal;

[0028] During the process of executing the wake-up action, the end to be tested records the starting time point when the end to be tested receives the wake-up signal and the ending time point when the first server receives the test data packet through the internal log system, so as to calculate the wake-up to available time based on the starting time point and the ending time point.

[0029] In a fourth aspect, an embodiment of the present invention further provides a method for testing vehicle Ethernet wake-up to available time, and the testing method is performed using the vehicle Ethernet wake-up to available time testing device described in the second aspect of the embodiment of the present invention, and the testing method at least includes:

[0030] After the end to be tested establishes a physical connection with the test end, the end to be tested is controlled to start up, start the second client inside itself and switch the second client to background operation;

[0031] The test end sends a sleep signal to the powered-on end to be tested, so that the end to be tested enters a sleep state;

[0032] The test end sends a wake-up signal to the end to be tested in the sleep state, and records the sending time of the wake-up signal;

[0033] The testing end activates the second server within itself at any time before the tested end starts to perform the wake-up action;

[0034] The end to be tested starts to perform a wake-up action after receiving the wake-up signal;

[0035] After the end to be tested is successfully awakened, the end to be tested uses the second client to send the test data packet to the test end;

[0036] The test end obtains the reception time of the test data packet to calculate the wake-up to available time according to the sending time of the wake-up signal and the reception time of the test data packet.

[0037] The embodiment of the present invention provides a test device and method for waking up to available time of an in-vehicle Ethernet. After a connection is established between a test end and a test end, the test end is controlled to start up, start up its own internal first server and switch the first server to background operation; the test end sends a sleep signal to the test end after starting up, so that the test end enters a sleep state; the test end starts and uses its own internal first client to send a test data packet to the test end in a sleep state; the test end sends a wake-up signal to the test end in a sleep state; the test end starts to perform a wake-up action after receiving the wake-up signal; in the process of performing the wake-up action, the test end records the starting time point when it receives the wake-up signal and the end time point when the first server receives the test data packet through an internal log system, so as to calculate the wake-up to available time based on the starting time point and the end time point. In the test process of the above device, the test end can be a personal computer (PC) of a developer, and the test end is a CSC; therefore, the embodiment of the present invention can realize the test of the CSC wake-up to network available time in the actual development process, discover and solve the CSC wake-up problem in advance, and help reduce the test cost and shorten the project mass production time. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is a schematic diagram of a structure of an existing vehicle sleep wake-up implementation provided by an embodiment of the present invention;

[0039] Figure 2It is a structural schematic diagram of a test device for waking up an in-vehicle Ethernet to available time provided by an embodiment of the present invention;

[0040] Figure 3 This is a flow chart of interaction between a UDP client and a UDP server provided by an embodiment of the present invention;

[0041] Figure 4 It is a structural schematic diagram of another vehicle Ethernet wake-up to available time test device provided by an embodiment of the present invention;

[0042] Figure 5 This is a flow chart of interaction between a TCP client and a TCP server provided by an embodiment of the present invention;

[0043] Figure 6 It is a structural schematic diagram of another vehicle Ethernet wake-up to available time test device provided by an embodiment of the present invention;

[0044] Figure 7 is a flow chart of a method for testing vehicle Ethernet wake-up to available time provided by an embodiment of the present invention;

[0045] Figure 8 It is a flowchart of another method for testing the vehicle-mounted Ethernet wake-up to available time provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0047] Figure 2 is a schematic diagram of the structure of a test device for waking up an in-vehicle Ethernet to an available time provided by an embodiment of the present invention, such as Figure 2 As shown, the test device for waking up the in-vehicle Ethernet to an available time includes a test end 100 and a tested end 200 for establishing a connection.

[0048] The test end 100 is at least used to send a sleep signal to the tested end 200 after it is turned on, so that the tested end 200 enters a sleep state; and, start and use the first client inside itself to send a test data packet to the tested end 200 in a sleep state; and, send a wake-up signal to the tested end 200 in a sleep state.

[0049] The end to be tested 200 is at least used for controlled startup, starting the first server inside itself and switching the first server to background operation; and, starting to execute the wake-up action after receiving the wake-up signal; and, in the process of executing the wake-up action, recording the starting time point when the end to be tested 200 receives the wake-up signal and the ending time point when the first server receives the test data packet through the internal log system, so as to calculate the wake-up to available time based on the starting time point and the ending time point.

[0050] The test end 100 may be a PC of a developer, the end to be tested 200 may be a CSC, and the signal types of the sleep signal and the wake-up signal may be CAN signals. In addition, the first client may be a UDP client, and accordingly, the first server may be a UDP server, and the type of the test data packet may be a UDP data packet.

[0051] As a network performance testing tool, Iperf can test the maximum TCP and UDP bandwidth performance, and has a variety of parameters and UDP characteristics (the above parameters or characteristics can be adaptively adjusted according to the actual testing needs of the developer), and can also report bandwidth, delay jitter and data packet loss, etc. Therefore, in one implementation of this embodiment, the test end 100 starts and uses its own internal first client to send a test data packet to the test end 200 in a dormant state. Specifically, the PC end starts Iperf and uses it as a UDP client to send a UDP data packet to the CSC internal UDP server in a dormant state through Iperf.

[0052] Figure 3 is a flow chart of interaction between a UDP client and a UDP server provided by an embodiment of the present invention, see Figure 2 and Figure 3 For example, the specific working process of the vehicle Ethernet wake-up to available time test device provided in this embodiment in any round of testing may be as follows:

[0053] After the PC and CSC establish a physical connection, the CSC is turned on under control (that is, the CSC changes from the off state to the on state). After the CSC is turned on, the UDP server is started and put into the background to run (background running does not affect the normal startup of other programs, and because the UDP client of the PC has not been started at this time, the UDP server has been in a blocked state after executing the recvfrom() step, waiting to receive data transmission from the UDP client). The PC sends a sleep signal to the CSC. After receiving the sleep signal, the CSC performs a sleep action. After a period of time, the CSC enters the sleep state (this embodiment does not limit the time from the CSC receiving the sleep signal to the CSC entering the sleep state, and whether the CSC enters the sleep state can at least be confirmed by the CSC current value). The PC starts Iperf and uses it as a UDP client to send UDP data packets to the UDP server. At this time, the UDP server of the CSC cannot receive the UDP data packet sent by the UDP client of the PC because the CSC system is in sleep mode (specifically, continue to refer to Figure 3 , after executing the sendto() step, the UDP client can continue to send UDP data packets to the UDP server, but the UDP server can never receive the data request from the UDP client because the CSC is in sleep mode). The PC sends a wake-up signal to the CSC, and the CSC performs a wake-up action after receiving the wake-up signal; specifically, when the CSC receives the wake-up signal, it records this event and the corresponding time point (i.e., the starting time point when the test end 200 receives the wake-up signal) in its internal log system. Since UDP data transmission and reception do not require a connection to be established in advance, after the UDP server of the CSC resumes operation in the background, the UDP server can respond to the data request of the UDP data packet sent by the UDP client, and realize the data response by receiving the UDP data packet, processing the request, and executing the sendto() step. At the same time, the CSC records the end time point when the UDP server receives the UDP data packet through its own internal log system. Finally, the time from when the CSC wakes up to when the network is available is equal to the absolute value of the difference between the end time and the start time.

[0054] In summary, this embodiment can implement the test of the time from CSC wake-up to network availability in the actual development process, discover and solve the CSC wake-up problem in advance, and help reduce the test cost and shorten the project mass production time.

[0055] Based on the above embodiments or implementation modes, Figure 4 FIG. 1 is a schematic diagram of another vehicle Ethernet wake-up to available time test device provided by an embodiment of the present invention, see Figure 4 Optionally, the sleep wake-up port of the test end 100 is connected to the sleep wake-up port of the tested end 200 via a first communication link, and the data transmission interface of the test end 100 is connected to the data transmission interface of the tested end 200 via a second communication link.

[0056] The test end 100 is at least specifically used to send a sleep signal to the tested end 200 after it is turned on through the first communication link to put the tested end 200 into a sleep state; and to start and use its own internal first client to send a test data packet to the tested end 200 in the sleep state through the second communication link; and to send a wake-up signal to the tested end 200 in the sleep state through the first communication link.

[0057] The first communication link may be composed of a Universal Serial Bus (USB), CAN FD (CAN with Flexible Data-Rate) and a CAN bus; the second communication link may be an Ethernet link. Specifically, the data transmission port of the test end 100 may be connected to the first end of the CAN FD via the USB, and the second end of the CAN FD may be connected to the data transmission port of the test end 200 via the CAN bus.

[0058] In addition, during the actual testing process of CSC, the inventors found that if the terminal 200 to be tested that receives the sleep signal is not pre-processed, once the terminal 200 to be tested in the sleep state receives the wake-up signal and performs the wake-up action, the first server running in the background of the terminal 200 to be tested and following the terminal 200 to be tested into the sleep state is prone to abnormal exit. In view of this, optionally, in the process of receiving the sleep signal and switching to the sleep state, the terminal 200 to be tested is at least specifically used to perform the first Down processing on the second communication link to ensure that the first server does not exit abnormally during the sleep process of the terminal 200 to be tested. Among them, the specific implementation method of the terminal 200 to be tested performing the first Down processing on the second communication link can be that after the Ethernet driver of the CSC recognizes the sleep signal, it performs link down on the Ethernet link.

[0059] In one implementation of this embodiment, optionally, during the execution of the wake-up action, the end to be tested 200 is at least specifically used to record the start time through the internal log system when receiving the wake-up signal; and, after the first driver of the end to be tested 200 receives the wake-up signal, the first driver is used to successively execute the second Down process and the first Up process on the second communication link, and the execution time of the second Down process and the first Up process is recorded through the internal log system; and, when the first server resumes background operation and receives the test data packet, the end time is recorded through the internal log system. During any round of testing, when the end to be tested 200 executes the wake-up action for more than the preset time, this round of testing is terminated.

[0060] The preset time can be adaptively adjusted according to the actual test requirements of the developer or the laboratory standard, for example, it can be set to 30s.

[0061] It can be known that the first driver is the aforementioned Ethernet driver. Adaptively, after the first driver of the tested end 200 receives the wake-up signal, the first driver is used to successively perform the second Down processing and the first Up processing on the second communication link, and the specific implementation method of recording the execution time of the second Down processing and the first Up processing through the internal log system can be that after the CSC receives the wake-up signal, its internal Ethernet driver first executes link down on the second communication link, and then executes link up, and at the same time, the internal log system of the CSC records the specific time when the Ethernet driver executes link down and link up respectively; the advantage of such a setting is that by successively executing link down and link up on the second communication link through the Ethernet driver inside the CSC, it can ensure that the second communication link connected between the CSC and the PC is intact and unobstructed before the UDP server resumes background operation.

[0062] For example, the specific working process of the vehicle Ethernet wake-up to available time test device provided in this embodiment in any round of testing may be as follows:

[0063] After the PC and CSC establish physical connections through the first communication link and the second communication link respectively, the CSC is powered on under control. After the CSC is powered on, the UDP server is started and put into the background to run. The PC sends a sleep signal to the CSC through the first communication link. After receiving the sleep signal, the CSC performs a sleep action. After a period of time, the CSC enters a sleep state. During this process, the CSC needs to perform link down processing on the second communication link to ensure that the UDP server does not exit abnormally during the sleep process of the CSC. The PC starts Iperf and uses it as a UDP client. The UDP client sends a UDP data packet to the UDP server through the second communication link. At this time, the UDP server of the CSC cannot receive the UDP data packet sent by the UDP client of the PC because the CSC system is in sleep mode. PC sends a wake-up signal to CSC through the first communication link, and CSC performs a wake-up action after receiving the wake-up signal; specifically, when CSC receives the wake-up signal, it records the starting time of receiving the wake-up signal through the internal log system; after the Ethernet driver of CSC receives the wake-up signal, it uses the Ethernet driver to successively execute link down and link up on the second communication link, and records the execution time of link down and link up through the internal log system; when the UDP server resumes background operation and receives the UDP data packet, the end time of receiving the UDP data packet by the UDP server is recorded through the internal log system. Finally, the time when CSC wakes up to the network is available is equal to the absolute value of the difference between the end time and the start time. In any round of testing, when CSC executes the wake-up action for more than the preset time, this round of testing is terminated; it is understandable that if CSC executes the wake-up action for more than the preset time, it means that there is a problem with CSC that causes the wake-up failure. The developer can at least debug the end 200 to be tested based on the accurate time of each event recorded by the internal log system of CSC (such as the aforementioned start time, end time, the time when the Ethernet driver executes link down and link up on the second communication link, etc.).

[0064] In this way, developers can test the time from CSC wake-up to network availability in the actual development process according to the technical solution provided in this embodiment, which is convenient for developers to discover and solve CSC wake-up problems in advance according to the test results, which is conducive to reducing test costs and shortening project mass production time. At the same time, the vehicle Ethernet wake-up to available time test device provided in this embodiment is composed of PC and Iperf (Iperf is an open source program on the PC side), USB, CAN DF, CAN bus and other easily available components or software programs. The connection method between the components in the test device is simple, which is convenient for developers to assemble and test, and is conducive to improving the testing efficiency of developers.

[0065] Continue to see Figure 2The embodiment of the present invention further provides a test device for waking up an in-vehicle Ethernet to an available time, comprising a test end 100 and a test end 200 for establishing a connection.

[0066] The test end 100 is at least used to enable the second server inside itself at any time before the end 200 under test starts to perform the wake-up action; and, send a sleep signal to the end 200 under test after it is turned on, so that the end 200 under test enters a sleep state; and, send a wake-up signal to the end 200 under test in a sleep state, and record the sending time of the wake-up signal; and, obtain the receiving time of the test data packet, so as to calculate the wake-up to available time based on the sending time of the wake-up signal and the receiving time of the test data packet.

[0067] The tested end 200 is at least used for controlled startup, starting the second client inside itself and switching the second client to background operation; and, after receiving a wake-up signal, starting to execute a wake-up action; and after successful wake-up, using the second client to send a test data packet to the test end 100.

[0068] The test end 100 may be a PC of a developer, the end to be tested 200 is a CSC, and the signal types of the sleep signal and the wake-up signal may be CAN signals. In addition, the second client may be a TCP client, and the second server may be a TCP server, and the type of the test data packet may be a TCP data packet.

[0069] As a network performance testing tool, Iperf can test the maximum TCP and UDP bandwidth performance, and has multiple parameters and UDP characteristics, and can also report bandwidth, delay jitter and data packet loss, etc. Therefore, in one implementation of this embodiment, the test end 100 enables the second server inside itself at any time before the end to be tested 200 starts to perform the wake-up action. Specifically, the PC starts Iperf as the listening designated port of the TCP server at any time before the CSC starts to perform the wake-up action.

[0070] In another implementation of this embodiment, the specific implementation method of the test end 100 recording the sending time of the wake-up signal can be that the PC records the sending time of the wake-up signal through its own log system; the specific implementation method of the test end 100 obtaining the receiving time of the test data packet can be that the PC captures the sending and receiving log of the test data packet through WireShark to obtain the receiving time of the test data packet. Among them, WireShark is a network packet analysis tool that can be used to intercept various network data packets and display detailed information of the data packets. It is often used to locate various problems in the development and testing process. Wireshark uses WinPcap as an interface and can directly exchange data packets with the network card.

[0071] Figure 5 is a flow chart of the interaction between a TCP client and a TCP server provided by an embodiment of the present invention, see Figure 2 and Figure 5 For example, the specific working process of the vehicle Ethernet wake-up to available time test device provided in this embodiment in any round of testing may be as follows:

[0072] After the PC and CSC establish a physical connection, the CSC is powered on. The PC starts Iperf as the TCP server to listen to the designated port. After the CSC is powered on, the TCP client is started and switched to the background. At this time, the TCP client and the TCP server are connected through Figure 5 The TCP connection establishment process shown in the figure is used to achieve the connection. The PC sends a sleep signal to the powered-on CSC. After receiving the sleep signal, the CSC performs the sleep action. After a period of time, the CSC enters the sleep state. After the CSC enters the sleep state, the TCP client also enters the sleep state. At this time, the TCP connection between the TCP server and the TCP client is interrupted. After the TCP server completes the steps of socket(), bind(), listen(), and accept(), it is always in a blocked state waiting for the TCP client to be awakened, and then the TCP connection is reestablished through the three-way handshake process. The PC sends a wake-up signal to the CSC in the sleep state, and records the sending time of the wake-up signal through its own log system. After receiving the wake-up signal, the CSC starts to perform the wake-up action. After the CSC wakes up successfully, the TCP client that was originally in the sleep state wakes up. After the TCP client re-executes the steps of socket() and connect(), it re-establishes a connection with the TCP server of the PC through the three-way handshake. Further, the CSC uses the TCP client to send the TCP data packet to the PC. The PC captures the sending and receiving logs of the TCP data packet through WireShark to obtain the receiving time of the TCP data packet. Finally, the time from when the CSC wakes up to when the network is available is equal to the absolute value of the difference between the sending time of the wake-up signal and the receiving time of the TCP data packet.

[0073] In view of this, this embodiment can implement the test of the time from CSC wake-up to network availability during the actual development process, discover and solve the CSC wake-up problem in advance, and help reduce testing costs and shorten project mass production time.

[0074] It should be noted that according to Figure 5It can be seen that a TCP connection needs to go through a three-way handshake process before it can be established between a TCP server and a TCP client. Therefore, in order to establish a TCP connection, the TCP server needs to be started before the TCP client. In this way, in order to obtain the acquisition time of the TCP data packet, in the specific workflow of the aforementioned vehicle Ethernet wake-up to available time test device, the step of starting Iperf as a TCP server to listen to the designated port only needs to be executed at any time before the CSC wakes up, that is, to ensure that when the TCP client is awakened together with the CSC, the TCP server has completed the socket(), bind(), listen() and accept() steps, and has been in a blocked state waiting for the TCP client to be awakened, and then establish a TCP connection through the three-way handshake process.

[0075] For example, the specific working process of the vehicle Ethernet wake-up to available time test device provided in this embodiment in any round of testing may also be as follows:

[0076] After the PC and CSC establish a physical connection, the CSC is powered on under control. After the CSC is powered on, the TCP client is started and switched to the background. At this time, the TCP connection is not established because the TCP server is not started. The PC sends a sleep signal to the powered-on CSC. After receiving the sleep signal, the CSC performs the sleep action. After a period of time, the CSC enters the sleep state. After the CSC enters the sleep state, the TCP client also enters the sleep state. The PC starts Iperf as the designated listening port of the TCP server. At this time, the TCP client is in the sleep state. After the TCP server completes the steps of socket(), bind(), listen(), and accept(), it is always in a blocked state waiting for the TCP client to be awakened, and then establishes a TCP connection through a three-way handshake process. The PC sends a wake-up signal to the CSC in the sleep state, and records the sending time of the wake-up signal through its own log system. After receiving the wake-up signal, the CSC starts to perform the wake-up action. After the CSC is awakened successfully, the TCP client that was originally in the sleep state is awakened. The TCP client establishes a connection with the TCP server of the PC through a three-way handshake after executing the steps of socket() and connect(). Further, the CSC uses the TCP client to send TCP data packets to the PC. The PC uses WireShark to capture the TCP data packet sending and receiving logs to obtain the TCP data packet receiving time. Finally, the time from CSC waking up to network availability is equal to the absolute value of the difference between the sending time of the wake-up signal and the receiving time of the TCP data packet.

[0077] Based on the above embodiments or implementations with TCP connection, Figure 6FIG. 1 is a schematic diagram of a structure of another vehicle Ethernet wake-up to available time test device provided by an embodiment of the present invention, see Figure 6 Optionally, the sleep wake-up port of the test end 100 is connected to the sleep wake-up port of the tested end 200 via a first communication link, and the data transmission interface of the test end 100 is connected to the data transmission interface of the tested end 200 via a second communication link.

[0078] The test end 100 is at least specifically used to send a sleep signal to the powered-on end 200 under test via the first communication link to put the end 200 under test into a sleep state; and to send a wake-up signal to the end 200 under test in a sleep state via the first communication link and record the sending time of the wake-up signal.

[0079] The tested end 200 is at least specifically configured to send a test data packet to the testing end 100 via the second communication link using the second client after being awakened successfully.

[0080] The first communication link may be composed of USB, CAN FD and CAN bus; the second communication link may be an Ethernet link. Specifically, the data transmission port of the test end 100 may be connected to the first end of CAN FD via USB, and the second end of CAN FD may be connected to the data transmission port of the test end 200 via CAN bus.

[0081] In addition, during the actual testing process of CSC, the inventors found that if the end to be tested 200 that receives the sleep signal is not pre-processed, once the end to be tested 200 in the sleep state receives the wake-up signal and performs the wake-up action, the second client running in the background of the end to be tested 200 and following the end to be tested 200 into the sleep state is prone to abnormal exit. In view of this, optionally, in the process of receiving the sleep signal and switching to the sleep state, the end to be tested 200 is at least specifically used to perform Down processing on the second communication link to ensure that the second client does not exit abnormally during the sleep process of the end to be tested 200. Among them, the specific implementation method of the end to be tested 200 performing Down processing on the second communication link can be that after the Ethernet driver of the CSC recognizes the sleep signal, it performs link down on the Ethernet link.

[0082] In one implementation of this embodiment, optionally, in any round of testing, when the wake-up action performed by the tested terminal 200 exceeds a preset time, the current round of testing is terminated. The preset time can be adaptively adjusted according to the actual testing requirements of the developer or the laboratory standard, for example, it can be set to 35s.

[0083] For example, the specific working process of the vehicle Ethernet wake-up to available time test device provided in this embodiment in any round of testing may be as follows:

[0084] After the PC and CSC establish physical connections through the first communication link and the second communication link respectively, the CSC is powered on under control. After the CSC is powered on, the TCP client is started and switched to the background operation; at this time, the TCP connection is not established because the TCP server is not started. The PC sends a sleep signal to the powered-on CSC through the first communication link. After receiving the sleep signal, the CSC performs a sleep action, and after a period of time, the CSC enters a sleep state; during this process, the CSC needs to perform link down processing on the second communication link to ensure that the TCP client does not exit abnormally during the sleep process of the CSC, and after the CSC enters the sleep state, the TCP client also enters the sleep state. The PC starts Iperf as the designated listening port of the TCP server. At this time, the TCP client is in a sleep state. After the TCP server executes the socket(), bind(), listen() and accept() steps, it is always in a blocked state waiting for the TCP client to be awakened, and then establishes a TCP connection through a three-way handshake process. The PC sends a wake-up signal to the CSC in a sleep state through the first communication link, and records the sending time of the wake-up signal through its own log system. After receiving the wake-up signal, the CSC starts to perform the wake-up action. After the CSC is awakened successfully, the TCP client that was originally in a dormant state is awakened. The TCP client establishes a connection with the TCP server of the PC through a three-way handshake after executing the socket() and connect() steps. Further, the CSC uses the TCP client to send the TCP data packet to the PC through the second communication link. The PC captures the TCP data packet's sending and receiving logs through WireShark to obtain the receiving time of the TCP data packet. Finally, the time when the CSC wakes up to the network is available is equal to the absolute value of the difference between the sending time of the wake-up signal and the receiving time of the TCP data packet. In any round of testing, when the CSC performs the wake-up action for more than the preset time, the current round of testing is terminated; it is understandable that if the CSC performs the wake-up action for more than the preset time, it means that there is a problem with the CSC that causes the wake-up failure. The developer can at least debug the end 200 to be tested based on the PC's own log system and the accurate time of each event recorded by the sending and receiving log of the TCP data packet captured by WireShark (such as the aforementioned sending time, receiving time, the time when the TCP client and the TCP server establish a TCP connection through the three-way handshake process, etc.).

[0085] With this arrangement, developers can test the time it takes for CSC to wake up to the network in the actual development process according to the technical solution provided in this embodiment, which is convenient for developers to discover and solve CSC wake-up problems in advance according to the test results, which is conducive to reducing test costs and shortening project mass production time. At the same time, the vehicle Ethernet wake-up to available time test device provided in this embodiment is composed of a PC and easily available components or software programs such as Iperf, USB, CANDF, CAN bus, WireShark, etc. The connection method between the components in the test device is simple, which is convenient for developers to assemble and test, and is conducive to improving the testing efficiency of developers.

[0086] Based on the above embodiments or implementations with UDP connection, Figure 7 This is a flow chart of a method for testing the time from vehicle Ethernet wake-up to network availability provided by an embodiment of the present invention. This embodiment can be applied to single-round test and evaluation scenarios of vehicle Ethernet wake-up to network availability in various types of vehicles, such as fuel vehicles, pure electric vehicles, hybrid vehicles, plug-in hybrid vehicles, extended-range electric vehicles, etc. The test method can be, but is not limited to, executed by the vehicle Ethernet wake-up to network availability test device in the embodiment of the present invention as the execution subject, and the execution subject can be implemented in software and / or hardware. Figure 7 As shown, the test method for waking up the vehicle Ethernet to the available time specifically includes the following steps:

[0087] S1. After the end to be tested establishes a physical connection with the test end, the end to be tested is controlled to start up, start the first server inside itself and switch the first server to background operation.

[0088] Among them, when the end to be tested establishes a physical connection with the test end, the sleep wake-up port of the test end can be connected to the sleep wake-up port of the end to be tested through a first communication link, and the data transmission interface of the test end can be connected to the data transmission interface of the end to be tested through a second communication link.

[0089] S2. The test end sends a sleep signal to the powered-on end to be tested, so that the end to be tested enters a sleep state.

[0090] The above step S2 may specifically include:

[0091] (1) The test end sends a sleep signal to the powered-on end under test through the first communication link, so that the end under test enters a sleep state.

[0092] (2) In the process of receiving the sleep signal and entering the sleep state, the end to be tested performs a first Down process on the second communication link to ensure that the first server does not exit abnormally during the sleep process of the end to be tested.

[0093] S3. The test end starts and uses the first client inside itself to send a test data packet to the end to be tested that is in a dormant state.

[0094] The above step S3 may specifically be that the test end starts and uses the first client inside itself to send the test data packet to the test end in a dormant state through the second communication link.

[0095] S4: The test end sends a wake-up signal to the end to be tested that is in a dormant state.

[0096] The above step S4 may specifically be that the test end sends a wake-up signal to the end to be tested in a dormant state through the first communication link.

[0097] S5. After receiving the wake-up signal, the end to be tested starts to execute the wake-up action.

[0098] S6. During the wake-up action, the tested end records the starting time point when the tested end receives the wake-up signal and the ending time point when the first server receives the test data packet through the internal log system, so as to calculate the wake-up to available time based on the starting time point and the ending time point.

[0099] The above step S6 may specifically include:

[0100] (1) During the wake-up process, when the end-to-be-tested receives the wake-up signal, it records the starting time through the internal log system.

[0101] (2) After the first driver of the tested end receives the wake-up signal, the first driver is used to successively execute the second Down process and the first Up process on the second communication link, and the execution time of the second Down process and the first Up process is recorded through the internal log system.

[0102] (3) When the first server resumes background operation and receives the test data packet, the end time is recorded through the internal log system.

[0103] In an implementation of this embodiment, if in any round of testing, after executing step S6, when the end to be tested performs the wake-up action for more than a preset time, the current round of testing is terminated.

[0104] The technical solution provided in this embodiment is that after the end to be tested and the test end establish a physical connection, the end to be tested is controlled to start up, start the first server inside itself and switch the first server to background operation; the test end sends a sleep signal to the end to be tested after it is turned on, so that the end to be tested enters a sleep state; the test end starts and uses its own first client to send a test data packet to the end to be tested in a sleep state; the test end sends a wake-up signal to the end to be tested in a sleep state; the end to be tested starts to perform the wake-up action after receiving the wake-up signal; during the process of performing the wake-up action, the end to be tested records the starting time point when the end to be tested receives the wake-up signal and the ending time point when the first server receives the test data packet through the internal log system, so as to calculate the wake-up to available time based on the starting time point and the ending time point. It can be seen from this that this embodiment can realize the test of the CSC wake-up to network available time in the actual development process, discover and solve the CSC wake-up problem in advance, which is conducive to reducing the testing cost and shortening the project mass production time.

[0105] Based on the above embodiments or implementations with TCP connection, Figure 8 This is a flowchart of another vehicle Ethernet wake-up to available time test method provided by an embodiment of the present invention. This embodiment can be applied to single-round test evaluation scenarios of vehicle Ethernet wake-up to network available time in various vehicles, such as fuel vehicles, pure electric vehicles, hybrid vehicles, plug-in hybrid vehicles, extended-range electric vehicles, etc. This test method can be, but is not limited to, executed by the vehicle Ethernet wake-up to available time test device in the embodiment of the present invention as the execution subject, and the execution subject can be implemented in software and / or hardware. Figure 8 As shown, the test method for waking up the vehicle Ethernet to the available time specifically includes the following steps:

[0106] S7. After the end to be tested establishes a physical connection with the test end, the end to be tested is controlled to start up, start the second client inside itself and switch the second client to background operation.

[0107] Among them, when the end to be tested establishes a physical connection with the test end, the sleep wake-up port of the test end can be connected to the sleep wake-up port of the end to be tested through a first communication link, and the data transmission interface of the test end can be connected to the data transmission interface of the end to be tested through a second communication link.

[0108] S8. The test end sends a sleep signal to the powered-on end to be tested, so that the end to be tested enters a sleep state.

[0109] The above step S8 may specifically include:

[0110] (1) The test end sends a sleep signal to the powered-on end under test through the first communication link, so that the end under test enters a sleep state.

[0111] (2) When receiving the sleep signal and entering the sleep state, the end to be tested performs Down processing on the second communication link to ensure that the second client does not exit abnormally during the sleep process of the end to be tested.

[0112] S9. The test end sends a wake-up signal to the end to be tested that is in a dormant state, and records the sending time of the wake-up signal.

[0113] The above step S9 may specifically include that the test end sends a wake-up signal to the end to be tested in a dormant state through the first communication link, and records the sending time of the wake-up signal.

[0114] S10: The testing end activates the second server within itself at any time before the tested end starts to perform the wake-up action.

[0115] S11, the end to be tested starts to execute the wake-up action after receiving the wake-up signal.

[0116] S12: After the end to be tested is successfully awakened, the end to be tested uses the second client to send a test data packet to the test end.

[0117] The above step S12 may specifically include that after the end to be tested is successfully awakened, the end to be tested uses the second client to send a test data packet to the test end through the second communication link.

[0118] S13: The test end obtains the reception time of the test data packet to calculate the wake-up to availability time according to the sending time of the wake-up signal and the reception time of the test data packet.

[0119] In one implementation of this embodiment, if in any round of testing, after executing step S13, when the end to be tested performs a wake-up action for more than a preset time, this round of testing is terminated.

[0120] The technical solution provided in this embodiment is that after the end to be tested and the test end establish a physical connection, the end to be tested is controlled to start up, start the second client inside itself and switch the second client to background operation; the test end sends a sleep signal to the end to be tested after it is turned on, so that the end to be tested enters a sleep state; the test end sends a wake-up signal to the end to be tested in a sleep state, and records the sending time of the wake-up signal; the test end enables the second server inside itself at any time before the end to be tested starts to perform the wake-up action; the end to be tested starts to perform the wake-up action after receiving the wake-up signal; after the end to be tested is successfully awakened, the second client sends a test data packet to the test end; the test end obtains the receiving time of the test data packet, so as to calculate the wake-up to available time according to the sending time of the wake-up signal and the receiving time of the test data packet. It can be seen that this embodiment can realize the test of the time from CSC wake-up to network availability in the actual development process, discover and solve the CSC wake-up problem in advance, and help reduce the test cost and shorten the project mass production time.

[0121] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A test device for waking up an in-vehicle Ethernet to an available time, characterized in that: It includes a test end and a test end for establishing a connection; The test end is at least used to send a sleep signal to the end to be tested after it is powered on, so that the end to be tested enters a sleep state; and start and use the first client inside itself to send a test data packet to the end to be tested in the sleep state; And, sending a wake-up signal to the end to be tested in the sleep state; The end to be tested is at least used for controlled startup, starting the first server inside itself and switching the first server to background operation; and starting to execute the wake-up action after receiving the wake-up signal; Furthermore, during the execution of the wake-up action, the starting time point when the tested end receives the wake-up signal and the ending time point when the first server receives the test data packet are recorded through the internal log system, so as to calculate the wake-up to available time based on the starting time point and the ending time point.

2. The testing device according to claim 1, characterized in that: The sleep and wake-up port of the test end is connected to the sleep and wake-up port of the end to be tested via a first communication link, and the data transmission interface of the test end is connected to the data transmission interface of the end to be tested via a second communication link; The test end is at least specifically used to send the sleep signal to the powered-on end under test through the first communication link, so that the end under test enters the sleep state; and start and use the first client inside itself to send the test data packet to the end under test in the sleep state through the second communication link; And, sending the wake-up signal to the terminal to be tested in the sleep state through the first communication link.

3. The testing device according to claim 1, characterized in that: In the process of receiving the sleep signal and switching to the sleep state, the end to be tested is at least specifically used to perform a first Down process on the second communication link to ensure that the first server does not exit abnormally during the sleep process of the end to be tested.

4. The testing device according to claim 1, characterized in that: In the process of executing the wake-up action, the end to be tested is at least specifically used to record the starting time through the internal log system when receiving the wake-up signal; And, after the first driver of the tested end receives the wake-up signal, the first driver is used to successively perform a second Down process and a first Up process on the second communication link, and the execution time of the second Down process and the first Up process is recorded through the internal log system; And, when the first server resumes background operation and receives the test data packet, the end time is recorded through the internal log system.

5. A test device for waking up an in-vehicle Ethernet to an available time, characterized in that: It includes a test end and a test end for establishing a connection; The test end is at least used to enable the second server inside itself at any time before the end to be tested starts to perform the wake-up action; and send a sleep signal to the end to be tested after it is powered on, so that the end to be tested enters a sleep state; and send a wake-up signal to the end to be tested in the sleep state, and record the sending time of the wake-up signal; and obtaining a reception time of the test data packet to calculate the wake-up to available time according to the sending time of the wake-up signal and the receiving time of the test data packet; The end to be tested is at least used for controlled startup, starting the second client inside itself and switching the second client to background operation; and starting to execute the wake-up action after receiving the wake-up signal; And, after the wake-up is successful, the test data packet is sent to the test end by using the second client.

6. The testing device according to claim 5, characterized in that: The sleep and wake-up port of the test end is connected to the sleep and wake-up port of the end to be tested via a first communication link, and the data transmission interface of the test end is connected to the data transmission interface of the end to be tested via a second communication link; The test end is at least specifically used to send the sleep signal to the powered-on end under test through the first communication link, so that the end under test enters a sleep state; and send the wake-up signal to the end under test in the sleep state through the first communication link, and record the sending time of the wake-up signal; The end to be tested is at least specifically configured to send the test data packet to the test end through the second communication link by using the second client after being awakened successfully.

7. The testing device according to claim 5, characterized in that: In the process of receiving the sleep signal and switching to the sleep state, the end to be tested is at least specifically used to perform Down processing on the second communication link to ensure that the second client does not exit abnormally during the sleep process of the end to be tested.

8. The testing device according to claim 1 or 5, characterized in that: During any round of testing, when the end to be tested executes the wake-up action for more than a preset time, the current round of testing is terminated.

9. A method for testing the wake-up time of an in-vehicle Ethernet, characterized in that: The test method is performed using the vehicle Ethernet wake-up to available time test device according to claim 1, and the test method at least includes: After the end to be tested establishes a physical connection with the test end, the end to be tested is controlled to start up, start the first server inside itself and switch the first server to background operation; The test end sends a sleep signal to the powered-on end to be tested, so that the end to be tested enters a sleep state; The test end starts and uses the first client inside itself to send a test data packet to the end to be tested in the dormant state; The test end sends a wake-up signal to the end to be tested in the sleep state; The end to be tested starts to perform a wake-up action after receiving the wake-up signal; During the process of executing the wake-up action, the end to be tested records the starting time point when the end to be tested receives the wake-up signal and the ending time point when the first server receives the test data packet through the internal log system, so as to calculate the wake-up to available time based on the starting time point and the ending time point.

10. A method for testing the wake-up time of an in-vehicle Ethernet, characterized in that: The test method is performed using the vehicle Ethernet wake-up to available time test device according to claim 5, and the test method at least includes: After the end to be tested establishes a physical connection with the test end, the end to be tested is controlled to start up, start the second client inside itself and switch the second client to background operation; The test end sends a sleep signal to the powered-on end to be tested, so that the end to be tested enters a sleep state; The test end sends a wake-up signal to the end to be tested in the sleep state, and records the sending time of the wake-up signal; The testing end activates the second server within itself at any time before the tested end starts to perform the wake-up action; The end to be tested starts to perform a wake-up action after receiving the wake-up signal; After the end to be tested is successfully awakened, the end to be tested uses the second client to send the test data packet to the test end; The test end obtains the reception time of the test data packet to calculate the wake-up to available time according to the sending time of the wake-up signal and the reception time of the test data packet.

Citation Information

Cited By

  • Selective activation of dual-standard communication units in vehicle ecus

    EP4723559A1