Remote diagnosis method and device of vehicle, local end equipment, system and product
By using local devices to generate virtual negative response messages in vehicle remote diagnosis, the misjudgment problem caused by network delay is solved and the accuracy of vehicle remote diagnosis is improved.
Patent Information
- Application Number
- CN202510425222.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-07-11
AI Technical Summary
In the prior art, the vehicle remote diagnostic instrument misjudged the vehicle controller response timeout due to network delay, which reduces the accuracy of the diagnosis.
After receiving the negative response message from the vehicle controller through the local device, a virtual negative response message is generated and the waiting time is extended to simulate the response process of the vehicle controller and avoid misjudgment caused by network delay.
Improve the accuracy of remote diagnosis of vehicles, avoid misjudgment due to network delay, and ensure that the diagnostic instrument increases the waiting time before determining that the vehicle controller response timeout.
Smart Images

Figure CN120301905A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of vehicle diagnosis, and particularly to a remote diagnosis method, device, local device, system and product for vehicles. Background Art
[0002] In vehicle remote diagnosis, after the diagnostic instrument sends a diagnostic request message to the vehicle controller, if the vehicle controller takes a long time to give a final positive response to the diagnostic request message, the vehicle controller will send a negative response message to the diagnostic instrument. After receiving the negative response message, the diagnostic instrument will set a timeout waiting duration and a timeout timer. When the diagnostic instrument does not receive a response message (including positive response message and negative response message) from the vehicle controller after the timeout waiting duration, it will determine that the vehicle controller has timed out.
[0003] If the operation of the vehicle controller for the diagnostic request message is very time-consuming, it will send negative response messages multiple times at intervals slightly less than the timeout waiting duration to continuously increase the timeout waiting duration of the diagnostic instrument and avoid the diagnostic instrument determining that the vehicle controller has timed out due to too long waiting time. For example, if the timeout waiting duration is 5 seconds, the vehicle controller may send a negative response message every 4.9 seconds.
[0004] However, data transmission between the vehicle controller and the diagnostic instrument is carried out through a network device to achieve remote diagnosis. According to the current direct transparent transmission data transmission method, if there is a network delay during data transmission, such as assuming the network delay is 200 milliseconds (0.2 seconds), then the original interval of 4.9 seconds will become 5.1 seconds (4.9 seconds + 0.2 seconds) after network transmission. This will cause the diagnostic instrument not to receive the response message sent by the vehicle controller within 5 seconds, and then determine that the vehicle controller has timed out.
[0005] Therefore, how to avoid misjudgment of the vehicle controller's response timeout by the diagnostic instrument due to network delay and improve the accuracy of vehicle remote diagnosis is a technical problem that those skilled in the art need to solve currently. Summary of the Invention
[0006] The purpose of this application is to provide a remote diagnosis method, device, local device, system, computer-readable storage medium and computer program product for vehicles, aiming to avoid misjudgment of the vehicle controller's response timeout by the diagnostic instrument due to network delay and improve the accuracy of vehicle remote diagnosis.
[0007] In a first aspect, this application provides a remote diagnosis method for a vehicle. Applied to a local device, the first end of the local device is connected to the diagnostic instrument through a K line, and the second end of the local device is connected to the vehicle controller through a network device. The method includes:
[0008] After obtaining the diagnostic request message of the diagnostic instrument, send the diagnostic request message to the vehicle controller;
[0009] When receiving the negative response message sent by the vehicle controller, forward the negative response message to the diagnostic instrument, and start waiting to receive the response message sent by the vehicle controller; the negative response message indicates that the diagnostic request message has been received, but the response is pending;
[0010] If the response message sent by the vehicle controller is not received when the local waiting duration reaches the preset waiting duration, generate a first virtual negative response message, and send the first virtual negative response message to the diagnostic instrument, so that the diagnostic instrument performs remote diagnosis according to the timeout waiting duration; the preset waiting duration is less than the timeout waiting duration.
[0011] In one embodiment, the step of, after obtaining the diagnostic request message of the diagnostic instrument, sending the diagnostic request message to the vehicle controller includes:
[0012] After obtaining the diagnostic request message of the diagnostic instrument, send a second virtual negative response message to the diagnostic instrument, so that the diagnostic instrument adds an initial waiting duration, and send the diagnostic request message to the vehicle controller.
[0013] In one embodiment, the method further includes:
[0014] If the response message sent by the vehicle controller is not received when the timeout waiting duration reaches the preset timeout duration threshold, determine that the vehicle controller has a response timeout through the diagnostic instrument.
[0015] In one embodiment, the method further includes:
[0016] If a positive response message sent by the vehicle controller is received within the preset timeout duration threshold, send the positive response message to the diagnostic instrument, so that the diagnostic instrument performs fault diagnosis according to the positive response message.
[0017] In one embodiment, the method further includes:
[0018] If a negative response message sent by the vehicle controller is received within the preset timeout duration threshold, return to the step of, when receiving the negative response message sent by the vehicle controller, forwarding the negative response message to the diagnostic instrument, and starting to wait to receive the response message sent by the vehicle controller.
[0019] In one embodiment, after obtaining the diagnostic request message of the diagnostic instrument, sending a second virtual negative response message to the diagnostic instrument includes:
[0020] After obtaining the diagnostic request message of the diagnostic instrument, send a second virtual negative response message to the diagnostic instrument at a preset byte interval.
[0021] In a second aspect, the present application also provides a remote diagnostic device for a vehicle, which is applied to a local device. The first end of the local device is connected to the diagnostic instrument through a K line, and the second end of the local device is connected to a vehicle controller through a network device. The device includes:
[0022] A sending module, configured to send the diagnostic request message to the vehicle controller after obtaining the diagnostic request message of the diagnostic instrument;
[0023] A timing module, configured to forward the negative response message to the diagnostic instrument and start waiting to receive the response message sent by the vehicle controller when receiving the negative response message sent by the vehicle controller; the negative response message indicates that the diagnostic request message has been received, but the response is pending;
[0024] A diagnostic module, configured to generate a first virtual negative response message and send the first virtual negative response message to the diagnostic instrument if the response message sent by the vehicle controller has not been received when the local waiting duration reaches a preset waiting duration, so that the diagnostic instrument performs remote diagnosis according to the timeout waiting duration; the preset waiting duration is less than the timeout waiting duration.
[0025] In a third aspect, the present application also provides a local device. The local device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above method are implemented.
[0026] In a fourth aspect, the present application also provides a vehicle remote diagnostic system, which includes a vehicle controller, a remote device, a local device, and a diagnostic instrument;
[0027] The first end of the local device is connected to the diagnostic instrument through a K line, the second end of the local device is connected to the remote device through the network device, and the remote device is connected to the vehicle controller through a K line;
[0028] The diagnostic instrument is configured to send a diagnostic request message to the vehicle controller through the local device and the remote device;
[0029] The vehicle controller is used to send a corresponding response message according to the diagnostic request message; the response message includes a positive response message and a negative response message; the negative response message indicates that the diagnostic request message has been received, but the response is pending;
[0030] The local device is used to send the diagnostic request message to the vehicle controller after obtaining the diagnostic request message of the diagnostic instrument; when receiving the negative response message sent by the vehicle controller, forward the negative response message to the diagnostic instrument, and start waiting to receive the response message sent by the vehicle controller; if the local waiting duration reaches the preset waiting duration and the response message sent by the vehicle controller has not been received yet, generate a first virtual negative response message, and send the first virtual negative response message to the diagnostic instrument, so that the diagnostic instrument can perform remote diagnosis according to the timeout waiting duration; the preset waiting duration is less than the timeout waiting duration.
[0031] In a fifth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0032] In a sixth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0033] For a remote diagnosis method of a vehicle provided by the present application, after the local device receives the negative response message sent by the vehicle controller, that is, when it indicates that the vehicle controller may take a long time to give a positive response, this method forwards the negative response message to the diagnostic instrument and starts waiting to receive the response message sent by the vehicle controller; the negative response message indicates that the diagnostic request message has been received, but the response is pending; if the local waiting duration reaches the preset waiting duration and the response message sent by the vehicle controller has not been received yet, generate a first virtual negative response message, and send the first virtual negative response message to the diagnostic instrument, so that the diagnostic instrument can perform remote diagnosis according to the timeout waiting duration, increasing the waiting duration of the diagnostic instrument before determining that the vehicle controller has timed out, thereby avoiding that due to network delay, when the vehicle controller sends the next response message to the diagnostic instrument, it exceeds the timeout waiting duration of the diagnostic instrument, and avoiding misjudgment of the vehicle controller's response timeout by the diagnostic instrument. It can be seen that this method can avoid misjudgment of the vehicle controller's response timeout in vehicle remote diagnosis due to network delay and improve the accuracy of vehicle remote diagnosis.
[0034] It is understandable that a remote diagnosis device, a local device, a system, a computer-readable storage medium, and a computer program product of a vehicle provided by the embodiments of the present application have the same beneficial effects as the above-mentioned remote diagnosis method of the vehicle, and will not be described in detail herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0036] Figure 1 Schematic diagram of a remote diagnosis system of a vehicle provided by an embodiment of the present application;
[0037] Figure 2 Flowchart of a remote diagnosis method of a vehicle provided by an embodiment of the present application;
[0038] Figure 3 Schematic diagram of the structure of a remote diagnosis device of a vehicle provided by an embodiment of the present application;
[0039] Figure 4 Schematic diagram of the structure of a local device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0040] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures and technologies are presented in order to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.
[0041] It should be understood that when used in the specification of the present application and the appended claims, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0042] It should also be understood that the term " / and" as used in the specification of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0043] As used in the description of the present application and the appended claims, the term "if" may be construed as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed as meaning "once determined" or "in response to determining" or "once [the described condition or event] is detected" or "in response to detecting [the described condition or event]" depending on the context.
[0044] In addition, in the description of the present application and the appended claims, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be construed as indicating or implying relative importance.
[0045] Reference to "one embodiment" or "some embodiments" or the like described in the description of the present application means that a specific feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "comprising", "including", "having", and their variants all mean "including but not limited to", unless otherwise specifically emphasized. "Plurality" means "two or more".
[0046] A remote diagnosis method for a vehicle provided by an embodiment of the present application can be applied to a local device of a remote diagnosis system for a vehicle as Figure 1 shown in the figure. Figure 1 FIG. [FIGURE NUMBER] is a schematic diagram of a remote diagnosis system for a vehicle provided by an embodiment of the present application. The remote diagnosis system for a vehicle includes a vehicle controller, a remote device, a local device, and a diagnostic instrument; a first end of the local device is connected to the diagnostic instrument through a K line, and a second end of the local device is connected to the vehicle controller through a network device; specifically, the second end of the local device is connected to the remote device through a network device, and the remote device is connected to the vehicle controller through a K line.
[0047] Specifically, connecting through a K line means communicating based on the automotive diagnostic communication protocol (KWP2000 protocol) of the K line.
[0048] Note: In the above translation, [FIGURE NUMBER] should be replaced with the actual figure number in the original Chinese text. Also, ,
[0044] , etc. are specific tags that should be kept as they are without any translation as per the instructions.Among them, the diagnostic instrument is used to send a diagnostic request message to the vehicle controller through the local device and the remote device; the vehicle controller is used to send a corresponding response message according to the diagnostic request message; the response message includes a positive response message and a negative response message; the negative response message indicates that the diagnostic request message has been received, but the response is pending. The local device is used to send the diagnostic request message to the vehicle controller after obtaining the diagnostic request message of the diagnostic instrument; when receiving the negative response message sent by the vehicle controller, forward the negative response message to the diagnostic instrument, and start waiting to receive the response message sent by the vehicle controller; if the local waiting duration reaches the preset waiting duration and the response message sent by the vehicle controller has not been received yet, generate a first virtual negative response message, and send the first virtual negative response message to the diagnostic instrument, so that the diagnostic instrument performs remote diagnosis according to the timeout waiting duration; the preset waiting duration is less than the timeout waiting duration.
[0049] Among them, the network device can be a cloud platform or other devices for remote data transmission. The local device can be but is not limited to various personal computers (PCs), laptop computers, smart phones, tablet computers, etc.; the remote device is used to transmit the diagnostic request message from the network device to the vehicle controller, and transmit the response message of the vehicle controller back to the network device, and can be but is not limited to an OBD-II (On-Board Diagnostics II) diagnostic adapter, a smart gateway device, an embedded module or a mobile device such as a smart phone or a tablet computer.
[0050] Figure 2 The flowchart of a remote diagnosis method for a vehicle provided by an embodiment of the present application is shown. For the sake of convenience of description, only the parts related to this embodiment are shown. The method provided by this embodiment includes the following steps:
[0051] S100: After obtaining the diagnostic request message of the diagnostic instrument, send the diagnostic request message to the vehicle controller.
[0052] Among them, the diagnostic request message refers to the request data sent by the diagnostic instrument to the vehicle controller, and is used to request the vehicle controller to perform a specific diagnostic operation or obtain the status information of the vehicle.
[0053] In this step, the diagnostic instrument sends the diagnostic request message to the local device through the K line. After the local device obtains the diagnostic request message of the diagnostic instrument, the diagnostic request message is sent to the remote device through the network device, and then the diagnostic request message is sent to the vehicle controller through the remote device. Among them, the K line is a single-wire interface for vehicle diagnostic communication.
[0054] Among them, the vehicle controller can be a vehicle electronic control unit (ECU) or a vehicle control unit (VCU). This embodiment does not limit this.
[0055] S200: When receiving a negative response message sent by the vehicle controller, forward the negative response message to the diagnostic instrument and start waiting to receive a response message sent by the vehicle controller; the negative response message indicates that the diagnostic request message has been received, but the response is pending.
[0056] Specifically, after receiving the diagnostic request message, if the vehicle controller needs a long time to give an affirmative response, it will send a negative response message to the diagnostic instrument based on the diagnostic request message. In this embodiment, the negative response message indicates that the diagnostic request message has been received, but the response is pending. Specifically, the negative response message can be a response message with an error code of 0x78, specifically 7f sid 78, which is a negative response message defined according to the Unified Diagnostic Services (UDS), indicating that the device is busy. This embodiment does not limit the specific type of the negative response message.
[0057] Specifically, the vehicle controller sends the negative response message to the local device through the network device. When the local device receives the negative response message sent by the vehicle controller, it forwards the negative response message to the diagnostic instrument. In this embodiment, when the local device forwards the negative response message to the diagnostic instrument, it simultaneously starts waiting to receive a response message sent by the vehicle controller.
[0058] S300: If the local waiting duration reaches the preset waiting duration and no response message sent by the vehicle controller is received, generate a first virtual negative response message and send the first virtual negative response message to the diagnostic instrument so that the diagnostic instrument can perform remote diagnosis based on the timeout waiting duration; the preset waiting duration is less than the timeout waiting duration.
[0059] It should be noted that the preset waiting duration refers to the timer duration started by the local device after receiving the negative response message sent by the vehicle controller; its function is to wait for a possible further response from the vehicle controller within the preset waiting duration.
[0060] Among them, the timeout waiting duration is the waiting time started by the diagnostic instrument after receiving the first virtual negative response message, and its function is to extend the waiting time for the diagnostic instrument to determine that the vehicle controller response times out. Generally, the preset waiting duration is set to be less than the timeout waiting duration; for example, assuming the timeout waiting duration is 5s, the preset waiting duration can be set to 2.5s. This embodiment does not limit the specific values of the timeout waiting duration and the preset waiting duration.
[0061] Among them, the first virtual negative response message refers to the negative response message generated by the local device, rather than the real negative response message sent by the vehicle controller. More specifically, the first virtual negative response message indicates that the diagnostic request message has been received, but the response is pending. The first virtual negative response message can specifically be a virtual response message with an error code of 0x78, such as 7f sid 78, which is a negative response message defined according to the Unified Diagnostic Services (UDS), indicating that the device is busy. The specific type of the first virtual negative response message is not limited in this embodiment.
[0062] If a response message sent by the vehicle controller is received before the local waiting duration reaches the preset waiting duration, corresponding operations are performed according to the response message.
[0063] If the local waiting duration reaches the preset waiting duration and no response message sent by the vehicle controller is received, a first virtual negative response message is generated and sent to the diagnostic instrument.
[0064] In a specific embodiment, when the local device receives a negative response message sent by the vehicle controller, a timer with a preset waiting duration is started. After the timer expires, a first virtual negative response message is generated and sent to the diagnostic instrument.
[0065] In another specific embodiment, when the local device receives a negative response message sent by the vehicle controller, it starts timing, that is, updates the local waiting duration; after the local waiting duration reaches the preset waiting duration, a first virtual negative response message is generated and sent to the diagnostic instrument.
[0066] After the local device sends the first virtual negative response message to the diagnostic instrument, the diagnostic instrument initializes the timeout waiting duration according to the first virtual negative response message and performs remote diagnosis according to the timeout waiting duration. Among them, when the diagnostic instrument initializes the timeout waiting duration, it means setting the timeout waiting duration to the initialization state, such as setting the timeout waiting duration to 0 and continuing to time according to the initialized timeout waiting duration.
[0067] Specifically, the diagnostic instrument starts to initialize the timeout waiting duration and starts re-timing at the moment of receiving the first virtual negative response message to obtain the timeout waiting duration; the diagnostic instrument will determine that the vehicle controller has timed out only when the timeout waiting duration reaches the preset timeout duration threshold and no response message sent by the vehicle controller is received.
[0068] An embodiment of the present application provides a remote diagnosis method for a vehicle. After the local device receives a negative response message sent by the vehicle controller, the negative response message indicates that the diagnostic request message has been received, but the response is pending; that is, when it indicates that the vehicle controller may take a long time to give an affirmative response, this method forwards the negative response message to the diagnostic instrument and starts waiting to receive the response message sent by the vehicle controller; if the local waiting duration reaches the preset waiting duration and the response message sent by the vehicle controller has not been received yet, a first virtual negative response message is generated and sent to the diagnostic instrument, so that the diagnostic instrument can perform remote diagnosis according to the timeout waiting duration, increasing the waiting duration before the diagnostic instrument determines that the vehicle controller has timed out, thereby avoiding that due to network delay, when the vehicle controller sends the next response message to the diagnostic instrument, it exceeds the timeout waiting duration of the diagnostic instrument, and avoiding the diagnostic instrument misjudging that the vehicle controller has timed out. It can be seen that this method can avoid the misjudgment of the vehicle controller's response timeout in vehicle remote diagnosis caused by network delay and improve the accuracy of vehicle remote diagnosis.
[0069] Based on the above embodiment, this embodiment further describes and optimizes the technical solution. Specifically, in this embodiment, after obtaining the diagnostic request message of the diagnostic instrument, sending the diagnostic request message to the vehicle controller includes:
[0070] After obtaining the diagnostic request message of the diagnostic instrument, sending a second virtual negative response message to the diagnostic instrument, so that the diagnostic instrument sets an initial waiting duration and sends the diagnostic request message to the vehicle controller.
[0071] In this embodiment, after the local device obtains the diagnostic request message of the diagnostic instrument, on the one hand, it sends the diagnostic request message to the vehicle controller, and on the other hand, it generates a second virtual negative response message and sends the second virtual negative response message to the diagnostic instrument.
[0072] After receiving the second virtual negative response message, the diagnostic instrument sets the initial waiting duration according to the second virtual negative response message. The initial waiting duration refers to the additional waiting time after the diagnostic instrument receives the second virtual negative response message. Specifically, the diagnostic instrument sets the initial waiting duration. When the diagnostic instrument does not receive the response message (including the affirmative response message and the negative response message) from the vehicle controller after the initial waiting duration, it will determine that the vehicle controller has timed out.
[0073] In a specific embodiment, after the diagnostic instrument sends a diagnostic request message, it starts timing for a fixed waiting duration (such as 50 ms); if a response message sent by the vehicle controller is not received within the fixed waiting duration, it will be determined that the vehicle controller has a response timeout. After the local device collects a frame of the diagnostic request message sent by the diagnostic instrument, it generates a second virtual negative response message (7f sid 78) and sends the second virtual negative response message (7f sid 78) to the diagnostic instrument. Among them, the second virtual negative response message is also a negative response message generated by the local device, rather than a real negative response message sent by the vehicle controller; it indicates that the diagnostic request message has been received, but the response is pending. The second virtual negative response message can specifically be a virtual response message with an error code of 0x78, such as 7f sid 78, which is a negative response message defined according to the Unified Diagnostic Services (UDS), indicating that the device is busy.
[0074] After the diagnostic instrument receives the second virtual negative response message, on the basis of the fixed waiting duration, it increases the initial waiting duration (such as 5 s), that is, when the diagnostic instrument does not receive the response message sent by the vehicle controller after (50 ms + 5 s), that is, 5.05 seconds, it will be determined that the vehicle controller has a response timeout.
[0075] According to the method of this embodiment, after the local device obtains the diagnostic request message of the diagnostic instrument, it directly sends the second virtual negative response message to the diagnostic instrument so that the diagnostic instrument adds the initial waiting duration. Therefore, this method can further avoid false alarms in vehicle remote diagnosis caused by network delay and further improve the accuracy of vehicle remote diagnosis.
[0076] On the basis of the above embodiment, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, the method further includes:
[0077] If the response message sent by the vehicle controller is still not received when the timeout waiting duration reaches the preset timeout duration threshold, it is determined through the diagnostic instrument that the vehicle controller has a response timeout.
[0078] In this embodiment, when the timeout waiting duration reaches the preset timeout duration threshold, it is determined whether the response message sent by the vehicle controller is received at this time; if not, it means that the vehicle controller fails to feedback the response message for a long time due to its own failure or network failure, including not feedbacking a positive response message or a negative response message; at this time, the diagnostic instrument determines that the vehicle controller has a response timeout according to the situation that the response message sent by the vehicle controller is not received when the timeout waiting duration reaches the preset timeout duration threshold.
[0079] According to the method of this embodiment, it is possible to accurately determine the situation of response timeout of the vehicle controller and perform accurate remote diagnosis on the vehicle controller.
[0080] On the basis of the above embodiment, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, the method further includes:
[0081] If a positive response message sent by the vehicle controller is received within the preset timeout duration threshold, the positive response message is sent to the diagnostic instrument so that the diagnostic instrument performs fault diagnosis according to the positive response message.
[0082] It should be noted that if a positive response message sent by the vehicle controller is received within the preset timeout duration threshold, it means that the vehicle controller responds to the diagnostic request message within the preset timeout duration threshold, that is, it means that the vehicle controller feeds back the corresponding message data according to the diagnostic request message. Therefore, after the local device receives the positive response message sent by the vehicle controller, the positive response message is sent to the diagnostic instrument so that the diagnostic instrument performs remote diagnosis on the vehicle according to the positive response message.
[0083] According to the method of this embodiment, it is possible to enable the diagnostic instrument to perform fault diagnosis in a timely manner according to the positive response message and realize remote fault diagnosis of the vehicle.
[0084] On the basis of the above embodiment, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, the method further includes:
[0085] If a negative response message sent by the vehicle controller is received within the preset timeout duration threshold, return to the step of forwarding the negative response message to the diagnostic instrument and starting to wait for timing when the negative response message sent by the vehicle controller is received.
[0086] In this embodiment, if the vehicle controller still needs a long time to give a positive response, the vehicle controller will send a negative response message again. Correspondingly, the local device will receive the negative response message sent by the vehicle controller within the preset timeout duration threshold. Therefore, return to the step of forwarding the negative response message to the diagnostic instrument and starting to wait for the response message sent by the vehicle controller when the negative response message sent by the vehicle controller is received; thereby enabling the diagnostic instrument to initialize the timeout waiting duration again and perform remote diagnosis according to the timeout waiting duration.
[0087] On the basis of the above embodiment, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, after obtaining the diagnostic request message of the diagnostic instrument, sending a second virtual negative response message to the diagnostic instrument includes:
[0088] After receiving the diagnostic request message from the diagnostic instrument, a second virtual negative response message is sent to the diagnostic instrument at a preset byte interval.
[0089] Among them, the byte interval refers to the reception time difference between each byte and the previous byte when receiving a frame of message.
[0090] In a specific embodiment, the process of setting the preset byte interval is as follows: The local device determines whether it has received the response message sent by the vehicle controller; if not, the preset byte interval is determined according to the byte interval at which the local device receives the diagnostic request message sent by the diagnostic instrument; if it has received, the preset byte interval is determined according to the byte interval when the remote device receives the response message of the vehicle controller.
[0091] It should be noted that the communication timing between the vehicle controller and the diagnostic instrument is strictly designed. Different vehicle controllers may have different processing speeds and communication characteristics, so the byte intervals for them to send or receive data will also be different.
[0092] In this embodiment, the preset byte interval is determined according to the byte interval at which the local device receives the diagnostic request message sent by the diagnostic instrument, or the preset byte interval is determined according to the byte interval when the remote device receives the response message of the vehicle controller, simulating the real communication timing, and sending the second virtual negative response message to the diagnostic instrument at the preset byte interval, so that the local device can more realistically simulate the communication behavior of the vehicle controller, enabling the diagnostic instrument to feel the normal communication timing just like directly communicating with the vehicle controller, thus avoiding communication errors or timeouts caused by timing mismatches.
[0093] Therefore, according to the method of this embodiment, the accuracy of vehicle remote diagnosis can be improved.
[0094] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be described in detail below in combination with actual application scenarios. In the embodiments of this application, the specific steps of another vehicle remote diagnosis method are as follows:
[0095] The diagnostic instrument sends data information to the local device (B - end connector) through the K - line: 82 10f0 1a 89 25;
[0096] The local device (B - end connector) determines whether it has collected a frame of data information. If not, it continues to collect; after collecting a frame of data information, the data information is sent to the vehicle controller through the remote device (C - end connector);
[0097] The local device (B - end connector) analyzes the data information to obtain the diagnostic request message, service identifier, target address 10, and source address f0 SID 1a;
[0098] Generate a second virtual negative response message in accordance with the frame format of the K-line: 83f0 10 7f 1a 78 94;
[0099] Send the second virtual negative response message to the diagnostic instrument according to the source address and the destination address at a preset byte interval;
[0100] The vehicle controller sends a negative response message (error code 0x78): 83f010 7f 1a78 94 according to the diagnostic request message;
[0101] After the local device (B-end connector) receives the data information, it parses the data information. If the parsed negative response message (7f sid 78) sent by the vehicle controller is obtained, while forwarding the negative response message to the diagnostic instrument, start a timer with a preset waiting duration (2.5 s);
[0102] If no response message sent by the vehicle controller is received within the preset waiting duration (2.5 s), generate a first virtual negative response message: 83f0 10 7f 1a 78 94, and send the first virtual negative response message to the diagnostic instrument;
[0103] If after 5 seconds, the local device (B-end connector) receives again the negative response message: 83f0 10 7f 1a 7894 sent by the vehicle controller according to the diagnostic request message and forwarded by the remote device (C-end connector);
[0104] After the local device (B-end connector) obtains the negative response message, send the negative response message to the diagnostic instrument, and start the waiting timing with a preset waiting duration (2.5 s);
[0105] If the local device (B-end connector) receives the positive response message: 8f f0 10 5a 89 3034 37 43 33 35 30 30 30 30 31 30 30 09 sent by the vehicle controller according to the diagnostic request message and forwarded by the remote device (C-end connector) 1 s after obtaining the negative response message;
[0106] The local device (B-end connector) sends the positive response message to the diagnostic instrument and closes the timer.
[0107] Suppose the processing duration required by the vehicle controller for the diagnostic request message sent by the diagnostic instrument exceeds 10 s. When the vehicle controller is slightly less than 5 s (such as 4.9 s), it will send a negative response message to enable the diagnostic instrument to extend the waiting duration. If there is a 200 ms delay due to network fluctuations during this process, that is, when the negative response message of the vehicle controller is actually transmitted to the diagnostic instrument through the network, the interval duration between the two negative response messages will become 5.1 s, that is, the diagnostic instrument will determine that the vehicle control response times out before receiving the second negative response message.
[0108] According to the method of this embodiment, after receiving the negative response message sent by the vehicle controller, a 2.5 s timer is started, and a first virtual negative response message is sent to the diagnostic instrument after 2.5 s to enable the diagnostic instrument to extend the waiting duration.
[0109] 5.1 s after the vehicle controller sends the negative response message, a negative response message sent again by the vehicle controller is received. The interval time between the two negative response messages received by the diagnostic instrument from the vehicle controller is (5.1 s - 2.5 s) = 2.6 s.
[0110] Based on the negative response message sent again by the vehicle controller, the diagnostic instrument extends the waiting duration again according to the negative response message, indicating that the diagnostic instrument will determine that there is a response timeout of the vehicle control only when no response message is received after (2.5 s + 5 s).
[0111] The embodiment of the present application provides a remote diagnosis method for a vehicle. After the local device receives the negative response message sent by the vehicle controller, the negative response message indicates that the diagnostic request message has been received, but the response is pending, that is, it means that the vehicle controller may take a long time to give an affirmative response. In this method, the negative response message is forwarded to the diagnostic instrument, and then start waiting to receive the response message sent by the vehicle controller; if the local waiting duration reaches the preset waiting duration and the response message sent by the vehicle controller is still not received, a first virtual negative response message is generated and sent to the diagnostic instrument, so that the diagnostic instrument can perform remote diagnosis according to the timeout waiting duration, increasing the waiting duration before the diagnostic instrument determines that the vehicle controller times out, thereby avoiding that due to network delay, when the vehicle controller sends the next response message to the diagnostic instrument, it exceeds the timeout waiting duration of the diagnostic instrument, and avoiding the diagnostic instrument misjudging that the vehicle controller times out. It can be seen that this method can avoid the misjudgment of the vehicle controller response timeout caused by network delay in vehicle remote diagnosis and improve the accuracy of vehicle remote diagnosis.
[0112] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0113] It should be noted that the information collection process (such as the face image collection process, fingerprint information collection process, etc.) / feature extraction process involved in this application is executed with the user's knowledge and permission. That is, the information collection process / feature extraction process complies with the requirements of laws and regulations and does not belong to acts that harm the public interest.
[0114] Figure 3 The following is a schematic structural diagram of a remote diagnosis device for a vehicle provided by an embodiment of the present application. As Figure 3 shown, the remote diagnosis device for a vehicle in this embodiment is applied to a local device. The first end of the local device is connected to a diagnostic instrument through a K line, and the second end of the local device is connected to a vehicle controller through a network device. The device includes:
[0115] A sending module 310, configured to send a diagnostic request message to the vehicle controller after obtaining a diagnostic request message from the diagnostic instrument;
[0116] A timing module 320, configured to forward a negative response message to the diagnostic instrument when receiving a negative response message sent by the vehicle controller, and start waiting to receive a response message sent by the vehicle controller; the negative response message indicates that the diagnostic request message has been received, but the response is pending processing;
[0117] A diagnosis module 330, configured to generate a first virtual negative response message and send the first virtual negative response message to the diagnostic instrument if a response message sent by the vehicle controller has not been received when the local waiting duration reaches a preset waiting duration, so that the diagnostic instrument performs remote diagnosis according to the timeout waiting duration; the preset waiting duration is less than the timeout waiting duration.
[0118] The remote diagnosis device for a vehicle provided by the embodiment of the present application has the same beneficial effects as the above-mentioned remote diagnosis method for a vehicle.
[0119] In one embodiment, the sending module 310 includes:
[0120] A sending sub-module, configured to send a second virtual negative response message to the diagnostic instrument after obtaining a diagnostic request message from the diagnostic instrument, so that the diagnostic instrument adds an initial waiting duration and sends the diagnostic request message to the vehicle controller.
[0121] In one embodiment, a remote diagnosis device for a vehicle further includes:
[0122] A timeout diagnosis module, configured to determine that the vehicle controller has a response timeout through the diagnostic instrument if a response message sent by the vehicle controller has not been received when the timeout waiting duration reaches a preset timeout duration threshold.
[0123] In one embodiment, a remote diagnosis device for a vehicle further includes:
[0124] A fault diagnosis module, configured to, if a positive response message sent by a vehicle controller is received within a preset timeout duration threshold, send the positive response message to a diagnostic instrument, so that the diagnostic instrument performs fault diagnosis according to the positive response message.
[0125] In one embodiment, a remote diagnosis device for a vehicle further includes:
[0126] An invocation module, configured to, if a negative response message sent by a vehicle controller is received within a preset timeout duration threshold, invoke the timing module 320.
[0127] In one embodiment, the sending sub-module includes:
[0128] A sending unit, configured to, after obtaining a diagnostic request message of a diagnostic instrument, send a second virtual negative response message to the diagnostic instrument at a preset byte interval.
[0129] It should be noted that for the information interaction, execution process, etc. between the above-mentioned device / units, since they are based on the same concept as the method embodiment of the present application, for the specific functions and the technical effects brought by them, reference can be made to the method embodiment part, and details are not described herein again.
[0130] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-mentioned division of each functional unit and module is used as an example. In practical applications, the above-mentioned functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
[0131] Figure 4 This is a schematic structural diagram of a local device provided by an embodiment of the present application. As Figure 4As shown in the figure, the local device 400 of this embodiment includes a memory 401, a processor 402, and a computer program 403 stored in the memory 401 and executable on the processor 402; when the processor 402 executes the computer program 403, it implements the steps in the above-mentioned embodiments of the remote diagnosis method for each vehicle; or when the processor 402 executes the computer program 403, it implements the functions of each module / unit in the above-mentioned device embodiments.
[0132] Exemplarily, the computer program 403 can be divided into one or more modules / units. One or more modules / units are stored in the memory 401 and executed by the processor 402 to implement the method of the embodiments of the present application. One or more modules / units can be a series of computer program instruction segments capable of completing specific functions, and these instruction segments are used to describe the execution process of the computer program 403 in the local device 400. For example, the computer program 403 can be divided into a sending module, a timing module, and a diagnosis module. The specific functions of each module are as follows:
[0133] The sending module is used to send the diagnostic request message to the vehicle controller after obtaining the diagnostic request message of the diagnostic instrument.
[0134] The timing module is used to forward the negative response message to the diagnostic instrument when receiving the negative response message sent by the vehicle controller, and start waiting to receive the response message sent by the vehicle controller; the negative response message indicates that the diagnostic request message has been received, but the response is pending.
[0135] The diagnosis module is used to generate a first virtual negative response message and send the first virtual negative response message to the diagnostic instrument if the response message sent by the vehicle controller has not been received when the local waiting duration reaches the preset waiting duration, so that the diagnostic instrument can perform remote diagnosis according to the timeout waiting duration; the preset waiting duration is less than the timeout waiting duration.
[0136] In application, the local device 400 can be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The local device 400 may include but is not limited to the memory 401 and the processor 402. Those skilled in the art can understand that Figure 4 These are only examples of the local device, and do not constitute a limitation on the local device. It may include more or fewer components than shown in the figure, or combine some components, or different components. For example, the local device may further include input / output devices, network access devices, buses, etc.; among them, the input / output devices may include cameras, audio collection / playback devices, displays, etc.; the network access devices may include a communication module for wireless communication with external devices.
[0137] In an application, the processor can be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.
[0138] In an application, the memory can be an internal storage unit of the local device, such as the hard disk or memory of the local device; it can also be an external storage device of the local device, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the local device; it can also include both the internal storage unit and the external storage device of the local device. The memory is used to store the operating system, application programs, Boot Loader, data, and other programs, such as the program code of a computer program. The memory can also be used to temporarily store data that has been output or will be output.
[0139] The embodiment of the present application also provides a remote diagnostic system for a vehicle, as Figure 1 shown. The system includes a vehicle controller, a remote device, a local device, and a diagnostic instrument;
[0140] The first end of the local device is connected to the diagnostic instrument through a K line, the second end of the local device is connected to the remote device through a network device, and the remote device is connected to the vehicle controller through a K line;
[0141] The diagnostic instrument is used to send a diagnostic request message to the vehicle controller through the local device and the remote device;
[0142] The vehicle controller is used to send a corresponding response message according to the diagnostic request message; the response message includes a positive response message and a negative response message; the negative response message indicates that the diagnostic request message has been received, but the response is pending;
[0143] The local device is used to send the diagnostic request message to the vehicle controller after obtaining the diagnostic request message of the diagnostic instrument; when receiving the negative response message sent by the vehicle controller, forward the negative response message to the diagnostic instrument, and start waiting to receive the response message sent by the vehicle controller; if the local waiting duration reaches the preset waiting duration and the response message sent by the vehicle controller has not been received yet, generate a first virtual negative response message, and send the first virtual negative response message to the diagnostic instrument, so that the diagnostic instrument can perform remote diagnosis according to the timeout waiting duration; the preset waiting duration is less than the timeout waiting duration.
[0144] A remote diagnostic system for a vehicle provided by an embodiment of the present application has the same beneficial effects as the above-mentioned remote diagnostic method for a vehicle.
[0145] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0146] To implement all or part of the processes in the above-mentioned method embodiments of the present application, it can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the local device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disc, etc.
[0147] A computer-readable storage medium provided by an embodiment of the present application has the same beneficial effects as the above-mentioned remote diagnostic method for a vehicle.
[0148] An embodiment of the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0149] A computer program product provided by an embodiment of the present application has the same beneficial effects as the above-mentioned remote diagnostic method for a vehicle.
[0150] In the above embodiments, the descriptions of each embodiment have their own focuses. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0151] Those of ordinary skill in the art can realize that the devices and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A professional technician can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.
[0152] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. Another point is that the couplings or direct couplings or communication connections shown or discussed with each other can be through some interfaces. The devices are indirectly coupled or communication-connected, and can be in electrical, mechanical or other forms.
[0153] The above-described embodiments are only used to illustrate the technical solutions of this application, rather than to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features. And these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included in the protection scope of this application.
Claims
1. A remote diagnosis method for a vehicle, characterized in that, Applied to a local device, the first end of the local device is connected to the diagnostic instrument through a K line, and the second end of the local device is connected to the vehicle controller through a network device. The method includes: After obtaining the diagnostic request message of the diagnostic instrument, sending the diagnostic request message to the vehicle controller; When receiving the negative response message sent by the vehicle controller, forwarding the negative response message to the diagnostic instrument and starting to wait for receiving the response message sent by the vehicle controller; the negative response message indicates that the diagnostic request message has been received, but the response is pending; If the local waiting duration reaches the preset waiting duration and the response message sent by the vehicle controller has not been received yet, generating a first virtual negative response message and sending the first virtual negative response message to the diagnostic instrument, so that the diagnostic instrument performs remote diagnosis according to the timeout waiting duration; the preset waiting duration is less than the timeout waiting duration.
2. The method according to claim 1, characterized in that, The step of, after obtaining the diagnostic request message of the diagnostic instrument, sending the diagnostic request message to the vehicle controller includes: After obtaining the diagnostic request message of the diagnostic instrument, sending a second virtual negative response message to the diagnostic instrument, so that the diagnostic instrument adds an initial waiting duration and sends the diagnostic request message to the vehicle controller.
3. The method according to claim 1 or 2, characterized in that, The method further includes: If the response message sent by the vehicle controller has not been received yet when the timeout waiting duration reaches the preset timeout duration threshold, determining that the vehicle controller has a response timeout through the diagnostic instrument.
4. The method according to claim 3, wherein The method further includes: If a positive response message sent by the vehicle controller is received within the preset timeout duration threshold, sending the positive response message to the diagnostic instrument, so that the diagnostic instrument performs fault diagnosis according to the positive response message.
5. The method according to claim 3, wherein The method further includes: If a negative response message sent by the vehicle controller is received within the preset timeout duration threshold, returning to the step of, when receiving the negative response message sent by the vehicle controller, forwarding the negative response message to the diagnostic instrument and starting to wait for receiving the response message sent by the vehicle controller.
6. The method according to claim 2, characterized in that, The step of, after obtaining the diagnostic request message of the diagnostic instrument, sending a second virtual negative response message to the diagnostic instrument includes: After obtaining the diagnostic request message of the diagnostic instrument, sending a second virtual negative response message to the diagnostic instrument at a preset byte interval.
7. A remote diagnosis device for a vehicle, characterized in that, Applied to a local device, the first end of the local device is connected to the diagnostic instrument through a K line, and the second end of the local device is connected to the vehicle controller through a network device. The device includes: A sending module, configured to send the diagnostic request message to the vehicle controller after obtaining the diagnostic request message of the diagnostic instrument; A timing module, configured to, when receiving the negative response message sent by the vehicle controller, forward the negative response message to the diagnostic instrument and start waiting for receiving the response message sent by the vehicle controller; the negative response message indicates that the diagnostic request message has been received, but the response is pending; A diagnostic module, which is configured to generate a first virtual negative response message and send the first virtual negative response message to the diagnostic instrument if the response message sent by the vehicle controller has not been received when the local waiting duration reaches a preset waiting duration, so that the diagnostic instrument performs remote diagnosis according to the timeout waiting duration; the preset waiting duration is less than the timeout waiting duration.
8. A local device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A remote diagnosis system for a vehicle, characterized in that, The system includes a vehicle controller, a remote device, a local device, and a diagnostic instrument. A first end of the local device is connected to the diagnostic instrument through a K line, a second end of the local device is connected to the remote device through a network device, and the remote device is connected to the vehicle controller through a K line. The diagnostic instrument is configured to send a diagnostic request message to the vehicle controller through the local device and the remote device. The vehicle controller is configured to send a corresponding response message according to the diagnostic request message; the response message includes an affirmative response message and a negative response message; the negative response message indicates that the diagnostic request message has been received, but the response is pending. The local device is configured to send the diagnostic request message to the vehicle controller after obtaining the diagnostic request message of the diagnostic instrument; when receiving the negative response message sent by the vehicle controller, forward the negative response message to the diagnostic instrument and start waiting to receive the response message sent by the vehicle controller; if the response message sent by the vehicle controller has not been received when the local waiting duration reaches a preset waiting duration, generate a first virtual negative response message and send the first virtual negative response message to the diagnostic instrument, so that the diagnostic instrument performs remote diagnosis according to the timeout waiting duration; the preset waiting duration is less than the timeout waiting duration.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Diagnosis control method and device, electronic equipment and storage medium
CN120993893A