Nothing Special   »   [go: up one dir, main page]

CN115167372A - Fault determination method, fault determination device, processor and electronic control unit - Google Patents

Fault determination method, fault determination device, processor and electronic control unit Download PDF

Info

Publication number
CN115167372A
CN115167372A CN202210934333.6A CN202210934333A CN115167372A CN 115167372 A CN115167372 A CN 115167372A CN 202210934333 A CN202210934333 A CN 202210934333A CN 115167372 A CN115167372 A CN 115167372A
Authority
CN
China
Prior art keywords
target
voltage
value
acquisition
sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210934333.6A
Other languages
Chinese (zh)
Inventor
高鑫
谢诗轩
高锐
章天翮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weichai Power Co Ltd
Weifang Weichai Power Technology Co Ltd
Original Assignee
Weichai Power Co Ltd
Weifang Weichai Power Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weichai Power Co Ltd, Weifang Weichai Power Technology Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN202210934333.6A priority Critical patent/CN115167372A/en
Publication of CN115167372A publication Critical patent/CN115167372A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0259Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
    • G05B23/0262Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)

Abstract

The application provides a fault determination method, a fault determination device, a processor and an electronic control unit, wherein the fault determination method comprises the following steps: respectively calculating the voltage value of a target detection point of one acquisition time point by adopting a plurality of preset calculation formulas to obtain a plurality of voltage calculation values; calculating the difference value between each voltage calculation value and each voltage acquisition value to obtain a target difference value, and calculating the ratio of the target difference value to each voltage acquisition value to obtain a plurality of target percentages; determining a target fault type of the sensor at least according to a plurality of target percentages corresponding to one acquisition cycle and a preset deviation range, or determining a target fault type of the connector at least according to voltage calculation values and voltage acquisition values of a plurality of acquisition cycles, wherein the target fault type at least comprises one of the following types: the sensor is short-circuited to the ground, the sensor is short-circuited to the power supply, the sensor is open-circuited, and the connector is connected in a virtual mode, so that the problem that the fault type of the connector or the sensor is difficult to determine in the prior art is solved.

Description

Fault determination method, fault determination device, processor and electronic control unit
Technical Field
The present application relates to the field of vehicle control, and in particular, to a fault determination method, a fault determination apparatus, a computer-readable storage medium, a processor, and an electronic control unit.
Background
An Electronic Control Unit (ECU) is generally connected to a plurality of sensors to acquire data information of the sensors, so as to logically Control the engine. The connection between the electronic control unit and the corresponding sensor generally requires the use of a connector and a wire harness. For example, connectors are connected to both ends of the wire harness, respectively, wherein one end of the wire harness connected with the connectors is connected to the sensor, and the other end of the wire harness connected with the connectors is connected to the electronic control unit.
In the prior art, in order to determine whether a connector connected to one end of an electronic control unit or a sensor connected to the electronic control unit has a fault, an RC circuit (Resistor-capacitor circuit) and an analog acquisition module are generally disposed in the electronic control unit, where the analog acquisition module is used to acquire a voltage on a branch between a middle filter capacitor and a filter Resistor of the RC circuit. And then whether the connector or the sensor has a fault is determined through the voltage acquired by the analog quantity acquisition module. For example, a typical analog signal is a voltage type signal or a resistance type signal of 0 to 5V. When the analog quantity acquisition module acquires 0V or 5V, the fault that the voltage value exceeds the lower limit or the upper limit can be reported. However, in this case, the specific type of the fault in which the voltage value exceeds the lower limit or exceeds the upper limit cannot be distinguished, and for example, it cannot be determined whether the voltage value exceeds the upper limit or exceeds the lower limit due to an external short circuit or an open circuit. In addition, when the connector is connected in a virtual manner, the voltage value of the RC circuit fluctuates, so that the upper limit or the lower limit cannot be exceeded, and it is impossible to determine whether the connector is connected in a virtual manner.
Accordingly, a need exists for a method of determining the type of failure of a connector or sensor.
The above information disclosed in this background section is only for enhancement of understanding of the background of the technology described herein and, therefore, certain information may be included in the background that does not form the prior art that is already known in this country to a person of ordinary skill in the art.
Disclosure of Invention
A primary object of the present application is to provide a fault determination method, a fault determination device, a computer-readable storage medium, a processor, and an electronic control unit, so as to solve the problem in the prior art that it is difficult to determine the type of fault of a connector or a sensor.
According to an aspect of the embodiments of the present invention, there is provided a fault determination method, in which an electronic control unit is connected to a sensor at least through a connector, the electronic control unit includes an RC circuit and an analog quantity acquisition module, the analog quantity acquisition module is configured to acquire a voltage acquisition value of a target detection point, the target detection point is located on a branch between a filter resistor and a filter capacitor in the RC circuit, and the fault determination method includes: respectively calculating the voltage value of the target detection point at one acquisition time point by adopting a plurality of preset calculation formulas to obtain a plurality of voltage calculation values, wherein one preset calculation formula corresponds to one voltage calculation value, and a plurality of acquisition time points form an acquisition period; calculating the difference value between each voltage calculation value and each voltage acquisition value to obtain a target difference value, and calculating the ratio of the target difference value to each voltage acquisition value to obtain a plurality of target percentages; determining a target fault type of the sensor at least according to a plurality of target percentages and a preset deviation range corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to the voltage calculation values and the voltage acquisition values of the plurality of acquisition cycles, wherein the target fault type at least comprises one of the following types: short circuit of sensor to ground, short circuit of sensor to power supply, open circuit of sensor, virtual connection of connector.
Optionally, the voltage calculation value includes a first voltage calculation value, a second voltage calculation value, and a third voltage calculation value, and a plurality of preset calculation formulas are used to calculate the target detection point of one acquisition time point respectivelyA voltage value, resulting in a plurality of voltage calculations, comprising: by using
Figure BDA0003782880470000021
Calculating the voltage value of the target detection point to obtain the first voltage calculation value, wherein R 2 Is the resistance value of the filter resistor, C 2 The capacitance value of the filter capacitor is, t is the time interval between the current acquisition time point and the last acquisition time point, U1 is the input voltage of the sensor, and VF1 is the calculated voltage value; by using
Figure BDA0003782880470000022
Calculating the voltage value of the target detection point to obtain the second voltage calculation value, wherein R 1 The resistance value of a pull-up resistor or a pull-down resistor in the RC circuit is shown, and VF2 is the calculated value of the second voltage; by using
Figure BDA0003782880470000023
And calculating the voltage value of the target detection point to obtain a third voltage calculation value, wherein VF3 is the third voltage calculation value.
Optionally, determining a target fault type of the sensor according to at least a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle includes: determining the preset calculation formula corresponding to the voltage calculation value lower than a first preset threshold value as a target calculation formula at the current acquisition time point, or determining the preset calculation formula corresponding to the voltage calculation value higher than a second preset threshold value as the target calculation formula; in the first N acquisition time points of the current acquisition time points, if each target percentage corresponding to the target calculation formula is within the corresponding preset deviation range, determining the target fault type of the sensor according to the fault type corresponding to the target calculation formula, wherein N is less than or equal to the total number of the acquisition time points in one acquisition period.
Optionally according to the target meterCalculating a fault type corresponding to a formula, and determining the target fault type of the sensor, wherein the step of calculating the fault type corresponding to the formula comprises the following steps: in the target calculation formula is
Figure BDA0003782880470000024
Determining the target fault type to be the sensor short circuit to ground; calculating a formula at the target
Figure BDA0003782880470000025
Determining the target fault type to be the sensor open circuit; in the target calculation formula of
Figure BDA0003782880470000026
Determining that the target fault type is a short circuit of the sensor to a power supply.
Optionally, the electronic control unit further includes a counter, and the determining the target fault type of the connector according to at least the voltage calculation value and the voltage acquisition value of a plurality of acquisition cycles includes: it is determined that during a plurality of said acquisition cycles,
Figure BDA0003782880470000031
whether the corresponding voltage calculation values are the same as the voltage acquisition values or not; under the condition that each voltage calculation value is the same as the voltage acquisition value, controlling the counter to increase a preset value to obtain a target counting number; and determining the target fault type as the virtual connection of the connector under the condition that the target counting number exceeds the preset counting number within preset time.
Optionally, the fault determination method further includes: and controlling the counter to reset when the time counted by the counter exceeds the preset time.
According to another aspect of the embodiments of the present invention, there is also provided a fault determination device, in which an electronic control unit is connected to a sensor at least through a connector, the electronic control unit includes an RC circuit and an analog quantity acquisition module, the analog quantity acquisition module is configured to acquire a voltage acquisition value of a target detection point, the target detection point is located on a branch between a filter resistor and a filter capacitor in the RC circuit, and the fault determination device includes: the first calculating unit is used for calculating the voltage value of the target detection point at one acquisition time point respectively by adopting a plurality of preset calculating formulas to obtain a plurality of voltage calculating values, wherein one preset calculating formula corresponds to one voltage calculating value, and a plurality of acquisition time points form an acquisition cycle; the second calculation unit is used for calculating the difference value between each voltage calculation value and each voltage acquisition value to obtain a target difference value, and calculating the ratio of the target difference value to each voltage acquisition value to obtain a plurality of target percentages; a determining unit, configured to determine a target fault type of the sensor according to at least a plurality of target percentages and a preset deviation range corresponding to one acquisition cycle, or determine the target fault type of the connector according to at least the voltage calculation values and the voltage acquisition values of a plurality of acquisition cycles, where the target fault type at least includes one of: short circuit of sensor to ground, short circuit of sensor to power supply, open circuit of sensor, virtual connection of connector.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program executes any one of the failure determination methods.
According to still another aspect of the embodiments of the present invention, there is further provided a processor, where the processor is configured to execute a program, where the program executes any one of the failure determination methods when running.
According to an aspect of the embodiments of the present invention, there is also provided an electronic control unit including a fault determination device configured to execute any one of the fault determination methods.
In the embodiment of the invention, the fault determination method comprises the steps of firstly, adopting a plurality of preset calculation formulas to respectively calculate the voltage values of target detection points at one acquisition time point to obtain a plurality of voltage calculation values; then, determining a plurality of target difference values according to a plurality of voltage calculation values and voltage acquisition values corresponding to one acquisition time point, and determining a plurality of target percentages according to each target difference value and the voltage acquisition value; and finally, determining the target fault type of the sensor at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to the voltage calculation values and the voltage acquisition values of the acquisition cycles. In the scheme, a plurality of preset calculation formulas are collected, and a plurality of voltage calculation values of a target detection point at the same collection time point are calculated respectively; determining a plurality of target percentages of the same acquisition time point according to the plurality of voltage calculation values and the voltage acquisition values; and finally, determining the target fault type of the sensor at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to voltage calculation values and voltage acquisition values corresponding to a plurality of acquisition cycles. According to the scheme, the target fault type of the sensor or the connector is determined ingeniously by calculating the voltage calculation value of the target detection point. According to the scheme, the internal circuit of the electronic control unit does not need to be changed, and the hardware cost does not need to be additionally increased, so that the fault determination method is low in cost, the fault type of the sensor or the connector can be determined only through the fault determination method, and the problem that the fault type of the connector or the sensor is difficult to determine in the prior art is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 shows a flow diagram of a fault determination method according to an embodiment of the present application;
FIG. 2 shows a schematic diagram of a voltage-mode analog acquisition circuit according to an embodiment of the present application;
FIG. 3 shows a schematic diagram of a resistive analog acquisition circuit according to an embodiment of the present application;
fig. 4 shows a schematic structural diagram of a fault determination apparatus according to an embodiment of the present application.
Wherein the figures include the following reference numerals:
10. a first calculation unit; 20. a second calculation unit; 30. a determination unit; 100. an electronic control unit; 200. an analog quantity acquisition module; 300. a filter capacitor; 400. a filter resistor; 500. a pull-down resistor; 600. an electrostatic capacitance; 700. a sensor; 800. a pull-up resistor; 900. and detecting a target.
Detailed Description
It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As mentioned in the background of the invention, it is difficult to determine the type of failure of a connector or a sensor in the prior art, and to solve the above problems, in an exemplary embodiment of the present application, a failure determination method, a failure determination device, a computer-readable storage medium, a processor, and an electronic control unit are provided.
According to an embodiment of the present application, a fault determination method is provided.
Fig. 1 is a flow chart of a fault determination method according to an embodiment of the present application. The electronic control unit is connected with the sensor at least through a connector, the electronic control unit comprises an RC circuit and an analog quantity acquisition module, wherein the analog quantity acquisition module is used for acquiring a voltage acquisition value of a target detection point, the target detection point is positioned on a branch circuit between a filter resistor and a filter capacitor in the RC circuit, and as shown in figure 1, the fault determination method comprises the following steps:
step S101, respectively calculating voltage values of the target detection points at one acquisition time point by adopting a plurality of preset calculation formulas to obtain a plurality of voltage calculation values, wherein one preset calculation formula corresponds to one voltage calculation value, and a plurality of acquisition time points form an acquisition cycle;
step S102, calculating the difference value between each voltage calculation value and the voltage acquisition value to obtain a target difference value, and calculating the ratio of the target difference value to the voltage acquisition value to obtain a plurality of target percentages;
step S103, determining a target fault type of the sensor according to at least a plurality of target percentages and a preset deviation range corresponding to one of the acquisition cycles, or determining the target fault type of the connector according to at least the voltage calculation values and the voltage acquisition values of a plurality of the acquisition cycles, where the target fault type includes at least one of: short circuit of sensor to ground, short circuit of sensor to power supply, open circuit of sensor, virtual connection of connector.
In the fault determination method, firstly, at a collecting time point, a plurality of preset calculation formulas are adopted to respectively calculate the voltage values of target detection points to obtain a plurality of voltage calculation values; then, according to a plurality of voltage calculation values and voltage acquisition values corresponding to the acquisition time point, determining a plurality of target difference values, and according to each target difference value and the voltage acquisition value, determining a plurality of target percentages; and finally, determining the target fault type of the sensor at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to the voltage calculation values and the voltage acquisition values of a plurality of acquisition cycles. In the scheme, a plurality of preset calculation formulas are collected, and a plurality of voltage calculation values of a target detection point at the same collection time point are calculated respectively; determining a plurality of target percentages of the same acquisition time point according to the plurality of voltage calculation values and the voltage acquisition values; and finally, determining the target fault type of the sensor at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to voltage calculation values and voltage acquisition values corresponding to a plurality of acquisition cycles. According to the scheme, the target fault type of the sensor or the connector is determined ingeniously by calculating the voltage calculation value of the target detection point. According to the scheme, the internal circuit of the electronic control unit does not need to be changed, and the hardware cost does not need to be additionally increased, so that the fault determination method is low in cost, the fault type of the sensor or the connector can be determined only through the fault determination method, and the problem that the fault type of the connector or the sensor is difficult to determine in the prior art is solved.
Specifically, the sensor is connected to the electronic control unit through a connector and a wire harness. The connector is connected with the electronic control unit.
Specifically, as shown in fig. 2 and 3, the electronic control unit 100 has an RC circuit and an analog quantity acquisition module 200 inside, wherein the RC circuit includes a filter capacitor 300 and a filter resistor 400, and the target detection point 900 is located on a branch between the filter capacitor 300 and the filter resistor 400. In addition, the RC circuit may further include an electrostatic capacitance 600 and a pull-down resistor 500 (as shown in fig. 2), or a pull-up resistor 800 (as shown in fig. 3). Wherein the sensor 700 is connected to the electronic control unit 100 through a wire harness having connectors at both ends (not shown in fig. 2 and 3).
In a specific embodiment of the present application, for example, if an acquisition period is 10 minutes, the voltage calculation values of the target detection points are calculated every 1 minute, that is, an acquisition period includes 10 acquisition time points, at each acquisition time point, the voltage values of the target detection points are respectively calculated by using a plurality of preset calculation formulas, such that one acquisition time point corresponds to a plurality of voltage calculation values and one voltage acquisition value, and then the difference between each voltage calculation value and the voltage acquisition value is respectively calculated to obtain a plurality of target difference values, and then the ratio between each target difference value and the voltage acquisition value is calculated to obtain a plurality of target percentages, such that one acquisition time point corresponds to a plurality of target percentages. And subsequently, the target fault type of the sensor can be determined at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or the target fault type of the connector can be determined at least according to the voltage calculation values and the voltage acquisition values of a plurality of acquisition cycles, so that the determined target fault type of the sensor or the connector is further ensured to be more accurate.
Of course, in the actual application process, the number of the acquisition period and the number of the plurality of acquisition time points included in the acquisition period can be adjusted according to the actual application condition.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
In an embodiment of the present application, the voltage calculation value includes a first voltage calculation value, a second voltage calculation value, and a third voltage calculation value, and a plurality of preset calculation formulas are adopted to calculate the first voltage calculation value, the second voltage calculation value, and the third voltage calculation value respectivelyCalculating the voltage values of the target detection points at the same acquisition time point to obtain a plurality of voltage calculation values, wherein the method comprises the following steps: by using
Figure BDA0003782880470000061
Calculating the voltage value of the target detection point to obtain the first voltage calculation value, wherein R 2 Is the resistance value of the filter resistor, C 2 A capacitance value of the filter capacitor, t is a time interval between a current acquisition time point and a last acquisition time point, U1 is an input voltage of the sensor, and VF1 is the first voltage calculation value; by using
Figure BDA0003782880470000062
Calculating the voltage value of the target detection point to obtain the second voltage calculation value, wherein R 1 The resistance value of the pull-up resistor or the pull-down resistor in the RC circuit is VF2 which is the calculated value of the second voltage; by using
Figure BDA0003782880470000063
And calculating the voltage value of the target detection point to obtain the third voltage calculation value, wherein VF3 is the third voltage calculation value. In this embodiment, for the same collection time point, different preset calculation formulas are respectively adopted to calculate the voltage calculation value of the target detection point, and then the target fault type of the sensor is determined according to the voltage calculation values and the voltage collection values of the collection time points, so that the target fault type of the sensor can be further determined ingeniously.
In order to further determine the target fault type of the sensor more simply, in another embodiment of the present application, determining the target fault type of the sensor according to at least a plurality of the target percentages corresponding to one of the acquisition periods and a preset deviation range includes: determining the preset calculation formula corresponding to the voltage calculation value lower than a first preset threshold value as a target calculation formula at the current acquisition time point, or determining the preset calculation formula corresponding to the voltage calculation value higher than a second preset threshold value as the target calculation formula; and in the first N acquisition time points of the current acquisition time point, if each target percentage corresponding to the target calculation formula is within the corresponding preset deviation range, determining the target fault type of the sensor according to the fault type corresponding to the target calculation formula, wherein N is less than or equal to the total number of the acquisition time points in one acquisition period.
Specifically, the first preset threshold may be a voltage threshold exceeding a lower limit of the target detection point, and the second preset threshold may be a voltage threshold exceeding an upper limit of the target detection point. In a typical analog signal, the first preset threshold may be 0V or the second preset threshold may be 5V, when the analog signal is a voltage type signal or a resistance type signal having a voltage of 0 to 5V.
Specifically, one acquisition cycle may correspond to one preset deviation range, and of course, each acquisition time point may also correspond to one preset deviation range. In the present application, this is not a limitation.
Specifically, in the above-mentioned embodiment, if the current acquisition time point is the first acquisition time point of one acquisition cycle, the first N acquisition time points of the current acquisition time point may be N acquisition time points in the previous acquisition cycle. If the total number of all the acquisition time points before the current acquisition time point in the same acquisition cycle does not satisfy N, a plurality of acquisition time points in the previous acquisition cycle may also be taken. In the present application, this is not a limitation. In the actual application process, N can be adjusted according to the actual situation.
In another embodiment of the present application, determining the target failure type of the sensor according to the failure type corresponding to the target calculation formula includes: in the above objective calculation formula is
Figure BDA0003782880470000071
Determining the target fault type to be the sensor short circuit to ground; in the above objective calculation formula is
Figure BDA0003782880470000072
Determining that the target fault type is the sensor open circuit; in the above objective calculation formula is
Figure BDA0003782880470000073
In the case of (3), it is determined that the target failure type is the sensor short-circuiting a power supply. In this embodiment, the target fault type of the sensor is determined according to the fault type corresponding to the preset calculation formula, so that the target fault type of the sensor can be further determined more simply.
In yet another embodiment of the present application, the electronic control unit further includes a counter, which determines the target fault type of the connector according to at least the voltage calculation value and the voltage acquisition value at a plurality of the acquisition time points, and the counter includes: it is determined that within a plurality of the above-mentioned acquisition periods,
Figure BDA0003782880470000074
whether the corresponding voltage calculation values are the same as the voltage acquisition values or not; under the condition that each voltage calculation value is the same as the voltage acquisition value, controlling the counter to increase a preset value to obtain a target counting number; and determining the target fault type as the virtual connection of the connector under the condition that the target counting number exceeds the preset counting number within preset time. If the connector is connected in a virtual mode, the calculated voltage calculation value fluctuates, so that the counter is controlled to increase the preset value to obtain the target counting times under the condition that the voltage calculation values corresponding to a plurality of collecting periods are the same as the voltage collecting value when the sensor is open. And if the target counting number exceeds the preset counting number within the preset time, determining the target fault type of the connector as the virtual connection of the connector, so that the fault type of the connector can be further accurately determined.
Specifically, in the above-described embodiment, the counter is increased by a predetermined value, specifically, may be increased by 1. I.e. in each acquisition cycle,
Figure BDA0003782880470000075
and under the condition that the corresponding calculated voltage values are the same as the acquired voltage values, the counter is controlled to be increased by 1.
Specifically, the predetermined time may be adjusted according to an actual application, and is not limited in this application.
In an embodiment of the present application, the method for determining a fault further includes: and controlling the counter to reset when the time counted by the counter exceeds the preset time. Therefore, the target counting times of the counter can be further prevented from being wrong, and the target fault type of the docking plug-in can be further prevented from being judged inaccurately.
The embodiment of the present application further provides a fault determining apparatus, and it should be noted that the fault determining apparatus in the embodiment of the present application may be used to execute the method for determining a fault provided in the embodiment of the present application. The following describes a fault determination device provided in an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a fault determination device according to an embodiment of the present application. The electronic control unit is connected with the sensor at least through a connector, the electronic control unit comprises an RC circuit and an analog quantity acquisition module, wherein the analog quantity acquisition module is used for acquiring a voltage acquisition value of a target detection point, the target detection point is located on a branch between a filter resistor and a filter capacitor in the RC circuit, as shown in fig. 4, the fault determination device comprises:
a first calculating unit 10, configured to calculate voltage values of the target detection points at a collection time point respectively by using a plurality of preset calculation formulas to obtain a plurality of voltage calculation values, where one preset calculation formula corresponds to one voltage calculation value, and a collection period is formed by a plurality of collection time points;
a second calculating unit 20, configured to calculate a difference between each of the voltage calculated values and the voltage collected value to obtain a target difference, and calculate a ratio between the target difference and the voltage collected value to obtain a plurality of target percentages;
a determining unit 30, configured to determine a target fault type of the sensor according to at least a plurality of target percentages and a preset deviation range corresponding to one of the acquisition cycles, or determine the target fault type of the connector according to at least the voltage calculation values and the voltage acquisition values of the plurality of acquisition cycles, where the target fault type at least includes one of: short circuit of sensor to ground, short circuit of sensor to power supply, open circuit of sensor, virtual connection of connector.
In the fault determining apparatus, the first calculating unit is configured to calculate the voltage value of the target detection point at a collection time point by using a plurality of preset calculation formulas, respectively, to obtain a plurality of voltage calculation values; the second calculating unit is used for calculating the difference value between each voltage calculation value and the voltage acquisition value to obtain a target difference value, and calculating the ratio of the target difference value to the voltage acquisition value to obtain a plurality of target percentages; the determining unit is configured to determine a target fault type of the sensor according to at least a plurality of target percentages and a preset deviation range corresponding to one of the acquisition cycles, or determine the target fault type of the connector according to at least the voltage calculation values and the voltage acquisition values of the acquisition cycles. In the scheme, a plurality of preset calculation formulas are collected, and a plurality of voltage calculation values of a target detection point at the same collection time point are calculated respectively; determining a plurality of target percentages of the same acquisition time point according to the plurality of voltage calculation values and the voltage acquisition values; and finally, determining the target fault type of the sensor at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to voltage calculation values and voltage acquisition values corresponding to a plurality of acquisition cycles. According to the scheme, the target fault type of the sensor or the connector is determined skillfully by calculating the voltage calculation value of the target detection point. According to the scheme, the internal circuit of the electronic control unit does not need to be changed, and the hardware cost does not need to be additionally increased, so that the fault determination method is low in cost, the fault type of the sensor or the connector can be determined only through the fault determination method, and the problem that the fault type of the connector or the sensor is difficult to determine in the prior art is solved.
Specifically, the sensor is connected to the electronic control unit through a connector and a wire harness. The connector is connected with the electronic control unit.
Specifically, as shown in fig. 2 and 3, the electronic control unit 100 has an RC circuit and an analog quantity acquisition module 200 inside, wherein the RC circuit includes a filter capacitor 300 and a filter resistor 400, and the target detection point 900 is located on a branch between the filter capacitor 300 and the filter resistor 400. In addition, the RC circuit may further include an electrostatic capacitance 600 and a pull-down resistor 500 (as shown in fig. 2), or a pull-up resistor 800 (as shown in fig. 3). Wherein the sensor 700 is connected to the electronic control unit 100 through a wire harness having connectors at both ends (not shown in fig. 2 and 3).
In a specific embodiment of the present application, for example, if an acquisition period is 10 minutes, the voltage calculation values of the target detection points are calculated every 1 minute, that is, an acquisition period includes 10 acquisition time points, at each acquisition time point, the voltage values of the target detection points are calculated respectively by using a plurality of preset calculation formulas, such an acquisition time point corresponds to a plurality of voltage calculation values and a voltage acquisition value, and then the difference between each voltage calculation value and the voltage acquisition value is calculated respectively to obtain a plurality of target difference values, and then the ratio between each target difference value and the voltage acquisition value is calculated to obtain a plurality of target percentages, such an acquisition time point corresponds to a plurality of target percentages. And subsequently, the target fault type of the sensor can be determined at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or the target fault type of the connector can be determined at least according to the voltage calculation values and the voltage acquisition values of a plurality of acquisition cycles, so that the determined target fault type of the sensor or the connector is further ensured to be more accurate.
Of course, in an actual application process, the number of the acquisition period and the number of the plurality of acquisition time points included in the acquisition period may be adjusted according to an actual application situation.
In an embodiment of the present application, the voltage calculation value includes a first voltage calculation value, a second voltage calculation value, and a third voltage calculation value, the first calculation unit includes a first calculation module, a second calculation module, and a third calculation module, wherein the first calculation module is configured to adopt the first calculation module
Figure BDA0003782880470000091
Calculating the voltage value of the target detection point to obtain the first voltage calculation value, wherein R 2 Is the resistance value of the filter resistor, C 2 T is a time interval between the current acquisition time point and the last acquisition time point, U1 is an input voltage of the sensor, and VF1 is the first voltage calculation value; the second computing module is used for adopting
Figure BDA0003782880470000092
Calculating the voltage value of the target detection point to obtain the second voltage calculation value, wherein R 1 The resistance value of the pull-up resistor or the pull-down resistor in the RC circuit is VF2 which is the calculated value of the second voltage; the third computing module is used for adopting
Figure BDA0003782880470000093
And calculating the voltage value of the target detection point to obtain the third voltage calculation value, wherein VF3 is the third voltage calculation value. In this embodiment, for the same collection time point, different preset calculation formulas are respectively adopted to calculate the voltage calculation value of the target detection point, and then the target fault type of the sensor is determined according to the voltage calculation values and the voltage collection values of the collection time points, so that the target fault type of the sensor can be further determined ingeniously.
In order to further determine the target fault type of the sensor more simply, in another embodiment of the present application, determining the target fault type of the sensor according to at least a plurality of the target percentages corresponding to one of the acquisition periods and a preset deviation range includes: determining the preset calculation formula corresponding to the voltage calculation value lower than a first preset threshold value as a target calculation formula at the current acquisition time point, or determining the preset calculation formula corresponding to the voltage calculation value higher than a second preset threshold value as the target calculation formula; and in the first N acquisition time points of the current acquisition time point, if each target percentage corresponding to the target calculation formula is within the corresponding preset deviation range, determining the target fault type of the sensor according to the fault type corresponding to the target calculation formula, wherein N is less than or equal to the total number of the acquisition time points in one acquisition period.
Specifically, the first preset threshold may be a voltage threshold exceeding a lower limit of the target detection point, and the second preset threshold may be a voltage threshold exceeding an upper limit of the target detection point. When the analog signal is a voltage type signal or a resistance type signal of 0 to 5V, the first preset threshold may be 0V, and the second preset threshold may be 5V.
Specifically, one acquisition cycle may correspond to a preset deviation range, and of course, each acquisition time point may also correspond to a preset deviation range. In the present application, this is not a limitation.
Specifically, in the above-mentioned embodiment, if the current acquisition time point is the first acquisition time point of one acquisition cycle, the first N acquisition time points of the current acquisition time point may be N acquisition time points in the previous acquisition cycle. If the total number of all the acquisition time points before the current acquisition time point in the same acquisition cycle does not satisfy N, a plurality of acquisition time points in the previous acquisition cycle may also be taken. In the present application, this is not a limitation. In the actual application process, N can be adjusted according to the actual situation.
In yet another embodiment of the present application, the second determining module includes a first determining submodule and a second determining submoduleA block and a third determining submodule, wherein the first determining submodule is used for the target calculation formula
Figure BDA0003782880470000101
Determining the target fault type to be the sensor short circuit to ground; the second determining submodule uses the target calculation formula as
Figure BDA0003782880470000102
Determining that the target fault type is the sensor open circuit; said third determining submodule is arranged to calculate a formula as
Figure BDA0003782880470000103
In the case of (3), it is determined that the target failure type is the sensor short-circuiting a power supply. In this embodiment, the target fault type of the sensor is determined according to the fault type corresponding to the preset calculation formula, so that the target fault type of the sensor can be further determined relatively simply.
In yet another embodiment of the present application, the electronic control unit further includes a counter, and the determination unit further includes a third determination module, a control module, and a fourth determination module, wherein the third determination module is configured to determine a plurality of acquisition cycles,
Figure BDA0003782880470000104
whether the corresponding voltage calculation values are the same as the voltage acquisition values or not; the control module is used for controlling the counter to increase a preset value under the condition that each voltage calculation value is the same as the voltage acquisition value, so as to obtain the target counting times; the fourth determining module is configured to determine that the target fault type is the virtual connector connection if the target count number exceeds the predetermined count number within a predetermined time. If the connector is connected in a virtual mode, the calculated voltage calculation value fluctuates, so that the voltage acquisition values are the same when the sensors are opened in all the voltage calculation values corresponding to a plurality of acquisition periodsUnder the condition, the counter is controlled to increase a preset value to obtain the target counting number. And if the target counting number exceeds the preset counting number within the preset time, determining the target fault type of the connector as the virtual connection of the connector, so that the fault type of the connector can be further accurately determined.
Specifically, in the above-described embodiment, the counter is increased by a predetermined value, specifically, may be increased by 1. I.e. in each acquisition cycle,
Figure BDA0003782880470000111
and under the condition that the corresponding calculated values of the voltages are the same as the acquired values of the voltages, the counter is controlled to be increased by 1.
Specifically, the predetermined time may be adjusted according to an actual application, and is not limited in this application.
In an embodiment of the application, the failure determination apparatus further includes a control unit, configured to control the counter to reset when the time counted by the counter exceeds the predetermined time. Therefore, the target counting times of the counter can be further prevented from being wrong, and the target fault type of the docking plug-in can be further prevented from being judged inaccurately.
The failure determination device comprises a processor and a memory, wherein the first calculation unit, the second calculation unit, the determination unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the problem that the fault type of the connector or the sensor is difficult to determine in the prior art is solved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium on which a program is stored, which, when executed by a processor, implements the above-described fault determination method.
The embodiment of the invention provides a processor, wherein the processor is used for running a program, and the fault determination method is executed when the program runs.
In an exemplary embodiment of the present application, there is also provided an electronic control unit comprising fault determination means for performing any one of the above-described fault determination methods.
The electronic control unit described above includes the above-described failure determination means for executing any of the above-described failure determination methods. In the fault determination method, firstly, at a collecting time point, a plurality of preset calculation formulas are adopted to respectively calculate the voltage values of target detection points to obtain a plurality of voltage calculation values; then, according to a plurality of voltage calculation values and voltage acquisition values corresponding to the acquisition time point, determining a plurality of target difference values, and according to each target difference value and the voltage acquisition value, determining a plurality of target percentages; and finally, determining the target fault type of the sensor according to at least a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or determining the target fault type of the connector according to at least the voltage calculation values and the voltage acquisition values of a plurality of acquisition cycles. In the scheme, a plurality of preset calculation formulas are collected, and a plurality of voltage calculation values of a target detection point at the same collection time point are calculated respectively; determining a plurality of target percentages of the same acquisition time point according to the plurality of voltage calculation values and the voltage acquisition values; and finally, determining the target fault type of the sensor at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to voltage calculation values and voltage acquisition values corresponding to a plurality of acquisition cycles. According to the scheme, the target fault type of the sensor or the connector is determined ingeniously by calculating the voltage calculation value of the target detection point. Because the internal circuit of the electronic control unit does not need to be changed and the hardware cost does not need to be additionally increased, the fault determination method of the scheme has the advantages that the cost is lower, the fault type of the sensor or the connector can be determined only by the fault determination method, and the problem that the fault type of the connector or the sensor is difficult to determine in the prior art is solved.
An embodiment of the present invention provides an apparatus, where the apparatus includes a processor, a memory, and a program that is stored in the memory and is executable on the processor, and when the processor executes the program, at least the following steps are implemented:
step S101, respectively calculating a voltage value of the target detection point at one acquisition time point by adopting a plurality of preset calculation formulas to obtain a plurality of voltage calculation values, wherein one preset calculation formula corresponds to one voltage calculation value, and a plurality of acquisition time points form an acquisition cycle;
step S102, calculating the difference value between each voltage calculation value and the voltage acquisition value to obtain a target difference value, and calculating the ratio of the target difference value to the voltage acquisition value to obtain a plurality of target percentages;
step S103, determining a target fault type of the sensor according to at least a plurality of target percentages and a preset deviation range corresponding to one of the acquisition cycles, or determining the target fault type of the connector according to at least the voltage calculation values and the voltage acquisition values of a plurality of the acquisition cycles, where the target fault type includes at least one of: short circuit of sensor to ground, short circuit of sensor to power supply, open circuit of sensor, virtual connection of connector.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program of initializing at least the following method steps when executed on a data processing device:
step S101, respectively calculating voltage values of the target detection points at one acquisition time point by adopting a plurality of preset calculation formulas to obtain a plurality of voltage calculation values, wherein one preset calculation formula corresponds to one voltage calculation value, and a plurality of acquisition time points form an acquisition cycle;
step S102, calculating the difference value between each voltage calculation value and the voltage acquisition value to obtain a target difference value, and calculating the ratio of the target difference value to the voltage acquisition value to obtain a plurality of target percentages;
step S103, determining a target fault type of the sensor according to at least a plurality of target percentages and a preset deviation range corresponding to one of the acquisition cycles, or determining the target fault type of the connector according to at least the voltage calculation values and the voltage acquisition values of a plurality of the acquisition cycles, where the target fault type includes at least one of: short circuit of sensor to ground, short circuit of sensor to power supply, open circuit of sensor, virtual connection of connector.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and for example, the division of the above-described units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
1) According to the fault determination method, firstly, at a collecting time point, a plurality of preset calculation formulas are adopted to respectively calculate the voltage values of target detection points to obtain a plurality of voltage calculation values; then, according to a plurality of voltage calculation values and voltage acquisition values corresponding to the acquisition time point, determining a plurality of target difference values, and according to each target difference value and the voltage acquisition value, determining a plurality of target percentages; and finally, determining the target fault type of the sensor at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to the voltage calculation values and the voltage acquisition values of a plurality of acquisition cycles. In the scheme, a plurality of preset calculation formulas are collected, and a plurality of voltage calculation values of a target detection point at the same collection time point are calculated respectively; determining a plurality of target percentages of the same acquisition time point according to the plurality of voltage calculation values and the voltage acquisition values; and finally, determining the target fault type of the sensor at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to voltage calculation values and voltage acquisition values corresponding to a plurality of acquisition cycles. According to the scheme, the target fault type of the sensor or the connector is determined ingeniously by calculating the voltage calculation value of the target detection point. According to the scheme, the internal circuit of the electronic control unit does not need to be changed, and the hardware cost does not need to be additionally increased, so that the fault determination method is low in cost, the fault type of the sensor or the connector can be determined only through the fault determination method, and the problem that the fault type of the connector or the sensor is difficult to determine in the prior art is solved.
2) In the fault determining device, the first calculating unit is used for calculating the voltage values of the target detection points at one acquisition time point respectively by adopting a plurality of preset calculation formulas to obtain a plurality of voltage calculation values; the second calculating unit is used for calculating the difference value between each voltage calculation value and the voltage acquisition value to obtain a target difference value, and calculating the ratio of the target difference value to the voltage acquisition value to obtain a plurality of target percentages; the determining unit is configured to determine a target fault type of the sensor according to at least a plurality of target percentages and a preset deviation range corresponding to one of the acquisition cycles, or determine the target fault type of the connector according to at least the voltage calculation values and the voltage acquisition values of the acquisition cycles. In the scheme, a plurality of preset calculation formulas are collected, and a plurality of voltage calculation values of a target detection point at the same collection time point are calculated respectively; determining a plurality of target percentages of the same acquisition time point according to the plurality of voltage calculation values and the voltage acquisition values; and finally, determining the target fault type of the sensor at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to voltage calculation values and voltage acquisition values corresponding to a plurality of acquisition cycles. According to the scheme, the target fault type of the sensor or the connector is determined ingeniously by calculating the voltage calculation value of the target detection point. Because the internal circuit of the electronic control unit does not need to be changed and the hardware cost does not need to be additionally increased, the fault determination method of the scheme has the advantages that the cost is lower, the fault type of the sensor or the connector can be determined only by the fault determination method, and the problem that the fault type of the connector or the sensor is difficult to determine in the prior art is solved.
3) The electronic control unit of the present application includes the above-described failure determination device for executing any one of the above-described failure determination methods. In the fault determination method, firstly, at a collection time point, a plurality of preset calculation formulas are adopted to respectively calculate the voltage values of target detection points to obtain a plurality of voltage calculation values; then, according to a plurality of voltage calculation values and voltage acquisition values corresponding to the acquisition time point, determining a plurality of target difference values, and according to each target difference value and the voltage acquisition value, determining a plurality of target percentages; and finally, determining the target fault type of the sensor at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to the voltage calculation values and the voltage acquisition values of a plurality of acquisition cycles. In the scheme, a plurality of preset calculation formulas are collected, and a plurality of voltage calculation values of a target detection point at the same collection time point are calculated respectively; determining a plurality of target percentages of the same acquisition time point according to the plurality of voltage calculation values and the voltage acquisition values; and finally, determining the target fault type of the sensor at least according to a plurality of target percentages and preset deviation ranges corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to voltage calculation values and voltage acquisition values corresponding to a plurality of acquisition cycles. According to the scheme, the target fault type of the sensor or the connector is determined skillfully by calculating the voltage calculation value of the target detection point. Because the internal circuit of the electronic control unit does not need to be changed and the hardware cost does not need to be additionally increased, the fault determination method of the scheme has the advantages that the cost is lower, the fault type of the sensor or the connector can be determined only by the fault determination method, and the problem that the fault type of the connector or the sensor is difficult to determine in the prior art is solved.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A fault determination method, in which an electronic control unit is connected to a sensor at least through a connector, the electronic control unit includes an RC circuit and an analog acquisition module, wherein the analog acquisition module is configured to acquire a voltage acquisition value of a target detection point, and the target detection point is located on a branch between a filter resistor and a filter capacitor in the RC circuit, the fault determination method includes:
respectively calculating the voltage value of the target detection point at one acquisition time point by adopting a plurality of preset calculation formulas to obtain a plurality of voltage calculation values, wherein one preset calculation formula corresponds to one voltage calculation value, and a plurality of acquisition time points form an acquisition period;
calculating the difference value between each voltage calculation value and each voltage acquisition value to obtain a target difference value, and calculating the ratio of the target difference value to each voltage acquisition value to obtain a plurality of target percentages;
determining a target fault type of the sensor at least according to a plurality of target percentages and a preset deviation range corresponding to one acquisition cycle, or determining the target fault type of the connector at least according to the voltage calculation values and the voltage acquisition values of the plurality of acquisition cycles, wherein the target fault type at least comprises one of the following types: short circuit of sensor to ground, short circuit of sensor to power supply, open circuit of sensor, virtual connection of connector.
2. The method of claim 1, wherein the voltage calculation values include a first voltage calculation value, a second voltage calculation value, and a third voltage calculation value, and the calculating the voltage values of the target detection points at a collection time point by using a plurality of preset calculation formulas to obtain a plurality of voltage calculation values includes:
by using
Figure FDA0003782880460000011
Calculating the voltage value of the target detection point to obtain the first voltage calculation value, wherein R 2 Is the resistance value of the filter resistor, C 2 Setting the capacitance value of the filter capacitor, wherein t is the time interval between the current acquisition time point and the last acquisition time point, U1 is the input voltage of the sensor, and VF1 is the calculated value of the first voltage;
by using
Figure FDA0003782880460000012
Calculating the voltage value of the target detection point to obtain the second voltage calculation value, wherein R 1 The resistance value of a pull-up resistor or a pull-down resistor in the RC circuit is VF2 which is the calculated value of the second voltage;
by using
Figure FDA0003782880460000013
And calculating the voltage value of the target detection point to obtain a third voltage calculation value, wherein VF3 is the third voltage calculation value.
3. The method of claim 1, wherein determining the target fault type of the sensor according to at least a plurality of target percentages corresponding to one of the acquisition cycles and a preset deviation range comprises:
at the current acquisition time point, determining the preset calculation formula corresponding to the voltage calculation value lower than a first preset threshold value as a target calculation formula, or determining the preset calculation formula corresponding to the voltage calculation value higher than a second preset threshold value as the target calculation formula;
in the first N acquisition time points of the current acquisition time points, if each target percentage corresponding to the target calculation formula is within the corresponding preset deviation range, determining the target fault type of the sensor according to the fault type corresponding to the target calculation formula, wherein N is less than or equal to the total number of the acquisition time points in one acquisition period.
4. The fault determination method of claim 3, wherein determining the target fault type of the sensor according to the fault type corresponding to the target calculation formula comprises:
in the target calculation formula of
Figure FDA0003782880460000021
Determining the target fault type to be the sensor short circuit to ground;
in the target calculation formula of
Figure FDA0003782880460000022
Determining that the target fault type is the sensor open circuit;
in the target calculation formula of
Figure FDA0003782880460000023
Determining the target fault type to be a short circuit of the sensor to a power supply.
5. The method of claim 1, wherein said electronic control unit further comprises a counter for determining said target fault type for said connector based on at least said voltage count value and said voltage pick value for a plurality of said pick cycles, comprising:
it is determined that within a plurality of said acquisition periods,
Figure FDA0003782880460000024
whether the corresponding voltage calculation values are the same as the voltage acquisition values or not;
under the condition that each voltage calculation value is the same as the voltage acquisition value, controlling the counter to increase a preset value to obtain a target counting number;
and determining the target fault type as the virtual connection of the connector under the condition that the target counting number exceeds the preset counting number within preset time.
6. The fault determination method of claim 5, further comprising:
and controlling the counter to reset when the time counted by the counter exceeds the preset time.
7. A fault determination device, an electronic control unit connected with a sensor at least through a connector, the electronic control unit comprising an RC circuit and an analog acquisition module, wherein the analog acquisition module is configured to acquire a voltage acquisition value of a target detection point, and the target detection point is located on a branch between a filter resistor and a filter capacitor in the RC circuit, the fault determination device comprising:
the first calculation unit is used for calculating the voltage value of the target detection point at one acquisition time point respectively by adopting a plurality of preset calculation formulas to obtain a plurality of voltage calculation values, wherein one preset calculation formula corresponds to one voltage calculation value, and a plurality of acquisition time points form an acquisition cycle;
the second calculation unit is used for calculating the difference value between each voltage calculation value and the voltage acquisition value to obtain a target difference value, and calculating the ratio of the target difference value to the voltage acquisition value to obtain a plurality of target percentages;
a determining unit, configured to determine a target fault type of the sensor according to at least a plurality of target percentages and a preset deviation range corresponding to one acquisition cycle, or determine the target fault type of the connector according to at least the voltage calculation values and the voltage acquisition values of the plurality of acquisition cycles, where the target fault type at least includes one of: short circuit of sensor to ground, short circuit of sensor to power supply, open circuit of sensor, virtual connection of connector.
8. A computer-readable storage medium characterized by comprising a stored program, wherein the program executes the fault determination method according to any one of claims 1 to 6.
9. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the method of any of claims 1 to 6 when running.
10. An electronic control unit, comprising: fault determination means for performing the fault determination method of any one of claims 1 to 6.
CN202210934333.6A 2022-08-04 2022-08-04 Fault determination method, fault determination device, processor and electronic control unit Pending CN115167372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210934333.6A CN115167372A (en) 2022-08-04 2022-08-04 Fault determination method, fault determination device, processor and electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210934333.6A CN115167372A (en) 2022-08-04 2022-08-04 Fault determination method, fault determination device, processor and electronic control unit

Publications (1)

Publication Number Publication Date
CN115167372A true CN115167372A (en) 2022-10-11

Family

ID=83480096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210934333.6A Pending CN115167372A (en) 2022-08-04 2022-08-04 Fault determination method, fault determination device, processor and electronic control unit

Country Status (1)

Country Link
CN (1) CN115167372A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6012005A (en) * 1996-08-31 2000-01-04 Robert Bosch Gmbh Method and apparatus for monitoring at least one sensor
JP2006184160A (en) * 2004-12-28 2006-07-13 Nissan Motor Co Ltd Current detection apparatus for three-phase a.c. motor with failure detection function
CN101732044A (en) * 2008-11-13 2010-06-16 深圳迈瑞生物医疗电子股份有限公司 Bridge-type pressure sensor detection circuit, detection method and monitor
CN203444073U (en) * 2013-09-23 2014-02-19 江苏新通达电子科技股份有限公司 System capable of detecting open circuit and short circuit of multi-path LEDs by using single-path AD port
CN104753422A (en) * 2013-12-30 2015-07-01 现代自动车株式会社 Voltage sensor default detecting method
CN107153162A (en) * 2017-06-06 2017-09-12 山东大学 A kind of power battery pack multiple faults on-line detecting system and method
US20170346272A1 (en) * 2016-05-31 2017-11-30 Siemens Aktiengesellschaft Arc fault detection unit
CN109738739A (en) * 2018-12-20 2019-05-10 国网北京市电力公司 Fault detection method and device
CN110441643A (en) * 2019-08-07 2019-11-12 北京航空航天大学 Inverter power pipe open circuit fault diagnostic method in control system for permanent-magnet synchronous motor
CN110515007A (en) * 2019-08-13 2019-11-29 科华恒盛股份有限公司 A kind of battery failures detection circuit and equipment
CN111090030A (en) * 2019-12-19 2020-05-01 潍柴动力股份有限公司 Open-circuit fault diagnosis method and device, motor controller and storage medium
CN112630682A (en) * 2020-11-18 2021-04-09 深圳市宏电技术股份有限公司 Fault detection method, device and equipment of sensor
CN112798951A (en) * 2020-12-25 2021-05-14 上海法雷奥汽车电器系统有限公司 Fault processing method and device, electronic equipment and storage medium
AU2021102724A4 (en) * 2021-05-21 2021-07-15 Ankaiah, Burri MR A method for modular multilevel converter (inverter) open-circuit fault identification and positioning

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6012005A (en) * 1996-08-31 2000-01-04 Robert Bosch Gmbh Method and apparatus for monitoring at least one sensor
JP2006184160A (en) * 2004-12-28 2006-07-13 Nissan Motor Co Ltd Current detection apparatus for three-phase a.c. motor with failure detection function
CN101732044A (en) * 2008-11-13 2010-06-16 深圳迈瑞生物医疗电子股份有限公司 Bridge-type pressure sensor detection circuit, detection method and monitor
CN203444073U (en) * 2013-09-23 2014-02-19 江苏新通达电子科技股份有限公司 System capable of detecting open circuit and short circuit of multi-path LEDs by using single-path AD port
CN104753422A (en) * 2013-12-30 2015-07-01 现代自动车株式会社 Voltage sensor default detecting method
US20170346272A1 (en) * 2016-05-31 2017-11-30 Siemens Aktiengesellschaft Arc fault detection unit
CN107153162A (en) * 2017-06-06 2017-09-12 山东大学 A kind of power battery pack multiple faults on-line detecting system and method
CN109738739A (en) * 2018-12-20 2019-05-10 国网北京市电力公司 Fault detection method and device
CN110441643A (en) * 2019-08-07 2019-11-12 北京航空航天大学 Inverter power pipe open circuit fault diagnostic method in control system for permanent-magnet synchronous motor
CN110515007A (en) * 2019-08-13 2019-11-29 科华恒盛股份有限公司 A kind of battery failures detection circuit and equipment
CN111090030A (en) * 2019-12-19 2020-05-01 潍柴动力股份有限公司 Open-circuit fault diagnosis method and device, motor controller and storage medium
CN112630682A (en) * 2020-11-18 2021-04-09 深圳市宏电技术股份有限公司 Fault detection method, device and equipment of sensor
CN112798951A (en) * 2020-12-25 2021-05-14 上海法雷奥汽车电器系统有限公司 Fault processing method and device, electronic equipment and storage medium
AU2021102724A4 (en) * 2021-05-21 2021-07-15 Ankaiah, Burri MR A method for modular multilevel converter (inverter) open-circuit fault identification and positioning

Similar Documents

Publication Publication Date Title
CN105117464B (en) Application pushing method and device and service equipment
US5332966A (en) Method of compensating for the temperature of inductive sensors
EP0632393A1 (en) Hot pluggable motherboard bus connector method
DE112009002587T5 (en) Noise handling in capacitive touch sensors
DE102012215946A1 (en) Circuit for conducting an electric current
CN113113957A (en) Short-circuit protection method and charger
CN109284908B (en) Industrial equipment risk analysis method and system and related equipment
CN115167372A (en) Fault determination method, fault determination device, processor and electronic control unit
CN111458654A (en) Input signal diagnosis circuit
CN112861947A (en) Sensor data processing method and device and computing equipment
CN106092358B (en) A kind for the treatment of method and apparatus of resistance sensor signal
US9064649B2 (en) Device for detecting the state of a switch
CN108897929B (en) Power plane frequency domain impedance simulation method, system and terminal
CN207216333U (en) A kind of identification circuit and cooking apparatus of knob driving switch
CN104009267B (en) A kind of information processing method and electronic equipment
CN110687353B (en) Insulation resistance detection method, device, system and storage medium
CN110843598B (en) Temperature acquisition compensation method and circuit and battery management system of electric equipment
CN110780726B (en) Detection method and system for power-on sequence reasonability of PG pin and related components
CN109709373B (en) Signal self-adaptive acquisition circuit and acquisition method
CN115384531B (en) Automobile gear identification and diagnosis method and device, electronic equipment and computer readable storage medium
CN210981427U (en) Fuel liquid level detection device
CN107179452B (en) Combined slot and backplane identification
CN112067153B (en) Temperature detection device of thermistor and intelligent household appliance
CN221101009U (en) Connector plug detection circuit and head-mounted display device
CN112161742A (en) Power sensor detection method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination