Dynamic compensation method and device of gas sensor, electronic equipment and storage medium

By identifying the compensation filter of the gas sensor under constant temperature experimental conditions and performing dynamic compensation in conjunction with the current temperature, the problem of the inapplicability of traditional methods is solved, and accurate compensation and improved response speed of the gas sensor are achieved when the temperature changes.

CN115575576BActive Publication Date: 2026-03-27INST OF SEMICONDUCTORS - CHINESE ACAD OF SCI
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Traditional sensor compensation methods are not suitable for gas sensors, especially since the response speed of gas sensors is affected by temperature during measurement and the response time differs significantly from the recovery time.

Method used

In a constant-temperature experimental environment, the compensation filter of the gas sensor is identified, including the response process compensation filter and the recovery process compensation filter. One of them is selected as the constant-temperature compensation filter. Combined with the current ambient temperature, a compensation filter that changes with temperature is obtained, and dynamic compensation of gas concentration is performed.

Benefits of technology

Ensure proper compensation of the gas sensor output when the temperature changes or the response/response process switches, thereby improving response speed and reducing alarm delay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115575576B_ABST
    Figure CN115575576B_ABST
Patent Text Reader

Abstract

The present disclosure provides a dynamic compensation method of a gas sensor, applied to the technical field of sensors, and comprising: identifying a compensation filter of a to-be-compensated gas sensor under a constant-temperature experimental environment, the compensation filter comprising a response process compensation filter and a recovery process compensation filter, selecting the response process compensation filter or the recovery process compensation filter as a constant-temperature compensation filter, measuring a current environmental temperature, obtaining a temperature-varying compensation filter according to the current environmental temperature and the constant-temperature compensation filter, and using the temperature-varying compensation filter to perform dynamic compensation on a gas concentration of the to-be-compensated gas sensor under the current environmental temperature to obtain a compensated gas concentration measurement result. The present disclosure also provides a dynamic compensation device of a gas sensor, an electronic device and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of sensor, and particularly relates to a dynamic compensation method and device of a gas sensor, an electronic device and a storage medium. BACKGROUND

[0002] A gas sensor is a kind of converter which converts the volume fraction of a certain gas into a corresponding electrical signal. According to the different sensing gases and sensing principles, there are many kinds of gas sensors, but most of the gas sensors have the problems of long response time and poor dynamic characteristics. The dynamic compensation method can improve the dynamic characteristics of the sensor, increase the response speed and reduce the alarm delay.

[0003] The traditional sensor dynamic compensation method is to test the dynamic response of the sensor. The sensor system itself is identified through the test data, and then a compensation filter is designed through zero-pole compensation or other methods, or the compensation filter is obtained by identifying the inverse system of the sensor directly through the input and output. However, since the response speed of the gas sensor is affected by the temperature during the measurement process, and the response time and the recovery time are quite different, the traditional sensor dynamic compensation method is not suitable for the gas sensor. SUMMARY

[0004] The main purpose of the present disclosure is to provide a dynamic compensation method and device of a gas sensor, an electronic device and a storage medium, which aims to solve the technical problem that the traditional sensor compensation method is not suitable for the gas sensor.

[0005] To achieve the above purpose, a first aspect of an embodiment of the present disclosure provides a dynamic compensation method of a gas sensor, comprising:

[0006] Identifying a compensation filter of a gas sensor to be compensated under a constant temperature experimental environment, wherein the compensation filter comprises a response process compensation filter and a recovery process compensation filter;

[0007] Selecting the response process compensation filter or the recovery process compensation filter as a constant temperature compensation filter;

[0008] Measuring the current environmental temperature;

[0009] Obtaining a temperature-varying compensation filter according to the current environmental temperature and the constant temperature compensation filter;

[0010] Using the temperature-varying compensation filter to perform gas concentration dynamic compensation on the gas sensor to be compensated under the current environmental temperature, and obtaining a compensated gas concentration measurement result.

[0011] In an embodiment of the present disclosure, the dynamic compensation of the gas concentration of the gas sensor to be compensated at the current ambient temperature by using the temperature-varying compensation filter comprises:

[0012] obtaining a gas concentration measurement result measured by the gas sensor to be compensated at the current ambient temperature;

[0013] performing dynamic compensation on the gas concentration measurement result by using the temperature-varying compensation filter to obtain a compensated gas concentration measurement result.

[0014] In an embodiment of the present disclosure, after the dynamic compensation of the gas concentration of the gas sensor to be compensated at the current ambient temperature by using the temperature-varying compensation filter, the method further comprises:

[0015] determining whether the gas sensor is in a response process or a recovery process according to the compensated gas concentration measurement result;

[0016] in a case where the gas sensor is in the response process and the selected constant-temperature compensation filter is the response process compensation filter, or in a case where the gas sensor is in the recovery process and the selected constant-temperature compensation filter is the recovery process compensation filter, outputting the compensated gas concentration measurement result.

[0017] In an embodiment of the present disclosure, after the dynamic compensation of the gas concentration of the gas sensor to be compensated at the current ambient temperature by using the temperature-varying compensation filter, the method further comprises:

[0018] determining whether the gas sensor is in a response process or a recovery process according to the compensated gas concentration measurement result;

[0019] in a case where the gas sensor is in the response process and the selected constant-temperature compensation filter is the recovery process compensation filter, selecting the response process compensation filter as the constant-temperature compensation filter and performing the operation of obtaining the temperature-varying compensation filter according to the current ambient temperature and the constant-temperature compensation filter.

[0020] In an embodiment of the present disclosure, after the dynamic compensation of the gas concentration of the gas sensor to be compensated at the current ambient temperature by using the temperature-varying compensation filter, the method further comprises:

[0021] determining whether the gas sensor is in a response process or a recovery process according to the compensated gas concentration measurement result;

[0022] In a case that the gas sensor is in a recovery process and the selected constant temperature compensation filter is the response process compensation filter, the recovery process compensation filter is selected as the constant temperature compensation filter, and the operation of obtaining the compensation filter varying with temperature according to the current environment temperature and the constant temperature compensation filter is performed;

[0023] In an embodiment of the present disclosure, the selecting the response process compensation filter or the recovery process compensation filter as the constant temperature compensation filter comprises:

[0024] obtaining a response duration of the response process compensation filter and a recovery duration of the recovery process compensation filter;

[0025] selecting the compensation filter with shorter duration as the constant temperature compensation filter.

[0026] In an embodiment of the present disclosure, the identifying the compensation filter of the gas sensor to be compensated in the constant temperature experimental environment comprises:

[0027] performing step tests on the gas sensor to be compensated in the constant temperature experimental environment in a response process and a recovery process respectively, to obtain measured gas concentrations of the gas sensor to be compensated in the response process and the recovery process;

[0028] obtaining actual gas concentrations in the response process and the recovery process in the constant temperature experimental environment;

[0029] obtaining a response process compensation filter and a recovery process compensation filter according to the actual gas concentrations and the measured gas concentrations in the response process and the recovery process.

[0030] An embodiment of the present disclosure provides a dynamic compensation device of a gas sensor, comprising:

[0031] an identifying module configured to identify a compensation filter of a gas sensor to be compensated in a constant temperature experimental environment, the compensation filter comprising a response process compensation filter and a recovery process compensation filter;

[0032] a selecting module configured to select the response process compensation filter or the recovery process compensation filter as a constant temperature compensation filter;

[0033] a measuring module configured to measure a current environment temperature;

[0034] a calculating module configured to obtain a compensation filter varying with temperature according to the current environment temperature and the constant temperature compensation filter;

[0035] The compensation module is configured to perform dynamic compensation on the gas concentration measured by the gas sensor to be compensated at the current ambient temperature by using the temperature-dependent compensation filter.

[0036] In an embodiment of the present disclosure, the compensation module comprises:

[0037] The obtaining sub-module is configured to obtain a gas concentration measurement result measured by the gas sensor to be compensated at the current ambient temperature.

[0038] The compensation sub-module is configured to perform dynamic compensation on the gas concentration measurement result by using the temperature-dependent compensation filter, to obtain the compensated gas concentration measurement result.

[0039] In an embodiment of the present disclosure, the device further comprises:

[0040] The determining module is configured to determine whether the gas sensor is in a response process or a recovery process according to the compensated gas concentration measurement result.

[0041] The output module is configured to output the compensated gas concentration measurement result in a case where the gas sensor is in the response process and the selected constant-temperature compensation filter is the response-process compensation filter, or in a case where the gas sensor is in the recovery process and the selected constant-temperature compensation filter is the recovery-process compensation filter.

[0042] In an embodiment of the present disclosure, the device further comprises:

[0043] The determining module is configured to determine whether the gas sensor is in a response process or a recovery process according to the compensated gas concentration measurement result.

[0044] The first re-selection module is configured to select the response-process compensation filter as the constant-temperature compensation filter in a case where the gas sensor is in the response process and the selected constant-temperature compensation filter is the recovery-process compensation filter, and perform the operation of obtaining the temperature-dependent compensation filter according to the current ambient temperature and the constant-temperature compensation filter.

[0045] In an embodiment of the present disclosure, the device further comprises:

[0046] The determining module is configured to determine whether the gas sensor is in a response process or a recovery process according to the compensated gas concentration measurement result.

[0047] a second reselecting module, configured to, in a case that the gas sensor is in a recovery process and the selected constant-temperature compensation filter is the response process compensation filter, select the recovery process compensation filter as the constant-temperature compensation filter, and perform the operation of obtaining the compensation filter varying with temperature according to the current environmental temperature and the constant-temperature compensation filter;

[0048] In an embodiment of the present disclosure, the selecting module comprises:

[0049] a time length obtaining sub-module, configured to obtain a response time length of the response process compensation filter and a recovery time length of the recovery process compensation filter;

[0050] a selecting sub-module, configured to select a shorter compensation filter between the response time length and the recovery time length as the constant-temperature compensation filter.

[0051] In an embodiment of the present disclosure, the recognizing module comprises:

[0052] a testing sub-module, configured to perform step tests on the to-be-compensated gas sensor in a response process and a recovery process respectively under the constant-temperature experimental environment, and obtain measured gas concentrations of the to-be-compensated gas sensor in the response process and the recovery process;

[0053] a concentration obtaining sub-module, configured to obtain actual gas concentrations in the response process and the recovery process under the constant-temperature experimental environment;

[0054] a recognizing sub-module, configured to obtain a response process compensation filter and a recovery process compensation filter according to the actual gas concentrations and the measured gas concentrations in the response process and the recovery process.

[0055] An embodiment of the present disclosure provides an electronic device, comprising:

[0056] a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the dynamic compensation method of the gas sensor provided in the first aspect of the present disclosure when executing the program.

[0057] An embodiment of the present disclosure provides a computer readable storage medium, which stores a computer program, wherein the computer program is executable on a processor to implement the dynamic compensation method of the gas sensor provided in the first aspect of the present disclosure.

[0058] From the above embodiments of the present disclosure, the dynamic compensation method, device, electronic equipment and storage medium of the gas sensor provided by the present disclosure can identify the compensation filter of the gas sensor to be compensated in a constant temperature experimental environment, the compensation filter includes a response process compensation filter and a recovery process compensation filter, the response process compensation filter or the recovery process compensation filter is selected as a constant temperature compensation filter, the current environment temperature is measured, the compensation filter changing with temperature is obtained according to the current environment temperature and the constant temperature compensation filter, the gas concentration dynamic compensation of the gas sensor to be compensated at the current environment temperature is performed by using the compensation filter changing with temperature, and the compensated gas concentration measurement result is obtained. Considering the influence of temperature factors and response / recovery difference factors on dynamic characteristics, the correct compensation of the output of the gas sensor can be ensured when the temperature changes or the response / recovery process switches. BRIEF DESCRIPTION OF DRAWINGS

[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative labor.

[0060] Figure 1 The flowchart of the dynamic compensation method of the gas sensor provided by an embodiment of the present disclosure is shown.

[0061] Figure 2 The flowchart of the dynamic compensation method of the gas sensor provided by another embodiment of the present disclosure is shown.

[0062] Figure 3 The structural schematic diagram of the dynamic compensation device of the gas sensor provided by an embodiment of the present disclosure is shown.

[0063] Figure 4 A hardware structural schematic diagram of an electronic equipment is shown. DETAILED DESCRIPTION

[0064] In order to make the disclosed purposes, features and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, not all. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present disclosure.

[0065] Please refer to Figure 1 , Figure 1A flowchart of a dynamic compensation method of a gas sensor is provided for an embodiment of the present disclosure, and the method mainly includes the following operations:

[0066] In operation S101, a compensation filter of a gas sensor to be compensated is identified under a constant temperature experimental environment, and the compensation filter includes a response process compensation filter and a recovery process compensation filter.

[0067] In operation S102, the response process compensation filter or the recovery process compensation filter is selected as a constant temperature compensation filter.

[0068] In operation S103, a current environmental temperature is measured.

[0069] In operation S104, a compensation filter varying with temperature is obtained according to the current environmental temperature and the constant temperature compensation filter.

[0070] In operation S105, the gas concentration of the gas sensor to be compensated under the current environmental temperature is dynamically compensated by using the compensation filter varying with temperature.

[0071] In an embodiment of the present disclosure, operation S101 of identifying the compensation filter of the gas sensor to be compensated under the constant temperature experimental environment includes: performing step tests of a response process and a recovery process on the gas sensor to be compensated under the constant temperature experimental environment, obtaining measured gas concentrations of the gas sensor to be compensated in the response process and the recovery process, obtaining actual gas concentrations in the response process and the recovery process under the constant temperature experimental environment, and obtaining a response process compensation filter and a recovery process compensation filter according to the actual gas concentrations and the measured gas concentrations in the response process and the recovery process.

[0072] In an embodiment of the present disclosure, operation S102 of selecting the response process compensation filter or the recovery process compensation filter as the constant temperature compensation filter includes: obtaining a response time length of the response process compensation filter and a recovery time length of the recovery process compensation filter, and selecting a compensation filter with a shorter time length between the response time length and the recovery time length as the constant temperature compensation filter. Selecting the compensation filter of the process with a shorter time length first can ensure the convergence of the compensation result.

[0073] In an embodiment of the present disclosure, operation S105 of dynamically compensating the gas concentration of the gas sensor to be compensated under the current environmental temperature by using the compensation filter varying with temperature includes: obtaining a gas concentration measurement result measured by the gas sensor to be compensated under the current environmental temperature, dynamically compensating the gas concentration measurement result by using the compensation filter varying with temperature, and obtaining a compensated gas concentration measurement result.

[0074] In an embodiment of the present disclosure, after operation S105, the method further comprises: determining whether the gas sensor is in a response process or a recovery process according to the compensated gas concentration measurement result; outputting the compensated gas concentration measurement result in a case that the gas sensor is in the response process and the selected constant temperature compensation filter is the response process compensation filter, or in a case that the gas sensor is in the recovery process and the selected constant temperature compensation filter is the recovery process compensation filter; selecting the response process compensation filter as the constant temperature compensation filter in a case that the gas sensor is in the response process and the selected constant temperature compensation filter is the recovery process compensation filter, and performing operation S104; selecting the recovery process compensation filter as the constant temperature compensation filter in a case that the gas sensor is in the recovery process and the selected constant temperature compensation filter is the response process compensation filter, and performing operation S104. By using the dynamic compensation method, the correct compensation of the output of the gas sensor can be ensured when the temperature changes or the response / recovery process switches.

[0075] In the present disclosure, the gas concentration in the response process changes from low to high, and the gas concentration in the recovery process changes from high to low. The response duration and the recovery duration refer to different characteristic durations of the two processes, and the specific standard is the time used to reach the change N% of the ambient gas concentration, where N is, for example, 63, 78, etc., and the present disclosure does not limit the same.

[0076] Further, a low-pass filter can be added in the compensation process to reduce the amplification of high-frequency noise.

[0077] Please refer to Figure 2 , Figure 2 A flowchart of a dynamic compensation method of a gas sensor according to another embodiment of the present disclosure is provided, which comprises offline identification of a to-be-compensated gas sensor system in a constant temperature experimental environment, and the lower part is online dynamic compensation of the to-be-compensated gas sensor in actual application.

[0078] The offline identification of the to-be-compensated gas sensor system in the constant temperature experimental environment comprises the following steps 1) and 2):

[0079] 1) Step test of the to-be-compensated gas sensor in the response process and the recovery process in the constant temperature experimental environment.

[0080] 2) According to the actual gas concentration N in,ex in the constant temperature experimental environment and the measured gas concentration N out,ex of the to-be-compensated sensor, the corresponding response process compensation filter ∑ res and the recovery process compensation filter ∑ rec are identified by least square method or particle swarm, neural network, etc.

[0081] Online dynamic compensation of the gas sensor to be compensated includes the following steps 3)-6):

[0082] 3) Select the shorter of the response time and the reply time, and choose the corresponding compensation filter as the isothermal compensation filter ∑. c0 This is to ensure that the compensation results converge.

[0083] 4) Through the compensation filter ∑ c0 The compensation filter is determined based on the measured current ambient temperature T(k) to vary with temperature.

[0084] 5) Based on the gas concentration measurement result N of the sensor to be compensated at the current ambient temperature. out (k) and temperature-varying compensation filter The gas concentration measurement result N after compensation was obtained. inC (k), where a low-pass filter can be added during the compensation process to reduce the amplification of high-frequency noise by the compensation.

[0085] 6) Based on the compensated gas concentration measurement results N inC (k) and the gas concentration measurement result N measured at the current ambient temperature. out (k) Determine the state of the sensor (compensation result N) inC (k)>N out (k) represents the response process; the compensation result N inC (k)<N out (k) is the response process; check if this state matches the one selected in (3). If they match, output the compensation result N. inC (k); if inconsistent, return to 3) select another compensation filter.

[0086] In this disclosure, the transfer function of the compensation filter selected in step 3) is assumed to be:

[0087]

[0088] The temperature result T(k) is used to convert it into a temperature-varying compensation filter. ∑ c0 Convert to state-space form:

[0089]

[0090] If the temperature is assumed to be constant within a measurement cycle, it can be transformed into a state transition matrix form:

[0091]

[0092] in, The relationship between response time (or recovery time) and temperature can be expressed as: t0 / t * = f (T / T0), where t0, t* are the response (recovery) times at temperatures T0, T respectively.

[0093] Ignoring the case of temperature change within a measurement period, it can be considered that high / low temperature accelerates / decelerates the response (recovery) process, and for a single measurement period, it can be equivalent to lengthening / shortening the measurement period under the condition of constant temperature. Therefore, the state transition matrix of the temperature-varying compensation filter can be expressed as Then Thus, the state space equation of the temperature-varying compensation filter is:

[0094]

[0095] Thus, the compensation filter can be obtained. Through the compensation process in Figure 2 , the dynamic compensation gas concentration output N inC (k) can be obtained.

[0096] Please refer to Figure 3 , Figure 3 is a structural diagram of a dynamic compensation device of a gas sensor provided by an embodiment of the present disclosure. The device can be built-in in an electronic device. The device mainly includes:

[0097] The identification module 310 is configured to identify a compensation filter of a to-be-compensated gas sensor under a constant temperature experimental environment. The compensation filter includes a response process compensation filter and a recovery process compensation filter.

[0098] The selection module 320 is configured to select the response process compensation filter or the recovery process compensation filter as a constant temperature compensation filter.

[0099] The measurement module 330 is configured to measure a current environment temperature.

[0100] The calculation module 340 is configured to obtain a temperature-varying compensation filter according to the current environment temperature and the constant temperature compensation filter.

[0101] The compensation module 350 is configured to perform dynamic compensation on a gas concentration of the to-be-compensated gas sensor under the current environment temperature by using the temperature-varying compensation filter.

[0102] In an embodiment of the present disclosure, the compensation module 350 includes:

[0103] The obtaining sub-module is configured to obtain a gas concentration measurement result measured by the to-be-compensated gas sensor under the current environment temperature.

[0104] a compensation sub-module, configured to perform dynamic compensation on the gas concentration measurement result by using the temperature-varying compensation filter to obtain the compensated gas concentration measurement result.

[0105] In an embodiment of the present disclosure, the apparatus further includes:

[0106] a determination module, configured to determine whether the gas sensor is in a response process or a recovery process according to the compensated gas concentration measurement result.

[0107] an output module, configured to output the compensated gas concentration measurement result in a case that the gas sensor is in the response process and the selected constant-temperature compensation filter is the response process compensation filter, or in a case that the gas sensor is in the recovery process and the selected constant-temperature compensation filter is the recovery process compensation filter.

[0108] In an embodiment of the present disclosure, the apparatus further includes:

[0109] the determination module, configured to determine whether the gas sensor is in a response process or a recovery process according to the compensated gas concentration measurement result.

[0110] a first re-selection module, configured to select the response process compensation filter as the constant-temperature compensation filter in a case that the gas sensor is in the response process and the selected constant-temperature compensation filter is the recovery process compensation filter, and perform the operation of obtaining the temperature-varying compensation filter according to the current environmental temperature and the constant-temperature compensation filter.

[0111] In an embodiment of the present disclosure, the apparatus further includes:

[0112] the determination module, configured to determine whether the gas sensor is in a response process or a recovery process according to the compensated gas concentration measurement result.

[0113] a second re-selection module, configured to select the recovery process compensation filter as the constant-temperature compensation filter in a case that the gas sensor is in the recovery process and the selected constant-temperature compensation filter is the response process compensation filter, and perform the operation of obtaining the temperature-varying compensation filter according to the current environmental temperature and the constant-temperature compensation filter.

[0114] In an embodiment of the present disclosure, the selection module 320 includes:

[0115] a time length obtaining sub-module, configured to obtain a response time length of the response process compensation filter and a recovery time length of the recovery process compensation filter.

[0116] The selecting submodule is configured to select a shorter compensation filter between the response duration and the recovery duration as the constant-temperature compensation filter.

[0117] In an embodiment of the present disclosure, the recognizing module 310 comprises:

[0118] The testing submodule is configured to perform step tests on the response process and the recovery process of the gas sensor to be compensated under the constant-temperature experimental environment, and obtain the measured gas concentration of the gas sensor to be compensated in the response process and the recovery process.

[0119] The concentration obtaining submodule is configured to obtain the actual gas concentration in the response process and the recovery process under the constant-temperature experimental environment.

[0120] The recognizing submodule is configured to obtain a response process compensation filter and a recovery process compensation filter according to the actual gas concentration and the measured gas concentration in the response process and the recovery process.

[0121] Please refer to Figure 4 , Figure 4 A hardware structure diagram of an electronic device is shown.

[0122] The electronic device described in the embodiment comprises:

[0123] The memory 41, the processor 42, and the computer program stored in the memory 41 and executable on the processor, and the processor implements the aforementioned Figure 1 dynamic compensation method of the gas sensor described in the embodiment.

[0124] Further, the electronic device further comprises:

[0125] at least one input device 43; and at least one output device 44.

[0126] The memory 41, the processor 42, the input device 43, and the output device 44 are connected through a bus 45.

[0127] The input device 43 can be a camera, a touch panel, a physical button, or a mouse, etc. The output device 44 can be a display screen.

[0128] The memory 41 can be a high-speed random access memory (RAM) or a non-volatile memory such as a disk memory. The memory 41 is used to store a set of executable program codes, and the processor 42 is coupled to the memory 41.

[0129] Further, the embodiments of the present disclosure also provide a computer readable storage medium, which can be arranged in the electronic device in the above-mentioned embodiments. The computer readable storage medium can be the computer readable storage medium mentioned above Figure 4 The computer readable storage medium stores a computer program, and the program is executed by the processor to realize the dynamic compensation of the gas sensor described in the above-mentioned embodiments. Further, the computer readable storage medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes. Figure 1 The computer readable storage medium stores a computer program, and the program is executed by the processor to realize the dynamic compensation of the gas sensor described in the above-mentioned embodiments. Further, the computer readable storage medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0130] It should be noted that each functional module in the embodiments of the present disclosure can be integrated in one processing module, or each module can be physically present alone, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.

[0131] The integrated module can be stored in a computer readable storage medium in the form of a software functional module when it is realized in the form of a software functional module and sold or used as an independent product. Based on this understanding, the technical solutions of the present disclosure can be embodied in the form of a software product.

[0132] It should be noted that, for the above-mentioned method embodiments, in order to facilitate description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described action sequence, because according to the present disclosure, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily essential to the present disclosure.

[0133] In the above-mentioned embodiments, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0134] The above is the description of the dynamic compensation method, device, electronic device and readable storage medium of the gas sensor provided by the present disclosure. For those skilled in the art, according to the idea of the embodiments of the present disclosure, the specific implementation and application range can be changed. In conclusion, the content of the specification should not be understood as a limitation of the present disclosure.

Claims

1. A dynamic compensation method of a gas sensor, characterized by, The method comprises the following steps: identifying a compensation filter of a gas sensor to be compensated in a constant temperature experimental environment, wherein the compensation filter comprises a response process compensation filter and a recovery process compensation filter; selecting the response process compensation filter or the recovery process compensation filter as a constant temperature compensation filter; measuring a current ambient temperature; obtaining a temperature-varying compensation filter according to the current ambient temperature and the constant temperature compensation filter; performing dynamic compensation of a gas concentration of the gas sensor to be compensated at the current ambient temperature by using the temperature-varying compensation filter to obtain a compensated gas concentration measurement result; after the step of performing dynamic compensation of the gas concentration of the gas sensor to be compensated at the current ambient temperature by using the temperature-varying compensation filter, the method further comprises the following steps: determining whether the gas sensor is in a response process or a recovery process according to the compensated gas concentration measurement result; in a case that the gas sensor is in the response process and the selected constant temperature compensation filter is the response process compensation filter, or in a case that the gas sensor is in the recovery process and the selected constant temperature compensation filter is the recovery process compensation filter, outputting the compensated gas concentration measurement result; in a case that the gas sensor is in the response process and the selected constant temperature compensation filter is the recovery process compensation filter, selecting the response process compensation filter as the constant temperature compensation filter, and performing the step of obtaining the temperature-varying compensation filter according to the current ambient temperature and the constant temperature compensation filter; in a case that the gas sensor is in the recovery process and the selected constant temperature compensation filter is the response process compensation filter, selecting the recovery process compensation filter as the constant temperature compensation filter, and performing the step of obtaining the temperature-varying compensation filter according to the current ambient temperature and the constant temperature compensation filter; the step of selecting the response process compensation filter or the recovery process compensation filter as the constant temperature compensation filter comprises the following steps: obtaining a response time of the response process compensation filter and a recovery time of the recovery process compensation filter; selecting a shorter compensation filter between the response time and the recovery time as the constant temperature compensation filter.

2. The dynamic compensation method of a gas sensor according to claim 1, characterized by, the step of performing dynamic compensation of the gas concentration of the gas sensor to be compensated at the current ambient temperature by using the temperature-varying compensation filter comprises the following steps: obtaining a gas concentration measurement result measured by the gas sensor to be compensated at the current ambient temperature; performing dynamic compensation of the gas concentration measurement result by using the temperature-varying compensation filter to obtain the compensated gas concentration measurement result.

3. The dynamic compensation method of a gas sensor according to claim 1, characterized by, the step of identifying the compensation filter of the gas sensor to be compensated in the constant temperature experimental environment comprises the following steps: performing step tests of the response process and the recovery process on the gas sensor to be compensated in the constant temperature experimental environment to obtain measured gas concentrations measured by the gas sensor to be compensated in the response process and the recovery process; acquiring actual gas concentrations in the response process and the recovery process under the constant temperature experimental environment; obtaining a response process compensation filter and a recovery process compensation filter according to the actual gas concentrations and the measured gas concentrations in the response process and the recovery process.

4. A dynamic compensation device for a gas sensor, characterized by The dynamic compensation method for the gas sensor according to any one of claims 1 to 3 comprises: a recognition module, configured to recognize a compensation filter of a to-be-compensated gas sensor under a constant temperature experimental environment, the compensation filter comprising a response process compensation filter and a recovery process compensation filter; a selection module, configured to select the response process compensation filter or the recovery process compensation filter as a constant temperature compensation filter; a measurement module, configured to measure a current environmental temperature; a calculation module, configured to obtain a temperature-varying compensation filter according to the current environmental temperature and the constant temperature compensation filter; a compensation module, configured to perform dynamic compensation of a gas concentration of the to-be-compensated gas sensor at the current environmental temperature by using the temperature-varying compensation filter.

5. An electronic device comprising: A memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, each step of the dynamic compensation method for the gas sensor according to any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by the processor, each step of the dynamic compensation method for the gas sensor according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Gas sensor temperature compensation device and method

    CN106706859A

  • Temperature compensation method, terminal device and computer readable storage medium

    CN107449521A