Electromagnetic valve control method and device and vehicle

By detecting the braking signal and adjusting the current value output by the PWM controller, the vehicle solenoid valve is accurately controlled, which solves the problem of unstable braking pressure and improves the safety and control accuracy of the vehicle.

CN119982988APending Publication Date: 2025-05-13SHANGHAI VCS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510401464.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

How to accurately control the car solenoid valve to avoid safety hazards caused by excessive braking pressure or too small.

Method used

By detecting the braking signal of the vehicle, a first current value is obtained, and the second current value output by the pulse width modulation (PWM) controller is adjusted based on the current value to control the operating state of the solenoid valve. If there is a difference between the third current value of the solenoid valve and the first current value, the duty cycle of the PWM controller is adjusted to adjust the second current value.

Benefits of technology

Accurate control of the solenoid valve is achieved, ensuring that the braking pressure is within the appropriate range, improving the stability and safety of the vehicle during the braking process, and avoiding safety hazards caused by excessive or too small braking force.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119982988A_ABST
    Figure CN119982988A_ABST
Patent Text Reader

Abstract

The invention discloses an electromagnetic valve control method which comprises the steps that a brake signal of a vehicle is detected, and a first current value corresponding to the brake signal is obtained; determining a second current value output by a pulse width modulation (PWM) controller based on the first current value, wherein the second current value is used for controlling an electromagnetic valve of the vehicle to work; and if a signal difference exists between a third current value currently output by the electromagnetic valve and the first current value, the current duty ratio of the PWM controller is adjusted so as to change the second current value. Meanwhile, the invention further discloses an electromagnetic valve control device and a vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of solenoid valve control, and in particular to a solenoid valve control method, device and vehicle. Background Art

[0002] The automobile solenoid valve plays a vital role in the automobile system. It uses electrical energy to generate electromagnetic suction through the coil to control the opening and closing of the valve core, thereby realizing automatic control of the flow of fuel, water, gas and other substances. It is often used to cut off the flow of oil, water and gas to effectively control various systems of the car. However, if the braking pressure of the solenoid valve is too large or too small, it will cause serious safety hazards. Therefore, how to accurately control the solenoid valve is a technical problem that needs to be solved urgently. Summary of the invention

[0003] In view of this, the embodiments of the present application hope to provide a solenoid valve control method, device and vehicle to at least solve the above-mentioned technical problems.

[0004] To achieve the above purpose, the technical solution of this application is implemented as follows:

[0005] According to one aspect of an embodiment of the present application, a solenoid valve control method is provided, the method comprising:

[0006] Detecting a braking signal of the vehicle and obtaining a first current value corresponding to the braking signal;

[0007] Determining a second current value output by a pulse width modulation (PWM) controller based on the first current value, wherein the second current value is used to control the operation of a solenoid valve of the vehicle;

[0008] If there is a current difference between the third current value currently output by the solenoid valve and the first current value, the current duty cycle of the PWM controller is adjusted to change the second current value.

[0009] In the above solution, if there is a current difference between the third current value currently output by the solenoid valve and the first current value, adjusting the current duty cycle of the PWM controller to change the second current value includes:

[0010] collecting a third current value currently output by the solenoid valve;

[0011] comparing the third current value with the first current value;

[0012] If the comparison result indicates that the third current value is greater than the first current value, the current duty cycle of the PWM controller is reduced to reduce the second current value.

[0013] In the above scheme, the method further comprises:

[0014] If the comparison result indicates that the third current value is less than the first current value, the current duty cycle of the PWM controller is increased to increase the second current value.

[0015] In the above scheme, the method further comprises:

[0016] If the comparison result indicates that the third current value is equal to the first current value, the current duty cycle of the PWM controller is maintained to keep the second current value unchanged.

[0017] In the above solution, if the comparison result indicates that the third current value is greater than the first current value, the method further includes:

[0018] The solenoid valve is controlled to be in a closed state, so that the remaining fourth current in the solenoid valve flows back to the power supply of the vehicle through the PWM controller.

[0019] In the above solution, before detecting the braking signal of the vehicle, the method further includes:

[0020] When the vehicle is powered on for the first time, a current diagnosis process for the solenoid valve is started to detect the output current of the solenoid valve in real time.

[0021] According to a second aspect of the present application, a solenoid valve control device is provided, the device comprising:

[0022] A detection unit, used for detecting a braking signal of the vehicle, wherein the braking signal corresponds to a first current value;

[0023] a calculation unit, configured to determine a second current value output by a pulse width modulation (PWM) controller based on the first current value;

[0024] a control unit, configured to control the operation of the solenoid valve of the vehicle based on the second current value;

[0025] An adjustment unit is used to adjust the current duty cycle of the PWM controller to change the second current value if there is a current difference between the third current value currently output by the solenoid valve and the first current value.

[0026] In the above solution, the device further comprises:

[0027] A collection unit, used for collecting a third current value currently output by the solenoid valve;

[0028] a comparing unit, configured to compare the third current value with the first current value;

[0029] The adjustment unit is used to reduce the current duty cycle of the PWM controller to reduce the second current value if the comparison result indicates that the third current value is greater than the first current value; increase the current duty cycle of the PWM controller to increase the second current value if the comparison result indicates that the third current value is less than the first current value; and maintain the current duty cycle of the PWM controller to keep the second current value unchanged if the comparison result indicates that the third current value is equal to the first current value.

[0030] In the above scheme, the control unit is also used to control the solenoid valve to be in a closed state if the comparison result indicates that the third current value is greater than the first current value; and to make the remaining fourth current in the solenoid valve flow back to the power supply of the vehicle through the PWM controller.

[0031] According to a third aspect of the present application, a vehicle is provided, comprising:

[0032] A memory for storing computer programs that can be run on the processor;

[0033] The processor is used to execute any one of the above solenoid valve control methods when running the computer program.

[0034] The present application provides a solenoid valve control method, device and vehicle, which is a solution for precisely controlling the solenoid valve by adjusting the PWM duty cycle through the feedback current of the solenoid valve. By detecting the braking signal of the vehicle, a first current value corresponding to the braking signal is obtained; based on the first current value, a second current value output by a pulse width modulation PWM controller is determined; based on the second current value, the solenoid valve of the vehicle is controlled to work; if there is a current difference between the third current value currently output by the solenoid valve and the first current value, the current duty cycle of the PWM controller is adjusted to change the second current value. In this way, the braking pressure can be precisely controlled, making the vehicle more stable and controllable during the braking process, avoiding safety hazards caused by excessive or insufficient braking force of the solenoid valve, and improving driving safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a schematic diagram of the process implementation of the solenoid valve control method in this application;

[0036] Figure 2 This is a schematic diagram of the structure of the solenoid valve control device in this application;

[0037] Figure 3 This is a schematic diagram of the solenoid valve control circuit in this application;

[0038] Figure 4 This is a schematic diagram of the structural composition of the vehicle in this application;

[0039] Figure 5 This is a timing diagram of the solenoid valve control in this application. DETAILED DESCRIPTION

[0040] The technical solution of the present application is further elaborated in detail below in conjunction with the accompanying drawings and specific embodiments of the specification.

[0041] The various specific technical features in the various embodiments described in the specific implementation methods can be combined in various ways without contradiction. For example, different implementation methods can be formed by combining different specific technical features. In order to avoid unnecessary repetition, the various possible combinations of the specific technical features in this application will not be described separately.

[0042] It should be noted that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects, and do not represent a specific order for the objects. It is understandable that the specific order or sequence of "first\second\third" can be interchanged where permitted. It should be understood that the objects distinguished by "first\second\third" can be interchanged 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.

[0043] Figure 1 FIG. 1 is a schematic diagram of the process of implementing the solenoid valve control method in the present application. The method can be applied to various vehicles, including but not limited to family cars, buses, trucks, commercial vehicles, transport vehicles, etc. Figure 1 As shown, the method includes:

[0044] Step 101, detecting a braking signal of a vehicle, and obtaining a first current value corresponding to the braking signal;

[0045] Here, in the electronic brake system, when the driver steps on the brake pedal of the vehicle, the brake pedal sensor senses the force of the pedal, thereby obtaining a brake signal, and converting the brake signal into a first current value corresponding to the force.

[0046] Step 102, determining a second current value output by a pulse width modulation (PWM) controller based on the first current value, wherein the second current value is used to control the operation of a solenoid valve of the vehicle;

[0047] Here, PWM is a technology that controls voltage or current by adjusting the duty cycle of an electrical signal. By inputting a first current value into a PWM controller, the first current value can be converted into a corresponding duty cycle, and a corresponding second current value can be output based on the duty cycle. The higher the duty cycle, the larger the second current value obtained, and the greater the degree of valve opening of the solenoid valve; the lower the duty cycle, the smaller the second current value obtained, and the smaller the degree of valve opening of the solenoid valve.

[0048] A solenoid valve is a device that controls the flow of fluid in a hydraulic or pneumatic system through electromagnetic force. It is usually composed of an electromagnet and a valve core. When the PWM controller outputs the second current value, the solenoid valve of the vehicle is controlled to open. At this time, the solenoid valve is in a working state. In the working state, the electromagnetic coil of the electromagnet will generate electromagnetic force, attracting the valve core to move it, thereby opening the fluid channel and allowing the fluid to flow. Conversely, when the PWM controller does not output the second current value, the solenoid valve of the vehicle is controlled to close. At this time, the solenoid valve is in a non-working state. In the non-working state, the electromagnetic force of the electromagnetic coil of the electromagnet disappears, and the valve core is reset under the action of the spring force, closing the fluid channel and preventing the fluid from flowing.

[0049] Step 103: If there is a current difference between the third current value currently output by the solenoid valve and the first current value, adjust the current duty cycle of the PWM controller to change the second current value.

[0050] Here, when the vehicle is powered on for the first time, the current diagnosis process of the solenoid valve can be started to detect the output current of the vehicle solenoid valve in real time. When the third current value currently output by the solenoid valve is collected, the third current value can be compared with the first current value to obtain a comparison result; if the comparison result indicates that the third current value is greater than the first current value, the current duty cycle of the PWM controller is reduced to reduce the second current value. If the comparison result indicates that the third current value is less than the first current value, the current duty cycle of the PWM controller can be increased to increase the second current value. If the comparison result indicates that the third current value is equal to the first current value, the current duty cycle of the PWM controller can be maintained to keep the second current value unchanged.

[0051] In this way, by collecting the feedback current output by the solenoid valve in real time, it is possible to know whether the internal resistance of the solenoid valve increases or decreases, so that the duty cycle of the PWM controller can be accurately adjusted to make the braking force of the solenoid valve reach an appropriate level, avoiding safety hazards caused by excessive or insufficient braking force.

[0052] In the present application, since the solenoid valve will produce electromagnetic induction under the action of electric current, which is equivalent to a battery, after the solenoid valve outputs current, the solenoid valve will maintain the current for a period of time and be temporarily in an open state. At this time, the output current of the solenoid valve can be closed based on comprehensive consideration of factors such as pedal opening, vehicle speed, and battery charge state, thereby achieving the purpose of saving energy; in addition, if the comparison result indicates that the third current value output by the solenoid valve is greater than the first current value, the solenoid valve can also be controlled to be in a closed state. At this time, the residual current in the solenoid valve can flow back to the power supply of the vehicle through the PWM controller, thereby achieving the purpose of energy recovery.

[0053] The solenoid valve control method provided in the present application monitors the output current of the solenoid valve in real time when the vehicle is powered on, and adjusts the duty cycle signal of the PWM controller in real time based on the output current, so as to accurately control the valve opening of the solenoid valve and avoid safety hazards caused by excessive or insufficient braking force.

[0054] Figure 2 Schematic diagram of the structure of the solenoid valve control device in this application, such as Figure 2 As shown, the device comprises:

[0055] The detection unit 201 is used to detect a braking signal of the vehicle and obtain a first current value corresponding to the braking signal;

[0056] A calculation unit 202, configured to determine a second current value output by a pulse width modulation (PWM) controller based on the first current value, wherein the second current value is used to control the operation of a solenoid valve of the vehicle;

[0057] The adjustment unit 203 is configured to adjust the current duty cycle of the PWM controller to change the second current value if there is a current difference between the third current value currently output by the solenoid valve and the first current value.

[0058] In a preferred embodiment, the device further comprises: a collection unit 204, configured to collect a third current value currently output by the solenoid valve;

[0059] A comparing unit 205, configured to compare the third current value with the first current value;

[0060] The adjustment unit 203 is used to reduce the current duty cycle of the PWM controller to reduce the second current value if the comparison result indicates that the third current value is greater than the first current value; increase the current duty cycle of the PWM controller to increase the second current value if the comparison result indicates that the third current value is less than the first current value; and maintain the current duty cycle of the PWM controller to keep the second current value unchanged if the comparison result indicates that the third current value is equal to the first current value.

[0061] In a preferred embodiment, the device also includes a control unit 206, which is used to control the solenoid valve to be in a closed state if the comparison result indicates that the third current value is greater than the first current value; and to allow the remaining fourth current in the solenoid valve to flow back to the power supply of the vehicle through the PWM controller.

[0062] It should be noted that the solenoid valve control device provided in the above embodiment is different from the above Figure 1 The provided solenoid valve control method belongs to the same concept, and the specific implementation process can refer to the above method embodiment, which will not be repeated here.

[0063] The solenoid valve control device provided in the present application can accurately control the valve body opening of the solenoid valve by real-time monitoring the output current of the solenoid valve and adjusting the duty cycle signal of the PWM controller in real time according to the monitoring result, thereby avoiding safety hazards caused by excessive or insufficient braking force.

[0064] Figure 3 This is a schematic diagram of the solenoid valve control circuit in this application, such as Figure 3 As shown, the control circuit includes:

[0065] The power supply interface 301, the diagnostic interface 302, the current detection interface 303, the power supply 304, the solenoid valve 305 and the PWM controller 306. When the power supply interface 301 is connected to the power supply 304 (CSV1_IN), the diagnostic interface 302 is powered on (CSV1_DIAG_EN), and the PWM controller 306 outputs a second current value based on the first current value corresponding to the braking signal to control the solenoid valve 305 to work, at this time, the power supply 304 outputs a target current to the solenoid valve 305 with the second current value under the control of the PWM controller 306. Assuming that the output duty cycle of CSV1_Drive is 50%, KL30_V_SAFE=12v, U=6v, and the current detection interface 303 detects After measuring the third current value output by the solenoid valve 305, the third current value will be compared with the first current value. If the comparison result indicates that the third current value is greater than the first current value, the PWM controller will reduce the current duty cycle, lower the second current value, and the power supply 304 will reduce the target current output to the solenoid valve under PWM control; if the comparison result indicates that the third current value is less than the first current value, the PWM controller will increase the current duty cycle, increase the second current value, and the power supply 304 will increase the target current output to the solenoid valve under PWM control; if the comparison result indicates that the third current value is equal to the first current value, it means that the output current of the solenoid valve meets the braking requirement, and the PWM controller keeps the current duty cycle unchanged.

[0066] In order to determine the output power of the solenoid valve, this application turns on CSV1_DIAG_EN to collect the output current of the solenoid valve in real time, and adjusts the PWM duty cycle according to the collected output current of the solenoid valve, thereby adjusting the output power of the solenoid valve. In this way, the valve core movement position and brake pressure of the solenoid valve can be accurately controlled to avoid safety hazards caused by excessive or insufficient brake pressure.

[0067] In addition, by monitoring the output current of the solenoid valve and dynamically adjusting the PWM duty cycle, not only can the command loss caused by the electrical interference of the whole vehicle be avoided, but also the working state of the solenoid valve can be quickly adjusted, thereby improving the response speed and control accuracy of the whole vehicle system.

[0068] Figure 4 It is a schematic diagram of the structural composition of the vehicle in this application, such as Figure 4 As shown, the vehicle 400 includes at least one processor 401 and a memory 402 for storing a computer program that can be run on the processor 401, and the processor 401 is used to execute the solenoid valve control method suggested in the above embodiments of the present application when running the computer program. The vehicle 400 also includes at least one network interface 404 and a user interface 403. The various components in the vehicle 400 are coupled together through a bus system 405. It can be understood that the bus system 405 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 405 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 4 Various buses are labeled as bus system 405 .

[0069] The user interface 403 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.

[0070] It can be understood that the memory 402 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, a compact disc or a read-only disc (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 402 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memory.

[0071] The memory 402 in the embodiment of the present application is used to store various types of data to support the operation of the vehicle 400. Examples of these data include: any computer program for operating on the vehicle 400, such as an operating system 4021 and an application 4022; messages; pictures; videos, etc. Among them, the operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 4022 may include various applications, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The program that implements the method of the embodiment of the present application may be included in the application 4022.

[0072] Processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in processor 401 or an instruction in the form of software. The above-mentioned processor 401 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Processor 401 can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In conjunction with the steps of the method disclosed in the embodiments of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a storage medium, which is located in memory 402, and processor 401 reads the information in memory 402, and completes the steps of the above method in conjunction with its hardware.

[0073] In an exemplary embodiment, the passing vehicle 400 can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0074] In an exemplary embodiment, the present application also provides a computer-readable storage medium, such as a memory 402 including a computer program, which can be executed by a processor 401 of a vehicle 400 to complete the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM; or it can be various devices including one or any combination of the above memories, such as AR devices, CR devices, VR devices, MR devices, etc.

[0075] A computer-readable storage medium stores a computer program, which, when executed by a processor, executes the solenoid valve control method suggested by the above embodiment of the present application.

[0076] Figure 5 This is a timing diagram of the solenoid valve control in this application, such as Figure 5 As shown, including:

[0077] Step 501, turn on the power switch and initialize the current diagnosis process (boost_ValveCtr_Init());

[0078] Step 502, collecting the output current of the solenoid valve (BswIf_GetValveSSVCurrent());

[0079] Here, if the collected output current is 0, it means that the solenoid valve is in a closed state, and if the collected output current is a value divided by 0, it means that the solenoid valve is in an open state.

[0080] Step 503, the PWM controller calculates the output current (SVCE_step());

[0081] Here, a braking signal of the vehicle is detected, and a first current value corresponding to the braking signal is obtained; the first current value is used as an input of a PWM controller, and a second current value is output.

[0082] Step 504, controlling the solenoid valve to operate based on the second current value (BswIf_SetValveSSVPwm);

[0083] Step 505: If there is a current difference between the third current value fed back by the solenoid valve and the first current value, adjust the duty cycle of the PWM controller (boost_ValveSideOutlf_Step()).

[0084] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. In addition, the features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0085] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A solenoid valve control method, characterized in that: The method comprises: Detecting a braking signal of the vehicle and obtaining a first current value corresponding to the braking signal; Determine a second current value output by a pulse width modulation (PWM) controller based on the first current value, wherein the second current value is used to control the operation of a solenoid valve of the vehicle; If there is a current difference between the third current value currently output by the solenoid valve and the first current value, the current duty cycle of the PWM controller is adjusted to change the second current value.

2. The method according to claim 1, characterized in that If there is a current difference between the third current value currently output by the solenoid valve and the first current value, adjusting the current duty cycle of the PWM controller to change the second current value comprises: collecting a third current value currently output by the solenoid valve; comparing the third current value with the first current value; If the comparison result indicates that the third current value is greater than the first current value, the current duty cycle of the PWM controller is reduced to reduce the second current value.

3. The method according to claim 2, characterized in that The method further comprises: If the comparison result indicates that the third current value is less than the first current value, the current duty cycle of the PWM controller is increased to increase the second current value.

4. The method according to claim 2, characterized in that: The method further comprises: If the comparison result indicates that the third current value is equal to the first current value, the current duty cycle of the PWM controller is maintained to keep the second current value unchanged.

5. The method according to claim 2, characterized in that: If the comparison result indicates that the third current value is greater than the first current value, the method further includes: The solenoid valve is controlled to be in a closed state, so that the residual current in the solenoid valve flows back to the power supply of the vehicle through the PWM controller.

6. The method according to claim 1, characterized in that Before detecting the braking signal of the vehicle, the method further includes: When the vehicle is powered on for the first time, a current diagnosis process for the solenoid valve is started to detect the output current of the solenoid valve in real time.

7. A solenoid valve control device, characterized in that: The device comprises: A detection unit, used for detecting a braking signal of the vehicle, wherein the braking signal corresponds to a first current value; a calculation unit, configured to determine a second current value output by a pulse width modulation (PWM) controller based on the first current value, wherein the second current value is used to control the operation of a solenoid valve of the vehicle; An adjustment unit is used to adjust the current duty cycle of the PWM controller to change the second current value if there is a current difference between the third current value currently output by the solenoid valve and the first current value.

8. The device according to claim 7, characterized in that The device also includes: A collection unit, used for collecting a third current value currently output by the solenoid valve; a comparing unit, configured to compare the third current value with the first current value; The adjustment unit is used to reduce the current duty cycle of the PWM controller to reduce the second current value if the comparison result indicates that the third current value is greater than the first current value; increase the current duty cycle of the PWM controller to increase the second current value if the comparison result indicates that the third current value is less than the first current value; and maintain the current duty cycle of the PWM controller to keep the second current value unchanged if the comparison result indicates that the third current value is equal to the first current value.

9. The device according to claim 8, characterized in that The device also includes: A control unit is used to control the solenoid valve to be in a closed state if the comparison result indicates that the third current value is greater than the first current value; and to make the remaining fourth current in the solenoid valve flow back to the power supply of the vehicle through the PWM controller.

10. A vehicle, characterized in that: The vehicle comprises: A memory for storing computer programs that can be run on the processor; The processor is used to execute the solenoid valve control method according to any one of claims 1 to 6 when running the computer program.