Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
When dust, mosquitoes and the like enter the labyrinth to cause the dirt of the labyrinth, the false alarm of the product can be caused or the service life of the product can be shortened. The invention adopts an increment compensation method to continuously update the total increment of the calibration smoke correction value of the maze, and can achieve the purposes of preventing false alarm and delaying the service life of the product.
To further enhance understanding of the embodiments of the present invention, please refer to fig. 1, where fig. 1 is a schematic diagram of calibration terms of a smoke alarm device in the embodiments of the present invention, and as shown in fig. 1, in the embodiments of the present invention, a bias voltage B1, a cleaning value C1, and an alarm value a1 are all calibration values; the real-time bias voltage B2 and the real-time sampling smoke value C2 are both real-time values; a2 is a compensation alarm value; Δ C1 ═ C1-B1 is the increment of the calibration clean value, Δ a1 ═ a1-C1 is the increment of the calibration smoke correction value, Δ AB ═ Δ a1 +/Δ C1 is the total increment of the calibration smoke value, Δ C2 ═ C2-B2 is the increment of the real-time smoke value, C is the compensation value, Δ C2min1, C2min1 are the minimum values recorded every 5 minutes, and SM _ RISE _ CNT is the number of smoke RISEs every 5 minutes in1 hour.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an optional smoke alarm according to an embodiment of the present invention, and as shown in fig. 2, the smoke alarm provided in the embodiment of the present invention may be used to implement the alarm method provided in the present invention, and the smoke alarm may include: the single chip microcomputer MCU, a bias voltage circuit, a signal amplifying circuit, a photoelectric receiving circuit, a photoelectric transmitting circuit and an acousto-optic alarm circuit; the input end of the bias voltage circuit is connected to the signal output end of the single-chip microcomputer MCU, the bias signal input end of the signal amplification circuit is connected to the output end of the bias voltage circuit, the smoke signal input end of the signal amplification circuit is connected to the output end of the photoelectric receiving circuit, the output end of the signal amplification circuit is connected to the input end of the single-chip microcomputer MCU, the input end of the photoelectric emission circuit is connected to the smoke sensing output end of the single-chip microcomputer MCU, the output end of the photoelectric emission circuit is connected to the input end of the photoelectric receiving circuit, and the input end of the acousto-optic alarm circuit is connected to the acousto-optic alarm output end of the single.
The single chip microcomputer MCU can be used for determining whether to correct the calibrated smoke correction value total increment according to a compensation value, and comparing the corrected alarm value increment with the smoke value increment when correction is needed, or comparing the smoke increment value with the set calibrated smoke correction value total increment when correction is not needed; and when the smoke value increment is not less than the corrected alarm value increment or the calibrated smoke correction value total increment, the single chip microcomputer MCU controls the sound-light alarm circuit to output sound-light alarm signals.
The calibrated smoke correction value total increment can be determined by a difference value between a calibrated alarm value of a smoke alarm and a first bias signal value calculated by the bias voltage circuit when a transmitting tube of the smoke sensor is not opened.
The smoke value increment can be determined by the difference value of the smoke value amplified by the signal amplifying circuit and a second bias signal calculated by the bias voltage circuit according to the smoke alarm measured in real time currently when the transmitting tube of the smoke sensor is not opened by the single chip microcomputer MCU.
Referring to fig. 3, fig. 3 is a schematic flow chart of a smoke alarm method according to an embodiment of the present invention, and as shown in fig. 3, the method includes the following steps:
s301, obtaining a compensation value in the smoke alarm device.
For example, assuming that the calibrated bias signal value is B1, the calibrated bias signal value is added with a compensation value C to obtain a first bias signal value B1+ C, where the calibrated bias signal value is factory calibration and is known or can be obtained, and the first bias signal value is detected by the bias voltage circuit in the embodiment of fig. 2 and is also known and can be obtained, so that the compensation value can be calculated. Of course, in some possible embodiments, the compensation value may also be obtained by multiplying a difference between the first offset signal value and the calibrated offset signal value by a compensation coefficient.
S302, obtaining a smoke value increment in the smoke alarm equipment, wherein the smoke value increment is used for representing the pollution degree of the smoke alarm equipment under the current air condition.
In step S302, the smoke value increment may be determined by the difference between the smoke value amplified by the signal amplifying circuit and the second bias voltage calculated by the bias voltage circuit by the smoke alarm device currently measured in real time when the transmitting tube of the smoke sensor is not opened, according to the smoke value amplified by the single chip microcomputer MCU in the embodiment of fig. 2. The above-mentioned acquisition of the smoke value increment may be in real time, or may be in timing, that is, the smoke value increment in the smoke alarm device is detected in real time or in timing, and is recorded, and in this embodiment, it is preferable that: smoke collection may be 8S each time, 225 collection sessions in 30 minutes, and 450 collection sessions in1 hour. The specific judgment time of the first preset time can be reasonably determined by combining various fire test times and smoke concentration curves in the industry standard, for example, the time can be 3-8 minutes, preferably 5 minutes, namely sampling is carried out in real time or at fixed time within 5 minutes to obtain a smoke value, and the smoke value increment is calculated.
S303, judging whether the smoke alarm equipment is in a pollution or attenuation state.
In step S303, the above-mentioned pollution state refers to that the maze in the smoke alarm device is polluted, which can be understood as that the sampled smoke value is larger than the actual smoke value, i.e. the actual smoke value is C2, the sampled smoke value is C2+ X, and when X is larger than the difference between the calibrated alarm value a1 and the actual smoke value C2, the alarm will be continuously issued. The attenuation state refers to that a labyrinth in the smoke alarm device is cleaned, and can be understood that the sampled smoke value is smaller than the actual smoke value, namely the actual smoke value is C2, and the sampled smoke value is C2-X, so that the actual alarm value is A1+ X, and when X is large enough, the alarm value cannot be reached when a fire breaks out, and the alarm is not given.
S304, if the smoke alarm equipment is in a pollution or attenuation state, correcting the calibrated smoke correction value total increment in the smoke alarm equipment based on the pollution or attenuation state to obtain a corrected alarm value increment, wherein the calibrated smoke correction value total increment is the difference value between the calibrated alarm value and the calibrated bias signal value of the smoke alarm.
In step S304, the corrected alarm value increment is a corrected calibrated total smoke correction value increment, the calibrated alarm value and the calibrated bias signal value are calibrated at the time of factory shipment, and assuming that the calibrated alarm value is a1 and the calibrated bias signal value is B1, the calibrated total smoke correction value increment is a1-B1, the corrected alarm value increment in a pollution state is a1-B1-C, and the corrected alarm value increment in an attenuation state is a1-B1+ C.
In a possible embodiment, referring to fig. 16, the calibrated total smoke correction value increment may also be a sum of a calibrated alarm value increment and a calibrated clean value increment, where the calibrated alarm value increment is a difference between a calibrated alarm value and a calibrated clean value, the calibrated clean value increment is a difference between a calibrated clean value and a calibrated bias signal value, for example, the calibrated alarm value is a1, the calibrated bias signal value is B1, the calibrated clean value is C1, the calibrated alarm value increment is a1-C1, the calibrated clean value increment is C1-B1, the sum of the calibrated alarm value increment and the calibrated clean value increment is a1-C1+ C1-B1, and the result is a1-B1, which is the calibrated total smoke correction value increment. In addition, the calibration alarm value of the smoke alarm device is a parameter which is calibrated by a manufacturer for long-term use when the smoke alarm device leaves a factory, the calibration clean value of the smoke alarm device can be calibrated by the manufacturer when the smoke alarm device leaves the factory, or can be a parameter which is calibrated by an installer after long-term use when the smoke alarm device is installed, and because the calibration value has invariance, the calibration alarm value increment obtained by the difference value between the calibration alarm value and the calibration clean value increment obtained by the calibration clean value and the calibration offset value are unchangeable, and the calibration smoke value total increment obtained by the sum of the calibration alarm value increment and the calibration clean value increment is also unchangeable. It should be noted that the above-mentioned calibrated alarm value increment may also define the sensitivity of the smoke alarm device, and the smaller the calibrated alarm value increment, the more sensitive the smoke alarm device is, and the larger the calibrated alarm value increment, the more dull the smoke alarm device is. Because the total increment of the calibrated smoke correcting value is unchanged, the current actual smoke situation can be reflected under the condition of keeping the sensitivity of the smoke alarm by comparing the smoke value increment with the total increment of the calibrated smoke correcting value.
S305, judging whether the smoke value increment is larger than or equal to the corrected alarm value increment.
Wherein, the corrected alarm value increment may be obtained in step S304, assuming that the calibrated alarm value is a1 and the calibrated offset signal value is B1, the calibrated corrected smoke value total increment is a1-B1, the corrected alarm value increment in the contamination state is a1-B1-C, the corrected alarm value increment in the attenuation state is a1-B1+ C, assuming that the smoke value increment is Δ C2-C2-B2, wherein C2 is a sampled smoke value, B2 is a second offset signal value, the judgment of the smoke value increment and the corrected alarm value increment may be that, when the smoke value increment and the corrected alarm value increment are in the contamination state, it is determined whether Δ C2 is equal to or greater than Δ a1 Δ + C1-C, when the smoke value increment and the corrected alarm value increment are in the attenuation state, Δ C9 is equal to Δ a 6862 + C1+ C, Δ a1 is a calibrated corrected smoke value increment (also called a calibrated alarm value increment), and the calibrated alarm value increment is a 36867-B867, and the calibrated Δ a 36867 is a calibrated clean alarm value increment, and the delta C1 is C1-B1, and is obtained after substitution, and the judgment of the smoke value increment and the correction alarm value increment can be that whether the delta C2 is more than or equal to A1-B1-C is established or not when the smoke value increment and the correction alarm value increment are in a pollution state, and that the delta C2 is more than or equal to A1-B1+ C when the smoke value increment and the correction alarm value increment are in a decay state.
And S306, if the smoke value increment is larger than or equal to the corrected alarm value increment, sending alarm information.
When the smoke value increment is larger than or equal to the corrected alarm value increment, which indicates that the external smoke concentration is increased and an alarm needs to be given, a control instruction is sent to the sound and light alarm circuit in the embodiment of fig. 2, so that the sound and light alarm circuit gives an alarm.
It should be noted that the above-mentioned smoke alarm method can be applied to smoke alarm devices, such as: the smoke alarm system comprises a computer, a server, a mobile phone, intelligent household equipment, a smoke alarm and other equipment capable of giving smoke alarms.
In the embodiment of the invention, the compensation value in the smoke alarm equipment is obtained; obtaining a smoke value increment in a smoke alarm device, wherein the smoke value increment is used for representing the pollution degree of the smoke alarm device under the current air condition; judging whether the smoke alarm equipment is in a polluted or attenuated state; if the smoke alarm equipment is in a pollution or attenuation state, correcting a calibrated smoke correction value total increment in the smoke alarm equipment based on the pollution or attenuation state to obtain a corrected alarm value increment, wherein the calibrated smoke correction value total increment is a difference value between a calibrated alarm value and a calibrated offset signal value of the smoke alarm; judging whether the smoke value increment is larger than or equal to the corrected alarm value increment or not; and if the smoke value increment is larger than or equal to the corrected alarm value increment, sending alarm information. The calibrated smoke correction value total increment is corrected according to the pollution or attenuation state of the smoke alarm device, the corrected alarm value increment is compared with the smoke value increment, the calibrated smoke correction value total increment is compensated through the compensation value, pollution interference or attenuation interference when the smoke alarm device is dirty can be avoided, and the purposes of preventing false alarm and prolonging the service life of products are achieved.
Optionally, referring to fig. 4, fig. 4 is a schematic flowchart of step S303 in the embodiment of fig. 3, as shown in fig. 4, step S303 includes:
s401, detecting according to the pollution zone bit or the attenuation zone bit;
s402, judging whether the smoke alarm equipment is in a pollution or attenuation state according to whether the smoke alarm equipment is in a pollution zone bit or an attenuation zone bit.
The above-mentioned pollution zone bit or error zone bit is used to indicate whether the smoke alarm device is in a polluted or attenuated state, for example, if the smoke alarm device is in the pollution zone bit, it indicates that the smoke alarm device is polluted and in the polluted state, a problem of false alarm may be generated, and if the smoke alarm device is in the attenuation zone bit, it indicates that the smoke alarm device is clean and in the attenuated state, a problem of no alarm may be generated.
Optionally, referring to fig. 5, fig. 5 is another schematic flow chart of step S402 in the embodiment of fig. 4, as shown in fig. 5, step S402 further includes:
s501, detecting whether the pollution flag bit meets the preset value of the pollution flag;
s502, if the pollution mark bit accords with the preset value of the pollution mark, judging that the smoke alarm equipment is in a pollution state.
The preset value of the pollution flag may be 1 or 0, for example, when the pollution flag is 1, it may be determined that the smoke alarm device is in a pollution state, and when the pollution flag is 0, it may be determined that the smoke alarm device is not in a pollution state.
Optionally, referring to fig. 6, fig. 6 is a schematic flowchart of step S304 in the embodiment of fig. 3, as shown in fig. 6, step S304 includes:
s601, if the smoke alarm equipment is in a pollution state, calculating the sum of the total increment of the calibrated smoke correction value and the compensation value;
and S602, obtaining the increment of the corrected alarm value according to the sum of the total increment of the calibrated smoke correcting value and the compensation value.
Wherein, if the calibrated alarm value is A1, the calibrated bias signal value is B1, and C is a compensation value, the calibrated smoke correction value total increment is A1-B1, and the corrected alarm value increment in the pollution state is A1-B1-C.
Optionally, referring to fig. 7, fig. 7 is another flowchart illustrating step S S402 in the embodiment of fig. 3, as shown in fig. 7, step S S402 includes:
s701, detecting whether the attenuation flag bit accords with the preset value of the attenuation flag;
s702, if the attenuation mark bit accords with the preset attenuation mark value, judging that the smoke alarm equipment is in an attenuation state.
The preset value of the attenuation flag may be 1 or 0, for example, when the attenuation flag bit is 1, it may be determined that the smoke alarm device is in an attenuation state, and when the attenuation flag bit is 0, it may be determined that the smoke alarm device is not in an attenuation state.
Optionally, referring to fig. 8, fig. 8 is another schematic flow chart of step S304 in the embodiment of fig. 3, as shown in fig. 8, step S304 further includes:
s801, if the smoke alarm equipment is in an attenuation state, calculating a difference value between the total increment of the calibrated smoke correction value and the compensation value;
s802, obtaining the corrected alarm value increment according to the difference value between the calibrated smoke correcting value total increment and the compensation value.
Wherein, if the calibrated alarm value is A1 and the calibrated bias signal value is B1, the total increment of the calibrated smoke correction value is A1-B1, and the increment of the corrected alarm value in the attenuation state is A1-B1+ C.
Optionally, referring to fig. 9, fig. 9 is a schematic flow chart of another smoke alarm method according to an embodiment of the present invention, as shown in fig. 9, further including:
s901, detecting according to the pollution zone bit or the attenuation zone bit;
s902, judging whether the smoke alarm equipment is in a pollution or attenuation state according to whether the smoke alarm equipment is in a pollution zone bit or an attenuation zone bit;
and S903, if the smoke alarm equipment is not at the pollution zone bit and the attenuation zone bit, not correcting the calibrated smoke correction value total increment in the smoke alarm equipment.
The smoke alarm equipment is not in a pollution zone bit and is not in an attenuation zone bit, so that the smoke alarm equipment is in a good state, and the smoke alarm equipment does not need to be compensated, namely, the smoke alarm equipment is not in a pollution state and is not in an attenuation state.
Optionally, referring to fig. 10, fig. 10 is another schematic flow chart of step S306 in the embodiment of fig. 3, as shown in fig. 10, step S306 further includes:
s1001, if the smoke value increment is larger than or equal to the corrected alarm value increment, accumulating the continuous early warning times and adding 1;
s1002, if the continuous early warning frequency reaches a preset continuous frequency threshold value, alarm information is sent out.
In step S1001, the above-mentioned number of continuous early warning times refers to that, within a certain time, the smoke value increment is continuously greater than or equal to the calibrated alarm value increment, for example, taking 1 second as an example, 5 times are detected in 5 seconds, if the sum of the smoke value increment and the interference value of the 1 st time is not greater than or equal to the sum of the calibrated alarm value increment and the interference value, and the sum of the smoke value increment and the interference value of the following 4 times is greater than or equal to the sum of the calibrated smoke value increment and the interference value, the number of continuous early warning times is 4 times, and if only the sum of the smoke value increment and the interference value of the third time is not greater than or equal to the sum of the calibrated smoke value increment and the interference value, the number of continuous early warning times is 2 times.
In step S1002, the threshold value of the number of consecutive times may be 5 to 30 times, preferably 8 times in this embodiment, and it is not easy to delay the alarm due to too many times causing too long time, and it is not easy to misreport due to too short time caused by too few times.
In the embodiment of the invention, the false alarm rate can be reduced by setting the continuous time threshold.
To further illustrate the smoke alarm method provided by the embodiment of the present invention, the following detailed description is provided with reference to the specific examples and the accompanying drawings 11 to 13:
in the embodiment of the invention, whether the smoke alarm is preset with a numerical value before leaving the factory or not is judged, whether the calibration is successful or not is judged, if the numerical value is preset and the calibration is successful, whether the clean value needs to be compensated or not is confirmed, if the clean value needs to be compensated, the labyrinth pollution compensation process is executed, if the clean value does not need to be compensated, the smoke value processing process is executed, and the alarm threshold is reached. And judging whether the smoke alarm presets a numerical value before leaving the factory or not, and whether the calibration is successful or not, if the numerical value is not preset or the calibration is not successful, executing a calibration flow, writing the calibrated factory value into E2, then directly executing a smoke value processing flow after re-calibration, and giving an alarm when an alarm threshold value is reached.
As shown in fig. 11, fig. 11 is a schematic flow chart of another smoke alarm method provided in the embodiment of the present invention, which is specifically as follows:
s1101: reading E2 data, wherein the E2 data is specifically read-write EEPROM data in a singlechip;
s1102: judging whether factory calibration is carried out or not according to the E2 data, and if so, entering a step S1104; if not, go to step S1103;
s1103: after the calibration flow is executed and the factory value of calibration is written in E2, the process goes to step S1106;
s1104: collecting a bias voltage value and a smoke value, obtaining the smoke value increment, and then entering the step S1105;
s1105: executing a labyrinth pollution compensation process;
s1106: executing a smoke value processing flow;
s1107: judging whether an alarm signal is output, if so, entering step S1108, and if not, returning to step S1106;
s1108: after the alarm process is executed, the process proceeds to step S1106.
The specific technical means for judging whether factory calibration is performed in step S1102 is as follows: judging whether the data in the specific address is 55H or not; and 55H is a flag bit which is written when the calibration is successful and used for indicating the successful calibration. Other values or symbols are possible in other embodiments. In the embodiment of the invention, the increment value is kept unchanged before and after the interference signal is introduced, which means that the sensitivity of the alarm does not change when the interference signal exists or not, thereby improving the anti-interference capability and reducing the possibility of false alarm.
Wherein, when the factory cleanliness value (the sampling voltage value under the clean air) is calibrated: and obtaining a factory bias voltage (a voltage value sampled when the transmitting tube is not started), a factory cleaning value increment which is a factory cleaning value-a factory bias voltage, and a factory alarm threshold value increment which is a factory alarm threshold value-a cleaning value.
The invention adopts an increment value alarm method: alarm increment value (real-time sampling value (IR on) -real-time bias voltage value (IR not on) > alarm threshold increment.
In the embodiment of the invention, the alarm threshold increment is defined by a range according to the requirements of national standards on sensitivity, including fire test requirements, and the factory increment threshold is set according to the sensitivity range. The general smoke sensitivity is more than 0.05dB/m, and the upper limit is determined according to the fire sensitivity empirical value of each manufacturer.
The purpose of writing the factory setting data into E2 is to write a factory sensitivity value, and the calibrated data can be directly read without resetting the sensitivity under the condition of power failure.
As shown in fig. 12, fig. 12 is a schematic view of a smoke value processing flow in step S1106 in the implementation of fig. 11, specifically:
s1201: judging whether the pollution flag bit is equal to 1, if so, entering step S1203, otherwise, entering step S1202;
s1202: judging whether the attenuation flag bit is equal to 1, if so, entering a step S1204, and if not, entering a step S1205;
s1203: correcting the alarm increment value ═ Δ C2+ C and proceeding to step S1205;
s1204: correcting the alarm increment value ═ Δ C2-C and proceeding to step S1205;
s1205: judging whether the increment value is continuously larger than the factory increment value for 8 times, if so, entering a step S1206, and if not, ending;
s1206: and setting an alarm output zone bit.
The number of times of judgment can be set to be different according to different manufacturers, and is preferably 8; when the calculated increment threshold value is greater than or equal to the factory-set increment alarm threshold value, sampling is carried out every 1S, and when the calculated increment threshold value is continuously greater than the times 8, an alarm signal is output.
In the invention, the bias voltage is measured to be B1+ X before the launching tube is started, and the bias voltage is A1+ X after the launching tube is started; the difference between the two is also A1-B1, and the increment value is the same before and after the interference. The increment judgment method has stronger anti-electromagnetic interference capability than an absolute value and is not easy to misreport.
In the embodiment of the invention, if pollution compensation is added, the alarm increment is ensured to be unchanged, false alarm cannot be caused after the alarm threshold is raised, and the sensitivity is basically consistent with the initial sensitivity. As shown in fig. 13, fig. 13 is a schematic view of a pollution compensation process in the smoke alarm method according to the embodiment of the present invention, specifically:
s1300: acquiring a bias voltage value B2 and a smoke value C2, and acquiring real-time smoke value increment delta C2 which is C2-B2;
s1301: recording the minimum sampling increment value deltaC 2min 2; in this step, a plurality of corresponding smoke value increments Δ C2-C2-B2 are calculated according to the plurality of bias voltage values B2 acquired in step S501 and the smoke value C2 corresponding to the bias voltage value B2 within a first preset time, for example, 5 minutes, and a minimum sampling increment value Δ C2min2 is determined.
S1302: judging whether the 5-minute timing is finished, if so, entering step S1303, and if not, entering step S1304;
s1304: judging whether the Delta C2min2 is less than or equal to the Delta C1-d, if so, entering a step S1305, and otherwise, entering a step S1307; wherein d is a fixed constant value, the value range of d is generally an AD value more than 30mV-50mV, a compensation program is not easy to start if the value is too large, and the value is not too large for compensation.
S1305: and adding 1 to the number of attenuation times SM _ DOWN _ CNT, wherein the number of attenuation times specifically refers to the number of times that the value of the sampled labyrinth clean air is reduced.
S1306: clearing the counter for 5 minutes and clearing the counter for 1 hour;
s1307: judging whether the 30-minute timing time is finished, if so, turning to step 1308; if not, go to step S1304;
s1308: whether the number of times of attenuation SM _ DOWN _ CNT is greater than or equal to 60, if yes, the process proceeds to step S1309, and if no, the process proceeds to step S1310;
wherein the smoke is collected for 8S each time, 225 collection actions are carried out within 30 minutes, and if the attenuation times are more than or equal to 60 times in the period, the maze signal is considered to be attenuated. Here, the 60 times may be a value smaller than 225 and larger than 225 × 20% to 45.
S1309: setting the attenuation flag C ═ Δ C1- Δ C2min2 × Y, and then proceeding to step S1311;
wherein Y is an attenuation compensation coefficient, 2 is required to be more than Y and is more than 1, the too small number compensation effect is poor, and the too large number can cause false alarm due to the over compensation.
S1310: clear attenuation flag bit C is 0;
s1311: resetting the SM _ DOWN _ CNT to 0 by the counter;
s1312: judging whether the Δ C2min2 is greater than or equal to Δ C1+ d, if yes, proceeding to step S1313; if not, ending;
s1313: judging whether the value (delta C2min 2-delta C2min1) is more than or equal to delta A1/32; if yes, go to step S1315, otherwise, go to step S1314; wherein the initial value of Δ C2min1 is the first sample smoke value increment.
S1314: judging whether the contamination frequency SM _ RISE _ CNT is greater than or equal to a, if so, entering step S1316, otherwise, entering step S1317; wherein, the value range of a is (2-6), and preferably 3.
S1315: adding 1 to the number of contamination SM _ RISE _ CNT;
s1316: number of contaminations SM _ RISE _ CNT minus 1;
s1317: updating the numerical value by making Δ C2min1 ═ Δ C2min 2;
s1318: judging whether the 1h timing time is finished, if so, entering a step S1319, and if not, finishing;
s1319: clearing the timer for 1 h;
s1320: judging whether the contamination frequency SM _ RISE _ CN is equal to zero, if so, entering step S1321, and if not, entering step S1322;
s1321: c ═ C (Δ C2min2- Δ C1) X is finished after setting a pollution flag bit;
wherein, X is a pollution compensation coefficient, 1> X >0.5 is required, the compensation effect is not good when the number is too small, and the over-compensation causes false alarm when the number is too large.
S1322: and clearing the pollution flag bit C to 0, and ending.
Minimum recorded every 5 minutes: Δ C2min1, Δ C2min 2.
In the embodiment of the invention, the specific judgment time needs to be reasonably determined by combining various fire test time and smoke concentration curves in the standard, wherein 1 hour and 5 minutes are preferred examples, and the value range can be set to be (45 minutes-90 minutes) and (3 minutes-8 minutes).
Because the factory-calibrated clean air value, the alarm threshold value and the alarm increment value are determined, when a maze is polluted by mosquitoes, air and the like, the actual clean air value is larger than the factory-calibrated clean value, at the moment, if the alarm threshold value is not changed, the alarm increment value is reduced, and false alarm is easily caused when interference such as air pollution or electromagnetic interference exists. In the invention, the maze cleanliness value is continuously updated by adopting a pollution compensation method, and the increment of alarm increment is unchanged, so that the aims of preventing false alarm and delaying the service life of the product can be achieved.
Referring to fig. 14, fig. 14 is a schematic structural view of a smoke alarm device according to an embodiment of the present invention, and as shown in fig. 14, the device includes:
a first obtaining module 1401, configured to obtain a compensation value in the smoke alarm apparatus;
a second obtaining module 1402, configured to obtain a smoke value increment in a smoke alarm device, where the smoke value increment is used to indicate a pollution level of the smoke alarm device under a current air condition;
a first determining module 1403, configured to determine whether the smoke alarm device is in a polluted or attenuated state;
a correcting module 1404, configured to correct a calibrated total increment of a smoke correcting value in the smoke alarm device based on a pollution or attenuation state if the smoke alarm device is in the pollution or attenuation state, so as to obtain a corrected alarm value increment, where the calibrated total increment of the smoke correcting value is a difference between a calibrated alarm value and a calibrated offset signal value of the smoke alarm;
a second determination module 1405 for determining whether the smoke value increment is greater than or equal to the modified alarm value increment;
an alarm module 1406 configured to send an alarm message if the smoke value increment is greater than or equal to the modified alarm value increment.
Optionally, the first determining module 1403 includes:
the detection submodule is used for detecting according to the pollution zone bit or the attenuation zone bit;
and the judgment submodule is used for judging whether the smoke alarm equipment is in a pollution or attenuation state according to whether the smoke alarm equipment is in a pollution zone bit or an attenuation zone bit.
Optionally, the judgment sub-module comprises
The detection unit is used for detecting whether the pollution mark bit accords with the preset value of the pollution mark;
and the judging unit is used for judging that the smoke alarm equipment is in a pollution state if the pollution mark bit accords with the preset value of the pollution mark.
Optionally, the modification module 1404 includes:
the calculation submodule is used for calculating the sum of the total increment of the calibrated smoke correcting value and the compensation value if the smoke alarm equipment is in a pollution state;
and the determining submodule is used for obtaining the corrected alarm value increment according to the sum of the calibrated smoke correcting value total increment and the compensation value.
Optionally, the detection sub-module in the first determining module 1403 is further configured to perform detection according to the pollution flag bit or the attenuation flag bit;
and the judgment submodule is also used for judging whether the smoke alarm equipment is in a pollution or attenuation state according to whether the smoke alarm equipment is in a pollution zone bit or an attenuation zone bit.
Optionally, the calculating submodule in the modification module 1404 is further configured to calculate a difference between the calibrated smoke correction value total increment and the compensation value if the smoke alarm device is in an attenuation state;
and the determining submodule is also used for obtaining the corrected alarm value increment according to the difference value between the calibrated smoke correcting value total increment and the compensation value.
Optionally, the apparatus further comprises:
the detection module is used for detecting according to the pollution zone bit or the attenuation zone bit;
the third judgment module is also used for judging whether the smoke alarm equipment is in a pollution or attenuation state according to whether the smoke alarm equipment is in a pollution zone bit or an attenuation zone bit;
and the holding module is used for not correcting the total increment of the calibrated smoke correcting value in the smoke alarm equipment if the smoke alarm equipment is not at the pollution zone bit and the attenuation zone bit.
Optionally, the alarm module 1406 further includes:
the accumulation submodule is used for accumulating the continuous early warning times and adding 1 if the smoke value increment is larger than or equal to the corrected alarm value increment;
and the alarm submodule is also used for sending alarm information if the continuous early warning times reach a preset continuous time threshold value.
It should be noted that the above-mentioned device can be applied to a smoke alarm device, for example: and the computer, the server, the mobile phone and the like can perform smoke alarm.
The smoke alarm device provided by the embodiment of the application can realize each implementation mode in the method embodiments of fig. 3 to fig. 10 and corresponding beneficial effects, and is not repeated here for avoiding repetition.
In order to solve the technical problem, the embodiment of the application further provides smoke alarm equipment. Referring to fig. 15, fig. 15 is a block diagram of a basic structure of the smoke alarm apparatus according to the embodiment.
The computer device 15 includes a memory 151, a processor 152, and a network interface 153 communicatively connected to each other via a system bus. It is noted that only computer device 15 having components 151 and 153 is shown, but it is understood that not all of the illustrated components are required and that more or fewer components may alternatively be implemented. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 151 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 151 may be an internal storage unit of the computer device 15, such as a hard disk or a memory of the computer device 15. In other embodiments, the memory 151 may also be an external storage device of the computer device 15, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device 15. Of course, the memory 151 may also include both internal and external storage devices of the computer device 15. In this embodiment, the memory 151 is generally used for storing an operating system installed in the computer device 15 and various types of application software, such as program codes of a smoke alarm method. In addition, the memory 151 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 152 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 152 is typically used to control the overall operation of the computer device 15. In this embodiment, the processor 152 is configured to execute the program code stored in the memory 151 or process data, for example, the program code for executing the smoke alarm method.
The network interface 153 may include a wireless network interface or a wired network interface, and the network interface 153 is generally used for establishing communication connection between the computer device 15 and other electronic devices.
The present application provides yet another embodiment, which provides a computer-readable storage medium having stored thereon a smoke alarm program executable by at least one processor to cause the at least one processor to perform the steps of the smoke alarm method as described above.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.