Hardware-in-the-loop test method and system for exhaust gas and fuel reformer control system
By developing hardware in-loop testing methods and systems in the exhaust gas-fuel reformer control system, the problems of high testing costs, high risks and difficult functional evaluation in the prior art are solved, and efficient and accurate testing of the controller is achieved and Use value assessment.
Patent Information
- Application Number
- CN202411235840.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2025-02-14
AI Technical Summary
The prior art lacks a hardware in-ring testing system for exhaust gas-fuel reformer control systems, resulting in high testing costs, high risks and inability to effectively evaluate the functions and use value of the controller.
A hardware-in-loop testing method and system for exhaust gas and fuel reformer control system is proposed. Through the steps of initializing real-time simulation model, self-testing, user control function and automatic control mode switching, the controller is efficient, Accurate tests and evaluate the use value of the controller by comparing the gas emission differences.
It realizes efficient and accurate testing of the exhaust gas-fuel reformer control system controller, reduces testing costs and risks, and can automatically evaluate the functions and use value of the controller.
Smart Images

Figure CN119439945A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a hardware-in-the-loop testing method and system for an exhaust gas and fuel reformer control system. Background Art
[0002] At present, marine LNG engines have problems such as low power and high NOx (nitrogen oxide) emissions. The use of exhaust gas-fuel reforming recirculation technology can effectively improve the performance of the engine and suppress NOx emissions. The key to exhaust gas-fuel reforming recirculation technology lies in the exhaust gas-fuel reformer, which can catalytically reform part of the exhaust gas (unburned hydrocarbons HC) and fuel under high temperature conditions to produce hydrogen-rich reformed gas. The addition of the exhaust gas-fuel reformer further increases the complexity of the engine, and it is necessary to develop a corresponding control system for the exhaust gas-fuel reformer.
[0003] The development of control systems generally uses the V process, which is a software development model. Hardware-in-the-loop testing is a key part of the process. It uses a real-time processor to run the simulation model of the controlled object, and communicates with the control system through an interface, allowing the control system to work in a virtual environment to achieve testing of the controller.
[0004] However, current research on hardware-in-the-loop testing technology is mostly focused on key automotive controllers, and related real-machine testing carries the risk of damaging the test bench, and the cost of repeated testing and extreme operating condition testing is high. There is currently no hardware-in-the-loop testing system for specific component controllers - exhaust gas - fuel reformer control systems. Summary of the invention
[0005] The main purpose of the embodiments of the present application is to propose a hardware-in-the-loop testing method and system for an exhaust gas and fuel reformer control system, aiming to achieve efficient and accurate testing of the controller of the exhaust gas and fuel reformer control system.
[0006] To achieve the above objectives, one aspect of an embodiment of the present application provides a hardware-in-the-loop testing method for an exhaust gas and fuel reformer control system, the method comprising:
[0007] Initialize the real-time simulation model of the exhaust gas and fuel reformer control system;
[0008] Through the self-test operation of the controller, the self-test result is obtained;
[0009] Under the user control function, the input exhaust gas recirculation valve opening preset value and natural gas flow preset value are sent to the controller for execution, and a first execution result of the real-time simulation model is obtained;
[0010] Under the automatic control function, switching the mode of the exhaust gas and fuel reformer control system according to the change of the system state value, and obtaining a second execution result of the real-time simulation model;
[0011] Determining a function status of the controller according to the self-test result, the first execution result, and the second execution result;
[0012] The use value of the controller is determined by comparing the offline simulation results of the original machine mode of the real-time simulation model with the real-time simulation results of the reforming mode.
[0013] In some embodiments, the initialization process of the real-time simulation model of the exhaust gas and fuel reformer control system comprises the following steps:
[0014] The engine speed in the real-time simulation model is initialized to 0.
[0015] In some embodiments, the self-test operation of the controller to obtain the self-test result includes the following steps:
[0016] Control the actuator opening through the controller;
[0017] When the actuator opening reaches the maximum and a preset pass signal is fed back, the self-test result is determined to be passed;
[0018] When the actuator opening does not reach the maximum and a preset fail signal is fed back, the self-test result is determined to be fail;
[0019] When the self-check fails and it is determined that the logic signal of the controller is wrong, the step of initializing the real-time simulation model is repeated;
[0020] When the self-test fails and the logic signal of the controller is determined to be correct, the self-test result is determined to be an abnormality of the self-test function.
[0021] In some embodiments, under the user control function, sending the input exhaust gas recirculation valve opening preset value and natural gas flow preset value to the controller for execution, and obtaining the first execution result of the real-time simulation model includes the following steps:
[0022] Obtaining the preset value of the exhaust gas recirculation valve opening and the preset value of the natural gas flow rate input by the user on the host computer;
[0023] Sending the preset value of the exhaust gas recirculation valve opening or the preset value of the natural gas flow rate to the controller;
[0024] The controller controls the exhaust gas recirculation valve to open according to the preset exhaust gas recirculation valve opening value, thereby obtaining an actual exhaust gas recirculation valve opening value;
[0025] The controller controls the injection valve to open according to the preset value of the natural gas flow rate, thereby obtaining an actual value of the injection valve opening;
[0026] The exhaust gas recirculation valve opening actual value and the injection valve opening actual value are used as the first execution result of the real-time simulation model.
[0027] In some embodiments, under the automatic control function, switching the mode of the exhaust gas and fuel reformer control system according to the change of the system state value to obtain the second execution result of the real-time simulation model includes the following steps:
[0028] When the system state value is lower than the first threshold condition, cyclically detecting the engine state and the reformer state; wherein the system state value includes the engine speed, the intake manifold pressure and the reformer temperature;
[0029] When the system state value is higher than a fourth threshold condition, switching the system mode to a resetting mode;
[0030] When the system state value is between a third threshold condition and a second threshold condition, switching the system mode to a sleep mode;
[0031] When the system status value is higher than the third condition threshold value in the sleep mode, the sleep mode is awakened and the system mode is switched to the resetting mode;
[0032] When the duration of the sleep mode reaches a preset duration without being awakened, switching the system mode to a shutdown mode;
[0033] The opening and closing states of the exhaust gas recirculation valve and the injection valve in each of the system modes are obtained to obtain a second execution result.
[0034] In some embodiments, determining the function status of the controller according to the self-test result, the first execution result and the second execution result comprises the following steps:
[0035] When the self-test result is self-test passed, and the actual value of the first execution result is consistent with the preset value, it is determined that the controller works normally under the user control function;
[0036] When the self-test result is self-test passed, and the second execution result is consistent with the expected execution result, it is determined that the controller works normally under the automatic control function.
[0037] In some embodiments, comparing the offline simulation result of the original machine mode of the real-time simulation model with the real-time simulation result of the reforming mode to determine the use value of the controller includes the following steps:
[0038] Obtaining a first nitrogen oxide specific emission value of an original engine mode of the real-time simulation model;
[0039] Obtaining a second nitrogen oxide emission ratio value and a second carbon monoxide emission ratio value of the reforming mode of the real-time simulation model;
[0040] When the second nitrogen oxide emission ratio value is lower than the first nitrogen oxide emission ratio value, and the second nitrogen oxide emission ratio value and the second carbon monoxide emission ratio value both meet the emission standards, it is determined that the controller is worth using.
[0041] To achieve the above purpose, another aspect of the embodiment of the present application provides a hardware-in-the-loop test system for an exhaust gas and fuel reformer control system, the system comprising:
[0042] The first module is used to initialize the real-time simulation model of the exhaust gas and fuel reformer control system;
[0043] The second module is used to obtain the self-test result through the self-test operation of the controller;
[0044] A third module is used to send the input exhaust gas recirculation valve opening preset value and natural gas flow preset value to the controller for execution under the user control function, and obtain the first execution result of the real-time simulation model;
[0045] The fourth module is used to switch the mode of the exhaust gas and fuel reformer control system according to the change of the system state value under the automatic control function, and obtain the second execution result of the real-time simulation model; wherein the system mode includes a reforming mode, a standby mode, a sleep mode and a shutdown mode;
[0046] A fifth module, configured to determine a function status of the controller according to the self-test result, the first execution result and the second execution result;
[0047] The sixth module is used to determine the use value of the controller by comparing the offline simulation result of the original machine mode of the real-time simulation model with the real-time simulation result of the reforming mode.
[0048] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.
[0049] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0050] The embodiments of the present application include at least the following beneficial effects: The present application provides a hardware-in-the-loop testing method and system for an exhaust gas and fuel reformer control system. The scheme simulates and tests the execution results of the controller in various modes under user control and automatic control functions on a real-time simulation model of the exhaust gas and fuel reformer control system, and configures corresponding threshold conditions to automatically switch the system mode to obtain the test results. It can also test the use value of the controller by comparing gas emission differences, which is conducive to automated, efficient and accurate testing of the controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0052] Figure 1 It is a step diagram of a hardware-in-the-loop testing method of an exhaust gas and fuel reformer control system provided in an embodiment of the present application;
[0053] Figure 2 is a flow chart of a hardware-in-the-loop testing method for an exhaust gas and fuel reformer control system provided in an embodiment of the present application;
[0054] Figure 3 It is a module schematic diagram of a hardware-in-the-loop test system for an exhaust gas and fuel reformer control system provided in an embodiment of the present application;
[0055] Figure 4 is a schematic diagram of the structure of an exemplary hardware-in-the-loop test system provided in an embodiment of the present application;
[0056] Figure 5 It is a structural diagram of a hardware group exchange simulation platform provided in an embodiment of the present application;
[0057] Figure 6 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application.
[0058] Figure numerals: 1 represents a host computer; 2 represents a hardware-in-the-loop platform; 3 represents a controller; 21 represents a real-time processor; 22 represents a CAN board; 23 represents a data acquisition card. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0060] Although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first / S100", "second / S200", etc. in the specification, claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0061] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0062] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0063] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0064] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0065] Before describing the embodiments of the present application in detail, some nouns and terms involved in the embodiments of the present application are first described. The nouns and terms involved in the embodiments of the present application are subject to the following explanations.
[0066] (1) Reforming mode: the controller controls the exhaust gas reforming recirculation mode in which the reformer is turned on;
[0067] (2) Original engine mode: refers to the pure engine mode without entering exhaust gas reforming and recirculation.
[0068] In the related technology, the traditional method of testing directly on the physical test platform can only test the basic working conditions of the controller. Testing of extreme working conditions requires a lot of cost, and there is also a risk of damaging the test platform during basic working condition testing. In addition, the existing hardware-in-the-loop testing is mostly aimed at key automotive controllers, and there is no hardware-in-the-loop testing system for specific component controllers - exhaust-fuel reformer control systems.
[0069] In view of this, a hardware-in-the-loop test method and system for an exhaust gas and fuel reformer control system are provided in an embodiment of the present application. The scheme initializes the real-time simulation model of the exhaust gas and fuel reformer control system; obtains the self-test result through the self-test operation of the controller; under the user control function, the input exhaust gas recirculation valve opening preset value and natural gas flow preset value are sent to the controller for execution, and the first execution result of the real-time simulation model is obtained; under the automatic control function, the exhaust gas and fuel reformer control system is switched according to the change of the system state value, and the second execution result of the real-time simulation model is obtained; the function of the controller is determined according to the self-test result, the first execution result and the second execution result; the use value of the controller is determined according to the offline simulation result of the original machine mode of the real-time simulation model and the real-time simulation result of the reforming mode; it is conducive to the automatic and efficient and accurate testing of the controller. In addition, the simulation experiment will not cause actual danger, and there is no need to build a real exhaust gas and fuel reforming environment. It is low in cost and can adapt to different test objects by changing the evil structure and parameters in the real-time model, and has high flexibility.
[0070] The hardware-in-the-loop test method of the exhaust gas and fuel reformer control system provided in the embodiment of the present application relates to the field of computer technology. The hardware-in-the-loop test method of the exhaust gas and fuel reformer control system provided in the embodiment of the present application can be applied to the terminal, can also be applied to the server, and can also be software running in the terminal or the server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or it can be configured as a server cluster or distributed system composed of multiple physical servers, and can also be configured to provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms and other basic cloud computing services. The cloud server, the server can also be a node server in the blockchain network; the software can be an application of the hardware-in-the-loop test method for the exhaust gas and fuel reformer control system, etc., but is not limited to the above forms.
[0071] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0072] Figure 1 is an optional flow chart of a hardware-in-the-loop testing method for an exhaust gas and fuel reformer control system provided in an embodiment of the present application, Figure 1 The method may include but is not limited to steps S100 to S600.
[0073] Step S100, initializing the real-time simulation model of the exhaust gas and fuel reformer control system;
[0074] Step S200, obtaining a self-test result through a self-test operation of the controller.
[0075] Step S300, under the user control function, sending the input exhaust gas recirculation valve opening preset value and natural gas flow preset value to the controller for execution, and obtaining the first execution result of the real-time simulation model.
[0076] Step S400, under the automatic control function, switching the mode of the exhaust gas and fuel reformer control system according to the change of the system state value, and obtaining the second execution result of the real-time simulation model.
[0077] Step S500: determining the function status of the controller according to the self-test result, the first execution result and the second execution result.
[0078] Step S600, comparing the offline simulation result of the original machine mode of the real-time simulation model with the real-time simulation result of the reconfiguration mode to determine the use value of the controller.
[0079] Steps S100 to S600 shown in the embodiment of the present application simulate the execution results of the controller in each mode under user control and automatic control functions by using a real-time simulation model of the exhaust gas and fuel reformer control system, and configure corresponding threshold conditions to automatically switch the system mode to obtain the test results. The use value of the controller can also be tested by comparing gas emission differences, which is conducive to automated, efficient and accurate testing of the controller.
[0080] In some embodiments, step S100 includes but is not limited to the following steps S110:
[0081] Step S110, initializing the engine speed in the real-time simulation model to 0.
[0082] In some embodiments, step S200 includes but is not limited to the following steps S210 to S250:
[0083] Step S210, controlling the actuator opening by the controller;
[0084] Step S220, when the actuator opening reaches the maximum and a preset pass signal is fed back, the self-test result is determined to be passed;
[0085] Step S230, when the actuator opening does not reach the maximum and a preset fail signal is fed back, the self-test result is determined to be fail;
[0086] Step S240, when the self-check fails and it is determined that the logic signal of the controller is wrong, the step of initializing the real-time simulation model is repeated;
[0087] Step S250, when the self-test fails and it is determined that the logic signal of the controller is correct, the self-test result is determined to be an abnormality of the self-test function.
[0088] In some embodiments, step S300 includes but is not limited to the following steps S310 to S350:
[0089] Step S310, obtaining the preset value of the exhaust gas recirculation valve opening and the preset value of the natural gas flow rate input by the user in the host computer;
[0090] Step S320, sending the preset value of the exhaust gas recirculation valve opening or the preset value of the natural gas flow to the controller;
[0091] Step S330, controlling the exhaust gas recirculation valve to open according to the preset exhaust gas recirculation valve opening value through the controller, and obtaining an actual exhaust gas recirculation valve opening value;
[0092] Step S340, controlling the injection valve to open according to the preset value of the natural gas flow rate through the controller, and obtaining an actual value of the injection valve opening;
[0093] Step S350: taking the actual value of the exhaust gas recirculation valve opening and the actual value of the injection valve opening as the first execution result of the real-time simulation model.
[0094] In some embodiments, step S400 includes but is not limited to the following steps S410 to S460:
[0095] Step S410, when the system state value is lower than the first threshold condition, cyclically detecting the engine state and the reformer state; wherein the system state value includes the engine speed, the intake manifold pressure and the reformer temperature;
[0096] Step S420, when the system state value is higher than a fourth threshold condition, switching the system mode to a resetting mode;
[0097] Step S430, when the system state value is between the third threshold condition and the second threshold condition, switching the system mode to the sleep mode;
[0098] Step S440, when in the sleep mode, the system state value is higher than the third condition threshold, the sleep mode is awakened, and the system mode is switched to the resetting mode;
[0099] Step S450, when the sleep mode duration reaches a preset duration without being awakened, switching the system mode to a shutdown mode;
[0100] Step S460, obtaining the opening and closing states of the exhaust gas recirculation valve and the injection valve in each of the system modes to obtain a second execution result.
[0101] In some embodiments, step S500 includes but is not limited to the following steps S510 to S520:
[0102] Step S510, when the self-test result is self-test passed, and the actual value of the first execution result is consistent with the preset value, it is determined that the controller works normally under the user control function;
[0103] Step S520: When the self-test result is self-test passed and the second execution result is consistent with the expected execution result, it is determined that the controller works normally under the automatic control function.
[0104] In some embodiments, step S600 includes but is not limited to the following steps S610 to S630:
[0105] Step S610, obtaining a first nitrogen oxide emission ratio value of the original engine mode of the real-time simulation model;
[0106] Step S620, obtaining a second nitrogen oxide emission ratio value and a second carbon monoxide emission ratio value of the reforming mode of the real-time simulation model;
[0107] Step S630, when the second nitrogen oxide emission ratio value is lower than the first nitrogen oxide emission ratio value, and the second nitrogen oxide emission ratio value and the second carbon monoxide emission ratio value both meet the emission standards, it is determined that the controller has use value.
[0108] Below, in conjunction with the accompanying drawings of the specification and specific application examples of exhaust gas and fuel reformer testing, the scheme of the embodiment of the present application is described in detail and explained:
[0109] In an embodiment of the present application, a hardware-in-the-loop testing method for an exhaust gas and fuel reformer control system is provided. The method can be applied to functional testing of an exhaust gas-fuel reforming controller, and to perform a ratio of NOx and CO emissions in a reforming mode under control and in an original engine mode, to verify whether it meets emission standards, so as to determine whether it has use value.
[0110] Reference Figure 2After power-on, the system is initialized and the controller is self-checked first. Initialization requires that the engine speed in the real-time simulation model is 0. At this time, the controller performs self-checking. The purpose of the self-checking is to check whether the controller can control the opening of the actuators such as the injection valve and EGR valve. The self-checking steps are that the controller controls the opening of the actuators such as the injection valve and EGR valve to the maximum and feedbacks the signal. If the opening reaches the maximum, the controller buzzer prompt sound will sound (2S), and the self-checking will pass; if it does not reach the maximum, the controller buzzer prompt sound will sound for a long time (30S), and the self-checking will not pass. At this time, it is judged whether the controller logic signal is wrong. If it is confirmed that the controller logic signal is wrong, the initialization and self-checking steps are repeated; if it is confirmed that the controller logic signal is correct, it means that the controller self-checking function is abnormal.
[0111] After the self-check is completed, select the user control function or the automatic control function. Under the user control function, enter the EGR valve opening or natural gas flow rate on the upper computer operating software and send it to the controller, or send the command to the function area through the one-key command sending function area. After the command is sent, observe whether the injection valve natural gas flow rate and the EGR valve opening reach the expected state under the user control function. If not, it is determined that the manual control function of the controller is abnormal.
[0112] Under the automatic control function, refer to Table 1, which is a schematic table of threshold conditions provided in an embodiment of the present application:
[0113] Table 1
[0114] name Speed r / min Intake manifold pressure kPa Reformer temperature ℃ First threshold condition 500 —— —— Second threshold condition 700 —— —— The third threshold condition 900 120 —— Fourth threshold condition 1190 170 300
[0115] Based on the threshold conditions in Table 1, the switching process of the working mode and the expected opening and closing states of the injection valve and the EGR valve according to the changes in the engine speed, the intake manifold pressure and the reformer temperature in the embodiment of the present application are described as follows:
[0116] When the values of the engine speed, intake manifold pressure and reformer temperature are lower than the first threshold condition, the engine and reformer status are detected cyclically. When the values of the engine speed, intake manifold pressure and reformer temperature are higher than the first threshold condition, the real-time detected values are written into the program to refresh the system status.
[0117] When the engine speed, intake manifold pressure and reformer temperature are higher than the fourth threshold condition, the system starts the reforming mode. At this time, the injection valve and the EGR valve are both in the open state, and change in real time according to the state values such as engine speed and intake manifold pressure.
[0118] In the reforming mode, the detection and update of the status value is also real-time, and the system will switch modes according to the status value. If the status value is between the third threshold condition and the second threshold condition, the system will enter the sleep mode; during the sleep period, actuators such as the EGR valve and the injection valve will be temporarily closed. If the sleep mode continues for 30 minutes without being awakened, the system will enter the shutdown mode.
[0119] After the waiting system detects that the state value is higher than the third threshold condition, the sleep state is awakened, the injection valve and the EGR valve are opened in sequence, and the reforming mode is entered again for reforming.
[0120] In sleep mode, if the system status value is between the second threshold condition and the first threshold condition, the system will enter standby mode again. At this time, the injection valve and EGR valve remain closed. When the standby mode lasts for more than 60 minutes or the status value is lower than the first threshold condition, the system will enter shutdown mode.
[0121] In shutdown mode, the system's EGR valve and injection valve are closed one after another and cannot be reopened.
[0122] The upper computer software monitors the speed, intake manifold pressure and reformer temperature changes in real time to determine the mode it should be in at this time, and detects whether the status of the EGR valve and injection valve at this time conforms to the status in the corresponding mode. This is used to determine whether the automatic control function of the controller is normal or not.
[0123] If there are no problems with the above steps, the controller is judged to be functioning normally. At this time, the offline simulation results of the real-time simulation model (original machine mode) are compared with the real-time simulation results in the reforming mode to observe the differences in the NOx emission ratio and CO emission ratio under different loads, and whether they meet the IMO Tier III emission standards. If the NOx emission ratio in the reforming mode can be lower than the emission ratio in the original machine mode, and both the NOx and CO emission ratios meet the IMO Tier III emission standards, the tested controller is judged to be of use value, and the in-loop test of the exhaust gas and fuel reformer control system is completed.
[0124] In summary, the embodiments of the present application have at least the following beneficial effects: by simulating the execution results of the controller in each mode under the user control and automatic control functions on the real-time simulation model of the exhaust gas and fuel reformer control system, and configuring the corresponding threshold conditions for automatic system mode conversion, the test results are obtained, and the use value of the controller can be tested by comparing the gas emission differences, which is conducive to the efficient and accurate automatic testing of the controller. In addition, the simulation experiment will not cause actual danger, nor does it need to build a real exhaust gas and fuel reforming environment. It is low-cost and can adapt to different test objects by changing the structure and parameters in the real-time model, which is highly flexible.
[0125] See also Figure 3 The embodiment of the present application also provides a hardware-in-the-loop test system for an exhaust gas and fuel reformer control system, which can implement the hardware-in-the-loop test method for the exhaust gas and fuel reformer control system. The system includes:
[0126] The first module 101 is used to initialize the real-time simulation model;
[0127] The second module 102 is used to obtain a self-test result through a self-test operation of the controller;
[0128] The third module 103 is used to send the exhaust gas recirculation valve opening setting value or the natural gas flow setting value input by the user to the function area through the controller under the user control function, and obtain the first actual state of the real-time simulation model;
[0129] The fourth module 104 is used to switch the mode of the exhaust gas and fuel reformer control system according to the change of the system state value, and obtain the second execution result of the real-time simulation model;
[0130] A fifth module 105, configured to determine a function status of the controller according to the self-test result, the first execution result and the second execution result;
[0131] The sixth module 106 is used to determine the use value of the controller by comparing the offline simulation result of the original machine mode of the real-time simulation model with the real-time simulation result of the reconfiguration mode.
[0132] For example, the hardware-in-the-loop test system of the embodiment of the present application can be specifically designed as follows: Figure 4 As shown, it consists of a host computer, a hardware-in-the-loop simulation platform, and a lower computer controller, wherein the hardware-in-the-loop simulation platform includes a chassis, a real-time processor, a high-speed controller local area network interface module (CAN board), and a data acquisition card. The real-time processor is used to run the real-time simulation model to simulate the operating state of the controlled object, the CAN board realizes the CAN communication between the controller and the model, and the data acquisition card is used to collect the analog / digital signals sent by the controller or the model.
[0133] The host computer is connected to the hardware-in-the-loop simulation platform through a network cable, and the two communicate through the TP / TCP protocol. The host computer operation software is mainly used for human-computer interaction, which is convenient for users to monitor and control the entire hardware-in-the-loop test system during the test, mainly including the monitoring of real-time engine data, the sending of system operation instructions, and the monitoring of fault status. Figure 5As shown in the figure, the real-time simulation model is run in the hardware-in-the-loop simulation platform, including the injection valve, exhaust gas recirculation valve (EGR valve), reformer and engine models. The injection valve, EGR valve and reformer models can be established in Simulink, which is a block diagram environment for multi-domain simulation and model-based design. The engine model can be established in GT-power to simulate the engine ventilation process and combustion process, and predict the engine power, fuel economy and emission characteristics. The established model is imported into the real-time processor through the host computer.
[0134] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0135] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the hardware-in-the-loop test method of the exhaust gas and fuel reformer control system when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0136] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0137] See also Figure 6 , Figure 6 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0138] The processor 201 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0139] The memory 202 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 202 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 202, and the processor 201 calls and executes the hardware-in-the-loop test method of the exhaust gas and fuel reformer control system of the embodiment of this application;
[0140] Input / output interface 203, used to implement information input and output;
[0141] The communication interface 204 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0142] Bus 205 , which transmits information between various components of the device (e.g., processor 201 , memory 202 , input / output interface 203 , and communication interface 204 );
[0143] The processor 201 , the memory 202 , the input / output interface 203 and the communication interface 204 are connected to each other in communication within the device via the bus 205 .
[0144] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the hardware-in-the-loop testing method of the exhaust gas and fuel reformer control system.
[0145] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0146] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0147] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0148] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0149] The system embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0150] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0151] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0152] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0153] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0154] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0155] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0156] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0157] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A hardware-in-the-loop test method for an exhaust gas and fuel reformer control system, characterized in that: The following steps are involved: Initialize the real-time simulation model of the exhaust gas and fuel reformer control system; Through the self-test operation of the controller, the self-test result is obtained; Under the user control function, the input exhaust gas recirculation valve opening preset value and natural gas flow preset value are sent to the controller for execution, and a first execution result of the real-time simulation model is obtained; Under the automatic control function, switching the mode of the exhaust gas and fuel reformer control system according to the change of the system state value, and obtaining the second execution result of the real-time simulation model; Determining a function status of the controller according to the self-test result, the first execution result, and the second execution result; The use value of the controller is determined by comparing the offline simulation results of the original machine mode of the real-time simulation model with the real-time simulation results of the reforming mode.
2. The method according to claim 1, characterized in that The initialization process of the real-time simulation model of the exhaust gas and fuel reformer control system comprises the following steps: The engine speed in the real-time simulation model is initialized to 0.
3. The method according to claim 1, characterized in that The self-test operation of the controller to obtain the self-test result includes the following steps: Control the actuator opening through the controller; When the actuator opening reaches the maximum and a preset pass signal is fed back, the self-test result is determined to be passed; When the actuator opening does not reach the maximum and a preset fail signal is fed back, the self-test result is determined to be fail; When the self-check fails and it is determined that the logic signal of the controller is wrong, the step of initializing the real-time simulation model is repeated; When the self-test fails and the logic signal of the controller is determined to be correct, the self-test result is determined to be an abnormality in the self-test function.
4. The method according to claim 1, characterized in that: The method of sending the input exhaust gas recirculation valve opening preset value and natural gas flow preset value to the controller for execution under the user control function to obtain the first execution result of the real-time simulation model includes the following steps: Obtaining the preset value of the exhaust gas recirculation valve opening and the preset value of the natural gas flow rate input by the user on the host computer; Sending the preset value of the exhaust gas recirculation valve opening or the preset value of the natural gas flow rate to the controller; Controlling the exhaust gas recirculation valve by the controller to open according to the preset exhaust gas recirculation valve opening value to obtain an actual exhaust gas recirculation valve opening value; The controller controls the injection valve to open according to the preset value of the natural gas flow rate, thereby obtaining an actual value of the injection valve opening; The exhaust gas recirculation valve opening actual value and the injection valve opening actual value are used as the first execution result of the real-time simulation model.
5. The method according to claim 1, characterized in that: Under the automatic control function, switching the mode of the exhaust gas and fuel reformer control system according to the change of the system state value to obtain the second execution result of the real-time simulation model includes the following steps: When the system state value is lower than the first threshold condition, cyclically detecting the engine state and the reformer state; wherein the system state value includes the engine speed, the intake manifold pressure and the reformer temperature; When the system state value is higher than a fourth threshold condition, switching the system mode to a resetting mode; When the system state value is between a third threshold condition and a second threshold condition, switching the system mode to a sleep mode; When the system state value is higher than the third condition threshold value in the sleep mode, the sleep mode is awakened and the system mode is switched to the resetting mode; When the duration of the sleep mode reaches a preset duration without being awakened, switching the system mode to a shutdown mode; The opening and closing states of the exhaust gas recirculation valve and the injection valve in each of the system modes are obtained to obtain a second execution result.
6. The method according to claim 1, characterized in that Determining the function status of the controller according to the self-test result, the first execution result and the second execution result comprises the following steps: When the self-test result is self-test passed, and the actual value of the first execution result is consistent with the preset value, it is determined that the controller works normally under the user control function; When the self-test result is that the self-test is passed, and the second execution result is consistent with the expected execution result, it is determined that the controller works normally under the automatic control function.
7. The method according to claim 1, characterized in that The method of comparing the offline simulation result of the original machine mode of the real-time simulation model with the real-time simulation result of the reforming mode to determine the use value of the controller includes the following steps: Obtaining a first nitrogen oxide specific emission value of an original engine mode of the real-time simulation model; Obtaining a second nitrogen oxide emission ratio value and a second carbon monoxide emission ratio value of the reforming mode of the real-time simulation model; When the second nitrogen oxide emission ratio value is lower than the first nitrogen oxide emission ratio value, and the second nitrogen oxide emission ratio value and the second carbon monoxide emission ratio value both meet the emission standards, it is determined that the controller is worth using.
8. Hardware-in-the-loop test system for exhaust gas and fuel reformer control system, characterized in that: include: The first module is used to initialize the real-time simulation model of the exhaust gas and fuel reformer control system; The second module is used to obtain the self-test result through the self-test operation of the controller; A third module is used to send the input exhaust gas recirculation valve opening preset value and natural gas flow preset value to the controller for execution under the user control function, and obtain the first execution result of the real-time simulation model; A fourth module is used to switch the mode of the exhaust gas and fuel reformer control system according to the change of the system state value under the automatic control function, and obtain the second execution result of the real-time simulation model; A fifth module, configured to determine a function status of the controller according to the self-test result, the first execution result and the second execution result; The sixth module is used to determine the use value of the controller by comparing the offline simulation result of the original machine mode of the real-time simulation model with the real-time simulation result of the reforming mode.
9. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 7.
10. A computer storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to implement the method according to any one of claims 1 to 7 when executed by the processor.
Citation Information
Patent Citations
Hardware-in-the-loop simulation system of automatic mechanical transmission (AMT) controller and automatic test method thereof
CN102520711A
Dual-fuel engine controller simulation test system
CN104111650A
Test system and method for engine control unit
CN110794803A
Double-planet-gear hybrid power hardware-in-loop simulation system
CN112859646A
Calibration test method and system for gasoline engine controller
CN113761747A