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.
Present air conditioner links to each other with home network or user's cell-phone usually, when controlling it, and the majority needs the user to use media such as remote controller or APP to control, not only can't realize intelligent control, and the user uses moreover and is not convenient enough, has reduced user experience and feels. Therefore, the invention provides an automatic control method of an air conditioner. Fig. 1 is a schematic flow chart of an automatic control method of an air conditioner according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
s1, determining the distance between the air conditioner and the user terminal based on the wireless network module;
and S2, if the distance is judged and known to be within the preset distance threshold range, acquiring a first temperature of the area where the air conditioner is located based on a wireless network module, and automatically controlling the air conditioner according to the first temperature.
According to the automatic control method of the air conditioner, the execution main body is the air conditioner controller, the air conditioner controller is arranged in the air conditioner and electrically connected with the wireless network module, and the air conditioner can be controlled.
Firstly, step S1 is executed, the wireless network module can be placed inside the air conditioner, and the wireless network module mainly includes three types: wireless network card, wireless network card and bluetooth module. The wireless network module is a transmitting end module and a receiving end module, which are generally main modules respectively used for a wireless network bridge master and a wireless network bridge slave. The signal transmitting module is responsible for transmitting signals, the signal receiving module is responsible for receiving signals, the signal transmitting module corresponds to the signal receiving module, and the wireless network module can also correspond to a plurality of receiving terminals through one transmitting terminal.
The air conditioner can be bound and interconnected with the user terminal through the wireless network module. After the air conditioner is bound with the user terminal through the wireless network module, the air conditioner controller can acquire user terminal information through the wireless network module, and the acquired user terminal information can include the position information of the user terminal in real time. The position of the air conditioner is fixed and cannot be moved randomly, so that the position of the air conditioner where the air conditioner is located can be set as a default address, and after the position information of the user terminal where the user terminal is located in real time is obtained, the distance between the position of the air conditioner and the position where the user terminal is located in real time can be determined, namely the distance between the air conditioner and the user terminal.
The user terminal can be a mobile phone, an iPad and other devices which have an internet surfing function and can be bound and interconnected with an air conditioner; the number of user terminals may be at least one. For example, when the air conditioner is installed in a living room, each member of the family may be bound and interconnected with the air conditioner through a respective device, and in this case, the number of the user terminals may be multiple, including the device of each member of the family.
Then, step S2 is executed, and after the distance between the air conditioner and the user terminal is acquired, the acquired distance may be determined, that is, whether the acquired distance is within the preset distance threshold range may be determined. The preset distance threshold range may be set according to actual needs, and the present invention is not particularly limited to this. For example, the preset distance threshold range may be set to a range with a length of 1 meter or 1.5 meters and the like in the radius of the air conditioner.
When a plurality of user terminals exist, the position information of the user terminals can be simultaneously acquired, namely the positions of the user terminals in real time are acquired, the distances between the positions of the user terminals in real time and the air conditioner position are determined, whether each acquired distance is within a preset distance threshold range is judged, and the acquired distance is considered to be within the preset distance threshold range as long as at least one distance is within the preset distance threshold range.
And if the distance between the air conditioner and the user terminal is determined to be within the preset distance threshold value range through judgment, the user is in the room where the air conditioner is located or is close to the house where the air conditioner is located. At this time, the first temperature of the area where the air conditioner is located can be obtained through the wireless network module. The air conditioner controller can be connected with the internet through the wireless network module, and can obtain the first temperature of the area where the air conditioner is located from the internet, wherein the first temperature can be the outdoor average temperature of the area where the air conditioner is located.
After the first temperature is obtained, the air conditioner can be automatically controlled according to the first temperature. For example, if the user is in the room where the air conditioner is located, when the first temperature is high enough, it indicates that the indoor temperature is likely to be increased by the high outdoor temperature; if the user is near the house where the air conditioner is located, when the first temperature is high enough, it indicates that the user may have a cooling demand after entering the room. Therefore, when the first temperature is high enough, the air conditioner can be automatically controlled to start the cold air mode. If the user is in the room where the air conditioner is located, when the first temperature is low enough, the indoor temperature is most likely to be reduced due to the low outdoor temperature; if the user is near the room where the air conditioner is located, when the first temperature is low enough, it indicates that the user may have a heating demand after entering the room. Therefore, when the first temperature is low enough, the air conditioner can be automatically controlled to start the hot air mode.
In the embodiment of the invention, the distance between the air conditioner and the user terminal is determined through the wireless network module, whether the obtained distance is within the preset distance threshold value is judged, when the obtained distance is within the preset distance threshold value range, the first temperature of the area where the air conditioner is located is obtained through the wireless network module, the air conditioner is automatically controlled according to the first temperature, the user does not need to control the air conditioner through media such as a remote controller or an APP (application), the intelligent control of the air conditioner is realized, the use of the user is facilitated, and meanwhile, the experience of the user is improved.
On the basis of the foregoing embodiment, the method for automatically controlling an air conditioner according to an embodiment of the present invention, which automatically controls the air conditioner according to the first temperature, specifically includes:
if the first temperature is judged to be lower than a first temperature threshold or higher than a second temperature threshold, acquiring a second temperature of the room where the air conditioner is located, and automatically controlling the air conditioner according to the second temperature;
and if the first temperature is judged to be between the first temperature threshold value and the second temperature threshold value, the air conditioner is turned off.
Specifically, in the embodiment of the present invention, after the first temperature is obtained, the air conditioner may be automatically controlled by determining the relationship between the first temperature and the first temperature threshold and the second temperature threshold. When the first temperature is lower than the first temperature threshold or higher than the second temperature threshold, acquiring a second temperature of the room where the air conditioner is located, and automatically controlling the air conditioner according to the second temperature; the air conditioner may be directly turned off if the first temperature is between the first temperature threshold and the second temperature threshold. The first temperature threshold and the second temperature threshold may be set according to actual needs of a user, which is not specifically limited in the present invention.
For example, the first temperature acquired by the wireless network module is 14 degrees, which indicates that the outdoor average temperature of the area where the air conditioner is located is 14 degrees at this time. The first temperature threshold value set by the user 1 is 17 degrees, the second temperature threshold value is 26 degrees, and the user 1 determines that if the outdoor temperature is between 17 degrees and 26 degrees, no matter the user 1 is located indoors where the air conditioner is located or near a house where the air conditioner is located, the air conditioner does not need to be started indoors; if the outdoor temperature is lower than 17 degrees or higher than 26 degrees, when the user 1 is located indoors where the air conditioner is located, the indoor temperature may be lowered or raised due to the outdoor temperature, when the user 1 is located near the house where the air conditioner is located, heating or cooling is needed after entering the room, and in any case, the air conditioner needs to be started to adjust the indoor temperature. In this case, as can be seen from comparison, the first temperature at this time is lower than the first temperature threshold, which indicates that the air conditioner needs to be turned on to adjust the indoor temperature, so that the second temperature in the room where the air conditioner is located can be continuously obtained, and the air conditioner can be automatically controlled according to the second temperature.
For another example, the first temperature obtained through the wireless network module is 23 degrees, which indicates that the outdoor average temperature of the area where the air conditioner is located is 23 degrees at this time. The first temperature threshold value set by the user 2 is 16 degrees, the second temperature threshold value is 25 degrees, and the user 2 considers that the outdoor temperature is between 16 degrees and 25 degrees, and no matter the user 2 is located indoors where the air conditioner is located or near the house where the air conditioner is located, the air conditioner does not need to be started indoors; if the outdoor temperature is lower than 16 degrees or higher than 25 degrees, when the user 2 is located indoors where the air conditioner is located, the indoor temperature may be lowered or raised due to the outdoor temperature, when the user 2 is located near a house where the air conditioner is located, heating or cooling is needed after entering the room, and in any case, the air conditioner needs to be turned on to adjust the indoor temperature. In this case, as can be seen by comparison, the first temperature at this time is between the first temperature threshold and the second temperature threshold, which indicates that the outdoor temperature at this time is a comfortable temperature for the user 2, and the air conditioner can be directly turned off without turning on the air conditioner to adjust the indoor temperature.
In the embodiment of the invention, after the wireless network module obtains the first temperature, the first temperature can be compared with the first temperature threshold and the second temperature threshold, and the air conditioner is automatically controlled according to the comparison result, because a user can customize the first temperature threshold and the second temperature threshold, the air conditioner can be more intelligent and better meet the requirements of the user when being automatically controlled, the use experience of the user is improved, the user can be in a more comfortable temperature, and when the outdoor temperature is the temperature which is considered to be more comfortable by the user, the user does not need to cool or warm after entering the room, the indoor temperature does not change greatly due to the outdoor temperature, the air conditioner can be automatically closed, resources are saved, and the waste of electric energy is avoided.
On the basis of the foregoing embodiment, the method for automatically controlling an air conditioner according to an embodiment of the present invention, which automatically controls the air conditioner according to the second temperature, specifically includes:
if the first temperature is lower than the first temperature threshold value and the second temperature is lower than a third temperature threshold value, automatically starting the air conditioner heating mode until the second temperature reaches the third temperature threshold value;
and if the first temperature is judged to be lower than the first temperature threshold value and the second temperature is judged to be higher than the third temperature threshold value, the air conditioner is turned off.
Specifically, in the embodiment of the present invention, when the first temperature is lower than the first temperature threshold or the first temperature is higher than the second temperature threshold, the second temperature needs to be acquired again, and the air conditioner needs to be automatically controlled according to the second temperature.
If the first temperature is judged to be lower than the first temperature threshold, judging the second temperature, and determining whether the second temperature is lower than a third temperature threshold; if the first temperature is lower than the first temperature threshold, but the second temperature is higher than the third temperature threshold, the air conditioner can be directly closed.
The second temperature can be obtained through an indoor temperature sensor arranged in the air conditioner, and the second temperature is the indoor temperature where the air conditioner is located, namely the indoor temperature. The third temperature threshold may be set according to the needs of the user, which is not particularly limited in the embodiment of the present invention.
For example, the user 3 sets the first temperature threshold to be 18 degrees, the third temperature threshold to be 18 degrees, and the first temperature obtained at this time is 13 degrees, and it is determined that the first temperature at this time is lower than the first temperature threshold, and it is necessary to continue to obtain the second temperature. If the second temperature obtained at this time is 14 degrees, it can be known through judgment that the second temperature at this time is also lower than the third temperature threshold, that is, the first temperature is lower than the first temperature threshold and the second temperature is lower than the third temperature threshold, which indicates that the indoor and outdoor temperatures at this time are both low, and the air conditioner needs to be started to adjust the indoor temperature, so that the heating mode of the air conditioner can be automatically started to raise the indoor temperature until the third temperature threshold is reached, so that the user feels comfortable and not cold at the indoor temperature.
In the embodiment of the invention, the second temperature is acquired under the condition that the first temperature is lower than the first temperature threshold, the heating mode of the air conditioner is started under the condition that the second temperature is lower than the third temperature threshold, the air conditioner is closed under the condition that the second temperature is higher than the third temperature threshold, and because the outdoor temperature has temperature difference, the third temperature threshold is customized by a user and the indoor temperature is compared with the third temperature threshold, the heating mode of the air conditioner is started under the condition that the indoor temperature is lower than the third temperature threshold, and the air conditioner is closed under the condition that the outdoor temperature is higher than the third temperature threshold, so that the user can be always in a comfortable indoor temperature environment, and unnecessary waste is avoided.
On the basis of the foregoing embodiment, the method for automatically controlling an air conditioner according to an embodiment of the present invention, which automatically controls the air conditioner according to the second temperature, specifically further includes:
if the first temperature is judged to be higher than the second temperature threshold and the second temperature is judged to be higher than a fourth temperature threshold, the air conditioner refrigeration mode is automatically started until the second temperature reaches the fourth temperature threshold;
and if the first temperature is judged to be higher than the second temperature threshold value and the second temperature is lower than the fourth temperature threshold value, the air conditioner is turned off.
Specifically, in the embodiment of the present invention, as is apparent from the above description, in both cases where the first temperature is lower than the first temperature threshold value and the first temperature is higher than the second temperature threshold value, the second temperature needs to be acquired again and the air conditioner needs to be automatically controlled based on the second temperature.
If the first temperature is judged to be higher than the second temperature threshold, judging the second temperature, and determining whether the second temperature is higher than a fourth temperature threshold; if so, automatically starting the air conditioner refrigeration mode until the second temperature reaches a fourth temperature threshold, and if not, namely the first temperature is higher than the first temperature threshold but the second temperature is lower than the fourth temperature threshold, directly closing the air conditioner.
For example, the user 4 sets the second temperature threshold to be 28 degrees, the third temperature threshold to be 26 degrees, and the first temperature acquired at this time to be 29 degrees, and it is determined that the first temperature at this time is higher than the first temperature threshold, and it is necessary to continue acquiring the second temperature. If the second temperature obtained at this time is 28 degrees, it can be known through judgment that the second temperature at this time is also higher than the fourth temperature threshold, that is, the first temperature is higher than the first temperature threshold and the second temperature is higher than the fourth temperature threshold, which indicates that both the indoor temperature and the outdoor temperature at this time are higher, and the air conditioner needs to be started for temperature adjustment.
In the embodiment of the invention, the second temperature is obtained under the condition that the first temperature is higher than the second temperature threshold, the refrigeration mode of the air conditioner is started under the condition that the second temperature is higher than the fourth temperature threshold, the air conditioner is closed under the condition that the second temperature is lower than the fourth temperature threshold, and because the outdoor temperature has temperature difference, the fourth temperature threshold is customized by a user and the indoor temperature is compared with the fourth temperature threshold, the refrigeration mode of the air conditioner is started when the indoor temperature is higher than the fourth temperature threshold, and the air conditioner is closed when the indoor temperature is lower than the fourth temperature threshold, so that the user can be always in a comfortable indoor temperature environment, and unnecessary waste is avoided.
On the basis of the above embodiment, in the automatic control method of the air conditioner provided by the embodiment of the invention, the wireless network module comprises a WIFI module.
Specifically, in the embodiment of the present invention, the wireless network module may be a WIFI module, and the WIFI module is bound and interconnected with the user terminal, so as to obtain a real-time location of the user terminal and be capable of connecting to the internet to obtain an outdoor temperature of an area where the air conditioner is located.
The WIFI module belongs to an internet of things transmission layer, and has the functions of converting a serial port or TTL level into an embedded module which accords with a Wi-Fi wireless network communication standard, and a wireless network protocol stack and a TCP/IP protocol stack are arranged in the WIFI module. The Wi-Fi module is embedded in the air conditioner, so that the air conditioner can be directly connected to the Internet by using Wi-Fi.
In the embodiment of the invention, the WIFI module arranged in the air conditioner is more accurate in determining the distance between the air conditioner and the user terminal, so that the first temperature acquired by the air conditioner is more accurate, the intellectualization and networking of the air conditioner can be better realized, and the automatic control efficiency of the air conditioner is improved.
On the basis of the above embodiment, the automatic control method for an air conditioner according to the embodiment of the present invention further includes:
and if the distance is judged to be out of the distance threshold range, the air conditioner is closed.
After the distance between the air conditioner and the user terminal is obtained, if the distance is known to be out of the preset distance threshold range through judgment, the distance between the user and the air conditioner is far, and the air conditioner is not required to be started, so that the air conditioner can be directly turned off, electric energy is saved, and unnecessary waste is avoided.
When a plurality of user terminals exist, all acquired distances can be compared with a preset distance threshold, and when all the distances are beyond the preset distance threshold, the air conditioner is turned off, so that the air conditioner cannot be turned on in time when a user enters the room.
Fig. 2 is a schematic specific flow chart of an automatic control method of an air conditioner according to an embodiment of the present invention, and as shown in fig. 2, the method includes:
s21, the air conditioner is bound and interconnected with the user terminal through the WIFI module, and the distance between the air conditioner and the user terminal is obtained;
s22, judging whether the distance between the air conditioner and the user terminal is within the preset distance threshold range, if so, continuing to execute S23, and if not, directly executing S211;
s23, acquiring a first temperature, namely the air temperature of the region through a WIFI module;
s24, judging whether the temperature of the area is lower than 18 ℃, if so, continuing to execute S25, and if not, executing S26;
s25, acquiring a second temperature, namely the indoor temperature; after performing S25, S27 or S29 may be performed;
s26, judging whether the temperature of the area is higher than 28 ℃, if yes, returning to execute S25, if not, explaining that the temperature of the area is between 18 ℃ and 28 ℃, and directly executing S211;
s27, judging whether the indoor temperature is higher than 25 ℃, if yes, continuing to execute S28, and if not, directly executing S211;
s28, starting a refrigeration mode to reduce the indoor temperature to 25 ℃;
s29, judging whether the indoor temperature is lower than 18 ℃, if so, continuing to execute S210, and if not, directly executing S211;
s210, starting a heating mode to raise the indoor temperature to 18 ℃;
and S211, closing the air conditioner.
Fig. 3 is a schematic structural diagram of an automatic control system of an air conditioner according to an embodiment of the present invention, and as shown in fig. 3, the system includes:
adistance determining module 301, configured to determine a first distance between the air conditioner and the user terminal based on the wireless network module;
and theautomatic control module 302 is configured to, if it is determined that the first distance is within a preset distance threshold range, obtain a first temperature of an area where the air conditioner is located based on a wireless network module, and automatically control the air conditioner according to the first temperature.
On the basis of the above embodiment, in the automatic control system of an air conditioner provided in the embodiment of the present invention, the automatic control module specifically includes:
the automatic control sub-module is used for acquiring a second temperature of the room where the air conditioner is located if the first temperature is judged to be lower than a first temperature threshold or higher than a second temperature threshold, and automatically controlling the air conditioner according to the second temperature;
and the automatic closing submodule is used for closing the air conditioner if the first temperature is judged and acquired to be between the first temperature threshold and the second temperature threshold.
On the basis of the above embodiment, in the automatic control system of an air conditioner provided in the embodiment of the present invention, the automatic control submodule is specifically configured to:
if the first temperature is lower than the first temperature threshold value and the second temperature is lower than a third temperature threshold value, automatically starting the air conditioner heating mode until the second temperature reaches the third temperature threshold value;
and if the first temperature is judged to be lower than the first temperature threshold value and the second temperature is judged to be higher than the third temperature threshold value, the air conditioner is turned off.
On the basis of the above embodiment, in the automatic control system of an air conditioner provided in the embodiment of the present invention, the automatic control submodule is further specifically configured to:
if the first temperature is judged to be higher than the second temperature threshold and the second temperature is judged to be higher than a fourth temperature threshold, the air conditioner refrigeration mode is automatically started until the second temperature reaches the fourth temperature threshold;
and if the first temperature is judged to be higher than the second temperature threshold value and the second temperature is lower than the fourth temperature threshold value, the air conditioner is turned off.
On the basis of the above embodiment, in the automatic control system for an air conditioner provided by the embodiment of the present invention, the wireless network module includes a WIFI module.
On the basis of the above embodiment, the automatic control system of an air conditioner provided in the embodiment of the present invention further includes:
and the closing module is used for closing the air conditioner if the distance is judged to be out of the distance threshold range.
Specifically, the functions of the modules in the automatic air conditioner control system provided in the embodiment of the present invention correspond to the operation flows of the steps in the above method embodiments one to one, and the implementation effects are also consistent.
The invention also provides an air conditioner, which comprises the automatic air conditioner control system, wherein the automatic air conditioner control system is used for automatically controlling the air conditioner.
Specifically, the functions of the air conditioner provided in the embodiment of the present invention correspond to the operation flows of the steps in the embodiment of the automatic control system of the air conditioner one to one, and the achieved effects are also consistent.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor)410, acommunication Interface 420, a memory (memory)430 and acommunication bus 440, wherein theprocessor 410, thecommunication Interface 420 and thememory 430 are communicated with each other via thecommunication bus 440. Theprocessor 410 may call logic instructions in thememory 430 to execute an automatic air conditioner control method provided by the above embodiments, where the method includes: determining the distance between the air conditioner and the user terminal based on the wireless network module; and if the distance is judged and obtained to be within the range of the preset distance threshold value, acquiring a first temperature of the area where the air conditioner is located based on a wireless network module, and automatically controlling the air conditioner according to the first temperature.
In addition, the logic instructions in thememory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. 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 other 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 execute the automatic control method of the air conditioner provided by the above embodiments, the method comprising: determining the distance between the air conditioner and the user terminal based on the wireless network module;
and if the distance is judged and obtained to be within the range of the preset distance threshold value, acquiring a first temperature of the area where the air conditioner is located based on a wireless network module, and automatically controlling the air conditioner according to the first temperature.
In still another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, the computer program being implemented by a processor to perform the automatic control method of an air conditioner provided in the above embodiments, the method including: determining the distance between the air conditioner and the user terminal based on the wireless network module; and if the distance is judged and obtained to be within the range of the preset distance threshold value, acquiring a first temperature of the area where the air conditioner is located based on a wireless network module, and automatically controlling the air conditioner according to the first temperature.
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 can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
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.