Disclosure of Invention
The invention provides a control method of an air conditioner, a control device of the air conditioner, electronic equipment, a non-transient computer readable storage medium and the air conditioner, which are used for solving the defect that the air conditioner in the prior art has larger power consumption.
The invention provides a control method of an air conditioner, which comprises the following steps: acquiring electric quantity data of a storage battery; if the electric quantity data is larger than a first preset value, controlling the air conditioner to operate according to an input instruction of a user, and simultaneously controlling the storage battery to supply power for an electric heating sheet of the air conditioner; and if the electric quantity data is smaller than a second preset value, controlling the air conditioner to start a charging mode.
According to the control method of the air conditioner provided by the present invention, if the electric quantity data is smaller than a second preset value, the step of controlling the air conditioner to start the charging mode further comprises: and controlling the air conditioner to operate according to the preset air speed.
According to the control method of the air conditioner provided by the invention, the step of controlling the air conditioner to operate according to the preset wind speed further comprises the following steps: judging whether an input instruction of a user is received; if so, controlling the air conditioner to operate according to an input instruction of a user, and simultaneously adjusting the operating wind speed of the air conditioner to be the preset wind speed; if not, controlling the air conditioner to execute an air supply mode, and simultaneously adjusting the running air speed of the air conditioner to be the preset air speed.
According to the control method of the air conditioner provided by the invention, before the step of controlling the air conditioner to execute the air supply mode and simultaneously adjusting the running air speed of the air conditioner to be the preset air speed, the control method further comprises the following steps: judging whether the current time period is a power utilization valley value; if yes, controlling the air conditioner to immediately execute an air supply mode; if not, controlling the air conditioner to execute an air supply mode within a preset time period.
According to a control method of an air conditioner provided by the present invention, the control method further includes: and if the electric quantity data is between the first preset value and the second preset value, controlling a storage battery to supply power for a sterilization mechanism of the air conditioner.
The present invention also provides a control apparatus of an air conditioner, comprising: the acquisition module is used for acquiring the electric quantity data of the storage battery; the first control module is used for controlling the air conditioner to operate according to an input instruction of a user and controlling the storage battery to supply power to the electric heating sheet when the electric quantity data is larger than a first preset value; and the second control module is used for controlling the air conditioner to start a charging mode when the electric quantity data is less than a second preset value.
According to the present invention, there is provided a control apparatus for an air conditioner, comprising: and the third control module is used for controlling the air conditioner to operate according to the preset air speed.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the control method of the air conditioner.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the control method of an air conditioner as described above.
The present invention also provides an air conditioner including: the indoor unit is provided with a fan, a power generation mechanism and a storage battery, and the power generation mechanism can convert wind energy generated by the fan into electric energy of the storage battery when the fan rotates; the outdoor unit is connected with the indoor unit and provided with an electric heating piece and a heat exchanger, the electric heating piece is attached to the heat exchanger, and the electric heating piece is electrically connected with the storage battery.
According to the control method of the air conditioner, when the electric quantity data of the storage battery is larger than the first preset value, power can be supplied to the electric heating sheet of the air conditioner, the power consumption of the air conditioner is reduced, and therefore the economic burden of a user is relieved; meanwhile, according to the control method of the air conditioner, when the air conditioner operates, the wind energy of the fan can be converted into the electric energy of the storage battery, so that the storage battery is charged, the storage battery can continuously supply power to the electric heating sheet, and continuous defrosting is realized.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The features of the terms first and second in the description and in the claims of the invention may explicitly or implicitly include one or more of these features. In the description of the present invention, "a plurality" means two or more unless otherwise specified.
A control method of an air conditioner, a control device of an air conditioner, an electronic apparatus, a non-transitory computer-readable storage medium, and an air conditioner of the present invention are described below with reference to fig. 1 and 2.
As shown in fig. 1, an embodiment of the present invention provides a method for controlling an air conditioner, which specifically includes the following steps: step 101: acquiring electric quantity data of a storage battery; step 102: if the electric quantity data is larger than the first preset value, controlling the air conditioner to operate according to an input instruction of a user, and simultaneously controlling the storage battery to supply power to an electric heating sheet of the air conditioner; step 103: and if the electric quantity data is smaller than the second preset value, controlling the air conditioner to start a charging mode.
Specifically, a fan, a power generation mechanism and a storage battery are arranged in an indoor unit of the air conditioner, when the air conditioner runs, wind energy generated by rotation of the fan is converted into electric energy of the storage battery under the action of the power generation mechanism, and the storage battery is connected with an electric heating piece of the air conditioner and supplies power for the electric heating piece. The electric heating sheet is provided in an outdoor unit of an air conditioner to perform a defrosting process to the outdoor unit. Before the air conditioner operates, acquiring the electric quantity data of the storage battery, if the electric quantity data is larger than a first preset value, and if the input instruction of a user is to start a heating mode, the air conditioner starts to operate the heating mode, and meanwhile, the storage battery supplies power for an electric heating sheet of the air conditioner so as to defrost an outdoor unit of the air conditioner. In the operation process of the air conditioner, the fan rotates to charge the storage battery, so that the storage battery can continuously supply power to the electric heating sheet, the power consumption of the air conditioner in operation is further reduced, and the economic burden of a user is reduced. And when the electric quantity of the storage battery is smaller than the second preset value, the air conditioner starts a charging mode to supplement the electric quantity of the storage battery, wherein the charging mode is an air supply mode in the embodiment.
Optionally, in an embodiment of the present invention, the first preset value is 50%, and the second preset value is 30%.
According to the control method of the air conditioner, when the electric quantity data of the storage battery is larger than the first preset value, power can be supplied to the electric heating sheet of the air conditioner, the electric power consumption of the air conditioner is reduced, and therefore the economic burden of a user is relieved; meanwhile, according to the control method of the air conditioner provided by the embodiment of the invention, when the air conditioner runs, the wind energy of the fan can be converted into the electric energy of the storage battery, so that the storage battery is charged, the storage battery can continuously supply power to the electric heating sheet, and continuous defrosting is realized.
Further, in an embodiment of the present invention, if the electric quantity data is smaller than a second preset value, the step of controlling the air conditioner to start the charging mode further includes: and controlling the air conditioner to operate according to the preset air speed.
Specifically, when the electric quantity data of the storage battery is low, the air conditioner is controlled to operate according to a preset wind speed, and the preset wind speed can be a medium wind speed mode or a high wind speed mode. The faster the rotational speed of fan, the wind energy that produces is bigger, and then the electric energy after the conversion is also bigger to improve the charge rate of battery, in order to guarantee that the battery can be greater than first default at the electric quantity data in shorter time.
Further, in an embodiment of the present invention, the step of controlling the air conditioner to operate at the preset wind speed further includes: judging whether an input instruction of a user is received; if so, controlling the air conditioner to operate according to an input instruction of a user, and simultaneously adjusting the operating wind speed of the air conditioner to be a preset wind speed; if not, controlling the air conditioner to execute an air supply mode, and simultaneously adjusting the running air speed of the air conditioner to be the preset air speed.
Specifically, when the air conditioner is controlled to operate according to the preset air speed, if an input instruction of a user is received at the moment, the air conditioner operates according to the input instruction of the user, and meanwhile, the operating air speed of the air conditioner is adjusted to be the preset air speed. For example, if the input command received by the user is a heating mode, the air conditioner executes the heating mode and adjusts the operating wind speed to a medium wind mode or a high wind mode. And if the input instruction of the user is not received, controlling the air conditioner to execute an air supply mode, and simultaneously adjusting the running air speed to be the preset air speed so as to quickly charge the storage battery.
Further, in an embodiment of the present invention, before the step of controlling the air conditioner to perform the air supply mode while adjusting the operating air speed of the air conditioner to the preset air speed, the method for controlling the air conditioner further includes: judging whether the current time period is the electricity valley value or not, if so, controlling the air conditioner to immediately execute an air supply mode; if not, controlling the air conditioner to execute an air supply mode within a preset time period.
Specifically, when an input instruction from a user is not received, the air conditioner is in a non-operating state at this time, and at this time, it is first determined whether the current time period is a power consumption valley value, in this embodiment, 0-00. And if the current time period is not the electricity utilization valley value, controlling the air conditioner to start to execute the air supply mode in the preset time period. Alternatively, the preset time period may be 1.
The control method of the air conditioner provided by the embodiment of the invention can automatically control the air conditioner to start the charging mode when the power consumption valley value is used, so that the storage battery is charged, the storage battery has sufficient electric quantity, and the storage battery can continuously supply power to the electric heating sheet when the air conditioner executes the heating mode, thereby reducing the power consumption of the air conditioner.
In one embodiment of the present invention, the control method of an air conditioner further includes: and if the electric quantity data is between the first preset value and the second preset value, controlling the storage battery to supply power for a sterilization mechanism of the air conditioner.
Specifically, when the electric quantity data is between the first preset value and the second preset value, the storage battery still has a certain electric quantity, which can supply power to some parts with lower electric consumption in the air conditioner, such as a sterilization mechanism, various sensors, a lamp and the like of the air conditioner.
The following describes the control method of the air conditioner in detail by using a specific embodiment.
Before the air conditioner is started, the electric quantity data of the storage battery is acquired, if the electric quantity data is larger than a first preset value, and at the moment, an input instruction of a user is just received, the air conditioner is controlled to execute the input instruction of the user, and the following can be understood: in this embodiment, the battery is mainly used to supply power to the electric heating sheets, so the input command of the user is basically the heating mode. And when the air conditioner executes a heating mode, the storage battery supplies power to the electric heating sheet so as to defrost the outdoor unit of the air conditioner. And when the electric quantity data of the storage battery is greater than the first preset value, if the input instruction of the user is not received, the air conditioner is not started. If the electric quantity data of the storage battery is smaller than the second preset value, if the input instruction of the user is received right at the moment, controlling the air conditioner to execute the input instruction of the user, and simultaneously adjusting the running air speed of the air conditioner to be the preset air speed so as to charge the storage battery; if the input instruction of the user is not received, judging whether the current time period is the power utilization valley value, and if the current time period is the power utilization valley value, controlling the air conditioner to immediately execute an air supply mode; and if the electricity consumption valley value is not the electricity consumption valley value, controlling the air conditioner to execute an air supply mode within a preset time period.
The following describes a control apparatus of an air conditioner provided by the present invention, and the control apparatus of an air conditioner described below and the control method of an air conditioner described above may be referred to in correspondence with each other.
An embodiment of the present invention further provides a control device for an air conditioner, including: the device comprises an acquisition module, a first control module and a second control module. The acquisition module is used for acquiring the electric quantity data of the storage battery, and the first control module is used for controlling the air conditioner to operate according to an input instruction of a user and controlling the storage battery to supply power to the electric heating sheet when the electric quantity data is larger than a first preset value. The second control module is used for controlling the air conditioner to start the charging mode when the electric quantity data is smaller than a second preset value.
Further, in one embodiment of the present invention, the control apparatus of the air conditioner further includes a third control module. And the third control module is used for controlling the air conditioner to operate according to the preset air speed.
Further, in one embodiment of the present invention, the control device of an air conditioner further includes: the device comprises a first judgment module, a fourth control module and a fifth control module. The first judging module is used for judging whether an input instruction of a user is received. The fourth control module is used for controlling the air conditioner to operate according to the input instruction of the user after receiving the input instruction of the user, and simultaneously controlling the operating wind speed of the air conditioner to be the preset wind speed. And the fifth control module is used for controlling the air conditioner to execute an air supply mode and simultaneously adjusting the running air speed of the air conditioner to be the preset air speed after receiving no input instruction of a user.
Further, in one embodiment of the present invention, the control apparatus of an air conditioner further includes: the device comprises a second judgment module, a sixth control module and a seventh control module. The second judging module is used for judging whether the current time period is the electricity valley value. The sixth control module is used for controlling the air conditioner to immediately execute an air supply mode when the current time period is the power utilization valley value. And the seventh control module is used for controlling the air conditioner to execute an air supply mode in a preset time period when the current time period is not the power utilization valley value.
Further, in an embodiment of the present invention, the control apparatus of the air conditioner further includes an eighth control module. The eighth control module is used for controlling the storage battery to supply power for the sterilization mechanism of the air conditioner when the electric quantity data is between the first preset value and the second preset value.
As shown in fig. 2, an embodiment of the present invention further provides an electronic device, where the electronic device may include: a processor (processor) 210, a communication Interface (communication Interface) 220, a memory (memory) 230 and a communication bus 240, wherein the processor 210, the communication Interface 220 and the memory 230 are communicated with each other via the communication bus 240. The processor 210 may call logic instructions in the memory 230 to perform a control method of the air conditioner.
It should be noted that, when the electronic device in this embodiment is specifically implemented, the electronic device may be a server, a PC, or other devices, as long as the structure includes the processor 210, the communication interface 220, the memory 230, and the communication bus 240 shown in fig. 2, where the processor 210, the communication interface 220, and the memory 230 complete mutual communication through the communication bus 240, and the processor 210 may call the logic instructions in the memory 230 to execute the method. The embodiment does not limit the specific implementation form of the electronic device.
In addition, the logic instructions in the memory 230 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a method of controlling an air conditioner provided by the above methods, the method comprising: acquiring electric quantity data of a storage battery; if the electric quantity data is larger than a first preset value, controlling the air conditioner to operate according to an input instruction of a user, and simultaneously controlling the storage battery to supply power for an electric heating sheet of the air conditioner; and if the electric quantity data is smaller than a second preset value, controlling the air conditioner to start a charging mode.
In still another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program that, when executed by a processor, is implemented to perform the control method of an air conditioner provided above, the method including: acquiring electric quantity data of a storage battery; if the electric quantity data is larger than a first preset value, controlling the air conditioner to operate according to an input instruction of a user, and simultaneously controlling a storage battery to supply power to an electric heating sheet of the air conditioner; and if the electric quantity data is smaller than a second preset value, controlling the air conditioner to start a charging mode.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
The embodiment of the invention also provides an air conditioner, which comprises an indoor unit and an outdoor unit. The indoor unit is connected with the outdoor unit and is provided with a fan, a power generation mechanism and a storage battery. When the fan rotates, the power generation mechanism can convert wind energy generated by the fan into electric energy of the storage battery. The outdoor unit is provided with an electric heating sheet, the electric heating sheet is attached to the heat exchanger, and the electric heating sheet is electrically connected with the storage battery so as to melt frosting generated on the heat exchanger.
Specifically, in the present embodiment, the operating principle and the specific structure of the power generation mechanism are the same as those of the power generation mechanism of the wind power generation in the related art, and therefore, the description thereof is omitted. In this embodiment, as long as the fan rotates, the storage battery can be charged, and meanwhile, the wind speed of the fan is positively correlated with the charging speed of the storage battery, and the larger the wind speed of the fan is, the faster the charging speed of the storage battery is. In the present embodiment, the storage battery may be charged when the air conditioner performs the heating mode, and the storage battery may supply power to the electric heating sheet. In this embodiment, the quantity of heat exchanger is two, and the electrical heating piece presss from both sides and locates between a pair of heat exchanger, when the air conditioner carries out the mode of heating, can produce the frosting on the heat exchanger, and the electrical heating piece heats the frosting to melt the frosting, guaranteed the effect of heating of air conditioner.
According to the air conditioner provided by the embodiment of the invention, the storage battery is arranged, so that the wind energy generated when the fan rotates can be converted into the electric energy of the storage battery, the power is supplied to the electric heating sheet of the air conditioner, the power consumption of the air conditioner is reduced, and the economic burden of a user is further lightened; meanwhile, when the air conditioner provided by the embodiment of the invention operates, the wind energy of the fan can be converted into the electric energy of the storage battery, so that the storage battery is charged, the storage battery can continuously supply power to the electric heating sheet, and continuous defrosting is realized.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.