CN105606501B - Dust concentration detecting method and device - Google Patents
Dust concentration detecting method and device Download PDFInfo
- Publication number
- CN105606501B CN105606501B CN201510953970.8A CN201510953970A CN105606501B CN 105606501 B CN105606501 B CN 105606501B CN 201510953970 A CN201510953970 A CN 201510953970A CN 105606501 B CN105606501 B CN 105606501B
- Authority
- CN
- China
- Prior art keywords
- dust concentration
- statistical period
- value
- concentration value
- dust
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N15/00—Investigating characteristics of particles; Investigating permeability, pore-volume or surface-area of porous materials
- G01N15/06—Investigating concentration of particle suspensions
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N15/00—Investigating characteristics of particles; Investigating permeability, pore-volume or surface-area of porous materials
- G01N15/06—Investigating concentration of particle suspensions
- G01N15/075—Investigating concentration of particle suspensions by optical means
Landscapes
- Chemical & Material Sciences (AREA)
- Dispersion Chemistry (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
Abstract
本公开是关于一种粉尘浓度检测方法及装置,属于数据统计技术领域。本公开按照第一粉尘浓度值和第一预设阈值范围之间的数值关系,调整当前统计周期,得到第一统计周期,获取第二粉尘浓度值和第三粉尘浓度值,根据第二粉尘浓度估计值与第三粉尘浓度估计值之间的数值关系,确定第一统计周期的粉尘浓度值。如此,根据上一个统计周期的粉尘浓度值与第一预设阈值范围之间的数值关系,动态地调整第一统计周期,并且,通过第一统计周期的粉尘浓度估计值与第二统计周期的粉尘浓度估计值之间的数值关系,确定第一统计周期的粉尘浓度值,使得在检测环境发生变化时,可以快速、准确地确定变化后的环境中的粉尘浓度值,进一步提高了粉尘浓度检测的灵敏度。
The disclosure relates to a dust concentration detection method and device, and belongs to the technical field of data statistics. According to the numerical relationship between the first dust concentration value and the first preset threshold value range, the present disclosure adjusts the current statistical cycle to obtain the first statistical cycle, obtains the second dust concentration value and the third dust concentration value, and according to the second dust concentration The numerical relationship between the estimated value and the third dust concentration estimated value determines the dust concentration value of the first statistical period. In this way, according to the numerical relationship between the dust concentration value of the last statistical cycle and the first preset threshold range, the first statistical cycle is dynamically adjusted, and the dust concentration estimated value of the first statistical cycle is compared with the value of the second statistical cycle. The numerical relationship between the estimated values of dust concentration determines the dust concentration value of the first statistical period, so that when the detection environment changes, the dust concentration value in the changed environment can be quickly and accurately determined, further improving the dust concentration detection. sensitivity.
Description
技术领域technical field
本公开涉及数据统计技术领域,特别涉及一种粉尘浓度检测方法及装置。The present disclosure relates to the technical field of data statistics, in particular to a dust concentration detection method and device.
背景技术Background technique
随着人们对生活质量和身体健康的要求越来越高,空气净化器等具有环境监控设备开始走进千家万户。例如,空气净化器通常会配置有基于光散射原理的粉尘传感器,以便检测空气中的粉尘,当粉尘传感器检测到空气中的粉尘时,会根据粉尘颗粒的大小产生相应时长的电平信号,而空气净化器可以对该电平信号的持续时长进行统计,以便进行进一步地计算,以得到粉尘浓度,对于其他环境监控设备,例如,粉尘浓度监控仪,也可以采取上述技术从而得到粉尘浓度。As people's requirements for quality of life and physical health are getting higher and higher, air purifiers and other environmental monitoring equipment have begun to enter thousands of households. For example, an air purifier is usually equipped with a dust sensor based on the principle of light scattering to detect dust in the air. When the dust sensor detects dust in the air, it will generate a level signal of a corresponding duration according to the size of the dust particle. The air purifier can count the duration of the level signal for further calculation to obtain the dust concentration. For other environmental monitoring equipment, such as dust concentration monitors, the above technology can also be used to obtain the dust concentration.
在相关技术中,粉尘浓度检测方法包括:每隔一定统计周期对粉尘传感器所发出的电平信号的持续时长进行一次统计,可以得到一个统计数值,例如,若预设周期设置为100秒,则每隔100秒,对100秒内的采样数据进行一次统计,再基于该统计周期内所统计到的电平信号的持续时长占有比,计算得到粉尘浓度。In related technologies, the dust concentration detection method includes: counting the duration of the level signal sent by the dust sensor every certain statistical period, and a statistical value can be obtained. For example, if the preset period is set to 100 seconds, then Every 100 seconds, the sampling data within 100 seconds is counted once, and then the dust concentration is calculated based on the duration occupancy ratio of the level signal counted in the statistical period.
发明内容Contents of the invention
本公开实施例提供了一种粉尘浓度检测方法及装置。所述技术方案如下:Embodiments of the present disclosure provide a dust concentration detection method and device. Described technical scheme is as follows:
根据本公开实施例的第一方面,提供了一种粉尘浓度检测方法,包括:According to a first aspect of an embodiment of the present disclosure, a dust concentration detection method is provided, including:
按照第一粉尘浓度值和第一预设阈值范围之间的数值关系,调整当前统计周期,得到第一统计周期,所述第一粉尘浓度值为上一个统计周期的粉尘浓度值;According to the numerical relationship between the first dust concentration value and the first preset threshold range, the current statistical period is adjusted to obtain the first statistical period, and the first dust concentration value is the dust concentration value of the previous statistical period;
获取第二粉尘浓度值和第三粉尘浓度值,所述第二粉尘浓度值为所述第一统计周期的粉尘浓度估计值,所述第三粉尘浓度值为第二统计周期的粉尘浓度估计值,所述第二统计周期小于所述第一统计周期;Obtaining a second dust concentration value and a third dust concentration value, the second dust concentration value is the estimated dust concentration value of the first statistical period, and the third dust concentration value is the estimated dust concentration value of the second statistical period , the second statistical period is smaller than the first statistical period;
根据所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的数值关系,确定所述第一统计周期的粉尘浓度值。The dust concentration value of the first statistical period is determined according to the numerical relationship between the second dust concentration estimated value and the third dust concentration estimated value.
在本公开实施例的第一方面的第一种可能的实现方式中,所述按照所述第一粉尘浓度值和第一预设阈值之间的数值关系,调整当前统计周期,得到第一统计周期包括:In the first possible implementation of the first aspect of the embodiments of the present disclosure, the current statistical cycle is adjusted according to the numerical relationship between the first dust concentration value and the first preset threshold to obtain the first statistical Cycles include:
若所述第一粉尘浓度值大于所述第一预设阈值范围的上限阈值,确定第一目标统计周期,将所述当前统计周期减去预设调整步长,当所述第一统计周期等于所述第一目标统计周期时,不再进行调整;或,If the first dust concentration value is greater than the upper threshold of the first preset threshold range, determine the first target statistical period, subtract the preset adjustment step from the current statistical period, and when the first statistical period is equal to During the first target statistical period, no adjustment is made; or,
若所述第一粉尘浓度值落入所述第一预设阈值范围内,则根据所述第一粉尘浓度值与所述第一预设阈值范围的下限阈值之间的第一差值,确定第二目标统计周期,将所述当前统计周期减去预设调整步长,当所述第一统计周期等于所述第二目标统计周期时,不再进行调整。If the first dust concentration value falls within the first preset threshold range, then according to the first difference between the first dust concentration value and the lower limit threshold of the first preset threshold range, determine For the second target statistical period, the preset adjustment step is subtracted from the current statistical period, and no adjustment is performed when the first statistical period is equal to the second target statistical period.
结合本公开实施例的第一方面和第一方面的第一种可能实现方式,在第二种可能的实现方式中,所述根据所述第一粉尘浓度值与所述第一预设阈值范围的下限阈值之间的第一差值,确定第二目标统计周期包括:With reference to the first aspect of the embodiments of the present disclosure and the first possible implementation manner of the first aspect, in the second possible implementation manner, according to the first dust concentration value and the first preset threshold range The first difference between the lower thresholds of , determining the second target statistical period includes:
计算所述第一粉尘浓度值与所述第一预设阈值范围的下限阈值之间的第一差值;calculating a first difference between the first dust concentration value and the lower threshold of the first preset threshold range;
计算当前统计周期与所述第一差值之间的第二差值,并将所述第二差值确定为所述目标统计周期。calculating a second difference between the current statistical period and the first difference, and determining the second difference as the target statistical period.
在本公开实施例的第一方面的第三种可能的实现方式中,所述根据所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的数值关系,确定所述第一统计周期的粉尘浓度值,包括:In a third possible implementation manner of the first aspect of the embodiments of the present disclosure, the first The dust concentration value of the statistical period, including:
若所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的差值小于第二预设阈值,则将所述第二粉尘浓度估计值确定为所述第一统计周期的粉尘浓度值;或,If the difference between the second dust concentration estimated value and the third dust concentration estimated value is less than a second preset threshold, the second dust concentration estimated value is determined as the dust in the first statistical period concentration value; or,
若所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的差值大于第二预设阈值,则将所述第三粉尘浓度估计值确定为所述第一统计周期的粉尘浓度值,并将所述第二统计周期确定为第三目标统计周期,调整所述第一统计周期,将所述第一统计周期减去预设调整步长,当所述第一统计周期等于所述第三目标统计周期时,不再进行调整。If the difference between the second dust concentration estimated value and the third dust concentration estimated value is greater than a second preset threshold, the third dust concentration estimated value is determined as the dust in the first statistical period concentration value, and determine the second statistical period as the third target statistical period, adjust the first statistical period, subtract the preset adjustment step from the first statistical period, when the first statistical period is equal to During the third target statistical period, no adjustment is performed.
在本公开实施例的第一方面的第四种可能的实现方式中,所述根据所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的数值关系,确定所述第一统计周期的粉尘浓度值之后,所述方法还包括:In a fourth possible implementation manner of the first aspect of the embodiments of the present disclosure, according to the numerical relationship between the second dust concentration estimate and the third dust concentration estimate, the first After the dust concentration value of statistical period, described method also comprises:
若所述第一统计周期的粉尘浓度值小于第三预设阈值,则应用以下公式,对所述第一统计周期的粉尘浓度值进行修正,得到最终粉尘浓度值:If the dust concentration value of the first statistical period is less than the third preset threshold, the following formula is applied to correct the dust concentration value of the first statistical period to obtain the final dust concentration value:
y=log1.09x+0.317*x+10;y=log 1.09 x+0.317*x+10;
其中x为所述第一统计周期的粉尘浓度值,y为所述最终粉尘浓度值。Where x is the dust concentration value of the first statistical period, and y is the final dust concentration value.
根据本公开实施例的第二方面,提供了一种粉尘浓度检测装置,包括:According to a second aspect of an embodiment of the present disclosure, a dust concentration detection device is provided, including:
调整模块,用于按照第一粉尘浓度值和第一预设阈值范围之间的数值关系,调整当前统计周期,得到第一统计周期,所述第一粉尘浓度值为上一个统计周期的粉尘浓度值;An adjustment module, configured to adjust the current statistical period according to the numerical relationship between the first dust concentration value and the first preset threshold range, to obtain the first statistical period, and the first dust concentration value is the dust concentration of the previous statistical period value;
获取模块,用于获取第二粉尘浓度值和第三粉尘浓度值,所述第二粉尘浓度值为所述第一统计周期的粉尘浓度估计值,所述第三粉尘浓度值为第二统计周期的粉尘浓度估计值,所述第二统计周期小于所述第一统计周期;An acquisition module, configured to acquire a second dust concentration value and a third dust concentration value, the second dust concentration value is the dust concentration estimated value of the first statistical period, and the third dust concentration value is the second statistical period The estimated value of the dust concentration, the second statistical period is less than the first statistical period;
确定模块,用于根据所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的数值关系,确定所述第一统计周期的粉尘浓度值。A determining module, configured to determine the dust concentration value of the first statistical period according to the numerical relationship between the second dust concentration estimated value and the third dust concentration estimated value.
在本公开实施例的第二方面的第一种可能的实现方式中,所述调整模块用于:In a first possible implementation manner of the second aspect of the embodiments of the present disclosure, the adjustment module is configured to:
当所述第一粉尘浓度值大于所述第一预设阈值范围的上限阈值时,确定第一目标统计周期,将所述当前统计周期减去预设调整步长,当所述第一统计周期等于所述第一目标统计周期时,不再进行调整;或,When the first dust concentration value is greater than the upper threshold of the first preset threshold range, determine the first target statistical period, subtract the preset adjustment step from the current statistical period, and when the first statistical period When it is equal to the first target statistical period, no adjustment is made; or,
当所述第一粉尘浓度值落入所述第一预设阈值范围内时,则根据所述第一粉尘浓度值与所述第一预设阈值范围的下限阈值之间的第一差值,确定第二目标统计周期,将所述当前统计周期减去预设调整步长,当所述第一统计周期等于所述第二目标统计周期时,不再进行调整。When the first dust concentration value falls within the first preset threshold range, according to the first difference between the first dust concentration value and the lower threshold of the first preset threshold range, A second target statistical period is determined, the current statistical period is subtracted from a preset adjustment step size, and no adjustment is performed when the first statistical period is equal to the second target statistical period.
结合本公开实施例的第二方面和第二方面的第一种可能实现方式,在第二种可能的实现方式中,所述调整模块用于:With reference to the second aspect of the embodiments of the present disclosure and the first possible implementation manner of the second aspect, in a second possible implementation manner, the adjustment module is configured to:
计算所述第一粉尘浓度值与所述第一预设阈值范围的下限阈值之间的第一差值;calculating a first difference between the first dust concentration value and the lower threshold of the first preset threshold range;
计算当前统计周期与所述第一差值之间的第二差值,并将所述第二差值确定为所述目标统计周期。calculating a second difference between the current statistical period and the first difference, and determining the second difference as the target statistical period.
在本公开实施例的第二方面的第三种可能的实现方式中,所述确定模块用于:In a third possible implementation manner of the second aspect of the embodiments of the present disclosure, the determining module is configured to:
当所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的差值小于第二预设阈值时,将所述第二粉尘浓度估计值确定为所述第一统计周期的粉尘浓度值;或,When the difference between the second dust concentration estimated value and the third dust concentration estimated value is less than a second preset threshold, the second dust concentration estimated value is determined as the dust of the first statistical period concentration value; or,
当所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的差值大于第二预设阈值时,将所述第三粉尘浓度估计值确定为所述第一统计周期的粉尘浓度值,并将所述第二统计周期确定为第三目标统计周期,调整所述第一统计周期,将所述第一统计周期减去预设调整步长,当所述第一统计周期等于所述第三目标统计周期时,不再进行调整。When the difference between the second dust concentration estimated value and the third dust concentration estimated value is greater than a second preset threshold, the third dust concentration estimated value is determined as the dust of the first statistical period concentration value, and determine the second statistical period as the third target statistical period, adjust the first statistical period, subtract the preset adjustment step from the first statistical period, when the first statistical period is equal to During the third target statistical period, no adjustment is performed.
在本公开实施例的第二方面的第四种可能的实现方式中,所述装置还包括:In a fourth possible implementation manner of the second aspect of the embodiments of the present disclosure, the device further includes:
修正模块,用于当所述第一统计周期的粉尘浓度值小于第三预设阈值时,应用以下公式,对所述第一统计周期的粉尘浓度值进行修正,得到最终粉尘浓度值:A correction module, configured to apply the following formula to correct the dust concentration value of the first statistical period to obtain a final dust concentration value when the dust concentration value of the first statistical period is less than the third preset threshold:
y=log1.09x+0.317*x+10;y=log 1.09 x+0.317*x+10;
其中x为所述第一统计周期的粉尘浓度值,y为所述最终粉尘浓度值。Where x is the dust concentration value of the first statistical period, and y is the final dust concentration value.
根据本公开实施例的第三方面,提供了粉尘浓度检测装置,包括:According to a third aspect of an embodiment of the present disclosure, a dust concentration detection device is provided, including:
处理器;processor;
用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions of the processor;
其中,所述处理器用于:Wherein, the processor is used for:
按照第一粉尘浓度值和第一预设阈值范围之间的数值关系,调整当前统计周期,得到第一统计周期,所述第一粉尘浓度值为上一个统计周期的粉尘浓度值;According to the numerical relationship between the first dust concentration value and the first preset threshold range, the current statistical period is adjusted to obtain the first statistical period, and the first dust concentration value is the dust concentration value of the previous statistical period;
获取第二粉尘浓度值和第三粉尘浓度值,所述第二粉尘浓度值为所述第一统计周期的粉尘浓度估计值,所述第三粉尘浓度值为第二统计周期的粉尘浓度估计值,所述第二统计周期小于所述第一统计周期;Obtaining a second dust concentration value and a third dust concentration value, the second dust concentration value is the estimated dust concentration value of the first statistical period, and the third dust concentration value is the estimated dust concentration value of the second statistical period , the second statistical period is smaller than the first statistical period;
根据所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的数值关系,确定所述第一统计周期的粉尘浓度值。The dust concentration value of the first statistical period is determined according to the numerical relationship between the second dust concentration estimated value and the third dust concentration estimated value.
本公开实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
根据上一个统计周期的粉尘浓度值与第一预设阈值范围之间的数值关系,动态地调整第一统计周期,可以提高粉尘浓度检测的稳定性和灵敏度,并且,通过第一统计周期的粉尘浓度估计值与第二统计周期的粉尘浓度估计值之间的数值关系,确定第一统计周期的粉尘浓度值,使得在检测环境发生变化时,可以快速、准确地确定变化后的环境中的粉尘浓度值,进一步提高了粉尘浓度检测的灵敏度。According to the numerical relationship between the dust concentration value of the previous statistical cycle and the first preset threshold range, dynamically adjusting the first statistical cycle can improve the stability and sensitivity of dust concentration detection, and, through the dust concentration of the first statistical cycle The numerical relationship between the estimated concentration value and the estimated value of the dust concentration in the second statistical cycle determines the dust concentration value in the first statistical cycle, so that when the detection environment changes, the dust in the changed environment can be quickly and accurately determined The concentration value further improves the sensitivity of dust concentration detection.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种粉尘浓度检测方法的流程图。Fig. 1 is a flow chart of a dust concentration detection method according to an exemplary embodiment.
图2是根据另一示例性实施例示出的一种粉尘浓度检测方法的流程图。Fig. 2 is a flow chart of a dust concentration detection method according to another exemplary embodiment.
图3是根据一示例性实施例示出的一种粉尘浓度检测装置的框图。Fig. 3 is a block diagram of a dust concentration detection device according to an exemplary embodiment.
图4是根据另一示例性实施例示出的一种粉尘浓度检测装置的框图。Fig. 4 is a block diagram of a dust concentration detection device according to another exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
本公开实施例提供的方法,可以应用于空气净化器、粉尘浓度监控仪等智能设备中,该智能设备至少包括粉尘传感器和处理器。其中,粉尘传感器用于检测空气中的粉尘,并基于光散射原理,将通过粉尘所散射的光的强度转化为电平信号。处理器用于对电平信号进行进一步地计算处理,从而确定粉尘浓度值。The method provided by the embodiments of the present disclosure can be applied to smart devices such as air purifiers and dust concentration monitors, where the smart devices at least include a dust sensor and a processor. Among them, the dust sensor is used to detect the dust in the air, and based on the principle of light scattering, the intensity of light scattered by the dust is converted into a level signal. The processor is used to further calculate and process the level signal, so as to determine the dust concentration value.
图1是根据一示例性实施例示出的一种粉尘浓度检测方法的流程图。该粉尘浓度检测方法可以包括如下几个步骤:Fig. 1 is a flow chart of a dust concentration detection method according to an exemplary embodiment. The dust concentration detection method may include the following steps:
在步骤101中,按照第一粉尘浓度值和第一预设阈值范围之间的数值关系,调整当前统计周期,得到第一统计周期,第一粉尘浓度值为上一个统计周期的粉尘浓度值。In step 101, the current statistical period is adjusted according to the numerical relationship between the first dust concentration value and the first preset threshold range to obtain the first statistical period, and the first dust concentration value is the dust concentration value of the previous statistical period.
在步骤102中,获取第二粉尘浓度值和第三粉尘浓度值,该第二粉尘浓度值为第一统计周期的粉尘浓度估计值,该第三粉尘浓度值为第二统计周期的粉尘浓度估计值,该第二统计周期小于该第一统计周期。In step 102, a second dust concentration value and a third dust concentration value are obtained, the second dust concentration value is an estimated dust concentration value of the first statistical period, and the third dust concentration value is an estimated dust concentration value of the second statistical period value, the second statistical period is smaller than the first statistical period.
在步骤103中,根据第二粉尘浓度估计值与第三粉尘浓度估计值之间的数值关系,确定第一统计周期的粉尘浓度值。In step 103, the dust concentration value of the first statistical period is determined according to the numerical relationship between the second dust concentration estimated value and the third dust concentration estimated value.
本公开实施例提供的方法,根据上一个统计周期的粉尘浓度值与第一预设阈值范围之间的数值关系,动态地调整第一统计周期,可以提高粉尘浓度检测的稳定性和灵敏度,并且,通过第一统计周期的粉尘浓度估计值与第二统计周期的粉尘浓度估计值之间的数值关系,确定第一统计周期的粉尘浓度值,使得在检测环境发生变化时,可以快速、准确地确定变化后的环境中的粉尘浓度值,进一步提高了粉尘浓度检测的灵敏度。The method provided by the embodiments of the present disclosure dynamically adjusts the first statistical period according to the numerical relationship between the dust concentration value of the previous statistical period and the first preset threshold range, which can improve the stability and sensitivity of dust concentration detection, and , through the numerical relationship between the dust concentration estimated value of the first statistical period and the dust concentration estimated value of the second statistical period, the dust concentration value of the first statistical period is determined, so that when the detection environment changes, it can be quickly and accurately The dust concentration value in the changed environment is determined, and the sensitivity of dust concentration detection is further improved.
基于上述提供的方法,在一种可能的实现方式中,所述按照所述第一粉尘浓度值和第一预设阈值之间的数值关系,调整当前统计周期包括:Based on the method provided above, in a possible implementation, the adjusting the current statistical cycle according to the numerical relationship between the first dust concentration value and the first preset threshold includes:
若所述第一粉尘浓度值大于所述第一预设阈值范围的上限阈值,确定第一目标统计周期,将所述当前统计周期减去预设调整步长,当所述第一统计周期等于所述第一目标统计周期时,不再进行调整;或,If the first dust concentration value is greater than the upper threshold of the first preset threshold range, determine the first target statistical period, subtract the preset adjustment step from the current statistical period, and when the first statistical period is equal to During the first target statistical period, no adjustment is made; or,
若所述第一粉尘浓度值落入所述第一预设阈值范围内,则根据所述第一粉尘浓度值与所述第一预设阈值范围的下限阈值之间的第一差值,确定第二目标统计周期,将所述当前统计周期减去预设调整步长,当所述第一统计周期等于所述第二目标统计周期时,不再进行调整。If the first dust concentration value falls within the first preset threshold range, then according to the first difference between the first dust concentration value and the lower limit threshold of the first preset threshold range, determine For the second target statistical period, the preset adjustment step is subtracted from the current statistical period, and no adjustment is performed when the first statistical period is equal to the second target statistical period.
上述根据第一粉尘浓度值与第一预设阈值范围之间的数值关系,来确定第一目标统计周期或第二目标统计周期,并且,以逐渐减去预设调整步长的方式使得第一统计周期趋向于第一目标统计周期或第二目标统计周期,避免直接将第一统计周期调整为第一目标统计周期或第二目标统计周期引起的粉尘浓度值波动较大的问题,提高了检测粉尘浓度值的稳定性。The first target statistical period or the second target statistical period is determined according to the numerical relationship between the first dust concentration value and the first preset threshold range, and the first target statistical period is gradually subtracted from the preset adjustment step. The statistical cycle tends to be the first target statistical cycle or the second target statistical cycle, avoiding the problem of large fluctuations in dust concentration caused by directly adjusting the first statistical cycle to the first target statistical cycle or the second target statistical cycle, and improving detection Stability of dust concentration values.
在另一种可能的实现方式中,所述根据所述第一粉尘浓度值与所述第一预设阈值范围的下限阈值之间的第一差值,确定第二目标统计周期包括:In another possible implementation manner, the determining the second target statistical period according to the first difference between the first dust concentration value and the lower threshold of the first preset threshold range includes:
计算所述第一粉尘浓度值与所述第一预设阈值范围的下限阈值之间的第一差值;calculating a first difference between the first dust concentration value and the lower threshold of the first preset threshold range;
计算当前统计周期与所述第一差值之间的第二差值,并将所述第二差值确定为所述目标统计周期。calculating a second difference between the current statistical period and the first difference, and determining the second difference as the target statistical period.
上述根据第一粉尘浓度值与第一预设阈值范围的下限阈值之间的第一差值,确定目标统计周期,进一步地,根据了空气中粉尘浓度值的大小,动态地调整了第一统计周期,使得对粉尘浓度的检测结果更为准确。The target statistical period is determined according to the first difference between the first dust concentration value and the lower limit threshold of the first preset threshold range, and further, the first statistical period is dynamically adjusted according to the dust concentration value in the air. The cycle makes the detection result of dust concentration more accurate.
在另一种可能的实现方式中,所述根据所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的数值关系,确定所述第一统计周期的粉尘浓度值,包括:In another possible implementation manner, the determining the dust concentration value of the first statistical period according to the numerical relationship between the second dust concentration estimated value and the third dust concentration estimated value includes:
若所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的差值小于第二预设阈值,则将所述第二粉尘浓度估计值确定为所述第一统计周期的粉尘浓度值;或,If the difference between the second dust concentration estimated value and the third dust concentration estimated value is less than a second preset threshold, the second dust concentration estimated value is determined as the dust in the first statistical period concentration value; or,
若所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的差值大于第二预设阈值,则将所述第三粉尘浓度估计值确定为所述第一统计周期的粉尘浓度值,并将所述第二统计周期确定为第三目标统计周期,调整所述第一统计周期,将所述第一统计周期减去预设调整步长,当所述第一统计周期等于所述第三目标统计周期时,不再进行调整。If the difference between the second dust concentration estimated value and the third dust concentration estimated value is greater than a second preset threshold, the third dust concentration estimated value is determined as the dust in the first statistical period concentration value, and determine the second statistical period as the third target statistical period, adjust the first statistical period, subtract the preset adjustment step from the first statistical period, when the first statistical period is equal to During the third target statistical period, no adjustment is performed.
上述根据所述第二粉尘浓度估计值与第三粉尘浓度估计值之间的数值关系,确定第一统计周期的粉尘浓度值,在检测环境发生变化时,避免粉尘传感器灵敏度不足的问题,可以更快速、准确地确定变化后的环境中的粉尘浓度值。According to the numerical relationship between the second dust concentration estimated value and the third dust concentration estimated value, the dust concentration value of the first statistical period is determined, and when the detection environment changes, the problem of insufficient sensitivity of the dust sensor can be avoided, and the dust sensor can be more sensitive. Quickly and accurately determine the dust concentration value in the changed environment.
在另一种可能的实现方式中,所述根据所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的数值关系,确定所述第一统计周期的粉尘浓度值之后,所述方法还包括:In another possible implementation manner, after determining the dust concentration value of the first statistical period according to the numerical relationship between the second dust concentration estimated value and the third dust concentration estimated value, the The method also includes:
若所述第一统计周期的粉尘浓度值小于第三预设阈值,则应用以下公式,对所述第一统计周期的粉尘浓度值进行修正,得到最终粉尘浓度值:If the dust concentration value of the first statistical period is less than the third preset threshold, the following formula is applied to correct the dust concentration value of the first statistical period to obtain the final dust concentration value:
y=log1.09x+0.317*x+10;y=log 1.09 x+0.317*x+10;
其中x为所述第一统计周期的粉尘浓度值,y为所述最终粉尘浓度值。Where x is the dust concentration value of the first statistical period, and y is the final dust concentration value.
上述当第一统计周期的粉尘浓度值小于第三预设阈值时,通过上述公式对第一统计周期的粉尘浓度值进行修正,使得最终粉尘浓度值呈线性增长,解决了输出幅度过低的问题。When the dust concentration value of the first statistical cycle is less than the third preset threshold value, the dust concentration value of the first statistical cycle is corrected by the above formula, so that the final dust concentration value increases linearly, and the problem of too low output amplitude is solved .
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.
图2是根据另一示例性实施例示出的一种粉尘浓度检测的流程图,本实施例以该粉尘浓度检测方法应用于空气净化器中来举例说明。该粉尘浓度检测方法可以包括如下几个步骤:Fig. 2 is a flow chart showing a dust concentration detection method according to another exemplary embodiment. This embodiment is described by taking the dust concentration detection method applied to an air cleaner as an example. The dust concentration detection method may include the following steps:
在步骤201中,按照第一粉尘浓度值和第一预设阈值范围之间的数值关系,调整当前统计周期,得到第一统计周期,第一粉尘浓度值为上一个统计周期的粉尘浓度值。In step 201, the current statistical period is adjusted according to the numerical relationship between the first dust concentration value and the first preset threshold range to obtain the first statistical period, and the first dust concentration value is the dust concentration value of the previous statistical period.
其中,第一统计周期是指对粉尘传感器发出的电平信号的持续时长进行统计的周期。在对粉尘浓度进行检测的过程中,需要每隔预设采样周期对粉尘传感器输出的电平信号进行采样,并得到所采样到的电平信号的持续时长,根据所检测到的粉尘的颗粒大小不同,粉尘传感器所产生的电平信号的持续时长不同,粉尘的颗粒越小,对应的电平信号的持续时长越短,粉尘的颗粒越大,所产生的电平信号的持续时长越长。其中,预设采样周期可以由空气净化器默认设置,也可以由用户根据实际需求自主设置。例如,每隔10ms对电平信号进行采样,并得到所采样到的电平信号的持续时长为100ms。Wherein, the first statistical cycle refers to a cycle for counting the duration of the level signal sent by the dust sensor. In the process of detecting the dust concentration, it is necessary to sample the level signal output by the dust sensor every preset sampling period, and obtain the duration of the sampled level signal, according to the particle size of the detected dust Different, the duration of the level signal generated by the dust sensor is different. The smaller the dust particle is, the shorter the duration of the corresponding level signal is, and the larger the dust particle is, the longer the duration of the generated level signal is. Wherein, the preset sampling period can be set by default by the air purifier, or can be set by the user according to actual needs. For example, the level signal is sampled every 10 ms, and the duration of the sampled level signal is obtained to be 100 ms.
得到到多个电平信号的持续时长后,在第一统计周期内对所得到的电平信号的持续时长进行统计,可以得到电平信号的总持续时长在该第一统计周期内的时长占有比。例如,若第一统计周期为10s,在该第一统计周期内统计到的电平信号的持续时长包括100ms、200ms、150ms、200ms、400ms和300ms,则该时长占有比为(0.1+0.2+0.15+0.2+0.4+0.3)*100%/10。After the duration of multiple level signals is obtained, the duration of the obtained level signals is counted in the first statistical period, and the duration occupation of the total duration of the level signal in the first statistical period can be obtained Compare. For example, if the first statistical period is 10s, the duration of the level signal counted in the first statistical period includes 100ms, 200ms, 150ms, 200ms, 400ms and 300ms, then the duration occupancy ratio is (0.1+0.2+ 0.15+0.2+0.4+0.3)*100%/10.
基于以下公式一即可确定第一统计周期的粉尘浓度值:The dust concentration value of the first statistical period can be determined based on the following formula 1:
公式一:Z=5.61*104*k3-6.92*k2*103+1.56*103*kFormula 1: Z=5.61*10 4 *k 3 -6.92*k 2 *10 3 +1.56*10 3 *k
其中,k为第一统计周期内统计到的电平信号的总持续时长占有比,其取值范围为[0,1],Z为第一统计周期的粉尘浓度值,*代表乘法运算。Among them, k is the total duration occupancy ratio of the level signal counted in the first statistical period, and its value range is [0,1], Z is the dust concentration value in the first statistical period, and * represents multiplication.
但是,在实际应用中,若第一统计周期固定不变,如果第一统计周期设置的过长,当检测环境突然发生较大的变化时,容易导致检测的灵敏性不足,若果第一统计周期设置的过短,又容易导致检测所得到的粉尘浓度值波动性较大。因此,在本实施例中,根据实际情况不同,可以对第一统计周期进行对应的调整。具体地,可以按照第一粉尘浓度值和第一预设阈值范围之间的数值关系,对第一统计周期进行调整。第一预设阈值范围可以由空气净化器默认设置,也可以由用户根据实际需求自主设置。However, in practical applications, if the first statistical period is fixed, or if the first statistical period is set too long, when the detection environment changes suddenly, the sensitivity of detection is likely to be insufficient. If the first statistical period If the period is set too short, it will easily lead to large fluctuations in the detected dust concentration value. Therefore, in this embodiment, according to different actual situations, corresponding adjustments may be made to the first statistical period. Specifically, the first statistical period may be adjusted according to the numerical relationship between the first dust concentration value and the first preset threshold range. The first preset threshold range can be set by default by the air purifier, or can be set by the user according to actual needs.
其中,第一预设阈值范围具有下限阈值和上限阈值,根据第一粉尘浓度值和第一预设阈值范围之间的数值关系不同,调整当前统计周期可以包括如下任一种可能的实现方式:Wherein, the first preset threshold range has a lower threshold and an upper threshold, and according to the difference in numerical relationship between the first dust concentration value and the first preset threshold range, adjusting the current statistical cycle may include any of the following possible implementations:
在第一种可能的实现方式中,若第一粉尘浓度值小于第一预设阈值范围的下限阈值,则不对当前统计周期进行调整。其中,第一预设阈值范围可以由空气净化器默认设置,也可以由用户根据实际需求自主设置。In a first possible implementation manner, if the first dust concentration value is less than the lower threshold of the first preset threshold range, the current statistical period is not adjusted. Wherein, the first preset threshold range can be set by default by the air purifier, or can be set by the user according to actual needs.
当第一粉尘浓度值小于第一预设阈值范围的下限阈值,通常情况下可以认为空气中的粉尘数量极少,此时,若统计周期设置的过短,容易导致检测所得到的粉尘浓度值的波动较大,为此,在空气净化器启动时,可以将第一统计周期设置得较长一点,例如,将其设置为100s,也即,在空气净化器启动时,当前统计周期为100s。并且,在第一粉尘浓度值小于第一预设阈值范围的下限阈值的情况下,不对当前统计周期进行调整。When the first dust concentration value is less than the lower limit threshold value of the first preset threshold range, it can be considered that the amount of dust in the air is very small under normal circumstances. Therefore, when the air purifier is started, the first statistical period can be set a little longer, for example, set it to 100s, that is, when the air purifier is started, the current statistical period is 100s . Moreover, if the first dust concentration value is less than the lower threshold of the first preset threshold range, the current statistical period is not adjusted.
例如,若第一预设阈值范围设置为[20,80],如果第一粉尘浓度值为15,当前统计周期设置为100s,则不对当前统计周期进行调整。For example, if the first preset threshold range is set to [20,80], if the first dust concentration value is 15, and the current statistical period is set to 100s, the current statistical period will not be adjusted.
在第二种可能的实现方式中,若第一粉尘浓度值大于第一预设阈值范围的上限阈值,确定第一目标统计周期,将当前统计周期减去预设调整步长,当第一统计周期等于第一目标统计周期时,不再进行调整。其中,第一目标统计周期可以由空气净化器默认设置,也可以由用户根据实际需求自主设置。同理,预设调整步长可以由空气净化器默认设置,也可以由用户根据实际需求自主设置。In the second possible implementation, if the first dust concentration value is greater than the upper threshold of the first preset threshold range, determine the first target statistical cycle, subtract the preset adjustment step from the current statistical cycle, and when the first statistical When the period is equal to the first target statistical period, no adjustment will be made. Wherein, the first target statistical period can be set by default by the air purifier, or can be set by the user according to actual needs. Similarly, the preset adjustment step size can be set by default by the air purifier, or can be set by the user according to actual needs.
具体地,第一粉尘浓度值大于第一预设阈值范围的上限阈值,说明空气中的粉尘比较多,若第一统计周期仍保持在当期统计周期100s,容易导致检测到的粉尘浓度值不精确,此时,即可以对当前统计周期进行调整。但是,为了减小检测得到的粉尘浓度值的波动性,在调整过程中,可以将当前统计周期减去预设调整步长,使得第一统计周期趋向于第一目标统计周期。并且,若经过一次调整后,第一粉尘浓度值仍大于第一预设阈值范围的上限阈值,则继续当前统计周期减去预设调整步长,直至第一统计周期等于第一目标统计周期时,不再继续调整。上述通过将当前统计周期减去预设调整步长,使得第一统计周期趋向于第一目标统计周期,避免一次性将第一统计周期调整为第一目标统计周期导致检测到的粉尘浓度值波动较大的问题。Specifically, if the first dust concentration value is greater than the upper threshold of the first preset threshold range, it means that there is a lot of dust in the air. If the first statistical period is still kept at the current statistical period of 100s, it is easy to cause the detected dust concentration value to be inaccurate. , at this point, the current statistical cycle can be adjusted. However, in order to reduce the fluctuation of the detected dust concentration value, during the adjustment process, the current statistical period may be subtracted from the preset adjustment step, so that the first statistical period tends to the first target statistical period. And, if after one adjustment, the first dust concentration value is still greater than the upper threshold of the first preset threshold range, then continue to subtract the preset adjustment step from the current statistical period until the first statistical period is equal to the first target statistical period , do not continue to adjust. By subtracting the preset adjustment step from the current statistical period, the first statistical period tends to the first target statistical period, avoiding the fluctuation of the detected dust concentration value caused by adjusting the first statistical period to the first target statistical period at one time Bigger problem.
例如,若第一预设阈值范围设置为[20,80],预设调整步长设为1s,当前统计周期为100s,第一目标统计周期为40s。如果第一粉尘浓度值为85,则确定第一目标统计周期为40s,将当前统计周期减去1s,即可以确定第一统计周期为99s。若第一统计周期为99s的第一粉尘浓度值仍为85,则继续将当前统计周期减去1s,即可以确定下一个第一统计周期为98s,如此,直至第一统计周期等于第一目标统计周期时,不再减去1s调整步长。For example, if the first preset threshold range is set to [20,80], the preset adjustment step is set to 1s, the current statistical period is 100s, and the first target statistical period is 40s. If the first dust concentration value is 85, the first target statistical period is determined to be 40s, and the current statistical period is subtracted by 1s, that is, the first statistical period can be determined to be 99s. If the first dust concentration value of the first statistical period of 99s is still 85, then continue to subtract 1s from the current statistical period, that is, the next first statistical period can be determined to be 98s, so until the first statistical period is equal to the first target When counting the period, no longer subtract 1s to adjust the step size.
在第三种可能的实现方式中,若第一粉尘浓度值落入第一预设阈值范围内,则根据第一粉尘浓度值与第一预设阈值范围的下限阈值之间的第一差值,确定第二目标统计周期,将当前统计周期减去预设调整步长,当第一统计周期等于第二目标统计周期时,不再进行调整。In a third possible implementation, if the first dust concentration value falls within the first preset threshold range, then according to the first difference between the first dust concentration value and the lower threshold of the first preset threshold range , determine the second target statistical period, subtract the preset adjustment step from the current statistical period, and no longer adjust when the first statistical period is equal to the second target statistical period.
具体地,当第一粉尘浓度值落入第一预设阈值范围内时,第一统计周期不易过长,也不易过短,为此,可以根据第一粉尘浓度值与第一预设阈值范围的下限阈值之间的第一差值,确定第二目标统计周期。其中,对当前统计周期的调整方式与上述同理,这里不再赘述。Specifically, when the first dust concentration value falls within the first preset threshold range, the first statistical period is neither too long nor too short. For this reason, the first dust concentration value and the first preset threshold range can be The second target statistical period is determined by the first difference between the lower limit thresholds. Wherein, the method of adjusting the current statistical period is the same as the above, and will not be repeated here.
基于上述第二种可能的实现方式,在一种可能的实现方式中,根据第一粉尘浓度值与第一预设阈值范围的下限阈值之间的第一差值,确定第二目标统计周期包括:计算第一粉尘浓度值与第一预设阈值范围的下限阈值之间的第一差值,计算当前统计周期与第一差值之间的第二差值,并将第二差值确定为目标统计周期。Based on the above-mentioned second possible implementation, in a possible implementation, according to the first difference between the first dust concentration value and the lower limit threshold of the first preset threshold range, the determination of the second target statistical period includes : Calculate the first difference between the first dust concentration value and the lower threshold of the first preset threshold range, calculate the second difference between the current statistical period and the first difference, and determine the second difference as Target statistical period.
例如,若第一预设阈值范围设置为[20,80],预设调整步长设为1s,当前统计周期为100s,如果第一粉尘浓度值为30,则第一粉尘浓度值与第一预设阈值的下限的第一差值为30-20=10,可以确定第一目标统计周期为100-10=90s。For example, if the first preset threshold range is set to [20,80], the preset adjustment step is set to 1s, and the current statistical cycle is 100s, if the first dust concentration value is 30, then the first dust concentration value and the first The first difference of the lower limit of the preset threshold is 30-20=10, and it can be determined that the first target statistical period is 100-10=90s.
上述通过将当前统计周期减去预设调整步长,使得第一统计周期趋向于第二目标统计周期,避免一次性将第一统计周期调整为第二目标统计周期导致检测到的粉尘浓度值波动较大的问题。By subtracting the preset adjustment step from the current statistical period, the first statistical period tends to the second target statistical period, avoiding the fluctuation of the detected dust concentration value caused by adjusting the first statistical period to the second target statistical period at one time Bigger problem.
在步骤202中,获取第二粉尘浓度值和第三粉尘浓度值,该第二粉尘浓度值为第一统计周期的粉尘浓度估计值,该第三粉尘浓度值为第二统计周期的粉尘浓度估计值。In step 202, a second dust concentration value and a third dust concentration value are obtained, the second dust concentration value is an estimated dust concentration value of the first statistical period, and the third dust concentration value is an estimated dust concentration value of the second statistical period value.
为了适应环境突然变化引起的粉尘浓度的快速变化,在得到多个电平信号的持续时长时,还可以获取第二统计周期的粉尘浓度估计值。其中,第二统计周期小于该第一统计周期,第二统计周期可以由空气净化器默认设置,也可以由用户根据实际需求自主设置。如此,通过获取第二统计周期的粉尘浓度预估值,可以快速检测到检测环境中的粉尘浓度,通过与第二粉尘浓度估计值之间的数值关系,可以进一步确定检测环境是否发生变化。例如,第二统计周期设置为20s。In order to adapt to the rapid change of the dust concentration caused by the sudden change of the environment, when the duration of multiple level signals is obtained, the estimated value of the dust concentration of the second statistical period can also be obtained. Wherein, the second statistical period is shorter than the first statistical period, and the second statistical period can be set by default by the air purifier, or can be set by the user according to actual needs. In this way, the dust concentration in the detection environment can be quickly detected by obtaining the dust concentration estimated value of the second statistical period, and whether the detection environment changes can be further determined through the numerical relationship with the second dust concentration estimated value. For example, the second statistical period is set to 20s.
在步骤203中,根据第二粉尘浓度估计值与第三粉尘浓度估计值之间的数值关系,确定第一统计周期的粉尘浓度值。In step 203, the dust concentration value of the first statistical period is determined according to the numerical relationship between the second dust concentration estimated value and the third dust concentration estimated value.
根据第二粉尘浓度估计值与第三粉尘浓度估计值之间的数值关系,确定第一统计周期的粉尘浓度值可以包括如下任一种可能的实现方式:According to the numerical relationship between the second dust concentration estimated value and the third dust concentration estimated value, determining the dust concentration value of the first statistical period may include any of the following possible implementations:
在第一种可能的实现方式中,若第二粉尘浓度估计值与第三粉尘浓度估计值之间的差值小于第二预设阈值,则将第二粉尘浓度估计值确定为第一统计周期的粉尘浓度值。其中,第二预设阈值可以由空气净化器默认设置,也可以由用户根据实际需求自主设置。In a first possible implementation, if the difference between the second dust concentration estimated value and the third dust concentration estimated value is less than a second preset threshold, the second dust concentration estimated value is determined as the first statistical period dust concentration value. Wherein, the second preset threshold can be set by default by the air purifier, or can be set by the user according to actual needs.
当第二粉尘浓度估计值与第三粉尘浓度估计值之间的差值小于第二预设阈值时,也即第一统计周期检测的第二粉尘浓度估计值与第二统计周期检测的第三粉尘浓度估计值之间相差不大,可以认为检测环境没有发生变化,此时,可以将第二粉尘浓度估计值确定为第一统计周期的粉尘浓度值。When the difference between the second dust concentration estimated value and the third dust concentration estimated value is less than the second preset threshold, that is, the second dust concentration estimated value detected in the first statistical period and the third dust concentration detected in the second statistical period There is little difference between the estimated dust concentration values, and it can be considered that the detection environment has not changed. At this time, the second dust concentration estimated value can be determined as the dust concentration value of the first statistical period.
例如,若第二预设阈值设置为80,第二粉尘浓度估计值为10,第三粉尘浓度估计值为20,第二粉尘浓度估计值与第三粉尘浓度估计值之间的差值为10,小于第二预设阈值80,此时,将第二粉尘浓度估计值10确定为第一统计周期的粉尘浓度值。For example, if the second preset threshold value is set to 80, the second dust concentration estimated value is 10, the third dust concentration estimated value is 20, and the difference between the second dust concentration estimated value and the third dust concentration estimated value is 10 , is less than the second preset threshold 80, at this time, the second dust concentration estimated value 10 is determined as the dust concentration value of the first statistical period.
需要说明的是,这里将第二粉尘浓度估计值确定为第一统计周期的粉尘浓度值,是因为该第二粉尘浓度估计值对应的第一统计周期为根据上一个统计周期的粉尘浓度值与第一预设阈值范围之间的数值关系确定,相比于第二统计周期的第三粉尘浓度估计值,第二粉尘浓度估计值更为精确。It should be noted that the second dust concentration estimated value is determined here as the dust concentration value of the first statistical period because the first statistical period corresponding to the second dust concentration estimated value is based on the dust concentration value of the previous statistical period and The numerical relationship between the first preset threshold ranges is determined, and the second dust concentration estimated value is more accurate than the third dust concentration estimated value of the second statistical period.
在第二种可能的实现方式中,若第二粉尘浓度估计值与第三粉尘浓度估计值之间的差值大于第二预设阈值,则将第三粉尘浓度估计值确定为第一统计周期的粉尘浓度值,并将所述第二统计周期确定为第三目标统计周期,调整所述第一统计周期,将所述第一统计周期减去预设调整步长,当所述第一统计周期等于所述第三目标统计周期时,不再进行调整。In a second possible implementation, if the difference between the second dust concentration estimate and the third dust concentration estimate is greater than the second preset threshold, the third dust concentration estimate is determined as the first statistical period dust concentration value, and determine the second statistical period as the third target statistical period, adjust the first statistical period, subtract the preset adjustment step from the first statistical period, when the first statistical period When the period is equal to the third target statistical period, no adjustment is made.
当第二粉尘浓度估计值与第三粉尘浓度估计值之间的差值大于第二预设阈值时,也即第一统计周期检测的第二粉尘浓度估计值与第二统计周期检测的第三粉尘浓度估计值之间相差较大,可以认为检测环境发生了变化,此时,可以将第三粉尘浓度估计值确定为第一统计周期的粉尘浓度值,并且,将该第二统计周期确定为第三目标统计周期,对应地,调整第一统计周期,其调整方式与上述同理。When the difference between the second dust concentration estimated value and the third dust concentration estimated value is greater than the second preset threshold, that is, the second dust concentration estimated value detected in the first statistical period and the third dust concentration detected in the second statistical period There is a large difference between the dust concentration estimates, and it can be considered that the detection environment has changed. At this time, the third dust concentration estimate can be determined as the dust concentration value of the first statistical period, and the second statistical period is determined as The third target statistical cycle is correspondingly adjusted to the first statistical cycle, and the adjustment method is the same as above.
例如,若第二预设阈值设置为80,第二粉尘浓度估计值为110,第二统计周期为20s,第三粉尘浓度估计值为20,第二粉尘浓度估计值与第三粉尘浓度估计值之间的差值为90,大于第二预设阈值80,此时,将第三粉尘浓度估计值20确定为第一统计周期的粉尘浓度值,并且,将20s确定为第三目标统计周期,对第一统计周期进行调整。For example, if the second preset threshold is set to 80, the second estimated value of dust concentration is 110, the second statistical period is 20s, the third estimated value of dust concentration is 20, the second estimated value of dust concentration and the third estimated value of dust concentration The difference between them is 90, which is greater than the second preset threshold 80. At this time, the third dust concentration estimated value 20 is determined as the dust concentration value of the first statistical period, and 20s is determined as the third target statistical period, Adjust the first statistical period.
至此,本实施例提供方法可以优化粉尘浓度检测过程中存在的数值波动较大以及灵敏度不足的问题。为了进一步优化粉尘浓度检测中,粉尘浓度值输出幅度过低的问题,本实施例还可以包括如下步骤204。So far, the method provided in this embodiment can optimize the problems of large numerical fluctuations and insufficient sensitivity in the dust concentration detection process. In order to further optimize the problem that the output range of the dust concentration value is too low during the dust concentration detection, this embodiment may further include the following step 204 .
在步骤204中,若第一统计周期的粉尘浓度值小于第三预设阈值,则应用公式二,对第一统计周期的粉尘浓度值进行修正,得到最终粉尘浓度值。In step 204, if the dust concentration value in the first statistical period is less than the third preset threshold, formula 2 is applied to correct the dust concentration value in the first statistical period to obtain the final dust concentration value.
其中,公式二为:Among them, formula two is:
y=log1.09x+0.317*x+10;y=log 1.09 x+0.317*x+10;
其中,x为第一统计周期的粉尘浓度值,y为得到的最终粉尘浓度值。Among them, x is the dust concentration value of the first statistical period, and y is the final dust concentration value obtained.
在实际应用中,由于空气净化器本身存在缺陷,容易导致当空气中的粉尘浓度增加时,空气净化器在第一统计周期的粉尘浓度值呈指数形式增长,如此,导致输出的粉尘浓度值的幅度与实际相比偏低,即不能够准确的检测空气中的粉尘浓度,为此,可以通过上述公式二对第一统计周期的粉尘浓度值进行修正,可以使得粉尘浓度值呈线性增长,从而可以保证检测结果更为准确。In practical applications, due to the defects of the air purifier itself, it is easy to cause that when the dust concentration in the air increases, the dust concentration value of the air purifier in the first statistical period increases exponentially, so that the output dust concentration value will decrease. Compared with the actual range, the dust concentration in the air cannot be accurately detected. For this reason, the dust concentration value of the first statistical period can be corrected by the above formula 2, which can make the dust concentration value increase linearly, so that It can ensure that the detection results are more accurate.
本公开实施例提供的方法中,根据上一个统计周期的粉尘浓度值与第一预设阈值范围之间的数值关系,动态地调整第一统计周期,可以提高粉尘浓度检测的稳定性和灵敏度,并且,通过第一统计周期的粉尘浓度估计值与第二统计周期的粉尘浓度估计值之间的数值关系,确定第一统计周期的粉尘浓度值,使得在检测环境发生变化时,可以快速、准确地确定变化后的环境中的粉尘浓度值,进一步提高了粉尘浓度检测的灵敏度。In the method provided by the embodiments of the present disclosure, according to the numerical relationship between the dust concentration value of the last statistical cycle and the first preset threshold range, the first statistical cycle is dynamically adjusted, which can improve the stability and sensitivity of dust concentration detection, Moreover, through the numerical relationship between the estimated value of the dust concentration in the first statistical period and the estimated value of the dust concentration in the second statistical period, the dust concentration value in the first statistical period is determined, so that when the detection environment changes, it can be quickly and accurately The dust concentration value in the changed environment can be accurately determined, and the sensitivity of dust concentration detection can be further improved.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the disclosed method embodiments.
图3是根据一示例性实施例示出的一种粉尘浓度检测装置的框图,该粉尘浓度检测装置可以通过软件、硬件或者两者的结合实现。该粉尘浓度检测装置可以包括:Fig. 3 is a block diagram of a dust concentration detection device according to an exemplary embodiment. The dust concentration detection device can be implemented by software, hardware or a combination of both. The dust concentration detection device may include:
调整模块310,用于按照第一粉尘浓度值和第一预设阈值范围之间的数值关系,调整当前统计周期,得到第一统计周期,所述第一粉尘浓度值为上一个统计周期的粉尘浓度值;An adjustment module 310, configured to adjust the current statistical period according to the numerical relationship between the first dust concentration value and the first preset threshold range to obtain a first statistical period, the first dust concentration value being the dust of the previous statistical period Concentration value;
获取模块320,用于获取第二粉尘浓度值和第三粉尘浓度值,所述第二粉尘浓度值为所述第一统计周期的粉尘浓度估计值,所述第三粉尘浓度值为第二统计周期的粉尘浓度估计值,所述第二统计周期小于所述第一统计周期;An acquisition module 320, configured to acquire a second dust concentration value and a third dust concentration value, the second dust concentration value is an estimated dust concentration value of the first statistical cycle, and the third dust concentration value is a second statistical value Periodic dust concentration estimates, the second statistical period is smaller than the first statistical period;
确定模块330,用于根据所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的数值关系,确定所述第一统计周期的粉尘浓度值。The determination module 330 is configured to determine the dust concentration value of the first statistical period according to the numerical relationship between the second dust concentration estimated value and the third dust concentration estimated value.
本公开实施例提供的装置,根据上一个统计周期的粉尘浓度值与第一预设阈值范围之间的数值关系,动态地调整第一统计周期,可以提高粉尘浓度检测的稳定性和灵敏度,并且,通过第一统计周期的粉尘浓度估计值与第二统计周期的粉尘浓度估计值之间的数值关系,确定第一统计周期的粉尘浓度值,使得在检测环境发生变化时,可以快速、准确地确定变化后的环境中的粉尘浓度值,进一步提高了粉尘浓度检测的灵敏度。The device provided by the embodiments of the present disclosure dynamically adjusts the first statistical period according to the numerical relationship between the dust concentration value of the previous statistical period and the first preset threshold range, which can improve the stability and sensitivity of dust concentration detection, and , through the numerical relationship between the dust concentration estimated value of the first statistical period and the dust concentration estimated value of the second statistical period, the dust concentration value of the first statistical period is determined, so that when the detection environment changes, it can be quickly and accurately The dust concentration value in the changed environment is determined, and the sensitivity of dust concentration detection is further improved.
基于上述提供的装置,请参考图4,在一种可能的实现方式中,所述调整模块310用于:Based on the device provided above, please refer to FIG. 4 , in a possible implementation manner, the adjustment module 310 is used to:
当所述第一粉尘浓度值大于所述第一预设阈值范围的上限阈值时,确定第一目标统计周期,将所述当前统计周期减去预设调整步长,当所述第一统计周期等于所述第一目标统计周期时,不再进行调整;或,When the first dust concentration value is greater than the upper threshold of the first preset threshold range, determine the first target statistical period, subtract the preset adjustment step from the current statistical period, and when the first statistical period When it is equal to the first target statistical period, no adjustment is made; or,
当所述第一粉尘浓度值落入所述第一预设阈值范围内时,则根据所述第一粉尘浓度值与所述第一预设阈值范围的下限阈值之间的第一差值,确定第二目标统计周期,将所述当前统计周期减去预设调整步长,当所述第一统计周期等于所述第二目标统计周期时,不再进行调整。When the first dust concentration value falls within the first preset threshold range, according to the first difference between the first dust concentration value and the lower threshold of the first preset threshold range, A second target statistical period is determined, the current statistical period is subtracted from a preset adjustment step size, and no adjustment is performed when the first statistical period is equal to the second target statistical period.
在另一种可能的实现方式中,所述调整模块310用于:In another possible implementation manner, the adjustment module 310 is configured to:
计算所述第一粉尘浓度值与所述第一预设阈值范围的下限阈值之间的第一差值;calculating a first difference between the first dust concentration value and the lower threshold of the first preset threshold range;
计算当前统计周期与所述第一差值之间的第二差值,并将所述第二差值确定为所述目标统计周期。calculating a second difference between the current statistical period and the first difference, and determining the second difference as the target statistical period.
在另一种可能的实现方式中,所述确定模块330用于:In another possible implementation manner, the determining module 330 is configured to:
当所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的差值小于第二预设阈值时,将所述第二粉尘浓度估计值确定为所述第一统计周期的粉尘浓度值;或,When the difference between the second dust concentration estimated value and the third dust concentration estimated value is less than a second preset threshold, the second dust concentration estimated value is determined as the dust of the first statistical period concentration value; or,
当所述第二粉尘浓度估计值与所述第三粉尘浓度估计值之间的差值大于第二预设阈值时,将所述第三粉尘浓度估计值确定为所述第一统计周期的粉尘浓度值,并将所述第二统计周期确定为第三目标统计周期,调整所述第一统计周期,将所述第一统计周期减去预设调整步长,当所述第一统计周期等于所述第三目标统计周期时,不再进行调整。When the difference between the second dust concentration estimated value and the third dust concentration estimated value is greater than a second preset threshold, the third dust concentration estimated value is determined as the dust in the first statistical period concentration value, and determine the second statistical period as the third target statistical period, adjust the first statistical period, subtract the preset adjustment step from the first statistical period, when the first statistical period is equal to During the third target statistical period, no adjustment is performed.
在另一种可能的实现方式中,所述装置还包括:In another possible implementation manner, the device further includes:
修正模块340,用于当所述第一统计周期的粉尘浓度值小于第三预设阈值时,应用以下公式,对所述第一统计周期的粉尘浓度值进行修正,得到最终粉尘浓度值:The correction module 340 is configured to apply the following formula to correct the dust concentration value of the first statistical period to obtain the final dust concentration value when the dust concentration value of the first statistical period is less than the third preset threshold:
y=log1.09x+0.317*x+10;y=log 1.09 x+0.317*x+10;
其中x为所述第一统计周期的粉尘浓度值,y为所述最终粉尘浓度值。Where x is the dust concentration value of the first statistical period, and y is the final dust concentration value.
需要说明的一点是,上述实施例提供的粉尘浓度检测装置在实现粉尘浓度检测方法时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。It should be noted that when the dust concentration detection device provided by the above-mentioned embodiments implements the dust concentration detection method, it only uses the division of the above-mentioned functional modules as an example. In practical applications, the above-mentioned functions can be allocated according to actual needs. The functional modules are completed, that is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, with regard to the apparatus in the above embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510953970.8A CN105606501B (en) | 2015-12-17 | 2015-12-17 | Dust concentration detecting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510953970.8A CN105606501B (en) | 2015-12-17 | 2015-12-17 | Dust concentration detecting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105606501A CN105606501A (en) | 2016-05-25 |
CN105606501B true CN105606501B (en) | 2018-11-02 |
Family
ID=55986610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510953970.8A Active CN105606501B (en) | 2015-12-17 | 2015-12-17 | Dust concentration detecting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105606501B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107960839B (en) * | 2016-10-20 | 2020-08-07 | 佛山市顺德区美的电热电器制造有限公司 | Cooking appliance, flow control method and flow control device |
CN109141525A (en) * | 2018-08-28 | 2019-01-04 | 深圳绿米联创科技有限公司 | Environmental parameter acquisition method, device and sensor |
CN109696386B (en) * | 2019-01-16 | 2021-02-05 | 徐州市质量技术监督综合检验检测中心 | Dynamic dust generation system for metering and calibrating raise dust monitor and working method |
CN110006801A (en) * | 2019-05-10 | 2019-07-12 | 苏州华能检测技术有限公司 | A kind of atmospheric dust concentration detection method |
CN110794092B (en) * | 2019-10-28 | 2020-10-23 | 珠海格力电器股份有限公司 | Sensor, control method, device and equipment thereof, and air quality monitoring equipment |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101587565A (en) * | 2008-05-21 | 2009-11-25 | 上海新联纬讯科技发展有限公司 | Method and system for predicating staff flow |
KR101749045B1 (en) * | 2010-12-31 | 2017-06-20 | 시락 게엠베하 인터내셔날 | Systems and methods for high accuracy analyte measurement |
CN103016121B (en) * | 2012-12-28 | 2014-12-31 | 潍柴动力股份有限公司 | Emission exceeding and aging detecting method and system |
GB2518662B (en) * | 2013-09-27 | 2015-12-16 | Thales Holdings Uk Plc | Apparatus and method for managing traffic |
CN104778111B (en) * | 2014-01-14 | 2019-03-01 | 深圳市腾讯计算机系统有限公司 | A kind of method and apparatus alarmed |
CN104358489A (en) * | 2014-10-27 | 2015-02-18 | 余姚市朗霞街道飞达冲件厂 | Window capable of being automatically opened and closed |
-
2015
- 2015-12-17 CN CN201510953970.8A patent/CN105606501B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105606501A (en) | 2016-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105606501B (en) | Dust concentration detecting method and device | |
WO2020253175A1 (en) | Formaldehyde concentration measurement method and apparatus, and air purifier | |
US11169588B2 (en) | Method and apparatus for detecting wearing state of smart wearable device | |
CN104502525B (en) | Air quality reminding method and device | |
CN109564270B (en) | Method and device for determining positioning information | |
JP2014151149A5 (en) | Motion analysis device, motion analysis system, and motion analysis method | |
CN105547499A (en) | Method and system for predicting temperature | |
JP5425027B2 (en) | Random noise signal detection and filtering method | |
CN106341685A (en) | Image sensor detection method and apparatus thereof | |
US9998677B2 (en) | Method of adjusting digital camera image processing parameters | |
CN110927656B (en) | Electric energy meter error measuring device and control method thereof | |
CN105243382A (en) | Fingerprint sensor calibration method and apparatus | |
JPWO2019082691A1 (en) | Dementia judgment system | |
US20170315084A1 (en) | Biosensor Device and Related Method | |
CN106815564A (en) | A kind of calibration method of fingerprint recognition system, system and a kind of electronic equipment | |
CN102404174A (en) | Method for detecting network bandwidth | |
FR3087393B1 (en) | PROCESS FOR DETERMINING THE STATE OF AGING OF AN ELECTROCHEMICAL BATTERY | |
JP2017192563A (en) | Activity meter and exercise amount calculation device | |
CN107295544B (en) | Self-optimization method and device for working frequency points of base station | |
CN110110341A (en) | A kind of pulse detecting method that decision threshold is recommended automatically | |
KR20100130055A (en) | Vehicle density detection method | |
JP2014212994A (en) | Pulse estimation device and pulse estimation program | |
CN114959967B (en) | Electrical design parameter calibration method and related device for photoelectric device | |
CN106580371B (en) | Doppler ultrasonic blood flow detection device and detection method thereof | |
CN106155279A (en) | A kind of method that dynamic adjustment terminal screen shows and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |