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 PDFInfo
- 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
- sensor
- calculation
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000004364 calculation method Methods 0.000 claims abstract description 225
- 238000001514 detection method Methods 0.000 claims abstract description 69
- 239000003990 capacitor Substances 0.000 claims description 19
- 230000008859 change Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0259—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
- G05B23/0262—Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real 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
Description
技术领域technical field
本申请涉及车辆控制领域,具体而言,涉及一种故障确定方法、故障确定装置、计算机可读存储介质、处理器与电子控制单元。The present application relates to the field of vehicle control, and in particular, to a fault determination method, a fault determination device, a computer-readable storage medium, a processor and an electronic control unit.
背景技术Background technique
电子控制单元(Electronic Control Unit,简称ECU)一般连接多个传感器,以获取多个传感器的数据信息,从而对发动机进行逻辑控制。而电子控制单元与对应的传感器的连接,一般是需要借助接插件和线束。例如,线束的两端分别连接有接插件,其中,连接有接插件的线束的一端与传感器相连接,连接有接插件的线束的另一端与电子控制单元相连接。An electronic control unit (Electronic Control Unit, ECU for short) is generally connected to a plurality of sensors to obtain data information from the plurality of sensors, thereby performing logic control on the engine. The connection between the electronic control unit and the corresponding sensor generally requires the use of connectors and wiring harnesses. For example, two ends of the wire harness are respectively connected with connectors, wherein one end of the wire harness connected with the connector is connected to the sensor, and the other end of the wire harness connected with the connector is connected to the electronic control unit.
现有技术中,为了确定与电子控制单元一端相连接的接插件或者与电子控制单元相连接的传感器是否故障,一般在电子控制单元中设置RC电路(电阻-电容电路,Resistor-Capacitancestry circuit,简称RC电路)和模拟量采集模块,其中,模拟量采集模块用于采集RC电路的中滤波电容和滤波电阻之间的支路上的电压。再通过模拟量采集模块采集的电压,确定接插件或者传感器是否故障。例如,典型的模拟量信号为0~5V的电压型信号或者电阻型信号。当模拟量采集模块采集到0V或5V时,可以报出电压值超下限或超上限的故障。但这种情况下,并不能区分电压值超下限或者超上限具体的故障类型,例如,并不能确定电压值超上限或者超下限是由外部短路还是开路导致的超限。另外,在接插件存在虚接的情况下,由于RC电路的电压值一直波动,故达不到超上限或超下限,也无法确定接插件是否虚接。In the prior art, in order to determine whether the connector connected to one end of the electronic control unit or the sensor connected to the electronic control unit is faulty, an RC circuit (resistor-capacitor circuit, Resistor-Capacitancestry circuit, referred to as abbreviated as RC circuit) is generally set in the electronic control unit. RC circuit) and an analog quantity acquisition module, wherein the analog quantity acquisition module is used to collect the voltage on the branch between the filter capacitor and the filter resistor in the RC circuit. Then use the voltage collected by the analog quantity acquisition module to determine whether the connector or sensor is faulty. For example, a typical analog signal is a voltage-type signal or a resistance-type signal of 0-5V. When the analog quantity acquisition module collects 0V or 5V, it can report the fault that the voltage value exceeds the lower limit or the upper limit. However, in this case, the specific fault types of the voltage value exceeding the lower limit or the upper limit cannot be distinguished. For example, it cannot be determined whether the voltage value exceeding the upper limit or the lower limit is caused by an external short circuit or an open circuit. In addition, in the case of a virtual connection of the connector, since the voltage value of the RC circuit fluctuates all the time, it cannot reach the upper limit or the lower limit, and it is impossible to determine whether the connector is virtual connection.
因此,亟需一种能够确定接插件或者传感器的故障类型的方法。Therefore, there is a need for a method that can determine the type of failure of a connector or a sensor.
在背景技术部分中公开的以上信息只是用来加强对本文所描述技术的背景技术的理解,因此,背景技术中可能包含某些信息,这些信息对于本领域技术人员来说并未形成在本国已知的现有技术。The above information disclosed in this Background section is only for enhancement of understanding of the background of the technology described in this article and therefore it may contain certain information that does not form part of the already known in this country to a person of ordinary skill in the art known prior art.
发明内容SUMMARY OF THE INVENTION
本申请的主要目的在于提供一种故障确定方法、故障确定装置、计算机可读存储介质、处理器与电子控制单元,以解决现有技术中难以确定接插件或者传感器的故障类型的问题。The main purpose 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 that it is difficult to determine the fault type of a connector or a sensor in the prior art.
根据本发明实施例的一个方面,提供了一种故障确定方法,电子控制单元至少通过接插件与传感器连接,所述电子控制单元包括RC电路和模拟量采集模块,其中,所述模拟量采集模块用于采集目标检测点的电压采集值,所述目标检测点位于所述RC电路中滤波电阻和滤波电容之间的支路上,所述故障确定方法包括:采用多个预设计算公式,分别计算一个采集时间点的所述目标检测点的电压值,得到多个电压计算值,其中,一个所述预设计算公式对应一个所述电压计算值,多个所述采集时间点构成一个采集周期;计算各所述电压计算值与所述电压采集值的差值,得到目标差值,并计算所述目标差值与所述电压采集值的比值,得到多个目标百分比;至少根据一个所述采集周期对应的多个所述目标百分比以及预设偏差范围,确定所述传感器的目标故障类型,或者,至少根据多个所述采集周期的所述电压计算值和所述电压采集值,确定所述接插件的所述目标故障类型,所述目标故障类型至少包括以下之一:传感器对地短路、传感器对电源短路、传感器开路、接插件虚接。According to an aspect of the embodiments of the present invention, a fault determination method is provided. An electronic control unit is connected to a sensor at least through a connector, and the electronic control unit includes an RC circuit and an analog quantity acquisition module, wherein the analog quantity acquisition module It is used to collect the voltage collection value of the target detection point, and the target detection point is located on the branch between the filter resistor and the filter capacitor in the RC circuit. The fault determination method includes: using a plurality of preset calculation formulas, respectively calculating Collecting the voltage value of the target detection point at one time point to obtain a plurality of voltage calculation values, wherein one of the preset calculation formula corresponds to one of the voltage calculation values, and a plurality of the collection time points constitute a collection period; Calculate the difference between each of the calculated voltage values and the voltage collected value to obtain a target difference value, and calculate the ratio of the target difference value to the voltage collected value to obtain multiple target percentages; at least according to one of the collected voltage values A plurality of the target percentages corresponding to the cycle and a preset deviation range are used to determine the target fault type of the sensor, or, at least according to the calculated voltage values and the voltage collected values of a plurality of the collection cycles, to determine the The target fault type of the connector, the target fault type includes at least one of the following: sensor-to-ground short-circuit, sensor-to-power short-circuit, sensor open-circuit, and virtual connection of the connector.
可选地,所述电压计算值包括第一电压计算值、第二电压计算值和第三电压计算值,采用多个预设计算公式,分别计算一个采集时间点的所述目标检测点的电压值,得到多个电压计算值,包括:采用计算所述目标检测点的电压值,得到所述第一电压计算值,其中,R2为所述滤波电阻的电阻值,C2为所述滤波电容的电容值,t为当前的所述采集时间点与上一次的所述采集时间点的时间间隔,U1为所述传感器的输入电压,VF1为所述电压计算值;采用计算所述目标检测点的电压值,得到所述第二电压计算值,其中,R1为所述RC电路中的上拉电阻或者下拉电阻的电阻值,VF2为所述第二电压计算值;采用计算所述目标检测点的电压值,得到所述第三电压计算值,VF3为所述第三电压计算值。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 respectively calculate the voltage of the target detection point at a collection time point. value to obtain multiple voltage calculation values, including: Calculate the voltage value of the target detection point to obtain the first calculated voltage value, where R 2 is the resistance value of the filter resistor, C 2 is the capacitance value of the filter capacitor, and t is the current acquisition The time interval between the time point and the last acquisition time point, U1 is the input voltage of the sensor, and VF1 is the calculated value of the voltage; using Calculate the voltage value of the target detection point to obtain the second voltage calculation value, wherein R1 is the resistance value of the pull-up resistor or pull - down resistor in the RC circuit, and VF2 is the second voltage calculation value; use Calculate the voltage value of the target detection point to obtain the third voltage calculation value, where VF3 is the third voltage calculation value.
可选地,至少根据一个所述采集周期对应的多个所述目标百分比以及预设偏差范围,确定所述传感器的目标故障类型,包括:在当前的所述采集时间点,将低于第一预设阈值的所述电压计算值对应的所述预设计算公式,确定为目标计算公式,或者,将高于第二预设阈值的所述电压计算值对应的所述预设计算公式,确定为所述目标计算公式;在当前的所述采集时间点的前N个所述采集时间点中,若所述目标计算公式对应的各所述目标百分比均在对应的所述预设偏差范围内,根据所述目标计算公式对应的故障类型,确定所述传感器的所述目标故障类型,其中,N小于或者等于一个所述采集周期中所述采集时间点的总数。Optionally, determining the target fault type of the sensor according to at least a plurality of the target percentages corresponding to one collection period and a preset deviation range, including: at the current collection time point, the target failure type will be lower than the first The preset calculation formula corresponding to the voltage calculation value of the preset threshold value is determined as the target calculation formula, or the preset calculation formula corresponding to the voltage calculation value higher than the second preset threshold value is determined. is the target calculation formula; in the first N collection time points of the current collection time point, if each of the target percentages corresponding to the target calculation formula is within the corresponding preset deviation range , determine 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 collection time points in one collection period.
可选地,根据所述目标计算公式对应的故障类型,确定所述传感器的所述目标故障类型,包括:在所述目标计算公式为的情况下,确定所述目标故障类型为所述传感器对地短路;在所述目标计算公式的情况下,确定所述目标故障类型为所述传感器开路;在所述目标计算公式为的情况下,确定所述目标故障类型为所述传感器对电源短路。Optionally, determining the target fault type of the sensor according to the fault type corresponding to the target calculation formula, including: in the target calculation formula: In the case of , determine that the target fault type is the short circuit of the sensor to ground; In the case of , determine that the target fault type is the sensor open circuit; in the target calculation formula is In the case of , it is determined that the target fault type is a short circuit of the sensor to the power supply.
可选地,所述电子控制单元还包括计数器,至少根据多个所述采集周期的所述电压计算值和所述电压采集值,确定所述接插件的所述目标故障类型,包括:确定多个所述采集周期内,对应的所述电压计算值是否均与所述电压采集值相同;在各所述电压计算值均与所述电压采集值相同的情况下,控制所述计数器增加预定值,得到目标计数次数;在预定时间内,所述目标计数次数超出预定计数次数的情况下,确定所述目标故障类型为所述接插件虚接。Optionally, the electronic control unit further includes a counter, which determines the target fault type of the connector according to at least the calculated voltage values and the collected voltage values of a plurality of the collection periods, including: determining multiple During the collection period, Whether the corresponding calculated voltage values are the same as the collected voltage values; in the case that each of the calculated voltage values is the same as the collected voltage value, control the counter to increase a predetermined value to obtain the target number of counts; Within a predetermined time, when the target number of counts exceeds the predetermined number of counts, it is determined that the target fault type is the virtual connection of the connector.
可选地,所述故障确定方法还包括:在所述计数器计数的时间超出所述预定时间的情况下,控制所述计数器复位。Optionally, the fault determination method further includes: controlling the counter to reset when the time counted by the counter exceeds the predetermined time.
根据本发明实施例的另一方面,还提供了一种故障确定装置,电子控制单元至少通过接插件与传感器连接,所述电子控制单元包括RC电路和模拟量采集模块,其中,所述模拟量采集模块用于采集目标检测点的电压采集值,所述目标检测点位于所述RC电路中滤波电阻和滤波电容之间的支路上,所述故障确定装置包括:第一计算单元,用于采用多个预设计算公式,分别计算一个采集时间点的所述目标检测点的电压值,得到多个电压计算值,其中,一个所述预设计算公式对应一个所述电压计算值,多个所述采集时间点构成一个采集周期;第二计算单元,用于计算各所述电压计算值与所述电压采集值的差值,得到目标差值,并计算所述目标差值与所述电压采集值的比值,得到多个目标百分比;确定单元,用于至少根据一个所述采集周期对应的多个所述目标百分比以及预设偏差范围,确定所述传感器的目标故障类型,或者,至少根据多个所述采集周期的所述电压计算值和所述电压采集值,确定所述接插件的所述目标故障类型,所述目标故障类型至少包括以下之一:传感器对地短路、传感器对电源短路、传感器开路、接插件虚接。According to another aspect of the embodiments of the present invention, a fault determination device is also provided, the electronic control unit is connected to the sensor at least through a connector, the electronic control unit includes an RC circuit and an analog quantity acquisition module, wherein the analog quantity The acquisition module is used to collect the voltage acquisition value of the target detection point, the target detection point is located on the branch between the filter resistor and the filter capacitor in the RC circuit, and the fault determination device includes: a first calculation unit for adopting A plurality of preset calculation formulas, respectively calculate the voltage value of the target detection point at a collection time point, and obtain a plurality of voltage calculation values, wherein one of the preset calculation formula corresponds to one of the voltage calculation values, and a plurality of The collection time point constitutes a collection cycle; the second calculation unit is used to calculate the difference between each of the voltage calculation values and the voltage collection values, obtain a target difference value, and calculate the target difference value and the voltage collection value. A ratio of values to obtain a plurality of target percentages; a determining unit, configured to determine a target fault type of the sensor at least according to a plurality of target percentages corresponding to one of the collection periods and a preset deviation range, or, at least according to multiple target percentages and a preset deviation range. Determine the target fault type of the connector by calculating the voltage calculation value and the voltage acquisition value for each of the acquisition cycles, and the target fault type includes at least one of the following: sensor-to-ground short circuit, sensor-to-power short circuit , Sensor open circuit, virtual connection of connectors.
根据本发明实施例的又一方面,还提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的程序,其中,所述程序执行任意一种所述的故障确定方法。According to yet another aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, the computer-readable storage medium includes a stored program, wherein the program executes any one of the fault determination methods.
根据本发明实施例的再一方面,还提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行任意一种所述的故障确定方法。According to yet another aspect of the embodiments of the present invention, a processor is also provided, and the processor is configured to run a program, wherein any one of the fault determination methods is executed when the program runs.
根据本发明实施例的一方面,还提供了一种电子控制单元,包括故障确定装置,所述故障确定装置用于执行任意一种所述的故障确定方法。According to an aspect of the embodiments of the present invention, an electronic control unit is further provided, including a fault determination device, wherein the fault determination device is configured to execute any one of the fault determination methods.
在本发明实施例中,所述的故障确定方法,首先,在一个采集时间点,采用多个预设计算公式,分别计算目标检测点的电压值,得到多个电压计算值;然后,根据一个所述采集时间点对应的多个电压计算值以及电压采集值,确定多个目标差值,并根据各所述目标差值和所述电压采集值,确定多个目标百分比;最后,至少根据一个所述采集周期对应的多个所述目标百分比以及预设偏差范围,确定所述传感器的目标故障类型,或者,至少根据多个所述采集周期的所述电压计算值和所述电压采集值,确定所述接插件的所述目标故障类型。在本方案中,采集多个预设计算公式,分别计算目标检测点在同一个采集时间点时的多个电压计算值;再根据多个电压计算值和电压采集值,确定同一个采集时间点的多个目标百分比;最后至少根据一个采集周期对应的多个目标百分比和预设偏差范围,确定传感器的目标故障类型,或者至少根据多个采集周期对应的电压计算值和电压采集值,确定接插件的目标故障类型。即本方案通过计算目标检测点的电压计算值,较为巧妙地确定出传感器或者接插件的目标故障类型。由于本方案无需改变电子控制单元的内部电路,且无需额外增加硬件成本,这样保证了本方案的故障确定方法成本较低,仅通过上述故障确定方法便可以确定出传感器或者接插件的故障类型,从而解决了现有技术中难以确定接插件或者传感器的故障类型的问题。In the embodiment of the present invention, in the fault determination method, first, at a collection time point, a plurality of preset calculation formulas are used to calculate the voltage values of the target detection points respectively, so as to obtain a plurality of voltage calculation values; then, according to a A plurality of voltage calculation values and voltage collection values corresponding to the collection time points are determined, and a plurality of target difference values are determined, and according to each of the target difference values and the voltage collection values, a plurality of target percentages are determined; finally, at least one target percentage is determined. A plurality of the target percentages and preset deviation ranges corresponding to the collection period are used to determine the target fault type of the sensor, or, at least according to the calculated voltage values and the voltage collection values of the plurality of collection periods, The target fault type for the connector is determined. In this solution, multiple preset calculation formulas are collected, and multiple voltage calculation values of the target detection point at the same collection time point are calculated respectively; and then the same collection time point is determined according to the multiple voltage calculation values and voltage collection values. Finally, the target fault type of the sensor is determined at least according to the multiple target percentages corresponding to one collection period and the preset deviation range, or at least according to the voltage calculation value and the voltage collection value corresponding to the multiple collection periods, the connection is determined. The target failure type for the plugin. That is to say, in this scheme, the target fault type of the sensor or the connector can be determined ingeniously by calculating the voltage calculation value of the target detection point. Since this solution does not need to change the internal circuit of the electronic control unit, and does not need to increase the cost of hardware, the cost of the fault determination method of this solution is guaranteed to be low, and the fault type of the sensor or connector can be determined only through the above fault determination method. Thus, the problem that it is difficult to determine the fault type of the connector or the sensor in the prior art is solved.
附图说明Description of drawings
构成本申请的一部分的说明书附图用来提供对本申请的进一步理解,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The accompanying drawings that form a part of the present application are used to provide further understanding of the present application, and the schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute improper limitations on the present application. In the attached image:
图1示出了根据本申请的一种实施例的故障确定方法的流程图;FIG. 1 shows a flowchart of a fault determination method according to an embodiment of the present application;
图2示出了根据本申请的一种实施例的电压型模拟量采集电路的结构示意图;FIG. 2 shows a schematic structural diagram of a voltage-type analog quantity acquisition circuit according to an embodiment of the present application;
图3示出了根据本申请的一种实施例的电阻型模拟量采集电路的结构示意图;3 shows a schematic structural diagram of a resistance-type analog quantity acquisition circuit according to an embodiment of the present application;
图4示出了根据本申请的一种实施例的故障确定装置的结构示意图。FIG. 4 shows a schematic structural diagram of a fault determination apparatus according to an embodiment of the present application.
其中,上述附图包括以下附图标记:Wherein, the above-mentioned drawings include the following reference signs:
10、第一计算单元;20、第二计算单元;30、确定单元;100、电子控制单元;200、模拟量采集模块;300、滤波电容;400、滤波电阻;500、下拉电阻;600、静电电容;700、传感器;800、上拉电阻;900、目标检测点。10. The first calculation unit; 20. The second calculation unit; 30. The determination unit; 100, the electronic control unit; 200, the analog quantity acquisition module; 300, the filter capacitor; Capacitance; 700, sensor; 800, pull-up resistor; 900, target detection point.
具体实施方式Detailed ways
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances for the embodiments of the application described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
正如背景技术中所说的,现有技术中难以确定接插件或者传感器的故障类型,为了解决上述问题,本申请的一种典型的实施方式中,提供了一种故障确定方法、故障确定装置、计算机可读存储介质、处理器与电子控制单元。As mentioned in the background art, it is difficult to determine the fault type of a connector or a sensor in the prior art. In order to solve the above problem, a typical implementation of the present application provides a fault determination method, a fault determination device, Computer readable storage medium, processor and electronic control unit.
根据本申请的实施例,提供了一种故障确定方法。According to an embodiment of the present application, a fault determination method is provided.
图1是根据本申请实施例的故障确定方法的流程图。电子控制单元至少通过接插件与传感器连接,上述电子控制单元包括RC电路和模拟量采集模块,其中,上述模拟量采集模块用于采集目标检测点的电压采集值,上述目标检测点位于上述RC电路中滤波电阻和滤波电容之间的支路上,如图1所示,该故障确定方法包括以下步骤:FIG. 1 is a flowchart of a fault determination method according to an embodiment of the present application. The electronic control unit is connected to the sensor at least through a connector. The electronic control unit includes an RC circuit and an analog quantity acquisition module, wherein the analog quantity acquisition module is used to collect the voltage acquisition value of the target detection point, and the target detection point is located in the RC circuit. On the branch between the filter resistor and the filter capacitor, as shown in Figure 1, the fault determination method includes the following steps:
步骤S101,采用多个预设计算公式,分别计算一个采集时间点的上述目标检测点的电压值,得到多个电压计算值,其中,一个上述预设计算公式对应一个上述电压计算值,多个上述采集时间点构成一个采集周期;Step S101, using a plurality of preset calculation formulas to calculate the voltage value of the target detection point at a collection time point, respectively, to obtain a plurality of voltage calculation values, wherein one of the above-mentioned preset calculation formula corresponds to one of the above-mentioned voltage calculation values, and a plurality of voltage calculation values are obtained. The above collection time points constitute a collection period;
步骤S102,计算各上述电压计算值与上述电压采集值的差值,得到目标差值,并计算上述目标差值与上述电压采集值的比值,得到多个目标百分比;Step S102, calculating the difference between each of the above-mentioned calculated voltage values and the above-mentioned voltage acquisition value to obtain a target difference value, and calculating the ratio of the above-mentioned target difference value to the above-mentioned voltage acquisition value to obtain a plurality of target percentages;
步骤S103,至少根据一个上述采集周期对应的多个上述目标百分比以及预设偏差范围,确定上述传感器的目标故障类型,或者,至少根据多个上述采集周期的上述电压计算值和上述电压采集值,确定上述接插件的上述目标故障类型,上述目标故障类型至少包括以下之一:传感器对地短路、传感器对电源短路、传感器开路、接插件虚接。Step S103: Determine the target fault type of the sensor according to at least a plurality of the target percentages and a preset deviation range corresponding to the above collection period, or, at least according to the above-mentioned voltage calculation value and the above-mentioned voltage collection value of the plurality of above-mentioned collection periods, Determine the target fault type of the connector, and the target fault type includes at least one of the following: sensor-to-ground short-circuit, sensor-to-power short-circuit, sensor open-circuit, and connector virtual connection.
上述的故障确定方法中,首先,在一个采集时间点,采用多个预设计算公式,分别计算目标检测点的电压值,得到多个电压计算值;然后,根据一个上述采集时间点对应的多个电压计算值以及电压采集值,确定多个目标差值,并根据各上述目标差值和上述电压采集值,确定多个目标百分比;最后,至少根据一个上述采集周期对应的多个上述目标百分比以及预设偏差范围,确定上述传感器的目标故障类型,或者,至少根据多个上述采集周期的上述电压计算值和上述电压采集值,确定上述接插件的上述目标故障类型。在本方案中,采集多个预设计算公式,分别计算目标检测点在同一个采集时间点时的多个电压计算值;再根据多个电压计算值和电压采集值,确定同一个采集时间点的多个目标百分比;最后至少根据一个采集周期对应的多个目标百分比和预设偏差范围,确定传感器的目标故障类型,或者至少根据多个采集周期对应的电压计算值和电压采集值,确定接插件的目标故障类型。即本方案通过计算目标检测点的电压计算值,较为巧妙地确定出传感器或者接插件的目标故障类型。由于本方案无需改变电子控制单元的内部电路,且无需额外增加硬件成本,这样保证了本方案的故障确定方法成本较低,仅通过上述故障确定方法便可以确定出传感器或者接插件的故障类型,从而解决了现有技术中难以确定接插件或者传感器的故障类型的问题。In the above-mentioned fault determination method, first, at a collection time point, a plurality of preset calculation formulas are used to calculate the voltage values of the target detection points respectively, so as to obtain a plurality of voltage calculation values; Determine a plurality of target difference values according to each of the above-mentioned target difference values and the above-mentioned voltage acquisition values, and determine a plurality of target percentages according to each of the above-mentioned target difference values and the above-mentioned voltage acquisition values; finally, according to at least a plurality of above-mentioned target percentages corresponding to one of the above-mentioned acquisition periods and a preset deviation range to determine the target fault type of the sensor, or at least determine the target fault type of the connector according to the voltage calculation value and the voltage acquisition value of a plurality of acquisition cycles. In this solution, multiple preset calculation formulas are collected, and multiple voltage calculation values of the target detection point at the same collection time point are calculated respectively; and then the same collection time point is determined according to the multiple voltage calculation values and voltage collection values. Finally, the target fault type of the sensor is determined at least according to the multiple target percentages corresponding to one collection period and the preset deviation range, or at least according to the voltage calculation value and the voltage collection value corresponding to the multiple collection periods, the connection is determined. The target failure type for the plugin. That is to say, in this scheme, the target fault type of the sensor or the connector can be determined ingeniously by calculating the voltage calculation value of the target detection point. Since this solution does not need to change the internal circuit of the electronic control unit, and does not need to increase the cost of hardware, the cost of the fault determination method of this solution is guaranteed to be low, and the fault type of the sensor or connector can be determined only through the above fault determination method. Thus, the problem that it is difficult to determine the fault type of the connector or the sensor in the prior art is solved.
具体地,上述的传感器为通过接插件和线束与电子控制单元相连接的传感器。上述的接插件为与电子控制单元相连接的接插件。Specifically, the above-mentioned sensor is a sensor connected to the electronic control unit through a connector and a wire harness. The above-mentioned connector is a connector connected to the electronic control unit.
具体地,如图2和图3所示,电子控制单元100内部具有RC电路和模拟量采集模块200,其中,RC电路包括滤波电容300和滤波电阻400,其中,目标检测点900位于滤波电容300和滤波电阻400之间的支路上。另外,RC电路还可以包括静电电容600和下拉电阻500(如图2所示),或者上拉电阻800(如图3所示)。其中,传感器700通过两端具有接插件(图2和图3均未示出)的线束与电子控制单元100相连。Specifically, as shown in FIG. 2 and FIG. 3 , the
本申请的一种具体的实施例中,例如,一个采集周期为10分钟,则每间隔1分钟计算一次目标检测点的电压计算值,即一个采集周期包括了10个采集时间点,在每一个采集时间点,采用多个预设计算公式,分别计算目标检测点的电压值,这样一个采集时间点对应着多个电压计算值和一个电压采集值,再分别计算各电压计算值与该电压采集值的差值,得到多个目标差值,再计算各目标差值与电压采集值的比值,得到多个目标百分比,这样一个采集时间点对应多个目标百分比。后续可以至少根据一个采集周期对应的多个目标百分比和预设偏差范围,确定传感器的目标故障类型,或者至少根据多个采集周期的电压计算值和电压采集值,确定接插件的目标故障类型,这样进一步地保证了确定的传感器或者接插件的目标故障类型较为准确。In a specific embodiment of the present application, for example, if a collection period is 10 minutes, the voltage calculation value of the target detection point is calculated every 1 minute, that is, a collection period includes 10 collection time points, and in each At the acquisition time point, a plurality of preset calculation formulas are used to calculate the voltage value of the target detection point respectively, such that one acquisition time point corresponds to multiple voltage calculation values and one voltage acquisition value, and then each voltage calculation value and the voltage acquisition value are calculated separately. The difference between the values is obtained to obtain multiple target differences, and then the ratio of each target difference to the voltage acquisition value is calculated to obtain multiple target percentages, such that one acquisition time point corresponds to multiple target percentages. Subsequently, the target fault type of the sensor may be determined at least according to multiple target percentages and preset deviation ranges corresponding to one collection period, or the target fault type of the connector may be determined at least according to the voltage calculation value and voltage collection value of multiple collection periods, This further ensures that the determined target fault type of the sensor or connector is more accurate.
当然,在实际的应用过程中,一个采集周期以及一个采集周期中包括的多个采集时间点的个数,均可以根据实际的应用情况进行调整。Of course, in an actual application process, one collection period and the number of multiple collection time points included in one collection period can be adjusted according to actual application conditions.
需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps shown in the flowcharts of the accompanying drawings may be executed in a computer system, such as a set of computer-executable instructions, and, although a logical sequence is shown in the flowcharts, in some cases, Steps shown or described may be performed in an order different from that herein.
本申请的一种实施例中,上述电压计算值包括第一电压计算值、第二电压计算值和第三电压计算值,采用多个预设计算公式,分别计算同一个采集时间点的上述目标检测点的电压值,得到多个电压计算值,包括:采用计算上述目标检测点的电压值,得到上述第一电压计算值,其中,R2为上述滤波电阻的电阻值,C2为上述滤波电容的电容值,t为当前的上述采集时间点与上一次的上述采集时间点的时间间隔,U1为上述传感器的输入电压,VF1为上述第一电压计算值;采用计算上述目标检测点的电压值,得到上述第二电压计算值,其中,R1为上述RC电路中的上拉电阻或者下拉电阻的电阻值,VF2为上述第二电压计算值;采用计算上述目标检测点的电压值,得到上述第三电压计算值,VF3为上述第三电压计算值。在该实施例中,对于同一个采集时间点,分别采用不同的预设计算公式,计算目标检测点的电压计算值,后续根据多个采集时间点的多个电压计算值以及多个电压采集值,确定传感器的目标故障类型,这样可以进一步地较为巧妙地确定出传感器的目标故障类型。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 used to calculate the above-mentioned target at the same collection time point respectively. Detect the voltage value of the point, and obtain multiple voltage calculation values, including: Calculate the voltage value of the above-mentioned target detection point to obtain the above-mentioned first calculated voltage value, wherein R 2 is the resistance value of the above-mentioned filter resistor, C 2 is the capacitance value of the above-mentioned filter capacitor, and t is the current above-mentioned collection time point and the last time The time interval of the above-mentioned collection time points, U1 is the input voltage of the above-mentioned sensor, and VF1 is the calculated value of the above-mentioned first voltage; Calculate the voltage value of the above-mentioned target detection point to obtain the above-mentioned second voltage calculation value, wherein R1 is the resistance value of the pull-up resistor or pull-down resistor in the above - mentioned RC circuit, and VF2 is the above-mentioned second voltage calculation value; using Calculate the voltage value of the target detection point to obtain the third voltage calculation value, and VF3 is the third voltage calculation value. In this embodiment, for the same collection time point, different preset calculation formulas are respectively used to calculate the voltage calculation value of the target detection point, and then according to the multiple voltage calculation values and the multiple voltage collection values of the multiple collection time points , to determine the target fault type of the sensor, so that the target fault type of the sensor can be further determined more subtly.
为了进一步较为简单地确定出传感器的目标故障类型,本申请的另一种实施例中,至少根据一个上述采集周期对应的多个上述目标百分比以及预设偏差范围,确定上述传感器的目标故障类型,包括:在当前的上述采集时间点,将低于第一预设阈值的上述电压计算值对应的上述预设计算公式,确定为目标计算公式,或者,将高于第二预设阈值的上述电压计算值对应的上述预设计算公式,确定为上述目标计算公式;在当前的上述采集时间点的前N个上述采集时间点中,若上述目标计算公式对应的各上述目标百分比均在对应的上述预设偏差范围内,根据上述目标计算公式对应的故障类型,确定上述传感器的上述目标故障类型,其中,N小于或者等于一个上述采集周期中上述采集时间点的总数。In order to further determine the target fault type of the sensor more simply, in another embodiment of the present application, the target fault type of the above-mentioned sensor is determined at least according to a plurality of above-mentioned target percentages corresponding to one above-mentioned collection period and a preset deviation range, The method includes: at the current collection time point, determining the preset calculation formula corresponding to the voltage calculation value lower than the first preset threshold as the target calculation formula, or determining the voltage higher than the second preset threshold The above-mentioned preset calculation formula corresponding to the calculated value is determined as the above-mentioned target calculation formula; in the first N above-mentioned collection time points of the current above-mentioned collection time point, if each of the above-mentioned target percentages corresponding to the above-mentioned target calculation formula is in the corresponding above-mentioned Within the preset deviation range, the target fault type of the sensor is determined according to the fault type corresponding to the target calculation formula, wherein N is less than or equal to the total number of the above-mentioned collection time points in one of the above-mentioned collection periods.
具体地,上述第一预设阈值可以为目标检测点的超下限的电压阈值,上述第二预设阈值可以目标检测点的超上限的电压阈值。在典型的模拟量信号为0~5V的电压型信号或者电阻型信号时,上述第一预设阈值可以为0V,上述第二预设阈值可以为5V。Specifically, the first preset threshold may be the voltage threshold exceeding the lower limit of the target detection point, and the second preset threshold may be the voltage threshold exceeding the upper limit of the target detection point. When a typical analog signal is a voltage-type signal or a resistance-type signal of 0-5V, the first preset threshold may be 0V, and the second preset threshold may be 5V.
具体地,一个采集周期可以对应一个预设偏差范围,当然,每一个采集时间点也可以对应一个预设偏差范围。在本申请中,并不对此进行限制。Specifically, one collection period may correspond to a preset deviation range, and of course, each collection time point may also correspond to a preset deviation range. In the present application, this is not limited.
具体地,在上述的实施例中,若当前的采集时间点为一个采集周期的第一个采集时间点,那么该采集时间点的前N个上述采集时间点,可以为上一个采集周期中的N个采集时间点。若在同一个采集周期中,当前的采集时间点的前的所有采集时间点的总个数不满足N,则也可以取上一个采集周期中的多个采集时间点。在本申请中,并不对此进行限制。在实际的应用过程中,N可以根据实际情况进行调整。Specifically, in the above-mentioned embodiment, if the current collection time point is the first collection time point of a collection period, then the first N above-mentioned collection time points of the collection time point may be the first collection time point in the previous collection period. N acquisition time points. If in the same collection period, the total number of all collection time points before the current collection time point does not satisfy N, multiple collection time points in the previous collection period may also be taken. In the present application, this is not limited. In the actual application process, N can be adjusted according to the actual situation.
本申请的又一种实施例中,根据上述目标计算公式对应的故障类型,确定上述传感器的上述目标故障类型,包括:在上述目标计算公式为的情况下,确定上述目标故障类型为上述传感器对地短路;在上述目标计算公式为的情况下,确定上述目标故障类型为上述传感器开路;在上述目标计算公式为的情况下,确定上述目标故障类型为上述传感器对电源短路。在该实施例中,根据预设计算公式对应的故障类型,确定传感器的目标故障类型,这样可以进一步地较为简单地确定出传感器的目标故障类型。In another embodiment of the present application, determining the target fault type of the sensor according to the fault type corresponding to the target calculation formula includes: in the target calculation formula: In the case of In the case of , determine that the above target fault type is the above sensor open circuit; the above target calculation formula is In the case of , it is determined that the above-mentioned target fault type is the short-circuit of the above-mentioned sensor to the 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, which determines the target fault type of the connector according to at least the calculated voltage values and the collected voltage values at a plurality of the collection time points, including: determining During multiple of the above acquisition cycles, Whether the corresponding calculated values of the voltages are the same as the collected values of the voltages; if each of the calculated values of the voltages is the same as the collected values of the voltages, control the counters to increase by a predetermined value to obtain the target number of counts; within a predetermined time, the above-mentioned When the target count times exceed the predetermined count times, it is determined that the target fault type is the virtual connection of the connector. If there is a virtual connection of the connector, the calculated voltage value will fluctuate. Therefore, when the voltage calculated values corresponding to multiple acquisition cycles are the same as the voltage acquisition value when the sensor is open, the control counter is increased by a predetermined value. , get the target count times. If the target number of counts exceeds the predetermined number of counts within the predetermined time, it is determined that the target fault type of the connector is a virtual connection of the connector, so that the fault type of the connector can be determined more accurately.
具体地,上述的实施例中,上述计数器增加预定值,具体地可以增加1。即在各采集周期中,对应的各电压计算值均与电压采集值相同的情况下,控制计数器增加1。Specifically, in the above-mentioned embodiment, the above-mentioned counter is increased by a predetermined value, specifically, it can be increased by 1. That is, in each acquisition cycle, When the corresponding calculated voltage values are the same as the collected voltage values, the control counter is incremented by 1.
具体地,上述预定时间的大小可以根据实际的应用情况进行调整,在本申请中并不对此进行限制。Specifically, the size of the above-mentioned predetermined time can be adjusted according to the actual application situation, which is not limited in this application.
本申请的一种实施例中,上述故障确定方法还包括:在上述计数器计数的时间超出上述预定时间的情况下,控制上述计数器复位。这样可以进一步地避免计数器的目标计数次数出现错误,以及进一步地避免对接插件的目标故障类型判断不准确。In an embodiment of the present application, the above-mentioned fault determination method further includes: when the time counted by the above-mentioned counter exceeds the above-mentioned predetermined time, controlling the above-mentioned counter to reset. In this way, errors in the target count times of the counter can be further avoided, and inaccurate determination of the target failure type of the docking plug-in can be further avoided.
本申请实施例还提供了一种故障确定装置,需要说明的是,本申请实施例的故障确定装置可以用于执行本申请实施例所提供的用于故障确定方法。以下对本申请实施例提供的故障确定装置进行介绍。The embodiment of the present application further provides a fault determination apparatus. It should be noted that the fault determination apparatus of the embodiment of the present application may be used to execute the method for fault determination provided by the embodiment of the present application. The following describes the fault determination device provided by the embodiment of the present application.
图4是根据本申请实施例的故障确定装置的结构示意图。电子控制单元至少通过接插件与传感器连接,上述电子控制单元包括RC电路和模拟量采集模块,其中,上述模拟量采集模块用于采集目标检测点的电压采集值,上述目标检测点位于上述RC电路中滤波电阻和滤波电容之间的支路上,如图4所示,该故障确定装置包括:FIG. 4 is a schematic structural diagram of a fault determination apparatus according to an embodiment of the present application. The electronic control unit is connected to the sensor at least through a connector. The electronic control unit includes an RC circuit and an analog quantity acquisition module, wherein the analog quantity acquisition module is used to collect the voltage acquisition value of the target detection point, and the target detection point is located in the RC circuit. On the branch between the filter resistor and the filter capacitor, as shown in Figure 4, the fault determination device includes:
第一计算单元10,用于采用多个预设计算公式,分别计算一个采集时间点的上述目标检测点的电压值,得到多个电压计算值,其中,一个上述预设计算公式对应一个上述电压计算值,多个上述采集时间点构成一个采集周期;The
第二计算单元20,用于计算各上述电压计算值与上述电压采集值的差值,得到目标差值,并计算上述目标差值与上述电压采集值的比值,得到多个目标百分比;The
确定单元30,用于至少根据一个上述采集周期对应的多个上述目标百分比以及预设偏差范围,确定上述传感器的目标故障类型,或者,至少根据多个上述采集周期的上述电压计算值和上述电压采集值,确定上述接插件的上述目标故障类型,上述目标故障类型至少包括以下之一:传感器对地短路、传感器对电源短路、传感器开路、接插件虚接。The determining
上述的故障确定装置中,第一计算单元用于采用多个预设计算公式,分别计算一个采集时间点的上述目标检测点的电压值,得到多个电压计算值;第二计算单元用于计算各上述电压计算值与上述电压采集值的差值,得到目标差值,并计算上述目标差值与上述电压采集值的比值,得到多个目标百分比;确定单元用于至少根据一个上述采集周期对应的多个上述目标百分比以及预设偏差范围,确定上述传感器的目标故障类型,或者,至少根据多个上述采集周期的上述电压计算值和上述电压采集值,确定上述接插件的上述目标故障类型。在本方案中,采集多个预设计算公式,分别计算目标检测点在同一个采集时间点时的多个电压计算值;再根据多个电压计算值和电压采集值,确定同一个采集时间点的多个目标百分比;最后至少根据一个采集周期对应的多个目标百分比和预设偏差范围,确定传感器的目标故障类型,或者至少根据多个采集周期对应的电压计算值和电压采集值,确定接插件的目标故障类型。即本方案通过计算目标检测点的电压计算值,较为巧妙地确定出传感器或者接插件的目标故障类型。由于本方案无需改变电子控制单元的内部电路,且无需额外增加硬件成本,这样保证了本方案的故障确定方法成本较低,仅通过上述故障确定方法便可以确定出传感器或者接插件的故障类型,从而解决了现有技术中难以确定接插件或者传感器的故障类型的问题。In the above fault determination device, the first calculation unit is configured to use a plurality of preset calculation formulas to calculate the voltage value of the target detection point at a collection time point, respectively, to obtain a plurality of voltage calculation values; the second calculation unit is used to calculate The difference between each of the above-mentioned voltage calculation values and the above-mentioned voltage acquisition values is obtained to obtain a target difference value, and the ratio of the above-mentioned target difference value to the above-mentioned voltage acquisition value is calculated to obtain a plurality of target percentages; the determining unit is configured to correspond to at least one of the above-mentioned acquisition periods The target fault type of the sensor is determined, or the target fault type of the connector is determined at least according to the voltage calculation value and the voltage acquisition value of a plurality of the above collection periods. In this solution, multiple preset calculation formulas are collected, and multiple voltage calculation values of the target detection point at the same collection time point are calculated respectively; and then the same collection time point is determined according to the multiple voltage calculation values and voltage collection values. Finally, the target fault type of the sensor is determined at least according to the multiple target percentages corresponding to one collection period and the preset deviation range, or at least according to the voltage calculation value and the voltage collection value corresponding to the multiple collection periods, the connection is determined. The target failure type for the plugin. That is to say, in this scheme, the target fault type of the sensor or the connector can be determined ingeniously by calculating the voltage calculation value of the target detection point. Since this solution does not need to change the internal circuit of the electronic control unit, and does not need to increase the cost of hardware, the cost of the fault determination method of this solution is guaranteed to be low, and the fault type of the sensor or connector can be determined only through the above fault determination method. Thus, the problem that it is difficult to determine the fault type of the connector or the sensor in the prior art is solved.
具体地,上述的传感器为通过接插件和线束与电子控制单元相连接的传感器。上述的接插件为与电子控制单元相连接的接插件。Specifically, the above-mentioned sensor is a sensor connected to the electronic control unit through a connector and a wire harness. The above-mentioned connector is a connector connected to the electronic control unit.
具体地,如图2和图3所示,电子控制单元100内部具有RC电路和模拟量采集模块200,其中,RC电路包括滤波电容300和滤波电阻400,其中,目标检测点900位于滤波电容300和滤波电阻400之间的支路上。另外,RC电路还可以包括静电电容600和下拉电阻500(如图2所示),或者上拉电阻800(如图3所示)。其中,传感器700通过两端具有接插件(图2和图3均未示出)的线束与电子控制单元100相连。Specifically, as shown in FIG. 2 and FIG. 3 , the
本申请的一种具体的实施例中,例如,一个采集周期为10分钟,则每间隔1分钟计算一次目标检测点的电压计算值,即一个采集周期包括了10个采集时间点,在每一个采集时间点,采用多个预设计算公式,分别计算目标检测点的电压值,这样一个采集时间点对应着多个电压计算值和一个电压采集值,再分别计算各电压计算值与该电压采集值的差值,得到多个目标差值,再计算各目标差值与电压采集值的比值,得到多个目标百分比,这样一个采集时间点对应多个目标百分比。后续可以至少根据一个采集周期对应的多个目标百分比和预设偏差范围,确定传感器的目标故障类型,或者至少根据多个采集周期的电压计算值和电压采集值,确定接插件的目标故障类型,这样进一步地保证了确定的传感器或者接插件的目标故障类型较为准确。In a specific embodiment of the present application, for example, if a collection period is 10 minutes, the voltage calculation value of the target detection point is calculated every 1 minute, that is, a collection period includes 10 collection time points, and in each At the acquisition time point, a plurality of preset calculation formulas are used to calculate the voltage value of the target detection point respectively, such that one acquisition time point corresponds to multiple voltage calculation values and one voltage acquisition value, and then each voltage calculation value and the voltage acquisition value are calculated separately. The difference between the values is obtained to obtain multiple target differences, and then the ratio of each target difference to the voltage acquisition value is calculated to obtain multiple target percentages, such that one acquisition time point corresponds to multiple target percentages. Subsequently, the target fault type of the sensor may be determined at least according to multiple target percentages and preset deviation ranges corresponding to one collection period, or the target fault type of the connector may be determined at least according to the voltage calculation value and voltage collection value of multiple collection periods, This further ensures that the determined target fault type of the sensor or connector is more accurate.
当然,在实际的应用过程中,一个采集周期以及一个采集周期中包括的多个采集时间点的个数,均可以根据实际的应用情况进行调整。Of course, in an actual application process, one collection period and the number of multiple collection time points included in one collection period can be adjusted according to actual application conditions.
本申请的一种实施例中,上述电压计算值包括第一电压计算值、第二电压计算值和第三电压计算值,上述第一计算单元包括第一计算模块、第二计算模块和第三计算模块,其中,上述第一计算模块用于采用计算上述目标检测点的电压值,得到上述第一电压计算值,其中,R2为上述滤波电阻的电阻值,C2为上述滤波电容的电容值,t为当前的上述采集时间点与上一次的上述采集时间点的时间间隔,U1为上述传感器的输入电压,VF1为上述第一电压计算值;上述第二计算模块用于采用计算上述目标检测点的电压值,得到上述第二电压计算值,其中,R1为上述RC电路中的上拉电阻或者下拉电阻的电阻值,VF2为上述第二电压计算值;上述第三计算模块用于采用计算上述目标检测点的电压值,得到上述第三电压计算值,VF3为上述第三电压计算值。在该实施例中,对于同一个采集时间点,分别采用不同的预设计算公式,计算目标检测点的电压计算值,后续根据多个采集时间点的多个电压计算值以及多个电压采集值,确定传感器的目标故障类型,这样可以进一步地较为巧妙地确定出传感器的目标故障类型。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 the first calculation unit includes a first calculation module, a second calculation module, and a third calculation module. A calculation module, wherein the above-mentioned first calculation module is used for adopting Calculate the voltage value of the above-mentioned target detection point to obtain the above-mentioned first calculated voltage value, wherein R 2 is the resistance value of the above-mentioned filter resistor, C 2 is the capacitance value of the above-mentioned filter capacitor, and t is the current above-mentioned collection time point and the last time The time interval of the above-mentioned collection time points, U1 is the input voltage of the above-mentioned sensor, VF1 is the above-mentioned calculated value of the first voltage; the above-mentioned second calculation module is used to adopt Calculate the voltage value of the target detection point to obtain the second voltage calculation value, where R1 is the resistance value of the pull-up resistor or pull - down resistor in the RC circuit, and VF2 is the second voltage calculation value; The third calculation module for adopting Calculate the voltage value of the target detection point to obtain the third voltage calculation value, and VF3 is the third voltage calculation value. In this embodiment, for the same collection time point, different preset calculation formulas are respectively used to calculate the voltage calculation value of the target detection point, and then according to the multiple voltage calculation values and the multiple voltage collection values of the multiple collection time points , to determine the target fault type of the sensor, so that the target fault type of the sensor can be further determined more subtly.
为了进一步较为简单地确定出传感器的目标故障类型,本申请的另一种实施例中,至少根据一个上述采集周期对应的多个上述目标百分比以及预设偏差范围,确定上述传感器的目标故障类型,包括:在当前的上述采集时间点,将低于第一预设阈值的上述电压计算值对应的上述预设计算公式,确定为目标计算公式,或者,将高于第二预设阈值的上述电压计算值对应的上述预设计算公式,确定为上述目标计算公式;在当前的上述采集时间点的前N个上述采集时间点中,若上述目标计算公式对应的各上述目标百分比均在对应的上述预设偏差范围内,根据上述目标计算公式对应的故障类型,确定上述传感器的上述目标故障类型,其中,N小于或者等于一个上述采集周期中上述采集时间点的总数。In order to further determine the target fault type of the sensor more simply, in another embodiment of the present application, the target fault type of the above-mentioned sensor is determined at least according to a plurality of above-mentioned target percentages corresponding to one above-mentioned collection period and a preset deviation range, The method includes: at the current collection time point, determining the preset calculation formula corresponding to the voltage calculation value lower than the first preset threshold as the target calculation formula, or determining the voltage higher than the second preset threshold The above-mentioned preset calculation formula corresponding to the calculated value is determined as the above-mentioned target calculation formula; in the first N above-mentioned collection time points of the current above-mentioned collection time point, if each of the above-mentioned target percentages corresponding to the above-mentioned target calculation formula is in the corresponding above-mentioned Within the preset deviation range, the target fault type of the sensor is determined according to the fault type corresponding to the target calculation formula, wherein N is less than or equal to the total number of the above-mentioned collection time points in one of the above-mentioned collection periods.
具体地,上述第一预设阈值可以为目标检测点的超下限的电压阈值,上述第二预设阈值可以目标检测点的超上限的电压阈值。在典型的模拟量信号为0~5V的电压型信号或者电阻型信号时,上述第一预设阈值可以为0V,上述第二预设阈值可以为5V。Specifically, the first preset threshold may be the voltage threshold exceeding the lower limit of the target detection point, and the second preset threshold may be the voltage threshold exceeding the upper limit of the target detection point. When a typical analog signal is a voltage-type signal or a resistance-type signal of 0-5V, the first preset threshold may be 0V, and the second preset threshold may be 5V.
具体地,一个采集周期可以对应一个预设偏差范围,当然,每一个采集时间点也可以对应一个预设偏差范围。在本申请中,并不对此进行限制。Specifically, one collection period may correspond to a preset deviation range, and of course, each collection time point may also correspond to a preset deviation range. In the present application, this is not limited.
具体地,在上述的实施例中,若当前的采集时间点为一个采集周期的第一个采集时间点,那么该采集时间点的前N个上述采集时间点,可以为上一个采集周期中的N个采集时间点。若在同一个采集周期中,当前的采集时间点的前的所有采集时间点的总个数不满足N,则也可以取上一个采集周期中的多个采集时间点。在本申请中,并不对此进行限制。在实际的应用过程中,N可以根据实际情况进行调整。Specifically, in the above-mentioned embodiment, if the current collection time point is the first collection time point of a collection period, then the first N above-mentioned collection time points of the collection time point may be the first collection time point in the previous collection period. N acquisition time points. If in the same collection period, the total number of all collection time points before the current collection time point does not satisfy N, multiple collection time points in the previous collection period may also be taken. In the present application, this is not limited. In the actual application process, N can be adjusted according to the actual situation.
本申请的又一种实施例中,上述第二确定模块包括第一确定子模块、第二确定子模块和第三确定子模块,其中,上述第一确定子模块用于上述目标计算公式为的情况下,确定上述目标故障类型为上述传感器对地短路;上述第二确定子模块用于上述目标计算公式为的情况下,确定上述目标故障类型为上述传感器开路;上述第三确定子模块用于在上述目标计算公式为的情况下,确定上述目标故障类型为上述传感器对电源短路。在该实施例中,根据预设计算公式对应的故障类型,确定传感器的目标故障类型,这样可以进一步地较为简单地确定出传感器的目标故障类型。In another embodiment of the present application, the second determination module includes a first determination sub-module, a second determination sub-module, and a third determination sub-module, wherein the first determination sub-module is used for the target calculation formula: Under the condition of Under the condition of In the case of , it is determined that the above-mentioned target fault type is the short-circuit of the above-mentioned sensor to the 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 used to determine a plurality of the above During the acquisition period, Whether the corresponding calculated values of the above-mentioned voltages are the same as the above-mentioned collected voltage values; the above-mentioned control module is configured to control the above-mentioned counter to increase a predetermined value to obtain the target count times when each of the above-mentioned calculated values of the above-mentioned voltages is the same as the above-mentioned voltage collected values; the above-mentioned The fourth determining module is configured to determine that the target fault type is the virtual connection of the connector when the target number of counts exceeds the predetermined number of counts within a predetermined time. If there is a virtual connection of the connector, the calculated voltage value will fluctuate. Therefore, when the voltage calculated values corresponding to multiple acquisition cycles are the same as the voltage acquisition value when the sensor is open, the control counter is increased by a predetermined value. , get the target count times. If the target number of counts exceeds the predetermined number of counts within the predetermined time, it is determined that the target fault type of the connector is a virtual connection of the connector, so that the fault type of the connector can be determined more accurately.
具体地,上述的实施例中,上述计数器增加预定值,具体地可以增加1。即在各采集周期中,对应的各电压计算值均与电压采集值相同的情况下,控制计数器增加1。Specifically, in the above-mentioned embodiment, the above-mentioned counter is increased by a predetermined value, specifically, it can be increased by 1. That is, in each acquisition cycle, When the corresponding calculated voltage values are the same as the collected voltage values, the control counter is incremented by 1.
具体地,上述预定时间的大小可以根据实际的应用情况进行调整,在本申请中并不对此进行限制。Specifically, the size of the above-mentioned predetermined time can be adjusted according to the actual application situation, which is not limited in this application.
本申请的一种实施例中,上述故障确定装置还包括控制单元,用于在上述计数器计数的时间超出上述预定时间的情况下,控制上述计数器复位。这样可以进一步地避免计数器的目标计数次数出现错误,以及进一步地避免对接插件的目标故障类型判断不准确。In an embodiment of the present application, the above-mentioned fault determination device further includes a control unit, configured to control the above-mentioned counter to reset when the time counted by the above-mentioned counter exceeds the above-mentioned predetermined time. In this way, errors in the target count times of the counter can be further avoided, and inaccurate determination of the target failure type of the docking plug-in can be further avoided.
上述故障确定装置包括处理器和存储器,上述第一计算单元、第二计算单元和确定单元等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。The above-mentioned fault determination device includes a processor and a memory, and the above-mentioned first calculation unit, the second calculation unit and the determination unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions. .
处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来解决现有技术中难以确定接插件或者传感器的故障类型的问题。The processor contains a kernel, and the kernel calls the corresponding program unit from the memory. One or more kernels can be set, and the problem that it is difficult to determine the fault type of a connector or a sensor in the prior art can be solved by adjusting kernel parameters.
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read only memory (ROM) or flash memory (flash RAM), the memory including at least one memory chip.
本发明实施例提供了一种计算机可读存储介质,其上存储有程序,该程序被处理器执行时实现上述故障确定方法。An embodiment of the present invention provides a computer-readable storage medium on which a program is stored, and when the program is executed by a processor, the above-mentioned fault determination method is implemented.
本发明实施例提供了一种处理器,上述处理器用于运行程序,其中,上述程序运行时执行上述故障确定方法。An embodiment of the present invention provides a processor, where the processor is configured to run a program, wherein the above-mentioned fault determination method is executed when the above-mentioned program is running.
本申请的一种典型的实施例中,还提供了一种电子控制单元,上述电子控制单元包括故障确定装置,上述故障确定装置用于执行任意一种上述的故障确定方法。In a typical embodiment of the present application, an electronic control unit is further provided, and the electronic control unit includes a fault determination device, and the fault determination device is configured to execute any one of the above fault determination methods.
上述的电子控制单元包括上述故障确定装置,上述故障确定装置用于执行任意一种上述的故障确定方法。上述的故障确定方法中,首先,在一个采集时间点,采用多个预设计算公式,分别计算目标检测点的电压值,得到多个电压计算值;然后,根据一个上述采集时间点对应的多个电压计算值以及电压采集值,确定多个目标差值,并根据各上述目标差值和上述电压采集值,确定多个目标百分比;最后,至少根据一个上述采集周期对应的多个上述目标百分比以及预设偏差范围,确定上述传感器的目标故障类型,或者,至少根据多个上述采集周期的上述电压计算值和上述电压采集值,确定上述接插件的上述目标故障类型。在本方案中,采集多个预设计算公式,分别计算目标检测点在同一个采集时间点时的多个电压计算值;再根据多个电压计算值和电压采集值,确定同一个采集时间点的多个目标百分比;最后至少根据一个采集周期对应的多个目标百分比和预设偏差范围,确定传感器的目标故障类型,或者至少根据多个采集周期对应的电压计算值和电压采集值,确定接插件的目标故障类型。即本方案通过计算目标检测点的电压计算值,较为巧妙地确定出传感器或者接插件的目标故障类型。由于本方案无需改变电子控制单元的内部电路,且无需额外增加硬件成本,这样保证了本方案的故障确定方法成本较低,仅通过上述故障确定方法便可以确定出传感器或者接插件的故障类型,从而解决了现有技术中难以确定接插件或者传感器的故障类型的问题。The above-mentioned electronic control unit includes the above-mentioned fault determination device, and the above-mentioned fault determination device is configured to execute any one of the above-mentioned fault determination methods. In the above-mentioned fault determination method, first, at a collection time point, a plurality of preset calculation formulas are used to calculate the voltage values of the target detection points respectively, so as to obtain a plurality of voltage calculation values; Determine a plurality of target difference values according to each of the above-mentioned target difference values and the above-mentioned voltage acquisition values, and determine a plurality of target percentages according to each of the above-mentioned target difference values and the above-mentioned voltage acquisition values; finally, according to at least a plurality of above-mentioned target percentages corresponding to one of the above-mentioned acquisition periods and a preset deviation range to determine the target fault type of the sensor, or at least determine the target fault type of the connector according to the voltage calculation value and the voltage acquisition value of a plurality of acquisition cycles. In this solution, multiple preset calculation formulas are collected, and multiple voltage calculation values of the target detection point at the same collection time point are calculated respectively; and then the same collection time point is determined according to the multiple voltage calculation values and voltage collection values. Finally, the target fault type of the sensor is determined at least according to the multiple target percentages corresponding to one collection period and the preset deviation range, or at least according to the voltage calculation value and the voltage collection value corresponding to the multiple collection periods, the connection is determined. The target failure type for the plugin. That is to say, in this scheme, the target fault type of the sensor or the connector can be determined ingeniously by calculating the voltage calculation value of the target detection point. Since this solution does not need to change the internal circuit of the electronic control unit, and does not need to increase the cost of hardware, the cost of the fault determination method of this solution is guaranteed to be low, and the fault type of the sensor or connector can be determined only through the above fault determination method. Thus, the problem that it is difficult to determine the fault type of the connector or the sensor in the prior art is solved.
本发明实施例提供了一种设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现至少以下步骤:An embodiment of the present invention provides a device. The device includes a processor, a memory, and a program stored in the memory and running on the processor. The processor implements at least the following steps when executing the program:
步骤S101,采用多个预设计算公式,分别计算一个采集时间点的上述目标检测点的电压值,得到多个电压计算值,其中,一个上述预设计算公式对应一个上述电压计算值,多个上述采集时间点构成一个采集周期;Step S101, using a plurality of preset calculation formulas to calculate the voltage value of the target detection point at a collection time point, respectively, to obtain a plurality of voltage calculation values, wherein one of the above-mentioned preset calculation formula corresponds to one of the above-mentioned voltage calculation values, and a plurality of voltage calculation values are obtained. The above collection time points constitute a collection period;
步骤S102,计算各上述电压计算值与上述电压采集值的差值,得到目标差值,并计算上述目标差值与上述电压采集值的比值,得到多个目标百分比;Step S102, calculating the difference between each of the above-mentioned calculated voltage values and the above-mentioned voltage acquisition value to obtain a target difference value, and calculating the ratio of the above-mentioned target difference value to the above-mentioned voltage acquisition value to obtain a plurality of target percentages;
步骤S103,至少根据一个上述采集周期对应的多个上述目标百分比以及预设偏差范围,确定上述传感器的目标故障类型,或者,至少根据多个上述采集周期的上述电压计算值和上述电压采集值,确定上述接插件的上述目标故障类型,上述目标故障类型至少包括以下之一:传感器对地短路、传感器对电源短路、传感器开路、接插件虚接。Step S103: Determine the target fault type of the sensor according to at least a plurality of the target percentages and a preset deviation range corresponding to the above collection period, or, at least according to the above-mentioned voltage calculation value and the above-mentioned voltage collection value of the plurality of above-mentioned collection periods, Determine the target fault type of the connector, and the target fault type includes at least one of the following: sensor-to-ground short-circuit, sensor-to-power short-circuit, sensor open-circuit, and connector virtual connection.
本文中的设备可以是服务器、PC、PAD、手机等。The devices in this article can be servers, PCs, PADs, mobile phones, and so on.
本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有至少如下方法步骤的程序:The present application also provides a computer program product that, when executed on a data processing device, is adapted to execute a program initialized with at least the following method steps:
步骤S101,采用多个预设计算公式,分别计算一个采集时间点的上述目标检测点的电压值,得到多个电压计算值,其中,一个上述预设计算公式对应一个上述电压计算值,多个上述采集时间点构成一个采集周期;Step S101, using a plurality of preset calculation formulas to calculate the voltage value of the target detection point at a collection time point, respectively, to obtain a plurality of voltage calculation values, wherein one of the above-mentioned preset calculation formula corresponds to one of the above-mentioned voltage calculation values, and a plurality of voltage calculation values are obtained. The above collection time points constitute a collection period;
步骤S102,计算各上述电压计算值与上述电压采集值的差值,得到目标差值,并计算上述目标差值与上述电压采集值的比值,得到多个目标百分比;Step S102, calculating the difference between each of the above-mentioned calculated voltage values and the above-mentioned voltage acquisition value to obtain a target difference value, and calculating the ratio of the above-mentioned target difference value to the above-mentioned voltage acquisition value to obtain a plurality of target percentages;
步骤S103,至少根据一个上述采集周期对应的多个上述目标百分比以及预设偏差范围,确定上述传感器的目标故障类型,或者,至少根据多个上述采集周期的上述电压计算值和上述电压采集值,确定上述接插件的上述目标故障类型,上述目标故障类型至少包括以下之一:传感器对地短路、传感器对电源短路、传感器开路、接插件虚接。Step S103: Determine the target fault type of the sensor according to at least a plurality of the target percentages and a preset deviation range corresponding to the above collection period, or, at least according to the above-mentioned voltage calculation value and the above-mentioned voltage collection value of the plurality of above-mentioned collection periods, Determine the target fault type of the connector, and the target fault type includes at least one of the following: sensor-to-ground short-circuit, sensor-to-power short-circuit, sensor open-circuit, and connector virtual connection.
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the above-mentioned units may be a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例上述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the above-mentioned integrated units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , which includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above-mentioned methods in various embodiments of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .
从以上的描述中,可以看出,本申请上述的实施例实现了如下技术效果:From the above description, it can be seen that the above-mentioned embodiments of the present application achieve the following technical effects:
1)、本申请的故障确定方法中,首先,在一个采集时间点,采用多个预设计算公式,分别计算目标检测点的电压值,得到多个电压计算值;然后,根据一个上述采集时间点对应的多个电压计算值以及电压采集值,确定多个目标差值,并根据各上述目标差值和上述电压采集值,确定多个目标百分比;最后,至少根据一个上述采集周期对应的多个上述目标百分比以及预设偏差范围,确定上述传感器的目标故障类型,或者,至少根据多个上述采集周期的上述电压计算值和上述电压采集值,确定上述接插件的上述目标故障类型。在本方案中,采集多个预设计算公式,分别计算目标检测点在同一个采集时间点时的多个电压计算值;再根据多个电压计算值和电压采集值,确定同一个采集时间点的多个目标百分比;最后至少根据一个采集周期对应的多个目标百分比和预设偏差范围,确定传感器的目标故障类型,或者至少根据多个采集周期对应的电压计算值和电压采集值,确定接插件的目标故障类型。即本方案通过计算目标检测点的电压计算值,较为巧妙地确定出传感器或者接插件的目标故障类型。由于本方案无需改变电子控制单元的内部电路,且无需额外增加硬件成本,这样保证了本方案的故障确定方法成本较低,仅通过上述故障确定方法便可以确定出传感器或者接插件的故障类型,从而解决了现有技术中难以确定接插件或者传感器的故障类型的问题。1) In the fault determination method of the present application, first, at a collection time point, a plurality of preset calculation formulas are used to calculate the voltage value of the target detection point respectively, and a plurality of voltage calculation values are obtained; then, according to one of the above collection time points A plurality of calculated voltage values and voltage acquisition values corresponding to the points, determine a plurality of target difference values, and determine a plurality of target percentages according to each of the above target difference values and the above voltage acquisition values; Determine the target fault type of the sensor, or at least determine the target fault type of the connector according to the voltage calculation value and the voltage acquisition value of a plurality of the above-mentioned collection periods. In this solution, multiple preset calculation formulas are collected, and multiple voltage calculation values of the target detection point at the same collection time point are calculated respectively; and then the same collection time point is determined according to the multiple voltage calculation values and voltage collection values. Finally, the target fault type of the sensor is determined at least according to the multiple target percentages corresponding to one collection period and the preset deviation range, or at least according to the voltage calculation value and the voltage collection value corresponding to the multiple collection periods, the connection is determined. The target failure type for the plugin. That is to say, in this scheme, the target fault type of the sensor or the connector can be determined ingeniously by calculating the voltage calculation value of the target detection point. Since this solution does not need to change the internal circuit of the electronic control unit, and does not need to increase the cost of hardware, the cost of the fault determination method of this solution is guaranteed to be low, and the fault type of the sensor or connector can be determined only through the above fault determination method. Thus, the problem that it is difficult to determine the fault type of the connector or the sensor in the prior art is solved.
2)、本申请的故障确定装置中,第一计算单元用于采用多个预设计算公式,分别计算一个采集时间点的上述目标检测点的电压值,得到多个电压计算值;第二计算单元用于计算各上述电压计算值与上述电压采集值的差值,得到目标差值,并计算上述目标差值与上述电压采集值的比值,得到多个目标百分比;确定单元用于至少根据一个上述采集周期对应的多个上述目标百分比以及预设偏差范围,确定上述传感器的目标故障类型,或者,至少根据多个上述采集周期的上述电压计算值和上述电压采集值,确定上述接插件的上述目标故障类型。在本方案中,采集多个预设计算公式,分别计算目标检测点在同一个采集时间点时的多个电压计算值;再根据多个电压计算值和电压采集值,确定同一个采集时间点的多个目标百分比;最后至少根据一个采集周期对应的多个目标百分比和预设偏差范围,确定传感器的目标故障类型,或者至少根据多个采集周期对应的电压计算值和电压采集值,确定接插件的目标故障类型。即本方案通过计算目标检测点的电压计算值,较为巧妙地确定出传感器或者接插件的目标故障类型。由于本方案无需改变电子控制单元的内部电路,且无需额外增加硬件成本,这样保证了本方案的故障确定方法成本较低,仅通过上述故障确定方法便可以确定出传感器或者接插件的故障类型,从而解决了现有技术中难以确定接插件或者传感器的故障类型的问题。2) In the fault determination device of the present application, the first calculation unit is configured to use a plurality of preset calculation formulas to calculate the voltage value of the above-mentioned target detection point at a collection time point, respectively, to obtain a plurality of voltage calculation values; the second calculation The unit is used to calculate the difference between each of the above-mentioned voltage calculation values and the above-mentioned voltage acquisition values to obtain the target difference value, and to calculate the ratio of the above-mentioned target difference value to the above-mentioned voltage acquisition value to obtain a plurality of target percentages; the determining unit is used for at least one A plurality of the above target percentages and preset deviation ranges corresponding to the above collection periods are used to determine the target fault type of the above sensors, or, at least according to the above voltage calculated values and the above voltage collection values of the above collection periods, the above-mentioned connector is determined. Target failure type. In this solution, multiple preset calculation formulas are collected, and multiple voltage calculation values of the target detection point at the same collection time point are calculated respectively; and then the same collection time point is determined according to the multiple voltage calculation values and voltage collection values. Finally, the target fault type of the sensor is determined at least according to the multiple target percentages corresponding to one collection period and the preset deviation range, or at least according to the voltage calculation value and the voltage collection value corresponding to the multiple collection periods, the connection is determined. The target failure type for the plugin. That is to say, in this scheme, the target fault type of the sensor or the connector can be determined ingeniously by calculating the voltage calculation value of the target detection point. Since this solution does not need to change the internal circuit of the electronic control unit, and does not need to increase the cost of hardware, the cost of the fault determination method of this solution is guaranteed to be low, and the fault type of the sensor or connector can be determined only through the above fault determination method. Thus, the problem that it is difficult to determine the fault type of the connector or the sensor in the prior art is solved.
3)、本申请的电子控制单元包括上述故障确定装置,上述故障确定装置用于执行任意一种上述的故障确定方法。上述故障确定方法中,首先,在一个采集时间点,采用多个预设计算公式,分别计算目标检测点的电压值,得到多个电压计算值;然后,根据一个上述采集时间点对应的多个电压计算值以及电压采集值,确定多个目标差值,并根据各上述目标差值和上述电压采集值,确定多个目标百分比;最后,至少根据一个上述采集周期对应的多个上述目标百分比以及预设偏差范围,确定上述传感器的目标故障类型,或者,至少根据多个上述采集周期的上述电压计算值和上述电压采集值,确定上述接插件的上述目标故障类型。在本方案中,采集多个预设计算公式,分别计算目标检测点在同一个采集时间点时的多个电压计算值;再根据多个电压计算值和电压采集值,确定同一个采集时间点的多个目标百分比;最后至少根据一个采集周期对应的多个目标百分比和预设偏差范围,确定传感器的目标故障类型,或者至少根据多个采集周期对应的电压计算值和电压采集值,确定接插件的目标故障类型。即本方案通过计算目标检测点的电压计算值,较为巧妙地确定出传感器或者接插件的目标故障类型。由于本方案无需改变电子控制单元的内部电路,且无需额外增加硬件成本,这样保证了本方案的故障确定方法成本较低,仅通过上述故障确定方法便可以确定出传感器或者接插件的故障类型,从而解决了现有技术中难以确定接插件或者传感器的故障类型的问题。3) The electronic control unit of the present application includes the above-mentioned fault determination device, and the above-mentioned fault determination device is used to execute any one of the above-mentioned fault determination methods. In the above fault determination method, first, at a collection time point, a plurality of preset calculation formulas are used to calculate the voltage value of the target detection point respectively, and a plurality of voltage calculation values are obtained; The calculated voltage value and the voltage acquisition value, determine multiple target difference values, and determine multiple target percentages according to each of the above-mentioned target difference values and the above-mentioned voltage acquisition values; finally, according to at least a plurality of the above-mentioned target percentages corresponding to the above-mentioned acquisition period and The preset deviation range is used to determine the target fault type of the sensor, or, at least, the target fault type of the connector is determined according to the voltage calculation value and the voltage acquisition value of the plurality of acquisition cycles. In this solution, multiple preset calculation formulas are collected, and multiple voltage calculation values of the target detection point at the same collection time point are calculated respectively; and then the same collection time point is determined according to the multiple voltage calculation values and voltage collection values. Finally, the target fault type of the sensor is determined at least according to the multiple target percentages corresponding to one collection period and the preset deviation range, or at least according to the voltage calculation value and the voltage collection value corresponding to the multiple collection periods, the connection is determined. The target failure type for the plugin. That is to say, in this scheme, the target fault type of the sensor or the connector can be determined ingeniously by calculating the voltage calculation value of the target detection point. Since this solution does not need to change the internal circuit of the electronic control unit, and does not need to increase the cost of hardware, the cost of the fault determination method of this solution is guaranteed to be low, and the fault type of the sensor or connector can be determined only through the above fault determination method. Thus, the problem that it is difficult to determine the fault type of the connector or the sensor in the prior art is solved.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210934333.6A CN115167372B (en) | 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 CN115167372B (en) | 2022-08-04 | Fault determination method, fault determination device, processor and electronic control unit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115167372A true CN115167372A (en) | 2022-10-11 |
CN115167372B CN115167372B (en) | 2025-02-18 |
Family
ID=
Citations (18)
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 |
US20150253372A1 (en) * | 2014-03-06 | 2015-09-10 | Alps Electric Co., Ltd. | Inspection method of sensor device and sensor device |
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 |
CN107870587A (en) * | 2016-09-23 | 2018-04-03 | 计算系统有限公司 | Universal sensor interface for mechanical device monitoring system |
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 |
CN112302817A (en) * | 2020-10-28 | 2021-02-02 | 中国第一汽车股份有限公司 | Fault diagnosis method, device, equipment and storage medium for air inlet pressure sensor |
CN112630682A (en) * | 2020-11-18 | 2021-04-09 | 深圳市宏电技术股份有限公司 | Fault detection method, device and equipment of sensor |
CN112798951A (en) * | 2020-12-25 | 2021-05-14 | 上海法雷奥汽车电器系统有限公司 | A fault handling method, device, electronic device 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 |
CN113415165A (en) * | 2021-06-30 | 2021-09-21 | 中国第一汽车股份有限公司 | Fault diagnosis method and device, electronic equipment and storage medium |
Patent Citations (18)
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 |
US20150253372A1 (en) * | 2014-03-06 | 2015-09-10 | Alps Electric Co., Ltd. | Inspection method of sensor device and sensor device |
US20170346272A1 (en) * | 2016-05-31 | 2017-11-30 | Siemens Aktiengesellschaft | Arc fault detection unit |
CN107870587A (en) * | 2016-09-23 | 2018-04-03 | 计算系统有限公司 | Universal sensor interface for mechanical device monitoring system |
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 |
CN112302817A (en) * | 2020-10-28 | 2021-02-02 | 中国第一汽车股份有限公司 | Fault diagnosis method, device, equipment and storage medium for air inlet pressure sensor |
CN112630682A (en) * | 2020-11-18 | 2021-04-09 | 深圳市宏电技术股份有限公司 | Fault detection method, device and equipment of sensor |
CN112798951A (en) * | 2020-12-25 | 2021-05-14 | 上海法雷奥汽车电器系统有限公司 | A fault handling method, device, electronic device 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 |
CN113415165A (en) * | 2021-06-30 | 2021-09-21 | 中国第一汽车股份有限公司 | Fault diagnosis method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102564474B (en) | Sampling Circuity | |
TWI441399B (en) | Overvoltage protection circuit, interfacing system for providing overvoltage protection and overvoltage protection method in a data bus interface | |
EP2584471A1 (en) | Method and terminal for selecting internal circuit according to USB interface status | |
US10720778B2 (en) | Method for identifying type of cable, power adapter and cable | |
CN107710007B (en) | Battery system and method of determining open circuit fault condition in battery module | |
US6813672B1 (en) | EMC enhancement for differential devices | |
CN113167822B (en) | Automatic detection device for connection between electronic devices | |
WO2020073253A1 (en) | Method, circuit and electronic device for detecting water immersion | |
CN104272361B (en) | Method and apparatus for the manipulation to electric line for the identification | |
CN111458654A (en) | Input signal diagnosis circuit | |
WO2021063290A1 (en) | Battery and automotive diagnostic tablet | |
CN115167372A (en) | Fault determination method, fault determination device, processor and electronic control unit | |
CN115167372B (en) | Fault determination method, fault determination device, processor and electronic control unit | |
CN201562270U (en) | Server configuration identification device | |
CN104009267B (en) | A kind of information processing method and electronic equipment | |
CN103529285B (en) | A kind of testing apparatus of automated detection PCIE device power consumption | |
CN217384486U (en) | Temperature sensing circuit for a device | |
CN116337276A (en) | Battery temperature detection circuit and method | |
CN203535111U (en) | Test device for PCIE device power consumption automation detection | |
CN112416711A (en) | Four-wire fan on-site detection method and device and four-wire fan control system | |
CN208607644U (en) | One kind is based on the same as the double touch-control time report systems of money chip | |
TWI583979B (en) | Detection device, detection method and electronic apparatus | |
CN201047857Y (en) | Universal meter capable of automatically identifying different type extended modules | |
CN221842325U (en) | Overcurrent protection circuit and electronic equipment | |
CN211979174U (en) | Cable insertion detection circuit |
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 | ||
GR01 | Patent grant |