A smoke alarm method, device, smoke alarm and storage medium
By using light transmitting and receiving modules in the smoke alarm, the degree of electrical signal fluctuation is analyzed, and the false alarm problem caused by dust interference is solved, and the accuracy of smoke detection is improved.
Patent Information
- Application Number
- CN202411853513.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-04
AI Technical Summary
When existing smoke alarms detect smoke, false alarms are likely to cause misalignment due to dust interference.
By introducing a light emitting module and a light receiving module into the smoke alarm, the light is controlled to transmit in the maze, and by analyzing the degree of fluctuation of the electrical signal output by the light receiving module, it is determined whether it is a signal caused by dust or smoke.
It effectively reduces the false alarm rate of smoke alarm and improves the accurate detection ability of smoke.
Smart Images

Figure CN119763261A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smoke alarms, and in particular to a smoke alarm method, device, smoke alarm, and storage medium. Background Art
[0002] Smoke alarm detects smoke through a smoke alarm (also known as a smoke sensor, or smoke sensor for short). When the concentration of detected smoke reaches the preset alarm threshold, the smoke alarm is triggered.
[0003] In the related art, when smoke particles enter the maze of the smoke alarm, the smoke particles absorb the light of the maze (the light may be emitted by the light emitting module of the maze) and scatter the light to the surroundings; after receiving the light, the light receiving module of the maze (such as a photodiode) converts the light signal of the light into an electrical signal and outputs the electrical signal value corresponding to the light signal of the light. When the electrical signal value reaches a preset alarm threshold, the smoke alarm triggers a smoke alarm.
[0004] However, in actual applications, dust (also known as dust, dust, smoke, mineral dust, sand dust, powder, etc., which are particles suspended in the air) particles will also enter the maze of smoke alarms. When using related technologies for smoke alarms, the interference of dust particles will cause false alarms in the smoke alarms. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a smoke alarm method, device, smoke alarm and storage medium to reduce false alarms of smoke alarms. The specific technical solution is as follows:
[0006] In a first aspect, an embodiment of the present application provides a smoke alarm method, which is applied to a smoke alarm, and the method includes:
[0007] Control the light emitting module in the maze of the smoke alarm to emit light;
[0008] Obtaining a target electrical signal value output by a light receiving module in the maze; wherein the target electrical signal value is a signal value of an electrical signal converted by the light receiving module from an optical signal of the light received;
[0009] In response to the target electrical signal value exceeding a preset smoke alarm threshold, determining a degree value for characterizing a target fluctuation degree; wherein the target fluctuation degree is a fluctuation degree of the electrical signal currently continuously output by the light receiving module;
[0010] Based on the determined degree value, judging whether the target fluctuation degree matches a specified fluctuation degree; wherein the specified fluctuation degree is the fluctuation degree required for the light receiving module to continuously output an electrical signal if the particle entering the maze is dust;
[0011] In response to a mismatch, a smoke alarm is triggered.
[0012] Optionally, determining a degree value for characterizing a degree of target fluctuation includes:
[0013] Continuously acquiring the electrical signal value output by the light receiving module to obtain a plurality of sampled electrical signal values;
[0014] Based on the plurality of sampled electrical signal values, a degree value for characterizing a degree of target fluctuation is calculated.
[0015] Optionally, the calculating, based on the plurality of sampled electrical signal values, a degree value for characterizing a degree of target fluctuation includes:
[0016] Calculating the mean square error of the plurality of sampled electrical signal values to obtain a degree value for characterizing the degree of target fluctuation;
[0017] or,
[0018] For the sequence formed by each sampled electrical signal value in chronological order, a sliding window of a predetermined size is slid multiple times in the sequence to obtain multiple signal value arrays; for each signal value array, the mean square error of each sampled signal value in the signal value array is calculated to obtain multiple degree values for characterizing the degree of target fluctuation.
[0019] Optionally, judging whether the target fluctuation degree matches a specified fluctuation degree based on the determined degree value includes:
[0020] Based on the determined degree value and the preset dust fluctuation threshold, it is determined whether the target fluctuation degree matches the specified fluctuation degree; wherein the preset dust fluctuation threshold is used to characterize the maximum fluctuation degree of the electrical signal output by the light receiving module when the particles entering the maze are dust.
[0021] Optionally, judging whether the target fluctuation degree matches a specified fluctuation degree based on the determined degree value and a preset dust fluctuation threshold value includes:
[0022] In the case where the number of the determined degree values is one, determining whether the determined degree value is greater than a preset dust fluctuation threshold, and if so, determining that the target fluctuation degree does not match the specified fluctuation degree;
[0023] or,
[0024] In the case where the number of the determined degree values is at least two, whether each of the determined degree values is greater than a preset dust fluctuation threshold is judged respectively to obtain a judgment result of each degree value; if the number of the judgment results characterized as being greater than is greater than a target quantity threshold, it is judged that the target fluctuation degree does not match the specified fluctuation degree; wherein the target quantity threshold is a quantity threshold determined based on the number of the determined degree values;
[0025] or,
[0026] When the number of determined degree values is at least two, an average value is calculated for each determined degree value to determine whether the average value is greater than a preset dust fluctuation threshold value. If so, it is determined that the target fluctuation degree does not match the specified fluctuation degree.
[0027] Optionally, before determining the degree value for characterizing the degree of target fluctuation in response to the target electrical signal value exceeding a preset smoke alarm threshold, the method further includes:
[0028] Determine whether the target electrical signal value is lower than a preset maze contamination threshold value, and if it is determined to be lower, perform a step of determining a degree value used to characterize the degree of target fluctuation in response to the target electrical signal value exceeding a preset smoke alarm threshold value; wherein the maze contamination threshold value is used to characterize the electrical signal value output by the light receiving module when the dust concentration in the maze reaches a preset contamination concentration;
[0029] If it is detected to be not less than, the maze contamination alarm will be triggered.
[0030] Optionally, the method further comprises:
[0031] In response to the target electrical signal value not exceeding a preset smoke alarm threshold, controlling the light emitting module to turn off emitting light;
[0032] and / or,
[0033] After triggering the smoke alarm in response to the mismatch, the method further comprises:
[0034] The light emitting module is controlled to stop emitting light.
[0035] Optionally, controlling the light emitting module in the maze of the smoke alarm to emit light comprises:
[0036] In response to detecting that the interval with the target time point reaches a predetermined interval, the light emitting module in the maze of the smoke alarm is controlled to emit light; wherein the target time point is: the time point when the light emitting module was last controlled to stop emitting light.
[0037] In a second aspect, an embodiment of the present application provides a smoke alarm device, which is applied to a smoke alarm, and the device includes:
[0038] A first control module, used to control the light emitting module in the maze of the smoke alarm to emit light;
[0039] An acquisition module, used for acquiring a target electrical signal value output by a light receiving module in the maze; wherein the target electrical signal value is a signal value obtained by converting an optical signal of the light received by the light receiving module into an electrical signal;
[0040] A determination module, configured to determine a degree value for characterizing a target fluctuation degree in response to the target electrical signal value exceeding a preset smoke alarm threshold; wherein the target fluctuation degree is a fluctuation degree of the electrical signal currently continuously output by the light receiving module;
[0041] A first judgment module, based on the determined degree value, judges whether the target fluctuation degree matches a specified fluctuation degree; wherein the specified fluctuation degree is the fluctuation degree required for the light receiving module to continuously output an electrical signal if the particle entering the maze is dust;
[0042] The alarm module is configured to trigger a smoke alarm in response to a mismatch.
[0043] In a third aspect, an embodiment of the present application provides a smoke alarm, comprising:
[0044] Memory, used to store computer programs;
[0045] The processor is used to implement any of the above-mentioned smoke alarm methods when executing the program stored in the memory.
[0046] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the above-mentioned smoke alarm methods is implemented.
[0047] The embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the above-mentioned smoke alarm methods.
[0048] Beneficial effects of the embodiments of the present application:
[0049] The smoke alarm method provided in the embodiment of the present application is applied to a smoke alarm. The present application can control the light emitting module in the maze of the smoke alarm to emit light, and the light will be transmitted in the maze. The light receiving module in the maze can receive the light and convert the optical signal of the received light into an electrical signal. The target electrical signal value output by the light receiving module can be obtained to determine whether to trigger the smoke alarm. Specifically, it is first determined whether the target electrical signal value exceeds the preset smoke alarm threshold. In response to the target electrical signal value exceeding the preset smoke alarm threshold, the smoke alarm is not directly triggered as in the prior art. Instead, a target fluctuation degree value of the fluctuation degree of the electrical signal currently continuously output by the light receiving module is determined. Then, based on the determined degree value, it is determined whether the target fluctuation degree matches the specified fluctuation degree. The specified fluctuation degree is the fluctuation degree required when the light receiving module continuously outputs the electrical signal if the particles entering the maze are dust. If they do not match, that is, the particles entering the maze are not just dust, but at least include smoke, then the smoke alarm is triggered. It can be seen that when the target electrical signal value exceeds the preset smoke alarm threshold, the present application does not directly trigger the smoke alarm. Before triggering the smoke alarm, the present application first determines whether the fluctuation degree of the electrical signal currently continuously output by the light receiving module matches the specified fluctuation degree of the dust, that is, determines whether the particles entering the maze are only dust. If they do not match, that is, the particles entering the maze at least include smoke, the smoke alarm is triggered. Therefore, the false alarm of the smoke alarm can be reduced through this solution.
[0050] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0052] Figure 1 A flow chart of a smoke alarm method provided in an embodiment of the present application;
[0053] Figure 2a A schematic diagram of the fluctuation degree of a sampled electrical signal value of dust provided in an embodiment of the present application;
[0054] Figure 2b Another schematic diagram of the fluctuation degree of the sampled electrical signal value of dust provided in an embodiment of the present application;
[0055] Figure 2cA schematic diagram of the frequency characteristics of a sampled electrical signal value of smoke provided in an embodiment of the present application;
[0056] Figure 2d A schematic diagram of the fluctuation degree of a sampled electrical signal value of smoke provided in an embodiment of the present application;
[0057] Figure 2e Another schematic diagram of the frequency characteristics of a sampled electrical signal value of smoke provided in an embodiment of the present application;
[0058] Figure 3 Another schematic diagram of a smoke alarm method provided in an embodiment of the present application;
[0059] Figure 4 A schematic diagram of the structure of a smoke alarm device provided in an embodiment of the present application;
[0060] Figure 5 A schematic diagram of a smoke alarm provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.
[0062] The smoke sensor mainly detects smoke through the built-in maze in a photoelectric way, and triggers the smoke alarm by detecting the scattering or absorption of light by smoke. When smoke enters the maze inside the smoke sensor, the sensor will sense the presence of smoke particles, which absorb the light of the maze and scatter light to the surroundings, causing the electrical signal value output by the light receiving module to change. The light receiving module receives light and outputs the electrical signal value. When the electrical signal value reaches the preset alarm threshold (that is, the smoke concentration reaches the preset alarm threshold), the smoke alarm is triggered.
[0063] When dust enters the smoke sensor, the smoke sensor's sensitivity to smoke alarm decreases (the accumulation of dust will reduce the sensitivity of the smoke sensor, causing the smoke sensor to be unable to accurately detect smoke under normal circumstances, resulting in missed reports of the smoke alarm (the smoke sensor may be contaminated by dust at this time)); and, due to the interference of dust, the smoke sensor will produce false alarms when issuing a smoke alarm (for example: identifying dust as smoke, thereby generating a smoke alarm).
[0064] Therefore, when performing a smoke alarm, there is a need for dust recognition. The so-called dust recognition means that the smoke sensor can distinguish and filter out false alarms caused by non-fire factors such as dust while detecting smoke; this is crucial to the accuracy and reliability of the smoke sensor.
[0065] In the related art, a simulation space is constructed, a composite smoke sensor is set up in the simulation space based on preset conditions, training samples and test samples are selected, positive sample sets and negative sample sets are constructed for the training samples, and the positive sample sets and negative sample sets are input into a classifier for training; after the training is completed, a positive sample set and a negative sample set are constructed for the test samples under the same conditions, and the trained classifier is input for detection. When the detection accuracy reaches the preset standard, the trained classifier is applied to the smoke sensor.
[0066] However, with the increasing complexity and diversity of occasions and scenes where dust is present in smoke sensors, there is a higher demand for dust recognition; the relevant technology takes into account that the aging rate of smoke sensors and the dust accumulation rate are basically the same, and trains the classifier based on training samples in order to increase the threshold of smoke alarms; when training the classifier, false alarms of dust particles are not considered, and simply increasing the threshold of smoke alarms will result in the inability to issue smoke alarms in a timely manner; moreover, negative samples can only represent non-smoke particles, and it is impossible to clearly identify what type of particles they are, and they cannot be expanded, which has great limitations.
[0067] Based on this, the embodiments of the present application provide a smoke alarm method, device, smoke alarm and storage medium, which analyze and process the detected electrical signal value through a software algorithm to distinguish the alarm of smoke and dust and other particles suspended in the air, and trigger the smoke alarm when smoke is identified. This solution can reduce the false alarm of the smoke alarm.
[0068] The following first introduces a smoke alarm method provided by the present application.
[0069] Among them, a smoke alarm method provided by the present application can be applied to a smoke alarm (specifically, a main control module of a smoke alarm), and the smoke alarm can be an electronic device with functions such as smoke recognition and smoke alarm, and the present application does not limit the specific form of the smoke alarm. In addition, a smoke alarm method provided by an embodiment of the present application can be applied to any scenario where smoke alarm is performed in the presence of interference from dust particles.
[0070] In addition, in the present application, the smoke alarm includes a maze, which is a space with a light emitting module and a light receiving module for identifying smoke. The light emitting module has the function of emitting light, and the light receiving module can receive the optical signal of the light, convert the optical signal of the light into an electrical signal, and output the electrical signal value corresponding to the optical signal of the light; it should be emphasized that the light emitting module and the light receiving module can both be diodes, such as: the light emitting module is a diode for emitting light, and can also be called a emitting tube, and the emitted light can be infrared light, etc.; the light receiving module can be a photosensitive diode for receiving light, and can also be called a receiving tube. After the receiving tube receives the light, the impedance of the light receiving element changes, forming a photocurrent, thereby realizing the function of converting the optical signal into an electrical signal; and the same diode can have both the light emitting function and the light receiving function, that is, the light emitting module and the light receiving module can also be integrated in the same diode, and the present application does not limit this.
[0071] In addition, the present application takes into account the differences between the characteristics of particles such as dust suspended in the air and those of smoke particles (for example, the fluctuation degree of dust particles is weaker than that of smoke particles). When the electrical signal value exceeds the smoke alarm threshold, the present application does not directly trigger the smoke alarm, but identifies whether the electrical signal value is generated by dust particles, thereby filtering out false alarms caused by dust.
[0072] Among them, a smoke alarm method provided in an embodiment of the present application is applied to a smoke alarm, and the method includes:
[0073] Control the light emitting module in the maze of the smoke alarm to emit light;
[0074] Obtaining a target electrical signal value output by a light receiving module in the maze; wherein the target electrical signal value is a signal value of an electrical signal converted by the light receiving module from an optical signal of the light received;
[0075] In response to the target electrical signal value exceeding a preset smoke alarm threshold, determining a degree value for characterizing a target fluctuation degree; wherein the target fluctuation degree is a fluctuation degree of the electrical signal currently continuously output by the light receiving module;
[0076] Based on the determined degree value, judging whether the target fluctuation degree matches a specified fluctuation degree; wherein the specified fluctuation degree is the fluctuation degree required for the light receiving module to continuously output an electrical signal if the particle entering the maze is dust;
[0077] In response to a mismatch, a smoke alarm is triggered.
[0078] The smoke alarm method provided in the embodiment of the present application is applied to a smoke alarm. The present application can control the light emitting module in the maze of the smoke alarm to emit light, and the light will be transmitted in the maze. The light receiving module in the maze can receive the light and convert the optical signal of the received light into an electrical signal. The target electrical signal value output by the light receiving module can be obtained to determine whether to trigger the smoke alarm. Specifically, it is first determined whether the target electrical signal value exceeds the preset smoke alarm threshold. In response to the target electrical signal value exceeding the preset smoke alarm threshold, the smoke alarm is not directly triggered as in the prior art. Instead, a target fluctuation degree value of the fluctuation degree of the electrical signal currently continuously output by the light receiving module is determined. Then, based on the determined degree value, it is determined whether the target fluctuation degree matches the specified fluctuation degree. The specified fluctuation degree is the fluctuation degree required when the light receiving module continuously outputs the electrical signal if the particles entering the maze are dust. If they do not match, that is, the particles entering the maze are not just dust, but at least include smoke, then the smoke alarm is triggered. It can be seen that when the target electrical signal value exceeds the preset smoke alarm threshold, the present application does not directly trigger the smoke alarm. Before triggering the smoke alarm, the present application first determines whether the fluctuation degree of the electrical signal currently continuously output by the light receiving module matches the specified fluctuation degree of the dust, that is, determines whether the particles entering the maze are only dust. If they do not match, that is, the particles entering the maze at least include smoke, the smoke alarm is triggered. Therefore, the false alarm of the smoke alarm can be reduced through this solution.
[0079] A smoke alarm method provided by the present application is exemplarily introduced below in conjunction with the accompanying drawings.
[0080] like Figure 1 As shown, the embodiment of the present application provides a corresponding smoke alarm method, which is applied to a smoke alarm and may include the following steps:
[0081] S101: Controlling the light emitting module in the maze of the smoke alarm to emit light;
[0082] The smoke alarm in the present application detects smoke in a photoelectric manner when performing a smoke alarm. When performing a smoke alarm, the light emitting module in the maze of the smoke alarm can be first controlled to emit light.
[0083] Among them, the light emitted by the light emitting module can be infrared light, or visible light (seven colors of light, such as red, orange, yellow, green, blue, indigo, and purple), or light of other wavelengths, etc. On the premise of satisfying smoke detection, this application does not limit the type of light emitted by the light emitting module.
[0084] In addition, the present application can always control the light emitting module in the maze of the smoke alarm to emit light, that is, always emit light, or the controlling the light emitting module in the maze of the smoke alarm to emit light includes:
[0085] In response to detecting that the interval with the target time point reaches a predetermined interval, the light emitting module in the maze of the smoke alarm is controlled to emit light; wherein the target time point is: the time point when the light emitting module was last controlled to stop emitting light.
[0086] The present application can also control the light emitting module in the maze of the smoke alarm to emit light when it is detected that the interval with the target time point reaches a predetermined interval; the target time point is the time point when the light emitting module was last controlled to turn off the emission of light. That is, the time period between controlling the light emitting module to emit light and controlling the light emitting module to turn off the emission of light can be a time period for detecting smoke; the time interval between adjacent time periods for detecting smoke is a predetermined interval, for example: 1s; the time length of each time period for detecting smoke can be the same or different, for example: if the target electrical signal value is subsequently detected to exceed the preset smoke alarm threshold, it is necessary to further identify whether the alarm is caused by dust, and the time length of the time period for detecting smoke is longer, for example: 3s; if the target electrical signal value is subsequently detected to not exceed the preset smoke alarm threshold, the light emitting module can be directly controlled to turn off the emission of light, and the time length of the time period for detecting smoke is shorter, for example: 1s.
[0087] S102: Obtaining a target electrical signal value output by a light receiving module in the maze;
[0088] The target electrical signal value is a signal value of an electrical signal converted by the light receiving module into an optical signal of the received light;
[0089] After the light emitting module emits light, the light will be transmitted in the maze. After reflection, scattering, etc., the light receiving module in the maze receives the light, converts the light signal of the light into an electrical signal, and outputs the electrical signal value corresponding to the light signal of the light; wherein, the light emitting module can be connected to a photoelectric conversion circuit (the circuit may include a light receiving element). When the light signal is input into the circuit, the impedance of the light receiving element changes, forming a photocurrent, thereby converting the light signal into an electrical signal; the photoelectric conversion circuit can be understood as a mapping relationship between light signals and electrical signals. After the light signal is input into the photoelectric conversion circuit, the light signal is converted into an electrical signal and the corresponding electrical signal value is output.
[0090] The present application can obtain the target electrical signal value output by the light receiving module in the maze, so as to determine the subsequent smoke alarm. Among them, the present application can obtain the first electrical signal value output by the light receiving module as the target electrical signal value; or continuously obtain the electrical signal value output by the light receiving module to determine the target electrical signal value; or obtain the electrical signal value output by the light receiving module in real time, and use the current output electrical signal value as the target electrical signal value; the present application does not limit the method of obtaining the target electrical signal value.
[0091] S103: In response to the target electrical signal value exceeding a preset smoke alarm threshold, determining a degree value for characterizing a target fluctuation degree;
[0092] Wherein, the target fluctuation degree is the fluctuation degree of the electrical signal currently continuously output by the light receiving module;
[0093] When the target electrical signal value exceeds the preset smoke alarm threshold, it indicates that smoke particles may exist in the maze, and the smoke alarm is not directly triggered at this time; the present application takes into account the characteristics of dust particles, such as: the fluctuation degree of the electrical signal value of dust particles (the electrical signal value output by the light receiving module when only dust particles enter the maze) is less than the fluctuation degree of the electrical signal value of smoke particles (the electrical signal value output by the light receiving module when only smoke particles enter the maze); further, the degree of fluctuation is used to identify whether the target electrical signal value exceeding the preset smoke alarm threshold is caused by dust particles entering the maze, therefore, the target degree of fluctuation of the electrical signal currently continuously output by the light receiving module can be determined first.
[0094] Exemplarily, in one implementation, determining a degree value for characterizing a degree of target fluctuation includes:
[0095] Continuously acquiring the electrical signal value output by the light receiving module to obtain a plurality of sampled electrical signal values;
[0096] Based on the plurality of sampled electrical signal values, a degree value for characterizing a degree of target fluctuation is calculated.
[0097] When determining the degree value used to characterize the target fluctuation degree, the electrical signal value output by the light receiving module can be continuously acquired, which is equivalent to continuously sampling the electrical signal value output by the light receiving module to obtain multiple sampled electrical signal values; then, based on the multiple sampled electrical signal values, the degree value used to characterize the target fluctuation degree is calculated; at this time, the degree value can characterize the fluctuation degree of multiple sampled electrical signal values.
[0098] Among them, the main control module in the smoke alarm can call the sampling module to continuously sample the electrical signal values output by the light receiving module in chronological order. Uniform sampling or random sampling can be used, for example: sampling once every 0.1s, or sampling at random intervals, etc., so that the smoke alarm can obtain multiple sampled electrical signal values.
[0099] Specifically, the calculating, based on the multiple sampled electrical signal values, a degree value for characterizing the degree of target fluctuation includes:
[0100] Calculating the mean square error of the plurality of sampled electrical signal values to obtain a degree value for characterizing the degree of target fluctuation;
[0101] or,
[0102] For the sequence formed by each sampled electrical signal value in chronological order, a sliding window of a predetermined size is slid multiple times in the sequence to obtain multiple signal value arrays; for each signal value array, the mean square error of each sampled signal value in the signal value array is calculated to obtain multiple degree values for characterizing the degree of target fluctuation.
[0103] When calculating the degree value for characterizing the degree of target fluctuation based on multiple sampled electrical signal values, the mean square error of the multiple sampled electrical signals can be directly calculated (the mean square error at this time is used to characterize the degree of fluctuation of the multiple sampled electrical signal values with respect to the mean of each sampled electrical signal value) to obtain the degree value for characterizing the degree of target fluctuation; or, for a sequence formed by each sampled electrical signal value in time order, a sliding window of a predetermined size is slid multiple times in the sequence to obtain multiple signal value arrays, that is, each sampled electrical signal value in the sequence is divided into multiple signal value arrays according to a sliding window of a predetermined size, and the time length of each signal value array is the time length of the sliding window of a predetermined size (the predetermined size The time length of the sliding window can be 1s, and the time lengths of different signal value arrays may overlap, for example: the time length of the first signal value array is 0-1s, and the time length of the second signal value array is 0.5s-1.5s); for each signal value array (the number of sampled electrical signal values contained in different signal value arrays may be the same or different), the mean square error of each sampled electrical signal value in the signal value array is calculated (the mean square error at this time is used to characterize the degree of fluctuation of the mean of each sampled electrical signal value in the signal value array), and multiple degree values corresponding to multiple signal value arrays are obtained, which are used to characterize the degree of target fluctuation.
[0104] It should be noted that the finite difference method can also be used to analyze multiple sampled electrical signal values (the multiple sampled electrical signal values can also be divided into multiple signal value arrays for analysis during analysis) to determine the degree value used to characterize the target fluctuation degree. The present application does not limit the method for determining the degree value used to characterize the target fluctuation degree. Specifically, the finite difference method is a discretized calculation method for differentials and partial differential derivatives in numerical calculation methods. When analyzing the degree of fluctuation of multiple sampled electrical signal values, finite differences are performed on two or more adjacent sampled electrical signal values, and the results of the differences are used to approximate the derivatives or partial derivatives; the degree of fluctuation of multiple sampled electrical signal values is characterized by a continuously changing slope (the derivative approximated by the difference result).
[0105] In addition, due to the influence of dust particles, the smoke alarm may be contaminated by dust (e.g., a large amount of dust particles adhere to the inside of the smoke alarm, and the dust particles will not naturally leave the smoke alarm). At this time, the smoke alarm may not be able to accurately detect the smoke, resulting in missed alarms of the smoke alarm; therefore, in response to the target electrical signal value exceeding the preset smoke alarm threshold, before determining the degree value used to characterize the degree of target fluctuation, the method further includes:
[0106] Determine whether the target electrical signal value is lower than a preset maze contamination threshold value, and if it is determined to be lower, perform a step of determining a degree value used to characterize the degree of target fluctuation in response to the target electrical signal value exceeding a preset smoke alarm threshold value; wherein the maze contamination threshold value is used to characterize the electrical signal value output by the light receiving module when the dust concentration in the maze reaches a preset contamination concentration;
[0107] If it is detected to be not less than, the maze contamination alarm will be triggered.
[0108] The present application can also first determine whether the target electrical signal value is lower than the preset maze contamination threshold. If it is identified as lower, that is, the maze is not contaminated by dust, then the step of determining the degree value used to characterize the target fluctuation degree in response to the target electrical signal value exceeding the preset smoke alarm threshold can be normally executed; if it is identified as not lower than, that is, the maze is contaminated by dust, a maze contamination alarm can be triggered to prompt cleaning of the maze. Among them, the maze contamination alarm can be in the form of: issuing a maze contamination alarm signal, displaying maze contamination alarm information, etc., which is not limited by the present application.
[0109] Among them, the maze pollution threshold is used to characterize the electrical signal value output by the light receiving module when the dust concentration in the maze reaches the preset pollution concentration; the preset pollution concentration is used to determine whether the dust concentration in the maze has reached the concentration when the maze is polluted. When the target electrical signal value exceeds the maze pollution threshold, it means that the maze is polluted by dust. The greater the degree to which the target electrical signal value exceeds the maze pollution threshold, the deeper the degree of pollution of the maze.
[0110] In addition, the maze pollution threshold (or preset pollution concentration) can be set according to an empirical value, or the maze pollution threshold (or preset pollution concentration) can be adjusted according to actual conditions (for example, according to geographical area, weather conditions, etc. (the concentration of dust particles is different in different geographical areas and weather conditions, and the preset pollution concentration used to determine whether the dust concentration in the maze reaches the polluted state of the maze is also different)), and the present application does not limit this.
[0111] S104: Based on the determined degree value, determining whether the target fluctuation degree matches the specified fluctuation degree;
[0112] Wherein, the specified fluctuation degree is the fluctuation degree required for the light receiving module to continuously output the electrical signal if the particle entering the maze is dust;
[0113] After determining the degree value of the target fluctuation degree, it is possible to determine whether the target fluctuation degree matches the specified fluctuation degree based on the determined degree value. The specified fluctuation degree is the fluctuation degree that the light receiving module needs to have when continuously outputting an electrical signal if the particles entering the maze are dust. That is, it is determined whether the target fluctuation degree matches the specified fluctuation degree of the dust. If they match, it means that the particles entering the maze only contain dust particles and do not trigger a smoke alarm. If they do not match, it means that the particles entering the maze at least contain smoke particles (for example, only contain smoke particles; or contain dust particles and smoke particles. Due to the presence of smoke particles, the fluctuation degree of the smoke particles does not match the specified fluctuation degree of the dust), triggering a smoke alarm.
[0114] Exemplarily, in one implementation, judging whether the target fluctuation degree matches the specified fluctuation degree based on the determined degree value includes:
[0115] Based on the determined degree value and the preset dust fluctuation threshold, it is determined whether the target fluctuation degree matches the specified fluctuation degree; wherein the preset dust fluctuation threshold is used to characterize the maximum fluctuation degree of the electrical signal output by the light receiving module when the particles entering the maze are dust.
[0116] When judging whether the target fluctuation degree matches the specified fluctuation degree, it is possible to judge whether the target fluctuation degree matches the specified fluctuation degree based on the determined degree value and the preset dust fluctuation threshold; the preset dust fluctuation threshold is used to characterize: when the particle entering the maze is dust, the maximum fluctuation degree of the electrical signal output by the light receiving module; since the fluctuation degree of dust is smaller than the fluctuation degree of smoke, the present application judges whether the target fluctuation degree matches the specified fluctuation degree by setting a preset dust fluctuation threshold and judging whether the target fluctuation degree matches the specified fluctuation degree based on the determined degree value and the preset dust fluctuation threshold, and it is possible to judge whether the fluctuation degree of the electrical signal currently continuously output by the light receiving module is the fluctuation degree of dust; thereby avoiding false alarms caused by only dust entering the maze.
[0117] In addition, the dust fluctuation threshold can be set according to an empirical value, or the dust fluctuation threshold can be adjusted according to actual conditions (for example, according to the geographical area, weather conditions, etc.), and this application does not limit this.
[0118] Specifically, judging whether the target fluctuation degree matches the specified fluctuation degree based on the determined degree value and the preset dust fluctuation threshold value includes:
[0119] In the case where the number of the determined degree values is one, determining whether the determined degree value is greater than a preset dust fluctuation threshold, and if so, determining that the target fluctuation degree does not match the specified fluctuation degree;
[0120] or,
[0121] In the case where the number of the determined degree values is at least two, whether each of the determined degree values is greater than a preset dust fluctuation threshold is judged respectively to obtain a judgment result of each degree value; if the number of the judgment results characterized as being greater than is greater than a target quantity threshold, it is judged that the target fluctuation degree does not match the specified fluctuation degree; wherein the target quantity threshold is a quantity threshold determined based on the number of the determined degree values;
[0122] or,
[0123] When the number of determined degree values is at least two, an average value is calculated for each determined degree value to determine whether the average value is greater than a preset dust fluctuation threshold value. If so, it is determined that the target fluctuation degree does not match the specified fluctuation degree.
[0124] When judging whether the target fluctuation degree matches the specified fluctuation degree based on the determined degree value and the preset dust fluctuation threshold, different determination methods may exist due to the different numbers of determined degree values; illustratively, when the number of determined degree values is one, for example: the determined degree value is obtained by directly calculating the mean square error of multiple sampled electrical signal values; it can be judged whether the determined degree value is greater than the preset dust fluctuation threshold; if it is greater than, that is, the degree value of the target fluctuation degree is greater than the dust fluctuation threshold, it is judged that the target fluctuation degree does not match the specified fluctuation degree; indicating that the particles entering the maze contain at least smoke particles; if it is not greater than, that is, the degree value of the target fluctuation degree is not greater than the dust fluctuation threshold, it is judged that the target fluctuation degree matches the specified fluctuation degree, indicating that the particles entering the maze only contain dust particles.
[0125] In the case where the number of determined degree values is multiple, for example: the multiple degree values determined are: according to a sliding window of a predetermined size, multiple slidings are performed on the sequence formed by the sampled electrical signal values in the time sequence, and the mean square error of each sampled signal value in the multiple signal value arrays is obtained; in one implementation, in the case where the number of determined degree values is at least two, it is judged whether each determined degree value is greater than the preset dust fluctuation threshold value, and the judgment result of each degree value is obtained; if the number of judgment results characterized as greater than is greater than the target number threshold value, it is judged that the target fluctuation degree does not match the specified fluctuation degree; otherwise, it is judged that the target fluctuation degree matches the specified fluctuation degree. In another implementation, in the case where the number of determined degree values is at least two, the average value of each determined degree value can also be calculated to judge whether the average value is greater than the preset dust fluctuation threshold value. If so, it is judged that the target fluctuation degree does not match the specified fluctuation degree; otherwise, it is judged that the target fluctuation degree matches the specified fluctuation degree.
[0126] It should be noted that the target quantity threshold is a quantity threshold determined based on the number of determined degree values. The target quantity threshold may be half of the number of determined degree values. For example, if the number of determined degree values is 6, the target quantity threshold may be 3. Alternatively, when the target quantity threshold is less than the number of determined degree values, the target quantity threshold may be determined according to the number of determined degree values based on actual needs. For example, if the number of determined degree values is 5, the target quantity threshold may be 3. Of course, the target quantity threshold may also be 2, and this application does not limit this.
[0127] It can be seen that in the present application, when the number of determined degree values is one or more, different judgment methods can be used to accurately determine whether the target fluctuation degree matches the specified fluctuation degree.
[0128] S105: In response to the mismatch, a smoke alarm is triggered.
[0129] The present application can trigger a smoke alarm in response to the target fluctuation degree not matching the specified fluctuation degree, that is, the particles entering the maze contain at least smoke particles; exemplary, a smoke alarm signal can be issued, smoke alarm information can be displayed, etc., which is not limited in the present application. In addition, the smoke alarm and the above-mentioned maze pollution alarm can both last for a period of time to avoid the alarm not being perceived.
[0130] In addition, the method further comprises:
[0131] In response to the target electrical signal value not exceeding a preset smoke alarm threshold, controlling the light emitting module to turn off emitting light;
[0132] and / or,
[0133] After triggering the smoke alarm in response to the mismatch, the method further comprises:
[0134] The light emitting module is controlled to stop emitting light.
[0135] When the target electrical signal value does not exceed the preset smoke alarm threshold, the smoke alarm does not need to be triggered at this time, and the light emitting module can be directly controlled to turn off the emitted light; and after the smoke alarm is triggered, the light emitting module can also be controlled to turn off the emitted light.
[0136] In the technical solution of the present application, the acquisition, storage, use, processing, transmission, provision and disclosure of the electrical signal values, smoke alarm thresholds, target fluctuation degree values and specified fluctuation degrees, etc., are all carried out with the user's authorization.
[0137] The smoke alarm method provided in the embodiment of the present application is applied to a smoke alarm. The present application can control the light emitting module in the maze of the smoke alarm to emit light, and the light will be transmitted in the maze. The light receiving module in the maze can receive the light and convert the optical signal of the received light into an electrical signal. The target electrical signal value output by the light receiving module can be obtained to determine whether to trigger the smoke alarm. Specifically, it is first determined whether the target electrical signal value exceeds the preset smoke alarm threshold. In response to the target electrical signal value exceeding the preset smoke alarm threshold, the smoke alarm is not directly triggered as in the prior art. Instead, a target fluctuation degree value of the fluctuation degree of the electrical signal currently continuously output by the light receiving module is determined. Then, based on the determined degree value, it is determined whether the target fluctuation degree matches the specified fluctuation degree. The specified fluctuation degree is the fluctuation degree required when the light receiving module continuously outputs the electrical signal if the particles entering the maze are dust. If they do not match, that is, the particles entering the maze are not just dust, but at least include smoke, then the smoke alarm is triggered. It can be seen that when the target electrical signal value exceeds the preset smoke alarm threshold, the present application does not directly trigger the smoke alarm. Before triggering the smoke alarm, the present application first determines whether the fluctuation degree of the electrical signal currently continuously output by the light receiving module matches the specified fluctuation degree of the dust, that is, determines whether the particles entering the maze are only dust. If they do not match, that is, the particles entering the maze at least include smoke, the smoke alarm is triggered. Therefore, the false alarm of the smoke alarm can be reduced through this solution.
[0138] A smoke alarm method provided by the present application is introduced below in conjunction with another embodiment.
[0139] At present, more intelligent and accurate smoke alarms are needed to provide more reliable technical support for fire warning. At the same time, as society's awareness of fire prevention continues to increase, smoke dust recognition will also be more widely used and promoted.
[0140] This application provides a smoke alarm method that analyzes the characteristics of the fluctuation degree of dust and smoke in the time domain and frequency domain; smoke and dust have great differences in dynamic characteristics, such as Figure 2d As shown in , the electrical signal value of the smoke particles shows a strong degree of fluctuation, and the fluctuation amplitude is large (i.e., the fluctuation value is large); Figure 2c As shown in , the electrical signal value of the smoke particles may also have certain frequency characteristics (for example, the sampled electrical signal value of the smoke particles will be saturated, and when the sampling continues, the obtained curve rises and the slope tends to 0); Figure 2e As shown in , when the sampled electrical signal value of the smoke particles is saturated, the sampled electrical signal value of the smoke particles reaches the maze contamination threshold and fluctuates around the maze contamination threshold. In this case, it can be considered that the maze is contaminated by smoke particles. Figure 2aAs shown in , the fluctuation degree of the electrical signal value of dust particles is relatively weak, and the fluctuation amplitude is small, that is, the fluctuation of the sampled electrical signal value is small; Figure 2b As shown, the electrical signal value of dust particles may exceed the alarm value (smoke alarm threshold) and be lower than the contamination value (maze contamination threshold), thereby interfering with the smoke alarm; Figure 2a-2e In the figure, the horizontal axis is time and the vertical axis is the signal value of the sampled electrical signal. This application uses an algorithm to describe the characteristics of dust and smoke particles, completes the development of the algorithm, and performs repeated verification and tuning, which can effectively identify dust and smoke, thereby accurately performing smoke alarms.
[0141] This application uses a numerical fluctuation algorithm to describe the characteristics of dust. After the dust is scattered by photoelectric detection and received by the light receiving module, the electrical signal value increases significantly, and the continuous electrical signal value shows a certain volatility, and the volatility is within a certain range (i.e., within the dust fluctuation threshold). The degree of fluctuation of the electrical signal value can be determined by methods such as mean square error or finite difference. The volatility of the electrical signal value of dust is smaller than that of the electrical signal value of smoke. At the same time, the electrical signal value of dust lasts for a shorter time in the time domain, so dust can be effectively identified.
[0142] The present application can emit infrared light by controlling the on and off of the infrared transmitting tube (light transmitting module). The infrared light hits the dust and forms scattering. The receiving tube (light receiving module) receives the energy of the scattered infrared light. The dust exists in the maze for a relatively short time and the fluctuation degree is small. The fluctuation amplitude of the continuous electrical signal value is small. The fluctuation degree of the electrical signal value is detected by the mean square error or finite difference method, so the dust can be effectively identified.
[0143] like Figure 3 As shown, a smoke alarm method provided by the present application may include the following steps:
[0144] S301: Turn on the transmitting tube; that is, control the transmitting tube to turn on and emit light (that is, control the light emitting module to emit light); the light is scattered in the maze.
[0145] S302: The receiving tube outputs an electrical signal value; that is, after the light is scattered in the maze, the receiving tube receives the light, converts the optical signal of the light into an electrical signal, and outputs the electrical signal value.
[0146] S303: Obtaining a target electrical signal value; that is, the main control module MCU (Micro Control Unit) of the smoke alarm obtains the electrical signal value output by the receiving tube at a fixed time (eg, 1 second) as the target electrical signal value for subsequent processing.
[0147] S304: continuously acquiring multiple sampled electrical signal values; that is, the target electrical signal value exceeds the smoke alarm threshold and is lower than the maze pollution threshold. At this time, it is necessary to identify whether the particles entering the maze are dust. Multiple sampled electrical signal values can be continuously acquired, for example: increasing the frequency of acquiring electrical signal values, acquiring once every 0.1s, and acquiring 10 sampled electrical signal values in 1s; storing the acquired sampled electrical signal values at the same time, and grouping the sampled data through a sliding window to obtain multiple signal value arrays, such as: the length of the sliding window is 1s, and 5 signal value arrays are obtained, each of which has 10 sampled electrical signal values.
[0148] S305: Calculate the mean value: that is, after obtaining multiple sampled electrical signal values, in order to determine the degree of fluctuation, the mean value of the multiple sampled electrical signal values may be calculated first. For each signal value array, the mean value of the sampled electrical signal values in the signal value array is calculated.
[0149] S306: Calculate the fluctuation value; that is, after obtaining the mean value of the multiple sampled electrical signal values, continue to calculate the fluctuation values of the multiple sampled electrical signal values (that is, the degree value of the target fluctuation degree), such as: calculate the mean square deviation of the multiple sampled electrical signal values. For each signal value array, calculate the mean square deviation of each sampled electrical signal value in the signal value array relative to the mean value of the signal value array.
[0150] S307: Identify whether it is dust; that is, based on the fluctuation values of multiple sampled electrical signal values and the dust fluctuation threshold, identify whether the particles entering the maze are dust particles; if it is identified as dust (that is, the fluctuation value is not greater than the dust fluctuation threshold), that is, only dust particles enter the maze, and no alarm is generated at this time; if it is identified as at least containing smoke (that is, the fluctuation value is greater than the dust fluctuation threshold, at least smoke particles enter the maze, and there may also be dust particles entering the maze), then trigger a smoke alarm. Among them, the dust fluctuation threshold can be set to 320 by default. When the fluctuation value is within 320, it is considered that the particles entering the maze are only dust particles, and no alarm is generated; when the fluctuation value is greater than 320, it is considered that the particles entering the maze at least contain smoke particles, and a smoke alarm is triggered.
[0151] S308: Turn off the transmitting tube; that is, after identifying whether it is dust, or after triggering the maze pollution alarm, control the transmitting tube to turn off and turn off the emitted light (that is, the above-mentioned control light emitting module turns off the emitted light), and the process of detecting smoke is completed.
[0152] S309: Continuous identification; that is, the target electrical signal value is not lower than the maze contamination threshold. At this time, for accuracy considerations, it is possible to continuously identify whether the continuous electrical signal value output by the receiving tube is not lower than the maze contamination threshold. If yes (that is, the electrical signal value output by the receiving tube is not lower than the maze contamination threshold and lasts for a period of time), execute step S310.
[0153] S310: triggering the labyrinth contamination alarm; if the value of the electrical signal output by the receiving tube is not lower than the labyrinth contamination threshold and lasts for a period of time, it is considered that the labyrinth is contaminated, and the labyrinth contamination alarm is triggered to prompt the need to clean the labyrinth.
[0154] The present application provides a method for distinguishing and filtering out false alarms of smoke alarms caused by non-fire factors such as dust, which is essential for improving the accuracy and reliability of smoke alarms; in fire warning systems, smoke alarms are a key component. However, non-fire factors such as dust often cause false alarms in smoke detectors, which not only increases unnecessary panic and confusion, but may also affect the normal use of smoke alarms. Therefore, the research and development and application of dust recognition for smoke sensors are of great significance for improving the accuracy and reliability of fire warning systems.
[0155] Although this application describes the implementation principle, implementation method, implementation steps, and the effects and experience improvements of smoke alarm detection and identification of dust, in fact, as long as it involves the way of photoelectric identification of dust by smoke sensors, it can be quickly and efficiently implemented with the technical solution of this application. Therefore, as long as it involves the ideas of this application, it should be protected by this application. By extension, as long as it involves the way of photoelectric identification of dust by smoke alarms, including but not limited to the solution of this application, it should also be protected by this application.
[0156] Based on the above method embodiment, the present application also provides a smoke alarm device, which is applied to a smoke alarm, such as Figure 4 As shown, the device comprises:
[0157] A first control module 410, used to control the light emitting module in the maze of the smoke alarm to emit light;
[0158] The acquisition module 420 is used to acquire the target electrical signal value output by the light receiving module in the maze; wherein the target electrical signal value is the signal value of the light signal of the light received by the light receiving module converted into an electrical signal;
[0159] The determination module 430 is used to determine a degree value used to characterize the target fluctuation degree in response to the target electrical signal value exceeding a preset smoke alarm threshold; wherein the target fluctuation degree is the fluctuation degree of the electrical signal currently continuously output by the light receiving module;
[0160] The first judgment module 440 judges whether the target fluctuation degree matches a specified fluctuation degree based on the determined degree value; wherein the specified fluctuation degree is the fluctuation degree required for the light receiving module to continuously output an electrical signal if the particle entering the maze is dust;
[0161] The alarm module 450 is configured to trigger a smoke alarm in response to a mismatch.
[0162] The smoke alarm device provided in the embodiment of the present application is applied to a smoke alarm. The present application can control the light emitting module in the maze of the smoke alarm to emit light, and the light will be transmitted in the maze. The light receiving module in the maze can receive the light and convert the optical signal of the received light into an electrical signal. The target electrical signal value output by the light receiving module can be obtained to determine whether to trigger the smoke alarm. Specifically, it is first determined whether the target electrical signal value exceeds the preset smoke alarm threshold. In response to the target electrical signal value exceeding the preset smoke alarm threshold, the smoke alarm is not directly triggered as in the prior art. Instead, a target fluctuation degree value of the fluctuation degree of the electrical signal currently continuously output by the light receiving module is determined. Then, based on the determined degree value, it is determined whether the target fluctuation degree matches the specified fluctuation degree. The specified fluctuation degree is the fluctuation degree required when the light receiving module continuously outputs the electrical signal if the particles entering the maze are dust. If they do not match, that is, the particles entering the maze are not just dust, but at least include smoke, then the smoke alarm is triggered. It can be seen that when the target electrical signal value exceeds the preset smoke alarm threshold, the present application does not directly trigger the smoke alarm. Before triggering the smoke alarm, the present application first determines whether the fluctuation degree of the electrical signal currently continuously output by the light receiving module matches the specified fluctuation degree of the dust, that is, determines whether the particles entering the maze are only dust. If they do not match, that is, the particles entering the maze at least include smoke, the smoke alarm is triggered. Therefore, the false alarm of the smoke alarm can be reduced through this solution.
[0163] Optionally, the determining module includes:
[0164] An acquisition submodule, used for continuously acquiring the electrical signal value output by the light receiving module to obtain a plurality of sampled electrical signal values;
[0165] The calculation submodule is used to calculate a degree value used to characterize the degree of target fluctuation based on the multiple sampled electrical signal values.
[0166] Optionally, the computing submodule is specifically used to:
[0167] Calculating the mean square error of the plurality of sampled electrical signal values to obtain a degree value for characterizing the degree of target fluctuation;
[0168] or,
[0169] For the sequence formed by each sampled electrical signal value in chronological order, a sliding window of a predetermined size is slid multiple times in the sequence to obtain multiple signal value arrays; for each signal value array, the mean square error of each sampled signal value in the signal value array is calculated to obtain multiple degree values for characterizing the degree of target fluctuation.
[0170] Optionally, the first determination module includes:
[0171] A judgment submodule is used to judge whether the target fluctuation degree matches the specified fluctuation degree based on the determined degree value and the preset dust fluctuation threshold; wherein the preset dust fluctuation threshold is used to characterize the maximum fluctuation degree of the electrical signal output by the light receiving module when the particle entering the maze is dust.
[0172] Optionally, the judgment submodule is specifically used to:
[0173] In the case where the number of the determined degree values is one, determining whether the determined degree value is greater than a preset dust fluctuation threshold, and if so, determining that the target fluctuation degree does not match the specified fluctuation degree;
[0174] or,
[0175] In the case where the number of the determined degree values is at least two, whether each of the determined degree values is greater than a preset dust fluctuation threshold is judged respectively to obtain a judgment result of each degree value; if the number of the judgment results characterized as being greater than is greater than a target quantity threshold, it is judged that the target fluctuation degree does not match the specified fluctuation degree; wherein the target quantity threshold is a quantity threshold determined based on the number of the determined degree values;
[0176] or,
[0177] When the number of determined degree values is at least two, an average value is calculated for each determined degree value to determine whether the average value is greater than a preset dust fluctuation threshold value. If so, it is determined that the target fluctuation degree does not match the specified fluctuation degree.
[0178] Optionally, the device further comprises:
[0179] A second judgment module is used to judge whether the target electrical signal value is lower than a preset maze pollution threshold value, and if it is identified as being lower, execute the step of determining a degree value used to characterize the degree of target fluctuation in response to the target electrical signal value exceeding a preset smoke alarm threshold value; wherein the maze pollution threshold value is used to characterize the electrical signal value output by the light receiving module when the dust concentration in the maze reaches a preset pollution concentration;
[0180] If it is detected to be not less than, the maze contamination alarm will be triggered.
[0181] Optionally, the device further comprises:
[0182] a second control module, configured to control the light emitting module to turn off emitting light in response to the target electrical signal value not exceeding a preset smoke alarm threshold;
[0183] and / or,
[0184] The third control module is used to control the light emitting module to turn off the light emission after the smoke alarm is triggered in response to the mismatch.
[0185] Optionally, the first control module is specifically configured to:
[0186] In response to detecting that the interval with the target time point reaches a predetermined interval, the light emitting module in the maze of the smoke alarm is controlled to emit light; wherein the target time point is: the time point when the light emitting module was last controlled to stop emitting light.
[0187] The present application also provides a smoke alarm. Figure 5 As shown, including:
[0188] Memory 501, used for storing computer programs;
[0189] The processor 502 is used to implement any of the above-mentioned smoke alarm methods when executing the program stored in the memory 501.
[0190] Furthermore, the smoke alarm may further include a communication bus and / or a communication interface, and the processor 502, the communication interface, and the memory 501 communicate with each other via the communication bus.
[0191] The communication bus mentioned in the above smoke alarm can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0192] The communication interface is used for communication between the above-mentioned smoke alarm and other devices.
[0193] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0194] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0195] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned smoke alarm methods are implemented.
[0196] In another embodiment provided by the present application, a computer program product including instructions is also provided, and when the computer program product is run on a computer, the computer is enabled to execute any of the smoke alarm methods in the above embodiments.
[0197] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.
[0198] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0199] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0200] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims
1. A smoke alarm method, characterized in that: Applied to a smoke alarm, the method comprises: Control the light emitting module in the maze of the smoke alarm to emit light; Obtaining a target electrical signal value output by a light receiving module in the maze; wherein the target electrical signal value is a signal value of an electrical signal converted by the light receiving module from an optical signal of the light received; In response to the target electrical signal value exceeding a preset smoke alarm threshold, determining a degree value for characterizing a target fluctuation degree; wherein the target fluctuation degree is a fluctuation degree of the electrical signal currently continuously output by the light receiving module; Based on the determined degree value, judging whether the target fluctuation degree matches a specified fluctuation degree; wherein the specified fluctuation degree is the fluctuation degree required for the light receiving module to continuously output an electrical signal if the particle entering the maze is dust; In response to a mismatch, a smoke alarm is triggered.
2. The method according to claim 1, characterized in that The step of determining a degree value for characterizing a degree of target fluctuation includes: Continuously acquiring the electrical signal value output by the light receiving module to obtain a plurality of sampled electrical signal values; Based on the plurality of sampled electrical signal values, a degree value for characterizing a degree of target fluctuation is calculated.
3. The method according to claim 2, characterized in that The step of calculating a degree value for characterizing a degree of target fluctuation based on the plurality of sampled electrical signal values comprises: Calculating the mean square error of the plurality of sampled electrical signal values to obtain a degree value for characterizing the degree of target fluctuation; or, For the sequence formed by each sampled electrical signal value in chronological order, a sliding window of a predetermined size is slid multiple times in the sequence to obtain multiple signal value arrays; for each signal value array, the mean square error of each sampled signal value in the signal value array is calculated to obtain multiple degree values for characterizing the degree of target fluctuation.
4. The method according to claim 1, characterized in that: The determining, based on the determined degree value, whether the target fluctuation degree matches the specified fluctuation degree includes: Based on the determined degree value and the preset dust fluctuation threshold, it is determined whether the target fluctuation degree matches the specified fluctuation degree; wherein the preset dust fluctuation threshold is used to characterize the maximum fluctuation degree of the electrical signal output by the light receiving module when the particles entering the maze are dust.
5. The method according to claim 4, characterized in that The determining whether the target fluctuation degree matches a specified fluctuation degree based on the determined degree value and a preset dust fluctuation threshold value includes: In the case where the number of the determined degree values is one, determining whether the determined degree value is greater than a preset dust fluctuation threshold, and if so, determining that the target fluctuation degree does not match the specified fluctuation degree; or, In the case where the number of the determined degree values is at least two, whether each of the determined degree values is greater than a preset dust fluctuation threshold is judged respectively to obtain a judgment result of each degree value; if the number of the judgment results characterized as being greater than is greater than a target quantity threshold, it is judged that the target fluctuation degree does not match the specified fluctuation degree; wherein the target quantity threshold is a quantity threshold determined based on the number of the determined degree values; or, When the number of determined degree values is at least two, an average value is calculated for each determined degree value to determine whether the average value is greater than a preset dust fluctuation threshold value. If so, it is determined that the target fluctuation degree does not match the specified fluctuation degree.
6. The method according to claim 1, characterized in that Before determining the degree value used to characterize the degree of target fluctuation in response to the target electrical signal value exceeding the preset smoke alarm threshold, the method further includes: Determine whether the target electrical signal value is lower than a preset maze contamination threshold value, and if it is determined to be lower, perform a step of determining a degree value used to characterize the degree of target fluctuation in response to the target electrical signal value exceeding a preset smoke alarm threshold value; wherein the maze contamination threshold value is used to characterize the electrical signal value output by the light receiving module when the dust concentration in the maze reaches a preset contamination concentration; If it is detected to be not less than, the maze contamination alarm will be triggered.
7. The method according to claim 1, characterized in that The method further comprises: In response to the target electrical signal value not exceeding a preset smoke alarm threshold, controlling the light emitting module to turn off emitting light; and / or, After triggering the smoke alarm in response to the mismatch, the method further comprises: The light emitting module is controlled to stop emitting light.
8. The method according to claim 7, characterized in that The controlling the light emitting module in the maze of the smoke alarm to emit light comprises: In response to detecting that the interval with the target time point reaches a predetermined interval, the light emitting module in the maze of the smoke alarm is controlled to emit light; wherein the target time point is: the time point when the light emitting module was last controlled to stop emitting light.
9. A smoke alarm device, characterized in that: Applied to a smoke alarm, the device comprises: A first control module, used to control the light emitting module in the maze of the smoke alarm to emit light; An acquisition module, used for acquiring a target electrical signal value output by a light receiving module in the maze; wherein the target electrical signal value is a signal value obtained by converting an optical signal of the light received by the light receiving module into an electrical signal; A determination module, configured to determine a degree value for characterizing a target fluctuation degree in response to the target electrical signal value exceeding a preset smoke alarm threshold; wherein the target fluctuation degree is a fluctuation degree of the electrical signal currently continuously output by the light receiving module; A first judgment module, based on the determined degree value, judges whether the target fluctuation degree matches a specified fluctuation degree; wherein the specified fluctuation degree is the fluctuation degree required for the light receiving module to continuously output an electrical signal if the particle entering the maze is dust; The alarm module is configured to trigger a smoke alarm in response to a mismatch.
10. A smoke alarm, characterized in that: include: Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-8 when executing a program stored in a memory.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.