Fuel cell engine control method and control system
By separating the fuel cell engine controller from the two upper computers and using the CAN bus for data transmission, the problem of low data analysis and storage efficiency in fuel cell engine testing and development is solved, real-time monitoring and fault diagnosis are realized, and system stability is improved Sex and efficiency.
Patent Information
- Application Number
- CN202111144284.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-28
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-09-28
AI Technical Summary
During the test and development of fuel cell engines, due to the large demand for data analysis and storage, the operating efficiency of the upper computer is low, and the monitoring information cannot be updated in time, which poses safety risks.
By separating the fuel cell engine controller from the two upper computers, the first upper computer is responsible for data analysis and transmission of control instructions, and the second upper computer is responsible for status monitoring and information playback, and data transmission is used by the CAN bus to achieve dynamic display and faults Diagnostics and data storage.
It improves the operation efficiency of the host computer, reduces process occupation, avoids lag and delays, and improves control stability and data analysis efficiency.
Smart Images

Figure CN113741405B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of batteries, and in particular relates to a fuel cell engine control method and control system. Background Art
[0002] The fuel cell engine system is a new type of fuel cell power generation system, which converts the chemical energy in the externally supplied fuel and oxidant into electrical energy, heat energy and other reaction products through electrochemical reactions. During the test and development process of the fuel cell engine, the monitoring of fuel cell engine parameter data, the monitoring and judgment of the operating status of each component, and the troubleshooting of test data are important links in the development process of the fuel cell engine.
[0003] At present, the host computer monitoring in the fuel cell engine test and development stage is generally implemented by controlling, feedback and storing information on the same host computer.
[0004] However, due to the large amount of control commands, data monitoring parameter analysis and display, and storage data required for fuel cell engines during the development process, the upper computer's operating efficiency is low, which can easily cause delays in engine data analysis and storage, making it impossible to update and display monitoring information in a timely manner, posing a safety hazard to the safe operation of the equipment. Summary of the invention
[0005] The present invention provides a fuel cell engine control method and control system, which can solve the technical problem that delays in engine data analysis and storage make it impossible to update and display monitoring information in a timely manner, thus posing a potential safety hazard to the safe operation of the equipment.
[0006] The technical solution provided by the present invention is as follows:
[0007] In one aspect, a fuel cell engine control method is provided, the method comprising:
[0008] The fuel cell engine controller sends the real-time data of the fuel cell engine to the first host computer, and the fuel cell engine controller controls the operation of the fuel cell engine according to the real-time data sent after the first host computer analyzes the real-time data;
[0009] The fuel cell engine controller and the first host computer send information to the CAN bus, and the second host computer dynamically displays and monitors the status parameters of the main components such as the fuel cell engine current, voltage, air compressor, CVM, etc., performs fault diagnosis, and performs data storage according to the received CAN message.
[0010] In an optional embodiment, the status monitoring and information playback steps include online status monitoring and offline information playback steps;
[0011] The second host computer obtains the online status of the fuel cell engine;
[0012] The fuel cell engine information is monitored and replayed according to the online status of the fuel cell engine.
[0013] In an optional embodiment, monitoring and replaying the fuel cell engine information according to the online state of the fuel cell engine includes:
[0014] When the fuel cell engine is in an online state, acquiring and parsing the fuel cell engine message to obtain the fuel cell engine CVM information and the fuel cell engine state parameters;
[0015] Establishing a first array a[h, k] of the fuel cell engine CVM information and the fuel cell engine state parameter, wherein a[h, k] is all fuel cell engine CVM information of the fuel cell engine at time h and the fuel cell engine state parameter k;
[0016] The fuel cell engine information is monitored according to the fuel cell engine CVM information and a first array of fuel cell engine state parameters.
[0017] In an optional embodiment, before establishing the fuel cell engine CVM information and the first array a[h, k] of the fuel cell engine state parameters, the online state monitoring and information playback step further includes:
[0018] Acquire the storage status of the fuel cell engine CVM information and the fuel cell engine state parameter, and when the fuel cell engine CVM information and the fuel cell engine state parameter do not need to be stored, establish a first array a[h, k] of the fuel cell engine CVM information and the fuel cell engine state parameter;
[0019] When the fuel cell engine CVM information and the fuel cell engine state parameters need to be stored, they are stored through a database storage thread, and a first array a[h, k] of the fuel cell engine CVM information and the fuel cell engine state parameters is established.
[0020] In an optional embodiment, the monitoring and replaying of the fuel cell engine information according to the online state of the fuel cell engine further includes:
[0021] When the fuel cell engine is in an offline state, the second host computer obtains local storage data, obtains and parses the fuel cell engine message in the local storage data, and obtains the fuel cell engine CVM information and the fuel cell engine state parameter;
[0022] Establishing a second array a[i,j] of the fuel cell engine CVM information and the fuel cell engine state parameter, wherein a[i,j] is all fuel cell engine CVM information of the fuel cell engine at time i and the fuel cell engine state parameter j;
[0023] The fuel cell engine information is replayed according to the fuel cell engine CVM information and the second array a[i, j] of fuel cell engine state parameters.
[0024] In an optional embodiment, establishing the fuel cell engine CVM information and the fuel cell engine state parameter second array a[i,j] includes:
[0025] Extracting a total array a[m,n] of the fuel cell engine CVM information and the fuel cell engine state parameter, wherein a[m,n] is all fuel cell engine CVM information and the fuel cell engine state parameter n of the fuel cell engine at time m;
[0026] The fuel cell engine CVM information and the fuel cell engine state parameter second array a[i,j] are established according to the total array a[m,n] of the fuel cell engine CVM information and the fuel cell engine state parameter.
[0027] In an optional embodiment, the replaying the fuel cell engine information according to the fuel cell engine CVM information and the fuel cell engine state parameter second array a[i,j] includes: when i≥m, ending state monitoring and information replay;
[0028] When i<m, repeat the steps of monitoring and replaying the fuel cell engine information according to the fuel cell engine CVM information and the second array a[i,j] of fuel cell engine state parameters.
[0029] In an optional embodiment, when the fuel cell engine is in an offline state, the second host computer obtains the locally stored data, including:
[0030] Determine the type of the locally stored data, and when the locally stored data type is in CAN format, obtain and parse the fuel cell engine message in the locally stored data;
[0031] When the local storage data type is in excel or csv format, the fuel cell engine CVM information and the fuel cell engine state parameter second array a[i, j] are established according to the parsed message data.
[0032] In an optional embodiment, the method further includes: determining whether the second host computer stops running, and when the second host computer does not stop running, performing fault detection on the fuel cell engine.
[0033] In another aspect, a fuel cell engine control system is provided, the system comprising:
[0034] Fuel cell engine controller,
[0035] a first host computer, connected to the fuel cell engine controller for receiving fuel cell engine control data sent by the fuel cell engine controller, and sending control instructions to the fuel cell engine controller so that the fuel cell engine controller controls the operation of the fuel cell engine according to the control instructions;
[0036] The second host computer is communicatively connected to the fuel cell engine controller, and is used for receiving the fuel cell engine state parameters sent by the fuel cell engine controller and the control instructions sent by the first host computer, and dynamically replaying the fuel cell engine operation state parameter information and control instruction information according to the fuel cell engine state monitoring and information playback data.
[0037] In an optional embodiment, the second host computer includes a fuel cell engine status monitoring module and a fuel cell engine data playback module, wherein the fuel cell engine status monitoring module is used to monitor the operating status of the fuel cell engine, and the fuel cell engine data playback module is used to operate the fuel cell engine according to the operating instructions of the first host computer.
[0038] In an optional embodiment, the fuel cell engine state monitoring module includes a CAN type data dbc file reading submodule for reading a fuel cell engine dbc type file.
[0039] The method provided by the embodiment of the present invention has at least the following beneficial effects:
[0040] The method provided in the embodiment of the present invention sends the fuel cell engine operating parameters to the first host computer through the fuel cell engine controller, the first host computer parses the operating parameters to obtain the real-time data after parsing, and sends the control command parameters to the fuel cell engine controller control instructions according to the real-time data after parsing, and the fuel cell engine controller controls the fuel cell engine to work according to the control instructions; the second host computer receives the CAN bus information, including the fuel cell engine controller, the CVM controller and the first host computer, etc., performs real-time dynamic display monitoring, fault diagnosis, data storage, etc. on the received data, and the storage thread of the second host computer stores the above-mentioned state monitoring and information playback data, and the second host computer dynamically replays the data of the fuel cell engine according to the state monitoring and information playback data. The embodiment of the present invention separates the control of the fuel cell engine and the functions of the state monitoring and information playback of the fuel cell engine by setting the first host computer and the second host computer, thereby reducing the occupation of the host computer process, avoiding the occurrence of host computer jams, delays and other faults during use, improving the stability of the host computer control, and improving the operation efficiency of the host computer. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present disclosure.
[0042] Figure 1 A schematic flow chart of a fuel cell engine control method is shown;
[0043] Figure 2 A schematic diagram of a fuel cell engine control method provided by related technology is shown;
[0044] Figure 3 A simple schematic diagram of a fuel cell engine control method process is shown;
[0045] Figure 4 An overall schematic diagram of a fuel cell engine control process flow is shown;
[0046] Figure 5 A schematic diagram of the structure of a fuel cell engine control system is shown;
[0047] Figure 6 A schematic diagram of the structure of a fuel cell engine control system is shown. DETAILED DESCRIPTION
[0048] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0049] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0050] The fuel cell engine system is a new type of fuel cell power generation system, which converts the chemical energy in the externally supplied fuel and oxidant into electrical energy, heat energy and other reaction products through electrochemical reactions. During the test and development process of the fuel cell engine, the monitoring of fuel cell engine parameter data, the monitoring and judgment of the operating status of each component, and the troubleshooting of test data are important links in the development process of the fuel cell engine.
[0051] At present, the host computer monitoring in the fuel cell engine test and development stage is generally implemented by controlling, feedback and storing information on the same host computer.
[0052] However, due to the large amount of control commands, data monitoring parameter analysis and display, and data storage required for fuel cell engines during the development process, the host computer has low operating efficiency, which can easily cause delays in engine data analysis and storage, making it impossible to update and display monitoring information in a timely manner, posing a potential safety hazard to the safe operation of the equipment. In addition, when troubleshooting a fuel cell engine, it is necessary to open the offline stored data file to locate the fault data, which takes too much time to select the data parameters to be analyzed. Software and host computers for fuel cell engine data analysis are currently lacking. In view of this, an embodiment of the present invention provides a fuel cell engine control method and control system, which aims to solve the above technical problems.
[0053] It should be noted that the fuel cell engine referred to in the embodiments of the present invention refers to a power generation system that converts the chemical energy in the externally supplied fuel and oxidant into electrical energy, thermal energy and other reaction products through electrochemical reactions. The fuel cell inspection module (CVM) is an important component of fuel cell engine detection. The CVM can accurately detect the single-chip voltage of the fuel cell stack in real time, and perform real-time analysis and processing on the monitored single-chip voltage data group, monitor, diagnose and store the state and performance of the single-chip battery of the fuel cell stack, ensure the stable and reliable operation of the single-chip battery of the fuel cell, and improve the efficiency and reliability of the fuel cell.
[0054] See also Figure 1 , Figure 1 A schematic flow chart of a fuel cell engine control method provided by an embodiment of the present invention, the method comprising:
[0055] S101, the fuel cell engine controller sends fuel cell engine control data to the first host computer, and the fuel cell engine controller controls the operation of the fuel cell engine according to the control instructions issued by the first host computer after parsing the control data.
[0056] S102: The fuel cell engine controller sends fuel cell engine status monitoring and information playback data to the second host computer, and the second host computer monitors the fuel cell engine and plays back fuel cell engine information according to the status monitoring and information playback data.
[0057] The method provided by the embodiment of the present invention has at least the following beneficial effects:
[0058] The method provided in the embodiment of the present invention sends fuel cell engine control data to a first host computer through a fuel cell engine controller, the first host computer parses the control data to obtain the parsed control data, and sends control instructions to the fuel cell engine controller according to the parsed control data, and the fuel cell engine controller controls the operation of the fuel cell engine according to the control instructions; the fuel cell engine controller sends fuel cell engine state monitoring and information playback data to a second host computer, the storage thread of the second host computer stores the above-mentioned state monitoring and information playback data, and the second host computer monitors the engine according to the state monitoring and information playback data and dynamically plays back the data of the fuel cell engine. The embodiment of the present invention separates the control of the fuel cell engine and the state monitoring and information playback functions of the fuel cell engine by setting the first host computer and the second host computer, thereby reducing the occupation of the host computer process, avoiding host computer freezes, delays and other faults during use, and improving the operation efficiency of the host computer.
[0059] See also Figure 2 , Figure 2 To further explain and illustrate the comparison diagram provided in the embodiment of the present invention, Figure 2 It can be seen that the host computer in the comparison document not only has to realize the control of the fuel cell engine, but also has to perform functions such as data reception, storage and transmission, and integrate the analysis of CAN control commands and feedback information. The host computer displays and calculates a large amount of feedback information, which will cause the efficiency of the host computer to decrease, leading to delays in information interpretation, difficulties in process calls, control time delays, etc., which will affect the use of fuel cells.
[0060] See also Figure 3 , Figure 3 This is a simple schematic diagram of the method provided in an embodiment of the present invention. It can be seen that compared with the related art, the embodiment of the present invention separates the fuel cell engine control function and expands other functions of the host computer; that is, a first host computer is set up separately to specifically realize the control of the fuel cell engine, and the remaining functions such as data reception and transmission, storage, and fault diagnosis are realized by the second host computer. In this way, the control of the fuel cell engine will not be affected by too many processes in the host computer, thereby improving the control efficiency of the fuel cell engine.
[0061] The method provided by the embodiment of the present invention will be further explained and described below through optional embodiments.
[0062] S101, the fuel cell engine controller sends fuel cell engine control data to the first host computer, and the fuel cell engine controller controls the operation of the fuel cell engine according to the control instructions issued by the first host computer after parsing the control data.
[0063] The fuel cell engine controller sends control data for the fuel cell engine to the first host computer, the first host computer parses the control data, and sends control instructions to the fuel cell engine according to the parsed data. After receiving the control instructions, the fuel cell engine controller controls the operation of the fuel cell engine according to the control instructions.
[0064] The method provided by the embodiment of the present invention realizes online data monitoring and storage of fuel cell engines, reduces the amount of data parsed and stored by the host computer controlling the fuel cell engine, and enhances the control operation efficiency of the host computer. The operating parameters for online monitoring are expanded, and the parameters that cannot be fully monitored by the control program can be expanded.
[0065] Furthermore, both the first host computer and the second host computer communicate with the fuel cell engine controller FCU via the CAN line (CAN communication), wherein the first host computer only sends control commands and monitors key data parameters, and the second host computer receives all information on the CAN bus, including information sent by the FCU (fuel cell engine controller), information sent by the CVM, information sent by the first host computer, etc.
[0066] S102: The fuel cell engine controller sends fuel cell engine status monitoring and information playback data to the second host computer, and the second host computer monitors the fuel cell engine and plays back fuel cell engine information according to the status monitoring and information playback data.
[0067] Furthermore, the method provided in the embodiment of the present invention includes the following working modes:
[0068] The first mode: only the first host computer works, the first host computer can send control instructions for controlling the operation of the FCU and receive and display the main operating parameters of the fuel cell engine, and can choose to store the received state parameters of the fuel cell engine operation.
[0069] Second mode: The first host computer and the second host computer work simultaneously. This mode is the normal working mode of the fuel cell. The working mode of the first host computer is the same as that of the first mode. After the second host computer is turned on, data storage, fault diagnosis, FCU information display, CVM information display, etc. are performed.
[0070] The third mode: the first host computer does not work, and only the second host computer works. The second host computer receives the status monitoring and information playback data sent by the FCU for data playback. The playback displays the various data parameters and control information of the fuel cell engine and CVM when they are working, and intuitively displays the operating process parameters, which is convenient for later fault diagnosis and troubleshooting, and improves work efficiency.
[0071] In an optional embodiment, the status monitoring and information playback steps include online status monitoring and offline information playback steps;
[0072] The second host computer obtains the online status of the fuel cell engine;
[0073] Monitor and replay fuel cell engine information based on the fuel cell engine online status.
[0074] It should be noted that the method provided by the related art can monitor the state of the fuel cell engine when the fuel cell is running, and it is impossible to perform real-time analysis and information playback or display of the data after the fuel cell is offline. The state monitoring and information playback provided by the embodiment of the present invention include two modes: online and offline. The online mode can monitor the operating state and operating parameters of the fuel cell engine in real time, and the fuel cell engine state can be monitored and fuel cell engine information can be played back in the offline mode.
[0075] In an optional embodiment, monitoring and replaying fuel cell engine information according to the online state of the fuel cell engine includes:
[0076] When the fuel cell engine is in an online state, the fuel cell engine message is acquired and parsed to obtain the fuel cell engine CVM information and fuel cell engine state parameters;
[0077] Establishing a first array a[h, k] of fuel cell engine CVM information and fuel cell engine state parameters, wherein a[h, k] is all fuel cell engine CVM information of the fuel cell engine at time h and the fuel cell engine state parameter k;
[0078] The fuel cell engine information is monitored and replayed according to the fuel cell engine CVM information and the first array a[h, k] of fuel cell engine state parameters.
[0079] It should be noted that during the operation of the fuel cell engine, the single-chip voltage acquisition of the CVM is the most important indicator of the healthy operation of the fuel cell. There is a lack of a dedicated host computer module for online acquisition and analysis of CVM information. If it is mixed with the other signal acquisitions of the fuel cell engine for analysis, it will cause a lag in information monitoring. In addition, there is currently a lack of specialized analysis methods for fault analysis / data playback, and it is impossible to intuitively and quickly locate the distribution of the single-chip voltage of the fuel cell engine. The embodiment of the present invention separates the CVM information acquisition of the fuel cell engine from the control function of the fuel cell engine, solves the problem of the difficulty of CVM single-chip acquisition and analysis, and expands data playback and data analysis to solve the difficulties of the fuel cell in the fault analysis stage and improve the efficiency of fault location and resolution.
[0080] Furthermore, the fuel cell engine controller sends the startup status data of the fuel cell engine to the second host computer, and the second host computer determines whether the fuel cell engine is turned on. If the fuel cell engine is turned on, it determines whether the fuel cell engine is online. When the fuel cell engine is online, the second host computer loads and parses the fuel cell engine message. It should be noted that the fuel cell engine message loaded here is a dbc format file, so it needs to be parsed to obtain the fuel cell engine CVM information and fuel cell engine status parameters.
[0081] For the data playback of CVM single-chip voltage information, in the related technology, the host computer generally uses text files of types such as csv / xls. It is convenient to display the CVM single-chip voltage graphically, but it is difficult to implement CAN type data. The embodiment of the present invention solves the difficulty of offline parsing of CAN messages by first parsing the CAN type CVM single-chip voltage information and then establishing an array for display and playback.
[0082] It is understandable that when the fuel cell engine is running, the fuel cell engine controller will continuously send the operating parameters of the fuel cell engine within the operating time sequence. Therefore, the embodiment of the present invention establishes a first array a[h, k] of fuel cell engine CVM information and fuel cell engine state parameters according to the operating time sequence. As an example, the fuel cell operating time is taken as the row, and the fuel cell engine CVM information and fuel cell engine state parameters are taken as the column. Each row of the time series has multiple fuel cell engine CVM information and fuel cell engine state parameters. By establishing an array, they are played back in an orderly, stable and complete manner, and monitoring is implemented in an organized and sequential manner.
[0083] Furthermore, the host computer monitors the operating status of the fuel cell engine in real time online through the human-machine interface, and displays its operating parameters and the CVM information of the fuel cell engine.
[0084] The method provided by the embodiment of the present invention has offline data playback and data analysis functions, and can parse various types of data such as CAN, csv, xls, etc.
[0085] In an optional embodiment, before establishing the first array a[h, k] of fuel cell engine CVM information and fuel cell engine state parameters, the online state monitoring and information playback step further includes:
[0086] Acquire the storage state of the fuel cell engine CVM information and the fuel cell engine state parameters, and establish a first array a[h, k] of the fuel cell engine CVM information and the fuel cell engine state parameters when the fuel cell engine CVM information and the fuel cell engine state parameters do not need to be stored;
[0087] When the fuel cell engine CVM information and the fuel cell engine state parameters need to be stored, they are stored through a database storage thread, and a first array a[h, k] of the fuel cell engine CVM information and the fuel cell engine state parameters is established.
[0088] It can be understood that the method provided in the embodiment of the present invention will store the fuel cell engine CVM information and the fuel cell engine status parameters when monitoring the fuel cell engine. When storage is not needed, it will be displayed through the host computer human-machine interface. When storage is needed, it will be stored through the storage thread and the first array a[h, k] of the fuel cell engine CVM information and the fuel cell engine status parameters will be established at the same time, and displayed through the host computer human-machine interface.
[0089] In an optional embodiment, monitoring and replaying fuel cell engine information according to the online state of the fuel cell engine further includes:
[0090] When the fuel cell engine is in an offline state, the second host computer obtains the local storage data, obtains and parses the fuel cell engine message in the local storage data, and obtains the fuel cell engine CVM information and fuel cell engine state parameters.
[0091] In an optional embodiment, when the fuel cell engine is in an offline state, the second host computer obtains locally stored data, including:
[0092] The local storage data type is determined, and when the local storage data type is in CAN format, the fuel cell engine message is obtained and parsed in the local storage data.
[0093] It is understandable that when the local storage data type is in CAN format, the data needs to be parsed first, and then the fuel cell engine CVM information and the fuel cell engine state parameter second array a[i,j] are established based on the parsed message data. When the local storage data type is in excel or csv format, this type of data can be used directly without parsing, and the fuel cell engine CVM information and the fuel cell engine state parameter second array a[i,j] can be directly established, where a[i,j] is all fuel cell engine CVM information and fuel cell engine state parameter j of the fuel cell engine at time i.
[0094] As an example, the fuel cell engine operation time series is used as row data, and the fuel cell engine CVM information and fuel cell engine state parameter information are used as column data, that is, i in a[i,j] has multiple rows according to the fuel cell operation time.
[0095] The fuel cell engine information is monitored and replayed according to the fuel cell engine CVM information and the second array a[i, j] of fuel cell engine state parameters.
[0096] In an optional embodiment, establishing a second array a[i,j] of fuel cell engine CVM information and fuel cell engine state parameters includes:
[0097] Extract the total array a[m,n] of the fuel cell engine CVM information and the fuel cell engine state parameters, wherein a[m,n] is all the fuel cell engine CVM information and the fuel cell engine state parameter n of the fuel cell engine at time m.
[0098] As an example, the fuel cell engine has worked for 10 hours, and there are 200 fuel cell engine CVM information and fuel cell engine status parameter information. With 1 second as a row, there are 36,000 rows, with the fuel cell engine CVM information and fuel cell engine status parameters as columns, that is, m is 36,000 and n is 200.
[0099] A second array a[i,j] of the fuel cell engine CVM information and the fuel cell engine state parameters is established according to the total array a[m,n] of the fuel cell engine CVM information and the fuel cell engine state parameters.
[0100] The fuel cell engine CVM information and fuel cell engine state parameters in all time series are grouped as arrays for playback.
[0101] In an optional embodiment, monitoring and replaying fuel cell engine information according to fuel cell engine CVM information and fuel cell engine state parameter second array a[i,j] includes: when i≥m, ending state monitoring and information playback;
[0102] When i<m, the step of monitoring and displaying the fuel cell engine information according to the fuel cell engine CVM information and the second array a[i,j] of fuel cell engine state parameters is repeated.
[0103] As an example, the fuel cell engine has worked for 10 hours, and there are 200 fuel cell engine CVM information and fuel cell engine state parameter information. With 1 second as a row, there are 36,000 rows, with fuel cell engine CVM information and fuel cell engine state parameters as columns, that is, m is 36,000 and n is 200. When i≥m, it means that all fuel cell engine CVM information and fuel cell engine state parameters within the 10 hours have been replayed, and when i<m, it means that only a part of them are displayed, and then the steps of monitoring and displaying the fuel cell engine information according to the state of the second array a[i,j] of the fuel cell engine CVM information and fuel cell engine state parameters are repeated until all the data in the time series are fully displayed and replayed.
[0104] Furthermore, when i is 10800 and m is 200, it means that only information within 3 hours is played back and displayed, and the playback is looped until i is greater than or equal to 36000, which means that all information within 10 hours of the fuel cell engine operation has been played back, and the display and playback are stopped at this time.
[0105] The embodiment of the present invention displays the dynamic graphics of the CVM chip acquisition voltage in online and offline modes, and conveniently and intuitively determines the state parameters of the fuel cell engine and the consistency of the CVM and the conditions of each chip according to the playback conditions.
[0106] In an optional embodiment, the method further includes: determining whether the second host computer stops running, and when the second host computer does not stop running, performing fault detection on the fuel cell engine.
[0107] Furthermore, after the second host computer loads the fuel cell engine dbc file, fault diagnosis can be performed. After the fault diagnosis, the second host computer obtains and parses the fuel cell engine message to obtain the fuel cell engine CVM information and fuel cell engine status parameters; and establishes the first array a[h,k] of the fuel cell engine CVM information and fuel cell engine status parameters.
[0108] When the fuel cell engine is in an offline state, a fault diagnosis can be performed after the second host computer extracts the total array a[m,n] of the fuel cell engine CVM information and the fuel cell engine state parameters, and a second array a[i,j] of the fuel cell engine CVM information and the fuel cell engine state parameters is established after the fault diagnosis.
[0109] To sum up, the method provided in the embodiment of the present invention can reduce the operating load of the fuel cell engine control host computer, improve the operating efficiency of the main controller, and improve the stability and efficiency of the main control host computer, that is, the first host computer; improve the comprehensiveness of CAN network data information, and the method provided in the embodiment of the present invention assists in data chart display and data storage, which can realize the graphical display and data storage of required data to the greatest extent; the second host computer provided in the embodiment of the present invention includes online monitoring and offline data playback functions, among which the offline functions include fuel cell engine data parameter playback display, CVM single-chip voltage display and other functions, which are convenient for quickly understanding the status of the fuel cell engine single-chip voltage and the consistency, maximum value, minimum value, etc. of the distribution.
[0110] The method provided in the embodiment of the present invention can interpret various file types such as csv, asc, slx online in offline mode. During the data playback process, different fuel cell engine models can be selected to implement offline functions. During the data playback process, parameters to be analyzed can be selected, and the speed, start time, and end time of data playback can be configured by the host computer. All system parameters under the target time can be manually located, etc., which greatly improves the efficiency of data analysis and troubleshooting.
[0111] For further information, see Figure 4 , the method provided by the embodiment of the present invention will be explained and illustrated again through specific examples.
[0112] Online mode status monitoring and information display and playback: Figure 4 The fuel cell engine status monitoring and data playback host computer shown, that is, the second host computer provided in the embodiment of the present invention, determines whether the fuel cell engine is turned on. If it is turned on, it detects whether the fuel cell engine is online. If it is online, it loads the fuel cell engine system dbc file, parses the fuel cell engine CVM single-chip voltage information and fuel cell engine status parameters, and determines whether the above data needs to be stored. If the data needs to be stored, it is stored through the data storage thread. If not, the fuel cell engine CVM single-chip voltage information and fuel cell engine status parameter variables are established, that is, the first array a[h, k] provided in the embodiment of the present invention, and is displayed on the first host computer human-machine interface through the established variables.
[0113] Offline mode status monitoring and information display and playback: When the second host computer detects that the fuel cell engine is not online, it reads the local storage data, opens the data file from the database, determines whether the data file is CAN type data, if so, reads the CAN data file and creates variable data, loads the fuel cell engine system dbc file, parses the dbc file, extracts the fuel cell engine CVM single chip voltage information and fuel cell engine status parameters, (if it is determined that the data file is not CAN type data, reads the corresponding data file data, the data file type includes excel, csv type) creates a total array a[m,n], and establishes the fuel cell engine CVM single chip according to the total array a[m,n]. The voltage information and fuel cell engine state parameter variable array, i.e., the second array a[i,j], is used to display the fuel cell engine CVM single chip voltage information and fuel cell engine state parameters on the second host computer interface according to the second array a[i,j]. At this time, it can be judged that if i≥m, the playback of the fuel cell engine CVM single chip voltage information and fuel cell engine state parameters ends, and the second host computer stops running. If i<m, the fuel cell engine CVM single chip voltage information and fuel cell engine state parameter variable array, i.e., the second array a[i,j], is continued to be established. The fuel cell engine CVM single chip voltage information and fuel cell engine state parameters are displayed on the second host computer interface according to the second array a[i,j].
[0114] Fault diagnosis: In the online mode status monitoring and information display and playback steps, the fuel cell engine CVM single-chip voltage information and fuel cell engine status parameter variables are established, that is, the first array a[h, k] provided in the embodiment of the present invention, and then it is determined whether to stop the operation of the second host computer. If so, the operation of the second host computer is stopped. If not, a fault judgment is performed. After the fault judgment, the fuel cell engine dbc file is parsed to extract the fuel cell engine CVM single-chip voltage information and fuel cell engine status parameters.
[0115] In the offline mode status monitoring and information display and playback steps, the first array a[h, k] provided by the embodiment of the present invention determines whether to stop the operation of the second host computer. If yes, the operation of the second host computer is stopped. If not, a fault judgment is performed. After the fault judgment, the fuel cell engine CVM single chip voltage information and the fuel cell engine state parameter variable array, i.e., the second array a[i, j], are established. The control of the fuel cell engine provided by the embodiment of the present invention is completed through the above steps.
[0116] The system provided by the embodiment of the present invention sends fuel cell engine control data to the first host computer through the fuel cell engine controller, the first host computer parses the control data to obtain the parsed control data, and sends the control instruction to the fuel cell engine controller according to the parsed control data, and the fuel cell engine controller controls the operation of the fuel cell engine according to the control instruction; sends the fuel cell engine state monitoring and information playback data to the second host computer through the fuel cell engine controller, the storage thread of the second host computer stores the above state monitoring and information playback data, and the second host computer monitors the engine according to the state monitoring and information playback data and dynamically plays back the data of the fuel cell engine. The embodiment of the present invention separates the control of the fuel cell engine and the state monitoring and information playback functions of the fuel cell engine by setting the first host computer and the second host computer, thereby reducing the occupation of the host computer process, avoiding the host computer freeze, delay and other faults during use, and improving the operation efficiency of the host computer.
[0117] On the other hand, see Figure 5 , an embodiment of the present invention provides a fuel cell engine control system, the system comprising:
[0118] 501. Fuel cell engine controller, used for collecting state parameters and operating logic control of the fuel cell engine during operation, and receiving control instructions from the vehicle and the host computer;
[0119] 502, a first host computer, connected to the fuel cell engine controller for communication, for receiving fuel cell engine control data sent by the fuel cell engine controller, and sending a control instruction to the fuel cell engine controller so that the fuel cell engine controller controls the fuel cell engine to work according to the control instruction;
[0120] 503. A second host computer is communicatively connected to the fuel cell engine controller, and is used to receive the fuel cell engine state parameters sent by the fuel cell engine controller and the control instructions sent by the first host computer, and dynamically replay the fuel cell engine operation state parameter information and control instruction information according to the fuel cell engine state monitoring and information playback data.
[0121] The second host computer has other auxiliary functions when realizing data playback:
[0122] As an example, the second host computer can also set the time for reading data, such as 10ms / 100ms / 1000ms, etc.; it can fast forward and rewind when playing back data; it can manually select a time point to quickly play back the test data at a certain moment; during the playback process, the single-chip voltage information of the CVM is dynamically displayed on the graph, and the standard deviation, variance, maximum single-chip voltage, minimum single-chip voltage, single-chip number corresponding to the maximum single-chip voltage, single-chip number corresponding to the minimum single-chip voltage, etc. of the CVM at that moment are calculated and displayed; the second host computer can set the models of different fuel cell engines, select the corresponding model during playback, and the data can be analyzed and played back according to the model during playback and analysis; when a certain state parameter needs to be understood, it can be manually selected during data playback and dynamically displayed with a chart.
[0123] For further information, see Figure 6 The second host computer provided in the embodiment of the present invention includes a fuel cell engine state monitoring module for monitoring the operating state of the fuel cell engine.
[0124] The fuel cell engine status monitoring module includes a CAN type data dbc file reading submodule, which is used to read the fuel cell engine dbc type file.
[0125] CAN data parsing module, used to parse CAN type data.
[0126] The fuel cell engine CAN single-chip voltage and fuel cell engine state parameter array calculation module is used to establish the fuel cell engine CAN single-chip voltage and fuel cell engine state parameter array according to the parsed CAN data.
[0127] The data storage module is used to store all the data of the fuel cell engine.
[0128] The CAN card configuration module is used for the second host computer to communicate with the fuel cell engine controller.
[0129] The fault diagnosis module is used for performing fault diagnosis on the fuel cell engine.
[0130] Among them, the above-mentioned fuel cell engine status monitoring module is communicatively connected with the CAN type data dbc file reading submodule, the CAN data parsing module, the fuel cell engine CAN single chip voltage and fuel cell engine status parameter array calculation module, the data storage module, the CAN card configuration module and the fault diagnosis module.
[0131] Furthermore, the second host computer provided in the embodiment of the present invention also includes a fuel cell engine information playback module, which is used to dynamically playback fuel cell engine information; wherein the fuel cell engine information playback module includes a command operation module, which is used to display and playback information according to the display playback instructions of the fuel cell engine controller; a file reading and target data selection module, which is used to read the file of the fuel cell engine and select the target module to be executed, such as fault diagnosis or data storage; a fuel cell engine CAN single-chip voltage and fuel cell engine status parameter array calculation module, which is used to establish the fuel cell engine CAN single-chip voltage and fuel cell engine status parameter array according to the parsed CAN data; a fault diagnosis module, which is used to perform fault diagnosis on the fuel cell engine; a data storage module, which is used to store all data of the fuel cell engine and formulate data export; a CAN message parsing module, which is used to parse CAN type messages.
[0132] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A fuel cell engine control method, characterized in that: The method comprises: The fuel cell engine controller sends the fuel cell engine operating parameters to the first host computer, and the fuel cell engine controller controls the operation of the fuel cell engine according to the real-time data sent by the first host computer after parsing the operating parameters; The fuel cell engine controller sends fuel cell engine status monitoring and information playback data to the second host computer, and the second host computer monitors the fuel cell engine and plays back the fuel cell engine information according to the status monitoring and information playback instructions; The state monitoring and information playback steps include online state monitoring and offline information playback steps; The second host computer obtains the online status of the fuel cell engine; Monitor and replay the fuel cell engine information according to the online status of the fuel cell engine; The step of monitoring and replaying the fuel cell engine information according to the online state of the fuel cell engine includes: When the fuel cell engine is in an online state, acquiring and parsing the fuel cell engine message to obtain the fuel cell engine CVM information and the fuel cell engine state parameters; Establishing a first array a[h, k] of the fuel cell engine CVM information and the fuel cell engine state parameter, wherein a[h, k] is all fuel cell engine CVM information of the fuel cell engine at time h and the fuel cell engine state parameter k; The fuel cell engine information is monitored according to the fuel cell engine CVM information and a first array of fuel cell engine state parameters.
2. The fuel cell engine control method according to claim 1, characterized in that: Before establishing the fuel cell engine CVM information and the first array a[h, k] of the fuel cell engine state parameters, the online state monitoring and information playback step further includes: Acquire the storage status of the fuel cell engine CVM information and the fuel cell engine state parameter, and when the fuel cell engine CVM information and the fuel cell engine state parameter do not need to be stored, establish a first array a[h, k] of the fuel cell engine CVM information and the fuel cell engine state parameter; When the fuel cell engine CVM information and the fuel cell engine state parameters need to be stored, they are stored through a database storage thread, and a first array a[h, k] of the fuel cell engine CVM information and the fuel cell engine state parameters is established.
3. The fuel cell engine control method according to claim 1, characterized in that: The monitoring and replaying of the fuel cell engine information according to the online state of the fuel cell engine also includes: When the fuel cell engine is in an offline state, the second host computer obtains local storage data, obtains and parses the fuel cell engine message in the local storage data, and obtains the fuel cell engine CVM information and the fuel cell engine state parameter; Establishing a second array a[i,j] of the fuel cell engine CVM information and the fuel cell engine state parameter, wherein a[i,j] is all fuel cell engine CVM information of the fuel cell engine at time i and the fuel cell engine state parameter j; The fuel cell engine information is replayed according to the fuel cell engine CVM information and the second array a[i, j] of fuel cell engine state parameters.
4. The fuel cell engine control method according to claim 3, characterized in that: Establishing the fuel cell engine CVM information and the fuel cell engine state parameter second array a[i,j], including: Extracting a total array a[m,n] of the fuel cell engine CVM information and the fuel cell engine state parameter, wherein a[m,n] is all fuel cell engine CVM information and the fuel cell engine state parameter n of the fuel cell engine at time m; The fuel cell engine CVM information and the fuel cell engine state parameter second array a[i,j] are established according to the total array a[m,n] of the fuel cell engine CVM information and the fuel cell engine state parameter.
5. The fuel cell engine control method according to claim 4, characterized in that: The replaying of the fuel cell engine information according to the fuel cell engine CVM information and the fuel cell engine state parameter second array a[i,j] includes: when i≥m, ending state monitoring and information replay; When i<m, repeat the steps of monitoring and replaying the fuel cell engine information according to the fuel cell engine CVM information and the second array a[i,j] of fuel cell engine state parameters.
6. A fuel cell engine control system, characterized in that: The system comprises: The fuel cell engine controller is used to collect the state parameters of the fuel cell engine during operation and control the operation logic, and receive control instructions from the vehicle and the host computer; a first host computer, connected to the fuel cell engine controller for receiving fuel cell engine control data sent by the fuel cell engine controller, and sending control instructions to the fuel cell engine controller so that the fuel cell engine controller controls the operation of the fuel cell engine according to the control instructions; A second host computer is connected to the fuel cell engine controller for receiving fuel cell engine state parameters sent by the fuel cell engine controller and control instructions sent by the first host computer, and dynamically replays the fuel cell engine operation state parameter information and control instruction information according to the fuel cell engine state monitoring and information playback data; The second host computer is also used to obtain and parse the fuel cell engine message when the fuel cell engine is in an online state, so as to obtain the fuel cell engine CVM information and the fuel cell engine state parameters; Establishing a first array a[h, k] of the fuel cell engine CVM information and the fuel cell engine state parameter, wherein a[h, k] is all fuel cell engine CVM information of the fuel cell engine at time h and the fuel cell engine state parameter k; Monitoring the fuel cell engine information according to the fuel cell engine CVM information and a first array of fuel cell engine state parameters; The second host computer includes a fuel cell engine status monitoring module and a fuel cell engine data playback module. The fuel cell engine status monitoring module is used to monitor the operating status of the fuel cell engine, and the fuel cell engine data playback module is used to operate the fuel cell engine according to the operating instructions of the first host computer.
7. The system according to claim 6, characterized in that The fuel cell engine state monitoring module comprises a CAN type data dbc file reading submodule, which is used to read the fuel cell engine dbc type file.
