A method, device and equipment for testing OBD diagnostic system function
By setting the standard output of the vehicle controller and injecting the fault, the problem of lack of OBD diagnostic system functions and normative testing in the prior art is solved, and comprehensive and standardized testing of the functions of the OBD diagnostic system is achieved, ensuring the standardization and comprehensiveness of the system's functions.
Patent Information
- Application Number
- CN202210599901.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2042-05-25
AI Technical Summary
The prior art lacks a comprehensive and standardized method for testing the functions and normative nature of OBD diagnostic system, which makes it impossible to effectively evaluate the functions of the OBD system.
By setting the standard output of the vehicle controller, the controller communicates with the OBD diagnostic system according to the diagnostic protocol of the OBD diagnostic system, and injects a fault after the vehicle driving cycle is turned on. After the MIL fault indicator light is lit, determine whether the OBD diagnostic system is qualified based on the actual output and the standard output.
The comprehensive and standardized testing of the functions of the OBD diagnostic system is realized, and the system shortcomings can be discovered in a timely manner, which facilitates subsequent correction and development, and ensures the standardization and comprehensiveness of the functions of the OBD system.
Smart Images

Figure CN115016431B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of OBD diagnostic system testing, and in particular to a method, device and computer equipment for testing the functions of an OBD diagnostic system. Background Art
[0002] The OBD (On Board Diagnostics) diagnostic system is a detection system that extends from automobile fault diagnosis. OBD is used to monitor the vehicle's controller, engine, catalytic converter, particulate filter, oxygen sensor, emission control system, fuel system, exhaust gas recirculation system EGR and other systems and components in real time, receive their output data, and diagnose their faults. When OBD diagnoses that these systems and components have faults, it will control the MIL (Malfunction-Indicator-Lamp) fault indicator light to light up, and the powertrain control module PCM will store the fault code in the memory, so that maintenance personnel can read the fault code from the PCM through a certain procedure, and quickly and accurately determine the nature and location of the fault based on the fault code information.
[0003] However, during the construction of the OBD system, there is a lack of a complete testing process for the OBD system to test the standardization of the OBD system, so it is impossible to evaluate the comprehensiveness and standardization of the OBD system functions.
[0004] Therefore, how to test the functions and standardization of the OBD system and evaluate the functions and standardization of the OBD system is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The main purpose of this application is to provide a method, device and computer equipment for testing the functions of an OBD diagnostic system, aiming to solve the technical problem that there is currently no complete method and process for testing the functions and standardization of an OBD diagnostic system.
[0006] In a first aspect, the present application provides a method for testing an OBD diagnostic system function, the method comprising the following steps:
[0007] Setting a standard output of a controller of the vehicle according to a diagnostic protocol in an OBD diagnostic system, and causing the set controller to communicate with the OBD diagnostic system;
[0008] After the vehicle driving cycle is started, a fault is injected into the set controller;
[0009] After the MIL fault indicator light is on, the configured controller reports the actual output to the OBD diagnostic system, and determines whether the OBD diagnostic system is qualified based on the actual output and the standard output.
[0010] In some embodiments, setting the standard output of the vehicle's controller according to the diagnostic protocol in the OBD diagnostic system specifically includes: setting the generation mechanism, reporting mechanism and reporting location of various fault codes of the controller according to the diagnostic protocol in the OBD diagnostic system to determine the standard output.
[0011] In some embodiments, determining whether the OBD diagnostic system is qualified according to the actual output and the standard output specifically includes:
[0012] If the actual generation time and reporting time of the pending fault code in the actual output, and the injection time of the fault are all within the first driving cycle, and the pending fault code is reported to the first diagnostic module position set in the OBD diagnostic system, it is determined that the function corresponding to the pending fault code of the OBD diagnostic system is qualified.
[0013] In some embodiments, determining whether the OBD diagnostic system is qualified according to the actual output and the standard output specifically includes:
[0014] If the input time of the fault is within the first driving cycle, the actual generation time and reporting time of the confirmed fault code in the actual output are within the second driving cycle, and the confirmed fault code is reported to the second diagnostic module position set in the OBD diagnostic system, it is determined that the function corresponding to the confirmed fault code of the OBD diagnostic system is qualified;
[0015] The second driving cycle is a driving cycle next to the first driving cycle.
[0016] In some embodiments, determining whether the OBD diagnostic system is qualified according to the actual output and the standard output specifically includes:
[0017] If the freeze frame and the pending fault code are generated simultaneously in the actual output, the freeze frame and the confirmed fault code are reported simultaneously, and the freeze frame is reported to the third diagnostic module position set in the OBD diagnostic system, it is determined that the function corresponding to the freeze frame of the OBD diagnostic system is qualified.
[0018] In some embodiments, after determining whether the OBD diagnostic system is qualified according to the actual output and the standard output, the following steps are further included:
[0019] Controlling a fourth diagnostic module set in the OBD diagnostic system to clear the pending fault code and the confirmed fault code;
[0020] When the power system of the vehicle is in a high voltage activation state, the pending fault code and the confirmed fault code are not cleared, and the OBD diagnostic system is determined to be qualified; or,
[0021] When the vehicle is in the KL15 ON power-on state and the power system of the vehicle is not in the high-voltage activation state, the pending fault code and the confirmed fault code are cleared, and it is determined that the OBD diagnostic system is qualified.
[0022] In some embodiments, after the pending fault code and the confirmed fault code are cleared, the following steps are further included:
[0023] Controlling the warm-up engine on the vehicle to perform a preset number of cycles, and if the number of cycles of the warm-up engine in the actual output is the same as the preset number, determining that the OBD diagnostic system is qualified;
[0024] The vehicle is controlled to travel a preset distance on the hub, and if the travel distance of the vehicle in the actual output is the same as the preset distance, it is determined that the OBD diagnostic system is qualified.
[0025] In some embodiments, if a permanent fault code in the actual output is generated and reported simultaneously with the confirmed fault code, and the permanent fault code is reported to a fifth diagnostic module position set in the OBD diagnostic system, it is determined that the OBD diagnostic system is qualified.
[0026] In a second aspect, the present application further provides a device for testing the function of an OBD diagnostic system, the device comprising:
[0027] A setting module, which is used to set the standard output of the vehicle controller according to the diagnostic protocol in the OBD diagnostic system, and make the set controller communicate with the OBD diagnostic system;
[0028] A fault injection module, which is used to inject faults into the set controller after the vehicle driving cycle is started;
[0029] The determination module is used for, after the MIL fault indicator light is on, the set controller reports the actual output to the OBD diagnosis system, and determines whether the OBD diagnosis system is qualified according to the actual output and the standard output.
[0030] In a third aspect, the present application also provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of a method for testing the function of an OBD diagnostic system as described above are implemented.
[0031] The present application provides a method, device and computer equipment for testing the function of an OBD diagnostic system, which sets the standard output of the vehicle's controller according to the diagnostic protocol in the OBD diagnostic system, and enables the set controller to communicate with the OBD diagnostic system; after the vehicle driving cycle is turned on, a fault is injected into the set controller; after the MIL fault indicator light is on, the set controller reports the actual output to the OBD diagnostic system, and determines whether the OBD diagnostic system is qualified based on the actual output and the standard output. In this way, the functional software of the OBD diagnostic system can be tested and verified during the construction of the OBD diagnostic system, so as to timely discover the deficiencies of the OBD diagnostic system and facilitate subsequent corrections and development, thereby ensuring the standardization and comprehensiveness of the OBD system function. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0033] Figure 1 A flowchart of a method for testing the function of an OBD diagnostic system provided in an embodiment of the present application;
[0034] Figure 2 A schematic diagram for reporting pending fault codes;
[0035] Figure 3 To confirm the generation of fault code reporting diagram;
[0036] Figure 4 Schematic diagram of freeze frame generation and reporting;
[0037] Figure 5 This is a schematic diagram of the positive response to the fault code clearing operation;
[0038] Figure 6 This is a negative response diagram for clearing fault codes;
[0039] Figure 7 A schematic block diagram of a test device for an OBD diagnostic system function provided in an embodiment of the present application;
[0040] Figure 8 The present invention is a block diagram showing the structure of a computer device according to an embodiment of the present application.
[0041] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0044] The embodiment of the present application provides a method, device and computer equipment for testing the function of an OBD diagnostic system. The method for testing the function of an OBD diagnostic system can be applied to a computer equipment, which can be an electronic device such as a laptop computer or a desktop computer.
[0045] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0046] Please refer to Figure 1 , Figure 1 A flowchart of a method for testing an OBD diagnostic system function provided in an embodiment of the present application.
[0047] like Figure 1 As shown, the method includes steps S1 to S3.
[0048] Step S1, setting a standard output of a vehicle controller according to a diagnostic protocol in an OBD diagnostic system, and making the set controller communicate with the OBD diagnostic system.
[0049] Step S2: After the vehicle driving cycle is started, inject a fault into the set controller.
[0050] Step S3: After the MIL fault indicator light is on, the configured controller reports the actual output to the OBD diagnostic system, and determines whether the OBD diagnostic system is qualified based on the actual output and the standard output.
[0051] It is worth noting that the vehicle controller may be any one controller or any several controllers in the vehicle, or may be a new energy controller.
[0052] The OBD diagnostic protocol is a functional protocol of the OBD diagnostic system. After the vehicle controller is set according to the OBD diagnostic protocol, a data connection is established between the OBD diagnostic system and the controller, that is, the controller can communicate with the OBD diagnostic system after being set, so that the controller can report its PID output to the OBD diagnostic system after being set. It can be understood that the OBD diagnostic protocol can be considered to be composed of codes, which have an ideal result for reference. When the controller is set using the diagnostic protocol, the diagnostic protocol will set the controller's PID output, and the setting goal is to make the controller output a standardized output.
[0053] Among them, setting the standard output of the vehicle controller specifically includes setting the generation mechanism, reporting mechanism and reporting location of various fault codes of the controller according to the diagnostic protocol in the OBD diagnostic system to determine the standard output.
[0054] Among them, the various fault codes include pending fault codes, confirmed fault codes, freeze frames, etc.
[0055] Furthermore, after the controller is set, it controls the vehicle to start a driving cycle, and after the vehicle driving cycle is started, a fault is injected into the controller. When injecting a fault, fault information can be directly input into the controller, or a fault can be created on the vehicle, and then the fault is injected into the controller through the vehicle CAN bus according to the fault information generated by the fault.
[0056] Furthermore, when a fault is injected into the set controller, the set controller will operate according to the setting of the OBD diagnostic protocol, so that the MIL fault indicator light will light up, and the actual output will be output and uploaded to the OBD diagnostic system.
[0057] It is worth noting that when the MIL indicator light is on, the controller will generate pending fault codes, confirmed fault codes, freeze frames, etc. within the set driving cycle according to the input fault, and report these fault codes within a certain driving cycle. The reported information also includes the generation and reporting time of these fault codes, as well as the driving cycle in which these times are located. This information is part of the controller output, and the other part also includes multiple parameters of the vehicle.
[0058] Furthermore, the actual output received by the OBD diagnostic system is scanned through a scanning program, and the scanned actual output is compared and verified with the standardized output. If the results are consistent, it means that the OBD system function is the same as the preset one and the OBD system function is qualified. If the results are inconsistent, it means that there is a problem with the OBD diagnostic protocol code, resulting in the actual output of the controller being inconsistent with the ideal output result. The OBD diagnostic system function is unqualified or non-standard and needs to be improved or processed.
[0059] As a preferred embodiment, Figure 2 As shown, the generation time, reporting time and fault injection time of the pending fault code set in the standard output are in the first driving cycle, and the pending fault code is reported to the first diagnostic module position set in the OBD diagnostic system. After the actual output is uploaded to the OBD diagnostic system, the scanning program scans the first diagnostic module set in the OBD diagnostic system. If the pending fault code is scanned, it means that the pending fault code is reported to the first diagnostic module position set in the OBD diagnostic system, and the reporting position is correct, otherwise it is incorrect. After scanning the pending fault code, if the actual generation time and reporting time of the pending fault code, and the injection time of the fault are in the first driving cycle, it is determined that the function corresponding to the pending fault code of the OBD diagnostic system is qualified. If the first diagnostic module does not scan the pending fault signal, or the generation time or reporting time of the pending fault signal is not in the same driving cycle as the fault injection time, it is determined that the function corresponding to the pending fault code of the OBD diagnostic system is unqualified. The first diagnostic module is the Mode 07 diagnostic module of the OBD diagnostic system.
[0060] It can be seen that by comparing the actual output with the standard output, if they are consistent, the OBD diagnostic system is qualified, and if they are inconsistent, the OBD diagnostic system is unqualified. The following is an explanation of the qualified results in the OBD diagnostic system test.
[0061] Preferably, Figure 3 As shown, the second diagnostic module of the OBD diagnostic system is scanned. If the confirmation fault code is reported to the second diagnostic module position set in the OBD diagnostic system, the input time of the fault is within the first driving cycle, and the actual generation time and reporting time of the confirmation fault code in the actual output are within the second driving cycle, then it is determined that the function corresponding to the confirmation fault code of the OBD diagnostic system is qualified; wherein the second driving cycle is the next driving cycle of the first driving cycle. Among them, the second diagnostic module is the Mode 03 module of the OBD diagnostic module
[0062] Preferably, Figure 4 As shown, the third diagnostic module of the OBD diagnostic system is scanned, and if a freeze frame is scanned and reported to the third diagnostic module position set in the OBD diagnostic system, the freeze frame and the pending fault code are generated at the same time in the actual output, and the freeze frame and the confirmed fault code are reported at the same time, then it is determined that the function corresponding to the freeze frame of the OBD diagnostic system is qualified. The third diagnostic module is the Mode 02 module in the OBD diagnostic system.
[0063] In some embodiments, Figure 5 and Figure 6As shown, the fourth diagnostic module set in the OBD diagnostic system clears the pending fault code and the confirmed fault code; when the power system of the whole vehicle is in a high-voltage activated state, the pending fault code and the confirmed fault code are not cleared, and the OBD diagnostic system is determined to be qualified; or, when the whole vehicle is in a KL15 ON power-on state and the power system of the whole vehicle is not in a high-voltage activated state, the pending fault code and the confirmed fault code are cleared, and the OBD diagnostic system is determined to be qualified. The fourth diagnostic module is the Mode04 module in the OBD diagnostic system.
[0064] Specifically, when the power system is in a high-voltage activation state, that is, PT ready, Mode 04 executes a fault code clearing operation, and the confirmed fault codes in mode 03 and pending fault codes in Mode 07 of each controller should respond negatively to this operation, execute a fault code non-clearing action, and determine that the OBD diagnostic system is qualified; when in the KL15 ON state, that is, the power system is not PT ready, Mode 04 executes a fault code clearing operation, and the confirmed fault codes in Mode 03 and pending fault codes in Mode 07 should respond positively to this operation, execute a fault code clearing action, and determine that the OBD diagnostic system is qualified.
[0065] In some embodiments, if the permanent fault code in the actual output is generated and reported simultaneously with the confirmed fault code, and the permanent fault code is reported to the fifth diagnostic module position set in the OBD diagnostic system, then the OBD diagnostic system is determined to be qualified. The fifth diagnostic module is Mode 0A.
[0066] As a preferred implementation, when the MIL fault light comes on, the vehicle is controlled to travel a preset distance on the hub, and then the distance in the actual output of the controller is compared to see if it is consistent with the preset distance. If they are consistent, it is determined that the OBD diagnostic system is qualified; if not, it is determined that the OBD diagnostic system is unqualified.
[0067] After the pending fault code and the confirmed fault code are cleared, the warm-up engine on the vehicle is controlled to cycle for a preset number of times. If the number of cycles of the warm-up engine in the actual output is the same as the preset number, the OBD diagnostic system is determined to be qualified; the vehicle is controlled to travel a preset distance on the rotating hub. If the travel distance of the vehicle in the actual output is the same as the preset distance, the OBD diagnostic system is determined to be qualified. Otherwise, the OBD diagnostic system is considered unqualified.
[0068] The present application provides a method, device and computer equipment for testing the function of an OBD diagnostic system, which sets the standard output of the vehicle's controller according to the diagnostic protocol in the OBD diagnostic system, and enables the set controller to communicate with the OBD diagnostic system; after the vehicle driving cycle is turned on, a fault is injected into the set controller; after the MIL fault indicator light is on, the set controller reports the actual output to the OBD diagnostic system, and determines whether the OBD diagnostic system is qualified based on the actual output and the standard output. This allows the functional software of the OBD diagnostic system to be tested and verified during the construction of the OBD diagnostic system, so as to timely discover the deficiencies of the OBD diagnostic system, facilitate subsequent development and correction, and thus ensure the standardization and comprehensiveness of the OBD system function.
[0069] The test method in this application sets the controller's standard output through the diagnostic protocol of the OBD diagnostic system. The standard output is an ideal result or setting. Then the fault is input, so that the controller can actually process the fault and generate the processing result, that is, the actual output. If the fault code generated in the actual output is the same as the generation time, reporting time and reporting position of the fault code of the standard output, then the OBD system is considered to be qualified and the function meets the requirements. Otherwise, the OBD system is considered to be non-standard and needs to be improved or processed.
[0070] Please refer to Figure 7 , Figure 7 A schematic block diagram of a device for testing the function of an OBD diagnostic system provided in an embodiment of the present application.
[0071] like Figure 7 As shown, the device includes: a setting module, a fault injection module and a determination module.
[0072] The setting module is used to set the standard output of the vehicle controller according to the diagnostic protocol in the OBD diagnostic system, and make the set controller communicate with the OBD diagnostic system;
[0073] The fault injection module is used to inject faults into the set controller after the vehicle driving cycle is started;
[0074] The determination module is used for reporting the actual output to the OBD diagnosis system after the MIL fault indicator light is on, and determining whether the OBD diagnosis system is qualified according to the actual output and the standard output.
[0075] The setting module is used to set the generation mechanism, reporting mechanism and reporting position of various fault codes of the controller according to the diagnostic protocol in the OBD diagnostic system to determine the standard output.
[0076] Wherein, the determination module is also used for: if the actual generation time and reporting time of the pending fault code in the actual output, and the injection time of the fault are all within the first driving cycle, and the pending fault code is reported to the first diagnostic module position set in the OBD diagnostic system, then it is determined that the function corresponding to the pending fault code of the OBD diagnostic system is qualified.
[0077] The determination module is further configured to: determine that the function corresponding to the confirmation fault code of the OBD diagnostic system is qualified if the input time of the fault is within the first driving cycle, the actual generation time and reporting time of the confirmation fault code in the actual output are within the second driving cycle, and the confirmation fault code is reported to the second diagnostic module position set in the OBD diagnostic system;
[0078] The second driving cycle is a driving cycle next to the first driving cycle.
[0079] Among them, the determination module is also used to determine that the function corresponding to the freeze frame of the OBD diagnostic system is qualified if the freeze frame and the pending fault code in the actual output are generated simultaneously, the freeze frame and the confirmed fault code are reported simultaneously, and the freeze frame is reported to the third diagnostic module position set in the OBD diagnostic system.
[0080] Wherein, the determination module is further used to control a fourth diagnosis module set in the OBD diagnosis system to clear the pending fault code and the confirmed fault code;
[0081] When the power system of the vehicle is in a high voltage activation state, the pending fault code and the confirmed fault code are not cleared, and the OBD diagnostic system is determined to be qualified; or,
[0082] When the vehicle is in the KL15 ON power-on state and the power system of the vehicle is not in the high-voltage activation state, the pending fault code and the confirmed fault code are cleared, and it is determined that the OBD diagnostic system is qualified.
[0083] wherein, the warm-up engine on the vehicle is controlled to perform a preset number of cycles, and if the number of cycles of the warm-up engine in the actual output is the same as the preset number, then it is determined that the OBD diagnostic system is qualified;
[0084] The vehicle is controlled to travel a preset distance on the hub, and if the travel distance of the vehicle in the actual output is the same as the preset distance, it is determined that the OBD diagnostic system is qualified.
[0085] If the permanent fault code in the actual output is generated and reported simultaneously with the confirmed fault code, and the permanent fault code is reported to the fifth diagnostic module position set in the OBD diagnostic system, it is determined that the OBD diagnostic system is qualified.
[0086] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules and units can refer to the corresponding processes in the aforementioned embodiments and will not be repeated here.
[0087] The apparatus provided in the above embodiment may be implemented in the form of a computer program. The computer program may be Figure 8 Runs on the computer device shown.
[0088] See also Figure 8 , Figure 8 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application. The computer device may be a terminal.
[0089] like Figure 8 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0090] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any test method of the OBD diagnostic system function.
[0091] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0092] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any test method of the OBD diagnostic system function.
[0093] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0094] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0095] The computer device also includes a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the present application.
[0096] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.
[0097] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0098] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for testing the function of an OBD diagnostic system, characterized in that: include: Setting a standard output of a controller of the vehicle according to a diagnostic protocol in an OBD diagnostic system, and causing the set controller to communicate with the OBD diagnostic system; After the vehicle driving cycle is started, a fault is injected into the set controller; After the MIL fault indicator light is on, the set controller reports the actual output to the OBD diagnostic system, and determines whether the OBD diagnostic system is qualified based on the actual output and the standard output; The step of setting the standard output of the vehicle controller according to the diagnostic protocol in the OBD diagnostic system specifically includes: setting the generation mechanism, reporting mechanism and reporting position of various fault codes of the controller according to the diagnostic protocol in the OBD diagnostic system to determine the standard output; Wherein, determining whether the OBD diagnostic system is qualified according to the actual output and the standard output specifically includes: If the actual generation time and reporting time of the pending fault code in the actual output and the injection time of the fault are all within the first driving cycle, and the pending fault code is reported to the first diagnostic module position set in the OBD diagnostic system, it is determined that the function corresponding to the pending fault code of the OBD diagnostic system is qualified; Wherein, determining whether the OBD diagnostic system is qualified according to the actual output and the standard output specifically includes: If the input time of the fault is within the first driving cycle, the actual generation time and reporting time of the confirmed fault code in the actual output are within the second driving cycle, and the confirmed fault code is reported to the second diagnostic module position set in the OBD diagnostic system, it is determined that the function corresponding to the confirmed fault code of the OBD diagnostic system is qualified; wherein the second driving cycle is a driving cycle next to the first driving cycle; Wherein, after determining whether the OBD diagnostic system is qualified according to the actual output and the standard output, the following steps are also included: Controlling a fourth diagnostic module set in the OBD diagnostic system to clear the pending fault code and the confirmed fault code; When the power system of the vehicle is in a high voltage activation state, the pending fault code and the confirmed fault code are not cleared, and the OBD diagnostic system is determined to be qualified; or, When the vehicle is in the KL15 ON power-on state and the power system of the vehicle is not in the high-voltage activation state, the pending fault code and the confirmed fault code are cleared, and it is determined that the OBD diagnostic system is qualified.
2. The method for testing the function of the OBD diagnostic system according to claim 1, characterized in that: Determining whether the OBD diagnostic system is qualified according to the actual output and the standard output specifically includes: If the freeze frame and the pending fault code are generated simultaneously in the actual output, the freeze frame and the confirmed fault code are reported simultaneously, and the freeze frame is reported to the third diagnostic module position set in the OBD diagnostic system, it is determined that the function corresponding to the freeze frame of the OBD diagnostic system is qualified.
3. The method for testing the function of the OBD diagnostic system according to claim 1, characterized in that: After the pending fault code and the confirmed fault code are cleared, the following steps are also included: Controlling the warm-up engine on the vehicle to perform a preset number of cycles, and if the number of cycles of the warm-up engine in the actual output is the same as the preset number, determining that the OBD diagnostic system is qualified; The vehicle is controlled to travel a preset distance on the hub, and if the travel distance of the vehicle in the actual output is the same as the preset distance, it is determined that the OBD diagnostic system is qualified.
4. The method for testing the function of the OBD diagnostic system according to claim 1, characterized in that: If the permanent fault code in the actual output is generated and reported simultaneously with the confirmed fault code, and the permanent fault code is reported to the fifth diagnostic module position set in the OBD diagnostic system, it is determined that the OBD diagnostic system is qualified.
5. A test device for OBD diagnostic system function, characterized in that: include: A setting module, which is used to set the standard output of the vehicle controller according to the diagnostic protocol in the OBD diagnostic system, and make the set controller communicate with the OBD diagnostic system; A fault injection module, which is used to inject faults into the set controller after the vehicle driving cycle is started; A determination module, which is used for the controller to report the actual output to the OBD diagnostic system after the MIL fault indicator light is on, and to determine whether the OBD diagnostic system is qualified according to the actual output and the standard output; The setting module is further used to: set the generation mechanism, reporting mechanism and reporting position of various fault codes of the controller according to the diagnostic protocol in the OBD diagnostic system to determine the standard output; The determination module is further configured to: determine that the function corresponding to the pending fault code of the OBD diagnostic system is qualified if the actual generation time and reporting time of the pending fault code in the actual output and the injection time of the fault are both within the first driving cycle, and the pending fault code is reported to the first diagnostic module position set in the OBD diagnostic system; The determination module is further configured to: determine that the function corresponding to the confirmation fault code of the OBD diagnostic system is qualified if the input time of the fault is within the first driving cycle, the actual generation time and reporting time of the confirmation fault code in the actual output are within the second driving cycle, and the confirmation fault code is reported to the second diagnostic module position set in the OBD diagnostic system; wherein the second driving cycle is a driving cycle next to the first driving cycle; Wherein, the determination module is further used to: control the fourth diagnosis module set in the OBD diagnosis system to clear the pending fault code and the confirmed fault code; When the power system of the vehicle is in a high voltage activation state, the pending fault code and the confirmed fault code are not cleared, and the OBD diagnostic system is determined to be qualified; or, When the vehicle is in the KL15 ON power-on state and the power system of the vehicle is not in the high-voltage activation state, the pending fault code and the confirmed fault code are cleared, and it is determined that the OBD diagnostic system is qualified.
6. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the method for identifying a valid driving cycle in OBD diagnosis according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Fault test method and device of speed changer and terminal
CN107797540A
Vehicle diagnosis system and method, and vehicle
CN113050582A