CN112379060A - Humidity measuring method and device for test chamber, electronic device and storage medium - Google Patents

Humidity measuring method and device for test chamber, electronic device and storage medium Download PDF

Info

Publication number
CN112379060A
CN112379060A CN202011561410.5A CN202011561410A CN112379060A CN 112379060 A CN112379060 A CN 112379060A CN 202011561410 A CN202011561410 A CN 202011561410A CN 112379060 A CN112379060 A CN 112379060A
Authority
CN
China
Prior art keywords
humidity
humidity sensor
fault
value
measurement
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
CN202011561410.5A
Other languages
Chinese (zh)
Other versions
CN112379060B (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 Youyi Technology Co ltd
Original Assignee
Guangzhou Youyi Technology 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 Youyi Technology Co Ltd filed Critical Guangzhou Youyi Technology Co Ltd
Priority to CN202011561410.5A priority Critical patent/CN112379060B/en
Publication of CN112379060A publication Critical patent/CN112379060A/en
Application granted granted Critical
Publication of CN112379060B publication Critical patent/CN112379060B/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/0062General constructional details of gas analysers, e.g. portable test equipment concerning the measuring method, e.g. intermittent, or the display, e.g. digital
    • 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

Abstract

The invention provides a humidity measuring method and device of a test chamber, electronic equipment and a storage medium, wherein the humidity measuring method and device are characterized in that the measured values of a plurality of humidity sensors are obtained; acquiring fault state information of each humidity sensor; the fault state information is fault information or non-fault information; judging whether the single humidity sensor has a fault according to the fault state information of each humidity sensor; if so, acquiring an estimated value of the fault humidity sensor according to the measured value of the humidity sensor without the fault, and replacing the measured value of the fault humidity sensor with the estimated value; calculating a measurement result according to the measurement value of the humidity sensor; therefore, the problem that the error of the humidity measurement result is large when a single humidity sensor breaks down in the test process is avoided, and the test box is favorable for accurately controlling the humidity.

Description

Humidity measuring method and device for test chamber, electronic device and storage medium
Technical Field
The invention relates to the technical field of environmental tests, in particular to a humidity measuring method and device of a test chamber, electronic equipment and a storage medium.
Background
At present, some test boxes for temperature and humidity tests in the market are provided with a plurality of humidity sensors at different positions in the test box, and the average value of the measured values of all the humidity sensors is used as a humidity measurement result. However, if a certain humidity sensor fails during the test process and the error of the measured value is too large, the general test box cannot find the failure condition in time, and the average value of the measured values of all the humidity sensors is continuously used as the humidity measurement result, so that the error of the measurement result is large, and the humidity control is inaccurate.
Disclosure of Invention
In view of the foregoing disadvantages of the prior art, an object of the embodiments of the present application is to provide a humidity measuring method and apparatus for a test chamber, an electronic device, and a storage medium, which can avoid the problem of large humidity measurement result error caused by a single humidity sensor failing in a test process.
In a first aspect, an embodiment of the present application provides a humidity measurement method for a test chamber, where the test chamber is provided with a plurality of humidity sensors, and the method includes:
A1. obtaining measurements of the plurality of humidity sensors;
A2. acquiring fault state information of each humidity sensor; the fault state information is fault information or non-fault information;
A3. judging whether the single humidity sensor has a fault according to the fault state information of each humidity sensor;
A4. if so, acquiring an estimated value of the fault humidity sensor according to the measured value of the humidity sensor without the fault, and replacing the measured value of the fault humidity sensor with the estimated value;
A5. and calculating a measurement result according to the measurement value of the humidity sensor.
In the humidity measuring method of the test chamber, the step a2 includes:
taking a single humidity sensor as a target humidity sensor one by one, and calculating a first average value of the measurement values of the other humidity sensors;
calculating an absolute value of a difference between the measurement of the target humidity sensor and the first average value;
and judging whether the absolute value exceeds a preset first humidity difference threshold value, if so, setting the fault state information of the target humidity sensor as fault information, and if not, setting the fault state information of the target humidity sensor as non-fault information.
In the humidity measuring method of the test chamber, the step a4 includes:
acquiring a current temperature value in the test chamber;
calculating a second average of the measured values of the non-faulty humidity sensors;
and inquiring in a preset inquiry table according to the current temperature value and the second average value to obtain an estimated value of the fault humidity sensor.
Further, after the step a4, the method further includes:
judging whether the estimated value of the fault humidity sensor is effective or not according to the measured value of the humidity sensor without the fault;
if not, marking the corresponding fault humidity sensor as an invalid sensor;
in step A5, a measurement is calculated based on the measurement of the humidity sensor that is not marked as a non-functioning sensor.
In some embodiments, step a5 includes:
an average value of the measurement values of the humidity sensors is calculated as a measurement result.
In some embodiments, step a5 includes:
a weighted average of the measured values of the humidity sensors is calculated as a measurement result.
In the humidity measuring method of the test chamber, after the step a3, the method further includes:
if the humidity sensor fails, judging whether the current test duration time exceeds a preset time threshold value; if not, the machine is stopped.
In a second aspect, an embodiment of the present application provides a humidity measurement device for a test chamber, where a plurality of humidity sensors are disposed in the test chamber, and the humidity measurement device includes:
the first acquisition module is used for acquiring the measurement values of the plurality of humidity sensors;
the second acquisition module is used for acquiring the fault state information of each humidity sensor; the fault state information is fault information or non-fault information;
the first judgment module is used for judging whether the single humidity sensor has a fault according to the fault state information of each humidity sensor;
the first estimation module is used for acquiring an estimation value of a fault humidity sensor according to a measurement value of a humidity sensor without a fault when a single humidity sensor is in fault, and replacing the measurement value of the fault humidity sensor with the estimation value;
and the first calculation module is used for calculating a measurement result according to the measurement value of the humidity sensor.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the steps of the humidity measurement method for the test chamber by calling the computer program stored in the memory.
In a fourth aspect, embodiments of the present application provide a storage medium having a computer program stored thereon, where the computer program is executed by a processor to perform the steps of the humidity measurement method for a test chamber.
Has the advantages that:
according to the humidity measuring method and device, the electronic equipment and the storage medium of the test chamber, the measured values of the humidity sensors are obtained; acquiring fault state information of each humidity sensor; the fault state information is fault information or non-fault information; judging whether the single humidity sensor has a fault according to the fault state information of each humidity sensor; if so, acquiring an estimated value of the fault humidity sensor according to the measured value of the humidity sensor without the fault, and replacing the measured value of the fault humidity sensor with the estimated value; calculating a measurement result according to the measurement value of the humidity sensor; therefore, the problem that the error of the humidity measurement result is large when a single humidity sensor breaks down in the test process is avoided, and the test box is favorable for accurately controlling the humidity.
Drawings
Fig. 1 is a flowchart of a humidity measurement method of a test chamber according to an embodiment of the present disclosure.
Fig. 2 is a block diagram of a humidity measuring device of a test chamber according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, an embodiment of the present application provides a humidity measurement method for a test chamber (referring to a test chamber for temperature and humidity control, such as a temperature and humidity test chamber, a temperature and humidity aging chamber, etc.), in which a plurality of humidity sensors are disposed, including the steps of:
A1. acquiring measurement values of a plurality of humidity sensors;
A2. acquiring fault state information of each humidity sensor; the fault state information is fault information or non-fault information;
A3. judging whether the single humidity sensor has a fault according to the fault state information of each humidity sensor;
A4. if so, acquiring an estimated value of the fault humidity sensor according to the measured value of the humidity sensor without the fault, and replacing the measured value of the fault humidity sensor with the estimated value;
A5. the measurement result is calculated from the measurement value of the humidity sensor.
In step a2, there are many methods for obtaining the fault status information of each humidity sensor, for example, the working parameters (at least one of working current, working voltage, sampling frequency, etc.) of each humidity sensor can be obtained, the obtained working parameters are compared with the standard working parameters, if the deviation between the working parameters and the standard working parameters is greater than the preset deviation threshold, the fault of the corresponding humidity sensor is determined, and the fault status information of the humidity sensor is set as the fault information, otherwise, the fault status information of the corresponding humidity sensor is determined to be absent, and the fault status information of the humidity sensor is set as the non-fault information; for another example, in the present embodiment, step a2 includes:
A201. taking a single humidity sensor as a target humidity sensor one by one, and calculating a first average value of the measurement values of the other humidity sensors;
A202. calculating an absolute value of a difference between the measured value of the target humidity sensor and the first average value;
A203. and judging whether the absolute value exceeds a preset first humidity difference threshold value, if so, setting the fault state information of the target humidity sensor as fault information, and if not, setting the fault state information of the target humidity sensor as non-fault information.
In fact, if the humidity sensors do not fail, the difference between the measured values of the humidity sensors is not large, and therefore, if the deviation between the measured value of a certain humidity sensor and the first average value is too large, it indicates that the humidity sensor is failed. In fact, the measured values of all the target humidity sensors can be used for calculation when the first average value is calculated (namely, the first average value is the average value of the measured values of the target humidity sensors); when the target humidity sensor is a faulty sensor, the absolute value of the difference between the measured value and the first average value is larger, which is more beneficial to determining the faulty sensor. This approach is only suitable for the case where the number of humidity sensors is 3 or more (including 3).
In still other embodiments, step a2 includes:
taking a single humidity sensor as a target humidity sensor one by one, and calculating humidity difference values between the measured value of the target humidity sensor and other humidity sensors;
judging whether the quantity of the humidity difference values exceeding the corresponding tolerance range in the humidity difference values exceeds a preset quantity threshold value or not;
if the fault information exceeds the preset fault information, the fault state information of the target humidity sensor is set as fault information, and if the fault information does not exceed the preset fault information, the fault state information of the target humidity sensor is set as non-fault information.
The humidity difference between the humidity sensors can be measured under different temperature conditions under the condition that the humidity sensors are guaranteed to be free of faults in advance, so that the change range of the humidity difference is obtained, the change range is the tolerance range, and if the difference between the measured values of the two humidity sensors exceeds the corresponding tolerance range, at least one of the two humidity sensors is judged to be faulty. When a single humidity sensor fails, the humidity difference between the failed humidity sensor and other humidity sensors exceeds the corresponding tolerance range.
In step a2, the above three or any two ways may be adopted for determination, if one way of determination results is that a humidity sensor has a fault, the humidity sensor is determined to have a fault, and the fault status information of the humidity sensor is set as fault information, otherwise, the fault status information of the humidity sensor is set as non-fault information.
In this embodiment, the test chamber may be humidified in advance according to different temperature conditions to gradually increase the air humidity in the test chamber, so as to record the measurement value of each humidity sensor under the condition that each humidity sensor is free from faults, and then, the single humidity sensor is used as the target humidity sensor one by one, and the average value of the measurement values of the other humidity sensors is calculated, so that the average value and the measurement value of the single humidity sensor form a one-to-one mapping relationship; at each temperature value, each humidity sensor can obtain a set of mapping relations, and the mapping relations are recorded into a lookup table for querying. Thus, step a4 includes:
A401. acquiring a current temperature value in the test chamber;
A402. calculating a second average value of the measurement values of the humidity sensors having no fault (i.e., the humidity sensors whose fault status information is non-fault information);
A403. and inquiring in a preset inquiry table according to the current temperature value and the second average value to obtain an estimated value of the fault humidity sensor.
If the current temperature value T1 is not recorded in the lookup table, the estimated value G corresponding to the second average value W2 may be determined by using a mapping relationship under the temperature condition closest to the current temperature value in the lookup table; the estimated values G corresponding to the current temperature value T0 and the second average value W2 may also be determined by interpolation, for example, a first temperature T1 which is smaller than the current temperature value T0 and closest to the current temperature value T0 is found in a lookup table, a second temperature T2 which is larger than the current temperature value T0 and closest to the current temperature value T0 is found, a first estimated value G1 at the first temperature T1 and a second estimated value G2 at the second temperature T2 are found according to the second average value W2, and finally, the estimated value G is calculated according to the following formula:
G=G1+(G2-G1)*(T0-T1)/(T2-T1);
for another example, first, a corresponding estimation value is found from the mapping relationship of the current temperature value T0 in each temperature value in the lookup table, then curve fitting is performed on the temperature values by using the found multiple estimation values to obtain a curve equation in which the estimation value changes with the temperature, and finally, the current temperature value T0 is substituted into the curve equation to obtain the estimation value G.
Compared with the mode of directly not considering the fault humidity sensor and using the measurement values of other humidity sensors to calculate the measurement result, the mode of using the estimation value to replace the measurement value of the fault humidity sensor and then calculating the measurement result can better reflect the comprehensive condition of the air humidity in the test chamber due to the humidity information of each position (different positions of the humidity sensor) in the test chamber.
Since the mapping relationship in the look-up table is the mapping relationship between the measured value of the target humidity sensor and the average value of the measured values of the other humidity sensors, it is first ensured that the second average value corresponds to the average value in the look-up table in order to obtain an accurate estimated value, and therefore, the method is only suitable for the case where only a single sensor fails. Therefore, if there are a plurality of humidity sensors that fail, the machine may be stopped or the measurement results may be calculated based only on the measurement values of the humidity sensors that do not fail (an average or a weighted average may be calculated as the measurement results).
In some preferred embodiments, after step a4, the method further comprises:
A41. judging whether the estimated value of the fault humidity sensor (namely the humidity sensor with fault state information as fault information) is effective or not according to the measured value of the humidity sensor without the fault;
A42. if not, marking the corresponding fault humidity sensor as an invalid sensor;
thus, in step A5, a measurement is calculated from the measurement of a humidity sensor that is not labeled as a non-active sensor (hereinafter referred to as an active humidity sensor).
Since the estimated value obtained by the query may have a large error, if the error is too large, the estimated value should not be used for calculation of the measurement result, but the actual measured value is also too large, the faulty humidity sensor is marked as an invalid sensor, and the faulty humidity sensor is not considered when the measurement result is calculated, so that the faulty humidity sensor is prevented from affecting the accuracy of the measurement result.
In step a41, an absolute value of a difference between the estimated value and an average of the measured values of the normal humidity sensor may be calculated, and it is determined whether the absolute value exceeds a second predetermined humidity threshold, if so, the estimated value is determined to be invalid, otherwise, the estimated value is determined to be valid. The determination can also be made by: and calculating the absolute value of the difference between the estimated value and the measured value of each normal humidity sensor, and judging whether the maximum value in each absolute value exceeds a preset third humidity difference threshold value, if so, judging that the estimated value is invalid, and otherwise, judging that the estimated value is valid. The determination can also be made by: and calculating the absolute value of the difference between the estimated value and the measured value of each normal humidity sensor, judging whether each absolute value is greater than a fourth humidity threshold, if the number of the absolute values greater than the fourth humidity threshold exceeds a preset number threshold, judging that the estimated value is invalid, and otherwise, judging that the estimated value is valid.
In some embodiments, step a5 includes: the average value of the measurement values of the humidity sensors (referred to as effective humidity sensors) is calculated as the measurement result.
Expressed by the formula:
Figure DEST_PATH_IMAGE001
wherein the content of the first and second substances,
Figure 349484DEST_PATH_IMAGE002
is a measure of humidity, n is the total number of active humidity sensors,
Figure DEST_PATH_IMAGE003
is the measurement of the ith valid humidity sensor.
Wherein, an active humidity sensor refers to a humidity sensor that is not labeled as an inactive sensor; if the fault humidity sensor is not marked as an invalid sensor, the valid humidity sensor comprises the fault humidity sensor, and the measured value of the valid humidity sensor is a corresponding estimated value; if the faulty sensor is marked as an invalid sensor, the valid humidity sensor does not include the faulty sensor.
In other embodiments, step a5 includes: a weighted average of the measured values of the humidity sensors (referred to as active humidity sensors) is calculated as the measurement result.
Expressed by the formula:
Figure 656837DEST_PATH_IMAGE004
wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE005
is a measure of humidity, n is the total number of active humidity sensors,
Figure 889104DEST_PATH_IMAGE003
is the measured value of the ith effective humidity sensor, and ai is the weight of the ith effective humidity sensor.
Wherein, an active humidity sensor refers to a humidity sensor that is not labeled as an inactive sensor; if the fault humidity sensor is not marked as an invalid sensor, the valid humidity sensor comprises the fault humidity sensor, and the measured value of the valid humidity sensor is a corresponding estimated value; if the faulty sensor is marked as an invalid sensor, the valid humidity sensor does not include the faulty sensor.
Wherein, each humidity transducer's weight is according to setting up the position preset of sensor, for example, the weight that is close to the humidity transducer that the proof box middle part set up is great relatively, the weight that is close to the humidity transducer of proof box corner position is less relatively, because it comes mixed steam and air to be provided with stirring fan in the proof box generally, the position that is close to the corner is because the air current is slower, the timeliness of its humidity change is relatively poor, consequently, set the weight that is close to the humidity transducer of proof box corner position to be less relatively, be favorable to improving the accuracy of calculated result.
In some preferred embodiments, after step a3, the method further comprises:
A6. if the humidity sensor fails, judging whether the current test duration time exceeds a preset time threshold value; if not, the machine is stopped.
In fact, when the humidity sensor fails shortly after the test is started, the test is stopped, and other test boxes are used for carrying out the test again, so that the loss caused by the failure is acceptable, and the test result is more accurate and credible by selecting other normal test boxes for carrying out the test; however, when the test has been continued for a long time, the humidity sensor may fail, and if the test is stopped and the test is performed again using another test chamber, a large loss may be caused, for example, some tests may be continued for a long time, and if the test is performed again, the test result may not be obtained in time. Therefore, a time threshold value can be preset according to the actual situation, when the humidity sensor fails, if the test duration time does not exceed the time threshold value, the machine is stopped (meanwhile, an alarm signal can be sent out so that a worker can know the situation), and if the test duration time exceeds the time threshold value, the test is continued according to the steps.
When the existing humidity sensor fails, the current test duration does not exceed a preset time threshold, an inquiry signal can be sent to inquire whether the test needs to be continued or not, if the response signal is received within the specified time, the test is stopped or continued according to the response signal, and if the response signal is not received within the specified time, the test is stopped. Therefore, the worker can independently select to stop the machine or continue the test according to the reality, and the machine is more humanized.
It should be noted that the condition "having a humidity sensor failure" in step a6 means that some of the humidity sensors fail, for example, one humidity sensor fails, and if all of the humidity sensors fail, the system is directly shut down.
As can be seen from the above, the humidity measuring method of the test chamber obtains the measured values of the plurality of humidity sensors; acquiring fault state information of each humidity sensor; the fault state information is fault information or non-fault information; judging whether the single humidity sensor has a fault according to the fault state information of each humidity sensor; if so, acquiring an estimated value of the fault humidity sensor according to the measured value of the humidity sensor without the fault, and replacing the measured value of the fault humidity sensor with the estimated value; calculating a measurement result according to the measurement value of the humidity sensor; therefore, the problem that the error of the humidity measurement result is large when a single humidity sensor breaks down in the test process is avoided, and the test box is favorable for accurately controlling the humidity.
Referring to fig. 2, an embodiment of the present application further provides a humidity measurement apparatus for a test chamber, which is used for the test chamber, and a plurality of humidity sensors are disposed in the test chamber, and each humidity sensor includes a first obtaining module 1, a second obtaining module 2, a first determining module 3, and a first estimating module 4;
the first acquisition module 1 is used for acquiring measurement values of a plurality of humidity sensors;
the second acquisition module 2 is used for acquiring fault state information of each humidity sensor; the fault state information is fault information or non-fault information;
the first judging module 3 is configured to judge whether a single humidity sensor fails according to the fault state information of each humidity sensor;
the first estimation module 4 is used for acquiring an estimation value of a fault humidity sensor according to a measurement value of a humidity sensor without a fault when a single humidity sensor is in fault, and replacing the measurement value of the fault humidity sensor with the estimation value;
wherein, the first calculating module 5 is used for calculating the measuring result according to the measuring value of the humidity sensor.
The second obtaining module 2 obtains the fault state information of each humidity sensor in many ways, for example, may obtain a working parameter (at least one of a working current, a working voltage, a sampling frequency, and the like) of each humidity sensor, compare the obtained working parameter with a standard working parameter, if a deviation between the working parameter and the standard working parameter is greater than a preset deviation threshold, determine that the corresponding humidity sensor is faulty, and set the fault state information of the humidity sensor as fault information, otherwise determine that the corresponding humidity sensor is not faulty, and set the fault state information of the humidity sensor as non-fault information; for another example, in the embodiment, when the second acquiring module 2 acquires the fault status information of each humidity sensor,
taking a single humidity sensor as a target humidity sensor one by one, and calculating a first average value of the measurement values of the other humidity sensors;
calculating an absolute value of a difference between the measured value of the target humidity sensor and the first average value;
and judging whether the absolute value exceeds a preset first humidity difference threshold value, if so, setting the fault state information of the target humidity sensor as fault information, and if not, setting the fault state information of the target humidity sensor as non-fault information.
In fact, if the humidity sensors do not fail, the difference between the measured values of the humidity sensors is not large, and therefore, if the deviation between the measured value of a certain humidity sensor and the first average value is too large, it indicates that the humidity sensor is failed. In fact, the measured values of all the target humidity sensors can be used for calculation when the first average value is calculated (namely, the first average value is the average value of the measured values of the target humidity sensors); when the target humidity sensor is a faulty sensor, the absolute value of the difference between the measured value and the first average value is larger, which is more beneficial to determining the faulty sensor. This approach is only suitable for the case where the number of humidity sensors is 3 or more (including 3).
The second obtaining module 2 can also respectively adopt the two manners to judge when obtaining the fault state information of each humidity sensor, if one manner of judging result is that a certain humidity sensor is faulty, the fault state information of the humidity sensor is judged, and the fault state information of the humidity sensor is set as fault information, otherwise, the fault state information of the humidity sensor is set as non-fault information.
In this embodiment, the test chamber may be humidified in advance according to different temperature conditions to gradually increase the air humidity in the test chamber, so as to record the measurement value of each humidity sensor under the condition that each humidity sensor is free from faults, and then, the single humidity sensor is used as the target humidity sensor one by one, and the average value of the measurement values of the other humidity sensors is calculated, so that the average value and the measurement value of the single humidity sensor form a one-to-one mapping relationship; at each temperature value, each humidity sensor can obtain a set of mapping relations, and the mapping relations are recorded into a lookup table for querying. Thus, when the first estimation module 4 obtains an estimate of a faulty humidity sensor,
acquiring a current temperature value in the test chamber;
calculating a second average value of the measurement values of the humidity sensors having no fault (i.e., the humidity sensors whose fault status information is non-fault information);
and inquiring in a preset inquiry table according to the current temperature value and the second average value to obtain an estimated value of the fault humidity sensor.
If the current temperature value T1 is not recorded in the lookup table, the estimated value G corresponding to the second average value W2 may be determined by using a mapping relationship under the temperature condition closest to the current temperature value in the lookup table; the estimated values G corresponding to the current temperature value T0 and the second average value W2 may also be determined by interpolation, for example, a first temperature T1 which is smaller than the current temperature value T0 and closest to the current temperature value T0 is found in a lookup table, a second temperature T2 which is larger than the current temperature value T0 and closest to the current temperature value T0 is found, a first estimated value G1 at the first temperature T1 and a second estimated value G2 at the second temperature T2 are found according to the second average value W2, and finally, the estimated value G is calculated according to the following formula:
G=G1+(G2-G1)*(T0-T1)/(T2-T1);
for another example, first, a corresponding estimation value is found from the mapping relationship of the current temperature value T0 in each temperature value in the lookup table, then curve fitting is performed on the temperature values by using the found multiple estimation values to obtain a curve equation in which the estimation value changes with the temperature, and finally, the current temperature value T0 is substituted into the curve equation to obtain the estimation value G.
Compared with the mode of directly not considering the fault humidity sensor and using the measurement values of other humidity sensors to calculate the measurement result, the mode of using the estimation value to replace the measurement value of the fault humidity sensor and then calculating the measurement result can better reflect the comprehensive condition of the air humidity in the test chamber due to the humidity information of each position (different positions of the humidity sensor) in the test chamber.
Since the mapping relationship in the look-up table is the mapping relationship between the measured value of the target humidity sensor and the average value of the measured values of the other humidity sensors, it is first ensured that the second average value corresponds to the average value in the look-up table in order to obtain an accurate estimated value, and therefore, the method is only suitable for the case where only a single sensor fails. Therefore, the humidity measuring apparatus of the test chamber may further include a first performing module for performing a shutdown or calculating a measurement result only from the measurement values of the humidity sensors having no faults (an average or a weighted average may be calculated as the measurement result) when there are a plurality of humidity sensors having faults.
In some preferred embodiments, the humidity measuring device of the test chamber further comprises a second judging module, a marking module;
the second judging module is used for judging whether the estimated value of the fault humidity sensor (namely the humidity sensor with fault state information as fault information) is effective or not according to the measured value of the humidity sensor without fault;
the marking module is used for marking the corresponding fault humidity sensor as an invalid sensor when the estimated value is invalid;
the first calculation module 5 thus calculates the measurement from the measurement of a humidity sensor not marked as inactive (hereinafter referred to as active humidity sensor).
Since the estimated value obtained by the query may have a large error, if the error is too large, the estimated value should not be used for calculation of the measurement result, but the actual measured value is also too large, the faulty humidity sensor is marked as an invalid sensor, and the faulty humidity sensor is not considered when the measurement result is calculated, so that the faulty humidity sensor is prevented from affecting the accuracy of the measurement result.
The second judging module can calculate the absolute value of the difference between the estimated value and the average value of the measured values of the normal humidity sensor and judge whether the absolute value exceeds a preset second humidity difference threshold value, if so, the estimated value is judged to be invalid, and if not, the estimated value is judged to be valid. The determination can also be made by: and calculating the absolute value of the difference between the estimated value and the measured value of each normal humidity sensor, and judging whether the maximum value in each absolute value exceeds a preset third humidity difference threshold value, if so, judging that the estimated value is invalid, and otherwise, judging that the estimated value is valid. The determination can also be made by: and calculating the absolute value of the difference between the estimated value and the measured value of each normal humidity sensor, judging whether each absolute value is greater than a fourth humidity threshold, if the number of the absolute values greater than the fourth humidity threshold exceeds a preset number threshold, judging that the estimated value is invalid, and otherwise, judging that the estimated value is valid.
In some embodiments, the first calculation module 5 calculates an average value of the measurement values of the humidity sensors (referred to as effective humidity sensors) as the measurement result when calculating the measurement result.
Expressed by the formula:
Figure 487576DEST_PATH_IMAGE001
wherein the content of the first and second substances,
Figure 20057DEST_PATH_IMAGE002
is a measure of humidity, n is the total number of active humidity sensors,
Figure 311361DEST_PATH_IMAGE003
is the measurement of the ith valid humidity sensor.
Wherein, an active humidity sensor refers to a humidity sensor that is not labeled as an inactive sensor; if the fault humidity sensor is not marked as an invalid sensor, the valid humidity sensor comprises the fault humidity sensor, and the measured value of the valid humidity sensor is a corresponding estimated value; if the faulty sensor is marked as an invalid sensor, the valid humidity sensor does not include the faulty sensor.
In further exemplary embodiments, the first calculation module 5 calculates a weighted average of the measured values of the moisture sensors (referred to as effective moisture sensors) as the measurement result when calculating the measurement result.
Expressed by the formula:
Figure 781657DEST_PATH_IMAGE006
wherein the content of the first and second substances,
Figure 698666DEST_PATH_IMAGE002
is a measure of humidity, n is the total number of active humidity sensors,
Figure 570807DEST_PATH_IMAGE003
is the measured value of the ith effective humidity sensor, and ai is the weight of the ith effective humidity sensor.
Wherein, an active humidity sensor refers to a humidity sensor that is not labeled as an inactive sensor; if the fault humidity sensor is not marked as an invalid sensor, the valid humidity sensor comprises the fault humidity sensor, and the measured value of the valid humidity sensor is a corresponding estimated value; if the faulty sensor is marked as an invalid sensor, the valid humidity sensor does not include the faulty sensor.
Wherein, each humidity transducer's weight is according to setting up the position preset of sensor, for example, the weight that is close to the humidity transducer that the proof box middle part set up is great relatively, the weight that is close to the humidity transducer of proof box corner position is less relatively, because it comes mixed steam and air to be provided with stirring fan in the proof box generally, the position that is close to the corner is because the air current is slower, the timeliness of its humidity change is relatively poor, consequently, set the weight that is close to the humidity transducer of proof box corner position to be less relatively, be favorable to improving the accuracy of calculated result.
In some preferred embodiments, the humidity measurement device of the test chamber further comprises a second execution module;
the second execution module is used for judging whether the current test duration time exceeds a preset time threshold value or not when the humidity sensor fails; if not, the machine is stopped.
It should be noted that the condition "having a humidity sensor failure" refers to a partial humidity sensor failure, for example, if there is a humidity sensor failure, and if all the humidity sensors fail, the shutdown is directly performed.
In fact, when the humidity sensor fails shortly after the test is started, the test is stopped, and other test boxes are used for carrying out the test again, so that the loss caused by the failure is acceptable, and the test result is more accurate and credible by selecting other normal test boxes for carrying out the test; however, when the test has been continued for a long time, the humidity sensor may fail, and if the test is stopped and the test is performed again using another test chamber, a large loss may be caused, for example, some tests may be continued for a long time, and if the test is performed again, the test result may not be obtained in time. Therefore, a time threshold value can be preset according to the actual situation, when the humidity sensor fails, if the test duration time does not exceed the time threshold value, the machine is stopped (meanwhile, an alarm signal can be sent out so that a worker can know the situation), and if the test duration time exceeds the time threshold value, the test is continued according to the steps.
When the existing humidity sensor fails, the current test duration does not exceed a preset time threshold, an inquiry signal can be sent to inquire whether the test needs to be continued or not, if the response signal is received within the specified time, the test is stopped or continued according to the response signal, and if the response signal is not received within the specified time, the test is stopped. Therefore, the worker can independently select to stop the machine or continue the test according to the reality, and the machine is more humanized.
As can be seen from the above, the humidity measuring device of the test chamber obtains the measured values of the plurality of humidity sensors; acquiring fault state information of each humidity sensor; the fault state information is fault information or non-fault information; judging whether the single humidity sensor has a fault according to the fault state information of each humidity sensor; if so, acquiring an estimated value of the fault humidity sensor according to the measured value of the humidity sensor without the fault, and replacing the measured value of the fault humidity sensor with the estimated value; calculating a measurement result according to the measurement value of the humidity sensor; therefore, the problem that the error of the humidity measurement result is large when a single humidity sensor breaks down in the test process is avoided, and the test box is favorable for accurately controlling the humidity.
Referring to fig. 3, an electronic device 100 according to an embodiment of the present application further includes a processor 101 and a memory 102, wherein the memory 102 stores a computer program, and the processor 101 is configured to execute the steps of the humidity measuring method for a test chamber by calling the computer program stored in the memory 102.
The processor 101 is electrically connected to the memory 102. The processor 101 is a control center of the electronic device 100, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or calling a computer program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the electronic device.
The memory 102 may be used to store computer programs and data. The memory 102 stores computer programs containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 101 executes various functional applications and data processing by calling a computer program stored in the memory 102.
In this embodiment, the processor 101 in the electronic device 100 loads instructions corresponding to one or more processes of the computer program into the memory 102, and the processor 101 runs the computer program stored in the memory 102 according to the following steps, so as to implement various functions: obtaining measurements of the plurality of humidity sensors; acquiring fault state information of each humidity sensor; the fault state information is fault information or non-fault information; judging whether the single humidity sensor has a fault according to the fault state information of each humidity sensor; if so, acquiring an estimated value of the fault humidity sensor according to the measured value of the humidity sensor without the fault, and replacing the measured value of the fault humidity sensor with the estimated value; and calculating a measurement result according to the measurement value of the humidity sensor.
As can be seen from the above, the electronic device obtains the measured values of the plurality of humidity sensors; acquiring fault state information of each humidity sensor; the fault state information is fault information or non-fault information; judging whether the single humidity sensor has a fault according to the fault state information of each humidity sensor; if so, acquiring an estimated value of the fault humidity sensor according to the measured value of the humidity sensor without the fault, and replacing the measured value of the fault humidity sensor with the estimated value; calculating a measurement result according to the measurement value of the humidity sensor; therefore, the problem that the error of the humidity measurement result is large when a single humidity sensor breaks down in the test process is avoided, and the test box is favorable for accurately controlling the humidity.
An embodiment of the present application further provides a storage medium, on which a computer program is stored, where the computer program runs the steps of the humidity measurement method for a test chamber described above when being executed by a processor, so as to implement the following functions: obtaining measurements of the plurality of humidity sensors; acquiring fault state information of each humidity sensor; the fault state information is fault information or non-fault information; judging whether the single humidity sensor has a fault according to the fault state information of each humidity sensor; if so, acquiring an estimated value of the fault humidity sensor according to the measured value of the humidity sensor without the fault, and replacing the measured value of the fault humidity sensor with the estimated value; and calculating a measurement result according to the measurement value of the humidity sensor.
The storage medium may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In summary, although the present invention has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, which are substantially the same as the present invention.

Claims (10)

1. A humidity measurement method of a test chamber is used for the test chamber, a plurality of humidity sensors are arranged in the test chamber, and the method is characterized by comprising the following steps:
A1. obtaining measurements of the plurality of humidity sensors;
A2. acquiring fault state information of each humidity sensor; the fault state information is fault information or non-fault information;
A3. judging whether the single humidity sensor has a fault according to the fault state information of each humidity sensor;
A4. if so, acquiring an estimated value of the fault humidity sensor according to the measured value of the humidity sensor without the fault, and replacing the measured value of the fault humidity sensor with the estimated value;
A5. and calculating a measurement result according to the measurement value of the humidity sensor.
2. A method of measuring humidity of a test chamber as claimed in claim 1, wherein step a2 includes:
taking a single humidity sensor as a target humidity sensor one by one, and calculating a first average value of the measurement values of the other humidity sensors;
calculating an absolute value of a difference between the measurement of the target humidity sensor and the first average value;
and judging whether the absolute value exceeds a preset first humidity difference threshold value, if so, setting the fault state information of the target humidity sensor as fault information, and if not, setting the fault state information of the target humidity sensor as non-fault information.
3. A method of measuring humidity of a test chamber as claimed in claim 1, wherein step a4 includes:
acquiring a current temperature value in the test chamber;
calculating a second average of the measured values of the non-faulty humidity sensors;
and inquiring in a preset inquiry table according to the current temperature value and the second average value to obtain an estimated value of the fault humidity sensor.
4. A method of measuring humidity of a test chamber as claimed in claim 3, wherein after step a4, the method further includes:
judging whether the estimated value of the fault humidity sensor is effective or not according to the measured value of the humidity sensor without the fault;
if not, marking the corresponding fault humidity sensor as an invalid sensor;
in step A5, a measurement is calculated based on the measurement of the humidity sensor that is not marked as a non-functioning sensor.
5. A method of measuring humidity of a test chamber as claimed in claim 1, wherein step a5 includes:
an average value of the measurement values of the humidity sensors is calculated as a measurement result.
6. A method of measuring humidity of a test chamber as claimed in claim 1, wherein step a5 includes:
a weighted average of the measured values of the humidity sensors is calculated as a measurement result.
7. The method for measuring humidity of a test chamber according to claim 1, further comprising, after step a 3:
if the humidity sensor fails, judging whether the current test duration time exceeds a preset time threshold value; if not, the machine is stopped.
8. The utility model provides a humidity measurement device of proof box for the proof box, be provided with a plurality of humidity transducer in the proof box, its characterized in that includes:
the first acquisition module is used for acquiring the measurement values of the plurality of humidity sensors;
the second acquisition module is used for acquiring the fault state information of each humidity sensor; the fault state information is fault information or non-fault information;
the first judgment module is used for judging whether the single humidity sensor has a fault according to the fault state information of each humidity sensor;
the first estimation module is used for acquiring an estimation value of a fault humidity sensor according to a measurement value of a humidity sensor without a fault when a single humidity sensor is in fault, and replacing the measurement value of the fault humidity sensor with the estimation value;
and the first calculation module is used for calculating a measurement result according to the measurement value of the humidity sensor.
9. An electronic device, characterized in that it comprises a processor and a memory, in which a computer program is stored, said processor being adapted to carry out the steps of the method for humidity measurement of a test chamber according to any one of claims 1 to 7 by calling said computer program stored in said memory.
10. A storage medium on which a computer program is stored, which computer program, when being executed by a processor, executes the steps of the method for humidity measurement of a test chamber according to any one of claims 1 to 7.
CN202011561410.5A 2020-12-25 2020-12-25 Humidity measuring method and device for test chamber, electronic device and storage medium Active CN112379060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011561410.5A CN112379060B (en) 2020-12-25 2020-12-25 Humidity measuring method and device for test chamber, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011561410.5A CN112379060B (en) 2020-12-25 2020-12-25 Humidity measuring method and device for test chamber, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112379060A true CN112379060A (en) 2021-02-19
CN112379060B CN112379060B (en) 2022-11-01

Family

ID=74589922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011561410.5A Active CN112379060B (en) 2020-12-25 2020-12-25 Humidity measuring method and device for test chamber, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112379060B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115091491A (en) * 2022-08-29 2022-09-23 广东电网有限责任公司清远供电局 Power distribution room maintenance inspection robot and control method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11148696A (en) * 1997-11-18 1999-06-02 Tabai Espec Corp Temperature and humidity controller of environment testing device
JP2002106920A (en) * 2000-10-03 2002-04-10 Sanyo Electric Co Ltd Method fo determining failure of humidity sensor in humidifier and humidifier
US20060287806A1 (en) * 2005-06-16 2006-12-21 Hitachi, Ltd. Fault diagnosis apparatus for sensors used in a system
CN105546712A (en) * 2015-12-03 2016-05-04 珠海格力电器股份有限公司 Humidity detection method, device and system for dehumidifier
WO2018126755A1 (en) * 2017-01-05 2018-07-12 珠海格力电器股份有限公司 Method and device for controlling air conditioner
US20200363308A1 (en) * 2018-02-01 2020-11-19 Nova Fitness Co., Ltd. Multi-core sensor system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11148696A (en) * 1997-11-18 1999-06-02 Tabai Espec Corp Temperature and humidity controller of environment testing device
JP2002106920A (en) * 2000-10-03 2002-04-10 Sanyo Electric Co Ltd Method fo determining failure of humidity sensor in humidifier and humidifier
US20060287806A1 (en) * 2005-06-16 2006-12-21 Hitachi, Ltd. Fault diagnosis apparatus for sensors used in a system
CN105546712A (en) * 2015-12-03 2016-05-04 珠海格力电器股份有限公司 Humidity detection method, device and system for dehumidifier
WO2018126755A1 (en) * 2017-01-05 2018-07-12 珠海格力电器股份有限公司 Method and device for controlling air conditioner
US20200363308A1 (en) * 2018-02-01 2020-11-19 Nova Fitness Co., Ltd. Multi-core sensor system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
万华等: "《新编市场调查与预测》", 31 August 2011, 东北大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115091491A (en) * 2022-08-29 2022-09-23 广东电网有限责任公司清远供电局 Power distribution room maintenance inspection robot and control method thereof

Also Published As

Publication number Publication date
CN112379060B (en) 2022-11-01

Similar Documents

Publication Publication Date Title
CN110646466B (en) Calibration method, system and equipment of semiconductor type gas sensor
US20190235472A1 (en) Abnormality determination apparatus, non-transitory computer readable medium encoded with a program, abnormality determination system and abnormality determination method
CN112379060B (en) Humidity measuring method and device for test chamber, electronic device and storage medium
CN114047472B (en) Metering error monitoring system of intelligent ammeter and monitoring method and device thereof
EP3761025B1 (en) A method of operating a gas sensing device, and corresponding gas sensing device
CN114812758A (en) Calibration method and device of liquid level sensor, electronic equipment and storage medium
JP6415335B2 (en) Defect diagnosis method and defect diagnosis system
JP2014085154A (en) Humidity detector
CN113484730B (en) Air flow temperature control method and system for chip test
CN109990803B (en) Method and device for detecting system abnormity and method and device for sensor processing
US8060332B2 (en) Method for testing sensor function and computer program product thereof
CN112212908B (en) Intelligent sensor and intelligent method thereof
CN112797807B (en) Temperature anomaly monitoring system and method
CN112485009B (en) Ambient temperature detection method and device, controller and vehicle
CN110926519A (en) Sensor multi-party verification system and method
CN114460464A (en) Motor calibration method and device
TWI721532B (en) Device and method for diagnosing fault of circuit board
CN113189272A (en) Method for correcting monitoring data of gas sensor and cooking equipment
JP2013076634A (en) Gas sensor and gas concentration measuring system
CN112067165A (en) Temperature sensor precision testing system, testing method, testing device and storage medium
US20230288394A1 (en) Crop condition monitoring system and crop condition monitoring method using the same
CN113267264B (en) Temperature detection method, system, equipment and medium of temperature sensor
CN116147805B (en) Redundant monitoring method and system for monitoring temperature of stuffing box of pump station
WO2023089782A1 (en) Control device and control method
KR20180093351A (en) Apparatus and Method for Detecting Sensing Error at the Sensing Point for the Thermal Efficiency of Facility

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518000, Zone D, 3rd Floor, Building 2, No. 6 Xinrui Road, Huangpu District, Guangzhou City, Guangdong Province

Patentee after: Guangzhou Youyi Technology Co.,Ltd.

Country or region after: China

Address before: Area D, 3 / F, building 2, No.6 Xinrui Road, Huangpu District, Guangzhou City, Guangdong Province 510700

Patentee before: Guangzhou Youyi Technology Co.,Ltd.

Country or region before: China