A method and system for controlling the state of a gas valve

By controlling the gas valve status through preset event flags and commands, the problem of inconsistent valve status after abnormal reset of the gas meter is solved, improving user experience and work efficiency.

CN117146202BActive Publication Date: 2026-04-21ZHEJIANG WEIXING INTELLIGENT METER STOCK
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

After an abnormal reset of the existing gas meter, the valve status is inconsistent with that before the abnormal reset, resulting in a poor user experience and increasing unnecessary inspection and maintenance work.

Method used

By presetting event flags, analyzing trigger states, setting management commands, and obtaining enable commands, the opening and closing states of gas valves can be flexibly controlled to ensure valve consistency.

Benefits of technology

It enables flexible control of valve status after abnormal reset of gas meter, improves user experience, reduces unnecessary inspection and maintenance work, and improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117146202B_ABST
    Figure CN117146202B_ABST
Patent Text Reader

Abstract

This invention provides a method and system for controlling the state of a gas valve. The method includes the following steps: presetting an event flag that triggers a change in the state of the gas valve; analyzing the trigger state corresponding to the event flag; setting corresponding management instructions based on each trigger state corresponding to the event flag; obtaining enable instructions from the client for each trigger state corresponding to the event flag; and controlling the opening and closing state of the gas valve based on the trigger state, the management instructions, and the enable instructions. This control method and system, by combining event flags, enable instructions, and management instructions to control the opening and closing state of the gas valve, allows the valve state to be flexibly adjusted according to actual needs after an abnormal reset of the gas meter. The gas valve state remains unchanged before and after the abnormal reset, resulting in a better gas user experience and effectively reducing unnecessary inspection and maintenance work.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of gas valve control technology, and more specifically relates to a method and system for controlling the state of a gas valve. Background Technology

[0002] With the continuous development and progress of electronic technology, gas meters have evolved from the initial purely decentralized offline mechanical diaphragm meters to the current smart IoT meters. Their functions have also diversified, posing considerable challenges to electronic and computer software technologies. Especially in the gas meter industry, gas meters must operate stably, achieve accurate measurement, and have anomaly handling mechanisms. This greatly increases the complexity of the software, and the requirements for software development and system management are becoming increasingly stringent. Even though the level of software development and management for gas meters is gradually improving, it is still inevitable that gas meters will experience abnormal resets after operating for a period of time.

[0003] There is a certain connection between abnormal gas meter resets and gas valve control. In existing technologies, valve control logic is typically quite simple; after an abnormal gas meter reset, the gas valve is always closed. However, in some cases, triggering an abnormal gas meter reset does not require closing the valve. The existing simple closing logic results in an inconsistency between the valve state after and before the reset. For example, before an abnormal gas meter reset, the corresponding gas valve might be open; the existing valve control logic might then close it after the reset, leading to an inconsistency. Users might perceive a safety hazard when the gas valve is closed, even if no actual safety threat has been triggered. This necessitates time for users to check or contact after-sales personnel for repairs, impacting user experience and increasing maintenance costs.

[0004] Therefore, the design strategy for controlling gas valves needs to be optimized. Summary of the Invention

[0005] Based on the aforementioned shortcomings and deficiencies in the prior art, one of the objectives of this invention is to at least solve one or more of the aforementioned problems in the prior art. In other words, one of the objectives of this invention is to provide a method and system for controlling the state of a gas valve that meets one or more of the aforementioned requirements.

[0006] To achieve the above-mentioned objectives, the present invention adopts the following technical solution:

[0007] In a first aspect, the present invention provides a method for controlling the state of a gas valve, comprising the following steps:

[0008] S1, Preset event flag to trigger a change in the state of the gas valve;

[0009] S2. Analyze the triggering state corresponding to the event flag based on the event flag;

[0010] S3. Set corresponding management instructions based on each trigger state corresponding to the event flag;

[0011] S4. Obtain the client's enable command for each of the trigger states corresponding to the event flag;

[0012] S5. Control the opening and closing state of the gas valve based on the trigger state, the management command, and the enable command.

[0013] As a preferred embodiment, step S2, which involves analyzing the triggering state corresponding to the event flag based on the event flag, includes the following steps:

[0014] A preset safety value is set for the event flag;

[0015] Obtain the measured value of the event flag;

[0016] By comparing the measured value corresponding to the event flag with the safety value, the trigger state corresponding to the event flag is obtained.

[0017] As a preferred embodiment, the triggering state corresponding to the event flag includes a triggered valve-closing state and a non-triggered valve-closing state, specifically:

[0018] If the measured value corresponding to the event flag is greater than the safety value corresponding to the event flag, then the triggering state of the event corresponding to the event flag is the triggering valve closing state;

[0019] If the measured value corresponding to the event flag is not greater than the safety value corresponding to the event flag, then the triggering state of the event corresponding to the event flag is the valve-closing state not triggered.

[0020] As a preferred embodiment, step S3, which involves setting corresponding management instructions based on each trigger state corresponding to the event flag, includes the following steps:

[0021] Based on the fact that the triggering state of the event corresponding to the event flag is the trigger valve closing state, a registration instruction is set;

[0022] Based on the fact that the triggering state of the event corresponding to the event flag is the trigger valve closing state, a cancellation command is set;

[0023] Based on the fact that the triggering state of the event corresponding to the event flag is the non-triggered valve-closing state, a registration instruction is set;

[0024] Based on the fact that the triggering state of the event corresponding to the event flag is the non-triggered valve-closing state, a cancellation command is set.

[0025] As a preferred embodiment, in step S4, the enabled instructions obtained by the client for each of the trigger states corresponding to the event flag include:

[0026] The event flag corresponds to an event whose trigger state is a valve-closing state, and the enable command is an enable valve-closing state.

[0027] The event flag corresponds to an event whose trigger state is a valve-closing state, and the enable command is a valve-closing prohibition command.

[0028] The event flag corresponds to an event whose triggering state is a non-triggered valve-closing state, and the enable command is to enable valve-closing.

[0029] The event flag corresponds to an event whose trigger state is "not triggered valve closing state" and whose enable command is "prohibit valve closing".

[0030] As a preferred embodiment, step S5, controlling the opening and closing state of the gas valve based on the trigger state, the management command, and the enable command, includes:

[0031] Based on the trigger state corresponding to the event flag and the acquired enable instructions from the client for each trigger state corresponding to the event flag, execute the registration instruction or the deregistration instruction.

[0032] As a preferred embodiment, the step of executing the registration instruction or the deregistration instruction based on the trigger state corresponding to the event flag and the acquired client enable instructions for each trigger state corresponding to the event flag includes:

[0033] If the enabling command is to enable valve closing and the triggering state is to trigger valve closing, then the registration command is executed to put the gas valve in the closed state;

[0034] If the enabling command is to enable valve closing and the triggering state is to not trigger valve closing, then the deregistration command is executed to put the gas valve in the open state.

[0035] If the enable command is to prohibit valve closure and the trigger state is to trigger valve closure, then the deregistration command is executed to put the gas valve in the open state.

[0036] If the enable command is to prohibit valve closure and the trigger state is to not trigger valve closure, then the deregistration command is executed to put the gas valve in the open state.

[0037] As a preferred embodiment, in step S1: the event flag is one or more of the following: gas flow rate, gas concentration, pressure, and temperature.

[0038] Secondly, the present invention provides a control system for the state of a gas valve, based on a gas valve state control method as described in the first aspect, comprising a setting module, an analysis module, an acquisition module, and a control module connected in sequence, wherein the setting module and the analysis module are both connected to the control module; the setting module is used to preset an event flag that triggers a change in the state of the gas valve; the analysis module analyzes the trigger state corresponding to the event flag based on the event flag; the setting module sets corresponding management instructions based on each trigger state corresponding to the event flag; the acquisition module is used to acquire enable instructions from the client for each trigger state corresponding to the event flag; and the control module controls the opening and closing state of the gas valve based on the trigger state, the management instructions, and the enable instructions.

[0039] As a preferred embodiment, the setting module is further configured to preset a security value for the event flag; the acquisition module is further configured to acquire the measured value of the event flag; and the analysis module is further configured to compare the measured value corresponding to the event flag with the security value to obtain the trigger state corresponding to the event flag.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] The control method and system, by combining trigger events and their event flags, client-side enable commands for trigger events, and management commands preset by the management terminal, control the opening and closing state of the gas valve. This allows the valve state to be flexibly adjusted according to actual needs after the gas meter is abnormally reset, rather than simply being closed. The gas valve state is maintained before and after the gas meter is abnormally reset, resulting in a better gas user experience, effectively reducing unnecessary inspection and maintenance work, and improving work efficiency.

[0042] Further or more detailed beneficial effects will be described in conjunction with specific embodiments in the detailed implementation. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 This is a flowchart of a method for controlling the state of a gas valve according to the present invention.

[0045] Figure 2This is a schematic diagram of a control system for the status of a gas valve as described in this invention. Detailed Implementation

[0046] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0047] In the following description, several embodiments of this application are provided. Different embodiments can be substituted or combined. Therefore, this application can also be considered to include all possible combinations of the same and / or different embodiments described. Thus, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then this application should also be considered to include embodiments containing one or more other possible combinations of A, B, C, and D, even if such embodiments are not explicitly described in the following text.

[0048] The following description provides examples and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made to the function and arrangement of the described elements without departing from the scope of this application. Various processes or components may be appropriately omitted, substituted, or added to the examples. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.

[0049] To facilitate a better understanding of the embodiments of this application, the application scenarios will be explained before providing a detailed explanation of the specific implementation methods.

[0050] The control methods and systems described in the various embodiments of this specification can be applied to the field of gas valve control and management. In these scenarios, the application of the control methods and systems aims to ensure that the gas valve status remains consistent before and after the gas meter is abnormally reset, so as to provide a high-quality user experience.

[0051] Example 1:

[0052] like Figure 1 As shown, this embodiment provides a method for controlling the state of a gas valve, including the following steps:

[0053] S1, Preset event flag to trigger a change in the state of the gas valve;

[0054] S2. Analyze the triggering state corresponding to the event flag based on the event flag;

[0055] S3. Set corresponding management instructions based on each trigger state corresponding to the event flag;

[0056] S4. Obtain the client's enable command for each of the trigger states corresponding to the event flag;

[0057] S5. Control the opening and closing state of the gas valve based on the trigger state, the management command, and the enable command.

[0058] It is understood that the event flag refers to a key factor that is highly likely to trigger a change in the gas valve status; that is, monitoring this factor can indicate whether a change in the gas valve status is necessary or has already occurred. The management command is a preset command set by the management terminal based on frequently occurring events to ensure the safety and stability of gas usage. The enabling command is a command set by the client based on actual events; the user can set this enabling command in real time on the client side, and the enabling command is obtained by reading the user's actions.

[0059] Specifically, this embodiment provides a preferred implementation of step S1, wherein the event flag is one or more of gas flow rate, gas concentration, pressure, and temperature.

[0060] As can be understood, gas flow rate refers to the volume or mass of gas passing through a pipe or device per unit time, indicating the flow of gas within a specific time period; gas concentration refers to the content or proportion of a specific component in gas, indicating the concentration level of that specific component; pressure refers to the force exerted by gas on a unit area, indicating the pressure exerted by gas molecules on the container wall or other objects; and temperature refers to the measure of the heat or molecular kinetic energy of gas, indicating the average thermal motion state of gas molecules.

[0061] Specifically, this embodiment provides a preferred implementation of step S2, wherein analyzing the triggering state corresponding to the event flag based on the event flag includes the following steps:

[0062] A preset safety value is set for the event flag;

[0063] Obtain the measured value of the event flag;

[0064] By comparing the measured value corresponding to the event flag with the safety value, the trigger state corresponding to the event flag is obtained.

[0065] It is understood that the safety value can be set in combination with national safety standards and actual needs, and the measured value of the event indicator can be obtained by installing flow sensors, gas concentration sensors, pressure sensors and temperature sensors on the gas pipeline.

[0066] Specifically, this embodiment provides a preferred implementation, wherein the triggering state corresponding to the event flag includes a triggered valve-closing state and a non-triggered valve-closing state, specifically:

[0067] If the measured value corresponding to the event flag is greater than the safety value corresponding to the event flag, then the triggering state of the event corresponding to the event flag is the triggering valve closing state;

[0068] If the measured value corresponding to the event flag is not greater than the safety value corresponding to the event flag, then the triggering state of the event corresponding to the event flag is the valve-closing state not triggered.

[0069] Specifically, this embodiment provides a preferred implementation of step S3, wherein setting corresponding management instructions based on each trigger state corresponding to the event flag includes the following steps:

[0070] Based on the fact that the triggering state of the event corresponding to the event flag is the trigger valve closing state, a registration instruction is set;

[0071] Based on the fact that the triggering state of the event corresponding to the event flag is the trigger valve closing state, a cancellation command is set;

[0072] Based on the fact that the triggering state of the event corresponding to the event flag is the non-triggered valve-closing state, a registration instruction is set;

[0073] Based on the fact that the triggering state of the event corresponding to the event flag is the non-triggered valve-closing state, a cancellation command is set.

[0074] Specifically, this embodiment provides a preferred implementation of step S4, wherein the enabled instructions obtained by the client for each of the trigger states corresponding to the event flag include:

[0075] The event flag corresponds to an event whose trigger state is a valve-closing state, and the enable command is an enable valve-closing state.

[0076] The event flag corresponds to an event whose trigger state is a valve-closing state, and the enable command is a valve-closing prohibition command.

[0077] The event flag corresponds to an event whose triggering state is a non-triggered valve-closing state, and the enable command is to enable valve-closing.

[0078] The event flag corresponds to an event whose trigger state is "not triggered valve closing state" and whose enable command is "prohibit valve closing".

[0079] Specifically, this embodiment provides a preferred implementation of step S5, wherein controlling the opening and closing state of the gas valve based on the trigger state, the management command, and the enable command includes:

[0080] Based on the trigger state corresponding to the event flag and the acquired enable instructions from the client for each trigger state corresponding to the event flag, execute the registration instruction or the deregistration instruction.

[0081] It is understandable that the management terminal has written management instructions for managing gas valves within the gas valve management system. Registering the management instruction means executing the instruction, and deregistering the management instruction means not executing the instruction or even deleting the instruction.

[0082] Specifically, this embodiment provides a preferred implementation, wherein the step of executing the registration instruction or the deregistration instruction based on the trigger state corresponding to the event flag and the acquired client enable instructions for each trigger state corresponding to the event flag includes:

[0083] If the enabling command is to enable valve closing and the triggering state is to trigger valve closing, then the registration command is executed to put the gas valve in the closed state;

[0084] If the enabling command is to enable valve closing and the triggering state is to not trigger valve closing, then the deregistration command is executed to put the gas valve in the open state.

[0085] If the enable command is to prohibit valve closure and the trigger state is to trigger valve closure, then the deregistration command is executed to put the gas valve in the open state.

[0086] If the enable command is to prohibit valve closure and the trigger state is to not trigger valve closure, then the deregistration command is executed to put the gas valve in the open state.

[0087] The control method combines trigger events and their event flags, client-side enable commands for trigger events, and management commands preset by the management terminal to control the opening and closing state of the gas valve. This allows the valve state to be flexibly adjusted according to actual needs after the gas meter is abnormally reset, rather than simply being closed. The gas valve state is maintained before and after the gas meter is abnormally reset, resulting in a better gas user experience, effectively reducing unnecessary inspection and maintenance work, and improving work efficiency.

[0088] Example 2:

[0089] like Figure 2As shown, this embodiment provides a control system for the state of a gas valve, based on a gas valve state control method as described in Embodiment 1. The system includes a setting module, an analysis module, an acquisition module, and a control module connected in sequence. Both the setting module and the analysis module are connected to the control module. The setting module is used to preset event flags that trigger changes in the state of the gas valve. The analysis module analyzes the trigger states corresponding to the event flags. The setting module sets corresponding management instructions based on each trigger state corresponding to the event flag. The acquisition module is used to acquire enable instructions from the client for each trigger state corresponding to the event flag. The control module controls the opening and closing states of the gas valve based on the trigger states, the management instructions, and the enable instructions.

[0090] Specifically, this embodiment provides a preferred implementation, wherein the setting module is further configured to preset a security value for the event flag; the acquisition module is further configured to acquire the measured value of the event flag; and the analysis module is further configured to compare the measured value corresponding to the event flag with the security value to obtain the trigger state corresponding to the event flag.

[0091] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0092] 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 relevant descriptions in other embodiments.

[0093] The foregoing description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Those skilled in the art will readily conceive of embodiments of this disclosure upon considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described herein. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.

Claims

1. A method for controlling the state of a gas valve, characterized in that, Includes the following steps: S1, Preset event flag to trigger a change in the state of the gas valve; S2. Analyze the triggering state corresponding to the event flag based on the event flag; S3. Set corresponding management instructions based on each trigger state corresponding to the event flag; S4. Obtain the client's enable command for each of the trigger states corresponding to the event flag; S5. Control the opening and closing state of the gas valve based on the trigger state, the management command, and the enable command; In step S3, setting corresponding management instructions based on each trigger state corresponding to the event flag includes the following steps: Based on the fact that the triggering state of the event corresponding to the event flag is the trigger valve closing state, a registration instruction is set; Based on the fact that the triggering state of the event corresponding to the event flag is the trigger valve closing state, a cancellation command is set; Based on the fact that the triggering state of the event corresponding to the event flag is the non-triggered valve-closing state, a registration instruction is set; Based on the fact that the triggering state of the event corresponding to the event flag is the non-triggered valve-closing state, a cancellation command is set; In step S4, the acquired client enable instructions for each of the trigger states corresponding to the event flag include: The event flag corresponds to an event whose trigger state is a valve-closing state, and the enable command is an enable valve-closing state. The event flag corresponds to an event whose trigger state is a valve-closing state, and the enable command is a valve-closing prohibition command. The event flag corresponds to an event whose triggering state is a non-triggered valve-closing state, and the enable command is to enable valve-closing. The event flag corresponds to an event whose triggering state is a non-triggered valve-closing state, and the enable command is to prohibit valve closure. In step S5, controlling the opening and closing state of the gas valve based on the trigger state, the management command, and the enable command includes: Based on the trigger state corresponding to the event flag and the acquired enable instructions from the client for each trigger state corresponding to the event flag, execute the registration instruction or the deregistration instruction; The step of executing the registration instruction or the deregistration instruction based on the trigger state corresponding to the event flag and the acquired client enable instructions for each trigger state corresponding to the event flag includes: If the enabling command is to enable valve closing and the triggering state is to trigger valve closing, then the registration command is executed to put the gas valve in the closed state; If the enabling command is to enable valve closing and the triggering state is to not trigger valve closing, then the deregistration command is executed to put the gas valve in the open state. If the enable command is to prohibit valve closure and the trigger state is to trigger valve closure, then the deregistration command is executed to put the gas valve in the open state. If the enable command is to prohibit valve closure and the trigger state is to not trigger valve closure, then the deregistration command is executed to put the gas valve in the open state.

2. The method for controlling the state of a gas valve according to claim 1, characterized in that, In step S2, analyzing the triggering state corresponding to the event flag based on the event flag includes the following steps: A preset safety value is set for the event flag; Obtain the measured value of the event flag; By comparing the measured value corresponding to the event flag with the safety value, the trigger state corresponding to the event flag is obtained.

3. The method for controlling the state of a gas valve according to claim 2, characterized in that, The triggering states corresponding to the event flag include a triggered valve-closing state and a non-triggered valve-closing state, specifically: If the measured value corresponding to the event flag is greater than the safety value corresponding to the event flag, then the triggering state of the event corresponding to the event flag is the triggering valve closing state; If the measured value corresponding to the event flag is not greater than the safety value corresponding to the event flag, then the triggering state of the event corresponding to the event flag is the valve-closing state not triggered.

4. A method for controlling the state of a gas valve according to any one of claims 1-3, characterized in that, In step S1: The event flag is one or more of the following: gas flow rate, gas concentration, pressure, and temperature.

5. A control system for the state of a gas valve, based on a control method for the state of a gas valve as described in any one of claims 1-4, characterized in that: It includes a setting module, an analysis module, an acquisition module, and a control module connected in sequence, wherein the setting module and the analysis module are both connected to the control module; The setting module is used to preset the event flag that triggers a change in the state of the gas valve; The analysis module analyzes the triggering state corresponding to the event flag based on the event flag; The setting module sets corresponding management instructions based on each trigger state corresponding to the event flag; The acquisition module is used to acquire the client's enable instructions for each of the trigger states corresponding to the event flag; The control module controls the opening and closing state of the gas valve based on the trigger state, the management command, and the enable command.

6. A control system for the status of a gas valve according to claim 5, characterized in that: The setting module is also used to preset a security value for the event flag; The acquisition module is also used to acquire the measured value of the event flag; The analysis module is also used to compare the measured value corresponding to the event flag with the safety value to obtain the trigger state corresponding to the event flag.

Citation Information

Patent Citations

  • Gas safety monitoring method based on composite Internet of things and Internet of things system

    CN107846446A

  • Fuel gas control method, system and equipment and storage medium

    CN113534705A

  • Gas pipeline monitoring and early warning system and method and storage medium

    CN115311823A