Communication transmission connection detection method, tested end and test end

By establishing a long connection between the terminal under test and the testing terminal and sending keep-alive messages, it solves the problem of being unable to directly detect the keep-alive mechanism of the terminal under test, achieves fast and effective communication connection detection, and improves detection efficiency and stability. sex.

CN118764526APending Publication Date: 2024-10-11GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411040131.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Technical personnel cannot directly detect whether the terminal under test has a keep-alive mechanism, which affects the stability and efficiency of the communication connection.

Method used

By timing the preset duration after establishing a long connection, it is determined whether data interaction occurs, and a keep-alive message is sent when no interaction occurs, so that the test end can detect whether the end under test has a keep-alive mechanism for communication transmission connections.

Benefits of technology

It achieves rapid and effective detection of the keep-alive mechanism of the terminal under test, promptly discovers performance defects, and improves the stability and efficiency of communication connection detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764526A_ABST
    Figure CN118764526A_ABST
Patent Text Reader

Abstract

The invention relates to the field of communication transmission testing, and provides a communication transmission connection detection method, a tested end and a testing end. The method specifically comprises the steps that after it is determined that long connection with a test end is successfully established, timing of a preset duration is conducted, and whether data interaction occurs in the long connection within the preset duration or not is judged; and sending a keep-alive message to the test end in response to the fact that no data interaction occurs within the preset duration, so that the test end detects whether the tested end has a keep-alive mechanism of communication transmission connection according to whether the keep-alive message is received or not. According to the technical scheme provided by the embodiment of the invention, the keep-alive mechanism of the detected end can be quickly and effectively detected, and the performance defect of the detected end can be found in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication processing technology, and in particular to a method for detecting a communication transmission connection, a tested end, and a testing end. Background Art

[0002] With the continuous accumulation of science and technology and the continuous increase in social needs, various smart functions in vehicles are gradually becoming more perfect, providing users with various intelligent experiences, and these intelligent experiences require various hardware devices to support them.

[0003] In addition to the correct hardware connection between different devices, it is also necessary to ensure the stability of communication. Therefore, how to detect the communication connection has become one of the key points of research for technicians in related fields. Summary of the invention

[0004] In view of this, the purpose of the present application is to propose a communication transmission connection detection method, a tested end and a testing end, so as to solve the problem that technicians cannot directly detect whether the tested end has a keep-alive mechanism.

[0005] Based on the above purpose, the first aspect of the present application provides a method for detecting a communication transmission connection, which is applied to a tested end and includes:

[0006] After determining that a persistent connection with the test end is successfully established, a preset time duration is counted to determine whether data interaction occurs during the persistent connection within the preset time duration;

[0007] In response to no data interaction occurring within a preset time period, a keep-alive message is sent to the test end, so that the test end detects whether the tested end has a keep-alive mechanism for the communication transmission connection according to whether the keep-alive message is received.

[0008] A second aspect of the present application provides another method for detecting a communication transmission connection, which is applied to a test end, and the method includes:

[0009] After establishing a long connection with the tested end, determine whether a keep-alive message sent by the tested end is received after a preset time;

[0010] In response to a keep-alive message received after a preset time period, determining that the tested end has a keep-alive mechanism for the communication transmission connection; or,

[0011] In response to not receiving a keep-alive message after a preset period of time, it is determined that the tested end does not have a keep-alive mechanism for the communication transmission connection.

[0012] Based on the same purpose, the third aspect of the present application provides a communication transmission connection detection device, which is applied to a tested end and includes:

[0013] The data interaction judgment module is used to determine whether data interaction occurs during the preset time period after the long connection is successfully established with the test end;

[0014] The keep-alive message sending module is used to send a keep-alive message to the test end in response to no data interaction within a preset time, so that the test end can detect whether the tested end has a keep-alive mechanism for the communication transmission connection according to whether the keep-alive message is received.

[0015] A fourth aspect of the present application provides another communication transmission connection detection device, which is applied to a test end and includes:

[0016] A keep-alive message judgment module is used to determine whether a keep-alive message sent by the tested end is received after a preset time after establishing a long connection with the tested end;

[0017] A keep-alive mechanism determination module, configured to determine, in response to a keep-alive message received after a preset time period, whether the tested end has a keep-alive mechanism for the communication transmission connection; or

[0018] In response to not receiving a keep-alive message after a preset period of time, it is determined that the tested end does not have a keep-alive mechanism for the communication transmission connection.

[0019] Based on the same purpose, the fifth aspect embodiment of the present application also provides a tested end, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the communication transmission connection detection method provided in the first aspect embodiment of the present application is implemented.

[0020] The sixth aspect embodiment of the present application also provides a test end, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the communication transmission connection detection method provided in the second aspect embodiment of the present application is implemented.

[0021] Based on the same purpose, the seventh aspect embodiment of the present application also provides a vehicle, which is provided with a tested end provided by the fifth aspect embodiment of the present application, for implementing a communication transmission connection detection method provided by the first aspect embodiment of the present application.

[0022] As can be seen from the above, in the technical solution of the embodiment of the present application, after the tested end determines that a long connection is successfully established with the test end, a preset time is counted to determine whether data interaction occurs in the long connection within the preset time, and the condition for triggering the keep-alive mechanism can be judged on the basis of the long connection, and the criterion can help detect the keep-alive mechanism; then in response to the absence of data interaction within the preset time, a keep-alive message is sent to the test end, so that the test end detects whether the tested end has a keep-alive mechanism for the communication transmission connection according to whether the keep-alive message is received. The keep-alive message sent by the tested end can enable the test end to determine that the tested end has a keep-alive mechanism. This detection method can effectively overcome the problem that technicians cannot directly control the tested end to send a keep-alive message to verify whether its keep-alive mechanism is complete. The keep-alive mechanism of the tested end is triggered by the non-interactive timing of the long connection between the test end and the tested end, and the keep-alive mechanism of the tested end is effective. The keep-alive mechanism of the tested end can be quickly and effectively detected, and the performance defects of the tested end can be discovered in time, ensuring the existence of the keep-alive mechanism also improves the stability and efficiency of communication connection detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0024] Figure 1 A schematic diagram of a keep-alive mechanism provided in an embodiment of the present application;

[0025] Figure 2 A flow chart of a method for detecting a communication transmission connection provided in an embodiment of the present application;

[0026] Figure 3 A flow chart of a method for detecting a communication transmission connection provided in an embodiment of the present application;

[0027] Figure 4A A schematic diagram of a keep-alive mechanism detection provided in an embodiment of the present application;

[0028] Figure 4B A schematic diagram of bus environment configuration information provided in an embodiment of the present application;

[0029] Figure 5 A schematic diagram of the structure of the tested end provided in the embodiment of the present application;

[0030] Figure 6 A schematic diagram of the structure of the test terminal provided in the embodiment of the present application;

[0031] Figure 7A schematic diagram of an electronic device corresponding to a tested end or a testing end provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0033] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0034] Before explaining the embodiments of the present application, some basic concepts are introduced first. A short connection refers to a connection established immediately when the communicating parties have data interaction. After the data is sent and received, the connection is disconnected, that is, each connection only completes the interaction of one business. Different from a short connection, a long connection can refer to a communication connection mode in which multiple data packets are continuously sent on a connection, and the connection state remains unchanged in the absence of business interaction. Long connections are mostly used for frequent operations and point-to-point communications. Since each establishment of a communication connection requires request confirmation or verification from both communicating parties, if there is no data interaction and the connection is disconnected, restarting the connection requires re-requesting confirmation or verification, affecting the efficiency of communication and interaction. For this reason, the continuous connection characteristics of long connections reflect great advantages. Long connections can be applied to different communication protocols depending on the specific application scenarios in practice, including but not limited to TCP (Transmission Control Protocol), HTTP (Hypertext Transfer Protocol), UDP (User Datagram Protocol) and QUIC (Quick UDP Internet Connections, a low-latency Internet transmission protocol based on UDP), etc., which are not listed exhaustively here.

[0035] It should be noted that, in the state of a long connection, if there is no business data interaction for a certain period of time, in order to ensure the stability of the long connection, the two parties of the long connection need to send detection data packets to each other to detect whether the link remains active, so as to confirm whether the long connection is disconnected. This process is called keep-alive detection. Figure 1 The figure shows a schematic diagram of the keep-alive mechanism for long connections. The long connection between end A and end B can interact with each other in process ① and process ②. Taking TCP communication as an example, process ① is TCP DATA (TCP data) sent by end A to end B, and process ② is that end B returns a TCP ACK (Acknowledge character) to end A after receiving the data. When the keep-alive timer finds that there is no data interaction for a certain period of time in the long connection between end A and end B, in order to ensure the stability of the long connection, end A will send a TCP Keep Alive (TCP keep-alive message) to end B, that is, Figure 1 When end B receives the keep-alive message sent by end A, end B will feedback a TCP Keep Alive ACK (TCP keep-alive confirmation message) to end A, that is, Figure 1 ④ process in. Thereby, end A confirms that the long connection with end B remains active. This method is often used when end A confirms to end B whether the long connection is stable. However, this method cannot verify whether end A has a keep-alive mechanism. To solve the above problems, an embodiment of the present application proposes a method for detecting a communication transmission connection, which is as follows.

[0036] Figure 2 A method for detecting a communication transmission connection provided in an embodiment of the present application can be applied to the case of performing communication transmission detection on an electronic controller installed inside a vehicle. The method for detecting a communication transmission connection provided in an embodiment of the present application can be performed by a detection device for a communication transmission connection, which can be set in the tested end in the form of hardware and / or software. Figure 2 , the method provided in the embodiment of the present application comprises the following steps:

[0037] Step 110: After determining that the long connection with the test end is successfully established, a preset time is counted to determine whether data interaction occurs in the long connection within the preset time;

[0038] Among them, the tested end can be the party of the communication transmission connection to be detected, and correspondingly, the test end can be the other party used to detect the tested end. The tested end can be any hardware and / or software that needs to perform communication detection, for example, it can include but is not limited to any form of processor, memory and I / O (Input / Output) equipment, etc., and in the application scenario of the present application, it can be any electronic controller (Electronic Control Unit, ECU) set on the vehicle. The test end is used to detect the communication connection of the tested end, and the test end can be any hardware and / or software that supports the communication connection. For example, a terminal device such as a personal computer (Personal Computer, PC) or a tablet computer can be used as a test end. The embodiment of the present application does not limit the carrier form of the tested end and the test end.

[0039] In the embodiment of the present application, after the tested end has established a long connection with the test end, it performs timing of a preset duration. During the timing of the preset duration, the tested end can confirm whether data interaction occurs in the long connection, which is used to provide a criterion for the detection of subsequent communication transmission connections. The timing process of this preset duration can correspond to the timing process of the keep-alive timer in the long connection keep-alive mechanism. Among them, the preset duration can be different according to the different communication protocols used by the long connection. For example, the keep-alive timing duration of a TCP long connection is 5 seconds. It can also be set by relevant technical personnel according to actual conditions or experience when performing detection. The embodiment of the present application does not limit this.

[0040] Step 120: In response to no data interaction occurring within a preset time period, a keep-alive message is sent to the test end, so that the test end detects whether the tested end has a keep-alive mechanism for the communication transmission connection according to whether the keep-alive message is received.

[0041] Among them, the keep-alive message is as follows Figure 1As described in the keep-alive mechanism of the medium and long connection, when the two parties of the long connection do not have any data interaction during the keep-alive timing, the keep-alive mechanism triggers one of the parties to send a keep-alive message to the other party, and the other party feeds back a keep-alive confirmation message based on the keep-alive message, thereby confirming that the long connection has not been disconnected. In an embodiment of the present application, if no data interaction occurs within a preset time, the tested end can send a keep-alive message to the test end, thereby helping the test end to confirm whether the tested end has a keep-alive mechanism for a long connection based on whether the keep-alive message is received. It can be understood that if the test end successfully receives the keep-alive message sent by the tested end, it proves that the absence of data interaction within the preset time successfully triggers the keep-alive mechanism of the tested end, so that the tested end sends a keep-alive message in order to detect whether the long connection is stable and not disconnected, which proves that the tested end has a keep-alive mechanism for a long connection. On the contrary, if the test end does not receive the keep-alive message sent by the tested end, it means that the lack of data interaction within the preset time did not trigger the tested end to send out a keep-alive message, that is, the tested end does not have a keep-alive mechanism for long connections.

[0042] As Figure 1 As shown in the figure, the current application of the keep-alive mechanism for long connections is to detect whether the long connection is stable and not disconnected. The prerequisite for applying this mechanism is that the party that can send the keep-alive message must have the keep-alive mechanism. In reality, for example, in the automobile manufacturing industry, a large number of software and hardware are integrated inside the car, forming a huge intelligent system that is interconnected. If the communication connection is disconnected, it will cause the execution of the function to fail and even affect the safety of the vehicle. Therefore, before detecting whether the communication parties are stably connected, it is more important to detect whether these software and hardware have a keep-alive mechanism. If the lack of the keep-alive mechanism can be discovered in time during the quality inspection process, the software and hardware can be replaced or repaired immediately to ensure the normal production of the vehicle.

[0043] In a specific implementation, the tested end can be any ECU built into the vehicle. In order to detect whether the ECU has a keep-alive mechanism, that is, it can normally send a keep-alive message, the vehicle ECU and the test end establish a long connection, and the vehicle ECU is tested according to the keep-alive timing in the keep-alive mechanism. Specifically, the computer of the test end is connected to the vehicle ECU by hardware (for example, it can be through Ethernet, field bus, etc.), and a TCP long connection is established between a simulation ECU and the vehicle ECU through the computer simulation. The construction method can be to confirm the successful establishment of the TCP long connection between the simulation ECU and the vehicle ECU through the TCP handshake process, and the keep-alive duration is timed after the TCP long connection is successfully established. If the vehicle configures the keep-alive mechanism for the vehicle ECU during the production process, then no data interaction occurs during the timing process, which will cause the vehicle ECU to send a keep-alive message to the simulation ECU of the computer. When the simulation ECU receives the keep-alive message sent by the vehicle ECU, it can be proved that the vehicle ECU has a keep-alive mechanism; on the contrary, if the simulation ECU does not receive the keep-alive message sent by the vehicle ECU, it is proved that the vehicle ECU does not have a keep-alive mechanism.

[0044] In the technical solution of the embodiment of the present application, after the tested end determines that a long connection is successfully established with the test end, a preset time is counted to determine whether data interaction occurs in the long connection within the preset time, and the condition for triggering the keep-alive mechanism can be judged on the basis of the long connection, and the criterion can be helpful for detecting the keep-alive mechanism; then, in response to the absence of data interaction within the preset time, a keep-alive message is sent to the test end, so that the test end detects whether the tested end has a keep-alive mechanism for the communication transmission connection according to whether the keep-alive message is received. The keep-alive message sent by the tested end can enable the test end to determine that the tested end has a keep-alive mechanism. This detection method can effectively overcome the problem that technicians in reality cannot directly control the tested end to send keep-alive messages to verify whether its keep-alive mechanism is complete. The keep-alive mechanism of the tested end is triggered to take effect by the non-interactive timing of the long connection between the test end and the tested end, and the keep-alive mechanism of the tested end can be quickly and effectively detected, and the performance defects of the tested end can be discovered in time, thus ensuring the existence of the keep-alive mechanism and improving the stability and efficiency of communication connection detection.

[0045] In an optional implementation, after determining that the long connection with the test end is successfully established in step 110, timing of a preset time length includes:

[0046] Step 111: Receive a handshake request message sent by the test end.

[0047] Step 112: Send a handshake approval message to the test end according to the handshake request message, so that the test end feeds back a handshake confirmation message.

[0048] Among them, the handshake application message, handshake consent message and handshake confirmation message are respectively the verification messages in the three-way handshake link required in the process of establishing a long connection. On the basis of hardware connection, the test end and the tested end send a handshake application message to the tested end. After receiving the handshake application message, the tested end feeds back a handshake consent message to the test end, thereby proving that the tested end accepts the application for establishing a long connection sent by the test end. After receiving the handshake consent message sent by the tested end, the test end feeds back a handshake confirmation message to the tested end to confirm that the tested end agrees to the handshake.

[0049] Step 113: According to the received handshake confirmation message, it is determined that the long connection with the test end is successfully established, and a preset time is counted.

[0050] When the tested end receives the handshake confirmation message, it determines that the long connection between the test end and the tested end is successfully established. After the long connection is successfully established, that is, after the tested end receives the handshake confirmation message, the timing is started to detect whether there is data interaction within the preset time after the timing starts.

[0051] In the above implementation, a long connection is established through a three-way handshake process, and then timing of a preset duration is performed. The moment when the tested end receives the handshake confirmation message of the last handshake is taken as the starting moment, and the established long connection is timed to provide a timing basis for detecting whether data interaction occurs in the long connection. At the same time, it also conforms to the role of the keep-alive timer in the keep-alive mechanism of the long connection, which helps to judge whether the tested end has a keep-alive mechanism.

[0052] In an optional implementation, before receiving the handshake request message sent by the test end, the method may include:

[0053] Y1. Receive the configuration information of the tested end sent by the testing end.

[0054] Among them, the configuration information of the tested end can be parameter information for communication configuration of the hardware device of the tested end. It is understandable that before the tested end and the test end communicate, it is necessary to ensure that the hardware connection between the tested end and the test end matches the communication interface or address correctly to ensure that the basic conditions for communication are complete. The configuration information of the tested end can include the Internet Protocol Address (IP address) of the test end and the test communication port number (port number of the test end) to determine which IP address and port of the test end the tested end sends data to.

[0055] Y2. Perform synchronization configuration according to the configuration information of the tested end; wherein the configuration information of the tested end includes the Internet Protocol address of the test end and the test communication port number.

[0056] The communication configuration process needs to be performed before establishing a long connection, that is, before receiving the handshake request message sent by the test end, to ensure the basic conditions for establishing a long connection. Similarly, the test end also needs to configure the relevant information of the tested end before establishing a long connection, such as the IP address and communication port number of the tested end, so that the test end can determine which IP address and port to send data to.

[0057] In the above implementation, the tested end is configured before the tested end can receive the handshake request message from the test end, that is, before the long connection is established. The purpose is to provide a basic environment for maintaining normal communication between the tested end and the test end, thereby ensuring the stability of the long connection creation process and providing a stable communication environment for the detection process of the keep-alive mechanism.

[0058] In an optional implementation, the tested end communicates with the bus communication device via Ethernet, and the bus communication device communicates with the test end via a serial port.

[0059] Among them, the bus communication device can be a hardware device used to communicate between the tested end and the test end. It is understandable that the tested end and the test end are prone to being unable to connect directly when making hardware connections, or the hardware interfaces of the two are different. Therefore, the bus communication device is used as an intermediate medium to build a communication bridge between the tested end and the test end. The bus communication device can use hardware with a bus development environment such as CANoe.

[0060] In a specific implementation, continuing the previous example, the vehicle ECU as the tested end is connected to the CANoe device through Ethernet, and the CANoe device can be connected to the computer as the test end through a serial bus interface (such as USB, etc.), thereby constructing the hardware foundation for effective communication connection between the tested end and the test end. Using the bus communication device as the intermediate medium for the hardware connection between the tested end and the test end ensures that the tested end and the test end have a communication environment that can interact normally, which also provides a stable foundation for the detection of communication transmission connections and the detection of keep-alive mechanisms.

[0061] Figure 3 Another communication transmission connection detection method provided in the embodiment of the present application can be applied to the detection of communication transmission of an electronic controller installed inside a vehicle. The communication transmission connection detection method provided in the embodiment of the present application can be performed by a communication transmission connection detection device, which can be set in the test end by hardware and / or software, for example, in a terminal device such as a personal computer. Figure 3 , the method provided in the embodiment of the present application comprises the following steps:

[0062] Step 210: After establishing a long connection with the tested end, determine whether a keep-alive message sent by the tested end is received after a preset time.

[0063] Among them, after the test end establishes a long connection with the tested end, it detects whether the keep-alive message sent by the tested end is received within a preset time length. Combined with the contents described in the aforementioned embodiments of the present application, this embodiment aims to determine whether the test end has a keep-alive mechanism by triggering the keep-alive message sent by the tested end to the test end. Therefore, after the long connection is established between the test end and the tested end, it is necessary to be able to trigger the condition that the tested end actively sends a keep-alive message to the test end, and the condition is that no data interaction occurs between the test end and the tested end within the preset time length. In other words, if the tested end has a keep-alive mechanism, then, after the preset time length when no data interaction occurs, the tested end should send a keep-alive message to the test end. Therefore, the test end can detect whether the keep-alive message sent by the tested end is received after the preset time length, and then determine whether the tested end has a keep-alive mechanism. Of course, the preset time length is the same as described in the aforementioned embodiments, and can be different according to the preset of the communication protocol, or can be set by relevant technical personnel.

[0064] Step 220: In response to a keep-alive message received after a preset time period, determine that the tested end has a keep-alive mechanism for the communication transmission connection.

[0065] If the test end receives a keep-alive message sent by the tested end after a preset time, it can be determined that the tested end has a keep-alive mechanism.

[0066] Alternatively, step 230 , in response to not receiving a keep-alive message after a preset period of time, determining that the tested end does not have a keep-alive mechanism for the communication transmission connection.

[0067] In contrast to step 220, if the testing end does not receive the keep-alive message sent by the tested end after the preset time period, it can be determined that the tested end does not have a keep-alive mechanism.

[0068] It should be noted that, as Figure 3 As shown, the above step 220 and step 230 are two parallel judgment situations. The steps here are only used to explain the judgment logic, and are not intended to limit the execution order of the two.

[0069] In a specific example, continuing with the previous example, the computer as the test end and the vehicle ECU as the tested end first establish a long connection. After the long connection is successfully established, the test end performs timing for a preset time. If a keep-alive message sent by the vehicle ECU is received after the preset time, it means that the vehicle ECU has a keep-alive mechanism; conversely, if no keep-alive message sent by the vehicle ECU is received after the preset time, it means that the vehicle ECU does not have a keep-alive mechanism.

[0070] In the technical solution of the embodiment of the present application, after establishing a long connection with the measured end, it is determined whether a keep-alive message sent by the measured end is received after a preset time period. Based on the triggering condition of the keep-alive mechanism, the keep-alive message of the measured end after the preset time period is detected, and according to whether the keep-alive message sent by the measured end to the test end is actually received, it is determined whether the measured end has a keep-alive mechanism. The method of the embodiment of the present application can effectively solve the shortcoming of the prior art that the keep-alive mechanism of the measured end cannot be directly detected, and provides a fast and effective protection mechanism detection method, which helps to timely discover performance defects of the measured end.

[0071] In an optional implementation manner, after establishing a long connection with the measured end in step 210, determining whether a keep-alive message sent by the measured end is received after a preset time period may include:

[0072] Step 211: After the long connection is established, data transmission to the tested end is prohibited within a preset time period.

[0073] As described above, the triggering condition of the long connection keep-alive mechanism is that no data interaction occurs in the long connection within a preset time. Therefore, after the long connection is established, the test end can be prohibited from sending data to the tested end, which will not cause the tested end to feed back data to the test end.

[0074] Step 212: After a preset time period, determine whether a keep-alive message sent by the tested end is received.

[0075] If no data transmission interaction occurs within a preset time period, the start of the keep-alive mechanism can be triggered, so that the test end can detect whether the tested end sends a keep-alive message after the preset time period.

[0076] Continuing with the previous example, when the long connection between the simulated ECU and the vehicle ECU is successfully established, the computer controls the simulated ECU not to send any data to the vehicle ECU, nor to receive any data fed back by the ECU, in the hope of triggering the vehicle ECU to start the keep-alive mechanism and actively send a keep-alive message to the simulated ECU, so as to determine whether the vehicle ECU has a keep-alive mechanism.

[0077] In the above implementation, after the long connection is established, it is prohibited to send data to the tested end. After the long connection is established, the timing process of the preset duration can be immediately started, which can quickly help the tested end meet the conditions for triggering the keep-alive mechanism, thereby improving the detection efficiency of the keep-alive mechanism.

[0078] In an optional implementation manner, after establishing a long connection with the measured end in step 210, determining whether a keep-alive message sent by the measured end is received after a preset time period may include:

[0079] Step 213: Send a handshake request message to the tested end, so that the tested end feeds back a handshake approval message.

[0080] Step 214: Send a handshake confirmation message to the tested end according to the handshake consent message, so as to establish a long connection, and determine whether a keep-alive message sent by the tested end is received after a preset time.

[0081] It should be noted that there is no order of execution between step 213 and step 214 and the aforementioned step 211 and step 212 .

[0082] The same as the three-way handshake process described in the aforementioned embodiment, the handshake application message, the handshake consent message and the handshake confirmation message are respectively the verification messages in the three-way handshake link that needs to be performed in the process of building a long connection. On the basis of the hardware connection between the test end and the tested end, the test end sends a handshake application message to the tested end. After the tested end receives the handshake application message, it feeds back a handshake consent message to the test end, thereby proving that the tested end has accepted the application for establishing a long connection issued by the test end. After the test end receives the handshake consent message issued by the tested end, it feeds back a handshake confirmation message to the tested end to confirm that the tested end agrees to the handshake. At this time, the test end can determine that the long connection between the test end and the tested end has been successfully established. After the long connection is successfully established, whether the tested end can send a keep-alive message after a preset time is detected.

[0083] In the above implementation, a long connection is established through a three-way handshake process, and then a preset time is counted. The time when the handshake confirmation message of the last handshake sent by the test end is used as the starting time, and the message reception after the long connection is established is timed, which helps to determine whether the tested end has a keep-alive mechanism.

[0084] In an optional embodiment, before establishing a long connection, the method may include: configuring the long connection according to pre-set test end configuration information, and sending the tested end configuration information to the tested end so that the tested end can be synchronously configured; wherein the test end configuration information includes the Internet Protocol address of the tested end and the tested communication port number; the tested end configuration information includes the Internet Protocol address of the test end and the test communication port number.

[0085] Among them, the test end configuration information can be parameter information for configuring the communication of the hardware device of the test end. It is understandable that before the test end and the tested end communicate, it is necessary to ensure that the hardware connection between the test end and the tested end matches the communication interface or address correctly, and ensure that the basic conditions for communication are complete. Similar to the aforementioned tested end configuration information, the test end configuration information can include the Internet Protocol address of the tested end and the tested communication port number (port number of the tested end). At the same time, the tested end configuration information that needs to be pre-set before the long connection is built is sent to the tested end, and the tested end configuration information includes the Internet Protocol address of the test end and the test communication port number.

[0086] Continuing with the previous example, the computer's simulated ECU can be pre-set to send data to a certain IP address and port number of the vehicle ECU. Similarly, the vehicle ECU can be pre-set to send data to a certain IP address and port number of the simulated ECU. These configuration information can be used to pre-configure the simulated ECU and vehicle ECU through the computer to ensure that the long connection can be successfully established.

[0087] In the above implementation, before the long connection is established, the test end and the tested end are configured respectively, with the aim of providing a basic environment for maintaining normal communication between the tested end and the test end, thereby ensuring the stability of the long connection creation process, and providing a stable communication environment for the detection process of the keep-alive mechanism.

[0088] In an optional implementation, the test end communicates with the bus communication device via a serial port;

[0089] Before establishing the long connection, the method may further include:

[0090] Z1. Receive preset bus environment configuration information; wherein the bus environment configuration information includes an Ethernet address, and an enable, address, and subnet mask of an Internet communication protocol;

[0091] In the above embodiments, it has been explained that the bus communication device, as an intermediate medium, builds a communication bridge between the test end and the tested end. On the basis of hardware connection, the bus communication device also needs corresponding setting configuration information so that the bus communication device can help the test end and the tested end establish a normal communication link.

[0092] Z2. Send the bus environment configuration information to the bus communication device for communication configuration, so that the bus communication device can communicate with the tested end through Ethernet.

[0093] Continuing with the previous example, since the bus communication device is connected to the vehicle ECU via Ethernet, the Ethernet address of the bus communication device can be pre-set. Since the bus communication device communicates with the virtual ECU on the computer side via the serial port, the enablement of the Internet communication protocol, the address of the Internet communication protocol and its subnet mask can also be pre-set. Through the above configuration, the simulated ECU on the computer side and the vehicle ECU can have a stable environment for forming a TCP communication connection. Of course, the above-mentioned contents required to be configured by the bus communication device can all be set by the computer side, and then the computer side sends these bus environment configuration information to the bus communication device, so that the bus communication device can configure the communication basis according to these bus environment configuration information.

[0094] In the above implementation, the bus environment configuration information is sent to the bus communication device through the test end, so that the bus communication device can build a stable communication link between the test end and the tested end, which provides a stable communication environment foundation for triggering the keep-alive mechanism of the tested end, that is, detecting whether the tested end has the keep-alive mechanism.

[0095] Figure 4A A schematic diagram of a keep-alive mechanism detection provided in an embodiment of the present application. The embodiment of the present application is a preferred implementation provided on the basis of the aforementioned embodiments and implementation methods, and can be applied to the case of detecting whether there is a keep-alive mechanism in an electronic controller in a vehicle, as follows:

[0096] Before testing the keep-alive mechanism of the vehicle ECU, it is necessary to build a long connection with the vehicle ECU to trigger the keep-alive message for the vehicle ECU. The embodiment of the present application adopts the method of simulating ECU in the computer to build a TCP long connection between "simulated ECU-vehicle ECU". First, a virtual ECU is simulated in the computer through a CAPL script. The computer is connected to the CANoe device (equivalent to the bus communication device in the aforementioned embodiment) through a USB interface, and the CANoe device is connected to the vehicle ECU through an Ethernet port. Based on the hardware connection of the CANoe device, the virtual ECU sets the configuration information for the communication connection of the simulated ECU, the vehicle ECU and the CANoe device in the computer respectively, so as to ensure that a normal interactive TCP long connection can be established from the simulated ECU to the vehicle ECU.

[0097] For example, the IP address and port number required for the simulated ECU can be pre-configured:

[0098] gSocket=TcpSocket::Open(IP_Endpoint(XXXX:XXXXX));

[0099] The IP address and port number required by the vehicle ECU can be pre-configured:

[0100] gSocket.Connet(IP_Endpoint(XXXX:XXXXX));

[0101] In addition, the CANoe device can be configured accordingly, such as Figure 4B As shown, the Ethernet connection provided by the CANoe device is pre-configured in the CANoe software of the computer, which may include MAC Address (Media Access Control Address), IPv4 Enabled (Internet Transfer Protocol Enabled), IPv4 Address (Internet Transfer Protocol Address) and Mask (Subnet Mask), etc. The above pre-set configuration information can ensure that a TCP long connection can be normally established between the simulation ECU and the vehicle ECU. Among them, XXX in the above configuration information is only used as a representation of the address or port information, and no specific information is given here. The relevant configuration information can be set by the technician according to the specific situation.

[0102] Based on the above content, the simulation ECU and the vehicle ECU are long connected, such as Figure 4A As shown in the figure, process a is that the simulation ECU sends a handshake application message to the vehicle ECU. After receiving the handshake application message, the vehicle ECU feeds back the handshake consent message shown in process b to the simulation ECU. After receiving the handshake consent message, the simulation ECU sends the handshake confirmation message shown in process c to the vehicle ECU. After receiving the handshake confirmation message, the vehicle ECU determines that the long connection is successfully established, that is, after three handshakes between the simulation ECU and the vehicle ECU, the long connection is successfully established. After the long connection is successfully established, the simulation ECU is not allowed to send any data to the vehicle ECU, so that there is no data interaction between the two. Then according to the keep-alive mechanism introduced in the previous article, if the vehicle ECU has the keep-alive mechanism, no data interaction will occur during the keep-alive timer timing. When the timing ends, the vehicle ECU should send the keep-alive message shown in process d to the simulation ECU. When the simulation ECU receives this keep-alive message after the timing ends, it can be confirmed that the vehicle ECU has the keep-alive mechanism of the long connection; on the contrary, if the simulation ECU does not receive the keep-alive message at the end of the timing, it means that the vehicle ECU does not have the keep-alive mechanism of the long connection.

[0103] The above-mentioned detection method of the vehicle ECU keep-alive mechanism can be applied to the test link of vehicle manufacturing to prevent the various ECUs installed in the vehicle from not being configured with a keep-alive mechanism and affecting the normal use of the vehicle. At the same time, the above-mentioned method can solve the problem that testers cannot directly detect the keep-alive mechanism of the vehicle ECU, thereby helping to improve the efficiency of vehicle ECU detection.

[0104] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0105] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0106] Based on the same inventive concept, corresponding to the above two methods, the present application also provides two communication transmission connection detection devices.

[0107] Figure 5 A structural diagram of a communication transmission connection detection device provided in an embodiment of the present application. The device 400 can be arranged at a tested end, and the device 400 can include a data interaction judgment module 410 and a keep-alive message sending module 420, as follows:

[0108] The data interaction determination module 410 is used to determine whether data interaction occurs during the long connection within the preset time period after the long connection is successfully established with the test end.

[0109] The keep-alive message sending module 420 is used to send a keep-alive message to the test end in response to no data interaction within a preset time period, so that the test end can detect whether the tested end has a keep-alive mechanism for the communication transmission connection according to whether the keep-alive message is received.

[0110] In the technical solution of the embodiment of the present application, after the tested end determines that a long connection is successfully established with the test end, a preset time is counted to determine whether data interaction occurs in the long connection within the preset time, and the condition for triggering the keep-alive mechanism can be judged on the basis of the long connection, and the criterion can be helpful for detecting the keep-alive mechanism; then, in response to the absence of data interaction within the preset time, a keep-alive message is sent to the test end, so that the test end detects whether the tested end has a keep-alive mechanism for the communication transmission connection according to whether the keep-alive message is received. The keep-alive message sent by the tested end can enable the test end to determine that the tested end has a keep-alive mechanism. This detection method can effectively overcome the problem that technicians in reality cannot directly control the tested end to send keep-alive messages to verify whether its keep-alive mechanism is complete. The keep-alive mechanism of the tested end is triggered to take effect by the non-interactive timing of the long connection between the test end and the tested end, and the keep-alive mechanism of the tested end can be quickly and effectively detected, and the performance defects of the tested end can be discovered in time, thus ensuring the existence of the keep-alive mechanism and improving the stability and efficiency of communication connection detection.

[0111] In an optional implementation, the data interaction determination module 410 may include:

[0112] An application message receiving unit, used for receiving a handshake application message sent by a test end;

[0113] An approval message sending unit is used to send a handshake approval message to the test end according to the handshake application message, so that the test end feeds back a handshake confirmation message;

[0114] The preset duration timing unit is used to determine that the long connection with the test end is successfully established according to the received handshake confirmation message, and to perform timing of the preset duration.

[0115] In an optional implementation, the device 400 may include:

[0116] The tested end configuration information receiving module is used to receive the tested end configuration information sent by the testing end;

[0117] The synchronous configuration module is used to perform synchronous configuration according to the configuration information of the tested end; wherein the configuration information of the tested end includes the Internet Protocol address of the test end and the test communication port number.

[0118] In an optional implementation, the tested end communicates with the bus communication device via Ethernet, and the bus communication device communicates with the test end via a serial port.

[0119] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0120] The device 400 of the above embodiment can be used to implement the detection method of the communication transmission connection applied to the tested end in the above embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0121] Figure 6 A structural diagram of a communication transmission connection detection device provided in an embodiment of the present application. The device 500 can be set at a test end, and the device 500 can include a keep-alive message judgment module 510 and a keep-alive mechanism judgment module 520, as follows:

[0122] A keep-alive message determination module 510 is used to determine whether a keep-alive message sent by the tested end is received after a preset time after establishing a long connection with the tested end;

[0123] A keep-alive mechanism determination module 520 is used to determine whether the tested end has a keep-alive mechanism for the communication transmission connection in response to a keep-alive message received after a preset time period; or

[0124] In response to not receiving a keep-alive message after a preset period of time, it is determined that the tested end does not have a keep-alive mechanism for the communication transmission connection.

[0125] In the technical solution of the embodiment of the present application, after establishing a long connection with the tested end, it is determined whether a keep-alive message sent by the tested end is received after a preset time length, and based on the triggering condition of the keep-alive mechanism, the keep-alive message of the tested end after the preset time length is detected, and whether the tested end has a keep-alive mechanism is determined based on whether the keep-alive message sent by the tested end to the test end is actually received. The method of the embodiment of the present application can effectively solve the disadvantage of the prior art that the keep-alive mechanism of the tested end cannot be directly detected, and a fast and effective protection mechanism detection method is provided, which helps to timely discover the performance defects of the tested end. In an optional implementation, the keep-alive message judgment module 510 may include:

[0126] A data transmission prohibition unit is used to prohibit the sending of data to the tested end within a preset time after the long connection is established;

[0127] The message receiving judgment unit is used to judge whether a keep-alive message sent by the tested end is received after a preset time period.

[0128] In an optional implementation manner, the keep-alive message determination module 510 may include:

[0129] A handshake request sending unit, used to send a handshake request message to the tested end, so that the tested end feeds back a handshake consent message;

[0130] The long connection building unit is used to send a handshake confirmation message to the tested end according to the handshake consent message, so as to build a long connection, and determine whether a keep-alive message sent by the tested end is received after a preset time.

[0131] In an optional implementation, the device 500 may include:

[0132] The long connection configuration module is used to perform long connection configuration according to the preset test end configuration information, and send the tested end configuration information to the tested end so that the tested end performs synchronous configuration;

[0133] The test end configuration information includes the Internet Protocol address of the tested end and the tested communication port number; the tested end configuration information includes the Internet Protocol address of the test end and the test communication port number.

[0134] In an optional implementation, the test end communicates with the bus communication device via a serial port; the apparatus 500 may further include:

[0135] A bus configuration receiving module, used to receive preset bus environment configuration information; wherein the bus environment configuration information includes an Ethernet address, and an enable, address and subnet mask of an Internet communication protocol;

[0136] The bus communication building module is used to send the bus environment configuration information to the bus communication device for communication configuration, so that the bus communication device can communicate with the tested end through Ethernet.

[0137] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0138] The device 500 of the above embodiment is used to implement the detection method of the communication transmission connection applied to the test end in the above embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0139] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present 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 program, the method for detecting a communication transmission connection described in any of the above embodiments is implemented.

[0140] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 7A specific electronic device hardware structure is shown, and the electronic device can be used as a tested end or a test end adopted in any implementation method of the present application, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other in communication within the device through the bus 1050.

[0141] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0142] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0143] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0144] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0145] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0146] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0147] The electronic device of the above embodiment is used to implement the corresponding communication transmission connection detection method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0148] Based on the same inventive concept, corresponding to the above-mentioned embodiment method, the present application also provides a vehicle, and the vehicle can be provided with a measured end as provided in the above-mentioned embodiment.

[0149] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the communication transmission connection detection method described in any of the above embodiments.

[0150] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0151] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the communication transmission connection detection method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0152] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0153] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0154] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0155] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A method for detecting a communication transmission connection, characterized in that: Applied to the tested end, the method comprises: After determining that a long connection with the test end is successfully established, timing a preset time length is performed to determine whether data interaction occurs within the preset time length for the long connection; In response to no data interaction occurring within the preset time period, a keep-alive message is sent to the test end, so that the test end detects whether the tested end has a keep-alive mechanism for the communication transmission connection according to whether the keep-alive message is received.

2. The method according to claim 1, characterized in that After the long connection with the test end is successfully established, the preset time is counted, including: Receiving a handshake request message sent by the test end; According to the handshake application message, a handshake approval message is sent to the test end, so that the test end feeds back a handshake confirmation message; According to the received handshake confirmation message, it is determined that the long connection with the test end is successfully established, and timing of a preset time length is performed.

3. The method according to claim 2, characterized in that Before receiving the handshake request message sent by the test end, the method includes: Receiving the configuration information of the tested terminal sent by the testing terminal; Synchronous configuration is performed according to the configuration information of the tested end; wherein the configuration information of the tested end includes the Internet Protocol address and the test communication port number of the test end.

4. The method according to claim 3, characterized in that The tested end communicates with the bus communication device via Ethernet, and the bus communication device communicates with the test end via a serial port.

5. A method for detecting a communication transmission connection, characterized in that: Applied to the test end, the method includes: After establishing a long connection with the tested end, determining whether a keep-alive message sent by the tested end is received after a preset time; In response to the keep-alive message received after a preset time, determining that the tested end has a keep-alive mechanism for the communication transmission connection; or, In response to not receiving the keep-alive message after a preset period of time, it is determined that the tested end does not have a keep-alive mechanism for the communication transmission connection.

6. The method according to claim 5, characterized in that After establishing a long connection with the measured end, determining whether a keep-alive message sent by the measured end is received after a preset time period includes: After the long connection is established, sending data to the tested end is prohibited within a preset time period; After a preset time period, it is determined whether a keep-alive message sent by the tested terminal is received.

7. The method according to claim 5, characterized in that After establishing a long connection with the tested end, determining whether a keep-alive message sent by the tested end is received after a preset time period includes: Sending a handshake request message to the measured end, so that the measured end feeds back a handshake approval message; According to the handshake consent message, a handshake confirmation message is sent to the measured end to establish a long connection, and it is determined whether the keep-alive message sent by the measured end is received after a preset time.

8. The method according to claim 7, characterized in that Before establishing the long connection, the method includes: Performing long connection configuration according to preset test end configuration information, and sending the tested end configuration information to the tested end, so that the tested end performs synchronous configuration; Wherein, the test end configuration information includes the Internet Protocol address of the tested end and the tested communication port number; the tested end configuration information includes the Internet Protocol address of the test end and the test communication port number.

9. The method according to claim 7, characterized in that: The test end communicates with the bus communication device via the serial port; Before establishing the long connection, the method further includes: Receive preset bus environment configuration information; wherein the bus environment configuration information includes an Ethernet address, and an enable, address, and subnet mask of an Internet communication protocol; The bus environment configuration information is sent to the bus communication device for communication configuration, so that the bus communication device can communicate with the tested end via Ethernet.

10. A tested terminal, 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 program, the method for detecting a communication transmission connection according to any one of claims 1 to 4 is implemented.

11. A test terminal, 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 program, the method for detecting a communication transmission connection according to any one of claims 5 to 9 is implemented.