CN112737845B - Binding method and device of intelligent equipment, storage medium and electronic device - Google Patents
Binding method and device of intelligent equipment, storage medium and electronic device Download PDFInfo
- Publication number
- CN112737845B CN112737845B CN202011602871.2A CN202011602871A CN112737845B CN 112737845 B CN112737845 B CN 112737845B CN 202011602871 A CN202011602871 A CN 202011602871A CN 112737845 B CN112737845 B CN 112737845B
- Authority
- CN
- China
- Prior art keywords
- terminal
- binding
- random number
- server
- intelligent
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000004590 computer program Methods 0.000 claims description 15
- 230000000694 effects Effects 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 abstract description 5
- 230000008569 process Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
- H04L63/0838—Network architectures or network communication protocols for network security for authentication of entities using passwords using one-time-passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0876—Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention provides a binding method and device of intelligent equipment, a storage medium and an electronic device, wherein the method comprises the following steps: after the intelligent equipment determines to enter a state of waiting for receiving the distribution network information, the intelligent equipment receives the distribution network information sent by a terminal, wherein the distribution network information comprises an identifier, a password and a random number of a router; the intelligent device is connected with the server based on the identifier and the password of the router; after determining that the connection with the server is successful, the intelligent device sends a binding request to the server to request the server to execute the following processing based on the random number carried in the binding request: the method comprises the steps of determining a terminal corresponding to a random number, binding the terminal and the intelligent device, and sending a first notification message to the terminal after determining that the binding is successful, wherein the first notification message is used for notifying the terminal that the intelligent device is successfully bound with the terminal. The invention solves the problem of low binding success rate in the related technology, thereby achieving the effect of improving the binding success rate.
Description
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a binding method and device of intelligent equipment, a storage medium and an electronic device.
Background
The method is characterized in that as intelligent equipment is gradually popularized in life, the requirement for binding the distribution network of the intelligent equipment is higher and higher by people, the method for binding the distribution network of the intelligent equipment by adopting a mobile terminal is a popular mode at present, when the intelligent equipment is bound by the mobile terminal, the name and the password of a router are generally sent to the equipment through multicast or broadcast, when the equipment is connected with the router, a broadcast packet is sent in a local area network to identify that the equipment is connected with the router, after the mobile terminal receives an online broadcast packet of the equipment in the local area network, the equipment is confirmed to be connected with the router, then the mobile terminal initiates binding, and a binding relationship is established between the equipment and a user at a cloud end.
Aiming at the problem of low binding success rate in the prior art, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a binding method and device of intelligent equipment, a storage medium and an electronic device, which at least solve the problem of low binding success rate in the related technology.
According to an embodiment of the present invention, there is provided a binding method of a smart device, including: after determining that the intelligent equipment enters a state of waiting for receiving distribution network information, receiving the distribution network information sent by a terminal, wherein the distribution network information comprises an identifier, a password and a random number of a router; the smart device connecting to a server based on the identity of the router and the password; after determining that the connection with the server is successful, the intelligent device sends a binding request to the server to request the server to execute the following processing based on the random number carried in the binding request: the method comprises the steps of determining the terminal corresponding to the random number, binding the terminal and the intelligent device, and sending a first notification message to the terminal after the binding is determined to be successful, wherein the first notification message is used for notifying the terminal that the intelligent device and the terminal are successfully bound.
In one exemplary embodiment, the smart device connecting to the server based on the identification of the router and the password comprises: the smart device connecting the router based on the identity of the router and the password; and under the condition that the connection of the router is determined to be successful, the intelligent equipment establishes connection with a server through the router.
According to another embodiment of the invention, after establishing connection with an intelligent device, a server receives a binding request sent by the intelligent device, wherein the binding request carries a random number, and the random number is data sent to the intelligent device by a terminal; the server determines the terminal corresponding to the random number and binds the terminal and the intelligent device; the server sends a first notification message to the terminal after determining that the binding is successful, wherein the first notification message is used for notifying the terminal that the intelligent device is successfully bound with the terminal.
In one exemplary embodiment, before receiving the binding request issued by the smart device, the method further comprises: the server receives a first message from the terminal, wherein the first message carries the random number and the identification information of the terminal; the server determining the terminal corresponding to the random number includes: the server determines the identification information corresponding to the random number based on the first message received in advance; and determining the terminal identified by the identification information as the terminal corresponding to the random number.
In an exemplary embodiment, after the server receives the first message from the terminal, the method further includes: the server starts a time window with preset duration under the trigger of the first message; the server determining the terminal corresponding to the random number and binding the terminal and the intelligent device comprises: and the server determines the terminal corresponding to the random number under the condition that the time for receiving the binding request is determined to be in the time window, and binds the terminal and the intelligent equipment.
In an exemplary embodiment, after the server binds the terminal and the smart device, the method further includes: and after determining that the binding is successful, the server sends a second notification message to the intelligent device, wherein the second notification message is used for notifying the intelligent device that the binding between the terminal and the intelligent device is successful.
According to another embodiment of the present invention, there is also provided a binding apparatus for a smart device, which is applied to the smart device, and includes: the system comprises a first receiving module, a second receiving module and a control module, wherein the first receiving module is used for receiving distribution network information sent by a terminal after the intelligent device is determined to enter a state of waiting for receiving the distribution network information, and the distribution network information comprises an identifier, a password and a random number of a router; a connection module for connecting a server based on the identity of the router and the password; a first sending module, configured to send a binding request to the server after determining that the connection with the server is successful, so as to request the server to perform the following processing based on the random number carried in the binding request: the method comprises the steps of determining the terminal corresponding to the random number, binding the terminal and the intelligent device, and sending a first notification message to the terminal after the binding is determined to be successful, wherein the first notification message is used for notifying the terminal that the intelligent device is successfully bound with the terminal.
According to another embodiment of the present invention, there is also provided a binding apparatus for a smart device, which is applied to a server, and includes: the second receiving module is used for receiving a binding request sent by the intelligent equipment after the server is connected with the intelligent equipment, wherein the binding request carries a random number, and the random number is data sent to the intelligent equipment by a terminal; the determining module is used for determining the terminal corresponding to the random number and binding the terminal and the intelligent equipment; and the second sending module is used for sending a first notification message to the terminal after the binding is determined to be successful, wherein the first notification message is used for notifying the terminal that the intelligent device is successfully bound with the terminal.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor configured to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, the equipment is bound to the distribution network based on the equipment side distribution network mode, namely the equipment is successfully bound with the server from the beginning of connecting the router, and the participation of a terminal is not needed in the process, and the router is also not needed to forward an online broadcast packet of the equipment, so that the distribution network success rate of the equipment can be effectively improved. The problem of low binding success rate in the related technology is solved, and the effect of improving the binding success rate is achieved.
Drawings
Fig. 1 is a block diagram of a mobile terminal hardware structure of a binding method of an intelligent device according to an embodiment of the present invention;
FIG. 2 is a first flowchart of a binding method of a smart device according to an embodiment of the invention;
FIG. 3 is a flow chart of a binding method of a smart device according to an embodiment of the present invention;
FIG. 4 is a flowchart of the overall binding method of a preferred smart device according to an embodiment of the present invention;
fig. 5 is a first block diagram of a binding apparatus structure of an intelligent device according to an embodiment of the present invention;
fig. 6 is a block diagram of a second binding apparatus structure of an intelligent device according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the operation on a mobile terminal, fig. 1 is a block diagram of a mobile terminal hardware structure of a binding method of an intelligent device according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those of ordinary skill in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 can be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the binding method of the smart device in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, thereby implementing the above-mentioned methods. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for binding an intelligent device is provided, and fig. 2 is a first flowchart of the method for binding an intelligent device according to the embodiment of the present invention, as shown in fig. 2, the process includes the following steps:
step S202, after the intelligent device determines to enter a state of waiting for receiving distribution network information, the intelligent device receives the distribution network information sent by a terminal, wherein the distribution network information comprises an identifier, a password and a random number of a router;
step S204, the intelligent device is connected with a server based on the identifier of the router and the password;
step S206, after determining that the connection with the server is successful, the smart device sends a binding request to the server to request the server to execute the following processing based on the random number carried in the binding request: the method comprises the steps of determining the terminal corresponding to the random number, binding the terminal and the intelligent device, and sending a first notification message to the terminal after the binding is determined to be successful, wherein the first notification message is used for notifying the terminal that the intelligent device and the terminal are successfully bound.
Through the steps, the equipment is bound with the distribution network based on the equipment side distribution network mode, namely the equipment is successfully bound with the server from the time when the equipment is connected with the router, and the on-line broadcast packet of the equipment is not required to be forwarded by the router during the binding relation, so that the distribution network success rate of the equipment can be effectively improved. The problem of low binding success rate in the related technology is solved, and the effect of improving the binding success rate is achieved.
The executing subject of the above steps may be an intelligent device, such as an intelligent home (including but not limited to an intelligent refrigerator, an intelligent air conditioner, an intelligent wardrobe, an intelligent washing machine, etc.), or other types of intelligent machines, or a module or a portable device with corresponding communication capability and interaction capability, or a processor with human-computer interaction capability configured on a storage device, or a processing device or a processing unit with similar processing capability, etc., but not limited thereto. The following description will be given by taking an example (which is only an exemplary description, and other devices or modules may be used to perform the above operations in actual operations) that the common smart air conditioning device in a smart home performs the above operations:
in the above embodiment, after determining that the state of waiting to receive the distribution network information is entered, the smart air conditioner receives the distribution network information sent by the terminal (e.g., a smart phone), and in an actual application, the smart air conditioner may enter the state of waiting to receive the distribution network information in multiple ways, for example, a relevant button, a smart remote control, or a mobile phone APP of the smart air conditioner may be included, and after entering the state of waiting to receive the distribution network information, the distribution network information sent by the terminal (e.g., a smart phone) is received, where the distribution network information includes an identifier and a password of a router and a random number, the random number is mainly used to identify a unique distribution network binding, the random number may be a random number of multiple bytes (e.g., an unsigned random number of 2 bytes or a random number of more bytes), and optionally, in an actual application, it is also possible that one terminal (e.g., a smart phone) needs to bind with multiple smart devices (e.g., smart device 1, smart device 2, etc.), and when sending the distribution network information to each smart device, the distribution network information is sent, the random numbers are randomly generated and are unpredictable, so as to protect security of users binding; the intelligent air conditioner can be connected with the server based on the identifier and the password of the router; after the intelligent air conditioner is successfully connected with the server, the intelligent equipment sends a binding request to the server, wherein the binding request comprises the random number (such as 2 bytes of unsigned random number) so as to request the server to determine a corresponding terminal (such as a smart phone, the terminal corresponds to the random number) according to the binding request and bind the terminal and the intelligent air conditioner, and the server sends a first notification message to the terminal (such as the smart phone) under the condition that the binding is successfully determined, and the notification message is used for notifying the smart phone and the intelligent air conditioner to be successfully bound. Because the traditional smart Link distribution network binding process is mainly initiated by a mobile phone end to bind, after the intelligent device is connected with the router, a broadcast packet can be sent in a local area network, and the intelligent mobile phone initiates the binding by the mobile phone only after receiving an online broadcast packet of the intelligent device, however, the compatibility problem of the router causes that the router does not forward the broadcast, and the mobile phone cannot bind. By adopting the scheme in the embodiment of the invention, in the distribution network binding process of the intelligent equipment, the distribution network binding process of the intelligent equipment is initiated by the equipment side, namely the equipment starts to be connected with the router and establishes a binding relationship with the server, the participation of a mobile phone is not needed in the process, the intelligent mobile phone does not need to wait for an online broadcast packet of the intelligent equipment, and compared with the problem of low binding success rate caused by poor router compatibility in the prior art, the embodiment of the invention can effectively achieve the effect of improving the binding success rate.
In an optional embodiment, the smart device connecting to the server based on the identification of the router and the password comprises: the smart device connecting the router based on the identity of the router and the password; and under the condition that the router is successfully connected, the intelligent equipment establishes connection with a server through the router. In this embodiment, the smart air conditioner connects to the router first based on the identifier and the password of the router sent by the terminal (e.g., a smart phone), and when it is determined that the smart air conditioner is successfully connected to the router, the smart air conditioner may connect to the server through the router.
In this embodiment, a method for binding an intelligent device is further provided, and fig. 3 is a second flowchart of the method for binding an intelligent device according to the embodiment of the present invention, as shown in fig. 3, the flowchart includes the following steps:
step S302, after establishing connection with an intelligent device, a server receives a binding request sent by the intelligent device, wherein the binding request carries a random number, and the random number is data sent to the intelligent device by a terminal;
step S304, the server determines the terminal corresponding to the random number and binds the terminal and the intelligent device;
step S306, after determining that the binding is successful, the server sends a first notification message to the terminal, where the first notification message is used to notify the terminal that the intelligent device is successfully bound with the terminal.
Through the steps, the equipment is bound to the distribution network based on the equipment side distribution network mode, namely the equipment is successfully bound with the server from the time when the equipment is connected with the router, and the participation of a terminal is not needed in the process, and the router is not needed to forward an online broadcast packet of the equipment, so that the distribution network success rate of the equipment can be effectively improved. The problem of low binding success rate in the related technology is solved, and the effect of improving the binding success rate is achieved.
The execution subject of the above steps may be a cloud device, or a server, a processing device, or a processing unit with similar processing capabilities, but is not limited thereto. The following description takes the cloud device to perform the above operation as an example (which is only an exemplary description, and in actual operation, other devices or modules may also perform the above operation):
in the above embodiment, after the cloud device is connected to the smart device (e.g., a smart television), a binding request sent by the smart device is received, where the binding request carries a random number, and the random number is sent to the smart device (e.g., the smart television) by a terminal (e.g., a smart phone), in an actual application, when the terminal sends distribution network information to the smart device, where the distribution network information includes the random number (e.g., 2 bytes of unsigned random number seed, which may also be more bytes), the random number is mainly used to identify a unique distribution network binding relationship, and the cloud device may determine, according to the random number, a terminal (i.e., the smart phone) corresponding to the random number (e.g., the seed) and bind the smart phone and the smart television, and after it is determined that the smart phone and the smart television are successfully bound, the cloud device needs to send a first notification message to the terminal (e., the smart phone), where the notification message is used to notify that the smart phone and the smart television are successfully bound, so that binding is initiated by the side of the distribution network is achieved, and a problem that the smart phone can ignore the binding problem of the binding by a compatibility of the smart phone is solved, and the binding is improved.
In an optional embodiment, before receiving the binding request issued by the smart device, the method further includes: the server receives a first message from the terminal, wherein the first message carries the random number and the identification information of the terminal; the server determining the terminal corresponding to the random number includes: the server determines the identification information corresponding to the random number based on the first message received in advance; and determining the terminal identified by the identification information as the terminal corresponding to the random number. In this embodiment, before the cloud device receives a binding request sent by the smart device (such as a smart television), the cloud device needs to receive a first message sent by the terminal (such as the smart phone), where the first message includes the random number and identification information (for example, token for identifying the smart phone) of the terminal (such as the smart phone), that is, before the device performs distribution network binding, the random number and the token are uploaded to the cloud device, so that the cloud device records a corresponding relationship between the random number and the token; and the cloud device, when determining the terminal corresponding to the random number, comprises: the cloud device determines, based on the first message received in advance, the identification information (i.e., information representing the terminal) corresponding to the random number, and then determines, as the terminal (e.g., smart phone) corresponding to the random number, that a terminal (e.g., smart phone) represented by the identification information may need to be bound to a plurality of smart devices (e.g., smart device 1, smart device 2, etc.) in practical applications, for example, when the smart phone sends distribution network binding information (corresponding to the first message) to the cloud device, it is assumed that the identification information corresponding to the smart device 1 is token1 and the identification information corresponding to the smart device 2 is token2, and then after the cloud device determines, based on the first message received in advance, that the identification information corresponding to the random number is token2, it may determine that the terminal corresponding to the random number is smart device 2.
In an optional embodiment, after the server receives the first message from the terminal, the method further includes: the server starts a time window with preset duration under the trigger of the first message; the server determining the terminal corresponding to the random number and binding the terminal and the intelligent device comprises: and the server determines the terminal corresponding to the random number under the condition that the time for receiving the binding request is determined to be in the time window, and binds the terminal and the intelligent equipment. In this embodiment, after the cloud device receives the first message sent by the terminal (e.g., a smart phone), the cloud device may open a time window of a predetermined duration under the trigger of the first message, for example, the cloud device may open an effective period of 10 minutes (in practical applications, the effective period of another predetermined duration may be set as needed, for example, 5 minutes, 15 minutes, 1 hour, and the like), and the main purpose of setting the effective period is to consider the security of the user distribution network binding and the uniqueness of the random number (e.g., 2 bytes of unsigned random number seed), because if the random number is always valid, the probability of collision of the random number may increase with the change of time. The operation of the cloud device determining the terminal (e.g., a smart phone) corresponding to the random number (e.g., the seed) and binding the terminal and the smart device (e.g., a smart television) includes: the cloud device determines the terminal (e.g., the smart phone) corresponding to the random number (e.g., the seed) and binds the terminal (e.g., the smart phone) with the smart device (e.g., the smart television) when determining that the time for receiving the binding request is within the time window (e.g., the validity period of 10 minutes).
In an optional embodiment, after the server binds the terminal and the smart device, the method further includes: and after determining that the binding is successful, the server sends a second notification message to the intelligent device, wherein the second notification message is used for notifying the intelligent device that the binding between the terminal and the intelligent device is successful. In this embodiment, when the cloud device determines that the terminal (e.g., a smart phone) is successfully bound to the smart device (e.g., a smart television), the cloud device sends a second notification message to the smart device (e.g., a smart television), where the second notification message is used to notify that the smart television is successfully bound to the smart phone.
It should be noted that the above-described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The present invention will be described in detail with reference to the following examples:
fig. 4 is a flowchart of the overall binding method of a preferred intelligent device according to an embodiment of the present invention, as shown in fig. 4, the flowchart includes the following steps:
s402, entering a distribution network mode and waiting for receiving distribution network information;
s404, starting smart Link network distribution;
s406, the user (specifically, the mobile APP end of the user, corresponding to the aforementioned terminal) inputs the name and password of the router to be configured;
s408, the user sends a seed (corresponding to the random number) + token (corresponding to the identification information of the terminal) to the cloud, that is, before the device binds the distribution network, the random number and the token are uploaded to the cloud, so that the cloud records the correspondence between the random number and the token, and the seed may be an unsigned random number of 2 bytes (or a random number of more bytes in practical application) and is used to identify a unique distribution network;
s410, opening a 10-minute effective binding time window (in practical application, the effective period of other preset time can be set), wherein the reason for increasing the time limit is to consider the uniqueness of safety and seed, and because seed has only two bytes, if the seed is effective all the time, the probability of collision of the seed is increased along with the change of time, so the effective period only remains 10 minutes;
s412, the terminal sends distribution network information, wherein the distribution network information comprises: ssid (corresponding to the aforementioned router name) + password (corresponding to the aforementioned router password) + seed;
s414 and S416, after the intelligent equipment receives the complete distribution network information, the intelligent equipment starts to connect the router and the cloud;
s418, after the device is connected with the cloud end, a binding request is sent to the cloud end by using the seed;
s420, the cloud traverses the seed currently in the windowing period (namely the effective binding time window of 10 minutes), and finds out the corresponding token;
s422, after finding the corresponding token, the cloud informs the device of successful binding;
and S424, the cloud sends a notification of successful binding to the mobile phone side (namely the user) through the token, and at the moment, the mobile phone side can display that the distribution network is completed.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a binding apparatus for an intelligent device is further provided, and fig. 5 is a first structural block diagram of the binding apparatus for an intelligent device according to the embodiment of the present invention, as shown in fig. 5, where the apparatus is applied to an intelligent device, and includes:
a first receiving module 502, configured to receive distribution network information sent by a terminal after it is determined that an intelligent device enters a state of waiting for receiving the distribution network information, where the distribution network information includes an identifier and a password of a router and a random number;
a connection module 504 for connecting a server based on the identity of the router and the password;
a first sending module 506, configured to, after determining that the connection with the server is successful, send a binding request to the server to request the server to perform the following processing based on the random number carried in the binding request: the method comprises the steps of determining the terminal corresponding to the random number, binding the terminal and the intelligent device, and sending a first notification message to the terminal after the binding is determined to be successful, wherein the first notification message is used for notifying the terminal that the intelligent device and the terminal are successfully bound.
In an alternative embodiment, the connection module 504 includes: a first connection unit, configured to connect, by the smart device, the router based on the identifier and the password of the router; and the second connection unit is used for establishing connection between the intelligent equipment and the server through the router under the condition that the router is determined to be successfully connected.
In this embodiment, a binding apparatus for an intelligent device is further provided, and fig. 6 is a block diagram of a structure of the binding apparatus for an intelligent device according to an embodiment of the present invention, as shown in fig. 6, where the binding apparatus is applied to a server, and includes:
a second receiving module 602, configured to receive a binding request sent by an intelligent device after a server establishes a connection with the intelligent device, where the binding request carries a random number, and the random number is data sent by a terminal to the intelligent device;
a determining module 604, configured to determine the terminal corresponding to the random number, and bind the terminal and the smart device;
a second sending module 606, configured to send a first notification message to the terminal after determining that the binding is successful, where the first notification message is used to notify the terminal that the intelligent device is successfully bound with the terminal.
In an optional embodiment, the apparatus further comprises: a third receiving module, configured to receive, by the server, a first message from the terminal before receiving the binding request sent by the smart device, where the first message carries the random number and the identifier information of the terminal; the determining module 604 includes: a first determining unit, configured to determine, by the server, the identification information corresponding to the random number based on the first message received in advance; a second determining unit configured to determine the terminal identified by the identification information as the terminal corresponding to the random number.
In an optional embodiment, the apparatus further comprises: the starting module is used for starting a time window with preset duration under the trigger of the first message after the server receives the first message from the terminal; the determining module 604 further comprises: a third determining unit, configured to, when it is determined that the time for receiving the binding request is within the time window, determine the terminal corresponding to the random number, and bind the terminal and the smart device.
In an optional embodiment, the apparatus further comprises: and a third sending module, configured to, after the server binds the terminal and the intelligent device, send, by the server, a second notification message to the intelligent terminal after determining that the binding is successful, where the second notification message is used to notify the intelligent device that the binding between the terminal and the intelligent device is successful.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementations, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented in a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and they may be implemented in program code that is executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed in an order different from that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps therein may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims (9)
1. A binding method of intelligent equipment is characterized by comprising the following steps:
after determining that the intelligent equipment enters a state of waiting for receiving distribution network information, receiving the distribution network information sent by a terminal, wherein the distribution network information comprises an identifier, a password and a random number of a router;
the smart device connecting to a server based on the identity of the router and the password;
after determining that the connection with the server is successful, the intelligent device sends a binding request to the server to request the server to execute the following processing based on the random number carried in the binding request: under the condition that the time for receiving the binding request is determined to be within a time window, determining the terminal corresponding to the random number, binding the terminal and the intelligent device, and sending a first notification message to the terminal after the binding is determined to be successful, wherein the first notification message is used for notifying the terminal that the intelligent device and the terminal are successfully bound, the time window is started by the server under the trigger of a first message, the first message is sent to the server by the terminal, and the first message carries the random number and the identification information of the terminal; the random number is unique within the time window.
2. The method of claim 1, wherein connecting the server based on the identity of the router and the password by the smart device comprises:
the smart device connecting the router based on the identity of the router and the password;
and under the condition that the connection of the router is determined to be successful, the intelligent equipment establishes connection with a server through the router.
3. A binding method of intelligent equipment is characterized by comprising the following steps:
after establishing connection with an intelligent device, a server receives a binding request sent by the intelligent device, wherein the binding request carries a random number, and the random number is data sent to the intelligent device by a terminal;
the server determines the terminal corresponding to the random number and binds the terminal and the intelligent device;
the server sends a first notification message to the terminal after determining that the binding is successful, wherein the first notification message is used for notifying the terminal that the intelligent device is successfully bound with the terminal;
wherein, prior to receiving the binding request issued by the smart device, the method further comprises: the server receives a first message from the terminal, wherein the first message carries the random number and the identification information of the terminal;
after the server receives the first message from the terminal, the method further comprises: the server starts a time window with preset duration under the trigger of the first message;
the server determining the terminal corresponding to the random number and binding the terminal and the intelligent device comprises: the server determines the terminal corresponding to the random number under the condition that the time for receiving the binding request is determined to be in the time window, and binds the terminal and the intelligent device; the random number is unique within the time window.
4. The method of claim 3,
the server determining the terminal corresponding to the random number includes: the server determines the identification information corresponding to the random number based on the first message received in advance; and determining the terminal identified by the identification information as the terminal corresponding to the random number.
5. The method of claim 3, wherein after the server binds the terminal and the smart device, the method further comprises:
and the server sends a second notification message to the intelligent device after determining that the binding is successful, wherein the second notification message is used for notifying the intelligent device that the binding between the terminal and the intelligent device is successful.
6. The utility model provides a binding apparatus of smart machine which characterized in that, is applied to the smart machine, includes:
the first receiving module is used for receiving the distribution network information sent by a terminal after the intelligent equipment is determined to enter a state of waiting for receiving the distribution network information, wherein the distribution network information comprises an identifier, a password and a random number of a router;
a connection module for connecting a server based on the identity of the router and the password;
a first sending module, configured to send a binding request to the server after determining that the connection with the server is successful, so as to request the server to perform the following processing based on the random number carried in the binding request: under the condition that the time for receiving the binding request is determined to be within a time window, determining the terminal corresponding to the random number, binding the terminal and the intelligent device, and sending a first notification message to the terminal after the binding is determined to be successful, wherein the first notification message is used for notifying the terminal that the intelligent device is successfully bound with the terminal, the time window is started by the server under the trigger of a first message, the first message is sent to the server by the terminal, and the first message carries the random number and the identification information of the terminal; the random number is unique within the time window.
7. The utility model provides a binding apparatus of smart machine which is applied to in the server, includes:
the second receiving module is used for receiving a binding request sent by the intelligent equipment after the server is connected with the intelligent equipment, wherein the binding request carries a random number, and the random number is data sent to the intelligent equipment by a terminal;
the determining module is used for determining the terminal corresponding to the random number and binding the terminal and the intelligent equipment;
the second sending module is used for sending a first notification message to the terminal after the binding is determined to be successful, wherein the first notification message is used for notifying the terminal that the intelligent device is successfully bound with the terminal;
wherein, above-mentioned device still includes: a third receiving module, configured to receive a first message from the terminal before receiving a binding request sent by the smart device, where the first message carries the random number and identifier information of the terminal;
the above-mentioned device still includes: the starting module is used for starting a time window with preset duration under the triggering of the first message after receiving the first message from the terminal;
the determining module further includes: a third determining unit, configured to determine the terminal corresponding to the random number and bind the terminal and the smart device when it is determined that the time for receiving the binding request is within the time window; the random number is unique within the time window.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 2 or carries out the steps of the method of any one of claims 3 to 5.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method as claimed in any one of claims 1 to 2 or the steps of the method as claimed in any one of claims 3 to 5 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011602871.2A CN112737845B (en) | 2020-12-29 | 2020-12-29 | Binding method and device of intelligent equipment, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011602871.2A CN112737845B (en) | 2020-12-29 | 2020-12-29 | Binding method and device of intelligent equipment, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112737845A CN112737845A (en) | 2021-04-30 |
CN112737845B true CN112737845B (en) | 2023-04-07 |
Family
ID=75610599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011602871.2A Active CN112737845B (en) | 2020-12-29 | 2020-12-29 | Binding method and device of intelligent equipment, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112737845B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113365225A (en) * | 2021-06-03 | 2021-09-07 | 青岛海尔科技有限公司 | Method and device for receiving building connection result, storage medium and electronic device |
CN113595992B (en) * | 2021-07-07 | 2023-03-28 | 青岛海尔科技有限公司 | Secure binding method and system, storage medium and electronic device |
CN113596960B (en) * | 2021-08-06 | 2024-07-26 | 无锡松下冷机有限公司 | Network allocation method and system for voice interaction equipment and computer readable storage medium |
CN113960929A (en) * | 2021-10-19 | 2022-01-21 | 华帝股份有限公司 | Visual data interaction detection method, system, equipment and medium for intelligent kitchen electricity |
CN115175152A (en) * | 2022-06-20 | 2022-10-11 | 青岛海尔科技有限公司 | Intelligent device binding method and device, storage medium and electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104936304A (en) * | 2015-06-01 | 2015-09-23 | 小米科技有限责任公司 | Intelligent equipment binding method, intelligent equipment, and server |
CN105450655A (en) * | 2015-12-14 | 2016-03-30 | 小米科技有限责任公司 | Device binding methods and apparatuses |
CN107342984A (en) * | 2017-06-13 | 2017-11-10 | 浙江大华技术股份有限公司 | A kind of system, method and device for apparatus bound |
CN111787517A (en) * | 2020-02-21 | 2020-10-16 | 北京沃东天骏信息技术有限公司 | Method and device for binding activation of intelligent equipment |
-
2020
- 2020-12-29 CN CN202011602871.2A patent/CN112737845B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104936304A (en) * | 2015-06-01 | 2015-09-23 | 小米科技有限责任公司 | Intelligent equipment binding method, intelligent equipment, and server |
CN105450655A (en) * | 2015-12-14 | 2016-03-30 | 小米科技有限责任公司 | Device binding methods and apparatuses |
CN107342984A (en) * | 2017-06-13 | 2017-11-10 | 浙江大华技术股份有限公司 | A kind of system, method and device for apparatus bound |
CN111787517A (en) * | 2020-02-21 | 2020-10-16 | 北京沃东天骏信息技术有限公司 | Method and device for binding activation of intelligent equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112737845A (en) | 2021-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112737845B (en) | Binding method and device of intelligent equipment, storage medium and electronic device | |
CN110971495B (en) | Equipment binding method and device of intelligent household system and storage medium | |
US11310730B2 (en) | Method of connecting to network for home appliance, home appliance, and method of connecting to network for home appliance system | |
CN111865736B (en) | Equipment control method and device | |
CN111885115B (en) | Device binding changing method and device | |
CN111885594B (en) | Equipment binding method and device | |
CN112152853A (en) | Equipment network distribution method and device, computer-readable storage medium and electronic device | |
CN113423105A (en) | Network connection method and device | |
CN112637931A (en) | Method and device for establishing network connection | |
CN111404918A (en) | Cloud mobile phone distributed service emergency authentication method, device and system | |
WO2023005410A1 (en) | Information synchronization method and system, storage medium, and electronic device | |
CN113904949B (en) | Distribution network binding method and device, intelligent equipment and storage medium | |
CN112738865B (en) | Service processing method and device and electronic equipment | |
CN112738785B (en) | Device connection method and apparatus, storage medium, and electronic apparatus | |
CN114553625A (en) | Response device determination method and apparatus, storage medium, and electronic apparatus | |
CN114125052A (en) | Target operation execution method and device, storage medium and electronic device | |
CN110575670B (en) | Method for generating configuration strategy of game data and related products | |
CN112637221A (en) | Equipment control method and device | |
CN114222255B (en) | Method and device for device ad hoc network, electronic device and storage medium | |
CN115767531A (en) | Bluetooth authentication method, device, electronic device and storage medium | |
CN113596938A (en) | Network switching method and device of mobile terminal, storage medium and electronic device | |
CN113596835A (en) | Network connection method, device, storage medium and electronic device | |
CN113395744B (en) | Networking method and device of equipment, storage medium and electronic device | |
WO2023092979A1 (en) | Binding relationship establishing method and device, storage medium, and electronic device | |
CN113453300B (en) | Equipment hot spot processing method and device, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |