Vehicle diagnostic methods and related devices
By acquiring diagnostic operation characteristic data and communication link characteristic data from vehicle diagnostic equipment, the diagnostic process can be dynamically adjusted, solving the problem of low efficiency caused by communication anomalies in vehicle diagnostics and realizing an efficient diagnostic process.
Patent Information
- Application Number
- CN202611366868.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-17
AI Technical Summary
When current vehicle diagnostic equipment is interrupted during the diagnostic process due to communication abnormalities, all steps must be re-executed from the beginning, resulting in low diagnostic efficiency.
By acquiring diagnostic operation characteristic data of the vehicle diagnostic equipment within a first preset time period, the diagnostic interruption discrimination value is determined. When it exceeds the threshold, the diagnosis is interrupted. The communication link characteristic data is acquired and the diagnosis is resumed when it is reliable, until all steps are completed. The final diagnostic result is determined by combining the two results.
It improves the efficiency of vehicle diagnostics, avoids unnecessary and repetitive diagnostic steps, reduces invalid data exchanges on the bus, and shortens diagnostic time.
Smart Images

Figure CN123113818A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle diagnostic technology, and in particular to a vehicle diagnostic method and related apparatus. Background Technology
[0002] With the continuous improvement of vehicle electronic control system integration, vehicles are equipped with multiple electronic control units. When vehicle diagnostic equipment performs fault diagnosis on-site, it needs to continuously exchange a large number of diagnostic messages with multiple vehicle buses and multiple electronic control units. The diagnostic process involves many steps and is time-consuming. Currently, if a communication anomaly is detected during the diagnostic process, the entire diagnostic process is stopped, and all collected diagnostic data is discarded. When re-performing the diagnosis, all diagnostic steps must be repeated from the beginning, significantly increasing the diagnostic time and resulting in low vehicle diagnostic efficiency. Therefore, improving the efficiency of vehicle diagnostics is an urgent problem to be solved. Summary of the Invention
[0003] This application provides a vehicle diagnostic method that improves the efficiency of vehicle diagnostics.
[0004] In a first aspect, embodiments of this application provide a vehicle diagnostic method applied to a vehicle diagnostic device, the method comprising: When performing diagnostic operations on a target vehicle, the diagnostic operation characteristic data of the vehicle diagnostic equipment is acquired within a first preset time period; the diagnostic operation characteristic data includes network status data and diagnostic risk characteristic data. A diagnostic interruption discrimination value is determined based on the diagnostic operation characteristic data; the diagnostic interruption discrimination value is used to characterize the degree to which the diagnostic operation on the target vehicle needs to be interrupted; When the diagnostic interruption discrimination level value is greater than or equal to the preset diagnostic interruption discrimination level threshold, the diagnostic operation is interrupted and a first diagnostic result is obtained; the time of interruption of the diagnostic operation is the end time of the first preset time period; Acquire communication link characteristic data between the target vehicle and the vehicle diagnostic equipment within a second preset time period; the start time of the second preset time period is the time when the diagnostic operation is interrupted. A communication reliability value is determined based on the communication link characteristic data; the communication reliability value is used to characterize the communication reliability between the target vehicle and the vehicle diagnostic equipment. When the communication reliability value is greater than the preset communication reliability threshold, the diagnostic operation is resumed until all diagnostic steps corresponding to the diagnostic operation are completed, and a second diagnostic result is obtained. The target diagnostic result is determined based on the first diagnostic result and the second diagnostic result.
[0005] Secondly, embodiments of this application provide a vehicle diagnostic device, applied to vehicle diagnostic equipment, the device comprising: an acquisition unit and a processing unit; The acquisition unit is used to acquire diagnostic operation feature data of the vehicle diagnostic equipment within a first preset time period when performing diagnostic operations on the target vehicle; the diagnostic operation feature data includes network status data and diagnostic risk feature data. The processing unit is used to determine a diagnostic interruption discrimination value based on the diagnostic operation feature data; the diagnostic interruption discrimination value is used to characterize the degree to which the diagnostic operation on the target vehicle needs to be interrupted. When the diagnostic interruption discrimination level value is greater than or equal to the preset diagnostic interruption discrimination level threshold, the diagnostic operation is interrupted and a first diagnostic result is obtained; the time of interruption of the diagnostic operation is the end time of the first preset time period; Acquire communication link characteristic data between the target vehicle and the vehicle diagnostic equipment within a second preset time period; the start time of the second preset time period is the time when the diagnostic operation is interrupted. A communication reliability value is determined based on the communication link characteristic data; the communication reliability value is used to characterize the communication reliability between the target vehicle and the vehicle diagnostic equipment. When the communication reliability value is greater than the preset communication reliability threshold, the diagnostic operation is resumed until all diagnostic steps corresponding to the diagnostic operation are completed, and a second diagnostic result is obtained. The target diagnostic result is determined based on the first diagnostic result and the second diagnostic result.
[0006] Thirdly, embodiments of the present invention provide an electronic device, including: 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 to cause the electronic device to perform the method as described in the first aspect.
[0007] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that is executed by a processor to implement the method as described in the first aspect.
[0008] Fifthly, embodiments of the present invention provide a computer program product including a non-transitory computer-readable storage medium storing a computer program, such that a computer performs the method as described in the first aspect.
[0009] Implementing the embodiments of the present invention has the following beneficial effects: As can be seen, the vehicle diagnostic method described in this embodiment of the invention, applied to a vehicle diagnostic device, first acquires diagnostic operation feature data of the vehicle diagnostic device within a first preset time period, including network status data and diagnostic risk feature data. Then, based on the diagnostic operation feature data, a diagnostic interruption discrimination value is determined. When the diagnostic interruption discrimination value is greater than or equal to a preset diagnostic interruption discrimination threshold, the diagnostic operation is interrupted, and a first diagnostic result is obtained. Next, communication link feature data of the target vehicle and the vehicle diagnostic device within a second preset time period is acquired, and a communication reliability value is determined based on the communication link feature data. When the communication reliability value is greater than a preset communication reliability threshold, the diagnostic operation is resumed until all diagnostic steps corresponding to the diagnostic operation are completed, resulting in a second diagnostic result. Finally, a target diagnostic result is determined based on the first diagnostic result and the second diagnostic result. The implementation method of this application improves the efficiency of vehicle diagnostics. Attached Figure Description
[0010] To more clearly illustrate the technical solutions in the embodiments of this application or the background art, the accompanying drawings used in the embodiments of this application or the background art will be described below.
[0011] Figure 1 This is an application scenario diagram of a vehicle diagnostic method provided in the embodiments of this application; Figure 2 This is a flowchart of a vehicle diagnostic method provided in an embodiment of this application; Figure 3 This is a flowchart of a method for determining the degree of diagnostic interruption, provided in an embodiment of this application; Figure 4 This is a flowchart of a method for determining network state values provided in an embodiment of this application; Figure 5 This is a flowchart of a method for determining the degree of diagnostic risk provided in an embodiment of this application; Figure 6 This is a flowchart illustrating how to determine a communication reliability value according to an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a vehicle diagnostic device provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0012] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present application.
[0013] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0014] In this document, the term "implementation" means that a specific feature, structure, or characteristic described in connection with an implementation may be included in at least one implementation of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same implementation, nor is it a separate or alternative implementation mutually exclusive with other implementations. It will be explicitly and implicitly understood by those skilled in the art that the implementations described herein can be combined with other implementations.
[0015] Please see Figure 1 , Figure 1 This is an application scenario diagram of a vehicle diagnostic method provided in the embodiments of this application.
[0016] In this embodiment, the application scenario of the vehicle diagnostic method includes a target vehicle and a vehicle diagnostic device that performs diagnostic operations on the target vehicle. The target vehicle is equipped with multiple core electronic control units. The two dashed lines with arrows between the vehicle diagnostic device and the target vehicle are used to represent the interaction link between the vehicle diagnostic device and the target vehicle. The vehicle diagnostic device sends diagnostic commands, handshake keep-alive frames and other interactive messages to the target vehicle through the interaction link. After receiving the messages through the interaction link, the target vehicle sends back response data and operating status data from its internal core electronic control units to the vehicle diagnostic device, thereby enabling bidirectional acquisition and transmission of various feature data during the diagnostic process.
[0017] In this embodiment, when performing a diagnostic operation on the target vehicle, the diagnostic operation characteristic data of the vehicle diagnostic equipment within a first preset time period is first acquired. This diagnostic operation characteristic data includes network status data and diagnostic risk characteristic data. Then, a diagnostic interruption discrimination value is determined based on the diagnostic operation characteristic data. When the diagnostic interruption discrimination value is greater than or equal to a preset diagnostic interruption discrimination threshold, the diagnostic operation is interrupted, and a first diagnostic result is obtained. Next, the communication link characteristic data between the target vehicle and the vehicle diagnostic equipment within a second preset time period is acquired, and a communication reliability value is determined based on this communication link characteristic data. When the communication reliability value is greater than a preset communication reliability threshold, the communication link is restored. The diagnostic operation continues until all diagnostic steps are completed, resulting in a second diagnostic result. Finally, based on the first and second diagnostic results, a target diagnostic result is determined. By combining network status data and diagnostic risk characteristic data, a diagnostic interruption discrimination value is calculated, which can accurately distinguish between ordinary low-risk read diagnostics and high-risk write calibration diagnostics. This avoids meaningless interruptions to low-risk diagnostics due to slight network fluctuations, reducing unnecessary downtime and waiting time. After a diagnostic operation is interrupted, communication link characteristic data is continuously collected. The communication reliability between the target vehicle and the vehicle diagnostic equipment is determined based on the communication link characteristic data. When the communication reliability is high, the diagnostic operation for the target vehicle is resumed, thereby improving the efficiency of vehicle diagnostics.
[0018] Please see Figure 2 , Figure 2 This is a flowchart of a vehicle diagnostic method provided in an embodiment of this application, applied to a vehicle diagnostic device. The method includes, but is not limited to, the following steps: S201: When performing a diagnostic operation on the target vehicle, acquire the diagnostic operation characteristic data of the vehicle diagnostic equipment within a first preset time period.
[0019] In this embodiment, the diagnostic operational characteristic data includes network status data and diagnostic risk characteristic data.
[0020] In this embodiment, the diagnostic operation performed on the target vehicle is a process of vehicle testing, data interaction, and parameter adjustment carried out after the vehicle diagnostic equipment establishes bidirectional communication with multiple electronic control units inside the target vehicle. It includes both read-only testing operations that only read vehicle operating parameters, historical fault codes, and the working status of core electronic control units, and write-type calibration operations that erase and update the built-in firmware of the electronic control units of the target vehicle, modify vehicle control calibration parameters, and adjust function thresholds. During the diagnostic operation, the vehicle diagnostic equipment can continuously send various diagnostic command messages to the target vehicle. After receiving these messages, the electronic control units inside the target vehicle can perform corresponding calculations and collect their own real-time operating data, and send response messages back to the vehicle diagnostic equipment, thus completing all diagnostic business processes such as vehicle fault diagnosis, program upgrade, and performance calibration.
[0021] After the vehicle diagnostic equipment initiates a diagnostic operation for the target vehicle, it can send and receive diagnostic messages bidirectionally with the electronic control unit inside the target vehicle. The vehicle diagnostic equipment can record the message transmission rate, message transmission delay, and communication link disconnection frequency in real time to form network status data. It can also synchronously acquire data such as the amount of diagnostic data loss corresponding to the current diagnostic process, the number of electronic control units involved in the interaction, and the diagnostic safety level to which the current diagnostic operation belongs. Thus, it can obtain diagnostic operation characteristic data including network status data and diagnostic risk characteristic data.
[0022] Network status data refers to communication metrics collected during the bidirectional interaction between the target vehicle and the vehicle diagnostic equipment within a first preset time period. This data may include message transmission rate, message transmission latency, and communication link disconnection frequency. These data directly reflect the stability of the bus link during the diagnostic service data transmission phase. Specifically, message transmission rate characterizes the total amount of data successfully transmitted and received between the vehicle diagnostic equipment and the target vehicle per unit time. A higher message transmission rate indicates stronger data throughput of the current bus channel. Message transmission latency is the complete round-trip time from the vehicle diagnostic equipment to the corresponding core electronic control unit (ECU) inside the target vehicle, and then from the ECU back to the vehicle diagnostic equipment. A higher message transmission latency indicates unstable communication links such as signal interference and bus congestion. The communication link disconnection frequency is used to count the total number of times the diagnostic communication link between the vehicle diagnostic equipment and the target vehicle experiences abnormal interruptions or fails to transmit and receive messages normally within the first preset time period.
[0023] Diagnostic risk characteristic data can include data such as the amount of diagnostic data loss, the number of core electronic control units (ECUs) corresponding to the diagnostic operation, and the diagnostic safety level. Among them, the amount of diagnostic data loss records the total amount of diagnostic message data issued by the vehicle diagnostic equipment within the first preset time period, which was not fully received by the core ECUs inside the target vehicle, or failed to be verified or parsed normally after being received. The larger the amount of diagnostic data loss, the higher the probability that the current diagnostic process will have incomplete parameter writing or incomplete fault code reading. The number of core ECUs corresponding to the diagnostic operation is the total number of all core ECUs that need to issue read / write commands and interact with data in this diagnostic process. The more core ECUs involved in the operation, the greater the risk of multiple components malfunctioning after the link is interrupted. The diagnostic safety level can be pre-classified according to the business type of the diagnostic operation. For example, read-only operations such as reading fault codes and operating status correspond to a low safety risk level, while write operations involving firmware erasure, calibration parameter modification, and vehicle control logic adjustment correspond to a high safety risk level.
[0024] S202: Determine the diagnostic interruption discrimination value based on the diagnostic operation characteristic data.
[0025] In this embodiment, the diagnostic interruption discrimination degree value is used to characterize the degree to which the diagnostic operation on the target vehicle needs to be interrupted.
[0026] First, a network state value representing the stability of the network state corresponding to the diagnostic operation can be determined based on the network state data. Then, a diagnostic risk level value representing the degree of diagnostic risk corresponding to the diagnostic operation can be determined based on the diagnostic risk feature data. Next, a first diagnostic interruption discrimination level value corresponding to the network state value and a second diagnostic interruption discrimination level value corresponding to the diagnostic risk level value are determined. Finally, the diagnostic interruption discrimination level value can be determined based on the first diagnostic interruption discrimination level value and the second diagnostic interruption discrimination level value.
[0027] S203: When the diagnostic interruption discrimination level value is greater than or equal to the preset diagnostic interruption discrimination level threshold, the diagnostic operation is interrupted and a first diagnostic result is obtained.
[0028] In this embodiment, the time when the diagnostic operation is interrupted is the end time of the first preset time period.
[0029] The preset diagnostic interruption discrimination threshold can be determined by combining the operating conditions of multiple vehicles under different communication interference intensities and different types of diagnostic operations, collecting diagnostic interruption discrimination values under various operating conditions, distinguishing between a safe range that will not have a negative impact on the electronic control unit in the target vehicle and a dangerous range that is likely to cause parameter disorder and data loss of the electronic control unit, taking the critical value between the safe range and the dangerous range as the benchmark threshold, and adjusting the benchmark threshold according to the protection level of the electronic control unit of the vehicle model to which the vehicle diagnostic equipment is adapted, thereby determining the preset diagnostic interruption discrimination threshold.
[0030] The higher the diagnostic interruption discrimination value, the higher the level of interference in the current communication link, and the greater the safety risk of damage to the electronic control unit in the target vehicle caused by the current diagnostic operation. When the diagnostic interruption discrimination value is greater than or equal to the preset diagnostic interruption discrimination threshold, it indicates that the current operating condition has entered a dangerous range that is prone to causing faults. If the diagnostic operation continues to be executed, on the one hand, the continuous fluctuation of the communication link will cause a large number of diagnostic messages sent to the electronic control unit to be lost or fail to be verified, resulting in problems such as incomplete parameter writing and incomplete fault code reading. On the other hand, high-risk diagnostic operations are accompanied by unstable communication and repeated interruption of interaction, which can easily damage the calibration parameters and running programs stored inside the electronic control unit. Therefore, it is necessary to terminate the current diagnostic interaction process in time and record the diagnostic information that has been collected and interacted at present, so as to determine the diagnostic results corresponding to the completed diagnostic operations.
[0031] The vehicle diagnostic equipment compares the diagnostic interruption severity value with a preset diagnostic interruption severity threshold in real time. Once the diagnostic interruption severity value is determined to be greater than or equal to the preset diagnostic interruption severity threshold, the vehicle diagnostic equipment immediately stops sending diagnostic read / write messages such as fault reading, parameter modification, and firmware flashing to the electronic control unit in the target vehicle. Only the periodic send / receive link of handshake keep-alive frames is maintained to prevent the communication session from being directly disconnected. The vehicle diagnostic equipment synchronously retrieves all valid diagnostic data that has been interacted with the electronic control unit in the target vehicle within a first preset time period, packages and stores the valid diagnostic data locally, and obtains the first diagnostic result.
[0032] S204: Obtain communication link characteristic data between the target vehicle and the vehicle diagnostic equipment within a second preset time period.
[0033] In this embodiment, the start time of the second preset time period is the time when the diagnostic operation is interrupted.
[0034] After the diagnostic operation is interrupted, the vehicle diagnostic equipment stops sending various diagnostic service read / write messages to the electronic control unit (ECU) in the target vehicle for a second preset time period. However, it continues to periodically send handshake keep-alive frames without diagnostic service payloads to the target vehicle according to a preset fixed period. These handshake keep-alive frames are dedicated interactive messages without diagnostic service payloads, used for bidirectional verification of connectivity and to maintain uninterrupted communication sessions. Upon receiving the handshake keep-alive frame, the ECU in the target vehicle immediately returns a corresponding response frame to the vehicle diagnostic equipment. The vehicle diagnostic equipment can record the transmission and reception status of the handshake keep-alive frames and response frames throughout the second preset time period, thereby obtaining the communication link characteristic data between the target vehicle and the vehicle diagnostic equipment during the second preset time period.
[0035] In this embodiment, the communication link characteristic data is a communication quality indicator obtained by the vehicle diagnostic equipment based on the handshake keep-alive frame and the electronic control unit in the target vehicle after the diagnostic operation is interrupted. This embodiment mainly uses the handshake frame response success rate and the average transmission delay of the handshake frame as examples for explanation. The handshake frame response success rate is the ratio of the number of handshake keep-alive frames in which the electronic control unit in the target vehicle successfully returns a response frame to the total number of handshake keep-alive frames sent by the vehicle diagnostic equipment within a second preset time period. The lower the handshake frame response success rate, the more abnormal problems such as signal interference and bus congestion exist in the current communication link. The average transmission delay of the handshake frame is the average round-trip time from when a single handshake keep-alive frame is sent from the vehicle diagnostic equipment, transmitted to the electronic control unit in the target vehicle, and then returned by the electronic control unit to the vehicle diagnostic equipment. The higher the average transmission delay of the handshake frame, the worse the data transmission smoothness of the communication link. Through the communication link characteristic data, the stability level of the link under the interruption state can be objectively reflected without running diagnostic services.
[0036] S205: Determine the communication reliability value based on the communication link characteristic data.
[0037] In this embodiment, the communication reliability value is used to characterize the communication reliability between the target vehicle and the vehicle diagnostic equipment.
[0038] When the communication link characteristic data includes the handshake frame response success rate and the average transmission delay of the handshake frame, firstly, a first communication reliability value corresponding to the handshake frame response success rate and a second communication reliability value corresponding to the average transmission delay of the handshake frame are determined. Then, a reference communication reliability value is determined based on the first communication reliability value and the second communication reliability value. Next, a correction coefficient corresponding to the diagnostic risk level value is determined. Finally, the reference communication reliability value is corrected based on the correction coefficient to obtain the communication reliability value.
[0039] S206: When the communication reliability value is greater than the preset communication reliability threshold, the diagnostic operation is resumed until all diagnostic steps corresponding to the diagnostic operation are completed, and a second diagnostic result is obtained.
[0040] In this embodiment, when the communication reliability value is greater than the preset communication reliability threshold, it indicates that the communication link between the current vehicle diagnostic equipment and the electronic control unit in the target vehicle is relatively reliable. The vehicle diagnostic equipment immediately stops the one-way monitoring mode that only sends handshake keep-alive frames and switches back to the normal diagnostic interaction mode. Based on the first diagnostic result retained before the interruption, the interruption point corresponding to the diagnostic process is located. From the interruption point, various diagnostic business read and write messages are sent to the electronic control unit in the target vehicle. All remaining unexecuted diagnostic steps such as fault reading, parameter verification, and firmware flashing are continuously completed. After completing all the preset interaction processes of this diagnostic operation, the second diagnostic result can be determined based on the effective diagnostic data such as the vehicle operation data, electronic control unit feedback information, and fault messages newly collected during the recovery diagnostic process.
[0041] S207: Determine the target diagnostic result based on the first diagnostic result and the second diagnostic result.
[0042] In this embodiment, the diagnostic interruption point in the first diagnostic result is first located. Then, all valid vehicle operating parameters, fault codes, and electronic control units in the target vehicle that were verified and formed before the interruption are extracted from the first diagnostic result. Next, all valid vehicle operating parameters, fault codes, and electronic control units in the target vehicle that were verified and formed after the interruption are extracted from the second diagnostic result. The valid diagnostic data before the interruption and the valid diagnostic data after the interruption are concatenated and merged according to the order of diagnostic execution. Based on the first diagnostic result and the second diagnostic result, the target diagnostic result can be determined.
[0043] As can be seen, the diagnostic operation first acquires diagnostic operation feature data of the vehicle diagnostic equipment within a first preset time period, including network status data and diagnostic risk feature data. Then, based on the diagnostic operation feature data, a diagnostic interruption discrimination value is determined. When the diagnostic interruption discrimination value is greater than or equal to a preset diagnostic interruption discrimination threshold, the diagnostic operation is interrupted, and a first diagnostic result is obtained. Next, the communication link feature data of the target vehicle and the vehicle diagnostic equipment within a second preset time period is acquired, and a communication reliability value is determined based on the communication link feature data. When the communication reliability value is greater than a preset communication reliability threshold, the diagnostic operation is resumed until all diagnostic steps corresponding to the diagnostic operation are completed, resulting in a second diagnostic result. Finally, a target diagnostic result is determined based on the first diagnostic result and the second diagnostic result. The diagnostic interruption severity value is determined by combining network status data and diagnostic risk characteristic data. This approach considers the communication link operating conditions and the inherent safety hazards of the diagnostic operation itself, effectively preventing irreversible damage such as parameter corruption and program loss to the electronic control unit in the target vehicle caused by continuous execution of high-risk diagnostic operations during communication anomalies. The interruption time of the diagnostic operation is used as the time sequence boundary between the first and second preset time periods. After the interruption, communication link characteristic data is continuously collected based on the handshake keep-alive frame to determine the communication reliability value. The remaining diagnostic process is only resumed from the interruption point after the communication stability level is high, without repeating the completed diagnostic steps. This reduces invalid bus data interaction and shortens the overall diagnostic time. Finally, the two diagnostic data segments are spliced and integrated to obtain a complete target diagnostic result, improving both the safety and efficiency of the vehicle diagnostic process.
[0044] Please see Figure 3 , Figure 3 This is a flowchart of a method for determining the degree of diagnostic interruption according to an embodiment of this application, including but not limited to the following steps: S301: Determine the network status value based on the network status data.
[0045] In this embodiment, the network state value is used to characterize the stability of the network state corresponding to the diagnostic operation.
[0046] When the network status data includes message transmission rate and message transmission delay, firstly, a first network status value corresponding to the message transmission rate and a second network status value corresponding to the message transmission delay are determined. Then, a reference network status value is determined based on the first network status value and the second network status value. Next, the frequency of communication link disconnection between the target vehicle and the vehicle diagnostic equipment within the first preset time period is obtained, and a first optimization factor corresponding to the frequency of communication link disconnection is determined. Finally, the reference network status value is adjusted based on the first optimization factor to obtain the network status value.
[0047] S302: Determine the diagnostic risk level value based on the diagnostic risk characteristic data.
[0048] In this embodiment, the diagnostic risk level value is used to characterize the diagnostic risk level corresponding to the diagnostic operation.
[0049] When the diagnostic risk characteristic data includes the amount of diagnostic data loss and the number of core electronic control units corresponding to the diagnostic operation, firstly, a first diagnostic risk level value corresponding to the amount of diagnostic data loss and a second diagnostic risk level value corresponding to the number of core electronic control units are determined. Then, a reference diagnostic risk level value is determined based on the first diagnostic risk level value and the second diagnostic risk level value. Next, the diagnostic security level corresponding to the diagnostic operation is determined, and a second optimization factor corresponding to the diagnostic security level is determined. Finally, the reference diagnostic risk level value is adjusted based on the second optimization factor to obtain the diagnostic risk level value.
[0050] S303: Determine the first diagnostic interruption discrimination value corresponding to the network status value and the second diagnostic interruption discrimination value corresponding to the diagnostic risk level value.
[0051] In this embodiment, the mapping relationship can be a preset first mapping relationship between network status values and diagnostic interruption discrimination values. Based on this first mapping relationship, a first diagnostic interruption discrimination value corresponding to the network status value can be determined. The first mapping relationship is a numerical correspondence rule pre-calibrated and stored inside the vehicle diagnostic equipment. This first mapping relationship establishes a quantitative correspondence between network status values and the first diagnostic interruption discrimination value. Any network status value can be directly matched to obtain a unique corresponding diagnostic interruption discrimination value by retrieving this first mapping relationship.
[0052] This can be a second mapping relationship between preset diagnostic risk level values and diagnostic interruption discrimination levels. Based on this second mapping relationship, a second diagnostic interruption discrimination level value corresponding to the diagnostic risk level value can be determined. The second mapping relationship is a pre-calibrated numerical correspondence rule stored inside the vehicle diagnostic equipment. This second mapping relationship establishes a quantitative correspondence between diagnostic risk level values and second diagnostic interruption discrimination level values. Any diagnostic risk level value can be directly matched to obtain a unique corresponding diagnostic interruption discrimination level value by retrieving this second mapping relationship.
[0053] S304: Determine the diagnostic interruption severity value based on the first diagnostic interruption severity value and the second diagnostic interruption severity value.
[0054] In this embodiment, a reference diagnostic interruption discrimination value can be determined first based on the first diagnostic interruption discrimination value and the second diagnostic interruption discrimination value. Then, the number of times the diagnostic operation was interrupted before the first preset time period is determined to obtain the historical diagnostic interruption count. Next, an adjustment coefficient corresponding to the historical diagnostic interruption count is determined. Finally, the reference diagnostic interruption discrimination value is adjusted based on the adjustment coefficient to obtain the diagnostic interruption discrimination value.
[0055] For example, a reference diagnostic interruption discrimination value is determined based on the first diagnostic interruption discrimination value and the second diagnostic interruption discrimination value. Specifically, a first weight corresponding to the first diagnostic interruption discrimination value and a second weight corresponding to the second diagnostic interruption discrimination value can be determined first, wherein the sum of the first weight and the second weight is 1. Then, the reference diagnostic interruption discrimination value can be determined based on the first weight, the second weight, the first diagnostic interruption discrimination value, and the second diagnostic interruption discrimination value. Specifically, the reference diagnostic interruption discrimination value can be determined in the following manner: Reference diagnostic interruption discrimination value = first diagnostic interruption discrimination value × first weight + second diagnostic interruption discrimination value × second weight; According to the above method, a reference diagnostic interruption discrimination value can be determined based on the first weight, the second weight, the first diagnostic interruption discrimination value, and the second diagnostic interruption discrimination value.
[0056] For example, the number of times the diagnostic operation was interrupted before the first preset time period is determined to obtain the historical diagnostic interruption count. Specifically, the larger the historical diagnostic interruption count, the more times the vehicle diagnostic equipment and the electronic control unit in the target vehicle experienced communication fluctuations or data transmission abnormalities before the first preset time period, and the higher the risk of performing the diagnostic operation may be. Therefore, it is necessary to first determine the number of times the diagnostic operation was interrupted before the first preset time period to obtain the historical diagnostic interruption count.
[0057] For example, an adjustment coefficient corresponding to the number of historical diagnostic interruptions is determined. Specifically, it can be a preset mapping relationship between the number of historical diagnostic interruptions and the adjustment coefficient. Based on this mapping relationship, the adjustment coefficient corresponding to the number of historical diagnostic interruptions can be determined.
[0058] For example, the reference diagnostic interruption discrimination value is adjusted based on the adjustment coefficient to obtain the diagnostic interruption discrimination value. Specifically, the diagnostic interruption discrimination value can be determined in the following manner: Diagnostic interruption severity value = Reference diagnostic interruption severity value × (1 + adjustment coefficient); The reference diagnostic interruption discrimination value can be adjusted based on the adjustment coefficient to obtain the diagnostic interruption discrimination value in the following manner.
[0059] As can be seen, by first determining the reference diagnostic interruption degree value based on the first diagnostic interruption degree value and the second diagnostic interruption degree value, and then counting the number of historical diagnostic interruptions that have occurred before the first preset time period, and matching the corresponding adjustment coefficient to correct the reference diagnostic interruption degree value to obtain the final diagnostic interruption degree value, the final determined diagnostic interruption degree value can be more accurate, avoiding the risk of greater data damage to the electronic control unit in the target vehicle caused by repeated diagnostic interruptions.
[0060] When the network status data includes message transmission rate and message transmission delay, please refer to [link / reference]. Figure 4 , Figure 4 This application provides a flowchart for determining a network state value, including but not limited to the following steps: S401: Determine the first network status value corresponding to the message transmission rate and the second network status value corresponding to the message transmission delay.
[0061] In this embodiment, it can be a third mapping relationship between a preset message transmission rate and a network status value. Based on this third mapping relationship, a first network status value corresponding to the message transmission rate can be determined.
[0062] It can be a fourth mapping relationship between a preset message transmission delay and a network status value. Based on this fourth mapping relationship, a second network status value corresponding to the message transmission delay can be determined.
[0063] S402: Determine a reference network state value based on the first network state value and the second network state value.
[0064] In this embodiment, a third weight corresponding to the first network state value and a fourth weight corresponding to the second network state value can be determined first, wherein the sum of the third weight and the fourth weight is 1. Then, the reference network state value is determined based on the third weight, the fourth weight, the first network state value, and the second network state value. Reference network state value = first network state value × third weight + second network state value × fourth weight; The reference network state value can be determined based on the third weight, the fourth weight, the first network state value, and the second network state value in the manner described above.
[0065] S403: Obtain the frequency of communication link disconnection between the target vehicle and the vehicle diagnostic equipment within the first preset time period.
[0066] In this embodiment, a higher frequency of communication link disconnection indicates severe interference in the communication line between the vehicle diagnostic equipment and the electronic control unit in the target vehicle, poor bus transmission conditions, frequent data transmission and reception issues such as disconnection and reconnection, and message loss, and a worse overall link stability. This leads to a more unstable network state corresponding to the diagnostic operation. Conversely, a lower frequency of communication link disconnection indicates weak interference in the communication line between the vehicle diagnostic equipment and the electronic control unit in the target vehicle, good bus transmission conditions, and very few data transmission and reception issues such as disconnection and reconnection or message loss. This leads to a better overall link stability and a more stable network state corresponding to the diagnostic operation. Therefore, it is necessary to first obtain the frequency of communication link disconnection between the target vehicle and the vehicle diagnostic equipment within the first preset time period.
[0067] S404: Determine the first optimization factor corresponding to the frequency of communication link disconnection.
[0068] In this embodiment, it can be a preset mapping relationship between the frequency of communication link disconnection and the optimization factor. Based on this mapping relationship, the first optimization factor corresponding to the frequency of communication link disconnection can be determined.
[0069] S405: Adjust the reference network state value based on the first optimization factor to obtain the network state value.
[0070] In this embodiment, the network status value can be determined in the following manner; Network state value = Reference network state value × (1 + First optimization factor); The reference network state value can be obtained by adjusting the first optimization factor in the manner described above.
[0071] As can be seen, the first network status value and the second network status value are calculated based on the message transmission rate and message transmission delay. Then, the reference network status value is determined by combining the first and second network status values. This allows for simultaneous consideration of both transmission speed and message delay. Furthermore, the reference network status value is modified by matching the corresponding first optimization factor based on the frequency of communication link disconnection within a first preset time period. This ensures that the final network status value can accurately assess the actual working status of the bus between the vehicle diagnostic equipment and the electronic control unit in the target vehicle. It also facilitates the timely detection of hidden communication faults, thereby preventing the continued diagnostic operation when the communication reliability between the target vehicle and the vehicle diagnostic equipment is low, which could lead to data corruption of the electronic control unit.
[0072] When the diagnostic risk characteristic data includes the amount of diagnostic data loss and the number of core electronic control units corresponding to the diagnostic operation, please refer to... Figure 5 , Figure 5This application provides a flowchart for determining a diagnostic risk level value, including but not limited to the following steps: S501: Determine the first diagnostic risk level value corresponding to the amount of diagnostic data loss and the second diagnostic risk level value corresponding to the number of core electronic control units.
[0073] In this embodiment, it can be a fifth mapping relationship between a preset amount of diagnostic data loss and a diagnostic risk level value. Based on this fifth mapping relationship, a first diagnostic risk level value corresponding to the amount of diagnostic data loss can be determined.
[0074] It can be a sixth mapping relationship between the preset number of core electronic control units and the diagnostic risk level value. Based on this sixth mapping relationship, a second diagnostic risk level value corresponding to the number of core electronic control units can be determined.
[0075] S502: Determine a reference diagnostic risk level value based on the first diagnostic risk level value and the second diagnostic risk level value.
[0076] In this embodiment, the fifth weight corresponding to the first diagnostic risk level value and the sixth weight corresponding to the second diagnostic risk level value can be determined first, wherein the sum of the fifth weight and the sixth weight is 1. Then, the reference diagnostic risk level value can be determined based on the fifth weight, the sixth weight, the first diagnostic risk level value, and the second diagnostic risk level value. Specifically, the reference diagnostic risk level value can be calculated as follows: Reference diagnostic risk level value = First diagnostic risk level value × Fifth weight + Second diagnostic risk level value × Sixth weight; The reference diagnostic risk level value can be determined based on the fifth weight, the sixth weight, the first diagnostic risk level value, and the second diagnostic risk level value in the manner described above.
[0077] S503: Determine the diagnostic safety level corresponding to the diagnostic operation.
[0078] In this embodiment, a higher diagnostic safety level means that the current diagnostic operation will read and write critical vehicle control data. If an anomaly occurs, it is more likely to cause parameter corruption and program damage to the electronic control unit in the target vehicle, resulting in a higher overall diagnostic risk. Conversely, a lower diagnostic safety level means that only a normal data reading operation is being performed. Even if a data anomaly occurs, it will not cause serious damage to the electronic control unit, resulting in a lower overall diagnostic risk. Therefore, it is necessary to first determine the diagnostic safety level corresponding to the diagnostic operation.
[0079] S504: Determine the second optimization factor corresponding to the diagnostic safety level.
[0080] In this embodiment, it can be a preset mapping relationship between diagnostic safety level and optimization factor. Based on this mapping relationship, the second optimization factor corresponding to the diagnostic safety level can be determined.
[0081] It should be explained that the higher the diagnostic safety level, the more likely the diagnostic operation may read, write, or modify the vehicle's core electronic control unit, resulting in more serious consequences and a larger value for the matched second optimization factor. Conversely, the lower the diagnostic safety level, the more likely it is to perform only ordinary data reading, with very low risk, and a smaller value for the matched second optimization factor.
[0082] In this embodiment, the diagnostic safety level can include low safety level, medium safety level and high safety level. Low safety level corresponds to read-only diagnostic operations such as reading vehicle operation logs, fault codes, and real-time operating parameters, without modifying the data stored inside the electronic control unit. Medium safety level corresponds to minor rewriting operations such as small calibration and temporary state reset of the basic parameters of the electronic control unit. Even if an anomaly occurs, it will only cause a small amount of temporary data deviation. High safety level corresponds to heavy operations such as flashing the electronic control unit program, rewriting the vehicle calibration parameters, and modifying the core control logic. Once interrupted or communication fails, it is very easy to cause data corruption and program failure of the electronic control unit. When the vehicle diagnostic equipment is running, it can automatically match the corresponding diagnostic safety level according to the type of diagnostic operation currently being performed.
[0083] S505: Adjust the reference diagnostic risk level value based on the second optimization factor to obtain the diagnostic risk level value.
[0084] In this embodiment, the diagnostic risk level value can be determined in the following manner: Diagnostic risk level value = Reference diagnostic risk level value × (1 + Second optimization factor); The reference diagnostic risk level value can be adjusted based on the second optimization factor in the manner described above to obtain the diagnostic risk level value.
[0085] As can be seen, the first and second diagnostic risk levels are calculated based on the amount of diagnostic data loss and the number of core electronic control units. Then, the reference diagnostic risk level is determined by combining the first and second diagnostic risk levels. Finally, the reference diagnostic risk level is corrected by matching the corresponding second optimization factor with the diagnostic safety level corresponding to the current diagnostic operation. This ensures that the final diagnostic risk level can accurately assess the actual risk of the diagnostic operation and facilitate the early identification of high-risk diagnostic scenarios. This can prevent data loss or data corruption in the electronic control units of the target vehicle caused by continuous operation under high-risk diagnostic conditions.
[0086] When the communication link characteristic data includes handshake frame response success rate and handshake frame average transmission delay, please refer to Figure 6 , Figure 6 This is a flowchart of a method for determining a communication reliability value according to an embodiment of this application, including but not limited to the following steps: S601: Determine the first communication reliability value corresponding to the success rate of the handshake frame response and the second communication reliability value corresponding to the average transmission delay of the handshake frame.
[0087] In this embodiment, after the diagnostic operation is interrupted, the vehicle diagnostic equipment will not disconnect the communication session with the electronic control unit of the target vehicle. Instead, it will continue to send handshake keep-alive frames without service load and count the sending and receiving of handshake keep-alive frames. In this way, communication link characteristic data such as handshake frame response success rate and average handshake frame transmission delay can be determined.
[0088] It can be a seventh mapping relationship between a preset handshake frame response success rate and a communication reliability value. Based on this seventh mapping relationship, a first communication reliability value corresponding to the handshake frame response success rate can be determined.
[0089] It can be an eighth mapping relationship between the preset average transmission delay of handshake frames and the communication reliability value. Based on this eighth mapping relationship, a second communication reliability value corresponding to the average transmission delay of the handshake frames can be determined.
[0090] S602: Determine a reference communication reliability value based on the first communication reliability value and the second communication reliability value.
[0091] In this embodiment, the seventh weight corresponding to the first communication reliability value and the eighth weight corresponding to the second communication reliability value can be determined first, wherein the sum of the seventh weight and the eighth weight is 1. Then, the reference communication reliability value can be determined based on the seventh weight, the eighth weight, the first communication reliability value, and the second communication reliability value. Specifically, the reference communication reliability value can be calculated as follows: Reference communication reliability value = First communication reliability value × Seventh weight + Second communication reliability value × Eighth weight; The reference communication reliability value can be determined based on the seventh weight, the eighth weight, the first communication reliability value, and the second communication reliability value in the manner described above.
[0092] S603: Determine the correction coefficient corresponding to the diagnostic risk level value.
[0093] In this embodiment, the higher the diagnostic risk level value, the more likely the current diagnostic operation is to cause data damage to the electronic control unit in the target vehicle, the higher the requirements for communication stability, and the smaller the matched correction coefficient value. The lower the diagnostic risk level value, the more likely the current operation is just a normal read-type diagnostic operation, the larger the communication fault tolerance space, and the larger the matched correction coefficient value. Therefore, it is necessary to first determine the correction coefficient corresponding to the diagnostic risk level value.
[0094] It can be a preset mapping relationship between the diagnostic risk level value and the correction coefficient. Based on this mapping relationship, the correction coefficient corresponding to the current diagnostic risk level value can be determined.
[0095] S604: Correct the reference communication reliability value based on the correction coefficient to obtain the communication reliability value.
[0096] In this embodiment, the communication reliability value can be determined in the following manner: Communication reliability value = Reference communication reliability value × Correction factor; The reference communication reliability value can be corrected based on the correction coefficient in the manner described above to obtain the communication reliability value.
[0097] As can be seen, the first and second communication reliability values are calculated based on the handshake frame response success rate and the average transmission delay of the handshake frames. Then, the reference communication reliability value is determined by combining the first and second communication reliability values. Finally, the reference communication reliability value is adjusted by matching the corresponding correction coefficient with the diagnostic risk level value corresponding to the current diagnostic operation. This ensures that the final communication reliability value can truly reflect the communication reliability between the target vehicle and the vehicle diagnostic equipment, avoiding the need to resume the diagnostic operation when communication conditions are insufficient, and preventing data loss or program corruption in the electronic control unit of the target vehicle caused by communication instability.
[0098] In summary, implementing the embodiments of the present invention has the following beneficial effects: As can be seen, the vehicle diagnostic method described in this embodiment of the invention, applied to a vehicle diagnostic device, first acquires diagnostic operation feature data of the vehicle diagnostic device within a first preset time period, including network status data and diagnostic risk feature data. Then, based on the diagnostic operation feature data, a diagnostic interruption discrimination value is determined. When the diagnostic interruption discrimination value is greater than or equal to a preset diagnostic interruption discrimination threshold, the diagnostic operation is interrupted, and a first diagnostic result is obtained. Next, communication link feature data of the target vehicle and the vehicle diagnostic device within a second preset time period is acquired, and a communication reliability value is determined based on the communication link feature data. When the communication reliability value is greater than a preset communication reliability threshold, the diagnostic operation is resumed until all diagnostic steps corresponding to the diagnostic operation are completed, resulting in a second diagnostic result. Finally, a target diagnostic result is determined based on the first diagnostic result and the second diagnostic result. The implementation method of this application improves the efficiency of vehicle diagnostics.
[0099] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a vehicle diagnostic device provided in an embodiment of this application. The vehicle diagnostic device 700 is applied to automotive diagnostic equipment. The vehicle diagnostic device 700 includes: an acquisition unit 701 and a processing unit 702. The acquisition unit 701 is used to acquire diagnostic operation feature data of the vehicle diagnostic equipment within a first preset time period when performing diagnostic operations on the target vehicle; the diagnostic operation feature data includes network status data and diagnostic risk feature data. The processing unit 702 is used to determine a diagnostic interruption discrimination degree value based on the diagnostic operation feature data; the diagnostic interruption discrimination degree value is used to characterize the degree to which the diagnostic operation on the target vehicle needs to be interrupted; When the diagnostic interruption discrimination level value is greater than or equal to the preset diagnostic interruption discrimination level threshold, the diagnostic operation is interrupted and a first diagnostic result is obtained; the time of interruption of the diagnostic operation is the end time of the first preset time period; The acquisition unit 701 is used to acquire communication link characteristic data between the target vehicle and the vehicle diagnostic equipment within a second preset time period; the start time of the second preset time period is the time when the diagnostic operation is interrupted. The processing unit 702 is used to determine a communication reliability value based on the communication link feature data; the communication reliability value is used to characterize the communication reliability between the target vehicle and the vehicle diagnostic equipment; When the communication reliability value is greater than the preset communication reliability threshold, the diagnostic operation is resumed until all diagnostic steps corresponding to the diagnostic operation are completed, and a second diagnostic result is obtained. The target diagnostic result is determined based on the first diagnostic result and the second diagnostic result.
[0100] In some possible implementations, in determining the diagnostic interruption discrimination level value based on the diagnostic operation characteristic data, the processing unit 702 is specifically used for: A network state value is determined based on the network state data; the network state value is used to characterize the stability of the network state corresponding to the diagnostic operation. A diagnostic risk level value is determined based on the diagnostic risk characteristic data; the diagnostic risk level value is used to characterize the diagnostic risk level corresponding to the diagnostic operation. Determine a first diagnostic interruption severity value corresponding to the network status value and a second diagnostic interruption severity value corresponding to the diagnostic risk severity value; The diagnostic interruption severity value is determined based on the first diagnostic interruption severity value and the second diagnostic interruption severity value.
[0101] In some possible implementations, when the network state data includes message transmission rate and message transmission delay, the processing unit 702 is specifically used for determining the network state value based on the network state data as follows: Determine a first network status value corresponding to the message transmission rate and a second network status value corresponding to the message transmission delay; A reference network state value is determined based on the first network state value and the second network state value; The frequency of communication link disconnection between the target vehicle and the vehicle diagnostic equipment within the first preset time period is obtained; Determine the first optimization factor corresponding to the frequency of communication link disconnection; The reference network state value is adjusted based on the first optimization factor to obtain the network state value.
[0102] In some possible implementations, when the diagnostic risk characteristic data includes the amount of diagnostic data loss and the number of core electronic control units corresponding to the diagnostic operation, the processing unit 702 is specifically used for determining the diagnostic risk level value based on the diagnostic risk characteristic data as follows: Determine a first diagnostic risk level value corresponding to the amount of diagnostic data loss and a second diagnostic risk level value corresponding to the number of core electronic control units; A reference diagnostic risk level value is determined based on the first diagnostic risk level value and the second diagnostic risk level value; Determine the diagnostic safety level corresponding to the diagnostic operation; Determine a second optimization factor corresponding to the diagnostic safety level; The reference diagnostic risk level value is adjusted based on the second optimization factor to obtain the diagnostic risk level value.
[0103] In some possible implementations, in determining the diagnostic interruption severity value based on the first diagnostic interruption severity value and the second diagnostic interruption severity value, the processing unit 702 is specifically configured to: A reference diagnostic interruption severity value is determined based on the first diagnostic interruption severity value and the second diagnostic interruption severity value; The number of times the diagnostic operation was interrupted before the first preset time period was determined, and the historical diagnostic interruption count was obtained; Determine the adjustment coefficient corresponding to the number of historical diagnostic interruptions; The reference diagnostic interruption discrimination value is adjusted based on the adjustment coefficient to obtain the diagnostic interruption discrimination value.
[0104] In some possible implementations, when the communication link characteristic data includes handshake frame response success rate and handshake frame average transmission delay, the processing unit 702 is specifically used for determining the communication reliability value based on the communication link characteristic data as follows: Determine the first communication reliability value corresponding to the handshake frame response success rate and the second communication reliability value corresponding to the average transmission delay of the handshake frame; A reference communication reliability value is determined based on the first communication reliability value and the second communication reliability value; Determine the correction coefficient corresponding to the diagnostic risk level value; The reference communication reliability value is corrected based on the correction coefficient to obtain the communication reliability value.
[0105] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 800 is applied to automotive diagnostic equipment. Figure 8 As shown, the electronic device 800 includes a transceiver 801, a processor 802, and a memory 803. These are connected via a bus 804. The memory 803 stores computer programs and data, and the transceiver 801 can transmit data stored in the memory 803 to the processor 802. The program includes instructions for performing the following steps: When performing diagnostic operations on a target vehicle, the diagnostic operation characteristic data of the vehicle diagnostic equipment is acquired within a first preset time period; the diagnostic operation characteristic data includes network status data and diagnostic risk characteristic data. A diagnostic interruption discrimination value is determined based on the diagnostic operation characteristic data; the diagnostic interruption discrimination value is used to characterize the degree to which the diagnostic operation on the target vehicle needs to be interrupted; When the diagnostic interruption discrimination level value is greater than or equal to the preset diagnostic interruption discrimination level threshold, the diagnostic operation is interrupted and a first diagnostic result is obtained; the time of interruption of the diagnostic operation is the end time of the first preset time period; Acquire communication link characteristic data between the target vehicle and the vehicle diagnostic equipment within a second preset time period; the start time of the second preset time period is the time when the diagnostic operation is interrupted. A communication reliability value is determined based on the communication link characteristic data; the communication reliability value is used to characterize the communication reliability between the target vehicle and the vehicle diagnostic equipment. When the communication reliability value is greater than the preset communication reliability threshold, the diagnostic operation is resumed until all diagnostic steps corresponding to the diagnostic operation are completed, and a second diagnostic result is obtained. The target diagnostic result is determined based on the first diagnostic result and the second diagnostic result.
[0106] In some possible implementations, the above procedure includes instructions for performing the following steps in determining the diagnostic interruption discrimination value based on the diagnostic operation characteristic data: A network state value is determined based on the network state data; the network state value is used to characterize the stability of the network state corresponding to the diagnostic operation. A diagnostic risk level value is determined based on the diagnostic risk characteristic data; the diagnostic risk level value is used to characterize the diagnostic risk level corresponding to the diagnostic operation. Determine a first diagnostic interruption severity value corresponding to the network status value and a second diagnostic interruption severity value corresponding to the diagnostic risk severity value; The diagnostic interruption severity value is determined based on the first diagnostic interruption severity value and the second diagnostic interruption severity value.
[0107] In some possible implementations, when the network state data includes message transmission rate and message transmission delay, the above procedure includes instructions for performing the following steps in determining network state values based on the network state data: Determine a first network status value corresponding to the message transmission rate and a second network status value corresponding to the message transmission delay; A reference network state value is determined based on the first network state value and the second network state value; The frequency of communication link disconnection between the target vehicle and the vehicle diagnostic equipment within the first preset time period is obtained; Determine the first optimization factor corresponding to the frequency of communication link disconnection; The reference network state value is adjusted based on the first optimization factor to obtain the network state value.
[0108] In some possible implementations, when the diagnostic risk characteristic data includes the amount of diagnostic data loss and the number of core electronic control units corresponding to the diagnostic operation, the above procedure includes instructions for performing the following steps in determining the diagnostic risk level value based on the diagnostic risk characteristic data: Determine a first diagnostic risk level value corresponding to the amount of diagnostic data loss and a second diagnostic risk level value corresponding to the number of core electronic control units; A reference diagnostic risk level value is determined based on the first diagnostic risk level value and the second diagnostic risk level value; Determine the diagnostic safety level corresponding to the diagnostic operation; Determine a second optimization factor corresponding to the diagnostic safety level; The reference diagnostic risk level value is adjusted based on the second optimization factor to obtain the diagnostic risk level value.
[0109] In some possible implementations, in determining the diagnostic interruption severity value based on the first diagnostic interruption severity value and the second diagnostic interruption severity value, the above procedure includes instructions for performing the following steps: A reference diagnostic interruption severity value is determined based on the first diagnostic interruption severity value and the second diagnostic interruption severity value; The number of times the diagnostic operation was interrupted before the first preset time period was determined, and the historical diagnostic interruption count was obtained; Determine the adjustment coefficient corresponding to the number of historical diagnostic interruptions; The reference diagnostic interruption discrimination value is adjusted based on the adjustment coefficient to obtain the diagnostic interruption discrimination value.
[0110] In some possible implementations, when the communication link characteristic data includes handshake frame response success rate and average handshake frame transmission delay, the above procedure includes instructions for performing the following steps in determining the communication reliability value based on the communication link characteristic data: Determine the first communication reliability value corresponding to the handshake frame response success rate and the second communication reliability value corresponding to the average transmission delay of the handshake frame; A reference communication reliability value is determined based on the first communication reliability value and the second communication reliability value; Determine the correction coefficient corresponding to the diagnostic risk level value; The reference communication reliability value is corrected based on the correction coefficient to obtain the communication reliability value.
[0111] It should be understood that the electronic devices mentioned in this application may include smartphones (such as Android phones, iOS phones, Windows Phones, etc.), tablets, PDAs, laptops, mobile internet devices (MIDs) or wearable devices, servers, edge computing nodes, etc. The above-mentioned electronic devices are merely examples and not exhaustive, and include, but are not limited to, the electronic devices described above.
[0112] This application also provides a computer-readable storage medium storing a computer program that is executed by a processor to implement some or all of the steps of any of the methods described in the above method embodiments.
[0113] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments.
[0114] It should be noted that, for the sake of simplicity, the aforementioned methods are described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are optional, and the actions and modules involved are not necessarily essential to this application.
[0115] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0116] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.
[0117] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0118] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software program module.
[0119] If the integrated unit is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, 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. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0120] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage device, which may include: a flash drive, a read-only memory, a random access memory, a magnetic disk, or an optical disk, etc.
[0121] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The above description of the embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A vehicle diagnosis method characterized by, Applied to vehicle diagnostic equipment, the method includes: When performing diagnostic operations on a target vehicle, the diagnostic operation characteristic data of the vehicle diagnostic equipment is acquired within a first preset time period; the diagnostic operation characteristic data includes network status data and diagnostic risk characteristic data. A diagnostic interruption discrimination value is determined based on the diagnostic operation characteristic data; the diagnostic interruption discrimination value is used to characterize the degree to which the diagnostic operation on the target vehicle needs to be interrupted; When the diagnostic interruption discrimination level value is greater than or equal to the preset diagnostic interruption discrimination level threshold, the diagnostic operation is interrupted and a first diagnostic result is obtained; the time of interruption of the diagnostic operation is the end time of the first preset time period; Acquire communication link characteristic data between the target vehicle and the vehicle diagnostic equipment within a second preset time period; the start time of the second preset time period is the time when the diagnostic operation is interrupted. A communication reliability value is determined based on the communication link characteristic data; the communication reliability value is used to characterize the communication reliability between the target vehicle and the vehicle diagnostic equipment. When the communication reliability value is greater than the preset communication reliability threshold, the diagnostic operation is resumed until all diagnostic steps corresponding to the diagnostic operation are completed, and a second diagnostic result is obtained. The target diagnostic result is determined based on the first diagnostic result and the second diagnostic result.
2. The method of claim 1, wherein, The determination of the diagnostic interruption discrimination value based on the diagnostic operation characteristic data includes: A network state value is determined based on the network state data; the network state value is used to characterize the stability of the network state corresponding to the diagnostic operation. A diagnostic risk level value is determined based on the diagnostic risk characteristic data; the diagnostic risk level value is used to characterize the diagnostic risk level corresponding to the diagnostic operation. Determine a first diagnostic interruption severity value corresponding to the network status value and a second diagnostic interruption severity value corresponding to the diagnostic risk severity value; The diagnostic interruption severity value is determined based on the first diagnostic interruption severity value and the second diagnostic interruption severity value.
3. The method of claim 2, wherein, When the network status data includes message transmission rate and message transmission delay, determining the network status value based on the network status data includes: Determine a first network status value corresponding to the message transmission rate and a second network status value corresponding to the message transmission delay; A reference network state value is determined based on the first network state value and the second network state value; The frequency of communication link disconnection between the target vehicle and the vehicle diagnostic equipment within the first preset time period is obtained; Determine the first optimization factor corresponding to the frequency of communication link disconnection; The reference network state value is adjusted based on the first optimization factor to obtain the network state value.
4. The method of claim 3, wherein, When the diagnostic risk characteristic data includes the amount of diagnostic data loss and the number of core electronic control units corresponding to the diagnostic operation, determining the diagnostic risk level value based on the diagnostic risk characteristic data includes: Determine a first diagnostic risk level value corresponding to the amount of diagnostic data loss and a second diagnostic risk level value corresponding to the number of core electronic control units; A reference diagnostic risk level value is determined based on the first diagnostic risk level value and the second diagnostic risk level value; Determine the diagnostic safety level corresponding to the diagnostic operation; Determine a second optimization factor corresponding to the diagnostic safety level; The reference diagnostic risk level value is adjusted based on the second optimization factor to obtain the diagnostic risk level value.
5. The method of claim 4, wherein, Determining the diagnostic interruption severity value based on the first diagnostic interruption severity value and the second diagnostic interruption severity value includes: A reference diagnostic interruption severity value is determined based on the first diagnostic interruption severity value and the second diagnostic interruption severity value; The number of times the diagnostic operation was interrupted before the first preset time period was determined, and the historical diagnostic interruption count was obtained; Determine the adjustment coefficient corresponding to the number of historical diagnostic interruptions; The reference diagnostic interruption discrimination value is adjusted based on the adjustment coefficient to obtain the diagnostic interruption discrimination value.
6. The method of claim 5, wherein, When the communication link characteristic data includes handshake frame response success rate and handshake frame average transmission delay, determining the communication reliability value based on the communication link characteristic data includes: Determine the first communication reliability value corresponding to the success rate of the handshake frame response and the second communication reliability value corresponding to the average transmission delay of the handshake frame; A reference communication reliability value is determined based on the first communication reliability value and the second communication reliability value; Determine the correction coefficient corresponding to the diagnostic risk level value; The reference communication reliability value is corrected based on the correction coefficient to obtain the communication reliability value.
7. A vehicle diagnostic apparatus characterized by comprising: The device, used in vehicle diagnostic equipment, includes: an acquisition unit and a processing unit; The acquisition unit is used to acquire diagnostic operation feature data of the vehicle diagnostic equipment within a first preset time period when performing diagnostic operations on the target vehicle; the diagnostic operation feature data includes network status data and diagnostic risk feature data. The processing unit is used to determine a diagnostic interruption discrimination value based on the diagnostic operation feature data; the diagnostic interruption discrimination value is used to characterize the degree to which the diagnostic operation on the target vehicle needs to be interrupted. When the diagnostic interruption discrimination level value is greater than or equal to the preset diagnostic interruption discrimination level threshold, the diagnostic operation is interrupted and a first diagnostic result is obtained; the time of interruption of the diagnostic operation is the end time of the first preset time period; Acquire communication link characteristic data between the target vehicle and the vehicle diagnostic equipment within a second preset time period; the start time of the second preset time period is the time when the diagnostic operation is interrupted. A communication reliability value is determined based on the communication link characteristic data; the communication reliability value is used to characterize the communication reliability between the target vehicle and the vehicle diagnostic equipment. When the communication reliability value is greater than the preset communication reliability threshold, the diagnostic operation is resumed until all diagnostic steps corresponding to the diagnostic operation are completed, and a second diagnostic result is obtained. The target diagnostic result is determined based on the first diagnostic result and the second diagnostic result.
8. An electronic device, comprising: The method includes 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 one or more programs include instructions for performing the steps of the method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the method as described in any one of claims 1-6.
10. A computer program product, characterised in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-6.
