Summary of the invention
The embodiment of the present invention provides a kind of method of gas alarm, for solving the technical matters that prior art can not early warning, has realized gas concentration segmentation timesharing is reported to the police, and has played the technique effect of early warning.
A method for gas alarm, comprises step:
Detect and obtain the concentration parameter value that is used for characterizing a gas concentration; Judge that described concentration parameter value whether in the first preset range value, when described concentration parameter value is in described the first preset range value, generates a timing instruction; Carry out described timing instruction, obtain the first timing time, when described the first timing time is greater than the first Preset Time value, generate the first alarm command; Carry out described the first alarm command, to export the first alerting signal.
Preferably, described detection obtains the concentration parameter value that is used for characterizing a gas concentration, is specially:
According to preset time period, detect and obtain the concentration parameter value that is used for characterizing a gas concentration.
Preferably, in the described timing instruction of described execution, after obtaining the first timing time, described method also comprises: when described the first timing time is less than or equal to described the first Preset Time value, and described concentration parameter value not in described the first preset range value time, makes zero described the first timing time.
Preferably, at described the first alarm command of described execution, after exporting the first alerting signal, described method also comprises:
Judge that described concentration parameter value is whether in the second preset range value, when described concentration parameter value is in described the second preset range value, described the first timing time is made zero, and generate a timing instruction, wherein, in described the second preset range value, arbitrary concentration value is greater than arbitrary concentration value in described the first preset range value; Carry out described timing instruction, obtain the second timing time, when described the second timing time is greater than the second Preset Time value, generate the second alarm command, wherein, described the second Preset Time value is less than described the first Preset Time value; Carry out described the second alarm command, to export second alerting signal different from described the first alerting signal.
, comprising:
Detection module, for obtaining by detection for characterizing the concentration parameter value of a gas concentration; Controller, is connected with described detection module, for receiving described concentration parameter value, and judges that described concentration parameter value whether in the first preset range value, when described concentration parameter value is in described the first preset range value, generates a timing instruction; Counting module, is connected with controller, for carrying out described timing instruction, obtains the first timing time, when described the first timing time is greater than the first Preset Time value, generates the first alarm command; Alarm module, is connected with counting module, for receiving and carry out described the first alarm command, to export the first alerting signal
Preferably, described detection module, for described gas concentration being detected according to preset time period, obtains described concentration parameter value.
Preferably, at described counting module, carry out described timing instruction, while obtaining the first timing time, when described the first timing time is less than or equal to described the first Preset Time value, and described concentration parameter value not in described the first preset range value time, makes zero described the first timing time.
Preferably, described detection module specifically comprises:
Sensor, for obtaining first analog signal amplifier corresponding with described gas concentration, is connected with described sensor, for amplifying described the first simulating signal, obtains the second simulating signal; Analog-to-digital conversion device, is connected with described amplifier, for described the second simulating signal being converted into the concentration parameter value that is used for characterizing a gas concentration of digital signals format.
Preferably, described gas warning system also comprises:
One display screen, is connected with described controller, for showing described concentration parameter value.
The one or more technical schemes that provide in the embodiment of the present application, at least have following technique effect or advantage:
For warning device has increased counting module, the counting instruction that this module can be based in controller, generates a gate time, by the Preset Time value of more described counting module and the size of gate time, and then judges whether alarm module generates alerting signal.Preset Time value in described counting module is divided into some different values according to gas concentration to the extent of injury of human body.Solved and in prior art, just reached a certain setting value and just carry out actuation of an alarm, the technical matters that cannot prevent.After adopting the technical scheme of the embodiment of the present invention, alarm can segmentation timesharing carry out alarm operation, thereby plays forewarning function, and reminding user prevents in time.
And then because the present invention detects gas concentration in real time, and the different time that segmentation timesharing is accumulated according to gas with various concentration and described gas with various concentration is reported to the police respectively.And while reporting to the police, adopt the alarm sound of different frequency to report to the police according to the different time intervals, to distinguish alarm condition, make user get more information about the height of current region of living in gas concentration, and whether the state of reporting to the police is urgent.
Embodiment
The embodiment of the present invention provides a kind of method of gas alarm, solved in prior art cannot warning function technical matters, in the Real-Time Monitoring gas concentration, increase cumulative time judgement, by the different time intervals, send alarm sound, to reach the technique effect of early warning simultaneously.
Technical scheme in the embodiment of the present invention is for addressing the above problem, and general thought is as follows:
Detect and obtain the concentration parameter value that is used for characterizing a gas concentration; Judge that described concentration parameter value whether in the first preset range value, when described concentration parameter value is in described the first preset range value, generates a timing instruction; Carry out described timing instruction, obtain the first timing time, when described the first timing time is greater than the first Preset Time value, generate the first alarm command; Carry out described the first alarm command, to export the first alerting signal.
In order better to understand technique scheme, below in conjunction with Figure of description and concrete embodiment, technique scheme is described in detail.
A kind of method of gas alarm is provided in the embodiment of the present invention, and the idiographic flow of described method is referring to Fig. 1, and as described in Figure 1, the method comprises:
Step S101: detect and obtain the concentration parameter value that is used for characterizing a gas concentration.
In the embodiment of the present application, the specific implementation process of step 101 is: according to preset time period, detect the first concentration of CO in Air, and described the first concentration detecting can be converted to electric signal.Wherein, described preset time period can be one minute, and detection module can be specifically electrochemical sensor, half conductive gas sensor or catalytic combustion type gas sensor etc.
Described carbon monoxide alarm is that the concentration by sensor sensing CO in Air gas is transformed into electric signal, and the size of electric signal is relevant with the concentration of carbon monoxide.Carbon monoxide alarm is classified by used sensor, generally be divided into semiconductor carbon monoxide alarm, galvanochemistry carbon monoxide alarm, Infrared Carbon Monoxide Detection instrument etc., from measuring sensitivity, precision, stability, the interference of anti-intersection gas, what performance was best is Infrared Carbon Monoxide Detection instrument, but more expensive, be applicable to laboratory or industrial application, civilian semiconductor carbon monoxide alarm and the galvanochemistry carbon monoxide alarm of being generally.
Galvanochemistry carbon monoxide alarm adopts zero-power electrochemical carbon monoxide sensor as sensitive element, mostly adopt the constant potentiometric electrolysis principle in electrochemical process, utilize constant potentiometric electrolysis to carry out redox electrochemical reaction, detect dissufion current and just can draw the concentration of CO gas, and have good linear measurement range and very high selectivity, anti-intersection gas interference performance is also very strong.Electrochemical carbon monoxide sensor is zero-power type, without heating, is applicable to very much coordinating the testing circuit of low-power consumption to adopt powered battery, makes carbonomonoxide concentration table, portable carbon monoxide alarm etc.Electrochemical carbon monoxide sensor long term exposure can affect its sensitivity and life-span in the pungency solvents such as oxygenless gas sample, alcohol, paint, even can lose efficacy.The aerial use of electrochemical carbon monoxide sensor is generally 3 years, also has 5 years, and longer reach more than 8 years.
After described detection acquisition is used for characterizing the concentration parameter value of a gas concentration, the embodiment of the present application enters step 102:
Judge that described concentration parameter value whether in the first preset range value, when described concentration parameter value is in described the first preset range value, generates a timing instruction;
In embodiments of the present invention, concrete, a default preset concentration parameter area, when the corresponding described concentration parameter value of concentration parameter information that detection module detects is among described preset concentration parameter area, illustrate that the carbon monoxide in surrounding environment exceeds standard, and the corresponding different degree that exceeds standard, counting module generates a counting instruction.Described preset concentration parameter area can be between 100ppm and 200ppm be divided arbitrarily, and the predeterminable concentration parameter scope that is greater than 1 any number.
For example, setting 100ppm ~ 150ppm is the first preset concentration parameter area, setting 150ppm ~ 180ppm is the second preset concentration parameter area, and setting 180ppm ~ 200ppm is the 3rd preset concentration parameter area, and setting and being greater than 200ppm is the 3rd preset concentration parameter area.
After generating described counting instruction based on step S102, the embodiment of the present application enters step S103: carry out described timing instruction, obtain the first timing time, when described the first timing time is greater than the first Preset Time value, generate the first alarm command.
Wherein Preset Time value is corresponding to different preset concentration parameter area values.For example, the first Preset Time value in the corresponding counting module of the first preset concentration parameter area value in controller, the second Preset Time value in the corresponding counting module of the second preset concentration parameter area value in controller, by that analogy.
Further, in the described timing instruction of described execution, after obtaining the first timing time, described method also comprises: when described the first timing time is less than or equal to described the first Preset Time value, and described concentration parameter value not in described the first preset range value time, makes zero described the first timing time.
In the embodiment of the present application, the specific implementation process of step 103 is: when concentration value that controller receives is in preset concentration value range, controller generates counting instruction and also gives counting module and carry out the counting to the time.For example, if detection module at a time detects CO in Air content, be 120ppm, between 100ppm ~ 150ppm, meet the first preset concentration parameter area, this Time Controller generates a counting instruction, and counting module is based on described counting instruction, and the gate time of acquisition is 1.When airborne carbon monoxide content constantly detected at next, be 130ppm, still meet the first preset concentration parameter area, this Time Controller generates another counting instruction, and counting module is based on described counting instruction, and the gate time of acquisition is 2.If the first Preset Time in the counting module of corresponding the first preset concentration value range is 5,, when described gate time is accumulated to 5, generate alarm command.If when gate time be accumulated to be less than 5 sometime time, next constantly detects airborne carbon monoxide content and no longer meets the first preset concentration value range, remove the count value in counting module, when again carbon monoxide content is detected, re-start counting.
At counter, generate after alarm command, enter step S104: carry out described the first alarm command, to export the first alerting signal.
Further, based on described counting instruction, obtain a gate time, and be greater than the first Preset Time value at described gate time, while generating the first alarm command, export the first alerting signal; At described gate time, be greater than the second Preset Time value different from the first Preset Time value, while generating second alarm command different from the first alarm command, export second alerting signal different from the first alerting signal.Wherein, alarm module is specifically as follows hummer, and alerting signal can be the voice signal of different frequency.
For example, when gate time is greater than the first Preset Time value, generate the first alarm command, the chimes of doom that output frequency is 1KHz, when gate time is greater than the second Preset Time value, generates the second alarm command, the chimes of doom that output frequency is 10KHz.
A kind of gas warning system is also provided in the embodiment of the present invention, and described gas warning system, referring to Fig. 2, specifically can comprise: detection module 201, controller 202, counting module 203 and alarm module 204.Counting module 203 in Fig. 2 is to be arranged on described gas warning system inside to describe.Preferably, the described gas warning system in the embodiment of the present invention can be carbon monoxide alarm.Described gas warning system can also comprise vent fan 205 and display screen 206.
Detection module 201 can be for obtaining by detection for characterizing the concentration parameter value of a gas concentration.
Detection module 201 can be for detection of the first concentration of CO in Air.In the embodiment of the present invention, detection module 201 can be sensor, for example, can be semiconductor transducer, electrochemical sensor, infrared sensor, catalytic combustion type gas sensor etc.
Detection module 201 can detect the first concentration of CO in Air, and described the first concentration detecting can be converted to electric signal.In the embodiment of the present invention, detection module 201 can be specifically electrochemical sensor, half conductive gas sensor or catalytic combustion type gas sensor etc.
Controller 202 is connected with described detection module 201, can be for receiving described concentration parameter value, and judge that described concentration parameter value whether in the first preset range value, when described concentration parameter value is in described the first preset range value, generates a timing instruction.
Controller 202 can receive the described concentration parameter value of detection module 201, concrete, and controller 202 can initiatively obtain described concentration parameter value from detection module 201, or detection module 201 can initiatively transfer to controller 202 by described concentration parameter value.
Counting module 203 is connected with described controller 202, can obtain the first timing time for carrying out described timing instruction, when described the first timing time is greater than the first Preset Time value, generates the first alarm command.
Wherein Preset Time value is different numerical value corresponding to different preset concentration value ranges.For example, the first preset value in the corresponding counting module of the first preset concentration value range in controller, the second preset value in the corresponding counting module of the second preset concentration value range in controller, by that analogy.
Further, at described counting module 203, carry out described timing instruction, while obtaining the first timing time, when described the first timing time is less than or equal to described the first Preset Time value, and described concentration parameter value not in described the first preset range value time, makes zero described the first timing time.
Alarm module 204 is connected with counting module 203, for receiving and carry out described alarm command, with output alarm signal.
Wherein, alarm module 204 can be hummer, and alerting signal can be the voice signal of different frequency.Concrete hummer can be divided into two kinds, a kind ofly can pass through DC voltage control, and internal drive circuits produces vibration driving voltage, sends the fixing sound of tone.Another kind of as loudspeaker, can directly drive with the voltage changing.Change frequency and can control tone.Hummer is to utilize to its Inside coil electric current of make-and-break constantly, causes the thin vibration of membrane of hummer, thereby produces the vibration of air and sound, and different frequencies can be controlled and send different tones.Being connected with the different level of output pin output height of hummer, as long as control the delay time of low and high level, will produce different tones.
Further, based on described counting instruction, obtain a gate time, and be greater than the first Preset Time value at described gate time, while generating the first alarm command, export the first alerting signal; At described gate time, be greater than the second Preset Time value different from the first Preset Time value, while generating second alarm command different from the first alarm command, export second alerting signal different from the first alerting signal.Wherein, alarm module 204 is specifically as follows hummer, and alerting signal can be the voice signal of different frequency.
For example, when gate time is greater than the first Preset Time value, generate the first alarm command, the chimes of doom that output frequency is 1KHz, when gate time is greater than the second Preset Time value, generates the second alarm command, the chimes of doom that output frequency is 10KHz.
Vent fan 205 is connected with described controller 202, can be for after the exhaust instruction receiving from described controller 202, by carrying out described exhaust instruction, so that the gas in space, described gas alarm place is discharged.
Controller 202 is after generating described alarm command, can generate an exhaust instruction, or can generate described exhaust instruction when generating described alarm command, and described exhaust instruction can be sent to vent fan 205, to make vent fan 205 in time the gas in space, described gas warning system place be discharged, avoid in described gas warning system because residual too much gas breaks down.
Display screen 206 is connected with described controller, can be for showing described concentration parameter value.
When detection module 201 detects, obtain after described concentration parameter value, can make display screen 206 that described concentration parameter value is shown, for user, check.
The one or more technical schemes that provide in the embodiment of the present application, at least have following technique effect or advantage:
For warning device has increased counting module, the counting instruction that this module can be based in controller, generates a gate time, by the Preset Time value of more described counting module and the size of gate time, and then judges whether alarm module generates alerting signal.Preset Time value in described counting module is divided into some different values according to gas concentration to the extent of injury of human body.Solved and in prior art, just reached a certain setting value and just carry out actuation of an alarm, the technical matters that cannot prevent.After adopting the technical scheme of the embodiment of the present invention, alarm can segmentation timesharing carry out alarm operation, thereby plays forewarning function, and reminding user prevents in time.
And then because the present invention detects gas concentration in real time, and the different time that segmentation timesharing is accumulated according to gas with various concentration and described gas with various concentration is reported to the police respectively.And while reporting to the police, adopt the alarm sound of different frequency to report to the police according to the different time intervals, to distinguish alarm condition, make user get more information about the height of current region of living in gas concentration, and whether the state of reporting to the police is urgent.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.