A detection method, electronic device and medium for the preheating stage of a gas sensor

By setting a reference environment and dynamically refreshing the reference value during the gas sensor preheating stage, the problem of the gas sensor being unable to detect changes in gas concentration in the environment in a timely manner is solved, thus improving detection efficiency and accuracy.

CN116046850BActive Publication Date: 2026-06-30GREE ELECTRIC APPLIANCE INC OF ZHUHAI

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GREE ELECTRIC APPLIANCE INC OF ZHUHAI
Filing Date
2022-12-23
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

Gas sensors cannot detect changes in gas concentration in the environment in a timely manner during the preheating stage, resulting in low detection efficiency. In particular, sensor modules lacking storage memory units cannot respond promptly to changes in indoor volatile compound concentrations.

Method used

By setting the gas concentration of the reference environment as a standard value during the gas sensor preheating stage, recording the maximum and minimum resistance values, obtaining the proportional relationship between the resistance value and the gas concentration, and collecting the resistance value in real time to calculate the gas concentration, the reference value is dynamically refreshed to improve detection accuracy.

Benefits of technology

The preheating stage effectively eliminates the blank period of the gas sensor, improves detection efficiency, and ensures that relatively accurate gas concentration detection results can be provided during the preheating stage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116046850B_ABST
    Figure CN116046850B_ABST
Patent Text Reader

Abstract

This invention discloses a detection method, electronic device, and medium for a gas sensor during the preheating stage. The detection method specifically includes: a sensor algorithm startup stage, where the gas concentration corresponding to a reference environment is set as a standard value M; the maximum value (max) of the gas concentration and the corresponding minimum resistance value (Rmin) are continuously recorded; and a sensor algorithm learning and correction stage, where the ratio between the resistance value and the gas concentration value is obtained based on the standard value M, the maximum value (max) of the gas concentration, and the corresponding minimum resistance value (Rmin), and the resistance value is collected in real time to calculate the corresponding gas concentration. This invention enables timely detection of gas concentration in the environment during the gas sensor preheating stage, improving the detection efficiency of the gas sensor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of plate material transport, and more particularly to a detection method, electronic equipment, and medium for the preheating stage of a gas sensor. Background Technology

[0002] Indoor environments for general users may contain volatile organic compounds, such as pet odors, smells from furniture, perfumes, alcohol, or the smell of human metabolism. To address these issues, gas sensors have emerged. They are primarily used to detect indoor volatile organic compounds and can be combined with air conditioning fresh air functions to ensure that the indoor air quality for users remains clean.

[0003] Gas sensors inevitably experience power-on and power-off cycles during operation. Generally, gas sensors require preheating before initial power-on to improve detection accuracy. During this preheating phase, the sensor accurately detects the concentration of volatile compounds in the room at that moment. While some gas sensor modules can retain the state before a power outage by adding a memory unit, they still cannot respond promptly to changes in ambient gas concentrations, and the memory unit also increases cost. For sensor modules without a memory unit, if power is interrupted and then restored, they cannot immediately sense the concentration of volatile compounds in the user's room and cannot promptly detect changes in ambient gas concentrations. Summary of the Invention

[0004] This invention aims to at least partially address one of the problems in related technologies. Therefore, the object of this invention is to provide a detection method, electronic device, and medium for the preheating stage of a gas sensor, which can promptly detect the gas concentration in the environment during the gas sensor preheating stage, thereby improving the detection efficiency of the gas sensor.

[0005] To achieve the above objectives, this application adopts the following technical solution: a detection method for the preheating stage of a gas sensor, wherein the resistance value of the gas sensor is inversely proportional to the gas concentration in the environment, comprising:

[0006] During the sensor algorithm startup phase, the gas concentration corresponding to the reference environment is set as the standard value M; the maximum value of the gas concentration max and the corresponding minimum resistance value Rmin are continuously recorded.

[0007] During the sensor algorithm learning and correction phase, the ratio between the resistance value and the gas concentration value is obtained based on the standard value M, the maximum value of the gas concentration max, and the corresponding minimum resistance value Rmin. The resistance value is collected in real time, and the corresponding gas concentration is calculated.

[0008] Furthermore, the ratio between the acquired resistance value and the gas concentration value is: Raw / index = (Ra - Rmin) / (max - M); where Raw represents the logarithm of the resistance value R collected in real time during the sensor algorithm learning and correction phase, index represents the gas concentration corresponding to the resistance value R in the gas sensor, and Ra represents the logarithm of the maximum resistance value of the gas sensor.

[0009] Furthermore, during the sensor algorithm startup phase, the gas sensor processor selects the maximum resistance value from X consecutive resistance values, and after continuously selecting Y maximum resistance values, calculates the average value of the Y maximum resistance values ​​and takes the logarithm, which is Ra; the environment corresponding to Ra is the reference environment.

[0010] Furthermore, the sensor algorithm startup phase includes a sensor initialization phase, which includes a first phase and a second phase. In the first phase, the ambient gas concentration is set to 0, and in the second phase, the ambient gas concentration is greater than 0.

[0011] Furthermore, in the second stage, the gas sensor calculates the gas concentration in the environment based on an internal calculation model.

[0012] Furthermore, the duration of the first stage is 0-45 seconds after power-on, and the duration of the second stage is 45-90 seconds after power-on.

[0013] Furthermore, the duration of the sensor algorithm startup phase is 90-120 seconds after power-on, and the duration of the sensor algorithm learning and correction phase is 120-3600 seconds after power-on.

[0014] Furthermore, after the sensor algorithm learning and correction phase is completed, the gas sensor enters a normal detection mode. In the normal detection mode, the gas sensor calculates the gas concentration in the environment based on its internal calculation model.

[0015] An electronic device, comprising:

[0016] Processor; and

[0017] A memory that stores executable code, which, when executed by the processor, causes the processor to perform the method described above.

[0018] A non-transitory machine-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to perform the method described above.

[0019] Compared with the prior art, the technical solution provided in this application has the following advantages: During the preheating stage of the gas sensor, because the temperature has not reached the preset value, the calculation model inside the gas sensor cannot fully perform its function. To avoid the blank period of the gas sensor during the preheating stage, this application divides the preheating stage into segments. During the sensor algorithm startup stage, the gas concentration corresponding to the reference environment is set as the standard value M; the maximum value of the gas concentration max and the corresponding minimum resistance value Rmin are continuously recorded; during the sensor algorithm learning and correction stage, the ratio of the resistance value to the gas concentration value is obtained based on the standard value M, the maximum value of the gas concentration max, and the corresponding minimum resistance value Rmin, and the resistance value is collected in real time to calculate the corresponding gas concentration; the concentration of the environment where the gas sensor is located is detected by a specific method to minimize the blank period of the gas sensor during the preheating stage and improve the detection efficiency of the gas sensor during the preheating stage. Attached Figure Description

[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] In the attached image:

[0023] Figure 1 This is the detection method of the gas sensor during the preheating stage in this application;

[0024] Figure 2 This application describes the detection method for the surface gas sensor under normal detection mode. Detailed Implementation

[0025] To provide a clearer understanding of the technical features, objectives, and effects of this invention, specific embodiments are now described in detail with reference to the accompanying drawings. In the following description, it should be understood that the orientations or positional relationships indicated by terms such as "front," "rear," "upper," "lower," "left," "right," "longitudinal," "horizontal," "vertical," "horizontal," "top," "bottom," "inner," "outer," "head," and "tail" are based on the orientations or positional relationships shown in the accompanying drawings, and are constructed and operated in a specific orientation. They are only for the convenience of describing this technical solution and do not indicate that the referred mechanism or element must have a specific orientation; therefore, they should not be construed as limitations on this invention.

[0026] It should also be noted that, unless otherwise explicitly specified and limited, terms such as "installation," "connection," "linking," "fixing," and "setting" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. When an component is referred to as being "on" or "below" another component, the component can be located "directly" or "indirectly" on the other component, or there may be one or more intermediary components. The terms "first," "second," "third," etc., are only for the convenience of describing this technical solution and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, features defined with "first," "second," "third," etc., may explicitly or implicitly include one or more of that feature. For those skilled in the art, the specific meaning of the above terms in this invention can be understood according to the specific circumstances.

[0027] In the following description, specific details such as particular system structures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, mechanisms, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.

[0028] Example 1

[0029] Please see the appendix Figure 1 This application provides a detection method for the preheating stage of a gas sensor, wherein the resistance value of the gas sensor is inversely proportional to the gas concentration, specifically including:

[0030] S1: During the sensor algorithm startup phase, the gas concentration corresponding to the reference environment is set to the standard value M; the maximum value of the gas concentration max and the corresponding minimum resistance value Rmin are continuously recorded.

[0031] S2: Sensor algorithm learning and correction stage. Based on the standard value M, the maximum value of gas concentration max and the corresponding minimum resistance value Rmin, the ratio between the resistance value and the gas concentration value is obtained, and the resistance value is collected in real time to calculate the corresponding gas concentration.

[0032] During the preheating phase, the gas sensor's internal computational model cannot function effectively because the temperature has not reached the preset value. To avoid this blank period during preheating, this application divides the preheating phase into several parts. During the sensor algorithm startup phase, the gas concentration corresponding to the baseline environment is set to a standard value M; the maximum gas concentration (max) and the corresponding minimum resistance value (Rmin) are continuously recorded. During the sensor algorithm learning and correction phase, the ratio between the resistance value and the gas concentration value is obtained, and the resistance value is collected in real time to calculate the corresponding gas concentration. A specific method is used to detect the concentration in the environment where the gas sensor is located, minimizing the blank period during preheating and improving the detection efficiency of the gas sensor during this phase.

[0033] Example 2

[0034] Please see the appendix Figure 1 In this application, the resistance value of the gas sensor is inversely proportional to the gas concentration. The preheating stage of the gas sensor lasts for a long time, usually about an hour. In the prior art, during this hour, the temperature of the gas sensor has not reached the normal operating temperature. Moreover, the internal calculation model of the gas sensor is designed based on the normal operating temperature. That is, the detection value of the internal calculation model is accurate only at the normal operating temperature. As a result, the gas concentration calculated by the gas sensor in the prior art during the one-hour preheating period is biased and cannot be used as an accurate gas concentration. The inaccurate gas concentration needs to continue for about an hour. The purpose of this application is to provide a new detection method in the gas sensor startup stage to provide relatively accurate detection results.

[0035] The gas sensor in this application is a semiconductor metal oxide ceramic VOC sensor, an impedance device made of a metal oxide thin film whose resistance varies with the gas content. Gas molecules undergo reduction reactions on the surface of the thin film, causing changes in the sensor's conductivity.

[0036] like Figure 1 As shown, the detection method for the preheating stage of a gas sensor provided in this application specifically includes:

[0037] S1: First stage, set the gas concentration to 0; the duration of the first stage is 0-45 seconds after power-on. At this time, only the gas sensor components are powered on and started, and the sensor algorithm has not yet started to do formal work. Therefore, the gas concentration can be set to 0 by default in the first stage.

[0038] S2: The second stage sets the gas concentration to be greater than 0, and the duration of the second stage is 45-90 seconds after power-on. The gas sensor calculates the gas concentration in the environment based on its internal calculation model.

[0039] The internal calculation model here refers to the model built into the gas sensor, which is used to calculate gas concentration when the gas sensor is preheated to its normal operating temperature. This model converts the resistance value of the gas sensor into gas concentration, and the specific calculation method of the internal calculation model can be set according to the gas sensor's own parameters.

[0040] It should be noted that since the temperature of the gas sensor has not reached the preset temperature at this time, the gas concentration obtained by the internal calculation model is inaccurate. In this application, this less accurate calculation method is only used to obtain the gas concentration within 45 seconds of the second stage. Compared with the inaccurate calculation that lasts for about an hour in the prior art, this stage has been greatly reduced.

[0041] S3: Sensor algorithm startup phase, which lasts for 90-120 seconds after power-on.

[0042] In this step, the processor of the gas sensor selects the maximum resistance value from X consecutive resistance values, and continues to select Y maximum resistance values. Then, it calculates the average value of the Y maximum resistance values ​​and takes the logarithm, which is Ra. The environment corresponding to Ra is set as the reference environment, and the gas concentration in the reference environment is set as the standard value M.

[0043] As a specific embodiment, the processor of the gas sensor in this application collects three resistance values ​​every second, selects the largest resistance value from the three resistance values, and continues to select 10 largest resistance values. Then, it calculates the average value of these 10 largest resistance values ​​and takes the logarithm of the average value, which is Ra. The environment corresponding to Ra is set as the reference environment, and the gas concentration in the reference environment is set as the standard value of 100.

[0044] In another specific embodiment, the resistance value collected by the processor of the gas sensor in this application is directly converted into a logarithmic value. The processor of the gas sensor selects the logarithm of the largest resistance value from the logarithms of X consecutive resistance values, and continues to select the logarithms of Y consecutive largest resistance values. Then, it calculates the average value of the logarithms of the Y consecutive largest resistance values, which is Ra. The environment corresponding to Ra is set as the reference environment, and the gas concentration in the reference environment is set as the standard value M.

[0045] In the initial environment, the indoor environment is relatively stable, and we set this stable environment as the reference environment. At this time, the resistance value of the gas sensor is at its maximum. If the resistance value decreases during subsequent detection, it indicates that the gas concentration in the environment has increased.

[0046] In this step, the processor of the gas sensor needs to continuously record the logarithm Rmin of the minimum resistance value of the gas sensor and its corresponding maximum gas concentration max. Note that the maximum and minimum resistance values ​​may be refreshed over time. We always set the environment corresponding to the average of the Y minimum resistance values ​​as the reference environment, so Ra, Rmin and max need to be dynamically refreshed.

[0047] S4: Sensor algorithm learning and correction phase, which lasts from 120 seconds to 3600 seconds after power-on. This phase involves acquiring the ratio between resistance and gas concentration values, collecting resistance values ​​in real time, and calculating the corresponding gas concentration.

[0048] In this step, Ra, Rmin, and max still need to be dynamically refreshed; and the ratio of the resistance value to the gas concentration value at each moment is determined based on the real-time refreshed values ​​as follows: Raw / index = (Ra - Rmin) / (max - M); where Raw represents the logarithm of the resistance value R collected in real time during the sensor algorithm learning and correction phase, index represents the gas concentration corresponding to the resistance value R in the sensor, and Ra represents the average of the logarithms of the Y maximum resistance values ​​in the sensor.

[0049] The reason why the values ​​of Ra, Rmin, and Rmax need to be constantly refreshed in this application can also be understood as the output values ​​of the gas sensor fluctuating to varying degrees over time. Therefore, we need to continuously determine the maximum resistance value to identify the reference environment, thereby accurately determining whether there is a high concentration event (corresponding to a small resistance value), and then continuously update the values ​​of Ra, Rmax, and Rmin.

[0050] As a specific embodiment, the values ​​of Ra, max, and Rmin in this application can be set to be updated periodically, for example, once every 10 minutes. The values ​​of Ra, max, and Rmin can be determined based on the resistance values ​​collected in the previous 10 minutes, and the formula Raw / index = (Ra-Rmin) / (max-M) can be applied to the next 10 minutes as a calculation formula. In this calculation formula, Ra, max, and Rmin correspond to the values ​​collected in the previous 10 minutes, Raw refers to the logarithm of the resistance value R collected in real time in the next 10 minutes, and index is the gas concentration corresponding to Raw. This periodic refresh method facilitates the stability and accuracy of gas concentration calculation.

[0051] It should be noted that Ra essentially represents the logarithm of the maximum resistance value in the sensor, and the environment corresponding to Ra is the reference environment. In practical applications, to avoid sampling bias, we usually use the average of the logarithms of Y maximum resistance values ​​to represent Ra, which provides a more stable reference environment. Specific Y values ​​can be, for example, 10 or other integers.

[0052] In this way, based on the above proportional relationship, the current gas concentration can be determined in real time: index = (max - M)Raw / (Ra - Rmin). As mentioned above, when the gas concentration in the reference environment is set to the standard value of 100, the above calculation formula corresponds to index = (max - 100)Raw / (Ra - Rmin).

[0053] S5: After the sensor algorithm learning and correction phase is completed, the gas sensor enters the normal detection mode. In the normal detection mode, the gas sensor calculates the gas concentration in the environment according to the internal calculation model.

[0054] like Figure 2 As shown, this process involves the processor in the gas sensor converting the sensor's resistance value R into the corresponding gas concentration. First, the impedance device made of a metal oxide thin film on the gas sensor changes its resistance as the ambient gas concentration varies. The processor in the gas sensor then uses this instantaneous resistance value to convert it into the corresponding gas concentration through an internal algorithm model M.

[0055] The internal algorithm model M mainly consists of two parts: a gain part and a offset part. The gain part is mainly used to map the gas concentration value output by the internal algorithm model to the range of the gas sensor. For example, it is used to map the gas concentration value to a fixed ratio of 1 to 500. The offset part is mainly used to map the gas concentration value output by the internal algorithm model to a standard value. For example, when the gas concentration in the reference environment is set to the standard value of 100, it is used to map the gas concentration value output by the internal algorithm model to 100.

[0056] The internal algorithm model here refers to the internal algorithm model corresponding to the second stage in the preheating phase. In the prior art, the internal algorithm model is used to roughly calculate the gas concentration for one hour in the preheating phase, but this calculation is not accurate. The method adopted in this application limits this inaccurate calculation method to 45 seconds in the second stage, and uses the specific calculation method described above for the rest of the time. The calculation method in this application is more accurate and stable, which improves the detection efficiency of the gas sensor in the preheating phase.

[0057] Corresponding to the aforementioned application function implementation method embodiments, this application also provides an electronic device and corresponding embodiments for a detection method in the preheating stage of a gas sensor.

[0058] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated further here.

[0059] Electronic devices include memory and processors.

[0060] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0061] Memory can include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. ROM can store static data or instructions required by the processor or other modules of the computer. Permanent storage devices can be read-write storage devices. Permanent storage devices can be non-volatile storage devices that retain stored instructions and data even when the computer is powered off. In some embodiments, permanent storage devices use high-capacity storage devices (e.g., magnetic or optical disks, flash memory) as permanent storage devices. In other embodiments, permanent storage devices can be removable storage devices (e.g., floppy disks, optical drives). System memory can be a read-write storage device or a volatile read-write storage device, such as dynamic random access memory. System memory can store some or all of the instructions and data required by the processor during operation. Furthermore, memory can include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks can also be used. In some implementations, the memory may include removable storage devices that are readable and / or writable, such as laser discs (CDs), read-only digital versatile optical discs (e.g., DVD-ROMs, dual-layer DVD-ROMs), read-only Blu-ray discs, ultra-high density optical discs, flash memory cards (e.g., SD cards, mini SD cards, Micro-SD cards, etc.), magnetic floppy disks, etc. Computer-readable storage media do not contain carrier waves or transient electronic signals transmitted wirelessly or via wired connections.

[0062] The memory stores executable code, which, when processed by the processor, can cause the processor to execute some or all of the methods described above.

[0063] It is understood that the above embodiments only illustrate preferred embodiments of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can freely combine the above technical features without departing from the concept of the present invention, and can also make several modifications and improvements, all of which fall within the protection scope of the present invention. Therefore, all equivalent transformations and modifications made with respect to the scope of the claims of the present invention should fall within the scope of the claims of the present invention.

Claims

1. A method of detecting a preheating phase of a gas sensor in which the resistance value is inversely proportional to the concentration of a gas in the environment, characterized in that, include: During the sensor algorithm startup phase, the gas concentration corresponding to the reference environment is set to the standard value M; Continuously record the maximum gas concentration (max) and the corresponding minimum resistance value (Rmin); During the sensor algorithm startup phase, the gas sensor processor selects the maximum resistance value from X consecutive resistance values, and continues to select Y maximum resistance values. Then, it calculates the average value of the Y maximum resistance values ​​and takes the logarithm, which is Ra. The environment corresponding to Ra is the reference environment. During the sensor algorithm learning and correction phase, the ratio of resistance value to gas concentration value is obtained based on the standard value M, the maximum value of gas concentration (max), and the logarithm of the corresponding minimum resistance value (Rmin). Resistance values ​​are collected in real time, and the corresponding gas concentration is calculated. Ra, Rmin, and max are dynamically refreshed. Based on the real-time refreshed values, the ratio of resistance value to gas concentration value at each collected moment is determined as: Raw / index = (Ra - Rmin) / (max - M). Here, Raw represents the logarithm of the resistance value R collected in real time during the sensor algorithm learning and correction phase; index represents the gas concentration corresponding to the resistance value R in the sensor; and Ra represents the average of the logarithms of the Y maximum resistance values ​​in the sensor. Therefore, the current gas concentration is determined as index = (max - M)Raw / (Ra - Rmin).

2. The detection method for the preheating stage of a gas sensor according to claim 1, characterized in that, The sensor initialization phase is included before the sensor algorithm startup phase. The sensor initialization phase includes a first phase and a second phase. In the first phase, the ambient gas concentration is set to 0, and in the second phase, the ambient gas concentration is greater than 0.

3. The detection method for the preheating stage of a gas sensor according to claim 2, characterized in that, In the second stage, the gas sensor calculates the gas concentration in the environment based on an internal calculation model.

4. The detection method for the preheating stage of a gas sensor according to claim 2, characterized in that, The first stage lasts for 0-45 seconds after power-on, and the second stage lasts for 45-90 seconds after power-on.

5. The detection method for the preheating stage of a gas sensor according to claim 4, characterized in that, The sensor algorithm startup phase lasts for 90-120 seconds after power-on, and the sensor algorithm learning and correction phase lasts for 120-3600 seconds after power-on.

6. The detection method for the preheating stage of a gas sensor according to claim 1, characterized in that, After the sensor algorithm learning and correction phase is completed, the gas sensor enters the normal detection mode. In the normal detection mode, the gas sensor calculates the gas concentration in the environment based on its internal calculation model.

7. An electronic device, characterized in that, include: processor; as well as A memory having executable code stored thereon, which, when executed by the processor, causes the processor to perform the method as described in any one of claims 1-6.

8. A non-transitory machine-readable storage medium having executable code stored thereon, characterized in that, When the executable code is executed by the processor of the electronic device, the processor performs the method as described in any one of claims 1-6.