Method and device for acquiring voltage value of vehicle-mounted diagnostic system

By sending instructions to the car, scanning and analyzing the voltage value of the OBD pin, determining its stability and optimizing communication, it solves the problem of communication mismatch in car diagnosis and improves diagnosis efficiency and reliability.

CN118731473APending Publication Date: 2024-10-01THINKCAR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410901365.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In automotive diagnosis, failure to accurately obtain the electronic control unit (ECU) communication protocol and communication rate results in slow and inaccurate diagnostic scans.

Method used

By sending instructions to the vehicle, the OBD pin is continuously scanned to obtain the voltage value of the on-board diagnostic system, statistics are generated and a cluster of voltage values ​​is generated, compared with the standard range, the stability of the voltage value is determined, and communication efficiency is optimized based on the stable voltage value.

Benefits of technology

It ensures the acquisition of stable and reliable on-board diagnostic system voltage values, improves the data transmission reliability and diagnosis efficiency of fault diagnosis, and improves vehicle performance and driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118731473A_ABST
    Figure CN118731473A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for acquiring a voltage value of a vehicle-mounted diagnostic system, and relates to the technical field of automobile diagnos.The method comprises the following steps: connecting with a vehicle, and sending an instruction to the vehicle; and when the vehicle receives the instruction, continuously scanning the OBD pin according to the instruction to obtain a plurality of vehicle-mounted diagnostic system voltage values. According to the invention, the stable voltage value of the vehicle-mounted diagnostic system is obtained, and the voltage value of the vehicle-mounted diagnostic system is set as the voltage channel value for maintaining high-speed communication during fault diagnosis, so that the communication efficiency of the vehicle can be optimized according to the voltage channel value, and the reliability of data transmission during vehicle fault diagnosis is ensured. A solid foundation is provided for deeper vehicle diagnosis, and potential vehicle problems are identified and solved more accurately, so that the vehicle performance is improved and the driving safety is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile diagnosis, and in particular to a method and device for obtaining a voltage value of an on-board diagnosis system. Background Art

[0002] Voltage readings are one of the key parameters in the automotive diagnostic process. By carefully analyzing the voltage data, the type of communication protocol of the electronic control unit (ECU) can be inferred. Understanding how the ECU communicates is essential for a deep understanding of the vehicle's electronic architecture and performing accurate fault diagnosis.

[0003] In on-board diagnosis, when the communication protocol and communication rate of the electronic control unit (ECU) are unclear, the general processing method is to connect the diagnostic equipment to the vehicle based on the known vehicle model information, scan the OBD pin, obtain the on-board diagnostic system voltage data value, and diagnose the vehicle's on-board diagnostic system based on the on-board diagnostic system voltage data value, which will cause slow scanning and inaccurate scanning. Summary of the invention

[0004] In order to solve the defects in the prior art, the present invention provides a method, device, electronic device and storage medium for obtaining a voltage value of an on-board diagnostic system.

[0005] The technical document provided by the present invention is a method for obtaining a voltage value of an on-board diagnostic system, which is applied to a diagnostic device, and its improvement lies in that it includes:

[0006] Connecting with a vehicle and sending instructions to the vehicle;

[0007] When the vehicle receives the instruction, it continuously scans the OBD pin according to the instruction to obtain multiple on-board diagnostic system voltage values.

[0008] As an improvement of the above technical solution, the method further includes:

[0009] Count the voltage values ​​of the on-board diagnostic system obtained within the T time period;

[0010] The on-board diagnostic system voltage value set obtained within the time period T is used to generate an on-board diagnostic system voltage value cluster Q, wherein the on-board diagnostic system voltage value cluster Q includes a voltage upper limit value and a voltage lower limit value.

[0011] As a further improvement of the above technical solution, the method further includes:

[0012] A rectangular coordinate system is established with time T as the horizontal axis and the on-board diagnostic system voltage value cluster Q as the vertical axis, and the on-board diagnostic system voltage value cluster Q is introduced and compared with the standard on-board diagnostic system voltage value cluster S to analyze the continuous stability and duration of the on-board diagnostic system voltage value cluster, wherein the standard on-board diagnostic system voltage value cluster S includes a standard voltage upper limit value and a standard voltage lower limit value.

[0013] As a further improvement of the above technical solution, it is characterized in that the method further comprises:

[0014] If the on-board diagnostic system voltage value cluster Q is within the range of the standard on-board diagnostic system voltage value cluster S, the on-board diagnostic system voltage value cluster Q is continuously stable;

[0015] When the on-board diagnostic system voltage value cluster Q exceeds the standard on-board diagnostic system voltage value cluster S range;

[0016] If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both within the standard voltage difference range, then the on-board diagnostic system voltage value cluster Q is continuously stable;

[0017] If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both not within the standard voltage difference range, then the on-board diagnostic system voltage value cluster Q is unstable and the on-board diagnostic system voltage value cluster Q is discarded.

[0018] As a further improvement of the above technical solution, the T time period includes T1, T2, T3, ..., Tn time periods, wherein n≠0.

[0019] As a further improvement of the above technical solution, the on-board diagnostic system voltage value cluster Q includes an on-board diagnostic system voltage value cluster Q1, an on-board diagnostic system voltage value cluster Q2, an on-board diagnostic system voltage value cluster Q3, ..., an on-board diagnostic system voltage value cluster Qm, where m≠0.

[0020] The present application also provides a device for obtaining a voltage value of an on-board diagnostic system, the improvement of which is that it includes:

[0021] A first processing module, connected to the vehicle, sending instructions to the vehicle;

[0022] The second processing module, when the vehicle receives the instruction, continuously scans the OBD pin according to the instruction to obtain multiple on-board diagnostic system voltage values.

[0023] The present application also discloses an electronic device, which includes a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call the computer program so that the electronic device executes the steps of a method for obtaining a voltage value of an on-board diagnostic system as described above.

[0024] The present application also discloses a computer-readable storage medium, including instructions. When the instructions are executed on an electronic device, the electronic device executes the steps of the method for obtaining a voltage value of an on-board diagnostic system as described above.

[0025] The present application also discloses a computer program product, which includes computer instructions. When the computer instructions are run on an electronic device, the electronic device executes the steps of the method for obtaining the voltage value of an on-board diagnostic system as described above.

[0026] Beneficial effects: The present application obtains a stable on-board diagnostic system voltage value. When performing fault diagnosis, the on-board diagnostic system voltage value is set to maintain a high-speed communication voltage channel value, so that the vehicle's communication efficiency can be optimized according to the voltage channel value, ensuring the reliability of data transmission when performing vehicle fault diagnosis, providing a solid foundation for deeper vehicle diagnosis, and more accurately identifying and solving potential vehicle problems, thereby improving vehicle performance and ensuring driving safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of a flow chart of a method for obtaining a voltage value of an on-board diagnostic system according to the present invention;

[0028] Figure 2 A schematic diagram of a flow chart of a method for obtaining a voltage value of an on-board diagnostic system according to the present invention;

[0029] Figure 3 A schematic diagram of the structure of a device for obtaining a voltage value of an on-board diagnostic system according to the present invention;

[0030] Figure 4 It is a schematic diagram of the structure of the electronic device of the present invention. DETAILED DESCRIPTION

[0031] In order to facilitate the understanding of the present invention, the present invention is described in more detail below in conjunction with the accompanying drawings and specific embodiments. Preferred embodiments of the present invention are provided in the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described in this specification. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.

[0032] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "fixed", "integrally formed", "left", "right" and similar expressions used in this specification are for illustrative purposes only. In the drawings, units with similar structures are marked with the same reference numerals.

[0033] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0034] The present invention will be described in detail below in conjunction with the accompanying drawings.

[0035] Embodiment 1:

[0036] See also Figure 1 The present application discloses a method for obtaining a voltage value of an on-board diagnostic system, which is applied to a diagnostic device, including:

[0037] S1: Connecting with a vehicle and sending instructions to the vehicle;

[0038] S2: When the vehicle receives the instruction, it continuously scans the OBD pin according to the instruction to obtain multiple on-board diagnostic system voltage values.

[0039] In the above embodiment, for step S1 and step S2, in the field of automobile diagnosis, after the diagnostic device is connected to the vehicle, a communication technology is used to send instructions to the on-board diagnostic system through Bluetooth or a serial port. When the vehicle receives the instruction, the OBD pin is continuously scanned according to the instruction to obtain multiple on-board diagnostic system voltage values. This process ensures seamless connection with the vehicle diagnostic system and can accurately obtain the on-board diagnostic system voltage readings. By obtaining the stable voltage value of the OBD pin, the present application can be set according to the stable voltage value, thereby improving the rate mismatch problem, ensuring the communication efficiency of the vehicle, and reducing the diagnosis time.

[0040] For further information, please refer to Figure 2 , the method further comprises:

[0041] S3: Count the voltage values ​​of the on-board diagnostic system obtained within the T time period;

[0042] S4: generating an on-board diagnostic system voltage value cluster Q from the on-board diagnostic system voltage value set obtained within the time period T, wherein the on-board diagnostic system voltage value cluster Q includes a voltage upper limit value and a voltage lower limit value.

[0043] In the above embodiment, when the OBD pin is scanned, multiple on-board diagnostic system voltage values ​​are continuously received, and the on-board diagnostic system voltage values ​​continuously collected within a time period T are intercepted, and the multiple on-board diagnostic system voltage values ​​of this time period T are aggregated to generate an on-board diagnostic system voltage value cluster Q. The present application aggregates multiple on-board diagnostic system voltage values ​​to generate an on-board diagnostic system voltage value cluster Q, and can perform stability analysis on the multiple on-board diagnostic system voltage value clusters Q to obtain a stable on-board diagnostic system voltage value cluster Q.

[0044] Furthermore, the method further comprises:

[0045] S5: establishing a rectangular coordinate system with time T as the horizontal axis and the on-board diagnostic system voltage value cluster Q as the vertical axis, introducing the on-board diagnostic system voltage value cluster Q and the standard on-board diagnostic system voltage value cluster S for comparison, so as to analyze the continuous stability and duration of the on-board diagnostic system voltage value cluster;

[0046] S6: If the on-board diagnostic system voltage value cluster Q is within the range of the standard on-board diagnostic system voltage value cluster S, the on-board diagnostic system voltage value cluster Q continues to be stable;

[0047] S7: when the on-board diagnostic system voltage value cluster Q exceeds the standard on-board diagnostic system voltage value cluster S range;

[0048] S8: If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both within the standard voltage difference range, then the on-board diagnostic system voltage value cluster Q is continuously stable;

[0049] S9: If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both not within the standard voltage difference range, then the on-board diagnostic system voltage value cluster Q is unstable and the on-board diagnostic system voltage value cluster Q is discarded.

[0050] In the above embodiment, the standard on-board diagnostic system voltage value cluster S includes a standard voltage upper limit value and a standard voltage lower limit value, and the T time period includes T1, T2, T3, ..., Tn time periods, where n≠0. The on-board diagnostic system voltage value cluster Q includes an on-board diagnostic system voltage value cluster Q1, an on-board diagnostic system voltage value cluster Q2, an on-board diagnostic system voltage value cluster Q3, ..., an on-board diagnostic system voltage value cluster Qm, where m≠0.

[0051] Among them, the T1 time period corresponds to the on-board diagnostic system voltage value cluster Q1, the T2 time period corresponds to the on-board diagnostic system voltage value cluster Q2, the T3 time period corresponds to the on-board diagnostic system voltage value cluster Q2, ..., and the Tn time period corresponds to the on-board diagnostic system voltage value cluster Qm.

[0052] In the T1 time period, the collected on-board diagnostic system voltage value cluster Q1 is compared with the standard on-board diagnostic system voltage value cluster S. In the T2 time period, the collected on-board diagnostic system voltage value cluster Q2 is compared with the standard on-board diagnostic system voltage value cluster S. In the T3 time period, the collected on-board diagnostic system voltage value cluster Q3 is compared with the standard on-board diagnostic system voltage value cluster S. In the Tn time period, the collected on-board diagnostic system voltage value cluster Qm is compared with the standard on-board diagnostic system voltage value cluster S:

[0053] If the on-board diagnostic system voltage value cluster Q1 is within the standard on-board diagnostic system voltage value cluster S, the on-board diagnostic system voltage value cluster Q1 is continuously stable;

[0054] When the on-board diagnostic system voltage value cluster Q1 exceeds the standard on-board diagnostic system voltage value cluster S range;

[0055] If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both within the standard voltage difference range, the on-board diagnostic system voltage value cluster Q1 is continuously stable;

[0056] If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both not within the standard voltage difference range, then the on-board diagnostic system voltage value cluster Q1 is unstable and the on-board diagnostic system voltage value cluster Q1 is discarded.

[0057] Similarly, if the on-board diagnostic system voltage value cluster Q2 is within the range of the standard on-board diagnostic system voltage value cluster S, the on-board diagnostic system voltage value cluster Q2 is continuously stable;

[0058] When the on-board diagnostic system voltage value cluster Q2 exceeds the standard on-board diagnostic system voltage value cluster S range;

[0059] If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both within the standard voltage difference range, the on-board diagnostic system voltage value cluster Q2 is continuously stable;

[0060] If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both not within the standard voltage difference range, then the on-board diagnostic system voltage value cluster Q2 is unstable and the on-board diagnostic system voltage value cluster Q2 is discarded.

[0061] Furthermore, if the on-board diagnostic system voltage value cluster Q3 is within the standard on-board diagnostic system voltage value cluster S, the on-board diagnostic system voltage value cluster Q3 is continuously stable;

[0062] When the on-board diagnostic system voltage value cluster Q3 exceeds the standard on-board diagnostic system voltage value cluster S range;

[0063] If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both within the standard voltage difference range, the on-board diagnostic system voltage value cluster Q3 continues to be stable;

[0064] If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both not within the standard voltage difference range, then the on-board diagnostic system voltage value cluster Q3 is unstable and the on-board diagnostic system voltage value cluster Q3 is discarded.

[0065] And so on, until the on-board diagnostic system voltage value cluster Qm, if the on-board diagnostic system voltage value cluster Qm is within the range of the standard on-board diagnostic system voltage value cluster S, then the on-board diagnostic system voltage value cluster Qm is continuously stable;

[0066] When the on-board diagnostic system voltage value cluster Qm exceeds the standard on-board diagnostic system voltage value cluster S range;

[0067] If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both within the standard voltage difference range, then the on-board diagnostic system voltage value cluster Qm is continuously stable;

[0068] If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both not within the standard voltage difference range, then the on-board diagnostic system voltage value cluster Qm is unstable and the on-board diagnostic system voltage value cluster Qm is discarded.

[0069] In the above embodiment, when the comparison results of the above-mentioned on-board diagnostic system voltage value cluster Q (including Q1, Q2, Q3, ..., Qm) and the on-board diagnostic system standard voltage value cluster S are collected, the results can be analyzed to evaluate the fluctuation and noise of the OBD pin voltage data. If the on-board diagnostic system voltage data cluster Q is unstable, the fluctuation and noise of the OBD pin voltage data will be too large, which will cause the on-board diagnostic system voltage data cluster Q corresponding to the excessive fluctuation and noise of the OBD pin voltage data to be discarded, and the qualified on-board diagnostic system voltage data cluster Q is saved for more detailed analysis. The present application can perform stability detection on the on-board diagnostic system voltage value within the T time period by obtaining a qualified on-board diagnostic system voltage data cluster Q, and eliminate unqualified ones to obtain a stable on-board diagnostic system voltage value. Before performing fault diagnosis, the on-board diagnostic system voltage value is set to maintain a high-speed communication voltage channel value, so that the communication efficiency of the vehicle can be optimized according to the voltage channel value, and the reliability of data transmission during vehicle fault diagnosis can be ensured.

[0070] In addition, the on-board diagnostic system voltage value includes a first on-board diagnostic system voltage value and a second on-board diagnostic system voltage value, wherein the first on-board diagnostic system voltage value includes a first voltage upper limit value and a first voltage lower limit value, and the second on-board diagnostic system voltage value includes a second voltage upper limit value and a second voltage lower limit value.

[0071] Finally, this application also includes:

[0072] S10: When the first on-board diagnostic system voltage value is within the standard on-board diagnostic system voltage value cluster S, or when the first on-board diagnostic system voltage value exceeds the standard on-board diagnostic system voltage value cluster S, and the difference between the first voltage upper limit value and the standard voltage upper limit value, and the difference between the first voltage upper limit value and the standard on-board diagnostic system voltage value, are both within the standard voltage difference range, then the first on-board diagnostic system voltage value is stable.

[0073] S11: When the second OBD system voltage value is within the standard OBD system voltage value cluster S, the second OBD system voltage value is stable.

[0074] The multiple first on-board diagnostic system voltage values ​​collected within the T time period are grouped into a first on-board diagnostic system voltage value cluster q. Similarly, the first on-board diagnostic system voltage value cluster q1 within the T1 time period is obtained. Similarly, the first on-board diagnostic system voltage value cluster q2 within the T2 time period is obtained. Similarly, the first on-board diagnostic system voltage value cluster q3 within the T3 time period is obtained. Similarly, the first on-board diagnostic system voltage value cluster qm within the Tn time period is obtained. Therefore, more specifically: within the T1 time period, the collected first on-board diagnostic system voltage value cluster q1 is compared with the standard on-board diagnostic system voltage value cluster S. Within the T2 time period, the collected first on-board diagnostic system voltage value cluster q2 is compared with the standard on-board diagnostic system voltage value cluster S. Within the T3 time period, the collected first on-board diagnostic system voltage value cluster q3 is compared with the standard on-board diagnostic system voltage value cluster S. Within the Tn time period, the collected first on-board diagnostic system voltage value cluster qm is compared with the standard on-board diagnostic system voltage value cluster S:

[0075] If the first on-board diagnostic system voltage value cluster q1 is within the range of the standard on-board diagnostic system voltage value cluster S, the first on-board diagnostic system voltage value cluster q1 is continuously stable;

[0076] When the first on-board diagnostic system voltage value cluster q1 exceeds the standard on-board diagnostic system voltage value cluster S range;

[0077] If the difference between the voltage upper limit value of the first on-board diagnostic system voltage value cluster q1 and the standard voltage upper limit value, and the difference between the voltage lower limit value of the first on-board diagnostic system voltage value cluster q1 and the standard voltage lower limit value are both within the standard voltage difference range, then the first on-board diagnostic system voltage value cluster q1 is continuously stable;

[0078] If the difference between the voltage upper limit value of the first on-board diagnostic system voltage value cluster q1 and the standard voltage upper limit value, and the difference between the voltage lower limit value of the first on-board diagnostic system voltage value cluster q1 and the standard voltage lower limit value are both not within the standard voltage difference range, then the first on-board diagnostic system voltage value cluster q1 is unstable and the first on-board diagnostic system voltage value cluster q1 is discarded.

[0079] Similarly, if the first on-board diagnostic system voltage value cluster q2 is within the range of the standard on-board diagnostic system voltage value cluster S, the first on-board diagnostic system voltage value cluster q2 is continuously stable;

[0080] When the first on-board diagnostic system voltage value cluster q2 exceeds the standard on-board diagnostic system voltage value cluster S range;

[0081] If the difference between the voltage upper limit value of the first on-board diagnostic system voltage value cluster q2 and the standard voltage upper limit value, and the difference between the voltage lower limit value of the first on-board diagnostic system voltage value cluster q2 and the standard voltage lower limit value are both within the standard voltage difference range, then the first on-board diagnostic system voltage value cluster q2 is continuously stable;

[0082] If the difference between the voltage upper limit value of the first on-board diagnostic system voltage value cluster q2 and the standard voltage upper limit value, and the difference between the voltage lower limit value of the first on-board diagnostic system voltage value cluster q2 and the standard voltage lower limit value are both not within the standard voltage difference range, then the first on-board diagnostic system voltage value cluster q2 is unstable and the first on-board diagnostic system voltage value cluster q2 is discarded.

[0083] Furthermore, if the first on-board diagnostic system voltage value cluster q3 is within the standard on-board diagnostic system voltage value cluster S, the first on-board diagnostic system voltage value cluster q3 is continuously stable;

[0084] When the first on-board diagnostic system voltage value cluster q3 exceeds the standard on-board diagnostic system voltage value cluster S range;

[0085] If the difference between the voltage upper limit value of the first on-board diagnostic system voltage value cluster q3 and the standard voltage upper limit value, and the difference between the voltage lower limit value of the first on-board diagnostic system voltage value cluster q3 and the standard voltage lower limit value are both within the standard voltage difference range, then the first on-board diagnostic system voltage value cluster q3 is continuously stable;

[0086] If the difference between the voltage upper limit value of the first on-board diagnostic system voltage value cluster q3 and the standard voltage upper limit value, and the difference between the voltage lower limit value of the first on-board diagnostic system voltage value cluster q3 and the standard voltage lower limit value are both not within the standard voltage difference range, then the on-board diagnostic system voltage value cluster q3 is unstable and the first on-board diagnostic system voltage value cluster q3 is discarded.

[0087] And so on, until the first on-board diagnostic system voltage value cluster qm, if the first on-board diagnostic system voltage value cluster qm is within the range of the standard on-board diagnostic system voltage value cluster S, then the first on-board diagnostic system voltage value cluster qm is continuously stable;

[0088] When the first on-board diagnostic system voltage value cluster qm exceeds the standard on-board diagnostic system voltage value cluster S range;

[0089] If the difference between the voltage upper limit value of the first on-board diagnostic system voltage value cluster qm and the standard voltage upper limit value, and the difference between the voltage lower limit value of the first on-board diagnostic system voltage value cluster qm and the standard voltage lower limit value are both within the standard voltage difference range, then the first on-board diagnostic system voltage value cluster qm is continuously stable;

[0090] If the difference between the voltage upper limit value of the first on-board diagnostic system voltage value cluster qm and the standard voltage upper limit value, and the difference between the voltage lower limit value of the first on-board diagnostic system voltage value cluster qm and the standard voltage lower limit value are both not within the standard voltage difference range, then the first on-board diagnostic system voltage value cluster qm is unstable and the first on-board diagnostic system voltage value cluster qm is discarded.

[0091] Similarly, the above scheme is executed on the voltage value of the second on-board diagnostic system to determine the stability of the voltage value of the second on-board diagnostic system. The implementation process is consistent with the above and will not be repeated here.

[0092] In the above embodiment, the standard voltage upper limit is 2.7V, and the standard voltage lower limit is 2.5V. Therefore, the voltage range of the standard on-board diagnostic system voltage value cluster S is 2.5V-2.7V. In addition, the voltage range of the standard on-board diagnostic system voltage value cluster S can also be a voltage value. For example, the standard on-board diagnostic system voltage value cluster S is 5V or 12V. The second on-board diagnostic system voltage value of the present application is equal to 12V or equal to 5V, which can be regarded as a qualified on-board diagnostic system voltage value. When performing fault diagnosis, in order to improve the diagnosis speed, the first on-board diagnostic system voltage value is set to the voltage value with the highest frequency in the voltage range of 2.5V-2.7V, and this voltage value is set as the voltage value during diagnosis to improve communication efficiency. Similarly, the second on-board diagnostic system voltage value is set to the voltage value with the highest frequency of 5V or 12V voltage, and this voltage value is set as the voltage value during diagnosis to improve communication efficiency. By obtaining the stable voltage value of the OBD pin, the present application can be set according to the stable voltage value, improve the problem of rate mismatch, ensure the communication efficiency of the vehicle, and reduce the diagnosis time.

[0093] Embodiment 2:

[0094] See also Figure 3 The present application discloses a device for obtaining a voltage value of an on-board diagnostic system, comprising:

[0095] A first processing module 100 is connected to the vehicle and sends instructions to the vehicle;

[0096] The second processing module 200, when the vehicle receives the instruction, continuously scans the OBD pin according to the instruction to obtain a plurality of on-board diagnostic system voltage values.

[0097] In the field of automobile diagnosis, after the diagnostic device is connected to the vehicle through the first processing module 100, the second processing module 200 uses communication technology to send instructions to the on-board diagnostic system through Bluetooth or a serial port. When the vehicle receives the instruction, it continuously scans the OBD pin according to the instruction to obtain multiple on-board diagnostic system voltage values. This process ensures seamless connection with the vehicle diagnostic system and can accurately obtain the on-board diagnostic system voltage readings. By obtaining the stable voltage value of the OBD pin, the present application can be set according to the stable voltage value, improve the rate mismatch problem, ensure the communication efficiency of the vehicle, and reduce the diagnosis time.

[0098] The implementation process of the device for obtaining the voltage value of the vehicle diagnostic system of the present application is consistent with the above-mentioned embodiment 1, and will not be repeated here.

[0099] Embodiment three:

[0100] See also Figure 4 The present application also discloses an electronic device, which includes a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call the computer program so that the electronic device executes the steps of a method for obtaining a voltage value of an on-board diagnostic system as described above.

[0101] The present application also discloses a computer-readable storage medium, including instructions. When the instructions are executed on an electronic device, the electronic device executes the steps of the method for obtaining a voltage value of an on-board diagnostic system as described above.

[0102] The present application also discloses a computer program product, which includes computer instructions. When the computer instructions are run on an electronic device, the electronic device executes the steps of the method for obtaining the voltage value of an on-board diagnostic system as described above.

[0103] In the embodiments provided in the present application, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, and units with the same function may be combined into one unit. For example, multiple units or components may be combined or integrated into another diagnostic system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be electrical, mechanical or other forms of connection.

[0104] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0105] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0106] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable an electronic device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only processor (ROM, Read-Only Memory), a disk or an optical disk.

[0107] It should be noted that the above-mentioned technical features are further combined with each other to form various embodiments not listed above, which are all deemed to be within the scope of the present invention; and, for ordinary technicians in this field, they can be improved or transformed according to the above description, and all these improvements and transformations should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for obtaining a voltage value of an on-board diagnostic system, applied to a diagnostic device, characterized in that: include: Connecting with a vehicle and sending instructions to the vehicle; When the vehicle receives the instruction, it continuously scans the OBD pin according to the instruction to obtain multiple on-board diagnostic system voltage values.

2. A method for obtaining a voltage value of an on-board diagnostic system according to claim 1, characterized in that: The method further comprises: Count the voltage values ​​of the on-board diagnostic system obtained within the T time period; The on-board diagnostic system voltage value set obtained within the time period T is used to generate an on-board diagnostic system voltage value cluster Q, wherein the on-board diagnostic system voltage value cluster Q includes a voltage upper limit value and a voltage lower limit value.

3. A method for obtaining a voltage value of an on-board diagnostic system according to claim 2, characterized in that: The method further comprises: A rectangular coordinate system is established with time T as the horizontal axis and the on-board diagnostic system voltage value cluster Q as the vertical axis, and the on-board diagnostic system voltage value cluster Q is introduced and compared with the standard on-board diagnostic system voltage value cluster S to analyze the continuous stability and duration of the on-board diagnostic system voltage value cluster, wherein the standard on-board diagnostic system voltage value cluster S includes a standard voltage upper limit value and a standard voltage lower limit value.

4. A method for obtaining a voltage value of an on-board diagnostic system according to claim 3, characterized in that: The method further comprises: If the on-board diagnostic system voltage value cluster Q is within the range of the standard on-board diagnostic system voltage value cluster S, the on-board diagnostic system voltage value cluster Q is continuously stable; When the on-board diagnostic system voltage value cluster Q exceeds the standard on-board diagnostic system voltage value cluster S range; If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both within the standard voltage difference range, then the on-board diagnostic system voltage value cluster Q is continuously stable; If the difference between the voltage upper limit value and the standard voltage upper limit value, and the difference between the voltage lower limit value and the standard voltage lower limit value are both not within the standard voltage difference range, then the on-board diagnostic system voltage value cluster Q is unstable and the on-board diagnostic system voltage value cluster Q is discarded.

5. A method for obtaining a voltage value of an on-board diagnostic system according to any one of claims 2 to 4, characterized in that: The T time period includes T1, T2, T3, ..., Tn time periods, wherein n≠0.

6. A method for obtaining a voltage value of an on-board diagnostic system according to any one of claims 2 to 4, characterized in that: The on-board diagnostic system voltage value cluster Q includes an on-board diagnostic system voltage value cluster Q1, an on-board diagnostic system voltage value cluster Q2, an on-board diagnostic system voltage value cluster Q3, . . . , an on-board diagnostic system voltage value cluster Qm, wherein m≠0.

7. A device for obtaining a voltage value of an on-board diagnostic system, characterized in that: include: A first processing module, connected to the vehicle, sending instructions to the vehicle; The second processing module, when the vehicle receives the instruction, continuously scans the OBD pin according to the instruction to obtain multiple on-board diagnostic system voltage values.

8. An electronic device, comprising a memory and a processor, wherein: The memory is used to store a computer program, and the processor is used to call the computer program, characterized in that the electronic device executes the steps of a method for obtaining a voltage value of an on-board diagnostic system according to any one of claims 1 to 6.

9. A computer-readable storage medium comprising instructions, characterized in that: When the instruction is executed on an electronic device, the electronic device executes the steps of a method for obtaining a voltage value of an on-board diagnostic system according to any one of claims 1 to 6.

10. A computer program product, characterized in that The computer program product includes computer instructions. When the computer instructions are run on an electronic device, the electronic device executes the steps of a method for obtaining a voltage value of an on-board diagnostic system according to any one of claims 1 to 6.