Method, apparatus, electronic device and storage medium for controlling air conditioner

By detecting refrigerant leaks and calculating the target operating frequency and recovery time based on ambient temperature, the system controls the refrigerant recovery of the air conditioner, solving the problems of air conditioner compressor shutdown due to overload and refrigerant leaks, thus achieving more efficient refrigerant recovery and cost reduction.

CN116678092BActive Publication Date: 2026-05-12QINGDAO HAIER AIR CONDITIONER GENERAL CORP LTD +3
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
QINGDAO HAIER AIR CONDITIONER GENERAL CORP LTD
Filing Date
2023-05-29
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

When the ambient temperature is high, the compressor of existing air conditioners may shut down before the refrigerant is fully recovered due to overload operation, and refrigerant leakage leads to waste and environmental pollution.

Method used

By detecting refrigerant leaks and obtaining the ambient temperature, the target operating frequency and recovery time are calculated based on the frequency limiting coefficient database and preset algorithms. The valve operation is then controlled to recover the refrigerant, reducing the possibility of compressor shutdown and decreasing the amount of refrigerant leakage.

Benefits of technology

It effectively reduces the risk of compressor shutdown due to excessively high ambient temperatures, reduces refrigerant leakage, and lowers air conditioning operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116678092B_ABST
    Figure CN116678092B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of household electrical appliances, and discloses a method for controlling an air conditioner, which comprises the following steps: detecting whether refrigerant leaks; acquiring an external environment temperature in the case that the refrigerant leaks; acquiring a target running frequency and a running time according to the external environment temperature; and controlling the air conditioner to recover the refrigerant according to the target running frequency and the recovery time. The target running frequency and the running time can change with the change of the external environment temperature, so that the possibility that the compressor stops before the refrigerant recovery is completed can be reduced due to the excessively high external environment temperature. Meanwhile, the refrigerant can be recovered in the case that the refrigerant leaks, so that the refrigerant leakage amount can be reduced, and the use cost of the air conditioner can be reduced. The application further discloses a device for controlling an air conditioner, an electronic device and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of home appliance technology, such as a method, apparatus, electronic device, and storage medium for controlling an air conditioner. Background Technology

[0002] Currently, air conditioners rely on refrigerant for heat transfer. A well-performing air conditioner has a fixed refrigerant charge; too much or too little refrigerant will reduce its performance. Air conditioners involve numerous welded pipes, and the indoor and outdoor units are connected by connecting pipes. Therefore, poor welding or loose connections can cause refrigerant leaks. In existing systems, when a refrigerant leak is detected, the air conditioner only issues a warning signal. Repair personnel often need to locate the leak, weld it, re-evacuate the system, and recharge the refrigerant. If repair personnel cannot arrive promptly, all the refrigerant in the system will leak into the atmosphere, causing waste and environmental pollution. Therefore, upon detecting a refrigerant leak, current technology typically controls the compressor to run at a preset frequency for a preset time to recover the refrigerant.

[0003] In the process of implementing the embodiments of this disclosure, at least the following problems were found in the related art:

[0004] When the ambient temperature is high, the compressor may operate under overload, causing it to shut down before the refrigerant is fully recovered.

[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0006] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.

[0007] This disclosure provides a method, apparatus, electronic device, and storage medium for controlling an air conditioner to reduce the possibility of the compressor shutting down before refrigerant recovery is complete due to excessively high ambient temperatures.

[0008] In some embodiments, the method for controlling an air conditioner includes: detecting whether a refrigerant leak has occurred; in the event of a refrigerant leak, acquiring the ambient temperature; acquiring a target operating frequency and operating time based on the ambient temperature; and controlling the air conditioner to recover refrigerant based on the target operating frequency and recovery time.

[0009] In some embodiments, obtaining the target operating frequency and operating time based on the ambient temperature includes: obtaining the target operating frequency based on the ambient temperature; and obtaining the recovery time based on the target operating frequency.

[0010] In some embodiments, obtaining the target operating frequency based on the ambient temperature includes: performing a matching operation in a preset frequency limiting coefficient database based on the ambient temperature to obtain a frequency limiting coefficient corresponding to the ambient temperature; the frequency limiting coefficient database stores the correspondence between the ambient temperature and the frequency limiting coefficient; obtaining the rated cooling frequency of the air conditioner; and calculating the target operating frequency using the rated cooling frequency and the frequency limiting coefficient corresponding to the ambient temperature according to a first preset algorithm.

[0011] In some embodiments, obtaining the recovery time based on the target operating frequency includes: calculating the recovery time using the rated cooling frequency and the target operating frequency according to a second preset algorithm.

[0012] In some embodiments, the air conditioner includes an indoor unit and an outdoor unit, with a liquid pipe and a gas pipe for transmitting refrigerant connected between the indoor unit and the outdoor unit. A first valve is provided on the liquid pipe, and a second valve is provided on the gas pipe. Controlling the air conditioner to recover refrigerant according to a target operating frequency and recovery time includes: controlling the first valve to close and controlling the air conditioner to operate in cooling mode according to the target operating frequency; controlling the second valve to close after the recovery time and controlling the air conditioner to stop operating.

[0013] In some embodiments, the air conditioner includes a first refrigerant sensor disposed at the connection between the liquid pipe and the indoor unit; and / or, the first refrigerant sensor is disposed at the connection between the gas pipe and the indoor unit, and the first refrigerant sensor generates a first refrigerant signal when it detects refrigerant; detecting whether a refrigerant leak has occurred includes: determining that a refrigerant leak has occurred upon receiving the first refrigerant signal.

[0014] In some embodiments, the air conditioner includes a second refrigerant sensor disposed inside the indoor unit, and the second refrigerant sensor generates a second refrigerant signal when it detects refrigerant; detecting whether a refrigerant leak has occurred includes: determining that a refrigerant leak has occurred upon receiving the second refrigerant signal.

[0015] In some embodiments, the air conditioner includes a fan, and after determining that a refrigerant leak has occurred, it further includes controlling the fan to operate at maximum airflow.

[0016] In some embodiments, the device for controlling the air conditioner includes: a detection module configured to detect whether a refrigerant leak has occurred; a first acquisition module configured to acquire the ambient temperature in the event of a refrigerant leak; a second acquisition module configured to acquire a target operating frequency and operating time based on the ambient temperature; and a control module configured to control the air conditioner to recover refrigerant based on the target operating frequency and recovery time.

[0017] In some embodiments, the electronic device includes a processor and a memory storing program instructions, the processor being configured to execute the method for controlling an air conditioner described above when the program instructions are executed.

[0018] In some embodiments, the storage medium stores program instructions that, when executed, perform the method described above for controlling the air conditioner.

[0019] The method, apparatus, electronic device, and storage medium for controlling an air conditioner provided in this disclosure can achieve the following technical effects: By obtaining the target operating frequency and operating time based on the ambient temperature, the target operating frequency and operating time can be changed with changes in the ambient temperature, thereby reducing the possibility of the compressor stopping before the refrigerant is fully recovered due to excessively high ambient temperatures. Simultaneously, in the event of refrigerant leakage, refrigerant recovery can reduce the amount of leakage and lower the cost of air conditioning operation.

[0020] The above general description and the description below are exemplary and illustrative only and are not intended to limit this application. Attached Figure Description

[0021] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations and drawings do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are shown as similar elements. The drawings are not to be scaled. And wherein:

[0022] Figure 1 This is a schematic diagram of a method for controlling an air conditioner provided in an embodiment of this disclosure;

[0023] Figure 2 This is a schematic diagram of another method for controlling an air conditioner provided in an embodiment of this disclosure;

[0024] Figure 3 This is a schematic diagram of another method for controlling an air conditioner provided in an embodiment of this disclosure;

[0025] Figure 4 This is a schematic diagram of another method for controlling an air conditioner provided in an embodiment of this disclosure;

[0026] Figure 5This is a schematic diagram of a device for controlling an air conditioner provided in an embodiment of this disclosure;

[0027] Figure 6 This is a schematic diagram of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0028] To provide a more detailed understanding of the features and technical content of the embodiments of this disclosure, the implementation of the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for illustrative purposes only and are not intended to limit the embodiments of this disclosure. In the following technical description, for ease of explanation, several details are used to provide a full understanding of the disclosed embodiments. However, one or more embodiments may still be implemented without these details. In other cases, well-known structures and devices may be simplified in their depiction to simplify the drawings.

[0029] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this disclosure described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.

[0030] Unless otherwise stated, the term "multiple" means two or more.

[0031] In this embodiment of the disclosure, the character " / " indicates that the objects before and after it are in an "or" relationship. For example, A / B means: A or B.

[0032] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.

[0033] The term "correspondence" can refer to an association or binding relationship. The correspondence between A and B means that there is an association or binding relationship between A and B.

[0034] In this embodiment of the disclosure, the method for controlling the air conditioner is an electronic device, and in some embodiments, the electronic device is, for example, the controller of the air conditioner.

[0035] Combination Figure 1 As shown in the embodiments of this disclosure, a method for controlling an air conditioner is provided, comprising:

[0036] Step S101: The electronic device detects whether refrigerant leakage has occurred.

[0037] In step S102, in the event of a refrigerant leak, the electronic device acquires the ambient temperature.

[0038] In step S103, the electronic device obtains the target operating frequency and operating time based on the ambient temperature.

[0039] In step S104, the electronic device controls the air conditioner to recover refrigerant according to the target operating frequency and recovery time.

[0040] The air conditioning control method provided in this disclosure obtains the target operating frequency and operating time based on the ambient temperature, allowing the target operating frequency and operating time to change with variations in the ambient temperature. This reduces the likelihood of the compressor shutting down before refrigerant recovery is complete due to excessively high ambient temperatures. Furthermore, in the event of refrigerant leakage, refrigerant recovery reduces the amount of leakage and lowers air conditioning operating costs.

[0041] Optionally, the target operating frequency and operating time are obtained based on the ambient temperature, including: obtaining the target operating frequency based on the ambient temperature, and obtaining the recovery time based on the target operating frequency.

[0042] Optionally, obtaining the target operating frequency based on the ambient temperature includes: performing a matching operation in a preset frequency limiting coefficient database based on the ambient temperature to obtain a frequency limiting coefficient corresponding to the ambient temperature; the frequency limiting coefficient database stores the correspondence between ambient temperature and frequency limiting coefficients. The rated cooling frequency of the air conditioner is obtained. The target operating frequency is calculated using a first preset algorithm based on the rated cooling frequency and the frequency limiting coefficient corresponding to the ambient temperature.

[0043] In some embodiments, the target operating frequency is obtained by calculating F = S × H. Here, F is the target operating frequency, S is the frequency limiting coefficient corresponding to the ambient temperature, and H is the customized cooling frequency.

[0044] Optionally, obtaining the target operating frequency based on the ambient temperature includes: performing a matching operation on a preset database based on the ambient temperature to obtain the target operating frequency corresponding to the ambient temperature; the database stores the correspondence between ambient temperatures and target operating frequencies. Specifically, when the ambient temperature is below a critical temperature, the target operating frequency corresponding to the ambient temperature increases as the ambient temperature increases. When the ambient temperature is above the critical temperature, the target operating frequency corresponding to the ambient temperature decreases as the ambient temperature increases.

[0045] In some embodiments, the critical temperature is 40 degrees Celsius.

[0046] In some embodiments, when the ambient temperature is less than or equal to 16 degrees Celsius, the target operating frequency corresponding to that ambient temperature is 40 Hz. When the ambient temperature is greater than 16 degrees Celsius and less than or equal to 22 degrees Celsius, the target operating frequency corresponding to that ambient temperature is 51 Hz. When the ambient temperature is greater than 22 degrees Celsius and less than or equal to 29 degrees Celsius, the target operating frequency corresponding to that ambient temperature is 58 Hz. When the ambient temperature is greater than 29 degrees Celsius and less than or equal to 32 degrees Celsius, the target operating frequency corresponding to that ambient temperature is 68 Hz. When the ambient temperature is greater than 32 degrees Celsius and less than or equal to 40 degrees Celsius, the target operating frequency corresponding to that ambient temperature is 78 Hz. When the ambient temperature is greater than 40 degrees Celsius and less than or equal to 48 degrees Celsius, the target operating frequency corresponding to that ambient temperature is 69 Hz. When the ambient temperature is greater than 48 degrees Celsius and less than or equal to 56 degrees Celsius, the target operating frequency corresponding to that ambient temperature is 51 Hz. When the ambient temperature is above 60 degrees Celsius, the target operating frequency corresponding to that temperature is 51 Hz. When the ambient temperature is below or equal to the critical temperature, increasing the target operating frequency as the ambient temperature rises allows for faster refrigerant recovery. However, when the ambient temperature is above the critical temperature, the compressor is prone to overload. Continuing to operate the compressor at a higher frequency could easily cause it to shut down. Therefore, when the ambient temperature is above the critical temperature, decreasing the target operating frequency as the ambient temperature rises reduces the likelihood of compressor shutdown.

[0047] Optionally, obtaining the recovery time based on the target operating frequency includes: calculating the recovery time using the target operating frequency according to a second preset algorithm.

[0048] In some embodiments, the recovery time is obtained by calculating t = (50 / P) × 35, where t is the recovery time and P is the target operating frequency. This allows the recovery time to change with the target operating frequency. Since refrigerant only enters and exits during the recovery process, the pressure inside the compressor gradually increases. If the compressor operates at a high frequency for an extended period, it may shut down or even explode. Adjusting the recovery time with the target operating frequency reduces the probability of such a dangerous situation occurring.

[0049] Optionally, the air conditioner includes an indoor unit and an outdoor unit, connected by a liquid pipe and a gas pipe for transferring refrigerant. A first valve is installed on the liquid pipe, and a second valve is installed on the gas pipe. The refrigerant recovery process is controlled according to the target operating frequency and recovery time, including: controlling the first valve to close and controlling the air conditioner to operate in cooling mode according to the target operating frequency; and controlling the second valve to close and stopping the air conditioner after the recovery time. This ensures that the refrigerant flows only from the indoor unit to the outdoor unit, and not from the outdoor unit to the indoor unit, thus completing refrigerant recovery.

[0050] Combination Figure 2 As shown, this disclosure provides a method for controlling an air conditioner. The air conditioner includes an indoor unit and an outdoor unit, with a liquid pipe and a gas pipe connected between the indoor and outdoor units for transmitting refrigerant. A first valve is installed on the liquid pipe, and a second valve is installed on the gas pipe. The method involves controlling the air conditioner to recover refrigerant according to a target operating frequency and recovery time. The method includes:

[0051] Step S201: The electronic device detects whether refrigerant leakage has occurred.

[0052] In step S202, in the event of a refrigerant leak, the electronic device acquires the ambient temperature.

[0053] In step S203, the electronic device obtains the target operating frequency and operating time based on the ambient temperature.

[0054] In step S204, the electronic device controls the first valve to close and controls the air conditioning to run at the target operating frequency.

[0055] In step S205, after the recovery time, the electronic device controls the second valve to close and controls the air conditioner to stop operating.

[0056] The air conditioning control method provided in this disclosure obtains the target operating frequency and operating time based on the ambient temperature, allowing the target operating frequency and operating time to change with variations in the ambient temperature. This reduces the likelihood of the compressor shutting down before refrigerant recovery is complete due to excessively high ambient temperatures. Furthermore, in the event of refrigerant leakage, refrigerant recovery reduces the amount of leakage and lowers air conditioning operating costs.

[0057] Optionally, controlling the air conditioner's cooling operation according to a target operating frequency includes: forcibly controlling the air conditioner to cool at the target operating frequency when it is in standby mode; or, controlling the four-way valve to switch directions so that the air conditioner operates in cooling mode when it is in heating mode.

[0058] Optionally, the air conditioner includes a first refrigerant sensor, which is disposed at the connection between the liquid pipe and the indoor unit; and / or, the first refrigerant sensor is disposed at the connection between the gas pipe and the indoor unit. The first refrigerant sensor generates a first refrigerant signal upon detecting refrigerant; detecting whether a refrigerant leak has occurred includes: determining that a refrigerant leak has occurred upon receiving the first refrigerant signal. Because the connections between the liquid pipe and the indoor unit, and between the gas pipe and the indoor unit, are easily affected by the technical limitations of air conditioner installers, refrigerant leaks are prone to occur at these connections if the installer's skills are low. By installing refrigerant sensors at the connections between the gas pipe and the indoor unit or the liquid pipe and the indoor unit, refrigerant leaks can be detected promptly, facilitating timely refrigerant recovery in the event of a leak.

[0059] Optionally, the air conditioner includes a second refrigerant sensor, which is disposed inside the indoor unit. The second refrigerant sensor generates a second refrigerant signal when it detects refrigerant. Detecting whether a refrigerant leak has occurred includes: determining that a refrigerant leak has occurred upon receiving the second refrigerant signal.

[0060] Optionally, the air conditioner includes a fan, and upon receiving the second refrigerant signal, it further includes controlling the fan to operate at maximum airflow. This allows the accumulated refrigerant in the indoor unit to disperse rapidly, thereby eliminating the potential explosion hazard caused by refrigerant buildup in the indoor unit.

[0061] Combination Figure 3 As shown in the embodiments of this disclosure, a method for controlling an air conditioner is provided, comprising:

[0062] In step S301, upon receiving the second refrigerant signal, the electronic device determines that a refrigerant leak has occurred.

[0063] In step S302, the electronic device controls the fan to operate at maximum airflow.

[0064] Step S303: The electronic device acquires the ambient temperature.

[0065] In step S304, the electronic device obtains the target operating frequency and operating time based on the ambient temperature.

[0066] In step S305, the electronic equipment controls the air conditioner to recover refrigerant according to the target operating frequency and recovery time.

[0067] The air conditioning control method provided in this disclosure, by controlling the fan to operate at maximum airflow upon receiving a second refrigerant signal, can rapidly disperse the accumulated refrigerant in the indoor unit, thereby mitigating the risk of explosion due to refrigerant buildup. Simultaneously, by obtaining the target operating frequency and time based on the ambient temperature, the target operating frequency and time can be adjusted according to changes in the ambient temperature, reducing the possibility of the compressor shutting down before refrigerant recovery is complete due to excessively high ambient temperatures. Furthermore, in the event of refrigerant leakage, refrigerant recovery can reduce the amount of leakage and lower air conditioning operating costs.

[0068] Optionally, after detecting a refrigerant leak, the method also includes sending a notification message to the user in the event of a refrigerant leak. The notification message is used to alert the user that a refrigerant leak has occurred inside the air conditioner.

[0069] Combination Figure 4 As shown in the embodiments of this disclosure, a method for controlling an air conditioner is provided, comprising:

[0070] Step S401: The electronic device detects whether refrigerant leakage has occurred.

[0071] In step S402, in the event of a refrigerant leak, the electronic device acquires the ambient temperature.

[0072] In step S403, the electronic device obtains the target operating frequency and operating time based on the ambient temperature.

[0073] In step S404, the electronic equipment controls the air conditioner to recover refrigerant based on the target operating frequency and recovery time.

[0074] Step S405: The electronic device sends a prompt message to the user.

[0075] The air conditioning control method provided in this disclosure obtains the target operating frequency and operating time based on the ambient temperature, allowing these parameters to change with variations in ambient temperature. This reduces the likelihood of the compressor shutting down before refrigerant recovery is complete due to excessively high ambient temperatures. Furthermore, in the event of a refrigerant leak, refrigerant recovery reduces the amount of leakage and lowers air conditioning operating costs. Finally, after refrigerant recovery is complete, a notification message is sent to the user, informing them of the leak and facilitating timely air conditioning repair.

[0076] Combination Figure 5As shown in the figure, this disclosure provides an apparatus 500 for controlling an air conditioner, including: a detection module 501, a first acquisition module 502, a second acquisition module 503, and a control module 504. The detection module 501 is configured to detect whether refrigerant leakage has occurred. The first acquisition module 502 is configured to acquire the ambient temperature in the event of refrigerant leakage. The second acquisition module 503 is configured to acquire a target operating frequency and operating time based on the ambient temperature. The control module 504 is configured to control the air conditioner to recover refrigerant based on the target operating frequency and recovery time.

[0077] The air conditioning control device provided in this disclosure obtains the target operating frequency and operating time based on the ambient temperature, allowing the target operating frequency and operating time to change with variations in the ambient temperature. This reduces the likelihood of the compressor shutting down before refrigerant recovery is complete due to excessively high ambient temperatures. Furthermore, in the event of refrigerant leakage, refrigerant recovery reduces the amount of leakage and lowers air conditioning operating costs.

[0078] Optionally, the first acquisition module is configured to acquire the target operating frequency and operating time based on the ambient temperature in the following ways: acquire the target operating frequency based on the ambient temperature; acquire the recovery time based on the target operating frequency.

[0079] Optionally, obtaining the target operating frequency based on the ambient temperature includes: performing a matching operation in a preset frequency limiting coefficient database based on the ambient temperature to obtain a frequency limiting coefficient corresponding to the ambient temperature; the frequency limiting coefficient database stores the correspondence between ambient temperature and frequency limiting coefficients. The rated cooling frequency of the air conditioner is obtained. The target operating frequency is calculated using a first preset algorithm based on the rated cooling frequency and the frequency limiting coefficient corresponding to the ambient temperature.

[0080] Optionally, the recovery time is obtained based on the target operating frequency, including: calculating the recovery time using the rated cooling frequency and the target operating frequency according to a second preset algorithm.

[0081] Optionally, the air conditioner includes an indoor unit and an outdoor unit, connected by a liquid pipe and a gas pipe for transferring refrigerant. A first valve is installed on the liquid pipe, and a second valve is installed on the gas pipe. The control module is configured to control the air conditioner to recover refrigerant based on a target operating frequency and recovery time by: controlling the first valve to close and controlling the air conditioner to operate in cooling mode according to the target operating frequency; and controlling the second valve to close and stopping the air conditioner after the recovery time.

[0082] Optionally, the air conditioner includes a first refrigerant sensor disposed at the connection between the liquid pipe and the indoor unit; and / or, the first refrigerant sensor is disposed at the connection between the gas pipe and the indoor unit, and the first refrigerant sensor generates a first refrigerant signal when it detects refrigerant; the detection module is configured to detect whether a refrigerant leak has occurred by: determining that a refrigerant leak has occurred upon receiving the first refrigerant signal.

[0083] Optionally, the air conditioner includes a second refrigerant sensor disposed inside the indoor unit, which generates a second refrigerant signal upon detecting refrigerant; the detection module is configured to detect whether a refrigerant leak has occurred by determining that a refrigerant leak has occurred upon receiving the second refrigerant signal.

[0084] Optionally, the air conditioner includes a fan, and the control module is also configured to control the fan to operate at maximum airflow.

[0085] Combination Figure 6 As shown, this disclosure provides an electronic device 600, including a processor 601 and a memory 602. Optionally, the device may further include a communication interface 603 and a bus 604. The processor 601, communication interface 603, and memory 602 can communicate with each other via the bus 604. The communication interface 603 can be used for information transmission. The processor 601 can call logical instructions in the memory 602 to execute the method for controlling an air conditioner described in the above embodiment.

[0086] The electronic equipment provided in this disclosure obtains the target operating frequency and operating time based on the ambient temperature, allowing the target operating frequency and operating time to change with variations in the ambient temperature. This reduces the likelihood of the compressor shutting down before refrigerant recovery is complete due to excessively high ambient temperatures. Furthermore, in the event of refrigerant leakage, refrigerant recovery reduces the amount of leakage and lowers air conditioning operating costs.

[0087] Furthermore, the logic instructions in the aforementioned memory 602 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0088] The memory 602, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor 601 executes functional applications and data processing by running the program instructions / modules stored in the memory 602, that is, it implements the method for controlling the air conditioner in the above embodiments.

[0089] The memory 602 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 602 may include high-speed random access memory and may also include non-volatile memory.

[0090] This disclosure provides a storage medium storing program instructions that, when executed, perform the above-described method for controlling an air conditioner.

[0091] The aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0092] The technical solutions of this disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in this disclosure. The aforementioned storage medium can be a non-transitory storage medium, including: a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media capable of storing program code; it can also be a transient storage medium.

[0093] The foregoing description and accompanying drawings fully illustrate embodiments of this disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terminology used in this application is for describing embodiments only and is not intended to limit the claims. As used in the description of embodiments and claims, the singular forms “a,” “an,” and “the” are intended to equally include the plural forms unless the context clearly indicates otherwise. Similarly, the term “and / or” as used in this application means including one or more of the associated listed items and all possible combinations thereof. Additionally, when used in this application, the term "comprise" and its variations "comprises" and / or "comprising" refer to the presence of stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. Without further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element. In this document, each embodiment may focus on the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, the relevant parts can be referred to the description of the method section.

[0094] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this disclosure. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0095] The methods and products (including but not limited to devices and equipment) disclosed in the embodiments herein can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units may be merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed units may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to implement this embodiment according to actual needs. Furthermore, the functional units in the embodiments of this disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0096] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in a different order than disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

Claims

1. A method for controlling an air conditioner, characterized in that, The air conditioner includes an indoor unit and an outdoor unit, connected by a liquid pipe and a gas pipe for transmitting refrigerant. A first valve is installed on the liquid pipe, and a second valve is installed on the gas pipe. The method includes: Check for refrigerant leaks; In the event of a refrigerant leak, obtain the ambient temperature. The target operating frequency is obtained based on the ambient temperature. The recovery time is obtained by calculating t = (50 / P) × 35, where t is the recovery time and P is the target operating frequency; the target operating frequency is calculated using the rated cooling frequency and the frequency limiting coefficient corresponding to the ambient temperature. Control the first valve to close, and control the air conditioning cooling operation according to the target operating frequency; After the recovery time, control the second valve to close and control the air conditioner to stop operating.

2. The method according to claim 1, characterized in that, The target operating frequency is obtained based on the ambient temperature, including: The frequency limiting coefficient is matched against a preset frequency limiting coefficient database based on the ambient temperature to obtain the frequency limiting coefficient corresponding to the ambient temperature; the frequency limiting coefficient database stores the correspondence between ambient temperature and frequency limiting coefficient. Obtain the rated cooling frequency of the air conditioner; The target operating frequency is obtained by calculating using the rated cooling frequency and the frequency limiting coefficient corresponding to the ambient temperature according to the first preset algorithm.

3. The method according to claim 2, characterized in that, The target operating frequency is obtained by calculating using the rated cooling frequency and a frequency limiting coefficient corresponding to the ambient temperature according to the first preset algorithm, including: The target operating frequency is obtained by calculating F = S × H; where F is the target operating frequency, S is the frequency limiting coefficient corresponding to the external ambient temperature, and H is the customized cold frequency.

4. The method according to claim 1, characterized in that, The air conditioner includes a first refrigerant sensor, which is disposed at the connection between the liquid pipe and the indoor unit; and / or, the first refrigerant sensor is disposed at the connection between the gas pipe and the indoor unit, and the first refrigerant sensor generates a first refrigerant signal when it detects refrigerant. Detecting refrigerant leaks includes: Upon receiving the first refrigerant signal, a refrigerant leak is confirmed.

5. The method according to claim 1, characterized in that, The air conditioner includes a second refrigerant sensor, which is installed inside the indoor unit. The second refrigerant sensor generates a second refrigerant signal when it detects refrigerant. Detecting refrigerant leaks includes: Upon receiving a second refrigerant signal, it was determined that a refrigerant leak had occurred.

6. The method according to claim 5, characterized in that, Air conditioning includes the fan, and after confirming a refrigerant leak, it also includes: Control the fan to operate at maximum airflow.

7. A device for controlling an air conditioner, characterized in that, The air conditioner includes an indoor unit and an outdoor unit, connected by a liquid pipe and a gas pipe for transmitting refrigerant. A first valve is installed on the liquid pipe, and a second valve is installed on the gas pipe. The device includes: The detection module is configured to detect whether refrigerant is leaking; The first acquisition module is configured to acquire the ambient temperature in the event of a refrigerant leak. The second acquisition module is configured to acquire the target operating frequency based on the ambient temperature; and to obtain the recovery time by calculating t = (50 / P) × 35, where t is the recovery time and P is the target operating frequency; wherein, the target operating frequency is calculated using the rated cooling frequency and the frequency limiting coefficient corresponding to the ambient temperature. The control module is configured to control the first valve to close and control the air conditioner to run in cooling mode according to the target operating frequency; after the recovery time, it controls the second valve to close and controls the air conditioner to stop running.

8. An electronic device comprising a processor and a memory storing program instructions, characterized in that, The processor is configured to execute, when running the program instructions, the method for controlling an air conditioner as described in any one of claims 1 to 6.

9. A storage medium storing program instructions, characterized in that, When the program instructions are executed, they perform the method for controlling the air conditioner as described in any one of claims 1 to 6.