CN113596783A - Internet of things equipment binding method and device, storage medium and electronic device - Google Patents

Internet of things equipment binding method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113596783A
CN113596783A CN202110770586.XA CN202110770586A CN113596783A CN 113596783 A CN113596783 A CN 113596783A CN 202110770586 A CN202110770586 A CN 202110770586A CN 113596783 A CN113596783 A CN 113596783A
Authority
CN
China
Prior art keywords
target
binding
internet
equipment
terminal
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.)
Pending
Application number
CN202110770586.XA
Other languages
Chinese (zh)
Inventor
柯小锋
刘建国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110770586.XA priority Critical patent/CN113596783A/en
Publication of CN113596783A publication Critical patent/CN113596783A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a method and a device for binding Internet of things equipment, a storage medium and an electronic device, wherein the method comprises the following steps: detecting target equipment to be accessed to a network, wherein the target equipment is Internet of things equipment; under the condition that a target terminal is not connected to a router, receiving a target binding request sent by target equipment through a target Bluetooth module of the target terminal, wherein the target binding request is used for requesting to bind the target equipment and a target object corresponding to the target terminal; and forwarding the target binding request to an Internet of things platform so as to bind the target equipment and the target object on the Internet of things platform. Through the method and the device, the problems of poor applicability and low binding success rate caused by the participation of the router in the binding mode of the Internet of things equipment in the related technology are solved.

Description

Internet of things equipment binding method and device, storage medium and electronic device
Technical Field
The application relates to the field of communication, in particular to a method and a device for binding Internet of things equipment, a storage medium and an electronic device.
Background
At present, in the binding process interaction of WiFi (Wireless Fidelity) IoT (Internet of Things) devices, the devices rely on routing strongly, and it is necessary to configure routing information for the devices (after connecting the routing) to activate the devices, that is, send routing information and user information to the devices, and connect the devices to the platform and initiate binding after connecting the routing. In some special scenarios (e.g., newly decorated homes), there may be no broadband (i.e., no routing) conditions, resulting in a failure to activate the device and experience the device functions.
Therefore, the binding mode of the internet of things equipment in the related technology has the problems of poor applicability and low binding success rate caused by the need of the router.
Disclosure of Invention
The embodiment of the application provides a method and a device for binding Internet of things equipment, a storage medium and an electronic device, and aims to at least solve the problems of poor applicability and low binding success rate caused by the need of participation of a router in a binding mode of the Internet of things equipment in the related technology.
According to an aspect of an embodiment of the present application, a method for binding internet of things devices is provided, including: detecting target equipment to be accessed to a network, wherein the target equipment is Internet of things equipment; under the condition that a target terminal is not connected to a router, receiving a target binding request sent by target equipment through a target Bluetooth module of the target terminal, wherein the target binding request is used for requesting to bind the target equipment and a target object corresponding to the target terminal; and forwarding the target binding request to an Internet of things platform so as to bind the target equipment and the target object on the Internet of things platform.
In an exemplary embodiment, the detecting the target device to be networked includes: and receiving target identification information broadcasted by the target equipment through a wireless hotspot of the target equipment or a Bluetooth module of the target equipment, wherein the target identification information is used for identifying the target equipment as equipment to be accessed to the network.
In an exemplary embodiment, after detecting the target device to be networked, the method further includes: determining that the target terminal is connected to a router under the conditions that a wireless fidelity (WiFi) module of the target terminal is started and routing connection exists on the target terminal; and under the condition that the WiFi module on the target terminal is started but no routing connection exists on the target terminal, determining that the target terminal is not connected to a router.
In an exemplary embodiment, receiving, by the target bluetooth module of the target terminal, the target binding request sent by the target device includes: sending an initial binding request to the target equipment through the target Bluetooth module, wherein the initial binding request carries target object information of the target object; and receiving the target binding request sent by the target device through the target Bluetooth module, wherein the target binding request carries device information of the target device, the target object information and a binding code for binding the target object and the target device.
In one exemplary embodiment, after forwarding the target binding request to the internet of things platform, the method further comprises: receiving a first response message returned by the Internet of things platform in response to the target binding request, wherein the first response message is used for indicating a binding result of the target device and the target object; forwarding the first reply message to the target device.
In an exemplary embodiment, after detecting the target device to be networked, the method further includes: and sending target configuration information to the target device under the condition that the target terminal is connected to a target router, wherein the target configuration information comprises router information of the target router and target object information of the target object, and the target configuration information is used for binding the target device and the target object on the platform of the internet of things by connecting the target device with the target router.
In an exemplary embodiment, after detecting the target device to be networked, the method further includes: sending a target query request to the Internet of things platform, wherein the target query request is used for requesting to query a binding result of the target device and the target object; and receiving a second response message returned by the Internet of things platform in response to the target query request, wherein the second response message is used for indicating a binding result of the target device and the target object.
According to another aspect of the embodiments of the present application, there is also provided a binding apparatus for internet of things devices, including: the system comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for detecting target equipment to be networked, and the target equipment is Internet of things equipment; a first receiving unit, configured to receive, through a target bluetooth module of a target terminal, a target binding request sent by the target device when the target terminal is not connected to a router, where the target binding request is used to request to bind the target device and a target object corresponding to the target terminal; and the first forwarding unit is used for forwarding the target binding request to an internet of things platform so as to bind the target device and the target object on the internet of things platform.
In one exemplary embodiment, the detection unit includes: the first receiving module is configured to receive target identification information broadcasted by the target device through a wireless hotspot of the target device or a bluetooth module of the target device, where the target identification information is used to identify the target device as a device to be networked.
In one exemplary embodiment, the apparatus further comprises: the first determining unit is used for determining that the target terminal is connected to a router under the conditions that a wireless fidelity (WiFi) module of the target terminal is started and routing connection exists on the target terminal after the target device to be accessed to the network is detected; a second determining unit, configured to determine that the target terminal is not connected to the router when the WiFi module on the target terminal is turned on but there is no routing connection on the target terminal.
In one exemplary embodiment, the first receiving unit includes: a sending module, configured to send an initial binding request to the target device through the target bluetooth module, where the initial binding request carries target object information of the target object; a receiving module, configured to receive, through the target bluetooth module, the target binding request sent by the target device, where the target binding request carries device information of the target device, the target object information, and a binding code for binding the target object and the target device.
In one exemplary embodiment, the apparatus further comprises: a second receiving unit, configured to receive a first response message returned by the internet of things platform in response to the target binding request after forwarding the target binding request to the internet of things platform, where the first response message is used to indicate a binding result of the target device and the target object; a second forwarding unit, configured to forward the first reply message to the target device.
In one exemplary embodiment, the apparatus further comprises: the first sending unit is configured to send target configuration information to a target device after the target device to be networked is detected and when the target terminal is connected to a target router, where the target configuration information includes router information of the target router and target object information of the target object, and the target configuration information is used for the target device to bind the target device and the target object on the platform of the internet of things by connecting with the target router.
In one exemplary embodiment, the apparatus further comprises: a second sending unit, configured to send a target query request to the internet of things platform after the target device to be networked is detected, where the target query request is used to request query of a binding result between the target device and the target object; a third receiving unit, configured to receive a second response message returned by the internet of things platform in response to the target query request, where the second response message is used to indicate a binding result between the target device and the target object.
According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to, when executed, execute the binding method for the internet of things device.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the method for binding the internet of things device through the computer program.
In the embodiment of the application, a Bluetooth module of a terminal is used for receiving a binding request of a device to be networked, and the terminal forwards the binding request to an Internet of things platform, and a target device to be networked is detected, wherein the target device is an Internet of things device; under the condition that the target terminal is not connected to the router, receiving a target binding request sent by target equipment through a target Bluetooth module of the target terminal, wherein the target binding request is used for requesting to bind the target equipment and a target object corresponding to the target terminal; the target binding request is forwarded to the Internet of things platform so as to bind the target equipment and the target object on the Internet of things platform, the binding request of the equipment to be networked is received through the Bluetooth module of the terminal, the binding request is forwarded to the Internet of things platform through the terminal, the binding activation process of the equipment can be realized without participation of a router, the purpose of strong dependence of the equipment binding process on the router can be weakened, the technical effects of improving the equipment binding applicability and improving the equipment binding success rate are achieved, and the problems of poor applicability and low binding success rate caused by the need of router participation in the binding mode of the Internet of things equipment in the related technology are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware environment of an alternative method for binding internet of things devices according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an alternative method for binding internet of things devices according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another optional method for binding internet of things devices according to an embodiment of the present application;
fig. 4 is a block diagram illustrating a structure of an optional binding apparatus of an internet of things device according to an embodiment of the present application;
fig. 5 is a block diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a method for binding Internet of things equipment is provided. Optionally, in this embodiment, the method for binding the internet of things device may be applied to a hardware environment formed by the terminal 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal 102 through a network, and may be configured to provide services (e.g., game services, application services, etc.) for the terminal or a client installed on the terminal, and may be configured with a database on the server or separately from the server, and configured to provide data storage services for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. The terminal 102 may not be limited to a PC, a mobile phone, a tablet computer, etc.
The binding method of the internet of things device in the embodiment of the application may be executed by the server 104, the terminal 102, or both the server 104 and the terminal 102. The terminal 102 may also be configured to execute the method for binding the internet of things device according to the embodiment of the present application by a client installed thereon.
Taking the method for binding the internet of things device in this embodiment executed by the terminal 102 as an example, fig. 2 is a schematic flow chart of an optional method for binding the internet of things device according to this embodiment, and as shown in fig. 2, the flow of the method may include the following steps:
step S202, target equipment to be accessed to the network is detected, wherein the target equipment is Internet of things equipment.
The method for binding the internet of things device in the embodiment can be applied to a scene of binding the internet of things device to be networked (i.e., the IOT device), for example, binding the IOT device with a user on an internet of things platform; the IOT devices may include, but are not limited to, smart home devices, such as smart refrigerators, smart air conditioners, and the like. The method for binding the internet of things device in this embodiment may be executed by a terminal device, which may be a mobile phone terminal used by a user, or other devices, and this is not limited in this implementation.
In an example executed by a target terminal, the target terminal may be a terminal used by a target user, and a target client may be run on the terminal, where the target client may be an App (Application) for binding devices in the internet of things. The binding method of the internet of things device may also be executed by the target client. The target terminal may have a first communication component (or communication middleware) installed thereon, for example, an SDK (Software Development Kit), through which a device to be networked can be detected.
For a target device, the target device may be an internet of things device to be networked, and a second communication component (or communication middleware), for example, an SDL (Simple direct media Layer) module, is installed on the target device, and after the target device is started, the target device enters a configuration flow and may not exit the configuration.
The target device may have Bluetooth functionality, such as BLE (Bluetooth Low Energy), or other communication functionality capable of broadcasting information. The target device may broadcast its own device information. The target terminal can receive the device information broadcasted by the target device through the SDK, so as to obtain the device information of the target device.
After the target client acquires the device information of the target device, the target device can be determined to be a device to be networked. The method for determining the target device as the device to be networked may be various, for example, the method may be determined according to a specific identifier in the device information, or may also display the detected device information of all the devices on a display interface of the target client, and after the detected selection operation performed on the device information of the target device, determine the target device as the device to be networked.
Step S204, under the condition that the target terminal is not connected to the router, a target binding request sent by the target equipment is received through a target Bluetooth module of the target terminal, wherein the target binding request is used for requesting to bind the target equipment and a target object corresponding to the target terminal.
After determining that the target device is a device to be networked, the target client may further determine whether the target terminal is capable of connecting to the router. In different scenarios, for example, the WiFi module of the target terminal is not turned on, the WiFi module of the target terminal is turned on and connected to the router, and the WiFi module of the target terminal is turned on but not connected to the router. In different scenarios, it may be determined in a corresponding manner whether the target terminal is capable of connecting to the router.
For example, if the WiFi module of the target terminal is not turned on, the WiFi module of the target terminal may be controlled to be turned on, and it is determined whether the target terminal can be connected to the router according to the connection state of the WiFi module after turning on. And if the WiFi module of the target terminal is switched on and is connected to the router, determining that the target terminal can be connected to the router. If the WiFi module of the target terminal is started and is not connected to the router, determining that the target terminal cannot be connected to the router; or, the WiFi module of the target terminal may be turned off and then turned on to determine whether the target terminal is capable of connecting to the router.
Under the condition that the target terminal is not connected to the router, considering that most devices have the Bluetooth function, the target client can receive a target binding request sent by the target device, wherein the target binding request is used for requesting to bind the target device and a target object corresponding to the target terminal. The target binding request may carry information required for binding the target device and the target object, that is, target binding information, which may include, but is not limited to: device information of the target device and user information of the target user, etc.
It should be noted that the target object is an object that can be recognized by the platform of the internet of things and is used for identifying the target user, and the target object may be identified by an account used by the target user (i.e., a target account identifier) or other identification information that can uniquely identify the target user.
Step S206, the target binding request is forwarded to the Internet of things platform, so that the target device and the target object are bound on the Internet of things platform.
The target client can communicate with the internet of things platform by using a mobile communication network or other networks. After receiving the target binding request, the target client may forward the target binding request to the internet of things platform through the mobile communication network or other networks. After receiving the target binding request, the internet of things platform may extract target binding information from the target binding request, and bind the target device and the target object using the target binding information.
Through the steps, target equipment to be accessed to the network is detected, wherein the target equipment is Internet of things equipment; under the condition that the target terminal is not connected to the router, receiving a target binding request sent by target equipment through a target Bluetooth module of the target terminal, wherein the target binding request is used for requesting to bind the target equipment and a target object corresponding to the target terminal; the target binding request is forwarded to the Internet of things platform so as to bind the target equipment and the target object on the Internet of things platform, the problems of poor applicability and low binding success rate caused by the participation of a router in the binding mode of the Internet of things equipment in the related technology are solved, the equipment binding applicability is improved, and the equipment binding success rate is improved.
In one exemplary embodiment, detecting a target device to be networked includes:
and S11, receiving target identification information broadcasted by the target device through a wireless hotspot of the target device or a Bluetooth module of the target device, wherein the target identification information is used for identifying the target device as a device to be networked.
The target terminal may receive target identification information sent by the target device. The target identification information may contain device information of the target device, i.e., target device information. The target device information may be used to identify the target device. Optionally, the target device information may also be used to identify that the device having the target device information is an internet of things device. The target identification information may also include other information, for example, a to-be-accessed identifier, and the device having the target device information may be identified as the to-be-accessed device through the to-be-accessed identifier.
There are various ways in which the target terminal receives the target identification information. For example, the target device may broadcast the target identification information through a bluetooth module thereon. Correspondingly. The target terminal can receive the target identification information broadcasted by the target device through the target Bluetooth module. As another example, the target device may be in a softap mode in which a wireless hotspot of the target device (i.e., a softap hotspot) is open. The target terminal may broadcast the target identification information through the wireless hotspot. Correspondingly, the target terminal can receive the target identification information broadcast by the target device through the WiFi module.
Through the embodiment, the device information of the device to be networked is broadcasted through the Bluetooth module or the softap hotspot, so that the success rate of discovering the device to be networked can be improved.
In an exemplary embodiment, after detecting the target device to be networked, the method further includes:
s21, determining that the target terminal is connected to the router under the condition that the wireless fidelity WiFi module of the target terminal is started and the target terminal has route connection;
and S22, determining that the target terminal is not connected to the router under the condition that the WiFi module on the target terminal is started but no route connection exists on the target terminal.
To determine whether the target terminal has a router connected thereto, the target terminal may first determine whether a WiFi module of the target terminal is turned on. If not, the WiFi module of the target terminal can be controlled to be turned on firstly.
Under the condition that the WiFi module of the target terminal is started, the target terminal can further judge whether the target terminal has route connection. If so, the target terminal can determine that the target terminal is connected to the router; otherwise, determining that the target terminal is not connected to the router.
Through the embodiment, under the condition that the WiFi module on the terminal is started, whether the terminal is connected to the router or not is determined based on whether the terminal has the routing connection or not, and the accuracy of information judgment can be improved.
In an exemplary embodiment, the receiving, by the target bluetooth module of the target terminal, the target binding request sent by the target device includes:
s31, sending an initial binding request to the target device through the target Bluetooth module, wherein the initial binding request carries target object information of the target object;
s32, receiving a target binding request sent by a target device through a target Bluetooth module, wherein the target binding request carries device information of the target device, target object information and a binding code for binding the target object and the target device.
If the target terminal is not connected to the router, in order to improve the binding efficiency, the target terminal can apply binding first and then configuration, that is, the target device and the target object are bound first, and then the routing information and the like are configured for the target device. For example, the target terminal may send an initial binding request to the target device through the target bluetooth module, where the binding request may request to be bound with the target device first and then be configured, and the binding request may carry target object information of the target object, so that the target device knows the object to be bound.
The target device, upon receiving the initial binding request, may encapsulate the binding request. The encapsulated binding request may carry target binding information, and the target binding information may include: device information of the target device (i.e., target device information), target object information, and a binding code that can be used to bind the target object and the target device, e.g., to check during the binding process, etc. The target binding information may be encrypted by using a device key, where the device key may be a device key of the target device (for example, a public key of the target device) or may be another agreed device key, which is not limited in this embodiment.
The packaged binding request is the target binding request, and the target binding request can be forwarded to the internet of things platform through the target terminal by the bluetooth proxy. For example, the target device may first forward the target binding request to the target terminal via the bluetooth proxy. After receiving the target binding request, the target terminal can forward the target binding request to the Internet of things platform through a mobile communication network and the like.
Through this embodiment, carry out the retransmission of binding the request through bluetooth agency, can also carry the binding code in binding the request, can improve the success rate that equipment was bound, improve information transmission's security.
In an exemplary embodiment, after forwarding the target binding request to the internet of things platform, the method further includes:
s41, receiving a first response message returned by the Internet of things platform in response to the target binding request, wherein the first response message is used for indicating the binding result of the target device and the target object;
s42, forwarding the first reply message to the target device.
After receiving the target binding request, the internet of things platform may execute a binding operation between the target device and the target object, and send a binding result to the target device through a first response message, where the first response message is used to indicate the binding result between the target device and the target object. Optionally, the first reply message may also carry a Localkey (local key), where the Localkey is a control key generated for the target device, and is used for controlling the local area network, for example, when performing router configuration for the target device, the Localkey is used to establish a secure connection between the target terminal and the target device. After receiving the first reply message, the target terminal may forward it to the target device.
After receiving the first response message, the target device may determine a binding result between the target device and the target object, and perform some operations based on the binding result, for example, the first response message may carry the binding code, and the target device may perform verification based on the binding code, or for example, the target device may store the binding result between the target device and the target object. Optionally, the target device may further send a target binding result to the target terminal (this step is an optional step), where the target binding result is a binding result between the target device and the target object. The target terminal can receive the target binding result, so that the binding result of the target device and the target object is obtained.
According to the embodiment, the binding request and the binding request response are forwarded between the device to be bound and the Internet of things platform through the terminal, so that the device to be bound can conveniently acquire the binding result.
In an exemplary embodiment, after detecting the target device to be networked, the method further includes:
and S51, sending target configuration information to the target device under the condition that the target terminal is connected to the target router, wherein the target configuration information includes router information of the target router and target object information of the target object, and the target configuration information is used for binding the target device and the target object on the platform of the Internet of things by the target device being connected with the target router.
If the target terminal is connected to the target router, the target terminal may send target configuration information to the target device, where the target configuration information may include router information of the target router and target object information of the target object.
After receiving the target configuration information, the target device may connect to the target router based on the router information of the target router therein. Through the target router, the target device can be connected to the platform of the internet of things and initiates a binding request (which can carry device information of the target device and target object information of the target object). After receiving the binding request, the internet of things platform can execute the binding of the target device and the target object and return a binding result to the target device.
According to the embodiment, the routing information and the object information to be bound are sent to the equipment to be accessed, so that the equipment binding efficiency can be improved, and the compatibility of the equipment binding mode can be improved.
In an exemplary embodiment, after detecting the target device to be networked, the method further includes:
s61, sending a target query request to the Internet of things platform, wherein the target query request is used for requesting to query the binding result of the target device and the target object;
and S62, receiving a second response message returned by the Internet of things platform in response to the target query request, wherein the second response message is used for indicating the binding result of the target device and the target object.
No matter which binding is adopted to activate the target device, in order to obtain the binding result of the target device and the target object, the target terminal can send a target query request to the internet of things platform, wherein the target query request can carry device information of the target device and target object information of the target object and is used for requesting to query the binding result of the target device and the target object.
After receiving the target query request, the internet of things platform may match the device information of the target device with the device information bound to the target object to obtain a binding result of the target device and the target object, and send the binding result of the target device and the target object to the target terminal through the second response message. The target terminal may receive the second response message, so that the binding result of the target device and the target object may be determined.
According to the embodiment, the terminal inquires the binding result of the equipment and the object from the Internet of things platform in a request-response mode, and convenience and accuracy of information acquisition can be improved.
The following explains a binding method of internet of things devices in the embodiment of the present application with reference to an optional example. In this example, the target terminal is a mobile phone, and the target client is an application App running on the mobile phone.
The method for binding the internet of things equipment in the embodiment is an improved equipment binding experience scheme, and the equipment is bound by selecting a corresponding process according to whether the current WiFi is started and whether routing connection exists or not by judging the current WiFi through a mobile phone. As shown in fig. 3, the flow of the method for binding the internet of things device in this optional example may include the following steps:
step 1, when a Device (to-be-networked Device) is started, configuration is carried out, and the configuration is not quitted;
step 2, sending the equipment information to the SDK of the mobile phone through a SoftAp hotspot or BLE broadcast;
step 3, the SDK informs the App to find the equipment to be accessed to the network (namely, the target equipment to be accessed to the network);
step 4, based on the operation of the user, the App determines that the user selects to bind the equipment;
step 5, if the WiFi of the current mobile phone is started, judging whether a router is connected, if so, executing step 6, otherwise, executing step 14;
step 6, the App requests the SDK to configure binding equipment;
step 7, carrying out SoftAp/BLE configuration interaction between the SDK and the SDL/module;
step 8, SDL/module connection routing;
step 9, connecting the SDL/module with the platform and initiating binding;
step 10, returning an SDL/module binding result to the IOT cloud (platform);
step 11, the SDK queries a binding result from the IOT cloud;
step 12, returning a binding result to the SDK by the IOT cloud;
step 13, the SDK returns a binding success to the App;
step 14, the App requests the SDK to bind and then to allocate;
step 15, the SDK sends a binding request through BLE;
step 16, the SDL/module binds the package request, where the package request carries the device information, the user information, and the bind code, and the carried information can be encrypted by using the device key;
step 17, the SDL/module forwards the request through the Bluetooth proxy;
step 18, the SDK forwards the binding request of the equipment to the platform;
the IOT cloud returns a binding request reply and Localkey (local key, which is encrypted using the device key) to the SDK, step 19.
Step 20, the SDK forwards a binding request response to the SDL/module;
step 21, the SDL/module returns the binding result to the SDK;
step 22, the SDK queries the binding result from the IOT cloud;
step 23, returning the binding result to the SDK by the IOT cloud;
and 24, returning the binding success to the App by the SDK.
By the optional example, the cost of the user for activating the network device can be reduced, and the experience of the user for activating the network device is improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
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 application may be embodied in the form of a software product, which is stored in a storage medium (e.g., a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, an optical disk) and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the methods according to the embodiments of the present application.
According to another aspect of the embodiment of the application, a binding device of the internet of things equipment is further provided for implementing the binding method of the internet of things equipment. Fig. 4 is a block diagram of a structure of an optional binding apparatus for an internet of things device according to an embodiment of the present application, and as shown in fig. 4, the binding apparatus for an internet of things device may include:
a detecting unit 402, configured to detect a target device to be networked, where the target device is an internet of things device;
a first receiving unit 404, connected to the detecting unit 402, configured to receive, through a target bluetooth module of a target terminal, a target binding request sent by the target device when the target terminal is not connected to a router, where the target binding request is used to request to bind the target device and a target object corresponding to the target terminal;
the first forwarding unit 406 is connected to the first receiving unit 404, and configured to forward the target binding request to the internet of things platform, so as to bind the target device and the target object on the internet of things platform.
Optionally, the detecting unit 402 in this embodiment may be configured to execute the step S202, the first receiving unit 404 in this embodiment may be configured to execute the step S204, and the first forwarding unit 406 in this embodiment may be configured to execute the step S206.
Through the module, target equipment to be networked is detected, wherein the target equipment is Internet of things equipment; under the condition that the target terminal is not connected to the router, receiving a target binding request sent by target equipment through a target Bluetooth module of the target terminal, wherein the target binding request is used for requesting to bind the target equipment and a target object corresponding to the target terminal; the target binding request is forwarded to the Internet of things platform so as to bind the target equipment and the target object on the Internet of things platform, the problems of poor applicability and low binding success rate caused by the participation of a router in the binding mode of the Internet of things equipment in the related technology are solved, the equipment binding applicability is improved, and the equipment binding success rate is improved.
In an exemplary embodiment, the detection unit 402 includes:
the first receiving module is used for receiving target identification information broadcasted by the target device through a wireless hotspot of the target device or a Bluetooth module of the target device, wherein the target identification information is used for identifying the target device as a device to be accessed to the network.
In an exemplary embodiment, the apparatus further includes:
the first determining unit is used for determining that the target terminal is connected to the router under the conditions that a wireless fidelity (WiFi) module of the target terminal is started and the target terminal has route connection after the target device to be accessed to the network is detected;
and the second determining unit is used for determining that the target terminal is not connected to the router under the condition that the WiFi module on the target terminal is started but no routing connection exists on the target terminal.
In an exemplary embodiment, the first receiving unit 404 includes:
the device comprises a sending module, a target Bluetooth module and a binding module, wherein the sending module is used for sending an initial binding request to target equipment through the target Bluetooth module, and the initial binding request carries target object information of a target object;
the receiving module is used for receiving a target binding request sent by target equipment through the target Bluetooth module, wherein the target binding request carries equipment information of the target equipment, target object information and a binding code for binding the target object and the target equipment.
In an exemplary embodiment, the apparatus further includes:
the second receiving unit is used for receiving a first response message returned by the Internet of things platform in response to the target binding request after the target binding request is forwarded to the Internet of things platform, wherein the first response message is used for indicating the binding result of the target device and the target object;
and the second forwarding unit is used for forwarding the first response message to the target equipment.
In an exemplary embodiment, the apparatus further includes:
the first sending unit is used for sending target configuration information to the target equipment under the condition that the target terminal is connected to the target router after the target equipment to be networked is detected, wherein the target configuration information comprises router information of the target router and target object information of the target object, and the target configuration information is used for binding the target equipment and the target object on the platform of the internet of things by connecting the target equipment with the target router.
In an exemplary embodiment, the apparatus further includes:
the second sending unit is used for sending a target query request to the Internet of things platform after target equipment to be accessed to the network is detected, wherein the target query request is used for requesting to query a binding result of the target equipment and a target object;
and the third receiving unit is used for receiving a second response message returned by the internet of things platform in response to the target query request, wherein the second response message is used for indicating the binding result of the target device and the target object.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to still another aspect of an embodiment of the present application, there is also provided a storage medium. Optionally, in this embodiment, the storage medium may be configured to execute a program code of the method for binding an internet of things device in this embodiment of the present application.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, detecting target equipment to be accessed to the network, wherein the target equipment is Internet of things equipment;
s2, under the condition that the target terminal is not connected to the router, receiving a target binding request sent by the target device through a target Bluetooth module of the target terminal, wherein the target binding request is used for requesting to bind the target device and a target object corresponding to the target terminal;
and S3, forwarding the target binding request to the Internet of things platform so as to bind the target device and the target object on the Internet of things platform.
Optionally, the specific example in this embodiment may refer to the example described in the above embodiment, which is not described again in this embodiment.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, a ROM, a RAM, a removable hard disk, a magnetic disk, or an optical disk.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus for implementing the method for binding an internet of things device, where the electronic apparatus may be a server, a terminal, or a combination thereof.
Fig. 5 is a block diagram of an alternative electronic device according to an embodiment of the present application, as shown in fig. 5, including a processor 502, a communication interface 504, a memory 506, and a communication bus 508, wherein the processor 502, the communication interface 504, and the memory 506 are communicated with each other via the communication bus 508, and wherein,
a memory 506 for storing a computer program;
the processor 502, when executing the computer program stored in the memory 506, implements the following steps:
s1, detecting target equipment to be accessed to the network, wherein the target equipment is Internet of things equipment;
s2, under the condition that the target terminal is not connected to the router, receiving a target binding request sent by the target device through a target Bluetooth module of the target terminal, wherein the target binding request is used for requesting to bind the target device and a target object corresponding to the target terminal;
and S3, forwarding the target binding request to the Internet of things platform so as to bind the target device and the target object on the Internet of things platform.
Alternatively, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus. The communication interface is used for communication between the electronic device and other equipment.
The memory may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
As an example, the memory 506 may include, but is not limited to, the detecting unit 402, the first receiving unit 404, and the first forwarding unit 406 in the binding apparatus of the internet of things device. In addition, the binding apparatus may further include, but is not limited to, other module units in the binding apparatus of the internet of things device, which is not described in this example again.
The processor may be a general-purpose processor, and may include but is not limited to: a CPU (Central Processing Unit), an NP (Network Processor), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 5 is only an illustration, and the device implementing the method for binding the Internet of things device may be a terminal device, and the terminal device may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 5 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 5, or have a different configuration than shown in FIG. 5.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, and may also be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for binding Internet of things equipment is characterized by comprising the following steps:
detecting target equipment to be accessed to a network, wherein the target equipment is Internet of things equipment;
under the condition that a target terminal is not connected to a router, receiving a target binding request sent by target equipment through a target Bluetooth module of the target terminal, wherein the target binding request is used for requesting to bind the target equipment and a target object corresponding to the target terminal;
and forwarding the target binding request to an Internet of things platform so as to bind the target equipment and the target object on the Internet of things platform.
2. The method of claim 1, wherein detecting the target device to be networked comprises:
and receiving target identification information broadcasted by the target equipment through a wireless hotspot of the target equipment or a Bluetooth module of the target equipment, wherein the target identification information is used for identifying the target equipment as equipment to be accessed to the network.
3. The method of claim 1, wherein after detecting the target device to be networked, the method further comprises:
determining that the target terminal is connected to a router under the conditions that a wireless fidelity (WiFi) module of the target terminal is started and routing connection exists on the target terminal;
and under the condition that the WiFi module on the target terminal is started but no routing connection exists on the target terminal, determining that the target terminal is not connected to a router.
4. The method of claim 1, wherein receiving the target binding request sent by the target device via the target Bluetooth module of the target terminal comprises:
sending an initial binding request to the target equipment through the target Bluetooth module, wherein the initial binding request carries target object information of the target object;
and receiving the target binding request sent by the target device through the target Bluetooth module, wherein the target binding request carries device information of the target device, the target object information and a binding code for binding the target object and the target device.
5. The method of claim 1, wherein after forwarding the target binding request to the internet of things platform, the method further comprises:
receiving a first response message returned by the Internet of things platform in response to the target binding request, wherein the first response message is used for indicating a binding result of the target device and the target object;
forwarding the first reply message to the target device.
6. The method of claim 1, wherein after detecting the target device to be networked, the method further comprises:
and sending target configuration information to the target device under the condition that the target terminal is connected to a target router, wherein the target configuration information comprises router information of the target router and target object information of the target object, and the target configuration information is used for binding the target device and the target object on the platform of the internet of things by connecting the target device with the target router.
7. The method according to any one of claims 1 to 6, wherein after detecting the target device to be networked, the method further comprises:
sending a target query request to the Internet of things platform, wherein the target query request is used for requesting to query a binding result of the target device and the target object;
and receiving a second response message returned by the Internet of things platform in response to the target query request, wherein the second response message is used for indicating a binding result of the target device and the target object.
8. The utility model provides a binding apparatus of thing networking device which characterized in that includes:
the system comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for detecting target equipment to be networked, and the target equipment is Internet of things equipment;
a first receiving unit, configured to receive, through a target bluetooth module of a target terminal, a target binding request sent by the target device when the target terminal is not connected to a router, where the target binding request is used to request to bind the target device and a target object corresponding to the target terminal;
and the first forwarding unit is used for forwarding the target binding request to an internet of things platform so as to bind the target device and the target object on the internet of things platform.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202110770586.XA 2021-07-07 2021-07-07 Internet of things equipment binding method and device, storage medium and electronic device Pending CN113596783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110770586.XA CN113596783A (en) 2021-07-07 2021-07-07 Internet of things equipment binding method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110770586.XA CN113596783A (en) 2021-07-07 2021-07-07 Internet of things equipment binding method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113596783A true CN113596783A (en) 2021-11-02

Family

ID=78246429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110770586.XA Pending CN113596783A (en) 2021-07-07 2021-07-07 Internet of things equipment binding method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113596783A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114221930A (en) * 2021-12-14 2022-03-22 深圳小湃科技有限公司 Internet of things equipment binding method, mobile terminal, cloud and storage medium
CN115484115A (en) * 2022-08-30 2022-12-16 海尔优家智能科技(北京)有限公司 Binding method and device, storage medium and electronic device
WO2024011916A1 (en) * 2022-07-15 2024-01-18 佛山市顺德区美的电子科技有限公司 Control method and apparatus, device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039739A (en) * 2020-08-31 2020-12-04 海信(山东)空调有限公司 Method for controlling binding of household appliance distribution network and household appliance
CN112130461A (en) * 2020-09-24 2020-12-25 珠海格力电器股份有限公司 Smart home control method and device, storage medium and electronic device
CN112533206A (en) * 2020-12-04 2021-03-19 北京金史密斯科技有限公司 Network distribution method and device, storage medium and electronic equipment
CN112637245A (en) * 2021-01-13 2021-04-09 广州技象科技有限公司 Internet of things equipment binding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039739A (en) * 2020-08-31 2020-12-04 海信(山东)空调有限公司 Method for controlling binding of household appliance distribution network and household appliance
CN112130461A (en) * 2020-09-24 2020-12-25 珠海格力电器股份有限公司 Smart home control method and device, storage medium and electronic device
CN112533206A (en) * 2020-12-04 2021-03-19 北京金史密斯科技有限公司 Network distribution method and device, storage medium and electronic equipment
CN112637245A (en) * 2021-01-13 2021-04-09 广州技象科技有限公司 Internet of things equipment binding method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114221930A (en) * 2021-12-14 2022-03-22 深圳小湃科技有限公司 Internet of things equipment binding method, mobile terminal, cloud and storage medium
WO2024011916A1 (en) * 2022-07-15 2024-01-18 佛山市顺德区美的电子科技有限公司 Control method and apparatus, device, and storage medium
CN115484115A (en) * 2022-08-30 2022-12-16 海尔优家智能科技(北京)有限公司 Binding method and device, storage medium and electronic device
CN115484115B (en) * 2022-08-30 2024-01-26 海尔优家智能科技(北京)有限公司 Binding method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN113596783A (en) Internet of things equipment binding method and device, storage medium and electronic device
CN110830575B (en) Data transmission method and control system of intelligent household equipment and intelligent gateway equipment
CN103339901B (en) Terminal in content guiding network environment and the communication means of intermediate node and terminal and intermediate node
CN110072236B (en) Device connection method, device and system
US10645001B2 (en) Information transmission method and apparatus, device and storage medium
CN110740490A (en) Terminal network access method, gateway equipment, system, storage medium and device
CN104618312A (en) Remote registration method, device and system for M2M (Machine-to-Machine) application
CN104093064A (en) Method, system and device used for video interaction between terminal devices
CN104780183A (en) Information sharing method, device and electronic device
CN109561054B (en) Data transmission method, controller and access device
CN111683371B (en) Intelligent household appliance network distribution method, intelligent household appliance, mobile terminal and medium
CN112130461A (en) Smart home control method and device, storage medium and electronic device
CN111741509A (en) Network distribution method and device, storage medium and processor
CN112689316B (en) Binding method and device of intelligent equipment, storage medium and electronic device
WO2018206097A1 (en) Initial network connectivity for a terminal device
CN108093390B (en) Intelligent device discovery method based on characteristic information
CN107666664B (en) Method, device, equipment and storage medium for machine-card binding
CN113572669A (en) Scene processing method and device, intelligent gateway and processor
CN113596792B (en) Binding method and device of electronic equipment, storage medium and electronic device
CN114143251B (en) Intelligent routing method, intelligent routing device, electronic equipment and computer readable storage medium
CN107959702B (en) Routing method and device
CN103298148A (en) Method for connecting mobile terminal to multiple PDNs (public data networks) through fixed network and related device
CN105511275A (en) Method and device for controlling intelligent electric appliance
CN113596089A (en) Distribution network binding method and device of equipment, storage medium and electronic device
CN106331163B (en) Method and device for controlling service platform

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