Humidity sensor detection method and device, air conditioner and storage medium

By combining the state of the humidity sensor and the liquid level switch in the air conditioner, using the corresponding relationship information between the operating frequency of the liquid level switch and humidity, we can judge whether the humidity sensor is abnormal and whether the accuracy of the humidity sensor is reduced, and solve the problem that the humidity sensor detection results cannot be discovered in a timely manner in the prior art, and realize the timely detection of the humidity sensor detection results and the improvement of the accuracy.

CN119508956AActive Publication Date: 2025-02-25GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411610096.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-02-25
Estimated Expiration
2044-11-12

AI Technical Summary

Technical Problem

The prior art cannot promptly detect the problem of inaccurate detection results of humidity sensors, especially when the humidity value of the humidity sensor is within its range but does not meet the actual humidity conditions.

Method used

By combining the state of the humidity sensor and the liquid level switch in the air conditioner, using the corresponding relationship information between the operating frequency of the liquid level switch and the humidity, it is determined whether the humidity sensor is abnormal and whether the accuracy is decreased.

Benefits of technology

Timely detection of humidity sensor detection results is achieved, and the humidity sensor detection results can be effectively detected and the humidity detection accuracy can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119508956A_ABST
    Figure CN119508956A_ABST
Patent Text Reader

Abstract

The invention discloses a humidity sensor detection method and device, an air conditioner and a storage medium. The method comprises the steps that in the operation process of the air conditioner, the current working mode of the air conditioner is determined, the current humidity collection value of a humidity sensor and the current state of a liquid level switch are obtained, and the liquid level switch is used for detecting the height of accumulated water in the air conditioner; according to relation information corresponding to the current working mode, the current humidity collection value and the current state of the liquid level switch, whether the humidity sensor is abnormal or not and whether the precision is reduced or not are judged, and the relation information represents the corresponding relation between humidity and the action frequency of the liquid level switch. The water fullness detection function of the air conditioner serves as feedback of the humidity sensor, whether the humidity sensor is abnormal or not and whether the precision is reduced or not can be judged in time, and therefore the situation that the detection result of the humidity sensor is not accurate can be effectively found in time, and detection of the humidity sensor is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of humidity detection, and in particular to a humidity sensor detection method, device, air conditioner and storage medium. Background Art

[0002] Air conditioning involves humidity detection and humidity control, and humidity sensors are generally used to detect indoor humidity. At present, if the humidity value detected by the humidity sensor is very outrageous, such as a negative number or greater than 100%, that is, it exceeds the range of the humidity sensor, it can be considered that the humidity sensor is abnormal, but other situations cannot be discovered in time, such as the humidity value detected by the humidity sensor is within its range but does not conform to the actual humidity situation or the humidity sensor detection accuracy decreases, etc., resulting in inaccurate humidity detection results. Summary of the invention

[0003] The embodiments of the present invention provide a humidity sensor detection method, device, air conditioner and storage medium, so as to at least solve the problem in the prior art that the humidity sensor detection result is not found to be inaccurate in time.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a humidity sensor detection method, which is applied to an air conditioner, comprising:

[0005] During the operation of the air conditioner, the current working mode of the air conditioner is determined, and the current humidity collection value of the humidity sensor and the current state of the liquid level switch are obtained, wherein the liquid level switch is used to detect the height of the accumulated water in the air conditioner;

[0006] According to the relationship information corresponding to the current working mode, the current humidity collection value, and the current state of the liquid level switch, it is determined whether the humidity sensor is abnormal and whether the accuracy is reduced, wherein the relationship information represents the corresponding relationship between humidity and the liquid level switch operation frequency.

[0007] Optionally, the relationship information includes: first relationship information when the liquid level switch remains in a closed state, and second relationship information when the liquid level switch performs an alternating switching action;

[0008] Judging whether the humidity sensor is abnormal and whether the accuracy is reduced according to the relationship information corresponding to the current working mode, the current humidity collection value, and the current state of the liquid level switch includes:

[0009] If the liquid level switch is currently in a closed state, judging whether the humidity sensor is abnormal according to the current humidity collection value and the first relationship information corresponding to the current working mode;

[0010] If the liquid level switch is currently in the open state, determine whether the humidity sensor is abnormal based on the current humidity collection value, the current operation frequency of the liquid level switch, and the second relationship information corresponding to the current working mode, and determine whether the accuracy of the humidity sensor has decreased if the humidity sensor is not abnormal.

[0011] Optionally, judging whether the humidity sensor is abnormal according to the current humidity collection value and the first relationship information corresponding to the current working mode includes:

[0012] Determine whether the current humidity collection value matches the humidity in the first relationship information corresponding to the current working mode;

[0013] If the current humidity collection value is greater than or equal to the minimum humidity in the first relationship information corresponding to the current working mode and less than or equal to the maximum humidity in the first relationship information corresponding to the current working mode, it is determined that the humidity sensor is not abnormal;

[0014] If the current humidity collection value is less than the minimum humidity in the first relationship information corresponding to the current working mode or the current humidity collection value is greater than the maximum humidity in the first relationship information corresponding to the current working mode, it is determined that the humidity sensor is abnormal.

[0015] Optionally, judging whether the humidity sensor is abnormal according to the current humidity collection value, the current action frequency of the liquid level switch, and the second relationship information corresponding to the current working mode includes:

[0016] Determine whether the current humidity collection value matches the humidity in the second relationship information corresponding to the current working mode;

[0017] If the current humidity collection value is greater than or equal to the minimum humidity in the second relationship information corresponding to the current working mode and less than or equal to the maximum humidity in the second relationship information corresponding to the current working mode, it is determined that the humidity sensor is not abnormal;

[0018] If the current humidity collection value is less than the minimum humidity in the second relationship information corresponding to the current working mode or the current humidity collection value is greater than the maximum humidity in the second relationship information corresponding to the current working mode, it is determined that the humidity sensor is abnormal.

[0019] Optionally, judging whether the accuracy of the humidity sensor decreases when the humidity sensor is not abnormal, according to the current humidity collection value, the current action frequency of the liquid level switch, and the second relationship information corresponding to the current working mode, includes:

[0020] Determining the humidity corresponding to the current operating frequency of the liquid level switch in the second relationship information corresponding to the current operating mode as the target humidity;

[0021] Calculating the difference between the target humidity and the current humidity acquisition value;

[0022] If the absolute value of the difference is greater than a preset accuracy value, it is determined that the accuracy of the humidity sensor is reduced.

[0023] Optionally, after determining that the accuracy of the humidity sensor decreases, the method further includes:

[0024] Calculating the sum of the difference and the current humidity compensation value to obtain a new humidity compensation value, so as to compensate the current humidity collection value and subsequent humidity collection values ​​with the new humidity compensation value;

[0025] The difference is subtracted from each humidity in the second relationship information corresponding to the current working mode to refresh the second relationship information.

[0026] Optionally, determining the humidity corresponding to the current action frequency of the liquid level switch in the second relationship information corresponding to the current working mode includes:

[0027] If the current operating frequency of the liquid level switch is not recorded in the second relationship information corresponding to the current working mode, the current operating frequency of the liquid level switch and the corresponding current humidity collection value are directly stored in the second relationship information corresponding to the current working mode.

[0028] Optionally, the method further comprises:

[0029] When the air conditioner is operated in any working mode for the first time, the humidity value collected by the humidity sensor when the liquid level switch is kept in a closed state is recorded to establish first relationship information corresponding to the working mode, and the liquid level switch operation frequency and the humidity value collected by the humidity sensor after the liquid level switch appears in an open state are recorded to establish second relationship information corresponding to the working mode;

[0030] The maximum humidity in the first relationship information corresponding to any working mode is less than or equal to the minimum humidity in the second relationship information corresponding to the working mode.

[0031] The embodiment of the present invention further provides a humidity sensor detection device, which is applied to an air conditioner, comprising:

[0032] An acquisition module, used to determine the current working mode of the air conditioner during operation of the air conditioner, and to obtain the current humidity collection value of the humidity sensor and the current state of the liquid level switch, wherein the liquid level switch is used to detect the height of accumulated water in the air conditioner;

[0033] A judgment module is used to judge whether the humidity sensor is abnormal and whether the accuracy is reduced according to the relationship information corresponding to the current working mode, the current humidity collection value, and the current state of the liquid level switch, wherein the relationship information represents the corresponding relationship between humidity and the operating frequency of the liquid level switch.

[0034] The embodiment of the present invention further provides an air conditioner, comprising: a liquid level switch, a humidity sensor, and the humidity sensor detection device described in the embodiment of the present invention.

[0035] The embodiment of the present invention further provides a non-volatile computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the humidity sensor detection method described in the embodiment of the present invention is implemented.

[0036] By applying the technical solution of the present invention, the water full detection function of the air conditioner is used as feedback of the humidity sensor. During the operation of the air conditioner, based on the relationship information corresponding to the current working mode, the current humidity collection value of the humidity sensor and the current state of the liquid level switch, it is possible to promptly determine whether the humidity sensor is abnormal and whether the accuracy is reduced, thereby being able to promptly and effectively discover inaccurate detection results of the humidity sensor, thereby realizing the detection of the humidity sensor. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a flow chart of a humidity sensor detection method provided by an embodiment of the present invention;

[0038] Figure 2 It is a schematic diagram of the structure of the humidity sensor detection provided by an embodiment of the present invention;

[0039] Figure 3 is a humidity sensor detection flow chart provided by an embodiment of the present invention;

[0040] Figure 4 is a schematic diagram of a waveform of an output level of a liquid level switch provided in an embodiment of the present invention;

[0041] Figure 5 It is a structural block diagram of a humidity sensor detection device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0044] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0045] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0046] The optional embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0047] Example 1

[0048] The present embodiment provides a humidity sensor detection method, which is applied to an air conditioner with a water full detection function. The humidity sensor is used to detect the indoor humidity. The water full detection function of the air conditioner is used as feedback of the humidity sensor. Whether the humidity sensor is abnormal and whether the detection accuracy of the humidity sensor is reduced can be detected in a timely and effective manner.

[0049] Air conditioners without drain pipes cannot drain automatically. When these air conditioners are in cooling operation, the evaporator absorbs heat and evaporates, and the condensed water generated is generally stored in a water storage device (such as a water tank or a water tank) below the evaporator. In order to prevent the condensed water from overflowing the water storage device and affecting the normal operation of the air conditioner, a water full detection is required. The water full detection function is realized by the switch signal fed back by the liquid level switch. The liquid level switch is set in the water storage device of the air conditioner. The liquid level switch is used to detect the water accumulation in the air conditioner. Specifically, when the water accumulation in the air conditioner is below the first height threshold, the liquid level switch remains closed and continuously outputs a low-level signal; when the water accumulation in the air conditioner rises to the second height threshold, the liquid level switch opens and outputs a high-level signal, and then performs alternating switching actions, and as the water accumulation increases, its action frequency becomes higher and higher. During the alternating switching action, the liquid level switch outputs a high level when it is in the open state, and outputs a low level when it is in the closed state. The first height threshold is less than or equal to the second height threshold.

[0050] The higher the humidity, the easier it is for water to accumulate in the air conditioner, and the more frequently the liquid level switch will operate; conversely, the lower the humidity, the easier it is for water to accumulate in the air conditioner, and the less frequently the liquid level switch will operate. Therefore, the humidity sensor can be detected by the state of the liquid level switch.

[0051] Figure 1 is a flow chart of a humidity sensor detection method provided by an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0052] S101, during the operation of the air conditioner, determine the current working mode of the air conditioner, and obtain the current humidity collection value of the humidity sensor and the current state of the liquid level switch, wherein the liquid level switch is used to detect the height of the accumulated water in the air conditioner.

[0053] S102, judging whether the humidity sensor is abnormal and whether the accuracy is reduced according to the relationship information corresponding to the current working mode, the current humidity collection value, and the current state of the liquid level switch, wherein the relationship information represents the corresponding relationship between humidity and the operating frequency of the liquid level switch.

[0054] The working modes of the air conditioner include: air supply mode, heating mode, cooling mode and dehumidification mode, etc. Different working modes correspond to their own relationship information.

[0055] The states of the liquid level switch include: open and closed states and operating frequency. The open and closed states include open state and closed state. The liquid level switch outputs high and low level signals in real time. By continuously receiving the signal, the frequency (or period) of the signal can be calculated, that is, the operating frequency of the liquid level switch (also called the opening and closing frequency).

[0056] After the air conditioner is turned on, the humidity sensor starts to collect humidity, and the liquid level switch starts to detect the liquid level. It is in the corresponding open or closed state according to the liquid level and outputs the corresponding level signal. For each humidity collection value of the humidity sensor, it is necessary to combine the current state of the liquid level switch and the relationship information in the current working mode to determine whether the humidity sensor is abnormal and whether the accuracy has decreased, so as to achieve timely detection of the humidity sensor.

[0057] This embodiment uses the water full detection function of the air conditioner as feedback of the humidity sensor. During the operation of the air conditioner, based on the relationship information corresponding to the current working mode, the current humidity collection value of the humidity sensor and the current state of the liquid level switch, it is possible to promptly determine whether the humidity sensor is abnormal and whether the accuracy is reduced, thereby being able to promptly and effectively discover inaccurate detection results of the humidity sensor, thereby realizing the detection of the humidity sensor.

[0058] The above relationship information includes: first relationship information when the liquid level switch remains in a closed state, and second relationship information when the liquid level switch performs an alternating switching action.

[0059] When the liquid level switch remains in a closed state, the liquid level switch action frequency is 0, so the liquid level switch action frequency in the first relationship information is fixed to 0 and includes multiple humidity levels. When the liquid level switch performs alternating switching actions, multiple humidity levels and their corresponding liquid level switch action frequencies can be recorded in real time. Each humidity level in the first relationship information is relatively small, and each humidity level in the second relationship information is relatively large. Specifically, the maximum humidity level in the first relationship information corresponding to any working mode is less than or equal to the minimum humidity level in the second relationship information corresponding to the working mode.

[0060] In one embodiment, judging whether the humidity sensor is abnormal and whether the accuracy is reduced according to the relationship information corresponding to the current working mode, the current humidity collection value, and the current state of the liquid level switch includes:

[0061] If the liquid level switch currently remains in a closed state (i.e., the liquid level switch continuously outputs a low-level signal and is in a normally closed state), judging whether the humidity sensor is abnormal according to the current humidity collection value and the first relationship information corresponding to the current working mode;

[0062] If the liquid level switch is currently in the on state (i.e., the liquid level switch alternately outputs high and low level signals), determine whether the humidity sensor is abnormal based on the current humidity collection value, the current operation frequency of the liquid level switch, and the second relationship information corresponding to the current working mode, and determine whether the accuracy of the humidity sensor has decreased if the humidity sensor is not abnormal.

[0063] This embodiment uses the relationship information corresponding to the current state of the liquid level switch to determine whether the humidity sensor is abnormal and the accuracy, so that timely and reliable detection of the humidity sensor can be achieved.

[0064] It should be noted that the liquid level switch remains in a closed state, indicating that the humidity is low, that is, the humidity range in the first relationship information is narrow. Therefore, when the liquid level switch remains in a closed state, the accuracy of the humidity sensor is not judged, and only whether the humidity sensor is abnormal is judged.

[0065] (1) Determining whether the humidity sensor is abnormal based on the first relationship information

[0066] According to the current humidity collection value and the first relationship information corresponding to the current working mode, determine whether the humidity sensor is abnormal, including: determine whether the current humidity collection value matches the humidity in the first relationship information corresponding to the current working mode; if the current humidity collection value is greater than or equal to the minimum humidity in the first relationship information corresponding to the current working mode and less than or equal to the maximum humidity in the first relationship information corresponding to the current working mode, determine that the humidity sensor is not abnormal; if the current humidity collection value is less than the minimum humidity in the first relationship information corresponding to the current working mode or the current humidity collection value is greater than the maximum humidity in the first relationship information corresponding to the current working mode, determine that the humidity sensor is abnormal.

[0067] When the liquid level switch remains in a closed state, it means that there is less water accumulation in the air conditioner and the indoor humidity is also low. If the humidity collection value is less than the minimum humidity in the first relationship information at this time, it can reflect that the humidity collection value tends to be outrageous and directly report an abnormality; if the humidity collection value is greater than the maximum humidity in the first relationship information at this time, theoretically the liquid level switch should be in an open state, but in fact the liquid level switch remains in a closed state, thereby determining that the humidity sensor is abnormal.

[0068] In this embodiment, when the liquid level switch remains in a closed state, it is possible to promptly and effectively determine whether the humidity sensor is abnormal based on the current humidity collection value and the first relationship information corresponding to the current working mode.

[0069] (2) Determining whether the humidity sensor is abnormal based on the second relationship information

[0070] According to the current humidity acquisition value, the current operating frequency of the liquid level switch, and the second relationship information corresponding to the current working mode, determine whether the humidity sensor is abnormal, including: determining whether the current humidity acquisition value matches the humidity in the second relationship information corresponding to the current working mode; if the current humidity acquisition value is greater than or equal to the minimum humidity in the second relationship information corresponding to the current working mode and is less than or equal to the maximum humidity in the second relationship information corresponding to the current working mode, determine that the humidity sensor is not abnormal; if the current humidity acquisition value is less than the minimum humidity in the second relationship information corresponding to the current working mode or the current humidity acquisition value is greater than the maximum humidity in the second relationship information corresponding to the current working mode, determine that the humidity sensor is abnormal.

[0071] When the liquid level switch is in the open state, it means that there is a lot of water in the air conditioner and the indoor humidity is also high. If the humidity collection value is less than the minimum humidity in the second relationship information at this time, theoretically the liquid level switch should remain in the closed state, but in fact the liquid level switch is in the open state. Therefore, it can be determined that the humidity sensor is abnormal. If the humidity collection value is greater than the maximum humidity in the second relationship information at this time, it can be reflected that the humidity collection value tends to be outrageous and directly report the abnormality.

[0072] In this embodiment, when the liquid level switch is in the on state, it is possible to promptly and effectively determine whether the humidity sensor is abnormal based on the current humidity collection value, the current operation frequency of the liquid level switch, and the second relationship information corresponding to the current working mode.

[0073] (3) Determining whether the humidity sensor accuracy has decreased based on the second relationship information

[0074] Based on the humidity collection value, the current operating frequency of the liquid level switch, and the second relationship information corresponding to the current working mode, whether the accuracy of the humidity sensor is reduced is judged when the humidity sensor is not abnormal, including: determining the humidity corresponding to the current operating frequency of the liquid level switch in the second relationship information corresponding to the current working mode as the target humidity; calculating the difference between the target humidity and the current humidity collection value; if the absolute value of the difference is greater than the preset accuracy value, determining that the accuracy of the humidity sensor is reduced.

[0075] Among them, the preset accuracy value can be preset according to actual conditions, and the preset accuracy value is an acceptable detection accuracy.

[0076] In this embodiment, when the liquid level switch is in the on state and the humidity sensor is normal, it is possible to promptly and effectively determine whether the accuracy of the humidity sensor has decreased based on the current humidity collection value, the current operation frequency of the liquid level switch, and the second relationship information corresponding to the current working mode.

[0077] Furthermore, after determining that the accuracy of the humidity sensor has decreased, it also includes: calculating the sum of the difference and the current humidity compensation value to obtain a new humidity compensation value, so as to use the new humidity compensation value to compensate for the current humidity collection value and subsequent humidity collection values; subtracting the difference from each humidity in the second relationship information corresponding to the current working mode to refresh the second relationship information.

[0078] The humidity compensation value can be a positive number, a negative number, or 0. For example, the humidity compensation value is 0 by default at the beginning. When the humidity sensor accuracy is determined to be reduced for the first time, the humidity compensation value will be adjusted. The humidity compensation value is no longer 0, but becomes a positive number or a negative number. If the humidity sensor accuracy is determined to be reduced again, the humidity compensation value will be adjusted again. That is, each time the humidity sensor accuracy is determined to be reduced, the humidity compensation value will be adjusted once. Specifically, the sum of the humidity acquisition value and the humidity compensation value is calculated to obtain the actual humidity value.

[0079] Each time it is determined that the accuracy of the humidity sensor has decreased, the second relationship information corresponding to the current working mode will be refreshed. Since a new humidity compensation value has been determined at this time, as long as the accuracy of the humidity sensor does not continue to decrease too much in the subsequent period of time, the humidity compensation value can be used to obtain an accurate actual humidity value. Therefore, the above difference is subtracted from each humidity in the second relationship information to refresh the second relationship information, so that the humidity sensor accuracy is considered to have not decreased in the subsequent period of time, thereby avoiding the need to recalculate the humidity compensation value each time, avoiding unnecessary repeated operations, and saving computing resources and processing resources.

[0080] In this embodiment, when the humidity sensor accuracy decreases and the detection result is inaccurate, the humidity compensation value is adjusted in time to ensure that a more accurate actual humidity value is obtained, thereby improving the humidity detection accuracy. In addition, the second relationship information is refreshed to avoid recalculating the humidity compensation value every time, avoiding unnecessary repeated operations, and saving computing resources and processing resources.

[0081] Furthermore, the humidity corresponding to the current operating frequency of the liquid level switch is determined in the second relationship information corresponding to the current working mode, including: if the current operating frequency of the liquid level switch is not recorded in the second relationship information corresponding to the current working mode, the current operating frequency of the liquid level switch and the corresponding current humidity acquisition value are directly stored in the second relationship information corresponding to the current working mode. In this way, the second relationship information can be updated and improved in a timely manner, ensuring the accuracy and reliability of the second relationship information, thereby ensuring that the detection of the humidity sensor is more reliable.

[0082] In one embodiment, the method further includes: when the air conditioner is operated in any working mode for the first time, recording the humidity value collected by the humidity sensor when the liquid level switch is kept in a closed state to establish first relationship information corresponding to the working mode, and recording the liquid level switch operation frequency and the humidity value collected by the humidity sensor after the liquid level switch is in an open state to establish second relationship information corresponding to the working mode. The maximum humidity in the first relationship information corresponding to any working mode is less than or equal to the minimum humidity in the second relationship information corresponding to the working mode.

[0083] Specifically, in any working mode, the first relationship information is recorded when the liquid level switch remains in a closed state. When the liquid level switch appears in an open state or the data in the first relationship information reaches the preset maximum data length, the first relationship information is established; the second relationship information is recorded when the liquid level switch appears in an open state. When the liquid level switch remains in a closed state and the humidity value collected by the humidity sensor belongs to the humidity range in the first relationship information, it is considered that the second relationship information is established. Afterwards, as the air conditioner is running, the first relationship information and the second relationship information can be supplemented and improved. The setting of the maximum data length should try to ensure that the amount of data recorded is sufficient.

[0084] This implementation method collects data when the air conditioner is just put into operation and establishes relationship information corresponding to different working modes. During the operation of the air conditioner, it serves as a basis for detecting the humidity sensor and compensating for humidity, so as to timely and effectively determine whether the humidity sensor is abnormal and whether the accuracy is reduced.

[0085] In actual applications, when the air conditioner is just put into operation, its humidity sensor is normal and the accuracy meets the requirements. Therefore, the humidity sensor does not need to be tested in the early stage. When the relationship information is established or it has been put into operation for a certain period of time, the humidity sensor is tested.

[0086] Of course, the relationship information corresponding to each working mode can also be stored in advance according to experiments when the air conditioner leaves the factory, as a preliminary basis for detecting the humidity sensor. Later, as the air conditioner is put into operation, new relationship information is gradually stored, and the new relationship information is used to detect the humidity sensor, thereby ensuring that the relationship information is more consistent with the actual operating environment of the air conditioner, and the detection of the humidity sensor is more reliable.

[0087] Example 2

[0088] This embodiment describes the humidity sensor detection method with a specific example, but it is worth noting that the specific example is only for better illustrating the present application and does not constitute an improper limitation on the present application. The explanation of terms that are the same or corresponding to the above embodiment will not be repeated in this embodiment.

[0089] like Figure 2 As shown, it is a schematic diagram of the structure of humidity sensor detection, including: air conditioner main control board 10, humidity sensor 20 and liquid level switch 30. The air conditioner main control board 10 is the general control center of the air conditioner, which is used for receiving, storing and processing data and can control the components in the air conditioner. The humidity sensor 20 is used to detect indoor humidity. The liquid level switch 30 can realize the water full detection function of the air conditioner, and the liquid level switch 30 is used to detect the height of water accumulation in the air conditioner.

[0090] The humidity sensor 20 is connected to the air conditioner main control board 10 and sends the collected humidity value to the air conditioner main control board 10 (for example, by using AD or I2C or other methods).

[0091] The liquid level switch 30 is connected to the air conditioner main control board 10 and sends a signal to the air conditioner main control board 10 in real time. The air conditioner main control board 10 records the opening and closing state and the operation frequency of the liquid level switch.

[0092] like Figure 3 As shown, it is a humidity sensor detection flow chart, which includes the following steps:

[0093] S301, air conditioning is running.

[0094] S302, the air conditioner main control board 10 receives data sent by the humidity sensor 20 and the liquid level switch 30 and performs data collection.

[0095] S303, the air conditioner main control board 10 establishes a relationship table according to the collected data, and the relationship table can reflect the corresponding relationship between humidity and the operating frequency of the liquid level switch, which is used for detecting the humidity sensor and humidity compensation.

[0096] The relationship table in any working mode includes: relationship table 1 (ie, the first relationship information) when the liquid level switch remains in a closed state, and relationship table 2 (ie, the second relationship information) when the liquid level switch performs alternating switching actions.

[0097] S304, obtaining the current humidity collection value of the humidity sensor 20.

[0098] S305, judging whether the current humidity collection value matches the relationship table data in the current working mode in combination with the current state of the liquid level switch 30.

[0099] If the liquid level switch 30 is currently in a closed state, and the current humidity collection value matches the data in the relationship table 1 (ie, the current humidity collection value is within the humidity range of the relationship table 1), it indicates that there is no abnormality in the humidity sensor, and the process returns to S304 to continue detecting the humidity.

[0100] If the liquid level switch 30 is currently in a closed state, and the current humidity collection value does not match the data in the relationship table 1 (ie, the current humidity collection value is not within the humidity range of the relationship table 1), it indicates that the humidity sensor is abnormal, and the process goes to S306.

[0101] If the liquid level switch 30 is currently in the open state, and the current humidity collection value matches the data in the relationship table 2 (that is, the current humidity collection value is within the humidity range of the relationship table 2), it means that there is no abnormality in the humidity sensor, and enter S307 to determine whether the accuracy of the humidity sensor decreases.

[0102] If the liquid level switch 30 is currently in the open state, and the current humidity collection value does not match the data in the relationship table 2 (ie, the current humidity collection value is not within the humidity range of the relationship table 2), it indicates that the humidity sensor is abnormal, and enter S306.

[0103] S306, outputting a humidity sensor abnormality prompt message.

[0104] S307, when the liquid level switch 30 is in the open state and the humidity sensor is normal, determine the humidity corresponding to the current operating frequency of the liquid level switch 30 in the relationship table 2 as the target humidity, and calculate the difference between the target humidity and the current humidity collection value.

[0105] S308: If the absolute value of the difference is greater than the preset accuracy value, it is determined that the accuracy of the humidity sensor 20 has decreased, and the humidity compensation value is adjusted. The sum of the current humidity acquisition value and the humidity compensation value is calculated to obtain the current actual humidity value, and the humidity compensation value is used to compensate the subsequent humidity acquisition values.

[0106] If the absolute value of the difference is less than or equal to the preset accuracy value, it is determined that the accuracy of the humidity sensor 20 has not decreased, and the current humidity collection value is used as the current actual humidity value.

[0107] S309, refreshing relationship table 2. Specifically, subtracting the above difference from each humidity in relationship table 2.

[0108] Exemplarily, the measuring range of the humidity sensor is [0%, 100%], the humidity range in the first relationship information is [A%, B%], the humidity range in the second relationship information is [B%, C%], 0%≤A%<B%<C%≤100%. The liquid level switch in the first relationship information remains in a closed state and continuously outputs a low level, that is, the liquid level switch operation frequency is fixed to 0. The liquid level switch in the second relationship information performs alternating switching actions, and the operation frequency is getting higher and higher. When the liquid level switch is in the open state, it outputs a high level, and when the liquid level switch is in the closed state, it outputs a low level. The waveform of the liquid level switch output level is as follows: Figure 4As shown, the horizontal axis is time, the vertical axis is level, the left side of the dotted line corresponds to the first relationship information, the right side of the dotted line corresponds to the second relationship information, the corresponding humidity at the origin is A%, the corresponding humidity at the dotted line is B%, and the corresponding humidity at the end point of the waveform is C%.

[0109] If the relationship information is represented by a coordinate graph, the horizontal axis represents the operating frequency of the liquid level switch, and the vertical axis represents the humidity. The first relationship information is a straight line that coincides with the vertical axis, and the coordinates of the two end points of the straight line are (0, A% and (0, B%) respectively; the starting point coordinate of the second relationship information is (f1, B%), and the end point coordinate is (f2, C%), f1<f2, B%<C%.

[0110] Taking the case where the air conditioner is currently running in the heating mode as an example, the liquid level switch remains in a closed state and keeps sending a low-level signal to the air conditioner main control board. At the same time, the air conditioner main control board records the humidity value collected by the humidity sensor and establishes a relationship table 1; if the liquid level switch is in an open state, the air conditioner main control board records the liquid level switch action frequency, and at the same time, the air conditioner main control board records the humidity value collected by the humidity sensor and establishes a relationship table 2. In the heating mode, when the liquid level switch remains at a low level, if the current humidity collection value of the humidity sensor is not within the humidity range of the relationship table 1, it is determined that the humidity sensor is abnormal; when the liquid level switch is in an open state, if the humidity collection value of the humidity sensor is not within the humidity range of the relationship table 2, it is determined that the humidity sensor is abnormal. If the liquid level switch is in an open state and the humidity sensor is not abnormal, the difference between the corresponding humidity in the relationship table 2 and the current humidity collection value is further calculated based on the current action frequency of the liquid level switch. If the absolute value of the difference is greater than the preset accuracy value, it is considered that the detection accuracy of the humidity sensor has decreased, and the humidity compensation value is adjusted and the relationship table 2 is refreshed.

[0111] This embodiment uses the water full detection function of the air conditioner as the feedback of the humidity sensor. During the operation of the air conditioner, according to the relationship information corresponding to the current working mode, the current humidity collection value of the humidity sensor and the current state of the liquid level switch, it can be timely judged whether the humidity sensor is abnormal and whether the accuracy is reduced, so that the situation of inaccurate detection results of the humidity sensor can be discovered in a timely and effective manner, and the detection of the humidity sensor is realized. When the liquid level switch is in the open state and the humidity sensor is not abnormal, according to the current humidity collection value, the current action frequency of the liquid level switch, and the second relationship information corresponding to the current working mode, it can be timely and effectively judged whether the accuracy of the humidity sensor is reduced. In the case where the accuracy of the humidity sensor is reduced and the detection result is inaccurate, the humidity compensation value is adjusted in time to ensure that a more accurate actual humidity value is obtained, improve the humidity detection accuracy, and refresh the second relationship information to avoid recalculating the humidity compensation value every time, avoid unnecessary repeated operations, and save computing resources and processing resources.

[0112] Example 3

[0113] Based on the same inventive concept, this embodiment provides a humidity sensor detection device, which is applied to an air conditioner and can be used to implement the humidity sensor detection method described in the above embodiment. The humidity sensor detection device can be implemented by software and / or hardware, and the humidity sensor detection device can generally be integrated into the main control board of the air conditioner.

[0114] Figure 5 is a structural block diagram of a humidity sensor detection device provided by an embodiment of the present invention, such as Figure 5 As shown, the humidity sensor detection device includes:

[0115] The acquisition module 51 is used to determine the current working mode of the air conditioner during operation of the air conditioner, and to obtain the current humidity collection value of the humidity sensor and the current state of the liquid level switch, wherein the liquid level switch is used to detect the height of the accumulated water in the air conditioner;

[0116] The judgment module 52 is used to judge whether the humidity sensor is abnormal and whether the accuracy is reduced according to the relationship information corresponding to the current working mode, the current humidity collection value, and the current state of the liquid level switch, wherein the relationship information represents the corresponding relationship between humidity and the liquid level switch operation frequency.

[0117] Optionally, the relationship information includes: first relationship information when the liquid level switch remains in a closed state, and second relationship information when the liquid level switch performs an alternating switching action;

[0118] The judging module 52 includes:

[0119] A first judgment unit, configured to judge whether the humidity sensor is abnormal according to the current humidity collection value and the first relationship information corresponding to the current working mode if the liquid level switch is currently in a closed state;

[0120] The second judgment unit is used to judge whether the humidity sensor is abnormal if the liquid level switch is currently in an open state, based on the current humidity collection value, the current operation frequency of the liquid level switch, and the second relationship information corresponding to the current working mode, and to judge whether the accuracy of the humidity sensor is reduced if the humidity sensor is not abnormal.

[0121] Optionally, the first judging unit includes:

[0122] A first judgment subunit, used to judge whether the current humidity collection value matches the humidity in the first relationship information corresponding to the current working mode;

[0123] A first determination subunit, configured to determine that the humidity sensor is not abnormal if the current humidity collection value is greater than or equal to the minimum humidity in the first relationship information corresponding to the current working mode and less than or equal to the maximum humidity in the first relationship information corresponding to the current working mode;

[0124] The second determination subunit is used to determine that the humidity sensor is abnormal if the current humidity collection value is less than the minimum humidity in the first relationship information corresponding to the current working mode or the current humidity collection value is greater than the maximum humidity in the first relationship information corresponding to the current working mode.

[0125] Optionally, the second judging unit includes:

[0126] A second judgment subunit is used to judge whether the current humidity collection value matches the humidity in the second relationship information corresponding to the current working mode;

[0127] A third determination subunit is used to determine that the humidity sensor is not abnormal if the current humidity collection value is greater than or equal to the minimum humidity in the second relationship information corresponding to the current working mode and less than or equal to the maximum humidity in the second relationship information corresponding to the current working mode;

[0128] The fourth determination subunit is used to determine that the humidity sensor is abnormal if the current humidity collection value is less than the minimum humidity in the second relationship information corresponding to the current working mode or the current humidity collection value is greater than the maximum humidity in the second relationship information corresponding to the current working mode.

[0129] Optionally, the second judging unit includes:

[0130] a fifth determining subunit, configured to determine, in the second relationship information corresponding to the current working mode, a humidity corresponding to the current operating frequency of the liquid level switch as a target humidity;

[0131] A calculation subunit, used for calculating the difference between the target humidity and the current humidity collection value;

[0132] The sixth determining subunit is configured to determine that the accuracy of the humidity sensor decreases if the absolute value of the difference is greater than a preset accuracy value.

[0133] Optionally, the humidity sensor detection device further includes:

[0134] A calculation module, for calculating the sum of the difference and the current humidity compensation value after determining that the accuracy of the humidity sensor decreases, to obtain a new humidity compensation value, so as to compensate the current humidity collection value and subsequent humidity collection values ​​with the new humidity compensation value;

[0135] A refresh module is used for, after determining that the accuracy of the humidity sensor decreases, subtracting the difference from each humidity in the second relationship information corresponding to the current working mode to refresh the second relationship information.

[0136] Optionally, the second judgment unit also includes: a storage subunit, which is used to directly store the current action frequency of the liquid level switch and its corresponding current humidity collection value in the second relationship information corresponding to the current working mode if the current action frequency of the liquid level switch is not recorded in the second relationship information corresponding to the current working mode.

[0137] Optionally, the humidity sensor detection device further includes:

[0138] A recording module is used to record the humidity value collected by the humidity sensor when the liquid level switch remains in a closed state when the air conditioner is operated in any working mode for the first time to establish first relationship information corresponding to the working mode, and record the liquid level switch operation frequency and the humidity value collected by the humidity sensor after the liquid level switch appears in an open state to establish second relationship information corresponding to the working mode; the maximum humidity in the first relationship information corresponding to any working mode is less than or equal to the minimum humidity in the second relationship information corresponding to the working mode.

[0139] The above humidity sensor detection device can execute the humidity sensor detection method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the humidity sensor detection method provided by the embodiment of the present invention.

[0140] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0141] Example 4

[0142] This embodiment provides an air conditioner, comprising: a liquid level switch, a humidity sensor, and the humidity sensor detection device described in the above embodiment.

[0143] Example 5

[0144] This embodiment provides a non-volatile computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the humidity sensor detection method described in the above embodiment is implemented.

[0145] Example 6

[0146] This embodiment provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the humidity sensor detection method described in the above embodiment is implemented when the processor executes the computer program.

[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0148] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A humidity sensor detection method, applied to air conditioners, characterized in that: include: During the operation of the air conditioner, the current working mode of the air conditioner is determined, and the current humidity collection value of the humidity sensor and the current state of the liquid level switch are obtained, wherein the liquid level switch is used to detect the height of the accumulated water in the air conditioner; According to the relationship information corresponding to the current working mode, the current humidity collection value, and the current state of the liquid level switch, it is determined whether the humidity sensor is abnormal and whether the accuracy is reduced, wherein the relationship information represents the corresponding relationship between humidity and the liquid level switch operation frequency.

2. The method according to claim 1, characterized in that The relationship information includes: first relationship information when the liquid level switch remains in a closed state, and second relationship information when the liquid level switch performs an alternating switching action; Judging whether the humidity sensor is abnormal and whether the accuracy is reduced according to the relationship information corresponding to the current working mode, the current humidity collection value, and the current state of the liquid level switch includes: If the liquid level switch is currently in a closed state, judging whether the humidity sensor is abnormal according to the current humidity collection value and the first relationship information corresponding to the current working mode; If the liquid level switch is currently in the open state, determine whether the humidity sensor is abnormal based on the current humidity collection value, the current operation frequency of the liquid level switch, and the second relationship information corresponding to the current working mode, and determine whether the accuracy of the humidity sensor has decreased if the humidity sensor is not abnormal.

3. The method according to claim 2, characterized in that Judging whether the humidity sensor is abnormal according to the current humidity collection value and the first relationship information corresponding to the current working mode includes: Determine whether the current humidity collection value matches the humidity in the first relationship information corresponding to the current working mode; If the current humidity collection value is greater than or equal to the minimum humidity in the first relationship information corresponding to the current working mode and less than or equal to the maximum humidity in the first relationship information corresponding to the current working mode, it is determined that the humidity sensor is not abnormal; If the current humidity collection value is less than the minimum humidity in the first relationship information corresponding to the current working mode or the current humidity collection value is greater than the maximum humidity in the first relationship information corresponding to the current working mode, it is determined that the humidity sensor is abnormal.

4. The method according to claim 2, characterized in that: Judging whether the humidity sensor is abnormal according to the current humidity collection value, the current action frequency of the liquid level switch, and the second relationship information corresponding to the current working mode includes: Determine whether the current humidity collection value matches the humidity in the second relationship information corresponding to the current working mode; If the current humidity collection value is greater than or equal to the minimum humidity in the second relationship information corresponding to the current working mode and less than or equal to the maximum humidity in the second relationship information corresponding to the current working mode, it is determined that the humidity sensor is not abnormal; If the current humidity collection value is less than the minimum humidity in the second relationship information corresponding to the current working mode or the current humidity collection value is greater than the maximum humidity in the second relationship information corresponding to the current working mode, it is determined that the humidity sensor is abnormal.

5. The method according to claim 2, characterized in that: According to the current humidity collection value, the current action frequency of the liquid level switch, and the second relationship information corresponding to the current working mode, judging whether the accuracy of the humidity sensor decreases when the humidity sensor is not abnormal includes: Determining the humidity corresponding to the current operating frequency of the liquid level switch in the second relationship information corresponding to the current operating mode as the target humidity; Calculating the difference between the target humidity and the current humidity acquisition value; If the absolute value of the difference is greater than a preset accuracy value, it is determined that the accuracy of the humidity sensor is reduced.

6. The method according to claim 5, characterized in that After determining that the accuracy of the humidity sensor decreases, the method further includes: Calculating the sum of the difference and the current humidity compensation value to obtain a new humidity compensation value, so as to compensate the current humidity collection value and subsequent humidity collection values ​​with the new humidity compensation value; The difference is subtracted from each humidity in the second relationship information corresponding to the current working mode to refresh the second relationship information.

7. The method according to claim 5, characterized in that Determining the humidity corresponding to the current action frequency of the liquid level switch in the second relationship information corresponding to the current working mode includes: If the current operating frequency of the liquid level switch is not recorded in the second relationship information corresponding to the current working mode, the current operating frequency of the liquid level switch and the corresponding current humidity collection value are directly stored in the second relationship information corresponding to the current working mode.

8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: When the air conditioner is operated in any working mode for the first time, the humidity value collected by the humidity sensor when the liquid level switch is kept in a closed state is recorded to establish first relationship information corresponding to the working mode, and the liquid level switch operation frequency and the humidity value collected by the humidity sensor after the liquid level switch appears in an open state are recorded to establish second relationship information corresponding to the working mode; The maximum humidity in the first relationship information corresponding to any working mode is less than or equal to the minimum humidity in the second relationship information corresponding to the working mode.

9. A humidity sensor detection device, applied to air conditioners, characterized in that: include: An acquisition module, used to determine the current working mode of the air conditioner during operation of the air conditioner, and to obtain the current humidity collection value of the humidity sensor and the current state of the liquid level switch, wherein the liquid level switch is used to detect the height of accumulated water in the air conditioner; A judgment module is used to judge whether the humidity sensor is abnormal and whether the accuracy is reduced according to the relationship information corresponding to the current working mode, the current humidity collection value, and the current state of the liquid level switch, wherein the relationship information represents the corresponding relationship between humidity and the operating frequency of the liquid level switch.

10. An air conditioner, characterized in that: include: A liquid level switch, a humidity sensor, and the humidity sensor detection device as claimed in claim 9.

11. A non-volatile computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the humidity sensor detection method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Humidity detection method, humidity detection device, humidifier and storage medium

    CN115540116A

  • Sensor detection method and device, electronic equipment, storage medium and product

    CN118009469A

  • Humidity sensor detection method, detection equipment, storage medium and air conditioner

    CN118089202A

  • Humidity control system

    US5598971A

  • Method and apparatus for controlling dehumidifier, and dehumidifier and storage medium

    WO2023185022A1