CN115729146A - Electromagnetic valve control method and device, electronic equipment and storage medium - Google Patents

Electromagnetic valve control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115729146A
CN115729146A CN202211449476.4A CN202211449476A CN115729146A CN 115729146 A CN115729146 A CN 115729146A CN 202211449476 A CN202211449476 A CN 202211449476A CN 115729146 A CN115729146 A CN 115729146A
Authority
CN
China
Prior art keywords
voltage
detection
solenoid valve
power supply
supply voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211449476.4A
Other languages
Chinese (zh)
Inventor
汪冬亮
王志伟
黄美娟
孙科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Automotive Innovation Co Ltd
Original Assignee
China Automotive Innovation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Automotive Innovation Co Ltd filed Critical China Automotive Innovation Co Ltd
Priority to CN202211449476.4A priority Critical patent/CN115729146A/en
Publication of CN115729146A publication Critical patent/CN115729146A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a solenoid valve control method, a solenoid valve control device, electronic equipment and a storage medium, wherein the solenoid valve control method can be applied to the field of automobile braking, and comprises the following steps: determining a first power supply voltage of a working circuit where a solenoid valve coil is located and a second power supply voltage of a detection circuit based on a system power supply voltage; the detection circuit is formed by connecting an electromagnetic valve coil and a detection resistor in series; controlling the detection circuit to be started based on the second power supply voltage, and acquiring a first detection voltage of a detection resistor in the detection circuit; acquiring a reference voltage of a detection resistor in a detection circuit; the reference voltage is the voltage of the detection resistor when the resistance value of the solenoid valve coil in the detection circuit is the reference resistance value; the reference resistance value is the maximum resistance value of the switch of the coil control electromagnetic valve; when the first detection voltage is larger than the reference voltage, the detection circuit is controlled to be closed, and the working circuit is controlled to be opened based on the first power supply voltage so as to control the electromagnetic valve to be switched on and off through the coil. The application improves the stability and reliability of the automobile brake system.

Description

Electromagnetic valve control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of vehicle braking, and more particularly, to a method and an apparatus for controlling a solenoid valve, an electronic device, and a storage medium.
Background
The stability and reliability of the brake are the guarantee of safe driving of the automobile, the automobile brake is gradually developed from a mechanical-vacuum pump type to a scheme of electronic hydraulic brake with higher integration level, the scheme needs to control the switch of a hydraulic circuit, and the control of the switch of the hydraulic circuit needs to be realized by the opening or closing of an electromagnetic valve. In the electronic hydraulic brake system, an electronic control unit receives and executes software instructions to carry out power-on and power-off control on a coil of an electromagnetic valve, and according to the law of electromagnetic induction, the power-on coil generates a magnetic field to enable the electromagnetic valve to open and close, so that a hydraulic circuit is controlled.
Two key factors are involved in the opening or closing of the electromagnetic valve, namely the external load of the electromagnetic valve and the electromagnetic force generated by a coil matched with the electromagnetic valve, and after the structural data design is frozen, the electromagnetic force generated between the coil and the electromagnetic valve is determined by the energization current of the coil. The electronic hydraulic brake system works in a severe automobile environment, system power supply voltage, working temperature and electric control unit impedance all have great influence on coil electrifying current, wherein the system power supply voltage is provided by an automobile power supply system, the electric control unit impedance is determined by elements and printed circuit boards, the working temperature influences the coil electrifying current by influencing the coil impedance, and the higher the working temperature is, the larger the coil impedance is. In the current mainstream brake control method, whether the electromagnetic valve can be opened or closed is determined only by taking the power supply voltage as a unique variable, the influence of the working temperature on the impedance of the coil is ignored, and under the condition that the power supply voltage meets the requirement, because the coil temperature is high and the impedance of the coil is large, the current flowing in the coil cannot provide the electromagnetic force for controlling the opening or closing of the electromagnetic valve, so that the brake instability of the automobile is caused.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present application provide a method and an apparatus for controlling a solenoid valve, an electronic device, and a storage medium. The technical scheme is as follows:
in one aspect, a solenoid valve control method is provided, the method including:
determining a first power supply voltage of a working circuit where a solenoid valve coil is located and a second power supply voltage of a detection circuit based on a system power supply voltage; the detection circuit is formed by connecting the solenoid valve coil and a detection resistor in series;
controlling the detection circuit to be in an on state based on the second power supply voltage, and obtaining the voltage of the detection resistor in the detection circuit to obtain a first detection voltage;
acquiring a reference voltage of the detection resistor in the detection circuit; the reference voltage is the voltage of the detection resistor when the resistance value of the solenoid valve coil in the detection circuit is a reference resistance value; the reference resistance value is the maximum resistance value of the solenoid valve coil for controlling the opening or closing of a target solenoid valve in the working circuit;
and when the first detection voltage is greater than the reference voltage, controlling the detection circuit to be in a closed state, and controlling the working circuit to be in an open state based on the first power supply voltage so as to control the target electromagnetic valve to be opened or closed through an electromagnetic valve coil in the working circuit.
In another aspect, there is provided a solenoid valve control device, the device including:
the voltage determining module is used for determining a first power supply voltage of a working circuit where the solenoid valve coil is located and a second power supply voltage of the detection circuit based on the system power supply voltage; the detection circuit is formed by connecting the solenoid valve coil and a detection resistor in series;
the detection starting module is used for controlling the detection circuit to be in a starting state based on the second power supply voltage, and obtaining the voltage of the detection resistor in the detection circuit to obtain a first detection voltage;
the reference voltage module is used for acquiring the reference voltage of the detection resistor in the detection circuit; the reference voltage is the voltage of the detection resistor when the resistance value of the solenoid valve coil in the detection circuit is a reference resistance value; the reference resistance value is the maximum resistance value of the solenoid valve coil for controlling the opening or closing of a target solenoid valve in the working circuit;
and the working opening module is used for controlling the detection circuit to be in a closed state when the first detection voltage is greater than the reference voltage, and controlling the working circuit to be in an open state based on the first power supply voltage so as to control the target electromagnetic valve to be opened or closed through an electromagnetic valve coil in the working circuit.
In an exemplary embodiment, the apparatus includes a reference determination module for calculating a reference voltage for a sense resistor in a sense circuit, the reference determination module including:
the reference data acquisition module is used for acquiring reference current and the resistance value of the detection resistor; the reference current is the minimum current for controlling the target solenoid valve to be opened or closed by the solenoid valve coil;
a reference resistance determination module to determine the reference resistance based on the first supply voltage and the reference current;
and the reference voltage determining module is used for determining the voltage of a detection resistor in the detection circuit based on the second power supply voltage and the reference resistance value to obtain the reference voltage.
In an exemplary embodiment, the voltage determination module includes:
acquiring the system power supply voltage;
determining the first supply voltage based on the system supply voltage;
controlling the power supply modulator to be in an open state;
the first power supply voltage is input to the power modulator, and the second power supply voltage is derived based on an output of the power modulator.
In an exemplary embodiment, the apparatus includes a work shutdown module for protecting a work circuit of a solenoid coil prior to detection of the solenoid coil, the work shutdown module including:
and the working closing module is used for controlling the working circuit to be in a closed state.
In one exemplary embodiment, the apparatus includes a circuit verification module for verifying whether a detection circuit of a solenoid valve coil is closed after detection of the solenoid valve coil is finished, the circuit verification module including:
the voltage acquisition module is used for acquiring the voltage of the detection resistor in the detection circuit to obtain a second detection voltage;
the voltage verification module is used for verifying whether the second detection voltage is within a preset low voltage range or not to obtain a verification result;
and the first fault module is used for generating fault alarm information based on the verification result under the condition that the verification result indicates failure.
In an exemplary embodiment, the apparatus includes a second fault module for generating fault information upon detecting that a current flowing through a coil in an operating circuit fails to provide an electromagnetic force that controls opening or closing of a solenoid, the second fault module including:
and the second fault module is used for generating fault alarm information when the first detection voltage is less than or equal to the reference voltage.
In another aspect, an electronic device is provided, which includes a processor and a memory, where at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the solenoid valve control method according to any of the above aspects.
In another aspect, a computer readable storage medium is provided, in which at least one instruction or at least one program is stored, the at least one instruction or the at least one program being loaded and executed by a processor to implement the solenoid valve control method according to any one of the above aspects.
In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the solenoid valve control method of any one of the above aspects.
According to the embodiment of the application, the detection resistor is connected in series before the working circuit of the solenoid valve coil is opened, whether the resistance value of the solenoid valve coil exceeds the maximum resistance value of the solenoid valve coil allowed by the control solenoid valve switch or not is judged through the voltage of the detection resistor, and when the resistance value of the solenoid valve coil does not exceed the maximum resistance value and the solenoid valve switch can be controlled, the working circuit of the coil is opened, so that the stability and the reliability of an automobile braking system are improved, and abnormal working conditions caused by the fact that the solenoid valve cannot be opened or closed due to small energization current of the coil when the coil is normally energized and has no fault are prevented; and the maximum resistance value allowed by the solenoid valve coil to control the solenoid valve switch is determined based on the power supply voltage and the minimum current required by the solenoid valve coil to control the solenoid valve switch, so that the judgment condition of the solenoid valve coil resistance can be adjusted according to the power supply voltage, a diagnosis and protection circuit is self-adaptive, the coil control working range of the automobile braking system is widened, and the stability and the robustness are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a solenoid valve control method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a solenoid coil detection and hardware adaptive protection circuit according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a reference voltage calculation method according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a verification process of a detection circuit according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a solenoid valve control device according to an embodiment of the present application;
fig. 6 is a hardware structure block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It is understood that in the specific implementation of the present application, related data such as user information is involved, when the above embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use and processing of related data need to comply with relevant laws and regulations and standards in relevant countries and regions.
Referring to fig. 1, a flowchart of a method for controlling a solenoid valve according to an embodiment of the present disclosure is shown, where the method may be applied to an electronic device, and the electronic device may be a controller on a vehicle. It is noted that the present specification provides method steps as described in the examples or flowcharts, but may include more or less steps based on routine or non-inventive efforts. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In actual system or product execution, sequential execution or parallel execution (e.g., parallel processor or multi-threaded environment) may be possible according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 1, the method may include:
s101, determining a first power supply voltage of a working circuit where a solenoid valve coil is located and a second power supply voltage of a detection circuit based on a system power supply voltage.
The detection circuit is formed by connecting a solenoid valve coil and a detection resistor in series. And detecting the resistance value of the solenoid valve coil by using a voltage division principle.
The system power supply voltage is the power supply voltage of an electronic hydraulic brake system for automobile braking.
The electromagnetic valve coil is a coil for controlling the opening or closing of a target electromagnetic valve, and the electromagnetic valve coil is electrified to generate a magnetic field, so that the electromagnetic valve generates opening and closing actions, and the opening and closing of a hydraulic circuit in the electronic hydraulic brake system are controlled.
The working circuit is a circuit for controlling a target electromagnetic valve by generating a magnetic field for an electromagnetic valve coil.
The first power supply voltage is the power supply voltage of the solenoid valve coil control target solenoid valve supplied by the power supply of the electronic hydraulic brake system.
The second power supply voltage is a stable detection voltage output by the power supply modulator from the first power supply voltage, and is used as the power supply voltage when the detection circuit detects the resistance value of the solenoid valve coil. In a specific implementation, as shown in fig. 2, the schematic diagram of the solenoid valve coil detection and hardware adaptive protection circuit is shown, vbat is an external power supply for supplying power to the electronic control unit, VDD1 is an internal power supply for supplying power to the internal circuit, and GND is grounded and is a negative electrode of the power supply; the electronic hydraulic brake system is electrified, vbat is electrified and is a power supply of a working circuit of the solenoid valve coil, VDD1 is electrified, the voltage of the Vbat is input into the power supply modulator, and the output of the power supply modulator is the voltage of the solenoid valve coil detection circuit.
In an exemplary embodiment, the step S101 may include the following steps:
acquiring the system power supply voltage;
determining the first supply voltage based on the system supply voltage;
controlling the power supply modulator to be in an opening state;
the first power supply voltage is input to the power supply modulator, and the second power supply voltage is obtained based on an output of the power supply modulator.
Wherein the system power supply voltage is the power supply voltage of the electronic hydraulic brake system.
The first power supply voltage is the power supply voltage of the solenoid valve coil control target solenoid valve supplied by the power supply of the electronic hydraulic brake system. In a specific implementation, as shown in fig. 2, which is a schematic diagram of the solenoid valve coil detection and hardware adaptive protection circuit, when the electronic hydraulic brake system is powered on, vbat gets powered, and the Vbat voltage is a first power voltage, which supplies power to a working circuit of the solenoid valve coil.
The power supply modulator can keep outputting stable voltage and is used for providing stable voltage for the detection circuit.
And the second power supply voltage is the power supply voltage of the electromagnetic valve detection circuit. Specifically, as shown in fig. 2, the power supply modulator is turned on, vbat is input as the power supply modulator, vpre output from the power supply modulator is a detection circuit power supply, and Vpre voltage is a second power supply voltage, which supplies power to the detection circuit of the solenoid valve coil.
According to the technical scheme, the power supply voltage of the solenoid valve coil working circuit and the power supply voltage of the detection circuit are determined through the power supply voltage of the electronic hydraulic brake system, and the voltage of the detection circuit is kept stable through the power supply modulator, so that the detection of the resistance of the solenoid valve coil is more accurate.
In an exemplary embodiment, before the step of controlling the power modulator to be in the on state, the following steps may be included:
and controlling the working circuit to be in a closed state.
Specifically, as shown in fig. 2, the schematic diagram of the solenoid valve coil detection and hardware adaptive protection Circuit is shown, where the type of the Interface for the communication Input of the MCU (micro controller Unit) in the diagram is SPI (Synchronous Digital Hierarchy) or IIC (Inter-Integrated Circuit) or I/O (Input/Output) for converting the Digital quantity into the analog quantity; MCU _ I/O1, MCU _ I/O2, MCU _ I/O3, MCU _ I/O4 and MCU _ I/O5 are singlechip I/O drive, and MCU _ I/O6 is singlechip I/O collection; q1, Q2, Q8 and Q10 are NPN triodes, Q4, Q5 and Q6 are MOS transistors (Metal-Oxide-Semiconductor Field-Effect transistors), and Q7 and Q9 are PNP triodes; q1 is turned on to prohibit Q2 from being turned on, Q2 is turned on to prohibit Q4 from being turned on, Q4 is a coil control safety switch, Q5 is a coil control low-side switch, Q6 is a coil detection low-side isolating switch, Q7 is a coil detection high-side power switch, Q8 controls Q7 to be turned on or turned off, Q9 is a positive input switch of a comparator, and Q10 controls Q9 to be turned on or turned off; r3 is a Q6 control end current limiting resistor, R4 is a comparator input resistor, R5 is a comparator output current limiting resistor, R6 is a comparator output pull-up resistor, R7 is a Q8 control end current limiting resistor, R8 is a Q7 control end current limiting resistor, R11 is a Q1 control end pull-down resistor, R12 is a Q1 control end current limiting circuit, R13 is a Q9 control end current limiting resistor, R14 is a Q10 control end current limiting resistor, R15 is a comparator positive input pull-down resistor, rs is a coil resistor, and Rr is a detection resistor; the comparator is a voltage comparator, when the resistance of the solenoid valve coil is detected, the negative input end is compared with a reference voltage, when the Uin voltage is greater than Uref, the output is low level, and when the Uin voltage is less than Uref, the output is high level. The MCU _ I/O1, the MCU _ I/O2, the MCU _ I/O3, the MCU _ I/O4 and the MCU _ I/O5 are initialized to be at a low level, the MCU _ I/O6 is initialized to be at a high level, the voltage value of VDD1 is output through MCU communication input initialization D/A conversion (digital signals/analog signals) and is used as a comparator reference voltage Uref, at the moment, the power supply modulator does not work, Q1, Q6, Q8 and Q10 are all in a closed state, Q7 is closed and Q9 is closed, the negative input end of the comparator is pulled to be at a low level through R4 and R15, the comparator input voltage Uin is smaller than the reference voltage Uref, so that the comparator output is at a high level, Q2 is opened, the coil control safety switch Q4 is prohibited by Q2, the solenoid valve coil working circuit is in a closed state, and primary protection is carried out on coil control.
According to the technical scheme, the working circuit of the solenoid valve coil is controlled to be in the closed state through initialization of the single chip microcomputer, the working circuit of the solenoid valve coil is guaranteed to be in the closed state when the solenoid valve coil is detected, and control over the solenoid valve coil is protected.
S103, controlling the detection circuit to be in an opening state based on the second power supply voltage, and obtaining the voltage of the detection resistor in the detection circuit to obtain a first detection voltage.
The detection resistor is a fixed value resistor and is connected with the solenoid valve coil in series in the detection circuit, and the detection resistor and the solenoid valve coil divide voltage, so that the resistance value of the solenoid valve coil can be observed through detecting the voltage of the resistor.
In specific implementation, as shown in fig. 2, a schematic diagram of a solenoid valve coil detection and hardware adaptive protection circuit is shown, a single-chip microcomputer raises an MCU _ I/O3 to enable a power supply modulator to output a voltage Vpre, the single-chip microcomputer raises an MCU _ I/O1 to open a Q8, so that the Q7 is opened, the Vpre supplies power to a high end of a solenoid valve coil through the Q7, the single-chip microcomputer raises an MCU _ I/O2 to open a Q6, a coil detection low-side isolation switch is opened, the Vpre supplies current to the solenoid valve coil through the Q7, rs, rr and Q6, a detection circuit is in an open state, and at this time, an upper end voltage of Rr is Urru, which is a first detection voltage.
And S105, acquiring a reference voltage of the detection resistor in the detection circuit.
The reference voltage is the voltage of the detection resistor when the resistance value of the solenoid valve coil in the detection circuit is the reference resistance value.
The reference resistance value is the maximum resistance value of the target electromagnetic valve in the electromagnetic valve coil control working circuit, wherein the target electromagnetic valve is opened or closed.
Specifically, when the current of the working circuit is the minimum current required by the solenoid valve coil to control the opening or closing of the target solenoid valve, the resistance of the solenoid valve coil is the reference resistance value, the resistance value of the solenoid valve coil increases along with the rise of temperature, and when the resistance value of the solenoid valve coil exceeds the reference resistance value, in the detection circuit, according to the principle of series voltage division, the voltage of the detection resistance is smaller than the reference resistance value, and at this time, the current flowing through the solenoid valve coil in the working circuit is not enough to enable the solenoid valve coil to generate the electromagnetic force for controlling the opening or closing of the solenoid valve. Therefore, the reference voltage is the minimum voltage of the detection resistance when the solenoid coil passes the detection.
In an exemplary embodiment, before the reference voltage is obtained in step S105, as shown in fig. 3, a flowchart of a reference voltage calculating method is shown. The step of calculating the reference voltage may comprise the steps of:
s301, obtaining a reference current and the resistance value of the detection resistor.
Wherein, the reference current is the minimum current for controlling the opening or closing of the target solenoid valve by the solenoid valve coil.
Specifically, the reference current is affected by the ambient temperature, the differential pressure of the solenoid valve, the brake fluid characteristics, and the like. In one embodiment, the reference current is obtained directly by querying.
The detection resistor is a constant value resistor, and the resistance value of the detection resistor can be directly obtained.
S303, determining the reference resistance value based on the first power voltage and the reference current.
The first power supply voltage is the power supply voltage of the solenoid valve coil working circuit.
Wherein, the reference current is the minimum current required by the solenoid valve coil to control the opening or closing of the solenoid valve.
The reference resistance value is the maximum resistance value allowed by the solenoid valve coil to control the opening or closing of the solenoid valve, and is the ratio of the first power supply voltage to the reference current. The calculation formula of the reference resistance value is shown in formula (1):
Rsmax=Vbat/Io (1)
wherein Rsmax is a reference resistance value, vbat is a first power voltage, and Io is a reference current.
S305, determining the voltage of the detection resistor in the detection circuit based on the second power supply voltage and the reference resistance value to obtain the reference voltage.
The second power voltage is the power voltage of the detection circuit.
The detection resistor and the solenoid valve coil are connected in series to form a detection circuit.
The reference voltage is the voltage of the detection resistor when the resistance value of the solenoid valve coil in the detection circuit is the reference resistance value. Specifically, according to the principle of serial voltage division, the coil of the solenoid valve and the detection resistor divide the voltage, and the calculation formula of the reference voltage is shown as formula (2):
Uref=(Rr/(Vbat/Io+Rr))*Vpre (2)
wherein Uref is a reference voltage, rr is a resistance value of the detection resistor, vbat/Io is a reference resistance value, and Vpre is a second power voltage.
According to the technical scheme of the embodiment of the application, when the resistance value of the solenoid valve coil is calculated to be the maximum resistance value of opening or closing of a target solenoid valve in the solenoid valve coil control working circuit, the voltage of the detection resistor in the detection circuit is determined to be the reference voltage, and when the resistance value of the solenoid valve coil is detected subsequently, whether the current flowing through the solenoid valve coil is enough to enable the solenoid valve coil to generate electromagnetic force for controlling the opening or closing of the solenoid valve can be judged only by comparing the voltage of the detection resistor with the reference voltage.
S107, judging whether the first detection voltage is larger than the reference voltage.
Specifically, if the determination result is yes, step S109 may be executed; on the contrary, if the determination result is no, step S1011 may be executed.
The first detection voltage is an actual voltage of a detection resistor in the detection circuit.
Specifically, if the actual voltage of the detection resistor is greater than the reference voltage, the resistance value of the solenoid valve coil is smaller than the reference resistance value, the current flowing through the solenoid valve coil after the working circuit is opened is greater than the reference current, and the solenoid valve coil can control the solenoid valve to be opened or closed, so that the working circuit of the solenoid valve coil can be opened; if the actual voltage of the detection resistor is smaller than the reference voltage, the resistance value of the electromagnetic valve coil is larger than the reference resistance value, the current flowing through the electromagnetic valve coil after the working circuit is opened is smaller than the reference current, and the electromagnetic force generated by the electromagnetic valve coil is not enough to control the electromagnetic valve to be opened or closed, so that the working circuit of the electromagnetic valve coil is forbidden to be opened, and fault alarm information is generated.
In specific implementation, as shown in fig. 2, which is a schematic diagram of a solenoid coil detection and hardware adaptive protection circuit, the MCU _ I/O5 is set high by the single chip, Q10 is turned on, so that Q9 is turned on, and the voltage Urru of Rr is input to the negative input end of the comparator, i.e., uin = Urru; and according to the calculated reference voltage Uref of the demand comparator, communicating with the D/A conversion chip through the MCU communication input, so that the D/A conversion chip outputs a voltage value Uref to the positive input end of the comparator. If the voltage Uin of the negative input end of the comparator is greater than the voltage Uref of the positive input end of the comparator, the output of the comparator is low level, which indicates that the resistance of the coil of the electromagnetic valve is smaller than the Rsmax of the reference tissue at the moment; if the voltage Uin at the negative input end of the comparator is less than or equal to the voltage Uref at the positive input end of the comparator, the output of the comparator is high level, which indicates that the resistance of the solenoid valve coil exceeds the reference resistance value Rsmax.
And S109, controlling the detection circuit to be in a closed state, and controlling the working circuit to be in an open state based on the first power supply voltage so as to control the target electromagnetic valve to be opened or closed through an electromagnetic valve coil in the working circuit.
Specifically, when the actual voltage of the detection resistor is greater than the reference voltage, the resistance value of the solenoid valve coil is smaller than the reference resistance value, the current flowing through the solenoid valve coil after the working circuit is opened is greater than the reference current, and the solenoid valve coil can control the solenoid valve to be opened or closed.
In a specific implementation, as shown in fig. 2, which is a schematic diagram of a solenoid coil detection and hardware adaptive protection circuit, when a voltage Uin at a negative input end of a comparator is greater than a voltage Uref at a positive input end of the comparator, an output of the comparator is a low level, so that Q2 is turned off, and Q4 can be normally controlled, that is, a working circuit of the solenoid coil can be turned on; the MCU _ I/O1, the MCU _ I/O2, the MCU _ I/O3 and the MCU _ I/O5 are set to be low by the singlechip, and the detection circuit is closed.
In an exemplary embodiment, after the step S109 controls the detection circuit to be in the off state, as shown in fig. 4, for a flowchart of the detection circuit verification, the method may include the following steps:
s401, acquiring the voltage of the detection resistor in the detection circuit to obtain a second detection voltage;
the second detection voltage is the voltage of the detection resistor when the detection circuit is in the off state, and is used for verifying whether the detection circuit is off. Specifically, after the detection circuit is turned off, the ideal value of the detection resistance voltage is zero.
And S403, verifying whether the second detection voltage is in a preset low voltage range.
Specifically, if the result of the verification is yes, the rest of step S109 may be executed; otherwise, if the determination result is negative, step S405 may be executed.
The preset low voltage range is a voltage value range of the detection resistor when the detection circuit is in a closed state.
Specifically, after the detection circuit is closed, if the voltage of the detection resistor is within a preset low voltage range, the working circuit of the solenoid valve coil is controlled to be in an open state, and the solenoid valve coil controls the solenoid valve to be opened or closed; and if the voltage of the detection resistor is not in the preset low voltage range, generating fault alarm information and forbidding a working circuit of the solenoid valve coil to be opened.
In specific implementation, as shown in fig. 2, the schematic diagram of the solenoid coil detection and hardware adaptive protection circuit is shown, after the MCU _ I/O1, the MCU _ I/O2, the MCU _ I/O3, and the MCU _ I/O5 are set to be low by the single chip, the negative input end Uin of the comparator is at the voltage of Rr, the positive input end of the comparator is at the reference voltage Uref, if the output of the comparator is at a high level, the voltage Uin of the negative input end of the comparator is smaller than the voltage Uref of the positive input end of the comparator, the voltage of Rr is within a preset low voltage range, the detection circuit confirms to be turned off, the MCU _ I/O4 is set to be high by the single chip, Q1 is turned on, Q2 is turned off, at this time Q4 can be turned on, when Q4 is turned on, Q5 is turned on, the solenoid coil working circuit is in an on state, and the solenoid coil controls the opening or closing of the solenoid; if the output of the comparator is low level, the voltage Uin of the negative input end of the comparator is greater than or equal to the voltage Uref of the positive input end of the comparator, the voltage of Rr is not in the preset low voltage range, the detection circuit fails to be closed, the MCU _ I/O4 is kept low, Q1 is kept closed, Q2 is kept open, at the moment, the Q4 is forbidden to be opened, the solenoid valve coil working circuit is forbidden to be opened, and fault alarm information is generated. Specifically, the single chip microcomputer identifies whether the output state of the current comparator is a high level through the MCU _ I/O6.
And S405, generating fault alarm information based on the verification result.
Specifically, after the detection circuit is closed, when the voltage of the detection resistor is not within a preset low voltage range, fault alarm information is generated, and the working circuit of the solenoid valve coil is forbidden to be opened.
In specific implementation, as shown in fig. 2, after the MCU _ I/O1, the MCU _ I/O2, the MCU _ I/O3, and the MCU _ I/O5 are set to be low by the single chip, if the output of the comparator is at a low level, the voltage Uin at the negative input end of the comparator is greater than or equal to the voltage Uref at the positive input end of the comparator, the voltage of Rr is not in the preset low voltage range, the detection circuit fails to be turned off, the MCU _ I/O4 is kept low, Q1 is kept off, Q2 is kept on, at this time, Q4 is prohibited from being turned on, the solenoid coil working circuit is prohibited from being turned on, and a failure alarm message is generated.
According to the technical scheme, whether the detection circuit is closed or not is verified by detecting the voltage of the resistor, so that the detection circuit is in a closed state when the working circuit of the solenoid valve coil is started, and the solenoid valve coil can normally work.
And S1011, generating fault alarm information.
Specifically, when the actual voltage of the detection resistor is less than or equal to the reference voltage, the resistance value of the solenoid valve coil is greater than the reference resistance value, if the working circuit is opened, the current flowing through the solenoid valve coil is less than the reference current, and the electromagnetic force generated by the solenoid valve coil is insufficient to control the solenoid valve to be opened or closed, so that the working circuit of the solenoid valve coil is prohibited from being opened, and the fault alarm information is generated.
In a specific implementation, as shown in fig. 2, which is a schematic diagram of a solenoid coil detection and hardware adaptive protection circuit, when a negative input terminal voltage Uin of a comparator is less than or equal to a positive input terminal voltage Uref of the comparator, an output of the comparator is a low level, the comparator outputs a high level, so that Q2 is kept on, Q4 is prohibited to be opened, secondary protection is performed on coil control, and a fault code is reported to perform fault handling by detecting that a state of MCU _ I/O6 is a high level.
According to the technical scheme, the detection resistor is connected in series before the working circuit of the electromagnetic valve coil is opened, whether the resistance value of the electromagnetic valve coil exceeds the maximum resistance value of the electromagnetic valve coil allowed by the electromagnetic valve to be opened or not is judged through the voltage of the detection resistor, the working circuit of the coil is opened when the electromagnetic valve is determined not to be opened or closed, the stability and the reliability of an automobile braking system are improved, and the abnormal working condition caused by the fact that the electromagnetic valve cannot be opened or closed due to the fact that the coil is normally electrified and has no fault is prevented.
Corresponding to the solenoid valve control methods provided in the above embodiments, embodiments of the present application also provide a solenoid valve control device, and since the solenoid valve control device provided in the embodiments of the present application corresponds to the solenoid valve control methods provided in the above embodiments, the embodiments of the foregoing solenoid valve control methods are also applicable to the solenoid valve control device provided in the embodiments, and will not be described in detail in the embodiments.
Referring to fig. 5, a schematic structural diagram of a solenoid valve control device provided in an embodiment of the present application is shown, where the device has a function of implementing a solenoid valve control method in the foregoing method embodiment, and the function may be implemented by hardware or by hardware executing corresponding software. As shown in fig. 5, the apparatus may include:
a voltage determining module 510, configured to determine, based on the system power supply voltage, a first power supply voltage of a working circuit where the solenoid valve coil is located, and a second power supply voltage of the detection circuit; the detection circuit is formed by connecting the electromagnetic valve coil and a detection resistor in series;
a detection starting module 520, configured to control the detection circuit to be in a starting state based on the second power voltage, and obtain a voltage of the detection resistor in the detection circuit to obtain a first detection voltage;
a reference voltage module 530, configured to obtain a reference voltage of the detection resistor in the detection circuit; the reference voltage is the voltage of the detection resistor when the resistance value of the electromagnetic valve coil in the detection circuit is a reference resistance value; the reference resistance value is the maximum resistance value of the electromagnetic valve coil for controlling a target electromagnetic valve in the working circuit to be opened or closed;
and a working opening module 540, configured to control the detection circuit to be in a closed state when the first detection voltage is greater than the reference voltage, and control the working circuit to be in an open state based on the first power voltage, so as to control the target solenoid valve to be opened or closed through a solenoid valve coil in the working circuit.
In an exemplary embodiment, the apparatus includes a reference determination module for calculating a reference voltage for a sense resistor in a sense circuit, the reference determination module including:
the reference data acquisition module is used for acquiring reference current and the resistance value of the detection resistor; the reference current is the minimum current for controlling the target electromagnetic valve to be opened or closed by the electromagnetic valve coil;
a reference resistance determination module to determine the reference resistance based on the first supply voltage and the reference current;
and the reference voltage determining module is used for determining the voltage of a detection resistor in the detection circuit based on the second power supply voltage and the reference resistance value to obtain the reference voltage.
In an exemplary embodiment, the voltage determination module includes:
acquiring the system power supply voltage;
determining the first supply voltage based on the system supply voltage;
controlling the power supply modulator to be in an open state;
the first power supply voltage is input to the power modulator, and the second power supply voltage is derived based on an output of the power modulator.
In an exemplary embodiment, the apparatus includes a work shutdown module for protecting a work circuit of a solenoid coil prior to detection of the solenoid coil, the work shutdown module including:
and the work closing module is used for controlling the work circuit to be in a closed state.
In an exemplary embodiment, the apparatus includes a circuit verification module for verifying whether a detection circuit of a solenoid valve coil is closed after detection of the solenoid valve coil is finished, the circuit verification module including:
the voltage acquisition module is used for acquiring the voltage of the detection resistor in the detection circuit to obtain a second detection voltage;
the voltage verification module is used for verifying whether the second detection voltage is within a preset low voltage range or not to obtain a verification result;
and the first fault module is used for generating fault alarm information based on the verification result under the condition that the verification result indicates failure.
In one exemplary embodiment, the apparatus includes a second fault module for generating fault information upon detecting that current flowing through a coil in an operating circuit fails to provide an electromagnetic force that controls opening or closing of a solenoid, the second fault module including:
and the second fault module is used for generating fault alarm information when the first detection voltage is less than or equal to the reference voltage.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The embodiment of the present application provides an electronic device, which includes a processor and a memory, where the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement any one of the solenoid valve control methods provided in the above method embodiments.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
The method embodiments provided in the embodiments of the present application may be executed in a computer terminal, a server, or a similar computing device, that is, the electronic device may include a computer terminal, a server, or a similar computing device. Fig. 6 is a block diagram of a hardware structure of a computer device for operating a solenoid valve control method according to an embodiment of the present invention, and as shown in fig. 6, the internal structure of the computer device may include, but is not limited to: a processor, a network interface, and a memory. The processor, the network interface, and the memory in the computer device may be connected by a bus or by other means, and the connection by the bus is taken as an example in the diagram xx shown in the embodiment of the specification.
The processor (or CPU) is a computing core and a control core of the computer device. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.). Memory (Memory) is a Memory device in a computer device used to store programs and data. It is understood that the memory herein may be a high-speed RAM storage device, or may be a non-volatile storage device (non-volatile memory), such as at least one magnetic disk storage device; optionally, at least one memory device located remotely from the processor. The memory provides storage space that stores an operating system of the electronic device, which may include, but is not limited to: a Windows system (an operating system), a Linux system (an operating system), an Android system, an IOS system, etc., which are not limited in the present invention; also, the memory space stores one or more instructions, which may be one or more computer programs (including program code), adapted to be loaded and executed by the processor. In this embodiment, the processor loads and executes one or more instructions stored in the memory to implement the solenoid valve control method provided in the above method embodiment.
Embodiments of the present application further provide a computer-readable storage medium, which may be disposed in an electronic device to store at least one instruction or at least one program for implementing a solenoid valve control method, where the at least one instruction or the at least one program is loaded and executed by the processor to implement any one of the solenoid valve control methods provided in the foregoing method embodiments.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages or disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only a preferred embodiment of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method of controlling a solenoid valve, the method comprising:
determining a first power supply voltage of a working circuit where a solenoid valve coil is located and a second power supply voltage of a detection circuit based on a system power supply voltage; the detection circuit is formed by connecting the electromagnetic valve coil and a detection resistor in series;
controlling the detection circuit to be in a starting state based on the second power supply voltage, and acquiring the voltage of the detection resistor in the detection circuit to obtain a first detection voltage;
acquiring a reference voltage of the detection resistor in the detection circuit; the reference voltage is the voltage of the detection resistor when the resistance value of the solenoid valve coil in the detection circuit is a reference resistance value; the reference resistance value is the maximum resistance value of the solenoid valve coil for controlling the opening or closing of a target solenoid valve in the working circuit;
and when the first detection voltage is greater than the reference voltage, controlling the detection circuit to be in a closed state, and controlling the working circuit to be in an open state based on the first power supply voltage so as to control the target electromagnetic valve to be opened or closed through an electromagnetic valve coil in the working circuit.
2. The solenoid valve control method according to claim 1, wherein before said obtaining a reference voltage of said detection resistance in said detection circuit, said method further comprises:
acquiring a reference current and the resistance value of the detection resistor; the reference current is the minimum current for controlling the target electromagnetic valve to be opened or closed by the electromagnetic valve coil;
determining the reference resistance value based on the first power supply voltage and the reference current;
and determining the voltage of a detection resistor in the detection circuit based on the second power supply voltage and the reference resistance value to obtain the reference voltage.
3. The solenoid valve control method according to claim 1, wherein the determining a first power supply voltage of a circuit in which the solenoid valve coil operates based on the system power supply voltage, and detecting a second power supply voltage of the circuit, comprises:
acquiring the system power supply voltage;
determining the first supply voltage based on the system supply voltage;
controlling the power supply modulator to be in an opening state;
the first power supply voltage is input to the power modulator, and the second power supply voltage is derived based on an output of the power modulator.
4. A solenoid valve control method according to claim 3, characterized in that before the control power supply modulator is in an open state, the method further comprises:
and controlling the working circuit to be in a closed state.
5. The solenoid control method according to claim 1, wherein after said controlling the detection circuit in the closed state, the method further comprises:
acquiring the voltage of the detection resistor in the detection circuit to obtain a second detection voltage;
verifying whether the second detection voltage is within a preset low voltage range to obtain a verification result;
and generating fault alarm information based on the verification result if the verification result indicates failure.
6. The solenoid valve control method according to any one of claims 1 to 5, characterized by further comprising:
and when the first detection voltage is less than or equal to the reference voltage, generating fault alarm information.
7. A solenoid valve control device, characterized in that the device comprises:
the voltage determining module is used for determining a first power supply voltage of a working circuit where the solenoid valve coil is located and a second power supply voltage of the detection circuit based on the system power supply voltage; the detection circuit is formed by connecting the solenoid valve coil and a detection resistor in series;
the detection starting module is used for controlling the detection circuit to be in a starting state based on the second power supply voltage, and acquiring the voltage of the detection resistor in the detection circuit to obtain a first detection voltage;
the reference voltage module is used for acquiring the reference voltage of the detection resistor in the detection circuit; the reference voltage is the voltage of the detection resistor when the resistance value of the solenoid valve coil in the detection circuit is a reference resistance value; the reference resistance value is the maximum resistance value of the electromagnetic valve coil for controlling a target electromagnetic valve in the working circuit to be opened or closed;
and the working opening module is used for controlling the detection circuit to be in a closed state when the first detection voltage is greater than the reference voltage, and controlling the working circuit to be in an open state based on the first power supply voltage so as to control the target electromagnetic valve to be opened or closed through an electromagnetic valve coil in the working circuit.
8. An electronic device, comprising a processor and a memory, wherein at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded by the processor and executed to implement the solenoid valve control method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that at least one instruction or at least one program is stored in the computer-readable storage medium, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the solenoid valve control method according to any one of claims 1 to 6.
10. A computer program comprising a computer program, wherein the computer program is executed by a processor to implement the solenoid valve control method according to any one of claims 1 to 6.
CN202211449476.4A 2022-11-18 2022-11-18 Electromagnetic valve control method and device, electronic equipment and storage medium Pending CN115729146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211449476.4A CN115729146A (en) 2022-11-18 2022-11-18 Electromagnetic valve control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211449476.4A CN115729146A (en) 2022-11-18 2022-11-18 Electromagnetic valve control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115729146A true CN115729146A (en) 2023-03-03

Family

ID=85297264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211449476.4A Pending CN115729146A (en) 2022-11-18 2022-11-18 Electromagnetic valve control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115729146A (en)

Similar Documents

Publication Publication Date Title
CN103378771B (en) Motor drive control apparatus
US11476791B2 (en) Motor control device, motor control method, and storage medium
CN110667429B (en) Over-temperature protection device, over-temperature protection method, computer device, and storage medium
US9571026B2 (en) Inverter apparatus
US20160211740A1 (en) voltage surge protection for active rectifiers in the event of load shedding
CN110263590B (en) Vehicle-mounted ECU and safety protection method thereof
US20180026473A1 (en) Method for operating an active converter connected to an electric machine and means for the implementation thereof
CN112350288B (en) Communication terminal for hot plug controller
EP3051368B1 (en) Drive device
CN109450012A (en) Voltage adjusting method, device and the vehicle of direct current transducer DCDC
CN105717972A (en) Semiconductor device and current limiting method
JP2016222187A (en) Electronic control device
US20210019139A1 (en) Blocking and unblocking mechanism for software updates for a controller
CN115729146A (en) Electromagnetic valve control method and device, electronic equipment and storage medium
CN114704934A (en) Method and device for controlling direct current air conditioner and direct current air conditioner
CN110445090B (en) POS terminal cashbox and protection circuit thereof
KR102053991B1 (en) Self-diagnosing watchdog monitoring system
CN114301029B (en) Method and related device for judging short circuit position in charging circuit
EP3489068A1 (en) Vehicle power conversion device and rail vehicle
CN112060909A (en) Vehicle control method and system based on insulation detection
CN113765182A (en) Electric shock prevention control method, electric shock prevention control circuit, electric shock prevention control device, medium, charging device and vehicle
JP2020019448A (en) Fault notification program for arithmetic processing unit, and heater system
CN110065458A (en) As the reaction to activation signal by the method for circuit device activation computing unit
US10291012B2 (en) High side output driver
KR20190013477A (en) Watchdog monitoring system that utilizes a disable application to monitor operation of an enable application

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