CN111366682B - Calibration method and device of gas sensor, electronic equipment and storage medium - Google Patents
Calibration method and device of gas sensor, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111366682B CN111366682B CN202010163921.5A CN202010163921A CN111366682B CN 111366682 B CN111366682 B CN 111366682B CN 202010163921 A CN202010163921 A CN 202010163921A CN 111366682 B CN111366682 B CN 111366682B
- Authority
- CN
- China
- Prior art keywords
- opening
- gas sensor
- data
- hole
- range
- 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
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N33/00—Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
- G01N33/0004—Gaseous mixtures, e.g. polluted air
- G01N33/0006—Calibrating gas analysers
Landscapes
- Chemical & Material Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Medicinal Chemistry (AREA)
- Food Science & Technology (AREA)
- Combustion & Propulsion (AREA)
- Physics & Mathematics (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)
Abstract
本申请实施例涉及一种气体传感器的标定方法、装置、电子设备及存储介质,上述方法包括:获取计划开孔的第一开孔数据,所述计划开孔小于气体传感器的实际开孔;基于所述第一开孔数据对放置于样本气体环境中的所述气体传感器进行标定;根据所述第一开孔数据及预设的正负误差范围确定所述气体传感器能够接受的堵孔范围。上述气体传感器的标定方法、装置、电子设备及存储介质,能够提高气体传感器能够接受的堵孔范围,延长气体传感器的使用寿命。
Embodiments of the present application relate to a method, device, electronic device, and storage medium for calibrating a gas sensor. The method includes: acquiring first opening data of a planned opening, where the planned opening is smaller than the actual opening of the gas sensor; The first opening data is used to calibrate the gas sensor placed in the sample gas environment; the acceptable hole blocking range of the gas sensor is determined according to the first opening data and a preset positive and negative error range. The calibration method, device, electronic device and storage medium of the above-mentioned gas sensor can improve the acceptable range of hole plugging of the gas sensor and prolong the service life of the gas sensor.
Description
技术领域technical field
本申请涉及传感器技术领域,具体涉及一种气体传感器的标定方法、装置、电子设备及存储介质。The present application relates to the technical field of sensors, and in particular, to a calibration method, device, electronic device and storage medium for a gas sensor.
背景技术Background technique
气体传感器是一种将某种气体体积分数转化成对应电信号的转换器,气体传感器可将气体的成份、浓度等信息转换成可以被人员、仪器仪表、计算机等利用的信息。气体传感器(例如甲醛传感器等)通常需要结合防水透气膜一起使用,随着使用过程中接触到的污染物越来越多,防水透气膜可能会发生堵孔问题,导致气体传感器的灵敏度下降,影响气体传感器的使用寿命。A gas sensor is a converter that converts a certain gas volume fraction into a corresponding electrical signal. A gas sensor can convert information such as gas composition and concentration into information that can be used by personnel, instruments, computers, etc. Gas sensors (such as formaldehyde sensors, etc.) usually need to be used in conjunction with waterproof and breathable membranes. As more and more pollutants come into contact with them during use, the waterproof and breathable membrane may block holes, resulting in a decrease in the sensitivity of the gas sensor, affecting the The service life of the gas sensor.
发明内容SUMMARY OF THE INVENTION
本申请实施例公开了一种气体传感器的标定方法、装置、电子设备及存储介质,能够提高气体传感器能够接受的堵孔范围,延长气体传感器的使用寿命。The embodiments of the present application disclose a calibration method, device, electronic device and storage medium for a gas sensor, which can improve the acceptable range of hole blocking of the gas sensor and prolong the service life of the gas sensor.
本申请实施例提供一种气体传感器的标定方法,包括:获取计划开孔的第一开孔数据,所述计划开孔小于气体传感器的实际开孔;基于所述第一开孔数据对放置于样本气体环境中的所述气体传感器进行标定;根据所述第一开孔数据及预设的正负误差范围确定所述气体传感器能够接受的堵孔范围。An embodiment of the present application provides a method for calibrating a gas sensor, including: acquiring first opening data of a planned opening, where the planned opening is smaller than the actual opening of the gas sensor; The gas sensor in the sample gas environment is calibrated; according to the first opening data and a preset positive and negative error range, the acceptable hole blocking range of the gas sensor is determined.
本申请实施例提供一种气体传感器的标定装置,包括:数据获取模块,用于获取计划开孔的第一开孔数据,所述计划开孔小于气体传感器的实际开孔;标定模块,用于基于所述第一开孔数据对放置于样本气体环境中的所述气体传感器进行标定;堵孔范围确定模块,用于根据所述第一开孔数据及预设的正负误差范围确定所述气体传感器能够接受的堵孔范围。An embodiment of the present application provides a calibration device for a gas sensor, including: a data acquisition module for acquiring first opening data of a planned opening, where the planned opening is smaller than the actual opening of the gas sensor; a calibration module for The gas sensor placed in the sample gas environment is calibrated based on the first opening data; a hole blocking range determination module is used to determine the The range of hole plugging that the gas sensor can accept.
本申请实施例提供一种电子设备,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如上所述的方法。An embodiment of the present application provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the above method.
本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的方法。Embodiments of the present application provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.
上述实施例提供的气体传感器的标定方法、装置、电子设备及存储介质,获取计划开孔的第一开孔数据,该计划开孔小于气体传感器的实际开孔,基于该第一开孔数据对放置于样本气体环境中的气体传感器进行标定,并根据该第一开孔数据及预设的正负误差范围确定气体传感器能够接受的堵孔范围,采用小于实际开孔的计划开孔的开孔数据对气体传感器进行标定,在计划开孔的开孔数据的正负误差范围内均可作为能够接受的堵孔范围,从而可提高气体传感器能够接受的堵孔范围,延长气体传感器的使用寿命。The calibration method, device, electronic device and storage medium of the gas sensor provided by the above-mentioned embodiments obtain the first opening data of the planned opening, and the planned opening is smaller than the actual opening of the gas sensor. The gas sensor placed in the sample gas environment is calibrated, and according to the first opening data and the preset positive and negative error range, the acceptable blocking range of the gas sensor is determined, and the opening that is smaller than the planned opening of the actual opening is used. The data is used to calibrate the gas sensor, and within the positive and negative error range of the planned hole opening data, it can be used as an acceptable hole blocking range, which can improve the acceptable hole blocking range of the gas sensor and prolong the service life of the gas sensor.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为一个实施例中一种气体传感器的标定方法的流程图;1 is a flowchart of a calibration method for a gas sensor in one embodiment;
图2a为一个实施例中以实际开孔的开孔数据进行标定的能够接受的堵孔范围示意图;Fig. 2a is a schematic diagram of an acceptable range of hole plugging that is calibrated with actual hole opening data in one embodiment;
图2b为一个实施例中以小于实际开孔的计划开孔的开孔数据进行标定的能够接受的堵孔范围示意图;Fig. 2b is a schematic diagram of an acceptable hole blocking range calibrated with the opening data of the planned opening smaller than the actual opening in one embodiment;
图3为一个实施例中获取计划开孔的第一开孔数据的流程图;Fig. 3 is the flow chart of obtaining the first drilling data of planned drilling in one embodiment;
图4为另一个实施例中一种气体传感器的标定方法的流程图;4 is a flowchart of a calibration method for a gas sensor in another embodiment;
图5为又一个实施例中一种气体传感器的标定方法的流程图;5 is a flowchart of a calibration method for a gas sensor in yet another embodiment;
图6为一个实施例中一种气体传感器的标定装置的框图;6 is a block diagram of a calibration device for a gas sensor in one embodiment;
图7为一个实施例中电子设备的结构框图。FIG. 7 is a structural block diagram of an electronic device in one embodiment.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
需要说明的是,本申请实施例及附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "comprising" and "having" in the embodiments of the present application and the accompanying drawings and any modifications thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。It will be understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of this application. Both the first client and the second client are clients, but they are not the same client.
气体传感器在与防水透气膜结合使用时,由于使用过程中防水透气膜会接触到大量的污染物,当污染物过多时,防水透气膜会发生堵孔问题,导致气体传感器的开孔的有效面积减小。由于气体传感器的灵敏度与开孔大小有着密切关系,当开孔的有效面积低于气体传感器的容忍范围时,会大大降低气体传感器检测气体的准确度,从而影响气体传感器的使用寿命。When the gas sensor is used in combination with the waterproof and breathable membrane, the waterproof and breathable membrane will come into contact with a large amount of pollutants during use. When there are too many pollutants, the waterproof and breathable membrane will have a hole blocking problem, resulting in the effective area of the opening of the gas sensor. decrease. Since the sensitivity of the gas sensor is closely related to the size of the opening, when the effective area of the opening is lower than the tolerance range of the gas sensor, the gas detection accuracy of the gas sensor will be greatly reduced, thereby affecting the service life of the gas sensor.
气体传感器在出厂前均需要进行标定,在传统的方式中,通常以气体传感器的实际开孔进行标定,其在使用过程中可在允许误差范围之内。而气体传感器可容忍的堵孔范围即为该实际开孔的允许误差范围,该范围较小,导致气体传感器可容忍的堵孔范围较小,影响了气体传感器的使用寿命。The gas sensor needs to be calibrated before leaving the factory. In the traditional way, the calibration is usually performed by the actual opening of the gas sensor, which can be within the allowable error range during use. The tolerable hole blocking range of the gas sensor is the allowable error range of the actual opening, which is small, resulting in a small tolerable hole blocking range of the gas sensor, which affects the service life of the gas sensor.
针对上述问题,本申请实施例提供了一种气体传感器的标定方法、装置、电子设备及存储介质,采用小于实际开孔的计划开孔的开孔数据对气体传感器进行标定,在计划开孔的开孔数据的正负误差范围内均可作为能够接受的堵孔范围,扩大了气体传感器能够接受的堵孔范围,延长气体传感器的使用寿命。In view of the above problems, the embodiments of the present application provide a method, device, electronic device and storage medium for calibrating a gas sensor. The positive and negative error range of the opening data can be used as an acceptable hole blocking range, which expands the acceptable hole blocking range of the gas sensor and prolongs the service life of the gas sensor.
如图1所示,在一个实施例中,提供一种气体传感器的标定方法,可应用于台式电脑、个人计算机(PC,Personal Computer)、平板电脑等电子设备上。该方法可包括以下步骤:As shown in FIG. 1 , in one embodiment, a method for calibrating a gas sensor is provided, which can be applied to electronic devices such as a desktop computer, a personal computer (PC, Personal Computer), and a tablet computer. The method may include the following steps:
步骤110,获取计划开孔的第一开孔数据,计划开孔小于气体传感器的实际开孔。Step 110: Acquire first opening data of the planned opening, where the planned opening is smaller than the actual opening of the gas sensor.
气体传感器在出厂前需要进行标定,可指的是使用浓度已知的标准气体作为输入值,将气体传感器放入充有标准气体的密封容器中,调节气体的压强、浓度、温度以及气体的流速等,进而分析不同条件下气体传感器的检测容差,实现对气体传感器测量精度的准确标定。The gas sensor needs to be calibrated before leaving the factory. It can refer to using the standard gas with known concentration as the input value, placing the gas sensor in a sealed container filled with standard gas, and adjusting the pressure, concentration, temperature and flow rate of the gas. And so on, and then analyze the detection tolerance of the gas sensor under different conditions, and realize the accurate calibration of the measurement accuracy of the gas sensor.
计划开孔可指的是气体传感器在进行标定时所使用的开孔,在一些实施例中,气体传感器与防水透气膜结合时,需开设开孔与防水透气膜配合,才可达到防水、检测气体的作用。在对气体传感器进行标定时,可获取计划开孔的第一开孔数据,其中,第一开孔数据可包括但不限于计划开孔的开孔面积、开孔直径、开孔半径等,第一开孔数据可用于表征计划开孔的大小。The planned opening may refer to the opening used by the gas sensor during calibration. In some embodiments, when the gas sensor is combined with the waterproof and breathable membrane, it is necessary to open the opening and cooperate with the waterproof and breathable membrane to achieve waterproof and detection. effect of gas. When calibrating the gas sensor, the first opening data of the planned opening can be obtained, wherein the first opening data may include but not limited to the opening area, opening diameter, opening radius, etc. of the planned opening. An aperture data can be used to characterize the size of the planned aperture.
在本申请实施例中,计划开孔小于气体传感器的实际开孔,实际开孔指的是气体传感器实际开设的开孔,采用小于实际开孔的计划开孔对气体传感器进行标定。可选地,减小气体传感器在标定时的开孔大小的方式可以有多种,例如,可对实际开孔进行遮挡,遮挡住实际开孔的一部分,使得气体传感器在标定时所使用的开孔大小小于实际开孔的开孔大小,也可制作两种开设有不同大小开孔的部件,在气体传感器进行标定时,采用开孔较小的部件进行标定,标定结束后再更换成开孔较大的部分等,减小气体传感器在标定时的开孔大小的方式在此不作限定。In the embodiment of the present application, the planned opening is smaller than the actual opening of the gas sensor, the actual opening refers to the opening actually opened by the gas sensor, and the planned opening smaller than the actual opening is used to calibrate the gas sensor. Optionally, there can be various ways to reduce the size of the opening of the gas sensor during calibration. The size of the hole is smaller than that of the actual opening, and two kinds of parts with openings of different sizes can also be made. When the gas sensor is calibrated, the part with the smaller opening is used for calibration, and then the opening is replaced after the calibration is completed. The method of reducing the aperture size of the gas sensor during calibration is not limited here.
步骤120,基于第一开孔数据对放置于样本气体环境中的气体传感器进行标定。
可将气体传感器放置于样本气体环境中,样本气体环境中包含有浓度已知的样本气体,该样本气体可为气体传感器所需检测的气体。例如,气体传感器为甲醛传感器,则样本气体可已知浓度的甲醛。气体传感器对样本气体环境中的样本气体浓度进行检测,可将检测输出的样本气体浓度与已知浓度进行比对,确认二者之间的误差,再根据误差调整气体传感器中的设置参数、各零部件参数等,直至气体传感器输出的浓度与已知浓度的误差小于阈值,从而完成对气体传感器测量精度的标定。The gas sensor can be placed in a sample gas environment, and the sample gas environment contains sample gas with a known concentration, and the sample gas can be the gas to be detected by the gas sensor. For example, if the gas sensor is a formaldehyde sensor, the sample gas can have a known concentration of formaldehyde. The gas sensor detects the sample gas concentration in the sample gas environment, and can compare the detected sample gas concentration with the known concentration to confirm the error between the two, and then adjust the setting parameters in the gas sensor according to the error. Part parameters, etc., until the error between the concentration output by the gas sensor and the known concentration is less than the threshold, so as to complete the calibration of the measurement accuracy of the gas sensor.
根据第一开孔数据对放置于样本气体环境中的气体传感器进行标定,即气体传感器使用小于实际开孔的计划开孔进行标定,气体传感器可记录该第一开孔数据,并在使用过程中,以该第一开孔数据为基准,确定可容忍的堵孔范围。The gas sensor placed in the sample gas environment is calibrated according to the first opening data, that is, the gas sensor is calibrated by using a planned opening smaller than the actual opening. The gas sensor can record the first opening data and use it during use. , and based on the first hole opening data, determine the tolerable hole blocking range.
步骤130,根据第一开孔数据及预设的正负误差范围确定气体传感器能够接受的堵孔范围。Step 130: Determine a hole blocking range acceptable to the gas sensor according to the first hole opening data and a preset positive and negative error range.
正负误差范围可指的是标定的开孔数据在使用时的误差范围。在气体传感器的使用过程中,有效孔的大小在标定的开孔数据的正负误差范围内均可属于正常使用的情况,不会影响气体传感器检测气体的精度,或是影响极小。有效孔指的是实际开孔中除堵孔以外的部份,即为,实际开孔中可流通气体的部分。标定的开孔数据的误差范围既包含大于标定的开孔数据的一侧阈值,又包含小于标定的开孔数据的一侧阈值,相当于是标定的开孔数据±误差阈值。在一个实施例中,正负误差范围可用±X%表示,其中,X%可指的是误差阈值,误差阈值即为标定的开孔数据的X%,其中,X可根据实际需求进行设定,在此不作限定。The positive and negative error range can refer to the error range of the calibrated drilling data in use. In the process of using the gas sensor, the size of the effective hole is within the positive and negative error range of the calibrated hole data, which can belong to normal use. The effective hole refers to the part of the actual opening except for the blocked hole, that is, the part of the actual opening that can flow gas. The error range of the calibrated drilling data includes not only a threshold value larger than the calibrated drilling data, but also a side threshold smaller than the calibration drilling data, which is equivalent to the calibration drilling data±error threshold. In one embodiment, the positive and negative error range can be represented by ±X%, where X% can refer to an error threshold, and the error threshold is X% of the calibrated drilling data, where X can be set according to actual needs , which is not limited here.
可选地,当第一开孔数据的类型不同时,对应的正负误差范围的误差阈值可不同,例如,第一开孔数据为开孔面积和为开孔半径时,可分别对应不同的误差阈值。Optionally, when the types of the first opening data are different, the error thresholds of the corresponding positive and negative error ranges may be different. For example, when the first opening data is the opening area and the opening radius, they may correspond to different Error threshold.
在传统的方式中,通常以气体传感器的实际开孔的开孔数据进行标定,因此,气体传感器能够接受的堵孔范围仅会用到正负误差范围中小于实际开孔的开孔数据一侧的数据进行确定。气体传感器能够接受的堵孔范围可为大于或等实际开孔的开孔大小-X%*实际开孔的开孔大小,且小于或等于实际开孔的开孔大小。当有效孔的大小处于实际开孔的开孔数据的负误差范围内时,属于正常使用的情况。由于有效孔大于实际开孔的情况不存在,正误差范围并没有得到利用,造成气体传感器可忍受的堵孔范围较小。In the traditional method, the calibration is usually performed with the opening data of the actual opening of the gas sensor. Therefore, the acceptable blocking range of the gas sensor is only used for the side of the opening data that is smaller than the actual opening in the positive and negative error range. data to be determined. The acceptable blocking range of the gas sensor can be greater than or equal to the opening size of the actual opening - X% * the opening size of the actual opening, and less than or equal to the opening size of the actual opening. When the size of the effective hole is within the negative error range of the actual hole opening data, it belongs to the normal use. Since there is no situation where the effective hole is larger than the actual opening, the positive error range is not utilized, resulting in a smaller hole blocking range tolerable for the gas sensor.
在本申请实施例中,采用小于实际开孔的计划开孔的第一开孔数据进行标定。气体传感器能够接受的堵孔范围可为大于或等计划开孔的开孔大小-X%*计划开孔的开孔大小,且小于或等于计划开孔的开孔大小+X%*计划开孔的开孔大小,正负误差范围均得到了利用,扩大了气体传感器可忍受的堵孔范围。In the embodiment of the present application, the calibration is performed using the first opening data of the planned opening that is smaller than the actual opening. The acceptable blocking range of the gas sensor can be greater than or equal to the opening size of the planned opening -X%*the opening size of the planned opening, and less than or equal to the opening size of the planned opening +X%*The planned opening The size of the hole and the range of positive and negative errors have been used, which expanded the range of hole plugging that the gas sensor can tolerate.
可选地,可根据计划开孔的第一开孔数据及正误差阈值,判断正负误差范围的边界值是否大于实际开孔的第二开孔数据,即可判断计划开孔的开孔大小的正误差边界值是否大于实际开孔的开孔大小,若大于,则气体传感器能够接受的堵孔范围可为大于或等计划开孔的开孔大小-X%*计划开孔的开孔大小,且小于或等于实际开孔的开孔大小。Optionally, it is possible to judge whether the boundary value of the positive and negative error ranges is greater than the second opening data of the actual opening according to the first opening data of the planned opening and the positive error threshold, and then the size of the opening of the planned opening can be judged. Whether the positive error boundary value is greater than the actual opening size of the opening, if it is greater than, the gas sensor can accept the plugging range can be greater than or equal to the opening size of the planned opening - X% * the opening size of the planned opening , and less than or equal to the actual opening size.
图2a为一个实施例中以实际开孔的开孔数据进行标定的能够接受的堵孔范围示意图。请参图2a,以气体传感器的实际开孔202的开孔数据对气体传感器进行标定,气体传感器可接受的堵孔范围可利用实际开孔202的开孔数据的正负误差范围进行确定,其得到的能够接受的堵孔范围可参阴影部分204所示,仅利用了实际开孔202的开孔数据的负误差范围而没有利用正误差范围。图2b为一个实施例中以小于实际开孔的计划开孔的开孔数据进行标定的能够接受的堵孔范围示意图。请参图2b,以小于气体传感器的实际开孔的计划开孔206的开孔数据对气体传感器进行标定,气体传感器可接受的堵孔范围可利用计划开孔206的开孔数据的正负误差范围进行确定,其得到的能够接受的堵孔范围可参阴影部分208所示,正、负误差两个范围均可得到有效利用。在不改变气体传感器的硬件结构的情况下,通过简单地对气体传感器的标定方法进行改进,有效扩大了气体传感器可接受的堵孔范围,延长气体传感器的寿命。FIG. 2 a is a schematic diagram of an acceptable hole blocking range calibrated with actual hole opening data in an embodiment. Referring to FIG. 2a, the gas sensor is calibrated with the opening data of the
可以理解地,本申请实施例中提供的气体传感器的标定方法可以通过对气体传感器进行标定的标定设备实施,也可以通过其他电子设备实施,其实施主体在此不作限定。It can be understood that the calibration method of the gas sensor provided in the embodiments of the present application can be implemented by a calibration device for calibrating a gas sensor, and can also be implemented by other electronic devices, and the implementation subject is not limited here.
在本申请实施例中,获取计划开孔的第一开孔数据,该计划开孔小于气体传感器的实际开孔,基于该第一开孔数据对放置于样本气体环境中的气体传感器进行标定,并根据该第一开孔数据及预设的正负误差范围确定气体传感器能够接受的堵孔范围,采用小于实际开孔的计划开孔的开孔数据对气体传感器进行标定,在计划开孔的开孔数据的正负误差范围内均可作为能够接受的堵孔范围,从而可提高气体传感器能够接受的堵孔范围,延长气体传感器的使用寿命。In the embodiment of the present application, the first opening data of the planned opening is obtained, the planned opening is smaller than the actual opening of the gas sensor, and the gas sensor placed in the sample gas environment is calibrated based on the first opening data, And according to the first opening data and the preset positive and negative error range to determine the acceptable blocking range of the gas sensor, and use the opening data of the planned opening smaller than the actual opening to calibrate the gas sensor. The positive and negative error range of the opening data can be used as an acceptable hole blocking range, so that the acceptable hole blocking range of the gas sensor can be improved and the service life of the gas sensor can be prolonged.
如图3所示,在一个实施例中,步骤获取计划开孔的第一开孔数据,可包括以下步骤:As shown in Figure 3, in one embodiment, the step of acquiring the first drilling data of the planned drilling may include the following steps:
步骤302,确定预设的面积差值,面积差值为计划开孔的第一开孔面积与气体传感器的实际开孔的第二开孔面积之间的差值。
在一些实施方式中,计划开孔的第一开孔数据可包括但不限于计划开孔的第一开孔面积、第一开孔直径、第一开孔半径等,气体传感器的实际开孔的第二开孔数据可包括但不限于实际开孔的第二开孔面积、第二开孔直径、第二开孔半径等,实际开孔的第二开孔数据可用于表征实际开孔的开孔大小。In some embodiments, the first opening data of the planned opening may include, but not limited to, the first opening area of the planned opening, the first opening diameter, the first opening radius, etc., the actual opening of the gas sensor. The second opening data may include, but not limited to, the second opening area, the second opening diameter, the second opening radius, etc. of the actual opening, and the second opening data of the actual opening may be used to characterize the opening of the actual opening. hole size.
可确定计划开孔与实际开孔之间的面积差值,该面积差值可以预先进行设置。可选地,该面积差值可根据实际需求进行设置,也可根据实际开孔的开孔大小及正负误差范围的临界值进行设置。面积差值可与实际开孔的第二开孔面积成正相关关系,当实际开孔的第二开孔面积越大时,面积差值可越大。作为一种具体实施方式,面积差值可与预设的正负误差范围的误差阈值成正相关相系,如正负误差范围用±X%表示,该误差阈值可为X%,当误差阈值越大时,设置的面积差值可越大。The area difference between the planned opening and the actual opening can be determined, and the area difference can be preset. Optionally, the area difference can be set according to actual needs, or according to the actual opening size of the opening and the critical value of the positive and negative error ranges. The area difference may have a positive correlation with the second opening area of the actual opening. When the second opening area of the actual opening is larger, the area difference may be larger. As a specific implementation manner, the area difference can be positively correlated with the preset error threshold of the positive and negative error range. For example, the positive and negative error range is represented by ±X%, and the error threshold can be X%. When it is larger, the set area difference can be larger.
步骤304,根据面积差值及第二开孔面积获取第一开孔面积。Step 304: Obtain the first opening area according to the area difference and the second opening area.
可选地,可将实际开孔的第二开孔面积减去面积差值,得到计划开孔的第一开孔面积。作为一种具体实施方式,面积差值可以通过计划开孔的第一开孔面积乘以误差阈值得到,即,计划开孔的第一开孔面积+计划开孔的第一开孔面积*X%=实际开孔的第二开孔面积。可满足在气体传感器的使用过程中,计划开孔的第一开孔面积的正误差范围刚好为实际开孔的第二开孔面积,在此情况下,气体传感器可接受的堵孔面积可达到最大,从而使得实际开孔得到更有效地利用,并降低对气体检测准确度的影响。在其他的实施方式中,面积差值也可能大于或小于计划开孔的第一开孔面积乘以误差阈值的值,在此不作限定。Optionally, the area difference may be subtracted from the second opening area of the actual opening to obtain the first opening area of the planned opening. As a specific embodiment, the area difference can be obtained by multiplying the first opening area of the planned opening by the error threshold, that is, the first opening area of the planned opening + the first opening area of the planned opening*X %=Second opening area of the actual opening. It can be satisfied that during the use of the gas sensor, the positive error range of the first opening area of the planned opening is just the second opening area of the actual opening. In this case, the acceptable blocking area of the gas sensor can reach maximum, so that the actual openings are used more efficiently and the impact on the gas detection accuracy is reduced. In other embodiments, the area difference may also be larger or smaller than the value of the first aperture area of the planned aperture multiplied by the error threshold, which is not limited herein.
在一个实施例中,在气体传感器进行标定时,可对实际开孔进行遮挡,得到小于实际开孔的计划开孔,也可通过距离传感器等方式直接检测计划开孔的第一开孔面积,获取计划开孔的第一开孔面积的方式在此不作限定。In one embodiment, when the gas sensor is calibrated, the actual opening can be blocked to obtain a planned opening smaller than the actual opening, and the first opening area of the planned opening can also be directly detected by means of a distance sensor, etc., The manner of obtaining the first opening area of the planned opening is not limited herein.
在本申请实施例中,根据预设的面积差值确定计划开孔的第一开孔面积,采用小于实际开孔的开孔面积对气体传感器进行标定,可提高气体传感器能够接受的堵孔范围,且获取计划开孔的第一开孔面积的方式简单,提高了标定效率。In the embodiment of the present application, the first opening area of the planned opening is determined according to the preset area difference, and the opening area smaller than the actual opening is used to calibrate the gas sensor, which can improve the range of hole blocking acceptable to the gas sensor. , and the method of obtaining the first opening area of the planned opening is simple, which improves the calibration efficiency.
如图4所示,在一个实施例中,提供一种气体传感器的标定方法,包括以下步骤:As shown in FIG. 4 , in one embodiment, a method for calibrating a gas sensor is provided, comprising the following steps:
步骤402,获取计划开孔的第一开孔数据,计划开孔小于气体传感器的实际开孔。
步骤404,基于第一开孔数据对放置于样本气体环境中的气体传感器进行标定。
步骤406,根据第一开孔数据及预设的正负误差范围确定气体传感器能够接受的堵孔范围。
步骤402~406的描述,可参考上述实施例中的描述,在此不再一一赘述。For the description of
步骤408,根据实际开孔的第二开孔数据及堵孔范围,确定有效孔范围。Step 408: Determine the effective hole range according to the second hole opening data of the actual hole opening and the hole plugging range.
有效孔可指的是气体传感器的实际开孔中除堵孔以外的部分,在气体传感器的使用过程中,由于防水透气膜会发生堵孔问题,导致实际开孔中可用的开孔大小逐渐变小,有效孔可指的是实际开孔在使用过程中可用的部分。根据气体传感器在标定时所采用的计划开孔的第一开孔数据及正负误差范围确定气体传感器可接受的堵孔范围后,可根据实际开孔的第二开孔数据及堵孔范围确定有效孔范围。堵孔范围可用开孔的面积范围、半径范围、直径范围等多种方式进行表示,有效孔范围也可用开孔的面积范围、半径范围、直径范围等多种方式进行表示。例如,气体传感器可接受的堵孔范围为半径5毫米到15毫米,实际开孔的半径为15毫米,则有效孔范围可为半径5毫米到15毫米,也可采用面积、直径等进行表示,在此不作限定。The effective hole can refer to the part of the actual opening of the gas sensor other than the blocked hole. During the use of the gas sensor, due to the blocking problem of the waterproof and breathable membrane, the size of the available opening in the actual opening gradually changes. A small, effective hole may refer to the portion of the actual opening that is available during use. After determining the acceptable plugging range of the gas sensor according to the first opening data and the positive and negative error range of the planned opening used in the calibration of the gas sensor, it can be determined according to the second opening data of the actual opening and the plugging range. Effective hole range. The plugging range can be expressed in various ways such as the area range, radius range, and diameter range of the opening, and the effective hole range can also be expressed in various ways such as the area range, radius range, and diameter range of the opening. For example, the acceptable plugging range of the gas sensor is 5 mm to 15 mm in radius, and the radius of the actual opening is 15 mm, then the effective hole range can be 5 mm to 15 mm in radius, and it can also be expressed by area, diameter, etc. It is not limited here.
在一个实施例中,气体传感器的有效孔范围可与可接受的堵孔范围一致。气体传感器的有效孔范围也可小于可接受的堵孔范围,例如,气体传感器可接受的堵孔范围为半径5毫米到15毫米,有效孔范围为半径6毫米到15毫米等,但不限于此。In one embodiment, the effective pore range of the gas sensor may be consistent with the acceptable pore blocking range. The effective hole range of the gas sensor may also be smaller than the acceptable hole blocking range. For example, the acceptable hole blocking range of the gas sensor is 5 mm to 15 mm in radius, and the effective hole range is 6 mm to 15 mm in radius, etc., but not limited to this .
步骤410,在气体传感器处于使用状态时,检测实际开孔的有效孔数据。
气体传感器处于使用状态,可指的是气体传感器正式用于执行检测气体的工作(非标定过程),在使用状态时,气体传感器可用于检测未知的环境中目标气体的气体浓度。在气体传感器处于使用状态时,可检测实际开孔的有效孔数据,有效孔数据可用于表征实际开孔在使用过程中的有效孔大小,即实际开孔在使用过程中未被堵住的可用部分大小。有效孔数据可包括但不限于有效孔的面积、半径、直径等。When the gas sensor is in use, it can mean that the gas sensor is officially used to perform the work of detecting gas (non-calibration process). When in use, the gas sensor can be used to detect the gas concentration of the target gas in an unknown environment. When the gas sensor is in use, the effective hole data of the actual opening can be detected, and the effective hole data can be used to characterize the effective hole size of the actual opening during use, that is, the actual opening is not blocked during use. portion size. Effective hole data may include, but is not limited to, the area, radius, diameter, etc. of the effective hole.
步骤412,当有效孔数据不处于有效孔范围内时,确定实际开孔为不可用状态。
可判断检测到的有效孔数据是否处于有效孔范围内,当检测到的有效孔数据不处于有效孔范围内时,可说明有效孔的大小已无法满足气体传感器检测气体的准确度,影响了气体传感器的检测灵敏度,可确定实际开孔为不可用状态。It can be judged whether the detected valid hole data is within the valid hole range. When the detected valid hole data is not within the valid hole range, it can be shown that the size of the valid hole can no longer meet the accuracy of gas detection by the gas sensor, which affects the gas The detection sensitivity of the sensor can determine that the actual opening is not available.
可以理解地,进行范围比对时,检测的有效孔数据与有效孔范围可为相同类型的数据,例如,检测的有效孔数据可以为检测到的有效孔面积,对应的有效孔范围可为有效孔的面积范围,检测的有效孔数据可以为检测到的有效孔半径,对应的有效孔范围可为有效孔的半径范围等。It can be understood that when the range comparison is performed, the detected effective hole data and the effective hole range can be the same type of data, for example, the detected effective hole data can be the detected effective hole area, and the corresponding effective hole range can be valid. The area range of the hole, the detected effective hole data may be the detected effective hole radius, and the corresponding effective hole range may be the effective hole radius range and the like.
举例进行说明,在一个实施例中,假设实际开孔的孔径为1.8毫米,计划开孔的孔径为1.4毫米,可计算不同有效孔孔径相对计划开孔孔径的百分比,其结果可如表1所示。For example, in one embodiment, assuming that the actual hole diameter is 1.8 mm and the planned hole diameter is 1.4 mm, the percentage of different effective hole diameters relative to the planned hole diameter can be calculated, and the results can be shown in Table 1. Show.
表1Table 1
其中,平均响应参差即指的是不同有效孔孔径相对计划开孔孔径的百分比。若正负误差范围为±30%,则可判断各个有效孔孔径对应的平均响应参差是否处于该正负误差范围内,从而确定实际开孔是否可用。如表1所示的数据,当有效孔孔径为1.0毫米时,其对应的平均响应参差为-35%,超出正负误差范围,则可确定实际开孔处于不可用状态。在实际开孔的孔径为1.8毫米,计划开孔的孔径为1.4毫米的条件下,气体传感器能够接受的堵孔范围可以为1.8毫米~1.2毫米,扩大了可接受的堵孔范围。Among them, the average response variation refers to the percentage of different effective pore diameters relative to the planned opening diameters. If the positive and negative error range is ±30%, it can be judged whether the average response variance corresponding to each effective hole diameter is within the positive and negative error range, so as to determine whether the actual opening is available. As shown in Table 1, when the effective hole diameter is 1.0 mm, the corresponding average response variance is -35%, which exceeds the positive and negative error range, it can be determined that the actual opening is in an unusable state. Under the condition that the actual opening diameter is 1.8 mm and the planned opening diameter is 1.4 mm, the acceptable plugging range of the gas sensor can be 1.8 mm to 1.2 mm, which expands the acceptable plugging range.
在一些实施方式中,执行上述检测有效孔数据并与有效孔范围进行比对的步骤,可以为气体传感器,也可以为监控气体传感器的终端设备等,终端设备通过监控气体传感器的有效孔数据,可监测气体传感器的使用情况,并将气体传感器的使用情况在界面中进行显示,可使用户更直接地获取气体传感器的使用情况,例如,可显示实际开孔是否可用,可显示气体传感器检测到的气体浓度,气体传感器已使用时长等。可选地,在确定气体传感器的实际开孔为不可用状态时,也可生成提示信息,提示该气体传感器的实际开孔不可用。In some embodiments, the above-mentioned step of detecting the valid hole data and comparing it with the valid hole range may be a gas sensor, or a terminal device monitoring the gas sensor, etc. The terminal device monitors the valid hole data of the gas sensor, It can monitor the usage of the gas sensor and display the usage of the gas sensor in the interface, so that the user can obtain the usage of the gas sensor more directly. gas concentration, how long the gas sensor has been used, etc. Optionally, when it is determined that the actual opening of the gas sensor is in an unavailable state, prompt information may also be generated, indicating that the actual opening of the gas sensor is unavailable.
在本申请实施例中,可根据实际开孔的第二开孔数据及堵孔范围,确定有效孔范围,在气体传感器的使用过程中检测有效孔数据,并在有效孔数据不处于该有效孔范围时,确定实际开孔为不可用状态,可及时获知气体传感器的使用状态,提高气体传感器的使用效率。In the embodiment of the present application, the effective hole range can be determined according to the second opening data of the actual opening and the plugging range, and the effective hole data is detected during the use of the gas sensor, and when the effective hole data is not in the effective hole When the actual opening is determined to be unavailable, the use state of the gas sensor can be known in time, and the use efficiency of the gas sensor can be improved.
如图5所示,在另一个实施例中,提供一种气体传感器的标定方法,包括以下步骤:As shown in FIG. 5 , in another embodiment, a method for calibrating a gas sensor is provided, comprising the following steps:
步骤502,获取计划开孔的第一开孔数据,计划开孔小于气体传感器的实际开孔。
在一个实施例中,第一开孔数据可包括第一开孔面积,可确定预设的面积差值,面积差值为计划开孔的第一开孔面积与气体传感器的实际开孔的第二开孔面积之间的差值,并根据面积差值及第二开孔面积获取第一开孔面积。可选地,面积差值与正负误差范围的误差阈值成正相关关系。In one embodiment, the first opening data may include a first opening area, and a preset area difference may be determined, where the area difference is a difference between the first opening area of the planned opening and the actual opening area of the gas sensor. The difference between the two opening areas, and the first opening area is obtained according to the area difference and the second opening area. Optionally, the area difference is positively correlated with the error thresholds of the positive and negative error ranges.
步骤504,基于第一开孔数据对放置于样本气体环境中的气体传感器进行标定。
步骤506,根据第一开孔数据及预设的正负误差范围确定气体传感器能够接受的堵孔范围。
步骤502~506的描述,可参考上述实施例中的描述,在此不再一一赘述。For the description of
步骤508,在气体传感器处于使用状态时,检测实际开孔的堵孔数据。
堵孔可指的是实际开孔中被堵的部分,气体传感器在检测气体时,气体仅可通过实际开孔中未被堵住的部分(即有效孔)进行流通。在气体传感器处于使用状态时,可检测实际开孔的堵孔数据,堵孔数据可用于表征实际开孔在使用过程中的堵孔大小,即实际开孔在使用过程中已被堵住的部分。堵孔数据可包括但不限于堵孔的面积、半径及直径等。可以理解地,堵孔数据为半径或直径时,可以为数值范围,例如,堵孔半径为实际开孔中的10毫米~15毫米部分。The blocked hole may refer to the blocked part of the actual opening. When the gas sensor detects gas, the gas can only flow through the unblocked part of the actual opening (ie, the effective hole). When the gas sensor is in use, the plugging data of the actual opening can be detected, and the plugging data can be used to characterize the size of the actual opening during use, that is, the part of the actual opening that has been blocked during use. . The plugged hole data may include, but is not limited to, the area, radius, and diameter of the plugged hole. It can be understood that when the hole plugging data is a radius or a diameter, it can be a numerical range. For example, the radius of the blocked hole is the part of 10 mm to 15 mm in the actual opening.
在一个实施例中,可获取气体传感器的总使用时长,总使用时长可指的是气体传感器的工作总时间,在气体传感器开启后,可统计每次的工作时间,并进行累加,得到气体传感器的总使用时长。可根据气体传感器的总使用时长获取堵孔数据。使用时长与堵孔数据可具备对应关系,使用时长越长,其对应的堵孔数据可越大。在检测堵孔数据时,可获取气体传感器当前的总使用时长,根据使用时长与堵孔数据之间的对应关系,获取气体传感器的总使用时长对应的堵孔数据。In one embodiment, the total use time of the gas sensor can be obtained, and the total use time can refer to the total working time of the gas sensor. After the gas sensor is turned on, the working time of each time can be counted and accumulated to obtain the gas sensor. total usage time. The plugging data can be obtained according to the total usage time of the gas sensor. There may be a corresponding relationship between the use time and the plugging data. The longer the use time, the larger the corresponding plugging data. When detecting the hole blocking data, the current total usage time of the gas sensor can be obtained, and according to the corresponding relationship between the usage time and the hole blocking data, the hole blocking data corresponding to the total usage time of the gas sensor can be obtained.
使用时长与堵孔数据之间的对应关系可采用不同的方式建立。在一个实施例中,可通过实验数据构建使用时长与堵孔数据之间的对应关系,可将气体传感器放置于实验气体环境中,并监测在不同时间段下气体传感器的实际开孔的堵孔大小。例如,使用时长与堵孔数据的对应关系可如表1所示。The correspondence between the usage time and the plugging data can be established in different ways. In one embodiment, the corresponding relationship between the duration of use and the hole blocking data can be constructed through experimental data, the gas sensor can be placed in the experimental gas environment, and the hole blocking of the actual opening of the gas sensor in different time periods can be monitored. size. For example, the corresponding relationship between the duration of use and the plugging data can be shown in Table 1.
表1Table 1
表1中的堵孔数据采用实际开孔中被堵部分的半径范围表示,也可采用其他方式表示,在此不作限定。The hole blocking data in Table 1 is expressed by the radius range of the blocked part in the actual opening, and can also be expressed in other ways, which is not limited here.
在一个实施例中,利用实验数据构建使用时长与堵孔数据之间的对应关系,可将气体传感器放置于不同的实验气体环境中,各个实验气体环境的气体环境参数可不同,其中,该气体环境参数可包括实验气体环境中包含的气体成份,以及各种气体的浓度等。根据各个实验气体环境中采集的数据,可构建不同的使用时长与堵孔数据之间的对应关系。例如,在不同浓度的甲醛环境中,使用时长与堵孔数据的对应关系可如表2所示。In one embodiment, the corresponding relationship between the usage time and the hole plugging data is constructed by using the experimental data, the gas sensor can be placed in different experimental gas environments, and the gas environment parameters of each experimental gas environment can be different, wherein the gas The environmental parameters may include the gas components contained in the experimental gas environment, and the concentrations of various gases. According to the data collected in each experimental gas environment, the corresponding relationship between different usage time and hole plugging data can be constructed. For example, in the formaldehyde environment with different concentrations, the corresponding relationship between the use time and the plugging data can be shown in Table 2.
表2Table 2
可以理解地,使用时长与堵孔数据之间的对应关系并不仅限于上述表1及表2中的数据,其对应关系可根据气体传感器的实际使用情况构建。It can be understood that the corresponding relationship between the usage time and the hole plugging data is not limited to the data in Table 1 and Table 2 above, and the corresponding relationship can be constructed according to the actual use of the gas sensor.
在一些实施方式中,在气体传感器处于使用状态时,可获取气体传感器所处的气体环境参数,该气体环境参数可包括所处气体环境中包含的气体成份,以及各种气体的浓度等。可根据该气体环境参数确定使用时长与堵孔数据之间的对应关系,不同气体环境参数下可匹配不同的对应关系。可获取气体传感器的总使用时长,并根据与当前所处气体环境的气体环境参数匹配的使用时长与堵孔数据之间的对应关系,获取总使用时长对应的堵孔数据。基于使用时长与堵孔数据之间的对应关系,检测气体传感器在使用过程中的堵孔数据,可使检测的数据更为准确。In some embodiments, when the gas sensor is in use, the gas environment parameters in which the gas sensor is located can be obtained, and the gas environment parameters can include gas components contained in the gas environment and the concentrations of various gases. The corresponding relationship between the usage time and the hole plugging data can be determined according to the gas environment parameters, and different corresponding relationships can be matched under different gas environment parameters. The total use time of the gas sensor can be obtained, and the plugging data corresponding to the total use time can be obtained according to the corresponding relationship between the use time matching the gas environment parameters of the current gas environment and the plugging data. Based on the corresponding relationship between the use time and the hole blocking data, detecting the hole blocking data during the use of the gas sensor can make the detected data more accurate.
步骤510,当堵孔数据不处于堵孔范围内时,确定实际开孔为不可用状态。
根据气体传感器在标定时所采用的计划开孔的第一开孔数据及正负误差范围确定气体传感器可接受的堵孔范围后,可判断检测到的堵孔数据是否处于该堵孔范围。当堵孔数据处于堵孔范围内时,可说明实际开孔中可用部分较大,不影响气体传感器的检测灵敏度。当堵数据不处于堵孔范围内时,可说明实际开孔的堵孔过大,影响了气体传感器的检测灵敏度,可确定实际开孔为不可用状态。After determining the acceptable hole blocking range of the gas sensor according to the first hole opening data and the positive and negative error range of the planned hole used in the calibration of the gas sensor, it can be determined whether the detected hole blocking data is within the hole blocking range. When the hole blocking data is within the hole blocking range, it can be shown that the available part of the actual opening is relatively large, which does not affect the detection sensitivity of the gas sensor. When the plugging data is not within the range of plugging, it can be shown that the plugging of the actual opening is too large, which affects the detection sensitivity of the gas sensor, and it can be determined that the actual opening is in an unavailable state.
在一些实施方式中,也可根据实际开孔的第二开孔数据及堵孔范围,确定有效孔范围,在气体传感器处于使用状态时,检测实际开孔的有效孔数据,当有效孔数据不处于有效孔范围内时,确定实际开孔为不可用状态。可选地,有效孔数据可根据气体的流速、流动体积等气体数据进行检测,也可先检测堵孔数据后,根据堵孔数据及实际开孔的第二开孔数据得到有效孔数据,其检测方式在此不作限定。In some embodiments, the effective hole range can also be determined according to the second opening data of the actual opening and the plugging range. When the gas sensor is in use, the effective hole data of the actual opening is detected. When the valid hole data is not When it is within the valid hole range, it is determined that the actual opening is in an unavailable state. Optionally, the effective hole data can be detected according to gas data such as the flow rate and flow volume of the gas, or after the hole blocking data is detected first, the effective hole data can be obtained according to the hole blocking data and the second hole opening data of the actual opening. The detection method is not limited here.
在一些实施方式中,执行上述检测堵孔数据并与堵孔范围进行比对的步骤,可以为气体传感器,也可以为监控气体传感器的终端设备等。In some embodiments, the above step of detecting the hole blocking data and comparing it with the hole blocking range may be a gas sensor, or a terminal device monitoring the gas sensor, or the like.
在本申请实施例中,在气体传感器的使用过程中检测堵孔数据,并在堵孔数据不处于可接受的堵孔范围时,确定实际开孔为不可用状态,可及时获知气体传感器的使用状态,提高气体传感器的使用效率。In the embodiment of the present application, the hole blocking data is detected during the use of the gas sensor, and when the hole blocking data is not within an acceptable hole blocking range, it is determined that the actual opening is in an unavailable state, and the use of the gas sensor can be known in time. state and improve the efficiency of the gas sensor.
如图6所示,在一个实施例中,提供一种气体传感器的标定装置600,包括数据获取模块610、标定模块620及堵孔范围确定模块630。As shown in FIG. 6 , in one embodiment, a gas
数据获取模块610,用于获取计划开孔的第一开孔数据,计划开孔小于气体传感器的实际开孔。The
标定模块620,用于基于第一开孔数据对放置于样本气体环境中的气体传感器进行标定。The
堵孔范围确定模块630,用于根据第一开孔数据及预设的正负误差范围确定气体传感器能够接受的堵孔范围。The hole blocking
在本申请实施例中,获取计划开孔的第一开孔数据,该计划开孔小于气体传感器的实际开孔,基于该第一开孔数据对放置于样本气体环境中的气体传感器进行标定,并根据该第一开孔数据及预设的正负误差范围确定气体传感器能够接受的堵孔范围,采用小于实际开孔的计划开孔的开孔数据对气体传感器进行标定,在计划开孔的开孔数据的正负误差范围内均可作为能够接受的堵孔范围,从而可提高气体传感器能够接受的堵孔范围,延长气体传感器的使用寿命。In the embodiment of the present application, the first opening data of the planned opening is obtained, the planned opening is smaller than the actual opening of the gas sensor, and the gas sensor placed in the sample gas environment is calibrated based on the first opening data, And according to the first opening data and the preset positive and negative error range to determine the acceptable blocking range of the gas sensor, use the opening data of the planned opening smaller than the actual opening to calibrate the gas sensor. The positive and negative error range of the opening data can be used as an acceptable hole blocking range, so that the acceptable hole blocking range of the gas sensor can be improved and the service life of the gas sensor can be prolonged.
在一个实施例中,第一开孔数据包括第一开孔面积。In one embodiment, the first aperture data includes a first aperture area.
数据获取模块610,包括差值确定单元及面积获取单元。The
差值确定单元,用于确定预设的面积差值,面积差值为计划开孔的第一开孔面积与气体传感器的实际开孔的第二开孔面积之间的差值。The difference determination unit is used for determining a preset area difference, where the area difference is the difference between the first opening area of the planned opening and the second opening area of the actual opening of the gas sensor.
在一个实施例中,该面积差值与正负误差范围的误差阈值成正相关关系。In one embodiment, the area difference is positively correlated with the error threshold of the positive and negative error ranges.
面积获取单元,用于根据面积差值及第二开孔面积获取第一开孔面积。The area obtaining unit is used for obtaining the first opening area according to the area difference and the second opening area.
在本申请实施例中,根据预设的面积差值确定计划开孔的第一开孔面积,采用小于实际开孔的开孔面积对气体传感器进行标定,可提高气体传感器能够接受的堵孔范围,且获取计划开孔的第一开孔面积的方式简单,提高了标定效率。In the embodiment of the present application, the first opening area of the planned opening is determined according to the preset area difference, and the opening area smaller than the actual opening is used to calibrate the gas sensor, which can improve the range of hole blocking that the gas sensor can accept. , and the method of obtaining the first opening area of the planned opening is simple, which improves the calibration efficiency.
在一个实施例中,上述气体传感器的标定装置600,除了包括数据获取模块610、标定模块620及堵孔范围确定模块630,还包括有效孔范围确定模块、第一检测模块及状态确定模块。In one embodiment, the gas
有效孔范围确定模块,用于根据实际开孔的第二开孔数据及堵孔范围,确定有效孔范围,其中,有效孔为实际开孔中除堵孔以外的部分。The effective hole range determination module is used to determine the effective hole range according to the second opening data of the actual opening and the plugging range, wherein the effective hole is the part of the actual opening except the plugging hole.
第一检测模块,用于在气体传感器处于使用状态时,检测实际开孔的有效孔数据,有效孔数据用于表征实际开孔在使用过程中的有效孔大小。The first detection module is used to detect the effective hole data of the actual opening when the gas sensor is in use, and the effective hole data is used to represent the effective hole size of the actual opening during use.
状态确定模块,用于当有效孔数据不处于有效孔范围内时,确定实际开孔为不可用状态。The state determination module is used to determine that the actual opening is in an unavailable state when the valid hole data is not within the valid hole range.
在本申请实施例中,可根据实际开孔的第二开孔数据及堵孔范围,确定有效孔范围,在气体传感器的使用过程中检测有效孔数据,并在有效孔数据不处于该有效孔范围时,确定实际开孔为不可用状态,可及时获知气体传感器的使用状态,提高气体传感器的使用效率。In the embodiment of the present application, the effective hole range can be determined according to the second opening data of the actual opening and the plugging range, and the effective hole data is detected during the use of the gas sensor, and when the effective hole data is not in the effective hole When the actual opening is determined to be unavailable, the use state of the gas sensor can be known in time, and the use efficiency of the gas sensor can be improved.
在一个实施例中,上述气体传感器的标定装置600,除了包括数据获取模块610、标定模块620、堵孔范围确定模块630、有效孔范围确定模块、第一检测模块及状态确定模块,还包括第二检测模块。In one embodiment, the
第二检测模块,用于在气体传感器处于使用状态时,检测实际开孔的堵孔数据,堵孔数据用于表征实际开孔在使用过程中的堵孔大小。The second detection module is used to detect the plugging data of the actual opening when the gas sensor is in use, and the plugging data is used to characterize the size of the plugging of the actual opening during use.
在一个实施例中,第二检测模块,包括时长获取单元及对应单元。In one embodiment, the second detection module includes a duration acquiring unit and a corresponding unit.
时长获取单元,用于获取气体传感器的总使用时长;The duration acquisition unit is used to acquire the total usage duration of the gas sensor;
对应单元,用于根据使用时长与堵孔数据之间的对应关系,获取总使用时长对应的堵孔数据。The corresponding unit is used to obtain the hole plugging data corresponding to the total use time according to the corresponding relationship between the use time and the hole plugging data.
在一个实施例中,对应单元,包括参数获取子单元、关系确定子单元及数据获取子单元。In one embodiment, the corresponding unit includes a parameter acquisition subunit, a relationship determination subunit, and a data acquisition subunit.
参数获取子单元,用于获取气体传感器所处的气体环境参数。The parameter acquisition subunit is used to acquire the gas environment parameters where the gas sensor is located.
关系确定子单元,用于根据气体环境参数确定使用时长与堵孔数据之间的对应关系。The relationship determination subunit is used to determine the corresponding relationship between the usage time and the hole plugging data according to the gas environment parameters.
数据获取子单元,用于根据确定的对应关系,获取总使用时长对应的堵孔数据。The data acquisition subunit is used to acquire the hole plugging data corresponding to the total usage time according to the determined correspondence.
状态确定模块,还用于当堵孔数据不处于堵孔范围内时,确定实际开孔为不可用状态。The state determination module is also used to determine that the actual opening is in an unavailable state when the hole blocking data is not within the hole blocking range.
在本申请实施例中,在气体传感器的使用过程中检测堵孔数据,并在堵孔数据不处于可接受的堵孔范围时,确定实际开孔为不可用状态,可及时获知气体传感器的使用状态,提高气体传感器的使用效率。In the embodiment of the present application, the hole blocking data is detected during the use of the gas sensor, and when the hole blocking data is not within an acceptable hole blocking range, it is determined that the actual opening is in an unavailable state, and the use of the gas sensor can be known in time. state and improve the efficiency of the gas sensor.
图7为一个实施例中电子设备的结构框图。如图7所示,电子设备700可以包括一个或多个如下部件:处理器710、与处理器710耦合的存储器720,其中一个或多个应用程序可以被存储在存储器720中并被配置为由一个或多个处理器710执行,一个或多个程序配置用于执行如上述实施例描述的方法。FIG. 7 is a structural block diagram of an electronic device in one embodiment. As shown in FIG. 7, the electronic device 700 may include one or more of the following components: a
处理器710可以包括一个或者多个处理核。处理器710利用各种接口和线路连接整个电子设备700内的各个部分,通过运行或执行存储在存储器720内的指令、程序、代码集或指令集,以及调用存储在存储器720内的数据,执行电子设备700的各种功能和处理数据。可选地,处理器710可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器710可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器710中,单独通过一块通信芯片进行实现。
存储器720可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器720可用于存储指令、程序、代码、代码集或指令集。存储器720可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等。存储数据区还可以存储电子设备700在使用中所创建的数据等。The
可以理解地,电子设备700可包括比上述结构框图中更多或更少的结构元件,例如,包括电源、输入按键、摄像头、扬声器、屏幕、RF(Radio Frequency,射频)电路、Wi-Fi(Wireless Fidelity,无线保真)模块、蓝牙模块、传感器等,还可在此不进行限定。It can be understood that the electronic device 700 may include more or less structural elements than those in the above-mentioned structural block diagram, for example, including a power supply, an input button, a camera, a speaker, a screen, an RF (Radio Frequency, radio frequency) circuit, Wi-Fi ( Wireless Fidelity, wireless fidelity) modules, Bluetooth modules, sensors, etc., may not be limited here.
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述实施例描述的方法。The embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, the method described in the foregoing embodiments is implemented.
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述实施例描述的方法。The embodiments of the present application disclose a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the methods described in the above embodiments.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium , when the program is executed, it may include the flow of the above-mentioned method embodiments. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or the like.
如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database or other medium as used herein may include non-volatile and/or volatile memory. Suitable nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定特征、结构或特性可以以任意适合的方式结合在一个或多个实施例中。本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。It is to be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic associated with the embodiment is included in at least one embodiment of the present application. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily necessarily referring to the same embodiment. Furthermore, the specific features, structures or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
在本申请的各种实施例中,应理解,上述各过程的序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。In the various embodiments of the present application, it should be understood that the size of the sequence numbers of the above-mentioned processes does not imply an inevitable sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be implemented in the present application. The implementation of the examples constitutes no limitation.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物单元,即可位于一个地方,或者也可以分布到多个网络单元上。可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components displayed as units may or may not be object units, and may be located in one place or distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
上述集成的单元若以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可获取的存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或者部分,可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干请求用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本申请的各个实施例上述方法的部分或全部步骤。The above-mentioned integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the whole or part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a memory , including several requests to cause a computer device (which may be a personal computer, a server, or a network device, etc., specifically a processor in the computer device) to execute some or all of the steps of the above methods in the various embodiments of the present application.
以上对本申请实施例公开的一种体传感器的标定方法、装置、电子设备及存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The calibration method, device, electronic device and storage medium of a volume sensor disclosed in the embodiments of the present application have been described in detail above. The principles and implementations of the present application are described with specific examples in this article. Just to help understand the methodology of this application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scope. To sum up, the content of this specification should not be construed as a limitation to the present application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010163921.5A CN111366682B (en) | 2020-03-10 | 2020-03-10 | Calibration method and device of gas sensor, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010163921.5A CN111366682B (en) | 2020-03-10 | 2020-03-10 | Calibration method and device of gas sensor, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111366682A CN111366682A (en) | 2020-07-03 |
| CN111366682B true CN111366682B (en) | 2022-07-26 |
Family
ID=71207340
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010163921.5A Active CN111366682B (en) | 2020-03-10 | 2020-03-10 | Calibration method and device of gas sensor, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111366682B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115932170A (en) * | 2022-11-07 | 2023-04-07 | 东莞市步步高教育软件有限公司 | Gas sensor calibration method, device, electronic equipment and storage medium |
Family Cites Families (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6948352B2 (en) * | 2002-02-07 | 2005-09-27 | Walter Kidde Portable Equipment, Inc. | Self-calibrating carbon monoxide detector and method |
| JP4980974B2 (en) * | 2008-03-31 | 2012-07-18 | 日本碍子株式会社 | GAS SENSOR, ITS CONTROL DEVICE, AND NOx CONCENTRATION MEASURING METHOD |
| DE102009029415A1 (en) * | 2009-09-14 | 2011-03-24 | Robert Bosch Gmbh | Sensor element with multipart diffusion barrier |
| US9075029B2 (en) * | 2011-01-31 | 2015-07-07 | Scott Technologies, Inc. | System and method for automatically adjusting gas sensor settings and parameters |
| CN102636542B (en) * | 2012-03-23 | 2014-02-26 | 华瑞科学仪器(上海)有限公司 | Gas sensor |
| CN104535478B (en) * | 2015-01-07 | 2017-04-12 | 深圳市帝迈生物技术有限公司 | Hole blocking judging and result correcting method based on particle flow stability |
| US10900928B2 (en) * | 2016-01-28 | 2021-01-26 | Alcotek, Inc. | Gas sensor |
| US10788458B2 (en) * | 2016-02-05 | 2020-09-29 | Msa Technology, Llc | Detection of blockage in a porous member |
| CN207007792U (en) * | 2016-11-30 | 2018-02-13 | 营口新星电子科技有限公司 | A kind of automobile-used combustible gas probe |
| CN207318335U (en) * | 2017-10-08 | 2018-05-04 | 张兰田 | A kind of mining infrared methane concentration detector |
| CN109696521B (en) * | 2017-10-24 | 2023-05-26 | 艾欧史密斯(中国)热水器有限公司 | Gas measuring device and control method thereof |
-
2020
- 2020-03-10 CN CN202010163921.5A patent/CN111366682B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN111366682A (en) | 2020-07-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109558295B (en) | Performance index abnormality detection method and device | |
| WO2020253175A1 (en) | Formaldehyde concentration measurement method and apparatus, and air purifier | |
| CN108287633B (en) | Method and device for calibrating pressure sensor | |
| JP7717732B2 (en) | System and method for calibrating sensing equipment | |
| CN111366682B (en) | Calibration method and device of gas sensor, electronic equipment and storage medium | |
| CN110413475A (en) | A method and apparatus for correcting measured value of server power consumption | |
| CN106443398A (en) | Apparatus and methods to detect semiconductor device degradation due to radiation exposure | |
| CN110514788A (en) | A kind of scaling method of gas sensor, device, equipment and storage medium | |
| CN111767000A (en) | Method, device, equipment and storage medium for inhibiting vibration of electronic equipment shell | |
| CN114630242B (en) | Headphone wearing detection method, headphone and storage medium | |
| CN111398202A (en) | Gas data analysis method, gas data analysis device, electronic device, and storage medium | |
| CN109324941B (en) | Temperature acquisition method, terminal and storage medium | |
| CN114153679B (en) | A method and system for testing auxiliary equipment of substation gateway based on simulated environment | |
| CN112260900B (en) | Communication equipment energy consumption measurement method, device, equipment and storage medium | |
| CN108307414B (en) | Method, device, terminal and storage medium for handling abnormal Wi-Fi connection of application | |
| CN114343629A (en) | Method and related device for automatic tracking and correction of sensor signal drift | |
| CN117740706A (en) | Control method and device of gas monitoring device, electronic equipment and storage medium | |
| CN117906790A (en) | Temperature detection calibration method, device, equipment and medium | |
| CN112540112B (en) | Sensor calibration method, device, equipment and storage medium | |
| CN112415141B (en) | Compensation method and compensation device for formaldehyde measurement concentration display value | |
| JP6091822B2 (en) | Diagnostic device and diagnostic method | |
| CN116086596A (en) | A noise intelligent detection method, device, computer equipment and storage medium | |
| CN115932170A (en) | Gas sensor calibration method, device, electronic equipment and storage medium | |
| CN114443397A (en) | Memory abnormality detection method and device, storage medium and electronic device | |
| CN107391267A (en) | Process detection method and device, electronic equipment and readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |