Vehicle diagnostic method, apparatus, system, and storage medium

By communicating with the diagnostic server via TCP/IP sockets, the problem of manual operation of traditional vehicle diagnostic tools is solved, wireless network diagnostics are realized, labor costs are reduced, and multi-vehicle diagnostics are supported.

CN117315810BActive Publication Date: 2026-07-17FAW VOLKSWAGEN AUTOMOTIVE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
FAW VOLKSWAGEN AUTOMOTIVE CO LTD
Filing Date
2022-06-24
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Traditional vehicle diagnostic tools require manual operation and cannot diagnose multiple vehicles simultaneously, resulting in high labor costs.

Method used

The vehicle diagnostic tool establishes a TCP/IP socket communication connection with the diagnostic server, receives and parses diagnostic protocol data cell requests, configures communication parameters, realizes wireless communication with the vehicle controller, and sends and receives diagnostic requests and responses.

Benefits of technology

It enables vehicle diagnostic tools to connect remotely to the diagnostic server via wireless network, reducing labor costs, improving diagnostic efficiency, supporting simultaneous diagnosis of multiple vehicles, and adapting to various vehicle models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117315810B_ABST
    Figure CN117315810B_ABST
Patent Text Reader

Abstract

The application provides a vehicle diagnosis method, device, system and storage medium. The method is applied to a vehicle diagnostic instrument and comprises the following steps: establishing a socket-based communication connection with a diagnosis server; receiving a logical connection establishment request from the diagnosis server; creating a communication logical connection with the diagnosis server and configuring a communication resource; setting the communication logical connection to an offline state; receiving and storing diagnosis communication parameter information from the diagnosis server; setting the state of the communication logical connection to an online state, configuring a communication parameter of a vehicle controller to be diagnosed, receiving a diagnosis service request in a diagnosis protocol data unit format from the diagnosis server and parsing the diagnosis service request into a diagnosis request message; sending the diagnosis request message to the vehicle controller to be diagnosed; receiving a diagnosis response message from the vehicle controller to be diagnosed; adding the diagnosis response message into a diagnosis service response in a diagnosis protocol data unit format and sending the diagnosis service response to the diagnosis server. The application improves diagnosis efficiency and has strong scalability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention generally relate to the field of vehicle diagnostic technology, and more specifically, to a vehicle diagnostic method, apparatus, system and storage medium. Background Technology

[0002] Traditional vehicle diagnostic tools are typically standalone offline devices or wired connections. During vehicle diagnostics, an operator is required to operate the tool on-site, one person per device, resulting in high labor costs and making it impossible to diagnose multiple vehicles simultaneously. Summary of the Invention

[0003] To address the aforementioned problems in the prior art, in a first aspect, embodiments of the present invention provide a vehicle diagnostic method applied to a vehicle diagnostic instrument. The method includes: establishing a socket communication connection with the diagnostic server based on the Transmission Control Protocol / Internet Protocol (TCP / IP) address and port address of the vehicle diagnostic instrument and the diagnostic server; receiving a logical connection establishment request in the form of a diagnostic protocol data cell from the diagnostic server through the socket communication connection, wherein the logical connection establishment request includes a communication logical connection identifier and interface communication resource information; creating a communication logical connection with the diagnostic server according to the logical connection establishment request, and configuring communication resources for the communication logical connection according to the interface communication resource information; setting the state of the communication logical connection to an offline state; receiving diagnostic communication parameter information in the form of a diagnostic protocol data cell associated with a specific communication logical connection identifier from the diagnostic server, and storing it. The diagnostic communication parameter information is described as follows: setting the status of the communication logical connection corresponding to the communication logical connection identifier from offline to online, activating the connection with the vehicle controller to be diagnosed, configuring the communication parameters for communication with the vehicle controller to be diagnosed according to the stored diagnostic communication parameter information; receiving diagnostic service requests in the form of diagnostic protocol data cells from the diagnostic server through the communication logical connection, and parsing the diagnostic service requests into diagnostic request messages in a format corresponding to the communication resources used for the communication logical connection; sending the diagnostic request messages to the vehicle controller to be diagnosed via the communication resources; receiving a diagnostic response message from the vehicle controller to be diagnosed as a response to the diagnostic request messages from the vehicle controller to be diagnosed via the communication resources; constructing the diagnostic response messages into diagnostic service responses in the form of diagnostic protocol data cells, and sending the diagnostic service responses to the diagnostic server through the communication logical connection.

[0004] In some implementations, the method further includes: after the diagnosis is completed, setting the state of the communication logical connection from online to offline.

[0005] In some embodiments, the method further includes: receiving a logical connection destruction instruction in the form of a diagnostic protocol data cell from the diagnostic server, wherein the logical connection destruction instruction includes a communication logical connection identifier of the communication logical connection to be destroyed; and destroying the communication logical connection corresponding to the communication logical connection identifier in the communication logical connection destruction instruction according to the logical connection destruction instruction.

[0006] In some implementations, communication resources include one or more of a controller area network, an enhanced controller area network, and diagnostic services based on in-vehicle Ethernet.

[0007] In some implementations, activating the connection with the vehicle controller to be diagnosed and configuring the communication parameters for communicating with the vehicle controller to be diagnosed based on the stored diagnostic communication parameter information includes sending a parameter configuration message to the vehicle controller to be diagnosed, wherein the parameter configuration message includes the communication logical connection identifier, the number of parameters to be set, and the content of the communication parameters.

[0008] In some implementations, sending the diagnostic request message to the vehicle controller to be diagnosed includes: placing the diagnostic request message in a data queue, and sending the diagnostic request message to the vehicle controller to be diagnosed in a first-in-first-out manner in the data queue.

[0009] In a second aspect, embodiments of the present invention provide a vehicle diagnostic device, the device comprising: a socket communication connection establishment module configured to establish a socket communication connection with the diagnostic server based on the Transmission Control Protocol / Internet Protocol (TCP / IP) address and port address of the vehicle diagnostic instrument and the diagnostic server; a logical connection establishment request receiving module configured to receive a logical connection establishment request in the form of a diagnostic protocol data cell from the diagnostic server through the socket communication connection, wherein the logical connection establishment request includes a communication logical connection identifier and interface communication resource information; a logical connection creation module configured to create a communication logical connection with the diagnostic server according to the logical connection establishment request, and configure communication resources for the communication logical connection according to the interface communication resource information; an offline state setting module configured to set the state of the communication logical connection to an offline state; and a communication parameter receiving module configured to receive diagnostic communication parameter information in the form of a diagnostic protocol data cell associated with a specific communication logical connection identifier from the diagnostic server, and store the diagnostic communication parameter information; and communication parameters... The system includes: a configuration module for setting the status of the communication logical connection corresponding to the communication logical connection identifier from offline to online, activating the connection with the vehicle controller to be diagnosed, and configuring communication parameters for communication with the vehicle controller to be diagnosed based on the stored diagnostic communication parameter information; a diagnostic service request parsing module for receiving diagnostic service requests in the form of diagnostic protocol data cells from the diagnostic server through the communication logical connection, and parsing the diagnostic service requests into diagnostic request messages in a format corresponding to the communication resources used for the communication logical connection; a diagnostic request message sending module for sending the diagnostic request messages to the vehicle controller to be diagnosed via the communication resources; a diagnostic response message receiving module for receiving diagnostic response messages from the vehicle controller to be diagnosed as a response to the diagnostic request messages from the vehicle controller to be diagnosed via the communication resources; and a diagnostic response message constructing module for constructing the diagnostic response messages into diagnostic service responses in the form of diagnostic protocol data cells, and sending the diagnostic service responses to the diagnostic server through the communication logical connection.

[0010] In a third aspect, embodiments of the present invention provide a vehicle diagnostic system, the system comprising a diagnostic server and a vehicle diagnostic instrument. The diagnostic server is configured to: establish a socket communication connection with the vehicle diagnostic instrument based on the Internet Protocol (IP) address and port address of the vehicle diagnostic instrument and the diagnostic server; send a logical connection establishment request in the form of a diagnostic protocol data cell to the vehicle diagnostic instrument through the socket communication connection, wherein the logical connection establishment request includes a communication logical connection identifier and interface communication resource information; create a communication logical connection with the vehicle diagnostic instrument; send diagnostic communication parameter information in the form of a diagnostic protocol data cell associated with a specific communication logical connection identifier to the vehicle diagnostic instrument; send a diagnostic service request in the form of a diagnostic protocol data cell to the vehicle diagnostic instrument through the communication logical connection; and receive a diagnostic service response from the vehicle diagnostic instrument through the communication logical connection. The vehicle diagnostic tool is used to: establish a socket communication connection with the diagnostic server based on the Transmission Control Protocol / Internet Protocol (TCP / IP) address and port address of the vehicle diagnostic tool and the diagnostic server; receive a logical connection establishment request in the form of a diagnostic protocol data cell from the diagnostic server through the socket communication connection, wherein the logical connection establishment request includes a communication logical connection identifier and interface communication resource information; create a communication logical connection with the diagnostic server according to the logical connection establishment request, and configure communication resources for the communication logical connection according to the interface communication resource information; set the status of the communication logical connection to an offline state; receive diagnostic communication parameter information in the form of a diagnostic protocol data cell associated with a specific communication logical connection identifier from the diagnostic server, and store the diagnostic communication parameter information; and relative to the communication logical connection identifier... The corresponding communication logical connection is set from offline to online, and the connection with the vehicle controller to be diagnosed is activated. Communication parameters for communicating with the vehicle controller to be diagnosed are configured according to the stored diagnostic communication parameter information. A diagnostic service request in the form of a diagnostic protocol data cell is received from the diagnostic server through the communication logical connection, and the diagnostic service request is parsed into a diagnostic request message in a format corresponding to the communication resources used for the communication logical connection. The diagnostic request message is sent to the vehicle controller to be diagnosed via the communication resources. A diagnostic response message, as the vehicle controller's response to the diagnostic request message, is received from the vehicle controller to be diagnosed via the communication resources. The diagnostic response message is constructed into a diagnostic protocol data cell-based diagnostic service response, and the diagnostic service response is sent to the diagnostic server through the communication logical connection.

[0011] In some implementations, the server is further configured to: store the received diagnostic service response in a message queue, and apply a trigger event to the upper layer based on the diagnostic service response.

[0012] In a fourth aspect, embodiments of the present invention provide a storage medium storing computer-readable instructions that, when executed by a processor, perform the vehicle diagnostic method described in any of the above embodiments.

[0013] The vehicle diagnostic method, apparatus, system, and storage medium proposed in this invention connect the vehicle diagnostic instrument to a WIFI module hardware system, communicate with a cloud diagnostic server via TCP / IP protocol, and exchange D-PDU (Diagnostic Protocol Data Unit) structured data packets with the diagnostic server. This enables the vehicle diagnostic instrument to perform vehicle diagnostics via a wireless network connection to the diagnostic server. The vehicle diagnostic instrument can upload vehicle diagnostic data to the cloud server in real time. The diagnostic server can remotely control multiple diagnostic instruments, improving diagnostic efficiency, eliminating the traditional "one person, one machine" model, and significantly saving labor costs. This solution has strong scalability, allowing the vehicle diagnostic instrument to update the diagnostic process in real time, and adapting to various vehicle models and future new models. In addition, this solution uses a general-purpose hardware platform, making software portability easy. Attached Figure Description

[0014] The above and other objects, features, and advantages of embodiments of the present invention will become readily apparent from the following detailed description taken in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated in the drawings by way of example and not limitation, wherein:

[0015] Figure 1 A flowchart of a vehicle diagnostic method according to an embodiment of the present invention is shown;

[0016] Figure 2 A block diagram of a vehicle diagnostic device according to an embodiment of the present invention is shown.

[0017] In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts. Detailed Implementation

[0018] The principles and spirit of the present invention will now be described with reference to several exemplary embodiments. It should be understood that these embodiments are given merely to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way.

[0019] In one aspect, embodiments of the present invention provide a vehicle diagnostic method applied to a vehicle diagnostic instrument. (See reference...) Figure 1 The diagram shows a flowchart of a vehicle diagnostic method 100 according to an embodiment of the present invention.

[0020] like Figure 1 As shown, method 100 includes steps S101-S110.

[0021] In step S101, a socket communication connection based on Transmission Control Protocol / Internet Protocol (TCP / IP) is established with the diagnostic server according to the Internet Protocol (IP) address and port address of the vehicle diagnostic instrument and the diagnostic server. As an example, the diagnostic server could be a cloud diagnostic server.

[0022] As one embodiment of the present invention, according to functional division, the vehicle diagnostic tool may include a diagnostic module, a WiFi module, and a Socket module.

[0023] As an example, establishing a Socket communication connection may include WiFi module initialization, Socket module initialization, and connection steps based on the TCP / IP protocol.

[0024] During the WiFi module initialization process, the main controller (e.g., implemented using an ESP32 chip) initiates Station mode. The vehicle diagnostic tool, acting as a slave node, connects to the router to perform tasks such as channel selection, determining the transmit / receive (Tx / Rx) buffer size, inputting the WiFi name (WIFI_SSID) and password (WIFI_password), determining the WiFi signal strength, and assigning an IP address. A WiFi connection is then established based on the input WiFi router (master node) name and password.

[0025] During the initialization of the Socket module, the SOCKET module of the main controller (e.g., implemented by an ESP32 chip) defines the selection of IPv4 / IPv6 protocol, HOST_IP_ADDR (server IP address), HOST_PORT (server port), SOCKET send and receive rules, etc.

[0026] In the TCP / IP-based connection process, a connection is established with the cloud diagnostic server using the TCP / IP-based SOCKET-CONNECT function to maintain the session and run software reconnection and software watchdog mechanisms.

[0027] In step S102, a logical connection establishment request in the format of Diagnostic Protocol Data Unit (D-PDU) is received from the diagnostic server through a socket communication connection. The logical connection establishment request includes a communication logical connection identifier and interface communication resource information.

[0028] As one embodiment of the present invention, the communication resources include one or more of Controller Area Network (CAN), Enhanced Controller Area Network (CANFD), and diagnostic services based on in-vehicle Ethernet.

[0029] In step S103, a communication logical connection with the diagnostic server is created based on the logical connection establishment request, and communication resources for the communication logical connection are configured based on the interface communication resource information.

[0030] In step S104, the state of the communication logical connection is set to offline.

[0031] In other words, the diagnostic server sends a D-PDU message, which is used to create a COMLOGICALLINK (communication logical connection number) with the vehicle diagnostic tool. The vehicle diagnostic tool will reserve the corresponding hardware resources for the communication logical connection corresponding to this COMLOGICALLINK (communication logical connection number), prepare the corresponding hardware for communication use, and set the status of the communication logical connection corresponding to the COMLOGICALLINK (communication logical connection number) to offline.

[0032] As an example, the vehicle diagnostic tool uses three communication resources, and the parameters used are shown in the following example:

[0033] 0x01: CAN (Controller Area Network)

[0034] 0x02: CAN-FD (Enhanced Controller Area Network)

[0035] 0x04: DOIP (Diagnostic Service Based on Vehicle Ethernet)

[0036] During this process, the diagnostic server transmits parameters indicating specific communication resources to the vehicle diagnostic tool.

[0037] In step S105, diagnostic communication parameter information in the format of Diagnostic Protocol Data Unit (D-PDU) associated with a specific communication logical connection identifier is received from the diagnostic server and stored.

[0038] Diagnostic communication parameters are communication parameters used for communication between the vehicle diagnostic tool and the controller of the vehicle to be diagnosed.

[0039] As an example, for a given vehicle diagnostic tool's COMLOGICALLINK (communication logic connection number), diagnostic communication parameters can be received via PDUSTetComParam (diagnostic communication parameters) and then cached in the vehicle diagnostic tool's ComParam (diagnostic communication parameters) working cache.

[0040] The information transmitted during this process may include:

[0041] COMLOGICALLINK (Communication Logical Link Number) is used to specify which ComLogicalLink it is;

[0042] NumParamItems is used to specify the number of parameters that need to be set;

[0043] PARAM_ITEM is used to specify the content of communication parameters.

[0044] In step S106, the state of the communication logical connection corresponding to the communication logical connection identifier is changed from offline to online, and the connection with the vehicle controller to be diagnosed is activated. The communication parameters for communicating with the vehicle controller to be diagnosed are configured according to the stored diagnostic communication parameter information.

[0045] This step is the connection wake-up step, in which the vehicle diagnostic tool's ComParam (diagnostic communication parameters) working cache will activate all parameters to configure the diagnostic communication parameters with the controller.

[0046] As one embodiment of the present invention, activating the connection with the vehicle controller to be diagnosed and configuring the communication parameters for communicating with the vehicle controller to be diagnosed according to the stored diagnostic communication parameter information includes: sending a parameter configuration message to the vehicle controller to be diagnosed, wherein the parameter configuration message includes a communication logical connection identifier, the number of parameters to be set, and the content of the communication parameters.

[0047] The vehicle diagnostic tool wakes up COMLOGICALLINK (communication logical connection number) from offline to online. Before this step is started, COMLOGICALLINK (communication logical connection number) should be offline and COMLOGICALLINK (communication logical connection number) should have been established (step 1) and not destroyed.

[0048] The parameters passed in this step include: COMLOGICALLINK (communication logical connection number), which specifies which ComLogicalLink.

[0049] In step S107, a diagnostic service request in the format of a diagnostic protocol data unit (D-PDU) is received from the diagnostic server through a communication logical connection, and the diagnostic service request is parsed into a diagnostic request message in a format corresponding to the communication resources used for the communication logical connection.

[0050] As an example, receiving a diagnostic service request may include: according to the SOCKET's TCP / IP-based sending mechanism, the receiving SOCKET module receives a D-PDU message sent by the diagnostic server via WIFI using the TCP / IP protocol, and then the SOCKET module sends it to the diagnostic module via the hardwired SPI bus (synchronous serial bus).

[0051] In step S108, the diagnostic request message is sent to the vehicle controller to be diagnosed via communication resources. As an embodiment of the present invention, the diagnostic request message can be placed in the data queue of the vehicle diagnostic tool, where it waits for the bus driver to send it in a first-in-first-out (FIFO) manner.

[0052] The parameters passed in this step include:

[0053] COMLOGICALLINK (Communication Logical Link Number) is used to specify which ComLogicalLink it is;

[0054] CoPDataSize is used to specify the data length of the diagnostic data message;

[0055] CoPData is used to specify the data in the diagnostic data message.

[0056] In step S109, a diagnostic response message is received from the vehicle controller to be diagnosed via communication resources, serving as the vehicle controller's response to the diagnostic request message.

[0057] In step S110, the diagnostic response message is constructed into a diagnostic service response in Diagnostic Protocol Data Unit (D-PDU) format, and the diagnostic service response is sent to the diagnostic server through a communication logical connection. For example, according to the SOCKET's TCP / IP-based network transmission mechanism, the D-PDU (Diagnostic Protocol Data Unit) message generated by the on-board diagnostic instrument is sent to the SOCKET module, and then the SOCKET module sends it to the diagnostic server via WIFI based on the TCP / IP protocol.

[0058] The vehicle diagnostic tool sends the data received from the controller to the diagnostic server via Wi-Fi. The diagnostic server can store the data received via Wi-Fi in its own message queue and trigger events for the upper-layer application.

[0059] The transmission parameters involved in this process include:

[0060] COMLOGICALLINK (Communication Logical Link Number) is used to specify which ComLogicalLink it is;

[0061] ITEMTYPE (event type), a value of 1 is RESULT_RIGHT, and a value of 0 is PDU_IT_ERROR;

[0062] CoPDataSize is used to specify the data length of the diagnostic data message;

[0063] CoPData is used by the vehicle diagnostic tool to send diagnostic data to the cloud server after receiving the controller's message response.

[0064] Steps S107 and S110 can use the TCP / IP protocol to develop the SOCKET-SEND and SOCKET-RECEIVE functions to interact with the diagnostic server using D-PDU (Diagnostic Protocol Data Unit) structured data packets. As an example, the SocketTxQueue (socket send queue) task function, the SocketRxQueue (socket receive queue) task function, and the SendHeartBeat (heartbeat signal) function can be set simultaneously.

[0065] As one embodiment of the present invention, the method may further include: after the diagnosis is completed, setting the state of the communication logical connection from online to offline.

[0066] In the vehicle diagnostic tool, set COMLOGICALLINK (communication logical connection number) from online to offline. Before this step, COMLOGICALLINK (communication logical connection number) should be online, and COMLOGICALLINK (communication logical connection number) should have been created and not destroyed.

[0067] The parameters passed in this step include: COMLOGICALLINK (communication logical connection number), which specifies which ComLogicalLink.

[0068] As one embodiment of the present invention, the method may further include: receiving a logical connection destruction instruction in the format of a diagnostic protocol data unit (D-PDU) from a diagnostic server, wherein the logical connection destruction instruction includes a communication logical connection identifier of the communication logical connection to be destroyed; and destroying the communication logical connection corresponding to the communication logical connection identifier in the communication logical connection destruction instruction according to the logical connection destruction instruction.

[0069] The diagnostic server sends a Diagnostic Protocol Data Unit (D-PDU) message to destroy the COMLOGICALLINK (communication logical connection number) with the vehicle diagnostic tool. The parameters passed by the diagnostic server to the vehicle diagnostic tool indicate the COMLOGICALLINK (communication logical connection number) of the specific vehicle diagnostic tool to be destroyed.

[0070] Embodiments of the present invention also provide a vehicle diagnostic device, with reference to Figure 2 The diagram illustrates a block diagram of a vehicle diagnostic device according to an embodiment of the present invention. The device includes modules 201-210.

[0071] The socket communication connection establishment module 201 can be configured to establish a socket communication connection with the diagnostic server based on the Internet Protocol address and port address of the vehicle diagnostic instrument and the diagnostic server.

[0072] The logical connection establishment request receiving module 202 can be configured to receive a logical connection establishment request in the form of a diagnostic protocol data cell from the diagnostic server through a socket communication connection. The logical connection establishment request includes a communication logical connection identifier and interface communication resource information.

[0073] The logical connection creation module 203 can be configured to create a communication logical connection with the diagnostic server based on a logical connection establishment request, and to configure communication resources for the communication logical connection based on interface communication resource information.

[0074] The offline status setting module 204 can be configured to set the status of the communication logical connection to offline.

[0075] The communication parameter receiving module 205 can be configured to receive diagnostic communication parameter information in the format of Diagnostic Protocol Data Unit (D-PDU) associated with a specific communication logical connection identifier from the diagnostic server, and to store the diagnostic communication parameter information.

[0076] The communication parameter configuration module 206 can be configured to change the state of the communication logical connection corresponding to the communication logical connection identifier from offline to online, and activate the connection with the vehicle controller to be diagnosed, and configure the communication parameters for communicating with the vehicle controller to be diagnosed according to the stored diagnostic communication parameter information.

[0077] The diagnostic service request parsing module 207 can be configured to receive diagnostic service requests in the form of diagnostic protocol data cells from the diagnostic server through a communication logical connection, and parse the diagnostic service requests into diagnostic request messages in a format corresponding to the communication resources used for the communication logical connection.

[0078] The diagnostic request message sending module 208 can be configured to send diagnostic request messages to the vehicle controller to be diagnosed via communication resources.

[0079] The diagnostic response message receiving module 209 can be configured to receive a diagnostic response message from the vehicle controller to be diagnosed via communication resources, which is a response of the vehicle controller to the diagnostic request message.

[0080] The diagnostic response message constructing module 210 can be configured to construct diagnostic response messages into diagnostic service responses in the format of Diagnostic Protocol Data Units (D-PDUs) and send the diagnostic service responses to the diagnostic server through a communication logic connection.

[0081] Embodiments of the present invention also propose a vehicle diagnostic system, which includes a diagnostic server and a vehicle diagnostic instrument.

[0082] The diagnostic server is used for: establishing a socket communication connection with the vehicle diagnostic tool based on the Transmission Control Protocol / Internet Protocol (TCP / IP) address and port address, according to the Internet Protocol address and port address of both the vehicle diagnostic tool and the diagnostic server; sending a logical connection establishment request in Diagnostic Protocol Data Unit (D-PDU) format to the vehicle diagnostic tool through the socket communication connection, wherein the logical connection establishment request includes a communication logical connection identifier and interface communication resource information; creating a communication logical connection with the vehicle diagnostic tool; sending diagnostic communication parameter information in D-PDU format associated with a specific communication logical connection identifier to the vehicle diagnostic tool; sending diagnostic service requests in D-PDU format to the vehicle diagnostic tool through the communication logical connection; and receiving diagnostic service responses from the vehicle diagnostic tool through the communication logical connection.

[0083] The vehicle diagnostic tool is used for: establishing a socket communication connection with the diagnostic server based on the Transmission Control Protocol / Internet Protocol (TCP / IP) address and port address, according to the Internet Protocol address and port address of both the vehicle diagnostic tool and the diagnostic server; receiving a logical connection establishment request in Diagnostic Protocol Data Unit (D-PDU) format from the diagnostic server via the socket communication connection, wherein the logical connection establishment request includes a communication logical connection identifier and interface communication resource information; creating a communication logical connection with the diagnostic server according to the logical connection establishment request, and configuring communication resources for the communication logical connection according to the interface communication resource information; setting the status of the communication logical connection to offline; receiving diagnostic communication parameter information in D-PDU format associated with a specific communication logical connection identifier from the diagnostic server, and storing the diagnostic communication parameter information; and connecting the communication logical connection... The state of the communication logical connection corresponding to the identifier is set from offline to online, and the connection with the vehicle controller to be diagnosed is activated. The communication parameters for communicating with the vehicle controller to be diagnosed are configured according to the stored diagnostic communication parameter information. Diagnostic service requests in the form of diagnostic protocol data cells are received from the diagnostic server through the communication logical connection, and the diagnostic service requests are parsed into diagnostic request messages in the format corresponding to the communication resources used for the communication logical connection. The diagnostic request messages are sent to the vehicle controller to be diagnosed via the communication resources. A diagnostic response message, which is the vehicle controller's response to the diagnostic request messages, is received from the vehicle controller to be diagnosed via the communication resources. The diagnostic response messages are constructed into diagnostic service responses in the format of diagnostic protocol data units (D-PDUs), and the diagnostic service responses are sent to the diagnostic server through the communication logical connection.

[0084] As one embodiment of the present invention, the server can also be used to: store the received diagnostic service response in a message queue, and apply a trigger event to the upper layer based on the diagnostic service response.

[0085] In another aspect, embodiments of the present invention also provide a storage medium storing computer-readable instructions that, when executed by a processor, perform the vehicle diagnostic method described according to any of the above embodiments.

[0086] The vehicle diagnostic method, apparatus, system, and storage medium proposed in this invention connect the vehicle diagnostic instrument to a WIFI module hardware system, communicate with a cloud diagnostic server via TCP / IP protocol, and exchange D-PDU (Diagnostic Protocol Data Unit) structured data packets with the diagnostic server. This enables the vehicle diagnostic instrument to perform vehicle diagnostics via a wireless network connection to the diagnostic server. The vehicle diagnostic instrument can upload vehicle diagnostic data to the cloud server in real time. The diagnostic server can remotely control multiple diagnostic instruments, improving diagnostic efficiency, eliminating the traditional "one person, one machine" model, and significantly saving labor costs. This solution has strong scalability, allowing the vehicle diagnostic instrument to update the diagnostic process in real time, and adapting to various vehicle models and future new models. In addition, this solution uses a general-purpose hardware platform, making software portability easy.

[0087] The foregoing description of embodiments of the invention has been given for illustrative purposes and is not exhaustive, nor is it intended to limit the invention to the exact forms disclosed. Those skilled in the art will understand that various changes can be made without departing from the scope of the invention, and elements therein can be substituted with equivalents. Furthermore, many modifications can be made to adapt particular situations or materials to the teachings of the invention without departing from the basic scope of the invention. Therefore, the invention is not intended to be limited to the specific embodiments disclosed as the best mode contemplated for carrying out the invention; the invention will include all embodiments falling within the scope of the appended claims.

Claims

1. A vehicle diagnostic method, said method being applied to a vehicle diagnostic instrument, characterized in that, The method includes: Based on the Internet Protocol address and port address of the vehicle diagnostic instrument and the diagnostic server, establish a socket communication connection with the diagnostic server based on Transmission Control Protocol / Internet Protocol. The diagnostic protocol data cell-style logical connection establishment request is received from the diagnostic server through the socket communication connection, wherein the logical connection establishment request includes a communication logical connection identifier and interface communication resource information; Based on the logical connection establishment request, a communication logical connection with the diagnostic server is created, and communication resources for the communication logical connection are configured based on the interface communication resource information; Set the state of the communication logical connection to offline; The diagnostic server receives diagnostic communication parameter information in the form of diagnostic protocol data cells, which are associated with a specific communication logical connection identifier, and stores the diagnostic communication parameter information. Set the state of the communication logical connection corresponding to the communication logical connection identifier from offline to online, activate the connection with the vehicle controller to be diagnosed, and configure the communication parameters for communicating with the vehicle controller to be diagnosed according to the stored diagnostic communication parameter information. The diagnostic service request is received from the diagnostic server in the form of a diagnostic protocol data cell through the communication logical connection, and the diagnostic service request is parsed into a diagnostic request message in a format corresponding to the communication resources used for the communication logical connection. The diagnostic request message is sent to the vehicle controller to be diagnosed via the communication resources; Receive a diagnostic response message from the vehicle controller to be diagnosed via the communication resources, which is the response of the vehicle controller to the diagnostic request message; The diagnostic response message is constructed into a diagnostic protocol data cell-style diagnostic service response, and the diagnostic service response is sent to the diagnostic server through the communication logical connection. Specifically, activating the connection with the vehicle controller to be diagnosed and configuring the communication parameters for communicating with the vehicle controller to be diagnosed according to the stored diagnostic communication parameter information includes: sending a parameter configuration message to the vehicle controller to be diagnosed, wherein the parameter configuration message includes the communication logical connection identifier, the number of parameters to be set, and the content of the communication parameters.

2. The method according to claim 1, characterized in that, The method further includes: After the diagnosis is completed, the status of the communication logical connection is changed from online to offline.

3. The method according to claim 1, characterized in that, The method further includes: Receive a logical connection destruction instruction in the form of a diagnostic protocol data cell from the diagnostic server, wherein the logical connection destruction instruction includes a communication logical connection identifier of the communication logical connection to be destroyed; The communication logical connection corresponding to the communication logical connection identifier in the communication logical connection destruction instruction is destroyed according to the logical connection destruction instruction.

4. The method according to claim 1, characterized in that, Communication resources include one or more of the following: controller area network, enhanced controller area network, and diagnostic services based on vehicle Ethernet.

5. The method according to claim 1, characterized in that, Sending the diagnostic request message to the controller of the vehicle to be diagnosed includes: The diagnostic request message is placed in a data queue, and then sent to the vehicle controller to be diagnosed in a first-in-first-out manner.

6. A vehicle diagnostic device, characterized in that, The device includes: A socket communication connection establishment module is configured to establish a socket communication connection with the diagnostic server based on the Internet Protocol address and port address of the vehicle diagnostic instrument and the diagnostic server. A logical connection establishment request receiving module is configured to receive a logical connection establishment request in the form of a diagnostic protocol data cell from the diagnostic server through the socket communication connection, wherein the logical connection establishment request includes a communication logical connection identifier and interface communication resource information; A logical connection creation module is configured to create a communication logical connection with the diagnostic server based on the logical connection establishment request, and to configure communication resources for the communication logical connection based on the interface communication resource information. An offline status setting module is configured to set the status of the communication logical connection to offline status. A communication parameter receiving module is configured to receive diagnostic communication parameter information in the form of diagnostic protocol data cells associated with a specific communication logical connection identifier from the diagnostic server, and to store the diagnostic communication parameter information. The communication parameter configuration module is configured to change the state of the communication logical connection corresponding to the communication logical connection identifier from offline to online, and to activate the connection with the vehicle controller to be diagnosed. The module also configures the communication parameters for communicating with the vehicle controller to be diagnosed based on the stored diagnostic communication parameter information. The diagnostic service request parsing module is configured to receive diagnostic service requests in the form of diagnostic protocol data cells from the diagnostic server through the communication logical connection, and to parse the diagnostic service requests into diagnostic request messages in a format corresponding to the communication resources used for the communication logical connection. A diagnostic request message sending module is configured to send the diagnostic request message to the vehicle controller to be diagnosed via the communication resources. A diagnostic response message receiving module is configured to receive a diagnostic response message from the vehicle controller to be diagnosed via the communication resources, which is the response of the vehicle controller to the diagnostic request message. The diagnostic response message processing module is configured to process the diagnostic response message into a diagnostic service response in the form of diagnostic protocol data cells, and send the diagnostic service response to the diagnostic server through the communication logical connection. Specifically, activating the connection with the vehicle controller to be diagnosed and configuring the communication parameters for communicating with the vehicle controller to be diagnosed according to the stored diagnostic communication parameter information includes: sending a parameter configuration message to the vehicle controller to be diagnosed, wherein the parameter configuration message includes the communication logical connection identifier, the number of parameters to be set, and the content of the communication parameters.

7. A vehicle diagnostic system, characterized in that, The system includes a diagnostic server and a vehicle diagnostic tool. The diagnostic server is used for: Establish a socket communication connection with the vehicle diagnostic tool based on the Internet Protocol address and port address of the vehicle diagnostic tool and the diagnostic server. The device sends a logical connection establishment request in the form of a diagnostic protocol data cell to the vehicle diagnostic instrument through the socket communication connection. The logical connection establishment request includes a communication logical connection identifier and interface communication resource information. Establish a communication logic connection with the vehicle diagnostic tool; Send diagnostic communication parameter information in the form of diagnostic protocol data cells, associated with a specific communication logic connection identifier, to the vehicle diagnostic instrument; The diagnostic protocol data cell-style diagnostic service request is sent to the vehicle diagnostic instrument through the communication logical connection. Receive diagnostic service responses from the vehicle diagnostic tool via the aforementioned communication logic connection. The vehicle diagnostic tool is used for: Based on the Internet Protocol address and port address of the vehicle diagnostic instrument and the diagnostic server, establish a socket communication connection with the diagnostic server based on Transmission Control Protocol / Internet Protocol. The diagnostic protocol data cell-style logical connection establishment request is received from the diagnostic server through the socket communication connection, wherein the logical connection establishment request includes a communication logical connection identifier and interface communication resource information; Based on the logical connection establishment request, a communication logical connection with the diagnostic server is created, and communication resources for the communication logical connection are configured based on the interface communication resource information; Set the state of the communication logical connection to offline; The diagnostic server receives diagnostic communication parameter information in the form of diagnostic protocol data cells, which are associated with a specific communication logical connection identifier, and stores the diagnostic communication parameter information. Set the state of the communication logical connection corresponding to the communication logical connection identifier from offline to online, activate the connection with the vehicle controller to be diagnosed, and configure the communication parameters for communicating with the vehicle controller to be diagnosed according to the stored diagnostic communication parameter information. The diagnostic service request is received from the diagnostic server in the form of a diagnostic protocol data cell through the communication logical connection, and the diagnostic service request is parsed into a diagnostic request message in a format corresponding to the communication resources used for the communication logical connection. The diagnostic request message is sent to the vehicle controller to be diagnosed via the communication resources; Receive a diagnostic response message from the vehicle controller to be diagnosed via the communication resources, which is the response of the vehicle controller to the diagnostic request message; The diagnostic response message is constructed into a diagnostic protocol data cell-style diagnostic service response, and the diagnostic service response is sent to the diagnostic server through the communication logical connection. Specifically, activating the connection with the vehicle controller to be diagnosed and configuring the communication parameters for communicating with the vehicle controller to be diagnosed according to the stored diagnostic communication parameter information includes: sending a parameter configuration message to the vehicle controller to be diagnosed, wherein the parameter configuration message includes the communication logical connection identifier, the number of parameters to be set, and the content of the communication parameters.

8. The system according to claim 7, characterized in that, The server is also used for: The received diagnostic service response is stored in a message queue, and a trigger event is applied to the upper layer based on the diagnostic service response.

9. A storage medium storing computer-readable instructions that, when executed by a processor, perform the method according to any one of claims 1-5.