Networked fuel cell automobile hydrogen control system and method

By adopting decoupled sliding mode control and multi-core processor assignment methods in fuel cell vehicle hydrogen control system, the stability and real-time problems of the hydrogen system under special operating conditions are solved, and the decoupled control of flow and pressure is achieved , improves the system's response capability and vehicle performance.

CN119179273AActive Publication Date: 2024-12-24HEFEI UNIV OF TECH

Patent Information

Application Number
CN202411696836.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2024-12-24
Estimated Expiration
2044-11-26

AI Technical Summary

Technical Problem

The existing fuel cell vehicle hydrogen control system is difficult to achieve stability and real-time performance of the stack output power under special operating conditions, and ignores the computing power limit of the on-board chip, resulting in poor control stability and real-time performance, especially when starting up. It is difficult to control under transient operating conditions.

Method used

A fuel cell vehicle hydrogen control system is designed under network connection. It adopts a decoupled sliding mode controller combined with the Liyapunov principle. Through sliding mode tuning parameters, MAP self-learning and gradient descent optimization method, optimizes the control model, and uses multi-core The processor assigns tasks to improve algorithmic operation speed and solves flow and pressure coupling problems through feedforward controllers and perturbation observers.

Benefits of technology

The decoupling control of the flow rate and pressure of the hydrogen system is realized, which improves the stability and robustness of the system, reduces the load of the on-board chip, enhances the response ability to transient working conditions, and improves the economy and power of the entire vehicle. sex.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119179273A_ABST
    Figure CN119179273A_ABST
Patent Text Reader

Abstract

The invention provides a system and a method for controlling hydrogen of a fuel cell vehicle under network connection. The system comprises a proportional flow valve, an electric pile, a purge valve, a pressure sensor, a circulating pump and the like. By designing a decoupling sliding mode controller, flow and pressure decoupling is achieved while the accuracy of a compensation model is not accurate, and the stability of a feedback control law is proved through the Lyapunov principle. Aiming at the problem of contradiction between dynamic response performance and buffeting in sliding mode control, a sliding mode control parameter adaptive optimization method based on gradient descent is further designed, the system stability during variable load is improved through a feedforward controller, and meanwhile, a sliding mode adjustment and optimization parameter MAP self-learning mode is adopted, so that the system stability is improved. And the problem of gradient optimization delay under a transient working condition is solved while the stability of a closed-loop system is ensured. In addition, the output power of the electric pile is optimized through road information obtained by the Internet of Vehicles, and the algorithm is allocated to different cores of a vehicle-mounted chip to improve the algorithm operation speed and reduce the chip load.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fuel cells, and in particular to a hydrogen control system and method for a fuel cell vehicle under networking. Background Art

[0002] The stable operation of fuel cells requires the coordinated work of the hydrogen system, air supply system and water-heat management system. The general air system supplies excess and appropriate pressure air into the fuel cell stack to prevent the efficiency of the fuel cell stack from decreasing due to oxygen starvation. The water-heat management system controls the working temperature, gas temperature and humidity of the fuel cell stack.

[0003] There are two types of hydrogen systems: direct discharge and hydrogen recycling. During the working process, the fuel cell cannot use all the hydrogen entering the stack at one time, and the direct discharge directly discharges the unreacted hydrogen into the air, which is less economical. The hydrogen recycling method recycles the unreacted hydrogen again, thereby improving the utilization rate of hydrogen. At the same time, hydrogen recycling can also improve the water balance in the stack to avoid flooding in the stack and optimize the working environment of the stack. The reasonable control of the circulation device of the hydrogen recycling system directly affects the efficiency of hydrogen utilization, so it is of great significance to optimize the control of the subcomponents of the hydrogen system.

[0004] The hydrogen system needs to reduce the pressure of 30-70Mpa high-pressure hydrogen stored in the tank to the appropriate pressure, and adjust it to the appropriate flow rate through the proportional flow valve. It is worth noting that the excessive pressure difference between the anode and cathode gases will damage the fragile proton exchange membrane. The pressure difference between the anode and cathode gases needs to be controlled within a reasonable value. The parasitic power generated by the anode decompression process is smaller than that of the cathode gas boosting process, so the anode pressure is generally controlled to follow the cathode pressure. Unlike the cathode exhaust gas that is directly discharged into the air, the unreacted hydrogen in the stack needs to be circulated to the anode inlet again to participate in the reaction, and it needs to pass through the steam-water separator for dehydration. At this time, due to the internal hydrogen reaction of the stack and the obstruction of the steam-water separator, the pressure of the recycled hydrogen will be lower than the required value, so the recycled hydrogen needs to be pressurized twice by the circulating pump. However, there is a coupling relationship between the outlet flow and pressure of the proportional flow valve and the circulating pump, which makes it difficult to adjust the opening of the proportional flow valve and the speed of the circulating pump.

[0005] The controllers of the current existing technical solutions ignore the impact of future traffic road information on the entire vehicle, and under special working conditions, the output power of the battery stack is higher than the actual demand. The control of the hydrogen system often adjusts the hydrogen system pressure separately. Considering the decoupling of flow and pressure, the control is also mostly concentrated on feedforward decoupling or state space decoupling, which depends on the accuracy of the model and is sensitive to changes in system parameters. It is difficult to implement. The corresponding decoupling control cannot simultaneously solve the steady-state control of the battery stack startup or transient fluctuations in working conditions. In addition, the corresponding optimization controller ignores the computing power limitations of the on-board chip, resulting in poor real-time and stability of the control. Summary of the invention

[0006] In view of the above shortcomings, the present invention proposes a hydrogen control system and method for fuel cell vehicles under networking. By designing a decoupled sliding mode controller, the decoupling of flow and pressure is achieved while compensating for the inaccuracy of the model, and the stability of the feedback control law is proved by the Lyapunov principle. In view of the contradiction between the dynamic response performance and the jitter of the sliding mode control, a method for adaptive optimization of sliding mode control parameters based on gradient descent is further designed, and the system stability under variable load is improved by a feedforward controller. At the same time, the sliding mode tuning parameter MAP self-learning method is adopted to ensure the stability of the closed-loop system while solving the gradient optimization delay problem under transient conditions. In addition, the road information obtained through the Internet of Vehicles is used to optimize the output power of the battery stack, and the algorithm is assigned to different cores of the on-board chip to improve the algorithm operation speed and reduce the chip load.

[0007] To achieve the above object, the present invention provides the following technical solutions: A networked fuel cell vehicle hydrogen control system, the system comprising: Hydrogen storage bottle, pressure reducing valve, proportional flow valve, fuel cell, steam-water separator, purge valve, pressure sensor, circulation pump, check valve, drain valve; Wherein, a pressure reducing valve and a proportional flow valve are connected between the hydrogen storage bottle and the battery stack, the battery stack is connected to a steam-water separator, the steam-water separator is connected to a purge valve, the purge valve is connected to a pressure sensor, a circulation pump and a one-way valve, and the one-way valve is connected to a drain valve; The pressure reducing valve is used to reduce the high-pressure hydrogen pressure of the hydrogen storage bottle to the value required by the fuel cell, the proportional flow valve is used to adjust the flow of the hydrogen system into the stack, and the circulating pump is used to pressurize and recirculate the hydrogen; the steam-water separator is used to separate the hydrogen and the entrained water at the anode outlet of the fuel cell stack and discharge them through the drain valve, and the purge valve is used to remove the nitrogen that has penetrated and accumulated in the cathode cavity.

[0008] Another object of an embodiment of the present invention is to provide a method for controlling hydrogen in a networked fuel cell vehicle. The method is implemented by the above-mentioned networked fuel cell vehicle hydrogen control system, and the method comprises the following steps: 1. Establishment of control model: 1) Proportional flow valve modeling, the proportional flow valve formula is as follows: ; in: is the pressure at the front end of the proportional flow valve, is the atmospheric temperature, is the density of hydrogen, is a constant, It is the control input of the proportional flow valve; 2) Intake manifold modeling, the intake manifold formula is as follows: ; in, is the intake manifold volume, is the outlet flow of the proportional flow valve, is the outlet flow of the circulating pump, is the anode inlet flow rate of the stack, is the molar gas constant, Intake manifold inlet flow, Intake manifold outlet flow; 3) Stack modeling. Since the stack ignores the internal nitrogen and hydrogen permeation phenomena, and ignores the effect of water on the anode pressure and flow, the stack differential equation is as follows: ; ; ; in: Anode chamber pressure, Anode inlet flow, The hydrogen flow rate of the anode reaction, Anode outlet hydrogen flow rate, The pressure drop at the anode outlet of the stack caused by the hydrogen reaction. Anode flow field width, Anode flow field depth, Anode flow field length, Molar mass of hydrogen, Number of cells in the stack, The stack requires current, is the number of anode flow field channels, constant; 4) Return air manifold modeling, the return air manifold formula is as follows: ; in: Return manifold pressure, Return manifold inlet flow, Return manifold outlet flow, Return manifold volume, Stack temperature; 5) Circulation pump modeling, the circulation pump formula is as follows: ; in: is the proportional parameter of the circulating pump speed and the control input voltage, is the diameter of the circulating pump blade. The outlet pressure of the circulating pump is calculated by its isentropic efficiency and mechanical efficiency. The calculation is relatively complicated. Generally, its inlet and outlet pressure-speed map is measured by experiment. The present invention adopts the data of Busch's MINK MA 0018 A model circulating pump. In order to facilitate the design of the controller, the outlet pressure of the circulating pump is set to ,in is a variable related to the circulating pump inlet pressure, This is the control input for the circulation pump.

[0009] As a further technical solution of the present invention, it also includes multi-core controller task allocation, using Infineon TC275T D-Step (DAP) as a fuel cell controller, and allocating the power correction, feedforward control, disturbance observation, feedback decoupling control and parameter optimization of the fuel cell hydrogen system to the three cores of the processor CPU0, CPU1, and CPU2 in parallel. The steps include: 1) Assign the grid-connected stack output power correction task and feedforward control algorithm to the first core CPU0 of the multi-core processor to run, update the stack required power in real time according to road information and SOC, and output the feedforward controller for transient control; 2) A feedback decoupling controller was designed based on the required flow and pressure information of the battery stack predicted and updated by CPU0, and the algorithm was assigned to CPU1 for parallel operation; 3) Assign the stochastic gradient optimization algorithm to CPU2 for parallel operation, and optimize the sliding mode control tuning parameters under five step sizes at the same time. Take the average of the five optimized tuning parameters as the final output tuning parameters, and determine the stability of the tuning parameters. The stable tuning parameters are updated to overwrite the preset offline tuning parameter Map.

[0010] As a further technical solution of the present invention, the steps of allocating the grid-connected stack output power correction task and the feedforward control algorithm to the first core CPU0 of the multi-core processor for execution, updating the stack required power in real time according to road information and SOC, and outputting the feedforward controller for transient control include: 1.1) Determine whether the fuel cell stack is in the startup phase. If so, calculate the corresponding static feedforward control law to compensate for the disturbance caused by the hysteresis response of the hydrogen system subcomponents in the startup phase; At the moment when the fuel cell starts to start, due to the hysteresis response of each subcomponent and the slow response speed of the flow and pressure input based on the feedback control law, the flow supplied to the stack at the moment of startup cannot meet the needs of the fuel cell, resulting in a large disturbance in the system during the startup phase. Therefore, a static feedforward control law is designed to avoid the problem of slow response of the feedback control law, increase the response speed of the system, and improve the tracking performance of the control input during the startup phase, thereby optimizing the fluctuation of the system during the startup phase; 1.1.1) The static feedforward controller is designed as follows: State 1: Anode inlet pressure: ; State 2: Circulation pump speed: ; 1.1.2) Define system output: Proportional valve outlet mass flow, Anode inlet pressure: ; 1.1.3) Control input: Proportional flow valve opening, Hydrogen circulation pump motor control input voltage; ; 1.1.4) Definition : The hydrogen supply subsystem generally supplies excess hydrogen to the anode to prevent the fuel cell efficiency from being reduced and the proton exchange membrane from being damaged due to hydrogen starvation. Different systems have different hydrogen excess ratios. The hydrogen excess ratio reference value of the present invention uses experimental data measured by a 115KW fuel cell stack to calculate the hydrogen flow rate required at the anode inlet under different working conditions. The calculation formula is as follows: ; in: is the Faraday constant, is the molar mass of hydrogen, is the number of battery stack cells, The current required for the battery stack; but The definition is as follows: ; 1.1.5) Yes Take a derivative: ; At the beginning of the operation of the fuel cell, due to the hysteresis of the entire fuel cell system, the flow rate of the recirculated hydrogen after being pressurized by the circulation pump is negligible compared to the flow rate output by the proportional flow valve, so here Ignore the influence of the circulating pump fluid. Simplified as follows: ; 1.1.6) Order , thus obtaining the static feedforward control law: ; 1.2) Obtain vehicle location information in real time; 1.3) Obtain road information in real time; 1.4) Obtain traffic light information in real time; 1.5) Obtain power battery SOC in real time; 1.6) Determine the future state of the vehicle based on road information, traffic light information and power battery SOC: rapid acceleration, rapid deceleration, slow acceleration, slow acceleration.

[0011] 1.7) Four groups of correction factors are set to correct the stack demand current information sent by the FCU at the next moment; 1.8) Update the flow and pressure information of the hydrogen system demand supply and write it into the shared register; 1.9) Determine whether there is a step change in the power required by the fuel cell stack. If so, calculate the corresponding dynamic feedforward control law for disturbance compensation; When the power demand of the fuel cell changes in a step, it will cause a large demand and fluctuation of hydrogen flow, which will in turn cause a large fluctuation of hydrogen pressure, resulting in the occurrence of transient fuel supply shortage of the fuel cell stack, and worsening the working conditions of the fuel cell stack. Relying solely on static feedforward cannot meet the demand for fuel cell flow and pressure in transient conditions, so a dynamic feedforward control law is designed to eliminate the system disturbance caused by the step change of the power demand, thereby improving the robustness and stability of the system and reducing the burden on the feedback controller. The coupled dynamic disturbance of the circulating pump at this time is solved in the feedback control law and ignored in the dynamic feedforward control law.

[0012] The dynamic feedforward controller is designed as follows: 1.9.1) Correct the control input in the following form: ; 1.9.2) Correct the required flow rate for entering the pile : ; in: is the corrected fuel cell demand flow rate, The current required for the battery stack after correction; 1.9.3) Yes Derivative: ; 1.9.4) Substitute equations 16 and 17 into equation 19 and let , the dynamic feedforward control law is derived, and the specific formula is as follows: ; 1.10) An interrupt is triggered, and CPU1 reads the updated stack required flow and pressure information and feedforward control information; 1.11) Reading is completed and the interrupt is cleared; 1.12) Enter the next loop.

[0013] As a further technical solution of the present invention, the steps of designing a feedback decoupling controller according to the required flow and pressure information of the battery stack predicted and updated by CPU0, and distributing the algorithm to CPU1 for parallel operation include: 2.1) Read the corrected stack required pressure and flow. If the reading time exceeds 1ms, interrupt the reading and use the last data; 2.2) Tracking differentiator to smooth flow and pressure; The differential tracker is a single-input dual-output module, which is designed to smooth the input signal to avoid the coexistence of overshoot and rise time when the input signal changes suddenly. The differential tracker can also achieve filtering at the same time; therefore, two sets of differential trackers are designed for optimization. and , the input is the corresponding power required by the stack , output The output is the processed signal. For the output differential, the specific formula of the tracking differentiator is designed as follows: 2.2.1) Proportional flow valve: ; 2.2.2) Circulation pump: ; in: Sampling period, Parameters that determine the speed of tracking; 2.3) Read the current output of the hydrogen system; 2.4) The disturbance observer collects the output for disturbance observation; The disturbance observer can not only estimate the unknown disturbance in the system in real time and compensate it in the control loop, but also reduce the mutual influence between the system channels, thereby enhancing the system's ability to suppress disturbances and improving control performance and robustness. Therefore, the present invention designs two sets of disturbance observers, regards the flow control of the proportional flow valve and the pressure control of the circulating pump as disturbances, and decouples the disturbance effect on the adaptive sliding mode controller. The disturbance observer is designed as follows: 2.4.1) Proportional flow valve: The proportional flow valve outlet flow rate is: ; 2.4.2) Circulation pump: is the outlet pressure of the circulation pump: ; in: Tune the parameters for the observer, for The length of the linear segment of the function, is a constant between 0 and 1; 2.5) Read the tracking differentiator output and the disturbance observer output ; 2.6) Update the feedback controller input parameters; 2.7) Calculation of control law of feedback controller; The core of sliding mode control is to design a sliding mode surface so that the system state quickly tends to and keeps sliding on the surface, so as to achieve the purpose of stable control of the system. Fuel cells are complex nonlinear systems with strong coupling. It is difficult to accurately describe the system parameters with a model. Sliding mode control has strong robustness to the uncertainty of system parameters, external disturbances and nonlinear factors, and has fast response speed and strong convergence, which can be well applied to fuel cell systems. Therefore, this paper adopts two sets of first-order sliding mode control as the feedback control law of the system, and decouples and corrects them through tracking differentiators and disturbance observers. The specific design process of sliding mode control is as follows: 2.7.1) Error design is as follows: ; The disturbance from the circulating pump flow is output by observer 1 Compensation, the pressure disturbance from the proportional flow valve is output by observer 2 compensate; 2.7.2) Design the sliding surface and take ; ; 2.7.3) Approach rate: Constant approach rate, and replace the sign function with a saturation function to alleviate the inherent chattering problem of sliding mode control, where Tuning parameters for the sliding mode control law, Parameters for adjusting the thickness of the boundary layer; ; 2.7.4) Yes Derivative and correct according to the disturbance observer output: ; Combining equations 27 and 28, we can obtain the decoupled sliding mode feedback control law: ; 2.8) Read the disturbance observer output ; 2.9) Modify the feedback control law output to complete decoupling; The modified feedback control law is as follows: ; 2.10) Determination of stability of feedback control law; The determination process is as follows: 2.10.1) Design of Lyapunov function: ; 2.10.2) Derivative of the designed Lyapunov function: ; 2.10.3) Whether the control rate is stable when both are greater than zero; 2.11) Read the optimization data of shared register 2 and judge the optimization time. 2.12) When the optimization time is less than 50ms, directly read the feedback control law tuning parameters; otherwise, read the offline tuning parameter Map; 2.13) Output the final control law; 2.14) Enter the next loop.

[0014] As a further technical solution of the present invention, the stochastic gradient optimization algorithm is assigned to CPU2 for parallel operation, and the sliding mode control tuning parameters under five step sizes are optimized at the same time, and the average of the five optimized tuning parameters is taken as the final output tuning parameter, and the stability of the tuning parameters is determined at the same time. The steps of updating the stable tuning parameters to cover the preset offline tuning parameter Map include: 3.1) Read the current output of the hydrogen system; Traditional sliding mode control tuning parameters It is only applicable to a system with a relative working condition. For the complex and changeable fuel cell hydrogen supply subsystem, the sliding mode control law with constant tuning parameters is difficult to meet the system requirements. Due to the diversity of working conditions, it is difficult to enumerate various tuning parameters by calibration. The gradient descent optimization method is simple and intuitive, suitable for large-scale data, highly practical, and can well meet the parameter optimization requirements of the system. Therefore, the present invention obtains the tuning parameters of the sliding mode control law through the stochastic gradient descent optimization method. ; 3.2) Establish cost function; The cost function is as follows: 3.2.1) Proportional flow valve: ; 3.2.2) Circulation pump: ; 3.3) Tuning parameters Iteration: The iteration process is as follows: 3.3.1) Proportional flow valve: ; 3.3.2) Circulation pump: ; in: Used to adjust the iteration step size of each step; 3.4) Simultaneously optimize the sliding mode control tuning parameters under five step sizes, and take the average of the five optimized tuning parameters as the final output tuning parameters ; 3.5) Yes Parameter determination, If not all values ​​are less than zero, an interrupt is triggered and CPU1 reads the preset tuning parameter Map; 3.6) All are less than zero, and the optimization time is judged; 3.7) If the optimization time is greater than 50ms, CPU1 directly reads the preset tuning parameter Map; 3.8) The optimization time is less than 50ms, and CPU1 directly reads the data stored in shared register 2; 3.9) Update offline tuning Map data; 3.10) Output the final control law; ; 3.11) Enter the next loop.

[0015] Compared with the prior art, the present invention has the following beneficial effects: 1. Taking into account the impact of road traffic information on the output power of the fuel cell vehicle, the output power of the fuel cell stack is predicted and corrected, and then the dynamic feedforward error and the sliding surface of the feedback control law are corrected to improve the economy of the vehicle.

[0016] 2. A feedforward control law based on static feedforward and dynamic feedforward was designed. Static feedforward was used to optimize the flow and pressure fluctuations caused by the hysteresis response of various sub-components of the hydrogen system at the moment of startup of the fuel cell stack. Dynamic feedforward was used to solve the interference caused by transient fluctuations in the power demand of the fuel cell, further improving the stability of control.

[0017] 3. Adaptive sliding mode control is used to compensate for the inaccuracy of the control model. At the same time, the sliding mode control parameters are adaptively adjusted through the gradient descent optimization method. A set of offline tuning parameters is preset to avoid the problem of slow optimization speed affecting the system stability, thereby improving the robustness of the system.

[0018] 4. The flow and pressure coupling interference problem in the hydrogen system is solved. By designing two sets of disturbance observers, the flow and pressure are regarded as interference, and the interference is compensated by the adaptive feedback control law, realizing the decoupling control of the flow and pressure of the hydrogen system. This decoupling does not depend on the accuracy of the model and does not need to accurately describe the impact of the coupling interference on the system. At the same time, two sets of tracking differentiators are designed to optimize the input of the adaptive feedback controller, further reducing the system disturbance.

[0019] 5. Improve the speed of optimization algorithm and reduce the load on vehicle chips by allocating parallel algorithms to multiple cores. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A schematic diagram of a fuel cell hydrogen control system provided in an embodiment of the present invention.

[0021] Figure 2 This is a schematic diagram of a circulating pump type hydrogen system model provided in an embodiment of the present invention.

[0022] Figure 3 A schematic diagram of task allocation for a multi-core controller provided in an embodiment of the present invention.

[0023] Figure 4 The embodiments of the present invention provide the required excess hydrogen ratio of the anode under different load conditions.

[0024] Figure 5 A schematic diagram of a control block diagram provided by an embodiment of the present invention.

[0025] Figure 6 A comparison diagram of the anode and cathode pressure difference provided in an embodiment of the present invention.

[0026] Figure 7 This is a diagram showing the effect of the stacking pressure control provided by an embodiment of the present invention.

[0027] Figure 8 This is a diagram showing the effect of the inflow flow control provided by an embodiment of the present invention.

[0028] Fig. 9 This is a pressure effect diagram after feedforward correction provided by an embodiment of the present invention.

[0029] Notes on the figure numbers: 1-hydrogen storage bottle, 2-pressure reducing valve, 3-proportional flow valve, 4-fuel cell, 5-steam-water separator, 6-purge valve, 7-pressure sensor, 8-circulation pump, 9-check valve, 10-drain valve. DETAILED DESCRIPTION

[0030] The technical solution of the present invention is further described in detail below in conjunction with specific implementation methods.

[0031] See also Figures 1 to 9 , a networked fuel cell vehicle hydrogen control system, the system comprising: Hydrogen storage bottle 1, pressure reducing valve 2, proportional flow valve 3, battery stack 4, steam-water separator 5, purge valve 6, pressure sensor 7, circulation pump 8, check valve 9, drain valve 10; Among them, a pressure reducing valve 2 and a proportional flow valve 3 are connected between the hydrogen storage bottle 1 and the battery stack 4, the battery stack 4 is connected to a steam-water separator 5, the steam-water separator 5 is connected to a purge valve 6, the purge valve 6 is connected to a pressure sensor 7, a circulation pump 8 and a one-way valve 9, and the one-way valve 9 is connected to a drain valve 10; The pressure reducing valve 2 is used to reduce the high-pressure hydrogen pressure of the hydrogen storage bottle to the value required by the fuel cell, the proportional flow valve 3 is used to adjust the flow of the hydrogen system into the stack, and the circulating pump 8 is used to pressurize and recirculate the hydrogen; the steam-water separator 5 is used to separate the hydrogen and the entrained water at the anode outlet of the fuel cell 4 and discharge them through the drain valve 10, and the purge valve 6 is used to remove the nitrogen that has penetrated and accumulated in the cathode cavity.

[0032] Another object of an embodiment of the present invention is to provide a method for controlling hydrogen in a networked fuel cell vehicle. The method is implemented based on the above-mentioned networked fuel cell vehicle hydrogen control system, and the method includes the following steps: 1. Establishment of control model: 1) Proportional flow valve modeling, the proportional flow valve formula is as follows: ; in: is the pressure at the front end of the proportional flow valve, is the atmospheric temperature, is the density of hydrogen, is a constant, It is the control input of the proportional flow valve; 2) Intake manifold modeling, the intake manifold formula is as follows: ; in, is the intake manifold volume, is the outlet flow of the proportional flow valve, is the outlet flow of the circulating pump, is the anode inlet flow rate of the stack, is the molar gas constant, Intake manifold inlet flow, Intake manifold outlet flow; 3) Stack modeling. Since the stack ignores the internal nitrogen and hydrogen permeation phenomena, and ignores the effect of water on the anode pressure and flow, the stack differential equation is as follows: ; ; ; in: Anode chamber pressure, Anode inlet flow, The hydrogen flow rate of the anode reaction, Anode outlet hydrogen flow rate, The pressure drop at the anode outlet of the stack caused by the hydrogen reaction. Anode flow field width, Anode flow field depth, Anode flow field length, Molar mass of hydrogen, Number of cells in the stack, The stack requires current, is the number of anode flow field channels, constant; 4) Return air manifold modeling, the return air manifold formula is as follows: ; in: Return manifold pressure, Return manifold inlet flow, Return manifold outlet flow, Return manifold volume, Stack temperature; 5) Circulation pump modeling, the circulation pump formula is as follows: ; in: is the proportional parameter of the circulating pump speed and the control input voltage, is the diameter of the circulating pump blade. The outlet pressure of the circulating pump is calculated by its isentropic efficiency and mechanical efficiency. The calculation is relatively complicated. Generally, its inlet and outlet pressure-speed map is measured by experiment. The present invention adopts the data of Busch's MINK MA 0018 A model circulating pump. In order to facilitate the design of the controller, the outlet pressure of the circulating pump is set to ,in is a variable related to the circulating pump inlet pressure, This is the control input for the circulation pump.

[0033] This embodiment also includes multi-core controller task allocation, using Infineon TC275T D-Step (DAP) as a fuel cell controller, and allocating fuel cell hydrogen system power correction, feedforward control, disturbance observation, feedback decoupling control and parameter optimization to the three cores of the processor CPU0, CPU1, and CPU2 in parallel. The steps include: The stack output power correction task and feedforward control algorithm under the network connection are assigned to the first core CPU0 of the multi-core processor to run, update the stack demand power in real time according to road information and SOC, and output the feedforward controller for transient control; 1.1) Determine whether the fuel cell stack is in the startup phase. If so, calculate the corresponding static feedforward control law to compensate for the disturbance caused by the hysteresis response of the hydrogen system subcomponents in the startup phase; At the moment when the fuel cell starts to start, due to the hysteresis response of each subcomponent and the slow response speed of the flow and pressure input based on the feedback control law, the flow supplied to the stack at the moment of startup cannot meet the needs of the fuel cell, resulting in a large disturbance in the system during the startup phase. Therefore, a static feedforward control law is designed to avoid the problem of slow response of the feedback control law, increase the response speed of the system, and improve the tracking performance of the control input during the startup phase, thereby optimizing the fluctuation of the system during the startup phase; The static feedforward controller is designed as follows: 1.1.1) Determine the system state variables; State 1: Anode inlet pressure: ; State 2: Circulation pump speed: ; 1.1.2) Define system output: Proportional valve outlet mass flow, Anode inlet pressure: ; 1.1.3) Control input: Proportional flow valve opening, Hydrogen circulation pump motor control input voltage; ; 1.1.4) Definition : The hydrogen supply subsystem generally supplies excess hydrogen to the anode to prevent the fuel cell efficiency from being reduced and the proton exchange membrane from being damaged due to hydrogen starvation. Different systems have different hydrogen excess ratios. The hydrogen excess ratio reference value of the present invention uses experimental data measured by a 115KW fuel cell stack to calculate the hydrogen flow rate required at the anode inlet under different working conditions. The calculation formula is as follows: ; in: is the Faraday constant, is the molar mass of hydrogen, is the number of battery stack cells, is the current required by the stack; the excess hydrogen required by the anode under different load conditions is as follows Figure 4 As shown; but The definition is as follows: ; 1.1.5) Yes Take a derivative: ; At the beginning of the operation of the fuel cell, due to the hysteresis of the entire fuel cell system, the flow rate of the recirculated hydrogen after being pressurized by the circulation pump is negligible compared to the flow rate output by the proportional flow valve, so here Ignore the influence of the circulating pump fluid. Simplified as follows: ; 1.1.6) Order , thus obtaining the static feedforward control law: ; 1.2) Obtain vehicle location information in real time; 1.3) Obtain road information in real time; 1.4) Obtain traffic light information in real time; 1.5) Obtain power battery SOC in real time; 1.6) Determine the future state of the vehicle based on road information, traffic light information and power battery SOC: rapid acceleration, rapid deceleration, slow acceleration, slow acceleration.

[0034] 1.7) Four groups of correction factors are set to correct the stack demand current information sent by the FCU at the next moment; 1.8) Update the flow and pressure information of the hydrogen system demand supply and write it into the shared register; 1.9) Determine whether there is a step change in the power required by the fuel cell stack. If so, calculate the corresponding dynamic feedforward control law for disturbance compensation; When the power demand of the fuel cell changes in a step, it will cause a large demand and fluctuation of hydrogen flow, which will in turn cause a large fluctuation of hydrogen pressure, resulting in the occurrence of transient fuel supply shortage of the fuel cell stack, and worsening the working conditions of the fuel cell stack. Relying solely on static feedforward cannot meet the demand for fuel cell flow and pressure in transient conditions, so a dynamic feedforward control law is designed to eliminate the system disturbance caused by the step change of the power demand, thereby improving the robustness and stability of the system and reducing the burden on the feedback controller. The coupled dynamic disturbance of the circulating pump at this time is solved in the feedback control law and ignored in the dynamic feedforward control law.

[0035] The dynamic feedforward controller is designed as follows: 1.9.1) Correct the control input in the following form: ; 1.9.2) Correct the required flow rate for entering the pile : ; in: is the corrected fuel cell demand flow rate, The current required for the battery stack after correction; 1.9.3) Yes Derivative: ; 1.9.4) Substitute equations 16 and 17 into equation 19 and let , the dynamic feedforward control law is derived, and the specific formula is as follows: ; 1.10) An interrupt is triggered, and CPU1 reads the updated stack required flow and pressure information and feedforward control information; 1.11) Reading is completed and the interrupt is cleared; 1.12) Enter the next loop.

[0036] 2) A feedback decoupling controller was designed based on the required flow and pressure information of the battery stack predicted and updated by CPU0, and the algorithm was assigned to CPU1 for parallel operation; 2.1) Read the corrected stack required pressure and flow. If the reading time exceeds 1ms, interrupt the reading and use the last data; 2.2) Tracking differentiator to smooth flow and pressure; The differential tracker is a single-input dual-output module, which is designed to smooth the input signal to avoid the coexistence of overshoot and rise time when the input signal changes suddenly. The differential tracker can also achieve filtering at the same time; therefore, two sets of differential trackers are designed for optimization. and , the input is the corresponding power required by the stack , output The output is the processed signal. For the output differential, the specific formula of the tracking differentiator is designed as follows: 2.2.1) Proportional flow valve: ; 2.2.2) Circulation pump: ; in: Sampling period, Parameters that determine the speed of tracking; 2.3) Read the current output of the hydrogen system; 2.4) The disturbance observer collects the output for disturbance observation; The disturbance observer can not only estimate the unknown disturbance in the system in real time and compensate it in the control loop, but also reduce the mutual influence between the system channels, thereby enhancing the system's ability to suppress disturbances and improving control performance and robustness. Therefore, the present invention designs two sets of disturbance observers, regards the flow control of the proportional flow valve and the pressure control of the circulating pump as disturbances, and decouples the disturbance effect on the adaptive sliding mode controller. The disturbance observer is designed as follows: 2.4.1) Proportional flow valve: The proportional flow valve outlet flow rate is: ; 2.4.2) Circulation pump: is the outlet pressure of the circulation pump: ; in: Tune the parameters for the observer, for The length of the linear segment of the function, is a constant between 0 and 1; 2.5) Read the tracking differentiator output and the disturbance observer output ; 2.6) Update the feedback controller input parameters; 2.7) Calculation of control law of feedback controller; The core of sliding mode control is to design a sliding mode surface so that the system state quickly tends to and keeps sliding on the surface, so as to achieve the purpose of stable control of the system. Fuel cells are complex nonlinear systems with strong coupling. It is difficult to accurately describe the system parameters with a model. Sliding mode control has strong robustness to the uncertainty of system parameters, external disturbances and nonlinear factors, and has fast response speed and strong convergence, which can be well applied to fuel cell systems. Therefore, this paper adopts two sets of first-order sliding mode control as the feedback control law of the system, and decouples and corrects them through tracking differentiators and disturbance observers. The specific design process of sliding mode control is as follows: 2.7.1) Error design is as follows: ; The disturbance from the circulating pump flow is output by observer 1 Compensation, the pressure disturbance from the proportional flow valve is output by observer 2 compensate; 2.7.2) Design the sliding surface and take ; ; 2.7.3) Approach rate: Constant approach rate, and replace the sign function with a saturation function to alleviate the inherent chattering problem of sliding mode control, where Tuning parameters for the sliding mode control law, Parameters for adjusting the thickness of the boundary layer; ; 2.7.4) Yes Derivative and correct according to the disturbance observer output: ; Combining equations 27 and 28, we can obtain the decoupled sliding mode feedback control law: ; 2.8) Read the disturbance observer output ; 2.9) Modify the feedback control law output to complete decoupling; The modified feedback control law is as follows: ; 2.10) Determination of stability of feedback control law; The determination process is as follows: 2.10.1) Design of Lyapunov function: ; 2.10.2) Derivative of the designed Lyapunov function: ; 2.10.3) Whether the control rate is stable when both are greater than zero; 2.11) Read the optimization data of shared register 2 and judge the optimization time. 2.12) When the optimization time is less than 50ms, directly read the feedback control law tuning parameters; otherwise, read the offline tuning parameter Map; 2.13) Output the final control law; 2.14) Enter the next loop.

[0037] 3) Assign the stochastic gradient optimization algorithm to CPU2 for parallel operation, and optimize the sliding mode control tuning parameters under five step sizes at the same time. Take the average of the five optimized tuning parameters as the final output tuning parameters, and determine the stability of the tuning parameters. The stable tuning parameters are updated to overwrite the preset offline tuning parameter Map.

[0038] 3.1) Read the current output of the hydrogen system; Traditional sliding mode control tuning parameters It is only applicable to a system with a relative working condition. For the complex and changeable fuel cell hydrogen supply subsystem, the sliding mode control law with constant tuning parameters is difficult to meet the system requirements. Due to the diversity of working conditions, it is difficult to enumerate various tuning parameters by calibration. The gradient descent optimization method is simple and intuitive, suitable for large-scale data, highly practical, and can well meet the parameter optimization requirements of the system. Therefore, the present invention obtains the tuning parameters of the sliding mode control law through the stochastic gradient descent optimization method. ; 3.2) Establish cost function; The cost function is as follows: 3.2.1) Proportional flow valve: ; 3.2.2) Circulation pump: ; 3.3) Tuning parameters Iteration: The iteration process is as follows: 3.3.1) Proportional flow valve: ; 3.3.2) Circulation pump: ; in: Used to adjust the iteration step size of each step; 3.4) Simultaneously optimize the sliding mode control tuning parameters under five step sizes, and take the average of the five optimized tuning parameters as the final output tuning parameters ; 3.5) Yes Parameter determination, If not all values ​​are less than zero, an interrupt is triggered and CPU1 reads the preset tuning parameter Map; 3.6) All are less than zero, and the optimization time is judged; 3.7) If the optimization time is greater than 50ms, CPU1 directly reads the preset tuning parameter Map; 3.8) The optimization time is less than 50ms, and CPU1 directly reads the data stored in shared register 2; 3.9) Update offline tuning Map data; 3.10) Output the final control law; ; 3.11) Enter the next loop.

[0039] The present invention corrects the fuel cell output power according to traffic road information and power battery SOC, optimizes the stack output by correcting the dynamic feedforward error and the sliding surface of the feedback control law, and improves the economy and power. A control-oriented fuel cell hydrogen system model is established, and the control model is simplified through experimental data to facilitate the design of the control law.

[0040] The design of conventional controllers ignores the computing power of on-board chips, especially the optimization algorithm consumes a lot of computing power and is difficult to use on on-board controllers. Therefore, the present invention distributes the designed algorithm to the on-board multi-core chip for parallel operation, improves the algorithm operation speed, and reduces the on-board processor load. Power prediction correction and feedforward control are distributed to CPU0, disturbance observation and decoupling controller are distributed to CPU1, and stochastic gradient descent adaptive optimization is distributed to CPU2. The operation speed is improved and the processor load is reduced through multi-core parallelism.

[0041] A feedforward control law based on static feedforward and dynamic feedforward was designed. The static feedforward optimizes the flow and pressure fluctuation problems caused by the hysteresis response of various sub-components of the hydrogen system at the moment of stack startup. The dynamic feedforward compensates for the interference caused by transient fluctuations in the power demand of the fuel cell, further improving the stability of control.

[0042] The sliding mode control method is used to compensate for the inaccuracy of the control model. The sliding mode control tuning parameters under five step sizes are optimized simultaneously through the stochastic gradient descent method. The average of the five optimized tuning parameters is taken as the final output tuning parameters to reduce the noise interference caused by the gradient descent optimization process. At the same time, the stability of the output tuning parameters is judged, and the preset feedback control rate tuning parameters Map are continuously updated according to the stability judgment results, thereby improving the system's anti-interference ability and high robustness. In response to the coupling problem of flow and pressure in the hydrogen system, two sets of independent differential trackers and disturbance observers are designed. While optimizing the sliding mode control input, the flow, pressure and coupling are regarded as interference with each other, and this interference is compensated by the adaptive sliding mode feedback control law, realizing the decoupling control of the flow and pressure of the hydrogen system.

[0043] In order to verify the performance of the DASMC controller in this paper, a step load current is used to simulate the actual vehicle operating power change, and the performance of traditional sliding mode control SMC, decoupled sliding mode control DSMC and decoupled adaptive sliding mode control DASMC are compared and analyzed. The results show that the designed controller can realize the decoupling control of anode flow and pressure, and stabilize the hydrogen supply flow while reducing the anode-cathode pressure difference. The maximum anode-cathode pressure difference is about 0.01 bar, and the maximum flow supply error is 0.015 g / s; under the stack startup condition, the pressure fluctuation caused by the delayed response of sub-components is reduced by 0.122 bar; when the stack is running with variable load, it can quickly respond to the changes in pressure and flow within 0.02 s.

[0044] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0045] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A network-connected fuel cell vehicle hydrogen control system, characterized in that: The system comprises: Hydrogen storage bottle, pressure reducing valve, proportional flow valve, fuel cell, steam-water separator, purge valve, pressure sensor, circulation pump, check valve, drain valve; Wherein, a pressure reducing valve and a proportional flow valve are connected between the hydrogen storage bottle and the battery stack, the battery stack is connected to a steam-water separator, the steam-water separator is connected to a purge valve, the purge valve is connected to a pressure sensor, a circulation pump and a one-way valve, and the one-way valve is connected to a drain valve; The pressure reducing valve is used to reduce the high-pressure hydrogen pressure of the hydrogen storage bottle to the value required by the fuel cell, the proportional flow valve is used to adjust the flow of the hydrogen system into the stack, and the circulating pump is used to pressurize and recirculate the hydrogen; the steam-water separator is used to separate the hydrogen and the entrained water at the anode outlet of the fuel cell stack and discharge them through the drain valve, and the purge valve is used to remove the nitrogen that has penetrated and accumulated in the cathode cavity.

2. A method for controlling hydrogen in a fuel cell vehicle under network connection, characterized in that: The method is implemented based on a networked fuel cell vehicle hydrogen control system according to claim 1, and the method comprises the following steps:

1. Establishment of control model: 1) Proportional flow valve modeling, the proportional flow valve calculation formula is as follows: ; in: is the pressure at the front end of the proportional flow valve, is the atmospheric temperature, is the density of hydrogen, is a constant, It is the control input of the proportional flow valve; 2) Intake manifold modeling, the intake manifold formula is as follows: ; in, is the intake manifold volume, is the outlet flow of the proportional flow valve, is the outlet flow of the circulating pump, is the anode inlet flow rate of the stack, is the molar gas constant, Intake manifold inlet flow, Intake manifold outlet flow; 3) Stack modeling. Since the stack ignores the internal nitrogen and hydrogen permeation phenomena, and ignores the effect of water on the anode pressure and flow, the stack differential equation is as follows: ; ; ; in: Anode chamber pressure, Anode inlet flow, The hydrogen flow rate of the anode reaction, Anode outlet hydrogen flow rate, The pressure drop at the anode outlet of the stack caused by the hydrogen reaction. Anode flow field width, Anode flow field depth, Anode flow field length, Molar mass of hydrogen, Number of cells in the stack, The stack requires current, is the number of anode flow field channels, constant; 4) Return air manifold modeling, the return air manifold formula is as follows: ; in: Return manifold pressure, Return manifold inlet flow, Return manifold outlet flow, Return manifold volume, Stack temperature; 5) Circulation pump modeling, the circulation pump formula is as follows: ; in: is the proportional parameter of the circulating pump speed and the control input voltage, is the diameter of the circulating pump blade. The outlet pressure of the circulating pump is calculated by its isentropic efficiency and mechanical efficiency. The outlet pressure of the circulating pump is set to ,in is a variable related to the circulating pump inlet pressure, This is the control input for the circulation pump.

3. A method for controlling hydrogen in a fuel cell vehicle connected to a network according to claim 2, characterized in that: It also includes multi-core controller task allocation, using Infineon TC275T D-Step as the fuel cell controller, allocating the fuel cell hydrogen system power correction, feedforward control, disturbance observation, feedback decoupling control and parameter optimization to the three cores of the processor CPU0, CPU1, and CPU2. The parallel steps include: 1) Assign the grid-connected stack output power correction task and feedforward control algorithm to the first core CPU0 of the multi-core processor to run, update the stack required power in real time according to road information and SOC, and output the feedforward controller for transient control; 2) A feedback decoupling controller was designed based on the required flow and pressure information of the battery stack predicted and updated by CPU0, and the algorithm was assigned to CPU1 for parallel operation; 3) Assign the stochastic gradient optimization algorithm to CPU2 for parallel operation, and optimize the sliding mode control tuning parameters under five step sizes at the same time. Take the average of the five optimized tuning parameters as the final output tuning parameters, and determine the stability of the tuning parameters. The stable tuning parameters are updated to overwrite the preset offline tuning parameter Map.

4. A method for controlling hydrogen in a fuel cell vehicle connected to a network according to claim 3, characterized in that: The steps of allocating the network-connected battery stack output power correction task and the feedforward control algorithm to the first core CPU0 of the multi-core processor for execution, updating the battery stack required power in real time according to road information and SOC, and outputting the feedforward controller for transient control include: 1.1) Determine whether the fuel cell stack is in the startup phase. If so, calculate the corresponding static feedforward control law to compensate for the disturbance caused by the hysteresis response of the hydrogen system subcomponents in the startup phase; The static feedforward controller is designed as follows: 1.1.1) Determine the system state variables; State 1: Anode inlet pressure: ; State 2: Circulation pump speed: ; 1.1.2) Define system output: Proportional valve outlet mass flow, Anode inlet pressure: ; 1.1.3) Control input: Proportional flow valve opening, Hydrogen circulation pump motor control input voltage; ; 1.1.4) Definition : The hydrogen supply subsystem oversupplies hydrogen into the anode. The required hydrogen flow at the anode inlet under different working conditions is calculated as follows: ; in: is the Faraday constant, is the molar mass of hydrogen, is the number of cells in the stack, The current required for the battery stack; but The definition is as follows: ; 1.1.5) Yes Take a derivative: ; At the beginning of the operation of the fuel cell, due to the hysteresis of the entire fuel cell system, the flow rate of the recirculated hydrogen after being pressurized by the circulation pump is negligible compared to the flow rate output by the proportional flow valve, so here Ignore the influence of the circulating pump fluid. Simplified as follows: ; 1.1.6) Order , thus obtaining the static feedforward control law: ; 1.2) Obtain vehicle location information in real time; 1.3) Obtain road information in real time; 1.4) Obtain traffic light information in real time; 1.5) Obtain power battery SOC in real time; 1.6) Determine the future state of the vehicle based on road information, traffic light information and power battery SOC: rapid acceleration, rapid deceleration, slow acceleration, slow acceleration; 1.7) Four groups of correction factors are set to correct the stack demand current information sent by the FCU at the next moment; 1.8) Update the flow and pressure information of the hydrogen system demand supply and write it into the shared register; 1.9) Determine whether there is a step change in the power required by the fuel cell stack. If so, calculate the corresponding dynamic feedforward control law for disturbance compensation; The dynamic feedforward controller is designed as follows: 1.9.1) Correct the control input to the following form: ; 1.9.2) Correct the required flow rate for entering the pile : ; in: is the corrected fuel cell demand flow rate, The current required for the battery stack after correction; 1.9.3) Yes Derivative: ; 1.9.4) Substitute equations 16 and 17 into equation 19 and let , the dynamic feedforward control law is derived, and the specific formula is as follows: ; 1.10) An interrupt is triggered, and CPU1 reads the updated stack required flow and pressure information and feedforward control information; 1.11) Reading is completed and the interrupt is cleared; 1.12) Enter the next loop.

5. A method for controlling hydrogen in a fuel cell vehicle connected to a network according to claim 4, characterized in that: The steps of designing a feedback decoupling controller according to the required flow and pressure information of the battery stack updated by CPU0 and distributing the algorithm to CPU1 for parallel operation include: 2.1) Read the corrected stack required pressure and flow. If the reading time exceeds 1ms, interrupt the reading and use the last data; 2.2) Tracking differentiator to smooth flow and pressure; The differential tracker is a single-input dual-output module designed to smooth the input signal. Two sets of differential trackers are designed to optimize , the input is the corresponding power required by the stack , output The output is the processed signal. For the output differential, the specific formula of the tracking differentiator is designed as follows: 2.2.1) Proportional flow valve: ; 2.2.2) Circulation pump: ; in: Sampling period, Parameters that determine the speed of tracking; 2.3) Read the current output of the hydrogen system; 2.4) The disturbance observer collects the output for disturbance observation; Two sets of disturbance observers are designed. The flow control of the proportional flow valve and the pressure control of the circulating pump are regarded as disturbances to each other. The disturbance effect is decoupled on the adaptive sliding mode controller. The disturbance observer is designed as follows: 2.4.1) Proportional flow valve: The proportional flow valve outlet flow rate is: ; 2.4.2) Circulation pump: is the outlet pressure of the circulation pump: ; in: Tune the parameters for the observer, for The length of the linear segment of the function, is a constant between 0 and 1; 2.5) Read the tracking differentiator output and the disturbance observer output ; 2.6) Update the feedback controller input parameters; 2.7) Calculation of control law of feedback controller; The specific design process of the sliding mode decoupling controller is as follows: 2.7.1) Error design is as follows: ; The disturbance from the circulating pump flow is output by observer 1 Compensation, the pressure disturbance from the proportional flow valve is output by observer 2 compensate; 2.7.2) Design the sliding surface and take ; ; 2.7.3) Approach rate: Constant approach rate, and replace the sign function with a saturation function to alleviate the inherent chattering problem of sliding mode control, where Tuning parameters for the sliding mode control law, Parameters for adjusting the thickness of the boundary layer; ; 2.7.4) Yes Derivative and correct according to the disturbance observer output: ; Combining equations 27 and 28, we can obtain the decoupled sliding mode feedback control law: ; 2.8) Read the disturbance observer output ; 2.9) Modify the feedback control law output to complete decoupling; The modified feedback control law is as follows: ; 2.10) Determination of stability of feedback control law; The determination process is as follows: 2.10.1) Design of Lyapunov function: ; 2.10.2) Derivative of the designed Lyapunov function: ; 2.10.3) Whether the control rate is stable when both are greater than zero; 2.11) Read the optimization data of shared register 2 and judge the optimization time. 2.12) When the optimization time is less than 50ms, directly read the feedback control law tuning parameters; otherwise, read the offline tuning parameter Map; 2.13) Output the final control law; 2.14) Enter the next loop.

6. A method for controlling hydrogen in a fuel cell vehicle connected to a network according to claim 5, characterized in that: The steps of assigning the stochastic gradient optimization algorithm to CPU2 for parallel operation, optimizing the sliding mode control tuning parameters under five step sizes, taking the average of the five optimized tuning parameters as the final output tuning parameters, and determining the stability of the tuning parameters, and updating the stable tuning parameters to cover the preset offline tuning parameter Map include: 3.1) Read the current output of the hydrogen system; Obtaining the tuning parameters of the sliding mode control law through the stochastic gradient descent optimization method ; 3.2) Establish cost function; The cost function is as follows: 3.2.1) Proportional flow valve: ; 3.2.2) Circulation pump: ; 3.3) Tuning parameters Iteration: The iteration process is as follows: 3.3.1) Proportional flow valve: ; 3.3.2) Circulation pump: ; in: Used to adjust the iteration step size of each step; 3.4) Simultaneously optimize the sliding mode control tuning parameters under five step sizes, and take the average of the five optimized tuning parameters as the final output tuning parameters ; 3.5) Yes Parameter determination, If not all values ​​are less than zero, an interrupt is triggered and CPU1 reads the preset tuning parameter Map; 3.6) All are less than zero, and the optimization time is judged; 3.7) If the optimization time is greater than 50ms, CPU1 directly reads the preset tuning parameter Map; 3.8) The optimization time is less than 50ms, and CPU1 directly reads the data stored in shared register 2; 3.9) Update offline tuning Map data; 3.10) Output the final control law; ; 3.11) Enter the next loop.

Citation Information

Patent Citations

  • Vehicle-mounted hydrogen storage system

    CN116914186A

Cited By

  • Shutdown purging method for fuel cell system

    CN119890356A

  • Fault diagnosis and control method for double proportional valves of fuel cell system

    CN120221720A