CN214670127U - Fuel cell control algorithm hardware-in-the-loop test platform - Google Patents
Fuel cell control algorithm hardware-in-the-loop test platform Download PDFInfo
- Publication number
- CN214670127U CN214670127U CN202022924266.9U CN202022924266U CN214670127U CN 214670127 U CN214670127 U CN 214670127U CN 202022924266 U CN202022924266 U CN 202022924266U CN 214670127 U CN214670127 U CN 214670127U
- Authority
- CN
- China
- Prior art keywords
- fuel cell
- control algorithm
- test platform
- hardware
- display control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 239000000446 fuel Substances 0.000 title claims abstract description 127
- 238000012360 testing method Methods 0.000 title claims abstract description 70
- 238000004422 calculation algorithm Methods 0.000 title claims abstract description 62
- 238000004088 simulation Methods 0.000 claims abstract description 50
- 238000012545 processing Methods 0.000 claims abstract description 31
- 230000003993 interaction Effects 0.000 claims abstract description 12
- 238000004364 calculation method Methods 0.000 claims abstract description 8
- 238000012795 verification Methods 0.000 claims abstract description 8
- 238000002347 injection Methods 0.000 claims description 8
- 239000007924 injection Substances 0.000 claims description 8
- UFHFLCQGNIYNRP-UHFFFAOYSA-N Hydrogen Chemical compound [H][H] UFHFLCQGNIYNRP-UHFFFAOYSA-N 0.000 claims description 6
- 229910052739 hydrogen Inorganic materials 0.000 claims description 6
- 239000001257 hydrogen Substances 0.000 claims description 6
- 230000004044 response Effects 0.000 claims description 5
- 238000001816 cooling Methods 0.000 claims description 4
- 230000002452 interceptive effect Effects 0.000 claims description 4
- 238000012544 monitoring process Methods 0.000 claims description 4
- 238000001514 detection method Methods 0.000 claims description 3
- 238000003745 diagnosis Methods 0.000 claims description 3
- 238000000034 method Methods 0.000 abstract description 23
- 238000011161 development Methods 0.000 abstract description 9
- 230000008569 process Effects 0.000 abstract description 9
- 238000010998 test method Methods 0.000 abstract description 2
- 210000004027 cell Anatomy 0.000 description 94
- 238000010586 diagram Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000000243 solution Substances 0.000 description 2
- 230000003466 anti-cipated effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000003850 cellular structure Anatomy 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 125000004435 hydrogen atom Chemical group [H]* 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000013178 mathematical model Methods 0.000 description 1
- 239000012528 membrane Substances 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Fuel Cell (AREA)
Abstract
The utility model relates to the field of fuel cells, in particular to a fuel cell control algorithm hardware-in-loop test platform, wherein a simulation host computer of the hardware-in-loop test platform receives signals of a test case device and/or a display control device for calculation and outputs the calculation result to the display control device and a real-time processing device; the real-time processing device interacts the processed signals with the signal simulation device and the fuel cell controller through the I/O interface device; the I/O interface device, the signal simulation device and the display control device are respectively connected with the fuel cell controller for data interaction, so that the verification of a fuel cell control algorithm in the fuel cell controller is realized. The embodiment verifies whether the control algorithm is in accordance with the expected development and the robustness through the data interaction between the test platform and the fuel cell controller; the provided test method of the hardware-in-the-loop test platform solves the problems of time consumption, danger, narrow test range, high cost and the like in the development process of the control algorithm of the fuel cell engine.
Description
Technical Field
The utility model relates to a fuel cell field, concretely relates to fuel cell control algorithm hardware is at ring test platform.
Background
The hydrogen proton exchange membrane fuel cell is a high-efficiency pollution-free energy conversion device, and converts chemical energy stored in hydrogen into electric energy and supplies the electric energy to an external load. The fuel cell engine control algorithm is of great importance for the performance, durability and reliability of the fuel cell engine, namely whether the control algorithm logic is reasonable and whether the code is correct directly influences the performance, durability, reliability and the like of the fuel cell. In the development process of a fuel cell engine control algorithm, control algorithm test verification is an important link, in the prior art, software simulation and a real rack with high-pressure hydrogen are generally adopted to test the original fuel cell control algorithm, and the problems of long time consumption, high risk, narrow test range, high cost and the like exist.
SUMMERY OF THE UTILITY MODEL
In order to overcome the defects of the prior art, the utility model provides a fuel cell control algorithm hardware is at ring test platform, has solved fuel cell engine control algorithm development in-process, and the test is consuming time, dangerous, and test range is narrow, problem such as with high costs.
An embodiment of the utility model provides a fuel cell control algorithm hardware is at ring test platform, hardware includes at ring test platform:
simulating a host: for running a fuel cell simulation model;
test case device: for providing test cases written in whole or at least in part for a fuel cell engine control algorithm;
the display control device: used for displaying monitoring information and sending response control command;
a real-time processing device: for processing the received signal in real time;
I/O interface means: for signal and data interaction with a fuel cell controller;
the signal simulation device comprises: the sensor signal is used for simulating and simulating the sensor signal required by the fuel cell;
the simulation host computer receives signals of the test case device and/or the display control device for calculation and outputs calculation results to the display control device and the real-time processing device; the real-time processing device interacts the processed signals with the signal simulation device and the fuel cell controller through the I/O interface device;
the I/O interface device, the signal simulation device and the display control device are respectively connected with the fuel cell controller for data interaction, so that the verification of a fuel cell control algorithm in the fuel cell controller is realized.
Further, the hardware-in-the-loop test platform further comprises a fault injection device: for simulating a fuel cell fault;
the fault injection device is connected with the I/O interface device to perform simulated fault processing on the signals transmitted by the real-time processing device, and performs interactive verification on the fault diagnosis and processing algorithm of the fuel cell control algorithm with the fuel cell controller.
Furthermore, the real-time processing device is connected with the display control device, and the data processed by the real-time processing device is synchronously displayed on the display control device.
Further, a fuel cell simulation model in the simulation host is built through a server.
Further, the fuel cell simulation model comprises a stack, a hydrogen supply system, an air supply system and a cooling system submodel.
Further, the display control device comprises an output module for outputting a detection report of a fuel cell control algorithm in the fuel cell controller.
Further, the display control apparatus further includes an input control device, and the input control device includes a touch screen, a mouse, and/or a keyboard.
As another aspect of the present invention, the present invention also provides a fuel cell control algorithm hardware-in-loop test method, the method comprising
Programming a fuel cell control algorithm to a fuel cell controller;
connecting the I/O interface device of the fuel cell control algorithm hardware in the ring test platform in any embodiment with the fuel cell controller for data interaction;
triggering the display control device, adjusting the working environment and working parameters of the fuel cell, sending a control command by the display control device, and calling a test case corresponding to the control command in the test case device by the simulation host;
verifying a fuel electric control cell algorithm in the fuel cell controller;
and outputting a test report.
The beneficial effects of the utility model include at least:
the embodiment of the utility model provides a be based on fuel cell hardware at the ring platform, as fuel cell engine control algorithm test platform to write fuel cell control algorithm to the fuel cell controller, verify through test platform and fuel cell controller's data interaction whether control algorithm accords with anticipated development and robustness; the method for testing the hardware-in-the-loop test platform provided by the embodiment solves the problems of time consumption, danger, narrow test range, high cost and the like in the development process of the control algorithm of the fuel cell engine.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram of a fuel cell control algorithm hardware-in-loop test platform according to an embodiment of the present invention;
FIG. 2 is a flow chart of a hardware-in-the-loop testing method for a fuel cell control algorithm according to an embodiment of the present invention;
fig. 3 is a flow chart of a method for constructing a fuel cell simulation model according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. The components of embodiments of the present invention, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the accompanying drawings, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. Based on the embodiment of the present invention, all other embodiments obtained by the person skilled in the art without creative work belong to the protection scope of the present invention.
In order to explain the technical content, the objects and the effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
With reference to fig. 1, an embodiment of the present invention provides a fuel cell control algorithm hardware-in-the-loop test platform, which is mainly used for testing whether a fuel electronic engine control algorithm logic is reasonable and whether a code is correct; the hardware-in-the-loop test platform comprises: a simulation host 1 for operating a fuel cell simulation model; a test case device 2 for providing a test case written for all or at least part of a fuel cell engine control algorithm; a display control device 3 for displaying the monitoring information and sending a response control command; real-time processing means 4 for processing the received signals in real time; I/O interface means 5 for signal and data interaction with the fuel cell controller; a signal simulation means 6 for simulating a sensor signal required for simulating the fuel cell; the simulation host 1 receives signals of the test case device 2 and/or the display control device 3 for calculation, and outputs calculation results to the display control device and the real-time processing device 4; the real-time processing device 4 interacts the processed signals with the signal simulation device 6 and the fuel cell controller 7 through the I/O interface device 5; the I/O interface device 5, the signal simulation device 6 and the display control device 3 are respectively connected with the fuel cell controller 7 for data interaction, so as to realize the verification of the fuel cell control algorithm in the fuel cell controller 7.
The fuel cell controller may be an ECU, i.e., an electronic control unit, among others.
Preferably, the hardware-in-the-loop test platform further comprises a fault injection device 8: for simulating a fuel cell fault; the fault injection device 8 is connected with the I/O interface device to perform simulated fault processing on the signals transmitted by the real-time processing device 4, and performs interactive verification on the fault diagnosis and processing algorithm of the fuel cell control algorithm with the fuel cell controller 8.
Preferably, the real-time processing device 4 is connected to the display control device 3, and the data processed by the real-time processing device 4 is synchronously displayed on the display control device 3.
Preferably, the simulation host 1 is a lower computer operated by the fuel cell simulation model, and is capable of operating the fuel cell simulation model, identifying the working environment and working parameters of the fuel cell, and implementing off-line simulation, wherein the fuel cell simulation model may be built by a server using Matlab software, compiled and downloaded to the simulation host operation model. Preferably, the fuel cell physical simulation model comprises: a galvanic pile, a hydrogen supply system, an air supply system, a cooling system, etc.
The display control device 3 is connected with the simulation host 1, the real-time processing device 4 and the fuel cell controller 7 and is used for displaying monitoring information and sending response control commands. Preferably, the display control means 3 includes an output module for outputting a detection report of a fuel cell control algorithm in the fuel cell controller. The display control device 3 may be a touch panel device, or may input a control command by another method.
Preferably, the display control apparatus 3 further comprises an input control device, the input control device comprising a touch screen, a mouse and/or a keyboard.
In the embodiment, the test platform is an integrated installation, different models can be adjusted through different requirements, which are not listed in the text one by one, the simulation host 1 runs the fuel cell simulation model, and the test case device 2 can repeatedly call and utilize specific test cases written for all or part of the fuel cell control algorithm during testing; the test case device 2 is mainly used for simulating the actual operation condition of the fuel cell system and inputting a test case to the simulation host to obtain the response parameters of the fuel cell algorithm; the display control device 3 displays information required by the test and controls the hardware-in-loop platform; the real-time processing device 4 processes the received signals in real time; the I/O interface device 5 is a signal and data interactive interface between a hardware-in-the-loop platform and a fuel cell controller 7; the signal simulation means 6 is capable of simulating the required sensor signals of the fuel cell; the fault injection device 8 is used to simulate a fuel cell fault.
The control algorithm of the fuel cell engine is burnt into the fuel cell controller 7, and is connected with the I/O interface device 5, the fault injection device 8, the signal simulation device 6 and the display control device 3 to carry out data interaction to verify whether the control algorithm is in accordance with the expected development and the robustness. The method solves the problems of time consumption, danger, narrow test range, high cost and the like in the development process of the fuel cell engine control algorithm.
As another aspect of the present invention, the present invention also provides a fuel cell control algorithm hardware-in-loop testing method, the method comprising:
s11, programming a fuel cell control algorithm to the fuel cell controller;
s12, connecting the I/O interface device of the fuel cell control algorithm hardware in the ring test platform and the fuel cell controller in any of the above embodiments for data interaction;
s13, triggering the display control device to adjust the working environment and working parameters of the fuel cell, sending a control command by the display control device, and calling a test case corresponding to the control command in the test case device by the simulation host;
s14 verifying the fuel cell control algorithm in the fuel cell controller;
s15 outputs a test report.
The embodiment is a method for testing a fuel cell control algorithm based on a hardware-in-loop platform, and solves the problems of time consumption, danger, narrow test range, high cost and the like in the development process of the fuel cell engine control algorithm.
As another aspect of the present invention, there is provided a method for constructing a fuel cell simulation model of the above fuel cell control algorithm hardware on a ring test platform, the method comprising:
s21 collecting and analyzing the operation data of the fuel cell engine in a preset time period;
s22, building a physical simulation model by using Matlab software in combination with the characteristics of the fuel cell components and the stack;
and S23, generating a physical simulation model into a fuel cell simulation model running on a ring test platform by using the fuel cell control algorithm hardware by adopting compiling software, and downloading the fuel cell simulation model to the simulation device.
Preferably, the fuel cell simulation model is an engine model, and the engine model includes a stack sub-model, a hydrogen supply system sub-model, an air supply system sub-model and a cooling system sub-model.
In this embodiment, the operation data of the fuel cell engine is collected, and a fuel cell simulation model is established on a hardware-in-loop platform through a mathematical model, wherein the collection and analysis can be performed by developers, and can also be performed automatically by a data acquisition device. Preferably, preset time periods can be set according to different states of the engine, for example, the preset time period of an engine test cycle at the early stage is set to be 5 months, the preset time period is regularly collected and updated along with the engine application at the later stage, the preset time period can be set to be 1 month, 3 months and the like, the model can be built through a computer, the model is downloaded to a simulation host operation model after being compiled, the model is downloaded to a lower computer for testing after being compiled according to test platform compiling software, and whether the model is operated normally and meets design expectations is determined.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present invention, and all should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (7)
1. A fuel cell control algorithm hardware-in-the-loop test platform, the hardware-in-the-loop test platform comprising:
simulating a host: for running a fuel cell simulation model;
test case device: for providing test cases written in whole or at least in part for a fuel cell engine control algorithm;
the display control device: used for displaying monitoring information and sending response control command;
a real-time processing device: for processing the received signal in real time;
I/O interface means: for signal and data interaction with a fuel cell controller;
the signal simulation device comprises: the sensor signal is used for simulating and simulating the sensor signal required by the fuel cell;
the simulation host computer receives signals of the test case device and/or the display control device for calculation and outputs calculation results to the display control device and the real-time processing device; the real-time processing device interacts the processed signals with the signal simulation device and the fuel cell controller through the I/O interface device;
the I/O interface device, the signal simulation device and the display control device are respectively connected with the fuel cell controller for data interaction, so that the verification of a fuel cell control algorithm in the fuel cell controller is realized.
2. The fuel cell control algorithm hardware-in-the-loop test platform of claim 1, further comprising a fault injection device: for simulating a fuel cell fault;
the fault injection device is connected with the I/O interface device to perform simulated fault processing on the signals transmitted by the real-time processing device, and performs interactive verification on the fault diagnosis and processing algorithm of the fuel cell control algorithm with the fuel cell controller.
3. The fuel cell control algorithm hardware-in-the-loop test platform of claim 1, wherein the real-time processing device is connected with the display control device, and data processed by the real-time processing device is synchronously displayed on the display control device.
4. The fuel cell control algorithm hardware-in-the-loop test platform of claim 1, wherein the fuel cell simulation model in the simulation host is built by a server.
5. The fuel cell control algorithm hardware-in-the-loop test platform of claim 4, wherein the fuel cell simulation model comprises stack, hydrogen supply system, air supply system, cooling system sub-models.
6. The fuel cell control algorithm hardware-in-the-loop test platform of any one of claims 1-5, wherein the display control device comprises an output module for outputting a detection report of a fuel cell control algorithm in a fuel cell controller.
7. The fuel cell control algorithm hardware-in-the-loop test platform of claim 6, wherein the display control means further comprises an input control device comprising a touch screen, a mouse, and/or a keyboard.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202022924266.9U CN214670127U (en) | 2020-12-09 | 2020-12-09 | Fuel cell control algorithm hardware-in-the-loop test platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202022924266.9U CN214670127U (en) | 2020-12-09 | 2020-12-09 | Fuel cell control algorithm hardware-in-the-loop test platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN214670127U true CN214670127U (en) | 2021-11-09 |
Family
ID=78498514
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202022924266.9U Active CN214670127U (en) | 2020-12-09 | 2020-12-09 | Fuel cell control algorithm hardware-in-the-loop test platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN214670127U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114609924A (en) * | 2020-12-09 | 2022-06-10 | 北京亿华通科技股份有限公司 | Fuel cell control algorithm hardware-in-loop test platform and test method |
-
2020
- 2020-12-09 CN CN202022924266.9U patent/CN214670127U/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114609924A (en) * | 2020-12-09 | 2022-06-10 | 北京亿华通科技股份有限公司 | Fuel cell control algorithm hardware-in-loop test platform and test method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102650966B (en) | A kind of embedded software test method of Reuse-Oriented and test macro thereof | |
CN109324601A (en) | The test platform of robot controller or control system based on hardware in loop | |
US8954920B2 (en) | Apparatus for developing embedded software and a process for making the same | |
CN114385480A (en) | Hardware-in-loop test system for automatic verification of FOTA function of vehicle | |
CN112036023A (en) | Software integrated generation system for generator transformer bank protection device | |
CN214670127U (en) | Fuel cell control algorithm hardware-in-the-loop test platform | |
US8204608B2 (en) | Monitoring and control apparatus | |
Walker et al. | A simulation environment for ITER PCS development | |
US7895575B2 (en) | Apparatus and method for generating test driver | |
Michaels et al. | Model-based systems engineering and control system development via virtual hardware-in-the-loop simulation | |
CN114609924A (en) | Fuel cell control algorithm hardware-in-loop test platform and test method | |
Zuo et al. | A new design method of automotive electronic real-time control system | |
Kum et al. | Automated testing for automotive embedded systems | |
CN112231165B (en) | Memory fault simulation method based on link library injection and memory mapping modes | |
CN111400160B (en) | Code verification method and device and vehicle | |
CN114826954A (en) | Vehicle-mounted Ethernet monitoring system and monitoring method | |
CN115291587B (en) | Platform software model architecture based on multi-HIL test system, automobile, computer readable storage medium and electronic equipment | |
Heimdahl et al. | NIMBUS: A tool for specification centered development | |
Ogata et al. | Approach to Testing Many State Machine Models in Education. | |
CN113295434B (en) | Brake test system, platform and method | |
Liakh et al. | LabVIEW-based automatic verification of process-oriented software | |
Gurudev et al. | Role of Hardware in the Loop Testing in Model Based Design | |
Yang et al. | Design and Implementation of BCM-Oriented Automatic Test System | |
Moroz et al. | Software Development Methodology of Hydrogen Generator Control System Based on User Interface | |
Zhang et al. | Specifying and verifying PLC systems with TLA+: A case study |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |