Disclosure of Invention
To overcome, at least to some extent, the problems in the related art, the present application provides a device control method and apparatus.
According to a first aspect of embodiments of the present application, there is provided an apparatus control method including:
acquiring current identification information of a terminal used by a current user;
determining a current control strategy according to the current identification information;
and controlling the equipment according to the current control strategy.
Further, the acquiring current identification information of the terminal used by the current user includes:
and acquiring the identification information of the terminal currently accessed to the local wireless network, and determining the current identification information of the terminal used by the current user.
Further, the acquiring the identification information of the terminal currently accessing the local wireless network includes:
sending an inquiry request to a local wireless router so that the wireless router sends the captured identification information of all terminals which are currently in wireless connection with the wireless router after receiving the inquiry request;
and receiving the identification information sent by the wireless router, and determining the identification information as current identification information.
Further, the determining a current control policy according to the current identification information includes:
acquiring historical record information, wherein the historical record information comprises a corresponding relation between user information and a control strategy;
determining current user information according to the current identification information;
if the current user information is contained in the historical record information, determining a current control strategy according to the historical record information; or,
and if at least one item of the current user information is not contained in the historical record information, determining a current control strategy according to a preset rule.
Further, the user information is identification information, or a user type; the determining the current user information according to the current identification information includes:
if the user information is identification information, determining the current identification information as current user information; or,
and if the user information is the user type, determining the current user type to which the current identification information belongs, and determining the current user type as the current user information.
Further, the determining a current control policy according to the history information includes:
if the current user information is one or multiple and the historical record information contains the control strategy corresponding to the whole current user information, determining the control strategy corresponding to the current user information contained in the historical record information as the current control strategy; or,
and if the current user information is multiple and the historical record information contains the control strategy corresponding to each user information in the current user information, determining the current control strategy according to the control strategy corresponding to each user information.
Further, the determining a current control policy according to the control policy corresponding to each user information includes:
determining the priority of each user information;
and selecting the control strategy corresponding to the user information with the highest priority, and determining the control strategy as the current control strategy.
Further, the determining the current control strategy according to the preset rule includes:
if the historical record information contains at least one item of the current user information, determining a current control strategy according to the control strategy corresponding to the current user information contained in the historical record information;
and if the current user information is not contained in the historical record information, maintaining the last control strategy unchanged, or randomly generating the control strategy.
Further, the obtaining of the history information includes:
obtaining history information locally from the device; or,
history information is obtained from a server.
Further, the method further comprises:
receiving a control strategy set by a user;
and updating the control strategy corresponding to the current user information into the control strategy set by the user in the historical record information.
Further, the identification information is a MAC address.
Further, the device is an air conditioner.
According to a second aspect of embodiments of the present application, there is provided an apparatus control device including:
the acquisition module is used for acquiring the current identification information of the terminal used by the current user;
the determining module is used for determining a current control strategy according to the current identification information;
and the control module is used for controlling the equipment according to the current control strategy.
Further, the obtaining module is specifically configured to:
and acquiring the identification information of the terminal currently accessed to the local wireless network, and determining the current identification information of the terminal used by the current user.
Further, when acquiring the identifier information of the terminal currently accessing the local wireless network, the acquiring module is specifically configured to:
sending an inquiry request to a local wireless router so that the wireless router sends the captured identification information of all terminals which are currently in wireless connection with the wireless router after receiving the inquiry request;
and receiving the identification information sent by the wireless router, and determining the identification information as current identification information.
Further, the determining module is specifically configured to:
acquiring historical record information, wherein the historical record information comprises a corresponding relation between user information and a control strategy;
determining current user information according to the current identification information;
if the current user information is contained in the historical record information, determining a current control strategy according to the historical record information; or,
and if at least one item of the current user information is not contained in the historical record information, determining a current control strategy according to a preset rule.
Further, the user information is identification information, or a user type; when determining the current user information according to the current identification information, the determining module is specifically configured to:
if the user information is identification information, determining the current identification information as current user information; or,
and if the user information is the user type, determining the current user type to which the current identification information belongs, and determining the current user type as the current user information.
Further, when determining the current control policy according to the history information, the determining module is specifically configured to:
if the current user information is one or multiple and the historical record information contains the control strategy corresponding to the whole current user information, determining the control strategy corresponding to the current user information contained in the historical record information as the current control strategy; or,
and if the current user information is multiple and the historical record information contains the control strategy corresponding to each user information in the current user information, determining the current control strategy according to the control strategy corresponding to each user information.
Further, when determining the current control policy according to the control policy corresponding to each of the user information, the determining module is specifically configured to:
determining the priority of each user information;
and selecting the control strategy corresponding to the user information with the highest priority, and determining the control strategy as the current control strategy.
Further, when the current control strategy is determined according to the preset rule, the determining module is specifically configured to:
if the historical record information contains at least one item of the current user information, determining a current control strategy according to the control strategy corresponding to the current user information contained in the historical record information;
and if the current user information is not contained in the historical record information, maintaining the last control strategy unchanged, or randomly generating the control strategy.
Further, when acquiring the history information, the determining module is specifically configured to:
obtaining history information locally from the device; or,
history information is obtained from a server.
Further, the apparatus further includes an update module, specifically configured to:
receiving a control strategy set by a user;
and updating the control strategy corresponding to the current user information into the control strategy set by the user in the historical record information.
Further, the identification information is a MAC address.
Further, the device is an air conditioner.
According to a third aspect of embodiments of the present application, there is provided a smart device, including:
a memory for storing an executable computer program;
a controller for executing the program stored in the memory to perform any one of the apparatus control methods as described above.
Further, the intelligent device is an air conditioner.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
the application provides a technique with low costs, realization are simple surveys indoor personnel type to can be according to the different control strategy of people propelling movement of difference, in order to reach better comfortable experience and intelligent effect, provide better user experience for the user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Fig. 1 is a flow chart illustrating a method of controlling a device according to an exemplary embodiment, the method comprising the steps of, as shown:
step 101: acquiring current identification information of a terminal used by a current user;
step 102: determining a current control strategy according to the current identification information;
step 103: and controlling the equipment according to the current control strategy.
Under current big environment, everybody can carry at least one intelligent terminal with oneself usually (for example smart mobile phone, panel computer, intelligent bracelet etc.), so the thinking ofstep 101 of this application is exactly, through the intelligent terminal who surveys indoor memory, thinks that the people who carries these intelligent terminals is exactly indoor user, just so can know indoor personnel type and distribute.
The application provides a technique with low costs, realization are simple surveys indoor personnel type to can be according to the different control strategy of people propelling movement of difference, in order to reach better comfortable experience and intelligent effect, provide better user experience for the user.
In some embodiments, the obtaining current identification information of a terminal used by a current user includes:
and acquiring the identification information of the terminal currently accessed to the local wireless network, and determining the current identification information of the terminal used by the current user.
How to detect the intelligent terminals in the indoor memory can be realized by inquiring the intelligent terminals connected to indoor WiFi, namely, the intelligent terminals connected to WiFi hotspots are considered to exist indoors.
In some embodiments, the identification information is a MAC address.
Each intelligent terminal is corresponding to a globally unique MAC address sequence, so that each intelligent terminal can be distinguished by inquiring the MAC address of the intelligent terminal. Of course, IMEI or other sequences capable of uniquely determining the identity of the device may be used as the identification information.
In some embodiments, the obtaining identification information of a terminal currently accessing a local wireless network includes:
sending an inquiry request to a local wireless router so that the wireless router sends the captured identification information of all terminals which are currently in wireless connection with the wireless router after receiving the inquiry request;
and receiving the identification information sent by the wireless router, and determining the identification information as current identification information.
The following description will be given by taking an air conditioner as an example, but it is needless to say that other devices may generate an intelligent control strategy by using the control method of the present application.
According to the method, the air conditioner needs to be configured on the networking route (therefore, the air conditioner needs to have the wireless communication function), namely, the air conditioner is connected with the wireless router. The configuration method can be as follows: one-key configuration, bluetooth configuration, WiFi hotspot configuration, and the like.
The internal processing logic of the air conditioner for sending the query request is to send the query request constantly by sending a broadcast or TCP protocol response frame, and simultaneously listen to returned response data constantly.
In some embodiments, the determining a current control policy according to the current identification information includes:
acquiring historical record information, wherein the historical record information comprises a corresponding relation between user information and a control strategy;
determining current user information according to the current identification information;
if the current user information is contained in the historical record information, determining a current control strategy according to the historical record information; or,
and if at least one item of the current user information is not contained in the historical record information, determining a current control strategy according to a preset rule.
The air conditioner records and stores the IP returned by the response and the name of the equipment; meanwhile, the air conditioner can also record the operating parameters of the air conditioner per se at every moment and the identification information of all on-line connecting equipment corresponding to the same router. The data can be stored in the internal memory of the air conditioner to form historical record information; meanwhile, the air conditioner uploads the historical record information to the server.
In some embodiments, the user information is identification information, or a user type; the determining the current user information according to the current identification information includes:
if the user information is identification information, determining the current identification information as current user information; or,
and if the user information is the user type, determining the current user type to which the current identification information belongs, and determining the current user type as the current user information.
Analysis is performed based on historical information, such as: if the MAC1 is online, the air conditioner is always adjusted to a high temperature, and the user type corresponding to the MAC1 is considered to be old and young; if the MAC2 is online and the air conditioner always jumps to a low temperature, the user type corresponding to the MAC2 may be considered to be a robust type. The more the accumulated corresponding relation data is, the more accurate the analyzed user type is, and the analysis method comprises methods of cluster analysis, fitting and the like.
After the rules are analyzed, when the current identification information is the MAC1, it can be determined that the user type is a young or old type.
In some embodiments, the determining a current control strategy according to the history information includes:
and if the current user information is one or multiple and the historical record information contains the control strategy corresponding to the whole current user information, determining the control strategy corresponding to the current user information contained in the historical record information as the current control strategy.
Such as: in the history information, there are records of simultaneous online of MAC1, MAC2, and MAC3 and the control policy at that time; then the next time three people come online at the same time, based on the policy.
Alternatively, the determining the current control policy according to the history information may include:
and if the current user information is multiple and the historical record information contains the control strategy corresponding to each user information in the current user information, determining the current control strategy according to the control strategy corresponding to each user information.
Such as: in the history information, the history records of MAC1, MAC2 and MAC3 are respectively on line independently, and no record of MAC1, MAC2 and MAC3 is on line simultaneously; then when three people are online at the same time, it can be adjusted by the policy that was adjusted to the highest temperature in the previous policy table.
In some embodiments, the determining a current control policy according to the control policy corresponding to each piece of user information includes:
determining the priority of each user information;
and selecting the control strategy corresponding to the user information with the highest priority, and determining the control strategy as the current control strategy.
The priority may be set, for example, the priority of the old and young type may be set to be higher than the priority of the young type, and when the user type includes the old and young type and the young type, the control policy of the old and young type is mainly used.
In some embodiments, the determining the current control strategy according to the preset rule includes:
if the historical record information contains at least one item of the current user information, determining a current control strategy according to the control strategy corresponding to the current user information contained in the historical record information; for example, when strange users (such as MAC6, MAC7 and the like) are added to be online, the users can ignore the strange situation and proceed according to the original strategy;
and if the current user information is not contained in the historical record information, maintaining the last control strategy unchanged, or randomly generating the control strategy.
If only the MAC6 and MAC7 are never present, a control strategy can be randomly generated and recorded after the user adjusts the control strategy.
In some embodiments, the obtaining the history information includes:
obtaining history information locally from the device; or,
history information is obtained from a server.
In some embodiments, the method further comprises:
receiving a control strategy set by a user;
and updating the control strategy corresponding to the current user information into the control strategy set by the user in the historical record information.
In some embodiments, the device is an air conditioner.
According to the method, the identification information connected by the WiFi in the detection room is combined with the universal setting condition of the air conditioner under different identification information, the personnel types corresponding to the identification information are identified, and different control strategies are pushed according to different personnel types, so that the intelligent control of the air conditioner is realized.
Fig. 2 is a circuit block diagram illustrating an appliance control apparatus according to an exemplary embodiment. Referring to fig. 2, the apparatus includes anacquisition module 201, adetermination module 202, and acontrol module 203.
An obtainingmodule 201, configured to obtain current identification information of a terminal used by a current user;
a determiningmodule 202, configured to determine a current control policy according to the current identification information;
and thecontrol module 203 is configured to control the device according to the current control strategy.
In some embodiments, the obtainingmodule 201 is specifically configured to:
and acquiring the identification information of the terminal currently accessed to the local wireless network, and determining the current identification information of the terminal used by the current user.
In some embodiments, when acquiring the identifier information of the terminal currently accessing the local wireless network, the acquiringmodule 201 is specifically configured to:
sending an inquiry request to a local wireless router so that the wireless router sends the captured identification information of all terminals which are currently in wireless connection with the wireless router after receiving the inquiry request;
and receiving the identification information sent by the wireless router, and determining the identification information as current identification information.
In some embodiments, the determiningmodule 202 is specifically configured to:
acquiring historical record information, wherein the historical record information comprises a corresponding relation between user information and a control strategy;
determining current user information according to the current identification information;
if the current user information is contained in the historical record information, determining a current control strategy according to the historical record information; or,
and if at least one item of the current user information is not contained in the historical record information, determining a current control strategy according to a preset rule.
In some embodiments, the user information is identification information, or a user type; when determining the current user information according to the current identification information, the determiningmodule 202 is specifically configured to:
if the user information is identification information, determining the current identification information as current user information; or,
and if the user information is the user type, determining the current user type to which the current identification information belongs, and determining the current user type as the current user information.
In some embodiments, when determining the current control policy according to the history information, the determiningmodule 202 is specifically configured to:
if the current user information is one or multiple and the historical record information contains the control strategy corresponding to the whole current user information, determining the control strategy corresponding to the current user information contained in the historical record information as the current control strategy; or,
and if the current user information is multiple and the historical record information contains the control strategy corresponding to each user information in the current user information, determining the current control strategy according to the control strategy corresponding to each user information.
In some embodiments, when determining the current control policy according to the control policy corresponding to each piece of user information, the determiningmodule 202 is specifically configured to:
determining the priority of each user information;
and selecting the control strategy corresponding to the user information with the highest priority, and determining the control strategy as the current control strategy.
In some embodiments, when determining the current control policy according to the preset rule, the determiningmodule 202 is specifically configured to:
if the historical record information contains at least one item of the current user information, determining a current control strategy according to the control strategy corresponding to the current user information contained in the historical record information;
and if the current user information is not contained in the historical record information, maintaining the last control strategy unchanged, or randomly generating the control strategy.
In some embodiments, when obtaining the history information, the determiningmodule 202 is specifically configured to:
obtaining history information locally from the device; or,
history information is obtained from a server.
As shown in fig. 3, in some embodiments, the apparatus further includes anupdating module 204, specifically configured to:
receiving a control strategy set by a user;
and updating the control strategy corresponding to the current user information into the control strategy set by the user in the historical record information.
In some embodiments, the identification information is a MAC address.
In some embodiments, the device is an air conditioner.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present application further provides the following embodiments:
a smart device, comprising:
a memory for storing an executable computer program;
a controller for executing the program stored in the memory to perform any one of the apparatus control methods as described above.
In some embodiments, the smart device is an air conditioner.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.