CN112415141B - Compensation method and compensation device for formaldehyde measurement concentration display value - Google Patents

Compensation method and compensation device for formaldehyde measurement concentration display value Download PDF

Info

Publication number
CN112415141B
CN112415141B CN202011236556.2A CN202011236556A CN112415141B CN 112415141 B CN112415141 B CN 112415141B CN 202011236556 A CN202011236556 A CN 202011236556A CN 112415141 B CN112415141 B CN 112415141B
Authority
CN
China
Prior art keywords
formaldehyde
value
formaldehyde concentration
preset
concentration display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011236556.2A
Other languages
Chinese (zh)
Other versions
CN112415141A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011236556.2A priority Critical patent/CN112415141B/en
Publication of CN112415141A publication Critical patent/CN112415141A/en
Application granted granted Critical
Publication of CN112415141B publication Critical patent/CN112415141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/0009General constructional details of gas analysers, e.g. portable test equipment
    • G01N33/007Arrangements to check the analyser

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

The invention provides a compensation method and a compensation device for a formaldehyde measurement concentration display value, which are applied to formaldehyde measurement equipment adopting a formaldehyde sensor to detect the concentration of formaldehyde, and the method comprises the following steps: acquiring a formaldehyde concentration display value corresponding to a formaldehyde concentration signal sent by a formaldehyde sensor according to a preset time period; respectively calculating a first difference value between a first preset number of adjacent two formaldehyde concentration display values before the current moment; judging whether a second difference value between the first difference values is smaller than a preset difference value threshold value or not; and when a second difference value between the first difference values is smaller than a preset difference value threshold value, compensating the formaldehyde concentration display value at the current moment according to the first preset formaldehyde concentration compensation value. The formaldehyde concentration display value output by the formaldehyde sensor is compensated and then displayed, so that the response speed of the formaldehyde measurement concentration display value is improved, the display value is more quickly close to the actual concentration value, and the use experience of a user is improved.

Description

Compensation method and compensation device for formaldehyde measurement concentration display value
Technical Field
The invention relates to the technical field of environmental detection, in particular to a compensation method and a compensation device for a formaldehyde measured concentration display value.
Background
Formaldehyde is a common toxic and harmful gas, the harm to human bodies caused by excessive formaldehyde is great, the formaldehyde release is a slow process, the sustained influence on the health of the human bodies is caused, and more people want to accurately evaluate the indoor formaldehyde content in real time so as to take countermeasures in time.
Most of air purifiers on the market at present have the formaldehyde removal function, and have formaldehyde value display function. Most of the air purifiers with the function of displaying formaldehyde values adopt formaldehyde sensors to detect the concentration of environmental formaldehyde and convert the concentration into corresponding numerical information for displaying. However, for a common formaldehyde sensor, the response speed of the formaldehyde sensor for converting the environmental formaldehyde concentration into a numerical value is often not fast enough, for example, when the air purifier moves from a low-concentration formaldehyde environment to a high-concentration formaldehyde environment, the air purifier automatically enters a locked state, because the formaldehyde sensor detects that the current environmental formaldehyde concentration suddenly becomes high, the formaldehyde sensor considers that the current environmental alcohol concentration rises, and then automatically enters the locked state, at this time, the sensor only sends a fixed numerical value for display, until the environmental formaldehyde concentration is kept stable for a period of time, the sensor releases the locked state, and actively raises a corresponding numerical value for display at intervals, until the raised numerical value reaches the current actual formaldehyde concentration numerical value, and continues to send a normal numerical value. This causes the formaldehyde concentration value displayed by the air purifier in real time to still have a larger difference compared with the professional formaldehyde detector. In addition, when the air purifier moves from a high-concentration formaldehyde environment to a low-concentration formaldehyde environment, the reading value of the sensor is easy to stay unchanged when the reading value of the sensor is reduced below a certain value. Therefore, how to improve the real-time performance of the formaldehyde display value of the air purifier using the formaldehyde sensor is very important for improving the user experience of the air purifier.
Disclosure of Invention
In view of this, embodiments of the present invention provide a compensation method and a compensation apparatus for a formaldehyde measurement concentration display value, so as to overcome the problems that, in the prior art, when a formaldehyde measurement device that uses a formaldehyde sensor to measure formaldehyde encounters a sudden change in the environmental formaldehyde concentration, the response speed of a formaldehyde display value is slow, and it is difficult to accurately reflect a true formaldehyde concentration value in real time.
According to a first aspect, an embodiment of the present invention provides a compensation method for a formaldehyde measurement concentration display value, applied to a formaldehyde measurement device that uses a formaldehyde sensor to detect formaldehyde concentration, the method including:
acquiring a formaldehyde concentration display value corresponding to a formaldehyde concentration signal sent by a formaldehyde sensor according to a preset time period;
respectively calculating a first difference value between a first preset number of adjacent two formaldehyde concentration display values before the current moment;
judging whether a second difference value between the first difference values is smaller than a preset difference value threshold value or not;
and when a second difference value between the first difference values is smaller than a preset difference value threshold value, compensating the formaldehyde concentration display value at the current moment according to the first preset formaldehyde concentration compensation value.
Optionally, before the respectively calculating a first difference between two adjacent formaldehyde concentration display values of a first preset number before the current time, the method further includes:
Judging whether the formaldehyde concentration display value at the current moment is greater than a first preset formaldehyde concentration display value or not;
when the formaldehyde concentration display value at the current moment is not greater than a first preset formaldehyde concentration display value, timing is started;
and when the timing reaches a first preset time length, compensating the formaldehyde concentration display value at the current moment according to a second preset formaldehyde concentration compensation value according to the change condition of the formaldehyde concentration display value in the first preset time length.
Optionally, when the timing reaches a first preset time length, compensating the formaldehyde concentration display value at the current moment according to a change condition of the formaldehyde concentration display value in the first preset time length and a second preset formaldehyde concentration compensation value, including:
judging whether the formaldehyde concentration display value changes within the first preset time length;
when the formaldehyde concentration display value changes within the first preset time, judging whether the formaldehyde concentration display value is not greater than the first preset formaldehyde concentration display value within the first preset time;
when the formaldehyde concentration display values are not greater than the first preset formaldehyde concentration display value within the first preset time, judging whether the formaldehyde concentration display values of a second preset number before the current time within the first preset time are the same;
And when the formaldehyde concentration display values of a second preset number before the current time within the first preset time length are the same, compensating the formaldehyde concentration display value at the current time according to a second preset formaldehyde concentration compensation value.
Optionally, the method further comprises:
and when the formaldehyde concentration display values of a second preset number are different before the current time within the first preset time, restarting timing, and returning to the step of judging whether the formaldehyde concentration display values within the first preset time are changed.
Optionally, the method further comprises: and when the formaldehyde concentration display value is larger than the first preset formaldehyde concentration display value in the first preset time, clearing and timing, and returning to the step of judging whether the formaldehyde concentration display value at the current moment is larger than the first preset formaldehyde concentration display value.
Optionally, the method further comprises:
judging whether the formaldehyde concentration display value compensated according to the second preset formaldehyde concentration compensation value at the current moment is less than 0;
and when the formaldehyde concentration display value compensated according to the second preset formaldehyde concentration compensation value at the current moment is less than 0, updating the formaldehyde concentration display value at the current moment to be 0.
Optionally, the method further comprises: and when the formaldehyde concentration display value at the current moment is greater than a first preset formaldehyde concentration display value, executing the step of respectively calculating first difference values between two adjacent formaldehyde concentration display values of a first preset number before the current moment.
According to a second aspect, an embodiment of the present invention provides a compensation apparatus for a formaldehyde measurement concentration display value, applied to a formaldehyde measurement device that uses a formaldehyde sensor to detect formaldehyde concentration, the apparatus including:
the acquisition module is used for acquiring a formaldehyde concentration display value corresponding to a formaldehyde concentration signal sent by the formaldehyde sensor according to a preset time period;
the calculation module is used for respectively calculating a first difference value between a first preset number of adjacent two formaldehyde concentration display values before the current moment;
the judging module is used for judging whether a second difference value between the first difference values is smaller than a preset difference value threshold value or not;
and the compensation module is used for compensating the formaldehyde concentration display value at the current moment according to the first preset formaldehyde concentration compensation value when the second difference value between the first difference values is smaller than the preset difference threshold value.
According to a third aspect, an embodiment of the present invention provides a formaldehyde measuring apparatus, including: formaldehyde sensor, main control unit and display module, wherein, the formaldehyde sensor is used for detecting formaldehyde concentration signal and will formaldehyde concentration signal send to the main control unit, the main control unit is right formaldehyde concentration signal sends to after handling to the display module shows, the main control unit includes:
A memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, and the processor performing the method of the first aspect, or any one of the optional embodiments of the first aspect, by executing the computer instructions.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the method of the first aspect, or any one of the optional implementation manners of the first aspect.
The technical scheme of the invention has the following advantages:
the embodiment of the invention provides a compensation method and a compensation device for a formaldehyde measurement concentration display value, which are applied to formaldehyde measurement equipment adopting a formaldehyde sensor to detect the concentration of formaldehyde, and the method specifically comprises the following steps: acquiring a formaldehyde concentration display value corresponding to a formaldehyde concentration signal sent by a formaldehyde sensor according to a preset time period; respectively calculating a first difference value between a first preset number of adjacent two formaldehyde concentration display values before the current moment; judging whether a second difference value between the first difference values is smaller than a preset difference value threshold value or not; and when a second difference value between the first difference values is smaller than a preset difference value threshold value, compensating the formaldehyde concentration display value at the current moment according to the first preset formaldehyde concentration compensation value. Therefore, whether a certain number of formaldehyde concentration display values are in an equal difference increasing trend or not is compared in real time, and then the formaldehyde concentration mutation of the environment of the formaldehyde measuring equipment or the formaldehyde concentration display values are transferred to a high-concentration environment from a low-concentration environment is determined, so that the formaldehyde sensor enters a locked state, the formaldehyde concentration display values output by the formaldehyde sensor are compensated and then displayed, the response speed of the formaldehyde measurement concentration display values is increased, the display values are enabled to be close to actual concentration values more quickly, and the use experience of users is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a method for compensating a measured formaldehyde concentration indicator according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an exemplary operation process of a compensation method for a measured formaldehyde concentration display according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a compensation apparatus for a measured formaldehyde concentration display according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a formaldehyde measuring apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a main control unit according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical features mentioned in the different embodiments of the invention described below can be combined with each other as long as they do not conflict with each other.
Formaldehyde is a common toxic and harmful gas, the harm to human bodies caused by excessive formaldehyde is great, the formaldehyde release is a slow process, the sustained influence on the health of the human bodies is caused, and more people want to accurately evaluate the indoor formaldehyde content in real time so as to take countermeasures in time.
Most of air purifiers on the market at present have the formaldehyde removal function, and have formaldehyde value display function. Most of the air purifiers with the function of displaying formaldehyde values adopt formaldehyde sensors to detect the concentration of environmental formaldehyde and convert the concentration into corresponding numerical information for displaying. However, for a common formaldehyde sensor, the response speed of the formaldehyde sensor for converting the environmental formaldehyde concentration into a numerical value is often not fast enough, for example, when the air purifier moves from a low-concentration formaldehyde environment to a high-concentration formaldehyde environment, the air purifier automatically enters a locked state, because the formaldehyde sensor detects that the current environmental formaldehyde concentration suddenly becomes high, the formaldehyde sensor considers that the current environmental alcohol concentration rises, and then automatically enters the locked state, at this time, the sensor only sends a fixed numerical value for display, until the environmental formaldehyde concentration is kept stable for a period of time, the sensor releases the locked state, and actively raises a corresponding numerical value for display at intervals, until the raised numerical value reaches the current actual formaldehyde concentration numerical value, and continues to send a normal numerical value. This causes the formaldehyde concentration value displayed by the air purifier in real time to still have a larger difference compared with the professional formaldehyde detector. In addition, when the air purifier moves from a high-concentration formaldehyde environment to a low-concentration formaldehyde environment, the reading value of the sensor is easy to stay unchanged when the reading value of the sensor is reduced below a certain value. Therefore, how to improve the real-time performance of the formaldehyde display value of the air purifier using the formaldehyde sensor is very important for improving the user experience of the air purifier.
Based on the above problems, an embodiment of the present invention provides a compensation method for a formaldehyde measurement concentration display value, which is applied to a formaldehyde measurement device that uses a formaldehyde sensor to detect formaldehyde concentration, as shown in fig. 1, and the compensation method for the formaldehyde measurement concentration display value mainly includes the following steps:
step S101: and acquiring a formaldehyde concentration display value corresponding to a formaldehyde concentration signal sent by the formaldehyde sensor according to a preset time period. Specifically, the formaldehyde sensor is used for detecting the formaldehyde concentration in the environment and generating a corresponding formaldehyde concentration signal, generally the formaldehyde concentration signal is a voltage signal, the voltage signal and the formaldehyde concentration signal are converted into a formaldehyde concentration value through a conversion relation, the formaldehyde concentration value can be a ppm concentration value, namely a mass concentration value, and a formaldehyde concentration display value generally finally displayed on the formaldehyde measuring equipment is milligram/cubic meter, namely mg/m3Then the ppm concentration is converted into the corresponding mg/m3Thus obtaining the formaldehyde concentration display value. It should be noted that the ppm concentration is converted to the corresponding mg/m3For the conventional concentration conversion relationship in the prior art, no further description is provided herein.
Step S102: and respectively calculating a first difference value between a first preset number of adjacent formaldehyde concentration display values before the current moment. Specifically, the first preset number may be set and adjusted according to the signal acquisition frequency of the formaldehyde sensor and the requirement of the actual compensation precision, for example, the first preset number is set to 3 or 5, and the invention is not limited thereto.
Step S103: and judging whether a second difference value between the first difference values is smaller than a preset difference value threshold value. Specifically, the preset difference threshold may be set and adjusted according to the sensitivity of the formaldehyde sensor and the actual need, for example, may be 0.01mg/m3And if the formaldehyde concentration display values corresponding to the formaldehyde concentration signals sent in the continuous time periods form an equal difference increasing number sequence, the formaldehyde detection equipment is indicated to have a low formaldehyde concentration environment to move to a high formaldehyde concentration environment or the formaldehyde detection equipment is just started, so that the formaldehyde sensor enters a locking state. So that the change value of the first difference value between two formaldehyde concentration display values through two adjacent preset time periods (I.e., the second difference) is less than the preset difference threshold value described above, to determine whether the formaldehyde sensor is in a locked state.
Step S104: and when a second difference value between the first difference values is smaller than a preset difference value threshold value, compensating the formaldehyde concentration display value at the current moment according to the first preset formaldehyde concentration compensation value. Specifically, if the difference between two consecutive formaldehyde concentration display values of a first preset number is substantially the same, it is indicated that the formaldehyde sensor enters the locked state, and the response speed of the corresponding formaldehyde concentration display value is slower than the real formaldehyde concentration detection value, so that the final display value is ensured to be closer to the real formaldehyde concentration measurement value by compensating the formaldehyde concentration display value at the current moment and then displaying the compensated formaldehyde concentration display value, in practical application, the first preset formaldehyde concentration compensation value may be set and adjusted according to the performance of the formaldehyde sensor, that is, the difference between the formaldehyde concentration signals sent after the formaldehyde sensor enters the locked state, and by combining the specific display requirements of the formaldehyde measurement device, for example: referring to the mass concentration value, i.e., the ppm concentration, the embodiment of the present invention is described by taking the first preset formaldehyde concentration compensation value as 0.03ppm as an example, i.e., each time 0.03ppm is added to the formaldehyde concentration display value at the current time, and the added formaldehyde concentration display value is converted into mg/m 3The numerical value in units is displayed. Of course, in practical application, the formaldehyde concentration display value at the current moment can be uniformly converted into mg/m3Is a unit value, and then a first preset formaldehyde concentration compensation value of 0.03ppm is correspondingly converted into mg/m3Is the value in units, the final display value is the sum of the two values. The invention is not limited thereto.
Specifically, in an embodiment, when the second difference between the first differences is not less than the preset difference threshold, the formaldehyde concentration display value at the current time is not compensated, and the formaldehyde concentration display value is directly displayed.
Specifically, in an embodiment, before the step S102, the method further includes the following steps:
step S105: and judging whether the formaldehyde concentration display value at the current moment is greater than a first preset formaldehyde concentration display value or not. Specifically, the formaldehyde concentration sensor can enter a locking state only when the formaldehyde concentration is suddenly increased, namely, the formaldehyde concentration sensor moves from a low-formaldehyde concentration environment to a high-formaldehyde concentration environment, therefore, whether the formaldehyde concentration sudden change possibly occurs in the environment where the formaldehyde concentration sensor is located can be judged by judging whether the formaldehyde concentration display value at the current moment is larger than the first preset formaldehyde concentration display value or not, the first preset formaldehyde concentration display value is usually set to be relatively small, and can be specifically set according to the sensitivity of the formaldehyde sensor, for example, the sensitivity of the formaldehyde sensor is set, the specific value is the minimum concentration value which can be accurately sensed by the formaldehyde concentration sensor, in the embodiment of the present invention, the first predetermined formaldehyde concentration value is taken as an example of a mass concentration value of 0.1ppm, but the present invention is not limited thereto. Only when the formaldehyde concentration display value is larger than the first preset formaldehyde concentration display value, the formaldehyde sensor may enter a locked state, and if the formaldehyde concentration display value is smaller than the first preset formaldehyde concentration display value, the display value may not change for a long time, so that the real measurement value cannot be reflected in real time, and then the operation goes to step S106. If the formaldehyde concentration display value at the current moment is greater than the first preset formaldehyde concentration display value, the above step S102 is executed.
Step S106: and when the formaldehyde concentration display value at the current moment is not greater than the first preset formaldehyde concentration display value, starting timing.
Step S107: and when the timing reaches a first preset time length, compensating the formaldehyde concentration display value at the current moment according to a second preset formaldehyde concentration compensation value according to the change condition of the formaldehyde concentration display value in the first preset time length. Specifically, the first preset time period may be flexibly set according to the actual compensation requirement of the formaldehyde measuring device and the signal acquisition frequency of the formaldehyde sensor, and in the embodiment of the present invention, the first preset time period is 5 minutes for example, which is not limited to the above.
Specifically, in an embodiment, the step S107 specifically includes the following steps:
step S201: and judging whether the formaldehyde concentration display value changes within a first preset time. Specifically, if the formaldehyde concentration display value is not changed at all within the first preset time, it indicates that the formaldehyde concentration display value corresponding to the current time is the real measured value of the environment, and indicates that the formaldehyde measurement device has been in a stable state, and the formaldehyde concentration display value is directly displayed without being processed. Otherwise, step S202 is executed.
Step S202: when the formaldehyde concentration display value changes within the first preset time, judging whether the formaldehyde concentration display value is not greater than the first preset formaldehyde concentration display value within the first preset time. Specifically, if the formaldehyde concentration display value is greater than the first preset formaldehyde concentration display value within the first preset time period, it is determined that the formaldehyde concentration signal sent by the formaldehyde sensor and corresponding to the formaldehyde concentration display value greater than the first preset formaldehyde concentration display value is an actual detection signal, the formaldehyde concentration signal can be directly displayed according to the formaldehyde concentration display value, and the formaldehyde concentration display value is cleared and timed, and the step S105 is returned.
Step S203: and when the formaldehyde concentration display values are not greater than the first preset formaldehyde concentration display value within the first preset time, judging whether the formaldehyde concentration display values of a second preset number before the current time within the first preset time are the same. Specifically, the second preset number may be set and adjusted according to the acquisition frequency of the formaldehyde sensor and the display precision requirement of the formaldehyde measuring device, in the embodiment of the present invention, the second preset number is 3 as an example for description, and the present invention is not limited thereto. If within a first preset time period, for example, within 5min, a formaldehyde sensor feeds back a formaldehyde concentration signal of 10 times in total, and 10 formaldehyde concentration display values obtained according to feedback of the formaldehyde sensor are not greater than the first preset formaldehyde concentration display value, it is indicated that the formaldehyde sensor enters a low formaldehyde concentration environment from a high formaldehyde concentration environment, the formaldehyde concentration of the low formaldehyde concentration environment is very small, the formaldehyde concentration display value fed back is easy to stay unchanged according to the sensitivity characteristic of the formaldehyde sensor, but the actual formaldehyde concentration display value is smaller than the formaldehyde concentration display value. Therefore, in order to avoid the situation that the formaldehyde concentration display value is not changed, the embodiment of the invention judges whether the last 3 times of formaldehyde concentration display values fed back by the formaldehyde sensor before the current time are the same in 10 formaldehyde concentration display values within 5min, if so, the situation that the formaldehyde concentration display values are not changed is shown, so that the step S204 is executed, otherwise, the formaldehyde concentration display values are directly displayed, then the timing is restarted, and the step S201 is returned.
Step S204: and when the formaldehyde concentration display values of a second preset number before the current time within the first preset time length are the same, compensating the formaldehyde concentration display value at the current time according to a second preset formaldehyde concentration compensation value. Specifically, the formaldehyde concentration display value at the current moment is compensated and then displayed to ensure that the final display value is closer to the real formaldehyde concentration measurement value, and in practical application, the second preset formaldehyde concentration compensation value can be set and adjusted according to the sensitivity performance of the formaldehyde sensor and by combining with the specific display requirement of the formaldehyde measurement device, for example: the embodiment of the present invention is explained by taking the second preset formaldehyde concentration compensation value as 0.02ppm by referring to the mass concentration value, i.e., the ppm concentration, that is, each time the formaldehyde concentration is reduced by 0.02ppm based on the formaldehyde concentration display value at the current time, and the reduced formaldehyde concentration display value is converted into mg/m3The numerical value in units is displayed. Of course, in practical application, the formaldehyde concentration display value at the current moment can be uniformly converted into mg/m3Is a unit value, and then a first preset formaldehyde concentration compensation value of 0.02ppm is correspondingly converted into mg/m 3The numerical value is the unit, and the difference between the numerical values is finally displayed. The invention is not limited thereto.
In practical applications, after the compensation display of the formaldehyde concentration display value at the current time is performed in step S204, the timer is restarted, and the process returns to step S201.
Specifically, in an embodiment, after the step S107, the method further includes the following steps:
step S108: and judging whether the formaldehyde concentration display value compensated according to the second preset formaldehyde concentration compensation value at the current moment is less than 0.
Step S109: and when the formaldehyde concentration display value compensated according to the second preset formaldehyde concentration compensation value at the current moment is less than 0, updating the formaldehyde concentration display value at the current moment to be 0.
Specifically, since the minimum detection value of the environmental formaldehyde concentration is 0, when the formaldehyde concentration display value is compensated, it needs to be judged in advance whether the compensated formaldehyde concentration display value is smaller than 0, and if the compensated formaldehyde concentration display value is smaller than 0, it indicates that the true measurement range of the formaldehyde concentration value is exceeded, the formaldehyde concentration display value is directly updated to 0 for displaying, so as to avoid the occurrence of negative numbers which do not conform to the actual situation.
By executing the steps, the compensation method for the formaldehyde measurement concentration display value provided by the embodiment of the invention determines that the formaldehyde sensor enters a locked state due to sudden change of the environmental formaldehyde concentration of the formaldehyde measurement device or the formaldehyde sensor is transferred from a low-concentration environment to a high-concentration environment by comparing whether a certain number of formaldehyde concentration display values before the current moment are in a trend of equal difference increasing in real time, and improves the response speed of the formaldehyde measurement concentration display value by compensating and displaying the formaldehyde concentration display value output by the formaldehyde sensor, so that the display value is more quickly close to the actual concentration value, and the use experience of a user is improved. And the condition that the reading value of the formaldehyde sensor is stay unchanged for a long time when the environmental formaldehyde concentration of the detection equipment is reduced from high to below a certain value is avoided, and the response speed of the display value is further improved, so that the display value is more quickly close to the actual concentration value.
The compensation method for the measured formaldehyde concentration display value provided by the embodiment of the invention will be described in detail with reference to specific application examples.
The application example is applied to the formaldehyde measuring device shown in fig. 4, and the formaldehyde measuring device is introduced by taking an air purifier device as an example, the specific working process is shown in fig. 2, firstly, the air purifier device is powered on and started to work normally, the formaldehyde sensor 1 normally identifies the current environmental formaldehyde concentration, the formaldehyde concentration data is transmitted to the main control unit 2 through a communication mode such as a serial port and the like, the main control unit 2 receives the data, processes and analyzes the data, and starts to record, when the formaldehyde concentration is detected to be increased suddenly, the formaldehyde sensor 1 enters a locking state, the output value is unchanged for a period of time, after the concentration is detected to be stable, the locking state is released, the data is transmitted according to an increasing arithmetic progression, when the main control unit 2 of the purifier detects that the value transmitted by the formaldehyde sensor 1 is continuously n times, for example, n is 3, and when an arithmetic progression and an incremental progression are formed, the current formaldehyde concentration can be judged to suddenly increase and enter a locking release state, at the moment, automatic compensation processing is started, namely, the formaldehyde value which is actually read at present is lifted by 0.03ppm for processing, and the processed data is sent to the display module 3 for displaying. When the data of the formaldehyde sensor 1 are identified to be not in an arithmetic progression. The difference between the numerical value and the actual concentration value can be judged to be not large, the raising processing is stopped, and the numerical value is sent to the display module 3 to be displayed according to the actual numerical value. Through the treatment, the displayed formaldehyde value can be faster in response speed, so that the defect that the formaldehyde display value is slowly updated in the early stage when the purifier is started in the initial stage or from a low-concentration formaldehyde environment to a high-concentration formaldehyde environment is solved.
In the formaldehyde environment concentration reduction stage, for example: when the purifier is moved from a high formaldehyde concentration environment to a low formaldehyde concentration environment, in order to prevent the display numerical value from being sluggish, the main control unit 2 performs the following processing on the formaldehyde display value:
when the calculated mass concentration value ppm (hereinafter referred to as numerical value) is greater than 0.10, the corresponding mg/m is actually calculated according to the numerical value3The numerical value is sent to the display module 3 for display.
And when the numerical value is less than or equal to 0.10, sending the actual numerical value to the display module 3 for displaying, and starting to time for 5 minutes.
If the change occurs within 5 minutes and the value is greater than 0.10, the actual value is displayed and the 5 minute timer is cleared.
If the value changes within 5 minutes and is less than or equal to 0.10, the actual change value is sent to the display module 3 for displaying, and the timing is not cleared.
When the 5-minute counting is finished, the data of 3 times of detection before the 5-minute counting is finished are compared, if the data of 3 times are equal, the value displayed after the 5-minute counting is equal to the value of-0.02 ppm (the minimum value is 0) of the data of the 3 times, and the 5-minute counting period is restarted. If the data of 3 times are not equal, the data are directly sent to the display module 3 according to actual numerical values for displaying, and then the 5-minute timing is restarted.
As can be seen from the specific application examples, the compensation method for the formaldehyde measured concentration display value provided by the embodiment of the invention can automatically compensate and display the formaldehyde value according to the read value of the formaldehyde sensor without adding any data processing, can obtain the formaldehyde concentration display value close to the real formaldehyde concentration value without setting multiple sensors for multiple detections, and enhances the user experience.
The embodiment of the invention also provides a compensation device for the display value of the measured concentration of formaldehyde, which is applied to formaldehyde measuring equipment adopting a formaldehyde sensor to detect the concentration of formaldehyde, and as shown in figure 3, the compensation device for the display value of the measured concentration of formaldehyde comprises:
the obtaining module 101 is configured to obtain a formaldehyde concentration display value corresponding to a formaldehyde concentration signal sent by the formaldehyde sensor according to a preset time period. For details, refer to the related description of step S101 in the above method embodiment, and no further description is provided here.
The calculating module 102 is configured to calculate first differences between two adjacent formaldehyde concentration display values of a first preset number before the current time, respectively. For details, refer to the related description of step S102 in the above method embodiment, and no further description is provided here.
The determining module 103 is configured to determine whether a second difference between the first differences is smaller than a preset difference threshold. For details, refer to the related description of step S103 in the above method embodiment, and no further description is provided here.
And the compensation module 104 is configured to compensate the formaldehyde concentration display value at the current moment according to the first preset formaldehyde concentration compensation value when a second difference between the first differences is smaller than a preset difference threshold. For details, refer to the related description of step S104 in the above method embodiment, and no further description is provided here.
The compensation device for the formaldehyde measured concentration display value provided by the embodiment of the invention is used for executing the compensation method for the formaldehyde measured concentration display value provided by the embodiment, the implementation mode and the principle are the same, and the detailed content refers to the relevant description of the method embodiment and is not repeated.
Through the cooperative cooperation of the above components, the compensation device for the formaldehyde measurement concentration display value provided by the embodiment of the invention determines that the formaldehyde concentration of the formaldehyde measurement equipment environment suddenly changes or is transferred from a low-concentration environment to a high-concentration environment by comparing whether a certain number of formaldehyde concentration display values before the current moment are in an equal difference increasing trend or not in real time, so that the formaldehyde sensor enters a locked state, and the formaldehyde concentration display value output by the formaldehyde sensor is compensated and displayed, so that the response speed of the formaldehyde measurement concentration display value is improved, the display value is more quickly close to the actual concentration value, and the use experience of a user is further improved. And the condition that the reading value of the formaldehyde sensor is stay unchanged for a long time when the environmental formaldehyde concentration of the detection equipment is reduced from high to below a certain value is avoided, and the response speed of the display value is further improved, so that the display value is more quickly close to the actual concentration value.
Fig. 4 shows a formaldehyde measuring apparatus according to an embodiment of the present invention, and as shown in fig. 4, the formaldehyde measuring apparatus includes: formaldehyde sensor 1, main control unit 2 and display module 3, wherein, formaldehyde sensor 1 is used for detecting formaldehyde concentration signal and sends formaldehyde concentration signal to main control unit 2, and main control unit 2 handles back formaldehyde concentration signal and sends to display module 3 and show, as shown in fig. 5, foretell main control unit 2 includes: the method comprises the following steps: a processor 901 and a memory 902, wherein the processor 901 and the memory 902 may be connected by a bus or other means, and fig. 5 illustrates an example of a connection by a bus.
Processor 901 may be a Central Processing Unit (CPU). The Processor 901 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 902, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the methods in the above-described method embodiments. The processor 901 executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory 902, that is, implements the methods in the above-described method embodiments.
The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 901, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 902 may optionally include memory located remotely from the processor 901, which may be connected to the processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902, which when executed by the processor 901 performs the methods in the above-described method embodiments.
The specific details of the formaldehyde measuring device can be understood by referring to the corresponding related descriptions and effects in the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, and the implemented program can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A compensation method for a formaldehyde measurement concentration display value is applied to formaldehyde measurement equipment which adopts a formaldehyde sensor to detect the concentration of formaldehyde, and is characterized by comprising the following steps:
acquiring a formaldehyde concentration display value corresponding to a formaldehyde concentration signal sent by a formaldehyde sensor according to a preset time period;
respectively calculating a first difference value between a first preset number of adjacent two formaldehyde concentration display values before the current moment;
judging whether a second difference value between the first difference values is smaller than a preset difference value threshold value or not, and whether the formaldehyde concentration display values of the first preset number form an increasing array or not;
and when a second difference value between the first difference values is smaller than a preset difference value threshold value and the formaldehyde concentration display values of the first preset number form an increasing array, compensating the formaldehyde concentration display value at the current moment according to a first preset formaldehyde concentration compensation value.
2. The method of claim 1, wherein prior to said separately calculating a first difference between a first preset number of two adjacent formaldehyde concentration display values prior to a current time, the method further comprises:
Judging whether the formaldehyde concentration display value at the current moment is greater than a first preset formaldehyde concentration display value, wherein the first preset formaldehyde concentration display value is the minimum concentration value which can be accurately sensed by a formaldehyde concentration sensor;
when the formaldehyde concentration display value at the current moment is not greater than a first preset formaldehyde concentration display value, timing is started;
and when the timing reaches a first preset time length, compensating the formaldehyde concentration display value at the current moment according to a second preset formaldehyde concentration compensation value according to the change condition of the formaldehyde concentration display value in the first preset time length.
3. The method according to claim 2, wherein the compensating the formaldehyde concentration display value at the current time according to the change of the formaldehyde concentration display value within the first preset time period when the timing reaches the first preset time period comprises:
judging whether the formaldehyde concentration display value changes within the first preset time length;
when the formaldehyde concentration display value changes within the first preset time, judging whether the formaldehyde concentration display value is not greater than the first preset formaldehyde concentration display value within the first preset time;
When the formaldehyde concentration display values are not greater than the first preset formaldehyde concentration display value within the first preset time, judging whether the formaldehyde concentration display values of a second preset number before the current time within the first preset time are the same;
and when the formaldehyde concentration display values of a second preset number before the current time within the first preset time length are the same, compensating the formaldehyde concentration display value at the current time according to a second preset formaldehyde concentration compensation value.
4. The method of claim 3, further comprising:
and when the formaldehyde concentration display values of a second preset number are different before the current time within the first preset time, restarting timing, and returning to the step of judging whether the formaldehyde concentration display values within the first preset time are changed.
5. The method of claim 3, further comprising: and when the formaldehyde concentration display value is larger than the first preset formaldehyde concentration display value in the first preset time, clearing and timing, and returning to the step of judging whether the formaldehyde concentration display value at the current moment is larger than the first preset formaldehyde concentration display value.
6. The method of claim 2, further comprising:
judging whether the formaldehyde concentration display value compensated according to the second preset formaldehyde concentration compensation value at the current moment is less than 0;
and when the formaldehyde concentration display value compensated according to the second preset formaldehyde concentration compensation value at the current moment is less than 0, updating the formaldehyde concentration display value at the current moment to be 0.
7. The method of claim 2, further comprising: and when the formaldehyde concentration display value at the current moment is greater than a first preset formaldehyde concentration display value, executing the step of respectively calculating first difference values between two adjacent formaldehyde concentration display values of a first preset number before the current moment.
8. The utility model provides a compensation arrangement of formaldehyde measured concentration display value, is applied to the formaldehyde measuring equipment who adopts formaldehyde sensor to detect formaldehyde concentration, its characterized in that, the device includes:
the acquisition module is used for acquiring a formaldehyde concentration display value corresponding to a formaldehyde concentration signal sent by the formaldehyde sensor according to a preset time period;
the calculation module is used for respectively calculating a first difference value between a first preset number of adjacent two formaldehyde concentration display values before the current moment;
The judging module is used for judging whether a second difference value between the first difference values is smaller than a preset difference value threshold value and whether the formaldehyde concentration display values of the first preset number form an increasing array;
and the compensation module is used for compensating the formaldehyde concentration display value at the current moment according to the first preset formaldehyde concentration compensation value when the second difference value between the first difference values is smaller than the preset difference threshold value and the first preset number of formaldehyde concentration display values form an increasing array.
9. A formaldehyde measuring apparatus, comprising: formaldehyde sensor, main control unit and display module, wherein, the formaldehyde sensor is used for detecting formaldehyde concentration signal and will formaldehyde concentration signal send to the main control unit, the main control unit is right formaldehyde concentration signal sends to after handling to the display module shows, the main control unit includes:
a memory and a processor communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of any of claims 1-7.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to thereby perform the method of any one of claims 1-7.
CN202011236556.2A 2020-11-06 2020-11-06 Compensation method and compensation device for formaldehyde measurement concentration display value Active CN112415141B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011236556.2A CN112415141B (en) 2020-11-06 2020-11-06 Compensation method and compensation device for formaldehyde measurement concentration display value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011236556.2A CN112415141B (en) 2020-11-06 2020-11-06 Compensation method and compensation device for formaldehyde measurement concentration display value

Publications (2)

Publication Number Publication Date
CN112415141A CN112415141A (en) 2021-02-26
CN112415141B true CN112415141B (en) 2022-02-08

Family

ID=74782145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011236556.2A Active CN112415141B (en) 2020-11-06 2020-11-06 Compensation method and compensation device for formaldehyde measurement concentration display value

Country Status (1)

Country Link
CN (1) CN112415141B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114674064B (en) * 2022-04-20 2023-07-14 珠海格力电器股份有限公司 Formaldehyde detection display method and device, air purifier and readable storage medium

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2165948B (en) * 1984-10-23 1988-12-07 Health Lab Service Board Formaldehyde monitor
JP3495935B2 (en) * 1999-01-11 2004-02-09 日本特殊陶業株式会社 Method of using gas concentration sensor and control device for gas concentration sensor
US7266459B2 (en) * 2000-05-31 2007-09-04 Ngk Spark Plug Co., Ltd. Gas detector and automobile ventilation system
JP3924225B2 (en) * 2002-09-12 2007-06-06 日本特殊陶業株式会社 Gas detector, vehicle auto ventilation system
WO2015065390A1 (en) * 2013-10-30 2015-05-07 Draeger Safety, Inc. Drive system for gas detection system
US9766220B2 (en) * 2016-02-08 2017-09-19 International Business Machines Corporation Leveraging air/water current variability for sensor network verification and source localization
EP3559560B1 (en) * 2016-12-23 2020-03-25 Koninklijke Philips N.V. A system and method for measuring a concentration of a pollutant within a gas
EP3203229B1 (en) * 2017-04-06 2020-03-18 Sensirion AG Calibrating a gas sensor
CN107990512B (en) * 2017-11-17 2021-03-19 艾欧史密斯(中国)热水器有限公司 Air conditioning equipment and formaldehyde detection method and device thereof
CN109231359B (en) * 2018-10-25 2020-12-22 珠海格力电器股份有限公司 Control method and device of water softener, water softening equipment and water using equipment
CN109406132B (en) * 2018-12-24 2020-08-25 广东美的制冷设备有限公司 Filter element service life monitoring method and device and air purification equipment
CN109632796B (en) * 2018-12-29 2023-06-16 佛山市云米电器科技有限公司 Harmful substance detection equipment with infrared temperature sensor and application thereof
CN109459540A (en) * 2019-01-03 2019-03-12 南京信息工程大学 A kind of air quality detector and air quality detecting device
CN109669008B (en) * 2019-01-04 2021-04-30 四方光电股份有限公司 Formaldehyde detection device and formaldehyde detection method
CN109655518A (en) * 2019-02-25 2019-04-19 珠海格力电器股份有限公司 A kind of formaldehyde electrochemical sensing detection device, calibration method and clarifier
CN110320328A (en) * 2019-06-21 2019-10-11 珠海格力电器股份有限公司 A kind of concentration of formaldehyde detection method, device and air purifier
CN110579570B (en) * 2019-09-27 2021-10-15 安徽江航爱唯科环境科技有限公司 Indoor formaldehyde pollution level dynamic monitoring method, device and system
CN110675006A (en) * 2019-11-07 2020-01-10 桂林理工大学 Indoor air quality real-time monitoring and formaldehyde attenuation prediction system
CN110988260A (en) * 2019-11-21 2020-04-10 四方光电股份有限公司 Gas concentration measuring device and method
CN111089941A (en) * 2019-12-05 2020-05-01 四方光电股份有限公司 Formaldehyde detection device and detection method thereof
CN111323539A (en) * 2020-03-12 2020-06-23 杭州老爸标准技术集团有限公司 Formaldehyde detection system with prediction function and method thereof
CN111624302B (en) * 2020-04-30 2023-07-28 汉威科技集团股份有限公司 Automatic calibration method, gas detection device, terminal and readable storage medium
CN111595382A (en) * 2020-06-01 2020-08-28 合肥学院 Indoor formaldehyde concentration distribution and monitoring system

Also Published As

Publication number Publication date
CN112415141A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
US10932073B2 (en) Method and system for measuring total sound pressure level of noise, and computer readable storage medium
CN112415141B (en) Compensation method and compensation device for formaldehyde measurement concentration display value
WO2018184304A1 (en) Method and device for detecting health state of network element
RU2010134901A (en) ARTERIAL PRESSURE MEASUREMENT DEVICE FOR PERFORMING A PROCESS TAKING INTO ACCOUNT CHANGE OF ENVIRONMENTAL CONDITIONS WHEN MEASURING
CN109115257A (en) Modification method, device, equipment and the storage medium of sensor characteristic
JP2019125254A (en) System, method and program
WO2021185182A1 (en) Anomaly detection method and apparatus
CN114138098A (en) Power consumption adjusting method and device, storage device and readable storage medium
CN110794092B (en) Sensor, control method, device and equipment thereof, and air quality monitoring equipment
WO2022179235A1 (en) Cleaning robot control method and apparatus, cleaning robot, and storage medium
CN114495409A (en) Smoke sensor sensitivity compensation method, device and system and storage medium
CN106821349A (en) For the event generation method and device of wearable custodial care facility
CN112560974B (en) Information fusion and vehicle information acquisition method and device
CN109374686B (en) Gas sensor
CN112422333B (en) Distribution network condition determining method, system and related device
US20230214114A1 (en) Data retention time calculation method, apparatus, and device
CN114356705A (en) Anomaly detection method, device, equipment and medium for equipment of Internet of things
CN111189471A (en) Correction method, correction device and computer storage medium
CN113470331B (en) Differential temperature detection method and device of temperature sensing detector, temperature sensing detector and medium
CN113654715B (en) Temperature compensation method, device and equipment of water pressure sensor and storage medium
CN115494792B (en) Part processing parameter compensation method and device, electronic equipment and readable storage medium
CN115932711B (en) Data processing method, device and medium for metering reliability of electric energy meter
CN117725559A (en) Numerical correction method and system for formaldehyde sensor
CN115037656B (en) Alarm method and device
CN113298974B (en) Dust sensor output correction method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant