Control method of air conditioner, air conditioner and readable storage medium

By adjusting the parameters of the relay control signal according to the ambient temperature, the problem of short service life of the relay caused by constant high-level voltage control is solved, and the efficient operation and service life of the relay are achieved.

CN119436489APending Publication Date: 2025-02-14FOSHAN SHUNDE MIDEA ELECTRONICS TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310952981.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-31
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The use of constant high-level voltage control relays in the prior art leads to a short service life of the relay.

Method used

By obtaining the ambient temperature of the space where the air conditioner is located, the minimum value of the suction voltage of the relay and the rated voltage value, an initial control signal is generated, and the signal parameters are adjusted according to the ambient temperature to generate a target control signal to control the operation of the relay.

Benefits of technology

It effectively extends the service life of the relay, avoids the heating problem caused by the high-level voltage being applied to both ends of the relay, and ensures the working performance of the relay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119436489A_ABST
    Figure CN119436489A_ABST
Patent Text Reader

Abstract

The invention discloses a control method of an air conditioner, the air conditioner and a readable storage medium, and relates to the technical field of electrical control, the control method of the air conditioner comprises the steps that the environment temperature in the space where the air conditioner is located is obtained, and the pull-in voltage minimum value of a relay and the rated voltage value of the relay are obtained; according to the pull-in voltage minimum value and the rated voltage value, an initial control signal used for controlling the relay is generated; signal parameters of the initial control signal are adjusted according to the environment temperature, a target control signal is obtained, the signal parameters comprise the signal duty ratio and / or the signal frequency, and the environment temperature is in positive correlation with parameter values of the signal parameters; and controlling the relay to work based on the target control signal. The problem that the service life of the relay is short due to the fact that constant high-level voltage is adopted to control the relay to work in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electrical control technology, and in particular to a control method for an air conditioner, an air conditioner, and a readable storage medium. Background Art

[0002] A relay is an automatic switching element with an isolation function. It is widely used in remote control, telemetry, communication, automatic control, mechatronics and power electronic equipment. For example, the on and off of high-power electrical devices such as the electric auxiliary heating of air conditioners and outdoor units are usually controlled by relays.

[0003] Currently, a constant high-level voltage is usually used to control the relay to work. However, when the relay starts working, the high-level voltage will be continuously applied to both ends of the relay, causing the relay to continue to heat up, thus affecting the service life of the relay. Summary of the invention

[0004] The main purpose of the present application is to provide a control method and device for an air conditioner, an air conditioner and a readable storage medium, aiming to solve the technical problem in the prior art of using a constant high-level voltage to control a relay to work, resulting in a short service life of the relay.

[0005] To achieve the above object, the present application provides a control method for an air conditioner, wherein the air conditioner includes at least one relay, and the control method for the air conditioner includes:

[0006] Obtaining the ambient temperature of the space where the air conditioner is located, and obtaining the minimum value of the pull-in voltage of the relay and the rated voltage value of the relay;

[0007] generating an initial control signal for controlling the relay according to the minimum pull-in voltage value and the rated voltage value;

[0008] According to the ambient temperature, adjusting the signal parameters of the initial control signal to obtain a target control signal, wherein the signal parameters include a signal duty cycle and / or a signal frequency, and the ambient temperature is positively correlated with a parameter value of the signal parameter;

[0009] Based on the target control signal, the relay is controlled to operate.

[0010] Optionally, the step of generating an initial control signal for controlling the relay according to the minimum pull-in voltage value and the rated voltage value comprises:

[0011] Determine a voltage ratio between the minimum pull-in voltage and the rated voltage, and use the voltage ratio as an initial duty cycle;

[0012] An initial control signal including the initial duty cycle is output at a preset frequency, wherein the signal amplitude of the initial control signal is the rated voltage value.

[0013] Optionally, the signal parameter includes a signal duty cycle, and the step of adjusting the signal parameter of the initial control signal according to the ambient temperature includes:

[0014] When the ambient temperature is less than or equal to a first preset temperature threshold, the signal duty cycle of the initial control signal is maintained at the initial duty cycle.

[0015] Optionally, the signal parameter includes a signal duty cycle, and the step of adjusting the signal parameter of the initial control signal according to the ambient temperature includes:

[0016] When the ambient temperature is greater than a first preset temperature threshold and less than a second preset temperature threshold, determining a temperature difference between the ambient temperature and the first preset temperature threshold;

[0017] Calculating a target duty cycle according to the temperature difference and the initial duty cycle, wherein the target duty cycle is greater than the initial duty cycle;

[0018] The signal duty cycle of the initial control signal is adjusted to the target duty cycle.

[0019] Optionally, the signal parameter includes a signal duty cycle, and the step of adjusting the signal parameter of the initial control signal according to the ambient temperature includes:

[0020] When the ambient temperature is greater than or equal to a second preset temperature threshold, the signal duty cycle of the initial control signal is adjusted to 100%.

[0021] Optionally, the signal parameter includes a signal frequency, and the step of adjusting the signal parameter of the initial control signal according to the ambient temperature includes:

[0022] Determining a target signal frequency corresponding to the ambient temperature according to a preset relationship between the ambient temperature and the signal frequency;

[0023] The signal frequency of the initial control signal is adjusted to the target signal frequency.

[0024] Optionally, before the step of obtaining the ambient temperature in the space where the air conditioner is located, the step further includes:

[0025] Determining that the relay is in a closed state;

[0026] When the relay is in the energized state, performing the step of obtaining the ambient temperature in the space where the air conditioner is located;

[0027] When the relay is not in the energized state, a control signal including a 100% duty cycle is output until the relay is in the energized state.

[0028] Optionally, before the step of obtaining the ambient temperature in the space where the air conditioner is located, the step further includes:

[0029] When the relay is just powered on, a control signal including a 100% duty cycle is output and lasts for a preset time to keep the relay in the energized state.

[0030] Optionally, a temperature sensor is provided inside the air conditioner, and the step of obtaining the ambient temperature in the space where the air conditioner is located includes:

[0031] The ambient temperature in the space where the air conditioner is located is collected based on the temperature sensor.

[0032] The present application also provides a control device for an air conditioner, the air conditioner comprising at least one relay, the control device for the air conditioner comprising:

[0033] An acquisition module, used for acquiring the ambient temperature in the space where the air conditioner is located, and acquiring the minimum value of the pull-in voltage of the relay and the rated voltage value of the relay;

[0034] A generating module, used for generating an initial control signal for controlling the relay according to the minimum value of the pull-in voltage and the rated voltage value;

[0035] an adjustment module, configured to adjust a signal parameter of the initial control signal according to the ambient temperature to obtain a target control signal, wherein the signal parameter includes a signal duty cycle and / or a signal frequency, and the ambient temperature is positively correlated with a parameter value of the signal parameter;

[0036] A control module is used to control the operation of the relay based on the target control signal.

[0037] The present application also provides an air conditioner, which is a physical device, and includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the steps of the air conditioner control method as described above.

[0038] The present application also provides a readable storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores a program for implementing a method for controlling an air conditioner. The program for implementing the method for controlling an air conditioner is executed by a processor to implement the steps of the method for controlling an air conditioner as described above.

[0039] The present application also provides a computer program product, including a computer program, which implements the steps of the air conditioner control method as described above when executed by a processor.

[0040] The present application provides a control method for an air conditioner. The present application first obtains the ambient temperature in the space where the air conditioner is located, as well as the minimum pull-in voltage of a relay inside the air conditioner and the rated voltage value of the relay, and then generates an initial control signal for controlling the relay based on the minimum pull-in voltage and the rated voltage value. Then, according to the ambient temperature, the signal parameters of the initial control signal are adjusted to obtain an adjusted target control signal, so as to control the operation of the relay based on the target control signal.

[0041] The present application customizes an initial control signal for controlling the operation of a relay with adjustable signal parameters through the minimum value of the relay's pull-in voltage and the rated voltage value of the relay, and adjusts the signal parameters of the initial control signal through the ambient temperature of the air conditioner. Thus, not only can the relay be controlled by a control signal with a signal duty cycle of not 100% when the ambient temperature is low, that is, when the pull-in effect of the relay is less affected by the temperature, so that the high-level voltage used to drive the relay to work will not be applied to both ends of the relay all the time when the relay is working; it can also avoid the influence of the temperature increase on the pull-in effect of the relay, thereby avoiding the influence on the working performance of the relay, by continuously increasing the parameter value of the signal parameter of the initial control signal when the ambient temperature rises, thereby solving the technical problem in the prior art of using a constant high-level voltage to control the relay to work, resulting in a short service life of the relay, thereby extending the service life of the relay while ensuring that the working performance of the relay is not affected. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0044] Figure 1A structural schematic diagram of the first embodiment of the air conditioner of the present application;

[0045] Figure 2 A flow chart of a control method for an air conditioner according to an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of signal waveforms before and after improvement provided in Embodiment 1 of the air conditioner control method of the present application;

[0047] Figure 4 A flow chart of a second embodiment of the air conditioner control method of the present application;

[0048] Figure 5 A schematic diagram of a relay structure provided in Embodiment 2 of the air conditioner control method of the present application;

[0049] Figure 6 A schematic diagram of the module structure of the control device of the air conditioner according to the embodiment of the present application;

[0050] Figure 7 Schematic diagram of the device structure of the hardware operating environment involved in the air conditioner control method in the embodiment of the present application.

[0051] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0052] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0053] Embodiment 1

[0054] A relay is an automatic switching element with an isolation function. It is widely used in remote control, telemetry, communication, automatic control, mechatronics and power electronic equipment. For example, the on and off of high-power electrical devices such as the electric auxiliary heating of air conditioners and outdoor units are usually controlled by relays.

[0055] Currently, a constant high-level voltage is usually used to control the relay to work. However, when the relay starts working, the high-level voltage will be continuously applied to both ends of the relay, causing the relay to continue to heat up, thus affecting the service life of the relay.

[0056] The working performance of the relay is affected by the electromagnetic induction efficiency of the internal coil. The higher the electromagnetic induction efficiency of the internal coil, the better the working performance of the relay. However, the coil is greatly affected by temperature. The coil resistance will increase with the increase of temperature, and the pull-in effect of the relay will be affected, resulting in a decrease in the current passing through the coil, which in turn leads to a decrease in the electromagnetic induction efficiency of the coil, affecting the working performance of the relay.

[0057] As an example, see Figure 1 , Figure 1 A structural schematic diagram of an air conditioner is provided, which includes a relay 100, a temperature sensor 200, an alarm 300 and a radiator 400. The relay 100 is connected to the temperature sensor 200, the alarm 300 and the radiator 400, respectively. The temperature sensor 200 is used to collect the ambient temperature in the space where the air conditioner is located. The alarm 300 is used to send an alarm prompt signal when the contacts of the relay 100 are in poor contact. The radiator is used to dissipate heat from the relay 100 when the temperature of the relay 100 is too high to reduce the temperature of the relay 100. This example does not specifically limit the structure of the air conditioner.

[0058] Based on this, the present application proposes a control method for an air conditioner of a first embodiment, wherein the air conditioner includes at least one relay. Figure 2 , the control method of the air conditioner comprises:

[0059] Step S10, obtaining the ambient temperature of the space where the air conditioner is located, and obtaining the minimum value of the pull-in voltage of the relay and the rated voltage value of the relay;

[0060] It should be noted that the minimum value of the relay's pull-in voltage refers to the minimum voltage required by the internal coil when the relay is in a normal working state, and the rated voltage of the relay refers to the optimal working voltage that the relay can be in a normal working state for a long time. When obtaining the ambient temperature in the space where the air conditioner is located, the ambient temperature in the space where the air conditioner is located can be obtained in real time, or the ambient temperature in the space where the air conditioner is located can be obtained periodically, and this embodiment does not limit this.

[0061] As an example, multiple relays may be arranged inside the air conditioner, and the minimum pull-in voltage and the minimum rated voltage of each relay may be different. In this case, in order to ensure the accuracy and efficiency of obtaining the minimum pull-in voltage and the rated voltage of the relay, a relay configuration information library may be set to record the correspondence between the rated voltage values ​​and the minimum pull-in voltage of different relay names. The step of obtaining the minimum pull-in voltage and the rated voltage of the relay includes: obtaining the relay name of the relay, using the relay name as an index, and searching the minimum pull-in voltage and the rated voltage corresponding to the relay in a preset relay configuration information library.

[0062] Step S20, generating an initial control signal for controlling the relay according to the minimum pull-in voltage value and the rated voltage value;

[0063] It should be noted that the initial control signal is a pulse waveform with adjustable signal parameters, and the signal parameters may include a signal duty cycle and a signal frequency. The initial control signal includes a high level interval and a low level interval. The high level interval refers to a time period during which a high level voltage is applied to both ends of the relay, and the low level interval refers to a time period during which a high level voltage is not applied to both ends of the relay. The high level voltage refers to the rated voltage of the relay.

[0064] As an example, a duty cycle database can be set up to record the initial duty cycles corresponding to different pull-in voltages. At this time, the step of generating an initial control signal for controlling the relay based on the minimum pull-in voltage and the rated voltage includes: taking the minimum pull-in voltage as an index, searching for the initial duty cycle corresponding to the minimum pull-in voltage in a preset duty cycle database, and outputting an initial control signal including the initial duty cycle at a preset frequency, wherein the signal amplitude of the initial control signal is the rated voltage value.

[0065] Step S30, adjusting the signal parameters of the initial control signal according to the ambient temperature to obtain a target control signal, wherein the signal parameters include a signal duty cycle and / or a signal frequency, and the ambient temperature is positively correlated with the parameter value of the signal parameter;

[0066] It should be noted that the target control signal is the initial control signal after the signal parameters are adjusted. The target control signal is used to control the operation of the relay. The signal duty cycle refers to the ratio of the duration of a high-level pulse to the total pulse period in an ideal pulse signal. The signal frequency refers to the signal duration of a signal unit.

[0067] Step S40: controlling the relay to operate based on the target control signal.

[0068] Please refer to Figure 3 , Figure 3 Waveform diagrams of control signals of a relay before and after improvement are provided. Since the improved control signal has a low-level interval, the average voltage and average current of the control signal are lower than those before improvement. Therefore, when the improved control signal is used to control the relay to work, not only can the power consumption be reduced, making the relay more energy-saving to use, but also the heat generation of the relay can be reduced, thereby extending the service life of the relay.

[0069] The embodiment of the present application customizes an initial control signal for controlling the operation of the relay with adjustable signal parameters through the minimum value of the relay's pull-in voltage and the rated voltage value of the relay, and adjusts the signal parameters of the initial control signal through the ambient temperature of the air conditioner. Therefore, not only can the relay be controlled by a control signal with a signal duty cycle of not 100% when the ambient temperature is low, that is, when the pull-in effect of the relay is less affected by the temperature, so that the high-level voltage used to drive the relay to work will not be continuously applied to both ends of the relay when the relay is working; it can also avoid the influence of the temperature increase on the pull-in effect of the relay, thereby avoiding the influence on the working performance of the relay, by continuously increasing the parameter value of the signal parameter of the initial control signal when the ambient temperature rises. This solves the technical problem in the prior art of using a constant high-level voltage to control the relay to work, resulting in a short service life of the relay, thereby extending the service life of the relay while ensuring that the working performance of the relay is not affected.

[0070] In a possible implementation, the step of generating an initial control signal for controlling the relay according to the minimum pull-in voltage value and the rated voltage value includes:

[0071] Step S21, determining a voltage ratio between the minimum pull-in voltage and the rated voltage, and using the voltage ratio as an initial duty cycle;

[0072] It is understandable that due to the limitations of the mechanical structure of the relay itself, when using an initial control signal with a signal duty cycle that is not 100% to control the operation of the relay, in order to ensure that the relay's attraction effect is not affected, it is necessary to set the initial duty cycle of the initial control signal through the minimum attraction voltage and the rated voltage value to further ensure that the working performance of the relay is not affected.

[0073] Step S22, outputting an initial control signal including the initial duty cycle at a preset frequency, wherein the signal amplitude of the initial control signal is the rated voltage value.

[0074] It should be noted that in order to reduce the interference of noise electromagnetic on the control signal, the preset frequency needs to be set between 20KHz and 30KHz.

[0075] In a possible implementation, the signal parameter includes a signal duty cycle, and the step of adjusting the signal parameter of the initial control signal according to the ambient temperature includes:

[0076] Step A31, when the ambient temperature is less than or equal to a first preset temperature threshold, maintaining the signal duty cycle of the initial control signal at the initial duty cycle.

[0077] In this embodiment, when the ambient temperature is less than or equal to the first preset temperature threshold, the electromagnetic induction efficiency of the internal coil of the relay is less affected by the temperature and can be ignored, so the signal duty cycle of the initial control signal does not need to be adjusted.

[0078] In a possible implementation, the signal parameter includes a signal duty cycle, and the step of adjusting the signal parameter of the initial control signal according to the ambient temperature includes:

[0079] Step B31, when the ambient temperature is greater than a first preset temperature threshold and less than a second preset temperature threshold, determining a temperature difference between the ambient temperature and the first preset temperature threshold;

[0080] Step B32, calculating a target duty cycle according to the temperature difference and the initial duty cycle, wherein the target duty cycle is greater than the initial duty cycle;

[0081] It should be noted that the greater the temperature difference, the higher the relay temperature, and the greater the target duty cycle finally calculated.

[0082] As an example, the formula for calculating the target duty cycle according to the temperature difference and the initial duty cycle is as follows:

[0083]

[0084] Wherein, y represents the target duty cycle, k represents the initial duty cycle, and x represents the temperature difference.

[0085] Step B33, adjusting the signal duty cycle of the initial control signal to the target duty cycle.

[0086] In the present embodiment, when the ambient temperature is greater than the first preset temperature threshold and less than the second preset temperature threshold, the electromagnetic induction efficiency of the internal coil of the relay will be affected by the temperature, resulting in a decrease in the electromagnetic induction efficiency, thereby affecting the attraction effect of the relay. However, in this temperature range, the influence of temperature on the electromagnetic induction efficiency can be eliminated by changing the signal duty cycle of the control signal, thereby increasing the signal duty cycle to ensure that the electromagnetic induction efficiency of the internal coil of the relay is not affected by the temperature, thereby ensuring the working performance of the relay.

[0087] In a possible implementation, the signal parameter includes a signal duty cycle, and the step of adjusting the signal parameter of the initial control signal according to the ambient temperature includes:

[0088] Step C31, when the ambient temperature is greater than or equal to a second preset temperature threshold, adjusting the signal duty cycle of the initial control signal to 100%.

[0089] It should be noted that the second preset temperature threshold is used to indicate whether there is a risk of failure of the relay.

[0090] In this embodiment, if the ambient temperature is greater than or equal to the second preset temperature threshold, the electromagnetic induction efficiency of the internal coil of the relay is greatly affected by the temperature due to the high ambient temperature. If there is a low-level interval in the control signal, the effective operation of the relay cannot be guaranteed, resulting in the relay's attraction effect being affected and there is a risk of failure. Therefore, to ensure that the relay's attraction effect is not affected, a control signal with a duty cycle of 100% is required to control the relay to ensure the relay's working performance.

[0091] A radiator can be set inside the air conditioner, so that when the ambient temperature is greater than or equal to the second preset temperature threshold, the radiator is started to cool the relay. The radiator can be a cooling fan that dissipates heat by blowing air, a cooling pipe that dissipates heat by water circulation, etc. This embodiment is not limited to this.

[0092] In a possible implementation, the signal parameter includes a signal frequency, and the step of adjusting the signal parameter of the initial control signal according to the ambient temperature includes:

[0093] Step D31, determining a target signal frequency corresponding to the ambient temperature according to a preset relationship between the ambient temperature and the signal frequency;

[0094] It should be noted that the preset relationship is the correspondence between ambient temperature and signal frequency, that is, one ambient temperature corresponds to one signal frequency. When determining the signal frequency corresponding to the ambient temperature, a record table recording the correspondence between the ambient temperature and the signal frequency can be set. Then, using the ambient temperature as an index, the duty cycle corresponding to the signal frequency can be searched in the record table; the signal frequency corresponding to the ambient temperature can also be determined by the change value of the ambient temperature. This embodiment does not limit this. For example, for every 1°C increase in ambient temperature, the signal frequency needs to increase by 1KHz on the original basis.

[0095] Step D32, adjusting the signal frequency of the initial control signal to the target signal frequency.

[0096] In this embodiment, when the ambient temperature rises, the duration of the high-level voltage of the control signal (i.e., the rated voltage of the relay) is extended by increasing the signal frequency of the initial control signal. Thus, when the moving contact and the static contact of the relay are disconnected due to the presence of a low-level interval in the control signal that controls the operation of the relay, the relay can be in the energized state again under the control of the high-level voltage with a longer duration in the control signal, thereby ensuring that the working performance of the relay is not affected.

[0097] In a possible implementation, a temperature sensor is provided inside the air conditioner, and the step of obtaining the ambient temperature in the space where the air conditioner is located includes:

[0098] Step S11, collecting the ambient temperature in the space where the air conditioner is located based on the temperature sensor.

[0099] It should be noted that the number of the temperature sensors can be one or more, and this embodiment does not limit this. It is understandable that the accuracy of the ambient temperature in the space where the air conditioner is located is higher when the number of the temperature sensors is set to be multiple than when the number of the temperature sensors is set to be one.

[0100] As an example, when multiple temperature sensors are arranged inside the air conditioner, the step of collecting the ambient temperature in the space where the air conditioner is located based on the temperature sensors may include collecting the sub-ambient temperatures in the space where the air conditioner is located based on each temperature sensor, calculating the average value of each sub-ambient temperature, and obtaining the ambient temperature; it may also include collecting the sub-ambient temperatures in the space where the air conditioner is located based on each temperature sensor, summarizing each sub-ambient temperature to obtain a temperature set, and selecting the mode in the temperature set as the ambient temperature. This example does not specifically limit the method of determining the ambient temperature in the space where the air conditioner is located based on multiple sensors.

[0101] In order to help understand the technical concept or technical principle of the present application, taking the first preset temperature threshold as 35°C, the second preset temperature threshold as 50°C, the minimum pull-in voltage of the relay as 12V, and the rated voltage of the relay as 24V as an example, a specific embodiment is listed, and the control process of the air conditioner is as follows:

[0102] 1. Get the ambient temperature of the space where the air conditioner is located;

[0103] 2. Generate an initial control signal with an initial duty cycle of 50% and a signal amplitude of 24V;

[0104] 3. If the ambient temperature is 25°C, the ambient temperature is less than the first preset temperature threshold of 35°C, and a control signal with a duty cycle of 50% is output to control the relay to work;

[0105] 4. If the ambient temperature is 45°C, the ambient temperature is greater than the first preset temperature threshold of 35°C and is less than the second preset temperature threshold of 50°C. Assuming that the signal duty cycle corresponding to the ambient temperature is 55%, the signal duty cycle of the initial control signal is adjusted to 55%, so as to output a control signal with a duty cycle of 55% to control the relay to work;

[0106] 5. If the ambient temperature is 55° C., which is greater than the second preset temperature threshold of 50° C., the signal duty cycle of the initial control signal is adjusted to 100%, so as to output a control signal with a duty cycle of 100% to control the relay to work.

[0107] It should be noted that the above specific embodiments are only used to understand the present application and do not constitute a limitation on the control method of the air conditioner of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0108] Embodiment 2

[0109] Based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 , before the step of obtaining the ambient temperature in the space where the air conditioner is located, it also includes:

[0110] Step S101, determining that the relay is in a closed state;

[0111] It should be noted that the energized state refers to the state of the relay when the moving contact and the static contact of the relay are in contact, the static contact refers to the contact inside the relay that does not follow the action of the actuator, and the moving contact refers to the contact inside the relay that follows the action of the actuator. The purpose of determining whether the relay is in the energized state is to determine whether the inside of the relay is conducting.

[0112] Step S102, when the relay is in the energized state, executing the step of obtaining the ambient temperature in the space where the air conditioner is located;

[0113] Step S103, when the relay is not in the energized state, outputting a control signal including a 100% duty cycle until the relay is in the energized state.

[0114] It should be noted that due to the limitations of the mechanical structure of the relay itself, the moving contact and the static contact need to be attracted or opened by the internal iron core, and the iron core needs a certain amount of time to complete the action of attraction or opening, that is, there is a default driving time for driving the relay to be in the attracted state, that is, it is necessary to continuously provide a driving voltage greater than the default driving time to successfully put the relay in the attracted state. Therefore, the duty cycle of the control signal is 100%.

[0115] In this embodiment, whether the internal part of the relay is turned on is determined by determining whether the relay is in the energized state. When the relay is in the energized state, it means that the internal part of the relay is turned on and the relay starts working, and the step of obtaining the ambient temperature in the space where the air conditioner is located is executed; when the relay is not in the energized state, it means that the internal part of the relay is not yet turned on and the relay has not started working, and it is necessary to output a control signal including a 100% duty cycle until the relay is in the energized state.

[0116] In another possible implementation, before the step of obtaining the ambient temperature in the space where the air conditioner is located, the air conditioner control method further includes:

[0117] Step E101, when the relay is just powered on, output a control signal including a 100% duty cycle and continue for a preset time to put the relay in an energized state.

[0118] It is understandable that when the relay is just powered on, the moving contact and the static contact of the relay have not yet completed the contact and connection. At this time, it is necessary to output a control signal including a 100% duty cycle and continue for a preset time to put the relay in the energized state and achieve internal conduction of the relay.

[0119] In a possible implementation, the air conditioner includes an alarm, and after the step of determining that the relay is in a closed state, the air conditioner control method further includes:

[0120] Step S111, when the relay is in a closed state, obtaining a static contact voltage and a moving contact voltage of the relay;

[0121] It should be noted that the static contact refers to the contact inside the relay that does not follow the action of the actuator. The static contact includes a normally open contact and a normally closed contact. The normally open contact refers to the static contact that is in the disconnected state when the internal coil of the relay is not energized. The normally closed contact refers to the static contact that is in the connected state when the internal coil of the relay is not energized. The moving contact refers to the contact inside the relay that follows the action of the actuator.

[0122] For example, please refer to Figure 6 ,exist Figure 6Among them, contact A is the normally closed contact, contact B is the normally open contact, contact C is the moving contact, and contact D is the common contact.

[0123] Step S112: If the static contact voltage is not equal to the moving contact voltage, the alarm is activated to send out an alarm prompt signal.

[0124] Poor contact of the relay contacts will cause the area for current to flow to decrease, and the current flowing per unit area to increase, which will increase the current density. This will not only cause more heat to be generated inside the relay, affecting the service life of the relay, but will also easily cause the relay to short-circuit, affecting the safety of the relay.

[0125] It should be noted that the alarm may be a buzzer, a light emitting diode, a voice announcer, a device integrating multiple alarm functions, etc., and this embodiment does not limit this. It is understandable that when the contacts of the relay are in poor contact, it means that the static contact is not in full contact with the moving contact, and at this time the static contact voltage will not be equal to the moving contact voltage.

[0126] In this embodiment, when the relay is in the energized state, the static contact voltage and the moving contact voltage of the relay are obtained. If the static contact voltage is not equal to the moving contact voltage, it means that the relay has a poor contact fault. At this time, it is necessary to start the alarm to send out an alarm prompt signal to remind the user to solve the poor contact fault in time to ensure the service life of the relay and improve the safety of the relay.

[0127] In a possible implementation, the alarm prompt signal includes a primary alarm signal and a secondary alarm signal, and the step of starting the alarm to send the alarm prompt signal includes:

[0128] Step S121, starting the alarm to send out a first-level alarm signal, and recording the duration of the first-level alarm signal;

[0129] Step S122, checking whether the duration is greater than a preset duration;

[0130] Step S123: If yes, control the alarm to send out a level 2 alarm signal, wherein the alarm intensity of the level 2 alarm signal is greater than the alarm intensity of the level 1 alarm signal;

[0131] It should be noted that the alarm intensity of the secondary alarm signal is greater than the alarm intensity of the primary alarm signal. The primary alarm signal and the secondary alarm signal may be signals of the same type, for example, both the primary alarm signal and the secondary alarm signal are sound alarm signals. The primary alarm signal and the secondary alarm signal may also be signals of different types, for example, the primary alarm signal is a sound alarm signal and the secondary alarm signal is a light alarm signal. This embodiment does not make any specific limitation on this.

[0132] As an example, when both the primary alarm signal and the secondary alarm signal are sound alarm signals, the step of controlling the alarm to send out the secondary alarm signal includes: increasing the vibration frequency of the primary alarm signal or extending the alarm duration of the primary alarm signal, so as to control the alarm to send out the secondary alarm signal. As another example, when both the primary alarm signal and the secondary alarm signal are light alarm signals, the step of controlling the alarm to send out the secondary alarm signal includes: increasing the light intensity of the primary alarm signal or extending the alarm duration of the primary alarm signal, so as to control the alarm to send out the secondary alarm signal, which is not specifically limited in this example.

[0133] Step S124: if not, then keep sending out the first-level alarm signal.

[0134] In this embodiment, the alarm is first started to send out a first-level alarm signal, and the duration of the first-level alarm signal is recorded. If the duration of the first-level alarm signal is not greater than the preset duration, the alarm continues to send out the first-level alarm signal. If the duration of the first-level alarm signal is greater than the preset duration, it means that the fault of the relay has not been resolved. At this time, it is necessary to control the alarm to send out a second-level alarm signal to further enhance the alarm intensity, so that users can more easily pay attention to the poor contact fault of the relay, and the poor contact fault needs to be resolved in time, thereby overcoming the technical problem that the alarm intensity is too low, making it difficult for users to pay attention to the poor contact fault of the relay, thereby affecting the safety of the use of the relay.

[0135] Embodiment 3

[0136] The present invention also provides a control device for an air conditioner. Figure 6 , the air conditioner includes at least one relay, and the control device of the air conditioner includes:

[0137] The acquisition module 10 is used to acquire the ambient temperature in the space where the air conditioner is located, and to acquire the minimum value of the pull-in voltage of the relay and the rated voltage value of the relay;

[0138] A generating module 20, configured to generate an initial control signal for controlling the relay according to the minimum pull-in voltage value and the rated voltage value;

[0139] An adjustment module 30, configured to adjust a signal parameter of the initial control signal according to the ambient temperature to obtain a target control signal, wherein the signal parameter includes a signal duty cycle and / or a signal frequency, and the ambient temperature is positively correlated with a parameter value of the signal parameter;

[0140] The control module 40 is used to control the operation of the relay based on the target control signal.

[0141] Optionally, the generating module 20 is further used for:

[0142] Determine a voltage ratio between the minimum pull-in voltage and the rated voltage, and use the voltage ratio as an initial duty cycle;

[0143] An initial control signal including the initial duty cycle is output at a preset frequency, wherein the signal amplitude of the initial control signal is the rated voltage value.

[0144] Optionally, the signal parameter includes a signal duty cycle, and the adjustment module 30 is further used for:

[0145] When the ambient temperature is less than or equal to a first preset temperature threshold, the signal duty cycle of the initial control signal is maintained at the initial duty cycle.

[0146] Optionally, the signal parameter includes a signal duty cycle, and the adjustment module 30 is further used for:

[0147] When the ambient temperature is greater than a first preset temperature threshold and less than a second preset temperature threshold, determining a temperature difference between the ambient temperature and the first preset temperature threshold;

[0148] Calculating a target duty cycle according to the temperature difference and the initial duty cycle, wherein the target duty cycle is greater than the initial duty cycle;

[0149] The signal duty cycle of the initial control signal is adjusted to the target duty cycle.

[0150] Optionally, the signal parameter includes a signal duty cycle, and the adjustment module 30 is further used for:

[0151] When the ambient temperature is greater than or equal to a second preset temperature threshold, the signal duty cycle of the initial control signal is adjusted to 100%.

[0152] Optionally, the signal parameter includes a signal frequency, and the adjustment module 30 is further configured to:

[0153] Determining a target signal frequency corresponding to the ambient temperature according to a preset relationship between the ambient temperature and the signal frequency;

[0154] The signal frequency of the initial control signal is adjusted to the target signal frequency.

[0155] Optionally, the control device of the air conditioner further includes:

[0156] Determining that the relay is in a closed state;

[0157] When the relay is in the energized state, performing the step of obtaining the ambient temperature in the space where the air conditioner is located;

[0158] When the relay is not in the energized state, a control signal including a 100% duty cycle is output until the relay is in the energized state.

[0159] Optionally, the control device of the air conditioner further includes:

[0160] When the relay is just powered on, a control signal including a 100% duty cycle is output and lasts for a preset time to keep the relay in the energized state.

[0161] Optionally, a temperature sensor is provided inside the air conditioner, and the acquisition module 10 is further used for:

[0162] The ambient temperature in the space where the air conditioner is located is collected based on the temperature sensor.

[0163] The control device of the air conditioner provided by the present invention adopts the control method of the air conditioner in the above-mentioned embodiment 1 or embodiment 2, which can solve the technical problem of the prior art that a constant high-level voltage is used to control the relay to work, resulting in a short service life of the relay. Compared with the prior art, the beneficial effects of the control device of the air conditioner provided by the embodiment of the present invention are the same as the beneficial effects of the control method of the air conditioner provided by the above-mentioned embodiment, and other technical features in the control device of the air conditioner are the same as the features disclosed in the method of the above-mentioned embodiment, which will not be described in detail here.

[0164] Embodiment 4

[0165] An embodiment of the present invention provides an air conditioner, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of the air conditioner in the above-mentioned embodiment one.

[0166] Reference below Figure 7, which shows a schematic diagram of the structure of an air conditioner suitable for implementing the embodiment of the present disclosure. The air conditioner in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The air conditioner shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0167] like Figure 7 As shown, the air conditioner may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the air conditioner are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the air conditioner to communicate with other devices wirelessly or wired to exchange data. Although the figure shows an air conditioner with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided alternatively.

[0168] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0169] The air conditioner provided by the present invention adopts the control method of the air conditioner in the above embodiment, which can solve the technical problem of the prior art that a constant high-level voltage is used to control the relay to work, resulting in a short service life of the relay. Compared with the prior art, the beneficial effects of the air conditioner provided by the embodiment of the present invention are the same as the beneficial effects of the control method of the air conditioner provided by the above embodiment, and other technical features in the air conditioner are the same as the features disclosed in the method of the previous embodiment, which will not be described in detail here.

[0170] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0171] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0172] Embodiment 5

[0173] An embodiment of the present invention provides a computer-readable storage medium, including computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the control method of the air conditioner in the above-mentioned embodiment 1.

[0174] The computer-readable storage medium provided in the embodiment of the present invention may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection including one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination thereof.

[0175] The computer-readable storage medium may be included in the air conditioner, or may exist independently without being installed in the air conditioner.

[0176] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the air conditioner, the air conditioner: obtains the ambient temperature in the space where the air conditioner is located, and obtains the minimum pull-in voltage value of the relay and the rated voltage value of the relay; generates an initial control signal for controlling the relay based on the minimum pull-in voltage value and the rated voltage value; adjusts the signal parameters of the initial control signal according to the ambient temperature to obtain a target control signal, wherein the signal parameters include a signal duty cycle and / or a signal frequency, and the ambient temperature is positively correlated with the parameter value of the signal parameter; and controls the operation of the relay based on the target control signal.

[0177] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0178] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a 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. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0179] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0180] The readable storage medium provided by the present invention is a computer-readable storage medium, which stores computer-readable program instructions for executing the control method of the air conditioner, and can solve the technical problem of using a constant high-level voltage to control the relay to work in the prior art, resulting in a short service life of the relay. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present invention are the same as the beneficial effects of the control method of the air conditioner provided in the above-mentioned embodiment 1 or embodiment 2, and will not be repeated here.

[0181] Embodiment 6

[0182] An embodiment of the present invention further provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the air conditioner control method as described above are implemented.

[0183] The computer program product provided by the present application can solve the technical problem in the prior art that a constant high-level voltage is used to control a relay to work, resulting in a short service life of the relay. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the air conditioner control method provided by the above-mentioned embodiment 1 or embodiment 2, and will not be described in detail here.

[0184] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A method for controlling an air conditioner, characterized in that: The air conditioner includes at least one relay, and the control method of the air conditioner includes: Obtaining the ambient temperature of the space where the air conditioner is located, and obtaining the minimum value of the pull-in voltage of the relay and the rated voltage value of the relay; generating an initial control signal for controlling the relay according to the minimum pull-in voltage value and the rated voltage value; According to the ambient temperature, adjusting the signal parameters of the initial control signal to obtain a target control signal, wherein the signal parameters include a signal duty cycle and / or a signal frequency, and the ambient temperature is positively correlated with a parameter value of the signal parameter; Based on the target control signal, the relay is controlled to operate.

2. The air conditioner control method according to claim 1, characterized in that: The step of generating an initial control signal for controlling the relay according to the minimum pull-in voltage value and the rated voltage value comprises: Determine a voltage ratio between the minimum pull-in voltage and the rated voltage, and use the voltage ratio as an initial duty cycle; An initial control signal including the initial duty cycle is output at a preset frequency, wherein the signal amplitude of the initial control signal is the rated voltage value.

3. The air conditioner control method according to claim 2, characterized in that: The signal parameter includes a signal duty cycle, and the step of adjusting the signal parameter of the initial control signal according to the ambient temperature includes: When the ambient temperature is less than or equal to a first preset temperature threshold, the signal duty cycle of the initial control signal is maintained at the initial duty cycle.

4. The air conditioner control method according to claim 2, characterized in that: The signal parameter includes a signal duty cycle, and the step of adjusting the signal parameter of the initial control signal according to the ambient temperature includes: When the ambient temperature is greater than a first preset temperature threshold and less than a second preset temperature threshold, determining a temperature difference between the ambient temperature and the first preset temperature threshold; Calculating a target duty cycle according to the temperature difference and the initial duty cycle, wherein the target duty cycle is greater than the initial duty cycle; The signal duty cycle of the initial control signal is adjusted to the target duty cycle.

5. The air conditioner control method according to claim 1, characterized in that: The signal parameter includes a signal duty cycle, and the step of adjusting the signal parameter of the initial control signal according to the ambient temperature includes: When the ambient temperature is greater than or equal to a second preset temperature threshold, the signal duty cycle of the initial control signal is adjusted to 100%.

6. The air conditioner control method according to claim 1, characterized in that: The signal parameter includes a signal frequency, and the step of adjusting the signal parameter of the initial control signal according to the ambient temperature includes: Determining a target signal frequency corresponding to the ambient temperature according to a preset relationship between the ambient temperature and the signal frequency; The signal frequency of the initial control signal is adjusted to the target signal frequency.

7. The air conditioner control method according to any one of claims 1 to 6, characterized in that: Before the step of obtaining the ambient temperature in the space where the air conditioner is located, the method further includes: Determining that the relay is in a closed state; When the relay is in the energized state, performing the step of obtaining the ambient temperature in the space where the air conditioner is located; When the relay is not in the energized state, a control signal including a 100% duty cycle is output until the relay is in the energized state.

8. The air conditioner control method according to any one of claims 1 to 6, characterized in that: Before the step of obtaining the ambient temperature in the space where the air conditioner is located, the method further includes: When the relay is just powered on, a control signal including a 100% duty cycle is output and lasts for a preset time to keep the relay in the energized state.

9. The air conditioner control method according to claim 1, characterized in that: A temperature sensor is arranged inside the air conditioner, and the step of obtaining the ambient temperature in the space where the air conditioner is located comprises: The ambient temperature in the space where the air conditioner is located is collected based on the temperature sensor.

10. An air conditioner, characterized in that: The air conditioner comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the air conditioner control method according to any one of claims 1 to 9.

11. A readable storage medium, characterized in that: The readable storage medium is a computer-readable storage medium, on which is stored a program for implementing a method for controlling an air conditioner. The program for implementing a method for controlling an air conditioner is executed by a processor to implement the steps of the method for controlling an air conditioner as described in any one of claims 1 to 9.