Remote diagnostic methods, devices, equipment and media

By receiving and parsing TCP diagnostic commands and responding with acknowledgments and delay commands, the problem of unstable network latency in remote diagnostics is solved, thereby improving the reliability and success rate of remote diagnostics.

CN114815782BActive Publication Date: 2025-11-14LAUNCH TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210547257.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-19
Publication Date
2025-11-14
Estimated Expiration
2042-05-19

AI Technical Summary

Technical Problem

In the existing technology, network latency exists during remote fault diagnosis, which causes communication delay between the diagnostic equipment and the vehicle. This network latency during vehicle fault diagnosis results in the vehicle not responding, responding, or responding and timing out, thus affecting the reliability of remote diagnosis.

Method used

By receiving TCP diagnostic commands from the data sending device, parsing the command type, and responding with acknowledgment and delay commands, network latency is reduced, data transmission stability is ensured, and the success rate of remote diagnostics is improved.

Benefits of technology

By proactively replacing negative responses and using delay processing, network latency is reduced, preventing vehicles from not responding or responding too late, thus improving the reliability of remote diagnostics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114815782B_ABST
    Figure CN114815782B_ABST
Patent Text Reader

Abstract

This invention relates to the field of vehicle testing technology and discloses a remote diagnostic method, apparatus, device, and medium. The remote diagnostic method is applied to a data transmission device. The invention involves receiving a TCP diagnostic command sent by a data transmitting device; responding to the data transmitting device with a response command and a delay command based on the TCP diagnostic command; sending the TCP diagnostic command to a data receiving device and receiving diagnostic response data from the data receiving device based on the TCP diagnostic command; and sending the diagnostic response data back to the data transmitting device. During data transmission with the diagnostic device, the invention proactively substitutes for negative responses, improving the stability of network latency during remote vehicle diagnostics, reducing or avoiding situations where the vehicle does not respond or the response times out, thus improving the reliability of remote vehicle diagnostics. This solves the problem of unstable latency during remote diagnostics and increases the success rate of remote diagnostics.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle inspection technology, and in particular to a remote diagnostic method, device, equipment and medium. Background Technology

[0002] In the existing remote vehicle fault diagnosis process, the remote connection between the vehicle and the diagnostic equipment is generally achieved by directly connecting the vehicle and the diagnostic equipment through a network. During the communication process of remote diagnosis, network latency often occurs, resulting in the vehicle not responding or responding with a timeout. The aforementioned problem of unstable latency in the remote diagnosis process causes remote diagnosis to fail. Summary of the Invention

[0003] The main objective of this invention is to provide a remote diagnostic method, apparatus, device, and medium, which aims to improve the data reliability of remote diagnostics.

[0004] To achieve the above objectives, the present invention provides a remote diagnostic method, which is applied to a data transmission device and includes the following steps:

[0005] Receive TCP diagnostic commands sent by the data sending device;

[0006] Based on the TCP diagnostic command, the data sending device sends a response command and a delay command;

[0007] The TCP diagnostic command is sent to the data receiving device, and the diagnostic response data from the data receiving device based on the TCP diagnostic command is received.

[0008] The diagnostic response data is sent to the data transmission device.

[0009] Preferably, the TCP diagnostic command sent by the receiving data sending device includes:

[0010] Receive TCP operation instructions sent by the data sending device;

[0011] The TCP operation instructions are parsed to determine the data type of the TCP operation instructions;

[0012] When the data type of the TCP operation instruction is the first target type, the TCP operation instruction is determined to be the TCP diagnostic instruction.

[0013] Preferably, after parsing the TCP operation instruction and determining the data type of the TCP operation instruction, the method further includes:

[0014] If the data type of the TCP operation instruction is not the first target type, the TCP operation instruction is sent to the data receiving device.

[0015] Preferably, receiving the diagnostic response data from the data receiving device based on the TCP diagnostic command includes:

[0016] Receive the response data from the data receiving device based on the TCP diagnostic command;

[0017] Parse the response data to determine its data type;

[0018] If the data type of the response data is the first target type, then the response data is determined to be diagnostic response data.

[0019] Preferably, after parsing the response data and determining the data type of the response data, the method further includes:

[0020] If the data type of the response data is the second target type, then the response data is determined to be a response instruction to the TCP diagnostic instruction;

[0021] Discard the response data.

[0022] Furthermore, to achieve the above objectives, the present invention also provides a remote diagnostic device, the remote diagnostic device comprising:

[0023] The receiving module is used to receive TCP diagnostic commands sent by the data sending device;

[0024] The sending module is used to reply to the data sending device with a response command and a delay command based on the TCP diagnostic command;

[0025] The transmission module is used to send the TCP diagnostic command to the data receiving device and receive diagnostic response data from the data receiving device based on the TCP diagnostic command.

[0026] An execution module is used to send the diagnostic response data to the data transmission device.

[0027] Preferably, the remote diagnostic device further includes:

[0028] The acquisition unit is used to receive TCP operation instructions sent by the data sending device;

[0029] The judgment unit is used to parse the TCP operation instruction and determine the data type of the TCP operation instruction;

[0030] The determining unit is configured to determine that the TCP operation instruction is the TCP diagnostic instruction when the data type of the TCP operation instruction is a first target type.

[0031] Preferably, the remote diagnostic device further includes:

[0032] The instruction sending unit is configured to send the TCP operation instruction to the data receiving device if the data type of the TCP operation instruction is not the first target type.

[0033] In addition, to achieve the above objectives, the present invention also provides a device, which is a diagnostic device. The remote diagnostic device includes: a memory, a processor, and a diagnostic program stored in the memory and executable on the processor. When the diagnostic program is executed by the processor, it implements the steps of the remote diagnostic method as described above.

[0034] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a diagnostic program, which, when executed by a processor, implements the steps of the remote diagnostic method described above.

[0035] This invention proposes a remote diagnostic method, apparatus, device, and medium. The remote diagnostic method is applied to a data transmission device. By acquiring the TCP diagnostic command from the data transmission device and responding to the data transmission device with corresponding response and delay commands based on the TCP diagnostic command, this invention improves the stability of network latency during remote vehicle diagnostics, thereby reducing or avoiding situations where the vehicle fails to respond or experiences a response timeout, thus enhancing the reliability of remote vehicle diagnostics. The data receiving device acquires the response data corresponding to the aforementioned TCP diagnostic command, determines the diagnostic response data corresponding to the aforementioned response data, and sends the diagnostic response data to the data transmission device, completing the remote vehicle diagnostics based on the data transmission device. This reduces latency instability issues during remote diagnostics and improves the success rate of remote diagnostics. Attached Figure Description

[0036] Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention;

[0037] Figure 2 This is a schematic diagram of the system architecture involved in the first embodiment of the remote diagnostic method of the present invention;

[0038] Figure 3 This is a flowchart illustrating the first embodiment of the remote diagnostic method of the present invention;

[0039] Figure 4 This is a schematic diagram of the specific process of step S100 in the second embodiment of the remote diagnostic method of the present invention;

[0040] Figure 5 This is a flowchart illustrating the second embodiment of the remote diagnostic method of the present invention;

[0041] Figure 6 This is a flowchart illustrating the third embodiment of the remote diagnostic method of the present invention;

[0042] Figure 7 This is a schematic diagram of the functional modules of the remote diagnostic device involved in the first embodiment of the remote diagnostic method of the present invention;

[0043] Figure 8 This is a schematic diagram of the functional units of the remote diagnostic device involved in the second embodiment of the remote diagnostic method of the present invention.

[0044] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0045] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0046] like Figure 1 As shown, Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention.

[0047] The device in this embodiment of the invention can be a data transmission device.

[0048] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0049] Those skilled in the art will understand that Figure 1 The device structure shown does not constitute a limitation on the device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0050] like Figure 1 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and diagnostic programs.

[0051] The operating system is a program that manages and controls remote diagnostic equipment and software resources, and supports the operation of the network communication module, user interface module, diagnostic program and other programs or software; the network communication module is used to manage and control the network interface 1002; the user interface module is used to manage and control the user interface 1003.

[0052] exist Figure 1 In the remote diagnostic device shown, the remote diagnostic device calls the diagnostic program stored in the memory 1005 through the processor 1001 and performs the operations in the various embodiments of the remote diagnostic method described below.

[0053] Based on the above hardware structure, an embodiment of the remote diagnostic method of the present invention is proposed.

[0054] Reference Figure 2 , Figure 2 This is the architecture of the remote diagnostic system used in the implementation of the remote diagnostic method in the embodiments of this application.

[0055] The remote diagnostic system architecture includes: a B-end connector, a diagnostic device connected to the B-end connector, a C-end connector, a vehicle connected to the C-end connector, and a cloud platform for information exchange between the B-end connector and the C-end connector. In this embodiment, the B-end connector is a data transmission device, the diagnostic device is a data sending device, and the vehicle is a data receiving device. The remote diagnostic method involved in this embodiment is applied to the data transmission device.

[0056] The remote diagnostic system architecture in this embodiment includes a B-end connector, a diagnostic device connected to the B-end connector, a C-end connector, a vehicle connected to the C-end connector, and a cloud platform for information exchange between the B-end connector and the C-end connector. All of these components support the DoIP protocol and IP-based diagnostics. Furthermore, in practical applications, the distance between the diagnostic B-end connector and the vehicle connection connector is often significant, even spanning different cities or countries. Based on the UDS diagnostic service, vehicle faults are diagnosed via TCP / IP and Ethernet, implementing the DoIP remote diagnostic method and optimizing the diagnostic effectiveness of remote diagnostics to a certain extent.

[0057] Reference Figure 3 , Figure 3 This is a flowchart illustrating the first embodiment of the remote diagnostic method of the present invention. The remote diagnostic method is applied to a data transmission device and includes:

[0058] Step S10: Receive the TCP diagnostic command sent by the data sending device;

[0059] Step S20: Based on the TCP diagnostic command, send a response command and a delay command to the data sending device;

[0060] Step S30: Send the TCP diagnostic command to the data receiving device and receive the diagnostic response data from the data receiving device based on the TCP diagnostic command;

[0061] Step S40: Send the diagnostic response data to the data sending device.

[0062] The remote diagnostic method of this embodiment is applied to a remote diagnostic device. This invention acquires the diagnostic operation command from the diagnostic device, determines the corresponding response command and delay command based on the TCP diagnostic command, and sends the response command and delay command to the data transmitting device. After the delay, the TCP diagnostic command is sent to the data receiving device, and the diagnostic recovery data corresponding to the TCP diagnostic command is determined. Finally, the diagnostic recovery data is returned to the data transmitting device, completing the remote diagnostic work based on the data transmission device.

[0063] The following will provide a detailed explanation of each step:

[0064] Step S10: Receive the TCP diagnostic command sent by the data sending device.

[0065] Furthermore, the data transmission device connected to the data sending device and the data receiving device obtains the TCP diagnostic instructions from the data sending device via Ethernet. Specifically, it parses the TCP operation instructions received from the diagnostic device through the B-end connector and determines the corresponding TCP diagnostic instructions based on the data type obtained after parsing.

[0066] In some specific embodiments, the above TCP operation instructions include various types of instructions. Receiving the corresponding TCP operation instruction from the diagnostic device is the process of diagnosing vehicle faults. After receiving the above TCP operation instruction, the TCP operation instruction is parsed to obtain the source address, destination address, data type and SID corresponding to the TCP operation instruction, and the corresponding TCP diagnostic instruction is determined based on the above data type.

[0067] What needs to be explained in detail is that the TCP diagnostic operation command is parsed to obtain the TCP packet corresponding to the above TCP diagnostic operation command, and then the source port, destination port, sequence port, and acknowledgment number fields in the TCP packet are determined, that is, the source address, destination address, ACK flag, and service request ID corresponding to the above TCP diagnostic operation command are determined.

[0068] For example, after receiving a TCP operation instruction in the form of 0x8001 sent by the diagnostic device, it is determined that the TCP operation instruction in the form of 0x8001 is a TCP diagnostic instruction. Further, the TCP packet corresponding to the TCP diagnostic instruction is obtained based on this instruction, specifically: 02fd0x8001 000000070e80172622f112. This TCP packet is then parsed, and the corresponding parsed data is shown in Table 1.

[0069] Version Data types length Source address Target address Data content 02fd 0x8001 00000007 0e80 1726 22f112

[0070] Table 1

[0071] It needs to be explained in detail that the communication and interaction between the B-end connector and the diagnostic equipment, and between the C-end connector and the vehicle, are all achieved via Ethernet. The B-end connector and C-end connector in the data transmission device communicate and interact via a cloud platform. In the remote diagnostic system architecture of this application, the B-end connector, the diagnostic equipment connected to the B-end connector, the C-end connector, the vehicle connected to the C-end connector, and the cloud platform for information interaction between the B-end connector and the C-end connector all support DoIP and support IP-based diagnostics. Based on the UDS diagnostic service, vehicle faults are diagnosed via TCP / IP and Ethernet, and DoIP remote diagnostic information transmission is achieved.

[0072] Specifically, the aforementioned TCP diagnostic command is a diagnostic command that exists in the form of a TCP packet. The aforementioned TCP diagnostic command typically includes the source port number, destination port number, sequence number, acknowledgment number, header length, reserved fields, flag fields, window size, checksum, urgent pointer, options, and data.

[0073] The source port and its corresponding source IP address identify the return address of the packet; the destination port and its corresponding destination IP address identify the application address receiving the packet; the sequence number is used by the receiving computer to reassemble the segmented packet into its original form; the acknowledgment number is also used by the receiving computer to reassemble the segmented packet into its original form; the header length indicates where the data begins; reserved fields are reserved for future defined uses; the flag fields are: urgent flag, meaningful acknowledgment flag, push, reset connection flag, synchronization sequence number flag, and complete data transmission flag. In order, they are: URG, ACK, PSH, RST, SYN, FIN; the window size indicates the size of each TCP segment to be received; the checksum is a value calculated by the source machine based on the data content, and the receiving machine must match the source machine's value to prove the validity of the data; the urgent pointer points to the next byte of priority data, and is only effective when the URG flag is set; options and data are the data payload of this TCP protocol packet.

[0074] Step S20: Based on the TCP diagnostic command, reply to the data sending device with an acknowledgment command and a delay command.

[0075] In some specific embodiments, the B-end connector receives the corresponding TCP diagnostic instruction from the diagnostic device. The B-end connector sends the corresponding acknowledgment instruction and delay instruction to the diagnostic device according to the TCP diagnostic instruction. The B-end connector sends the obtained TCP diagnostic instruction, acknowledgment instruction and delay instruction to the diagnostic device, so that the diagnostic device makes a preset response within a preset time according to the TCP diagnostic instruction, acknowledgment instruction and delay instruction.

[0076] Specifically, when transmitting data with the diagnostic device through the B-end connector, the B-end connector receives a corresponding TCP diagnostic instruction in the form of 0x8001, determines the corresponding response instruction and delay instruction, delays the current data transmission, actively sends back a negative response to indicate that the device is busy, and reduces the network latency waiting time. For example, it replies to the diagnostic device within 5 seconds, enabling the diagnostic device to wait within 5 seconds and avoid data transmission timeout.

[0077] Step S30: Send the TCP diagnostic command to the data receiving device and receive the diagnostic response data from the data receiving device based on the TCP diagnostic command.

[0078] In one specific embodiment, the data transmission device establishes a data connection with the vehicle via a C-terminal connector. The data transmission device sends TCP diagnostic commands received from the diagnostic device to the vehicle via the C-terminal connector to perform vehicle fault diagnosis, and receives diagnostic response data from the vehicle.

[0079] Step S40: Send the diagnostic response data to the data sending device.

[0080] In some specific embodiments, the active substitution of the negative response is completed through the B-end connector in the data transmission device, the delay operation is completed, the vehicle's diagnostic response data is obtained through the data transmission device, and finally, the above-mentioned diagnostic response data is returned to the diagnostic device.

[0081] The remote diagnostic method in this embodiment is applied to data transmission devices. This invention acquires the TCP diagnostic command from the data transmission device and, based on this command, replies with an acknowledgment command and a delay command. During data transmission, it proactively replaces the TCP diagnostic command with a negative response, reducing network latency and improving the stability of network latency during remote vehicle diagnostics. This reduces or avoids situations where the vehicle does not respond or responds with a timeout, thereby enhancing the reliability of remote vehicle diagnostics.

[0082] Furthermore, the diagnostic response data is determined by the data receiving device and returned to the data sending device, thus completing the remote vehicle diagnostics based on the data transmission data. This reduces the instability of latency during the remote diagnostics process and improves the success rate of remote diagnostics.

[0083] Furthermore, based on the first embodiment of the remote diagnostic method of the present invention, a second embodiment of the remote diagnostic method of the present invention is proposed.

[0084] The second embodiment of the remote diagnostic method differs from the first embodiment in that, in this embodiment, before step S10, which involves receiving the TCP diagnostic instruction sent by the data sending device, the remote diagnostic method further includes receiving the TCP operation instruction sent by the data sending device and determining the corresponding TCP diagnostic instruction scheme. Before step S10, the method further includes:

[0085] Step S100: Receive the TCP operation instruction sent by the data sending device and determine the corresponding TCP diagnostic instruction.

[0086] Reference Figure 4 , Figure 4 The specific steps of the remote diagnostic method S100 of this solution are as follows: before receiving the TCP diagnostic instruction sent by the data sending device, step S100 also requires parsing the TCP operation instruction sent by the diagnostic device and determining the corresponding TCP diagnostic instruction according to the data type of the TCP operation instruction.

[0087] Reference Figure 5 Step S100 specifically includes:

[0088] Step S101: Receive the TCP operation instruction sent by the data sending device;

[0089] Step S102: Parse the TCP operation instruction to determine the data type of the TCP operation instruction;

[0090] In one specific embodiment, the data transmission device connected to the data sending device and the data receiving device obtains the TCP diagnostic instructions from the data sending device via Ethernet. Specifically, the TCP operation instructions received from the diagnostic device are parsed through the B-end connector, and the corresponding TCP diagnostic instructions are determined based on the data type obtained after parsing.

[0091] Specifically, the TCP operation instructions are parsed to obtain the source address, destination address, data type, and service request ID corresponding to the TCP operation instructions that exist in the form of TCP packets, and the corresponding TCP diagnostic instructions are determined based on the data type.

[0092] Step S103: When the data type of the TCP operation instruction is the first target type, the TCP operation instruction is determined to be the TCP diagnostic instruction.

[0093] Furthermore, the data types in the parsed data have various preset types, and each preset data type has its own different but corresponding response data. Therefore, in a specific embodiment, the data types in the parsed data must first be determined, and after obtaining the corresponding data type determination result, the corresponding instruction is directly determined based on the above data type determination result.

[0094] Specifically, the correspondence between the above data types and their corresponding response data is shown in Table 2:

[0095] Data types Response data 0x0000 Negative response via DoIP header 0x0001 Vehicle recognition request message 0x0002 Vehicle Identification Request Message with EID 0x0003 Vehicle Identification Request Message with VIN 0x0004 Vehicle notification message / vehicle recognition response 0x0005 Link activation request 0x0006 Link activation response 0x0007 Activation check request 0x0008 Activation check response 0x4001 DoIP Entity Status Request 0x4002 DoIP Entity Status Response 0x4003 Diagnostic power mode information request 0x4004 Diagnostic power mode information response 0x8001 Diagnostic message 0x8002 Diagnostic request ACK response 0x8003 Diagnostic request NACK response

[0096] Table 2

[0097] Furthermore, based on the different response data corresponding to the data types existing in the form of standard protocols, the corresponding diagnostic data is determined. After obtaining the data type, diagnostic data, service request ID corresponding to the diagnostic data SID, and the standard protocol response of the diagnostic device and vehicle connection connector connected to the B-end connector, the above data type, diagnostic data, service request ID corresponding to the diagnostic data SID, and standard protocol response are encapsulated to obtain the corresponding encapsulated message.

[0098] Specifically, when the data type of the TCP operation instruction is determined to be the first target type 0x8001, the TCP operation instruction is identified as a TCP diagnostic instruction, and the corresponding response data includes at least an acknowledgment instruction and a delay instruction. After determining the aforementioned acknowledgment instruction and delay instruction, these instructions are sent to the diagnostic device for response.

[0099] Following step S103, the method further includes:

[0100] Step S104: If the data type of the TCP operation instruction is not the first target type, the TCP operation instruction is sent to the data receiving device.

[0101] Furthermore, if the data type of the aforementioned TCP operation instruction is determined to be a different type than the first target type, then the response data and instruction corresponding to the TCP operation instruction are sent to the vehicle for diagnosis.

[0102] In some specific embodiments, this application receives TCP operation instructions from the diagnostic device through the diagnostic B-end connector, parses the TCP operation instructions at the diagnostic B-end connector to obtain the corresponding source address, destination address, data address, and SID, and classifies the data type of the TCP operation instructions. If the data type is 0x8001, the TCP operation instruction corresponding to the 0x8001 data type is a TCP diagnostic instruction, then the source address and destination address in the TCP packet corresponding to the data type are swapped, and a standard packet with data type 0x8002 is replied to the C-end connector; simultaneously, a TCP standard packet with data type 0x8001 and data standard content of 0x7f sid 0x78 is also replied to the diagnostic device. This standard packet with data type 0x8002 is the aforementioned response instruction; the TCP standard packet with data standard content of 0x7f sid 0x78 is the aforementioned delay instruction.

[0103] When the diagnostic B-end connector sends a transparent message to the C-end connector on the network end, it obtains the data type in the message. If the data type in the message is 0x8002, the message is discarded directly; if the data type in the message is other than 0x8002, the message is sent directly to the diagnostic device through the network.

[0104] Specifically, the actual data for a specific embodiment are shown in Table 3:

[0105]

[0106]

[0107] Table 3

[0108] In this embodiment, the TCP operation instructions obtained from the diagnostic device are parsed, and the data type of the TCP operation instructions is judged to obtain the corresponding data type judgment result. When the data type of the TCP operation instruction is the first target type, the corresponding TCP diagnostic instruction is determined, and a negative response is actively returned to indicate that the device is busy, thereby reducing the network latency waiting time and improving the reliability of the vehicle in the process of remote diagnosis.

[0109] Furthermore, based on the first and second embodiments of the remote diagnosis method of the present invention, a third embodiment of the remote diagnosis method of the present invention is proposed.

[0110] The third embodiment of the remote diagnostic method differs from the first and second embodiments in that it is a refinement of step S30, which involves receiving the diagnostic response data from the data receiving device based on the TCP diagnostic command. (Refer to...) Figure 6 This step specifically includes:

[0111] Step S31: Receive the response data from the data receiving device based on the TCP diagnostic command;

[0112] Step S32: Parse the response data to determine the data type of the response data;

[0113] In some specific embodiments, when the data transmission device receives the response data from the vehicle in response to the TCP diagnostic command, it needs to further parse the response data to obtain its corresponding data type, and determine the corresponding response data based on the judgment result of the data type.

[0114] Step S33: If the data type of the response data is the first target type, then the response data is determined to be diagnostic response data.

[0115] In one specific embodiment, the response data from the vehicle is obtained, and the data type of the response data from the vehicle is determined. If the data type of the response data is a first target type, then the response data is determined to be diagnostic response data returned by the vehicle to the diagnostic device.

[0116] Following step S33, the following is also included:

[0117] Step S34: If the data type of the reply data is the second target type, determine that the reply data is a response instruction to the TCP diagnostic instruction;

[0118] In one specific embodiment, the response data from the vehicle is obtained, and the data type of the response data from the vehicle is determined. If the data type of the response data is the second target type, then the response data is determined to be the response data from the vehicle.

[0119] Step S35: Discard the response data.

[0120] In one specific embodiment, for example, when the data type of the reply data is 0x8002, the reply data is directly discarded.

[0121] For example, when receiving vehicle response data from the B-end connector via a diagnostic device, if the data type in the vehicle's response data is 0x8002, the data is discarded and not transmitted further; if the data type in the vehicle's response data is 0x8001, the diagnostic response data is sent to the diagnostic device via the network.

[0122] In this embodiment, by using data in the form of TCP packets to perform data pass-through between the diagnostic device and the diagnostic B-end connector, each data segment is acknowledged during the data pass-through process, and the data segment is sent to the host after acknowledgment, which improves the tightness of the data communication connection and ensures the reliability of the data.

[0123] The present invention also provides a remote diagnostic device. (See reference...) Figure 7 The remote diagnostic device includes:

[0124] The receiving module 10 is used to receive TCP diagnostic commands sent by the data sending device;

[0125] The sending module 20 is used to reply to the data sending device with a response instruction and a delay instruction based on the TCP diagnostic instruction;

[0126] The transmission module 30 is used to send the TCP diagnostic command to the data receiving device and receive diagnostic response data from the data receiving device based on the TCP diagnostic command.

[0127] The execution module 40 is used to send the diagnostic response data to the data transmission device.

[0128] Reference Figure 8 The remote diagnostic device further includes:

[0129] The acquisition unit 100 is used to receive TCP operation instructions sent by the data sending device;

[0130] The judgment unit 200 is used to parse the TCP operation instruction and determine the data type of the TCP operation instruction;

[0131] The determining unit 300 is configured to determine that the TCP operation instruction is the TCP diagnostic instruction when the data type of the TCP operation instruction is the first target type;

[0132] The instruction sending unit 400 is used to send the TCP operation instruction to the data receiving device if the data type of the TCP operation instruction is not the first target type.

[0133] Preferably, the transmission module 30 is further configured to:

[0134] Receive the response data from the data receiving device based on the TCP diagnostic command;

[0135] Analyze the response data to determine its data type;

[0136] If the data type of the response data is the first target type, then the response data is determined to be diagnostic response data.

[0137] Preferably, the transmission module 30 is further configured to:

[0138] If the data type of the response data is the second target type, then the response data is determined to be a response instruction to the TCP diagnostic instruction;

[0139] Discard the response data.

[0140] In addition, the present invention provides a computer-readable storage medium having a diagnostic program stored thereon, which, when executed by a processor, implements the steps of the remote diagnostic method described above.

[0141] The method implemented when the diagnostic program running on the processor is executed can be referred to in various embodiments of the remote diagnostic method of the present invention, and will not be repeated here.

[0142] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0143] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0144] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0145] The above are merely preferred embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A remote diagnostic method, characterized in that, The remote diagnostic method is applied to a data transmission device, and the remote diagnostic method includes: Receive TCP diagnostic commands sent by the data sending device; Based on the TCP diagnostic command, the data sending device responds with an acknowledgment command and a delay command; wherein, the B-end connector in the data transmission device completes the active substitution of the negative response and the delay operation. The TCP diagnostic command is sent to the data receiving device, and the diagnostic response data from the data receiving device based on the TCP diagnostic command is received. The diagnostic response data is sent to the data transmission device; The TCP diagnostic command sent by the receiving data sending device includes: Receive TCP operation instructions sent by the data sending device; The TCP operation instructions are parsed to determine the data type of the TCP operation instructions; When the data type of the TCP operation instruction is the first target type, the TCP operation instruction is determined to be the TCP diagnostic instruction; Receiving diagnostic response data from the data receiving device based on the TCP diagnostic command includes: receiving response data from the data receiving device based on the TCP diagnostic command; parsing the response data to determine the data type of the response data; if the data type of the response data is the first target type, determining the response data as diagnostic response data; if the data type of the response data is the second target type, determining the response data as a response command to the TCP diagnostic command; and discarding the response data.

2. The remote diagnostic method as described in claim 1, characterized in that, After parsing the TCP operation instruction and determining its data type, the method further includes: If the data type of the TCP operation instruction is not the first target type, the TCP operation instruction is sent to the data receiving device.

3. A remote diagnostic device, characterized in that, The remote diagnostic device includes: A receiving module is used to receive TCP diagnostic commands sent by a data sending device; the receiving module is also used to receive the TCP diagnostic commands sent by the data sending device, including: Receive the TCP operation instruction sent by the data sending device; parse the TCP operation instruction to determine the data type of the TCP operation instruction; when the data type of the TCP operation instruction is a first target type, determine the TCP operation instruction as the TCP diagnostic instruction; The sending module is used to reply with an acknowledgment instruction and a delay instruction to the data sending device based on the TCP diagnostic instruction; the sending module is also used to complete the active replacement of the negative response and complete the delay operation through the B-end connector in the data transmission device. The transmission module is used to send the TCP diagnostic command to the data receiving device and receive diagnostic response data from the data receiving device based on the TCP diagnostic command. The transmission module is further configured to receive response data from the data receiving device based on the TCP diagnostic command; parse the response data to determine the data type of the response data; if the data type of the response data is the first target type, determine that the response data is diagnostic response data; if the data type of the response data is the second target type, determine that the response data is a response command to the TCP diagnostic command; and discard the response data. An execution module is used to send the diagnostic response data to the data transmission device.

4. The remote diagnostic device as described in claim 3, characterized in that, The receiving module includes: The acquisition unit is used to receive TCP operation instructions sent by the data sending device; The judgment unit is used to parse the TCP operation instruction and determine the data type of the TCP operation instruction; The determining unit is configured to determine that the TCP operation instruction is the TCP diagnostic instruction when the data type of the TCP operation instruction is a first target type.

5. The remote diagnostic device as described in claim 4, characterized in that, The receiving module further includes: The instruction sending unit is configured to send the TCP operation instruction to the data receiving device if the data type of the TCP operation instruction is not the first target type.

6. A diagnostic device, characterized in that, The diagnostic device includes: a memory, a processor, and a diagnostic program stored in the memory and executable on the processor, wherein the diagnostic program, when executed by the processor, implements the steps of the remote diagnostic method as described in any one of claims 1 to 2.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a diagnostic program that, when executed by a processor, implements the steps of the remote diagnostic method as described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Automobile fault remote diagnosis system based on cellphone APP

    CN105137964A

  • Vehicle remote diagnosis method and device

    CN112740127A

  • Remote diagnosis system and remote diagnosis method

    CN112965463A