OBD pin voltage detection method and device

Through the OBD pin voltage detection method, switch module control and voltage dividing technology are used to solve the problem of inconsistent pin numbers of different models of vehicles, achieve efficient and accurate vehicle diagnosis, simplify the operation process and save diagnostic resources.

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

Patent Information

Application Number
CN202410945964.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Due to the inconsistency of specific pin numbers on the OBD sockets of different models of vehicles, existing vehicle detection methods make operations complex and inefficient, requiring manual detection of pin numbers for connection and diagnosis.

Method used

Using the OBD pin voltage detection method, by setting the switch module to connect to the OBD pin, control the pin on and off status, adjust the voltage division, confirm the effective voltage division value to determine the target pin, and communicate and diagnosis.

Benefits of technology

It improves detection accuracy and speed, reduces unnecessary circuit power consumption, saves diagnostic interfaces, and simplifies the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118777741A_ABST
    Figure CN118777741A_ABST
Patent Text Reader

Abstract

The invention discloses an OBD pin voltage detection method and device, relates to the technical field of automobile diagnosis, is applied to diagnosis equipment, and comprises the following steps: connecting with at least one OBD pin, and controlling the OBD pin to switch between an on state and an off state; carrying out partial voltage adjustment on the voltage values of the plurality of OBD pins to obtain a plurality of partial voltage values; determining an effective partial voltage value according to the plurality of partial voltage values; and determining a target OBD pin according to the divided voltage value, and performing communication and diagnosis on the target OBD pin. According to the application, the output voltage of each OBD pin can be controlled according to the switch module, voltage division is carried out to improve the input impedance, the output current is reduced, the reduced voltage value is detected, and the detection precision can be further improved. In addition, detection is carried out according to the reduced voltage value, the corresponding OBD pin can be rapidly obtained, the diagnosis process is carried out according to the effective OBD pin, fault diagnosis does not need to be carried out on the unqualified OBD pin, and the diagnosis speed is increased.
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 an OBD pin voltage detection method and device. Background Art

[0002] In the prior art, the vehicle is usually tested through an on-board diagnostics system (OBD), including connecting an OBD detection device to a specific pin with a specific function definition on the vehicle's OBD socket, reading the detection information through the specific pin, and realizing vehicle detection. In this vehicle detection method, since the pin numbers of the specific pins on the vehicle's OBD socket are different for different models of vehicles, it is often necessary to manually perform pin detection in advance to find the current specific pins, and then perform the corresponding pin connection before accurate vehicle detection can be performed. However, the above-mentioned vehicle detection method is complicated and cumbersome to operate, and has high requirements on operators, resulting in low efficiency of existing vehicle detection.

[0003] Therefore, it is necessary to use intelligent diagnostic equipment to find the target pin and communicate only with the target pin in order to perform fault diagnosis selectively. Summary of the invention

[0004] In order to solve the defects in the prior art, the present invention provides an OBD pin voltage detection method and device.

[0005] The technical document provided by the present invention discloses an OBD pin voltage detection method, which is applied to diagnostic equipment, and its improvement lies in that it includes:

[0006] connected to at least one OBD pin, controlling the OBD pin to switch between an on state and an off state;

[0007] Performing voltage division adjustment on the voltage values ​​of the plurality of OBD pins to obtain a plurality of divided voltage values;

[0008] confirming an effective divided voltage value according to the plurality of divided voltage values;

[0009] The target OBD pin is confirmed according to the divided voltage value, and communication and diagnosis are performed on the target OBD pin.

[0010] As an improvement of the above technical solution, the method for adjusting the voltage values ​​of multiple OBD pins by voltage division includes:

[0011] A plurality of switch modules are provided, and the switch modules include at least one switch sub-module, and each switch sub-module is ensured to have m inputs and n outputs, wherein m≠0, n≠0, and m>n;

[0012] The m inputs of the switch submodule are connected to a plurality of OBD pins respectively, and voltage is outputted through n inputs to obtain a plurality of voltage values.

[0013] As a further improvement of the above technical solution, the method also includes dividing the voltage values ​​of the multiple n outputs to obtain multiple divided voltage values.

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

[0015] Get multiple divided voltage values;

[0016] Comparing the plurality of divided voltage values ​​with the standard voltage value respectively;

[0017] If the divided voltage value is equal to the standard voltage value, the divided voltage value is taken as the effective divided voltage value.

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

[0019] Analyzing the effective divided voltage value;

[0020] Confirm the characteristics of the effective divided voltage value;

[0021] The corresponding OBD pin is obtained according to the feature.

[0022] The present application also provides an OBD pin voltage detection device, the improvement of which is that it includes:

[0023] A switching module, the switching module is used to connect to at least one OBD pin, control the OBD pin to switch between an on state and an off state, and maintain the balance of the CAN bus;

[0024] A voltage dividing module, the voltage dividing module is used to divide and adjust the voltage values ​​of multiple OBD pins to obtain multiple divided voltage values;

[0025] A detection module, the detection module is used to confirm a valid divided voltage value according to the plurality of divided voltage values;

[0026] A diagnostic module is used to confirm the target OBD pin according to the divided voltage value, and to communicate and diagnose the target OBD pin.

[0027] As a further improvement of the above technical solution, the device further includes:

[0028] A processing module, the processing module is used to set a plurality of switch modules, and the switch module includes at least one switch sub-module, ensuring that each switch sub-module has m inputs and n outputs, wherein m≠0, n≠0, and m>n;

[0029] The output module is used to connect the m inputs of the switch submodule to multiple OBD pins respectively, and output voltage through n inputs to obtain multiple voltage values.

[0030] 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 an OBD pin voltage detection method as described above.

[0031] The present application also discloses a computer-readable storage medium, comprising instructions. When the instructions are executed on an electronic device, the electronic device executes the steps of an OBD pin voltage detection method as described above.

[0032] 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 OBD pin voltage detection method as described above.

[0033] Beneficial effects: The present application can control the output voltage of each OBD pin according to the switch module, divide the voltage to increase the input impedance, reduce the output current, and detect the reduced voltage value, which can further improve the detection accuracy. And according to the reduced voltage value, the corresponding OBD pin can be quickly obtained, and the diagnosis process is performed according to the valid OBD pin, and there is no need to perform fault diagnosis on the unqualified OBD pin again, thereby improving the diagnosis speed. Moreover, when the valid OBD pin is confirmed, during the fault diagnosis process, the invalid circuit can be disconnected through the switch module to avoid unnecessary power consumption, save the diagnostic interface, and improve the diagnosis speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A schematic diagram of a flow chart of an OBD pin voltage detection method of the present invention;

[0035] Figure 2 A schematic diagram of a flow chart of an OBD pin voltage detection method of the present invention;

[0036] Figure 3 A schematic diagram of a flow chart of an OBD pin voltage detection method of the present invention;

[0037] Figure 4 A schematic diagram of a flow chart of an OBD pin voltage detection method of the present invention;

[0038] Figure 5 A schematic diagram of a flow chart of an OBD pin voltage detection method of the present invention;

[0039] Figure 2A A schematic diagram of a circuit for detecting a voltage on an OBD pin of the present invention;

[0040] Figure 2B A schematic diagram of a circuit for detecting a voltage on an OBD pin of the present invention;

[0041] Figure 2C A switch control table for simulating a switch module of the present invention;

[0042] Figure 3A A schematic diagram of a circuit for detecting a voltage on an OBD pin of the present invention;

[0043] Figure 3B A schematic diagram of a circuit for detecting a voltage on an OBD pin of the present invention;

[0044] Figure 3C A schematic diagram of a circuit for detecting a voltage on an OBD pin of the present invention;

[0045] Figure 3D A schematic diagram of a circuit for detecting a voltage on an OBD pin of the present invention;

[0046] As shown in the figure: 100, switching module, 200, voltage divider module, 300, detection module, 400, diagnosis module, 500, processing module, 600 output module. DETAILED DESCRIPTION

[0047] 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.

[0048] 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.

[0049] 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.

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

[0051] In order to improve the diagnosis speed, an OBD pin voltage detection method and device of the present application can control the output voltage of each OBD pin according to the switch module, and further divide the voltage to increase the input impedance, reduce the output current, and further improve the detection accuracy.

[0052] Embodiment 1:

[0053] See also Figure 1 , the present application discloses an OBD pin voltage detection method, which is applied to diagnostic equipment, comprising:

[0054] Step S1: connecting to at least one OBD pin and controlling the OBD pin to switch between an on state and an off state;

[0055] Step S2: dividing and adjusting the voltage values ​​of the multiple OBD pins to obtain multiple divided voltage values;

[0056] Step S3: confirming an effective divided voltage value according to the plurality of divided voltage values;

[0057] Step S4: confirming the target OBD pin according to the divided voltage value, and performing communication and diagnosis on the target OBD pin.

[0058] In the above embodiment, for steps S1-S4, the diagnostic device is provided with a plurality of switch modules, and the plurality of switch modules are connected to a plurality of OBD pins, the OBD pins are controlled to switch between the on and off states, the voltage values ​​of the plurality of OBD pins are divided and adjusted to obtain a plurality of said divided voltage values, the effective divided voltage value is confirmed according to the plurality of said divided voltage values, the target OBD pin is confirmed according to the divided voltage value, and the target OBD pin is communicated and diagnosed. The present application controls the output voltage of each OBD pin through the switch module, and further divides the voltage, improves the input impedance, reduces the output current, and further improves the detection accuracy. After the voltage value coming out of the OBD pin of the present application is processed by voltage division, multiple divided voltage values ​​that can be directly detected can be detected, and multiple divided voltage values ​​can be obtained, and the multiple divided voltage values ​​can be compared with the standard voltage value respectively; if the divided voltage value is equal to the standard voltage value, the divided voltage value is used as the effective divided voltage value; or, when the divided voltage value is near the end point of the standard voltage value and the error value can be relatively negligible, the effective divided voltage value is analyzed; the characteristics of the effective divided voltage value are confirmed; and the corresponding OBD pin is obtained according to the characteristics. When the effective OBD pin is confirmed, the invalid circuit can be disconnected through the switch module during the fault diagnosis process, so as to avoid unnecessary power consumption, save the diagnostic interface, and improve the diagnostic speed.

[0059] See also Figure 2 The method for adjusting the voltage values ​​of multiple OBD pins by voltage division includes:

[0060] Step S5: setting a plurality of switch modules, wherein the switch module includes at least one switch sub-module, and ensuring that each switch sub-module has m inputs and n outputs, wherein m≠0, n≠0, and m>n;

[0061] Step S6: connecting the m inputs of the switch submodule to a plurality of OBD pins respectively, and outputting voltages through n inputs to obtain a plurality of voltage values.

[0062] The method further includes dividing the voltage values ​​of the multiple n outputs to obtain multiple divided voltage values.

[0063] In the above embodiment, for steps S5-S6, the diagnostic device preferably has one switch module, and the switch module preferably has at least two switch sub-modules, and the two switch sub-modules have the same function, wherein each switch sub-module is provided with m inputs and n outputs, m≠0, n≠0, and m>n. The m inputs of the switch sub-module are respectively connected to multiple OBD pins, and voltage is output from n channels to obtain multiple voltage values. Among them, the m inputs applied for this year are most preferably 4 inputs, and the n outputs are most preferably 1 output. A switch sub-module has a total of 8 inputs and 2 outputs, so two switch sub-modules have a total of 16 inputs and 4 outputs, and OBD has a total of 13 pins. Two switch sub-modules meet the detection requirements for 13 OBD pins, so please refer to Figure 2A , Figure 2B as well as Figure 2C , Figure 2C It is a simulation switch control table. U26 and U28 are both control chips of the switch module, and the control chip U26 is divided into chip U26A and chip U26B, and the control chip U28 is divided into chip U28A and chip U28B. Among them, chip U26A and chip U26B are respectively used to connect to multiple OBD pins, and chip U28A and chip U28B are respectively used to connect to multiple OBD pins. The electrical signal enters the chip U26 and chip U28 of the switch sub-module from each OBD pin, establishes the electrical signal connection between the switch module and the OBD connector, and controls the OBD pin to switch between the on and off states.

[0064] Since the OBD pin has a CAN bus, the CAN bus includes CANH and CANL, for example, OBD6 is CANH, and OBD14 is CANL. When detecting the voltage of the OBD pin, CANH and CANL need to be connected to two sets of the same sampling resistors at the same time for voltage division, otherwise the CAN bus balance will be destroyed, causing the vehicle to report a fault.

[0065] Also, please refer to Figure 3A , 3B , 3C, 3D, Figure 3A , 3B , 3C, and 3D are all operational amplifier circuit diagrams. Chips U27A, U27B, U27C, and U27D are operational amplifier chips, and the chip model of the operational amplifier is LM324, which is used to connect with chip U26 and chip U28. The connection method of each operational amplifier refers to 3A, 3B, 3C, and 3D. The operational amplifier is used as a follower, which can increase the input impedance, reduce the input current, and improve the detection accuracy; reduce the output impedance and improve the driving ability. When multiple divided voltage values ​​pass through the operational amplifier, the current is reduced and enters the range of the digital-to-analog converter. After conversion by the digital-to-analog converter, the divided voltage value that can be directly detected is obtained for detection.

[0066] For further information, see Figure 3 , the method further comprises:

[0067] Step S7: obtaining a plurality of divided voltage values;

[0068] Step S8: comparing the plurality of divided voltage values ​​with the standard voltage value respectively;

[0069] Step S9: If the divided voltage value is equal to the standard voltage value, the divided voltage value is used as the effective divided voltage value.

[0070] Finally, see Figure 4 , the method further comprises:

[0071] Step S10: analyzing the effective divided voltage value;

[0072] Step S11: confirming the characteristics of the effective divided voltage value;

[0073] Step S12: Obtain the corresponding OBD pin according to the feature.

[0074] In the above embodiment, after the voltage division process, multiple voltage division voltage values ​​that can be directly detected can be detected to obtain multiple voltage division voltage values; for the above steps S9-S14, the multiple voltage division voltage values ​​are respectively compared with the standard voltage value; if the voltage division voltage value is equal to the standard voltage value, the voltage division voltage value is used as the effective voltage division voltage value; or, when the voltage division voltage value is near the end point of the standard voltage value and the error value can be relatively negligible, the effective voltage division voltage value is analyzed; the characteristics of the effective voltage division voltage value are confirmed; and the corresponding OBD pin is obtained according to the characteristics. When the effective OBD pin is confirmed, during the fault diagnosis process, the invalid circuit can be disconnected through the switch module to avoid unnecessary power consumption, save the diagnostic interface, and improve the diagnostic speed.

[0075] Embodiment 2:

[0076] See also Figure 5 The present application also discloses an OBD pin voltage detection device, comprising:

[0077] A switching module 100, the switching module 100 is used to connect to at least one OBD pin, control the OBD pin to switch between an on state and an off state, and maintain a balance of the CAN bus;

[0078] A voltage dividing module 200, the voltage dividing module 200 is used to divide and adjust the voltage values ​​of multiple OBD pins to obtain multiple divided voltage values;

[0079] A detection module 300, the detection module 300 is used to confirm a valid divided voltage value according to a plurality of divided voltage values;

[0080] The diagnostic module 400 is used to confirm the target OBD pin according to the divided voltage value, and to communicate and diagnose the target OBD pin.

[0081] In the above embodiment, the switching module 100 is used to connect with multiple OBD pins to control the OBD pins to switch between the on and off states, the voltage divider module 200 is used to divide the voltage values ​​of multiple OBD pins to obtain multiple divided voltage values, the detection module 300 is used to confirm the effective divided voltage value according to the multiple divided voltage values, and the diagnosis module 400 is used to confirm the target OBD pin according to the divided voltage value, and communicate and diagnose the target OBD pin. The present application controls the output voltage of each OBD pin through the switch module, and further divides the voltage to improve the input impedance, reduce the output current, and further improve the detection accuracy. After the voltage value coming out of the OBD pin of the present application is processed by voltage division, multiple divided voltage values ​​that can be directly detected can be detected, and multiple divided voltage values ​​can be obtained, and the multiple divided voltage values ​​can be compared with the standard voltage value respectively; if the divided voltage value is equal to the standard voltage value, the divided voltage value is used as the effective divided voltage value; or, when the divided voltage value is near the end point of the standard voltage value and the error value can be relatively negligible, the effective divided voltage value is analyzed; the characteristics of the effective divided voltage value are confirmed; and the corresponding OBD pin is obtained according to the characteristics. When the effective OBD pin is confirmed, the invalid circuit can be disconnected through the switch module during the fault diagnosis process, so as to avoid unnecessary power consumption, save the diagnostic interface, and improve the diagnostic speed.

[0082] The device also includes:

[0083] A processing module 500, wherein the processing module 500 is used to set a plurality of switch modules, and the switch module includes at least one switch sub-module, and ensures that each switch sub-module has m inputs and n outputs, wherein m≠0, n≠0, and m>n;

[0084] The output module 600 is used to connect the m inputs of the switch submodule to a plurality of OBD pins respectively, and output voltage through n inputs to obtain a plurality of voltage values.

[0085] In the above embodiment, the processing module of the diagnostic device is preferably provided with 1 switch module, and the switch module is preferably provided with at least 2 switch sub-modules, and the 2 switch sub-modules have the same function, wherein each switch sub-module includes m inputs and n outputs, wherein m≠0, n≠0, and m>n. The output module 600 is used to connect the m inputs of the switch sub-module to multiple OBD pins respectively, and output voltage from n channels to obtain multiple voltage values. In the present application, the m inputs are most preferably 4 inputs, and the n outputs are most preferably 1 output. A switch sub-module has a total of 8 inputs and 2 outputs, so the two switch sub-modules have a total of 16 inputs and 4 outputs, and the OBD has a total of 13 pins. Two switch sub-modules meet the detection requirements for 13 OBD pins, so please refer to Figure 2A , Figure 2B as well as Figure 2C , Figure 2C It is a simulation switch control table. U26 and U28 are both control chips of the switch module, and the control chip U26 is divided into chip U26A and chip U26B, and the control chip U28 is divided into chip U28A and chip U28B. Among them, chip U26A and chip U26B are respectively used to connect to multiple OBD pins, and chip U28A and chip U28B are respectively used to connect to multiple OBD pins. The electrical signal enters the chip U26 and chip U28 of the switch sub-module from each OBD pin, establishes the electrical signal connection between the switch module and the OBD connector, and controls the OBD pin to switch between the on and off states.

[0086] The implementation process of an OBD pin voltage detection device of the present application refers to the above-mentioned embodiment 1 and will not be repeated here.

[0087] Embodiment three:

[0088] 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 an OBD pin voltage detection method as described above.

[0089] The present application also discloses a computer-readable storage medium, comprising instructions. When the instructions are executed on an electronic device, the electronic device executes the steps of an OBD pin voltage detection method as described above.

[0090] 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 OBD pin voltage detection method as described above.

[0091] 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.

[0092] 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.

[0093] 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.

[0094] 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.

[0095] 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. An OBD pin voltage detection method, applied to diagnostic equipment, characterized in that: include: connected to at least one OBD pin, controlling the OBD pin to switch between an on state and an off state; Performing voltage division adjustment on the voltage values ​​of the plurality of OBD pins to obtain a plurality of divided voltage values; confirming an effective divided voltage value according to the plurality of divided voltage values; The target OBD pin is confirmed according to the divided voltage value, and communication and diagnosis are performed on the target OBD pin.

2. The OBD pin voltage detection method according to claim 1, characterized in that: The method for adjusting the voltage values ​​of multiple OBD pins by voltage division includes: A plurality of switch modules are provided, and the switch modules include at least one switch sub-module, and each switch sub-module is ensured to have m inputs and n outputs, wherein m≠0, n≠0, and m>n; The m inputs of the switch submodule are connected to a plurality of OBD pins respectively, and voltage is outputted through n inputs to obtain a plurality of voltage values.

3. The OBD pin voltage detection method according to claim 2, characterized in that: The method further includes dividing the voltage values ​​of the multiple n outputs to obtain multiple divided voltage values.

4. The OBD pin voltage detection method according to claim 1, characterized in that: The method further comprises: Get multiple divided voltage values; Comparing the plurality of divided voltage values ​​with the standard voltage value respectively; If the divided voltage value is equal to the standard voltage value, the divided voltage value is taken as the effective divided voltage value.

5. The OBD pin voltage detection method according to claim 4, characterized in that: The method further comprises: Analyzing the effective divided voltage value; Confirm the characteristics of the effective divided voltage value; The corresponding OBD pin is obtained according to the feature.

6. An OBD pin voltage detection device, characterized in that: include: A switching module, the switching module is used to connect to at least one OBD pin, control the OBD pin to switch between an on state and an off state, and maintain the balance of the CAN bus; A voltage dividing module, the voltage dividing module is used to divide and adjust the voltage values ​​of multiple OBD pins to obtain multiple divided voltage values; A detection module, the detection module is used to confirm a valid divided voltage value according to the plurality of divided voltage values; A diagnostic module is used to confirm the target OBD pin according to the divided voltage value, and to communicate and diagnose the target OBD pin.

7. An OBD pin voltage detection device according to claim 6, characterized in that: The device also includes: A processing module, the processing module is used to set a plurality of switch modules, and the switch module includes at least one switch sub-module, ensuring that each switch sub-module has m inputs and n outputs, wherein m≠0, n≠0, and m>n; The output module is used to connect the m inputs of the switch submodule to multiple OBD pins respectively, and output voltage through n inputs to obtain multiple 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 an OBD pin voltage detection method according to any one of claims 1 to 5.

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 an OBD pin voltage detection method according to any one of claims 1 to 5.

10. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the steps of an OBD pin voltage detection method according to any one of claims 1 to 5.