Leak detection method, device and electronic equipment for vehicle-mounted gas cylinder
By injecting test hydrogen before hydrogen refueling to calculate the estimated volume of the on-board gas cylinder, comparing it with historical data, and using weights to calculate the weighted average to determine the status of the gas cylinder, the problem of difficulty in detecting leaks during hydrogen refueling in the existing technology is solved, and early detection and high-accuracy leak judgment are achieved.
Patent Information
- Application Number
- CN202510819928.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2045-06-19
AI Technical Summary
In the existing technology, on-board gas cylinder leakage detection can only be performed during the hydrogen filling process, resulting in late discovery of problems and difficulty in ensuring the safety of hydrogen fuel cell vehicles.
Before hydrogen refueling, hydrogen with a test mass flow rate is injected, and the cylinder data is collected to calculate the first estimated volume. The volume is compared with the standard volume in the historical calculation data, and the cylinder status is determined by calculating the weighted average through weights to avoid single measurement errors and external acquisition inaccuracies.
It enables timely detection of gas cylinder leaks before hydrogen refueling, ensures safety, reduces the risk of missed detection or false alarms, and improves the accuracy and reliability of detection.
Smart Images

Figure CN120332658B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this specification belong to the field of leakage detection of vehicle-mounted gas cylinders, and particularly relate to a leakage detection method, device, and electronic equipment for vehicle-mounted gas cylinders. Background Art
[0002] Hydrogen fuel cell vehicles typically use hydrogen dispensers at hydrogen stations to fill their onboard gas cylinders with hydrogen. Since hydrogen is flammable, a leak in a gas cylinder can easily cause an explosion. Currently, leak detection for onboard gas cylinders typically involves determining the pressure-mass curve during the hydrogen filling process to assess the cylinder's condition. This method only detects problems during the filling process, which can lead to late detection and poor safety assurance. Summary of the Invention
[0003] Embodiments of the present disclosure provide a method, device, and electronic device for detecting leakage of a vehicle-mounted gas cylinder, aiming to solve one or more of the above-mentioned problems and other potential problems.
[0004] According to a first aspect of the present disclosure, a method for detecting leakage of a vehicle-mounted gas cylinder is provided. The method includes detecting the gas cylinder data of the vehicle-mounted gas cylinder before and after the injection of hydrogen at a test mass flow rate for leak detection in response to a connection signal of the vehicle-mounted gas cylinder, so as to calculate a first estimated volume of the vehicle-mounted gas cylinder based on the gas cylinder data, wherein the gas cylinder data includes temperature data, pressure data, and mass flow data. The method also includes determining a standard volume closest to the first estimated volume, sorting the standard volume based on the volume difference between each second estimated volume in the historical calculation data, and setting a weight for each volume difference to calculate a weighted average value between each second estimated volume based on the weight. In addition, the method also includes determining the gas cylinder status of the vehicle-mounted gas cylinder based on the relative deviation value between the first estimated volume and the weighted average value.
[0005] According to a second aspect of the present disclosure, a leakage detection device for a vehicle-mounted gas cylinder is provided. The device includes a gas cylinder data detection module, which is configured to respond to a connection signal of the vehicle-mounted gas cylinder and detect the gas cylinder data of the vehicle-mounted gas cylinder before and after the injection of hydrogen gas at a test mass flow rate for leak detection, so as to calculate a first estimated volume of the vehicle-mounted gas cylinder based on the gas cylinder data. The gas cylinder data includes temperature data, pressure data, and mass flow data. The device also includes a weight setting module, which is configured to determine the standard volume closest to the first estimated volume, sort the standard volume based on the volume difference between each second estimated volume in the historical calculation data, set a weight for each volume difference, and calculate a weighted average value between each second estimated volume based on the weight. In addition, the device also includes a gas cylinder status determination module, which is configured to determine the gas cylinder status of the vehicle-mounted gas cylinder based on the relative deviation value between the first estimated volume and the weighted average value.
[0006] According to a third aspect of the present disclosure, an electronic device is provided, comprising one or more processors and a memory associated with the one or more processors, wherein the memory is used to store program instructions. When the program instructions are read and executed by the one or more processors, the method provided according to the first scheme is executed.
[0007] According to a fourth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method provided according to the first aspect is implemented.
[0008] It should be understood that the contents described in the Summary of the Invention section are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0010] Figure 1 A schematic diagram illustrating an example environment in which various embodiments of the present disclosure may be implemented;
[0011] Figure 2 A schematic flow chart showing a method for detecting leakage of a vehicle-mounted gas cylinder according to some embodiments of the present disclosure is provided;
[0012] Figure 3 A schematic flow chart showing the overall process of leak detection for a vehicle-mounted gas cylinder according to some embodiments of the present disclosure;
[0013] Figure 4 A schematic flow chart showing a process of processing a gas cylinder status according to a volume change trend of a vehicle-mounted gas cylinder according to some embodiments of the present disclosure;
[0014] Figure 5 A schematic structural diagram of a vehicle-mounted gas cylinder leakage detection device according to some embodiments of the present disclosure is shown;
[0015] Figure 6 A schematic block diagram of an electronic device according to some embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0016] To make the purpose, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0017] The terms "including" and "having," and any variations thereof, in this specification, claims, and drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus. Depending on the context, the word "if," as used herein, may be interpreted as "when" or "when" or "in response to determining" or "in response to detecting."
[0018] As mentioned above, to ensure the safety of hydrogen fuel cell vehicles, onboard gas cylinders are leak-tested every time they are refueled at a hydrogen refueling station. Vehicles refueling at hydrogen refueling stations typically do not report all of their vehicle information to the station. Furthermore, the onboard gas cylinders may have been replaced, making it impossible for the station to determine the normal volume of the cylinders. Consequently, it is impossible to directly determine the presence of leaks based on volume calculations and comparisons. Currently, there are two general methods for testing onboard gas cylinders. One method involves collecting pressure and mass flow data from sensors installed inside the cylinders during the hydrogen refueling process. These sensors interact with an infrared communication module installed on the hydrogen refueling gun, allowing the hydrogen refueling station system to obtain the pressure-mass curve of the cylinders during the refueling process and compare it with a preset standard curve to determine the cylinder's condition. The other method utilizes infrared optics, where the hydrogen refueling gun continuously emits infrared signals into the cylinders to detect dimensional changes during the refueling process. These dimensional changes are then compared with dimensional changes during historical refueling processes to determine the cylinder's condition. However, both of the above methods require testing during the hydrogen filling process. When the problem is discovered, the gas cylinders are mostly filled, so the problem is discovered too late. At this time, a lot of hydrogen may have leaked, making it difficult to ensure safety.
[0019] To address this issue, embodiments of the present disclosure propose a leak detection solution for vehicle-mounted gas cylinders. In this embodiment, before officially filling a gas cylinder with hydrogen, as soon as a connection to the cylinder is detected, a small amount of hydrogen (i.e., a test mass flow rate) is first injected. A first estimated volume of the gas cylinder is estimated based on the cylinder data collected before and after hydrogen filling, including temperature, pressure, and mass flow rate. The first estimated volume is then used to find the closest standard volume, which is used as the normal volume of the vehicle-mounted gas cylinder. By sorting the differences between the standard volume and each second estimated volume estimated during historical leak detection, weights can be assigned to each volume difference, for example, from smallest to largest. Because the volume differences correspond one-to-one with the second estimated volumes, a weighted average of the second estimated volumes can be directly calculated based on the weights. This weighted average is then used as the basis for comparing the volume to determine if it is abnormal. A relative deviation between the first estimated volume and the weighted average is then calculated to determine if the gas cylinder is leaking.
[0020] Through the above method, even if the volume of the onboard gas cylinder connected to the vehicle is unknown, the volume of the onboard gas cylinder can be estimated before the hydrogen cylinder is officially filled. The gas cylinder status can be judged based on the relative deviation between the estimated volume and the weighted average calculated from the historical estimated volume. This not only allows the status of the gas cylinder to be judged before the hydrogen is officially filled, and gas cylinder leaks can be detected in time to ensure safety, but also can be sorted by volume difference and assigned weights. The weighted average is then calculated based on the weights to avoid single measurement errors and misjudgments caused by inaccurate standard volumes obtained externally. It is less susceptible to accidental errors and baseline deviations, and the risk of missed detection or false alarms is lower.
[0021] Figure 1 1 shows a schematic diagram of an example environment 100 in which various embodiments of the present disclosure may be implemented. Figure 1As shown, environment 100 may include a terminal 110, a hydrogenation machine 130, and a vehicle-mounted gas cylinder 140. Terminal 110 may be any device with computing or processing capabilities. For example, terminal 110 may include, but is not limited to, a mobile phone, a tablet computer, a desktop computer, a server, etc. Upon detecting that the hydrogenation gun of hydrogenation machine 130 is connected to the vehicle-mounted gas cylinder 140, terminal 110 may generate a test hydrogen filling instruction 111 to control the hydrogenation gun to pre-inject a small amount of hydrogen (hereinafter referred to as a test mass flow rate) into the vehicle-mounted gas cylinder 140 to collect gas cylinder data 112 before and after filling. Gas cylinder data 112 may be collected by pre-installing a sensor inside the gas cylinder to collect data, which is then communicated with an infrared communication module on the hydrogenation gun or directly with terminal 110. Alternatively, data may be collected by installing a corresponding sensor at the muzzle of the hydrogenation gun and transmitting the collected data back to terminal 110. Based on the gas cylinder data 112, a first estimated volume 113 is calculated. Based on the first estimated volume 113 (i.e., V1), a standard volume 115 (i.e., Vstandard) matching the first estimated volume is determined from a database 114 pre-stored with standard volumes for various vehicle gas cylinder models. The volume difference 116 between the standard volume 115 and a second estimated volume 117 is calculated. These volume differences 116 are then sorted from smallest to largest to obtain a volume difference ranking 118. This ranking is then used to assign a weight 119 to each volume difference. Since the volume differences 116 correspond one-to-one to the second estimated volume 117, the second estimated volume 117 can be weighted according to the weight 119 to obtain a weighted average 120. Finally, the gas cylinder status 122 of the vehicle gas cylinder can be determined based on the relative deviation 121 between the first estimated volume 113 and the weighted average 120.
[0022] Figure 2 1 shows a flow chart of a method 200 for detecting leakage of a vehicle-mounted gas cylinder according to some embodiments of the present disclosure. The method 200 may be executed by the terminal 110, for example. Figure 2As shown, in block 202, method 200 can respond to a connection signal from an onboard gas cylinder by detecting gas cylinder data from the onboard gas cylinder before and after the injection of a test mass flow of hydrogen for leak detection, thereby calculating a first estimated volume of the onboard gas cylinder based on the gas cylinder data. The gas cylinder data includes temperature data, pressure data, and mass flow data. In this embodiment, the test mass flow rate can be predetermined. This test mass flow rate is generally set to a relatively low value. The specific value can be preset based on manual experience, or can be input by a staff member at the hydrogen filling station based on the age of the vehicle and the risk of gas cylinder leakage. It can also be determined based on the number of hydrogen fillings accumulated by the vehicle. After confirming that the onboard gas cylinder is connected, hydrogen will be injected at a test mass flow rate before officially starting hydrogen filling according to the vehicle owner's needs. This will collect gas cylinder data before and after the injection, and use this data to calculate the first estimated volume of the onboard gas cylinder.
[0023] As an example, the calculation process of the first estimated volume is:
[0024] Since the hydrogen filled at hydrogen refueling stations is generally compressed and not ideal hydrogen, the following formula is obtained by introducing the hydrogen compression factor into the ideal hydrogen formula:
[0025]
[0026] in, For pressure, is the volume, is the hydrogen compression factor, is the hydrogen constant, is the temperature, is the mass flow rate.
[0027] Transforming the above formula we can get:
[0028]
[0029] Based on the above formula, the calculation formula for the test mass flow rate can be obtained as follows:
[0030]
[0031] in, To test the mass flow rate, is the mass flow rate after injecting the test mass flow rate, is the cylinder pressure after injecting the test mass flow, is the temperature of the gas cylinder after injecting the test mass flow, is the mass flow rate before the test mass flow rate is injected, is the hydrogen compression factor after injection of the test mass flow rate, is the cylinder pressure before injecting the test mass flow, is the temperature of the gas cylinder before injecting the test mass flow, is the hydrogen compressibility factor before injection of the test mass flow rate, is the volume of the gas cylinder, is the hydrogen constant. Among them, the hydrogen compressibility factor and It can be calculated according to the Virial equation.
[0032] because and Approximately equal, the two can be regarded as the same hydrogen compression factor , hydrogen compression factor Specifically, you can choose any value of the two, or you can choose the average of the two. Finally, the above formula can be transformed to get:
[0033]
[0034] Substitute the obtained gas cylinder data into the above formula, and the calculated gas cylinder volume is the first estimated volume.
[0035] In box 204, method 200 can determine the standard volume closest to the first estimated volume, sort the standard volume based on the volume difference between the standard volume and the second estimated volumes in the historical calculation data, set a weight for each volume difference, and calculate the weighted average between the second estimated volumes based on the weight. In this embodiment, a database can be set in the terminal, and the database stores the cylinder parameters of various models of vehicle-mounted gas cylinders put into use on the market. The cylinder parameters may include the standard volume of the gas cylinder, that is, the volume of the gas cylinder in a normal state just after leaving the factory. By querying the database, the standard volume closest to the first estimated volume can be obtained, and the queried standard volume will be used as the actual standard volume of the vehicle-mounted gas cylinder. In addition, in the historical refueling process of the vehicle, a volume estimate will be made for each refueling, that is, a first estimated volume will be calculated for each refueling. For easy distinction, these historically obtained first estimated volumes will be stored as second estimated volumes in the historical calculation data of the terminal. By calculating the difference between each second estimated volume and the standard volume in turn, the volume difference corresponding to each second estimated volume can be obtained, and then the volume difference can be sorted in order from small to large. According to the sorting of the volume difference, different weights can be set for each volume difference. As an example, the smaller the volume difference, the closer the second estimated volume is to the standard volume, and it can be considered that the reliability of the second estimated volume is higher, and the less likely it is to be the volume estimated when the gas cylinder is leaking, so a higher weight can be assigned. Finally, since the volume difference corresponds one-to-one to the second estimated volume, the weight of the volume difference will be used as the weight of the second estimated volume, and the second estimated volume will be weighted calculated to obtain a weighted average value, which will be used as the basis for judging whether the gas cylinder is leaking. Among them, the reason why the determined standard volume is not directly used for leakage judgment is that the standard volume is determined based on the first estimated volume, and it cannot be guaranteed that the obtained standard volume must be the standard volume actually corresponding to the gas cylinder. In particular, the first estimated volume may be estimated when the gas cylinder is leaking. Directly using the standard volume as a benchmark for judgment is prone to large errors. In addition, under special circumstances, the gas cylinder used in the vehicle may not be a common gas cylinder model on the market, and there is no completely corresponding standard volume in the database. Therefore, this embodiment only uses the standard volume to calculate the volume difference, and then assigns a weight to the second estimated volume according to the sorting of the volume difference. Finally, the weighted average of the second estimated volume estimated based on the actual measurement during the historical filling process is used as a value that is more likely to be close to the actual standard volume of the vehicle-mounted gas cylinder. This can avoid single measurement errors and misjudgments caused by inaccurate standard volumes obtained externally, is not easily affected by accidental errors and baseline deviations, and has a lower risk of missed detection or false alarms.
[0036] As an example, the weighted average is calculated as:
[0037]
[0038] in, is the nth second estimated volume, is the weight of the nth second estimated volume.
[0039] At block 206, method 200 may determine the cylinder status of the vehicle-mounted gas cylinder based on the relative deviation between the first estimated volume and the weighted average. In this embodiment, the relative deviation is calculated as:
[0040]
[0041] in, is the relative deviation value, is the first estimated volume, is the weighted average.
[0042] The relative deviation value is compared with a preset threshold to determine the cylinder status of the vehicle-mounted gas cylinder. If the relative deviation value is greater than the threshold, the cylinder status can be considered abnormal, indicating leakage; otherwise, it is considered normal.
[0043] In this way, after estimating the volume of the onboard gas cylinder, a weighted value is assigned and a weighted average is calculated based on the second estimated volume from historical calculation data. The relative deviation between the weighted average and the first estimated volume is then used to determine the cylinder's status. This not only allows the cylinder's status to be determined before hydrogen is officially refilled, allowing leaks to be detected promptly and ensuring safety, but also allows the system to assign weights by sorting the volume differences and then calculate the weighted average to avoid misjudgments caused by single measurement errors and inaccurate standard volumes obtained externally. This makes it less susceptible to accidental errors and baseline deviations, and reduces the risk of missed detections or false alarms.
[0044] Figure 3A flow chart of the complete process 300 of leakage detection of on-board gas cylinders of some embodiments of the present disclosure is shown. In process 300, after the hydrogenation gun of the hydrogenation machine is connected to the on-board gas cylinder, the terminal will receive a leak detection instruction 310 and respond to the leak detection instruction 310 to perform leak detection on the on-board gas cylinder. First, the test mass flow rate 320 will be determined based on the historical number of refills 330. The test mass flow rate 320 can be pre-set with a selection range. The more historical refills the on-board gas cylinder has, the higher the mileage of the on-board gas cylinder and the closer the gas cylinder is to its service life, that is, the more likely it is to have safety problems and more rigorous testing is required. Therefore, more test mass flow rates 320 can be selected during testing to reduce the problem of increased interference of sensor noise on the measurement results caused by the low signal-to-noise ratio when the test mass flow rate is small, so that the measurement results are more accurate. In addition, the reason why the maximum selectable test mass flow rate is not directly used when the number of historical refueling times is small is because when the number of refueling times is small, the gas cylinder is relatively new and there is a high probability that the gas cylinder is not a problem. There is no need for overly precise testing. Reducing the refueling test mass flow rate can improve the efficiency of gas cylinder leak detection before hydrogen refueling. As an example, a number can be assigned to each integer in the selection range, for example, the number 0 corresponds to the minimum value in the selection range, the number 1 corresponds to the second minimum value in the selection range, and so on. When the value corresponding to a certain number is the maximum value in the selection range, the subsequent numbers all use the maximum value as the corresponding value. In other examples, the number of refueling times can also be divided into several intervals (for example, 0-9 is an interval, 10-19 is an interval, etc.), and each interval corresponds to a value in the selection range. By determining the interval in which the number of historical refueling times is located, the corresponding value can be determined. By injecting hydrogen at a test mass flow rate 320 into the vehicle's gas cylinder, gas cylinder data 340 can be measured. Gas cylinder data 340 can include first gas cylinder data 341 measured before filling and second gas cylinder data 342 measured after filling. First gas cylinder data 341 includes the gas cylinder's temperature, pressure, and mass flow rate before filling, while second gas cylinder data 342 includes the gas cylinder's temperature, pressure, and mass flow rate after filling. Based on gas cylinder data 340, a first estimated volume 350 of the vehicle's gas cylinder can be calculated, and a standard volume 360 that is closest to the first estimated volume 350 can be determined by querying.
[0045] After determining the standard volume 360, a difference calculation is performed between the standard volume 360 and each second estimated volume in the historical calculation data 332, and the volume difference is sorted 370. Since there is always a certain interval between each refill of the gas cylinder, as the number of refills increases, the volume of the gas cylinder under normal circumstances may change due to fatigue damage or other non-damage and leakage damage caused by long-term use, making it difficult for the second estimated volume estimated in the early refills to reflect the current volume of the gas cylinder. If the second estimated volume obtained in the early period is used, it is easy to cause the calculated weighted average to deviate from the actual standard volume, thereby making the leak detection result inaccurate. Therefore, the data selection interval 331 for the second estimated volume in the historical calculation data will be adjusted based on the historical number of refills, so that when the historical number of refills 330 increases, the second estimated volume generated earlier will not be selected. As an example, the adjustment of the data selection interval 331 can be to increase the earliest generation time corresponding to the data selection interval as the number of historical injections increases. For example, when the number of historical injections is 0, the data selection interval covers all second estimated volumes in the entire time dimension. As the number of historical injections increases, the data selection interval gradually changes to obtain data obtained within one year, data obtained within six months, data obtained within three months, data obtained within one month, etc. Specifically, different intervals can also be divided for the number of injections, and a corresponding data selection interval can be set for each interval. By determining the interval in which the number of historical injections is located, the range of the data selection interval that should be obtained after adjustment can be determined. As another example, the left endpoint of the data selection interval, that is, the earliest generation time, can be increased by a preset number of days each time the number of historical injections increases. After obtaining the volume difference ranking 370, the weights of the second estimated volumes will be assigned in turn according to the volume difference ranking 370. As an example, the volume differences can be sorted from smallest to largest. The closer the second estimated volume corresponding to the volume difference at the top of the sort is to the standard volume 360, the more likely the second estimated volume is to represent the normal volume, and thus a greater weight is assigned to it. By performing a weighted calculation on the weighted second estimated volumes, a weighted average 333 is obtained. This weighted average 333 is considered a reasonable value that represents the normal volume of the vehicle gas cylinder. A relative deviation value 351 is then calculated based on the weighted average 333 and the first estimated volume 350.
[0046] As the number of historical refills 330 increases, the degree of normal wear and tear on the gas cylinder increases. To ensure more rigorous testing, different status thresholds 334 can be set based on the number of historical refills 330. For example, a numerical range can be initially set for the status threshold 334. As the number of historical refills 330 increases, the status threshold 334 can be set to a smaller value to more accurately determine the leakage of the gas cylinder. As an example, when the number of historical refills is 0, the maximum value in the numerical range can be selected as the status threshold. Each time the number of historical refills increases, the preset value is reduced accordingly, and the reduced value is used as the status threshold until the minimum selectable status threshold is reached. In block 380, a determination is made as to whether the relative deviation value 351 is greater than the status threshold 334. If not, the volume of the gas cylinder is considered within the normal range, and the gas cylinder status is considered normal 381. If the relative deviation value 351 is greater than the status threshold 334, the volume of the gas cylinder is considered to be outside the normal range, and the gas cylinder status is considered abnormal 382. After the cylinder status is abnormal 382, block 390 further determines whether the test mass flow rate used in this test is less than a mass flow threshold. The mass flow threshold can be a pre-set threshold based on experience. If the cylinder status is abnormal when the test mass flow rate is less than the mass flow threshold, it is likely that the low test mass flow rate results in a low signal-to-noise ratio during cylinder data collection, increasing sensor noise interference with the measurement results and causing an error in the determination. Therefore, the current test mass flow rate 320 can be readjusted to the maximum value within the pre-set test mass flow rate selection range, and the cylinder status can be re-determined based on this value. This allows for an additional test to minimize sensor noise interference and ensure the accuracy of the cylinder status determination.
[0047] Figure 4A flow chart illustrating process 400 for processing the status of a gas cylinder based on the volume change trend of an onboard gas cylinder in accordance with some embodiments of the present disclosure is provided. In process 400, if the gas cylinder status 410 is determined to be normal based on the test mass flow rate of hydrogen, this only indicates that the onboard gas cylinder has not yet actually leaked. However, the onboard gas cylinder may still be approaching a state of damage and leakage due to wear and tear. Therefore, even if the gas cylinder status 410 is determined to be normal, an additional round of verification can be performed from different dimensions. First, a frequency-volume curve 430 is generated based on each second estimated volume in the historical calculation data 420 to determine the volume change trend of the onboard gas cylinder. In block 440, based on the volume change trend, it is determined whether the estimated volume has continuously decreased with the increase in the number of refills. In block 450, if the volume is indeed continuously decreasing, it is also determined whether the single volume decrease value is greater than a preset decrease threshold. If the individual decrease values are all greater than the decrease threshold, the long-term trend of the frequency-volume curve 430 is considered to be showing a significant and continuous decrease, indicating that the gas cylinder is undergoing steady and continuous deterioration. In this case, the risk of damage and leakage is relatively high. Even if the relative deviation value determined each time does not exceed the status threshold, the gas cylinder will be determined to be in an abnormal state 460, prompting hydrogen station maintenance personnel to inspect and replace the gas cylinder. If the individual decrease values are not all greater than the decrease threshold, it is considered to be normal data fluctuation. In this case, the status threshold 470 can be reduced by a preset ratio, making the subsequent refueling process leak detection more rigorous, and further determining whether the gas cylinder is experiencing continuous deterioration during subsequent testing.
[0048] Figure 5 The following is a schematic diagram showing the structure of a vehicle-mounted gas cylinder leakage detection device 500 according to some embodiments of the present disclosure. The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Figure 5As shown, the device 500 includes a gas cylinder data detection module 501, which is configured to respond to a connection signal from the vehicle-mounted gas cylinder and detect the gas cylinder data of the vehicle-mounted gas cylinder before and after the injection of hydrogen at a test mass flow rate for leak detection, so as to calculate a first estimated volume of the vehicle-mounted gas cylinder based on the gas cylinder data. The gas cylinder data includes temperature data, pressure data, and mass flow data. The device 500 also includes a weight setting module 502, which is configured to determine the standard volume closest to the first estimated volume, sort the standard volume based on the volume difference between each second estimated volume in the historical calculation data, set a weight for each volume difference, and calculate a weighted average value between each second estimated volume based on the weight. In addition, the device 500 also includes a gas cylinder status determination module 503, which is configured to determine the gas cylinder status of the vehicle-mounted gas cylinder based on the relative deviation value between the first estimated volume and the weighted average value.
[0049] The device also includes a filling amount determination module, which is configured to determine a test mass flow rate based on a historical number of fillings of the onboard gas cylinder, and the test mass flow rate is negatively correlated with the historical number of fillings.
[0050] The weight setting module 502 includes an interval selection unit configured to determine a data selection interval for the historical calculation data based on the number of historical injections. The data generation time range covered by the data selection interval decreases as the number of historical injections increases. The weight setting module 502 also includes a volume difference ranking unit configured to sort the volume differences between the standard volume and each second estimated volume within the data selection interval and assign a weight to each volume difference.
[0051] The gas cylinder status determination module 503 includes a status threshold determination unit configured to determine a status threshold for the onboard gas cylinder based on the historical number of refills. The gas cylinder status determination module 503 also includes a first determination unit configured to determine that the gas cylinder status of the onboard gas cylinder is abnormal in response to the relative deviation value being greater than the status threshold. The gas cylinder status determination module 503 also includes a second determination unit configured to determine that the gas cylinder status of the onboard gas cylinder is normal in response to the relative deviation value being less than the status threshold.
[0052] The apparatus further includes a secondary testing module configured to adjust the test mass flow rate to a maximum value in a selected range of test mass flow rates in response to the test mass flow rate being less than a mass flow rate threshold and the gas cylinder status being characterized as abnormal, so as to re-determine the gas cylinder status based on the adjusted test mass flow rate.
[0053] The apparatus further includes a volume change trend determination module configured to determine a volume change trend of the vehicle-mounted gas cylinder based on the historical calculation data in response to the gas cylinder being in a normal state. The apparatus further includes a first state determination module configured to determine that the gas cylinder is in an abnormal state in response to the volume change trend being characterized by a continuous decrease in volume, with each individual decrease exceeding a preset decrease threshold.
[0054] The device further includes a second state determination module configured to reduce a state threshold for determining the state of the gas cylinder based on a preset ratio in response to the volume change trend being characterized as a continuous decrease in volume.
[0055] In the above embodiments, all or part of the embodiments can be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this specification are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted via the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).
[0056] Figure 6 1 shows a block diagram of an electronic device 600 that can implement various embodiments of the present disclosure. Figure 6 As shown, the electronic device 600 includes a processor 610, a disk drive 620, an input / output interface 630, a network interface 640, and a memory 650. The processor 610, the disk drive 620, the input / output interface 630, the network interface 640, and the memory 650 can be communicatively connected via a communication bus 660.
[0057] The processor 610 may be implemented as a general-purpose CPU, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and may be used to execute relevant programs to implement the technical solutions provided in this application.
[0058] The memory 650 can be implemented in the form of ROM (Read Only Memory), RAM (Read Access Memory), static memory, dynamic storage devices, etc. The memory 650 can store an operating system 651 for controlling the operation of the electronic device 600 and a basic input and output system (BIOS) 652 for controlling the low-level operations of the electronic device 600. In addition, a web browser 653, a data storage management system 654, etc. can also be stored. In short, when the technical solutions provided in this application are implemented through software or firmware, the relevant program code is stored in the memory 650 and is called and executed by the processor 610.
[0059] The input / output interface 630 is used to connect to an input / output module to enable information input and output. The input / output module can be configured as a component within the device (not shown) or can be externally connected to the device to provide corresponding functions. Input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc. Output devices may include a display, speaker, vibrator, indicator light, etc.
[0060] The network interface 640 is used to connect to a communication module (not shown) to enable communication between the device and other devices. The communication module can communicate via a wired method (such as USB, network cable, etc.) or a wireless method (such as mobile network, WiFi, Bluetooth, etc.).
[0061] The bus 660 comprises a pathway for transmitting information between the various components of the device (eg, the processor 610 , disk drive 620 , input / output interface 630 , network interface 640 , and memory 650 ).
[0062] It should be noted that although the above device only shows the processor 610, disk drive 620, input / output interface 630, network interface 640, memory 650, bus 660, etc., in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will understand that the above device may only include the components necessary to implement the method of the present application, and does not necessarily include all the components shown in the figure.
[0063] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0064] In the context of this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. Furthermore, although operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in a sequential order, or that all illustrated operations be performed to achieve the desired result. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of separate embodiments may also be implemented in combination in a single implementation. Conversely, various features described in the context of a single implementation may also be implemented in multiple implementations individually or in any suitable subcombination.
[0065] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A method for detecting leakage of a vehicle-mounted gas cylinder, characterized in that: The method comprises: In response to a connection signal of an onboard gas cylinder, detecting gas cylinder data of the onboard gas cylinder before and after injection of hydrogen at a test mass flow rate for leak detection, so as to calculate a first estimated volume of the onboard gas cylinder based on the gas cylinder data, the gas cylinder data including temperature data, pressure data, and mass flow data; determining a standard volume closest to the first estimated volume, sorting the standard volumes based on volume differences between the standard volumes and respective second estimated volumes in the historical calculated data, assigning a weight to each of the volume differences, and calculating a weighted average of the respective second estimated volumes based on the weight; the second estimated volume being the first estimated volume in the historical calculated data; and The gas cylinder state of the vehicle-mounted gas cylinder is determined based on a relative deviation value between the first estimated volume and the weighted average value.
2. The method according to claim 1, characterized in that The method further comprises: The test mass flow rate is determined based on the historical number of fillings of the onboard gas cylinder, and the test mass flow rate is positively correlated with the historical number of fillings.
3. The method according to claim 2, characterized in that The sorting based on the volume difference between the standard volume and each second estimated volume in the historical calculation data, and setting a weight for each volume difference, includes: Determining a data selection interval for historical calculation data based on the historical number of injections, wherein a data generation time range covered by the data selection interval decreases as the historical number of injections increases; and Based on the sorting of volume differences between the standard volume and each second estimated volume in the data selection interval, a weight is set for each volume difference.
4. The method according to claim 2, characterized in that The determining the gas cylinder status of the vehicle-mounted gas cylinder includes: determining a status threshold of the onboard gas cylinder based on the historical number of refills; In response to the relative deviation value being greater than the state threshold, determining that the gas cylinder state of the onboard gas cylinder is abnormal; and In response to the relative deviation value being not greater than the state threshold, it is determined that the gas cylinder state of the onboard gas cylinder is normal.
5. The method according to claim 1 or 2, characterized in that The method further comprises: In response to the test mass flow being less than a mass flow threshold and the gas cylinder status being characterized as abnormal, the test mass flow is adjusted to a maximum value in the selected range of the test mass flow, so as to re-determine the gas cylinder status based on the adjusted test mass flow.
6. The method according to claim 1, characterized in that The method further comprises: In response to the gas cylinder being in a normal state, determining a volume change trend of the onboard gas cylinder based on the historical calculation data; In response to the volume change trend being characterized as a continuous decrease in volume, and a single decrease value being greater than a preset decrease threshold, it is determined that the state of the gas cylinder is abnormal.
7. The method according to claim 6, characterized in that The method further comprises: In response to the volume change trend being characterized as a continuous decrease in volume, a state threshold for determining the state of the gas cylinder is reduced based on a preset ratio.
8. A vehicle-mounted gas cylinder leakage detection device, characterized in that: The device comprises: a gas cylinder data detection module configured to detect gas cylinder data of the vehicle-mounted gas cylinder before and after injection of hydrogen gas at a test mass flow rate for leak detection in response to a connection signal of the vehicle-mounted gas cylinder, so as to calculate a first estimated volume of the vehicle-mounted gas cylinder based on the gas cylinder data, wherein the gas cylinder data includes temperature data, pressure data, and mass flow data; a weight setting module configured to determine a standard volume closest to the first estimated volume, sort the standard volume based on volume differences between the standard volume and each second estimated volume in the historical calculated data, set a weight for each volume difference, and calculate a weighted average of the second estimated volumes based on the weight; the second estimated volume is the first estimated volume in the historical calculated data; and The gas cylinder status determination module is configured to determine the gas cylinder status of the vehicle-mounted gas cylinder based on a relative deviation value between the first estimated volume and the weighted average value.
9. An electronic device comprising: one or more processors, and A memory associated with the one or more processors, the memory being used to store program instructions, wherein when the program instructions are read and executed by the one or more processors, the steps of the method according to any one of claims 1 to 7 are executed.
10. Computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Oxygen filling and leakage detecting integrated device
CN222880879U
Volume estimating device, hydrogen filling device, and volume estimating method
US20240085895A1