Air conditioner control method and device and air conditioner system

By optimizing the relay action strategy, the relay action with fewer actions is preferred according to the air conditioner mode requirements, which reduces the frequency of the relay use of the air conditioner thermostat relay, solves the problem of short service life of the relay, extends the service life of the relay and reduces the service life of the relay failure rate.

CN119022398AActive Publication Date: 2024-11-26GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411418355.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2024-11-26
Estimated Expiration
2044-10-11

AI Technical Summary

Technical Problem

The relay service life of the air conditioner thermostat is relatively short and has a high failure rate. It is mainly due to the frequent use of compressor switch signals in both modes, resulting in a shortening of the mechanical life of the relay.

Method used

By obtaining the number of relay operations, the relay operation with fewer operations is preferred, and the other one does not, causing the air conditioner to enter the cooling or heating mode, reducing the frequency of relay usage and extending its service life.

Benefits of technology

It effectively reduces the relay failure rate, extends the service life of the relay, and solves the problem of low service life of the air conditioner thermostat relay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119022398A_ABST
    Figure CN119022398A_ABST
Patent Text Reader

Abstract

The invention provides an air conditioner control method and device and an air conditioner system.The method comprises the steps that the action times of two relays are obtained, the two action times are obtained, and the action times are the sum of the closing and opening times of the relays; under the condition that the temperature controller receives a control instruction of entering a refrigeration mode, the relay corresponding to the maximum action frequency is controlled to be kept unchanged, and the relay corresponding to the minimum action frequency is controlled to be switched off, switched on or kept unchanged, so that one relay is switched off, and the other relay is switched on; 1 is added to the action times of the relay executing opening or closing; under the condition that the air conditioner outdoor unit receives the electric signal, the compressor is controlled to be started, the reversing valve is controlled to be kept in the default state, the electric signal is the control signal output by the closed relay, the default state is the state of the reversing valve in the refrigeration mode, and the problem that in the prior art, a relay of a temperature controller of an air conditioner is short in service life is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of air conditioning control, and in particular to an air conditioning control method, device and air conditioning system. Background Art

[0002] The on / off of the non-communication air conditioner in the industry is controlled by two electrical signals. Generally, two relays are used in the thermostat to control the two electrical signals, one of which controls the compressor on / off signal, and the other controls the four-way valve reversing signal. The switching of cooling and heating modes is also very simple. The cooling mode only gives the compressor on / off signal, and the heating mode gives the compressor on / off signal and the four-way valve reversing signal. It can be seen that the compressor on / off signal needs to act regardless of the cooling mode or the heating mode. Therefore, the relay that controls the compressor on / off signal is used frequently and is more likely to fail due to reaching its mechanical life, so the relay has a higher failure rate. The other relay that controls the four-way valve reversing signal is only used in one of the modes, so it is used less frequently and has the potential to share the number of times used. Summary of the invention

[0003] The main purpose of the present application is to provide a control method, device and air conditioning system for an air conditioner, so as to at least solve the problem of low service life of the relay of the air conditioner thermostat in the prior art.

[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a control method for an air conditioner is provided, the air conditioner includes a thermostat and an air conditioner outdoor unit, the thermostat includes two relays, the air conditioner outdoor unit includes a reversing valve and a compressor, the method includes: obtaining the number of actions of the two relays to obtain two action numbers, the action number being the sum of the number of times the relays are closed and opened; when the thermostat receives a control instruction to enter a cooling mode, controlling the relay corresponding to the largest number of actions to remain unchanged, controlling the relay corresponding to the smallest number of actions to be opened, closed or unchanged, so that one relay is opened and the other relay is closed, and controlling the action number of the relay that performs the opening or closing to be increased by 1; when the air conditioner outdoor unit receives an electrical signal, controlling the compressor to start and controlling the reversing valve to maintain a default state, the electrical signal being a control signal output by the closed relay, and the default state being the state of the reversing valve in the cooling mode.

[0005] Optionally, after obtaining the action times of the two relays and obtaining two action times, the method further includes: when the thermostat receives a control instruction to enter the heating mode, controlling the disconnected relay to close, and controlling the action times of the closed relay to increase by 1; when the air conditioner outdoor unit receives two electrical signals, controlling the compressor to start and controlling the reversing valve to reverse.

[0006] Optionally, the two relays are respectively a first relay and a second relay, the action number of the first relay is a first action number, and the action number of the second relay is a second action number, and when the thermostat receives a control instruction to enter the cooling mode, the relay corresponding to the maximum action number is controlled to remain unchanged, and the relay corresponding to the minimum action number is controlled to be disconnected, closed or unchanged, so that one relay is disconnected and the other relay is closed, and the action number of the relay that is disconnected or closed is controlled to be added by 1, including: when the thermostat receives a control instruction to enter the cooling mode, obtaining the states of the first relay and the second relay; when both the first relay and the second relay are in a closed state and the first action number is less than or equal to the first action number, controlling the first relay to disconnect, controlling the second relay to remain unchanged, and controlling the first action The number of times is increased by 1; when the first relay and the second relay are both in the closed state and the first action number is greater than the first action number, the second relay is controlled to be opened, the first relay is controlled to remain unchanged, and the second action number is controlled to be increased by 1; when the first relay and the second relay are both in the open state and the first action number is less than or equal to the first action number, the first relay is controlled to be closed, the second relay is controlled to remain unchanged, and the first action number is controlled to be increased by 1; when the first relay and the second relay are both in the open state and the first action number is greater than the first action number, the second relay is controlled to be closed, the first relay is controlled to remain unchanged, and the second action number is controlled to be increased by 1; when one of the first relay and the second relay is in the open state and the other is in the closed state, the first relay and the second relay are controlled to remain unchanged.

[0007] Optionally, the two relays are respectively a first relay and a second relay, the action number of the first relay is a first action number, and the action number of the second relay is a second action number, and when the thermostat receives a control instruction to enter the heating mode, the disconnected relay is controlled to be closed, and the action number of the closed relay is controlled to be increased by 1, including: when the thermostat receives a control instruction to enter the heating mode, the states of the first relay and the second relay are obtained; when the first relay and the second relay are both in a closed state, the first relay and the second relay are controlled to remain unchanged; when the first relay and the second relay are both in an disconnected state, the first relay and the second relay are controlled to be closed, and the first action number and the second action number are controlled to be increased by 1; when the first relay is in an disconnected state and the second relay is in a closed state, the first relay is controlled to be closed, and the first action number is controlled to be increased by 1; when the first relay is in a closed state and the second relay is in an disconnected state, the second relay is controlled to be closed, and the second action number is controlled to be increased by 1.

[0008] Optionally, when the air conditioner outdoor unit receives an electrical signal, the compressor is controlled to start and the reversing valve is controlled to remain unchanged, and the electrical signal is a control signal output by the closed relay. The method also includes: when the indoor temperature corresponding to the air conditioner is lower than the set temperature, the closed relay among the two relays is controlled to be disconnected, and the number of actions corresponding to the closed relay among the two relays is controlled to be increased by 1; when the difference between the indoor temperature corresponding to the air conditioner and is greater than a first predetermined threshold value, a control instruction to enter the cooling mode is sent to the thermostat.

[0009] Optionally, when the air conditioner outdoor unit receives two electrical signals, after controlling the compressor to start and controlling the reversing valve to reverse, the method also includes: when the indoor temperature corresponding to the air conditioner is greater than the set temperature, controlling both relays to disconnect and controlling both action times to increase by 1; when the difference between the set temperature and the indoor temperature corresponding to the air conditioner is greater than a second predetermined threshold, sending a control instruction to enter the heating mode to the thermostat.

[0010] Optionally, the method further includes: when the air conditioner outdoor unit does not receive the electrical signal, controlling the compressor to shut down, controlling the reversing valve to remain unchanged and controlling the reversing valve to return to the default state after a predetermined period of time.

[0011] Optionally, the two relays are respectively a first relay and a second relay, and the method further includes: when the thermostat receives a control instruction to enter the cooling mode, controlling the first relay to close and controlling the second relay to open; when the thermostat receives a control instruction to enter the heating mode, controlling the first relay to open and controlling the second relay to close; when the air conditioner outdoor unit receives an electrical signal output by the first relay, controlling the compressor to start and controlling the reversing valve to maintain a default state; when the air conditioner outdoor unit receives an electrical signal output by the second relay, controlling the compressor to start and controlling the reversing valve to reverse.

[0012] According to another aspect of the present application, a control device for an air conditioner is provided, the air conditioner comprising a thermostat and an air conditioner outdoor unit, the thermostat comprising two relays, the air conditioner outdoor unit comprising a reversing valve and a compressor, the device comprising: an acquisition unit, for acquiring the number of actions of the two relays, and obtaining two numbers of actions, wherein the number of actions is the sum of the number of times the relays are closed and opened; a first control unit, for controlling the relay corresponding to the largest number of actions to remain unchanged, and controlling the relay corresponding to the smallest number of actions to be opened, closed or unchanged, when the thermostat receives a control instruction to enter a cooling mode, so that one relay is opened and the other is closed, and controlling the number of actions of the relay that is opened or closed to be increased by 1; a second control unit, for controlling the compressor to start and the reversing valve to remain in a default state when the air conditioner outdoor unit receives an electrical signal, wherein the electrical signal is a control signal output by the closed relay, and the default state is the state of the reversing valve in the cooling mode.

[0013] According to another aspect of the present application, an air conditioning system is provided, comprising: at least one air conditioner, one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the described methods.

[0014] By applying the technical solution of the present application, in the control method of the above-mentioned air conditioner, since the air conditioner cooling mode usually only closes one relay to control the compressor to start, while the heating mode closes two relays, resulting in different usage frequencies of the two relays, the method first obtains the number of actions of the two relays, and the thermostat receives the control instruction to enter the cooling mode, and preferentially controls the relay with less action times to act, and the other does not act, so that one relay is disconnected and the other relay is closed, and an electrical signal can be sent to the air conditioner outdoor unit to control the compressor to start and the control reversing valve to maintain the default state, so that the air conditioner enters the cooling mode. On the basis of realizing the cooling mode control, the relay with the largest number of actions is preferentially controlled to act, thereby reducing the relay failure rate and extending the service life of the relay, thereby solving the problem of low service life of the relay of the air conditioner thermostat in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A hardware structure block diagram of a mobile terminal for executing an air conditioner control method provided in an embodiment of the present application is shown;

[0016] Figure 2 A schematic diagram of a flow chart of a method for controlling an air conditioner according to an embodiment of the present application is shown;

[0017] Figure 3 A schematic diagram of the internal structure of an air conditioner provided according to an embodiment of the present application is shown;

[0018] Figure 4 A schematic diagram of a flow chart of air conditioning cooling mode control provided according to an embodiment of the present application is shown;

[0019] Figure 5 A schematic diagram of a process flow of air conditioning heating mode control provided according to an embodiment of the present application is shown;

[0020] Figure 6 A structural block diagram of a control device for an air conditioner provided according to an embodiment of the present application is shown.

[0021] The above drawings include the following reference numerals:

[0022] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION

[0023] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0024] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

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

[0026] As introduced in the background technology, the relay of the thermostat of the air conditioner in the prior art has a short service life. To solve this technical problem, the embodiments of the present application provide a control method, device and air conditioning system for an air conditioner.

[0027] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0028] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of an air conditioner control method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0029] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of the air conditioner in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0030] In this embodiment, a method for controlling an air conditioner running on a mobile terminal, a computer terminal or a similar computing device is provided, wherein the air conditioner includes a thermostat and an air conditioner outdoor unit, wherein the thermostat includes two relays, and the air conditioner outdoor unit includes a reversing valve and a compressor. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0031] Figure 2 FIG. 1 is a flow chart of a method for controlling an air conditioner according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:

[0032] Step S201, obtaining the operation times of the two relays to obtain two operation times, where the operation times are the sum of the closing and opening times of the relays;

[0033] Step S202, when the thermostat receives a control instruction to enter the cooling mode, the relay corresponding to the maximum number of actions is controlled to remain unchanged, and the relay corresponding to the minimum number of actions is controlled to be disconnected, closed, or unchanged, so that one of the relays is disconnected and the other is closed, and the number of actions of the relay that is disconnected or closed is controlled to be increased by 1;

[0034] Step S203, when the air conditioner outdoor unit receives an electrical signal, controls the compressor to start and controls the reversing valve to maintain a default state, the electrical signal is a control signal output by the closed relay, and the default state is the state of the reversing valve in the cooling mode.

[0035] In the above-mentioned air conditioner control method, since the air conditioner cooling mode usually only closes one relay to control the compressor to start, while the heating mode closes two relays, resulting in different usage frequencies of the two relays. The method first obtains the number of times the two relays are operated. The thermostat receives the control instruction to enter the cooling mode, and preferentially controls the relay with fewer actions to operate, while the other does not operate, so that one relay is disconnected and the other relay is closed, and an electrical signal can be sent to the air conditioner outdoor unit to control the compressor to start and the control reversing valve to maintain the default state, so that the air conditioner enters the cooling mode. On the basis of realizing the cooling mode control, the relay with the largest number of actions is preferentially controlled to operate, thereby reducing the relay failure rate and extending the service life of the relay, thereby solving the problem of low service life of the relay of the air conditioner thermostat in the prior art.

[0036] In order to realize heating mode control, in an optional implementation manner, after obtaining the operation times of the two relays and obtaining two operation times, the method further includes:

[0037] Step S301, when the thermostat receives a control instruction to enter a heating mode, the disconnected relay is controlled to be closed, and the number of actions of the closed relay is controlled to be increased by 1;

[0038] Step S302, when the air conditioner outdoor unit receives two electrical signals, the compressor is controlled to start and the reversing valve is controlled to reverse.

[0039] In the above embodiment, when the thermostat receives a control instruction to enter the heating mode, the disconnected relays are closed, and two electrical signals are sent to the air conditioner outdoor unit to control the compressor to start and the reversing valve to reverse, so that the air conditioner enters the heating mode, which can realize cooling mode control and heating mode control.

[0040] Specifically, Figure 3As shown, the first relay is relay 1, and the second relay is relay 2. The user operates the thermostat to select the cooling mode. The main chip of the thermostat receives the control instruction to enter the cooling mode, and controls relay 1 and relay 2 through the relay control module, so that one relay is disconnected and the other relay is closed, and the relay with less action times is controlled first. The electric signal receiving module of the air conditioner outdoor unit receives the electric signals output by relay 1 and relay 2 respectively through the electric signal receiving circuit 1 and the electric signal receiving circuit 2. If only one electric signal is received, the main chip of the outdoor unit controls the compressor to start and controls the reversing valve to maintain the default state. , to enter the cooling mode, the user operates the thermostat to select the heating mode, the thermostat main chip receives the control instruction to enter the heating mode, controls relay 1 and relay 2 through the relay control module, so that both relays are closed, and the electrical signal receiving module of the air-conditioning outdoor unit receives the electrical signals output by relay 1 and relay 2 through electrical signal receiving circuit 1 and electrical signal receiving circuit 2 respectively. After receiving the two electrical signals, the outdoor unit main chip controls the startup of the compressor and controls the reversal of the reversing valve to enter the heating mode. Since the meanings of the two electrical signals are not distinguished, normal control can be achieved even if the two electrical signals are connected in reverse.

[0041] In order to achieve a balanced number of actions of the two relays, in an optional implementation, the two relays are respectively a first relay and a second relay, the number of actions of the first relay is a first number of actions, and the number of actions of the second relay is a second number of actions, and the step S202 includes:

[0042] Step S2021, when the thermostat receives a control instruction to enter the cooling mode, obtaining the states of the first relay and the second relay;

[0043] Step S2022, when the first relay and the second relay are both in a closed state and the first action number is less than or equal to the first action number, control the first relay to be opened, control the second relay to remain unchanged, and control the first action number to be increased by 1;

[0044] Step S2023, when the first relay and the second relay are both in a closed state and the first action number is greater than the first action number, control the second relay to be opened, control the first relay to remain unchanged, and control the second action number to be increased by 1;

[0045] Step S2024, when both the first relay and the second relay are in an open state and the first action number is less than or equal to the first action number, control the first relay to close, control the second relay to remain unchanged, and control the first action number to increase by 1;

[0046] Step S2025, when both the first relay and the second relay are in an open state and the first action number is greater than the second action number, controlling the second relay to close, controlling the first relay to remain unchanged, and controlling the second action number to increase by 1;

[0047] Step S2026: When one of the first relay and the second relay is in an open state and the other is in a closed state, control the first relay and the second relay to remain unchanged.

[0048] In the above implementation, if Figure 4 As shown, the first relay is relay 1, and the second relay is relay 2. The historical action times a1 and a2 of relay 1 and relay 2 in the storage module are read to detect the current status of relay 1 and relay 2. If both relay 1 and relay 2 are in the closed state, the current state is in heating mode, and the relay with fewer historical action times is disconnected first, that is, if a1≤a2, disconnect relay 1, and a1 times + 1 times; if a1>a2, disconnect relay 2, and a2 times + 1 times. If both relay 1 and relay 2 are in the open state, the current state is in shutdown state, and the relay with fewer historical action times is closed first, that is, if a1≤a2, close relay 1, and a1 times + 1 times; if a1>a2, close relay 2, and a2 times + 1 times. If only one of relay 1 and relay 2 is closed and the other is disconnected, it is cooling mode at this time, and the current unit operation state is maintained.

[0049] In order to realize heating mode control, in an optional implementation manner, the two relays are respectively a first relay and a second relay, the action number of the first relay is a first action number, and the action number of the second relay is a second action number, and the step S301 includes:

[0050] Step S3011, when the thermostat receives a control instruction to enter the heating mode, obtaining the states of the first relay and the second relay;

[0051] Step S3012, when the first relay and the second relay are both in a closed state, controlling the first relay and the second relay to remain unchanged;

[0052] Step S3013, when the first relay and the second relay are both in an open state, controlling the first relay and the second relay to be closed, and controlling the first action times and the second action times to be increased by 1;

[0053] Step S3014, when the first relay is in an open state and the second relay is in a closed state, controlling the first relay to close and controlling the first action count to increase by 1;

[0054] Step S3015: When the first relay is in a closed state and the second relays are both in an open state, the second relay is controlled to be closed, and the second action count is controlled to be incremented by 1.

[0055] In the above implementation mode, if Figure 5 As shown, the first relay is relay 1, and the second relay is relay 2. The historical action times a1 and a2 of relay 1 and relay 2 in the storage module are read to detect the current status of relay 1 and relay 2. If both relay 1 and relay 2 are in the closed state, it is the heating mode at this time, and the current unit operation state is maintained. If both relay 1 and relay 2 are in the open state, it is in the shutdown state at this time, and relay 1 and relay 2 are closed at the same time, and the times a1 and a2 are both +1. If only one of relay 1 and relay 2 is closed and the other is open, it is in the cooling mode at this time. If relay 1 is open and relay 2 is closed, relay 1 is closed, and the number of a1 is +1. If relay 1 is closed and relay 2 is open, relay 2 is closed, and the number of a2 is +1.

[0056] In order to maintain temperature stability, in an optional implementation, when the air conditioner outdoor unit receives an electrical signal, the compressor is controlled to start and the reversing valve is controlled to remain unchanged, and after the electrical signal is a control signal output by the closed relay, the method further includes:

[0057] Step S401, when the indoor temperature corresponding to the air conditioner is lower than the set temperature, the closed relay of the two relays is controlled to be disconnected, and the action number corresponding to the closed relay of the two relays is controlled to be increased by 1;

[0058] Step S402: When the difference between the indoor temperature corresponding to the air conditioner and is greater than a first predetermined threshold, a control instruction to enter a cooling mode is sent to the thermostat.

[0059] In the above implementation, the temperature point start-stop control in the cooling mode: when the indoor temperature is lower than the set temperature, the temperature point shutdown state is entered, the closed relay is disconnected, and the corresponding historical action times are increased by 1. When the indoor temperature is higher than the set temperature + X (the first predetermined threshold, 0-3°C), the machine is restarted and a control instruction to enter the cooling mode is sent to the above thermostat.

[0060] In order to maintain temperature stability, in an optional implementation, when the air conditioner outdoor unit receives two electrical signals, after controlling the compressor to start and controlling the reversing valve to switch, the method further includes:

[0061] Step S501, when the indoor temperature corresponding to the air conditioner is greater than the set temperature, the two relays are controlled to be disconnected, and the two action times are controlled to be increased by 1;

[0062] Step S502: When the difference between the set temperature and the indoor temperature corresponding to the air conditioner is greater than a second predetermined threshold, a control instruction for entering a heating mode is sent to the thermostat.

[0063] In the above embodiment, the heating mode is controlled by the temperature point start-stop: when the indoor temperature is higher than the set temperature, the temperature point shutdown state is entered, the two relays are disconnected, and the times a1 and a2 are both +1. When the indoor temperature is lower than the set temperature +X (the second predetermined threshold, 0-3°C), the machine is restarted and a control instruction to enter the heating mode is sent to the above thermostat.

[0064] In order to avoid frequent reversal of the reversing valve, in an optional implementation manner, the method further includes:

[0065] Step S601, when the air conditioner outdoor unit does not receive the electrical signal, the compressor is controlled to shut down, and the reversing valve is controlled to remain unchanged for a predetermined period of time, and then the reversing valve is controlled to return to the default state.

[0066] In the above implementation, the four-way valve is a mechanical structure, and there is also a problem of mechanical life, and unnecessary reversing should be avoided as much as possible. For example, when the temperature point is shut down, the four-way valve should not be reversed, because generally after a period of time, the temperature change will require restarting, so the unit pipeline status of the current mode must be guaranteed, that is, when no electrical signal is detected in both lines, the external unit is shut down, the above compressor is shut down, and the current four-way valve status is maintained. After a predetermined period of time (such as 1 hour), if no electrical signal is detected, the four-way valve signal is disconnected to restore the four-way valve to the default state.

[0067] In order to balance the number of actions of the two relays, in an optional implementation manner, the two relays are respectively a first relay and a second relay, and the method further includes:

[0068] Step S701, when the thermostat receives a control instruction to enter the cooling mode, the thermostat controls the first relay to close and the second relay to open;

[0069] Step S702, when the thermostat receives a control instruction to enter the heating mode, the thermostat controls the first relay to be disconnected and the second relay to be closed;

[0070] Step S703, when the air conditioner outdoor unit receives the electrical signal output by the first relay, the compressor is controlled to start and the reversing valve is controlled to maintain a default state;

[0071] Step S704, when the air conditioner outdoor unit receives the electrical signal output by the second relay, the compressor is controlled to start and the reversing valve is controlled to reverse.

[0072] In the above implementation, the two electrical signals are changed so that one turns on the cooling mode and the other turns on the heating mode. Control scheme for distinguishing cooling mode and heating mode: The indoor unit of the air conditioner generally does not need to distinguish between cooling and heating operations. It only needs to turn on the indoor fan for blowing air and heat exchange, and no distinction is made. Cooling mode: 1. When the user operates the thermostat to turn on the cooling mode, the thermostat closes relay 1. 2. The outdoor unit of the air conditioner receives the cooling mode signal and enters the cooling mode. Heating mode: 1. When the user operates the thermostat to turn on the heating mode, the thermostat closes relay 2. 2. The outdoor unit of the air conditioner receives the heating mode signal and enters the heating mode.

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

[0074] The embodiment of the present application also provides a control device for an air conditioner. It should be noted that the control device for the air conditioner in the embodiment of the present application can be used to execute the control method for the air conditioner provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions thereof will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0075] The following is an introduction to the control device of the air conditioner provided in the embodiment of the present application. The air conditioner includes a thermostat and an air conditioner outdoor unit. The thermostat includes two relays, and the air conditioner outdoor unit includes a reversing valve and a compressor.

[0076] Figure 6 is a structural block diagram of an air conditioner control device according to an embodiment of the present application. Figure 6 As shown, the device comprises:

[0077] An acquisition unit 10 is used to acquire the operation times of the two relays to obtain two operation times, where the operation times are the sum of the closing and opening times of the relays;

[0078] The first control unit 20 is used for controlling the relay corresponding to the maximum number of actions to remain unchanged, controlling the relay corresponding to the minimum number of actions to be disconnected, closed or unchanged, so that one of the relays is disconnected and the other is closed, and controlling the number of actions of the relay that is disconnected or closed to increase by 1 when the thermostat receives a control instruction to enter the cooling mode;

[0079] The second control unit 30 is used to control the compressor to start up and control the reversing valve to maintain a default state when the air conditioner outdoor unit receives an electrical signal, the electrical signal is a control signal output by the closed relay, and the default state is the state of the reversing valve in the refrigeration mode.

[0080] In the control device of the above-mentioned air conditioner, since the air conditioner cooling mode usually only closes one relay to control the compressor to start, while the heating mode closes two relays, resulting in different usage frequencies of the two relays, the number of actions of the two relays is first obtained, and the thermostat receives the control instruction to enter the cooling mode, and prioritizes the control of the relay with fewer actions to act, and the other does not act, so that one relay is disconnected and the other relay is closed, and an electrical signal can be sent to the air conditioner outdoor unit to control the compressor to start and the control reversing valve to maintain the default state, so that the air conditioner enters the cooling mode. On the basis of realizing the cooling mode control, the relay with the largest number of actions is prioritized to act, thereby reducing the relay failure rate and extending the service life of the relay, thereby solving the problem of low service life of the relay of the air conditioner thermostat in the prior art.

[0081] In order to realize heating mode control, in an optional implementation manner, the above device further includes:

[0082] A third control unit is used for, after acquiring the action times of the two relays and obtaining the two action times, when the thermostat receives a control instruction to enter a heating mode, controlling the disconnected relay to close and controlling the action times of the closed relay to increase by 1;

[0083] The fourth control unit is used to control the compressor to start up and the reversing valve to switch on when the air conditioner outdoor unit receives two electrical signals.

[0084] In the above embodiment, when the thermostat receives a control instruction to enter the heating mode, the disconnected relays are closed, and two electrical signals are sent to the air conditioner outdoor unit to control the compressor to start and the reversing valve to reverse, so that the air conditioner enters the heating mode, which can realize cooling mode control and heating mode control.

[0085] Specifically, Figure 3 As shown, the first relay is relay 1, and the second relay is relay 2. The user operates the thermostat to select the cooling mode. The main chip of the thermostat receives the control instruction to enter the cooling mode, and controls relay 1 and relay 2 through the relay control module, so that one relay is disconnected and the other relay is closed, and the relay with less action times is controlled first. The electric signal receiving module of the air conditioner outdoor unit receives the electric signals output by relay 1 and relay 2 respectively through the electric signal receiving circuit 1 and the electric signal receiving circuit 2. If only one electric signal is received, the main chip of the outdoor unit controls the compressor to start and controls the reversing valve to maintain the default state. , to enter the cooling mode, the user operates the thermostat to select the heating mode, the thermostat main chip receives the control instruction to enter the heating mode, controls relay 1 and relay 2 through the relay control module, so that both relays are closed, and the electrical signal receiving module of the air-conditioning outdoor unit receives the electrical signals output by relay 1 and relay 2 through electrical signal receiving circuit 1 and electrical signal receiving circuit 2 respectively. After receiving the two electrical signals, the outdoor unit main chip controls the startup of the compressor and controls the reversal of the reversing valve to enter the heating mode. Since the meanings of the two electrical signals are not distinguished, normal control can be achieved even if the two electrical signals are connected in reverse.

[0086] In order to achieve a balanced number of actions of the two relays, in an optional implementation manner, the two relays are respectively a first relay and a second relay, the number of actions of the first relay is a first number of actions, the number of actions of the second relay is a second number of actions, and the first control unit includes:

[0087] A first acquisition module, configured to acquire the states of the first relay and the second relay when the thermostat receives a control instruction to enter the cooling mode;

[0088] A first control module, configured to control the first relay to be disconnected, control the second relay to remain unchanged, and control the first action number to be increased by 1 when both the first relay and the second relay are in a closed state and the first action number is less than or equal to the first action number;

[0089] A second control module is used for controlling the second relay to be disconnected, controlling the first relay to remain unchanged, and controlling the second action number to be increased by 1 when both the first relay and the second relay are in a closed state and the first action number is greater than the first action number;

[0090] A third control module is used for controlling the first relay to close, controlling the second relay to remain unchanged, and controlling the first action number to increase by 1 when both the first relay and the second relay are in an open state and the first action number is less than or equal to the first action number;

[0091] a fourth control module, for controlling the second relay to close, controlling the first relay to remain unchanged, and controlling the second action number to increase by 1 when both the first relay and the second relay are in an open state and the first action number is greater than the first action number;

[0092] The fifth control module is used to control the first relay and the second relay to remain unchanged when one of the first relay and the second relay is in an open state and the other is in a closed state.

[0093] In the above implementation, if Figure 4 As shown, the first relay is relay 1, and the second relay is relay 2. The historical action times a1 and a2 of relay 1 and relay 2 in the storage module are read to detect the current status of relay 1 and relay 2. If both relay 1 and relay 2 are in the closed state, the current state is in heating mode, and the relay with fewer historical action times is disconnected first, that is, if a1≤a2, disconnect relay 1, and a1 times + 1 times; if a1>a2, disconnect relay 2, and a2 times + 1 times. If both relay 1 and relay 2 are in the open state, the current state is in shutdown state, and the relay with fewer historical action times is closed first, that is, if a1≤a2, close relay 1, and a1 times + 1 times; if a1>a2, close relay 2, and a2 times + 1 times. If only one of relay 1 and relay 2 is closed and the other is disconnected, it is cooling mode at this time, and the current unit operation state is maintained.

[0094] In order to realize heating mode control, in an optional implementation manner, the two relays are respectively a first relay and a second relay, the action number of the first relay is a first action number, the action number of the second relay is a second action number, and the third control unit includes:

[0095] A second acquisition module, configured to acquire the states of the first relay and the second relay when the thermostat receives a control instruction to enter the heating mode;

[0096] A sixth control module, used for controlling the first relay and the second relay to remain unchanged when both the first relay and the second relay are in a closed state;

[0097] a seventh control module, for controlling the first relay and the second relay to be closed when the first relay and the second relay are both in an open state, and controlling the first action number and the second action number to be increased by 1;

[0098] an eighth control module, configured to control the first relay to close and control the first action count to increase by 1 when the first relay is in an open state and the second relay is in a closed state;

[0099] The ninth control module is used for controlling the second relay to close and controlling the second action times to increase by 1 when the first relay is in a closed state and the second relays are both in an open state.

[0100] In the above implementation, if Figure 5 As shown, the first relay is relay 1, and the second relay is relay 2. The historical action times a1 and a2 of relay 1 and relay 2 in the storage module are read to detect the current status of relay 1 and relay 2. If both relay 1 and relay 2 are in the closed state, it is the heating mode at this time, and the current unit operation state is maintained. If both relay 1 and relay 2 are in the open state, it is in the shutdown state at this time, and relay 1 and relay 2 are closed at the same time, and the times a1 and a2 are both +1. If only one of relay 1 and relay 2 is closed and the other is open, it is in the cooling mode at this time. If relay 1 is open and relay 2 is closed, relay 1 is closed, and the number of a1 is +1. If relay 1 is closed and relay 2 is open, relay 2 is closed, and the number of a2 is +1.

[0101] In order to maintain temperature stability, in an optional embodiment, the device further comprises:

[0102] a fifth control unit, for controlling the compressor to start and the reversing valve to remain unchanged when the air conditioner outdoor unit receives an electrical signal, and after the electrical signal is a control signal output by the closed relay, when the indoor temperature corresponding to the air conditioner is lower than a set temperature, controlling the closed relay of the two relays to be disconnected, and controlling the action count corresponding to the closed relay of the two relays to be increased by 1;

[0103] The first sending unit is used to send a control instruction to enter a cooling mode to the above-mentioned thermostat when the difference between the indoor temperature corresponding to the above-mentioned air conditioner and is greater than a first predetermined threshold.

[0104] In the above implementation, the temperature point start-stop control in the cooling mode: when the indoor temperature is lower than the set temperature, the temperature point shutdown state is entered, the closed relay is disconnected, and the corresponding historical action times are increased by 1. When the indoor temperature is higher than the set temperature + X (the first predetermined threshold, 0-3°C), the machine is restarted and a control instruction to enter the cooling mode is sent to the above thermostat.

[0105] In order to maintain temperature stability, in an optional embodiment, the device further comprises:

[0106] a sixth control unit, configured to control the compressor to start up and the reversing valve to switch on when the air conditioner outdoor unit receives two electrical signals, and then, when the indoor temperature corresponding to the air conditioner is greater than a set temperature, control the two relays to disconnect and control the two action times to increase by 1;

[0107] The second sending unit is used to send a control instruction to enter a heating mode to the thermostat when the difference between the set temperature and the indoor temperature corresponding to the air conditioner is greater than a second predetermined threshold.

[0108] In the above embodiment, the heating mode is controlled by the temperature point start-stop: when the indoor temperature is higher than the set temperature, the temperature point shutdown state is entered, the two relays are disconnected, and the times a1 and a2 are both +1. When the indoor temperature is lower than the set temperature +X (the second predetermined threshold, 0-3°C), the machine is restarted and a control instruction to enter the heating mode is sent to the above thermostat.

[0109] In order to avoid frequent reversal of the reversing valve, in an optional implementation, the device further includes:

[0110] The seventh control unit is used for controlling the compressor to shut down when the air conditioner outdoor unit does not receive the electrical signal, and controlling the reversing valve to remain unchanged for a predetermined period of time and then controlling the reversing valve to return to the default state.

[0111] In the above implementation, the four-way valve is a mechanical structure, and there is also a problem of mechanical life, and unnecessary reversing should be avoided as much as possible. For example, when the temperature point is shut down, the four-way valve should not be reversed, because generally after a period of time, the temperature change will require restarting, so the unit pipeline status of the current mode must be guaranteed, that is, when no electrical signal is detected in both lines, the external unit is shut down, the above compressor is shut down, and the current four-way valve status is maintained. After a predetermined period of time (such as 1 hour), if no electrical signal is detected, the four-way valve signal is disconnected to restore the four-way valve to the default state.

[0112] In order to balance the number of actions of the two relays, in an optional implementation manner, the two relays are respectively a first relay and a second relay, and the device further includes:

[0113] an eighth control unit, configured to control the first relay to close and the second relay to open when the thermostat receives a control instruction to enter the cooling mode;

[0114] a ninth control unit, configured to control the first relay to be disconnected and the second relay to be closed when the thermostat receives a control instruction to enter the heating mode;

[0115] a tenth control unit, configured to control the compressor to start up and the reversing valve to maintain a default state when the air conditioner outdoor unit receives the electrical signal output by the first relay;

[0116] The eleventh control unit is used to control the compressor to start up and the reversing valve to switch on when the air conditioner outdoor unit receives the electrical signal output by the second relay.

[0117] In the above implementation, the two electrical signals are changed so that one turns on the cooling mode and the other turns on the heating mode. Control scheme for distinguishing cooling mode and heating mode: The indoor unit of the air conditioner generally does not need to distinguish between cooling and heating operations. It only needs to turn on the indoor fan for blowing air and heat exchange, and no distinction is made. Cooling mode: 1. When the user operates the thermostat to turn on the cooling mode, the thermostat closes relay 1. 2. The outdoor unit of the air conditioner receives the cooling mode signal and enters the cooling mode. Heating mode: 1. When the user operates the thermostat to turn on the heating mode, the thermostat closes relay 2. 2. The outdoor unit of the air conditioner receives the heating mode signal and enters the heating mode.

[0118] The control device of the air conditioner includes a processor and a memory. The acquisition unit, the first control unit, the second control unit, etc. are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.

[0119] The processor includes a kernel, and the kernel retrieves the corresponding program unit from the memory. One or more kernels can be provided, and the problem of low service life of the relay of the thermostat of the air conditioner in the prior art can be solved by adjusting the kernel parameters.

[0120] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0121] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, a device where the computer-readable storage medium is located is controlled to execute the air conditioner control method.

[0122] Specifically, the air conditioner control method includes:

[0123] Step S201, obtaining the operation times of the two relays to obtain two operation times, where the operation times are the sum of the closing and opening times of the relays;

[0124] Step S202, when the thermostat receives a control instruction to enter the cooling mode, the relay corresponding to the maximum number of actions is controlled to remain unchanged, and the relay corresponding to the minimum number of actions is controlled to be disconnected, closed, or unchanged, so that one of the relays is disconnected and the other is closed, and the number of actions of the relay that is disconnected or closed is controlled to be increased by 1;

[0125] Step S203, when the air conditioner outdoor unit receives an electrical signal, controls the compressor to start and controls the reversing valve to maintain a default state, the electrical signal is a control signal output by the closed relay, and the default state is the state of the reversing valve in the cooling mode.

[0126] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the control method of the air conditioner is executed when the program is run.

[0127] Specifically, the air conditioner control method includes:

[0128] Step S201, obtaining the operation times of the two relays to obtain two operation times, where the operation times are the sum of the closing and opening times of the relays;

[0129] Step S202, when the thermostat receives a control instruction to enter the cooling mode, the relay corresponding to the maximum number of actions is controlled to remain unchanged, and the relay corresponding to the minimum number of actions is controlled to be disconnected, closed, or unchanged, so that one of the relays is disconnected and the other is closed, and the number of actions of the relay that is disconnected or closed is controlled to be increased by 1;

[0130] Step S203, when the air conditioner outdoor unit receives an electrical signal, controls the compressor to start and controls the reversing valve to maintain a default state, the electrical signal is a control signal output by the closed relay, and the default state is the state of the reversing valve in the cooling mode.

[0131] An embodiment of the present invention provides an air conditioning system, the air conditioning system comprising at least one air conditioner, a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, at least the following steps are implemented:

[0132] Step S201, obtaining the operation times of the two relays to obtain two operation times, where the operation times are the sum of the closing and opening times of the relays;

[0133] Step S202, when the thermostat receives a control instruction to enter the cooling mode, the relay corresponding to the maximum number of actions is controlled to remain unchanged, and the relay corresponding to the minimum number of actions is controlled to be disconnected, closed, or unchanged, so that one of the relays is disconnected and the other is closed, and the number of actions of the relay that is disconnected or closed is controlled to be increased by 1;

[0134] Step S203, when the air conditioner outdoor unit receives an electrical signal, controls the compressor to start and controls the reversing valve to maintain a default state, the electrical signal is a control signal output by the closed relay, and the default state is the state of the reversing valve in the cooling mode.

[0135] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

[0136] Step S201, obtaining the operation times of the two relays to obtain two operation times, where the operation times are the sum of the closing and opening times of the relays;

[0137] Step S202, when the thermostat receives a control instruction to enter the cooling mode, the relay corresponding to the maximum number of actions is controlled to remain unchanged, and the relay corresponding to the minimum number of actions is controlled to be disconnected, closed, or unchanged, so that one of the relays is disconnected and the other is closed, and the number of actions of the relay that is disconnected or closed is controlled to be increased by 1;

[0138] Step S203, when the air conditioner outdoor unit receives an electrical signal, controls the compressor to start and controls the reversing valve to maintain a default state, the electrical signal is a control signal output by the closed relay, and the default state is the state of the reversing valve in the cooling mode.

[0139] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0140] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0141] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0142] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0144] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0145] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0146] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0147] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0148] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0149] 1) In the control method of the air conditioner of the present application, since the air conditioner cooling mode usually only closes one relay to control the compressor to start, while the heating mode closes two relays, resulting in different usage frequencies of the two relays, the method first obtains the number of actions of the two relays, and the thermostat receives the control instruction to enter the cooling mode, and preferentially controls the relay with less action times to act, and the other does not act, so that one relay is disconnected and the other relay is closed, and an electrical signal can be sent to the air conditioner outdoor unit to control the compressor to start and the control reversing valve to maintain the default state, so that the air conditioner enters the cooling mode. On the basis of realizing the cooling mode control, the relay with the largest number of actions is preferentially controlled to act, thereby reducing the relay failure rate and extending the service life of the relay, thereby solving the problem of low service life of the relay of the air conditioner thermostat in the prior art.

[0150] 2) In the control device of the air conditioner of the present application, since the air conditioner cooling mode usually only closes one relay to control the compressor to start, while the heating mode closes two relays, resulting in different usage frequencies of the two relays, the number of actions of the two relays is first obtained, and the thermostat receives the control instruction to enter the cooling mode, and preferentially controls the relay with fewer actions to act, and the other does not act, so that one relay is disconnected and the other relay is closed, and an electrical signal can be sent to the air conditioner outdoor unit to control the compressor to start and the control reversing valve to maintain the default state, so that the air conditioner enters the cooling mode. On the basis of realizing the cooling mode control, the relay with the largest number of actions is preferentially controlled to act, thereby reducing the relay failure rate and extending the service life of the relay, thereby solving the problem of low service life of the relay of the air conditioner thermostat in the prior art.

[0151] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for controlling an air conditioner, characterized in that: The air conditioner comprises a thermostat and an air conditioner outdoor unit, the thermostat comprises two relays, the air conditioner outdoor unit comprises a reversing valve and a compressor, and the method comprises: Obtaining the number of times the two relays operate to obtain two numbers of times, where the number of times the relays operate is the sum of the number of times they are closed and opened; When the thermostat receives a control instruction to enter the cooling mode, the relay corresponding to the maximum number of actions is controlled to remain unchanged, and the relay corresponding to the minimum number of actions is controlled to be disconnected, closed, or unchanged, so that one relay is disconnected and the other relay is closed, and the number of actions of the relay that is disconnected or closed is controlled to be increased by 1; When the air conditioner outdoor unit receives an electrical signal, the compressor is controlled to start and the reversing valve is controlled to maintain a default state. The electrical signal is a control signal output by the closed relay, and the default state is the state of the reversing valve in the cooling mode.

2. The method according to claim 1, characterized in that: After obtaining the action times of the two relays and obtaining two action times, the method further includes: When the thermostat receives a control instruction to enter a heating mode, the disconnected relay is controlled to be closed, and the number of actions of the closed relay is controlled to be increased by 1; When the air conditioner outdoor unit receives two electrical signals, the compressor is controlled to start and the reversing valve is controlled to reverse.

3. The method according to claim 1, characterized in that The two relays are respectively a first relay and a second relay, the action number of the first relay is a first action number, and the action number of the second relay is a second action number. When the thermostat receives a control instruction to enter the cooling mode, the relay corresponding to the maximum action number is controlled to remain unchanged, and the relay corresponding to the minimum action number is controlled to be disconnected, closed or unchanged, so that one relay is disconnected and the other relay is closed, and the action number of the relay that is disconnected or closed is controlled to be increased by 1, including: When the thermostat receives a control instruction to enter the cooling mode, obtaining states of the first relay and the second relay; When the first relay and the second relay are both in a closed state and the first action number is less than or equal to the first action number, the first relay is controlled to be opened, the second relay is controlled to remain unchanged, and the first action number is controlled to be increased by 1; When the first relay and the second relay are both in a closed state and the first action number is greater than the first action number, the second relay is controlled to be opened, the first relay is controlled to remain unchanged, and the second action number is controlled to be increased by 1; When both the first relay and the second relay are in an open state and the first action number is less than or equal to the first action number, the first relay is controlled to be closed, the second relay is controlled to remain unchanged, and the first action number is controlled to be increased by 1; When the first relay and the second relay are both in an open state and the first action number is greater than the first action number, the second relay is controlled to be closed, the first relay is controlled to remain unchanged, and the second action number is controlled to increase by 1; In a case where one of the first relay and the second relay is in an open state and the other is in a closed state, the first relay and the second relay are controlled to remain unchanged.

4. The method according to claim 2, characterized in that: The two relays are respectively a first relay and a second relay, the action number of the first relay is a first action number, the action number of the second relay is a second action number, and when the thermostat receives a control instruction to enter a heating mode, the disconnected relay is controlled to be closed, and the action number of the closed relay is controlled to be increased by 1, including: When the thermostat receives a control instruction to enter the heating mode, obtaining states of the first relay and the second relay; When the first relay and the second relay are both in a closed state, controlling the first relay and the second relay to remain unchanged; When the first relay and the second relay are both in an open state, the first relay and the second relay are controlled to be closed, and the first action times and the second action times are controlled to be increased by 1; When the first relay is in an open state and the second relay is in a closed state, controlling the first relay to close and controlling the first action times to increase by 1; When the first relay is in a closed state and the second relay is in an open state, the second relay is controlled to be closed, and the second action number is controlled to be increased by 1.

5. The method according to claim 1, characterized in that When the air conditioner outdoor unit receives an electrical signal, the compressor is controlled to start and the reversing valve is controlled to remain unchanged, and the electrical signal is a control signal output by the closed relay, the method further includes: When the indoor temperature corresponding to the air conditioner is lower than the set temperature, the closed relay of the two relays is controlled to be disconnected, and the action times corresponding to the closed relay of the two relays are controlled to be increased by 1; When the difference between the indoor temperature corresponding to the air conditioner and is greater than a first predetermined threshold, a control instruction to enter a cooling mode is sent to the thermostat.

6. The method according to claim 2, characterized in that When the air conditioner outdoor unit receives two electrical signals, after controlling the compressor to start and controlling the reversing valve to switch, the method further includes: When the indoor temperature corresponding to the air conditioner is greater than the set temperature, the two relays are controlled to be disconnected, and the two action times are controlled to be increased by 1; When the difference between the set temperature and the indoor temperature corresponding to the air conditioner is greater than a second predetermined threshold, a control instruction to enter a heating mode is sent to the thermostat.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In the case that the air conditioner outdoor unit does not receive the electrical signal, the compressor is controlled to shut down, and the reversing valve is controlled to remain unchanged for a predetermined period of time and then the reversing valve is controlled to return to the default state.

8. The method according to claim 1, characterized in that The two relays are respectively a first relay and a second relay, and the method further includes: When the thermostat receives a control instruction to enter the cooling mode, the first relay is controlled to be closed and the second relay is controlled to be opened; When the thermostat receives a control instruction to enter a heating mode, the first relay is controlled to be disconnected and the second relay is controlled to be closed; When the air conditioner outdoor unit receives the electrical signal output by the first relay, the compressor is controlled to start and the reversing valve is controlled to maintain a default state; When the air conditioner outdoor unit receives the electrical signal output by the second relay, the compressor is controlled to start and the reversing valve is controlled to switch on.

9. A control device for an air conditioner, characterized in that: The air conditioner comprises a thermostat and an air conditioner outdoor unit, wherein the thermostat comprises two relays, the air conditioner outdoor unit comprises a reversing valve and a compressor, and the device comprises: An acquisition unit, used for acquiring the operation times of the two relays to obtain two operation times, wherein the operation times are the sum of the closing and opening times of the relays; A first control unit is used for controlling the relay corresponding to the maximum number of actions to remain unchanged, controlling the relay corresponding to the minimum number of actions to be disconnected, closed or unchanged, so that one relay is disconnected and the other relay is closed, and controlling the number of actions of the relay that is disconnected or closed to increase by 1 when the thermostat receives a control instruction to enter a cooling mode; A second control unit is used for controlling the compressor to start up and the reversing valve to maintain a default state when the air conditioner outdoor unit receives an electrical signal, wherein the electrical signal is a control signal output by the closed relay, and the default state is the state of the reversing valve in the cooling mode.

10. An air conditioning system, characterized in that: include: At least one air conditioner, one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 8.

Citation Information

Patent Citations

  • Energy-saving method of air conditioner and economizer for air conditioner

    CN101737905A

  • Air conditioner, and on-off control method and on-off control system for resistive load

    CN104110800A

  • Temperature controlling device

    JP1994101899A

  • Air conditioner and control method thereof

    JP2007333370A

  • Control method of relay for compressor of kimchi refrigerator

    KR1020090090165A