Smoke alarm method, device, smoke alarm equipment and computer storage medium
By collecting and analyzing the voltage sampling points in the output waveform of the op amp, we can determine whether there is electromagnetic wave interference in the smoke alarm device, which solves the problem of false alarms in traditional equipment in an interfering environment, and improves the accuracy and reliability of smoke alarms.
Patent Information
- Application Number
- CN202411487465.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-10-24
AI Technical Summary
Traditional smoke alarm equipment can easily lead to false alarms and poor anti-false alarm capabilities under interference from wireless electromagnetic wave radiation, and cannot accurately detect smoke concentration.
By collecting multiple voltage sampling points in the output waveform of the op amp, we can judge whether there is electromagnetic interference in the smoke alarm device, and use the average sampling voltage and voltage difference to determine whether the smoke alarm threshold is continuously exceeded to ensure accurate alarm in an interfering environment.
It improves the anti-false alarm equipment's ability to resist false alarms and reliability in complex electromagnetic environments, ensuring that smoke can be accurately detected and alarms can be triggered in the event of interference.
Smart Images

Figure CN119028072B_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 equipment and computer storage medium. Background Art
[0002] Smoke alarm equipment can detect and sound the alarm in the early stages of a fire, reminding people to escape in time and notifying the fire department to come and put out the fire, thereby effectively avoiding the serious consequences caused by the fire.
[0003] Most smoke alarm devices on the market now add a shielding cover to the original signal input end to improve the ability to resist electromagnetic radiation. The traditional smoke alarm method usually obtains the smoke concentration at the current moment and the smoke concentration at the previous moment, and calculates the difference between the two. When it is greater than the smoke alarm threshold for three consecutive times, the smoke alarm will be triggered. When the smoke alarm device is interfered by the radiation of radio electromagnetic waves, it is easy to cause inaccurate collected smoke concentration. Therefore, the traditional smoke alarm method has poor anti-false alarm ability under the premise of being unable to detect whether it is interfered by the radiation of radio electromagnetic waves. Summary of the invention
[0004] In order to overcome the deficiencies of the prior art, the present invention provides a smoke alarm method, a device, a smoke alarm device and a computer storage medium, which improve the anti-false alarm capability of the smoke alarm device and the reliability in a complex electromagnetic environment.
[0005] A first aspect of the present application provides a smoke alarm method, the method comprising:
[0006] When receiving an operational amplifier output waveform collected when the operational amplifier is turned on but the infrared emitting tube is turned off, collecting a plurality of first voltage sampling points from the operational amplifier output waveform, and when detecting that the infrared emitting tube is turned on, collecting a second voltage sampling point from the operational amplifier output waveform collected when the operational amplifier and the infrared emitting tube are turned on;
[0007] Determine a first sampling voltage corresponding to each voltage sampling point among the plurality of first voltage sampling points, and a second sampling voltage corresponding to the second voltage sampling point;
[0008] determining whether the smoke alarm device has electromagnetic wave interference based on the first sampled voltage;
[0009] When electromagnetic wave interference exists in the smoke alarm device, determining a first average sampling voltage among the first sampling voltages;
[0010] Determining whether a first voltage difference between the second sampled voltage and the first average sampled voltage is greater than a smoke alarm threshold value for a first preset number of times continuously;
[0011] When it is determined that the first voltage difference is continuously greater than the smoke alarm threshold value for the first preset number of times, the smoke alarm device is controlled to perform a smoke alarm.
[0012] In an optional implementation, judging whether the smoke alarm device has electromagnetic wave interference based on the first sampled voltage includes:
[0013] Determining a maximum sampling voltage and a minimum sampling voltage among the first sampling voltages;
[0014] Calculating a second voltage difference between the maximum sampling voltage and the minimum sampling voltage;
[0015] When the second voltage difference is greater than the first preset voltage, it is determined that electromagnetic wave interference exists in the smoke alarm device.
[0016] In an optional implementation, judging whether the smoke alarm device has electromagnetic wave interference based on the first sampled voltage further includes:
[0017] Determining a calibrated average voltage among the first sampled voltages;
[0018] Calculating a third voltage difference between the first average sampled voltage and the calibrated average voltage;
[0019] When the third voltage difference is greater than the second preset voltage, it is determined that electromagnetic wave interference exists in the smoke alarm device;
[0020] When the second voltage difference is smaller than the first preset voltage, and the third voltage difference is smaller than the second preset voltage, it is determined that there is no electromagnetic wave interference in the smoke alarm device.
[0021] In an optional embodiment, the method further comprises:
[0022] When there is no electromagnetic wave interference in the smoke alarm device, determining whether the first voltage difference is greater than the smoke alarm threshold value within a second preset number of times;
[0023] When it is determined that the first voltage difference is continuously greater than the smoke alarm threshold value for the second preset number of times, the smoke alarm device is controlled to perform a smoke alarm.
[0024] In an optional embodiment, the method further comprises:
[0025] When it is determined that the first voltage difference is less than the smoke alarm threshold within the first preset number of times, performing the operation of collecting a plurality of first voltage sampling points and second voltage sampling points from the operational amplifier output waveform;
[0026] When it is determined that the first voltage difference is less than the smoke alarm threshold within the second preset number of times, the operation of collecting a plurality of first voltage sampling points and second voltage sampling points from the operational amplifier output waveform is performed.
[0027] In an optional implementation, after controlling the smoke alarm device to perform a smoke alarm, the method further includes:
[0028] Collecting a plurality of third voltage sampling points and a fourth voltage sampling point from the operational amplifier output waveform;
[0029] Determine a third sampling voltage corresponding to each voltage sampling point among the plurality of third voltage sampling points, and a fourth sampling voltage corresponding to the fourth voltage sampling point;
[0030] determining whether the smoke alarm device has electromagnetic wave interference based on the third sampled voltage;
[0031] When electromagnetic wave interference exists in the smoke alarm device, determining a second average sampling voltage in the third sampling voltage;
[0032] determining whether a fourth voltage difference between the fourth sampling voltage and the second average sampling voltage is continuously greater than the smoke alarm threshold within the first preset number of times;
[0033] When it is determined that the fourth voltage difference is continuously greater than the smoke alarm threshold value within the first preset number of times, the smoke alarm device is controlled to perform a smoke alarm.
[0034] In an optional embodiment, the method further comprises:
[0035] Determining whether the smoke alarm device has established a communication connection with a preset terminal;
[0036] When it is determined that the smoke alarm device establishes a communication connection with the preset terminal, uploading the sensor data collected by the smoke alarm device to the preset terminal according to a preset time period, so that the preset terminal identifies the fire risk mode of the environment where the smoke alarm device is located according to the sensor data;
[0037] The smoke alarm device is controlled to perform a smoke alarm based on the fire risk model.
[0038] A second aspect of the present application provides a smoke alarm device, which is arranged in a smoke alarm device, and the device comprises:
[0039] The acquisition module is used to acquire a plurality of first voltage sampling points from the operational amplifier output waveform when receiving the operational amplifier output waveform acquired when the operational amplifier is turned on but the infrared emitting tube is turned off, and to acquire a second voltage sampling point from the operational amplifier output waveform acquired when the operational amplifier and the infrared emitting tube are turned on when it is detected that the infrared emitting tube is turned on;
[0040] A first determining module, configured to determine a first sampling voltage corresponding to each voltage sampling point among the plurality of first voltage sampling points, and a second sampling voltage corresponding to the second voltage sampling point;
[0041] A first judging module, configured to judge whether the smoke alarm device has electromagnetic wave interference based on the first sampled voltage;
[0042] a second determining module, configured to determine a first average sampling voltage in the first sampling voltages when electromagnetic wave interference exists in the smoke alarm device;
[0043] A second judgment module is used to judge whether a first voltage difference between the second sampling voltage and the first average sampling voltage is greater than a smoke alarm threshold value for a first preset number of times continuously;
[0044] The alarm module is used to control the smoke alarm device to generate a smoke alarm when it is determined that the first voltage difference is greater than the smoke alarm threshold value continuously for the first preset number of times.
[0045] A third aspect of the present application provides a smoke alarm device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the smoke alarm method when executing the computer program.
[0046] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned smoke alarm method are implemented.
[0047] In summary, the smoke alarm method, device, smoke alarm device and computer storage medium provided by the present application, when receiving the output waveform of the operational amplifier, collect multiple first voltage sampling points and second voltage sampling points from the output waveform of the operational amplifier, and determine the first sampling voltage corresponding to each voltage sampling point in the multiple first voltage sampling points and the second sampling voltage corresponding to the second voltage sampling point, then judge whether the smoke alarm device has electromagnetic wave interference based on the first sampling voltage, when the smoke alarm device has electromagnetic wave interference, determine the first average sampling voltage of the first sampling voltage, and calculate the first voltage difference between the second sampling voltage and the first average sampling voltage, then judge whether the first voltage difference is greater than the smoke alarm threshold value for a first preset number of times continuously, when the first voltage difference is greater than the smoke alarm threshold value for the first preset number of times continuously, control the smoke alarm device to perform a smoke alarm, judge whether the smoke alarm device has electromagnetic wave interference through the sampling voltage, when there is interference, by comparing the first voltage difference with the smoke alarm threshold value for multiple times, it is ensured that the alarm can be accurately generated even in an interference environment, which not only improves the anti-false alarm capability of the smoke alarm device, but also enhances the detection reliability of the smoke alarm device in a complex environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a flowchart of a smoke alarm method shown in an embodiment of the present application;
[0049] Figure 2 is another flow chart of a smoke alarm method shown in an embodiment of the present application;
[0050] Figure 3 is a waveform diagram of an op amp output waveform shown in an embodiment of the present application;
[0051] Figure 4 is a functional module diagram of a smoke alarm device shown in an embodiment of the present application;
[0052] Figure 5 It is a structural schematic diagram of a smoke alarm device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0054] The following will clearly and completely describe the concept, specific structure and technical effects of the present invention in combination with the embodiments and drawings, so as to fully understand the purpose, characteristics and effects of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, other embodiments obtained by technicians in this field without creative work are all within the scope of protection of the present invention. In addition, all the connection / connection relationships involved in the patent do not refer to the direct connection of components, but refer to the formation of a better connection structure by adding or reducing connection accessories according to the specific implementation situation. The various technical features in the invention can be combined interchangeably without conflicting with each other.
[0055] Reference Figure 1 , which is a flow chart of a smoke alarm method according to an embodiment of the present application, the smoke alarm method comprises the following steps.
[0056] S11, when an operational amplifier output waveform is received, collecting a plurality of first voltage sampling points and second voltage sampling points from the operational amplifier output waveform.
[0057] In some embodiments, the smoke alarm device includes a sensor and an operational amplifier. The sensor is responsible for detecting the smoke concentration in the environment. When the smoke concentration changes, the sensor generates a corresponding electrical signal. The electrical signal is amplified by the operational amplifier to form an operational amplifier output waveform. In addition, the smoke alarm device can receive the operational amplifier output waveform through an internal AD converter or other signal receiving module. When receiving the operational amplifier output waveform, the smoke alarm device can display the operational amplifier output waveform through an oscilloscope, such as Figure 3 As shown. In the output waveform of the operational amplifier, N voltage sampling points are selected, for example, N=5, which are voltage sampling point A, voltage sampling point B, voltage sampling point C, voltage sampling point D and voltage sampling point E, and the corresponding sampling voltages are V A 、V B 、V C 、V D 、V E Among them, the waveforms from A to D in the op amp output waveform are the op amp output waveforms collected when the smoke alarm device does not turn on the infrared emitting tube, the waveforms from D to E are the op amp output waveforms collected when the smoke alarm device turns on the infrared emitting tube, and the waveforms from E onwards are the op amp output waveforms collected when the smoke alarm device turns off the infrared emitting tube and the op amp.
[0058] When the smoke alarm device is not interfered by electromagnetic waves, when the smoke alarm device only turns on the op amp but turns off the infrared emitting tube, the collected op amp output waveform should be a smooth straight line parallel to the X-axis (that is, the sampling voltage corresponding to the voltage sampling point on the waveform remains basically unchanged). However, if the smoke alarm device is interfered by electromagnetic waves, the op amp output waveform collected when the smoke alarm device only turns on the op amp but turns off the infrared emitting tube becomes a curve (that is, the sampling voltage corresponding to the voltage sampling point on the waveform is high and low, and each sampling voltage is different). Therefore, according to Figure 3 It can be seen that the waveform from A to D is the waveform when the operational amplifier is turned on, but the infrared emitting tube is turned off, and the waveform from D to E is the waveform when the operational amplifier and the infrared emitting tube are turned on, wherein the infrared light is reflected by the maze wall, resulting in fine particles in the maze. Therefore, it can be clearly observed that after the infrared emitting tube is turned on, the waveform from D to E will become higher. In addition, the smoke alarm device can only detect whether there is a fire in the current environment if the infrared emitting tube is turned on. Therefore, in an embodiment of the present application, the smoke alarm device can collect multiple voltage sampling points (referred to as the first voltage sampling point, such as voltage sampling point A, voltage sampling point B, voltage sampling point C and voltage sampling point D) from the operational amplifier output waveform collected when the smoke alarm device turns on the operational amplifier but turns off the infrared emitting tube, and collect one voltage sampling point (referred to as the second voltage sampling point, such as voltage sampling point E) from the operational amplifier output waveform collected when the smoke alarm device turns on the operational amplifier and the infrared emitting tube.
[0059] It should be noted that the smoke alarm device is a low-power product. If the number of voltage sampling points is too small, the data sample is obviously insufficient, which affects the accuracy of the judgment. Therefore, five voltage sampling points are set in the embodiment of the present application.
[0060] In order to more clearly understand the inventive concept of the present application, the multiple first voltage sampling points in the embodiment of the present application are described by taking voltage sampling point A, voltage sampling point B, voltage sampling point C and voltage sampling point D as examples, and the second voltage sampling point is described by taking voltage sampling point E as an example. S12, determining a first sampling voltage corresponding to each voltage sampling point in the multiple first voltage sampling points, and a second sampling voltage corresponding to the second voltage sampling point.
[0061] In some embodiments, the smoke alarm device may be provided with a sampling clock or timer for sampling the output waveform of the op amp at a fixed time interval, wherein the sampling points are divided into two groups, one group being the first voltage sampling points and the other group being the second voltage sampling points. The number of sampling points and the sampling interval may be set according to actual needs. That is, when the smoke alarm device turns on the op amp but turns off the infrared transmitting tube, four voltage sampling points are collected from the collected op amp output waveform, namely voltage sampling point A, voltage sampling point B, voltage sampling point C and voltage sampling point D, and when the smoke alarm device turns on the op amp and turns on the infrared transmitting tube, one voltage sampling point is collected from the collected op amp output waveform as voltage sampling point E. Next, the smoke alarm device may convert the collected analog voltage signal into a digital voltage value through an AD converter, that is, determine the first sampling voltage V corresponding to voltage sampling point A. A , the first sampling voltage V corresponding to the voltage sampling point B B , the first sampling voltage V corresponding to the voltage sampling point C C The first sampling voltage V corresponding to the voltage sampling point D D , and the second sampling voltage V corresponding to the voltage sampling point E E .
[0062] In addition, the sampling clock or timer set in the smoke alarm device can also be used to control the opening and closing of the operational amplifier and the infrared emitting tube. The smoke alarm device can turn on and off the operational amplifier and the infrared emitting tube according to a preset time period, so as to facilitate the subsequent acquisition of the operational amplifier output waveform and the acquisition of multiple voltage sampling points in the operational amplifier output waveform to meet the needs.
[0063] S13: Determine whether the smoke alarm device has electromagnetic wave interference based on the first sampled voltage.
[0064] Electromagnetic interference usually causes abnormal fluctuations or noise in the output waveform of the op amp. That is, when the smoke alarm device is interfered by electromagnetic waves, V A 、V B 、V C and V D There will be high voltage and low voltage between them, so smoke alarm equipment can be based on V A 、V B 、V C and V D The fluctuation of the electromagnetic wave can be used to determine whether the smoke alarm device is interfered by electromagnetic waves.
[0065] In an optional embodiment, reference is made to Figure 2 , the smoke alarm device can determine V A 、V B 、V C and V D The maximum sampling voltage (called Vmax ) and the minimum sampling voltage (called V min ) respectively, and calculate V A 、V B 、V C and V D The average sampling voltage (called the first average sampling voltage V mid ) is how much. In addition, after collecting V A 、V B 、V C and V D After that, the smoke alarm device can be A 、V B 、V C and V D Calibrate and calculate the calibrated V A 、V B 、V C and V D The nominal average voltage (called V mid0 ). Next, calculate V max With V min The voltage difference between the two is called the second voltage difference, where the second voltage difference = V max -V min . And calculate V mid With V mid0 The voltage difference between them is called the third voltage difference, where the third voltage difference = | V mid -V mid0 |. The second voltage difference is compared with a preset voltage threshold (i.e., the first preset voltage), and the third voltage difference is compared with another preset voltage threshold (i.e., the second preset voltage). When the second voltage difference is greater than the first preset voltage, or the third voltage difference is greater than the second preset voltage, it can be determined that the smoke alarm device is interfered with by electromagnetic waves. When the second voltage difference is less than or equal to the first preset voltage, and the third voltage difference is less than or equal to the second preset voltage, it can be determined that the smoke alarm device is not interfered with by electromagnetic waves.
[0066] It should be noted that the first preset voltage and the second preset voltage are both set according to actual usage and experience. If the first preset voltage and the second preset voltage are set too low, it is easy to mistakenly judge that the smoke alarm device is interfered by electromagnetic waves. If the first preset voltage and the second preset voltage are set too high, it is not easy to judge that the smoke alarm device is interfered by electromagnetic waves. Therefore, in the embodiment of the present application, the first preset voltage is set to 40mV and the second preset voltage is set to 150mV.
[0067] For example, refer to Figure 2 As shown, determine V max -V min>40mV, and | V mid -V mid0 |>150mV, when V max -V min >40mV, or | V mid -V mid0 |>150mV, it can be determined that there is electromagnetic interference in the smoke alarm equipment; when V max -V min ≤40mV, and | V mid -V mid0 |≤150mV, it can be determined that there is no electromagnetic wave interference in the smoke alarm equipment.
[0068] Through the above optional implementation, by judging whether the smoke alarm device is interfered by electromagnetic waves, it is helpful to accurately detect smoke in the presence of interference, thereby indirectly improving the working ability of the smoke alarm device in a complex electromagnetic environment.
[0069] S14: when electromagnetic wave interference exists in the smoke alarm device, determine a first average sampling voltage in the first sampling voltages.
[0070] S15, determining whether a first voltage difference between the second sampling voltage and the first average sampling voltage is greater than a smoke alarm threshold value for a first preset number of times in a row.
[0071] In some embodiments, when the first average sampling voltage V is determined according to step S13 mid , and determine that there is electromagnetic interference in the smoke alarm device, the smoke alarm device can calculate V E With V mid The voltage difference between is called the first voltage difference, where the first voltage difference = V E -V mid Then, the smoke alarm device can continue to determine whether the first voltage difference is greater than the smoke alarm threshold (called V alarm ).
[0072] S16: When it is determined that the first voltage difference is greater than the smoke alarm threshold value for the first preset number of times, controlling the smoke alarm device to generate a smoke alarm.
[0073] Refer to Figure 2 In some embodiments, if the first voltage difference is greater than the smoke alarm threshold V alarm, the smoke alarm device can be considered that the smoke alarm device has detected smoke. At this time, the smoke alarm device will trigger an alarm mechanism, such as sounding an alarm, sending an alarm signal to a central monitoring system, etc. alarm At this time, it is considered that the smoke alarm device has not detected smoke and the smoke alarm is not triggered.
[0074] In an optional embodiment, the method further comprises:
[0075] When there is no electromagnetic wave interference in the smoke alarm device, determining whether the first voltage difference is greater than the smoke alarm threshold value within a second preset number of times;
[0076] When it is determined that the first voltage difference is continuously greater than the smoke alarm threshold value for the second preset number of times, the smoke alarm device is controlled to perform a smoke alarm.
[0077] Refer to Figure 2 In some embodiments, when V max -V min ≤40mV, and | V mid -V mid0 |≤150mV, it can be determined that the smoke alarm device does not have electromagnetic interference. When it is determined that the smoke alarm device does not have electromagnetic interference, the smoke alarm device will also calculate V E With V mid and the voltage difference between them, and the first voltage difference is compared with V alarm Compare and determine whether the first voltage difference is greater than V within another preset number of times threshold (i.e., a second preset number of times, such as 3 times). alarm If the first voltage difference is greater than the smoke alarm threshold value V for a second preset number of times, alarm , the smoke alarm device can be considered that the smoke alarm device has detected smoke. At this time, the smoke alarm device will trigger an alarm mechanism, such as sounding an alarm, sending an alarm signal to a central monitoring system, etc. alarm At this time, it is considered that the smoke alarm device has not detected smoke and the smoke alarm is not triggered.
[0078] It should be noted that the smoke alarm threshold V alarm It is the calibrated alarm value. The smoke alarm is calibrated in a smoke box after leaving the factory. alarmThat is, the calibrated sensitivity. In addition, the first preset number and the second preset number are set according to the actual situation and comprehensive considerations. If the first preset number is set too small, the anti-electromagnetic wave interference effect will not be achieved. If the first preset number is set too large, or the second preset number is set too large, a fire in a wireless electromagnetic wave environment may not easily trigger a fire alarm. Therefore, in the embodiment of the present application, the first preset number is set to 10 times, and the second preset number is set to 3 times.
[0079] For example, please refer to Figure 2 , when V max -V min >40mV, or | V mid -V mid0 |>150mV, and V E -V mid The value is greater than the smoke alarm threshold V for 10 consecutive times alarm When the smoke alarm device triggers the alarm mechanism, or when V max -V min ≤40mV, and |V mid -V mid0 |≤150mV, and V E -V mid The value is greater than the smoke alarm threshold V for three consecutive times. alarm At that time, the smoke alarm device will trigger the alarm mechanism.
[0080] Through the above optional implementation, by setting the first preset number and the second preset number, in the case of electromagnetic wave interference, it is necessary to judge that the first voltage difference is greater than the smoke alarm threshold for multiple times (such as 10 times) to trigger the alarm, which greatly reduces the false alarm rate caused by a single misjudgment. At the same time, in the absence of interference, the alarm can be triggered with a smaller number of comparisons (such as 3 times), which improves the response speed while still maintaining a high accuracy.
[0081] In an optional embodiment, the method further comprises:
[0082] When it is determined that the first voltage difference is less than the smoke alarm threshold within the first preset number of times, performing the operation of collecting a plurality of first voltage sampling points and second voltage sampling points from the operational amplifier output waveform;
[0083] When it is determined that the first voltage difference is less than the smoke alarm threshold within the second preset number of times, the operation of collecting a plurality of first voltage sampling points and second voltage sampling points from the operational amplifier output waveform is performed.
[0084] Among them, a collection counter can be set in the smoke alarm device to record the number of times the voltage sampling points are collected. Figure 2In some embodiments, within the first preset number of times or the second preset number of times, the first voltage difference is less than or equal to V alarm When the smoke alarm device detects no smoke, the smoke alarm device initializes the acquisition calculator and re-acquires new voltage sampling points in the same manner as step S11 to perform a new round of smoke alarm detection. Specifically, the first voltage difference between the second sampling voltage and the first average sampling voltage of the first sampling voltage is calculated, and the first voltage difference is compared with V alarm . In the presence of electromagnetic wave interference, if within the first preset number of times, all first voltage differences are greater than the smoke alarm threshold, a smoke alarm is triggered. In the absence of electromagnetic wave interference, if within the second preset number of times, all first voltage differences are greater than the smoke alarm threshold, a smoke alarm is also triggered. When any of the above conditions is met, the acquisition counter is reset, and multiple first voltage sampling points and second voltage sampling points are re-collected from the operational amplifier output waveform according to the same implementation method as step S11 until smoke is detected.
[0085] In an optional implementation, after controlling the smoke alarm device to perform a smoke alarm, the method further includes:
[0086] Collecting a plurality of third voltage sampling points and a fourth voltage sampling point from the operational amplifier output waveform;
[0087] Determine a third sampling voltage corresponding to each voltage sampling point among the plurality of third voltage sampling points, and a fourth sampling voltage corresponding to the fourth voltage sampling point;
[0088] determining whether the smoke alarm device has electromagnetic wave interference based on the third sampled voltage;
[0089] When electromagnetic wave interference exists in the smoke alarm device, determining a second average sampling voltage in the third sampling voltage;
[0090] determining whether a fourth voltage difference between the fourth sampling voltage and the second average sampling voltage is continuously greater than the smoke alarm threshold within the first preset number of times;
[0091] When it is determined that the fourth voltage difference is continuously greater than the smoke alarm threshold value within the first preset number of times, the smoke alarm device is controlled to perform a smoke alarm.
[0092] Reference Figure 2In some embodiments, after it is determined that the smoke alarm device triggers the smoke alarm, the smoke alarm device may receive the op amp output waveform again, and re-collect multiple first voltage sampling points and second voltage sampling points from the new op amp output waveform, or re-collect multiple first voltage sampling points and second voltage sampling points that meet the requirements from the op amp output waveform received in step S11. That is, the first sampling voltage and the second sampling voltage are continuously collected in the same embodiment as the above steps S11 to S16, and the first sampling voltage and the second sampling voltage are processed to determine whether the smoke alarm device has electromagnetic wave interference, and further determine when the smoke alarm device performs a smoke alarm in the presence of electromagnetic wave interference, and determine when the smoke alarm device performs a smoke alarm in the absence of electromagnetic wave interference.
[0093] In an optional embodiment, the method further comprises:
[0094] Determining whether the smoke alarm device has established a communication connection with a preset terminal;
[0095] When it is determined that the smoke alarm device establishes a communication connection with the preset terminal, uploading the sensor data collected by the smoke alarm device to the preset terminal according to a preset time period, so that the preset terminal identifies the fire risk mode of the environment where the smoke alarm device is located according to the sensor data;
[0096] The smoke alarm device is controlled to perform a smoke alarm based on the fire risk model.
[0097] The sensor data may include the sampled voltage collected above, and may also include temperature data and humidity data, etc. The preset terminal refers to the background of the communication connection of the smoke alarm device in the current environment, such as a server or receiving device of a fire control center, a property management center, etc. In some embodiments, when the smoke alarm device successfully establishes a communication connection with the preset terminal, the smoke alarm device sends the collected sensor data to the preset terminal according to a preset time period (such as every minute, every hour, etc.). Then, the preset terminal may pre-process the sensor data, including data cleaning, data format conversion, etc., to ensure the accuracy and readability of the data, and store the pre-processed sensor data. Furthermore, the preset terminal may use a data analysis algorithm (such as machine learning, deep learning, etc.) to analyze the received sensor data to identify potential fire risk patterns, such as abnormally high smoke concentration, sharp temperature rise, etc. If it is determined that the fire risk is high, the alarm mechanism of the smoke alarm device is triggered. Specifically, the preset terminal can build an initial recognition model based on machine learning algorithms (such as SVM, random forest, etc.) or deep learning algorithms (such as CNN, RNN, etc.), and then extract features related to fire risk from sensor data, such as the changing trend of smoke concentration, temperature fluctuation, etc., and use feature selection methods to screen out features that have an important impact on fire risk identification. Then, the above-mentioned feature input values are trained in the initial recognition model to obtain a target recognition model. Whenever sensor data uploaded by the smoke alarm device is received, the sensor data is input into the trained target recognition model to identify the fire risk pattern. When the model identifies a potential fire risk pattern, such as an abnormal increase in smoke concentration, a sharp increase in temperature, etc., the smoke alarm device can trigger a smoke alarm.
[0098] Compared with the prior art method of adding a shielding cover to the original input end of the signal to improve the ability to resist electromagnetic wave radiation, the present application collects multiple voltage sampling points in the output waveform of the operational amplifier, and judges whether the smoke alarm device is interfered with by electromagnetic waves based on the voltage sampling points. When there is interference, the first voltage difference is compared with the smoke alarm threshold value multiple times to ensure accurate alarm in an interference environment; when there is no interference, the response speed is improved by a smaller number of comparisons, which not only improves the anti-false alarm ability of the smoke alarm device, but also enhances the detection reliability of the smoke alarm device in a complex environment.
[0099] Reference Figure 4 , which is a functional module diagram of a smoke alarm device shown in an embodiment of the present application.
[0100] In some embodiments, the smoke alarm device 40 may include a plurality of functional modules composed of computer program segments. The computer programs of the various program segments of the smoke alarm device 40 may be stored in a memory of the smoke alarm device and executed by at least one processor to perform (see Figure 1 Description) Function of smoke alarm.
[0101] In this embodiment, the smoke alarm device can be divided into multiple functional modules according to the functions it performs. The functional modules may include: an acquisition module 401, a first determination module 402, a first judgment module 403, a second determination module 404, a second judgment module 405 and an alarm module 406. The module referred to in this application refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0102] The acquisition module 401 is used to acquire multiple first voltage sampling points from the operational amplifier output waveform when receiving the operational amplifier output waveform acquired when the operational amplifier is turned on but the infrared emitting tube is turned off, and to acquire the second voltage sampling point from the operational amplifier output waveform acquired when the operational amplifier and the infrared emitting tube are turned on when it is detected that the infrared emitting tube is turned on.
[0103] The first determining module 402 is configured to determine a first sampling voltage corresponding to each voltage sampling point among the plurality of first voltage sampling points, and a second sampling voltage corresponding to the second voltage sampling point.
[0104] The first judgment module 403 is used to judge whether the smoke alarm device has electromagnetic wave interference based on the first sampled voltage.
[0105] The second determining module 404 is configured to determine a first average sampled voltage in the first sampled voltages when electromagnetic wave interference exists in the smoke alarm device.
[0106] The second judgment module 405 is used to judge whether a first voltage difference between the second sampling voltage and the first average sampling voltage is greater than a smoke alarm threshold value for a first preset number of times in a row.
[0107] The alarm module 406 is configured to control the smoke alarm device to generate a smoke alarm when it is determined that the first voltage difference is greater than the smoke alarm threshold value for a first preset number of times.
[0108] The first judgment module 403 is further specifically used to: determine the maximum sampling voltage and the minimum sampling voltage in the first sampling voltages; calculate a second voltage difference between the maximum sampling voltage and the minimum sampling voltage; and when the second voltage difference is greater than the first preset voltage, determine that electromagnetic wave interference exists in the smoke alarm device.
[0109] The first judgment module 403 is further specifically used to: determine a calibrated average voltage in the first sampled voltage; calculate a third voltage difference between the first average sampled voltage and the calibrated average voltage; when the third voltage difference is greater than a second preset voltage, determine that electromagnetic wave interference exists in the smoke alarm device; when the second voltage difference is less than the first preset voltage, and the third voltage difference is less than the second preset voltage, determine that electromagnetic wave interference does not exist in the smoke alarm device.
[0110] The alarm module 406 is further configured to: when there is no electromagnetic wave interference to the smoke alarm device, determine whether the first voltage difference is greater than the smoke alarm threshold value for a second preset number of times; and control the smoke alarm device to sound a smoke alarm when it is determined that the first voltage difference is greater than the smoke alarm threshold value for a second preset number of times.
[0111] The acquisition module 401 is further configured to: when it is determined that the first voltage difference is less than the smoke alarm threshold within the first preset number of times, execute the operation of acquiring multiple first voltage sampling points and second voltage sampling points from the operational amplifier output waveform; when it is determined that the first voltage difference is less than the smoke alarm threshold within the second preset number of times, execute the operation of acquiring multiple first voltage sampling points and second voltage sampling points from the operational amplifier output waveform.
[0112] The alarm module 406 is further used to: collect multiple third voltage sampling points and fourth voltage sampling points from the operational amplifier output waveform; determine the third sampling voltage corresponding to each voltage sampling point in the multiple third voltage sampling points, and the fourth sampling voltage corresponding to the fourth voltage sampling point; determine whether the smoke alarm device has electromagnetic wave interference based on the third sampling voltage; when the smoke alarm device has electromagnetic wave interference, determine the second average sampling voltage in the third sampling voltages; determine whether a fourth voltage difference between the fourth sampling voltage and the second average sampling voltage is continuously greater than the smoke alarm threshold value within the first preset number of times; when it is determined that the fourth voltage difference is continuously greater than the smoke alarm threshold value within the first preset number of times, control the smoke alarm device to perform a smoke alarm.
[0113] The alarm module 406 is further used to: determine whether the smoke alarm device has established a communication connection with the preset terminal; when it is determined that the smoke alarm device has established a communication connection with the preset terminal, upload the sensor data collected by the smoke alarm device to the preset terminal according to a preset time period, so that the preset terminal identifies the fire risk mode of the environment in which the smoke alarm device is located according to the sensor data; and control the smoke alarm device to perform a smoke alarm based on the fire risk mode.
[0114] It should be understood that the various variations and specific embodiments of the smoke alarm method provided in the above embodiments are also applicable to the smoke alarm device of this embodiment. Through the above detailed description of the smoke alarm method, those skilled in the art can clearly know the implementation method of the smoke alarm device in this embodiment. For the sake of brevity of the specification, it will not be described in detail here.
[0115] See also Figure 5 FIG. 1 is a schematic diagram of the structure of a smoke alarm device according to an embodiment of the present application. In a preferred embodiment of the present application, the smoke alarm device 5 includes a memory 51 , at least one processor 52 and at least one communication bus 53 .
[0116] Those skilled in the art should understand that Figure 5 The structure of the smoke alarm device 5 shown does not constitute a limitation of the embodiment of the present application. The smoke alarm device 5 may also include more or less other hardware or software than shown in the figure, or a different arrangement of components.
[0117] In the above embodiments provided in the present application, it should be understood that the disclosed methods, devices, computer-readable storage media, and smoke alarm devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple components or modules can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or components or modules, which can be electrical, mechanical or other forms.
[0118] The components described as separate components may or may not be physically separated, and the components shown as components may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the components may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each component may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0120] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0121] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0122] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0123] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A smoke alarm method, characterized in that: Applied to a smoke alarm device, the method comprises: When receiving an operational amplifier output waveform collected when the operational amplifier is turned on but the infrared emitting tube is turned off, collecting a plurality of first voltage sampling points from the operational amplifier output waveform, and when detecting that the infrared emitting tube is turned on, collecting a second voltage sampling point from the operational amplifier output waveform collected when the operational amplifier and the infrared emitting tube are turned on; Determine a first sampling voltage corresponding to each voltage sampling point among the plurality of first voltage sampling points, and a second sampling voltage corresponding to the second voltage sampling point; determining whether the smoke alarm device has electromagnetic wave interference based on the first sampled voltage; When electromagnetic wave interference exists in the smoke alarm device, determining a first average sampling voltage among the first sampling voltages; Determining whether a first voltage difference between the second sampled voltage and the first average sampled voltage is greater than a smoke alarm threshold value for a first preset number of times continuously; When it is determined that the first voltage difference is continuously greater than the smoke alarm threshold value for the first preset number of times, the smoke alarm device is controlled to perform a smoke alarm.
2. The smoke alarm method according to claim 1, characterized in that: The determining whether the smoke alarm device has electromagnetic wave interference based on the first sampled voltage includes: Determining a maximum sampling voltage and a minimum sampling voltage among the first sampling voltages; Calculating a second voltage difference between the maximum sampling voltage and the minimum sampling voltage; When the second voltage difference is greater than the first preset voltage, it is determined that electromagnetic wave interference exists in the smoke alarm device.
3. The smoke alarm method according to claim 2, characterized in that: The determining whether the smoke alarm device has electromagnetic wave interference based on the first sampled voltage further includes: Determining a calibrated average voltage among the first sampled voltages; Calculating a third voltage difference between the first average sampled voltage and the calibrated average voltage; When the third voltage difference is greater than the second preset voltage, it is determined that electromagnetic wave interference exists in the smoke alarm device; When the second voltage difference is smaller than the first preset voltage, and the third voltage difference is smaller than the second preset voltage, it is determined that there is no electromagnetic wave interference in the smoke alarm device.
4. The smoke alarm method according to claim 1, characterized in that: The method further comprises: When there is no electromagnetic wave interference in the smoke alarm device, determining whether the first voltage difference is greater than the smoke alarm threshold value within a second preset number of times; When it is determined that the first voltage difference is continuously greater than the smoke alarm threshold value for the second preset number of times, the smoke alarm device is controlled to perform a smoke alarm.
5. The smoke alarm method according to claim 4, characterized in that: The method further comprises: When it is determined that the first voltage difference is less than the smoke alarm threshold within the first preset number of times, performing the operation of collecting a plurality of first voltage sampling points and second voltage sampling points from the operational amplifier output waveform; When it is determined that the first voltage difference is less than the smoke alarm threshold within the second preset number of times, the operation of collecting a plurality of first voltage sampling points and second voltage sampling points from the operational amplifier output waveform is performed.
6. The smoke alarm method according to claim 1, characterized in that: After controlling the smoke alarm device to perform a smoke alarm, the method further includes: Collecting a plurality of third voltage sampling points and a fourth voltage sampling point from the operational amplifier output waveform; Determine a third sampling voltage corresponding to each voltage sampling point among the plurality of third voltage sampling points, and a fourth sampling voltage corresponding to the fourth voltage sampling point; determining whether the smoke alarm device has electromagnetic wave interference based on the third sampled voltage; When electromagnetic wave interference exists in the smoke alarm device, determining a second average sampling voltage in the third sampling voltage; determining whether a fourth voltage difference between the fourth sampling voltage and the second average sampling voltage is continuously greater than the smoke alarm threshold within the first preset number of times; When it is determined that the fourth voltage difference is continuously greater than the smoke alarm threshold value within the first preset number of times, the smoke alarm device is controlled to perform a smoke alarm.
7. The smoke alarm method according to any one of claims 1 to 6, characterized in that: The method further comprises: Determining whether the smoke alarm device has established a communication connection with a preset terminal; When it is determined that the smoke alarm device establishes a communication connection with the preset terminal, uploading the sensor data collected by the smoke alarm device to the preset terminal according to a preset time period, so that the preset terminal identifies the fire risk mode of the environment where the smoke alarm device is located according to the sensor data; The smoke alarm device is controlled to perform a smoke alarm based on the fire risk model.
8. A smoke alarm device, characterized in that: Set in a smoke alarm device, the device comprises: The acquisition module is used to acquire a plurality of first voltage sampling points from the operational amplifier output waveform when receiving the operational amplifier output waveform acquired when the operational amplifier is turned on but the infrared emitting tube is turned off, and to acquire a second voltage sampling point from the operational amplifier output waveform acquired when the operational amplifier and the infrared emitting tube are turned on when it is detected that the infrared emitting tube is turned on; A first determining module, configured to determine a first sampling voltage corresponding to each voltage sampling point among the plurality of first voltage sampling points, and a second sampling voltage corresponding to the second voltage sampling point; A first judging module, configured to judge whether the smoke alarm device has electromagnetic wave interference based on the first sampled voltage; a second determining module, configured to determine a first average sampling voltage in the first sampling voltages when electromagnetic wave interference exists in the smoke alarm device; A second judgment module is used to judge whether a first voltage difference between the second sampling voltage and the first average sampling voltage is greater than a smoke alarm threshold value for a first preset number of times continuously; The alarm module is used to control the smoke alarm device to generate a smoke alarm when it is determined that the first voltage difference is greater than the smoke alarm threshold value continuously for the first preset number of times.
9. A smoke alarm device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the smoke alarm method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the smoke alarm method according to any one of claims 1 to 7 are implemented.