Vehicle remote diagnosis method and related device
By processing and forwarding data in the device connector of the vehicle remote diagnosis system, the problem of low communication success rate caused by network delay in K-line remote diagnosis is solved, and faster response and higher success rate are achieved.
Patent Information
- Application Number
- CN202411141799.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-12
AI Technical Summary
In the existing vehicle diagnostic methods, remote diagnosis based on K-lines has problems such as large network delay and low communication success rate.
By receiving and forwarding initialization data, responding data, requesting diagnostic data frames in the device connector of the remote diagnostic system, and sending a waiting signal if necessary, to extend the waiting time of the diagnostic equipment, reduce the impact of network delay, and improve the Communication success rate.
Quickly transmit response data during the initialization process to avoid timeouts, extend the waiting time during the diagnosis process, and avoid waiting timeouts, thereby improving the communication success rate.
Smart Images

Figure CN118938869A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle communication technology, and in particular to a vehicle remote diagnosis method and related devices. Background Art
[0002] At present, in the vehicle diagnosis industry, K-line can be used for vehicle diagnosis, specifically, the vehicle's electronic control unit is queried, calibrated and programmed through the K-line, and data is exchanged between the diagnostic equipment and the vehicle's built-in electronic control unit (ECU) through the K-line to diagnose vehicle faults. However, the diagnostic equipment and the vehicle can only be diagnosed over a short distance using the above-mentioned K-line in the form of a local cable wired connection, which brings a lot of inconvenience to vehicle diagnosis, and remote vehicle diagnosis based on the K-line has emerged. The network remote transmission based on the K-line may have a large network delay, which will cause the diagnostic equipment to fail to access and the communication success rate is not high. Summary of the invention
[0003] The embodiments of the present application provide a vehicle remote diagnosis method and related devices, which can reduce the impact of network delays and help improve the communication success rate.
[0004] In a first aspect, an embodiment of the present application provides a vehicle remote diagnosis method, which is applied to a device connector of a remote diagnosis system, wherein the remote diagnosis system further includes a diagnosis device and a target vehicle, and the method includes:
[0005] receiving first initialization data from the diagnostic device, and forwarding the first initialization data to the target vehicle;
[0006] Receiving first response data from the target vehicle, where the first response data is data sent by the target vehicle after parsing the first initialization data;
[0007] receiving second initialization data from the diagnostic device, and sending the first response data to the diagnostic device, wherein the first response data is associated with a first initialization state of the diagnostic device;
[0008] Sending the second initialization data to the target vehicle, the second initialization data being associated with a second initialization state of the target vehicle;
[0009] receiving a request diagnostic data frame from the diagnostic device, sending a waiting signal to the diagnostic device, and forwarding the request diagnostic data frame to the target vehicle, wherein the waiting signal is used to notify the diagnostic device of a state that the target vehicle is suspending the request diagnostic data frame, and the waiting signal is used to extend the waiting time of the diagnostic device;
[0010] A response data frame is received from the target vehicle, and the response data frame is forwarded to the diagnostic device, wherein the response data frame is associated with a diagnostic result of the diagnostic device.
[0011] In a second aspect, an embodiment of the present application provides a vehicle remote diagnosis device, which is applied to a device connector of a remote diagnosis system, wherein the remote diagnosis system further includes a diagnosis device and a target vehicle, including:
[0012] A first transmission module, used for sending the first initialization data sent by the diagnostic device to the target vehicle;
[0013] A data receiving module, used for receiving first response data from the target vehicle, wherein the first response data is data sent by the target vehicle after parsing the first initialization data;
[0014] A second transmission module, configured to receive second initialization data from the diagnostic device, and send the first response data to the diagnostic device, wherein the first response data is associated with a first initialization state of the diagnostic device;
[0015] A signal sending module, configured to send the second initialization data to the target vehicle, wherein the second initialization data is associated with a second initialization state of the target vehicle;
[0016] a request transmission module, used for receiving a request diagnosis data frame from the diagnostic device, sending a waiting signal to the diagnostic device, and forwarding the request diagnosis data frame to the target vehicle, wherein the waiting signal is used for notifying the diagnostic device of a state that the target vehicle is suspending the request diagnosis data frame, and the waiting signal is used for extending the waiting time of the diagnostic device;
[0017] The response transmission module is used to receive a response data frame from the target vehicle and forward the response data frame to the diagnostic device, wherein the response data frame is associated with a diagnostic result of the diagnostic device.
[0018] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing some or all of the steps described in the first aspect of the embodiment of the present application.
[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes some or all of the steps described in the first aspect.
[0020] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0021] By implementing the embodiment of the present application, the first initialization data from the diagnostic device is received, and the first initialization data is forwarded to the target vehicle, the first response data from the target vehicle is received, the first response data is the data sent by the target vehicle after parsing the first initialization data, the second initialization data from the diagnostic device is received, the first response data is sent to the diagnostic device, the first response data is associated with the first initialization state of the diagnostic device, the second initialization data is sent to the target vehicle, the second initialization data is associated with the second initialization state of the target vehicle, the request diagnostic data frame from the diagnostic device is received, a waiting signal is sent to the diagnostic device, and the request diagnostic data frame is forwarded to the target vehicle, the waiting signal is used to notify the diagnostic device of the state of the target vehicle suspending the request diagnostic data frame, the waiting signal is used to extend the waiting time of the diagnostic device, the response data frame from the target vehicle is received, and the response data frame is forwarded to the diagnostic device, wherein the response data frame is associated with the diagnostic result of the diagnostic device. In this way, during the initialization process, the device connector uses the first response data to respond to the diagnostic device, so that the diagnostic device receives the response data faster and avoids the response timeout, and during the diagnosis process, the device connector sends a waiting signal, so that the diagnostic device extends the waiting time and avoids the waiting timeout, thereby reducing the impact of network delay and improving the communication success rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.
[0023] Figure 1 This is a system architecture diagram of a vehicle remote diagnosis method provided by an embodiment of the present application;
[0024] Figure 2a is a method flow chart of a vehicle remote diagnosis method provided by an embodiment of the present application;
[0025] Figure 2b is a method flow chart of another vehicle remote diagnosis method provided by an embodiment of the present application;
[0026] Figure 2c is a method flow chart of another vehicle remote diagnosis method provided by an embodiment of the present application;
[0027] Figure 2dis a method flow chart of another vehicle remote diagnosis method proposed in an embodiment of the present application;
[0028] Figure 3 It is a schematic diagram of an interactive flow of a vehicle remote diagnosis method provided in an embodiment of the present application;
[0029] Figure 4 is a structural schematic diagram of a vehicle remote diagnosis device provided in an embodiment of the present application;
[0030] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0032] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or electronic device that includes a series of steps or units is not limited to the listed steps or units, but in an optional example also includes steps or units that are not listed, or in an optional example also includes other steps or units inherent to these processes, methods, products, or electronic devices.
[0033] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0034] See also Figure 1 , Figure 1 is a system architecture diagram of a vehicle remote diagnosis method provided by an embodiment of the present application, such as Figure 1 As shown, the remote diagnosis system 100 includes: a diagnosis device 110 , a device connector 120 , a vehicle connector 130 , and a target vehicle 140 .
[0035] Among them, the diagnostic device 110 is a tool or device for detecting, analyzing and diagnosing system failures and performance problems of the target vehicle 140 and obtaining relevant data and information of the target vehicle 140. The diagnostic device 110 can be an electronic device capable of performing diagnostic operations, and the electronic device can include a smart phone (such as an Android phone, an iOS phone, a Windows Phone phone, etc.), a tablet computer, a PDA, a server, a laptop computer, a mobile Internet electronic device (MID, Mobile Internet Devices) or a wearable electronic device (such as a smart watch, a Bluetooth headset), etc. The above electronic devices are only examples, not exhaustive, including but not limited to the above electronic devices. The diagnostic device 110 has a communication function and can communicate with other devices. For example, it can communicate with the device connector 120 through a K line, and the K line transmission diagnosis meets ISO14230, ISO 9141, SAE J2740, SAE J281 and other K line diagnostic standards.
[0036] The device connector 120 can be used as a data transfer station. The device connector 120 can send data to the vehicle connector 130 or the diagnostic device 110, and can also receive data sent from the diagnostic device 110 or the vehicle connector 130. The device connector 120 can actively send information, for example, can send specific information to the diagnostic device.
[0037] The vehicle connector 130 can be used as a data transfer station. The vehicle connector 130 can send data to the target vehicle 140 or the device connector 120, and can also receive data sent from the device connector 120 or the target vehicle 140. The device connector and the vehicle connector have the function of converting data into a data format that can be transmitted through the network, such as converting K-line transmission data into network data packets and transmitting them to other devices through the remote network.
[0038] Among them, the device connector 120 and the vehicle connector 130 can communicate with each other by wireless transmission, or by wireless transmission through the network. During communication, information can be transmitted through the server. The communication between the vehicle connector 130 and the device connector 120 includes but is not limited to: server data transfer, P2P communication, wired network connection, 4G / 5G network connection and other communication technologies.
[0039] The target vehicle 140 is equipped with an on-board diagnostics (OBD) system, which allows the diagnostic device 110 to perform diagnostics and programming services on the target vehicle 140 .
[0040] See also Figure 2a , Figure 2ais a method flow chart of a vehicle remote diagnosis method provided by an embodiment of the present application, such as Figure 2a As shown, the method comprises the following steps:
[0041] S210, receiving first initialization data from a diagnostic device, and forwarding the first initialization data to a target vehicle.
[0042] The first initialization data is used to inform the device connector that the OBD of the diagnostic device is ready to be connected, and the first initialization data is also used to enable the target vehicle to be initialized according to the first initialization data.
[0043] After receiving the first initialization data from the diagnostic device, the first initialization data can be saved, wherein the first initialization data can include first startup communication request information, and the first startup communication request information can be used to query response data, and the response data is the data generated after the target vehicle responds to the initialization data.
[0044] In a possible embodiment, the remote diagnostic system also includes a vehicle connector, the vehicle connector is connected to the target vehicle via a K-line protocol, the device connector is connected to the diagnostic device via the K-line protocol, and the device connector and the vehicle connector are connected via network communication.
[0045] After receiving the first initialization data from the diagnostic device, the device connector sends the first initialization data to the vehicle connector, and the vehicle connector forwards the first initialization data to the target vehicle.
[0046] The device connector converts the first initialization data into a data format that can be transmitted through a network, such as into a network data packet, and transmits it to the vehicle connector through a remote network.
[0047] S220, receiving first response data from the target vehicle, where the first response data is data sent by the target vehicle after parsing the first initialization data.
[0048] After receiving the first initialization data, the target vehicle responds to the first initialization data and generates first response data. The device connector receives the first response data from the target vehicle and records the first response data.
[0049] The first response data has an association relationship with the first communication startup request information in the first initialization data. The association relationship may be a corresponding relationship. The corresponding relationship may be finding the corresponding response data through the first communication startup request information.
[0050] Among them, the device connector converts the first response data in the form of a data packet received through the remote network into a data format that can be transmitted through the K line, such as restoring the data packet to a data form.
[0051] The diagnostic device may have timed out due to network status reasons, such as network delay, and the first response data can no longer initialize the diagnostic device. A second initialization process is required to complete the initialization of the diagnostic device and the target vehicle.
[0052] S230, receiving second initialization data from the diagnostic device, and sending first response data to the diagnostic device, where the first response data is associated with a first initialization state of the diagnostic device.
[0053] The second initialization data is initialization data sent by the diagnostic device except for the first initialization data, and may be initialization data sent after sending the first initialization data.
[0054] Among them, after receiving the second initialization data, the device connector sends the recorded first response data to the diagnostic device, and the diagnostic device completes initialization according to the first initialization data from the device connector, so that the diagnostic device reaches a first initialization state. The first initialization state is the state of the initialized diagnostic device, indicating that the diagnostic device can perform subsequent diagnostic operations on the target vehicle.
[0055] In one possible embodiment, see Figure 2b , Figure 2b is a method flow chart of another vehicle remote diagnosis method provided by an embodiment of the present application, such as Figure 2b As shown, receiving second initialization data from a diagnostic device and sending first response data to the diagnostic device include:
[0056] S231, receiving second initialization data from a diagnostic device;
[0057] S232, searching for matching response data according to the second initialization data;
[0058] S233. Send first response data to the diagnostic device, where the first response data is response data matching the second initialization data.
[0059] The first response data has an association relationship with the first communication startup request information in the first initialization data, and the association relationship may be a corresponding relationship, and the corresponding relationship may be finding the corresponding response data through the first communication startup request information. The second initialization data may include the second communication startup request information, and after receiving the second initialization data, the device connector searches according to the second communication startup request to find matching response data, for example, finds the first response data, and then sends the matching response data to the diagnostic device.
[0060] It can be seen that in this embodiment, by matching the second initialization data with the response data in the record and sending the response data in the record to the diagnostic device, the diagnostic device can quickly obtain the response data, thereby improving the communication success rate.
[0061] In a possible embodiment, the first initialization data includes first communication startup request information, the first initialization data packet has a corresponding relationship with the first response data, the second initialization data includes second communication startup request information, and the first communication startup request information and the second communication startup request information have the same content, see Figure 2c , Figure 2c is a method flow chart of another vehicle remote diagnosis method provided by an embodiment of the present application, such as Figure 2c As shown, searching for matching response data according to the second initialization data includes:
[0062] S2321, searching for the first communication initiation request information according to the second communication initiation request information;
[0063] S2322, searching for first response data corresponding to the first initialization data according to the first communication startup request information;
[0064] S2323. Use the first response data as response data matching the second initialization data.
[0065] Among them, the second initialization data includes second startup request information. The device connector searches in the record according to the second startup request information in the second initialization data. After finding the first startup request information that is the same as the second startup request information, the device connector obtains the first response data associated with the first startup request information, uses the first response data as the response data of the second initialization data, and transmits the first response data to the diagnostic device.
[0066] It can be seen that in this embodiment, the response data in the record is used to match the second initialization data, and the response data in the record is used as the response data of the second initialization data, so that the response data can be quickly obtained and the communication success rate can be improved.
[0067] S240, sending second initialization data to the target vehicle, where the second initialization data is associated with a second initialization state of the target vehicle.
[0068] After receiving the second initialization data from the diagnostic device, the device connector forwards the second initialization data to the target vehicle so that the target vehicle reaches a second initialization state, the second initialization state being the state of the initialized target vehicle. Reaching the second initialization state indicates that the target vehicle can perform subsequent diagnostic operations according to the instructions of the diagnostic device.
[0069] The device connector may convert the second initialization data into a data format that can be transmitted over a network, such as a network data packet, and transmit it to the vehicle connector via a remote network, and finally be received by the target vehicle.
[0070] In a possible embodiment, after the second initialization data step occurs to the target vehicle, the method further includes: discarding second response data from the target vehicle.
[0071] Among them, after the device connector receives the second initialization data, it sends the recorded first response data to the diagnostic device, and the diagnostic device is initialized according to the first response data. At this time, the diagnostic device has been initialized and does not need the second response data. Then, after receiving the second response data from the target vehicle, the device connector can discard the second response data.
[0072] It can be seen that in this embodiment, after the diagnostic device is initialized based on the first response data, the unnecessary second response data is discarded, which can reduce the data transmission pressure and prevent the diagnostic device from being confused, so that the initialization of the diagnostic device is not disturbed.
[0073] S250, receiving a request diagnostic data frame from a diagnostic device, sending a waiting signal to the diagnostic device, and forwarding the request diagnostic data frame to a target vehicle, wherein the waiting signal is used to notify the diagnostic device of a pending status of the target vehicle for the request diagnostic data frame, and the waiting signal is used to extend a waiting time of the diagnostic device.
[0074] The request diagnosis data frame is a data frame sent by the diagnostic device when performing diagnosis. The request diagnosis data frame can be a data frame used for vehicle diagnosis or a data frame used to indicate the start of diagnosis, which is not limited here. After the device connector receives the request diagnosis data frame from the diagnostic device, it actively sends a waiting signal to the diagnostic device. The waiting signal is used to extend the waiting time of the diagnostic device. The waiting time refers to the time to wait for the information of the response request diagnosis data frame. In addition, the request diagnosis data frame is forwarded to the target vehicle so that the target vehicle receives the request diagnosis data frame.
[0075] The waiting signal may be a negative response code of 78, which indicates that the message requested by the diagnostic instrument is correctly received by the ECU and all parameters in the request message are valid, but the action to be executed is not completed and the ECU is not ready to receive other requests, thereby achieving the effect of extending the waiting time. The above-mentioned waiting signal may also be other signals that can cause the diagnostic device to extend the waiting time, which is not specifically limited here.
[0076] Among them, the device connector can convert the request diagnosis data frame into a data format that can be transmitted through the network, such as into a network data packet, transmit it to the vehicle connector through the remote network, and finally be received by the target vehicle.
[0077] It should be noted that the above-mentioned process of sending the waiting signal is optional. After receiving the request diagnosis data frame from the diagnostic device, the device connector forwards the request diagnosis data frame to the target vehicle without sending a waiting signal to the diagnostic device.
[0078] In a possible embodiment, the waiting signal may be determined after determining whether the network status is delayed, including: receiving a request diagnostic data frame from a diagnostic device; obtaining current network delay data; when the network delay data reaches a network delay threshold, sending a waiting signal to the diagnostic device, the waiting signal is used to extend the waiting time of the diagnostic device, the waiting time is the time to wait for the response data frame generated by the target vehicle; when the network delay data does not reach the network delay threshold, transmitting a request diagnostic data frame to the target vehicle based on a remote network through the vehicle connector. The above network delay data can be obtained through network monitoring tools, built-in delay measurement, Ping test, etc., and the network delay data detection method can also be other methods, which are not limited here.
[0079] The waiting signal may be a negative response with code 78, which indicates that the message requested by the diagnostic instrument is correctly received by the ECU of the target vehicle and all parameters in the request message are valid, but the action to be executed is not completed, that is, the target vehicle is in a suspended state, so that the diagnostic instrument knows the suspended state of the target vehicle, thereby achieving the effect of extending the waiting time of the diagnostic device. The above-mentioned waiting signal may also be other signals that can extend the waiting time of the diagnostic device, which is not specifically limited here.
[0080] It can be seen that in this embodiment, the judgment of the network delay situation is added, and the process of judging the network delay situation is increased, so that the vehicle reduces the probability of waiting timeout, and can send a waiting signal based on the basis, thereby improving reliability. In a possible embodiment, receiving a request diagnosis data frame from a diagnostic device, sending a waiting signal to the diagnostic device, and forwarding the request diagnosis data frame to the target vehicle, including: receiving a request diagnosis data frame from a diagnostic device; sending a waiting signal to the diagnostic device after receiving the request diagnosis data frame, the waiting signal is used to extend the waiting time of the diagnostic device, and the waiting time is the time to wait for the response data frame generated by the target vehicle; transmitting the request diagnosis data frame to the target vehicle based on the remote network through the vehicle connector.
[0081] Among them, when requesting the diagnostic data frame to be forwarded through the vehicle connector or the device connector, it can include two modes: complete data frame forwarding and single-byte data forwarding, and the specific mode is not limited here.
[0082] It can be seen that in this embodiment, a vehicle connector is added to transfer data frames to adapt to a variety of vehicles and improve the compatibility of vehicle diagnosis.
[0083] In one possible embodiment, see Figure 2d , Figure 2d is a method flow chart of another vehicle remote diagnosis method provided by an embodiment of the present application, such as Figure 2d As shown, receiving a request diagnosis data frame from a diagnostic device, sending a waiting signal to the diagnostic device, and forwarding the request diagnosis data frame to a target vehicle, including:
[0084] S251, receiving a diagnostic request data frame from a diagnostic device;
[0085] S252, recording the waiting time of the diagnostic device after receiving the request diagnosis data frame;
[0086] S253, when the waiting time reaches the waiting time threshold, sending a waiting signal to the diagnostic device, the waiting signal is used to extend the waiting time of the diagnostic device, and the waiting time is the time for waiting for the response data frame generated by the target vehicle;
[0087] S254 , transmitting a request diagnosis data frame to the target vehicle via the vehicle connector based on the remote network.
[0088] Among them, when the device connector receives a request diagnostic data frame from the diagnostic device, the waiting time of the diagnostic device is recorded, and the waiting time refers to the time waiting for the response data frame that responds to the request diagnostic data frame. In addition, the request diagnostic data frame is forwarded to the target vehicle based on the remote network, so that the target vehicle receives the request diagnostic data frame. It is determined whether the waiting time exceeds the waiting time threshold. The waiting time threshold is a preset value and can be obtained according to experiments or other methods; when the waiting time does not exceed the waiting time threshold, the operation of sending a waiting signal is not performed, so that the diagnostic device continues to wait for a response; when the waiting time exceeds the waiting time threshold, a waiting signal is sent to the diagnostic device to extend the waiting time of the diagnostic device.
[0089] The waiting signal may be a negative response with code 78, which indicates that the message requested by the diagnostic instrument is correctly received by the ECU of the target vehicle and all parameters in the request message are valid, but the action to be executed is not completed, that is, the target vehicle is in a suspended state, so that the diagnostic instrument knows the suspended state of the target vehicle, thereby achieving the effect of extending the waiting time of the diagnostic device. The above-mentioned waiting signal may also be other signals that can extend the waiting time of the diagnostic device, which is not specifically limited here.
[0090] It can be seen that in this embodiment, a vehicle connector is used to transfer data frames to adapt to a variety of vehicles and improve the compatibility of vehicle diagnosis. In addition, a process for determining the waiting time is added, so that the vehicle reduces the probability of waiting timeout and can send waiting signals based on evidence, thereby improving reliability.
[0091] In a possible embodiment, the remote diagnostic system also includes a vehicle connector, the vehicle connector is connected to the target vehicle via a K-line protocol, the device connector is connected to the diagnostic device via a K-line protocol, and the device connector and the vehicle connector are connected via network communication.
[0092] Among them, the diagnostic device sends a request diagnostic data frame to the device connector through the K-line protocol. After receiving the request diagnostic data frame, the device connector sends a waiting signal to the diagnostic device through the K-line protocol, and forwards the request diagnostic data frame to the vehicle connector through network communication. The vehicle connector then sends the request diagnostic data frame to the target vehicle through the K-line protocol.
[0093] Among them, when requesting the diagnostic data frame to be forwarded through the vehicle connector or the device connector, it can include two modes: complete data frame forwarding and single-byte data forwarding, and the specific mode is not limited here.
[0094] It can be seen that in this embodiment, remote vehicle diagnosis is achieved through K-line protocol and network communication connection, and a vehicle connector is added to transfer data frames to adapt to a variety of vehicles and improve the compatibility of vehicle diagnosis.
[0095] S260, receiving a response data frame from the target vehicle, and forwarding the response data frame to the diagnostic device, wherein the response data frame is associated with a diagnostic result of the diagnostic device.
[0096] Among them, after receiving the request diagnostic data frame, the target vehicle responds to the request diagnostic data frame and can perform a diagnostic operation. After generating a response data frame, the response data frame is sent to the device connector. After receiving the response data frame from the target vehicle, the device connector forwards the response data frame to the diagnostic device. The response data frame can represent the diagnostic result of the target vehicle to achieve the effect of diagnosing the vehicle.
[0097] Among them, the device connector converts the response data frame in the form of a data packet received through the remote network into a data format that can be transmitted through the K line, such as restoring the data packet to a data form.
[0098] In a possible embodiment, the remote diagnostic system also includes a vehicle connector, the vehicle connector is connected to the target vehicle via a K-line protocol, the device connector is connected to the diagnostic device via a K-line protocol, and the device connector and the vehicle connector are connected via network communication.
[0099] It can be seen that in this embodiment, the first initialization data from the diagnostic device is received, and the first initialization data is forwarded to the target vehicle; the first response data from the target vehicle is received, and the first response data is the data sent by the target vehicle after parsing the first initialization data; the second initialization data from the diagnostic device is received, and the first response data is sent to the diagnostic device, and the first response data is associated with the first initialization state of the diagnostic device; the second initialization data is sent to the target vehicle, and the second initialization data is associated with the second initialization state of the target vehicle; the request diagnostic data frame from the diagnostic device is received, a waiting signal is sent to the diagnostic device, and the request diagnostic data frame is forwarded to the target vehicle, and the waiting signal is used to extend the waiting time of the diagnostic device; the response data frame from the target vehicle is received, and the response data frame is forwarded to the diagnostic device, wherein the response data frame is associated with the diagnostic result of the diagnostic device. In this way, during the initialization process, the device connector uses the first response data to respond to the diagnostic device, so that the diagnostic device receives the response data faster and avoids the response timeout. During the diagnosis process, the device connector sends a waiting signal, so that the diagnostic device extends the waiting time and avoids the waiting timeout, thereby reducing the impact of network delay and improving the communication success rate.
[0100] See also Figure 3 , Figure 3 is a schematic diagram of an interactive flow of a vehicle remote diagnosis method provided by an embodiment of the present application, such as Figure 3 As shown, the vehicle remote diagnosis method includes:
[0101] The device connector receives first initialization data from the diagnostic device, wherein data can be transmitted between the device connector and the diagnostic device via a K-line; the device connector sends the first initialization data to the vehicle connector via a remote network, and the vehicle connector forwards the data to the target vehicle, wherein data is transmitted between the target vehicle and the vehicle connector via a K-line, wherein data is transmitted between the device connector and the vehicle connector via a remote network; the device connector receives first response data from the target vehicle, wherein the first response data is sent by the target vehicle and forwarded to the device connector via the vehicle connector; the device connector sends the received first response data to the diagnostic device, and records the first response data, which may be recorded in a storage space, etc., which is not limited here; the device connector receives the first response data from the diagnostic device Second initialization data; the device connector sends the recorded first response data to the diagnostic device, and the diagnostic device is initialized according to the first response data to reach a state in which the target vehicle can be diagnosed; the device connector sends the received second initialization data to the vehicle connector, and the vehicle connector forwards the second initialization data to the target vehicle; the vehicle is initialized according to the second initialization data to reach a second initialization state, that is, the target vehicle reaches an initialization state in which it can be diagnosed by the diagnostic device; the device connector receives second response data from the target vehicle, wherein the second response data is sent by the target vehicle and forwarded to the device connector via the vehicle connector; since the diagnostic device has been initialized according to the first initialization data, the device connector can discard the received second response data. The device connector receives a request diagnostic data frame from the diagnostic device, indicating that the diagnostic device may start a diagnostic operation. The device connector actively sends a waiting message to the diagnostic device based on the network status, so that the diagnostic device prolongs the waiting time for the response, wherein the waiting message may be a negative response with code 78; after receiving the request diagnostic data frame from the diagnostic device, the device connector forwards the request diagnostic data frame to the vehicle connector, and the vehicle connector forwards it to the target vehicle; after receiving the diagnostic data frame, the target vehicle performs diagnostic operations such as the diagnostic data frame to generate a response data frame; the device connector receives a response data frame sent from the target vehicle and forwarded through the vehicle connector, so that the diagnostic device obtains the diagnostic result based on the response data frame, thereby completing a vehicle remote diagnosis.
[0102] It can be seen that in this embodiment, the first initialization data from the diagnostic device is received, and the first initialization data is forwarded to the target vehicle; the first response data from the target vehicle is received, and the first response data is the data sent by the target vehicle after parsing the first initialization data; the second initialization data from the diagnostic device is received, and the first response data is sent to the diagnostic device, and the first response data is associated with the first initialization state of the diagnostic device; the second initialization data is sent to the target vehicle, and the second initialization data is associated with the second initialization state of the target vehicle; the request diagnostic data frame from the diagnostic device is received, a waiting signal is sent to the diagnostic device, and the request diagnostic data frame is forwarded to the target vehicle, and the waiting signal is used to extend the waiting time of the diagnostic device; the response data frame from the target vehicle is received, and the response data frame is forwarded to the diagnostic device, wherein the response data frame is associated with the diagnostic result of the diagnostic device. In this way, during the initialization process, the device connector uses the first response data to respond to the diagnostic device, so that the diagnostic device receives the response data faster and avoids the response timeout. During the diagnosis process, the device connector sends a waiting signal, so that the diagnostic device extends the waiting time and avoids the waiting timeout, thereby reducing the impact of network delay and improving the communication success rate.
[0103] It should be noted that the above-mentioned process of sending the waiting signal is optional. After receiving the request diagnosis data frame from the diagnostic device, the device connector forwards the request diagnosis data frame to the target vehicle without sending a waiting signal to the diagnostic device.
[0104] In a possible embodiment, data is transmitted between the device connector and the vehicle connector via a remote network, and data verification is performed when data is transmitted via the remote network; the data verification method may be a parity check, a cyclic redundancy check, a stop-wait protocol, etc., or other methods, which are not limited here.
[0105] It can be seen that in this embodiment, when data is transmitted through the network, data verification is performed to ensure that the data is safe and reliable.
[0106] See also Figure 4 , Figure 4 4 is a structural diagram of a vehicle remote diagnosis device provided by an embodiment of the present application. The vehicle remote diagnosis device 400 is applied to a device connector of a remote diagnosis system. The remote diagnosis system also includes a diagnosis device and a target vehicle. The vehicle remote diagnosis device 400 includes: a first transmission module 410, a data receiving module 420, a second transmission module 430, a signal sending module 440, a request transmission module 450, and a response transmission module 460, wherein:
[0107] A first transmission module 410 is used to send the first initialization data sent by the diagnostic device to the target vehicle;
[0108] The data receiving module 420 is used to receive first response data from the target vehicle, where the first response data is data sent by the target vehicle after parsing the first initialization data;
[0109] A second transmission module 430 is used to receive second initialization data from the diagnostic device and send first response data to the diagnostic device, where the first response data is associated with a first initialization state of the diagnostic device;
[0110] A signal sending module 440, configured to send second initialization data to the target vehicle, wherein the second initialization data is associated with a second initialization state of the target vehicle;
[0111] A request transmission module 450, configured to receive a request diagnosis data frame from a diagnostic device, send a waiting signal to the diagnostic device, and forward the request diagnosis data frame to a target vehicle, wherein the waiting signal is used to notify the diagnostic device of a pending state of the target vehicle for the request diagnosis data frame, and the waiting signal is used to extend a waiting time of the diagnostic device;
[0112] The response transmission module 460 is used to receive a response data frame from the target vehicle and forward the response data frame to the diagnostic device, wherein the response data frame is associated with the diagnostic result of the diagnostic device.
[0113] In a possible implementation, the data receiving module 420, in receiving the second initialization data from the diagnostic device and sending the first response data to the diagnostic device, is specifically configured to:
[0114] receiving second initialization data from the diagnostic device;
[0115] Searching for matching response data according to the second initialization data;
[0116] Sending first response data to the diagnostic device, where the first response data is response data matching the second initialization data.
[0117] In a possible implementation, the data receiving module 420 is further configured to search for matching response data according to the second initialization data:
[0118] searching the first communication initiation request information according to the second communication initiation request information;
[0119] searching, according to the first communication startup request information, for the first response data corresponding to the first initialization data;
[0120] The first response data is used as response data matching the second initialization data.
[0121] In a possible implementation, the request transmission module 450 is specifically configured to receive the request diagnosis data frame from the diagnostic device, send a waiting signal to the diagnostic device, and forward the request diagnosis data frame to the target vehicle:
[0122] receiving a request diagnosis data frame from the diagnostic device;
[0123] After receiving the request diagnosis data frame, a waiting signal is sent to the diagnostic device, wherein the waiting signal is used to extend the waiting time of the diagnostic device, and the waiting time is the time for waiting for the response data frame generated by the target vehicle;
[0124] The request diagnostic data frame is transmitted to the target vehicle via the vehicle connector over a remote network.
[0125] In a possible implementation, the request transmission module 450 is further configured to receive the request diagnosis data frame from the diagnostic device, send a waiting signal to the diagnostic device, and forward the request diagnosis data frame to the target vehicle:
[0126] receiving a request diagnosis data frame from the diagnostic device;
[0127] recording the waiting time of the diagnostic device after receiving the request diagnostic data frame;
[0128] When the waiting time reaches the waiting time threshold, sending the waiting signal to the diagnostic device, the waiting signal is used to extend the waiting time of the diagnostic device, and the waiting time is the time for waiting for the response data frame generated by the target vehicle;
[0129] The request diagnostic data frame is transmitted to the target vehicle via the vehicle connector over a remote network.
[0130] It is worth noting that the specific functional implementation of the vehicle remote diagnosis device 400 is shown in the above Figure 2a The description of the vehicle remote diagnosis method shown in the figure, for example, the first transmission module 410 is used to implement the relevant content of executing S210. The various units or modules in the vehicle remote diagnosis device 400 can be respectively or completely combined into one or several other units or modules to constitute, or one (some) of the units or modules can be further divided into multiple functionally smaller units or modules to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units or modules are divided based on logical functions. In actual applications, the functions of one unit (or module) are implemented by multiple units (or modules), or the functions of multiple units (or modules) are implemented by one unit (or module).
[0131] It can be seen that the vehicle remote diagnosis device described in the embodiment of the present application receives the first initialization data from the diagnostic device, and forwards the first initialization data to the target vehicle, receives the first response data from the target vehicle, the first response data is the data sent by the target vehicle after parsing the first initialization data, receives the second initialization data from the diagnostic device, sends the first response data to the diagnostic device, the first response data is associated with the first initialization state of the diagnostic device, sends the second initialization data to the target vehicle, the second initialization data is associated with the second initialization state of the target vehicle, receives the request diagnosis data frame from the diagnostic device, sends a waiting signal to the diagnostic device, and forwards the request diagnosis data frame to the target vehicle, the waiting signal is used to extend the waiting time of the diagnostic device, receives the response data frame from the target vehicle, and forwards the response data frame to the diagnostic device, wherein the response data frame is associated with the diagnosis result of the diagnostic device. In this way, during the initialization process, the device connector uses the first response data to respond to the diagnostic device, so that the diagnostic device receives the response data faster and avoids the response timeout. During the diagnosis process, the device connector sends a waiting signal, so that the diagnostic device extends the waiting time and avoids the waiting timeout, thereby reducing the impact of network delay and improving the communication success rate.
[0132] See also Figure 5 , Figure 5 It is a structural diagram of an electronic device provided in an embodiment of the present application. As shown in the figure, the electronic device 500 includes a processor 510, a memory 520, a communication interface 530 and one or more programs 521. The one or more programs 521 are stored in the memory 520 and are configured to be executed by the processor 510.
[0133] The processor 510, the memory 520, and the communication interface 530 are interconnected and perform communication work with each other;
[0134] The memory 520 may be a volatile memory such as a dynamic random access memory DRAM, or a non-volatile memory such as a mechanical hard disk. The memory 520 is used to store a set of executable program codes, and the processor 510 is used to call one or more programs 521 stored in the memory 520 to execute the above-mentioned Figure 2a , Figure 2b , Figure 2c , Figure 2d , Figure 3 Part or all of the steps of any vehicle remote diagnosis method recorded in the embodiments.
[0135] Among them, the electronic device 500 may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, driving recorders, vehicle-mounted electronic devices, servers, laptops, mobile Internet electronic devices (MID, Mobile Internet Devices) or wearable electronic devices (such as smart watches, Bluetooth headsets), etc. The above are only examples and not exhaustive, including but not limited to the above electronic devices.
[0136] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0137] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.
[0138] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0139] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0140] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0141] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0142] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0143] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer electronic device (which can be a personal computer, electronic device or network electronic device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0144] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0145] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A vehicle remote diagnosis method, characterized in that: A device connector for a remote diagnostic system, wherein the remote diagnostic system further comprises a diagnostic device and a target vehicle, and the method comprises: receiving first initialization data from the diagnostic device, and forwarding the first initialization data to the target vehicle; Receiving first response data from the target vehicle, where the first response data is data sent by the target vehicle after parsing the first initialization data; receiving second initialization data from the diagnostic device, and sending the first response data to the diagnostic device, wherein the first response data is associated with a first initialization state of the diagnostic device; Sending the second initialization data to the target vehicle, the second initialization data being associated with a second initialization state of the target vehicle; receiving a request diagnostic data frame from the diagnostic device, sending a waiting signal to the diagnostic device, and forwarding the request diagnostic data frame to the target vehicle, wherein the waiting signal is used to notify the diagnostic device of a state that the target vehicle is suspending the request diagnostic data frame, and the waiting signal is used to extend the waiting time of the diagnostic device; A response data frame is received from the target vehicle, and the response data frame is forwarded to the diagnostic device, wherein the response data frame is associated with a diagnostic result of the diagnostic device.
2. The method according to claim 1, characterized in that The remote diagnosis system also includes a vehicle connector, the vehicle connector is connected to the target vehicle via a K-line protocol, the device connector is connected to the diagnostic device via the K-line protocol, and the device connector and the vehicle connector are connected via network communication.
3. The method according to claim 2, characterized in that The receiving the second initialization data from the diagnostic device and sending the first response data to the diagnostic device comprises: receiving second initialization data from the diagnostic device; Searching for matching response data according to the second initialization data; Sending first response data to the diagnostic device, where the first response data is response data matching the second initialization data.
4. The method according to claim 3, characterized in that The first initialization data includes first communication startup request information, the first initialization data packet has a corresponding relationship with the first response data, the second initialization data includes second communication startup request information, the first communication startup request information and the second communication startup request information have the same content, and the matching response data searched according to the second initialization data includes: searching the first communication initiation request information according to the second communication initiation request information; searching, according to the first communication startup request information, for the first response data corresponding to the first initialization data; The first response data is used as response data matching the second initialization data.
5. The method according to claim 2, characterized in that: The receiving the request diagnosis data frame from the diagnosis device, sending a waiting signal to the diagnosis device, and forwarding the request diagnosis data frame to the target vehicle includes: receiving a request diagnosis data frame from the diagnostic device; After receiving the request diagnosis data frame, a waiting signal is sent to the diagnostic device, wherein the waiting signal is used to extend the waiting time of the diagnostic device, and the waiting time is the time for waiting for the response data frame generated by the target vehicle; The request diagnostic data frame is transmitted to the target vehicle via the vehicle connector over a remote network.
6. The method according to claim 5, characterized in that The receiving the request diagnosis data frame from the diagnosis device, sending a waiting signal to the diagnosis device, and forwarding the request diagnosis data frame to the target vehicle includes: receiving a request diagnosis data frame from the diagnostic device; recording the waiting time of the diagnostic device after receiving the request diagnostic data frame; When the waiting time reaches the waiting time threshold, sending the waiting signal to the diagnostic device, the waiting signal is used to extend the waiting time of the diagnostic device, and the waiting time is the time for waiting for the response data frame generated by the target vehicle; The request diagnostic data frame is transmitted to the target vehicle via the vehicle connector over a remote network.
7. The method according to claim 1, characterized in that After the step of sending the second initialization data to the target vehicle, the method further includes: The second response data from the target vehicle is discarded.
8. A vehicle remote diagnostic device, characterized in that: A device connector for a remote diagnostic system, the remote diagnostic system also including a diagnostic device and a target vehicle, comprising: A first transmission module, used for sending the first initialization data sent by the diagnostic device to the target vehicle; A data receiving module, used for receiving first response data from the target vehicle, wherein the first response data is data sent by the target vehicle after parsing the first initialization data; A second transmission module, configured to receive second initialization data from the diagnostic device, and send the first response data to the diagnostic device, wherein the first response data is associated with a first initialization state of the diagnostic device; A signal sending module, configured to send the second initialization data to the target vehicle, wherein the second initialization data is associated with a second initialization state of the target vehicle; a request transmission module, used for receiving a request diagnosis data frame from the diagnostic device, sending a waiting signal to the diagnostic device, and forwarding the request diagnosis data frame to the target vehicle, wherein the waiting signal is used for notifying the diagnostic device of a state that the target vehicle is suspending the request diagnosis data frame, and the waiting signal is used for extending the waiting time of the diagnostic device; The response transmission module is used to receive a response data frame from the target vehicle and forward the response data frame to the diagnostic device, wherein the response data frame is associated with a diagnostic result of the diagnostic device.
9. A computer-readable storage medium, characterized in that: A vehicle remote diagnosis program is stored, including execution instructions. When a processor of an electronic device executes the execution instructions, the processor executes the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: It comprises a processor and a memory storing execution instructions, wherein the memory stores one or more programs; when the processor executes the execution instructions stored in the memory, the processor executes the method according to any one of claims 1 to 7.
