Disclosure of Invention
Objects of the invention
In view of the above problems, the present invention provides an intelligent home control method and system for centralized and intelligent dynamic configuration management of home appliances, and provides a more convenient, humanized and accurate configuration scheme by using an insensitive event sensing manner, so as to reduce unnecessary energy waste and carbon emission, thereby facilitating environmental protection.
(II) technical scheme
As a first aspect of the present invention, the present invention discloses an intelligent home control method, including the steps of:
acquiring position information of a user;
calculating the expected time of the user arriving at home according to the position information;
setting corresponding intelligent household power according to the predicted time;
and confirming the identity of the user by utilizing the bidirectional authentication, and judging whether to issue an instruction to the smart home or not according to the identity of the user.
In a possible implementation manner, the obtaining the location information of the user further includes the following steps:
the user terminal saves a user off-duty driving track diagram;
the user location is determined using the GPS of the user terminal.
In a possible implementation manner, the calculating an expected time of the user arriving at home according to the location information specifically includes:
and calculating the predicted time for the current position of the user to return to home according to the map navigation information.
In a possible implementation manner, the confirming the user identity by using the bidirectional authentication specifically includes:
the home gateway authenticates the user terminal;
and the user terminal authenticates the home gateway.
In a possible implementation manner, the authenticating, by the home gateway, the user terminal specifically includes:
receiving a random character string sent by a home gateway;
encrypting the random character string and sending the encrypted random character string to the home gateway;
and receiving an authentication result sent by the home gateway.
In a possible implementation manner, the authenticating, by the user terminal, the home gateway specifically further includes:
sending a random character string to the home gateway;
after receiving the random character string, the home gateway encrypts the random character string and sends the encrypted random character string to the user terminal;
and sending the authentication result to the home gateway.
As a second aspect of the present invention, the present invention also discloses an intelligent home control system, including:
the system comprises a background control end, a monitoring module, a control module and a safety module, wherein the background control end comprises the monitoring module, the control module and the safety module;
the monitoring module is used for acquiring the position information of a user and acquiring indoor environment parameters;
the control module is used for setting corresponding intelligent household power according to the predicted time; issuing an instruction to the smart home;
the security module is used for authenticating the identity of the terminal user.
In a possible embodiment, the control system further comprises a home gateway and a user terminal;
the home gateway is connected with the user terminal through WiFi; issuing an instruction to the smart home through the home gateway;
the user terminal is used for storing the off-duty running track of the user and acquiring the position information of the user.
In a possible implementation manner, the user terminal calculates the estimated time for the current position of the user to return to home according to the map navigation information.
In a possible implementation, the security module is configured to authenticate an identity of an end user, and specifically includes:
the home gateway authenticates the user terminal;
and the user terminal authenticates the home gateway.
(III) advantageous effects
The intelligent home control method and the intelligent home control system disclosed by the invention have the following beneficial effects:
the intelligent household appliances are centralized and intelligently controlled through the home gateway, and after the mobile phone terminal is accessed into the gateway through a WiFi signal, the IP between the mobile phone terminal APP and the home gateway is used for carrying out key certificate authentication to ensure the safety; the arrival time is calculated by sensing GSP information and current road condition information through a mobile phone terminal, and the optimal return experience is provided in a most efficient and energy-saving mode when the user enters the house on the premise of ensuring the best quality service based on the arrival time, the indoor current environment information and other parameters. The intelligent household appliance management system simplifies management operation of intelligent household appliances, provides more convenient and humanized services, obtains a more accurate configuration scheme through an event perception mode in a non-inductive mode, reduces unnecessary energy waste, is beneficial to environmental protection, and reduces carbon emission.
Detailed Description
In order to make the implementation objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be described in more detail below with reference to the accompanying drawings in the embodiments of the present invention.
It should be noted that: in the drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described are some embodiments of the present invention, not all embodiments, and features in embodiments and embodiments in the present application may be combined with each other without conflict. 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.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience in describing the present invention and for simplifying the description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore, should not be taken as limiting the scope of the present invention.
A first embodiment of a smart home control method disclosed by the present invention is described in detail below with reference to fig. 1 to 5. The embodiment is mainly applied to control of smart home, centralized and intelligent dynamic configuration management is carried out on household appliances by the method, a non-inductive event sensing mode is adopted, more convenient, humanized and accurate configuration schemes can be provided, unnecessary energy waste is reduced, carbon emission is reduced, and environmental protection is facilitated.
As shown in fig. 1-2, the present embodiment mainly includes the following steps:
s100, acquiring position information of a user;
s200, calculating the expected time of the user arriving at home according to the position information;
s300, setting corresponding intelligent household power according to the predicted time;
s400, confirming the identity of the user by utilizing the bidirectional authentication, and judging whether to issue an instruction to the smart home according to the identity of the user.
In this embodiment, the intelligent home control method can solve the problem that a home intelligent gateway is used as a control center to perform centralized and intelligent dynamic configuration management on home appliances, so that a user can get back to home to obtain better home service after work.
As shown in fig. 3, in step S100, acquiring the location information of the user specifically includes the following steps:
s110, the user terminal stores a user off-duty running track diagram;
and S120, determining the position of the user by using the GPS of the user terminal.
Wherein, the terminal can adopt the cell-phone end, through be equipped with an APP in the cell-phone end, utilizes APP to preserve the daily exercise trajectory chart of leaving work of user, and is equipped with positioner in the cell-phone end, and positioner can adopt the GPS location.
The user carries the mobile phone end, and after the user leaves work, the background control end acquires the GPS positioning information of the mobile phone end of the user, so that the background control end can judge whether the user is in a leaving work state or a working state according to the GPS positioning information.
The background control end detects the GPS positioning information of the mobile phone end of the user according to a set time period, for example, the GPS positioning information can be detected once every 10 minutes, or before or after the time point of next shift is approached, the GPS positioning information can be detected once every 5 minutes, for example, the time of next shift of the user is Monday to Friday every day is 6 pm, the background control end can start to detect the GPS positioning information of the mobile phone end of the user at 5 pm 40 minutes, then the GPS positioning information can be detected once every 10 minutes until the GPS positioning information of the mobile phone end of the user is detected to be the state information of going back to home, and when the user moves along the pre-existing driving track in the APP, the state of going back to home of the user is judged.
In step S200, calculating the expected time of the user arriving at home according to the location information specifically includes: after the position information of the user is obtained, according to a driving track map prestored in the APP, map navigation information in the mobile phone terminal is utilized, and therefore the expected time of the user arriving at home is calculated.
In the mobile phone terminal, the time required by the distance from the unit to the home of the current user is obtained by using common maps such as a Gauss map, a Baidu map and the like, and the pre-estimated time from the user to the home is calculated according to the current driving speed and the current road condition of the user. The pre-estimated time is adjusted timely along with information such as the moving speed of the user, road conditions and the like.
In step S300, according to the predicted time, setting a corresponding smart home power, specifically including: setting the user 'S environment of entering the home, such as air conditioning temperature control, water heater water boiling, air purifier control, etc., according to the estimated time of the user' S arrival at home calculated in step S200, preheating or pre-starting the power of the corresponding smart home in a most efficient and energy-saving manner during the period of time when the user does not arrive at home, so as to adjust the corresponding smart home to the best specified state after the user arrives at home, e.g., returning home after about 30 minutes, adjusting the indoor temperature according to the user 'S usage habits and basic settings, detecting the current indoor temperature, comparing the current indoor temperature with the user' S set temperature threshold, calculating the difference between the current indoor temperature and the set temperature threshold, if the difference is positive, determining that the current indoor temperature is higher than the threshold, in this case, according to the estimated time, determining that the current indoor temperature is higher than the threshold, The power of the air conditioner obtains the time for starting the air conditioner and the gear of the air conditioner, so that when a user returns home, the indoor temperature reaches the threshold value of the set temperature. When the corresponding smart home is heated according to the expected time, the corresponding smart home is in a heat preservation state due to traffic jam or other unexpected things when the user goes home.
The home arrival time is calculated by sensing GSP information and current road condition information through a mobile phone terminal, the optimal home return experience is provided in a most efficient and energy-saving mode on the premise of ensuring the best quality service based on the parameters of the home arrival time, the indoor current environment information and the like, unnecessary energy waste is reduced, carbon emission is reduced, and the environment is effectively protected.
In step S400, the user identity is confirmed by using mutual authentication, and whether to issue an instruction to the smart home is determined according to the user identity, which specifically includes:
in this embodiment, when the home gateway receives a WiFi signal of the user terminal, it is determined that the user is at home immediately, after the user terminal accesses the home gateway through WiFi, bidirectional authentication is performed between the user terminal and the home gateway, and after the authentication is passed, an instruction is issued to the smart home through the home gateway, for example, household appliances such as indoor lighting and a television are turned on.
As shown in fig. 4 and 5, the bidirectional authentication between the user terminal and the home gateway specifically includes the following steps:
s410, receiving a random character string sent by the home gateway;
s420, encrypting the random character string and sending the encrypted random character string to the home gateway;
and S430, receiving the authentication result sent by the home gateway.
In the embodiment, the home gateway authenticates the user terminal, acquires the allocated IP address of the home gateway after the user terminal accesses the home gateway through WiFi, firstly, the home gateway sends a random field to the user terminal APP, the APP encrypts the character string by using a private key after receiving the random field and returns the character string to the home gateway, the home gateway decrypts the encrypted character string after receiving the encrypted character string and authenticates the character string, and after the authentication is finished, the authentication result is sent to the user terminal.
Further, when the authenticated end initiates an authentication request, the authentication end replies a random character string, the authenticated end encrypts the character string formed by combining the random character string and the private key by using the SHA256 encryption algorithm and replies the character string to the verification end, and the verification end encrypts the character string formed by the character string and the private key and directly compares the encrypted character string to authenticate.
After the home gateway is successfully authenticated, the user terminal authenticates the home gateway, and the method specifically comprises the following steps:
s440, sending a random character string to the home gateway;
s450, after receiving the random character string, the home gateway encrypts the random character string and sends the encrypted random character string to the user terminal;
and S460, sending the authentication result to the home gateway.
The user terminal APP sends a random character string to the home gateway, the home gateway uses a private key to encrypt the character string and returns the encrypted character string to the user terminal, the user terminal decrypts the encrypted character string after receiving the encrypted character string and authenticates the character string, and after the authentication is completed, the authentication result is sent to the home gateway.
After the user terminal accesses the gateway through the WiFi signal, the IP between the user terminal APP and the home gateway performs key certificate authentication, and the safety is guaranteed.
In this embodiment, the following are exemplified by controlling the air conditioner and the indoor lamp:
install the APP of control intelligent house in user's cell-phone end, save daily travel driving trajectory chart off duty in APP, after user's cell-phone GPS locating information was ascertained to the backstage control end, according to the interior high moral map navigation information of cell-phone end, calculate the estimated time that the user arrived from this place to home and be 30 minutes, backstage controller is according to estimated time 30 minutes, set for the opening time and the opening power of air conditioner, when making the user arrive at home, indoor temperature is the temperature that the user set for.
When the home gateway receives the WiFi signal of the user mobile phone end, the user is identified to arrive at home at once, after the user mobile phone end is connected into the home gateway through WiFi, bidirectional authentication is carried out between APP of the user mobile phone end and the home gateway, and after the authentication is passed, an instruction of starting light is sent to an indoor lamp through the home gateway.
The intelligent household appliances are centralized and intelligently controlled through the home gateway, and after the mobile phone terminal is accessed into the gateway through a WiFi signal, the IP between the mobile phone terminal APP and the home gateway is used for carrying out key certificate authentication to ensure the safety; the arrival time is calculated by sensing GSP information and current road condition information through a mobile phone terminal, and the optimal return experience is provided in a most efficient and energy-saving mode when the user enters the house on the premise of ensuring the best quality service based on the arrival time, the indoor current environment information and other parameters.
The following detailed description refers to fig. 6, and based on the same inventive concept, the embodiment of the present invention further provides a first embodiment of an intelligent home control system. Because the principle of the problem solved by the system is similar to that of the intelligent home control method, the implementation of the system can refer to the implementation of the method, and repeated details are not repeated. The embodiment is mainly applied to control of smart home, centralized and intelligent dynamic configuration management is carried out on household appliances by the method, a non-inductive event sensing mode is adopted, more convenient, humanized and accurate configuration schemes can be provided, unnecessary energy waste is reduced, carbon emission is reduced, and environmental protection is facilitated.
As shown in fig. 6, the present embodiment mainly includes a background control end 600, a home gateway 700, and a user terminal 500, where the background control end 600 further includes a monitoring module 610, a control module 620, and a security module 630.
The monitoring module 610 is used for acquiring the position information of the user and acquiring indoor environment parameters;
the control module 620 is configured to set a corresponding smart home power according to the predicted time; issuing an instruction to the smart home;
the security module 630 is used to authenticate the end user identity;
the home gateway 700 is connected to the user terminal 500 through WiFi; issuing an instruction to the smart home through the home gateway 700;
the user terminal 500 is used for saving the off-duty driving track of the user and acquiring the position information of the user.
In this embodiment, the user terminal 500 generally adopts a mobile phone terminal, a control APP is installed in the mobile phone terminal for storing daily driving trajectory diagrams during work, and the monitoring module 610 is used for ascertaining GPS positioning information of the mobile phone terminal and calculating estimated time of arrival of a user according to current map navigation information in the mobile phone terminal.
The control module 620 is connected with the smart home through the home gateway 700, wherein the router serves as a network access side and a data forwarding center of the smart home, control numerical control and real-time parameter reading of all smart homes are sent to the control module 620 through the router, the control module 620 sets corresponding smart home power according to expected home arrival time of a user, so that the corresponding smart home is preheated or pre-started in an efficient and energy-saving mode in the period of time when the user does not arrive at home, and the control module 620 is further used for storing indoor environment parameter thresholds set by the user according to the user's liking.
The monitoring module 610 is connected to the smart home via the home gateway 700, and obtains indoor environment parameters, such as temperature/humidity, water heater temperature, and status of indoor lamps, via a relevant data interface of the smart home. The monitoring module 610 sends the acquired indoor environment parameters to the control module 620, the control module 620 compares the current indoor environment parameters with the set indoor environment parameter threshold, the corresponding smart home start time and the gear of the smart home are obtained according to the predicted home arrival time of the user, the power of the corresponding smart home and the current indoor environment parameters, the control module 620 turns on/off the smart home through the corresponding data interface of the smart home, and the gear is adjusted so that the current indoor environment parameters reach the threshold set by the user after the smart home arrives indoors.
When the home gateway 700 receives the WiFi signal of the user terminal 500, it is determined that the user is at home immediately, after the user terminal 500 accesses the home gateway 700 through WiFi, bidirectional authentication is performed between the user terminal 500 and the home gateway 700, after the authentication is passed, an instruction is issued to the control module 620 through the home gateway 700, and the control module 620 controls the smart home to be started, for example, to start home appliances such as indoor lighting and a television.
The security module 630 is used for performing bidirectional authentication between the user terminal 500 and the home gateway 700, wherein the home gateway 700 authenticates the user terminal 500, after the user terminal 500 accesses the home gateway 700 through WiFi, an allocated IP address of the home gateway 700 is obtained, first, the home gateway 700 sends a random field to the user terminal 500APP, the APP encrypts the character string with a private key after receiving the random field and returns the encrypted character string to the home gateway 700, after receiving the encrypted character string, the home gateway 700 decrypts the encrypted character string and authenticates the character string, after completing the authentication, the authentication result is sent to the user terminal 500, the user terminal APP 500 sends a random character string to the home gateway 700, the home gateway 700 encrypts the character string with the private key and returns the encrypted character string to the user terminal 500, after receiving the encrypted character string, the user terminal 500 decrypts the encrypted character string and authenticates the character string, after the authentication is completed, the authentication result is transmitted to the home gateway 700.
The intelligent household appliances are centralized and intelligently controlled through the home gateway 700, and after the mobile phone terminal is accessed into the gateway through a WiFi signal, the IP between the mobile phone terminal APP and the home gateway 700 is used for carrying out key certificate authentication to ensure the safety; the arrival time is calculated by sensing GSP information and current road condition information through a mobile phone terminal, and the optimal return experience is provided in a most efficient and energy-saving mode when the user enters the house on the premise of ensuring the best quality service based on the arrival time, the indoor current environment information and other parameters.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.