A solenoid valve control method, device, electronic equipment and storage medium
By detecting the resistance value of the solenoid valve coil and controlling the opening state of the solenoid valve, the braking instability problem caused by the increase in coil impedance is solved, and the stability and reliability of the automobile brake system are improved.
Patent Information
- Application Number
- CN202211449476.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-18
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-11-18
AI Technical Summary
In an electronic hydraulic braking system, high coil temperature leads to an increase in impedance, insufficient on-energy current, and the solenoid valve cannot be effectively controlled, resulting in instability in the car's braking.
By detecting the resistance value of the solenoid valve coil, using the detection resistor to connect it in series with the solenoid valve coil, determine whether it exceeds the maximum resistance based on the system power supply voltage and the voltage of the detection resistor, control the opening state of the solenoid valve to ensure that the electromagnetic force is sufficient to achieve braking control .
It improves the stability and reliability of the automobile brake system, prevents abnormal working conditions caused by insufficient current, widens the coil control working range, and improves the stability and robustness of the system.
Smart Images

Figure CN115729146B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile braking, and in particular to a solenoid valve control method, device, electronic equipment and storage medium. Background Art
[0002] Braking stability and reliability are the guarantee of safe driving of automobiles. Automobile braking has gradually developed from mechanical-vacuum pump type to a more integrated electronic hydraulic braking solution, which requires controlling the switch of the hydraulic circuit. The switch of the hydraulic circuit needs to be controlled by the opening or closing of the solenoid valve. In the electronic hydraulic braking system, the electronic control unit receives and executes software instructions to control the power on and off of the solenoid valve coil. According to the law of electromagnetic induction, the energized coil generates a magnetic field, which causes the solenoid valve to open and close, thereby controlling the hydraulic circuit.
[0003] There are two key factors that affect the opening or closing of the solenoid valve. One is the external load of the solenoid valve, and the other is the electromagnetic force generated by the coil that cooperates with the solenoid valve. After the structural data design is frozen, the electromagnetic force generated between the coil and the solenoid valve is determined by the coil current. The electronic hydraulic brake system works in a harsh automotive environment. The system power supply voltage, operating temperature, and electronic control unit impedance all have a significant impact on the coil current. Among them, the system power supply voltage is provided by the automotive power supply system, the electronic control unit impedance is determined by the components and the printed circuit board routing, and the operating temperature affects the coil current by affecting the coil impedance. The higher the operating temperature, the greater the coil impedance. In the current mainstream braking control method, only the supply voltage is used as the only variable to determine whether the solenoid valve can be opened and closed, ignoring the influence of the operating temperature on the coil impedance. When the supply voltage meets the requirements, due to the high coil temperature and large coil impedance, the current flowing in the coil cannot provide the electromagnetic force to control the opening or closing of the solenoid valve, resulting in instability of the vehicle braking. Summary of the invention
[0004] In order to solve the problems of the prior art, the embodiments of the present application provide a solenoid valve control method, device, electronic device and storage medium. The technical solution is as follows:
[0005] In one aspect, a solenoid valve control method is provided, the method comprising:
[0006] Determine the first power supply voltage of the working circuit where the solenoid valve coil is located and the second power supply voltage of the detection circuit based on the system power supply voltage; the detection circuit is composed of the solenoid valve coil and the detection resistor in series;
[0007] Based on the second power supply voltage, the detection circuit is controlled to be in an on state, and the voltage of the detection resistor in the detection circuit is obtained to obtain a first detection voltage;
[0008] Obtaining a reference voltage of the detection resistor in the detection circuit; the reference voltage is the voltage of the detection resistor when the resistance of the solenoid valve coil in the detection circuit is a reference resistance; the reference resistance is the maximum resistance of the solenoid valve coil controlling the target solenoid valve in the working circuit to open or close;
[0009] When the first detection voltage is greater than the reference voltage, the detection circuit is controlled to be in a closed state, and the working circuit is controlled to be in an open state based on the first power supply voltage, so as to control the target solenoid valve to be opened or closed through the solenoid valve coil in the working circuit.
[0010] On the other hand, a solenoid valve control device is provided, the device comprising:
[0011] A voltage determination module, used to determine a first power supply voltage of a working circuit where the 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 composed of the solenoid valve coil and a detection resistor connected in series;
[0012] A detection start-up module, used for controlling the detection circuit to be in an on state based on the second power supply voltage, acquiring the voltage of the detection resistor in the detection circuit, and obtaining a first detection voltage;
[0013] A reference voltage module, used 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 of the solenoid valve coil in the detection circuit is a reference resistance; the reference resistance is the maximum resistance of the solenoid valve coil to control the target solenoid valve in the working circuit to open or close;
[0014] A working start module is used to control the detection circuit to be in a closed state when the first detection voltage is greater than the reference voltage, and to control the working circuit to be in an open state based on the first power supply voltage, so as to control the target solenoid valve to be opened or closed through the solenoid valve coil in the working circuit.
[0015] In an exemplary embodiment, the apparatus comprises a reference determination module for calculating a reference voltage of a detection resistor in a detection circuit, the reference determination module comprising:
[0016] A reference data acquisition module, used to acquire a reference current and a resistance value of the detection resistor; the reference current is a minimum current for the solenoid valve coil to control the target solenoid valve to open or close;
[0017] A reference resistance determination module, configured to determine the reference resistance based on the first power supply voltage and the reference current;
[0018] A reference voltage determination module is used to determine 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.
[0019] In an exemplary embodiment, the voltage determination module includes:
[0020] Obtaining the system power supply voltage;
[0021] determining the first power supply voltage based on the system power supply voltage;
[0022] Control the power modulator to be in the on state;
[0023] The first power supply voltage is input to the power supply modulator, and the second power supply voltage is obtained based on the output of the power supply modulator.
[0024] In an exemplary embodiment, the device includes a work shut-down module for protecting a solenoid valve coil work circuit before the solenoid valve coil is tested, the work shut-down module including:
[0025] The working closing module is used to control the working circuit to be in a closed state.
[0026] In an exemplary embodiment, the device includes a circuit verification module for verifying whether the detection circuit of the solenoid valve coil is closed after the detection of the solenoid valve coil is completed, and the circuit verification module includes:
[0027] A voltage acquisition module, used to acquire the voltage of the detection resistor in the detection circuit to obtain a second detection voltage;
[0028] A voltage verification module, used to verify whether the second detection voltage is within a preset low voltage range, and obtain a verification result;
[0029] The first fault module is used to generate fault alarm information based on the verification result when the verification result indicates failure.
[0030] In an exemplary embodiment, the device includes a second fault module for generating fault information when it is detected that the current flowing through the coil in the working circuit cannot provide the electromagnetic force for controlling the opening or closing of the electromagnetic valve, and the second fault module includes:
[0031] The second fault module is used to generate fault alarm information when the first detection voltage is less than or equal to the reference voltage.
[0032] On the other hand, an electronic device is provided, comprising a processor and a memory, wherein 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 the solenoid valve control method of any of the above aspects.
[0033] On the other hand, 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 is loaded and executed by a processor to implement the solenoid valve control method as described in any of the above aspects.
[0034] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the solenoid valve control method of any aspect above.
[0035] The embodiment of the present application connects a detection resistor in series before opening the working circuit of the solenoid valve coil, and determines whether the resistance of the solenoid valve coil exceeds the maximum resistance of the solenoid valve coil allowed by controlling the solenoid valve switch by detecting the voltage of the resistor. When it is determined that the resistance of the solenoid valve coil does not exceed the maximum resistance and the solenoid valve switch can be controlled, the working circuit of the coil is opened, thereby improving the stability and reliability of the automobile braking system and preventing abnormal operating conditions caused by the inability to open or close the solenoid valve due to the small coil power-on current when the coil is normally energized and there is no fault. The maximum resistance allowed by the solenoid valve coil for controlling the solenoid valve switch is determined based on the power supply voltage and the minimum current required for the solenoid valve coil to control the solenoid valve switch. Therefore, the judgment condition of the solenoid valve coil resistance can be adjusted according to the power supply voltage, the protection circuit can be adaptively diagnosed, the coil control working range of the automobile braking system can be widened, and the stability and robustness can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0037] Figure 1 It is a flow chart of a solenoid valve control method provided in an embodiment of the present application;
[0038] Figure 2 It is a schematic diagram of a solenoid valve coil detection and hardware adaptive protection circuit provided in an embodiment of the present application;
[0039] Figure 3 It is a flowchart of a reference voltage calculation method provided in an embodiment of the present application;
[0040] Figure 4 It is a flow chart of a detection circuit verification provided by an embodiment of the present application;
[0041] Figure 5 It is a structural block diagram of a solenoid valve control device provided in an embodiment of the present application;
[0042] Figure 6 It is a hardware structure block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0044] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0045] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0046] See also Figure 1, which shows a flow chart of a solenoid valve control method provided in an embodiment of the present application. The method can be applied to an electronic device, which can be a controller on a vehicle. It should be noted that this specification provides method operation steps as described in the embodiments or flow charts, but may include more or fewer operation steps based on conventional or non-creative labor. The sequence of steps listed in the embodiments is only one way of executing the steps among many sequences, and does not represent the only execution sequence. When the system or product is executed in practice, it can be executed sequentially or in parallel according to the method shown in the embodiments or drawings (for example, in a parallel processor or multi-threaded processing environment). Specifically, Figure 1 As shown, the method may include:
[0047] 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.
[0048] The detection circuit is composed of a solenoid valve coil and a detection resistor in series, and the resistance of the solenoid valve coil is detected using the voltage division principle.
[0049] The system power supply voltage is the power supply voltage of the electronic hydraulic brake system used for vehicle braking.
[0050] Among them, the solenoid valve coil is a coil that controls the opening or closing of the target solenoid valve. When the solenoid valve coil is energized, it generates a magnetic field, causing the solenoid valve to open or close, thereby realizing the switch control of the hydraulic circuit in the electronic hydraulic brake system.
[0051] Among them, the working circuit is a circuit in which the solenoid valve coil generates a magnetic field and controls the target solenoid valve.
[0052] The first power supply voltage is a power supply voltage supplied to the solenoid valve coil of the electronic hydraulic brake system to control the target solenoid valve.
[0053] The second power supply voltage is a stable detection voltage output by the first power supply voltage via the power supply modulator, and is used as the power supply voltage when the detection circuit detects the resistance value of the solenoid valve coil. Figure 2 As shown, it is a schematic diagram of the solenoid valve coil detection and hardware adaptive protection circuit, Vbat is the external power supply for powering the electronic control unit, VDD1 is the internal power supply for powering the internal circuit, GND is grounded and is the negative pole of the power supply; when the electronic hydraulic brake system is powered on, Vbat is energized and is the power supply for the working circuit of the solenoid valve coil, and VDD1 is energized, and the voltage of Vbat is input into the power modulator, and the output of the power modulator is the voltage of the solenoid valve coil detection circuit.
[0054] In an exemplary embodiment, the above step S101 may include the following steps:
[0055] Obtaining the system power supply voltage;
[0056] determining the first power supply voltage based on the system power supply voltage;
[0057] Control the power modulator to be in the on state;
[0058] The first power supply voltage is input to the power supply modulator, and the second power supply voltage is obtained based on the output of the power supply modulator.
[0059] The system power supply voltage is the power supply voltage of the electronic hydraulic brake system.
[0060] The first power supply voltage is the power supply voltage of the electronic hydraulic brake system power supply solenoid valve coil to control the target solenoid valve. Figure 2 As shown, it 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 is energized, and the Vbat voltage is the first power supply voltage, which supplies power to the working circuit of the solenoid valve coil.
[0061] The power modulator can maintain a stable output voltage to provide a stable voltage for the detection circuit.
[0062] The second power supply voltage is the power supply voltage of the electromagnetic valve detection circuit. Figure 2 As shown, turn on the power modulator, and use Vbat as the power modulator input. The output Vpre of the power modulator is the detection circuit power supply. The voltage of Vpre is the second power supply voltage, which supplies power to the detection circuit of the solenoid valve coil.
[0063] It can be seen from the above technical solutions of the embodiment of the present application that the embodiment of the present application determines the power supply voltage of the solenoid valve coil working circuit and the power supply voltage of the detection circuit through the power supply voltage of the electronic hydraulic brake system, and maintains the stability of the detection circuit voltage through the power supply modulator, so that the detection of the solenoid valve coil resistance is more accurate.
[0064] In an exemplary embodiment, before the above step of controlling the power modulator to be in the on state, the following steps may be included:
[0065] The working circuit is controlled to be in a closed state.
[0066] Specifically, Figure 2As shown in the figure, it is a schematic diagram of the solenoid valve coil detection and hardware adaptive protection circuit. In the figure, the interface type of the MCU (Microcontroller Unit) communication input is SPI (SDH Physical Interface, SDH (Synchronous Digital Hierarchy) physical interface) or IIC (Inter-Integrated Circuit) or I / O (Input / Output), which is used to convert digital quantity into analog quantity; MCU_I / O1, MCU_I / O2, MCU_I / O3, MCU_I / O4, MCU_I / O5 are single-chip microcomputer I / O drivers, and MCU_I / O6 is single-chip microcomputer I / O acquisition; Q1, Q2, Q8, Q10 are NPN transistors, and Q4, Q5, Q6 are MOS transistors (Metal-Oxide-Semiconductor Field-Effect Transistor, metal-oxide semiconductor field effect transistor), Q7 and Q9 are PNP type triodes; turning on Q1 can prohibit Q2 from turning on, turning on Q2 can prohibit Q4 from turning on, Q4 is the coil control safety switch, Q5 is the coil control low-side switch, Q6 is the coil detection low-side isolation switch, Q7 is the coil detection high-side power switch, Q8 controls Q7 to turn on or off, Q9 is the comparator positive input switch, and Q10 controls Q9 to turn on or off; R3 is the current limiting resistor of Q6 control end, R4 is the comparator input resistor, R5 is the comparator output current limiting resistor, R6 is the pull-up resistor of the comparator output, R7 is the current limiting resistor of the Q8 control end, R8 is the current limiting resistor of the Q7 control end, R11 is the pull-down resistor of the Q1 control end, R12 is the current limiting circuit of the Q1 control end, R13 is the current limiting resistor of the Q9 control end, R14 is the current limiting resistor of the Q10 control end, R15 is the pull-down resistor of the comparator positive input, Rs is the coil resistance, and Rr is the detection resistor; the comparator is a voltage comparator. When the solenoid valve coil resistance is detected, the negative input end is compared with the reference voltage. When the Uin voltage is greater than Uref, the output is low level, and when Uin is less than Uref, the output is high level.Initialize MCU_I / O1, MCU_I / O2, MCU_I / O3, MCU_I / O4, and MCU_I / O5 to low level, and initialize MCU_I / O6 to high level. Initialize the D / A conversion (digital signals / analog signals) through the MCU communication input to output a voltage value of VDD1 as the comparator reference voltage Uref. At this time, the power modulator does not work, Q1, Q6, Q8, and Q10 are all in the off state, so that Q7 and Q9 are turned off, and the negative input of the comparator is pulled to a low level through R4 and R15. The comparator input voltage Uin is less than the reference voltage Uref, so the comparator output is high level, Q2 is turned on, and the coil control safety switch Q4 is turned on and prohibited by Q2. The solenoid valve coil working circuit is in the off state, and the coil control is protected at the first level.
[0067] It can be seen from the above technical scheme of the embodiment of the present application that the embodiment of the present application initializes the working circuit of the solenoid valve coil through the single-chip microcomputer to be in a closed state, thereby ensuring that the working circuit of the solenoid valve coil is in a closed state when the solenoid valve coil is detected, thereby protecting the coil control.
[0068] S103: Control the detection circuit to be in an on state based on the second power supply voltage, obtain the voltage of the detection resistor in the detection circuit, and obtain a first detection voltage.
[0069] Among them, the detection resistor is a fixed value resistor, which is connected in series with the solenoid valve coil in the detection circuit. The detection resistor and the solenoid valve coil divide the voltage, so that the resistance value of the solenoid valve coil can be observed by the voltage of the detection resistor.
[0070] In specific implementation, Figure 2 As shown, it is a schematic diagram of the solenoid valve coil detection and hardware adaptive protection circuit. The single chip microcomputer sets MCU_I / O3 high to make the power modulator output voltage Vpre. The single chip microcomputer sets MCU_I / O1 high to turn on Q8, thereby turning on Q7. Vpre supplies power to the high end of the solenoid valve coil through Q7. The single chip microcomputer sets MCU_I / O2 high to turn on Q6. The coil detection low side isolation switch is turned on. Vpre provides current to the solenoid valve coil through Q7, Rs, Rr, and Q6. The detection circuit is in the on state. At this time, the voltage on the upper end of Rr is Urru, which is the first detection voltage.
[0071] S105, obtaining a reference voltage of the detection resistor in the detection circuit.
[0072] The reference voltage is the voltage of the detection resistor when the resistance of the solenoid valve coil in the detection circuit is the reference resistance.
[0073] The reference resistance is the maximum resistance of the target solenoid valve in the solenoid valve coil control working circuit when it is opened or closed.
[0074] Specifically, when the working circuit current is the minimum current required for the solenoid valve coil to control the target solenoid valve to open or close, the resistance of the solenoid valve coil is the reference resistance. As the temperature of the solenoid valve coil rises, the resistance increases. When the resistance of the solenoid valve coil exceeds the reference resistance, in the detection circuit, according to the series voltage division principle, the voltage of the detection resistor will be less than the reference resistance. At this time, the current flowing through the solenoid valve coil in the working circuit is not enough to make the solenoid valve coil generate electromagnetic force to control the opening or closing of the solenoid valve. Therefore, the reference voltage is the minimum voltage of the detection resistor when the solenoid valve coil passes the detection.
[0075] In an exemplary embodiment, before the step S105 acquires the reference voltage, Figure 3 FIG. 1 is a flow chart of a reference voltage calculation method. The reference voltage calculation method may include the following steps:
[0076] S301, obtaining a reference current and a resistance value of the detection resistor.
[0077] The reference current is the minimum current for the solenoid valve coil to control the target solenoid valve to open or close.
[0078] Specifically, the reference current is affected by the ambient temperature, the pressure difference of the solenoid valve, the characteristics of the brake fluid, etc. In a specific implementation, the reference current can be directly obtained by querying.
[0079] Among them, the detection resistor is a fixed value resistor, and its resistance value can be directly obtained.
[0080] S303: Determine the reference resistance based on the first power supply voltage and the reference current.
[0081] The first power supply voltage is the power supply voltage of the solenoid valve coil working circuit.
[0082] The reference current is the minimum current required for the solenoid valve coil to control the solenoid valve to open or close.
[0083] The reference resistance is the maximum resistance allowed by the solenoid valve coil to control the opening or closing of the solenoid valve, which is the ratio of the first power supply voltage to the reference current. The calculation formula of the reference resistance is shown in formula (1):
[0084] Rsmax=Vbat / Io (1)
[0085] Among them, Rsmax is the reference resistance, Vbat is the first power supply voltage, and Io is the reference current.
[0086] S305: Determine 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.
[0087] The second power supply voltage is the power supply voltage of the detection circuit.
[0088] Among them, the detection resistor and the solenoid valve coil are connected in series to form a detection circuit.
[0089] The reference voltage is the voltage of the detection resistor when the resistance of the solenoid valve coil is the reference resistance in the detection circuit. Specifically, according to the series voltage division principle, the solenoid valve coil and the detection resistor divide the voltage, and the calculation formula of the reference voltage is shown in formula (2):
[0090] Uref=(Rr / (Vbat / Io+Rr))*Vpre (2)
[0091] Among them, Uref is the reference voltage, Rr is the resistance of the detection resistor, Vbat / Io is the reference resistance, and Vpre is the second power supply voltage.
[0092] It can be seen from the above technical scheme of the embodiment of the present application that when the resistance of the solenoid valve coil is calculated as the maximum resistance of the target solenoid valve in the solenoid valve coil control working circuit to open or close, the voltage of the detection resistor in the detection circuit is detected and determined as the reference voltage. When the resistance of the solenoid valve coil is subsequently detected, it is only necessary to compare the voltage of the detection resistor with the reference voltage to determine whether the current flowing through the solenoid valve coil is sufficient to make the solenoid valve coil generate an electromagnetic force to control the opening or closing of the solenoid valve. The judgment conditions of the coil resistance can be adjusted according to the power supply voltage, thereby broadening the coil control working range of the electronic hydraulic brake system and improving stability and robustness.
[0093] S107, determining whether the first detection voltage is greater than the reference voltage.
[0094] Specifically, if the result of the judgment is yes, step S109 can be executed; otherwise, if the result of the judgment is no, step S1011 can be executed.
[0095] The first detection voltage is the actual voltage of the detection resistor in the detection circuit.
[0096] Specifically, if the actual voltage of the detection resistor is greater than the reference voltage, the resistance of the solenoid valve coil is less than the reference resistance, and the current flowing through the solenoid valve coil after the working circuit is opened is greater than the reference current. The solenoid valve coil can control the opening or closing of the solenoid valve. Therefore, the working circuit of the solenoid valve coil can be opened; if the actual voltage of the detection resistor is less than the reference voltage, the resistance of the solenoid valve coil is greater than the reference resistance, and the current flowing through the solenoid valve coil after the working circuit is opened is less than the reference current. The electromagnetic force generated by the solenoid valve coil is insufficient to control the opening or closing of the solenoid valve. Therefore, it is prohibited to open the working circuit of the solenoid valve coil, and a fault alarm message is generated.
[0097] In specific implementation, Figure 2 As shown in the figure, it is a schematic diagram of the solenoid valve coil detection and hardware adaptive protection circuit. The single chip computer sets MCU_I / O5 high, Q10 is turned on, and thus Q9 is turned on. The voltage Urru of Rr is input to the negative input terminal of the comparator, that is, Uin=Urru; according to the required comparator reference voltage Uref calculated, the MCU communication input communicates with the D / A conversion chip, so that the D / A conversion chip outputs the voltage value Uref to the positive input terminal of the comparator. If the voltage Uin at the negative input terminal of the comparator is greater than the voltage Uref at the positive input terminal of the comparator, the comparator output is a low level, indicating that the solenoid valve coil resistance is less than the reference resistance Rsmax at this time; if the voltage Uin at the negative input terminal of the comparator is less than or equal to the voltage Uref at the positive input terminal of the comparator, the comparator output is a high level, indicating that the solenoid valve coil resistance exceeds the reference resistance Rsmax at this time.
[0098] 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 solenoid valve to be opened or closed through the solenoid valve coil in the working circuit.
[0099] Specifically, when the actual voltage of the detection resistor is greater than the reference voltage, the resistance of the solenoid valve coil is less than the reference resistance. After the working circuit is opened, the current flowing through the solenoid valve coil is greater than the reference current. The solenoid valve coil can control the solenoid valve to open or close. Therefore, the detection circuit is closed, the working circuit of the solenoid valve coil is opened, and the solenoid valve coil controls the solenoid valve to open or close.
[0100] In specific implementation, Figure 2 As shown in the figure, it is a schematic diagram of the solenoid valve coil detection and hardware adaptive protection circuit. When the voltage Uin at the negative input terminal of the comparator is greater than the voltage Uref at the positive input terminal of the comparator, the comparator output is a low level, so that Q2 is turned off, and Q4 can be controlled normally, that is, the working circuit of the solenoid valve coil can be opened; the single chip microcomputer sets MCU_I / O1, MCU_I / O2, MCU_I / O3, and MCU_I / O5 to low to turn off the detection circuit.
[0101] In an exemplary embodiment, after the detection circuit is controlled to be in a closed state in step S109, Figure 4 As shown, it is a schematic diagram of the flow of detection circuit verification, which may include the following steps:
[0102] S401, acquiring the voltage of the detection resistor in the detection circuit to obtain a second detection voltage;
[0103] The second detection voltage is the voltage of the detection resistor when the detection circuit is in the off state, and is used to verify whether the detection circuit is off. Specifically, after the detection circuit is off, the ideal value of the detection resistor voltage is zero.
[0104] S403, verifying whether the second detection voltage is within a preset low voltage range.
[0105] Specifically, if the result of the verification is yes, the remaining part of step S109 can be executed; otherwise, if the result of the verification is no, step S405 can be executed.
[0106] The preset low voltage range is the voltage value range of the detection resistor when the detection circuit is in a closed state.
[0107] Specifically, after the detection circuit is closed, if the voltage of the detection resistor is within the preset low voltage range, the working circuit of the solenoid valve coil is controlled to be in the open state, and the solenoid valve coil controls the opening or closing of the solenoid valve; if the voltage of the detection resistor is not within the preset low voltage range, a fault alarm message is generated to prohibit the working circuit of the solenoid valve coil from opening.
[0108] In specific implementation, Figure 2As shown in the figure, it is a schematic diagram of the solenoid valve coil detection and hardware adaptive protection circuit. After the single chip microcomputer sets MCU_I / O1, MCU_I / O2, MCU_I / O3, and MCU_I / O5 to low, the negative input terminal Uin of the comparator is the voltage of Rr, and the positive input terminal of the comparator is the reference voltage Uref. If the comparator output is high level, the negative input terminal voltage Uin of the comparator is less than the positive input terminal voltage Uref of the comparator, then the voltage of Rr is within the preset low voltage range, the detection circuit is confirmed to be closed, the single chip microcomputer sets MCU_I / O4 to high, and Q1 is turned on , Q2 is closed, at this time Q4 can be opened, when Q4 is opened, Q5 is opened, the solenoid valve coil working circuit is in the open state, and the solenoid valve coil controls the opening or closing of the solenoid valve; if the comparator output is low level, the voltage Uin of the negative input terminal of the comparator is greater than or equal to the voltage Uref of the positive input terminal of the comparator, then the voltage of Rr is not within the preset low voltage range, the detection circuit fails to close, MCU_I / O4 remains low, Q1 remains closed, Q2 remains open, at this time Q4 is prohibited from opening, the solenoid valve coil working circuit is prohibited from opening, and a fault alarm message is generated. Specifically, the single chip computer identifies whether the current output state of the comparator is high level through MCU_I / O6.
[0109] S405: Generate fault alarm information based on the verification result.
[0110] Specifically, after the detection circuit is closed, when the voltage of the detection resistor is not within a preset low voltage range, a fault alarm message is generated to prohibit the working circuit of the solenoid valve coil from opening.
[0111] In specific implementation, Figure 2 As shown in the figure, it is a schematic diagram of the solenoid valve coil detection and hardware adaptive protection circuit. After the single chip microcomputer sets MCU_I / O1, MCU_I / O2, MCU_I / O3, and MCU_I / O5 to low, if the comparator output is low, the voltage Uin of the negative input terminal of the comparator is greater than or equal to the voltage Uref of the positive input terminal of the comparator, then the voltage of Rr is not within the preset low voltage range, the detection circuit fails to shut down, MCU_I / O4 remains low, Q1 remains closed, and Q2 remains open. At this time, Q4 is prohibited from opening, the solenoid valve coil working circuit is prohibited from opening, and a fault alarm message is generated.
[0112] It can be seen from the above technical scheme of the embodiment of the present application that the embodiment of the present application verifies whether the detection circuit is closed by detecting the voltage of the resistor, thereby ensuring that the detection circuit is in a closed state when the working circuit of the solenoid valve coil is turned on, so that the solenoid valve coil can work normally.
[0113] S1011, generating fault alarm information.
[0114] Specifically, when the actual voltage of the detection resistor is less than or equal to the reference voltage, the resistance of the solenoid valve coil is greater than the reference resistance. 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 opening or closing of the solenoid valve. Therefore, it is prohibited to open the working circuit of the solenoid valve coil, and a fault alarm message is generated.
[0115] In specific implementation, Figure 2 As shown in the figure, it is a schematic diagram of the solenoid valve coil detection and hardware adaptive protection circuit. When the voltage Uin at the negative input terminal of the comparator is less than or equal to the voltage Uref at the positive input terminal of the comparator, the comparator outputs a low level. The comparator outputs a high level, so that Q2 remains open and Q4 is prohibited from opening. The coil control is protected at the second level. By detecting that the state of MCU_I / O6 is high, a fault code is reported and the fault is handled.
[0116] It can be seen from the above technical scheme of the embodiment of the present application that the embodiment of the present application connects a detection resistor in series before opening the working circuit of the solenoid valve coil, and determines whether the resistance of the solenoid valve coil exceeds the maximum resistance of the solenoid valve coil allowed to open the solenoid valve by detecting the voltage of the resistor. When it is determined that the resistance of the solenoid valve coil does not exceed the maximum resistance and can control the switch of the solenoid valve, the working circuit of the coil is opened, thereby improving the stability and reliability of the automobile braking system and preventing abnormal operating conditions caused by the inability to open or close the solenoid valve due to the small coil power-on current when the coil is normally energized and there is no fault.
[0117] Corresponding to the solenoid valve control methods provided in the above-mentioned embodiments, the embodiment of the present application also provides a solenoid valve control device. Since the solenoid valve control device provided in the embodiment of the present application corresponds to the solenoid valve control methods provided in the above-mentioned embodiments, the implementation method of the aforementioned solenoid valve control method is also applicable to the solenoid valve control device provided in this embodiment and will not be described in detail in this embodiment.
[0118] See also Figure 5 , which is a schematic diagram of the structure of a solenoid valve control device provided in an embodiment of the present application, the device has the function of implementing the solenoid valve control method in the above method embodiment, and the function can be implemented by hardware or by hardware executing corresponding software. Figure 5 As shown, the device may include:
[0119] A voltage determination module 510 is used to determine a first power supply voltage of a working circuit where the 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 composed of the solenoid valve coil and a detection resistor connected in series;
[0120] A detection start-up module 520, configured to control the detection circuit to be in an on state based on the second power supply voltage, obtain the voltage of the detection resistor in the detection circuit, and obtain a first detection voltage;
[0121] A reference voltage module 530 is used 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 of the solenoid valve coil in the detection circuit is a reference resistance; the reference resistance is the maximum resistance of the solenoid valve coil controlling the target solenoid valve in the working circuit to open or close;
[0122] The working start module 540 is used to control the detection circuit to be in a closed state when the first detection voltage is greater than the reference voltage, and to control the working circuit to be in an open state based on the first power supply voltage, so as to control the target solenoid valve to be opened or closed through the solenoid valve coil in the working circuit.
[0123] In an exemplary embodiment, the apparatus comprises a reference determination module for calculating a reference voltage of a detection resistor in a detection circuit, the reference determination module comprising:
[0124] A reference data acquisition module, used to acquire a reference current and a resistance value of the detection resistor; the reference current is a minimum current for the solenoid valve coil to control the target solenoid valve to open or close;
[0125] A reference resistance determination module, configured to determine the reference resistance based on the first power supply voltage and the reference current;
[0126] A reference voltage determination module is used to determine 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.
[0127] In an exemplary embodiment, the voltage determination module includes:
[0128] Obtaining the system power supply voltage;
[0129] determining the first power supply voltage based on the system power supply voltage;
[0130] Control the power modulator to be in the on state;
[0131] The first power supply voltage is input to the power supply modulator, and the second power supply voltage is obtained based on the output of the power supply modulator.
[0132] In an exemplary embodiment, the device includes a work shut-down module for protecting a solenoid valve coil work circuit before the solenoid valve coil is tested, the work shut-down module including:
[0133] The working closing module is used to control the working circuit to be in a closed state.
[0134] In an exemplary embodiment, the device includes a circuit verification module for verifying whether the detection circuit of the solenoid valve coil is closed after the detection of the solenoid valve coil is completed, and the circuit verification module includes:
[0135] A voltage acquisition module, used to acquire the voltage of the detection resistor in the detection circuit to obtain a second detection voltage;
[0136] A voltage verification module, used to verify whether the second detection voltage is within a preset low voltage range, and obtain a verification result;
[0137] The first fault module is used to generate fault alarm information based on the verification result when the verification result indicates failure.
[0138] In an exemplary embodiment, the device includes a second fault module for generating fault information when it is detected that the current flowing through the coil in the working circuit cannot provide the electromagnetic force for controlling the opening or closing of the electromagnetic valve, and the second fault module includes:
[0139] The second fault module is used to generate fault alarm information when the first detection voltage is less than or equal to the reference voltage.
[0140] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0141] An embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein 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.
[0142] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the device, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.
[0143] 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 above-mentioned electronic device may include a computer terminal, a server or a similar computing device. Figure 6 is a hardware structure block diagram of a computer device for running a solenoid valve control method provided by an embodiment of the present invention, such as Figure 6 As shown, 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 via a bus or other means. In the embodiment of this specification, FIG. xx takes the bus connection as an example.
[0144] Among them, the processor (or CPU (Central Processing Unit)) is the computing core and control core of the computer device. The network interface may optionally include a standard wired interface, a wireless interface (such as WI-FI, a mobile communication interface, etc.). Memory is a memory device in a computer device for storing programs and data. It is understandable that the memory here can be a high-speed RAM storage device or a non-volatile memory device (non-volatile memory), such as at least one disk storage device; optionally, it can also be at least one storage device located away from the aforementioned processor. The memory provides a storage space, which stores the operating system of the electronic device, which may include but is not limited to: Windows system (an operating system), Linux (an operating system), Android (Android, a mobile operating system) system, IOS (a mobile operating system) system, etc., and the present invention does not limit this; and, in the storage space, one or more instructions suitable for being loaded and executed by the processor are also stored, and these instructions can be one or more computer programs (including program codes). In the embodiment of this specification, 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.
[0145] An embodiment of the present application also provides a computer-readable storage medium, which can be set in an electronic device to store at least one instruction or at least one program related to implementing a solenoid valve control method. 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.
[0146] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0147] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0148] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0149] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0150] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A solenoid valve control method, characterized in that: The method comprises: Determine the first power supply voltage of the working circuit where the solenoid valve coil is located and the second power supply voltage of the detection circuit based on the system power supply voltage; the detection circuit is composed of the solenoid valve coil and the detection resistor in series; Based on the second power supply voltage, the detection circuit is controlled to be in an on state, and the voltage of the detection resistor in the detection circuit is obtained to obtain a first detection voltage; Obtaining a reference voltage of the detection resistor in the detection circuit; the reference voltage is the voltage of the detection resistor when the resistance of the solenoid valve coil in the detection circuit is a reference resistance; the reference resistance is the maximum resistance of the solenoid valve coil controlling the target solenoid valve in the working circuit to open or close; When the first detection voltage is greater than the reference voltage, the detection circuit is controlled to be in a closed state, and the working circuit is controlled to be in an open state based on the first power supply voltage, so as to control the target solenoid valve to be opened or closed through the solenoid valve coil in the working circuit; 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, and obtaining a verification result; In the case where the verification result indicates failure, fault alarm information is generated based on the verification result.
2. The solenoid valve control method according to claim 1, characterized in that: Before obtaining the reference voltage of the detection resistor in the detection circuit, the method further includes: Obtaining a reference current and a resistance value of the detection resistor; the reference current is a minimum current for the solenoid valve coil to control the target solenoid valve to open or close; Determining the reference resistance based on the first power supply voltage and the reference current; Based on the second power supply voltage and the reference resistance value, the voltage of the detection resistor in the detection circuit is determined to obtain the reference voltage.
3. The solenoid valve control method according to claim 1, characterized in that: The method of determining the first power supply voltage of the working circuit where the solenoid valve coil is located and the second power supply voltage of the detection circuit based on the system power supply voltage includes: Obtaining the system power supply voltage; determining the first power supply voltage based on the system power supply voltage; Control the power modulator to be in the on state; The first power supply voltage is input to the power supply modulator, and the second power supply voltage is obtained based on the output of the power supply modulator.
4. The solenoid valve control method according to claim 3, characterized in that: Before the control power modulator is in the on state, the method further includes: The working circuit is controlled to be in a closed state.
5. The solenoid valve control method according to any one of claims 1 to 4, characterized in that: The method further comprises: When the first detection voltage is less than or equal to the reference voltage, fault alarm information is generated.
6. A solenoid valve control device, characterized in that: The device comprises: A voltage determination module, used to determine a first power supply voltage of a working circuit where the 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 composed of the solenoid valve coil and a detection resistor connected in series; A detection start-up module, used for controlling the detection circuit to be in an on state based on the second power supply voltage, acquiring the voltage of the detection resistor in the detection circuit, and obtaining a first detection voltage; A reference voltage module, used 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 of the solenoid valve coil in the detection circuit is a reference resistance; the reference resistance is the maximum resistance of the solenoid valve coil to control the target solenoid valve in the working circuit to open or close; a working start module, 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 supply voltage, so as to control the target solenoid valve to be opened or closed through the solenoid valve coil in the working circuit; A voltage acquisition module, used to acquire the voltage of the detection resistor in the detection circuit to obtain a second detection voltage; A voltage verification module, used to verify whether the second detection voltage is within a preset low voltage range, and obtain a verification result; The first fault module is used to generate fault alarm information based on the verification result when the verification result indicates failure.
7. An electronic device, characterized in that: It comprises a processor and a memory, wherein 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 the solenoid valve control method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium 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 a processor to implement the solenoid valve control method according to any one of claims 1 to 5.
9. A computer program, characterized in that The invention comprises a computer program, wherein when the computer program is executed by a processor, the solenoid valve control method according to any one of claims 1 to 5 is implemented.
