CN116995274A - Fuel cell fault detection method, device, electronic equipment and storage medium - Google Patents

Fuel cell fault detection method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116995274A
CN116995274A CN202310960841.6A CN202310960841A CN116995274A CN 116995274 A CN116995274 A CN 116995274A CN 202310960841 A CN202310960841 A CN 202310960841A CN 116995274 A CN116995274 A CN 116995274A
Authority
CN
China
Prior art keywords
fault
diagnosis signal
signal
level
diagnosis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310960841.6A
Other languages
Chinese (zh)
Inventor
汪蔷
邢雪
黄韬
王洋
于凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University of Aeronautics and Astronautics
Original Assignee
Nanjing University of Aeronautics and Astronautics
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing University of Aeronautics and Astronautics filed Critical Nanjing University of Aeronautics and Astronautics
Priority to CN202310960841.6A priority Critical patent/CN116995274A/en
Publication of CN116995274A publication Critical patent/CN116995274A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M8/00Fuel cells; Manufacture thereof
    • H01M8/04Auxiliary arrangements, e.g. for control of pressure or for circulation of fluids
    • H01M8/04298Processes for controlling fuel cells or fuel cell systems
    • H01M8/04313Processes for controlling fuel cells or fuel cell systems characterised by the detection or assessment of variables; characterised by the detection or assessment of failure or abnormal function
    • H01M8/04664Failure or abnormal function
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M8/00Fuel cells; Manufacture thereof
    • H01M8/04Auxiliary arrangements, e.g. for control of pressure or for circulation of fluids
    • H01M8/04298Processes for controlling fuel cells or fuel cell systems
    • H01M8/04992Processes for controlling fuel cells or fuel cell systems characterised by the implementation of mathematical or computational algorithms, e.g. feedback control loops, fuzzy logic, neural networks or artificial intelligence
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/30Hydrogen technology
    • Y02E60/50Fuel cells

Landscapes

  • Engineering & Computer Science (AREA)
  • General Chemical & Material Sciences (AREA)
  • Sustainable Development (AREA)
  • Sustainable Energy (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Fuel Cell (AREA)
  • Automation & Control Theory (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Evolutionary Computation (AREA)
  • Fuzzy Systems (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)

Abstract

The embodiment of the application provides a method and a device for detecting faults of a fuel cell, electronic equipment and a storage medium, and relates to the technical field of power electronics. Comprising the following steps: performing fault acquisition on the fuel cell system according to a preset acquisition frequency to obtain a plurality of diagnosis signals; determining a fault level corresponding to each diagnostic signal; generating an output queue corresponding to each fault level; and packaging each output queue into a fault code, and outputting a plurality of fault codes. The embodiment of the application greatly saves data transmission resources, reduces the monitoring amount of the test end, further reduces the load of the measurement calibration bus, and improves the efficiency and accuracy of fault detection.

Description

Fuel cell fault detection method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of power electronics, and in particular, to a method and apparatus for detecting a fault of a fuel cell, an electronic device, and a storage medium.
Background
When the fuel cell system is operated, cathode oxygen in the electric pile and fuel gas of the anode are subjected to chemical reaction, so that a large amount of heat is released, and high pressure and high temperature are accompanied. In case of failure of the fuel cell system, serious consequences may occur, so that it is necessary to perform failure detection of the fuel cell system.
However, the software architecture of the fuel cell system is complex, and the corresponding control software functions and architecture are complex, so that a large number of signals are required for fault detection. For a conventional fuel cell system, at least one hundred of signals need to be subjected to fault diagnosis, and if fault signals are classified into different fault classes, the number of finally obtained fault types can be up to four to five hundred. During the system test, the faults need to be monitored in real time, so four to five hundred monitoring amounts need to be added in the test environment. However, adding excessive monitoring quantity can cause the problems of high measurement calibration bus load, signal transmission blocking and the like.
Disclosure of Invention
The object of the present application includes, for example, providing a fuel cell failure detection method, apparatus, electronic device, and storage medium, which can realize conversion of a large number of failure signals into failure code output without occupying excessive transmission resources.
Embodiments of the application may be implemented as follows:
in a first aspect, an embodiment of the present application provides a method for detecting a fault of a fuel cell, including:
performing fault acquisition on the fuel cell system according to a preset acquisition frequency to obtain a plurality of diagnosis signals;
determining a fault level corresponding to each diagnostic signal;
generating an output queue corresponding to each fault level;
and packaging each output queue into a fault code, and outputting a plurality of fault codes.
In one embodiment, the fault level includes: primary failure, secondary failure, tertiary failure, quaternary failure and no failure; the determining the fault level corresponding to each diagnosis signal comprises the following steps:
acquiring a signal value of the diagnostic signal;
if the signal value of the diagnosis signal is smaller than or equal to a fourth fault threshold value, determining that the diagnosis signal is fault-free;
if the signal value of the diagnosis signal is smaller than or equal to a third fault threshold and larger than the fourth fault threshold, determining that the diagnosis signal is a four-level fault;
if the signal value of the diagnosis signal is smaller than or equal to a second fault threshold and larger than the third fault threshold, determining that the diagnosis signal is a three-level fault;
if the signal value of the diagnosis signal is smaller than or equal to a first fault threshold value and larger than the second fault threshold value, determining that the diagnosis signal is a secondary fault;
if the signal value of the diagnosis signal is larger than the first fault threshold value, determining that the diagnosis signal is a primary fault;
wherein the first fault threshold is greater than the second fault threshold, the second fault threshold is greater than the third fault threshold, and the third fault threshold is greater than the fourth fault threshold.
In one embodiment, the method further comprises:
starting timing when the diagnostic signal is in a fault state, wherein the fault state comprises a primary fault, a secondary fault, a tertiary fault and a quaternary fault;
when the timing time is longer than or equal to a preset timing threshold value, determining that the fault state corresponding to the diagnosis signal is an effective fault state;
and when the timing duration is smaller than a preset timing threshold value, determining that the diagnosis signal is fault-free.
In an embodiment, the generating the output queue corresponding to each fault level includes:
generating an output queue corresponding to the first-level fault through a tail insertion method, if the diagnosis signal is the first-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the first-level fault, assigning 0 to the position corresponding to the diagnosis signal;
generating an output queue corresponding to the secondary fault through a tail insertion method, if the diagnosis signal is the secondary fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the secondary fault, assigning 0 to the position corresponding to the diagnosis signal;
generating an output queue corresponding to the three-level fault through a tail insertion method, if the diagnosis signal is the three-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the three-level fault, assigning 0 to the position corresponding to the diagnosis signal;
and generating an output queue corresponding to the four-level fault through a tail insertion method, if the diagnosis signal is the four-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the four-level fault, assigning 0 to the position corresponding to the diagnosis signal.
In one embodiment, said packing each of said output queues into a fault code includes:
packaging a group of elements with preset digits in the output queue into a fault code;
packaging according to a preset sequence until no residual elements exist in the output queue;
and carrying out zero padding treatment on the vacant positions of the fault codes, wherein the fault codes are binary numbers.
In an embodiment, said outputting a plurality of said fault codes comprises:
and converting the fault code into decimal number output.
In a second aspect, an embodiment of the present application provides a fuel cell failure detection apparatus, including:
the acquisition module is used for carrying out fault acquisition on the fuel cell system according to a preset acquisition frequency to obtain a plurality of diagnosis signals;
the determining module is used for determining the fault level corresponding to each diagnosis signal;
the generating module is used for generating output queues corresponding to the fault levels;
and the output module is used for packaging each output queue into fault codes and outputting a plurality of fault codes.
In an embodiment, the generating module is further configured to:
generating an output queue corresponding to the first-level fault through a tail insertion method, if the diagnosis signal is the first-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the first-level fault, assigning 0 to the position corresponding to the diagnosis signal;
generating an output queue corresponding to the secondary fault through a tail insertion method, if the diagnosis signal is the secondary fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the secondary fault, assigning 0 to the position corresponding to the diagnosis signal;
generating an output queue corresponding to the three-level fault through a tail insertion method, if the diagnosis signal is the three-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the three-level fault, assigning 0 to the position corresponding to the diagnosis signal;
and generating an output queue corresponding to the four-level fault through a tail insertion method, if the diagnosis signal is the four-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the four-level fault, assigning 0 to the position corresponding to the diagnosis signal.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory is configured to store a computer program, and the computer program executes the fuel cell fault detection method provided in the first aspect when the processor runs.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program which, when run on a processor, performs the fuel cell fault detection method provided in the first aspect.
The method, the device, the electronic equipment and the storage medium for detecting the faults of the fuel cell, provided by the application, determine the fault grade corresponding to each diagnosis signal by collecting the diagnosis signals, and generate the output queue corresponding to each fault grade. And packaging each output queue into a fault code, and outputting a plurality of fault codes. Dividing output queues according to the fault level, and packaging and outputting signals in each output queue according to a tail insertion method. The data transmission resource is greatly saved, the monitoring quantity is reduced, the load of a measurement calibration bus is reduced, and the efficiency and the accuracy of fault detection are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a fuel cell fault detection method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a fuel cell fault detection method according to an embodiment of the present application;
fig. 3 is a schematic diagram of another sub-flow of the fuel cell fault detection method according to the embodiment of the present application;
fig. 4 is a schematic structural diagram of a fuel cell fault detection device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments.
The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
The terms "comprises," "comprising," "including," or any other variation thereof, are intended to cover a specific feature, number, step, operation, element, component, or combination of the foregoing, which may be used in various embodiments of the present application, and are not intended to first exclude the presence of or increase the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the application belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments of the application.
Example 1
The embodiment of the application provides a fuel cell fault detection method.
The fuel cell system has complex functions, and each subsystem has complex functional interaction, so that it is of great importance to monitor whether each subsystem and the whole fuel cell system are normally executed. Whether the fuel cell system itself or each subsystem, a large number of signals (including hard-wire signals, CAN communication signals, software internal self-running signals, etc.) exist in each part, and the control software of the fuel cell needs to analyze the deviation of the signal value and the normal signal value in real time so as to judge whether the current signal is in a fault state or not.
However, because the fuel cell system has a complex structure and functions, the number of signals generated by software and hardware is as high as three digits, and one signal is classified into different fault levels. If all the signals to be subjected to fault diagnosis and the fault levels thereof are to be output, the requirement on signal transmission is high, and a large transmission bandwidth is occupied. Meanwhile, in the system test process, the faults need to be monitored in real time, so that more (four hundred or more) monitoring quantities need to be added in a test environment to monitor the faults in real time, the faults are triggered currently, but the faults are not triggered, the excessive monitoring quantities are added to cause the problems of overhigh load of a measurement calibration bus, signal transmission clamping and the like, and the overhigh load of the measurement calibration bus on hardware is caused. In addition, the existing fault diagnosis method may also cause false alarm due to signal mutation caused by some external interference, so that a fuel cell fault detection method is needed to quickly and accurately perform fault detection of a fuel cell. For convenience of description, the fuel cell system will be hereinafter simply referred to as a fuel cell system.
Based on this, an embodiment of the present application provides a method for detecting a fault of a fuel cell, referring to fig. 1, the method for detecting a fault of a fuel cell includes:
step S110, performing fault acquisition on the fuel cell system according to a preset acquisition frequency to obtain a plurality of diagnosis signals;
if the fuel system is problematic, serious consequences may occur, so that the fuel system is very necessary to be protected from faults. The control software of the fuel system runs in the FCU controller, the fault protection part software also runs in the FCU controller, the sensors are distributed in all subsystems of the fuel system to monitor the temperature, pressure, flow, humidity and other data of the nodes at the corresponding positions, and when the fuel system runs, the FCU can monitor key signals of all nodes in real time, collect signals at preset collection frequency and make data analysis in real time, so as to judge whether the current signals are in a normal range.
The preset acquisition frequency may be, for example, 100Hz. All signals to be diagnosed are collected in each collection, and thus a plurality of diagnosis signals can be obtained in one collection. According to the complexity of the fuel system, the number of the diagnosis signals obtained at this time is large, and if the fault diagnosis is directly performed and output, a large burden is caused to communication transmission.
Step S120, determining a fault level corresponding to each diagnosis signal;
in one embodiment, the fault level includes: primary failure, secondary failure, tertiary failure, quaternary failure and no failure; the determining the fault level corresponding to each diagnosis signal comprises the following steps:
acquiring a signal value of the diagnostic signal; if the signal value of the diagnosis signal is smaller than or equal to a fourth fault threshold value, determining that the diagnosis signal is fault-free; if the signal value of the diagnosis signal is smaller than or equal to a third fault threshold and larger than the fourth fault threshold, determining that the diagnosis signal is a four-level fault; if the signal value of the diagnosis signal is smaller than or equal to a second fault threshold and larger than the third fault threshold, determining that the diagnosis signal is a three-level fault; if the signal value of the diagnosis signal is smaller than or equal to a first fault threshold value and larger than the second fault threshold value, determining that the diagnosis signal is a secondary fault; if the signal value of the diagnosis signal is larger than the first fault threshold value, determining that the diagnosis signal is a primary fault; wherein the first fault threshold is greater than the second fault threshold, the second fault threshold is greater than the third fault threshold, and the third fault threshold is greater than the fourth fault threshold.
In particular, referring to fig. 2, fig. 2 shows a comparison of a diagnostic signal to a fault threshold. By way of example, the embodiment of the application divides four fault levels, and the severity level is reduced step by step according to the first-level fault, the second-level fault, the third-level fault and the fourth-level fault, and different fault thresholds corresponding to different fault levels. The fourth failure threshold value corresponding to the fourth failure may be regarded as the lowest failure threshold value. If the signal value of the diagnostic signal is less than or equal to the lowest level fault threshold, it may be determined that the diagnostic signal is not faulty.
Furthermore, in order to avoid false positives, it is also necessary to consider the duration of the diagnostic signal belonging to a certain fault class. That is, in one embodiment, timing is initiated when the diagnostic signal is a fault condition, wherein the fault condition is a primary fault, a secondary fault, a tertiary fault, and a quaternary fault; when the timing time is longer than or equal to a preset timing threshold value, determining that the fault state corresponding to the diagnosis signal is an effective fault state; and when the timing duration is smaller than a preset timing threshold value, determining that the diagnosis signal is fault-free. This timing link is to avoid false alarms caused by some other interference factors, for example, when the system is running, there may be a signal interference problem due to the existence of high voltage and high current in the system, when the sampled signal is interfered, the signal transient mutation may be caused, but the transient mutation in a short time should not be considered as a fault (because the signal mutation is not caused by the change of the actual running state of the internal system, but is caused by the external high-fire, and the system actually runs normally), so that a fault decision timing threshold is introduced, that is, it is necessary to confirm that the fault continuously occurs for a period of time (that is, the fault occurrence caused by the change of the internal running environment of the system is considered when the fault occurs, and the influence of other factors such as external interference is eliminated), so as to avoid the fault false alarm caused by the external interference. If the fault condition is within the preset time threshold, the fault trigger is identified, otherwise the fault trigger is not identified.
Exemplary, for example: when the current signal value is greater than the fourth fault threshold but less than the third fault threshold and is maintained for a period of time (the time threshold exceeds a preset time threshold, which may be several seconds), the current fault trigger is determined, and at the moment, the fault diagnosis software reports a detailed fault to the fuel-air system control software and reports a fault level, and the fuel-air system control software executes the next operation, such as load shedding, shutdown, scram, no response, and the like, according to the received fault type and fault level.
Taking the fault detection of the hydrogen stacking pressure as an example, if the fault detection is to perform stacking pressure overpressure fault judgment, the preset first fault pressure threshold value is 300kpa, the second fault judgment threshold value is 290kpa, the third fault judgment threshold value is 280kpa, the fourth fault judgment threshold value is 270kpa, and when the stacking hydrogen pressure is detected to be more than 280kpa but less than 290kpa, the fault diagnosis software triggers three-level and four-level fault judgment programs related to the signal. After the program is started, a timer is started to count, when the pressure of the hydrogen in the stack is greater than 280kpa but less than 290kpa for more than 1 second, the current fault trigger is determined, the current fault type and the fault level are reported to the system control software, namely, three-level and four-level faults of the pressure of the hydrogen in the stack are reported to be triggered simultaneously. It should be noted that when a higher level fault is triggered, a fault below that level is also considered to be triggered, for example, a three-level fault is triggered, and then the output result is reflected as a simultaneous triggering of three-level and four-level faults.
When the pressure of the hydrogen in the reactor is detected to be more than 280kpa but less than 290kpa, the fault diagnosis software triggers three-level and four-level fault judging programs related to the signals at the same time, after the program is started, the timing is started, the pressure of the hydrogen in the reactor fluctuates within the timing time, the pressure of the hydrogen in the reactor becomes more than 270kpa but less than 280kpa, namely the three-level fault judging time is not met, and the four-level fault is reported when the four-level fault judging time is met.
Step S130, generating output queues corresponding to the fault levels;
in a typical system, at least one hundred of signals need to be subjected to fault diagnosis, and four fault levels are available for different signals, so that the final fault type may be four to five hundred. In order to reduce the number of output signals, diagnostic signals are converted into a plurality of queues, and then the output queues are encoded to obtain a final output result. In some implementations, the queues may be partitioned by failure level, for example: the first-level fault corresponds to a queue, the second-level fault corresponds to a queue, the third-level fault corresponds to a queue, and the fourth-level fault corresponds to a queue.
In an embodiment, the generating the output queue corresponding to each fault level includes:
generating an output queue corresponding to the first-level fault through a tail insertion method, if the diagnosis signal is the first-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the first-level fault, assigning 0 to the position corresponding to the diagnosis signal; generating an output queue corresponding to the secondary fault through a tail insertion method, if the diagnosis signal is the secondary fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the secondary fault, assigning 0 to the position corresponding to the diagnosis signal; generating an output queue corresponding to the three-level fault through a tail insertion method, if the diagnosis signal is the three-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the three-level fault, assigning 0 to the position corresponding to the diagnosis signal; and generating an output queue corresponding to the four-level fault through a tail insertion method, if the diagnosis signal is the four-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the four-level fault, assigning 0 to the position corresponding to the diagnosis signal.
For example, if a diagnostic signal triggers a three-level, four-level fault. The diagnostic signal is 0 in the output queues corresponding to the first-level and second-level faults and 1 in the output queues corresponding to the third-level and fourth-level faults.
In order to compress data, the embodiment of the application adopts a tail insertion method to generate an output queue and packages the output queue. For example, several diagnostic signals may be used as one shaping data, i.e. one shaping data may be used to monitor whether several faults are triggered.
Taking 64 diagnostic signals as a group for example, assuming that there are 64 faults currently, the space occupied by one fault is 1 bit, namely 0 on the bit represents that the fault is not triggered, 1 represents that the fault is triggered, the 64 fault bits originally correspond to 64 independent signals, and the 64 independent signals can be compressed into a 64-bit signal based on tail insertion method packaging.
The tail insertion method is to start from an empty table, repeatedly read in data, generate a new node, store the read in data field of the new node, and then insert the new node into the tail of the current linked list until the read end mark. Referring to fig. 3, the tail insertion method comprises the following steps: a null Array is created, and the Array bit index i=0, and the signal number index j=1 are initialized. Then inserting the j-th signal into the i-th bit in the Array, judging whether i is smaller than the length of the Array, if i is smaller than the length of the Array, judging whether j has read the end mark, if j is smaller than the total signal, indicating that the end mark is not read, shifting the Array left by one bit, supplementing 0 to the right, then assigning values to i and j, and then adding 1 (i++; j++), and continuing the next signal insertion. And ending the tail insertion method packaging flow until the array is full or the last bit of the output queue is read.
Taking array length as 64 as an example, a first signal is placed at the 63 rd bit of a target signal, then a second signal is placed at the rear side of the first signal, namely the first signal is shifted one bit to the left, the signal at the rear side is inserted into the rear side of the previous signal by analogy, the signal at the front is shifted to the left, and 64 independent signals can be assembled into a 64-bit signal in sequence by repeating for 63 times, so that the purpose of reducing the signal quantity is realized. Therefore, the number of variables to be monitored in the test process can be greatly reduced, and the bus load in the test process can be greatly reduced.
And step S140, packaging each output queue into a fault code, and outputting a plurality of fault codes.
In one embodiment, a group of elements with preset digits in the output queue are packed into a fault code; packaging according to a preset sequence until no residual elements exist in the output queue; and carrying out zero padding treatment on the vacant positions of the fault codes, wherein the fault codes are binary numbers.
The specific packing scheme has been explained in the description of the tail-biting method, and in some embodiments, a set of 64-bit elements may be packed into a binary fault code. Therefore, a large amount of data is prevented from being output at the same time, the occupation of transmission resources is reduced, and the load of a measurement calibration bus is reduced.
In some embodiments, the fault code is converted to a decimal number output. In the operation process of the computer, binary number operation is adopted, but decimal numbers are generally adopted in data presented by control software. In the test process, the test engineer only needs to convert the output monitored fault signals from decimal system to binary system, so that the fault triggered by the signals can be monitored, and the fault code with 1 on which bit represents the corresponding diagnostic signal to trigger the fault.
According to the fuel cell fault detection method provided by the embodiment, the diagnosis signals are collected, the fault grade corresponding to each diagnosis signal is determined, and the output queue corresponding to each fault grade is generated. And packaging each output queue into a fault code, and outputting a plurality of fault codes. Dividing output queues according to the fault level, and packaging and outputting signals in each output queue according to a tail insertion method. The method has the advantages of greatly saving data transmission resources, reducing monitoring quantity, further reducing load of a measurement calibration bus, improving efficiency and accuracy of fault detection, and simultaneously reducing false alarm probability by considering duration of fault states.
Example 2
In addition, the embodiment of the application provides a fuel cell fault detection device.
Specifically, as shown in fig. 4, the fuel cell failure detection device 400 includes:
the acquisition module 410 is configured to perform fault acquisition on the fuel cell system according to a preset acquisition frequency, so as to obtain a plurality of diagnostic signals;
a determining module 420, configured to determine a fault level corresponding to each of the diagnostic signals;
a generating module 430, configured to generate an output queue corresponding to each fault level;
and the output module 440 is configured to package each output queue into a fault code, and output a plurality of fault codes.
The fuel cell fault detection device 400 provided in this embodiment can implement the fuel cell fault detection method provided in embodiment 1, and has the same technical effects as those of the above embodiment, and in order to avoid repetition, a detailed description is omitted herein.
Example 3
Further, an embodiment of the present application provides an electronic device including a memory storing a computer program that when run on the processor performs the fuel cell failure detection method provided in embodiment 1.
The electronic device provided by the embodiment of the present application can implement the method for detecting a fault of a fuel cell provided by embodiment 1, and has the same technical effects as those of the above embodiment, and in order to avoid repetition, a detailed description is omitted.
Example 4
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the fuel cell failure detection method provided in embodiment 1.
In the present embodiment, the computer readable storage medium may be a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, an optical disk, or the like.
The computer readable storage medium provided in this embodiment can implement the method for detecting a fault of a fuel cell provided in embodiment 1, and in order to avoid repetition, a detailed description is omitted here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal comprising the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative, not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit and scope of the present application, which is to be protected by the present application.

Claims (10)

1. A method of detecting a fuel cell failure, the method comprising:
performing fault acquisition on the fuel cell system according to a preset acquisition frequency to obtain a plurality of diagnosis signals;
determining a fault level corresponding to each diagnostic signal;
generating an output queue corresponding to each fault level;
and packaging each output queue into a fault code, and outputting a plurality of fault codes.
2. The fuel cell failure detection method according to claim 1, wherein the failure level includes: primary failure, secondary failure, tertiary failure, quaternary failure and no failure; the determining the fault level corresponding to each diagnosis signal comprises the following steps:
acquiring a signal value of the diagnostic signal;
if the signal value of the diagnosis signal is smaller than or equal to a fourth fault threshold value, determining that the diagnosis signal is fault-free;
if the signal value of the diagnosis signal is smaller than or equal to a third fault threshold and larger than the fourth fault threshold, determining that the diagnosis signal is a four-level fault;
if the signal value of the diagnosis signal is smaller than or equal to a second fault threshold and larger than the third fault threshold, determining that the diagnosis signal is a three-level fault;
if the signal value of the diagnosis signal is smaller than or equal to a first fault threshold value and larger than the second fault threshold value, determining that the diagnosis signal is a secondary fault;
if the signal value of the diagnosis signal is larger than the first fault threshold value, determining that the diagnosis signal is a primary fault;
wherein the first fault threshold is greater than the second fault threshold, the second fault threshold is greater than the third fault threshold, and the third fault threshold is greater than the fourth fault threshold.
3. The fuel cell failure detection method according to claim 2, characterized in that the method further comprises:
starting timing when the diagnostic signal is in a fault state, wherein the fault state comprises a primary fault, a secondary fault, a tertiary fault and a quaternary fault;
when the timing time is longer than or equal to a preset timing threshold value, determining that the fault state corresponding to the diagnosis signal is an effective fault state;
and when the timing duration is smaller than a preset timing threshold value, determining that the diagnosis signal is fault-free.
4. The method of claim 2, wherein generating an output queue corresponding to each of the failure levels comprises:
generating an output queue corresponding to the first-level fault through a tail insertion method, if the diagnosis signal is the first-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the first-level fault, assigning 0 to the position corresponding to the diagnosis signal;
generating an output queue corresponding to the secondary fault through a tail insertion method, if the diagnosis signal is the secondary fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the secondary fault, assigning 0 to the position corresponding to the diagnosis signal;
generating an output queue corresponding to the three-level fault through a tail insertion method, if the diagnosis signal is the three-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the three-level fault, assigning 0 to the position corresponding to the diagnosis signal;
and generating an output queue corresponding to the four-level fault through a tail insertion method, if the diagnosis signal is the four-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the four-level fault, assigning 0 to the position corresponding to the diagnosis signal.
5. The method of claim 4, wherein said packing each of said output queues into a fault code comprises:
packaging a group of elements with preset digits in the output queue into a fault code;
packaging according to a preset sequence until no residual elements exist in the output queue;
and carrying out zero padding treatment on the vacant positions of the fault codes, wherein the fault codes are binary numbers.
6. The fuel cell failure detection method according to claim 5, wherein the outputting a plurality of the failure codes includes:
and converting the fault code into decimal number output.
7. A fuel cell failure detection apparatus, characterized by comprising:
the acquisition module is used for carrying out fault acquisition on the fuel cell system according to a preset acquisition frequency to obtain a plurality of diagnosis signals;
the determining module is used for determining the fault level corresponding to each diagnosis signal;
the generating module is used for generating output queues corresponding to the fault levels;
and the output module is used for packaging each output queue into fault codes and outputting a plurality of fault codes.
8. The fuel cell failure detection device according to claim 7, wherein the generating module is further configured to:
generating an output queue corresponding to the first-level fault through a tail insertion method, if the diagnosis signal is the first-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the first-level fault, assigning 0 to the position corresponding to the diagnosis signal;
generating an output queue corresponding to the secondary fault through a tail insertion method, if the diagnosis signal is the secondary fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the secondary fault, assigning 0 to the position corresponding to the diagnosis signal;
generating an output queue corresponding to the three-level fault through a tail insertion method, if the diagnosis signal is the three-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the three-level fault, assigning 0 to the position corresponding to the diagnosis signal;
and generating an output queue corresponding to the four-level fault through a tail insertion method, if the diagnosis signal is the four-level fault, assigning 1 to the position corresponding to the diagnosis signal, and if the diagnosis signal is not the four-level fault, assigning 0 to the position corresponding to the diagnosis signal.
9. An electronic device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, performs the fuel cell failure detection method of any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that it stores a computer program that, when run on a processor, performs the fuel cell failure detection method according to any one of claims 1 to 6.
CN202310960841.6A 2023-07-31 2023-07-31 Fuel cell fault detection method, device, electronic equipment and storage medium Pending CN116995274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310960841.6A CN116995274A (en) 2023-07-31 2023-07-31 Fuel cell fault detection method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310960841.6A CN116995274A (en) 2023-07-31 2023-07-31 Fuel cell fault detection method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116995274A true CN116995274A (en) 2023-11-03

Family

ID=88531596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310960841.6A Pending CN116995274A (en) 2023-07-31 2023-07-31 Fuel cell fault detection method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116995274A (en)

Similar Documents

Publication Publication Date Title
US8675805B2 (en) Automated periodic surveillance testing method and apparatus in digital reactor protection system
CN112319308B (en) Power battery multi-fault detection method and system
CN111873852B (en) Power battery self-discharge monitoring method and device, vehicle and storage medium
CN112749097B (en) Performance evaluation method and device for fuzzy test tool
CN117031182B (en) Method and system for detecting abnormal telemetering value of substation terminal
CN113987724A (en) Power grid risk identification method and system based on topology analysis
CN116995274A (en) Fuel cell fault detection method, device, electronic equipment and storage medium
CN111123009A (en) Intelligent substation avalanche testing method and system based on SCD file and terminal equipment
CN111965554B (en) Method and device for detecting copper bar connection in battery pack, storage medium and electronic equipment
CN117574292A (en) Data fault detection method and system
CN116593883A (en) Breaker body fault diagnosis method, device and equipment of intelligent high-voltage switch and storage medium
CN111983488A (en) Battery management system and voltage signal processing method thereof
CN116820821A (en) Disk failure detection method, apparatus, electronic device and computer readable storage medium
CN115327299A (en) Method for identifying cascading failure of power system and related equipment
CN111614162B (en) Performance evaluation method of transformer substation monitoring system based on avalanche test
CN110321527B (en) Data validity judging method based on multi-element basic information fusion
CN110826204B (en) Range switching logic optimization and verification method for intermediate range of nuclear measurement system
CN108234225A (en) The monitoring method and device of communication quality between wind power generating set master-salve station
CN111638458A (en) Method and device for analyzing battery cell fault
CN111186337A (en) Battery fault judging method and device
CN113296011B (en) Circuit conducted signal active detection analysis system
CN117686035B (en) Distributed active defense system, method, equipment and medium of oil filling equipment
CN117885538B (en) New energy vehicle power battery early warning method, system, equipment and storage medium
US20220244310A1 (en) Electrical operating device and method for recognizing malfunctions
CN111641264B (en) Performance evaluation method for transformer substation monitoring system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination