Disclosure of Invention
The embodiment of the invention aims to provide a remote control method of household appliances, a mobile terminal and a remote control system of the household appliances, so that the mobile terminal can uniformly control and manage the traditional household appliances.
In order to solve the above technical problem, an embodiment of the present invention provides a remote control method for a home appliance, including: the method is applied to a mobile terminal and comprises the following steps: obtaining the model of the household appliance to be controlled; acquiring the infrared code pair of the household appliance to be controlled from the cloud according to the model; establishing Bluetooth connection with a household appliance controller; and sending the infrared code pair to the household appliance controller for the household appliance controller to send an infrared control signal to the household appliance to be controlled.
An embodiment of the present invention further provides a mobile terminal, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the method of remote control of an appliance as described above.
An embodiment of the present invention further provides a remote control system for a home appliance, including: household appliance controller and mobile terminal as above.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor, implements the method for remotely controlling an appliance as described above.
Compared with the prior art, the implementation mode of the invention has the main differences and the effects that: by utilizing the communication between the mobile terminal and the household appliance controller, the mobile terminal acquires a proper pairing code from the cloud and sends the pairing code to the household appliance controller, so that the household appliance controller can be used as a universal controller to uniformly control various household appliances, and the household appliances to be controlled can be uniformly managed on the mobile terminal.
As a further improvement, the obtaining of the model of the household appliance to be controlled specifically includes: acquiring the model of the household appliance to be controlled according to the input information of the user; or, obtaining the model of the household appliance to be controlled through a selection instruction of a user to the model list; or, the model of the household appliance to be controlled is obtained by scanning the pattern identification code containing the model of the household appliance to be controlled. The specific mode for obtaining the model of the household appliance to be controlled is further limited, and various modes can be selected according to actual needs, so that the method is more flexible and changeable.
As a further improvement, the sending the infrared pairing code to the home appliance controller specifically includes: encrypting the infrared pairing code; and sending the encrypted infrared pairing code to the household appliance controller. And the infrared code pair is further limited to be sent after being encrypted, so that the information safety of the household appliance to be controlled is ensured, and the household appliance to be controlled is prevented from being illegally controlled.
As a further improvement, a plurality of household appliances to be controlled are prestored in the mobile terminal; the method comprises the following steps of obtaining the model of the household appliance to be controlled: and acquiring the model of the household appliance to be controlled specified by the user. When the mobile terminal manages a plurality of household appliances in a unified manner, the household appliances to be controlled are designated by the user, so that the user requirements are met, and the management disorder is avoided.
As a further improvement, the home appliance controller is rotatable; the method further comprises the following steps: and when the infrared code matching is sent to the household appliance controller, a rotation instruction is also sent to the household appliance, wherein the rotation instruction comprises a rotation angle. Further limit can control rotatable household electrical appliances controller, more do benefit to the accurate control of household electrical appliances controller to household electrical appliances.
As a further improvement, after sending the infrared pairing code to the home appliance controller, the method further includes: and receiving and recording the state of the household appliance to be controlled from the household appliance controller. Further, the mobile terminal is limited to uniformly manage the current state of the household appliances to be controlled, so that the subsequent control of a user is facilitated.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a remote control method for a home appliance. The embodiment is particularly applied to a mobile terminal, such as a mobile phone, a pad (tablet computer) and the like, wherein a bluetooth module is arranged in the mobile terminal. The flow is shown in fig. 1, and specifically comprises the following steps:
step 101, obtaining the model of the household appliance to be controlled.
Specifically, the model of the household appliance to be controlled is obtained according to the input information of the user, for example, the user directly inputs a character string representing the model of the household appliance on a specific interface. In practical application, the model may be obtained in other manners, such as obtaining the model of the household appliance to be controlled through a selection instruction of the user on the model list, specifically, displaying a model list, and selecting the model by clicking in the list by the user. In addition, the model of the household appliance to be controlled can be obtained by scanning the pattern identification code containing the model of the household appliance to be controlled. If can be for the exclusive two-dimensional code of various model preparation, carry a household electrical appliances model in a two-dimensional code, the user can scan this exclusive two-dimensional code through the camera on the mobile terminal to obtain corresponding household electrical appliances model.
It is worth mentioning that the mobile terminal may be pre-stored with a plurality of home appliances to be controlled, and when obtaining the model, the model of the home appliance to be controlled specified by the user may be specifically obtained.
And step 102, acquiring the infrared pairing code of the household appliance to be controlled from the cloud according to the model.
Specifically, after the model is obtained, the infrared code matching corresponding to the model is obtained, the infrared code matching can be searched and obtained from a locally stored code library, and the code matching can also be requested from a cloud end by utilizing model information. The code library stores a plurality of codes, and stores household appliance models corresponding to the codes.
It should be mentioned that the obtained pairing code may be stored locally in the mobile terminal, and the obtained pairing code is stored in correspondence with the unique identifier (ID number or name) of the household appliance to be controlled. In practical application, the pairing codes of the existing household appliances in the house can be respectively acquired and stored locally for direct calling when control is needed.
And 103, establishing Bluetooth connection with the household appliance controller.
Specifically, the connection can be established by using the existing bluetooth connection mode, in addition, the home appliance controller can be realized by using the intelligent sound box, after the intelligent sound box finds the device (the user mobile phone), the user is informed by a broadcasting mode, and the user confirms the name of the intelligent sound box to be connected, so that the connection is established.
And 104, sending an infrared pairing code to the household appliance controller when receiving a control instruction of a user.
Specifically, when a user needs to control a certain household appliance, a control instruction can be input through operation on the mobile terminal. Furthermore, the infrared pairing code sent by the mobile terminal is used for the household appliance controller to send an infrared control signal to the household appliance to be controlled. More specifically, an infrared code pair is sent to the household appliance controller by using a Bluetooth transmission mode.
It should be further noted that, in the process of sending the infrared pairing code, the infrared pairing code may be encrypted first, and then the encrypted infrared pairing code is sent to the home appliance controller.
Compared with the prior art, the main differences and effects of the present embodiment are as follows: by means of Bluetooth communication of the mobile terminal and the household appliance controller, the mobile terminal obtains a proper pairing code from the cloud and sends the pairing code to the household appliance controller, the household appliance controller can serve as a universal controller to uniformly control various household appliances, and the household appliances to be controlled can be managed on the mobile terminal in a unified mode. Because the infrared control signal is still received for the household appliance to be controlled (traditional household appliance), the adaptability of the embodiment is strong, and the structure of the traditional household appliance does not need to be changed. In addition, because the mobile terminal is not used for direct control, the control signal is firstly sent to the household appliance controller, and then the specific household appliance is controlled by the household appliance controller, the household appliance can be controlled only by placing the household appliance controller near the household appliance to be controlled, the controlled range of the household appliance is prolonged, and the requirement of a common household application scene can be met. Therefore, the mobile terminal can uniformly control and manage the traditional household appliances, the improvement is simple, the application scene is wide, the popularization is facilitated, and the economic benefit is good.
A second embodiment of the present invention relates to a method for remotely controlling a home appliance. The second embodiment is a further improvement on the first embodiment, and the main improvement is that: in the second embodiment of the present invention, the home appliance controller may be controlled to rotate by the rotation command, so that the infrared signal emitted from the home appliance controller is more accurately transmitted to the home appliance to be controlled.
A flow chart of a remote control method for a home appliance in the present embodiment is shown in fig. 2, and specifically includes the following steps:
steps 201 to 204 in this embodiment are similar to steps 101 to 104 in the first embodiment, and are not described again here.
And step 205, when the infrared pairing code is sent to the household appliance controller, sending a rotation instruction to the household appliance.
Specifically, the step may be executed simultaneously with the step 204, where the rotation instruction may include a rotation angle, and more specifically, the mobile terminal may pre-store the orientation of the home appliance to be controlled relative to the home appliance controller, calculate the required rotation angle according to the initial position of the home appliance controller, directly send the rotation instruction carrying the rotation angle to the home appliance controller, and the home appliance controller rotates after receiving the rotation instruction.
Therefore, the embodiment further limits the rotatable household appliance controller to be controlled, and is more beneficial to the accurate control of the household appliance controller on the household appliance.
A third embodiment of the present invention relates to a remote control method for a home appliance. The third embodiment is a further improvement on the first embodiment, and the main improvement is that: the embodiment adds a step of receiving the state of the household appliance, realizes unified management of the current state of the household appliance to be controlled by the mobile terminal, and facilitates subsequent control of a user.
A flow chart of a remote control method for a home appliance in the present embodiment is shown in fig. 3, and specifically includes the following steps:
steps 301 to 304 in this embodiment are similar to steps 101 to 104 in the first embodiment, and are not described again here.
And 305, receiving and recording the state of the household appliance to be controlled from the household appliance controller.
Specifically, in this embodiment, after sending the control instruction, the home appliance controller feeds back the information of the state of the home appliance to be controlled to the mobile terminal of the user. If the household appliance controller sends a lamp turning-off instruction to the lamp A, the information that the lamp A is in the lamp turning-off state is fed back to the mobile terminal, and the mobile terminal records that the lamp A is in the lamp turning-off state.
Therefore, the mobile terminal can record the states of a series of household appliances to be controlled, and the mobile terminal can display the states of the household appliances in an app or a specific interface in a centralized manner, so that subsequent processing and control of a user are facilitated. If the user goes out, whether each household appliance is in a closed state or not can be inquired through the interface, if some household appliances are still in an open state, such as a television, other people can be informed to help to close, and the user can return to close.
Therefore, the embodiment further limits the mobile terminal to uniformly manage the current state of the household appliances to be controlled, and facilitates subsequent control of the user.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fourth embodiment of the present invention relates to a mobile terminal, as shown in fig. 4, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of remotely controlling an appliance as in any one of the first to third embodiments.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
A fifth embodiment of the present invention relates to a remote control system for a home appliance, as shown in fig. 5, specifically including: the home appliance controller 51 and the mobile terminal 52 as mentioned in the fourth embodiment, the home appliance 53 to be controlled receives an infrared control signal of the home appliance controller 51.
In addition, in the present embodiment, the remote control system for home appliances may specifically include a plurality of home appliance controllers, for example, for a home environment in a plurality of rooms, one home appliance controller may be provided in each room, and the mobile terminal may transmit a control command to the corresponding home appliance controller when controlling a home appliance.
In addition, the remote control system for home appliances in this embodiment may further specifically include a plurality of mobile terminals, such as mobile terminals of different family members, and when different family members need to control a home appliance, the home appliances may be controlled through their own mobile terminals, so that the control process of the user is more free, and the user's requirements are further met.
A sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. 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.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.