Solenoid valve failure detection method, apparatus, device, and medium
By obtaining and analyzing the low-side drive current after the high-side drive and low-side drive of the solenoid valve are started simultaneously, the fault type of the solenoid valve is distinguished, thereby solving the problem of low diagnostic accuracy in the existing technology and achieving higher fault detection accuracy.
Patent Information
- Application Number
- CN202210055971.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-18
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2042-01-18
Smart Images

Figure CN114415065B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of electromagnetic valves, and in particular to a fault detection method, device, equipment and medium for an electromagnetic valve. BACKGROUND
[0002] The electromagnetic valve drive plays an important role in the high-pressure common rail engine, and the rapid and accurate identification of different types of faults of the electromagnetic valve helps to minimize the damage caused by the fault, thereby improving the reliability and stability of the system.
[0003] In the prior art, in the scheme for detecting the fault of the electromagnetic valve, the feedback voltage of the high-side driven MOS (Metal-Oxide-Semiconductor Field-Effect Transistor, MOS for short) and the feedback voltage of the low-side driven MOS are compared with the set voltage threshold value respectively to diagnose the fault of the electromagnetic valve. However, this method needs the controller to issue a diagnosis command, then the high-side driven MOS and the low-side driven MOS are closed, then the bias voltage is opened, the output level of the two comparators in the circuit is judged, and according to the output level of the two comparators, the fault type is diagnosed as electromagnetic valve short circuit fault, high-side driven MOS short circuit or low-side MOS short circuit, etc. For example, if the output level of the first comparator is low, the fault type is high-side driven MOS short circuit, and if the output level of the second comparator is low, the fault type is electromagnetic valve short circuit. Therefore, this method can only diagnose the short circuit fault of a certain device, and cannot diagnose the low-side driven power supply short circuit fault, i.e. the short circuit fault of the connection between the low-side driven and the power supply, and the high-side driven and low-side driven mutual short circuit fault, i.e. the short circuit fault of the connection between the high-side driven and the low-side driven.
[0004] In summary, the prior art scheme for detecting the fault of the electromagnetic valve has the problem of low accuracy of fault diagnosis. SUMMARY
[0005] In the prior art, when the low-side driven power supply short circuit fault and the high-side driven and low-side driven mutual short circuit fault occur, the low-side feedback voltage will rise, and the current will quickly rise, i.e. the characteristics of the two faults are very similar, and only by comparing the feedback voltage of the high-side and low-side MOS with the set threshold voltage, the two faults cannot be accurately distinguished, and therefore there is the problem of low accuracy of fault diagnosis.
[0006] The embodiments of the present application provide a fault detection method, device, equipment and medium for an electromagnetic valve, which are used to solve the problem of low accuracy of fault diagnosis in the prior art scheme for detecting the fault of the electromagnetic valve.
[0007] In a first aspect, the embodiments of the present application provide a fault detection method of a solenoid valve, applied to a microcontroller, the microcontroller comprising a single-chip microcomputer and a driving chip, and the method comprises: obtaining, by the driving chip, a first driving current of low-side driving within a first preset time period after starting of high-side driving and low-side driving of the solenoid valve; and determining, by the driving chip, that the solenoid valve has a low-side driving-to-power short circuit fault or a high-side driving and low-side driving mutual short fault in a case where the first driving current is greater than or equal to a first current threshold.
[0008] The technical scheme provided by the embodiments of the present application can have the following beneficial effects: by detecting the change of the current value of the low-side driving, it can be effectively distinguished whether the fault type of the solenoid valve is a high-side driving and low-side driving mutual short fault or a low-side driving-to-power short circuit fault, thereby improving the accuracy of detecting the fault of the solenoid valve.
[0009] In a possible implementation, in a case where the first driving current is greater than or equal to the first current threshold, the driving chip determines that the solenoid valve has a low-side driving-to-power short circuit fault or a high-side driving and low-side driving mutual short fault, which comprises: in a case where the first driving current is greater than or equal to the first current threshold, the driving chip closes the high-side driving; obtaining, by the driving chip, a second driving current of the low-side driving within a second preset time period after the high-side driving is closed; if the second driving current is less than or equal to a second current threshold, the driving chip determines that the fault type of the solenoid valve is a high-side driving and low-side driving mutual short fault; and if the second driving current is greater than the second current threshold, the driving chip determines that the fault type of the solenoid valve is a low-side driving-to-power short circuit fault.
[0010] The technical scheme provided by the embodiments of the present application can have the following beneficial effects: by detecting the change of the current value of the low-side driving, it can be effectively distinguished whether the fault type of the solenoid valve is a high-side driving and low-side driving mutual short fault or a low-side driving-to-power short circuit fault, thereby improving the accuracy of detecting the fault of the solenoid valve.
[0011] In a possible implementation, in a case where the first driving current is greater than or equal to the first current threshold, the driving chip closes the high-side driving, which comprises: reading, by the single-chip microcomputer, a value in a current rising flag bit in the driving chip, wherein the value in the current rising flag bit is a value set by the driving chip when the first driving current is greater than or equal to the first current threshold; if the value in the current rising flag bit is equal to a first preset value, the single-chip microcomputer sends a closing instruction to the driving chip; and the driving chip closes the high-side driving based on the closing instruction.
[0012] The technical scheme provided by the embodiment of the application can have the following beneficial effects: the first driving current is greater than or equal to the first current threshold, which indicates that the first driving current rises too fast, at this time, the driving chip sets a value in the current rising flag bit, and the single-chip microcomputer can determine that the first driving current rises too fast as long as the value in the current rising flag bit in the driving chip is equal to the first preset value, and thus sends a closing instruction to the driving chip to close the high-side drive, thereby avoiding damage to the high-side drive chip; and if the high-side drive is not closed, the fault type of the electromagnetic valve cannot be distinguished, and thus the accuracy of detecting the fault of the electromagnetic valve is improved.
[0013] In a possible implementation, after the driving chip closes the high-side drive, the method further includes: when the second driving current is less than or equal to the second current threshold, the single-chip microcomputer sets a value of a current falling flag bit in the driving chip, wherein the value of the current falling flag bit is a value set by the driving chip for the current falling flag bit when the second driving current is less than or equal to the second current threshold.
[0014] The technical scheme provided by the embodiment of the application can have the following beneficial effects: after the driving chip closes the high-side drive, the single-chip microcomputer can set the value of the current falling flag bit in the driving chip, so that the single-chip microcomputer can determine that the high-side drive has been closed after reading the set value of the current falling flag bit, and thus the fault type of the electromagnetic valve determined by the driving chip is more accurate, and thus the accuracy of detecting the fault of the electromagnetic valve is improved.
[0015] In a possible implementation, the method further includes: the single-chip microcomputer acquires fault information of the electromagnetic valve, wherein the fault information includes a value of a driving start flag bit, a value of a driving end flag bit and values of a plurality of fault flag bits; if the value of the driving start flag bit and the value of the driving end flag bit are both equal to a second preset value, the single-chip microcomputer determines that the fault information is valid; and if at least one of the value of the driving start flag bit and the value of the driving end flag bit is not equal to the second preset value, the single-chip microcomputer determines that the fault information is invalid.
[0016] The technical scheme provided by the embodiment of the application can have the following beneficial effects: by determining whether the fault information is complete to determine whether the fault that occurs is a real fault, the problem of curing the fault after false reporting of the fault is avoided, and the accuracy of detecting the fault is improved.
[0017] In a possible implementation, the driving chip determines that the solenoid valve has a low-side driving-to-power short circuit fault or a high-side driving and low-side driving mutual short fault, comprising: in the case that the fault information is valid, the single-chip microcomputer reads the value in the current rising flag bit and the value in the current falling flag bit; if the value in the current rising flag bit and the value in the current falling flag bit are both equal to the third preset value, the driving chip determines that the fault type of the solenoid valve is the high-side driving and low-side driving mutual short fault; if the value in the current rising flag bit is equal to the third preset value and the value in the current falling flag bit is not equal to the third preset value, the driving chip determines that the fault type of the solenoid valve is the low-side driving-to-power short circuit fault.
[0018] The technical scheme provided by the embodiments of the present application can have the following beneficial effects: when the driving chip determines that the fault of the solenoid valve is the low-side driving-to-power short circuit fault or the high-side driving and low-side driving mutual short fault, the single-chip microcomputer needs to determine that the fault information is valid, so that the driving chip can determine whether it is the high-side driving and low-side driving mutual short fault or the low-side driving-to-power short circuit fault according to the value in the current rising flag bit and the value in the current falling flag bit, thereby improving the accuracy of detecting the fault of the solenoid valve.
[0019] In a possible implementation, after the driving chip determines that the solenoid valve has the low-side driving-to-power short circuit fault or the high-side driving and low-side driving mutual short fault, the method further comprises: if the driving chip determines that the fault type of the solenoid valve is the high-side driving and low-side driving mutual short fault, the single-chip microcomputer sets the value of the corresponding first fault flag bit to the fourth preset value; if the driving chip determines that the fault type of the solenoid valve is the low-side driving-to-power short circuit fault, the single-chip microcomputer sets the value of the corresponding second fault flag bit to the fourth preset value.
[0020] The technical scheme provided by the embodiments of the present application can have the following beneficial effects: after the driving chip determines the specific fault type, the single-chip microcomputer writes the fourth preset value in the corresponding fault flag bit, thereby avoiding the problem that the single-chip microcomputer reads the value of the driving start flag bit and the value of the driving end flag bit, but the fault flag bit has not been set yet, resulting in false reporting of the fault healing, and thereby improving the accuracy of detecting the fault of the solenoid valve.
[0021] In a second aspect, the embodiments of the present application provide a fault detection device of a solenoid valve, comprising: an acquisition module, configured to acquire, within a first preset time length after the high-side driving and the low-side driving of the solenoid valve are started simultaneously, a first driving current of the low-side driving by a driving chip; a determination module, configured to determine, in the case that the first driving current is greater than or equal to a first current threshold, that the solenoid valve has a low-side driving-to-power short circuit fault or a high-side driving and low-side driving mutual short fault by the driving chip.
[0022] The technical scheme provided by the embodiments of the present application can have the following beneficial effects: by detecting the change of the current value of low-side driving, it can be effectively distinguished whether the fault type of the electromagnetic valve is high-side driving and low-side driving mutual short circuit fault or low-side driving to power short circuit fault, thereby improving the accuracy of detecting the fault of the electromagnetic valve.
[0023] In a third aspect, the embodiments of the present application provide an electronic device, comprising: a processor, a memory, and an interaction interface; the memory is configured to store executable instructions executable by the processor; and the processor is configured to execute the fault detection method of the electromagnetic valve of the first aspect by executing the executable instructions.
[0024] The technical scheme provided by the embodiments of the present application can have the following beneficial effects: by detecting the change of the current value of low-side driving, it can be effectively distinguished whether the fault type of the electromagnetic valve is high-side driving and low-side driving mutual short circuit fault or low-side driving to power short circuit fault, thereby improving the accuracy of detecting the fault of the electromagnetic valve.
[0025] In a fourth aspect, the embodiments of the present application provide a readable storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the fault detection method of the electromagnetic valve of the first aspect.
[0026] The technical scheme provided by the embodiments of the present application can have the following beneficial effects: by detecting the change of the current value of low-side driving, it can be effectively distinguished whether the fault type of the electromagnetic valve is high-side driving and low-side driving mutual short circuit fault or low-side driving to power short circuit fault, thereby improving the accuracy of detecting the fault of the electromagnetic valve.
[0027] In a fifth aspect, the embodiments of the present application provide a computer program product, comprising a computer program, and the computer program is stored on the computer program product and executed by a processor to implement the fault detection method of the electromagnetic valve of the first aspect.
[0028] The technical scheme provided by the embodiments of the present application can have the following beneficial effects: by detecting the change of the current value of low-side driving, it can be effectively distinguished whether the fault type of the electromagnetic valve is high-side driving and low-side driving mutual short circuit fault or low-side driving to power short circuit fault, thereby improving the accuracy of detecting the fault of the electromagnetic valve.
[0029] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0031] Figure 1 The application scenario diagram of the fault detection method of the electromagnetic valve provided by the embodiments of the present application;
[0032] Figure 2 The flowchart of the fault detection method of the electromagnetic valve provided by the first embodiment of the present application;
[0033] Figure 3 The timing diagram of the fault detection method of the electromagnetic valve provided by the embodiments of the present application;
[0034] Figure 4 The flowchart of the fault detection method of the electromagnetic valve provided by the second embodiment of the present application;
[0035] Figure 5 The flowchart of the fault detection method of the electromagnetic valve provided by the third embodiment of the present application;
[0036] Figure 6 The flowchart of the fault detection method of the electromagnetic valve provided by the fourth embodiment of the present application;
[0037] Figure 7 The schematic diagram of the fault detection device of the electromagnetic valve provided by the embodiments of the present application;
[0038] Figure 8 The schematic diagram of the electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION
[0039] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments made by those skilled in the art according to the inspiration of the present embodiments are within the scope of protection of the present application.
[0040] The terms "first", "second", "third", "fourth" and the like in the description and in the claims of the present application, and above-mentioned drawings, if any, are used to distinguish between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the use of the terms so-termed "first", "second", "third", "fourth" and the like, if any, in the description and in the claims of the present application is simply intended to differentiate between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used in the description and in the claims of the present application are interchangeable under appropriate circumstances and that the embodiments of the application described herein can be practiced under alternative conditions than those illustrated or described herein. Moreover, the terms "comprise", "have" and any variations thereof are intended to cover a non-exclusive inclusion, for example, a process, method, article, or apparatus that comprises a list of steps or units can not necessarily be limited to those steps or units that are expressly listed, but can include other not expressly listed steps or units.
[0041] There are at least the following technical problems in the prior art provided in the background art in the scheme for detecting faults of the electromagnetic valve:
[0042] In one prior art, in the scheme for detecting faults of the electromagnetic valve, the faults of the electromagnetic valve are usually diagnosed by comparing the feedback voltage of the high-side driven MOS and the feedback voltage of the low-side driven MOS with the set voltage threshold value respectively. However, this method needs the controller to issue a diagnosis command, then close the high-side driven MOS and the low-side driven MOS, then open the bias voltage, judge the output level of the two comparators in the circuit, and according to the output level of the two comparators, diagnose the fault type as electromagnetic valve short circuit fault, high-side driven MOS short circuit or low-side MOS short circuit, etc. For example, if the output level of the first comparator is low, the fault type is high-side driven MOS short circuit, and if the output level of the second comparator is low, the fault type is electromagnetic valve short circuit. Therefore, this method can only diagnose the short circuit fault of a certain device, and cannot diagnose the low-side driven power supply short circuit fault, i.e. the short circuit fault of the connection between the low-side driven and the power supply, and the high-side driven and low-side driven mutual short circuit fault, i.e. the short circuit fault of the connection between the high-side driven and the low-side driven.
[0043] Moreover, in the above-mentioned prior art, when the low-side driven power supply short circuit fault and the high-side driven and low-side driven mutual short circuit fault occur, the low-side feedback voltage will rise and the current will quickly rise, i.e. the characteristics of the two faults are very similar, and only by comparing the feedback voltage of the high-side driven and low-side driven MOS with the set threshold voltage, the two faults cannot be accurately distinguished, and therefore there is a problem of low accuracy of fault diagnosis.
[0044] Meanwhile, in the prior art, the microcontroller needs to send a diagnosis instruction to the drive chip, and the drive chip can only start diagnosis, affecting the timeliness of diagnosis, and the drive chip does not have the function of automatically cutting off the drive when a fault is diagnosed, and cannot effectively protect the electronic control unit (ECU).
[0045] In another prior art, in the scheme of detecting the fault of the electromagnetic valve, the internal short circuit, open circuit, short circuit to power supply and short circuit to ground and other faults are usually diagnosed by comparing the current at different stages of the driving process with the current size and rising rate characteristics when the fault occurs, but in this method, the current threshold and rising rate may be different for different power supply voltages, different harness lengths and different manufacturers of electromagnetic valves, so this method is not universal and needs to be tested according to specific working conditions to obtain the current characteristic data required for fault diagnosis.
[0046] To solve the above problems, the application provides a fault detection method of an electromagnetic valve. After the high-side drive and the low-side drive of the electromagnetic valve are simultaneously started, a drive chip in a microcontroller obtains a first drive current of the low-side drive. It is determined whether the first drive current reaches a first current threshold within a first preset time period after the high-side drive and the low-side drive are simultaneously started. If the first drive current reaches the first current threshold, it means that the first drive current rises too fast at this time, and therefore, it means that the electromagnetic valve has a fault. The drive chip then closes the high-side drive, and then determines whether the first drive current drops to a second current threshold within a second preset time period after the high-side drive is closed. If the first drive current drops to the second current threshold within the second preset time period, the drive chip determines that the electromagnetic valve has a high-side drive and low-side drive protection short circuit fault. If the first drive current does not drop to the second current threshold within the second preset time period, the drive chip determines that the electromagnetic valve has a low-side drive short circuit to power supply fault. Therefore, the accuracy of detecting the fault of the electromagnetic valve is improved. The following first explains the terms involved in the application.
[0047] Electromagnetic valve: is an industrial device controlled by electromagnetism, is an automatic basic element for controlling fluid, belongs to an actuator, and is not limited to hydraulic pressure and pneumatic pressure. It is used in industrial control systems to adjust the direction, flow, speed and other parameters of the medium. The electromagnetic valve can cooperate with different circuits to achieve the expected control, and the control accuracy and flexibility can be guaranteed. There are many types of electromagnetic valves, and different electromagnetic valves play different roles in different positions of the control system. The most commonly used ones are one-way valves, safety valves, direction control valves, speed regulating valves, etc.
[0048] High-side drive: a basic method of driving a load, which refers to enabling the driving device by closing the power line switch in front of the electrical appliance or driving device. High-side drive is usually used for fuel pumps and body-related functions, such as seats, lighting, wipers, and fans.
[0049] Low-side drive: a basic method of driving a load, which refers to enabling the driving device by closing the ground line after the electrical appliance or driving device. Low-side drive is usually used for loads related to the powertrain, such as motors, heaters, etc.
[0050] Drive chip: a chip with 8-bit latch, serial-parallel shift register, and tri-state output function.
[0051] Single-chip microcomputer: an integrated circuit chip that integrates a central processing unit CPU with data processing capabilities, random access memory RAM, read-only memory ROM, multiple I / O ports, interrupt systems, timers / counters, and other functions (possibly including display driver circuits, pulse width modulation circuits, analog multiplexers, A / D converters, etc.) onto a single silicon chip to form a small and complete microcomputer system.
[0052] The electromagnetic valve fault detection method provided by the application has the core idea of setting a minimum current rise time and a current rise value for low-side drive. After high-side drive and low-side drive are started at the same time, the current rises rapidly. If the current rises to the current rise value within the minimum current rise time, it means that the current rises too quickly, and at this time, the electromagnetic valve has a fault. Then, a maximum current drop time and a current drop value are set. After high-side drive is turned off, only low-side drive is kept on. If the current drops to the current drop value within the maximum current drop time after rising to the current rise value, it is considered that the electromagnetic valve has a high-side drive and low-side drive mutual short circuit fault. If the current does not drop to the current drop value within the maximum current drop time after rising to the current rise value, it is considered that the electromagnetic valve has a low-side drive to power short circuit fault. Therefore, the application can detect high-side drive and low-side drive mutual short circuit fault and low-side drive to power short circuit fault, and can distinguish between high-side drive and low-side drive mutual short circuit fault and low-side drive to power short circuit fault according to the current change, thereby improving the accuracy of detecting faults of the electromagnetic valve.
[0053] In one embodiment, the electromagnetic valve fault detection method can be applied in an application scenario. Figure 1 The application scenario diagram of the electromagnetic valve fault detection method provided by the embodiment of the application is as follows: Figure 1The electromagnetic valve fault detection method shown in the figure can be applied in a microcontroller, which can include a single-chip microcomputer and a driving chip. After the high-side driving and low-side driving of the electromagnetic valve are started at the same time, the first driving current of the low-side driving is obtained by the driving chip within a first preset time length starting from the starting time. When the first driving current rises to a first current threshold value within the first preset time length, the single-chip microcomputer sets a value, such as 1, in the current rising flag bit. When the driving chip determines that the first driving current rises to the first current threshold value within the first preset time length, the single-chip microcomputer reads the value in the current rising flag bit in the driving chip. If it is determined that the value is equal to 1, the single-chip microcomputer sends a closing instruction to the driving chip, and the driving chip closes the high-side driving according to the closing instruction.
[0054] In the above scenario, after the high-side driving is closed, the first driving current begins to drop. The second driving current of the low-side driving is obtained by the driving chip within a second preset time length starting from the closing time of the high-side driving. If the second driving current drops to a second current threshold value within the second preset time length, the driving chip determines that the fault of the electromagnetic valve is a mutual short circuit fault of the high-side driving and the low-side driving, that is, a short circuit fault occurs between the connection of the high-side driving and the low-side driving. If the second driving current does not drop to the second current threshold value within the second preset time length, the driving chip determines that the fault of the electromagnetic valve is a short circuit fault of the low-side driving to the power supply, that is, a short circuit fault occurs between the connection of the low-side driving and the power supply.
[0055] In the above scenario, after the driving chip determines the specific fault type of the electromagnetic valve, the single-chip microcomputer sets the corresponding fault flag bit. For example, when the fault of the electromagnetic valve is a mutual short circuit fault of the high-side driving and the low-side driving, the single-chip microcomputer writes 1 in the corresponding first fault flag bit. When the fault of the electromagnetic valve is a short circuit fault of the low-side driving to the power supply, the single-chip microcomputer writes 1 in the corresponding second fault flag bit. Because the driving action of the driving chip and the reading action of the single-chip microcomputer are not synchronized, there may be a situation that the reading action of the single-chip microcomputer occurs in the stage when the driving signal is just generated, and at this time the fault of the electromagnetic valve has not been detected, that is, the fault flag bit has not been set. Therefore, the fault determined by the driving chip may be a false fault. Therefore, after the corresponding fault flag bit is set, the fault of the electromagnetic valve can be determined as a true fault according to the fault type determined by the driving chip and the corresponding fault status bit, thereby avoiding the problems of false reporting and false healing, and improving the accuracy of detecting and healing the fault of the electromagnetic valve.
[0056] Based on the above scenario, the electromagnetic valve fault detection method will be described in detail in combination with several possible embodiments.
[0057] Figure 2A flowchart of the fault detection method of the electromagnetic valve provided in the embodiment of the present application is shown in Figure 2 The fault detection method of the electromagnetic valve can be applied to Figure 1 The method can include the following steps:
[0058] S201: In a first preset time period after the high-side drive and the low-side drive of the electromagnetic valve are simultaneously started, the driving chip acquires a first driving current of the low-side drive.
[0059] In this step, in the process of diagnosing the fault of the electromagnetic valve, the driving chip divides the driving process into different driving stages according to the driving current, such as an idle stage, a boost stage, a bypass stage, a peak stage, an end of idle (EOI) stage, etc. Taking the boost stage as an example, after the driving current of the low-side drive enters the boost stage, the driving chip simultaneously starts the high-side drive and the low-side drive of the electromagnetic valve, then the driving chip acquires the first driving current of the low-side drive, and judges the current change of the first driving current in the first preset time period.
[0060] S202: In the case where the first driving current is greater than or equal to a first current threshold, the driving chip determines that the electromagnetic valve has a low-side drive to power short circuit fault or a high-side drive and low-side drive mutual short fault.
[0061] In this step, still taking the boost stage as an example, the maximum value of the change of the driving current of the low-side drive in the boost stage is set in advance, that is, the first current threshold. If the first driving current acquired by the driving chip in the first preset time period is greater than or equal to the first current threshold, it means that the driving current of the low-side drive rises too fast. At this time, it is considered that the electromagnetic valve has an overcurrent fault. The fault can be a low-side drive to power short circuit fault, that is, a short circuit fault occurs between the low-side drive and the power supply, or a high-side drive and low-side drive mutual short fault, that is, a short circuit fault occurs between the high-side drive and the low-side drive.
[0062] Figure 3 A timing diagram of the fault detection method of the electromagnetic valve provided in the embodiment of the present application is shown in Figure 3As shown, in the Boost phase, if the low-side driving current enters the Boost phase, a minimum current rising time Tboost, that is, the first preset time length, and a maximum current rising value Iboost, that is, the first current threshold value, are set, and then it is determined whether the driving current can rise to Iboost within Tboost in the Boost phase, so as to determine whether the electromagnetic valve is faulty and the specific fault type when the electromagnetic valve is faulty.
[0063] In the above scheme, when judging the change of the low-side driving current, the first current threshold value can be set in advance, and it is judged whether the first driving current exceeds the first current threshold value, or a current value range can be set in advance, and it is determined whether the current value of the first driving current is in the current value range, and the current value range can be reasonably set according to actual needs, so as to avoid the influence of temperature, wire length, electromagnetic valve model and the like on the current change.
[0064] In the above scheme, if the first driving current is less than the first current threshold value, that is, the first driving current does not rise to the first current threshold value within the first preset time length, it indicates that the rising rate of the first driving current is normal, and therefore the next stage of detection can be performed, for example, Figure 3 As shown, the electromagnetic valve fault in the Bypass phase is detected.
[0065] The electromagnetic valve fault detection method provided in the embodiment can effectively distinguish whether the fault type of the electromagnetic valve is the high-side driving and low-side driving mutual short circuit fault or the low-side driving power supply short circuit fault, thereby improving the accuracy of detecting the electromagnetic valve fault.
[0066] In a possible implementation, in a case where the first driving current is greater than or equal to the first current threshold value, the driving chip determines that the electromagnetic valve has a low-side driving power supply short circuit fault or a high-side driving and low-side driving mutual short circuit fault, including: in a case where the first driving current is greater than or equal to the first current threshold value, the driving chip closes the high-side driving; within a second preset time length after the high-side driving is closed, the driving chip acquires a second driving current of the low-side driving; if the second driving current is less than or equal to a second current threshold value, the driving chip determines that the fault type of the electromagnetic valve is a high-side driving and low-side driving mutual short circuit fault; and if the second driving current is greater than the second current threshold value, the driving chip determines that the fault type of the electromagnetic valve is a low-side driving power supply short circuit fault.
[0067] In the scheme, since high-side drive and low-side drive mutual short faults or low-side drive to power short faults can occur in each stage (for example, the Boost stage), and when the two faults occur, the feedback voltage of the low-side drive is raised and the current is rapidly raised, therefore, the characteristics of the two faults are very close, if the two faults are distinguished according to the different current rising rates, tests need to be conducted for specified working conditions (for example, fuel injector models, harness lengths and other factors that can affect the current rising trend), and the results are only applicable to the specified working conditions, and the universality is poor. Therefore, after it is determined that the solenoid valve has a fault and the high-side drive is closed, the second driving current is used to determine the specific type of fault.
[0068] In the above scheme, within the second preset time period after the high-side drive is closed, if the second driving current of the low-side drive is less than or equal to the second current threshold value, it indicates that the current of the low-side drive is too fast after the high-side drive is closed, therefore, the fault of the solenoid valve is a high-side drive and low-side drive mutual short fault, that is, a short circuit fault occurs between the high-side drive and the low-side drive; if the second driving current of the low-side drive is greater than the second current threshold value within the second preset time period, it indicates that the current of the low-side drive is normal after the high-side drive is closed, therefore, the fault of the solenoid valve is a low-side drive to power short fault, that is, a short circuit fault occurs between the low-side drive and the power supply.
[0069] In the above scheme, when the change of the driving current of the low-side drive is judged after the high-side drive is closed, the second current threshold value can be set in advance to judge whether the second driving current is less than or equal to the second current threshold value, or a current value range can be set in advance to determine whether the current value of the second driving current is in the current value range, and the current value range can be set to be relatively large according to actual needs, so as to avoid the influence of temperature, harness length, solenoid valve model and the like on the current change.
[0070] In a possible implementation, in the case that the first driving current is greater than or equal to the first current threshold value, the drive chip closes the high-side drive, including: the single-chip microcomputer reads the value in the current rising flag bit in the drive chip, wherein the value in the current rising flag bit is the value set by the drive chip when the first driving current is greater than or equal to the first current threshold value; if the value in the current rising flag bit is equal to the first preset value, the single-chip microcomputer sends a closing instruction to the drive chip; and the drive chip closes the high-side drive based on the closing instruction.
[0071] In the scheme, the first driving current is greater than or equal to the first current threshold, which indicates that the first driving current rises too fast, at this time, the driving chip sets a value in the current rising flag bit, and the single-chip microcomputer can determine that the first driving current rises too fast as long as the value in the current rising flag bit of the driving chip read by the single-chip microcomputer is equal to the first preset value, for example, the first preset value can be 1, so that the single-chip microcomputer sends a closing instruction to the driving chip to close the high-side drive, thereby avoiding damage to the high-side drive chip; and if the high-side drive is not closed, the fault type of the electromagnetic valve cannot be distinguished, and therefore, the accuracy of detecting the fault of the electromagnetic valve is improved.
[0072] In a possible implementation, after the driving chip closes the high-side drive, the method further includes: when the second driving current is less than or equal to the second current threshold, the single-chip microcomputer sets a value of a current falling flag bit in the driving chip, wherein the value of the current falling flag bit is a value set by the driving chip for the current falling flag bit when the second driving current is less than or equal to the second current threshold.
[0073] In the scheme, after the driving chip closes the high-side drive, the single-chip microcomputer can set the value of the current falling flag bit in the driving chip, for example, set the value of the current falling flag bit to 1, so that the single-chip microcomputer can determine that the high-side drive has been closed after reading the set value of the current falling flag bit, and therefore, the fault type of the electromagnetic valve determined by the driving chip is more accurate, thereby improving the accuracy of detecting the fault of the electromagnetic valve.
[0074] In a possible implementation, the method further includes: the single-chip microcomputer acquires fault information of the electromagnetic valve, wherein the fault information includes a value of a driving start flag bit, a value of a driving end flag bit, and values of a plurality of fault flag bits; if the value of the driving start flag bit and the value of the driving end flag bit are both equal to a second preset value, the single-chip microcomputer determines that the fault information is valid; and if at least one of the value of the driving start flag bit and the value of the driving end flag bit is not equal to the second preset value, the single-chip microcomputer determines that the fault information is invalid.
[0075] In the scheme, the fault information can be an array with 16 bits, which includes the driving start flag bit, the driving end flag bit, and the plurality of fault flag bits. The above-mentioned second preset value can be 1, that is, when the values of the driving start flag bit and the driving end flag bit are both 1, it indicates that the fault information is valid, and if one of the values of the driving start flag bit and the driving end flag bit is not 1, it indicates that the fault information is invalid. If the fault information is invalid, other fault information is continuously read.
[0076] In the above scheme, after the microcontroller is powered on, first, the single-chip microcomputer initializes the data to be written, including data in the digital signal processor (Data Ram), register configuration data, etc.; second, the program and data are transmitted together to the driving chip through the serial peripheral interface (SPI) communication in the single-chip microcomputer; and finally, the high-side drive and the bottom-side drive are started by the driving chip for driving and diagnosis.
[0077] In the above scheme, the microcontroller can periodically perform scheduling tasks. First, the single-chip microcomputer reads the data of the status register in the driving chip through SPI communication; then, the single-chip microcomputer judges whether the fault information is valid. If it is valid, the fault type of the electromagnetic valve or the electromagnetic valve without fault is confirmed, and the fault diagnosis result is updated. If it is invalid, the fault diagnosis result is not updated. Finally, if a fault is detected, the single-chip microcomputer writes 1 to the fault flag bit corresponding to the fault type in the fault information stored in the status register in the driving chip.
[0078] In a possible implementation, the driving chip determines that the electromagnetic valve has a low-side drive short-circuit fault to the power supply or a high-side drive and low-side drive mutual short fault, comprising: in the case that the fault information is valid, the single-chip microcomputer reads the value in the current rise flag bit and the value in the current drop flag bit; if the value in the current rise flag bit and the value in the current drop flag bit are both equal to a third preset value, the driving chip determines that the fault type of the electromagnetic valve is a high-side drive and low-side drive mutual short fault; if the value in the current rise flag bit is equal to the third preset value, and the value in the current drop flag bit is not equal to the third preset value, the driving chip determines that the fault type of the electromagnetic valve is a low-side drive short-circuit fault to the power supply.
[0079] In the above scheme, the first preset value can be 1. If the fault information is valid, the single-chip microcomputer can read the value in the current rise flag bit and the value in the current drop flag bit, so as to determine the fault type of the electromagnetic valve or determine that the electromagnetic valve has no fault. If the single-chip microcomputer reads that the value in the current rise flag bit is 1 and the value in the current drop flag bit is 0, it is determined that the electromagnetic valve has a low-side drive short-circuit fault to the power supply; if the single-chip microcomputer reads that the value in the current rise flag bit is 1 and the value in the current drop flag bit is 1, it is determined that the electromagnetic valve has a high-side drive and low-side drive mutual short fault; if the single-chip microcomputer reads that the value in the current rise flag bit is 0 and the value in the current drop flag bit is 0, it is determined that the electromagnetic valve has no fault.
[0080] In a possible implementation, after the driving chip determines that the solenoid valve has a low-side driving-to-power short circuit fault or a high-side driving and low-side driving mutual short fault, the method further includes: if the driving chip determines that the fault type of the solenoid valve is the high-side driving and low-side driving mutual short fault, the single-chip microcomputer sets the value of the corresponding first fault flag bit to a fourth preset value; and if the driving chip determines that the fault type of the solenoid valve is the low-side driving-to-power short circuit fault, the single-chip microcomputer sets the value of the corresponding second fault flag bit to the fourth preset value.
[0081] In the foregoing solution, after the type of the fault occurring in the solenoid valve is confirmed, the single-chip microcomputer sets the corresponding fault flag bit in the Boost stage to 1, that is, sets the fault flag bit to 1, and then triggers the entering of the fault latching interrupt stage, in which the single-chip microcomputer sets the corresponding fault flag bit to 1, and the driving program enters the Boost fault latching state, until the single-chip microcomputer writes 1 to the Boost fault latching bit of the state register in the driving chip through SPI communication to release the latching, at this time, neither the high-side driving nor the low-side driving is performed, so that the driving chip can clear the fault in the Boost stage, and then the driving chip resets all registers, the program is reinitialized to run, and the fault detection in the next stage is performed.
[0082] In the foregoing solution, the state register and the control register are arranged in the driving chip, each bit in the state register can be used to represent a fault flag of different types, and each bit in the control register can be used to represent a fault clearing operation of different types, and each bit in the state register and the control register is always 0 in the stage in which the solenoid valve is not driven.
[0083] In the above scheme, the fourth preset value can be 1. Since the SPI reading action and the driving action of the electromagnetic valve are not synchronized, there can be a situation that the reading action occurs in the stage when the driving signal is just generated, and the fault detection position occurs in the stage when the driving signal is about to end. When the reading action occurs, the fault has not been detected, and the microcontroller reads the value of the driving start flag bit in the driving chip through the SPI communication, but the fault flag bit has not been set. In this case, the fault healing is misreported. The driving end bit is set when the normal driving ends or the driving ends due to the detection of the fault. If the driving start flag bit and the driving end flag bit are both set, it indicates a complete and effective fault detection process. When the driving starts, the driving end flag bit of the last driving is first cleared, and then the driving start flag bit of the current driving is set. If a fault is detected during the driving, the fault flag bit is first set, then the driving is stopped, and finally the driving end flag bit is set. If no fault is detected during the driving, only the driving end flag bit is set after the driving ends. Therefore, the microcontroller can determine whether the read fault information is valid according to the driving start flag bit and the driving end flag bit. When the driving start flag bit and the driving end flag bit are both set (the values are both 1), it is determined that the fault information is valid. When it is determined that the electromagnetic valve has a fault in the case that the fault information is valid, it is necessary to determine that the value of the fault flag bit in the fault information is set to 1, that is, it is determined that the fault type represented by the fault flag bit in the status register is consistent with the fault types corresponding to the current rising flag bit and the current falling flag bit, and the driving end flag bit needs to be set to 1. Thus, the reporting and healing of the fault are stable and reliable.
[0084] In the above scheme, the reading action of the microcontroller is periodic, for example, the microcontroller can read the fault information once every 10 milliseconds (ms).
[0085] The fault detection method of the electromagnetic valve provided in the application does not need to modify the hardware driving circuit (such as adding a high-side current feedback circuit) additionally, and the method has universality and does not need to modify the diagnostic data according to different electromagnetic valve models, harness lengths, etc. In addition, the diagnosis can be automatically performed during the driving of the electromagnetic valve, and the microcontroller does not need to send a diagnostic instruction additionally. After the fault is diagnosed, the driving is automatically cut off, and the fault is latched, thereby improving the timeliness and the system reliability. Meanwhile, multiple driving states can be marked during the driving and the diagnosis, and the microcontroller can judge the validity of the fault diagnosis information according to the driving start flag bit and the driving end flag bit, thereby ensuring the correct reporting and healing of the fault.
[0086] Figure 4 The flowchart of the second embodiment of the fault detection method of the electromagnetic valve provided in the application is as follows, Figure 4As shown, the fault detection method of the electromagnetic valve is applied to a microcontroller which can include a driving chip and a single-chip microcomputer, and the method includes the following steps:
[0087] S401: The driving chip enters an initialization program.
[0088] S402: The driving chip determines whether there is a driving signal.
[0089] In this step, if the driving chip determines that there is a driving signal, it jumps to step S403, and if the driving chip determines that there is no driving signal, it re-determines whether there is a driving signal.
[0090] S403: The driving chip starts driving and simultaneously performs diagnosis.
[0091] S404: The driving chip determines whether a fault is identified.
[0092] In this step, if the driving chip identifies a fault, it jumps to step S405, and if the driving chip does not identify a fault, it jumps to step S410.
[0093] S405: The single-chip microcomputer sets a fault status bit.
[0094] S406: The driving chip cuts off driving.
[0095] S407: The single-chip microcomputer determines whether a fault latch bit is set.
[0096] In this step, if the single-chip microcomputer determines that the fault latch bit is set, it jumps to step S408, and if the single-chip microcomputer determines that the fault latch bit is not set, it returns to re-determine whether the fault latch bit is set.
[0097] S408: The single-chip microcomputer resets all registers.
[0098] S409: The driving chip re-enters the initialization program.
[0099] S410: The driving chip determines whether there is a driving signal.
[0100] In this step, if the driving chip determines that there is a driving signal, it jumps to step S411, and if the driving chip determines that there is no driving signal, it jumps to step S404 to re-determine whether a fault is identified.
[0101] S411: The driving chip turns off driving.
[0102] Figure 5 The flowchart of the fault detection method of the electromagnetic valve provided in Embodiment Three of the present application is shown in FIG. 4. Figure 5As shown, the fault detection method of the electromagnetic valve is applied to a microcontroller which can include a driving chip and a single-chip microcomputer, and the method includes the following steps:
[0103] S501: Entering a Boost phase, the driving chip simultaneously opens the high-side drive and the low-side drive.
[0104] S502: The driving chip sets a minimum current rise time.
[0105] In this step, the minimum current rise time is the aforementioned first preset time length.
[0106] S503: The driving chip sets a maximum current rise value of the Boost phase.
[0107] In this step, the maximum current rise value is the aforementioned first current threshold value.
[0108] S504: The driving chip determines whether the driving current of the low-side drive reaches the maximum current rise value within the minimum current rise time.
[0109] In this step, if the driving current reaches the maximum current rise value within the minimum current rise time, the process jumps to step S506, and if the driving current does not reach the maximum current rise value within the minimum current rise time, the process jumps to step S505.
[0110] In this scheme, the driving chip can periodically detect the current change of the driving current, so that driving and diagnosis can be performed without the microcontroller sending a diagnosis command, thereby improving the efficiency of fault diagnosis.
[0111] S505: The driving chip determines that no fault is detected, and continues driving and diagnosis.
[0112] S506: The driving chip keeps the low-side drive started and cuts off the high-side drive.
[0113] S507: The driving chip sets a maximum current drop time.
[0114] In this step, the maximum current drop time is the aforementioned second preset time length.
[0115] S508: The driving chip sets a current drop value.
[0116] In this step, the current drop value is the aforementioned second current threshold value.
[0117] S509: The driving chip determines whether the driving current of the low-side drive reaches the current drop value within the maximum current drop time.
[0118] In this step, if the driving current reaches the current drop value within the maximum current drop time, jump to step S510, if the driving current does not reach the current drop value within the maximum current drop time, jump to step S511.
[0119] S510: The driving chip determines that the electromagnetic valve has a high-side driving and low-side driving mutual short fault.
[0120] S511: The driving chip determines that the electromagnetic valve has a low-side driving to power short circuit fault.
[0121] S512: The driving chip cuts off the driving.
[0122] S513: The single-chip microcomputer performs fault latching.
[0123] Figure 6 The flowchart of the fault detection method of the electromagnetic valve provided in the embodiment of the application is shown in Figure 6. Figure 6 As shown in Figure 6, the fault detection method of the electromagnetic valve is applied to a microcontroller, which can include a driving chip and a single-chip microcomputer, and the method includes the following steps:
[0124] S601: The single-chip microcomputer initializes data written to the driving chip.
[0125] In this step, the driving chip can be a PT2000 chip, and the data written to the driving chip can include data in DataRam, register configuration data, etc.
[0126] S602: The single-chip microcomputer writes programs and data into the driving chip through SPI.
[0127] S603: The single-chip microcomputer reads fault information in the driving chip through SPI in 10 ms task scheduling.
[0128] S604: The single-chip microcomputer judges whether the fault information is valid.
[0129] In this step, if the fault information is valid, jump to step S605, if the fault information is invalid, jump to step S603 to re-read the fault information in the driving chip.
[0130] S605: The single-chip microcomputer judges whether the electromagnetic valve has a fault.
[0131] In this step, if the single-chip microcomputer judges that the electromagnetic valve has a fault, jump to step S606, if the single-chip microcomputer judges that the electromagnetic valve has no fault, jump to step S608.
[0132] S606: The driving chip identifies the fault type.
[0133] In this step, the driver chip determines whether a high-side driver and a low-side driver short-circuit fault occurs in the solenoid valve, or a low-side driver short-circuit fault occurs to the power supply.
[0134] S607: The single chip microcomputer writes 1 to the corresponding fault flag bit in the driver chip via SPI.
[0135] S608: The microcontroller updates the fault diagnosis result.
[0136] In this step, if the driver chip determines that a high-side drive and low-side drive short circuit fault occurs in the solenoid valve, the fault diagnosis result is updated to a high-side drive and low-side drive short circuit fault; if the driver chip determines that a low-side drive short circuit to power supply fault occurs in the solenoid valve, the fault diagnosis result is updated to a low-side drive short circuit to power supply fault; if the driver chip determines that the solenoid valve does not fail, the fault diagnosis result is updated to a solenoid valve does not fail.
[0137] The solenoid valve fault detection method provided by the present application does not require additional modification of the hardware drive circuit (such as adding a high-side current feedback circuit), and the method is universal and does not require re-modification of the diagnostic data according to the solenoid valve model, wiring harness length, etc. In addition, the diagnosis can be automatically performed during the solenoid valve driving process, without the need for the microcontroller to send additional diagnostic instructions. After the fault is diagnosed, the drive will be automatically cut off and the fault latch will be performed, thereby improving timeliness and system reliability. At the same time, multiple states are marked during the driving and diagnosis process, and the microcontroller determines the validity of the fault diagnosis information based on the flag bit status to ensure that the fault is correctly reported and cured.
[0138] Generally speaking, the technical solution provided by the present application can effectively distinguish whether the fault type of the solenoid valve is a short circuit fault between the high-side drive and the low-side drive or a short circuit fault of the low-side drive to the power supply by detecting the change in the current value of the low-side drive, thereby improving the accuracy of detecting the fault of the solenoid valve. It is a technical method that can ensure both the accuracy and efficiency of detecting the fault of the solenoid valve.
[0139] Figure 7 Schematic diagram of a fault detection device for a solenoid valve provided in an embodiment of the present application. Figure 7 As shown, the solenoid valve fault detection device 700 includes:
[0140] An acquisition module 701 is configured to enable a driver chip to acquire a first driving current of the low-side driver within a first preset time period after the high-side driver and the low-side driver of the solenoid valve are simultaneously started;
[0141] The determining module 702 is configured to determine, by the driving chip, that the solenoid valve has a low-side driving-to-power short circuit fault or a high-side driving and low-side driving mutual short fault when the first driving current is greater than or equal to the first current threshold.
[0142] Optionally, the determining module 702 is further configured to, when the first driving current is greater than or equal to the first current threshold, turn off, by the driving chip, the high-side driving; obtain, by the driving chip, a second driving current of the low-side driving within a second preset time period after the high-side driving is turned off; determine, by the driving chip, that the fault type of the solenoid valve is the high-side driving and low-side driving mutual short fault when the second driving current is less than or equal to a second current threshold; and determine, by the driving chip, that the fault type of the solenoid valve is the low-side driving-to-power short circuit fault when the second driving current is greater than the second current threshold.
[0143] Optionally, the determining module 702 is further configured to read, by the single-chip microcomputer, a value in a current rising flag bit in the driving chip, wherein the value in the current rising flag bit is a value set by the driving chip when the first driving current is greater than or equal to the first current threshold; send, by the single-chip microcomputer, a turn-off instruction to the driving chip when the value in the current rising flag bit is equal to a first preset value; and turn off, by the driving chip, the high-side driving based on the turn-off instruction.
[0144] Optionally, the apparatus is further configured to, when the second driving current is less than or equal to the second current threshold after the driving chip turns off the high-side driving, set, by the single-chip microcomputer, a value in a current falling flag bit in the driving chip, wherein the value in the current falling flag bit is a value set by the driving chip when the second driving current is less than or equal to the second current threshold.
[0145] Optionally, the apparatus is further configured to obtain, by the single-chip microcomputer, fault information of the solenoid valve, wherein the fault information includes a value of a driving start flag bit, a value of a driving end flag bit, and values of a plurality of fault flag bits; determine, by the single-chip microcomputer, that the fault information is valid when the value of the driving start flag bit and the value of the driving end flag bit are both equal to a second preset value; and determine, by the single-chip microcomputer, that the fault information is invalid when at least one of the value of the driving start flag bit and the value of the driving end flag bit is not equal to the second preset value.
[0146] Optionally, the determining module 702 is further configured to read the value in the current rise flag bit and the value in the current drop flag bit if the fault information is valid, wherein the value in the current drop flag bit is a value set by the single-chip microcomputer to the current drop flag bit when the second driving current is less than or equal to the second current threshold; if the value in the current rise flag bit and the value in the current drop flag bit are both equal to the third preset value, the driving chip determines that the fault type of the electromagnetic valve is the high-side driving and low-side driving mutual short circuit fault; if the value in the current rise flag bit is equal to the third preset value and the value in the current drop flag bit is not equal to the third preset value, the driving chip determines that the fault type of the electromagnetic valve is the low-side driving power supply short circuit fault.
[0147] Optionally, the apparatus is further configured to, after the driving chip determines that the electromagnetic valve has the low-side driving power supply short circuit fault or the high-side driving and low-side driving mutual short circuit fault, if the driving chip determines that the fault type of the electromagnetic valve is the high-side driving and low-side driving mutual short circuit fault, the single-chip microcomputer sets the value of the corresponding first fault flag bit to the fourth preset value; if the driving chip determines that the fault type of the electromagnetic valve is the low-side driving power supply short circuit fault, the single-chip microcomputer sets the value of the corresponding second fault flag bit to the fourth preset value.
[0148] The fault detection apparatus of the electromagnetic valve provided in the embodiment is used to execute the technical solutions of the fault detection method of the electromagnetic valve in the foregoing method embodiments, and has similar implementation principles and technical effects, which will not be described herein again.
[0149] Figure 8 A schematic diagram of an electronic device provided in the embodiment of the present application is shown in FIG. 8. Figure 8 As shown in FIG. 8, the electronic device 800 includes:
[0150] a processor 811, a memory 812, and a display 813.
[0151] The memory 812 is configured to store programs and data, and the processor 811 calls the programs stored in the memory to execute the technical solutions of the fault detection method of the electromagnetic valve provided in the foregoing method embodiments.
[0152] In the above electronic device, the memory 812 and the processor 811 are directly or indirectly electrically connected to realize the transmission or interaction of data. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines, such as through bus connection. The memory 812 stores computer execution instructions for implementing the fault detection method of the electromagnetic valve, including at least one software function module stored in the memory in the form of software or firmware. The processor 811 executes various function applications and data processing by running the software programs and modules stored in the memory 812.
[0153] The memory can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), and the like. Among them, the memory is used to store programs, and the processor executes the programs after receiving the execution instructions. Further, the software programs and modules in the above-mentioned memory can also include an operating system, which can include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and can communicate with various hardware or software components to provide an operating environment for other software components.
[0154] The processor can be an integrated circuit chip with processing capability. The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), and the like. It can implement or execute the disclosed methods, steps, and logic block diagrams in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0155] The embodiments of the present application also provide a computer readable storage medium, which includes a program. The program is executed by a processor to implement the technical solutions of the electromagnetic valve fault detection method provided in the method embodiments.
[0156] The present application also provides a computer program product, comprising: a computer program, which is executed by a processor to implement the technical solutions of the electromagnetic valve fault detection method provided in the foregoing method embodiments.
[0157] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware. The foregoing program can be stored in a computer readable storage medium. The program is executed to perform the steps of the above-mentioned method embodiments; and the foregoing storage medium includes ROM, RAM, magnetic disk or optical disk and various media that can store program codes.
[0158] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A failure detection method of a solenoid valve, characterized by, The application is applied to a microcontroller including a single-chip microcomputer and a driving chip, and is applied to a high-pressure common rail engine, and the method comprises: In a first preset time period after the high-side drive and the low-side drive of the electromagnetic valve are simultaneously started, the driving chip acquires a first driving current of the low-side drive; When the first driving current rises to a first current threshold value in the first preset time period, the driving chip closes the high-side drive; In a second preset time period after the high-side drive is closed, the driving chip acquires a second driving current of the low-side drive; If the second driving current falls to a second current threshold value in the second preset time period, the driving chip determines that the failure type of the electromagnetic valve is a high-side drive and low-side drive mutual short failure; If the second driving current does not fall to the second current threshold value in the second preset time period, the driving chip determines that the failure type of the electromagnetic valve is a low-side drive power supply short circuit failure.
2. The method of claim 1, wherein, When the first driving current rises to the first current threshold value in the first preset time period, the driving chip closes the high-side drive, which comprises: The single-chip microcomputer reads a value in a current rise flag bit in the driving chip, wherein the value in the current rise flag bit is a value set by the driving chip when the first driving current rises to the first current threshold value in the first preset time period; If the value in the current rise flag bit is equal to a first preset value, the single-chip microcomputer sends a closing instruction to the driving chip; The driving chip closes the high-side drive based on the closing instruction.
3. The method of claim 2, wherein, After the driving chip closes the high-side drive, the method further comprises: When the second driving current falls to the second current threshold value in the second preset time period, the single-chip microcomputer sets a value in a current fall flag bit in the driving chip, wherein the value in the current fall flag bit is a value set by the driving chip when the second driving current falls to the second current threshold value in the second preset time period.
4. The method of claim 3, wherein, The method further comprises: The single-chip microcomputer acquires failure information of the electromagnetic valve, wherein the failure information comprises a value of a driving start flag bit, a value of a driving end flag bit, and values of a plurality of failure flag bits; If the value of the driving start flag bit and the value of the driving end flag bit are both equal to a second preset value, the single-chip microcomputer determines that the failure information is valid; If at least one of the value of the driving start flag bit and the value of the driving end flag bit is not equal to the second preset value, the single-chip microcomputer determines that the failure information is invalid.
5. The method of any one of claim 4, characterized in that, The driving chip determines that the electromagnetic valve has a low-side drive power supply short circuit failure or a high-side drive and low-side drive mutual short failure, which comprises: In the case that the failure information is valid, the single-chip microcomputer reads the value in the current rise flag bit and the value in the current fall flag bit; If the value in the current rise flag bit and the value in the current drop flag bit are both equal to a third preset value, the drive chip determines that the fault type of the electromagnetic valve is a high-side drive and low-side drive mutual short fault; If the value in the current rise flag bit is equal to the third preset value and the value in the current drop flag bit is not equal to the third preset value, the drive chip determines that the fault type of the electromagnetic valve is a low-side drive to power short circuit fault.
6. The method of claim 5, wherein, After the drive chip determines that the electromagnetic valve has a low-side drive to power short circuit fault or a high-side drive and low-side drive mutual short fault, the method further comprises: If the drive chip determines that the fault type of the electromagnetic valve is a high-side drive and low-side drive mutual short fault, the single-chip microcomputer sets the value of a corresponding first fault flag bit to a fourth preset value; If the drive chip determines that the fault type of the electromagnetic valve is a low-side drive to power short circuit fault, the single-chip microcomputer sets the value of a corresponding second fault flag bit to the fourth preset value.
7. A fault detection device for a solenoid valve, characterized in that: Comprise: The acquisition module is used for acquiring, by the drive chip, a first drive current of the low-side drive within a first preset time length after the high-side drive and the low-side drive of the electromagnetic valve are simultaneously started; The determination module is used for, when the first drive current rises to a first current threshold value within the first preset time length, closing, by the drive chip, the high-side drive; acquiring, by the drive chip, a second drive current of the low-side drive within a second preset time length after the high-side drive is closed; If the second drive current drops to a second current threshold value within the second preset time length, the drive chip determines that the fault type of the electromagnetic valve is a high-side drive and low-side drive mutual short fault; if the second drive current does not drop to the second current threshold value within the second preset time length, the drive chip determines that the fault type of the electromagnetic valve is a low-side drive to power short circuit fault.
8. An electronic device, comprising: Comprise: A processor, a memory, and an interactive interface; The memory is used for storing executable instructions executable by the processor; The processor is configured to execute the electromagnetic valve fault detection method of any one of claims 1 to 6 by executing the executable instructions.
9. A readable storage medium, having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the electromagnetic valve fault detection method of any one of claims 1 to 6.
10. A computer program product, characterised in that, The computer program is executed by the processor to implement the electromagnetic valve fault detection method of any one of claims 1 to 6.
Citation Information
Patent Citations
Fuel metering valve drive diagnostic system
CN102721894A