Working state switching method of gas device
By acquiring the initial operating state and flow parameters from the gas device and dynamically switching the operating state, the problem of balancing energy consumption and metering accuracy in ultrasonic gas meters is solved, achieving adaptive adaptation, improving metering accuracy and reducing energy consumption.
Patent Information
- Application Number
- CN202511694362.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2026-02-10
AI Technical Summary
Ultrasonic gas meters struggle to balance energy consumption control and metering accuracy, resulting in insufficient adaptability and impacting overall performance.
By acquiring the initial operating state and gas flow parameters of the gas device, the operating state is dynamically switched, including low power consumption mode and high sampling frequency mode. The operating state is adjusted according to the flow parameters and duration to adapt to different airflow conditions.
It achieves adaptive adaptation under different airflow conditions, improves metering accuracy and reduces energy consumption, and improves the adaptability of state switching.
Smart Images

Figure CN121498809A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent instrument control technology, specifically to a method for switching the operating state of a gas device. Background Technology
[0002] Ultrasonic gas meters generally operate in two scenarios: one is for testing agencies to inspect the metering performance and functions of the gas meter. To speed up testing, the sampling frequency is usually increased to shorten the testing time. The second scenario is for normal daily use by users. Currently, the operating mechanism of commonly used gas meters in the market is as follows: in the first scenario, the gas meter is in calibration mode with a sampling frequency of 4Hz; in the second scenario, the gas meter is in normal operating mode with a sampling frequency of 1Hz. When there is pulsating flow, the sampling frequency in normal operating mode is insufficient to accurately measure the actual flow rate under pulsating conditions. Increasing the sampling frequency, however, leads to higher power consumption in normal mode, affecting the battery life of the gas meter. Ultrasonic gas meters struggle to balance energy consumption control and metering accuracy, resulting in insufficient adaptability and impacting overall operational performance. Summary of the Invention
[0003] This application provides a method for switching the operating state of a gas device, which can achieve adaptive adaptation of the gas device under different airflow conditions.
[0004] This application provides a method for switching the operating state of a gas device, including: The initial operating state of the gas device and the first flow parameter of the gas in the gas device are obtained; the initial operating state includes one of a first operating state in which there is no gas flow in the gas device and a second operating state in which the gas flows in the gas device. Based on the first flow rate parameter, the operating state of the gas device is switched from the first operating state or the second operating state to the target operating state; Obtain the second flow parameter of the gas and the current flow status corresponding to the second flow parameter; Based on the second flow rate parameter and the duration parameter of the gas device being in the current flow rate state, the operating state of the gas device is switched from the target operating state to the first operating state or the second operating state.
[0005] In the embodiments of this application, by combining the initial working state and the first flow parameter to switch to the target working state, and by reverting to the first or second working state based on the second flow parameter and the duration of the current flow state, the working state can be dynamically and accurately adjusted, thereby improving the technical problem of insufficient adaptability caused by the lack of comprehensive consideration in the working state switching in related technologies. Attached Figure Description
[0006] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0007] Figure 1 A flowchart illustrating a method for switching the operating state of a gas device provided in an embodiment of this application; Figure 2 This is a schematic diagram of the cross-sectional structure of the ultrasonic metering module provided in the embodiments of this application; Figure 3 Another flowchart illustrating the method for switching the operating state of a gas device provided in this application embodiment; Figure 4 This is a schematic diagram of the working state switching device of the gas device provided in the embodiments of this application; Figure 5 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0008] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0009] In the description of this application, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0010] "A and / or B" includes the following three combinations: A only, B only, and a combination of A and B.
[0011] The use of "applies to" or "configured to" in this application implies open and inclusive language, which does not exclude the applicability to or configuration to devices performing additional tasks or steps. Additionally, the use of "based on" implies openness and inclusivity, because processes, steps, calculations, or other actions "based on" one or more of the stated conditions or values may in practice be based on additional conditions or values beyond those stated.
[0012] In this application, the term "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0013] This embodiment provides a method for switching the operating state of a gas device, such as... Figure 1 As shown, it includes the following steps: Step 101: Obtain the initial operating state of the gas device and the first flow parameters of the gas in the gas device; the initial operating state includes one of the first operating state in which there is no gas flow in the gas device and the second operating state in which there is gas flow in the gas device.
[0014] In this embodiment, the gas device can be a device for measuring gas flow, such as an ultrasonic gas meter. The initial operating state can be the initial operating mode of the gas device, including a first operating state and a second operating state. The first operating state can be a state where there is no gas flow in the gas device's flow channel, and the flow channel is in a zero-flow state, for example, a low-power mode operating state. The second operating state can be a state where there is gas flow in the gas device's flow channel and the airflow in the flow channel is relatively stable, for example, a normal mode operating state. The first flow parameter can be a parameter characterizing the gas flow characteristics detected when the gas device is in the initial operating state; for example, the first flow parameter can be an instantaneous flow value and / or an instantaneous flow change.
[0015] In some embodiments, such as Figure 2As shown, an ultrasonic gas meter may include an ultrasonic metering module 100, which includes: a housing 10, a metering channel 111 extending along a first direction X within the housing 10, and a first inner wall 112 and a second inner wall 113 disposed opposite to each other in a second direction Y; the first direction X and the second direction Y are perpendicular to each other; and a transducer 20, including a first transducer 21 and a second transducer 22, wherein the first transducer 21 is disposed on one side of the first inner wall 112 in the housing 10. The second transducer 22 is disposed on one side of the second inner wall 113 in the housing 10. The ultrasonic waves emitted by the first transducer 21 are adapted to be reflected sequentially by the second inner wall 113 and the first inner wall 112 before being received by the second transducer 22. The ultrasonic waves emitted by the second transducer 22 are adapted to be reflected sequentially by the first inner wall 112 and the second inner wall 113 before being received by the first transducer 21. The incident angle of the transducer 20 is A°, and the width of the metering channel 111 along the second direction Y is Hmm, satisfying: A = -1.23 × H 2 +44.7×Ha; where 370≤a≤374.5.
[0016] When ultrasound propagates in a fluid (such as fuel gas), its speed is affected by the fluid velocity. When the direction of ultrasound propagation is the same as the direction of fluid flow, the propagation speed is faster; conversely, when the direction of ultrasound propagation is opposite to the direction of fluid flow, the propagation speed is slower. By installing a pair of ultrasonic transducers 20 in the ultrasonic metering module 100, the propagation time of ultrasound under both co-current and counter-current conditions is measured, and the time difference is calculated. Based on the time difference and the parameters of the flow channel, the average flow velocity of the fluid in the flow channel can be derived. Combined with the cross-sectional area, the instantaneous flow rate can be calculated.
[0017] The ultrasonic metering module 100 provided in this application embodiment, on the one hand, allows the ultrasonic waves emitted by the first transducer 21 to be reflected twice by the second inner wall 113 and the first inner wall 112 before being received by the second transducer 22, and the ultrasonic waves emitted by the second transducer 22 to be reflected twice by the first inner wall 112 and the second inner wall 113 before being received by the first transducer 21. This enables the ultrasonic waves to form an "N"-shaped path, thereby reducing the size of the ultrasonic metering module 100 and improving space utilization while satisfying the effective sound path of the ultrasonic waves. On the other hand, by ensuring that the incident angle A of the transducer 20 and the width H of the metering channel 111 along the second direction Y satisfy the above formula, the sound path of the ultrasonic waves emitted by the first transducer 21 and the second transducer 22 can be kept within a reasonable range, reducing ultrasonic wave attenuation, ensuring ultrasonic wave propagation distance, extending ultrasonic wave propagation time, and improving measurement sensitivity. That is, the ultrasonic metering module 100 provided in this application can balance the effective sound path and ultrasonic attenuation of ultrasonic waves while reducing the overall size, thereby ensuring the measurement sensitivity and stability of the ultrasonic metering module 100 and improving the measurement accuracy.
[0018] It should be noted that the incident angle of transducer 20 refers to the distance between the extension direction of the ultrasonic wave emitted by transducer 20 and the normal direction (e.g., ...). Figure 2 As shown, the angle between the normal direction (i.e., the second direction Y) and the transducer 21. Since the first transducer 21 and the second transducer 22 are arranged in pairs, the incident angles of the first transducer 21 and the second transducer 22 are the same.
[0019] In some embodiments, the sound path of the ultrasonic wave emitted by the first transducer 21 is S1, where 70mm≤S1≤75mm.
[0020] By ensuring that the sound path S1 of the ultrasonic wave emitted by the first transducer 21 meets the above conditions, the attenuation rate of the ultrasonic wave can be controlled, the signal-to-noise ratio can be optimized, and sufficient sound path can be guaranteed to improve the sensitivity of the measurement and thus ensure the measurement accuracy.
[0021] For example, the sound path S1 of the ultrasonic wave emitted by the first transducer 21 can be 70mm, 70.75mm, 71mm, 71.81mm, 72mm, 73.75mm, 73.95mm, 74mm, 74.21mm, 74.61mm or 75mm.
[0022] In some embodiments, the sound path of the ultrasonic wave emitted by the second transducer 22 is S2, where 70mm≤S2≤75mm.
[0023] By ensuring that the sound path S2 of the ultrasonic wave emitted by the second transducer 22 meets the above conditions, the attenuation rate of the ultrasonic wave can be controlled, the signal-to-noise ratio can be optimized, and sufficient sound path can be guaranteed to improve the sensitivity of the measurement and thus ensure the measurement accuracy.
[0024] For example, the sound path S2 of the ultrasonic wave emitted by the second transducer 22 can be 70mm, 70.75mm, 71mm, 71.81mm, 72mm, 73.75mm, 73.95mm, 74mm, 74.21mm, 74.61mm or 75mm.
[0025] In some embodiments, 14 ≤ A ≤ 22.
[0026] By keeping the incident angle of the transducer 20 within the range of 14°-22°, the ultrasonic waves can be more concentrated in the second direction Y, reducing energy dispersion caused by beam diffusion during reflection, lowering signal attenuation, and improving transmission efficiency. Furthermore, within this incident angle range, the width of the metering channel 111 in the second direction Y and its length in the first direction X can be balanced while meeting the acoustic path requirements, resulting in a compact overall structure for the ultrasonic metering module 100.
[0027] For example, the incident angle of the transducer 20 can be 14°, 15°, 16°, 17°, 17.68°, 18°, 19°, 20°, 21° or 22°.
[0028] In some embodiments, 20 ≤ H ≤ 23.
[0029] That is, the width of the metering channel 111 in the second direction Y is 20mm-23mm. By keeping the width of the metering component in the second direction Y within the above range, the relationship between the width of the metering channel 111 in the second direction Y and its length in the first direction X can be balanced while meeting the ultrasonic path requirements, making the overall structure of the ultrasonic metering module 100 compact. In addition, keeping the width of the metering channel 111 in the second direction Y within the above range can keep the incident angle of the transducer 20 within a small range while meeting the ultrasonic path requirements, avoiding excessive dispersion of ultrasonic waves on the surface of the first inner wall 112 or the second inner wall 113 due to an excessively large incident angle, and reducing the attenuation of ultrasonic waves during reflection.
[0030] For example, the width of the metering channel 111 in the second direction Y can be 20mm, 20.5mm, 21mm, 21.5mm, 22mm, 22.3mm, 22.5mm, 22.8mm or 23mm.
[0031] In some embodiments, such as Figure 1 As shown, the center-to-center distance between the first transducer 21 and the second transducer 22 in the first direction X is W, 17mm≤W≤25mm.
[0032] The metering channel 111 extends along the first direction X. By ensuring that the center distance W between the first transducer 21 and the second transducer 22 in the first direction X satisfies the aforementioned conditions, the length of the metering channel 111 in the first direction X can be controlled within a reasonable range, improving the compactness of the ultrasonic metering module 100. Simultaneously, the center distance W between the first transducer 21 and the second transducer 22 in the first direction X also affects the incident angle. By satisfying the aforementioned range, the incident angle of the transducer 20 can be kept within a certain range, reducing ultrasonic attenuation and improving measurement sensitivity.
[0033] It is understood that the center-to-center distance between the first transducer 21 and the second transducer 22 in the first direction X refers to the distance between the center point on the emitting surface of the first transducer 21 and the center point on the emitting surface of the second transducer 22. A larger center-to-center distance between the first transducer 21 and the second transducer 22 in the first direction X requires a larger length of the ultrasonic metering module 100 in the first direction X. A smaller center-to-center distance between the first transducer 21 and the second transducer 22 in the first direction X results in a smaller incident angle of the transducer 20 and a shorter ultrasonic path. This application balances the compactness of the ultrasonic metering module 100 and the ultrasonic path by setting the center-to-center distance W of the first transducer 21 and the second transducer 22 within the aforementioned range.
[0034] For example, the center distance W between the first transducer 21 and the second transducer 22 in the first direction X can be 17mm, 17.12mm, 18mm, 19mm, 19.79mm, 20mm, 21mm, 22mm, 22.06mm, 22.54mm, 23mm, 24mm or 25mm.
[0035] In some embodiments, such as Figure 1 As shown, the length of the metering channel 111 along the first direction X is L, 40mm≤L≤80mm.
[0036] By ensuring that the length of the metering channel 111 along the first direction X is within the aforementioned range, the overall structural compactness of the ultrasonic metering module 100 can be guaranteed. At the same time, the fluid can form a laminar flow within the metering channel 111, ensuring measurement stability and matching the installation requirements of the first transducer 21 and the second transducer 22.
[0037] In some embodiments, the first operating state corresponds to the first sampling frequency; the second operating state corresponds to the second sampling frequency; and the first sampling frequency is less than the second sampling frequency.
[0038] In this embodiment, the first sampling frequency can be the sampling frequency for detecting gas flow rate in the first operating state. For example, the first sampling frequency can be 0.5Hz, sampling once every 2 seconds. The second sampling frequency can be the sampling frequency for detecting gas flow rate in the second operating state. For example, the second sampling frequency can be 1Hz, sampling once every 1 second. The first sampling frequency is less than the second sampling frequency, meaning the sampling interval of the first operating state is greater than the sampling interval of the second operating state. Specifically, the first operating state (e.g., the low-power mode operating state) corresponds to a lower first sampling frequency to reduce energy consumption; the second operating state (e.g., the normal mode operating state) corresponds to a higher second sampling frequency to ensure measurement accuracy.
[0039] In the embodiments of this application, by configuring a sampling frequency for the first working state that is lower than that for the second working state, energy consumption can be reduced when there is no gas flow and measurement accuracy can be guaranteed when there is gas flow, thereby improving the technical problem in the related art where a fixed sampling frequency makes it difficult to balance energy consumption and accuracy.
[0040] Step 102: Switch the operating state of the gas device from the first operating state or the second operating state to the target operating state according to the first flow parameter.
[0041] In this embodiment, the target operating state can be the high-frequency pulsating mode operating state entered when there are fluctuations in the airflow, for example, the pulsating mode operating state. The target operating state can correspond to a third sampling frequency, which can be greater than the second sampling frequency; for example, the third sampling frequency can be 8Hz, with 8 samples per second. In some embodiments, the operating state of the gas device also includes a calibration mode operating state, in which rapid meter calibration and internal debugging can be performed. This state is entered by sending a command, and the sampling frequency can be 4Hz, with 4 samples per second.
[0042] In some embodiments, the first flow parameter includes a first instantaneous flow parameter of the gas; switching the operating state of the gas device from a first operating state to a target operating state based on the first flow parameter includes: If the value of the first instantaneous flow parameter is greater than or equal to the first flow threshold, the operating state of the gas device will be switched from the first operating state to the target operating state.
[0043] In this embodiment, the first instantaneous flow rate parameter can be the instantaneous gas flow rate value detected at a certain moment when the gas device is in the first operating state. The first flow rate threshold can be a preset flow rate threshold value used to determine the start of gas flow, such as 10 L / h. Specifically, when the gas device is in the first operating state, the first instantaneous flow rate parameter is detected; if the initial operating state is the first operating state and the value of the first instantaneous flow rate parameter is greater than or equal to the first flow rate threshold, it indicates that gas has started to flow, and at this time, the operating state of the gas device is switched from the first operating state to the target operating state.
[0044] As an example, when a gas meter transitions from a zero-flow state to a gas-flowing state (i.e., the instant gas supply occurs in a real-world application scenario), it needs to immediately enter pulse mode. This can be determined by observing changes in instantaneous flow rate. A flow rate threshold can be set, such as 10L / h. When the flow rate changes from zero to 10L / h or higher, it is determined that gas flow exists, and the meter enters pulse mode.
[0045] In the embodiments of this application, by switching the first working state to the target working state when the first instantaneous flow rate parameter is greater than or equal to the first flow rate threshold, a timely response when the gas starts to flow can be achieved, thereby improving the technical problem of delayed state switching when the gas starts in related technologies.
[0046] In some embodiments, switching the operating state of the gas device from a second operating state to a target operating state based on a first flow parameter includes: Determine the initial flow state of the gas installation; Based on the initial flow state and the first flow parameter, the operating state of the gas device is switched from the second operating state to the target operating state.
[0047] In this embodiment, the initial flow state can be the flow state of the gas flow within a flow range or segment when the gas device is in the second operating state. For example, the gas flow can be in a low flow range, a medium-low flow range, or a medium-high flow range. When the initial operating state is the second operating state, the initial flow state of the gas device is first determined, and then the flow condition of the first flow parameter is determined based on the initial flow state. Based on the first flow parameter and the corresponding flow condition, the operating state is switched from the second operating state to the target operating state.
[0048] In the embodiments of this application, by determining the initial flow state and combining it with the first flow parameter to achieve the switching from the second working state to the target working state, the state switching can be adapted to the characteristics of different flow ranges, thereby improving the technical problem in related technologies that ignore the differences in flow ranges, resulting in insufficient switching accuracy.
[0049] In some embodiments, the initial flow state includes a first flow state; the first flow parameter includes a first flow change parameter of the gas; switching the operating state of the gas device from a second operating state to a target operating state based on the initial flow state and the first flow parameter includes: Determine the first flow rate change parameters based on the first flow rate status; If the value of the first flow change parameter is greater than or equal to the first flow change threshold, the operating state of the gas device is switched from the second operating state to the target operating state.
[0050] In this embodiment, the first flow state can be the flow state of the gas flow rate within a small flow range or segment in the gas device. For example, the first flow state can be the flow state within the flow range of 16-200 L / h. The first flow change parameter can be the instantaneous flow change Q2-Q1 or the instantaneous flow change amplitude (Q2-Q1) / Q1 between two consecutive detections when the gas flow rate in the gas device is in the first flow state, where Q1 represents the previous instantaneous flow rate and Q2 represents the next instantaneous flow rate. The first flow change threshold can be the critical change value that triggers the state switch when the gas flow rate in the gas device is in the first flow state. For example, the first flow change threshold can be 20 L / h or 20%.
[0051] Specifically, when the initial flow rate is in the first flow rate state, the first flow rate change parameter is first obtained under the first flow rate state, that is, by calculating the difference or magnitude of the change in flow rate between two adjacent instantaneous flows within this flow rate range. If the value of the first flow rate change parameter is greater than or equal to the first flow rate change threshold, it indicates that there is a significant fluctuation in the gas flow rate within the current small flow rate segment. At this time, the operating state is switched from the second operating state to the target operating state. As an example, in the small flow rate segment of 16-200 L / h, when the instantaneous flow rate change exceeds 20 L / h, the operating state of the pulse mode is entered.
[0052] In the embodiments of this application, by determining the first flow change parameter based on the first flow state and switching the state when it reaches the first flow change threshold, the flow fluctuation determination can be adapted to a specific flow range, thereby improving the technical problem of misjudgment caused by the lack of range specificity in the flow fluctuation determination in related technologies.
[0053] In some embodiments, the first flow parameter includes a second instantaneous flow parameter of the gas; switching the operating state of the gas device from the second operating state to the target operating state based on the initial flow state and the first flow parameter includes: The second instantaneous flow parameters are determined based on the first flow state; If the value of the second instantaneous flow parameter is less than or equal to the second flow threshold, the operating state of the gas device is switched from the second operating state to the target operating state; the second flow threshold is less than the first flow threshold.
[0054] In this embodiment, the second instantaneous flow parameter can be the instantaneous gas flow value detected at a certain moment when the gas flow in the gas device is in the first flow state. The second flow threshold can be another critical change value that triggers the state switch when the gas flow in the gas device is in the first flow state. The second flow threshold can be a preset critical value lower than the first flow threshold. For example, the second flow threshold can be 3L / h (close to zero flow) or 0L / h. When the initial flow state is the first flow state, the second instantaneous flow parameter is first obtained in the first flow state. If the value of the second instantaneous flow parameter is less than or equal to the second flow threshold, the working state of the gas device is switched from the second working state to the target working state. As an example, in the small flow range of 16-200L / h, when the instantaneous flow is equal to 0L / h, the device immediately enters the pulse mode working state, and then uniformly determines whether to enter the low power consumption mode working state in the pulse mode working state.
[0055] In the embodiments of this application, by switching the state when the second instantaneous flow parameter is less than or equal to the second flow threshold, a timely response can be made when the flow is close to zero. The target working state (such as pulse mode) is used for unified judgment first, avoiding misoperation caused by direct switching and improving the accuracy of state switching.
[0056] In some embodiments, the initial flow state includes a second flow state; the first flow parameter includes a second flow variation parameter for the gas; switching the operating state of the gas device from the second operating state to the target operating state based on the initial flow state and the first flow parameter includes: Determine the second flow rate variation parameters based on the second flow rate status; If the value of the second flow change parameter is greater than or equal to the second flow change threshold, the operating state of the gas device is switched from the second operating state to the target operating state; the second flow change threshold is less than the first flow change threshold.
[0057] In this embodiment, the second flow state can be the flow state of the gas flow rate within a small to medium flow range or segment in the gas device. For example, the second flow state can be the flow state within the flow rate range of 201-600 L / h. The second flow change parameter can be the flow change amplitude (Q2-Q1) / Q1 between two consecutive detections when the gas flow rate in the gas device is in the second flow state. The second flow change threshold can be the critical change value that triggers the switching when the gas flow rate in the gas device is in the second flow state. For example, the second flow change threshold can be 10%, and the second flow change threshold is less than the first flow change threshold.
[0058] Specifically, when the initial flow state is the second flow state, the second flow change parameter is first obtained under the second flow state. That is, the second flow change parameter is obtained by calculating the change amplitude of two adjacent instantaneous flows within the flow range. If the calculated value of the second flow change parameter is greater than or equal to the second flow change threshold, it indicates that there is a significant fluctuation in the gas flow rate within the current small to medium flow range. At this time, the operating state of the gas device is switched from the second operating state to the target operating state. As an example, in the small to medium flow range of 201 L / h–600 L / h, when the instantaneous flow change amplitude exceeds 10%, that is, (Q2-Q1) / Q1≥0.1, the device enters the pulse mode operating state.
[0059] In the embodiments of this application, by setting a second flow change threshold that is less than the first flow change threshold for the second flow state, and switching the state according to the second flow change parameter, the fluctuation determination of the medium flow range can be made more accurate, thereby improving the technical problem of poor adaptability of fluctuation determination caused by the difference in flow range in related technologies.
[0060] In some embodiments, the initial flow state includes a third flow state; the first flow parameter includes a third flow variation parameter for the gas; and switching the operating state of the gas device from a second operating state to a target operating state based on the initial flow state and the first flow parameter includes: Determine the third flow change parameters based on the third flow state; If the value of the third flow change parameter is greater than or equal to the third flow change threshold, the operating state of the gas device is switched from the second operating state to the target operating state; if the third flow change threshold is less than the second flow change threshold.
[0061] In this embodiment, the third flow state can be the flow state of the gas flow rate in the gas device within a medium-to-high flow range or segment. For example, the third flow state can be the flow state within the flow range of 601-7200 L / h. The third flow change parameter can be the instantaneous flow change amplitude (Q2-Q1) / Q1 between two consecutive detections within this flow range. The third flow change threshold can be the critical change value that triggers the state switch when the gas flow rate in the gas device is in the third flow state, and the third flow change threshold can be less than the second flow change threshold. For example, the third flow change threshold can be 8%.
[0062] Specifically, when the initial flow state is the third flow state, the third flow change parameter is first obtained under the third flow state. That is, the third flow change parameter is obtained by calculating the change amplitude of two adjacent instantaneous flows within this flow range. If the calculated value of the third flow change parameter is greater than or equal to the third flow change threshold, it indicates that there is a significant fluctuation in the gas flow rate within the current medium-to-high flow range. At this time, the operating state of the gas device is switched from the second operating state to the target operating state. As an example, in the medium-to-high flow range of 601L / h–7200L / h, when the instantaneous flow change amplitude exceeds 8%, that is, (Q2-Q1) / Q1≥0.08, the device enters the pulse mode operating state.
[0063] In the embodiments of this application, by setting a third flow change threshold that is less than the second flow change threshold for the third flow state, and switching the state according to the third flow change parameter, the fluctuation determination in a large flow range can be made more accurate, thereby improving the technical problem of large fluctuation determination error under high flow in related technologies.
[0064] In some embodiments, the initial flow state includes a sixth flow state; the first flow parameter includes a fifth flow variation parameter of the gas; switching the operating state of the gas device from a second operating state to a target operating state based on the initial flow state and the first flow parameter includes: determining the fifth flow variation parameter based on the sixth flow state; switching the operating state of the gas device from the second operating state to the target operating state if the value of the fifth flow variation parameter is greater than or equal to a fifth flow variation threshold; the fifth flow variation threshold is less than a third flow variation threshold. The sixth flow state can be a flow state within a flow range greater than 7200 L / h. The fifth flow variation threshold can be 5%.
[0065] Step 103: Obtain the second flow parameter of the gas and the current flow status corresponding to the second flow parameter.
[0066] In this embodiment, the second flow parameter can be a parameter characterizing the gas flow characteristics detected after the gas device switches to the target operating state. For example, the second flow parameter can be the instantaneous flow value and / or the instantaneous flow change. The current flow state can be the current flow characteristic state of the gas determined according to the second flow parameter. For example, the current flow state can be a state where the flow is close to zero, a state where the flow is relatively stable, or a state where the flow fluctuates.
[0067] Specifically, after the gas device switches to the target operating state, the gas flow rate can be continuously detected to obtain a second flow parameter. Then, based on the specific value or characteristics of the obtained second flow parameter, the current flow state of the gas is determined, that is, the corresponding current flow state is determined.
[0068] Step 104: Based on the second flow rate parameter and the duration parameter of the gas device being in the current flow rate state, switch the operating state of the gas device from the target operating state to the first operating state or the second operating state.
[0069] In this embodiment, the duration parameter can be the length of time the current flow state is maintained. When the gas device is in the target operating state, the current flow state of the gas can be determined based on the acquired second flow parameter, that is, the corresponding current flow state is determined; then, the duration of the gas device in the current flow state is recorded to obtain the duration parameter; if the value of the duration parameter meets the preset time threshold, it indicates that the current flow state has stabilized, and at this time, the operating state of the gas device is switched from the target operating state to the first operating state or the second operating state that is compatible with the current flow state.
[0070] In some embodiments, the second flow parameter includes a third instantaneous flow parameter; the current flow state includes a fourth flow state; the duration parameter includes a first time parameter; and switching the operating state of the gas device from a target operating state to a first operating state based on the second flow parameter and the duration parameter of the gas device being in the current flow state includes: If the value of the third instantaneous flow parameter is less than or equal to the third flow threshold, the gas device is determined to be in the fourth flow state. Acquire the first time parameters of the gas device in the fourth flow state; If the value of the first time parameter is greater than or equal to the first time threshold, the operating state of the gas device is switched from the target operating state to the first operating state; the third flow threshold is less than the first flow threshold.
[0071] In this embodiment, the third instantaneous flow rate parameter can be the instantaneous flow rate value detected under the target operating state. The third flow rate threshold can be a preset critical value close to zero flow rate, for example, the third flow rate threshold can be 3L / h, and the third flow rate threshold can be less than the first flow rate threshold. The fourth flow rate state can be a state where the flow rate is close to zero. The first time parameter can be the duration for which the gas device is in the fourth flow rate state. The first time threshold can be the minimum duration for triggering state switching, for example, the first time threshold can be 30s.
[0072] Specifically, when switching the gas device from the target operating state to the first operating state, the third instantaneous flow parameter in the target operating state is first detected. If the value of this parameter is less than or equal to the third flow threshold, it indicates that the gas flow has dropped to a low flow or zero flow, and the gas device is then determined to be in the fourth flow state. The duration of the gas device being in the fourth flow state is then continuously recorded, i.e., the first time parameter is obtained. If the value of the first time parameter is greater than or equal to the first time threshold, it indicates that the zero or low flow state is stable, rather than fluctuating instantaneously, and the gas device's operating state is switched from the target operating state to the first operating state. As an example, when the instantaneous flow returns to zero flow and remains so for a period of time (30 seconds), the pulse mode is exited, and the low-power mode is entered.
[0073] In the embodiments of this application, by switching the target working state to the first working state when the third instantaneous flow parameter meets the condition and the duration reaches the first time threshold, timely energy-saving switching in the zero flow state can be achieved, thereby improving the technical problem of insufficient energy consumption control in the related art when there is zero flow.
[0074] In some embodiments, the second flow parameter includes a fourth flow change parameter; the current flow state includes a fifth flow state; the duration parameter includes a second time parameter; and switching the operating state of the gas device from a target operating state to a second operating state based on the second flow parameter and the duration parameter of the gas device being in the current flow state includes: If the value of the fourth flow change parameter is less than or equal to the fourth flow change threshold, the gas device is determined to be in the fifth flow state; the fourth flow change threshold is less than or equal to the third flow change threshold. Acquire the second time parameter when the gas device is in the fifth flow state; If the value of the second time parameter is greater than or equal to the second time threshold, the operating state of the gas device is switched from the target operating state to the second operating state.
[0075] In this embodiment, the fourth flow rate change parameter can be the magnitude of the flow rate change detected between two consecutive times under the target operating state. The fourth flow rate change threshold can be a critical value for determining that the flow rate tends to stabilize, and the fourth flow rate change threshold can be less than or equal to the third flow rate change threshold; for example, the fourth flow rate change threshold can be 8% or 5%. The fifth flow rate state can be a state where the flow rate is relatively stable. The second time parameter can be the duration of being in the fifth flow rate state. The second time threshold can be the minimum duration for triggering a state switch; for example, the second time threshold can be 30 seconds.
[0076] Specifically, when it is necessary to switch the gas device from the target operating state to the second operating state, the instantaneous flow data under the target operating state is continuously monitored first, and the fourth flow change parameter is calculated. If the value of the fourth flow change parameter is less than or equal to the fourth flow change threshold, it indicates that the current gas flow has stabilized, and the gas device is determined to be in the fifth flow state. Then, the duration of the gas device being in the fifth flow state is continuously recorded, i.e., the second time parameter is obtained. If the value of the second time parameter is greater than or equal to the second time threshold, it indicates that the stable flow state is not an instantaneous fluctuation, and at this time, the operating state of the gas device is switched from the target operating state to the second operating state.
[0077] As an example, when the instantaneous flow rate is a relatively constant flow rate (the instantaneous flow rate change is less than 8%, which is considered constant flow rate), and after a period of time (30s), the pulse mode is exited and the normal mode is entered.
[0078] In the embodiments of this application, by switching the target working state to the second working state when the fourth flow change parameter meets the condition and the duration reaches the second time threshold, timely callback when the flow is stable can be achieved, thereby improving the technical problem of excessive energy consumption caused by maintaining a high-frequency mode after the flow is stable in related technologies.
[0079] The following describes the method for switching the operating state of a gas device provided in the embodiments of this application.
[0080] like Figure 3 As shown, the method includes: the gas device is initially in a low-power mode, at which point it is determined whether the instantaneous flow rate Qs is ≥10L / h (at the moment of gas supply); if not, the low-power mode is maintained; if yes, the device enters a pulse mode. In the pulse mode, two conditions are simultaneously determined: first, whether the change in Qs is less than 5% and lasts for 30 seconds; second, whether Qs becomes 0 and lasts for 30 seconds; if the change in Qs is less than 5% and lasts for 30 seconds, the device enters a normal mode; if Qs becomes 0 and lasts for 30 seconds, the device returns to the low-power mode; if neither condition is met, the pulse mode is maintained. After entering normal mode, the flow rate segment is judged sequentially: First, it is judged whether it is a small flow segment and the Qs change is ≥20L / h or Qs equals 0. If yes, it returns to pulse mode; if no, it is judged whether it is a small to medium flow segment and the Qs change is ≥10%. If yes, it returns to pulse mode; if no, it is judged whether it is a medium to large flow segment and the Qs change is ≥8%. If yes, it returns to pulse mode; if no, it is judged whether it is a large flow segment and the Qs change is ≥5%. If yes, it returns to pulse mode; if no, it remains in normal mode.
[0081] like Figure 4 As shown in the figure, an embodiment of this application discloses a gas appliance operating state switching device. The gas appliance operating state switching device 400 includes: The first acquisition module 401 is used to acquire the initial operating state of the gas device and the first flow parameter of the gas in the gas device; the initial operating state includes one of the first operating state in which there is no gas flow in the gas device and the second operating state in which there is gas flow in the gas device. The first switching module 402 is used to switch the working state of the gas device from the first working state or the second working state to the target working state according to the first flow parameter. The second acquisition module 403 is used to acquire the second flow parameter of the gas and the current flow status corresponding to the second flow parameter; The second switching module 404 is used to switch the operating state of the gas device from the target operating state to the first operating state or the second operating state according to the second flow parameter and the duration parameter of the gas device being in the current flow state.
[0082] In some embodiments, the first flow parameter includes a first instantaneous flow parameter of the gas; the first switching module 402 is further configured to switch the operating state of the gas device from a first operating state to a target operating state if the value of the first instantaneous flow parameter is greater than or equal to a first flow threshold.
[0083] In some embodiments, the first switching module 402 is further configured to determine the initial flow state of the gas device; and switch the operating state of the gas device from the second operating state to the target operating state based on the initial flow state and the first flow parameter.
[0084] In some embodiments, the initial flow state includes a first flow state; the first flow parameter includes a first flow change parameter of the gas; the first switching module 402 is further configured to determine the first flow change parameter based on the first flow state; and switch the operating state of the gas device from the second operating state to the target operating state if the value of the first flow change parameter is greater than or equal to the first flow change threshold.
[0085] In some embodiments, the first flow parameter includes a second instantaneous flow parameter of the gas; the first switching module 402 is further configured to determine the second instantaneous flow parameter based on the first flow state; and when the value of the second instantaneous flow parameter is less than or equal to a second flow threshold, switch the operating state of the gas device from the second operating state to the target operating state; the second flow threshold is less than the first flow threshold.
[0086] In some embodiments, the initial flow state includes a second flow state; the first flow parameter includes a second flow change parameter of the gas; the first switching module 402 is further configured to determine the second flow change parameter based on the second flow state; and switch the operating state of the gas device from the second operating state to the target operating state if the value of the second flow change parameter is greater than or equal to the second flow change threshold; the second flow change threshold is less than the first flow change threshold.
[0087] In some embodiments, the initial flow state includes a third flow state; the first flow parameter includes a third flow change parameter of the gas; the first switching module 402 is further configured to determine the third flow change parameter based on the third flow state; when the value of the third flow change parameter is greater than or equal to the third flow change threshold, the operating state of the gas device is switched from the second operating state to the target operating state; the third flow change threshold is less than the second flow change threshold.
[0088] In some embodiments, the second flow parameter includes a third instantaneous flow parameter; the current flow state includes a fourth flow state; the duration parameter includes a first time parameter; the second switching module 404 is further configured to determine that the gas device is in the fourth flow state when the value of the third instantaneous flow parameter is less than or equal to the third flow threshold; obtain the first time parameter of the gas device being in the fourth flow state; and switch the operating state of the gas device from the target operating state to the first operating state when the value of the first time parameter is greater than or equal to the first time threshold; the third flow threshold is less than the first flow threshold.
[0089] In some embodiments, the second flow parameter includes a fourth flow change parameter; the current flow state includes a fifth flow state; the second switching module 404 is further configured to determine that the gas device is in the fifth flow state when the value of the fourth flow change parameter is less than or equal to the fourth flow change threshold; the fourth flow change threshold is less than or equal to the third flow change threshold; obtain a second time parameter indicating that the gas device is in the fifth flow state; and switch the operating state of the gas device from the target operating state to the second operating state when the value of the second time parameter is greater than or equal to the second time threshold.
[0090] In some embodiments, the first operating state corresponds to the first sampling frequency; the second operating state corresponds to the second sampling frequency; and the first sampling frequency is less than the second sampling frequency.
[0091] To implement the method of the embodiments of this application, such as Figure 5As shown in the illustration, this application embodiment also provides an electronic device 50 that may include: a memory 501 for storing a computer program; and a processor 502 for implementing the method described above when executing the computer program. The processor 502 can implement the steps of any of the methods described above, which will not be elaborated further here.
[0092] It should be noted that the electronic devices provided in the above embodiments and the above method embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0093] Of course, in practical applications, such as Figure 5 As shown, the electronic device 50 may further include at least one network interface 503. Various components in the electronic device are coupled together via a bus system 504. It is understood that the bus system 504 is used to implement communication between these components. In addition to a data bus, the bus system 504 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 5Various buses are labeled as bus systems 504. The number of processors 502 can be at least one. Network interface 503 is used for wired or wireless communication between electronic devices and other devices. Memory 501 in this embodiment is used to store various types of data to support the operation of the electronic device. The methods disclosed in the above embodiments can be applied to processor 502, or implemented by processor 502. Processor 502 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 502 or by instructions in software form. The processor 502 can be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 502 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly reflected in the combined execution of hardware and software modules in a microcontroller. The software module may reside in a storage medium located in memory 501. Processor 502 reads information from memory 501 and, in conjunction with its hardware, completes the steps of the aforementioned method. In an exemplary embodiment, electronic device 50 may be implemented using one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to execute the aforementioned method.
[0094] Specifically, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, such as a memory 501 storing the computer program, which can be executed by a processor 502 to complete the aforementioned method steps. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.
[0095] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0096] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0097] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0098] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed descriptions of other embodiments above, which will not be repeated here.
[0099] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for switching the operating state of a gas device, characterized in that, include: The initial operating state of the gas device and the first flow parameter of the gas in the gas device are obtained; the initial operating state includes one of a first operating state in which there is no gas flow in the gas device and a second operating state in which the gas flows in the gas device. Based on the first flow rate parameter, the operating state of the gas device is switched from the first operating state or the second operating state to the target operating state; Obtain the second flow parameter of the gas and the current flow status corresponding to the second flow parameter; Based on the second flow rate parameter and the duration parameter of the gas device being in the current flow rate state, the operating state of the gas device is switched from the target operating state to the first operating state or the second operating state.
2. The method according to claim 1, characterized in that, The first flow parameter includes the first instantaneous flow parameter of the gas; the step of switching the operating state of the gas device from the first operating state to the target operating state according to the first flow parameter includes: If the value of the first instantaneous flow rate parameter is greater than or equal to the first flow rate threshold, then the operating state of the gas device is switched from the first operating state to the target operating state.
3. The method according to claim 2, characterized in that, The step of switching the operating state of the gas device from the second operating state to the target operating state based on the first flow rate parameter includes: Determine the initial flow state of the gas device; Based on the initial flow rate and the first flow rate parameter, the operating state of the gas device is switched from the second operating state to the target operating state.
4. The method according to claim 3, characterized in that, The initial flow state includes a first flow state; the first flow parameter includes a first flow change parameter of the gas; the step of switching the operating state of the gas device from the second operating state to the target operating state based on the initial flow state and the first flow parameter includes: The first flow change parameter is determined based on the first flow state; If the value of the first flow rate change parameter is greater than or equal to the first flow rate change threshold, the operating state of the gas device is switched from the second operating state to the target operating state.
5. The method according to claim 4, characterized in that, The first flow parameter includes the second instantaneous flow parameter of the gas; the step of switching the operating state of the gas device from the second operating state to the target operating state based on the initial flow state and the first flow parameter includes: The second instantaneous flow parameter is determined based on the first flow state; If the value of the second instantaneous flow parameter is less than or equal to the second flow threshold, the operating state of the gas device is switched from the second operating state to the target operating state; the second flow threshold is less than the first flow threshold.
6. The method according to claim 4, characterized in that, The initial flow state includes a second flow state; the first flow parameter includes a second flow variation parameter of the gas; the step of switching the operating state of the gas device from the second operating state to the target operating state based on the initial flow state and the first flow parameter includes: The second flow change parameter is determined based on the second flow state; If the value of the second flow change parameter is greater than or equal to the second flow change threshold, the operating state of the gas device is switched from the second operating state to the target operating state; the second flow change threshold is less than the first flow change threshold.
7. The method according to claim 6, characterized in that, The initial flow state includes a third flow state; the first flow parameter includes a third flow variation parameter of the gas; the step of switching the operating state of the gas device from the second operating state to the target operating state based on the initial flow state and the first flow parameter includes: The third flow change parameter is determined based on the third flow state; If the value of the third flow change parameter is greater than or equal to the third flow change threshold, the operating state of the gas device is switched from the second operating state to the target operating state; the third flow change threshold is less than the second flow change threshold.
8. The method according to claim 2, characterized in that, The second flow parameter includes a third instantaneous flow parameter; the current flow state includes a fourth flow state; the duration parameter includes a first time parameter; the step of switching the operating state of the gas device from the target operating state to the first operating state based on the second flow parameter and the duration parameter of the gas device being in the current flow state includes: If the value of the third instantaneous flow parameter is less than or equal to the third flow threshold, the gas device is determined to be in the fourth flow state. Obtain the first time parameter of the gas device being in the fourth flow state; If the value of the first time parameter is greater than or equal to the first time threshold, the operating state of the gas device is switched from the target operating state to the first operating state; the third flow threshold is less than the first flow threshold.
9. The method according to claim 7, characterized in that, The second flow parameter includes a fourth flow change parameter; the current flow state includes a fifth flow state; the duration parameter includes a second time parameter; the step of switching the operating state of the gas device from the target operating state to the second operating state based on the second flow parameter and the duration parameter of the gas device being in the current flow state includes: If the value of the fourth flow change parameter is less than or equal to the fourth flow change threshold, the gas device is determined to be in the fifth flow state; the fourth flow change threshold is less than or equal to the third flow change threshold. Obtain the second time parameter of the gas device being in the fifth flow state; If the value of the second time parameter is greater than or equal to the second time threshold, the operating state of the gas device is switched from the target operating state to the second operating state.
10. The method according to any one of claims 1-9, characterized in that, The first operating state corresponds to the first sampling frequency; the second operating state corresponds to the second sampling frequency; the first sampling frequency is less than the second sampling frequency.