Disclosure of Invention
In order to solve the technical problems that in the prior art, a circuit is adopted to transmit information between an alarm and a cut-off valve controller, so that the response of the alarm is relatively slow in the use process, and the power consumption of a gas alarm in the use process is also relatively high, the application provides a control method and a control system of the gas alarm.
In order to achieve the purpose, the control method of the gas alarm adopts the following technical scheme:
a control method of a gas alarm comprises the following steps:
the matching alarm and the cut-off valve controller form a corresponding relation;
the alarm is powered on according to a first period, the cut-off valve controller is powered on according to a second period, and the first period and the second period are not overlapped;
the alarm judges whether gas leaks;
when gas leakage is judged, the alarm is continuously electrified to form a continuous electrifying signal;
the block valve controller closes the valve according to the continuous power-on signal and forms a valve closing signal;
and the alarm is powered on after being recovered to a first period according to the valve closing signal, and the block valve controller is powered on after being recovered to a second period.
By adopting the technical scheme, the alarm and the cut-off valve controller are linked to form a corresponding relation, then the alarm is powered on, the cut-off valve controller is also operated, the power-on periods of the alarm and the cut-off valve controller are not overlapped, when the alarm detects that gas leaks, the alarm can continuously carry out the power-on operation, after the cut-off valve controller receives the continuous power-on signal of the alarm, the cut-off valve controller can close the gas valve and simultaneously form a feedback for closing the valve, the feedback is fed back to the alarm, and after the alarm receives the feedback signal of the cut-off valve controller, the alarm and the cut-off valve controller can be powered on according to a normal period. The gas leakage is detected through the alarm, when the gas leakage is found, the alarm can be continuously powered on, the cut-off valve controller detects the rapid closing valve after detecting, and the feedback is carried out, so that not only is the rapid reaction carried out, the gas leakage can be prevented, but also the power consumption of the equipment is reduced by periodically powering on.
Optionally, after the power-up without coincidence between the first period and the second period, the method includes:
setting a communication period of the cut-off valve controller to form a cut-off valve controller communication period;
according to the communication period of the block valve controller, the block valve controller is continuously electrified until communication is established with the alarm;
the alarm acquires state information sent by the block valve controller;
according to the state information, the alarm forms feedback information;
and the cut-off valve controller forms corresponding processing operation according to the feedback information.
By adopting the technical scheme, when the alarm does not detect gas leakage, the cut-off valve controller can be communicated with the alarm once according to the set communication period, after the communication is completed, the alarm acquires the state information of the cut-off valve controller, meanwhile, the alarm can form feedback information, and the cut-off valve controller can complete corresponding processing operation according to the feedback information. Therefore, whether the equipment works normally or not can be regularly monitored by regularly powering on the block valve controller and establishing communication between the block valve controller and the alarm, and the equipment is prevented from failing to be found.
Optionally, after the power-up without coincidence between the first period and the second period, the method includes:
setting a communication cycle of the alarm to form the communication cycle of the alarm;
according to the communication period of the alarm, the alarm is continuously electrified until communication is established with the cut-off valve controller;
the cutoff valve controller acquires state information sent by the alarm;
according to the state information, the cut-off valve controller forms feedback information;
and the alarm forms corresponding processing operation according to the feedback information.
By adopting the technical scheme, when no gas leaks, the alarm can carry out continuous power-on operation according to a set communication cycle, after the cut-off valve controller detects a continuous power-on signal of the alarm, the state information of the alarm is obtained, after the state information is obtained, the cut-off valve controller can form feedback information, and the alarm completes related processing operation according to the feedback information. Therefore, communication is established between the alarm and the cut-off valve controller through the periodic continuous electrification of the alarm, whether the cut-off valve controller and the alarm work normally or not can be judged, and equipment failure caused by the occurrence of faults is avoided.
Optionally, the closing the valve and forming a valve closing signal according to the continuous power-on signal by the block valve controller includes:
the cut-off valve controller records the working time of closing the valve to form the working time of closing the valve;
comparing the valve closing working time with the preset valve closing working time;
when the valve closing working time is longer than or equal to the preset valve closing working time, the alarm is powered on after being recovered to the first period, and the cut-off valve controller is powered on after being recovered to the second period;
and when the valve closing working time is shorter than the preset valve closing working time, the stop valve controller forms a valve closing signal.
By adopting the technical scheme, the cut-off valve controller can perform valve closing operation after receiving the continuous power-on signal, the working time length can be recorded when the valve closing operation is performed, and the alarm and the cut-off valve controller can automatically recover to a normal period to perform the power-on operation after the working time length is greater than the preset working time length. Therefore, by setting the preset working time, the long-time working of the cut-off valve controller is avoided, and the consumption of energy consumption is reduced.
Optionally, the method further comprises the following steps:
and when a control instruction is received, the alarm is continuously powered on to form a continuous power-on signal.
By adopting the technical scheme, if an instruction is given to the alarm from the outside, the alarm can be continuously powered on after receiving the instruction, the stop valve controller can be used for continuously powering on the alarm and closing the valve after receiving the continuous powering on signal of the alarm, then the valve closing signal is formed and fed back to the alarm, the alarm can be recovered to a normal period to be powered on after receiving the signal, and meanwhile, the stop valve controller can also be recovered to the normal period to be powered on. Therefore, the valve closing operation can be normally carried out when people think that the valve closing operation is carried out, and the valve closing operation can be carried out through manual operation.
Optionally, the method further comprises the following steps:
judging whether the block valve controller fails or not;
when the cutoff valve controller fails, the cutoff valve controller is continuously electrified to form a cutoff valve controller continuous electrifying signal;
the alarm acquires the continuous power-on signal of the block valve controller and sends an alarm;
by adopting the technical scheme, the cut-off valve controller can judge whether the cut-off valve controller breaks down, when the cut-off valve controller breaks down, the cut-off valve controller can be continuously powered on, and the alarm sends an alarm signal after receiving the continuous power-on signal of the cut-off valve controller to remind people of overhauling. Therefore, the existence of the fault can be found through self judgment of the cut-off valve controller, and the alarm is sent to enable people to overhaul, so that the alarm can work normally.
In order to achieve the above object, another aspect of the present application provides a control system of a gas alarm, which adopts the following technical solutions:
a control system for a gas alarm comprising:
the system matching module is used for matching the alarm and the cut-off valve controller to form a corresponding relation;
the period power-on module is used for powering on the alarm according to a first period, the cut-off valve controller is powered on according to a second period, and the first period and the second period are not overlapped;
the leakage detection module is used for judging whether gas leaks;
the alarm continuous power-on module is used for continuously powering on the alarm to form a continuous power-on signal;
the valve closing module is used for closing the valve by the cut-off valve controller according to the continuous power-on signal and forming a valve closing signal;
and the power-on recovery module is used for recovering the alarm to a first period for power-on according to the valve closing signal, and recovering the cut-off valve controller to a second period for power-on.
By adopting the technical scheme, the system matching module matches the alarm with the cut-off valve controller, after the matching is successful, the periodic power-on module respectively powers on the cut-off valve controller and the alarm according to a non-overlapping period, meanwhile, the leakage detection module can detect that gas leakage can be detected for the environment, when gas leakage is detected, the alarm continuously powers on the module, when the valve closing module detects that the alarm continuously powers on the module, the gas valve can be closed, and meanwhile, valve closing information is fed back. When the alarm detects the valve closing feedback, the power-on recovery module can recover the alarm and the cut-off valve controller to a normal period to carry out power-on. Through the mutual cooperation of each module, coordinate each other like this, can be when detecting that there is gas leakage, can be quick make the reaction of closing the gas valve to need not be in the state of lasting power-on all the time, reduced the consumption of electric quantity.
Optionally, the periodic power-on module includes:
the communication period setting submodule is used for setting the communication period of the cut-off valve controller to form the communication period of the cut-off valve controller;
the cut-off valve controller power-on module is used for continuously powering on the cut-off valve controller until communication is established with the alarm;
the state information acquisition submodule is used for acquiring the state information sent by the cut-off valve controller by the alarm;
the feedback information generation submodule is used for forming feedback information by the alarm according to the state information;
and the cutoff valve controller working submodule is used for forming corresponding processing operation by the cutoff valve controller according to the feedback information.
By adopting the technical scheme, the communication period setting submodule sets a fixed period, the electronic module on the cut-off valve controller can continuously carry out power-on and communication connection between the flags when the set period value is reached, after the connection is established, the state information acquisition submodule can acquire the state information of the cut-off valve controller, the feedback information generation submodule can generate feedback information after the state information is acquired, and the cut-off valve controller working submodule can carry out corresponding operation according to the feedback information. Therefore, communication connection is established at a certain period, whether a fault occurs can be detected at any time, and safety is guaranteed.
Optionally, the valve closing module comprises:
the working duration recording submodule is used for recording the working duration of closing the valve by the cut-off valve controller to form the working duration of closing the valve;
the time comparison submodule is used for comparing the valve closing working time with the preset valve closing working time;
the power-on recovery module is used for recovering the alarm to a first cycle to be powered on and recovering the cut-off valve controller to a second cycle to be powered on;
and the valve closing signal generation submodule is used for forming a valve closing signal by the cut-off valve controller.
By adopting the technical scheme, the working time length recording submodule is used for recording the working time length of the cut-off valve controller, then the time comparison submodule is used for comparing the working time of the cut-off valve controller with the preset working time, and if the working time is longer than the preset working time, the power-on recovery module can recover the power-on period of the alarm and the cut-off valve controller. Therefore, when the cut-off valve controller works for a long time, the cut-off valve controller can be normally powered on in a normal period.
In summary, the present application has the following beneficial technical effects:
firstly, establishing a relation between an alarm and a cut-off valve controller, simultaneously judging whether gas leaks in the environment through the alarm, when the gas leaks, continuously powering on the alarm, after the cut-off valve controller receives a continuous power-on signal of the alarm, closing a gas valve through the cut-off valve controller, generating a valve closing signal, and when the alarm receives the valve closing signal, recovering to normal cycle power-on to power on, and simultaneously recovering to normal cycle power-on to power on the cut-off valve controller. The gas leakage can be ensured to react quickly, and the energy consumption of the equipment is reduced.
Detailed Description
The present application is described in further detail below with reference to figures 1-5.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses and applies a control method of a gas alarm with reference to fig. 1, which comprises the following steps:
s100, forming a corresponding relation between the matching alarm and the cut-off valve controller;
before working, the alarm and the cut-off valve controller are connected.
In this embodiment, the alarm is continuously powered on, the cut-off valve controller receives a continuous power-on signal of the alarm, the alarm is successfully connected with the cut-off valve controller, and the alarm can give an alarm at the moment.
S200, powering on an alarm according to a first period, powering on a cut-off valve controller according to a second period, and powering on the first period and the second period without superposition;
in this embodiment, the first period is 10s middle power-on for 40ms, and may also be other periods, such as: the power is supplied for 20ms in 10s and 60ms in 10s, but the power needs to be supplied for 20-100ms in 10s, and the selection is carried out according to the actual situation.
In this embodiment, the second cycle is 70ms of power-on in 10s, and may also be other cycles, such as: 60ms of 10s and 90ms of 10s, but the selection needs to be made in 60-100ms of 10s, and the selection is made according to the actual situation.
S300, judging whether gas leaks by an alarm;
here, the gas leakage means that it is determined that there is gas leakage when the toxic gas or combustible gas in the environment is concentrated to a predetermined concentration.
S400, when gas leakage is judged, the alarm is continuously powered on to form a continuous power-on signal;
s500, the cut-off valve controller closes the valve according to the continuous power-on signal and forms a valve closing signal;
when the controller of the cut-off valve controller detects the continuous power-on signal of the alarm, the cut-off valve controller is closed, and a valve closing signal is formed and fed back to the alarm.
S600, the alarm is powered on after being recovered to a first period according to the valve closing signal, and the stop valve controller is powered on after being recovered to a second period.
When the cut-off valve controller cuts off the gas pipeline, the alarm and the cut-off valve controller recover to respective power-on cycles to carry out power-on.
By adopting the technical scheme, the alarm is powered on, the cut-off valve controller is also operated, the power-on periods of the alarm and the cut-off valve controller are not overlapped, when the alarm detects that gas leaks, the alarm can continuously carry out the power-on operation, when the cut-off valve controller receives a continuous power-on signal of the alarm, the cut-off valve controller can close the gas valve and simultaneously form a feedback of closing the valve, and when the alarm receives a feedback signal of the cut-off valve controller, the alarm and the cut-off valve controller can be powered on according to a normal period. When finding gas leakage like this, the alarm can last to be gone up electrically, cuts off valve controller and detects the back and close the valve rapidly to the feedback, so not only quick reaction carries out, can prevent gaseous leakage, and the power consumption that has reduced equipment is gone up electrically periodically.
In one implementation manner of this embodiment, referring to fig. 2, after the step S200 of powering up the first period and the second period without superposition, the method includes:
s210, setting a communication period of the cut-off valve controller to form a communication period of the cut-off valve controller;
in this embodiment, the communication cycle of the shut-off valve controller is 23 hours, and other times may be used, such as: 22 hours, 24 hours, etc., and the selection is made according to the actual situation.
S220, according to the communication period of the cut-off valve controller, the cut-off valve controller is continuously electrified until communication with the alarm is established;
when the communication period is reached, the cut-off valve controller can be continuously electrified and is communicated with the alarm once.
S230, the alarm acquires state information sent by the block valve controller;
after the communication connection is established, the alarm can acquire the state information of the stop valve controller and judge whether the stop valve controller can work normally.
S240, according to the state information, the alarm forms feedback information;
after the state information of the cut-off valve controller is obtained, the alarm can form feedback information which is fed back to the cut-off valve controller;
and S250, forming corresponding processing operation by the cut-off valve controller according to the feedback information.
And after receiving the feedback information, the cut-off valve controller is restored to the normal power-on period to carry out power-on, and meanwhile, the alarm is also restored to the normal period to carry out power-on.
In this embodiment, the alarm can be powered on continuously by setting the period of the alarm when the alarm reaches the communication period. The latter procedure is the same as before, and is not at this point cumbersome.
By adopting the technical scheme, when the alarm does not detect gas leakage, the cut-off valve controller can be communicated with the alarm once according to the set communication period, after the communication is completed, the alarm acquires the state information of the cut-off valve controller, meanwhile, the alarm can form feedback information, and the cut-off valve controller can complete corresponding processing operation according to the feedback information. Therefore, whether the equipment works normally or not can be regularly monitored by continuously electrifying the block valve controller regularly and establishing communication between the block valve controller and the alarm, and the condition that the equipment cannot be found after the equipment breaks down is prevented.
In one implementation of this embodiment, referring to fig. 3, the step S500 of closing the valve and forming the valve-closing signal according to the continuous power-on signal by the block valve controller includes:
s510, recording the working time of closing the valve by the cut-off valve controller to form the working time of closing the valve;
when the cut-off valve controller carries out valve closing operation again, the working time length of valve closing can be recorded.
S520, comparing the valve closing working time with a preset valve closing working time;
in this embodiment, the preset valve closing operation time is 1 minute, and other times may also be used, such as: 2 minutes, 3 minutes, etc., and the concrete conditions are selected according to actual conditions.
S530, when the valve closing working time is longer than or equal to the preset valve closing working time, the alarm is restored to the first period to be electrified, and the block valve controller is restored to the second period to be electrified;
when the working time of the valve closing is longer than or equal to the preset working time of the valve closing, the alarm and the cut-off valve controller can recover to respective power-on periods to carry out power-on.
And S540, when the valve closing working time is shorter than the preset valve closing working time, the stop valve controller forms a valve closing signal.
By adopting the technical scheme, the cut-off valve controller can carry out valve closing operation after receiving the continuous power-on signal, the working time length can be recorded during the valve closing operation, and when the working time length is longer than the preset working time length, the alarm and the cut-off valve controller can automatically recover to the normal period to carry out the power-on operation. Therefore, by setting the preset working time, the long-time working of the cutoff valve controller is avoided, and the consumption of energy consumption is reduced.
In this embodiment, the method further includes the following steps:
when the control instruction is received, the alarm is continuously powered on to form a continuous power-on signal.
In this embodiment, the control instruction includes: voice commands, light signal commands, etc.
When the valve is artificially closed, the alarm can be continuously electrified after receiving a valve closing instruction, and the cut-off valve controller can be used for closing the valve after receiving a continuous electrifying signal of the alarm.
By adopting the technical scheme, if an instruction is given to the alarm from the outside, the alarm can be continuously powered on after receiving the instruction, the stop valve controller can be used for carrying out valve closing operation after receiving a continuous power-on signal of the alarm, then a valve closing signal is formed and fed back to the alarm, the alarm can be recovered to a normal period to be powered on after receiving the signal, and meanwhile, the stop valve controller can also be recovered to the normal period to be powered on. Therefore, the valve closing operation can be normally carried out when people think that the valve closing operation is carried out, and the valve closing operation can be carried out through manual operation.
In one implementation manner of this embodiment, the method further includes:
judging whether the block valve controller is in fault;
and detecting whether the cut-off valve controller can work normally or not, and whether a fault occurs or not.
When the cutoff valve controller fails, the cutoff valve controller is continuously electrified to form a continuous electrification signal of the cutoff valve controller;
if the shut-off valve controller detects a fault, the shut-off valve controller will continue to be powered up
The alarm acquires a continuous power-on signal of the cut-off valve controller and sends an alarm;
by adopting the technical scheme, the existence of the fault can be found through self-judgment of the cut-off valve controller, and the alarm is sent to allow people to overhaul, so that the alarm can work normally.
Referring to fig. 4, an embodiment of the present invention further provides a control system for a gas alarm, including: the system comprises a system matching module 1, a periodic power-on module 2, a leakage detection module 3, an alarm continuous power-on module 4, a valve closing module 5 and a power-on recovery module 6.
The system matching module 1 is used for matching the alarm and the cut-off valve controller to form a corresponding relation; the periodic power-on module 2 is used for powering on the alarm according to a first period, and powering on the cut-off valve controller according to a second period, wherein the first period and the second period are not overlapped; the leakage detection module 3 is used for judging whether gas leaks; the alarm continuous power-on module 4 is used for continuously powering on the alarm to form a continuous power-on signal; the valve closing module 5 is used for closing the valve by the cut-off valve controller according to the continuous power-on signal and forming a valve closing signal; and the power-on recovery module 6 is used for recovering the alarm to the first period for power-on according to the valve closing signal, and recovering the cut-off valve controller to the second period for power-on.
By adopting the technical scheme, the system matching module 1 matches the alarm with the cut-off valve controller, after the matching is successful, the periodic power-on module 2 respectively powers on the cut-off valve controller and the alarm according to a non-overlapping period, meanwhile, the leakage detection module 3 can detect that gas leakage can be detected for the environment, when gas leakage is detected, the alarm continuously powers on the module 4, and when the valve closing module 5 detects that the alarm continuously powers on the module 4, the gas valve can be closed, and meanwhile, valve closing information is fed back. When the alarm detects the valve closing feedback, the power-on recovery module 6 recovers the alarm and the cut-off valve controller to a normal period to carry out power-on. Through the mutual cooperation of each module, coordinate each other like this, can be when detecting that there is gas leakage, can be quick make the reaction of closing the gas valve to need not be in the state of lasting power-on all the time, reduced the consumption of electric quantity.
In one implementation of this embodiment, referring to fig. 5, the periodic power-on module 2 includes: the system comprises a communication period setting submodule 21, an upper submodule 22 of the cut-off valve controller, a state information obtaining submodule 23, a feedback information generating submodule 24 and a working submodule 25 of the cut-off valve controller.
The communication period setting submodule 21 is used for setting a communication period of the cut-off valve controller to form a communication period of the cut-off valve controller; the cut-off valve controller power-on module 22 is used for continuously powering on the cut-off valve controller until the cut-off valve controller is communicated with the alarm; the state information acquisition submodule 23 is used for acquiring the state information sent by the cut-off valve controller by the alarm; a feedback information generation submodule 24, configured to, according to the state information, form feedback information by the alarm; and the cutoff valve controller working submodule 25 is used for forming corresponding processing operation by the cutoff valve controller according to the feedback information.
By adopting the technical scheme, the communication period setting submodule 21 sets a fixed period, the electronic module 22 on the stop valve controller can continuously carry out communication connection between power-on and the flags when the set period value is reached, after the connection is established, the state information acquisition submodule 23 can acquire the state information of the stop valve controller, and after the state information is acquired, the feedback information generation submodule 24 can generate feedback information, and the stop valve controller working submodule 25 can carry out corresponding operation according to the feedback information. Therefore, communication connection is established at a certain period, whether a fault occurs can be detected at any time, and safety is guaranteed.
In one embodiment of this embodiment, referring to fig. 5, the valve closing module 5 includes: the working time length recording submodule 51, the time ratio submodule 52, the power-on recovery submodule 53 and the valve closing signal generating submodule 54.
The working duration recording submodule 51 is used for recording the working duration of closing the valve by the cut-off valve controller to form the working duration of closing the valve; the time comparison submodule 52 is configured to compare the valve closing operation duration with a preset valve closing operation duration; the power-on recovery submodule 53 is used for recovering the alarm to the first cycle for power-on, and recovering the cut-off valve controller to the second cycle for power-on; a valve-off signal generation submodule 54 is provided for disabling the valve controller to generate the valve-off signal.
By adopting the technical scheme, the working time length recording submodule 51 is used for recording the working time length of the cut-off valve controller, then the working time of the cut-off valve controller is compared with the preset working time by the time comparison submodule 52, and if the working time is greater than the preset working time, the electrifying recovery submodule 53 can recover the electrifying cycles of the alarm and the cut-off valve controller. Therefore, when the cut-off valve controller works for a long time, the cut-off valve controller can be normally powered on in a normal period.
The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.