CN108387688A - Sensor calibration and gas detection method, device and equipment, readable storage medium storing program for executing - Google Patents

Sensor calibration and gas detection method, device and equipment, readable storage medium storing program for executing Download PDF

Info

Publication number
CN108387688A
CN108387688A CN201810155561.7A CN201810155561A CN108387688A CN 108387688 A CN108387688 A CN 108387688A CN 201810155561 A CN201810155561 A CN 201810155561A CN 108387688 A CN108387688 A CN 108387688A
Authority
CN
China
Prior art keywords
value
influence
threshold value
gas sensor
gas
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810155561.7A
Other languages
Chinese (zh)
Other versions
CN108387688B (en
Inventor
李主求
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Rui Xin Electronic Technology Co Ltd
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Rui Xin Electronic Technology Co Ltd, Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Rui Xin Electronic Technology Co Ltd
Priority to CN201810155561.7A priority Critical patent/CN108387688B/en
Publication of CN108387688A publication Critical patent/CN108387688A/en
Application granted granted Critical
Publication of CN108387688B publication Critical patent/CN108387688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/0004Gaseous mixtures, e.g. polluted air
    • G01N33/0006Calibrating gas analysers

Landscapes

  • Chemical & Material Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Medicinal Chemistry (AREA)
  • Food Science & Technology (AREA)
  • Combustion & Propulsion (AREA)
  • Physics & Mathematics (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)

Abstract

A kind of sensor calibration of offer of the embodiment of the present invention and gas detection method, device and equipment, readable storage medium storing program for executing, the bearing calibration include:Obtain the multiple influence values exported after gas sensor preheating predetermined period;Determine the difference degree between acquired each influence value;If identified difference degree meets scheduled threshold value update condition, the average value of acquired each influence value is updated to the threshold value of the gas sensor.Implement the embodiment of the present invention, every time after gas sensor preheats predetermined period and starts, obtain multiple sensing values of gas sensor, and when the difference degree of acquired each influence value and its average value meets scheduled threshold value update condition, the average value of each influence value is updated to the threshold value of gas sensor, it is run with the startup of gas sensor, the threshold value of reflection gas sensor degree of aging can be obtained, and then effectively reduce negative effect of the gas sensor aging to gas detection result.

Description

Sensor calibration and gas detection method, device and equipment, readable storage medium storing program for executing
Technical field
The present invention relates to field of sensing technologies more particularly to sensor calibration and gas detection method, device and equipment, can Read storage medium.
Background technology
In order to improve the air quality in environment, many occasions can use the correlation of gas in gas sensor monitors environment Information, specifically when monitoring, gas sensor can be converted into electric signal by gaseous species and its with concentration dependent information.So Afterwards, these electric signals can be compared by relevant gas detecting system with threshold value, be obtained under test gas in the environment There are the related information of situation, i.e. gas-monitoring as a result, type, concentration and the ingredient of such as gas.
But gas sensor is in use for some time, it, can due to it forms performance degradation of device itself etc. The phenomenon that gas sensor aging can occur, the electric signal exported before the electric signal of the gas sensor output after aging and aging Concrete numerical value have different, for the size of difference by being determined depending on the degree of aging of gas sensor, degree of aging is bigger, Difference is also bigger, so that the accuracy for the gas detection result that relevant gas detecting system obtains is lower.
Invention content
In view of this, the embodiment of the present invention provides a kind of sensor calibration and gas detection method, device and equipment, readable Storage medium, to solve the problems, such as that gas sensor aging causes gas detection result precision relatively low.
According to the first aspect of the invention, a kind of sensor calibration method, including step are provided:
Obtain the multiple influence values exported after gas sensor preheating predetermined period;
Determine the difference degree between acquired each influence value;
If identified difference degree meets scheduled threshold value update condition, by being averaged for acquired each influence value Value is updated to the threshold value of the gas sensor.
In one embodiment, the difference degree includes at least one of following:
Error amount, Error Absolute Value, variance yields, mean square deviation.
In one embodiment, the influence value is voltage value or current value.
In one embodiment, the method is further comprising the steps of:
After the threshold value for updating the gas sensor, in the gas sensor in running order period, every pre- The fixed update period executes primary following first iterative operation:
Multiple influence values of the gas sensor output are obtained in real time;
Determine the difference degree between each influence value obtained in real time;
If identified difference degree meets the threshold value update condition, by being averaged for each influence value obtained in real time Value, is updated to the threshold value of the gas sensor.
In one embodiment, if identified difference degree is unsatisfactory for the threshold value update condition, the method is also Include the following steps;
The influence value of the predetermined number of the gas sensor output is obtained in real time, and executes following secondary iteration operation:
By vertical output sequence, sequentially with the instead preceding influence value obtained of the influence value obtained in real time;
Obtain the average value of the influence value after the influence value not substituted and replacement;
Redefine the difference degree between each influence value in the influence value after the influence value not substituted and replacement;
If the difference degree redefined meets the threshold value update condition, acquired average value is updated to institute The threshold value of gas sensor is stated, and terminates the secondary iteration operation;
If the difference degree redefined meets the threshold value update condition, it is defeated that the gas sensor is obtained in real time The influence value of the predetermined number gone out, and execute the secondary iteration operation.
According to the second aspect of the invention, a kind of gas detection method, including step are provided:
Obtain the multiple influence values exported after gas sensor preheating predetermined period;
Determine the difference degree between acquired each influence value;
If identified difference degree meets scheduled threshold value update condition, by being averaged for acquired each influence value Value is updated to the threshold value of the gas sensor;
It obtains the gas and turns influence value after sensor, and compare the influence value of acquisition and updated threshold value, obtain Gas detection result.
According to the third aspect of the invention we, a kind of sensor calibration device is provided, including:
Influence value acquisition module, for obtaining the multiple influence values exported after gas sensor preheating predetermined period;
Difference determining module, for determining the difference degree between acquired each influence value;
Threshold value update module will be acquired for when identified difference degree meets scheduled threshold value update condition The average value of each influence value be updated to the threshold value of the gas sensor.
According to the fourth aspect of the invention, a kind of gas-detecting device is provided, including:
Influence value acquisition module, for obtaining the multiple influence values exported after gas sensor preheating predetermined period;
Difference determining module, for determining the difference degree between acquired each influence value;
Threshold value update module will be acquired for when identified difference degree meets scheduled threshold value update condition The average value of each influence value be updated to the threshold value of the gas sensor;
Gas detection module, for obtaining the influence value after the gas turns sensor, and compare the influence value of acquisition with Updated threshold value obtains gas detection result.
According to the fifth aspect of the invention, a kind of terminal device is provided, including:
Processor;
Store the memory of processor-executable instruction;
Wherein, the processor is coupled in the memory, the program instruction for reading the memory storage, and makees For response, the operation in sensor calibration method as described above is executed.
According to the sixth aspect of the invention, a kind of terminal device is provided, including:
Processor;
Store the memory of processor-executable instruction;
Wherein, the processor is coupled in the memory, the program instruction for reading the memory storage, and makees For response, the operation in gas detection method as described above is executed.
According to the seventh aspect of the invention, one or more machine readable storage mediums are provided, instruction is stored thereon with, when When being executed by one or more processors so that terminal device executes the operation in sensor calibration method as described above.
According to the eighth aspect of the invention, one or more machine readable storage mediums are provided, instruction is stored thereon with, when When being executed by one or more processors so that terminal device executes the operation in gas detection method as described above.
Implement embodiment provided by the invention, every time after gas sensor preheats predetermined period and starts, obtains gas Multiple sensing values of sensor, and meet scheduled threshold value in the difference degree of acquired each influence value and its average value and update When condition, the average value of each influence value is updated to the threshold value of gas sensor, runs, can obtain with the startup of gas sensor To the threshold value of reflection gas sensor degree of aging.
If the sensing after more updated threshold value and gas sensor is worth to gas detection as a result, can be in turn Negative effect of the gas sensor aging to testing result itself is effectively reduced, gas detection accuracy is improved.
Description of the drawings
Fig. 1 is the flow chart of the sensor calibration method shown in an exemplary embodiment of the invention;
Fig. 2 is the flow chart of the sensor calibration method shown in another exemplary embodiment of the present invention;
Fig. 3 is the flow chart of the sensor calibration method shown in another exemplary embodiment of the present invention;
Fig. 4 is the flow chart of the gas detection method shown in an exemplary embodiment of the invention;
Fig. 5 is the block diagram of the sensor calibration device shown in an exemplary embodiment of the invention;
Fig. 6 is the block diagram of the gas-detecting device shown in an exemplary embodiment of the invention;
Fig. 7 is the hardware structure diagram of the terminal device shown in an exemplary embodiment of the invention.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
It is the purpose only merely for description specific embodiment in terminology used in the present invention, is not intended to limit the invention. It is also intended to including majority in the present invention and "an" of singulative used in the attached claims, " described " and "the" Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from In the case of the scope of the invention, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
The present embodiments relate to gas sensor (or be gas sensor), semiconductor-type gas sensing can be referred to Device, catalytic combustion type gas sensor or electrochemical gas sensor etc..If gas sensor is placed in detecting head, monitoring In equipment, smart home device or other gas detecting systems, it can be used for industry into fields such as production, communications and transportation, smart homes Scape detects flammable, inflammable, toxic gas concentration or its presence or absence, or the consumption etc. of detection oxygen.
Gas detecting system is usually to pass the influence value (may also be referred to as electric signal) that gas sensor exports with gas The threshold value of sensor is compared, and obtains gas detection result.Wherein, the threshold value of gas sensor is that gas sensor is initially put into Using the threshold value of preceding acquisition, degree of aging that can not be in reaction gas sensor use, and gas sensor degree of aging is got over Greatly, the difference of the electric signal exported before the electric signal (may also be referred to as influence value) of output and aging is also bigger.If relevant Gas detecting system in application scenarios still will be unable to the threshold value of the sensor ageing degree of reaction gas and the gas of aging pass The electric signal of sensor output is compared, it is likely that obtains the low-down gas detection result of accuracy.
User can be caused to ignore harmful components in scene without accurate gas detection result, so be likely to Greater loss is caused at family, in view of this, the present invention provides a kind of sensor calibration methods, starts simultaneously in gas sensor every time After preheating predetermined period, multiple sensing values of gas sensor are obtained, and in the difference of acquired each influence value and its average value When off course degree meets scheduled threshold value update condition, the average value of each influence value is updated to the threshold value of gas sensor, with The startup of gas sensor is run, and can obtain the threshold value of reflection gas sensor degree of aging.
In addition, the present invention also provides a kind of gas detection method, the detection method by comparing updated threshold value and Sensing after gas sensor is worth to gas detection and is tied to detection as a result, gas sensor aging itself can be reduced effectively The negative effect of fruit improves gas detection accuracy.Introduce the sensor school of the lower embodiment of the present invention respectively below in conjunction with attached drawing Correction method and gas detection method.
Referring to Fig. 1, Fig. 1 is the flow chart of the sensor calibration method shown in an exemplary embodiment of the invention, the reality It applies example to can be applied on terminal device, includes the following steps S101-S103:
Step S101, the multiple influence values exported after gas sensor preheating predetermined period are obtained.
Step S102, the difference degree between each influence value acquired in determining.
If step S103, identified difference degree meets scheduled threshold value update condition, by acquired each sense The average value that should be worth is updated to the threshold value of the gas sensor.
The terminal device that the embodiment of the present application is applied can be that there are the various computers of sensor calibration function to set It is standby, such as personal computer, laptop computer, smart mobile phone etc., can also be detecting head with gas detection function or Environment monitoring equipment, smart home device equipped with gas detecting system or other computer equipments.
If gas sensor is fitted together with gas detecting system, the operation of the embodiment of the present invention can be examined by gas Examining system executes.When needing detection gas, after gas detecting system powers on and opens gas detection function, in gas sensing Also upper electric preheating, gas detecting system can start timing to device, and after timing reaches predetermined period, gas sensor launches into surely Determine working condition, multiple influence values that gas sensor exports after gas detecting system can be reached by reception timing obtain The gas sensor starts and preheats multiple influence values after predetermined period.Predetermined period mentioned herein can be with this programme Designer or sensor production side, according to the type set of gas sensor, for making gas sensor reach stable state. Such as it is set as 3 minutes, in other examples, other numerical value can also be set as, the embodiment of the present invention is without limitation.
In practical application, due to gas sensor type difference when, by gaseous species and its with concentration dependent information The electric signal being converted into is also different, and the influence value is determined by the operation principle of gas sensor, can be that gas sensor is defeated The current value gone out can also be the voltage value of gas sensor output.
In addition, updating efficiency to improve threshold value, multiple influence values that the embodiment of the present invention obtains, can be gas sensings The influence value that device continuously exports, such as:30 influence values continuously exported in 30 seconds.In other examples, in order to make update The degree of aging of threshold value energy reaction gas sensor within the longer period afterwards, can be from gas sensor in preheating predetermined period And in a large amount of influence values exported after starting, discrete multiple influence values are selected, such as:120 inductions exported out of 2 minute Discrete 60 influence values are selected in value.
If gas sensor is independently of isolated operation except gas detecting system, by its influence value to gas detecting system It sends, the detection of supplied gas detecting system uses.The operation of the embodiment of the present invention can be led by other except gas detecting system Body executes, such as personal computer, laptop computer, smart mobile phone equipment, gas sensor can be connect with these equipment. These equipment can be ordered by sending, and control gas sensor preheating predetermined period simultaneously starts, and then can receive gas biography The influence value that sensor is exported in preheating predetermined period and after starting, and the time for receiving influence value is recorded, it then can be from reception Influence value in choose the multiple influence values continuously received.
For multiple influence values of acquisition, it is contemplated that when gas sensor degree of aging temporary stabilization, multiple senses of output Should be worth in Stable distritation, the difference between each influence value in a certain range, so the embodiment of the present invention, and it is indirect will be acquired The average value of multiple influence values be updated to sensor and be updated to threshold value, but it needs to be determined that between acquired multiple influence values Difference degree within a predetermined range, that is, when meeting scheduled threshold value update condition, just by the average value of multiple influence values of acquisition It is updated to the threshold value of gas sensor, so, the difference degree of each influence value of the threshold value update condition for that will obtain here It limits within a predetermined range.
In one example, with the difference of each influence value and its average value of acquisition, carry out response difference degree, it can be by following It operates to determine the difference degree between acquired each influence value:
Calculate the average value of acquired each influence value.
Calculate the difference of acquired each influence value and the average value.
Compare each difference for calculating gained and scheduled difference range.
If comparison result indicates each difference for calculating gained in the difference range, identified difference is judged Degree meets the threshold value update condition.Difference range mentioned herein can be according to actual demand and the class of gas sensor Type set, as influence value be voltage when, difference range is set as -0.2V to the numerical value between 0.2V.
In another example, with the variance of each influence value of acquisition, carry out response difference degree, it can be by following operation come really Difference degree between fixed acquired each influence value:
Calculate the variance of each influence value;
If the variance is within the scope of scheduled variance, judge that identified difference degree meets the threshold value Update condition.Variance range mentioned herein can be according to actual demand and the type set of gas sensor.
In another example, with the mean square deviation of each influence value of acquisition, carry out response difference degree, can by it is following operation come Determine the difference degree between acquired each influence value:
Calculate the mean square deviation of each influence value;
If the mean square deviation is within the scope of scheduled mean square deviation, judge described in identified difference degree satisfaction Threshold value update condition.Mean square deviation range mentioned herein can be according to actual demand and the type set of gas sensor.
In other examples, with other parameters the difference degree, such as the absolute value of difference, deviation can be reacted, The difference degree can be reacted at least two in difference, variance, absolute difference, mean square deviation.
According to either type in above-described embodiment, determine that the difference degree between acquired each influence value meets the threshold value When update condition, the average value of each influence value that can be acquired is updated to the threshold value of the gas sensor.
It is newer when due to the threshold value being gas sensor degree of aging temporary stabilization, so the threshold value can only reaction gas Degree of aging in sensor limited period of time, if gas sensor is when the working time after updating threshold value is limited no more than this Section, then before newer threshold value to a certain extent can be after the effecting reaction limited period of time degree of aging, be not necessarily to frequent updating Threshold value carries out gas detection according to newer threshold value before.
If gas sensor updates the working time superelevation limited period of time after threshold value, degree of aging may reach more High degree, before newer threshold value be difficult to the degree of aging after the effecting reaction limited period of time, according to newer threshold value before The accuracy for carrying out the gas detection result obtained by gas detection has decline by a relatively large margin again, so, for updating threshold value Gas sensor in running order for a long time afterwards, every the scheduled update period, it is necessary to execute primary acquisition institute in real time The operation of multiple influence values of gas sensor output is stated, and determines the difference degree between each influence value obtained in real time;Institute When determining difference degree meets the threshold value update condition, the average value of each influence value obtained in real time is updated to described The threshold value of gas sensor.Referring specifically to Fig. 2, sensor calibration method shown in Fig. 2 can be applied to terminal device, including with Lower step S201-S206:
Step S201, start after control gas sensor preheating predetermined period.
Step S202, multiple influence values of the gas tactility apparatus output are obtained.
Step S203, the difference degree between each influence value acquired in determining.
If step S204, identified difference degree meets scheduled threshold value update condition, by acquired each sense The average value that should be worth is updated to the threshold value of the gas sensor.
Step S205, the operating time of gas sensor described in start recording.
Step S206, judge whether the operating time of record reaches the scheduled update period, if reached, return to step S202, if not up to the scheduled update period when, terminate working condition, then stop correct sensor operation.
The present embodiments relate to content it is corresponding to the content in the embodiment that Fig. 1 is related to, details are not described herein.
The update period that the embodiment of the present invention is mentioned can set according to the type of gas sensor and actual demand, Such as it is set as 10 minutes.
In certain scenes, the embodiment involved by embodiment or Fig. 2 involved by either Fig. 1, if determined Difference degree be unsatisfactory for the threshold value update condition, for example, calculate any difference not in scheduled difference range, or The variance of calculating either mean square deviation not within the scope of scheduled variance range or mean square deviation, it is possible to determine that identified difference Degree is unsatisfactory for the threshold value update condition.
For the situation for being unsatisfactory for the threshold value update condition, the embodiment of the present invention can obtain the gas sensing in real time The influence value of the predetermined number of device output, and execute following iterative operation:
By vertical output sequence, sequentially with the instead preceding influence value obtained of the influence value obtained in real time;
Redefine the difference degree between each influence value in the influence value after the influence value not substituted and replacement.
Redefine the difference degree between each influence value in the influence value after the influence value not substituted and replacement.
If the difference degree redefined meets the threshold value update condition, acquired average value is updated to institute The threshold value of gas sensor is stated, and terminates the secondary iteration operation.
If the difference degree redefined meets the threshold value update condition, it is defeated that the gas sensor is obtained in real time The influence value of the predetermined number gone out, and execute the iterative operation.
Under certain scenes, concrete implementation process may refer to Fig. 3, and sensor calibration method shown in Fig. 3 can be applied In terminal device, including following step S301-S311:
Step S201, start after control gas sensor preheating predetermined period.
Step S302, multiple influence values of the gas tactility apparatus output are obtained.
Step S303, the difference degree between each influence value acquired in determining.
Step S304, whether difference degree determined by judgement meets scheduled threshold value update condition, if it is satisfied, then holding Row step S305, if conditions are not met, thening follow the steps S306.
Step S305, the average value of multiple influence values of acquisition is updated to the threshold value of the gas sensor.
Step S306, the influence value of the predetermined number of the gas sensor output is obtained.
Step S307, vertical output sequence is pressed, sequentially with the instead preceding induction obtained of the influence value obtained again Value.
Step S308, the average value of the influence value after the influence value not substituted and replacement is obtained.
Step S309, the difference journey between each influence value in the influence value after the influence value not substituted and replacement is redefined Degree.
Step S310, judge whether the difference degree redefined meets the threshold value update condition, held if meeting Row step S311, the return to step S306 if being unsatisfactory for.
Step S311, acquired average value is updated to the threshold value of the gas sensor.
In the embodiment of the present invention, influence value is obtained, difference degree is determined, judges whether difference degree meets the threshold value more The content of New Terms, corresponding to the content in the embodiment that Fig. 1 or Fig. 2 are related to, details are not described herein.
For step S306, the predetermined number can be numerical value 1, or other numerical value, such as 30, it specifically can root It is set according to actual scene demand.
For step S307, with the influence value newly obtained, when substituting old influence value, when can be according to the output of influence value Between or receiving time, be temporally worth sequence from small to large and determine the old influence value substituted.
It, can be with by above-described embodiment it is found that the present invention program is every time after gas sensor preheats predetermined period and starts Multiple sensing values of gas sensor are obtained, and are met in the difference degree of acquired each influence value and its average value scheduled When threshold value update condition, the average value of each influence value is updated to the threshold value of gas sensor, with the startup of gas sensor Operation can obtain the threshold value of reflection gas sensor degree of aging.
After updating threshold value, the equipment equipped with gas detecting system can more updated threshold value and gas sensing Sensing after device is worth to gas detection as a result, effectively reducing negative shadow of the gas sensor aging to testing result itself It rings, improves gas detection accuracy.Specific detection process may refer to Fig. 4, gas detection method shown in Fig. 4, Ke Yiying For in the equipment equipped with gas detecting system, including the following steps S401-S404:
Step S401, the multiple influence values exported after gas sensor preheating predetermined period are obtained.
Step S402, the difference degree between each influence value acquired in determining.
If step S403, identified difference degree meets scheduled threshold value update condition, by acquired each sense The average value that should be worth is updated to the threshold value of the gas sensor.
Step S404, obtain the gas and turn the influence value after sensor, and compare the influence value of acquisition with it is updated Threshold value obtains gas detection result.
The present embodiments relate to content it is corresponding to the content that any embodiment is related in Fig. 1 to 3, it is no longer superfluous herein It states.
The gas detection that the embodiment of the present invention obtains is as a result, can be type, concentration and ingredient of gas etc..
For step S404, the operation that gas detection result is specifically taken is obtained, it can be by the type of gas sensor Or it is expected that the gas data (type, concentration and the ingredient of such as gas) of detection determines that details are not described herein.
In other examples, the gas detection method of the embodiment of the present invention, can also be in any reality that Fig. 1 to Fig. 3 is related to It after applying example update threshold value, obtains the gas and turns influence value after sensor, and compare the influence value of acquisition and updated threshold Value, obtains gas detection result.
Corresponding with the embodiment of preceding method, the present invention also provides the embodiments of device.
It is the block diagram of the gas sensor means for correcting shown in an exemplary embodiment of the invention, the dress referring to Fig. 5, Fig. 5 It sets and can be applied to terminal device, including:Influence value acquisition module 510, difference determining module 520 and threshold value update module 530.
Wherein, influence value acquisition module 510, for obtaining the multiple inductions exported after gas sensor preheating predetermined period Value.
Difference determining module 520, for determining the difference degree between acquired each influence value.
Threshold value update module 530, for when identified difference degree meets scheduled threshold value update condition, will be obtained The average value of each influence value taken is updated to the threshold value of the gas sensor.
In some examples, the difference degree includes at least one of following:
Error amount, Error Absolute Value, variance yields, mean square deviation.
In other examples, the influence value is voltage value or current value.
In other examples, the gas sensor means for correcting of the present embodiment can also include:
First iteration module is used for after the threshold value for updating the gas sensor, and the gas sensor is in work During making state, every the scheduled update period, primary following first iterative operation is executed:
Multiple influence values of the gas sensor output are obtained in real time;
Determine the difference degree between each influence value obtained in real time;
If identified difference degree meets the threshold value update condition, by being averaged for each influence value obtained in real time Value, is updated to the threshold value of the gas sensor.
In other examples, the gas sensor means for correcting of the present embodiment can also include:
Secondary iteration module, for when identified difference degree is unsatisfactory for the threshold value update condition, obtaining in real time The influence value of the predetermined number of the gas sensor output, and execute following secondary iteration operation:
By vertical output sequence, sequentially with the instead preceding influence value obtained of the influence value obtained in real time;
Obtain the average value of the influence value after the influence value not substituted and replacement;
Redefine the difference degree between each influence value in the influence value after the influence value not substituted and replacement;
If the difference degree redefined meets the threshold value update condition, acquired average value is updated to institute The threshold value of gas sensor is stated, and terminates the secondary iteration operation;
If the difference degree redefined meets the threshold value update condition, it is defeated that the gas sensor is obtained in real time The influence value of the predetermined number gone out, and execute the secondary iteration operation.
It is the block diagram of the gas-detecting device shown in an of the invention exemplary embodiment referring to Fig. 6, Fig. 6, which can be with Applied to the terminal device with gas detection function, including:Influence value acquisition module 610, difference determining module 620, threshold value Update module 630 and gas detection module 640.
Wherein, influence value acquisition module 610, for obtaining the multiple inductions exported after gas sensor preheating predetermined period Value.
Difference determining module 620, for determining the difference degree between acquired each influence value.
Threshold value update module 630, for when identified difference degree meets scheduled threshold value update condition, will be obtained The average value of each influence value taken is updated to the threshold value of the gas sensor.
Gas detection module 640 for obtaining the influence value after the gas turns sensor, and compares the influence value of acquisition With updated threshold value, gas detection result is obtained.
The influence value acquisition module 610, difference determining module 620 and threshold value update module 630 of the present embodiment, respectively and scheme The content of 5 embodiments being related to is corresponding, and details are not described herein.
The function of each unit (or module) and the realization process of effect specifically refer to right in the above method in above-mentioned apparatus The realization process of step is answered, details are not described herein.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component The unit or module of explanation may or may not be physically separated, and the component shown as unit or module can be with It is or may not be physical unit or module, you can be located at a place, or may be distributed over multiple network lists In member or module.Some or all of module therein can be selected according to the actual needs to realize the mesh of the present invention program 's.Those of ordinary skill in the art are without creative efforts, you can to understand and implement.
The embodiment of inventive sensor means for correcting and/or gas-detecting device can be applied on the terminal device.Tool Body can be realized by computer chip or entity, or be realized by the product with certain function.In the typical realization of one kind, Terminal device is computer, and the concrete form of computer can be personal computer, laptop computer, smart phone, navigation It is arbitrary in equipment, E-mail receiver/send equipment, game console, tablet computer, smart home device or these equipment The combination of several equipment.
Device embodiment can also be realized by software realization by way of hardware or software and hardware combining.With For software realization, as the device on a logical meaning, being will be non-volatile by the processor of electronic equipment where it Corresponding computer program instructions read what operation in memory was formed in the readable storage medium storing program for executing such as memory.From hardware view Speech, as shown in fig. 7, for a kind of hardware knot of terminal device where inventive sensor means for correcting and/or gas-detecting device Composition, other than processor shown in Fig. 7, memory, network interface and nonvolatile memory, device institute in embodiment Terminal device generally according to the terminal device actual functional capability, can also include other hardware, this is repeated no more.Its In, memory and nonvolatile memory are computer-readable memories, and the memory of terminal device can store processor can The program instruction of execution;Processor can with coupled memory,
In one embodiment, the processor is used to read the program instruction of the storage medium storage, and in response, Execute following operation:
Obtain the multiple influence values exported after gas sensor preheating predetermined period;
Determine the difference degree between acquired each influence value;
If identified difference degree meets scheduled threshold value update condition, by being averaged for acquired each influence value Value is updated to the threshold value of the gas sensor.
In another embodiment, the processor is used to read the program instruction of the storage medium storage, and as sound It answers, executes following operation:
Obtain the multiple influence values exported after gas sensor preheating predetermined period;
Determine the difference degree between acquired each influence value;
If identified difference degree meets scheduled threshold value update condition, by being averaged for acquired each influence value Value is updated to the threshold value of the gas sensor;
It obtains the gas and turns influence value after sensor, and compare the influence value of acquisition and updated threshold value, obtain Gas detection result.
In other embodiments, the operation performed by processor can refer to sensor calibration method described above and/or Relevant description in the embodiment of gas detection method, it will not be described here.
In addition, the embodiment of the present invention also provides a kind of machine readable storage medium (or memory for terminal device), Have program stored therein instruction in the readable storage medium storing program for executing, and described program instruction includes above institute's sensor calibration method and/or gas The corresponding instruction of each step of body detecting method.When executed by one or more processors so that more than terminal device executes The operation of the sensor calibration method and/or gas detection method.
The embodiment of the present invention can be used one or more wherein include program code readable storage medium storing program for executing (including but Be not limited to magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.Computer is available Readable storage medium storing program for executing includes permanent and non-permanent, removable and non-removable media, can by any method or technique Lai Realize information storage.Information can be computer-readable instruction, data structure, the module of program or other data.It is machine readable The example of storage medium includes but not limited to:Phase transition internal memory (PRAM), static RAM (SRAM), dynamic random are deposited Access to memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable are only Read memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), the more work(of number Can CD (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus or it is any its His non-transmission medium, can be used for storing and can be accessed by a computing device information.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of protection of the invention god.

Claims (12)

1. a kind of sensor calibration method, which is characterized in that including step:
Obtain the multiple influence values exported after gas sensor preheating predetermined period;
Determine the difference degree between acquired each influence value;
If identified difference degree meets scheduled threshold value update condition, more by the average value of acquired each influence value It is newly the threshold value of the gas sensor.
2. according to the method described in claim 1, it is characterized in that, the difference degree includes at least one of following:
Difference, the absolute value of difference, variance yields, mean square deviation.
3. according to the method described in claim 1, it is characterized in that, the influence value is voltage value or current value.
4. according to the method described in claim 1, it is characterized in that, the method is further comprising the steps of:
After the threshold value for updating the gas sensor, in the gas sensor in running order period, every it is scheduled more The new period executes primary following first iterative operation:
Multiple influence values of the gas sensor output are obtained in real time;
Determine the difference degree between each influence value obtained in real time;
If identified difference degree meets the threshold value update condition, by the average value of each influence value obtained in real time, It is updated to the threshold value of the gas sensor.
5. method according to claim 1 to 4, which is characterized in that if identified difference degree is discontented The foot threshold value update condition, the method are further comprising the steps of;
The influence value of the predetermined number of the gas sensor output is obtained in real time, and executes following secondary iteration operation:
By vertical output sequence, sequentially with the instead preceding influence value obtained of the influence value obtained in real time;
Obtain the average value of the influence value after the influence value not substituted and replacement;
Redefine the difference degree between each influence value in the influence value after the influence value not substituted and replacement;
If the difference degree redefined meets the threshold value update condition, acquired average value is updated to the gas The threshold value of body sensor, and terminate the secondary iteration operation;
If the difference degree redefined meets the threshold value update condition, the gas sensor output is obtained in real time The influence value of predetermined number, and execute the secondary iteration operation.
6. a kind of gas detection method, which is characterized in that including step:
Obtain the multiple influence values exported after gas sensor preheating predetermined period;
Determine the difference degree between acquired each influence value;
If identified difference degree meets scheduled threshold value update condition, more by the average value of acquired each influence value It is newly the threshold value of the gas sensor;
It obtains the gas and turns influence value after sensor, and compare the influence value of acquisition and updated threshold value, obtain gas Testing result.
7. a kind of sensor calibration device, which is characterized in that including:
Influence value acquisition module, for obtaining the multiple influence values exported after gas sensor preheating predetermined period;
Difference determining module, for determining the difference degree between acquired each influence value;
Threshold value update module will be acquired each for when identified difference degree meets scheduled threshold value update condition The average value of influence value is updated to the threshold value of the gas sensor.
8. a kind of gas-detecting device, which is characterized in that including:
Influence value acquisition module, for obtaining the multiple influence values exported after gas sensor preheating predetermined period;
Difference determining module, for determining the difference degree between acquired each influence value;
Threshold value update module will be acquired each for when identified difference degree meets scheduled threshold value update condition The average value of influence value is updated to the threshold value of the gas sensor;
Gas detection module for obtaining the influence value after the gas turns sensor, and compares influence value and the update of acquisition Threshold value afterwards obtains gas detection result.
9. a kind of terminal device, which is characterized in that including:
Processor;
Store the memory of processor-executable instruction;
Wherein, the processor is coupled in the memory, the program instruction for reading the memory storage, and as sound It answers, executes such as the operation in any one of claim 1-5 the method.
10. a kind of terminal device, which is characterized in that including:
Processor;
Store the memory of processor-executable instruction;
Wherein, the processor is coupled in the memory, the program instruction for reading the memory storage, and as sound It answers, executes the operation in method as claimed in claim 6.
11. one or more machine readable storage mediums, which is characterized in that instruction is stored thereon with, when by one or more When managing device execution so that terminal device is executed such as the operation in any one of claim 1-5 the method.
12. one or more machine readable storage mediums, which is characterized in that instruction is stored thereon with, when by one or more When managing device execution so that terminal device executes the operation in method as claimed in claim 6.
CN201810155561.7A 2018-02-23 2018-02-23 Sensor correction and gas detection method, device and equipment and readable storage medium Active CN108387688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810155561.7A CN108387688B (en) 2018-02-23 2018-02-23 Sensor correction and gas detection method, device and equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810155561.7A CN108387688B (en) 2018-02-23 2018-02-23 Sensor correction and gas detection method, device and equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN108387688A true CN108387688A (en) 2018-08-10
CN108387688B CN108387688B (en) 2021-02-09

Family

ID=63069134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810155561.7A Active CN108387688B (en) 2018-02-23 2018-02-23 Sensor correction and gas detection method, device and equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN108387688B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109285313A (en) * 2018-08-27 2019-01-29 广东九联科技股份有限公司 A kind of the sensor auto-correction method and system of smoke alarm
CN113252096A (en) * 2021-04-30 2021-08-13 河南创仕航空科技有限公司 Sensor initial calibration method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5347474A (en) * 1991-09-19 1994-09-13 Gaztech Corporation Self-calibration of an NDIR gas sensor
US6614230B2 (en) * 2000-02-24 2003-09-02 Robert Bosch Gmbh Method and device for evaluating an ion current sensor signal in an internal combustion engine
WO2008016394A2 (en) * 2006-07-28 2008-02-07 Lawrence Kates System and method for high-sensitivity sensor
CN104949705A (en) * 2015-06-18 2015-09-30 昂纳信息技术(深圳)有限公司 Method for dynamically adjusting threshold of optical fiber sensor
CN106933127A (en) * 2017-01-17 2017-07-07 杭州老板电器股份有限公司 A kind of control method of gas sensor
CN107290802A (en) * 2017-07-18 2017-10-24 广东欧珀移动通信有限公司 Proximity transducer calibration method, proximity transducer calibrating installation and intelligent terminal
CN107461787A (en) * 2017-09-30 2017-12-12 广东美的厨房电器制造有限公司 Cigarette stove linkage processing method, device, storage medium, cigarette machine and kitchen range
CN107463289A (en) * 2017-07-26 2017-12-12 广东欧珀移动通信有限公司 A kind of calibration method of touch-screen, device, storage medium and terminal
CN107490613A (en) * 2017-07-31 2017-12-19 广东美的制冷设备有限公司 Electrochemical gas sensor and its calibration method, air conditioner

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5347474A (en) * 1991-09-19 1994-09-13 Gaztech Corporation Self-calibration of an NDIR gas sensor
US6614230B2 (en) * 2000-02-24 2003-09-02 Robert Bosch Gmbh Method and device for evaluating an ion current sensor signal in an internal combustion engine
WO2008016394A2 (en) * 2006-07-28 2008-02-07 Lawrence Kates System and method for high-sensitivity sensor
CN104949705A (en) * 2015-06-18 2015-09-30 昂纳信息技术(深圳)有限公司 Method for dynamically adjusting threshold of optical fiber sensor
CN106933127A (en) * 2017-01-17 2017-07-07 杭州老板电器股份有限公司 A kind of control method of gas sensor
CN107290802A (en) * 2017-07-18 2017-10-24 广东欧珀移动通信有限公司 Proximity transducer calibration method, proximity transducer calibrating installation and intelligent terminal
CN107463289A (en) * 2017-07-26 2017-12-12 广东欧珀移动通信有限公司 A kind of calibration method of touch-screen, device, storage medium and terminal
CN107490613A (en) * 2017-07-31 2017-12-19 广东美的制冷设备有限公司 Electrochemical gas sensor and its calibration method, air conditioner
CN107461787A (en) * 2017-09-30 2017-12-12 广东美的厨房电器制造有限公司 Cigarette stove linkage processing method, device, storage medium, cigarette machine and kitchen range

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109285313A (en) * 2018-08-27 2019-01-29 广东九联科技股份有限公司 A kind of the sensor auto-correction method and system of smoke alarm
CN113252096A (en) * 2021-04-30 2021-08-13 河南创仕航空科技有限公司 Sensor initial calibration method

Also Published As

Publication number Publication date
CN108387688B (en) 2021-02-09

Similar Documents

Publication Publication Date Title
US20140050026A1 (en) Method of Executing Wear Leveling in a Flash Memory Device According to Ambient Temperature Information and Related Flash Memory Device
CN112534674A (en) Rule-based intelligent charging
JP6115219B2 (en) COMMUNICATION TERMINAL DEVICE, BATTERY REMAINING PRESENTATION METHOD, AND PROGRAM
CN108387688A (en) Sensor calibration and gas detection method, device and equipment, readable storage medium storing program for executing
CN107911741A (en) Free memory method for improving, smart television and computer-readable recording medium
KR20110062999A (en) Method and apparatus for providing a presumption consumption power information of content
CN109710286B (en) System upgrading method, device, equipment and storage medium
CN104536841B (en) A kind of android system Data subregions self-repair method and system
US7461294B2 (en) Information processing apparatus, software renewal method for the same, program carrier signal and storage media
CN106708616A (en) Process control method and process control device
CN104182337A (en) Power consumption testing method and device and mobile terminal
CN111740458B (en) Earphone box, charging detection method and device thereof, and storage medium
US10038984B1 (en) Wireless positioning method and wireless positioning device in indoor environment
CN103049374A (en) Automatic testing method and device
CN106028367A (en) Automatic testing method and system based on CMWrun testing platform
CN104184614B (en) A kind of configuration rollback method and device
US8010734B2 (en) Method and system for reading instructions from NAND flash memory and writing them into SRAM for execution by a processing device
CN104112056A (en) Method and system for detecting data processing faults
JP2007096986A (en) Radio communication terminal and its control method
CN103440178A (en) Method and mobile terminal for backing up operating parameters of application program
CN103716693B (en) A kind of setting method and smart television of MAC Address
CN109634782A (en) A kind of detection method of system robustness, device, storage medium and terminal
CN107729028A (en) The method and apparatus of application program launching based on Android system
CN113766554A (en) Method and device for acquiring WiFi calibration data and WiFi equipment calibration test system
CN113032232A (en) Related method for detecting performance of equipment, related device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200318

Address after: 510530 Guangdong city of Guangzhou province YUNPU Whampoa district four Road No. 6

Applicant after: GUANGZHOU SHIYUAN ELECTRONICS Co.,Ltd.

Address before: 510530 Guangdong city of Guangzhou province YUNPU Whampoa district four Road No. 6

Applicant before: GUANGZHOU SHIYUAN ELECTRONICS Co.,Ltd.

Applicant before: GUANGZHOU RUIXIN ELECTRONICS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant