A rule engine judgment method and device for OBD test data

By using a rule engine-based judgment method and standardized bit3 status determination and warning/limit value analysis, the consistency and efficiency issues in OBD test data fault determination are resolved, achieving efficient and reliable fault determination and recording, and improving the automated processing capability of OBD test data.

CN123138718APending Publication Date: 2026-11-20ANHUI QUANCHAI ENGINE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611249611.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-18
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, fault determination of OBD test data relies on the personal experience of engineers, resulting in inconsistent and reproducible results and a high misjudgment rate. In particular, for faults with dynamic characteristics such as throttle valve sticking, manual analysis is cumbersome and time-consuming, lacks systematic recording, cannot flexibly adjust thresholds, and has poor adaptability.

Method used

By adopting a rule-based judgment method, a dedicated judgment algorithm is designed to analyze the duration of throttle valve jamming faults through standardized bit3 status judgment and a three-level margin analysis system of warning values/limits. Differentiated margin analysis standards are configured for urea consumption deviation faults in SCR systems, thereby achieving fully automated batch processing and structured recording of fault lists.

Benefits of technology

It eliminates the problem of inconsistent judgment results caused by differences in personal experience, reduces the misjudgment rate, improves the judgment efficiency several times, ensures the repeatability and objectivity of the judgment conclusions, and improves the overall technical level of OBD test data post-processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138718A_ABST
    Figure CN123138718A_ABST
Patent Text Reader

Abstract

The application discloses a kind of OBD test data's rule engine determination method and device, it is related to data processing technical field, including input preprocessed test data and configuration file;Obtain fault list and the prewarning value and limit value of each fault;Select a undetermined fault;Determine whether the fault type is special fault;Whether the fault is released is judged by the bit3 dotting state of monitoring variable;For the fault that has been released, carry out margin rationality analysis;Comprehensive fault release state and margin analysis result, obtain final conclusion;Record determination result and basis, determine whether there is still undetermined fault;Output summary result.The application eliminates the inconsistent problem of determination result caused by individual experience difference in traditional manual analysis, ensures the complete repeatability and objectivity of determination conclusion;Effectively filter signal fluctuation interference, greatly reduce the misjudgment rate, and configure completely independent differentiated margin analysis standard for urea consumption deviation fault of SCR system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a rule engine determination method and apparatus for OBD test data. Background Technology

[0002] In the process of automotive engine R&D and OBD (On-Board Diagnostics) compliance verification, fault determination of OBD test data is a crucial step in verifying vehicle emissions and diagnostic functions. As the core monitoring method for vehicle emission control, the accuracy and efficiency of OBD system fault diagnosis directly affect whether a vehicle can meet increasingly stringent emission regulations. Currently, the industry commonly uses a manual analysis mode based on INCA software for OBD test data fault determination. INCA is one of the mainstream software programs for vehicle controller calibration, widely used in functional model calibration, measurement data analysis, and calibration data management. However, in actual OBD test data analysis work, engineers need to manually complete the following operations using INCA software: First, engineers need to manually observe the collected data curves and determine whether the fault has been released by monitoring the status of bit 3 of the relevant variables. According to the ISO 14229-1 standard, the status bit 3 (ConfirmedDTC) of the DTC (Diagnostic Trouble Code) is used to indicate whether the fault has been confirmed. When bit 3 changes from 0 to 1, it indicates that the fault has been confirmed through two operation cycles. Engineers need to check the status of bit 3 of each fault one by one to determine the release status of the fault. Secondly, for released faults, engineers also need to conduct a margin rationality analysis, calculate the degree of deviation between relevant parameters and warning values ​​and limits, and then determine whether the margin settings meet the requirements. This process involves a large amount of data query, calculation and comparison work. Furthermore, for special faults with dynamic characteristics, such as throttle valve sticking, simple instantaneous threshold judgment is very likely to lead to misjudgment. Engineers need to analyze the continuous change of the absolute value of the deviation over a period of time, and determine whether the fault has actually occurred by judging whether the deviation exceeds the threshold for a sufficiently long time. This places high demands on the experience and ability of manual analysis.

[0003] However, current common solutions have many drawbacks, including: the judgment criteria of existing technologies rely entirely on the personal experience of engineers, and different personnel may have significantly different conclusions on the same set of data, resulting in a lack of consistency and repeatability; for special faults with dynamic characteristics, such as throttle valve sticking, simple single-point threshold judgment is prone to misjudgment due to instantaneous signal fluctuations, and correct judgment requires manually extracting data segments and calculating the duration of deviation exceeding the threshold, which is cumbersome and difficult to guarantee accuracy; each fault needs to be handled manually one by one, which is extremely time-consuming when dealing with batches of data, seriously restricting the efficiency of R&D verification; in addition, the manual analysis process and judgment criteria lack systematic recording, making subsequent review and problem tracing very difficult, and the judgment thresholds are fixed and rigid, unable to be flexibly adjusted according to different project needs, resulting in poor adaptability. Summary of the Invention

[0004] The purpose of this section is to outline some aspects of embodiments of the present invention and to briefly describe some preferred embodiments. Simplifications or omissions may be made in this section, as well as in the abstract and title of this application, to avoid obscuring the purpose of these documents; however, such simplifications or omissions should not be construed as limiting the scope of the invention.

[0005] In view of the problems existing in the current OBD test data rule engine determination method and device, the present invention is proposed.

[0006] Therefore, the purpose of this invention is to provide a rule engine-based judgment method and device for OBD test data. This method addresses the problems of existing technologies where judgment standards rely entirely on the individual experience of engineers, leading to significant differences in analytical conclusions among different personnel for the same set of data, resulting in a lack of consistency and repeatability. Furthermore, for special faults with dynamic characteristics, such as throttle valve sticking, simple single-point threshold judgments are prone to misjudgment due to instantaneous signal fluctuations. Correct judgment requires manually extracting data segments and calculating the duration of deviation exceeding the threshold, which is cumbersome and inaccurate. Each fault requires manual processing, which is extremely time-consuming when dealing with batches of data, severely hindering R&D verification efficiency. In addition, the lack of systematic recording of manual analysis processes and judgment criteria makes subsequent review and problem tracing very difficult, and the fixed and rigid judgment thresholds cannot be flexibly adjusted according to different project needs, resulting in poor adaptability.

[0007] To solve the above-mentioned technical problems, the present invention provides the following technical solution: In a first aspect, embodiments of the present invention provide a rule engine judgment method for OBD test data, comprising the following steps: S101: inputting preprocessed test data and configuration files; S102: reading the configuration to obtain a fault list and warning values ​​and limits for each fault; S103: selecting an undetermined fault; S104: determining whether the fault type is a special fault, and if so, proceeding to the special fault handling process; S105: judging whether the fault has been released by monitoring the bit3 status of the variable, if the status is valid, the fault is determined to be released, if the status is invalid, the fault is determined to be not released; S106: for released faults, performing a margin rationality analysis, and comparing the relevant computational load with... The warning value and the limit value are compared to obtain a three-level judgment conclusion: if the relevant calculation quantity meets the warning value condition, it is judged as "meeting the condition"; if the relevant calculation quantity does not meet the limit value condition, it is judged as "not meeting the condition"; if it is between the two, it is judged as "poor robustness"; Step S107: Combine the fault release status and margin analysis results to draw the final conclusion - only when the fault has been released and the margin analysis is "meeting the condition", the final conclusion of the current fault is "meeting the condition", otherwise it is "not meeting the condition"; Step S108: Record the judgment result and basis, and determine whether there are any unjudged faults. If there are, return to step S103, otherwise proceed to step S109; Step S109: Output the summary result.

[0008] As a preferred embodiment of the rule engine judgment method for OBD test data described in this invention, the special fault includes a throttle valve sticking fault, and the special fault handling process includes the following sub-steps: Step S1041: Obtain the actual opening value and the target opening value of the throttle valve, and calculate the absolute value of the difference between the two as the absolute value of the deviation of the throttle valve; Step S1042: Compare the absolute value of the deviation with a preset deviation threshold, wherein the deviation threshold is 15%. When the absolute value of the deviation is greater than or equal to 15%, the state value at that moment is mapped to 1; when the absolute value of the deviation is less than 15%, the state value at that moment is mapped to 0, thereby converting the continuous time series data into a structure of 0 and 1. Step S1043: In the mapped state sequence, find all data segments with consecutive state values ​​of 1, and determine the start and end times of each consecutive data segment; Step S1044: Calculate the corresponding duration based on the start and end times of each consecutive data segment, where the duration is the time difference between the end time and the start time; Step S1045: Compare the duration with a preset duration threshold. If the duration is greater than or equal to the duration threshold, the margin of the throttle valve jamming fault is determined to be "not satisfied"; if the duration is less than the duration threshold, the margin of the throttle valve jamming fault is determined to be "satisfied".

[0009] As a preferred embodiment of the rule engine judgment method for OBD test data described in this invention, the special faults include SCR system urea consumption deviation faults. The special fault handling process adopts independent margin analysis rules, which are differentiated from the margin analysis rules of other faults. Specifically, it includes: obtaining the deviation value between the actual urea consumption and the theoretical urea consumption of the SCR system; directly comparing the deviation value with the preset urea consumption deviation warning value and urea consumption deviation limit value; the urea consumption deviation warning value and urea consumption deviation limit value are independent of the warning values ​​and limits of other faults; and based on the comparison results, obtaining a three-level judgment conclusion of "meets the conditions / poor robustness / does not meet the conditions".

[0010] As a preferred embodiment of the rule engine judgment method for OBD test data described in this invention, step S102, which involves reading the configuration, obtaining the fault list, and the warning values ​​and limits for each fault, specifically includes: the configuration file is preset or modified by the user in the rule configuration interface; the configuration file contains fault identifiers, warning value parameters corresponding to each fault identifier, and limit parameters; the warning value is used to characterize the tolerance lower limit in fault margin analysis, and the limit is used to characterize the failure threshold in fault margin analysis; the user independently sets their own warning values ​​and limits for different fault types in the rule configuration interface, thereby realizing differentiated margin analysis standards for different faults; when reading the configuration, the warning value and limit corresponding to the fault are matched and extracted from the configuration file according to the fault identifier of the current fault.

[0011] As a preferred embodiment of the rule engine judgment method for OBD test data described in this invention, step S105, which determines whether the fault has been released by monitoring the bit 3 status of the variable, specifically includes: pre-configuring a corresponding monitoring variable for each fault type, wherein bit 3 of the monitoring variable is used to identify the release status of the fault; reading the binary value of bit 3 of the monitoring variable associated with the current fault; if the value of bit 3 is 1, it is determined that the marking is valid, i.e., the fault has been released; if the value of bit 3 is 0, it is determined that the marking is invalid, i.e., the fault has not been released.

[0012] As a preferred embodiment of the rule engine judgment method for OBD test data described in this invention, the three-level judgment conclusion in step S106 is as follows: the relevant calculation quantity is compared with the warning value. If the relevant calculation quantity is less than or equal to the warning value, it is judged as "meeting the condition"; if the relevant calculation quantity is greater than the warning value and greater than or equal to the limit value, it is judged as "poor robustness"; if the relevant calculation quantity is greater than the warning value and less than the limit value, it is judged as "not meeting the condition".

[0013] As a preferred embodiment of the rule engine judgment method for OBD test data described in this invention, the final conclusion obtained in step S107 by combining the fault release status and the margin analysis results includes the following scenarios: when the fault has been released and the margin analysis conclusion is "satisfied", the final conclusion is "compliant with the conditions"; when the fault has been released and the margin analysis conclusion is "poor robustness", the final conclusion is "incompatible with the conditions"; when the fault has been released and the margin analysis conclusion is "not satisfied with the conditions", the final conclusion is "incompatible with the conditions"; when the fault has not been released, the final conclusion is "incompatible with the conditions" regardless of the margin analysis result.

[0014] As a preferred embodiment of the rule engine judgment method for OBD test data described in this invention, step S108, which records the judgment results and basis, specifically includes: for each fault, recording the following judgment basis information—fault identifier, judgment result of fault release status and corresponding 3-bit read value, three-level conclusion of margin rationality analysis and corresponding related calculation quantity value, comprehensive judgment final conclusion and timestamp of each judgment step; the judgment basis is stored in the memory in a structured data format for subsequent traceability and query.

[0015] As a preferred embodiment of the rule engine judgment method for OBD test data described in this invention, step S109, which outputs a summary result, specifically includes: generating a summary report containing all fault judgment results. The summary report includes a list of fault identifiers, the final conclusion for each fault, the margin analysis level three conclusion for each fault, and the fault release status for each fault. The summary report is visually represented by status lights, which include green and red status lights. A green status light indicates that the final conclusion of the fault is "meets the conditions," and a red status light indicates that the final conclusion of the fault is "does not meet the conditions." The summary report also includes links or references to the specific basis for each judgment, allowing users to click and view the detailed judgment process.

[0016] Secondly, to further address the aforementioned technical problems, the present invention provides a rule engine judgment device for OBD test data, comprising: a rule configuration module for providing a rule configuration interface, supporting users to preset or modify the trigger conditions for fault release status and the warning values ​​and limits corresponding to each fault margin analysis; a rule engine judgment module for reading the configuration and executing automated judgment logic, including: reading the bit3 dot status of the associated variable to determine whether the fault has been released, and for released faults, comparing the relevant computational load with the warning value and limit to obtain a three-level margin analysis conclusion of "meets the conditions / poor robustness / does not meet the conditions"; a special fault handling module for executing a dedicated judgment algorithm for special faults; and a result output module for outputting the judgment conclusion for each fault and recording the specific basis for each judgment.

[0017] The beneficial effects of this invention are as follows: By constructing a standardized bit3 dot-matrix status determination rule and a three-level margin analysis system of warning values / limits, this invention eliminates the inconsistency in determination results caused by differences in personal experience in traditional manual analysis, ensuring the complete repeatability and objectivity of the determination conclusions. For special faults involving dynamic changes, such as throttle valve sticking, a five-step exclusive determination algorithm is designed: "absolute deviation calculation → 15% threshold status mapping → continuous segment search → duration calculation → threshold comparison." This transforms traditional single-point instantaneous judgment into duration analysis, effectively filtering signal fluctuation interference and significantly reducing the false judgment rate. Simultaneously, it provides a completely independent algorithm for urea consumption deviation faults in SCR systems. The differentiated margin analysis standard embodies the refined design philosophy of "one standard for one type of fault." Based on this, the cyclic judgment architecture of the rule engine enables fully automated batch processing of the fault list, improving efficiency by more than two orders of magnitude compared to the traditional manual mode that takes several hours. The system records the complete judgment chain for each fault in a structured format, including the 3-bit read value, related calculation values, conclusions of each step, and timestamps. Combined with the status light visual summary report and the flexible threshold adjustment function of the rule configuration interface, the system comprehensively improves the overall technical level of OBD test data post-processing from multiple dimensions, such as judgment quality stability, reduced compliance risks, accelerated development iteration, and scenario adaptability. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein: Figure 1 This is a flowchart illustrating the implementation of the present invention in Example 1. Detailed Implementation

[0019] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0020] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.

[0021] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.

[0022] Example 1 Reference Figure 1 This is the first embodiment of the present invention, which provides a rule engine determination method for OBD test data, including the following steps: S101: Input preprocessed test data and configuration file Preferably, the preprocessed test data are OBD test data that have undergone time alignment, outlier removal, and unit standardization.

[0023] Specifically, the test data comes from the CAN bus data collected by the vehicle's OBD system during bench testing or road testing. The data includes at least the time series data of each fault-related monitoring variable, and the time series data contains the timestamp of each sampling moment and its corresponding variable value.

[0024] Further preprocessing includes: interpolating and aligning the raw CAN bus data according to a unified time base so that all monitored variables have corresponding values ​​at the same time point; removing outliers that exceed a reasonable physical range, which is determined by the range and engineering units of each variable; and converting the values ​​of all variables into engineering units.

[0025] Furthermore, the configuration file is a structured file in XML or JSON format, containing a list of fault identifiers and corresponding judgment parameters for each fault identifier. The judgment parameters include at least warning values ​​and limit values.

[0026] Specifically, the test data is stored in time series format. Each data record contains a timestamp field and multiple monitoring variable fields. The monitoring variables include, but are not limited to: engine speed, vehicle speed, throttle opening, oxygen sensor voltage, fuel trim value, EGR valve opening, turbocharger pressure, NOx concentration upstream and downstream of the SCR system, urea injection quantity, etc. Each fault type is pre-associated with one or more monitoring variables to calculate the relevant computational quantities for that fault.

[0027] For example, in an OBD compliance verification test of a certain model of gasoline vehicle, the test vehicle was operated on a chassis dynamometer according to the NEDC (New European Driving Cycle) conditions. The on-board OBD system collected CAN bus data at a sampling frequency of 10Hz for 1200 seconds, obtaining a total of 12001 time-series data records (including timestamps from 0 to 1200 seconds). After the test, the engineer imported the raw CAN bus data into the host computer analysis software. The software first performed preprocessing on the data: interpolating and aligning the CAN messages sent by each controller according to a unified time base (absolute timestamps in milliseconds) to ensure that monitored variables such as engine speed, vehicle speed, throttle opening, front oxygen sensor voltage, rear oxygen sensor voltage, upstream catalytic converter temperature, downstream catalytic converter temperature, actual intake air flow, and target intake air flow have corresponding values ​​at each sampling time; then, outliers exceeding the reasonable physical range of each variable were removed, for example, values ​​exceeding the reasonable physical range of each variable were removed. Engine speed values ​​exceeding 8000 rpm are marked as abnormal and removed. Finally, all variable values ​​are converted to engineering units (e.g., engine speed is converted to rpm, temperature to ℃). After preprocessing, engineers load the configuration file corresponding to the vehicle model through the rule configuration interface. This file is in XML format and contains a list of fault identifiers (e.g., P0420 indicates a catalytic converter efficiency fault, P0505 indicates an idle speed control system fault, P2106 indicates a throttle valve actuator control system fault, etc.) and judgment parameters (warning values ​​and limits) corresponding to each fault identifier. The preprocessed test data is stored in the database in time series form. Each data record contains a timestamp and the values ​​of all the monitored variables mentioned above. At the same time, a mapping table is established between fault types and monitored variables. For example, the catalytic converter efficiency fault P0420 is associated with the front oxygen sensor signal and the rear oxygen sensor signal to calculate the actual conversion efficiency of the catalytic converter.

[0028] S102: Read the configuration and obtain the fault list and the warning values ​​and limits for each fault.

[0029] Preferably, step S102, which involves reading the configuration, obtaining the fault list, and the warning values ​​and limits for each fault, specifically includes: The configuration file is preset or modified by the user in the rule configuration interface. The configuration file contains fault identifiers, warning value parameters and limit parameters that correspond one-to-one with each fault identifier. The warning value is used to characterize the tolerance lower limit in fault margin analysis, and the limit value is used to characterize the failure threshold in fault margin analysis. The user can independently set their own warning value and limit value for different fault types in the rule configuration interface, thereby realizing differentiated margin analysis standards for different faults. When reading the configuration, the warning value and limit value corresponding to the current fault are matched and extracted from the configuration file based on the fault identifier of the current fault.

[0030] Specifically, the fault list contains an enumerated list of all fault types to be analyzed. Each fault type has a unique fault identifier, which corresponds one-to-one with the Diagnostic Trouble Code (DTC) defined in the OBD standard.

[0031] For example, the software reads a user-pre-configured XML configuration file containing a list of 15 fault types to be analyzed. These fault types cover catalytic converter efficiency faults, oxygen sensor response faults, EGR flow faults, throttle valve sticking faults, and SCR system urea consumption deviation faults. Each fault type has a unique fault identifier (corresponding one-to-one with the DTCs defined in the OBD standard). For example, P0420 corresponds to a catalytic converter efficiency fault, with a warning value set to 90% and a limit value set to 75%. This means that a warning is triggered when the catalytic converter efficiency is lower than or equal to 90%. When the error is below 75%, it is determined that the limit condition is not met; P2106 corresponds to a throttle valve actuator control system fault, with its warning value set to 10% and the limit value set to 20%, indicating that when the absolute value of the throttle valve deviation exceeds 10%, a warning is triggered, and when it exceeds 20%, it is determined that the limit condition is not met; P0133 corresponds to an oxygen sensor response fault, with its warning value set to 0.5 seconds and the limit value set to 0.8 seconds. The software matches and extracts the corresponding warning value (90%) and limit value (75%) from the configuration file based on the fault identifier P0420 of the current fault to be determined, as the judgment benchmark for subsequent margin rationality analysis.

[0032] S103: Select an undetermined fault.

[0033] Preferably, the undetermined faults are selected sequentially according to the order in the fault list. The order of the fault list is preset by the user or automatically arranged according to the lexicographical order of the fault identifiers.

[0034] Furthermore, after each fault is selected, an independent decision context is created for that fault. The decision context contains the fault identifier, the list of associated monitoring variables, the warning value, the limit value, and the fault type flag. The fault type flag is used to identify whether the fault is a normal fault or a special fault.

[0035] Specifically, selecting an undetermined fault means choosing a fault from the set of faults that have not yet completed the release status determination and margin analysis as the current processing object. By setting a determination completion flag for each determined fault or maintaining a pointer to a fault to be determined, it is ensured that each fault is processed only once.

[0036] Furthermore, after selecting a fault, first check whether there are valid data records for the associated monitoring variables of the fault in the test data. If there are no valid data records, record "data missing" and skip the fault.

[0037] Specifically, if a fault has no valid data throughout the entire data collection period, the result is "data invalid", and the fault will not be included in the final statistics.

[0038] Furthermore, associated monitoring variables refer to the observation variables defined in the OBD standard used to determine whether the fault has occurred. The mapping relationship between each fault type and one or more monitoring variables is pre-stored in the configuration file.

[0039] For example, the software selects the first undetermined fault from the set of faults that have not yet been processed, according to the order of the fault list (arranged in lexicographical order of fault identifiers, i.e., P0133→P0420→P0505→P2106→……). After selecting P0420 (catalytic converter conversion efficiency fault), the software creates an independent determination context for this fault. This context includes the fault identifier "P0420", the list of associated monitoring variables (pre-oxygen sensor voltage signal and post-oxygen sensor voltage signal), the warning value "90%", the limit value "75%", and the fault type label "normal fault". The software then checks whether there are valid data records for the associated monitoring variables of P0420 in the 1200-second test data. After checking and confirming that the pre-oxygen sensor and post-oxygen sensor have continuous valid data throughout the entire test period without any missing data, the software can proceed to the next step of determination.

[0040] S104: Determine if the fault type is a special fault. If so, proceed to the special fault handling process.

[0041] Preferably, special faults include throttle valve sticking faults, and the special fault handling process includes the following sub-steps: Step S1041: Obtain the actual opening value and the target opening value of the throttle valve, and calculate the absolute value of the difference between the two as the absolute value of the deviation of the throttle valve; Step S1042: Compare the absolute value of the deviation with a preset deviation threshold of 15%. When the absolute value of the deviation is greater than or equal to 15%, map the state value at that moment to 1. When the absolute value of the deviation is less than 15%, map the state value at that moment to 0, thereby converting the continuous time series data into a state sequence composed of 0 and 1. Step S1043: In the mapped state sequence, find all data segments with consecutive state values ​​of 1, and determine the start and end times of each consecutive data segment; Step S1044: Calculate the corresponding duration based on the start and end times of each continuous data segment. The duration is the time difference between the end time and the start time. Step S1045: Compare the duration with a preset duration threshold. If the duration is greater than or equal to the duration threshold, the margin of the throttle valve sticking fault is determined to be "not met"; if the duration is less than the duration threshold, the margin of the throttle valve sticking fault is determined to be "met".

[0042] Specifically, special faults include SCR system urea consumption deviation faults. The handling process for these special faults employs independent margin analysis rules, differentiated from the margin analysis rules for other faults. Specifically, this includes: Obtain the deviation between the actual urea consumption and the theoretical urea consumption of the SCR system. Compare this deviation with the preset urea consumption deviation warning value and urea consumption deviation limit value. The urea consumption deviation warning value and urea consumption deviation limit value are independent of the warning values ​​and limits of other faults. Based on the comparison results, a three-level judgment conclusion of "meets the conditions / poor robustness / does not meet the conditions" is obtained.

[0043] For example, the software reads the fault type marker of the current fault P0420 and determines it to be a "normal fault" rather than a "special fault." Therefore, it does not proceed to the special fault handling process but directly enters step S105 to determine the fault release status. However, for the subsequently processed fault P2106 (throttle valve stuck fault), the software identifies its fault type marker as a "special fault" in step S104 and then proceeds to the special fault handling process: The software first obtains the time series data (all data points within 1200 seconds) of the actual opening value and the target opening value of the throttle valve, and calculates the absolute value of the difference between the two points as the absolute value of the deviation. Then, it compares the absolute value of the deviation with a preset 15% deviation threshold. If the absolute value of the deviation is continuously greater than or equal to 15% within the time period of 600 to 620 seconds, the software will terminate the fault. Within a continuous time period, the state value at each sampling moment is mapped to 1, and the remaining moments are mapped to 0, forming a state sequence composed of 0 and 1. Then, the software searches for a data segment with a continuous state of 1 in the state sequence, finding a continuous segment from 600 seconds to 620 seconds, with a start time of 600 seconds and an end time of 620 seconds. The calculated duration is 20 seconds. The software compares this duration of 20 seconds with a preset duration threshold (assumed to be 15 seconds). Since 20 seconds is greater than 15 seconds, the margin for the throttle valve sticking fault is determined to be "not met". For the SCR system urea consumption deviation fault, the software uses a completely independent margin analysis rule, comparing its deviation value with the preset urea consumption deviation warning value and limit value (this set of values ​​is configured independently of other faults) to obtain a unique three-level judgment conclusion.

[0044] S105: The fault is determined by monitoring the status of bit 3 of the variable. If the mark is valid, the fault is determined to be released; if the mark is invalid, the fault is determined to be not released.

[0045] Specifically, in step S105, the fault is determined by monitoring the status of bit 3 of the variable, which includes: Pre-configure corresponding monitoring variables for each fault type. The 3rd bit of the monitoring variable is used to identify the release status of the fault. Read the binary value of the 3rd bit of the monitoring variable associated with the current fault. If the value of the 3rd bit is 1, it is determined that the mark is valid, that is, the fault has been released. If the value of bit 3 is 0, it is determined that the dot is invalid, that is, the fault has not been released.

[0046] For example, the software reads the associated monitoring variable of the current fault P0420, namely the address value of the DTC status byte register corresponding to P0420, extracts the binary value of the register from the corresponding field of the test data, and checks the status of its bit 3. After reading, the bit 3 of the DTC status byte corresponding to P0420 changes from 0 to 1 when the test reaches 900 seconds, and remains at 1 until the end of the test. The software determines that the value of the bit 3 is 1, that is, the dot is valid. Therefore, it determines that the fault P0420 has been released at 900 seconds. In the determination basis record, the software records the reading value (1) of the bit 3 and the release time (900 seconds).

[0047] S106: For released faults, perform a margin rationality analysis, compare the relevant calculations with the warning value and the limit value, and draw a three-level judgment conclusion: if the relevant calculations meet the warning value condition, it is judged as "meeting the condition"; if the relevant calculations do not meet the limit value condition, it is judged as "not meeting the condition"; if it is between the two, it is judged as "poor robustness".

[0048] Specifically, the third-level judgment conclusion in step S106 is as follows: The relevant calculation amount is compared with the warning value. If the relevant calculation amount is less than or equal to the warning value, it is determined that the condition is "met". If the relevant calculation amount is greater than the warning value and greater than or equal to the limit value, it is judged as "poor robustness"; If the relevant calculation amount is greater than the warning value but less than the limit value, it is determined that "the condition is not met".

[0049] Furthermore, the relevant computational quantity refers to the quantitative indicator used to characterize the severity of the fault, calculated based on the values ​​of associated monitoring variables in the test data for the current fault type. Different fault types correspond to different calculation methods for the relevant computational quantity. For example, for oxygen sensor response faults, the relevant computational quantity is the response time; for catalyst conversion efficiency faults, the relevant computational quantity is the conversion efficiency percentage; and for EGR flow faults, the relevant computational quantity is the deviation percentage between the actual flow rate and the target flow rate.

[0050] Furthermore, the warning threshold refers to the lower tolerance limit in fault margin analysis—when the relevant computational cost is better than or equal to this value, it indicates that the current fault margin setting meets the requirements and the system has sufficient safety boundaries. The limit value refers to the failure threshold in fault margin analysis. When the relevant calculation is worse than this value, it indicates that the current fault margin setting is seriously insufficient and cannot meet the diagnostic requirements. The warning value and the limit value together constitute the boundary conditions of the three-level evaluation.

[0051] For example, since fault P0420 has been determined to be in a released state, the software performs a margin reasonableness analysis. Based on the associated monitoring variables of P0420 (the voltage signals of the front and rear oxygen sensors), the software extracts the oxygen sensor signals upstream and downstream of the catalyst from the pre-processed test data, calculates the actual conversion efficiency of the catalyst for pollutants in the exhaust gas throughout the NEDC cycle, and obtains an average conversion efficiency of 92.5%. The software compares the calculated 92.5% with the warning value of 90% and the limit value of 75% for P0420: Is 92.5% greater than 90% (the warning value) and less than 75%? No, 92.5% being less than 75% is not valid. According to the three-level judgment logic—if the computational amount is less than or equal to the warning value, it is "condition met"; if the computational amount is greater than the warning value and greater than or equal to the limit value, it is "poor robustness"; if the computational amount is greater than the warning value and less than the limit value, it is "condition not met"—92.5% > 90% and 92.5% ≥ 75%. Therefore, the margin analysis conclusion for P0420 is "poor robustness". The software records the relevant computational amount value of 92.5% and its three-level conclusion "poor robustness" in the judgment criteria.

[0052] S107: Based on the combined fault release status and margin analysis results, the final conclusion is drawn: the final conclusion of the current fault is "meets the conditions" only if the fault has been released and the margin analysis is "satisfied"; otherwise, it is "does not meet the conditions".

[0053] Specifically, step S107 draws a final conclusion based on the combined fault release status and margin analysis results, including the following scenarios: When the fault has been released and the margin analysis conclusion is "condition met", the final conclusion is "condition satisfied". When the fault has been released and the margin analysis conclusion is "poor robustness", the final conclusion is "not meeting the conditions". When the fault has been released and the margin analysis conclusion is "condition not met", the final conclusion is "condition not met". When the fault is not released, regardless of the margin analysis results, the final conclusion is "not in compliance with the conditions".

[0054] For example, the software synthesizes the release status and margin analysis results of fault P0420 to arrive at a final conclusion. The fault release status of P0420 is "released" (bit 3 is 1), and the margin analysis conclusion is "poor robustness". According to the comprehensive judgment logic: when the fault has been released and the margin analysis conclusion is "poor robustness", the final conclusion is "not meeting the conditions". Therefore, the software determines that the final conclusion of P0420 is "not meeting the conditions", and records the comprehensive judgment basis in the judgment record: fault released (bit 3=1, release time 900 seconds), margin analysis is "poor robustness" (calculation amount 92.5%, warning value 90%, limit value 75%), and the final conclusion is "not meeting the conditions".

[0055] S108: Record the judgment result and basis, and determine whether there are any undetermined faults. If there are, return to step S103; otherwise, proceed to step S109.

[0056] Specifically, step S108 records the judgment result and its basis, including: For each fault, record the following judgment basis information: fault identifier, judgment result of fault release status and corresponding 3-bit read value, three-level conclusion of margin rationality analysis and corresponding related calculation amount value, comprehensive judgment final conclusion and timestamp of each judgment step. The criteria for judgment are stored in memory in a structured data format for subsequent traceability and query.

[0057] Furthermore, the structured data format is either a relational database table format or a JSON document format. When a relational database table format is used, each judgment record is a row in the database, containing a fault identifier field, a 3-bit value field, a related calculation quantity value field, a three-level conclusion field, a final conclusion field, and a timestamp field.

[0058] When using the JSON document format, each fault determination record is a separate JSON object containing all the above fields.

[0059] For example, the software fully records the judgment process of fault P0420 and stores the following judgment basis information in JSON document format: fault identifier "P0420", judgment result of fault release status "released" and corresponding bit 3 read value "1", third-level conclusion of margin rationality analysis "poor robustness" and corresponding related calculation quantity value "92.5%", final comprehensive judgment conclusion "does not meet the conditions", and timestamps of each judgment step (including release status judgment timestamp, margin analysis timestamp and comprehensive judgment timestamp). After recording, the software checks whether there are any unjudged faults in the current fault list. There are 15 faults in the current list. The judgment of P0420 has been completed, and the remaining 14 faults have not been processed. Therefore, the software returns to step S103 and continues to select the next unjudged fault to perform the same judgment process until all 15 faults have been processed.

[0060] S109: Output summary results.

[0061] Specifically, step S109 outputs the summary results, which include: Generate a summary report containing all fault determination results. The summary report includes a list of fault identifiers, the final conclusion for each fault, the margin analysis level three conclusion for each fault, and the fault release status for each fault. The summary report is visually represented by status lights, which include green and red status lights. A green status light indicates that the final conclusion of the fault is "meets the conditions", and a red status light indicates that the final conclusion of the fault is "does not meet the conditions". The summary report also includes links or references to the specific basis for each judgment, allowing users to click and view the detailed judgment process.

[0062] Furthermore, the summary report also includes statistical summary information, which includes: the total number of faults, the number of faults that meet the conditions, the number of faults that do not meet the conditions, the number of faults that have been released, the number of faults that have not been released, and the distribution statistics of each level three conclusion (meeting the conditions / poor robustness / not meeting the conditions).

[0063] Specifically, the status lights are circular indicator icons in the graphical user interface. A green status light indicates that the final conclusion of the fault is "condition met", and a red status light indicates that the final conclusion of the fault is "condition not met".

[0064] For faults with "poor robustness", although the final conclusion is also displayed as a red status light, the specific conclusion of "poor robustness" can be marked in the detailed judgment criteria to help users identify faults in a critical state.

[0065] Furthermore, the summary report is output in at least one of the following formats: HTML web page format, PDF document format, or Excel spreadsheet format, allowing users to choose to view or export it according to their actual needs.

[0066] For example, after all 15 faults are determined, the software generates a summary report. The report presents each fault in list form: fault identifier (e.g., P0133, P0420, P0505, P2106, etc.), corresponding margin analysis level 3 conclusion (meets conditions / poor robustness / does not meet conditions), corresponding fault release status (released / not released), and final conclusion (meets conditions / does not meet conditions). The report uses status lights for visual representation: P0133 (oxygen sensor response fault) has a final conclusion of "meets conditions," and its corresponding status light is green; P0420 has a final conclusion of "does not meet conditions," and its corresponding status light is red; P2106 (throttle valve stuck)... The final conclusion for the delayed fault is also "not meeting the conditions," and its status light is displayed in red. The top of the report also provides statistical summary information: total number of faults 15, 8 faults meeting the conditions, 7 faults not meeting the conditions, 12 faults released, 3 faults not released, and the distribution statistics of the three-level conclusions (8 meeting the conditions, 2 with poor robustness, and 5 not meeting the conditions). The report also includes hyperlinks to the specific basis for each judgment. Engineers can click the "View Basis" link corresponding to P0420 to open a detailed window to view the complete judgment process record of the fault. Engineers can export the summary report to PDF format for archiving or to Excel format for further data analysis and processing as needed.

[0067] In summary, this invention eliminates the inconsistency in judgment results caused by differences in personal experience in traditional manual analysis by constructing a standardized bit3-point status judgment rule and a three-level margin analysis system of warning values / limits, ensuring the complete repeatability and objectivity of the judgment conclusions. For special faults involving dynamic changes, such as throttle valve sticking, a five-step dedicated judgment algorithm is designed: "absolute deviation calculation → 15% threshold state mapping → continuous segment search → duration calculation → threshold comparison." This transforms traditional single-point instantaneous judgment into duration analysis, effectively filtering signal fluctuation interference and significantly reducing the false judgment rate. Simultaneously, it configures a completely independent differentiated margin for urea consumption deviation faults in SCR systems. The system's analytical standards embody the refined design philosophy of "one standard for each type of fault." Based on this, the system's cyclical decision-making architecture using a rule engine enables fully automated batch processing of fault lists, improving efficiency by more than two orders of magnitude compared to the traditional manual method that takes several hours. The system records the complete chain of judgment criteria for each fault in a structured format, including the 3-bit read value, relevant calculation values, conclusions of each step, and timestamps. Combined with the status light visualization summary reports and the flexible threshold adjustment function of the rule configuration interface, the system comprehensively improves the overall technical level of OBD test data post-processing from multiple dimensions, including judgment quality stability, reduced compliance risks, accelerated development iteration, and scenario adaptability.

[0068] Example 2, an embodiment of the present invention, provides a rule engine judgment device for OBD test data, comprising: a rule configuration module for providing a rule configuration interface, supporting users to preset or modify the trigger conditions for fault release status and the warning values ​​and limits corresponding to each fault margin analysis; a rule engine judgment module for reading the configuration and executing automated judgment logic, including: reading the bit3 dot status of the associated variable to determine whether the fault has been released, and for released faults, comparing the relevant computational load with the warning value and limit to obtain a three-level margin analysis conclusion of "meets the conditions / poor robustness / does not meet the conditions"; a special fault handling module for executing a dedicated judgment algorithm for special faults; and a result output module for outputting the judgment conclusion for each fault and recording the specific basis for each judgment.

[0069] Example 3 is an embodiment of the present invention, which differs from the previous embodiment in that: If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0070] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-including system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.

[0071] More specific examples (a non-exhaustive list) of computer-readable media include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0072] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0073] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A rule engine-based method for determining OBD test data, characterized in that: include: Step S101: Input the preprocessed experimental data and configuration file; Step S102: Read the configuration and obtain the fault list and the warning value and limit value of each fault; Step S103: Select an undetermined fault; Step S104: Determine whether the fault type is a special fault. If so, proceed to the special fault handling process. Step S105: Determine whether the fault has been released by monitoring the bit3 status of the variable. If the mark is valid, the fault is determined to be released; if the mark is invalid, the fault is determined to be not released. Step S106: For released faults, perform a margin rationality analysis, compare the relevant calculations with the warning value and the limit value, and draw a three-level judgment conclusion: if the relevant calculations meet the warning value condition, it is judged as "meeting the condition"; if the relevant calculations do not meet the limit value condition, it is judged as "not meeting the condition"; if it is between the two, it is judged as "poor robustness". Step S107: Based on the combined fault release status and margin analysis results, draw the final conclusion: the final conclusion of the current fault is "meets the conditions" only if the fault has been released and the margin analysis is "satisfied"; otherwise, it is "does not meet the conditions". Step S108: Record the judgment result and basis, and determine whether there are any undetermined faults. If there are, return to step S103; otherwise, proceed to step S109. Step S109: Output the summary results.

2. The rule engine determination method for OBD test data as described in claim 1, characterized in that: The special faults include throttle valve sticking faults, and the special fault handling process includes the following sub-steps: Step S1041: Obtain the actual opening value and the target opening value of the throttle valve, and calculate the absolute value of the difference between the two as the absolute value of the deviation of the throttle valve; Step S1042: Compare the absolute value of the deviation with a preset deviation threshold of 15%. When the absolute value of the deviation is greater than or equal to 15%, map the state value at that moment to 1. When the absolute value of the deviation is less than 15%, map the state value at that moment to 0, thereby converting the continuous time series data into a state sequence composed of 0 and 1. Step S1043: In the mapped state sequence, find all data segments with consecutive state values ​​of 1, and determine the start and end times of each consecutive data segment; Step S1044: Calculate the corresponding duration based on the start and end times of each continuous data segment, where the duration is the time difference between the end time and the start time; Step S1045: Compare the duration with a preset duration threshold. If the duration is greater than or equal to the duration threshold, the margin of the throttle valve sticking fault is determined to be "not satisfied"; if the duration is less than the duration threshold, the margin of the throttle valve sticking fault is determined to be "satisfied".

3. The rule engine determination method for OBD test data as described in claim 1, characterized in that: The special faults include SCR system urea consumption deviation faults. The handling process for these special faults adopts independent margin analysis rules, which are differentiated from the margin analysis rules for other faults. Specifically, it includes: The deviation between the actual urea consumption and the theoretical urea consumption of the SCR system is obtained. This deviation is then directly compared with the preset urea consumption deviation warning value and urea consumption deviation limit value. The urea consumption deviation warning value and urea consumption deviation limit value are independent of the warning values ​​and limits of other faults. Based on the comparison results, a three-level judgment conclusion is drawn: "condition met / poor robustness / condition not met".

4. The rule engine determination method for OBD test data as described in claim 1, characterized in that: The step S102, which involves reading the configuration, obtaining the fault list, and the warning values ​​and limits for each fault, specifically includes: The configuration file is preset or modified by the user in the rule configuration interface. The configuration file contains fault identifiers, warning value parameters and limit parameters that correspond one-to-one with each fault identifier. The warning value is used to characterize the tolerance lower limit in fault margin analysis, and the limit value is used to characterize the failure threshold in fault margin analysis. The user can independently set their own warning value and limit value for different fault types in the rule configuration interface, thereby realizing differentiated margin analysis standards for different faults. When reading the configuration, the warning value and limit value corresponding to the current fault are matched and extracted from the configuration file according to the fault identifier of the current fault.

5. The rule engine determination method for OBD test data as described in claim 1, characterized in that: Step S105, which determines whether the fault has been released by monitoring the bit 3 status of the variable, specifically includes: For each fault type, a corresponding monitoring variable is pre-configured. The 3rd bit of the monitoring variable is used to identify the release status of the fault. The binary value of the 3rd bit of the monitoring variable associated with the current fault is read. If the value of the 3rd bit is 1, it is determined that the mark is valid, that is, the fault has been released. If the value of bit 3 is 0, it is determined that the dot is invalid, that is, the fault has not been released.

6. The rule engine determination method for OBD test data as described in claim 1, characterized in that: The specific three-level determination conclusion in step S106 is as follows: The relevant calculation amount is compared with the warning value. If the relevant calculation amount is less than or equal to the warning value, it is determined that the condition is "met". If the relevant calculation amount is greater than the warning value and greater than or equal to the limit value, it is judged as "poor robustness"; If the relevant calculation amount is greater than the warning value but less than the limit value, it is determined that "the condition is not met".

7. The rule engine determination method for OBD test data as described in claim 1, characterized in that: The final conclusion drawn in step S107, which combines the fault release status with the margin analysis results, includes the following scenarios: When the fault has been released and the margin analysis conclusion is "condition met", the final conclusion is "condition satisfied". When the fault has been released and the margin analysis conclusion is "poor robustness", the final conclusion is "not meeting the conditions". When the fault has been released and the margin analysis conclusion is "condition not met", the final conclusion is "condition not met". When the fault is not released, regardless of the margin analysis results, the final conclusion is "conditions are not met".

8. The rule engine determination method for OBD test data as described in claim 1, characterized in that: The step S108, which records the determination result and its basis, specifically includes: For each fault, record the following judgment basis information: fault identifier, judgment result of fault release status and corresponding 3-bit read value, three-level conclusion of margin rationality analysis and corresponding related calculation amount value, comprehensive judgment final conclusion and timestamp of each judgment step. The determination criteria are stored in the memory in a structured data format for subsequent traceability and query.

9. The rule engine determination method for OBD test data as described in claim 1, characterized in that: The output of the summary result in step S109 specifically includes: Generate a summary report containing all fault determination results. The summary report includes a list of fault identifiers, the final conclusion for each fault, the margin analysis level three conclusion for each fault, and the fault release status for each fault. The summary report is visually represented by status lights, which include green and red status lights. A green status light indicates that the final conclusion of the fault is "meets the conditions", and a red status light indicates that the final conclusion of the fault is "does not meet the conditions". The summary report also includes links or references to the specific basis for each judgment, allowing users to click and view the detailed judgment process.

10. A rule engine determination device for OBD test data, based on the rule engine determination method for OBD test data according to any one of claims 1 to 9, characterized in that: include, The rule configuration module provides a rule configuration interface, allowing users to preset or modify the trigger conditions for fault release status, as well as the warning values ​​and limits corresponding to each fault margin analysis. The rule engine judgment module is used to read the configuration and execute automated judgment logic, including: reading the bit3 status of the associated variables to determine whether the fault has been released, and for released faults, comparing the relevant computational load with the warning value and limit value to draw a three-level margin analysis conclusion of "meets the conditions / poor robustness / does not meet the conditions". A special fault handling module is used to execute a dedicated judgment algorithm for special faults; The results output module is used to output the judgment conclusion for each fault and record the specific basis for each judgment.