Alarm response method and device for gas sensor, gas sensor and computer readable storage medium

By calculating the virtual resistance and normalized voltage sampling value at the alarm point of the gas sensor, the problem of inconsistent response time and cumbersome normalization process of the gas sensor is solved, the unity of gas concentration changes and the shortening of response time is achieved, and the production is improved Efficiency and alarm accuracy.

CN118980719APending Publication Date: 2024-11-19HAINA CLOUD IOT TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410982963.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

It is difficult for existing gas sensors to obtain a unified rate of change in response time processing, resulting in inaccurate response time slope algorithms and cumbersome normalization calibration process, which affects production efficiency.

Method used

By calculating the virtual resistance based on the second voltage sampling value and calibration resistance at the alarm point of the gas sensor, the normalized voltage sampling value expression is derived, and the change information of the normalized voltage sampling value is obtained in real time to judge whether to alarm. Simplify the normalization process and ensure consistency of the gas sensor.

Benefits of technology

The normalization of gas sensor resistance is achieved, ensuring that the gas concentration changes tend to be consistent, simplifying the normalization method, shortening the response time, and improving the accuracy and production efficiency of alarms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118980719A_ABST
    Figure CN118980719A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of gas sensors, and discloses an alarm response method for a gas sensor, which comprises the following steps: determining a virtual resistor corresponding to a divider resistor connected in series with the gas sensor according to a corresponding normalized second voltage sampling value and a calibration resistor of the gas sensor under the gas concentration of an alarm point; the normalized second voltage sampling value is a set value; determining a normalized voltage sampling value expression of the resistance of the gas sensor according to the virtual resistance; based on the normalized voltage sampling value expression, acquiring change information of the normalized voltage sampling value of the gas sensor resistor in real time; and judging whether the gas sensor gives an alarm or not according to the change information of the normalized voltage sampling value. According to the method, change information of a voltage sampling value is obtained through a normalized voltage sampling value expression of a gas sensor resistor so as to judge whether to give an alarm or not, and the response time is shortened. The invention further discloses an alarm response device of the gas sensor, the gas sensor and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of gas sensors, for example, to an alarm response method and device for a gas sensor, a gas sensor, and a computer-readable storage medium. Background Art

[0002] Due to the influence of the process, even the same type of gas sensors have certain differences in the concentration detection change curve (change rate). This makes it difficult to obtain a uniform change rate in the response time processing, which affects the accuracy of the response time slope algorithm. At present, in order to solve this problem, in the production of gas sensors, multiple concentration points are manually calibrated to obtain an approximate corresponding concentration curve for each gas sensor. However, this method affects production efficiency.

[0003] The related technology discloses a universal resistive micro gas sensor data normalization calibration method. Based on the linear relationship between the resistance Ra and Ra-Rg of the gas sensor at the working temperature, data of multiple detection tests of different gas sensors under different gas concentrations are obtained, and a curve is drawn and fitted to obtain the slope K value. The target gas concentration is defined by the slope K value to obtain normalized calibration data; Ra is the initial resistance in the air, and Rg is the resistance in the atmosphere of the target substance to be measured.

[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:

[0005] Although the related technology has achieved the normalization of gas sensors, it requires the data of multiple detection tests to draw a linear relationship curve, and the normalization process is relatively cumbersome.

[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0008] The embodiments of the present disclosure provide a gas sensor alarm response method and device, a gas sensor, and a computer-readable storage medium to simplify the normalization process while ensuring the consistency of the gas sensor.

[0009] In some embodiments, the method includes: determining a virtual resistance corresponding to a voltage divider resistance connected in series with the gas sensor according to a normalized second voltage sampling value and a calibration resistance corresponding to the gas concentration at an alarm point of the gas sensor; the normalized second voltage sampling value is a set value; determining a normalized voltage sampling value expression of the gas sensor resistance according to the virtual resistance; acquiring change information of the normalized voltage sampling value in real time based on the normalized voltage sampling value expression; and judging whether the gas sensor alarms according to the change information of the normalized voltage sampling value.

[0010] In some embodiments, the device includes: a processor and a memory storing program instructions, and the processor is configured to execute the aforementioned alarm response method for a gas sensor when running the program instructions.

[0011] In some embodiments, the gas sensor includes: a gas sensor body; and an alarm response device for a gas sensor as described above, installed on the gas sensor body.

[0012] In some embodiments, the computer-readable storage medium stores program instructions, and when the program instructions are executed, the computer executes the alarm response method for the gas sensor as described above.

[0013] The gas sensor alarm response method and device, gas sensor, and computer-readable storage medium provided in the embodiments of the present disclosure can achieve the following technical effects:

[0014] Here, the gas sensor resistor and the voltage-dividing resistor are connected in series. At the alarm gas concentration point of the gas sensor, the virtual resistance of the voltage-dividing resistor is calculated according to the second voltage sampling value of the gas sensor resistor and the calibration resistance. Then, based on the virtual resistance, the voltage sampling value expression of the gas sensor resistor is derived, so that the normalized voltage sampling value can be obtained. And based on the change information of the normalized voltage sampling value, it is judged whether to alarm. In the embodiment of the present disclosure, the voltage sampling value of the normalized gas sensor resistor is obtained by calculating the virtual resistance obtained at the alarm gas concentration point. The gas concentration change trend of the gas sensor is made consistent, the consistency of the gas sensor is ensured, and the normalization method is simple. At the same time, based on the change information of the normalized voltage sampling value, it is judged whether to alarm, thereby shortening the response time of the gas sensor.

[0015] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:

[0017] Figure 1 is a schematic diagram of a circuit structure of a gas sensor provided by an embodiment of the present disclosure;

[0018] Figure 2 is a schematic diagram of an alarm response method for a gas sensor provided by an embodiment of the present disclosure;

[0019] Figure 3 is a schematic diagram of the original voltage sampling change curve of the gas sensor at different concentrations provided by the embodiment of the present disclosure;

[0020] Figure 4 is a schematic diagram of a normalized voltage sampling change curve of a gas sensor at different concentrations provided by an embodiment of the present disclosure;

[0021] Figure 5 is a schematic diagram of another alarm response method for a gas sensor provided by an embodiment of the present disclosure;

[0022] Figure 6 is a schematic diagram of another alarm response method for a gas sensor provided by an embodiment of the present disclosure;

[0023] Figure 7 is a schematic diagram of an alarm response device for a gas sensor provided by an embodiment of the present disclosure;

[0024] Figure 8 Schematic diagram of a gas sensor provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0026] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0027] Unless otherwise stated, the term "plurality" means two or more.

[0028] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0029] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0030] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0031] Combination Figure 1 As shown, the circuit of the gas sensor includes a gas sensor resistor R S , voltage divider resistor R L And heating wire resistance, and power supply. Among them, the gas sensor resistance and the voltage divider resistance are connected in series. The power supply is applied to both ends of the series voltage divider resistance and gas sensor resistance. S is the voltage across the gas sensor resistor, V C is the power supply voltage of the power supply. Voltage sampling is performed on pin 2 of the gas sensor to obtain the real-time voltage sampling value AD; the sampling reference voltage is V ref In the disclosed embodiment, the sampling accuracy is 12 bits.

[0032] Combination Figure 2 As shown, the embodiment of the present disclosure provides an alarm response method for a gas sensor, comprising:

[0033] S101, the processor determines the virtual resistance corresponding to the voltage divider resistor connected in series with the gas sensor according to the normalized second voltage sampling value corresponding to the gas concentration at the alarm point and the calibration resistance of the gas sensor; the normalized second voltage sampling value is the set value.

[0034] S102: The processor determines an expression for a normalized voltage sampling value of the gas sensor resistance according to the virtual resistance.

[0035] S103, the processor obtains the change information of the normalized voltage sampling value of the gas sensor resistance in real time based on the normalized voltage sampling value expression.

[0036] S104: The processor determines whether the gas sensor has issued an alarm based on the change information of the normalized voltage sampling value.

[0037] Here, each type of gas sensor will be set with an alarm point, and the alarm point refers to the gas sensor detecting that the gas concentration reaches the maximum preset value. Among them, the maximum preset value depends on the type of gas sensor. The normalized second voltage sampling value corresponding to the alarm point gas concentration refers to the voltage sampling value of the gas sensor resistance, and this voltage sampling value is the same sampling value reached by different gas sensors of the same type at the alarm point gas concentration. The second sampling voltage value is a set value, which depends on the type of gas sensor and can be obtained by experimental means. The calibration resistance refers to the resistance value of the gas sensor corresponding to the alarm point gas concentration.

[0038] Specifically, the voltage divider resistor and the gas sensor resistor are connected in series, and the two have a relationship of formula 1:

[0039]

[0040] in, 12 is the sampling accuracy, i.e., resolution. In the embodiment of the present disclosure, the resolution is set to 12, which can be adjusted based on actual usage. And V ref Take the value of 2.5V and set V S 、V ref Substituting into formula 1, we can obtain:

[0041]

[0042] Based on formula 2, the calibration resistance R at the alarm point gas concentration can be obtained S '. Based on formula 2, the virtual resistance R corresponding to the voltage divider resistance under the second voltage sampling value and the calibration resistance can be obtained. L '. Based on the virtual resistance, the normalized voltage sampling value expression can be derived through formula 2. Among them, the normalized voltage sampling value expression is related to the real-time voltage sampling value and the voltage sampling value under the alarm point gas concentration. In this way, the change of the normalized voltage sampling value can be determined based on the voltage sampling period. And according to the change of the voltage sampling value, it is judged whether to alarm.

[0043] Combination Figure 3 , 4 When the gas sensor is not normalized, the voltage sampling value curves of three gas sensors of the same model at different gas concentrations are as follows: Figure 3Although the voltage sampling value curves of the three gas sensors have the same change trend, the change rates are different. After normalization, the voltage sampling values ​​of the three gas sensors tend to be consistent, and the change rates are basically the same. Figure 4 In this way, the normalized voltage sampling curve helps to determine whether to alarm based on the change of the same voltage sampling value. Specifically, the change of the voltage sampling value can be the change amplitude of the voltage sampling value, and or, it can be the change rate of the voltage sampling value. Based on the change of the voltage sampling value, it is determined whether to alarm; the response time of the gas sensor can be effectively shortened, and the alarm can be predicted in advance.

[0044] In addition, in the disclosed embodiment, the gas sensor resistance is normalized based on the parameters under the gas concentration at the alarm point. This is because the gas sensor alarms only when the gas concentration reaches the gas concentration corresponding to the alarm point, and does not alarm when it is not reached. Therefore, normalization based on the gas concentration at the alarm point can ensure that the change in gas concentration at this point is consistent. And the normalized voltage sampling value is not only consistent at the gas concentration at the alarm point, but also basically consistent at other concentrations. In this way, it is possible to determine whether the gas sensor alarms based on the change information of the normalized voltage sampling value, thereby ensuring the accuracy of the alarm and shortening the response time. And this calculation method is simpler than the existing technology, and can be calculated by itself through a software program, and there is no need to collect experimental data multiple times.

[0045] The alarm response method for a gas sensor provided in an embodiment of the present disclosure calculates the virtual resistance of the voltage divider resistor based on the second voltage sampling value of the gas sensor resistor and the calibration resistance at the alarm gas concentration point of the gas sensor. Then, based on the virtual electron, the expression of the normalized voltage sampling value of the gas sensor resistor is derived. And based on the change information of the normalized voltage sampling value, it is judged whether to alarm. In the embodiment of the present disclosure, the voltage sampling value curve of the normalized gas sensor resistor is obtained by calculating the virtual resistance at the alarm gas concentration point. The gas concentration change trend of the gas sensor tends to be consistent, ensuring the consistency of the gas sensor. At the same time, based on the change information of the normalized voltage sampling value, it is judged whether to alarm, which can shorten the response time of the gas sensor.

[0046] Optionally, in step S101, the processor obtains a calibration resistance of the gas sensor corresponding to the gas concentration at the alarm point in the following manner, including:

[0047] When the gas sensor detects that the gas concentration reaches the alarm point gas concentration, the processor obtains a first voltage sampling value of the gas sensor resistance.

[0048] The processor calculates the calibration resistance according to the first voltage sampling value, the supply voltage and the voltage dividing resistance.

[0049] The supply voltage refers to the voltage of the power supply applied to both ends of the series-connected voltage divider resistor and the gas sensor resistor.

[0050] Here, the first sampling voltage AD of the gas sensor resistance when the gas concentration reaches the alarm point is obtained. ppm Substituting the first sampling voltage into Formula 1 (Formula 1 represents the linear relationship between the sampling voltage, the supply voltage, the voltage divider resistor and the sensor resistance), the corresponding calibration resistance R can be obtained. S '.in,

[0051]

[0052] Optionally, in step S101, the processor determines a virtual resistance corresponding to a voltage divider resistor connected in series with the gas sensor according to a normalized second voltage sampling value and a calibration resistance corresponding to the gas sensor at the alarm point gas concentration, including:

[0053] The processor substitutes the normalized second voltage sampling value into the calculation formula of the calibration resistance for derivation; and, in combination with the calculation formula of the calibration resistance, obtains the virtual resistance corresponding to the normalized voltage divider resistance.

[0054] The virtual resistor is only related to the voltage-dividing resistor, the second voltage sampling value and the first voltage sampling value.

[0055] Here, the normalized second voltage sampling value is AD ppm ', substituting it into formula 3, we can get the corresponding virtual resistance R L '. Then, the calibration resistor R S Substitute the virtual resistor R into Formula 3 L ', the virtual resistance R related only to the voltage divider resistance, the second voltage sampling value and the first voltage sampling value can be obtained. L '. Among them,

[0056]

[0057] Optionally, in step S102, the processor determines, according to the virtual resistance, a voltage sampling value expression of the gas sensor resistance normalization, including:

[0058] The processor calculates and obtains the normalized voltage sampling value expression according to the relationship between the voltage divider resistance, the gas sensor resistance and the real-time voltage sampling value and the virtual resistance.

[0059] The normalized voltage sampling value in the sampling voltage expression is related to the real-time sampling voltage, the first voltage sampling value, and the second voltage sampling value of the gas sensor.

[0060] Here, the relationship between the voltage divider resistance, the gas sensor resistance and the real-time voltage sampling value is shown in Formula 1. Combined with Formula 4 of the virtual resistance, the normalized voltage sampling value AD' expression can be obtained. Among them,

[0061]

[0062] It can be seen from Formula 5 that the normalized voltage sampling value AD' is only related to the real-time voltage sampling value, the first voltage sampling value and the second voltage sampling value. In this way, the normalized voltage sampling value is obtained. Figure 4 It can be seen that the normalized voltage sampling values ​​tend to be consistent. Therefore, the change information of the voltage sampling value can be obtained based on the normalized voltage sampling value expression to determine whether to alarm.

[0063] Combination Figure 5 As shown, the embodiment of the present disclosure provides another alarm response method for a gas sensor, comprising:

[0064] S101, the processor determines a virtual resistance corresponding to a voltage divider resistor connected in series with the gas sensor according to a normalized second sampling voltage value and a calibration resistance corresponding to the gas concentration at an alarm point of the gas sensor; the normalized second sampling voltage is a set value.

[0065] S102: The processor determines an expression for a gas sensor resistance normalized voltage sampling value according to the virtual resistance.

[0066] S131, the processor obtains the difference between the normalized voltage sampling value corresponding to the latest sampling period and the normalized voltage sampling value corresponding to the previous sampling period based on the normalized voltage sampling value expression.

[0067] S132: When the difference is greater than a threshold, the processor obtains the rate of change of the normalized voltage sampling value corresponding to the latest sampling period and the previous sampling period.

[0068] S104: The processor determines whether the gas sensor has issued an alarm based on the rate of change of the normalized voltage sampling value.

[0069] In the disclosed embodiment, after determining the normalized voltage sampling value expression, the voltage of the gas sensor resistor can be sampled in real time to obtain the real-time normalized voltage sampling value. Based on the sampling period, the difference of the normalized voltage sampling values ​​of adjacent sampling periods can be obtained. If the difference is large, it means that the gas concentration monitored in the environment where the gas sensor is located has changed. At this time, the change rate of the normalized voltage sampling value of the latest sampling period and the previous sampling period is calculated. It is judged whether the change rate exceeds the corresponding threshold value. If it exceeds, it indicates that the gas concentration is growing fast. The possibility of the gas concentration reaching the alarm point is high, and the gas sensor alarms. If it does not exceed, it indicates that the change in gas concentration is relatively reasonable. The possibility of the gas concentration reaching the alarm point is low, so no alarm is temporarily issued at this time, and the normalized voltage sampling value can be continued to be monitored. In this way, before the normalized voltage sampling value does not reach the voltage sampling value corresponding to the alarm point, the gas concentration change can be predicted in advance by the difference and change rate of the normalized voltage sampling value. In this way, the alarm is judged in advance by the consistent change slope after normalization, and the response time is shortened.

[0070] Optionally, the processor determines that the gas sensor alarms when the change rate of the normalized voltage sampling value is continuously greater than the corresponding threshold for multiple times. Here, when the risk of gas leakage is high, in order to avoid temporary sudden changes in gas concentration caused by misjudgment or other factors, an alarm is output only when the change rate is continuously determined to be greater than the corresponding threshold for multiple times. In this way, the accuracy of detection is guaranteed while improving the response rate.

[0071] Combination Figure 6 As shown, the embodiment of the present disclosure provides another alarm response method for a gas sensor, comprising:

[0072] S101, the processor determines a virtual resistance corresponding to a voltage divider resistor connected in series with the gas sensor according to a normalized second sampling voltage and a calibration resistance corresponding to the gas sensor at an alarm point gas concentration; the normalized second sampling voltage is a set value.

[0073] S102: The processor determines a normalized sampling voltage expression of the gas sensor resistance according to the virtual resistance.

[0074] S131, the processor obtains the difference between the normalized voltage sampling value corresponding to the latest sampling period and the normalized voltage sampling value corresponding to the previous sampling period based on the normalized voltage sampling value expression.

[0075] S132: When the difference is greater than a threshold, the processor obtains the rate of change of the normalized voltage sampling value corresponding to the latest sampling period and the previous sampling period.

[0076] S141, the processor determines a corresponding slope threshold value according to the normalized voltage sampling value corresponding to the latest sampling period.

[0077] S142, the processor determines whether the gas sensor alarms based on the change rate and slope threshold of the normalized voltage sampling value.

[0078] Here, the slope threshold is not a fixed value, and the interval to which the normalized voltage sampling value belongs determines the corresponding slope threshold. Figure 4 It can be seen that the slope of the normalized voltage sampling value is changing. Figure 4 , the normalized voltage sampling value is divided into multiple intervals, and the slope corresponding to each interval is basically the same. Specifically, when the difference of the normalized voltage sampling value is greater than the threshold, the normalized voltage sampling value interval to which it belongs is determined according to the normalized voltage sampling value of the latest sampling period. Then, based on the normalized voltage sampling value interval, the corresponding slope threshold is determined. According to the size of the slope threshold and the rate of change, it is determined whether to alarm.

[0079] Optionally, at S142, the processor determines whether the gas sensor has issued an alarm according to the change rate and the slope threshold of the normalized voltage sampling value, including:

[0080] The processor determines that the gas sensor alarms when the change rate of the normalized voltage sampling value is greater than or equal to the slope threshold.

[0081] When the rate of change of the normalized voltage sampling value is less than the slope threshold, the processor determines that the gas sensor does not alarm.

[0082] Here, when the rate of change of the normalized voltage sampling value is greater than or equal to the corresponding slope threshold, it indicates that the gas concentration is increasing and the rate of change exceeds the normal rate of change. At this time, it can be determined that the gas concentration exceeds the standard and the gas sensor alarms. When the rate of change of the normalized voltage sampling value is less than the slope threshold, although the gas concentration is increasing, the rate of change is slow. Therefore, the gas sensor does not alarm in this case. In this way, the response time of the gas sensor can be shortened by predicting whether to alarm in advance based on the rate of change of the normalized voltage sampling value.

[0083] Optionally, the larger the value of the normalized voltage sampling value interval is, the larger the corresponding slope threshold is. Figure 4 It can be clearly seen that when the normalized voltage sampling value reaches the alarm point concentration, the slope corresponding to the normalized voltage sampling value is the largest. As an example, take a certain type of gas sensor as an example. The normalized voltage sampling value is divided into four intervals, and each interval matches the corresponding slope threshold, as shown in Table 1. It should be noted that the normalized voltage sampling value curves of different types of gas sensors are different. Therefore, the division and value of the normalized voltage sampling value and the slope threshold are determined based on the type of gas sensor.

[0084] Table 1

[0085] Normalized voltage sampling value interval Slope threshold (AD value / second) [1800,2000) 5 [2000,2400) 20 [2400,2800) 50 [2800,3400) 100

[0086] Optionally, in step S131, the processor obtains a difference between the normalized voltage sampling values ​​corresponding to the latest sampling period and the previous sampling period, including:

[0087] The processor obtains the normalized voltage sampling value corresponding to the latest sampling period.

[0088] When the normalized voltage sampling value is greater than the sampling value threshold, the processor obtains the difference between the normalized voltage sampling values ​​corresponding to the latest sampling cycle and the previous sampling cycle.

[0089] Here, the gas sensor is generally provided with a minimum detection concentration (i.e., minimum preset value) while having an alarm point (i.e., maximum preset value). When the gas concentration is greater than the minimum detection concentration, there is a risk that the gas sensor will issue an early warning reminder. When the gas concentration is greater than the alarm point concentration, the gas sensor alarms. For the gas sensor alarm, only when the gas concentration is greater than the minimum detection concentration, further judgment is made whether to alarm. For the normalized voltage sampling value, a sampling value threshold corresponding to the minimum detection concentration is set, and the difference and slope are judged only when the normalized voltage sampling value is greater than the sampling value threshold. This avoids making judgments when the normalized voltage sampling value is small, reducing the workload. As an example, in combination with Table 1, the sampling value threshold is taken as 1800. The value range of the sampling value threshold depends on the type of gas sensor and the setting of the minimum detection concentration. In practical applications, the value is taken based on the actual situation.

[0090] Combination Figure 7 As shown, an embodiment of the present disclosure provides an alarm response device 100 for a gas sensor, including a processor 101 and a memory 102. Optionally, the device 100 may also include a communication interface 103 and a bus 104. The processor 101, the communication interface 103, and the memory 102 may communicate with each other through the bus 104. The communication interface 103 may be used for information transmission. The processor 101 may call the logic instructions in the memory 102 to execute the alarm response method for the gas sensor of the above embodiment.

[0091] In addition, the logic instructions in the memory 102 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0092] The memory 102 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 101 executes the function application and data processing by running the program instructions / modules stored in the memory 102, that is, the alarm response method for the gas sensor in the above embodiment is implemented.

[0093] The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 102 may include a high-speed random access memory and may also include a non-volatile memory.

[0094] Combination Figure 8 As shown, an embodiment of the present disclosure provides a gas sensor 200, including: a gas sensor body, and the above-mentioned alarm response device 100 for the gas sensor. The alarm response device 100 for the gas sensor is installed on the gas sensor body 200. The installation relationship described here is not limited to placement inside the gas sensor body, but also includes installation connections with other components of the gas sensor 200, including but not limited to physical connections, electrical connections or signal transmission connections, etc. Those skilled in the art can understand that the alarm response device 100 for the gas sensor can be adapted to a feasible product body, thereby realizing other feasible embodiments.

[0095] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned alarm response method for a gas sensor.

[0096] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.

[0097] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0098] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0099] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0100] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. An alarm response method for a gas sensor, characterized in that: include: Determine a virtual resistance corresponding to a voltage divider resistor connected in series with the gas sensor according to a normalized second voltage sampling value corresponding to the gas concentration at the alarm point and a calibration resistance of the gas sensor; The normalized second voltage sampling value is a set value; According to the virtual resistance, determine the normalized voltage sampling value expression of the gas sensor resistance; Based on the normalized voltage sampling value expression, the change information of the normalized voltage sampling value is obtained in real time; According to the change information of the normalized voltage sampling value, it is determined whether the gas sensor alarms.

2. The method according to claim 1, characterized in that The calibration resistance of the gas sensor corresponding to the gas concentration at the alarm point is obtained by the following methods, including: When the gas sensor detects that the gas concentration reaches the alarm point gas concentration, obtaining a first voltage sampling value of the gas sensor resistance; Calculating a calibration resistance according to the first voltage sampling value, the supply voltage and the voltage dividing resistance; The supply voltage refers to the voltage of the power supply applied to both ends of the series-connected voltage divider resistor and the gas sensor resistor.

3. The method according to claim 2, characterized in that Determining a virtual resistance of a voltage divider resistor connected in series with the gas sensor according to a normalized second voltage sampling value corresponding to the gas concentration at the alarm point and a calibration resistance of the gas sensor includes: Substituting the normalized second voltage sampling value into the calculation formula of the calibration resistance for derivation; and, Combined with the calculation formula of the calibration resistance, the virtual resistance corresponding to the normalized voltage divider resistance is obtained; The virtual resistor is only related to the voltage-dividing resistor, the second voltage sampling value and the first voltage sampling value.

4. The method according to claim 1, characterized in that: According to the virtual resistance, the voltage sampling value expression of the gas sensor resistance normalization is determined, including: According to the linear relationship between the voltage divider resistance, the gas sensor resistance and the real-time voltage sampling value, and the virtual resistance, a normalized voltage sampling value expression is calculated; The normalized voltage sampling value in the voltage sampling value expression is related to the real-time voltage sampling value, the first voltage sampling value, and the second voltage sampling value of the gas sensor.

5. The method according to claim 1, characterized in that Real-time acquisition of normalized voltage sampling value change information, including: Obtain the difference between the normalized voltage sampling value corresponding to the latest sampling period and the previous sampling period; When the difference is greater than the threshold, the change rate of the normalized voltage sampling value corresponding to the latest sampling period and the previous sampling period is obtained.

6. The method according to claim 5, characterized in that According to the normalized voltage sampling change information, determine whether the gas sensor alarms, including: Determine the corresponding slope threshold value according to the normalized voltage sampling value corresponding to the latest sampling period; Determine whether the gas sensor has issued an alarm based on the rate of change and slope threshold of the normalized voltage sampling value.

7. The method according to claim 6, characterized in that According to the change rate and slope threshold of the normalized voltage sampling value, it is judged whether the gas sensor alarms, including: When the change rate of the normalized voltage sampling value is greater than or equal to the slope threshold, the gas sensor is judged to be in alarm; When the change rate of the normalized voltage sampling value is less than the slope threshold, it is determined that the gas sensor does not alarm.

8. An alarm response device for a gas sensor, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the alarm response method for a gas sensor according to any one of claims 1 to 7 when running the program instructions.

9. A gas sensor, characterized in that: include: Gas sensor body; The alarm response device for a gas sensor as claimed in claim 8 is mounted on the gas sensor body.

10. A computer-readable storage medium storing program instructions, characterized in that: When the program instructions are executed, the computer is used to execute the alarm response method for a gas sensor according to any one of claims 1 to 7.