Search

CN-121982821-A - Smoke detection method, device, electronic equipment and storage medium

CN121982821ACN 121982821 ACN121982821 ACN 121982821ACN-121982821-A

Abstract

The invention discloses a smoke detection method, a device, electronic equipment and a storage medium, wherein the method comprises the steps of obtaining duty ratio information of a control signal corresponding to a photoelectric smoke sensor and first initial counting information corresponding to the control signal; the method comprises the steps of controlling a photoelectric smoke sensor to be started under the condition that first initial counting information is smaller than a first preset counting threshold value, determining the first preset counting threshold value based on duty ratio information, sampling an electric signal corresponding to the photoelectric smoke sensor under the condition that the first initial counting information is larger than or equal to a second preset counting threshold value to obtain sampling information, determining the second preset counting threshold value based on preset sampling time, performing analog-to-digital conversion on the sampling information under the condition that the first initial counting information is larger than or equal to a third preset counting threshold value to obtain conversion information, and further determining a first smoke detection result. The embodiment of the invention can realize accurate sampling of the photoelectric smoke sensor and improve the sampling accuracy.

Inventors

  • LIAN YIN
  • QI JIANMING
  • LI FEI

Assignees

  • 上海庭臻信息科技有限公司

Dates

Publication Date
20260505
Application Date
20251226

Claims (10)

  1. 1. A smoke detection method, the method comprising: Acquiring duty ratio information of a control signal corresponding to a photoelectric smoke sensor and first initial counting information corresponding to the control signal; Controlling the photoelectric smoke sensor to be started under the condition that the first initial counting information is smaller than a first preset counting threshold value, wherein the first preset counting threshold value is determined based on the duty ratio information; Sampling an electric signal corresponding to the photoelectric smoke sensor to obtain sampling information under the condition that the first initial counting information is larger than or equal to a second preset counting threshold value, wherein the second preset counting threshold value is determined based on preset sampling time; performing analog-to-digital conversion on the sampling information to obtain conversion information under the condition that the first initial counting information is larger than or equal to a third preset counting threshold value; and determining a first smoke detection result according to the conversion information.
  2. 2. The method according to claim 1, wherein the method further comprises: Updating the first initial counting information to obtain first updated counting information under the condition that the first initial counting information is smaller than the third preset counting threshold value; And re-using the first updated count information as the first initial count information, repeatedly executing the step of controlling the photoelectric smoke sensor to be started until sampling information is obtained under the condition that the first initial count information is smaller than a first preset count threshold value, and performing analog-to-digital conversion on the sampling information until the first updated count information is larger than or equal to a third preset count threshold value to obtain conversion information.
  3. 3. The method according to claim 1, wherein in case the first initial count information is greater than or equal to a third preset count threshold, performing analog-to-digital conversion on the sampled information to obtain converted information, the method further comprises: Updating the first initial counting information to obtain second updated counting information; The second updated count information is re-used as the first initial count information, and the operation of controlling the photoelectric smoke sensor to be started until the conversion information is obtained is repeatedly executed under the condition that the first initial count information is smaller than a first preset count threshold value until a first preset condition is met, so that at least one piece of conversion information is obtained; correspondingly, the determining the first smoke detection result according to the conversion information comprises: And determining the first smoke detection result according to at least one piece of conversion information.
  4. 4. A method according to claim 3, wherein said determining said first smoke detection result from at least one of said conversion information comprises: carrying out average processing on at least one piece of conversion information to obtain target conversion information; and determining the first smoke detection result according to the target conversion information.
  5. 5. The method according to claim 1, wherein the method further comprises: Controlling the photoelectric smoke sensor to be closed under the condition that the first initial counting information is larger than or equal to the first preset counting threshold value; updating the first initial counting information to obtain third updated counting information under the condition that the first initial counting information is smaller than or equal to a fourth preset counting threshold value; The third updated count information is re-used as the first initial count information, the step of controlling the photoelectric smoke sensor to be closed until the third updated count information is obtained when the first initial count information is larger than or equal to the first preset count threshold value is repeatedly executed until the third updated count information is larger than the fourth preset count threshold value, and reset processing is carried out on the third updated count information to obtain second initial count information; And re-using the second initial counting information as the first initial counting information, and executing the steps of controlling the photoelectric smoke sensor to be started and determining a first smoke detection result to obtain a second smoke detection result under the condition that the first initial counting information is smaller than a first preset counting threshold value.
  6. 6. The method according to claim 1, wherein the obtaining the duty cycle information of the control signal corresponding to the photoelectric smoke sensor includes: Acquiring the cycle information of the control signal and the preset starting time length information of the photoelectric smoke sensor; and determining the duty ratio information based on the period information and the preset opening duration information.
  7. 7. The method of any one of claims 1 to 6, wherein the first smoke detection results comprise abnormal smoke detection results and non-abnormal smoke detection results, and wherein determining the first smoke detection results based on the conversion information comprises: Under the condition that the conversion information meets a second preset condition, determining the first smoke detection result as the abnormal smoke detection result, wherein the abnormal smoke detection result is used for representing that the smoke concentration is larger than or equal to a preset concentration threshold value; and under the condition that the conversion information does not meet the second preset condition, determining the first smoke detection result as the non-abnormal smoke detection result, wherein the non-abnormal smoke detection result is used for representing that the smoke concentration is smaller than the preset concentration threshold value.
  8. 8. A smoke detection apparatus, said apparatus comprising: The acquisition module is used for acquiring duty ratio information of a control signal corresponding to the photoelectric smoke sensor and first initial counting information corresponding to the control signal; The first control module is used for controlling the photoelectric smoke sensor to be started under the condition that the first initial counting information is smaller than a first preset counting threshold value, wherein the first preset counting threshold value is determined based on the duty ratio information; The sampling module is used for sampling the electric signal corresponding to the photoelectric smoke sensor to obtain sampling information when the first initial counting information is larger than or equal to a second preset counting threshold value, wherein the second preset counting threshold value is determined based on preset sampling time; the conversion module is used for carrying out analog-to-digital conversion on the sampling information to obtain conversion information under the condition that the first initial counting information is larger than or equal to a third preset counting threshold value; And the first smoke detection result determining module is used for determining a first smoke detection result according to the conversion information.
  9. 9. An electronic device for smoke detection, characterized in that it comprises a processor and a memory, in which at least one instruction is stored, which is loaded and executed by the processor to implement the smoke detection method according to any one of claims 1 to 7.
  10. 10. A computer storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the smoke detection method of any one of claims 1 to 7.

Description

Smoke detection method, device, electronic equipment and storage medium Technical Field The present invention relates to the field of smoke detection technologies, and in particular, to a smoke detection method, a device, an electronic apparatus, and a storage medium. Background The smoke sensor can automatically detect the current smoke concentration to realize fire prevention such as a battery pack and the like, and is most widely used. The collection principle of the photoelectric smoke sensor is that smoke refracts light to enable the receiving tube to receive light signals, the receiving tube converts the light signals into electric signals, and the intensity of the electric signals can reflect the smoke concentration. The existing acquisition method is not high in data sampling accuracy if the electric signal intensity of the receiving tube is read after a certain time delay through software, so that the accuracy of smoke detection is affected, and the condition of missing report and false report is easy to occur. Disclosure of Invention Aiming at the problems in the prior art, the invention discloses a smoke detection method, a device, electronic equipment and a storage medium, which can realize accurate sampling of a photoelectric smoke sensor and improve sampling accuracy. The technical scheme disclosed by the invention is as follows: according to an aspect of the disclosed embodiments of the present invention, there is provided a smoke detection method including: Acquiring duty ratio information of a control signal corresponding to a photoelectric smoke sensor and first initial counting information corresponding to the control signal; Controlling the photoelectric smoke sensor to be started under the condition that the first initial counting information is smaller than a first preset counting threshold value, wherein the first preset counting threshold value is determined based on the duty ratio information; Sampling an electric signal corresponding to the photoelectric smoke sensor to obtain sampling information under the condition that the first initial counting information is larger than or equal to a second preset counting threshold value, wherein the second preset counting threshold value is determined based on preset sampling time; performing analog-to-digital conversion on the sampling information to obtain conversion information under the condition that the first initial counting information is larger than or equal to a third preset counting threshold value; and determining a first smoke detection result according to the conversion information. Optionally, the method further comprises: Updating the first initial counting information to obtain first updated counting information under the condition that the first initial counting information is smaller than the third preset counting threshold value; And re-using the first updated count information as the first initial count information, repeatedly executing the step of controlling the photoelectric smoke sensor to be started until sampling information is obtained under the condition that the first initial count information is smaller than a first preset count threshold value, and performing analog-to-digital conversion on the sampling information until the first updated count information is larger than or equal to a third preset count threshold value to obtain conversion information. Optionally, when the first initial count information is greater than or equal to a third preset count threshold, performing analog-to-digital conversion on the sampling information to obtain conversion information, and then the method further includes: Updating the first initial counting information to obtain second updated counting information; The second updated count information is re-used as the first initial count information, and the operation of controlling the photoelectric smoke sensor to be started until the conversion information is obtained is repeatedly executed under the condition that the first initial count information is smaller than a first preset count threshold value until a first preset condition is met, so that at least one piece of conversion information is obtained; correspondingly, the determining the first smoke detection result according to the conversion information comprises: And determining the first smoke detection result according to at least one piece of conversion information. Optionally, the determining the first smoke detection result according to at least one of the conversion information includes: carrying out average processing on at least one piece of conversion information to obtain target conversion information; and determining the first smoke detection result according to the target conversion information. Optionally, the method further comprises: Controlling the photoelectric smoke sensor to be closed under the condition that the first initial counting information is larger than or equal to the first preset counting th