Method and device for controlling air conditioner, air conditioner and computer readable storage medium

By obtaining the type of air conditioner fault and performing corresponding processing, such as switching sensors or switching control methods, the problem of air conditioner switching frequently due to line controller failures is solved, improving user experience and air conditioner stability.

CN119914966APending Publication Date: 2025-05-02QINGDAO HAIER INTELLIGENT BUILDING TECHNOLOGY CO LTD +4
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311425547.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

In the prior art, air conditioners frequently switch external controllers when their own line controller is invalid, resulting in a decrease in user experience.

Method used

By obtaining the fault type of the air conditioner, when the fault type is the sensor of the line controller fails, switch the sensor of the air conditioner host for detection; when the fault type is the communication fault of the line controller, obtain the current variable value in the register, and switch other control methods according to the current variable value or control the air conditioner to stop running.

Benefits of technology

It avoids frequent switching of controllers due to line controller failure, improves user experience and improves the stability of air conditioning operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119914966A_ABST
    Figure CN119914966A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent household appliances, and discloses a method for controlling an air conditioner, which comprises the following steps: when the air conditioner breaks down, acquiring the fault type of the air conditioner; and when the fault type is that the sensor of the wire controller breaks down, the sensor of the air conditioner host is switched for detection. When the wire controller breaks down, the fault type judgment link is added, the situation that the controller is switched once the wire controller breaks down, and consequently the controller is switched frequently to control the air conditioner is avoided, and the user experience is improved. The invention further discloses a device for controlling the air conditioner, the air conditioner and a computer readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart home appliances, for example, to a method and device for controlling an air conditioner, an air conditioner, and a computer-readable storage medium. Background Art

[0002] At present, under engineering installation conditions, due to the requirements of the engineering party or the convenience of use, it is not necessary to directly use the control signal of the air handling unit to control the operation of the unit, but to use an external controller. At this time, the controller needs to be converted. In the prior art, there is a lack of control solutions for converting the unit's own wire controller and the external controller, which causes inconvenience in use.

[0003] The related technology discloses a control method, including: determining whether the control signal of the air handling unit's own wire controller is valid; if not, establishing a connection with an external controller; receiving the control signal output by the external controller, and controlling the operation of the air handling unit according to the control signal, which can realize the conversion between the unit's own wire controller and the external controller, thereby improving the versatility of the air handling unit.

[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:

[0005] The relevant technology is used to switch other external controllers to connect when the wire controller itself is invalid, which improves the stability of air conditioner operation. However, in actual application, not all wire controller failures require switching controllers for control. Frequent switching of controllers for control will cause user complaints, thereby reducing user experience.

[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0008] The embodiments of the present disclosure provide a method and apparatus for controlling an air conditioner, an air conditioner, and a computer-readable storage medium, so as to avoid frequent switching of controllers to control the air conditioner when an online controller fails, thereby improving user experience.

[0009] In some embodiments, the method includes: when the air conditioner fails, obtaining the fault type of the air conditioner; when the fault type is a sensor failure of the wire controller, switching the sensor of the air conditioner host to detect.

[0010] Optionally, after obtaining the fault type of the air conditioner, the method further includes: when the fault type is a communication fault of the wire controller, obtaining a current variable value in the register; and switching to other control modes or controlling the air conditioner to stop running according to the current variable value.

[0011] Optionally, obtaining the current variable value in the register includes: assigning an initial value to the variable when the air conditioner is powered on; recording a valid communication module communicating with the air conditioner; and correcting the initial value according to the type of the valid communication module to obtain the current variable value.

[0012] Optionally, the correcting the initial value according to the types of valid communication modules to obtain the current variable value includes: determining the number of types of valid communication modules as the corrected value; and determining the sum of the initial value and the corrected value as the current variable value.

[0013] Optionally, the recording of effective communication modules communicating with the air conditioner includes: recording all communication modules communicating with the air conditioner; obtaining the interval between the previous communication time of each communication module and the current time; and determining that the communication module whose interval time is less than the set time threshold is a valid communication module.

[0014] Optionally, switching to other control modes or controlling the air conditioner to stop running according to the current variable value includes: when the current variable value is greater than the set variable threshold, switching to other control modes; when the current variable value is less than or equal to the variable threshold, controlling the air conditioner to stop running.

[0015] Optionally, after obtaining the fault type of the air conditioner, the method further includes: sending fault information to a user.

[0016] In some embodiments, the device includes: a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for controlling the air conditioner when executing the above-mentioned program instructions.

[0017] In some embodiments, the air conditioner comprises:

[0018] Air conditioner body;

[0019] The above-mentioned device for controlling the air conditioner is installed on the air conditioner body.

[0020] In some embodiments, the computer-readable storage medium stores program instructions, and when the program instructions are executed, the method for controlling the air conditioner is executed.

[0021] The method and device for controlling an air conditioner, the air conditioner, and the computer-readable storage medium provided in the embodiments of the present disclosure can achieve the following technical effects:

[0022] When the air conditioner fails, the fault type of the air conditioner is obtained. When the fault type is a sensor fault of the wire controller, the sensor of the air conditioner host is switched for detection. When the wire controller fails, the fault type judgment link is added to avoid switching the controller as soon as the wire controller fails, resulting in frequent switching of the controller to control the air conditioner, which improves the user experience.

[0023] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:

[0025] Figure 1 is a schematic diagram of a method for controlling an air conditioner provided by an embodiment of the present disclosure;

[0026] Figure 2 is a schematic diagram of another method for controlling an air conditioner provided by an embodiment of the present disclosure;

[0027] Figure 3 is a schematic diagram of another method for controlling an air conditioner provided by an embodiment of the present disclosure;

[0028] Figure 4 is a schematic diagram of another method for controlling an air conditioner provided by an embodiment of the present disclosure;

[0029] Figure 5 is a schematic diagram of a device for controlling an air conditioner provided by an embodiment of the present disclosure;

[0030] Figure 6 It is a schematic diagram of an air conditioner provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0032] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0033] Unless otherwise stated, the term "plurality" means two or more.

[0034] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0035] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

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

[0037] In the embodiments of the present disclosure, smart home appliances refer to home appliances that are formed by introducing microprocessors, sensor technology, and network communication technology into home appliances. They have the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of smart home appliances often relies on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, smart home appliances can be connected to electronic devices to enable users to remotely control and manage the smart home appliances.

[0038] In the disclosed embodiments, the terminal device refers to an electronic device with a wireless connection function. The terminal device can communicate with the above-mentioned smart home appliances by connecting to the Internet, or can communicate with the above-mentioned smart home appliances directly through Bluetooth, WiFi, etc. In some embodiments, the terminal device is, for example, a mobile device, a computer, or a vehicle-mounted device built into a hover car, or any combination thereof. Mobile devices may include, for example, mobile phones, smart home devices, wearable devices, smart mobile devices, virtual reality devices, etc., or any combination thereof, wherein wearable devices include, for example: smart watches, smart bracelets, pedometers, etc.

[0039] At present, under the conditions of engineering installation, due to the requirements of the engineering party or the convenience of use, it is not necessary to directly use the control signal of the air handling unit to control the operation of the unit, but to use an external controller. At this time, the controller needs to be converted. In the prior art, there is a lack of control schemes for the conversion between the unit's own wire controller and the external controller, which causes inconvenience in use. The related art discloses a control method, including: judging whether the control signal of the air handling unit's own wire controller is valid; if not, establishing a connection with the external controller; receiving the control signal output by the external controller, and controlling the operation of the air handling unit according to the control signal, which can realize the conversion between the unit's own wire controller and the external controller, and improve the versatility of the air handling unit. Using the related technology, when the own wire controller is invalid, other external controllers are switched for connection, which improves the stability of the air conditioner operation. However, in actual application, not all wire controller failures require switching controllers for control. Frequent switching of controllers for control will cause user complaints, thereby reducing user experience.

[0040] The disclosed embodiment discloses an air conditioner, including a host, a sensor, a communication module and a processor. Among them, the communication module includes multiple types, for example, a first communication module for communicating with a mobile phone, a second communication module for communicating with a wired controller, a third communication module for communicating with a remote controller, and a fourth communication module for communicating with a centralized controller. The sensor includes multiple types of sensors, for example, a temperature sensor for detecting temperature, a humidity sensor for detecting humidity, a dust sensor for detecting particle concentration, etc. The processor is electrically connected to the above-mentioned electrical components, and is used to control the above-mentioned electrical components to perform actions.

[0041] Based on the above air conditioning structure, such as Figure 1 As shown, the embodiment of the present disclosure provides a method for controlling an air conditioner, comprising:

[0042] S01, when an air conditioner fails, the processor obtains the failure type of the air conditioner.

[0043] S02, when the fault type is a sensor fault of the wire controller, the processor switches the sensor of the air conditioner host to detect.

[0044] Among them, when the air conditioner fails, there will be a specific fault code representing the location where the fault occurs, so that the processor can determine the fault type of the air conditioner based on the location information of the fault code.

[0045] The sensor includes any type of sensor, for example, a temperature sensor for detecting temperature, a humidity sensor for detecting humidity, or a dust sensor for detecting particle concentration.

[0046] Using the method for controlling an air conditioner provided by the embodiment of the present disclosure, the air conditioner host usually has its own sensor. However, since the air conditioner is generally installed far away from the user, there is a certain difference between the environmental parameters collected by the sensor and the environmental parameters perceived by the user. In order to increase the user experience, if the user uses a wire controller to control the air conditioner, the air conditioner uses the sensor on the wire controller as the data source for control, so that the collected environmental parameters are closer to the user experience value. Therefore, if the wire controller fails, it is necessary to determine whether it is a sensor failure. If it is only a sensor failure, the wire controller can still be used to control the air conditioner normally. Therefore, when the air conditioner fails, the fault type of the air conditioner is obtained. When the fault type is a sensor failure of the wire controller, the sensor of the air conditioner host is switched for detection. When the wire controller fails, a fault type judgment link is added to avoid switching the controller as soon as the wire controller fails, resulting in frequent switching of the controller to control the air conditioner, thereby improving the user experience.

[0047] Based on the above air conditioning structure, such as Figure 2 As shown, the embodiment of the present disclosure provides a method for controlling an air conditioner, comprising:

[0048] S01, when an air conditioner fails, the processor obtains the failure type of the air conditioner.

[0049] S02, when the fault type is a sensor fault of the wire controller, the processor switches the sensor of the air conditioner host to detect.

[0050] S21, when the fault type is a communication fault of the wire controller, the processor obtains the current variable value in the register.

[0051] S22: The processor switches to other control modes or controls the air conditioner to stop running according to the current variable value.

[0052] Among them, other control methods include any method for controlling the air conditioner, including remote control, centralized controller control, wireless control by mobile phone application, cloud service control, etc. Moreover, each control method is provided with a corresponding communication module.

[0053] When the fault type is a communication fault of the wire controller, the wire controller cannot communicate with the air conditioner, so that the user cannot control the air conditioner through the wire controller. Therefore, the processor obtains the current variable value in the register and switches to other control modes or controls the air conditioner to stop running according to the current variable value.

[0054] Based on the above air conditioning structure, such as Figure 3 As shown, the embodiment of the present disclosure provides a method for controlling an air conditioner, comprising:

[0055] S01, when an air conditioner fails, the processor obtains the failure type of the air conditioner.

[0056] S02, when the fault type is a sensor fault of the wire controller, the processor switches the sensor of the air conditioner host to detect.

[0057] S31, when the fault type is a communication fault of the wire controller and the air conditioner is powered on, the processor assigns an initial value to the variable.

[0058] S32, the processor records the valid communication modules communicating with the air conditioner.

[0059] S33, the processor modifies the initial value according to the type of the effective communication module to obtain the current variable value.

[0060] S22: The processor switches to other control modes or controls the air conditioner to stop running according to the current variable value.

[0061] When the method for controlling an air conditioner provided by the embodiment of the present disclosure is used, when the fault type is a communication fault of the wire controller, the wire controller cannot communicate with the air conditioner, resulting in the user being unable to control the air conditioner through the wire controller. At this time, the processor needs to determine whether the user has other control methods for controlling the air conditioner. Therefore, when the air conditioner is powered on, the processor assigns an initial value to the variable and records the effective communication module for communicating with the air conditioner. Finally, the initial value is corrected according to the type of the effective communication module to obtain the current variable value to determine whether other methods for controlling the air conditioner can be switched.

[0062] Optionally, the processor corrects the initial value according to the type of the valid communication module to obtain the current variable value, including: the processor determines the number of types of valid communication modules as the correction value; the processor determines the sum of the initial value and the correction value as the current variable value.

[0063] In this way, the processor determines the number of types of valid communication modules as the correction value, and determines the sum of the initial value and the correction value as the current variable value, so that the processor can determine whether the user has other control methods for controlling the air conditioner based on the current variable value. For example, in the register of the processor, the variable n is assigned an initial value of 0. Whenever the processor detects a type of communication module being returned, the variable n is incremented by one, and the number of current valid communication modules can be determined based on the current variable value.

[0064] Optionally, the processor records valid communication modules that communicate with the air conditioner, including: the processor records all communication modules that communicate with the air conditioner; the processor obtains the interval time between the previous communication time of each communication module and the current time; the processor determines that the communication module whose interval time is less than the set time threshold is a valid communication module.

[0065] The processor records all communication modules that communicate with the air conditioner. Specifically, when a device is operated at the user end, the device sends data to the corresponding communication module of the air conditioner, and the communication module then transmits the signal to the processor for processing and reply. At this time, the communication module can be recorded. All communication modules can be recorded by the above method.

[0066] In this way, the processor records all the communication modules that communicate with the air conditioner, and obtains the interval time between the last communication time of each communication module and the current time. Finally, the processor determines that the communication module with an interval time less than the set time threshold is a valid communication module. Since the control method that has not been used for a long time is usually a control method that users are more tired of or more cumbersome, based on the interval time between the last communication and the current time node, the valid communication module is identified from all the communication modules, avoiding switching to the control method that users are tired of and the control is more cumbersome to control the air conditioner, thereby improving the user experience.

[0067] Based on the above air conditioning structure, such as Figure 4 As shown, the embodiment of the present disclosure provides a method for controlling an air conditioner, comprising:

[0068] S01, when an air conditioner fails, the processor obtains the failure type of the air conditioner.

[0069] S02, when the fault type is a sensor fault of the wire controller, the processor switches the sensor of the air conditioner host to detect.

[0070] S21, when the fault type is a communication fault of the wire controller, the processor obtains the current variable value in the register.

[0071] S41, when the current variable value is greater than the set variable threshold, the processor switches to other control modes.

[0072] S42: When the current variable value is less than or equal to the variable threshold, the processor controls the air conditioner to stop running.

[0073] The variable threshold may be 2 or any other set value, for example, 3, 4 or 5.

[0074] Among them, the processor switches to other control modes, including: the processor determines the target control mode according to the frequency of use of other control modes; the processor switches to the target control mode to control the operation of the air conditioner. The processor determines the target control mode according to the frequency of use of other control modes, including: the processor determines the other control mode with the highest frequency of use as the target control mode. In this way, since the other control mode with the highest frequency of use is usually the control mode that users often use and is relatively familiar and convenient, therefore, determining the other control mode with the highest frequency of use as the target control mode enables users to control the air conditioner in a relatively more familiar and convenient control mode, thereby improving the user experience.

[0075] In the method for controlling an air conditioner provided by the embodiment of the present disclosure, when the current variable value is greater than the set variable threshold, it means that the user has other convenient control methods for controlling the air conditioner, so the processor switches to other control methods. When the current variable value is less than or equal to the variable threshold, it means that the user has no other convenient control methods for controlling the air conditioner, so the processor controls the air conditioner to stop running.

[0076] Optionally, after the processor obtains the fault type of the air conditioner, the method further includes: the processor sending fault information to a user.

[0077] In this way, after the processor obtains the fault type of the air conditioner, it sends fault information to the user, making it easy for the user to report the fault after discovering it. Moreover, when the air conditioner fault type is a sensor fault, it does not affect the use of the air conditioner, thereby improving the user experience.

[0078] Combination Figure 5 As shown, an embodiment of the present disclosure provides a device 800 for controlling an air conditioner, including a processor 801 and a memory 802. Optionally, the device may also include a communication interface 803 and a bus 804. The processor 801, the communication interface 803, and the memory 802 may communicate with each other through the bus 804. The communication interface 803 may be used for information transmission. The processor 801 may call the logic instructions in the memory 802 to execute the method for controlling the air conditioner of the above embodiment.

[0079] In addition, the logic instructions in the memory 802 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0080] The memory 802 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 801 executes the function application and data processing by running the program instructions / modules stored in the memory 802, that is, the method for controlling the air conditioner in the above embodiment is implemented.

[0081] The memory 802 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 802 may include a high-speed random access memory and may also include a non-volatile memory.

[0082] Combination Figure 6 As shown, an embodiment of the present disclosure provides an air conditioner 900, including: an air conditioner body, and the above-mentioned device 800 for controlling an air conditioner. The device 800 for controlling an air conditioner is installed on the air conditioner body. The installation relationship described here is not limited to placement inside the air conditioner, but also includes installation connections with other components of the air conditioner, including but not limited to physical connections, electrical connections, or signal transmission connections. It can be understood by those skilled in the art that the device 800 for controlling an air conditioner can be adapted to a feasible air conditioner body, thereby realizing other feasible embodiments.

[0083] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for controlling an air conditioner.

[0084] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0085] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0086] Those skilled in the art will appreciate that the units and algorithm steps of each example 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 performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

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

[0088] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for controlling an air conditioner, characterized in that: include: When the air conditioner fails, obtain the fault type of the air conditioner; When the fault type is a sensor failure of the wire controller, switch the sensor of the air conditioner host for detection.

2. The method according to claim 1, characterized in that After obtaining the fault type of the air conditioner, the method further includes: When the fault type is a communication fault of the wire controller, obtain the current variable value in the register; According to the current variable value, switch to other control modes or control the air conditioner to stop running.

3. The method according to claim 2, characterized in that The step of obtaining the current variable value in the register includes: When the air conditioner is powered on, the variables are assigned initial values; Record the effective communication modules communicating with the air conditioner; Correct the initial value according to the type of effective communication module to obtain the current variable value.

4. The method according to claim 3, characterized in that The method of correcting the initial value according to the type of the effective communication module to obtain the current variable value includes: Determine the number of types of valid communication modules as a correction value; Determine the sum of the initial value and the revised value as the current variable value.

5. The method according to claim 3, characterized in that: The effective communication module for recording and communicating with the air conditioner includes: Record all communication modules that communicate with the air conditioner; Get the time interval between the last communication time of each communication module and the current time; It is determined that the communication module whose interval duration is less than the set duration threshold is a valid communication module.

6. The method according to claim 2, characterized in that The switching to other control modes or controlling the air conditioner to stop running according to the current variable value includes: When the current variable value is greater than the set variable threshold, switch to other control methods; When the current variable value is less than or equal to the variable threshold, the air conditioner is controlled to stop running.

7. The method according to any one of claims 1 to 6, characterized in that: After obtaining the fault type of the air conditioner, the method further includes: Send fault information to the user.

8. A device for controlling an air conditioner, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for controlling an air conditioner according to any one of claims 1 to 7 when running the program instructions.

9. An air conditioner, characterized in that: include: Air conditioner body; The device for controlling an air conditioner according to claim 8 is installed on the air conditioner body.

10. A computer-readable storage medium storing program instructions, characterized in that: When the program instructions are executed, the computer is used to execute the method for controlling an air conditioner according to any one of claims 1 to 7.