Method and device for binding client to intelligent deviceTechnical Field
The invention relates to the technical field of communication, in particular to a method and a device for binding a client for intelligent equipment.
Background
With the progress of science and technology, household appliances such as air conditioners, refrigerators, washing machines, water heaters, televisions, set top boxes and the like have entered an intelligent era. The user can operate the intelligent household appliance after registering and binding the intelligent household appliance through the client.
Taking an intelligent electronic appliance with a remote controller and a display screen as an example, the registration and login process of the intelligent household appliance with a better input and output function is specifically as follows: a user selects a WiFi router in a family by operating keys provided by a remote controller of the smart television, inputs a password of the WiFi router and connects the smart television to the Internet; the user registers a login user name and a login password required for logging in the smart television according to the prompt information displayed on the screen of the smart television, and inputs a mobile phone number or an email address according to the prompt information displayed on the screen of the smart television, so that the smart television can send verification information to the mobile phone number or the email address to verify the validity of the registered login user name and the login password; after verifying that a login user name and a login password registered by a user are valid, the smart television binds the user name and the login password; and after the user inputs the login user name and the login password through client software on the intelligent terminal, the user can log in and control the intelligent television by binding the intelligent television.
Taking an intelligent air conditioner as an example, the registration and login process of the intelligent household appliance with very simple input and output functions is specifically as follows: a user selects a WiFi router in a family for the intelligent air conditioner through client software on an intelligent terminal such as a mobile phone, a pad and a computer, inputs a password of the WiFi router and connects the intelligent air conditioner to the Internet; a user acquires the identification of the intelligent air conditioner through client software on an intelligent terminal such as a mobile phone and the like, binds the intelligent air conditioner and sends the identification of the client to the intelligent air conditioner; the intelligent air conditioner receives the identification of the client side, binds the client side and stores the identification of the client side; the user can control the intelligent air conditioner through client software on the intelligent terminal.
If a plurality of intelligent terminals with clients are installed in the home network, for example, client software of an intelligent air conditioner is installed on a mobile phone, a notebook computer and a tablet personal computer of each member of the family, each client needs to be bound for the intelligent device, the above registration binding process is repeated for many times, and the binding process is complicated.
Disclosure of Invention
The embodiment of the invention provides a method and a device for binding a client for intelligent equipment, which are used for simplifying the process of binding a plurality of clients for the intelligent equipment.
The embodiment of the invention provides the following specific technical scheme:
the embodiment of the invention provides a method for binding a client for intelligent equipment, which comprises the following steps:
a first client receives an authentication request for a second client, wherein the authentication request carries an identifier of the second client and an identifier of a first intelligent device requested to be bound by the second client, and the first client is one of the clients bound by the first intelligent device;
and the first client determines that the second client is legal, indicates to send registration information of the first client on the first intelligent equipment to the second client, and indicates to bind the second client and the first intelligent equipment according to the registration information.
In a possible embodiment, the receiving, by the first client, the authentication request to the second client includes:
the first client receives an authentication request sent by the first intelligent device to the second client, wherein the authentication request is generated and sent after the first intelligent device receives a binding request of the second client;
or,
the first client receives an authentication request sent by a cloud server to the second client, wherein the authentication request is generated and sent after the cloud server receives a binding request of the second client requesting to bind the first intelligent device;
or,
and the first client receives an authentication request sent by the second client for the second client, wherein the authentication request is generated and sent when the second client requests to bind the first intelligent equipment.
In a possible implementation manner, the instructing, by the first client, to send registration information of the first client on the first intelligent device to the second client, and instructing to bind the second client and the first intelligent device according to the registration information includes:
the first client sends self registration information on the first intelligent equipment to the second client, and the first intelligent equipment is indicated to bind the second client according to the registration information;
or,
the first client sends indication information for indicating that the second client is legal to a cloud server, the cloud server sends registration information of the first client on the first intelligent device to the second client, and the cloud server indicates that the first intelligent device binds the second client according to the registration information.
In a possible embodiment, the method further comprises:
the first client determines that the second client is illegal, and indicates that the first intelligent device is forbidden to be bound with the second client; or sending indication information for indicating that the second client is illegal to a cloud server, and forbidding the first intelligent device from being bound with the second client by the cloud server.
In a possible embodiment, the first client is a first client bound with the first smart device;
or,
the first client is a client with special authority.
In a possible embodiment, the method further comprises:
and after the first client binds second intelligent equipment, indicating to send registration information on the second intelligent equipment to the second client, and indicating to bind the second client and the second intelligent equipment according to the registration information.
In a possible embodiment, the method further comprises:
the first client determines to receive a reset signal sent by the first intelligent device, removes the binding relation with the first intelligent device and indicates to remove the binding relation between the second client and the first intelligent device;
or,
the first client determines to receive an indication message sent by a cloud server for releasing the binding relationship with the first intelligent device, releases the binding relationship with the first intelligent device, and the indication message for releasing the binding relationship with the first intelligent device is sent after the cloud server determines to receive a reset signal of the first intelligent device.
In a possible embodiment, the method further comprises:
the first client indicates that the binding relationship between the first intelligent device and the second client is released.
The embodiment of the invention also provides a device for binding the client for the intelligent equipment, which comprises the following steps:
a receiving module, configured to receive an authentication request for a second client, where the authentication request carries an identifier of the second client and an identifier of a first intelligent device that the second client requests to bind, and the apparatus is one of the clients to which the first intelligent device has bound;
and the processing module is used for determining that the second client is legal, indicating that the registration information of the second client on the first intelligent equipment is sent to the second client, and indicating that the second client and the first intelligent equipment are bound according to the registration information.
In a possible implementation, the receiving module is specifically configured to:
receiving an authentication request sent by the first intelligent device to the second client, wherein the authentication request is generated and sent after the first intelligent device receives a binding request of the second client;
or,
receiving an authentication request sent by a cloud server to the second client, wherein the authentication request is generated and sent after the cloud server receives a binding request of the second client requesting to bind the first intelligent device;
or,
and receiving an authentication request sent by the second client to the second client, wherein the authentication request is generated and sent when the second client requests to bind the first intelligent equipment.
In a possible embodiment, the processing module is specifically configured to:
sending self registration information on the first intelligent equipment to the second client, and indicating the first intelligent equipment to bind the second client according to the registration information;
or,
and sending indication information for indicating that the second client is legal to a cloud server, sending registration information of the device on the first intelligent equipment to the second client by the cloud server, and indicating the first intelligent equipment to bind the second client according to the registration information by the cloud server.
In a possible embodiment, the processing module is further configured to:
and after the second intelligent device is bound, indicating to send the registration information on the second intelligent device to the second client, and indicating to bind the second client and the second intelligent device according to the registration information.
In a possible embodiment, the processing module is further configured to:
determining that a reset signal sent by the first intelligent device is received, releasing the binding relationship with the first intelligent device, and indicating to release the binding relationship between the second client and the first intelligent device;
or,
and determining to receive an indication message sent by a cloud server for releasing the binding relationship with the first intelligent device, and releasing the binding relationship with the first intelligent device, wherein the indication message for releasing the binding relationship with the first intelligent device is sent after the cloud server determines to receive a reset signal of the first intelligent device.
Based on the technical scheme, in the embodiment of the invention, under the condition that the first intelligent device is bound with the first client, if a binding request of the second client is received, an authentication request is sent to the bound first client so as to authenticate the legality of the second client; after the first client determines that the second client is legal, the first client instructs to directly send the registration information of the first client on the first intelligent device to the second client and instructs to bind the second client and the first intelligent device, so that the registration binding process is only required to be executed once under the condition that a plurality of clients are bound for the intelligent device, other clients can share the registration information of the first client, and the process of binding the plurality of clients by the intelligent device is simplified.
Drawings
FIG. 1 is a schematic process diagram of binding a client for a smart device according to an embodiment of the present invention;
FIG. 2 is a schematic process diagram of an embodiment of the present invention in which a client x is a smart device binding client y;
fig. 3 is a schematic process diagram of binding an intelligent device for a client y by a cloud server in the embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for binding a client to a smart device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. 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.
It should be noted that the embodiments of the present invention are mainly applied to the case where multiple clients are bound for an intelligent home device in a home network, but the embodiments of the present invention may also be applied to the case where multiple clients are bound for an intelligent device in any other local area network.
In the following embodiments, the client refers to an intelligent terminal installed with client software of an intelligent device, for example, a mobile phone, a tablet computer, a notebook computer, and the like of each family member in a home network.
In the following embodiments, the cloud server may be a server that registers and manages a certain local area network in the internet, or may be an intelligent gateway of the local area network.
In a first embodiment of the present invention, as shown in fig. 1, a detailed method flow for binding a client to an intelligent device is as follows:
step 101: the method comprises the steps that a first client receives an authentication request for a second client, wherein the authentication request carries an identifier of the second client and an identifier of first intelligent equipment requested to be bound by the second client, and the first client is one of the clients bound by the first intelligent equipment.
And the authentication request is generated according to the request of the second client for binding the first intelligent equipment.
Specifically, in the intelligent household electrical appliance system, the first intelligent device is a different intelligent household electrical appliance device, such as an intelligent air conditioner, an intelligent television, and the like.
In an implementation, the first client receives an authentication request to the second client, including but not limited to the following implementation manners:
firstly, a first client receives an authentication request sent by first intelligent equipment to a second client, wherein the authentication request is generated and sent after the first intelligent equipment receives a binding request of the second client;
secondly, the first client receives an authentication request sent by the cloud server to the second client, wherein the authentication request is generated and sent after the cloud server receives a binding request of the second client requesting to bind the first intelligent device;
and thirdly, the first client receives an authentication request sent by the second client for the second client, wherein the authentication request is generated and sent when the second client requests to bind the first intelligent equipment.
In implementation, the first client is a first client bound with the first intelligent device; or the first client is a client with special authority.
Specifically, in the intelligent household appliance system, the first client bound with the intelligent device is used as a "super user" and has the management authority of the intelligent household appliance system, a new intelligent device can be added to the intelligent household appliance system and bound to each client in the intelligent household appliance system, and a new client can also be added to the intelligent household appliance system and bound to each intelligent device. Here, only the intelligent home appliance system is taken as an example, and the method can be extended to a local area network, and only the intelligent home appliance system in the process needs to be replaced by the local area network, which is not described herein again.
In specific implementation, the second client sends the binding request after acquiring the identifier of the first intelligent device. Specifically, the second client obtains the identifier of the first intelligent device input by the user through the human-computer interaction interface, or the second client obtains the identifier of the first intelligent device by scanning the two-dimensional code or the barcode of the first intelligent device.
Step 102: and the first client determines that the second client is legal, indicates that the registration information of the first client on the first intelligent equipment is sent to the second client, and indicates that the second client and the first intelligent equipment are bound according to the registration information sent to the second client.
The registration information at least comprises a login user name and a login password.
Optionally, the first client determines whether the second client has a friendly communication relationship with itself, and if so, determines that the second client is legal, otherwise, determines that the second client is illegal. Specifically, the first client judges whether the address book of the communication software of the first client has the identifier of the second client, if so, the second client is determined to be legal, otherwise, the second client is determined to be illegal. Or, the first client determines whether the second client belongs to the device list of the local area network, and if so, determines that the second client is legal, otherwise, determines that the second client is illegal.
Optionally, the first client instructs to send self registration information on the first smart device to the second client, and instructs to bind the second client and the first smart device according to the registration information sent to the second client, including but not limited to the following two implementation manners:
firstly, a first client sends self registration information on first intelligent equipment to a second client, and the first intelligent equipment is indicated to bind the second client according to the registration information sent to the second client;
and secondly, the first client sends indication information for indicating that the second client is legal to the cloud server, the cloud server sends the registration information of the first client on the first intelligent device to the second client, and the cloud server indicates the first intelligent device to bind the second client according to the registration information sent to the second client.
Specifically, the cloud server stores a correspondence between the local area network identifier and the list of the smart devices and the registration information of each bound client.
Optionally, if the first client determines that the second client is illegal, the first client indicates that the first smart device is prohibited from being bound with the second client, which includes but is not limited to the following two implementation manners:
first, a first client instructs a first intelligent device to forbid binding with a second client;
and secondly, the first client sends indicating information for indicating that the second client is illegal to the cloud server, and the cloud server prohibits the first intelligent device from being bound with the second client.
Optionally, if a new smart device, that is, a second smart device, is added to the local area network, and the first client establishes a binding relationship with the second smart device, after the first client binds the second smart device, the first client instructs to send the registration information on the second smart device to the second client, and instructs to bind the second client and the second smart device according to the registration information sent to the second client.
Optionally, the smart device has a binding relationship resetting function, and after the resetting function is started, the smart device releases all binding relationships with the client, and broadcasts and sends a resetting signal. In a specific embodiment, the first client determines that a reset signal sent by the first intelligent device is received, releases the binding relationship with the first intelligent device, and instructs to release the binding relationship between the second client and the first intelligent device. In another specific embodiment, the first client determines to receive an indication message sent by the cloud server to release the binding relationship with the first intelligent device, and releases the binding relationship with the first intelligent device, wherein the indication message to release the binding relationship with the first intelligent device is sent by the cloud server after the cloud server determines to receive a reset signal of the first intelligent device, and the cloud server sends the indication message to release the binding relationship with the first intelligent device to each client having the binding relationship with the first intelligent device according to the reset signal of the first intelligent device, and releases the binding relationship related to the first intelligent device.
In implementation, the first client may instruct to release the binding relationship between the first smart device and the second client after determining that the legal identity of the second client is invalid.
For example, as shown in fig. 2, a client x establishes a binding relationship with a smart device a, and if the client x is the first client establishing a binding relationship with the smart device a, the client x automatically becomes a "super-user" of the smart device a. The client y directly enters the binding process of the client y and the intelligent device A by inputting the ID of the intelligent device A or scanning information such as the bar code ID, the two-dimensional code ID and the like. The intelligent device A receives a binding request of a client y, firstly sends the request to a 'super user' x, the x confirms whether the client y is a legal user, if so, the client y is allowed to establish a binding relation with the intelligent device A, and a specific login user name and a login password are sent to the client y, so that the client y can be used without registration. If the client y is considered as an illegal user by the 'super user' x, the client y is not allowed to establish a binding relationship with the intelligent device A.
For another example, as shown in fig. 3, the cloud server responsible for managing the intelligent home appliance system uniformly controls the binding relationship between the devices in the intelligent home appliance system: the client x and the intelligent device A establish a binding relationship, and the binding relationship is stored in a cloud server. If the client x is the first user establishing the binding relationship with the intelligent device A, the client x automatically becomes the 'super user' of the intelligent device A, and the client y directly enters the binding process of the client y and the intelligent device A by inputting the ID of the intelligent device A or scanning information such as the bar code ID, the two-dimensional code ID and the like. The cloud server receives a binding request of the intelligent device A and the client y, firstly, the fact that the intelligent device A has a 'super user' x is retrieved, the cloud end sends the request to the client x, whether the client y is a legal user is determined by the x, if yes, the client x returns 'permission' to the cloud end, the cloud end establishes a binding relation between the client y and the intelligent device A, and sends a specific login user name and a login password to the client y, so that the client y can use the intelligent device A without registering. If the client y is considered as an illegal user by the 'super user' x, the client x returns 'forbidden' to the cloud server, the cloud server does not allow the client y to establish a binding relationship with the intelligent device A, and does not send a login user name capable of logging in to the client y, and the client y is still outside the intelligent household appliance system.
Based on the same concept, an embodiment of the present invention further provides an apparatus for binding a client to an intelligent device, where the apparatus is a first client in the foregoing method embodiment, and specific implementation of the apparatus may refer to the description about the first client in the foregoing method embodiment, and repeated details are not repeated, as shown in fig. 4, the apparatus mainly includes:
a receiving module 401, configured to receive an authentication request for a second client, where the authentication request carries an identifier of the second client and an identifier of a first smart device that the second client requests to bind, and the apparatus is one of the clients to which the first smart device has bound;
a processing module 402, configured to determine that the second client is legal, instruct to send registration information of the second client on the first intelligent device to the second client, and instruct to bind the second client and the first intelligent device according to the registration information.
In implementation, the receiving module is specifically configured to:
receiving an authentication request sent by the first intelligent device to the second client, wherein the authentication request is generated and sent after the first intelligent device receives a binding request of the second client;
or,
receiving an authentication request sent by a cloud server to the second client, wherein the authentication request is generated and sent after the cloud server receives a binding request of the second client requesting to bind the first intelligent device;
or,
and receiving an authentication request sent by the second client to the second client, wherein the authentication request is generated and sent when the second client requests to bind the first intelligent equipment.
In implementation, the processing module is specifically configured to:
sending self registration information on the first intelligent equipment to the second client, and indicating the first intelligent equipment to bind the second client according to the registration information sent to the second client;
or,
and sending indication information for indicating that the second client is legal to a cloud server, sending registration information of the device on the first intelligent equipment to the second client by the cloud server, and indicating the first intelligent equipment by the cloud server to bind the second client according to the registration information sent to the second client.
In implementation, the processing module is specifically configured to:
and judging whether the second client side has a friendly communication relation with the second client side, if so, determining that the second client side is legal, and otherwise, determining that the second client side is illegal.
In an implementation, the processing module is further configured to:
and after the second intelligent device is bound, indicating to send the registration information on the second intelligent device to the second client, and indicating to bind the second client and the second intelligent device according to the registration information sent to the second client.
In an implementation, the processing module is further configured to:
determining that a reset signal sent by the first intelligent device is received, releasing the binding relationship with the first intelligent device, and indicating to release the binding relationship between the second client and the first intelligent device;
or,
and determining to receive an indication message sent by a cloud server for releasing the binding relationship with the first intelligent device, and releasing the binding relationship with the first intelligent device, wherein the indication message for releasing the binding relationship with the first intelligent device is sent after the cloud server determines to receive a reset signal of the first intelligent device.
In implementation, the processing module is further configured to instruct to release the binding relationship between the first smart device and the second client.
In implementation, the processing module is further configured to: if the second client is determined to be illegal, indicating the first intelligent equipment to forbid binding with the second client; or sending indication information for indicating that the second client is illegal to a cloud server, and forbidding the first intelligent device from being bound with the second client by the cloud server.
Based on the technical scheme, in the embodiment of the invention, under the condition that the first intelligent device is bound with the first client, if a binding request of the second client is received, an authentication request is sent to the bound first client so as to authenticate the legality of the second client; the first client side authenticates the legality of the second client side, after the second client side is determined to be legal, the first client side indicates that the registration information of the first client side on the first intelligent device is directly sent to the second client side, and indicates that the second client side and the first intelligent device are bound, so that the registration binding process only needs to be executed once under the condition that the plurality of client sides are bound for the intelligent device, other client sides can share the registration information of the first client side, and the process that the intelligent device binds the plurality of client sides is simplified.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.