Disclosure of Invention
The invention aims to provide a method which can realize real-time monitoring of a fuel cell engine and DC/DC, display the running state of each part of the fuel cell engine and the DC/DC in real time on an upper computer, control the fuel cell engine, the DC/DC and an adjustable load, perform manual control, automatic control and forced manual control on the fuel cell engine and the DC/DC, provide self-protection and fault early warning, and monitor and debug a fuel cell power system.
In order to achieve the purpose, the invention adopts the technical scheme that: the upper computer is connected with a fuel cell controller, an adjustable load and a DC/DC through the CAN bus, and adopts a parallel processing multithreading structure to carry out CAN communication with the fuel cell controller, the adjustable load and the DC/DC; the upper computer receives and analyzes messages sent by the adjustable load, the DC/DC and the fuel cell controller in real time by using a receiving thread, sends the analyzed data to a main thread for real-time data and curve display, and stores the received data into a database by using a data storage thread; the main thread interface of the upper computer also comprises a function button and a set target value input frame, and the sending thread sends a control command and a set target value of the function button in the main thread to the fuel cell controller and the adjustable load through the CAN bus, so that manual control, automatic control and manual forced control under automatic control modes under different load power conditions of the fuel cell power system platform are realized, and energy distribution, fault alarm and self protection between the fuel cell engine and the bidirectional power supply are realized.
In the above monitoring method for the upper computer of the fuel cell power system platform based on the CAN bus, the thread working method includes: after the upper computer is successfully in communication connection with the fuel cell controller, the DC/DC and the adjustable load, starting all threads, receiving and analyzing CAN messages sent by the adjustable load, the DC/DC and the fuel cell controller in real time by the receiving thread, and sending analyzed data to the main thread and the data storage thread; the data storage thread binds the data analyzed by the receiving thread by using an SQL statement and stores the data into a corresponding storage space of the database; the interface control of the host thread of the upper computer displays the working state and parameter information of the adjustable load, the DC/DC and the fuel cell engine, and refreshes the display interface at the set timing time according to the analyzed data, the host thread receives the target control value input frame, the real-time curve display and the historical curve display command, the data storage thread extracts the stored data and sends the data to the host thread, and the real-time curve and the historical curve are drawn for the received voltage of the adjustable load, the current of the adjustable load and the power of the adjustable load, the input end voltage of the DC/DC, the input end current of the DC/DC, the output end voltage of the DC/DC, the output end current of the DC/DC, the hydrogen supply system, the air supply system, the cooling system and the parameters of the electrical system of the fuel cell engine according to the time sequence.
In the above monitoring method for the upper computer of the fuel cell power system platform based on the CAN bus, the manual control method includes: the main thread receives a CAN opening command, the upper computer is connected with a CAN bus to communicate with the adjustable load, the DC/DC and the fuel cell controller, the receiving thread receives CAN messages of the fuel cell controller, the adjustable load and the DC/DC and analyzes and displays all parameters and state information of a fuel cell power system platform, the upper computer receives a manual control mode command, receives on-off commands of a hydrogen solenoid valve, a hydrogen proportional valve, a hydrogen circulating pump, a hydrogen heating exhaust solenoid valve, an inlet water pump, an outlet water pump, a main heat exchanger, a DC water pump, an air compressor cold water pump, an air compressor inlet throttle valve, an air compressor and an air outlet throttle valve component, and setting values of a hydrogen proportional valve opening, an air compressor inlet throttle valve opening, an air outlet throttle valve opening, an air compressor rotating speed, a hydrogen circulating pump rotating speed, a heat exchanger and a water pump rotating speed data input frame, the upper computer sends messages of the control variables to the fuel cell controller according to the protocol; the upper computer receives DC/DC main contactor switch, effective DC/DC enable, DC/DC enable and DC/DC input target current commands and sends CAN message control commands to the fuel cell controller, so that the upper computer CAN manually control the DC/DC; and the upper computer receives the output gear command of the adjustable load and sends a CAN message control command to the adjustable load, so that the output power of the adjustable load is adjusted.
In the above monitoring method for the upper computer of the fuel cell power system platform based on the CAN bus, the automatic control method includes: the main thread receives a CAN opening command, the upper computer is connected with a CAN bus to communicate with the fuel cell controller, the adjustable load and the DC/DC, and the receiving thread receives CAN messages of the fuel cell controller, the adjustable load and the DC/DC to analyze and display all parameters and state information of a fuel cell power system platform; the upper computer receives an automatic control command, a fuel cell engine is started, the fuel cell engine is shut down, DC/DC operation and a fuel cell engine output current control command and sends the commands to the fuel cell controller through a CAN bus; and the upper computer simultaneously receives the adjustable load output gear command and sends a CAN control command to the adjustable load to carry out loading and unloading operations.
In the above monitoring method for the upper computer of the fuel cell power system platform based on the CAN bus, the method for manually and forcibly controlling in the automatic control mode includes: the main thread receives and opens the CAN command, the upper computer is connected with the CAN bus to communicate with the adjustable load, the DC/DC and the fuel cell controller, the receiving thread receives and analyzes the CAN messages of the fuel cell controller, the adjustable load and the DC/DC and displays all parameters and state information of a power system platform of the fuel cell, the upper computer receives a manual control command, receives on-off commands of a hydrogen solenoid valve, a hydrogen proportional valve, a hydrogen circulating pump, a hydrogen heating exhaust solenoid valve, an inlet water pump, an outlet water pump, a main heat exchanger, a DC water pump, an air compressor cold water pump, an air compressor inlet throttle valve, an air compressor and an air outlet throttle valve component, and setting values of a hydrogen proportional valve opening, an air compressor inlet throttle valve opening, an air outlet throttle valve opening, an air compressor rotating speed, a hydrogen circulating pump rotating speed, a heat exchanger and a water pump rotating speed data input frame, then the messages of the control variables are sent to the fuel cell controller according to the protocol; the upper computer receives DC/DC main contactor switch, effective DC/DC enable, DC/DC enable and DC/DC input target current commands and sends CAN message control commands to the fuel cell controller, so that the upper computer CAN manually control the DC/DC; and the upper computer receives the output gear command of the adjustable load and sends a CAN message control command to the adjustable load, so that the manual control of the output power of the adjustable load is realized.
In the above monitoring method for the upper computer of the fuel cell power system platform based on the CAN bus, the fault alarm method includes: the upper computer receives and analyzes the message on the CAN bus in real time through the receiving thread, carries out ID and fault value matching on the fault code sent by the fuel cell controller and the DC/DC and the fault library established in the main thread, simultaneously reads the current time of the upper computer, carries out frequency and interval time statistics on the occurred fault, and sends the matched fault meaning to the interface to display the fault meaning, the fault code, the fault time, the fault grade, the frequency of occurrence of the fault and the interval time of occurrence of the fault; and (3) carrying out overvoltage, undervoltage, overcurrent and overheating fault prompting on the adjustable load according to voltage, current, power and temperature parameters fed back by the CAN bus through the adjustable load by combining the working states of a fuel cell engine and the DC/DC, and displaying the occurrence frequency and the occurrence interval time of the faults.
In the above monitoring method for the upper computer of the fuel cell power system platform based on the CAN bus, the self-protection method includes: under the automatic control and manual forced control modes, the upper computer receives and analyzes messages sent by the fuel cell controller, the DC/DC and the adjustable load in real time through a receiving thread, when parameters of a hydrogen supply system, an air supply system, a cooling system and an electrical system of the fuel cell engine, the input end voltage of the DC/DC, the input end current of the DC/DC, the output end voltage of the DC/DC and the output end current of the DC/DC are detected to exceed a preset threshold value of the upper computer and last set time, the upper computer sends a command of shutting down the fuel cell engine, disconnecting the DC/DC from a main contactor and inputting the DC/DC to the fuel cell through a CAN bus, and when the upper computer judges that the adjustable load has a fault and the fault duration exceeds the set threshold value, the upper computer sends a command of clearing an output power gear to the adjustable load through the CAN bus, thereby realizing the self-protection of the fuel cell power system platform.
The invention has the beneficial effects that: the invention is convenient for monitoring the state of the fuel cell power system platform and debugging the energy control strategy, has strong anti-interference capability and stable control performance, and can be widely applied to simulation test and whole vehicle development before loading the fuel cell vehicle power system. And storing the operating state data in a database, and displaying data, curves and faults, so that the system performance and fault analysis in the test process are facilitated.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The embodiment provides a CAN bus-based monitoring method for an upper computer of a fuel cell power system platform, which monitors the working states and parameter information of a fuel cell engine, a DC/DC and an adjustable load, CAN utilize the upper computer to perform manual control, automatic control and forced manual control on the fuel cell engine, the DC/DC and the adjustable load, and perform parameter matching and control strategy adjustment and optimization on the fuel cell power system platform, stores the running state data in a database, performs data, curve and fault display and self-protection, and is convenient for system performance and fault analysis in the test process.
The embodiment is realized by the following technical scheme, in the monitoring method of the upper computer of the fuel cell power system platform based on the CAN bus, the output end of a fuel cell engine of the fuel cell power system platform is connected with the input end of a boost DC/DC converter, the output end of the boost DC/DC converter is connected with the direct current end of a bidirectional power supply and the input end of an adjustable load, and the alternating current end of the bidirectional power supply is connected with a power grid to realize electric energy feedback and absorption. The upper computer is connected with the fuel cell controller, the adjustable load and the DC/DC through a CAN bus, and CAN communication is carried out with the fuel cell controller, the adjustable load and the DC/DC by adopting a parallel processing multithreading structure. The upper computer receives and analyzes messages sent by the adjustable load, the DC/DC and the fuel cell controller in real time by using the receiving thread, sends the analyzed data to the main thread for real-time data and curve display, and stores the received data in the database by using the data storage thread. The host thread interface of the upper computer also comprises a function button and a set target value input frame, the sending thread sends a control command and a set target value of the function button in the main thread to the fuel cell controller and the adjustable load through the CAN bus, the fuel cell controller controls the DC/DC and the fuel cell engine according to a received CAN message command, and the adjustable load adjusts a power consumption gear according to the received CAN message control command, so that manual control, automatic control and manual forced control under different load power conditions of the fuel cell power system platform, energy distribution between the fuel cell engine and the bidirectional power supply, fault alarm and self-protection are realized.
The thread working method comprises the following steps: clicking a CAN opening button on a main thread interface, after the CAN opening button is successfully in communication connection with a fuel cell controller, a DC/DC and an adjustable load, starting all threads by an upper computer, receiving and analyzing CAN messages sent by the adjustable load, the DC/DC and the fuel cell controller in real time by using a receiving thread, and sending analyzed data to a main thread and a data storage thread; the data storage thread binds the data analyzed by the receiving thread by using an SQL statement and stores the data into a corresponding storage space of the database; the interface control of the host thread of the upper computer displays the working state and parameter information of the adjustable load, the DC/DC and the fuel cell engine, and refreshes the display interface at the set timing time according to the analyzed data, the host thread main interface also comprises a target control value input frame, a real-time curve display selection button and a historical curve display selection button, the data storage thread extracts the stored data and sends the data to the host thread by clicking the corresponding real-time curve and historical curve display selection buttons, the voltage of the adjustable load, the current of the adjustable load and the power of the adjustable load are received according to the time sequence, the input end voltage of the DC/DC, the input end current of the DC/DC, the output end voltage of the DC/DC, the output end current of the DC/DC, the hydrogen supply system of the fuel cell engine, the air supply system, the fuel cell engine and the fuel cell engine, And drawing a real-time curve and a historical curve of the parameters of the cooling system and the electrical system.
The manual control method includes: after the upper computer is opened, clicking a CAN button on a main thread interface to open, connecting a CAN bus with an adjustable load, DC/DC and a fuel cell controller by the upper computer, displaying green by the communication connection button after CAN communication is successful, receiving a CAN message of the fuel cell controller, the adjustable load and the DC/DC by a receiving thread at the moment, analyzing and displaying all parameters and state information of a fuel cell power system platform, firstly clicking a manual control mode button of the main interface of the upper computer, and operating a switching command button of a hydrogen electromagnetic valve, a hydrogen proportional valve, a hydrogen circulating pump, a hydrogen heating exhaust electromagnetic valve, an inlet water pump, an outlet water pump, a main heat exchanger, a DC water pump, an air compressor cold water pump, an air compressor inlet throttle valve, an air compressor and an air outlet throttle valve part of the upper computer, and opening degree of the hydrogen proportional valve, The upper computer sends messages of the control variables to the fuel cell controller according to the protocol, the fuel cell controller analyzes the operation command of the upper computer according to the protocol, controls the opening and closing of a hydrogen electromagnetic valve, a proportion regulating valve, a hydrogen heating exhaust electromagnetic valve for exhaust, a hydrogen heating exhaust electromagnetic valve for heating, a hydrogen circulating pump, an air compressor inlet throttle valve, an air outlet throttle valve, an inlet water pump, an outlet water pump, a DC heat exchanger and a main heat exchanger component by outputting corresponding IO signals, controls the opening of a hydrogen proportional valve, the air compressor inlet throttle valve and the air outlet throttle valve by outputting PWM signals with certain frequency and duty ratio, and sends target rotating speed commands to the air compressor, the air pump and the heat exchanger through another CAN, The hydrogen circulating pump, the cooling fan and the circulating water pump are used for controlling the rotating speed; the method comprises the steps that a CAN message control command is sent to a fuel cell controller by operating a DC/DC main contactor switch on an upper computer interface, enabling DC/DC to be effective, enabling DC/DC and inputting a target current command by DC/DC, and the fuel cell controller outputs a corresponding CAN message command to DC/DC according to the received CAN message to realize the manual control of the upper computer on DC/DC; and transmitting a CAN message control command to the adjustable load by operating an output gear command of the adjustable load on the upper computer interface, so as to realize the adjustment of the output power of the adjustable load.
The automatic control method includes: and after the upper computer is opened, clicking a CAN button on the main thread interface to open, connecting the CAN bus with the upper computer to communicate with the fuel cell controller, the adjustable load and the DC/DC, displaying green by the communication connection button after CAN communication is successful, and receiving the CAN messages of the fuel cell controller, the adjustable load and the DC/DC by the receiving thread to analyze and display all parameters and state information of the fuel cell power system platform. Firstly clicking an automatic control mode button of a host interface of an upper computer, then operating a fuel cell engine starting, a fuel cell engine shutdown, a DC/DC operation and a fuel cell engine output current control command of the host computer automatic control mode interface and sending the control commands to a fuel cell controller through a CAN bus, and the fuel cell controller starts and stops a hydrogen supply system, an air supply system, a cooling system and an actuator of an electrical system of the fuel cell engine according to the received fuel cell engine control command from the host computer in combination with a preset control flow and a preset strategy to realize the starting, stopping and operation of the fuel cell engine; the fuel cell controller sends a DC/DC control command from an upper computer to the DC/DC through a CAN bus according to a DC/DC communication protocol to control the DC/DC main contactor switch, the DC/DC enabling effect and the DC/DC enabling of the fuel cell controller; the fuel cell controller automatically adjusts the running state of the fuel cell engine according to the received fuel cell engine output current control command from the upper computer, and sends the command to a DC/DC target input current through a CAN bus according to a DC/DC communication protocol to realize the controllable output of the fuel cell engine; and simultaneously, operating an adjustable load output gear command of an upper computer automatic control mode interface to send a CAN control command to the adjustable load to carry out loading and unloading operations.
The forced manual control method includes: after clicking an automatic control mode button of a main interface of the upper computer and operating a starting command button of the fuel cell engine, when it is detected that the respective parameters and states of the fuel cell engine and the DC/DC are out of the set ranges, clicking each execution part of a fuel cell engine hydrogen supply system, a fuel cell engine air supply system, a fuel cell engine cooling water system and a fuel cell engine electric system on an automatic control mode main interface of an upper computer, and a DC/DC main contactor switch, a forced manual control selection button for a DC/DC input current target value, and inputs a forced execution control target value, sent to the fuel cell controller through the CAN bus, the fuel cell controller updates the control state and the operation value of the corresponding component in the automatic control program in advance according to the received command, therefore, manual intervention control and running state optimization of the part execution component in the automatic control mode are realized.
The fault alarm method comprises the following steps: the upper computer receives and analyzes the message on the CAN bus in real time through the receiving thread, carries out ID and fault value matching on the fault code sent by the fuel cell controller and the DC/DC and the fault library established in the main thread, simultaneously reads the current time of the computer, carries out frequency and interval time statistics on the occurred fault, and sends the matched fault meaning to the interface to display the fault meaning, the fault code, the fault time, the fault grade, the frequency of occurrence of the fault and the interval time of occurrence of the fault. Meanwhile, overvoltage, undervoltage, overcurrent and overheat fault prompting is carried out on the adjustable load according to voltage, current, power and temperature parameters fed back by the CAN bus through the adjustable load by combining the working states of a fuel cell engine and the DC/DC, and the frequency of occurrence of the fault and the time interval of occurrence of the fault are also displayed.
The self-protection method includes: under the automatic control and manual forced control modes, the upper computer receives and analyzes messages sent by the fuel cell controller, the DC/DC and the adjustable load in real time through a receiving thread, when parameters of a hydrogen supply system, an air supply system, a cooling system and an electrical system of the fuel cell engine, the input end voltage of the DC/DC, the input end current of the DC/DC, the output end voltage of the DC/DC and the output end current of the DC/DC are detected to exceed a preset threshold value of the upper computer and last set time, the upper computer actively sends a command of shutting down the fuel cell engine, disconnecting the DC/DC main contactor and the DC/DC input current to the fuel cell through a CAN bus, when the upper computer judges that the adjustable load has a fault and the fault duration exceeds the set threshold value, the upper computer actively sends an output power gear order to the adjustable load through the CAN bus, therefore, the active protection of the fuel cell power system platform is realized.
In specific implementation, as shown in fig. 1 and 2, in the monitoring method for the upper computer of the fuel cell power system platform based on the CAN bus, the output end of a fuel cell engine of the fuel cell power system platform is connected with the input end of a boost DC/DC converter, the output end of the boost DC/DC converter is connected with the direct current end of a bidirectional power supply and the input end of an adjustable load, and the alternating current end of the bidirectional power supply is connected with a power grid to realize electric energy feedback and absorption. The upper computer is connected with the fuel cell controller, the adjustable load and the DC/DC through a CAN bus, and CAN communication is carried out with the fuel cell controller, the adjustable load and the DC/DC by adopting a parallel processing multithreading structure. The upper computer receives and analyzes messages sent by the adjustable load, the DC/DC and the fuel cell controller in real time by using the receiving thread, sends the analyzed data to the main thread for real-time data and curve display, and stores the received data in the database by using the data storage thread. The host thread interface of the upper computer also comprises a function button and a set target value input frame, the sending thread sends a control command and a set target value of the function button in the main thread to the fuel cell controller and the adjustable load through the CAN bus, the fuel cell controller controls the DC/DC and the fuel cell engine according to a received CAN message command, and the adjustable load adjusts a power consumption gear according to the received CAN message control command, so that manual control, automatic control and manual forced control under automatic control modes under different load power conditions of the fuel cell power system platform are realized, and energy distribution between the fuel cell engine and the bidirectional power supply is realized.
As shown in fig. 3, clicking a CAN button on a main thread interface, after successful communication connection with the fuel cell controller, the DC/DC and the adjustable load, the upper computer starts all threads, receiving and analyzing CAN messages sent by the adjustable load, the DC/DC and the fuel cell controller in real time by using a receiving thread, and sending analyzed data to the main thread and a data storage thread; the data storage thread binds the data analyzed by the receiving thread by using an SQL statement and stores the data into a corresponding storage space of the database; the interface control of the host thread of the upper computer displays the working state and parameter information of the adjustable load, the DC/DC and the fuel cell engine, and refreshes the display interface at the set timing time according to the analyzed data, the host thread main interface also comprises a target control value input frame, a real-time curve display selection button and a historical curve display selection button, the data storage thread extracts the stored data and sends the data to the host thread by clicking the corresponding real-time curve and historical curve display selection buttons, the voltage of the adjustable load, the current of the adjustable load and the power of the adjustable load are received according to the time sequence, the input end voltage of the DC/DC, the input end current of the DC/DC, the output end voltage of the DC/DC, the output end current of the DC/DC, the hydrogen supply system of the fuel cell engine, the air supply system, the fuel cell engine and the fuel cell engine, And drawing a real-time curve and a historical curve of the parameters of the cooling system and the electrical system.
As shown in fig. 4, 5, 6 and 7, after the upper computer is opened, clicking a CAN button on a main thread interface to open the CAN, at the moment, connecting a CAN bus with an adjustable load, a DC/DC and a fuel cell controller by the upper computer, when the CAN communication is successful, displaying green by the communication connection button, receiving the CAN messages of the fuel cell controller, the adjustable load and the DC/DC by a receiving thread at the moment, analyzing and displaying all parameters and state information of a fuel cell power system platform, firstly clicking a manual control mode button of the upper computer main interface, and operating a switch command button of a hydrogen solenoid valve, a hydrogen proportional valve, a hydrogen circulating pump, a hydrogen heating exhaust solenoid valve, an inlet water pump, an outlet water pump, a main heat exchanger, a DC water pump, an air compressor, a cold water pump, an air compressor inlet throttle, an air compressor and an air outlet throttle component of the upper computer, and the set values of the data input boxes of the hydrogen proportional valve opening, the air compressor inlet throttle valve opening, the air outlet throttle valve opening, the air compressor rotating speed, the hydrogen circulating pump rotating speed, the heat exchanger and the water pump rotating speed, the upper computer sends messages of the control variables to the fuel cell controller according to the protocol, the fuel cell controller analyzes the operation commands of the upper computer according to the protocol, controls the opening and closing of the hydrogen electromagnetic valve, the proportional control valve, the hydrogen heating exhaust electromagnetic valve for exhaust, the hydrogen heating exhaust electromagnetic valve for heating, the hydrogen circulating pump, the air compressor inlet throttle valve, the air outlet throttle valve, the inlet water pump, the outlet water pump, the DC heat exchanger and the main heat exchanger component by outputting corresponding IO signals, controls the opening of the hydrogen proportional valve, the air compressor inlet throttle valve and the air outlet throttle valve by outputting PWM signals with certain frequency and duty ratio, and sends target rotating speed commands to the air compressor through another CAN, The hydrogen circulating pump, the cooling fan and the circulating water pump are used for controlling the rotating speed; the method comprises the steps that a CAN message control command is sent to a fuel cell controller by operating a DC/DC main contactor switch on an upper computer interface, enabling DC/DC to be effective, enabling DC/DC and inputting a target current command to the DC/DC, and the fuel cell controller outputs a corresponding CAN message command to the DC/DC according to the received CAN message from the upper computer and the communication protocol of the DC/DC, so that the upper computer indirectly and manually controls the DC/DC; and a CAN message control command is sent to the adjustable load through an output gear command of the adjustable load on an upper computer interface, so that the output power of the adjustable load CAN be directly adjusted.
As shown in fig. 8, after the upper computer is turned on, the CAN-on button on the main thread interface is clicked, the upper computer is connected with the CAN bus to communicate with the fuel cell controller, the adjustable load and the DC/DC, after the CAN communication is successful, the communication connection button displays green, and the receiving thread receives the CAN messages of the fuel cell controller, the adjustable load and the DC/DC to analyze and display all parameters and state information of the fuel cell power system platform. Firstly clicking an automatic control mode button of a host interface of an upper computer, then operating a fuel cell engine starting, a fuel cell engine shutdown, a DC/DC operation and a fuel cell engine output current control command of the host computer automatic control mode interface and sending the control commands to a fuel cell controller through a CAN bus, and the fuel cell controller starts and stops a hydrogen supply system, an air supply system, a cooling system and an actuator of an electrical system of the fuel cell engine according to the received fuel cell engine control command from the host computer in combination with a preset control flow and a preset strategy to realize the starting, stopping and operation of the fuel cell engine; the fuel cell controller sends a DC/DC control command from an upper computer to the DC/DC through a CAN bus according to a DC/DC communication protocol to control the DC/DC main contactor switch, the DC/DC enable effect and the DC/DC enable; the fuel cell controller automatically adjusts the hydrogen supply system, the air supply system, the cooling system and the electric system according to the received output current control command of the fuel cell engine from the upper computer so as to control the running state of the fuel cell engine, and sends the output current control command to the DC/DC target input current command through the CAN bus according to the DC/DC communication protocol to realize the power controllable output of the fuel cell engine; and simultaneously, operating an adjustable load output gear command of an upper computer automatic control mode interface to send a CAN control command to the adjustable load to carry out loading and unloading operations.
As shown in fig. 9, after clicking an automatic control mode button of a host interface of a host computer and operating a start command button of a fuel cell engine, when detecting that parameters and states of the fuel cell engine and the DC/DC are not in a set range, clicking executing components of a hydrogen supply system of the fuel cell engine, an air supply system of the fuel cell engine, a cooling water system of the fuel cell engine and an electrical system of the fuel cell engine on the host computer automatic control mode host interface, a switch of a DC/DC main contactor, a forced manual control selection button of a DC/DC input current target value, inputting a forced execution control target value, sending the control target value to a fuel cell controller through a CAN bus, updating a control state and an operation value of a correspondingly selected forced manual control component in a pre-automatic control program by the fuel cell controller according to a received command, therefore, manual intervention control and running state optimization of the part execution component in the automatic control mode are realized.
As shown in fig. 10, the upper computer receives and analyzes the message on the CAN bus in real time through the receiving thread, matches the fault code sent by the fuel cell controller and the DC/DC with the fault library established in the main thread for ID and fault value matching, reads the current time of the computer at the same time, counts the number of times and interval time of the fault, and sends the matched fault meaning to the interface for displaying the fault meaning, the fault code, the fault time, the fault level, the number of times of the fault occurrence and the interval time of the fault occurrence. Meanwhile, overvoltage, undervoltage, overcurrent and overheat fault prompting is carried out on the adjustable load according to voltage, current, power and temperature parameters fed back by the CAN bus through the adjustable load by combining the working states of a fuel cell engine and the DC/DC, and the frequency of occurrence of the fault and the time interval of occurrence of the fault are also displayed.
As shown in fig. 11, in the automatic control and manual forced control mode, the upper computer receives and analyzes the messages sent by the fuel cell controller, the DC/DC and the adjustable load in real time through the receiving thread, when detecting that the parameters of the hydrogen supply system, the air supply system, the cooling system and the electrical system of the fuel cell engine and the parameters of the input terminal voltage of the DC/DC, the input terminal current of the DC/DC, the output terminal voltage of the DC/DC and the output terminal current of the DC/DC exceed the preset threshold value of the upper computer and last for a set time, the upper computer actively sends the command of shutting down the fuel cell engine, disconnecting the main contactor of the DC/DC and clearing the input current of the DC/DC to the fuel cell control through the CAN bus, when the upper computer judges that the adjustable load has a fault and the fault duration exceeds the set threshold value, the upper computer actively sends an output power gear zero clearing command to the adjustable load through the CAN bus, so that the active protection of the fuel cell power system platform is realized.
It should be understood that parts of the specification not set forth in detail are well within the prior art.
Although specific embodiments of the present invention have been described above with reference to the accompanying drawings, it will be appreciated by those skilled in the art that these are merely illustrative and that various changes or modifications may be made to these embodiments without departing from the principles and spirit of the invention. The scope of the invention is only limited by the appended claims.