Humidity sensor detection method and device, air conditioner and storage medium
By combining the status of humidity sensors and liquid level switches in air conditioners and utilizing the relationship information between different operating modes, the problem of inaccurate humidity sensor detection results is solved, enabling timely detection and accuracy compensation, thereby improving the accuracy of humidity detection and resource utilization efficiency.
Patent Information
- Application Number
- CN202411610096.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-11-12
AI Technical Summary
Current humidity sensors often produce inaccurate results, failing to detect anomalies or decreased accuracy in a timely manner.
By combining the current humidity readings from the humidity sensor with the status of the liquid level switch in the air conditioner, and utilizing the relationship information corresponding to different operating modes, it is possible to determine whether the humidity sensor is malfunctioning and whether its accuracy has decreased. This includes the different relationship information when the liquid level switch is in a closed state and when it alternately switches on and off, allowing for timely detection and compensation.
It enables timely detection of humidity sensors, promptly identifying anomalies and accuracy degradation, thereby improving the accuracy of humidity detection and saving computing and processing resources.
Smart Images

Figure CN119508956B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of humidity detection, in particular to a humidity sensor detection method and device, an air conditioner and a storage medium. BACKGROUND
[0002] Air conditioners involve humidity detection and humidity control, and generally use humidity sensors to detect indoor humidity. At present, if the humidity value detected by the humidity sensor is very abnormal, for example, a negative number or greater than 100%, that is, out of the range of the humidity sensor, it can be considered that the humidity sensor is abnormal, but other situations cannot be discovered in time, for example, the humidity value detected by the humidity sensor is within its range but does not conform to the actual humidity condition or the humidity sensor detection accuracy is reduced, thereby resulting in inaccurate humidity detection results. SUMMARY
[0003] The embodiments of the present application provide a humidity sensor detection method, device, air conditioner and storage medium to at least solve the problem that the inaccurate humidity sensor detection result cannot be discovered in time in the prior art.
[0004] To solve the above technical problems, the embodiments of the present application provide a humidity sensor detection method applied to an air conditioner, comprising:
[0005] In the running process 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 water height 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 judged whether the humidity sensor is abnormal and whether the accuracy is reduced, wherein the relationship information represents the corresponding relationship between humidity and liquid level switch action 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 alternating switching action.
[0008] 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 judged whether the humidity sensor is abnormal and whether the accuracy is reduced, comprising:
[0009] If the liquid level switch currently remains in a closed state, it is judged 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 an open state, whether the humidity sensor is abnormal is determined according to the current humidity collection value, the current action frequency of the liquid level switch, and second relationship information corresponding to the current working mode, and whether the precision of the humidity sensor is decreased is determined in the case that the humidity sensor is not abnormal.
[0011] Optionally, whether the humidity sensor is abnormal is determined according to the current humidity collection value and first relationship information corresponding to the current working mode, and the first relationship information includes:
[0012] whether the current humidity collection value matches humidity in the first relationship information corresponding to the current working mode is determined.
[0013] If the current humidity collection value is greater than or equal to minimum humidity in the first relationship information corresponding to the current working mode and less than or equal to 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, whether the humidity sensor is abnormal is determined according to the current humidity collection value, the current action frequency of the liquid level switch, and second relationship information corresponding to the current working mode, and the second relationship information includes:
[0016] whether the current humidity collection value matches humidity in the second relationship information corresponding to the current working mode is determined.
[0017] If the current humidity collection value is greater than or equal to minimum humidity in the second relationship information corresponding to the current working mode and less than or equal to 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, whether the precision of the humidity sensor is decreased is determined according to the current humidity collection value, the current action frequency of the liquid level switch, and second relationship information corresponding to the current working mode in the case that the humidity sensor is not abnormal, and the second relationship information includes:
[0020] determine the humidity corresponding to the current action frequency of the liquid level switch in the second relationship information corresponding to the current working mode as a target humidity;
[0021] calculate a difference between the target humidity and the current humidity collection value;
[0022] if the absolute value of the difference is greater than a preset precision value, determine that the precision of the humidity sensor is decreased.
[0023] Optionally, after determining that the precision of the humidity sensor is decreased, the method further comprises:
[0024] calculate a sum of the difference and a current humidity compensation value to obtain a new humidity compensation value, and use the new humidity compensation value to compensate the current humidity collection value and subsequent humidity collection values;
[0025] subtract the difference from each humidity in the second relationship information corresponding to the current working mode to refresh the second relationship information.
[0026] Optionally, the 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 comprises:
[0027] if the current action frequency of the liquid level switch is not recorded in the second relationship information corresponding to the current working mode, directly store the current action frequency of the liquid level switch and the current humidity collection value corresponding thereto into the second relationship information corresponding to the current working mode.
[0028] Optionally, the method further comprises:
[0029] when the air conditioner is first operated in any working mode, record 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 record the action frequency of the liquid level switch after the liquid level switch is in an open state and the humidity value collected by the humidity sensor 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] Embodiments of the present application also provide a humidity sensor detection device applied to an air conditioner, comprising:
[0032] an acquisition module, configured to determine a current working mode of the air conditioner and acquire a current humidity collection value of a humidity sensor and a current state of a liquid level switch during operation of the air conditioner, wherein the liquid level switch is used to detect the water height in the air conditioner;
[0033] A judging module is configured to judge whether the humidity sensor is abnormal and whether the precision 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 action frequency of the liquid level switch.
[0034] The embodiment of the present application further provides an air conditioner, which comprises a liquid level switch, a humidity sensor and the humidity sensor detection device.
[0035] The embodiment of the present application further provides a nonvolatile computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the humidity sensor detection method.
[0036] The water full detection function of the air conditioner is used as the feedback of the humidity sensor according to the technical scheme of the present application, and 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, whether the humidity sensor is abnormal and whether the precision is reduced can be judged in time, so that the situation that the humidity sensor detection result is inaccurate can be found in time and effectively, and the humidity sensor is detected. BRIEF DESCRIPTION OF DRAWINGS
[0037] Figure 1 is a flow chart of the humidity sensor detection method provided by the embodiment of the present application;
[0038] Figure 2 is a structural schematic diagram of the humidity sensor detection provided by the embodiment of the present application;
[0039] Figure 3 is a flow chart of the humidity sensor detection provided by the embodiment of the present application;
[0040] Figure 4 is a waveform schematic diagram of the output level of the liquid level switch provided by the embodiment of the present application;
[0041] Figure 5 is a structural block diagram of the humidity sensor detection device provided by the embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the objectives, technical schemes and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.
[0043] It should be noted that the terms "first", "second", and the like in the description and in the claims of the present application and the drawings are used to distinguish similar objects and are not necessarily used to describe a particular sequential or chronological order. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a list of steps or units does not necessarily limit to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to such processes, methods, products or devices.
[0044] It should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that described herein.
[0045] It should be understood that the term "and / or" used herein is only a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, the character " / " herein generally represents that the associated objects before and after are in an "or" relationship.
[0046] The optional embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0047] Embodiment 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 indoor humidity, and the water full detection function of the air conditioner is used as feedback of the humidity sensor, which can effectively detect whether the humidity sensor is abnormal and whether the detection accuracy of the humidity sensor is reduced in time.
[0049] The air conditioner without a drain pipe cannot automatically drain water. When the air conditioner is in a cooling operation, the evaporator absorbs heat and evaporates to generate condensate water, which is generally stored by a water storage device (such as a water tank or a water collecting groove) below the evaporator. In order to prevent the condensate water from overflowing the water storage device and affecting the normal operation of the air conditioner, water fullness detection needs to be performed. The water fullness detection function is realized by a switch signal fed back by a liquid level switch. The liquid level switch is arranged in the water storage device of the air conditioner, and is used to detect the water accumulation condition in the air conditioner. Specifically, when the water accumulation in the air conditioner is below a 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 a second height threshold, the liquid level switch is turned on and outputs a high-level signal, and then performs an alternating switching action, and the action frequency of the liquid level switch is higher and higher with the increase of the water accumulation. During the alternating switching action, the liquid level switch outputs a high-level signal when it is in an open state, and outputs a low-level signal when it is in a closed state. The first height threshold is less than or equal to the second height threshold.
[0050] The higher the humidity is, the more likely the water accumulation in the air conditioner is, and the more frequent the action of the liquid level switch is; on the contrary, the lower the humidity is, the less likely the water accumulation in the air conditioner is, and the less frequent the action of the liquid level switch is. Therefore, the state of the liquid level switch can be used to detect the humidity sensor.
[0051] Figure 1 A flowchart of a humidity sensor detection method provided by an embodiment of the present application is shown in FIG. 1. Figure 1 The method comprises the following steps:
[0052] S101, during the operation of the air conditioner, determining a current working mode of the air conditioner, and acquiring a current humidity collection value of a humidity sensor and a current state of a liquid level switch, wherein the liquid level switch is used to detect the water accumulation height in the air conditioner.
[0053] S102, judging whether the humidity sensor is abnormal and whether the precision of the humidity sensor is decreased according to 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 the humidity and the action frequency of the liquid level switch.
[0054] The working mode of the air conditioner comprises a blowing mode, a heating mode, a cooling mode and a dehumidifying mode, and different working modes correspond to respective relationship information.
[0055] The state of the liquid level switch comprises an on-off state and an action frequency. The on-off state comprises an open state and a closed state. The liquid level switch outputs high and low level signals in real time, and the frequency (or period) of the signals can be calculated by continuously receiving the signals, that is, the action frequency (also referred to as the on-off frequency) of the liquid level switch.
[0056] After the air conditioner is started, the humidity sensor starts collecting humidity, and the liquid level switch starts detecting the liquid level. According to the liquid level, the liquid level switch is in the corresponding open state or closed state and outputs the corresponding level signal. For each humidity collection value of the humidity sensor, the current state of the liquid level switch and the relationship information in the current working mode are combined to determine whether the humidity sensor is abnormal and whether the precision is reduced, so as to realize the timely detection of the humidity sensor.
[0057] In this embodiment, the water full detection function of the air conditioner is used 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 determined whether the humidity sensor is abnormal and whether the precision is reduced, so as to timely and effectively find the case that the humidity sensor detection result is inaccurate, and the detection of the humidity sensor is realized.
[0058] The above relationship information includes: first relationship information when the liquid level switch remains in the closed state, and second relationship information when the liquid level switch performs alternating switching action.
[0059] When the liquid level switch remains in the closed state, the liquid level switch action frequency is 0, so the liquid level switch action frequency in the first relationship information is fixed as 0 and includes multiple humidities. When the liquid level switch performs alternating switching action, multiple humidities and their corresponding liquid level switch action frequencies can be recorded in real time. The humidities in the first relationship information are relatively small, and the humidities in the second relationship information are relatively large. Specifically, 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.
[0060] In one embodiment, 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, whether the humidity sensor is abnormal and whether the precision is reduced is determined, including:
[0061] If the liquid level switch currently remains in the closed state (i.e. the liquid level switch continuously outputs a low level signal and is in a normally closed state), whether the humidity sensor is abnormal is determined according to the current humidity collection value and the first relationship information corresponding to the current working mode.
[0062] If the liquid level switch currently appears in the open state (i.e. the liquid level switch alternately outputs high and low level signals), whether the humidity sensor is abnormal and whether the precision of the humidity sensor is reduced in the case that the humidity sensor is not abnormal is determined 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.
[0063] The embodiment utilizes the relationship information corresponding to the current state of the liquid level switch to determine whether the humidity sensor is abnormal and the accuracy, and can achieve timely and reliable detection of the humidity sensor.
[0064] It should be noted that the liquid level switch remains in the closed state, indicating that the humidity is low, i.e., the humidity range in the first relationship information is narrow, and therefore the accuracy of the humidity sensor is not determined when the liquid level switch remains in the closed state, and only whether the humidity sensor is abnormal is determined.
[0065] (1) Determine 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, whether the humidity sensor is abnormal is determined, including: determining 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.
[0067] When the liquid level switch remains in the closed state, it indicates 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 is out of line and directly report an abnormality. If the humidity collection value is greater than the maximum humidity in the first relationship information at this time, the liquid level switch should theoretically be in an open state, but in fact the liquid level switch remains in the closed state, and thus it can be determined that the humidity sensor is abnormal.
[0068] In the embodiment, under the condition that the liquid level switch remains in the closed state, whether the humidity sensor is abnormal can be determined in a timely and effective manner according to the current humidity collection value and the first relationship information corresponding to the current working mode.
[0069] (2) Determine whether the humidity sensor is abnormal based on the second relationship information
[0070] 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 is determined whether the humidity sensor is abnormal, including: determining 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.
[0071] When the liquid level switch is in an open state, it indicates that there is more water in the air conditioner and the indoor humidity is also higher. If the humidity collection value is less than the minimum humidity in the second relationship information at this time, in theory, the liquid level switch should remain closed, but in fact, the liquid level switch is in an open state, so 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 reflect that the humidity collection value is too large and directly report an abnormality.
[0072] In the case that the liquid level switch is in an open state, 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, the present embodiment can timely and effectively determine whether the humidity sensor is abnormal.
[0073] (3) Determine whether the precision of the humidity sensor decreases based on the second relationship information
[0074] According to the humidity collection value, the current action frequency of the liquid level switch, and the second relationship information corresponding to the current working mode, it is determined whether the precision of the humidity sensor decreases in the case that the humidity sensor is not abnormal, including: 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 as a 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 a preset precision value, it is determined that the precision of the humidity sensor decreases.
[0075] The preset precision value can be set in advance according to the actual situation, and the preset precision value is the acceptable detection precision.
[0076] In the case that the liquid level switch is in an 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, the present embodiment can timely and effectively determine whether the precision of the humidity sensor decreases.
[0077] Further, after determining that the accuracy of the humidity sensor is reduced, the method further comprises: calculating a sum of the difference value and a current humidity compensation value to obtain a new humidity compensation value, and using the new humidity compensation value to compensate the current humidity collection value and subsequent humidity collection values; and subtracting each humidity in the second relationship information corresponding to the current working mode by the difference value to update 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 initially set as 0 by default. When it is first determined that the accuracy of the humidity sensor is reduced, the humidity compensation value is adjusted and is no longer 0 but a positive number or a negative number. If it is again determined that the accuracy of the humidity sensor is reduced, the humidity compensation value is again adjusted. That is, the humidity compensation value is adjusted each time it is determined that the accuracy of the humidity sensor is reduced. Specifically, the sum of the humidity collection value and the humidity compensation value is calculated to obtain an actual humidity value.
[0079] The second relationship information corresponding to the current working mode is updated each time it is determined that the accuracy of the humidity sensor is reduced. Since the new humidity compensation value has been determined, the humidity sensor will not continue to be reduced for a period of time. The humidity compensation value can be used to obtain an accurate actual humidity value. Therefore, each humidity in the second relationship information is subtracted by the difference value to update the second relationship information, so that it is considered that the accuracy of the humidity sensor is not reduced in the subsequent period of time, thereby avoiding the need to calculate the humidity compensation value each time, avoiding unnecessary repeated operations, and saving computing resources and processing resources.
[0080] The embodiment timely adjusts the humidity compensation value when the accuracy of the humidity sensor is reduced to ensure that an accurate actual humidity value is obtained and the humidity detection accuracy is improved. The second relationship information is updated to avoid the need to calculate the humidity compensation value each time, avoid unnecessary repeated operations, and save computing resources and processing resources.
[0081] Further, the humidity corresponding to the current action frequency of the liquid level switch in the second relationship information corresponding to the current working mode is determined by: if the current action frequency of the liquid level switch is not recorded in the second relationship information corresponding to the current working mode, directly storing the current action frequency of the liquid level switch and the current humidity collection value corresponding thereto 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 to ensure the accuracy and reliability of the second relationship information, and thus the detection of the humidity sensor is more reliable.
[0082] In one embodiment, the method further comprises: recording the humidity value collected by the humidity sensor when the liquid level switch remains closed state to establish the first relationship information corresponding to any working mode when the air conditioner is first operated in any working mode, and recording the action frequency of the liquid level switch and the humidity value collected by the humidity sensor after the liquid level switch appears open state to establish the second relationship information corresponding to the working mode. Wherein, 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 closed state, and the first relationship information is established when the liquid level switch appears open state or the data in the first relationship information reaches the preset maximum data length; the second relationship information is recorded when the liquid level switch appears open state, and the second relationship information is considered to be established when the liquid level switch remains closed state and the humidity value collected by the humidity sensor belongs to the humidity range in the first relationship information. Then, with the operation of the air conditioner, the first relationship information and the second relationship information can be supplemented and improved. The maximum data length is set to ensure that the recorded data is sufficient.
[0084] The embodiment collects data when the air conditioner is just put into operation and establishes the relationship information corresponding to each working mode respectively, which is used as the basis for detecting and humidity compensation of the humidity sensor during the operation of the air conditioner, so as to timely and effectively judge whether the humidity sensor is abnormal and the precision is reduced.
[0085] In actual application, when the air conditioner is just put into operation, the humidity sensor is normal and the precision meets the requirements, so the humidity sensor can not be detected in the early stage, and the humidity sensor is detected after the relationship information is established or the air conditioner is put into operation for a certain time.
[0086] Of course, the relationship information corresponding to each working mode can also be pre-stored according to experiments when the air conditioner is factory-finished, which is used as the preliminary basis for detecting the humidity sensor. Subsequently, with the operation of the air conditioner, new relationship information is gradually stored, and the new relationship information is used to detect the humidity sensor, so as to ensure that the relationship information is more consistent with the actual operation environment of the air conditioner, and the detection of the humidity sensor is more reliable.
[0087] Embodiment 2
[0088] This embodiment describes the above-mentioned humidity sensor detection method in combination with a specific example, however, 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 same or corresponding term explanations as the above-mentioned embodiments are not described herein.
[0089] AsFigure 2 As shown in the structural diagram detected by the humidity sensor, it comprises: air conditioner main control board 10, humidity sensor 20 and liquid level switch 30. The air conditioner main control board 10 is the total control center of the air conditioner, which is used for receiving, storing and processing data, and can control the devices in the air conditioner. The humidity sensor 20 is used to detect the 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 water height in the air conditioner.
[0090] The humidity sensor 20 is connected with the air conditioner main control board 10, and the humidity value collected is sent to the air conditioner main control board 10 (for example, sent by AD or I2C mode).
[0091] The liquid level switch 30 is connected with the air conditioner main control board 10, which will send signals to the air conditioner main control board 10 in real time, and the air conditioner main control board 10 records the opening and closing state and action frequency of the liquid level switch.
[0092] As shown in the structural diagram detected by the humidity sensor, it comprises: air conditioner main control board 10, humidity sensor 20 and liquid level switch 30. The air conditioner main control board 10 is the total control center of the air conditioner, which is used for receiving, storing and processing data, and can control the devices in the air conditioner. The humidity sensor 20 is used to detect the 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 water height in the air conditioner. Figure 3 As shown in the flow chart of the humidity sensor detection, it comprises the following steps:
[0093] S301, the air conditioner runs.
[0094] S302, the air conditioner main control board 10 receives the data sent by the humidity sensor 20 and the liquid level switch 30, and collects data.
[0095] S303, the air conditioner main control board 10 establishes a relationship table according to the collected data, which can reflect the corresponding relationship between humidity and liquid level switch action frequency, and is used for detecting the humidity sensor and humidity compensation.
[0096] The relationship table in any working mode comprises: relationship table 1 (i.e. the first relationship information described above) when the liquid level switch keeps closed state, and relationship table 2 (i.e. the second relationship information described above) when the liquid level switch alternately switches.
[0097] S304, the current humidity collection value of the humidity sensor 20 is obtained.
[0098] S305, combined with the current state of the liquid level switch 30, it is judged whether the current humidity collection value matches the relationship table data in the current working mode.
[0099] If the liquid level switch 30 keeps closed state at present, and the current humidity collection value matches the data in the relationship table 1 (i.e. the current humidity collection value is in the humidity range of the relationship table 1), it means that the humidity sensor is normal, and the humidity is returned to S304 for continuous detection.
[0100] If the liquid level switch 30 is currently in the closed state and the current humidity collection value does not match the data in the relationship table 1 (i.e. 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 S306 is entered.
[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 (i.e. the current humidity collection value is within the humidity range of the relationship table 2), it indicates that the humidity sensor is not abnormal, and S307 is entered to determine whether the accuracy of the humidity sensor has decreased.
[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 (i.e. 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 S306 is entered.
[0103] S306, output a humidity sensor abnormality prompt message.
[0104] S307, in the case where the liquid level switch 30 is in the open state and the humidity sensor is not abnormal, determine the humidity corresponding to the current action 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 a 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 collection value and the humidity compensation value is calculated to obtain the current actual humidity value, and the humidity compensation value is used to compensate for subsequent humidity collection 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 taken as the current actual humidity value.
[0107] S309, refresh the relationship table 2, specifically, subtract the above difference from each humidity in the relationship table 2.
[0108] For example, the 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%], and 0%≤A%<B%<C%≤100%. The liquid level switch in the first relationship information remains in the closed state and continuously outputs a low level, i.e. the action frequency of the liquid level switch is fixed at 0. The liquid level switch in the second relationship information alternately switches and the action frequency becomes higher and higher, and outputs a high level when the liquid level switch is in the open state and outputs a low level when the liquid level switch is in the closed state. 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 humidity corresponding to the origin is A%, the humidity corresponding to the dotted line is B%, and the humidity corresponding to the waveform end point is C%.
[0109] If the relationship information is represented by a coordinate graph, the horizontal axis represents the liquid level switch action frequency, the vertical axis represents the humidity, the first relationship information is a straight line coinciding 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 coordinates of the second relationship information are (f1, B%), and the end point coordinates are (f2, C%), f1 < f2, and B% < C%.
[0110] Taking the case that the air conditioner is currently running in the heating mode, the liquid level switch remains in the closed state and always sends a low-level signal to the air conditioner main control board, while the air conditioner main control board records the humidity value collected by the humidity sensor and establishes relationship table 1; if the liquid level switch appears in the open state, the air conditioner main control board records the liquid level switch action frequency, while the air conditioner main control board records the humidity value collected by the humidity sensor and establishes relationship table 2. In the heating mode, when the liquid level switch remains in the low level, if the current humidity collection value of the humidity sensor is not within the humidity range of relationship table 1, it is determined that the humidity sensor is abnormal; when the liquid level switch appears in the open state, if the humidity collection value of the humidity sensor is not within the humidity range of relationship table 2, it is determined that the humidity sensor is abnormal. If the liquid level switch appears in the open state and the humidity sensor is not abnormal, further calculate the difference between the corresponding humidity in relationship table 2 and the current humidity collection value based on the current action frequency of the liquid level switch, if the absolute value of the difference is greater than a preset precision value, it is considered that the detection precision of the humidity sensor is decreased, the humidity compensation value is adjusted and relationship table 2 is refreshed.
[0111] In this embodiment, the water full detection function of the air conditioner is taken as the feedback of the humidity sensor, during the operation of the air conditioner, according to the current working mode corresponding relationship information, the current humidity collection value of the humidity sensor and the current state of the liquid level switch, it can be determined in time whether the humidity sensor is abnormal and whether the precision is decreased, so that the situation that the humidity sensor detection result is not accurate can be found in time and effectively, and the detection of the humidity sensor is realized. In the case that the liquid level switch appears 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 determined in time and effectively whether the precision of the humidity sensor is decreased. In the case that the precision of the humidity sensor is decreased and leads to inaccurate detection result, the humidity compensation value is adjusted in time to ensure that the actual humidity value is relatively accurate, improve the humidity detection precision, and the second relationship information is refreshed, avoiding calculating the humidity compensation value once every time, avoiding unnecessary repeated operation, saving the calculation resources and processing resources.
[0112] Embodiment 3
[0113] Based on the same inventive concept, the embodiment provides a humidity sensor detection device applied to an air conditioner and used for implementing the humidity sensor detection method in the above embodiment. The humidity sensor detection device can be realized by software and / or hardware, and can be generally integrated into a main control board of the air conditioner.
[0114] Figure 5 is a structural block diagram of the humidity sensor detection device provided by the embodiment of the present application, as shown in the figure, the humidity sensor detection device comprises: Figure 5
[0115] The acquisition module 51 is configured to determine a current working mode of the air conditioner during operation of the air conditioner, and acquire a current humidity collection value of the humidity sensor and a current state of a liquid level switch, wherein the liquid level switch is used to detect a water height in the air conditioner.
[0116] The judgment module 52 is configured to judge whether the humidity sensor is abnormal and whether the precision of the humidity sensor is decreased according to 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 a corresponding relationship between humidity and an action frequency of the liquid level switch.
[0117] Optionally, the relationship information comprises first relationship information when the liquid level switch keeps a closed state, and second relationship information when the liquid level switch performs an alternating switching action.
[0118] The judgment module 52 comprises:
[0119] The first judgment unit is configured to, if the liquid level switch currently keeps a closed state, 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.
[0120] The second judgment unit is configured to, if the liquid level switch currently appears an open state, judge whether the humidity sensor is abnormal according to the current humidity collection value, a current action frequency of the liquid level switch, and the second relationship information corresponding to the current working mode, and judge whether the precision of the humidity sensor is decreased in the case that the humidity sensor is not abnormal.
[0121] Optionally, the first judgment unit comprises:
[0122] The first judgment subunit is configured to judge whether the current humidity collection value matches humidity in the first relationship information corresponding to the current working mode.
[0123] The first determining sub-unit is configured to determine that the humidity sensor is normal 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 determining sub-unit is configured 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 comprises:
[0126] The second judging sub-unit is configured to judge whether the current humidity collection value matches the humidity in the second relationship information corresponding to the current working mode.
[0127] The third determining sub-unit is configured to determine that the humidity sensor is normal 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 determining sub-unit is configured 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 comprises:
[0130] The fifth determining sub-unit is configured to determine, as a target humidity, the humidity corresponding to the current action frequency of the liquid level switch in the second relationship information corresponding to the current working mode.
[0131] The calculating sub-unit is configured to calculate a difference between the target humidity and the current humidity collection value.
[0132] The sixth determining sub-unit is configured to determine that the accuracy of the humidity sensor decreases if an absolute value of the difference is greater than a preset accuracy value.
[0133] Optionally, the humidity sensor detection apparatus further comprises:
[0134] The calculating module is configured to, after determining that the accuracy of the humidity sensor decreases, calculate a sum of the difference and a 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 by using the new humidity compensation value.
[0135] The refreshing module is configured to subtract the difference from each humidity in the second relationship information corresponding to the current working mode to refresh the second relationship information after determining that the accuracy of the humidity sensor decreases.
[0136] Optionally, the second judging unit further comprises a storage sub-unit, configured to directly store the current action frequency of the liquid level switch and the current humidity collection value corresponding to the current action frequency into 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 comprises:
[0138] The recording module is configured to record the humidity value collected by the humidity sensor when the liquid level switch keeps in the closed state to establish the first relationship information corresponding to the working mode and record the action frequency of the liquid level switch after the liquid level switch appears in the opened state and the humidity value collected by the humidity sensor to establish the second relationship information corresponding to the working mode when the air conditioner is operated in any working mode for the first time; 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 humidity sensor detection device described above can execute the humidity sensor detection method provided in the embodiments of the present application and has the corresponding function modules and beneficial effects of the execution method. Technical details not described in detail in the embodiments can be referred to the humidity sensor detection method provided in the embodiments of the present application.
[0140] The device embodiments described above are only schematic and the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., can be located in one place or distributed on multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0141] Embodiment 4
[0142] The embodiment provides an air conditioner, which comprises a liquid level switch, a humidity sensor and the humidity sensor detection device described in the above embodiments.
[0143] Embodiment 5
[0144] The embodiment provides a non-volatile computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the humidity sensor detection method described in the above embodiments.
[0145] Embodiment 6
[0146] The embodiment provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the humidity sensor detection method in the above embodiment when executing the computer program.
[0147] Those skilled in the art can clearly understand the implementation of the embodiments by means of software and the necessary general hardware platform, and of course, the embodiments can also be implemented by hardware. Based on such understanding, the above technical solutions 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 a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method described in each embodiment or some parts of the embodiment.
[0148] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A humidity sensor detection method applied to an air conditioner, characterized by, The method comprises the following steps: During the operation of the air conditioner, the current working mode of the air conditioner is determined, and a current humidity collection value of a humidity sensor and a current state of a liquid level switch are obtained, wherein the liquid level switch is used to detect the water height 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 precision is reduced, wherein the relationship information represents the corresponding relationship between humidity and the action frequency of the liquid level switch; 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 alternating switching actions; 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 precision is reduced, comprising: If the liquid level switch currently remains in a closed state, it is determined 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 currently appears in an open state, it is determined whether the humidity sensor is abnormal and whether the precision of the humidity sensor is reduced in the case that 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.
2. The method of claim 1, wherein, According to the current humidity collection value and the first relationship information corresponding to the current working mode, it is determined whether the humidity sensor is abnormal, comprising: It is determined 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.
3. The method of claim 1, wherein, 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 is determined whether the humidity sensor is abnormal, comprising: It is determined 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.
4. The method of claim 1, wherein, The method comprises the following steps: In the second relationship information corresponding to the current working mode, the humidity corresponding to the current action frequency of the liquid level switch is determined as a target humidity; The difference between the target humidity and the current humidity collection value is calculated; If the absolute value of the difference is greater than a preset precision value, it is determined that the precision of the humidity sensor is decreased.
5. The method of claim 4, wherein, After determining that the precision of the humidity sensor is decreased, the method further comprises the following steps: The sum of the difference and the current humidity compensation value is calculated to obtain a new humidity compensation value, so as to compensate the current humidity collection value and subsequent humidity collection values by using the new humidity compensation value; Each humidity in the second relationship information corresponding to the current working mode is subtracted by the difference, so as to refresh the second relationship information.
6. The method of claim 4, wherein, In the second relationship information corresponding to the current working mode, the humidity corresponding to the current action frequency of the liquid level switch is determined, comprising the following steps: If the current action frequency of the liquid level switch is not recorded in the second relationship information corresponding to the current working mode, the current action frequency of the liquid level switch and the current humidity collection value corresponding thereto are directly stored into the second relationship information corresponding to the current working mode.
7. The method according to any one of claims 1 to 6, characterized in that, The method further comprises the following steps: When the air conditioner is first operated in any working mode, the humidity value collected by the humidity sensor when the liquid level switch keeps closed is recorded to establish the first relationship information corresponding to the working mode, and the action frequency of the liquid level switch after the liquid level switch appears open and the humidity value collected by the humidity sensor are recorded to establish the 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.
8. A humidity sensor detection device applied to an air conditioner, characterized in that, The method comprises the following steps: An acquisition module is configured to determine the current working mode of the air conditioner and acquire the current humidity collection value of the humidity sensor and the current state of the liquid level switch during the operation of the air conditioner, wherein the liquid level switch is configured to detect the water height in the air conditioner; A judgment module is configured to judge whether the humidity sensor is abnormal and whether the precision of the humidity sensor is decreased 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 action frequency of the liquid level switch; The relationship information comprises first relationship information when the liquid level switch keeps closed and second relationship information when the liquid level switch performs alternating switching action; The judgment module comprises the following steps: A first judgment unit is configured to, if the liquid level switch currently keeps closed, 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; The second judging unit is configured to, if the liquid level switch is currently in an open state, judge whether the humidity sensor is abnormal according to the current humidity collection value, the current action frequency of the liquid level switch, and second relationship information corresponding to the current working mode, and judge whether the precision of the humidity sensor is decreased in the case that the humidity sensor is not abnormal.
9. An air conditioner characterized by comprising: The humidity sensor detection device comprises: The liquid level switch, the humidity sensor, and the humidity sensor detection device of claim 8.
10. A non-transitory computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the humidity sensor detection method of any one of claims 1 to 7.
Citation Information
Patent Citations
Sensor detection method and device, electronic equipment, storage medium and product
CN118009469A
Humidity sensor detection method, detection equipment, storage medium and air conditioner
CN118089202A