CN111490916A - Method, system, device and medium for binding ZigBee sub-devices of ZigBee - Google Patents

Method, system, device and medium for binding ZigBee sub-devices of ZigBee Download PDF

Info

Publication number
CN111490916A
CN111490916A CN202010296700.5A CN202010296700A CN111490916A CN 111490916 A CN111490916 A CN 111490916A CN 202010296700 A CN202010296700 A CN 202010296700A CN 111490916 A CN111490916 A CN 111490916A
Authority
CN
China
Prior art keywords
binding
equipment
zigbee
client
switch
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.)
Granted
Application number
CN202010296700.5A
Other languages
Chinese (zh)
Other versions
CN111490916B (en
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.)
Guangdong Muguang Intelligent Lighting Co ltd
Original Assignee
Bull Group 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 Bull Group Co Ltd filed Critical Bull Group Co Ltd
Priority to CN202010296700.5A priority Critical patent/CN111490916B/en
Publication of CN111490916A publication Critical patent/CN111490916A/en
Application granted granted Critical
Publication of CN111490916B publication Critical patent/CN111490916B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2836Protocol conversion between an external network and a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L2012/284Home automation networks characterised by the type of medium used
    • H04L2012/2841Wireless

Abstract

The application relates to a method, a system, a device and a medium for binding Zigbee and ZigBee sub-equipment, and relates to the field of smart home. The method comprises the following steps: establishing a communication network connection with a client; establishing ZigBee connection with ZigBee sub-equipment; in response to receiving the first binding request and the second binding request within a preset time interval, binding the switching device with at least one piece of smart home equipment; the device binding information is sent to the client over the communication network connection. The gateway device is connected with the client side through a communication network, and the gateway device stores the binding relationship between the switch device and the intelligent household device in the client side according to the received first binding request and the second binding request, so that the client side can directly receive the binding relationship between the switch device and the intelligent household device and perform corresponding configuration and control, and the convenience degree of establishing the binding relationship of the ZigBee sub-device is improved.

Description

Method, system, device and medium for binding ZigBee sub-devices of ZigBee
Technical Field
The application relates to the field of smart home, in particular to a method, a system, a device and a medium for binding ZigBee sub-devices of ZigBee.
Background
The intelligent home technology is embodied in an internet of things mode under the influence of the internet, indoor ZigBee sub-devices are connected together through the internet of things technology, and centralized control is conducted on the ZigBee sub-devices through a central control platform.
In the related technology, in the smart home system, a gateway device is accessed to a mobile phone client through a Wireless Fidelity (Wi-Fi) network, a ZigBee sub-device is accessed to the gateway device, and a control item for controlling the ZigBee sub-device is added to the mobile phone client. The binding relation is set by triggering the binding control in the client, and the switch device in the ZigBee sub-device is bound with the intelligent home device, so that the intelligent home device is controlled in a unified mode.
However, in the related art, it is necessary to set configuration items for the smart home devices in the client, establish a binding relationship between the smart home devices according to the configuration items, and send the binding relationship to the gateway device, so as to implement the binding between the switching device and the smart home devices, and the process of establishing the binding relationship is complicated.
Disclosure of Invention
The application relates to a method, a system, a device and a medium for binding ZigBee sub-devices of ZigBee, which can improve the control efficiency of controlling the ZigBee sub-devices through a client. The technical scheme is as follows:
on one hand, a method for binding ZigBee sub-devices of ZigBee is provided, and the method includes:
establishing a communication network connection with a client;
establishing ZigBee connection with ZigBee sub-equipment, wherein the ZigBee sub-equipment comprises at least one switch device and at least one intelligent home equipment;
in response to receiving a first binding request and a second binding request within a preset time interval, binding the switch equipment with at least one piece of intelligent home equipment, wherein the first binding request is sent by the switch equipment through ZigBee connection, and the second binding request is sent by the intelligent home equipment through ZigBee connection;
and sending equipment binding information to the client through communication network connection, wherein the equipment binding information comprises a binding relation between the switching equipment and at least one piece of intelligent household equipment, and the binding relation is used for realizing unified control on the at least one piece of intelligent household equipment bound with the switching equipment.
On the other hand, a binding system of ZigBee sub-device of ZigBee is provided, the system includes client, gateway device and ZigBee sub-device, and the ZigBee sub-device includes at least one switching device and at least one intelligent house equipment, has established communication network connection between gateway device and the client, has established the ZigBee between gateway device and the ZigBee sub-device and is connected:
the switch device is used for sending a first binding request to the gateway device through ZigBee connection;
the intelligent home equipment is used for sending a second binding request to the gateway equipment through ZigBee connection;
the gateway equipment is used for responding to the first binding request and the second binding request received in a preset time interval and binding the switch equipment with at least one piece of intelligent household equipment; sending equipment binding information to a client through communication network connection, wherein the equipment binding information comprises a binding relationship between switching equipment and at least one piece of intelligent household equipment;
the client is also used for receiving the equipment binding information sent by the gateway equipment through the communication network connection; and storing the binding relationship between the switching equipment and the at least one piece of intelligent household equipment according to the equipment binding information, wherein the binding relationship is used for realizing unified control on the at least one piece of intelligent household equipment bound with the switching equipment.
In another aspect, a binding apparatus for ZigBee sub-devices is provided, the apparatus including:
the establishing module is used for establishing communication network connection with the client;
the establishing module is also used for establishing ZigBee connection with ZigBee sub-equipment, and the ZigBee sub-equipment comprises at least one switch device and at least one intelligent household equipment;
the intelligent home control system comprises a binding module, a control module and a control module, wherein the binding module is used for binding the switch equipment and at least one piece of intelligent home equipment in response to receiving a first binding request and a second binding request within a preset time interval, the first binding request is sent by the switch equipment through ZigBee connection, and the second binding request is sent by the intelligent home equipment through ZigBee connection;
the sending module is used for sending equipment binding information to the client through communication network connection, the equipment binding information comprises a binding relation between the switch equipment and at least one piece of intelligent household equipment, and the binding relation is used for realizing unified control on the at least one piece of intelligent household equipment bound with the switch equipment.
In another aspect, a computer device is provided, which includes a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for binding ZigBee sub-devices as provided in the embodiments of the present application.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement any of the above-mentioned binding methods for ZigBee sub-devices.
In another aspect, a computer program product is provided, which when run on a computer, causes the computer to execute the method for binding ZigBee sub-devices as described in any one of the embodiments of the present application.
The beneficial effect that technical scheme that this application provided brought includes at least:
the gateway device is connected with the client side through a communication network, the gateway device sends device binding information to the client side according to the received first binding request and the second binding request, and the binding relation between the switch device and the intelligent household device is stored in the client side, so that the client side can directly receive the binding relation between the switch device and the intelligent household device and carry out corresponding configuration and control, the complex process that the ZigBee sub-device is required to be configured at first in the client side and then the binding relation is established through control operation is avoided, and the convenience degree of establishing the ZigBee sub-device binding relation is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 illustrates a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
fig. 2 shows a flowchart of a method for binding ZigBee sub-devices of ZigBee according to an exemplary embodiment of the present application;
fig. 3 is a schematic diagram illustrating a network distribution process of a gateway device provided based on the embodiment illustrated in fig. 2;
fig. 4 is a schematic diagram illustrating binding of smart home devices and switching devices through a gateway device according to an exemplary embodiment of the present application;
fig. 5 shows a flowchart of a method for binding ZigBee sub-devices of ZigBee according to an exemplary embodiment of the present application;
FIG. 6 is a diagram illustrating a distribution network interface provided by an exemplary embodiment of the present application;
FIG. 7 illustrates a schematic diagram of a device control interface provided by an exemplary embodiment of the present application;
fig. 8 shows a flowchart of a binding method for ZigBee sub-devices of ZigBee according to an exemplary embodiment of the present application;
FIG. 9 shows a schematic diagram of a ZigBee sub-device configuration interface provided by an exemplary embodiment of the present application;
fig. 10 shows a flowchart of a client controlling a ZigBee sub-device through a gateway device according to an exemplary embodiment of the present application;
FIG. 11 illustrates a schematic diagram of a device control interface provided by an exemplary embodiment of the present application;
fig. 12 is a process diagram illustrating a binding method of a ZigBee sub-device of the ZigBee provided in an exemplary embodiment of the present application;
fig. 13 is a block diagram illustrating a structure of a binding apparatus of a ZigBee sub-device of ZigBee according to an exemplary embodiment of the present application;
fig. 14 illustrates a schematic structural diagram of a terminal according to an exemplary embodiment of the present application;
fig. 15 shows a schematic structural diagram of a gateway device according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, the terms referred to in the embodiments of the present application will be briefly described:
a gateway device: also known as an internetwork connector or protocol converter, is a computer system or device that provides data conversion services between multiple network devices. The gateway device can provide data transmission service and security protection in the data transmission process, wherein the data transmission service refers to a function of the gateway device for converting and transmitting data between different network devices through a protocol and a data format. In one example, the gateway device may be implemented as a central control hardware device in an intelligent home system, or the gateway device may be implemented as a central control module in a piece of intelligent home equipment, such as: control module in the intelligent audio amplifier. Optionally, the gateway device is configured with a ZigBee network protocol interface and a Wi-Fi module.
Optionally, in the embodiment of the present application, the gateway device serves as an Access Point (AP), that is, a creator of a wireless network, and receives an Access of a wireless Access Station (STA), where the client serves as a wireless network for which the STA accesses the gateway device; the gateway equipment is connected with the ZigBee sub-equipment through a ZigBee network, and is communicated with the ZigBee sub-equipment based on ZigBee protocol specifications.
ZigBee sub-equipment: the intelligent home network system is a device which is connected with a gateway device through a ZigBee network and is controlled by a client side in an intelligent home scene. Optionally, the ZigBee sub-devices include, but are not limited to, a smart switch, a smart light, a smart computer device, a smart curtain, a smart alarm device, and the like. The ZigBee sub-equipment is not only hardware equipment with a practical function, but also can realize remote control through software support, data interaction and cloud interaction. Such as: taking the example that the ZigBee sub-device is implemented as the intelligent curtain, the intelligent curtain can receive the control instruction sent by the client through the gateway device and open or close according to the control instruction.
Wireless access point: the AP is a device commonly used for building a small lan, and serves as a hub for connecting wireless clients.
Optionally, the computer device that can become an AP includes a terminal device having a communication function, and by turning on an AP mode of the terminal device, the terminal device can be implemented as an AP and has a function of managing an STA accessing a wireless network provided by the terminal device. Optionally, the STA connects to the AP by receiving a wireless network signal sent by the AP.
First, an implementation environment related to the embodiment of the present application is described, and as shown in fig. 1, the implementation environment includes a client 101, a gateway device 102, and a ZigBee sub-device 103.
The client 101 and the gateway device 102 are connected through a communication network, the gateway device 102 and the ZigBee sub-device 103 are connected through a ZigBee network, the gateway device 102 performs communication instruction interaction between the client 101 and the ZigBee sub-device 103, and the ZigBee sub-device comprises a switch device 104 and an intelligent home device 105, which are established in a binding relationship.
First, a communication network connection between the client 101 and the gateway device 102 (i.e., the gateway device) will be described 102 distribution network process):
optionally, after receiving the pressing operation of the distribution network key, the gateway device 102 starts a distribution network mode, broadcasts a distribution network signal, and the client 101 displays a distribution network interface and starts a communication network connection function; after scanning the distribution network signal broadcast by the gateway device 102, the client 101 establishes a communication network connection with the gateway device 102. In one example, the gateway apparatus 102 is taken as an AP, and a terminal corresponding to the client 101 is taken as an STA. After receiving the pressing operation of the distribution network key, the gateway device 102 starts an AP mode and broadcasts a wireless signal, and the client 101 displays a distribution network interface and starts a wireless network connection function; after scanning the wireless signal broadcast by the gateway device 102, the client 101 establishes a wireless network connection with the gateway device 102.
Second, a ZigBee connection between the gateway device 102 and the ZigBee sub-device 103 is explained (i.e., a ZigBee connection is explained) Network distribution process of ZigBee sub-device 103):
the gateway device 102 starts the ZigBee network, the ZigBee sub-device 103 scans the gateway device 102 after receiving the press of the distribution network key, and when the ZigBee sub-device 103 scans the ZigBee network signal of the gateway device 102, ZigBee connection is established between the ZigBee sub-device and the gateway device 102. Optionally, the ZigBee sub-device 103 establishing a connection relationship with the gateway device 102 may be in the form of a switch device 104 and a smart home device 105 establishing a binding relationship.
After communication connection is established among the client, the gateway equipment and the ZigBee sub-equipment, at least one of the following communication instruction interaction types is included:
1. binding the ZigBee sub-devices: the ZigBee sub-equipment comprises switch equipment and intelligent home equipment, and the switch equipment and the intelligent home equipment are bound in the gateway equipment and the client side, so that unified control is realized on at least one intelligent home equipment bound with the switch equipment.
2. Configuring a ZigBee sub-device in a client: the method refers to adding ZigBee sub-equipment which establishes ZigBee connection with gateway equipment into a client side, wherein the ZigBee sub-equipment is controlled by the client side.
Optionally, any one of the following cases is included between the binding process and the configuration process:
2.1 in the process of binding the ZigBee sub-devices, setting configuration items in the client side for the ZigBee sub-devices with the established binding relationship, namely synchronously realizing the addition of the configuration items corresponding to the ZigBee sub-devices in the client side and the establishment of the binding relationship in a binding mode;
2.2 before the binding relation is established for the ZigBee sub-devices, a configuration item needs to be added in the client side at first, and the binding relation is established for the ZigBee sub-devices based on the configuration item.
3. Controlling the ZigBee sub-equipment through the client: the method comprises the steps that after a client receives control operation on ZigBee sub-equipment, a control instruction is sent to gateway equipment through communication network connection, after the gateway equipment performs format conversion on the control instruction, the control instruction after the format conversion is sent to the ZigBee sub-equipment through ZigBee connection, and therefore the ZigBee sub-equipment is controlled.
The three communication instruction interaction types are described by the following embodiments.
First, a case where ZigBee child devices are bound will be explained. Fig. 2 shows a flowchart of a method for binding ZigBee sub-devices of ZigBee according to an exemplary embodiment of the present application, which is described by taking as an example that the method is applied to a gateway device, and as shown in fig. 2, the method includes:
step 201, establishing a communication network connection with a client.
The gateway device is connected with the client through a communication network, so that data interaction and transmission of control commands can be carried out between the gateway device and the client.
Optionally, the communication network connection between the gateway device and the client includes, but is not limited to, at least one of a bluetooth network connection, a cellular network connection, and a wireless network connection. In this embodiment, a wireless network connection in which a gateway device is used as an AP and a client is used as an STA is established between the AP and the client.
In one example, the gateway device turns on AP mode. The gateway device is implemented as an AP in the wireless network and performs broadcasting of the wireless signal, that is, the gateway device is implemented as a central node of the wireless network as a creator of the wireless network.
Alternatively, the client may be implemented as an application program including an intelligent home control function, such as an intelligent home control program and an intelligent home shopping program.
Optionally, the gateway device first receives a distribution network control signal triggered by a distribution network control operation, such as: and receiving a pressing operation on a distribution network key to generate a distribution network control signal, and starting an AP mode according to the distribution network control signal to broadcast a wireless signal. The distribution network key can be realized as a physical key on the gateway device, and can also be realized as a virtual control displayed in a display screen of the gateway device.
And responding to the condition that the client is positioned in the wireless signal broadcasting range of the gateway equipment, and the client receives the wireless signal broadcasted by the gateway equipment and establishes wireless network connection with the gateway equipment. Optionally, the client establishes a wireless network connection with the gateway device in a wireless station STA mode through a wireless signal.
Optionally, when establishing a wireless network connection with a client, the gateway device first broadcasts a Service Set Identifier (SSID), so that a computer device that is turned on within a broadcast signal range can scan the SSID broadcasted by the gateway device, where the client is within the broadcast signal range of the gateway device, and when receiving the SSID broadcasted by the gateway device, the client establishes a wireless network connection with the gateway device.
Optionally, the gateway device first receives a distribution network control operation, such as: after the pressing operation on the distribution network key is received, the wireless network connection with the client is established, and the encrypted feedback information is generated for feedback.
Optionally, the gateway device broadcasts the SSID after receiving the distribution network control operation, establishes a TCP Socket communication connection with the client when the client receives the SSID broadcasted by the gateway device, and establishes a wireless network connection between the gateway device and the client in response to successful distribution network verification between the client and the gateway device. Schematically, referring to fig. 3, a client 301 scans a wireless signal broadcast by a gateway device 302, a distribution network key 303 is arranged on the gateway device 302, and when the distribution network key 303 on the gateway device 302 is pressed, a distribution network control signal is generated and the wireless signal is broadcast according to the distribution network control signal, so that the client 301 can scan the wireless signal broadcast by the gateway device 302, establish a TCP Socket communication connection with the gateway device 302, and perform distribution network verification according to the TCP Socket communication connection, thereby implementing a wireless network connection between the gateway device and the client.
202, establishing ZigBee connection with ZigBee sub-equipment, wherein the ZigBee sub-equipment comprises at least one switch device and at least one intelligent home equipment.
Optionally, a ZigBee network interface is configured in the gateway device. In one example, after establishing communication network connection with a client, the gateway device automatically starts a ZigBee network and detects ZigBee sub-devices in a signal range; or after the communication network connection with the client is established, the gateway equipment receives a ZigBee network starting instruction sent by the client, starts the ZigBee network according to the ZigBee network starting instruction, and detects ZigBee sub-equipment in a signal range; or the ZigBee network of the gateway equipment is continuously in an open state.
The ZigBee sub-equipment comprises at least one switch device and at least one intelligent home equipment, wherein the switch device is used for controlling the at least one intelligent home equipment.
Optionally, the smart home device may be implemented as at least one of a smart air conditioner, a smart switch, a smart television, an air purifier, a sound box device, a smart lamp, and the like.
Optionally, the switch device is implemented in a product form as an entity control, and in some embodiments, the switch device is implemented in a product form as an intelligent switch with a display screen. Optionally, a user can directly control the start and stop of all the intelligent household equipment electrically connected with the switch equipment through the switch equipment; or the switch device is connected with the intelligent household device through a ZigBee network, and the switch device controls the intelligent household device to start and stop by sending a ZigBee signal to the intelligent household device.
Step 203, in response to receiving the first binding request and the second binding request within a preset time interval, binding the switching device with at least one piece of smart home equipment.
Optionally, the first binding request is sent by the switch device through ZigBee connection, and the second binding request is sent by the smart home device through ZigBee connection.
Optionally, the switching device may be bound to a single smart home device, or may be bound to a plurality of smart home devices.
Optionally, a first binding button is arranged on the switch device, and a second binding button is arranged on the smart home device. The first binding request is a request generated by the switch device according to a received first pressing signal, the first pressing signal is a signal generated by first pressing operation on a first binding key, and the first binding key is a key arranged on the switch device and used for binding the device; the second binding request is a request generated by the intelligent household equipment according to the received second pressing signal, the second pressing signal is a signal generated by second pressing operation on the second binding key, and the second binding key is a key which is arranged on the intelligent household equipment and used for binding equipment. Optionally, the first binding key and the second binding key may be both entity keys arranged on the ZigBee sub-device, or may be virtual keys in a display screen configured on the ZigBee sub-device.
Fig. 4 shows a schematic diagram that the smart home devices and the switch devices are bound through the gateway device according to an exemplary embodiment of the present application. Referring to fig. 4, the gateway device 401 establishes a connection with the switching device 410 and the smart home device 420 through a ZigBee network. The switch device 410 is provided with a first binding button 411, and the smart home device 420 is provided with a second binding button 421. When the switch device 410 receives a first pressing operation on the first binding key 411 and the pressing duration of the first pressing operation reaches a first pressing time threshold, the switch device 410 sends a first binding request to the gateway device 401 through ZigBee connection; when the second pressing operation on the second binding key 421 is received on the smart home device 420, and the pressing duration of the second pressing operation reaches the second pressing time threshold, the smart home device 420 sends a second binding request to the gateway device 401 through the ZigBee connection.
Optionally, when the gateway device receives the first binding request and the second binding request within a preset time interval (that is, a preset time window), it is determined that the switching device and the smart home device are a group of devices that need to establish a binding relationship, and the switching device and the smart home device are bound.
Step 204, sending the device binding information to the client via the communication network connection.
Optionally, the device binding information includes a binding relationship between the switching device and at least one smart home device, and the device binding information is used to instruct the client to store the binding relationship between the switching device and the smart home device. Optionally, the binding relationship is used for implementing unified control on at least one smart home device bound with the switch device. That is, when the client receives a control operation for controlling the switching device, the one or more smart home devices bound with the switching device are controlled in a unified manner according to the control operation.
In summary, in the method provided in this embodiment, a communication network connection is established between a gateway device and a client, and the gateway device sends device binding information to the client according to a received first binding request and a received second binding request, and stores a binding relationship between a switch device and an intelligent home device in the client, so that the client can directly receive the binding relationship between the switch device and the intelligent home device and perform corresponding configuration and control, thereby avoiding a cumbersome process of first configuring a ZigBee sub-device in the client and then establishing the binding relationship through control operation, and improving convenience of establishing the ZigBee sub-device binding relationship.
Fig. 5 shows a flowchart of a method for binding ZigBee sub-devices of ZigBee according to an exemplary embodiment of the present application. The method is applied to a binding system of ZigBee sub-devices for explanation by taking as an example that the method comprises the following steps:
step 501, the gateway device establishes a communication network connection with the client.
Step 502, the client establishes a communication network connection with the gateway device.
In this embodiment, the network environment where the client is located is the network environment where the terminal installed with the corresponding client is located. Optionally, the network environment of the client includes at least one of a Near Field Communication (NFC) network environment, a Wi-Fi network environment, and a cellular mobile data network environment.
Optionally, taking an example of establishing a wireless network connection between the client and the gateway device, a distribution network interface is displayed in the client, and wireless network search is performed in the distribution network interface, so as to receive a wireless signal broadcast by the gateway device, and optionally, the wireless signal is a signal broadcast by the gateway device when the gateway device is in an AP mode. Optionally, the wireless signal broadcast by the gateway device is received when the client is within the broadcast range of the wireless signal of the gateway device. Referring to fig. 6, a network status display area 610 is included in the distribution network interface 600 for displaying the current network status of the client; the distribution network interface 600 further includes a network status switching area 620, which is used for switching the network status of the client. Referring to fig. 6, the network status switching area 620 includes a cellular network status control 621, a Wi-Fi network status control 622, and a bluetooth network status control 623. By the switching trigger operation on the corresponding network state control, the switching of the network state of the client can be realized, and the state is correspondingly displayed in the network state display area 610. Referring to fig. 6, the network status of the client currently is the Wi-Fi network status.
Step 503, the gateway device establishes ZigBee connection with the ZigBee sub-device.
Optionally, the gateway device establishes ZigBee connection between the gateway device and the ZigBee sub device in response to receiving a device addition instruction that instructs the ZigBee sub device to perform ZigBee connection with the ZigBee sub device, the device addition instruction being sent by the client.
Optionally, after establishing the ZigBee connection with the ZigBee sub-device, the gateway device may directly send the device configuration information of the ZigBee sub-device to the client, so as to add a configuration item for controlling the ZigBee sub-device in the client; or after the gateway device establishes the ZigBee connection with the ZigBee sub-device, the gateway device may also receive a binding request sent by the ZigBee sub-device, and after establishing the binding relationship between the ZigBee sub-devices according to the binding request, send device binding information to the client, and add, by the client, a configuration item corresponding to the ZigBee sub-device in the binding relationship according to the device binding information.
Step 504, the gateway device binds the switching device with the at least one smart home device in response to receiving the first binding request and the second binding request within a preset time interval.
Optionally, the switching device may be bound to a single smart home device, or may be bound to a plurality of smart home devices.
Optionally, the switch device is configured to generate a first binding request according to a received first pressing signal, where the first pressing signal is a signal generated by a first pressing operation on a first binding key, and the first binding key is a key set for device binding, where the first binding request includes a device number corresponding to the first pressing operation, and the switch device and at least one smart home device are bound in response to the device number being greater than or equal to a number of second binding requests.
Optionally, the number of devices is a number corresponding to a pressing duration of the first pressing operation. Illustratively, when the time of receiving the first pressing operation exceeds 5 seconds, that is, a first binding request for allowing binding with 1 smart home device is generated, and when the pressing time exceeds 5 seconds, every time a second (rounded) pressing time is increased, that is, one connectable smart home device is increased, for example, when the pressing time is 7.5 seconds, that is, corresponding to 1+ (8-5) ═ 4 smart home devices are connected. Optionally, a display device is configured on the switch device, and the number of connectable smart home devices corresponding to the pressing time can be displayed in the display device.
Alternatively, the number of devices is a number corresponding to the number of pressing times of the first pressing operation. Illustratively, when the received number of times of the first pressing operation is n, it is determined that the switching device is bound with n pieces of smart home devices, and n is a positive integer.
Optionally, the number of devices is a number corresponding to a pressing law of the first pressing operation. Illustratively, when the pressing rule of the received first pressing operation is that the long pressing time with the duration longer than 1s is shorter than the short pressing time with the duration shorter than 0.5s, that is, it is determined that the switch device can be bound with 1 piece of intelligent home equipment, and two groups of short pressing times with the duration longer than 1s are shorter than the short pressing time with the duration shorter than 0.5s, it is determined that the switch device can be bound with 2 pieces of intelligent home equipment, and so on. Optionally, the pressing law may also be implemented as other forms of pressing long and short combinations, which are not limited in the embodiment of the present application.
Alternatively, the number of devices may also be a preset number of switching devices. Illustratively, the switching device is preset to be bound with 3 smart home devices.
Optionally, the smart home devices are devices that can be bound to the switching devices, and at least one smart home device may be bound to one switching device to form a smart home scene. And when receiving a control operation for controlling the switch equipment, sending a control instruction to the intelligent household equipment bound with the switch equipment according to the control operation for unified control.
Step 505, the gateway device sends device binding information to the client over the communication network connection.
In step 506, the client receives the device binding information sent by the gateway device through the communication network connection.
And 507, storing the binding relationship between the switching equipment and at least one piece of intelligent household equipment by the client.
Optionally, the client stores the binding relationship in a terminal storage space, or stores the binding relationship in a cloud storage space corresponding to an account that the client logs in.
Optionally, after receiving the device binding information, the client displays a device control interface, and displays a binding relationship between the switching device and the at least one smart home device in the device control interface.
FIG. 7 illustrates a schematic diagram of a device control interface provided by an exemplary embodiment of the present application. Referring to fig. 7, in this embodiment, the switch device corresponds to 3 smart home devices. The device control interface 700 includes bound switch devices 701, smart home devices 702, smart home devices 703, and smart home devices 704, and binding release controls 705 to 708 corresponding to each device.
Optionally, for the binding relationship between the switch device and the smart home device, the client may also perform unbinding through an unbinding operation, receive a unbinding signal triggered on the unbinding control, where the unbinding signal is used to indicate to unbind the binding relationship between the switch device and the at least one smart home device, and send a unbinding instruction to the gateway device through a communication network connection according to the unbinding signal. The gateway equipment receives a binding removing instruction sent by the client through communication network connection, responds to the binding removing instruction, and removes the binding relation between the switch equipment and the at least one intelligent household equipment.
When the smart home devices and the plurality of switch devices are in a binding relationship, the binding relationship between the smart home devices and all the switch devices can be released, and the binding relationship between the smart home devices and the specified switch devices can also be released.
In summary, according to the method provided by this embodiment, a communication network connection is established between the gateway device and the client, and the gateway device binds the switching device and the smart home device according to the received first binding request and the second binding request, so that a cumbersome process that the ZigBee sub-device needs to be configured first in the client and then the binding relationship is established through control operation is avoided, and the convenience degree of establishing the binding relationship of the ZigBee sub-device is improved.
Second, it is described that ZigBee sub-devices are added to the client, and optionally, before the client controls the binding relationship between different kinds of ZigBee sub-devices, the client instructs the gateway device to add and configure the ZigBee sub-devices. Fig. 8 shows a flowchart of a method for binding ZigBee sub-devices in ZigBee according to an exemplary embodiment of the present application, where the process may alternatively implement steps 501 to 503 shown in fig. 5, which is described by taking as an example that the method is applied in a binding system of ZigBee sub-devices, the method includes:
in step 801, the gateway device starts the AP mode and broadcasts a wireless signal.
Optionally, in this embodiment, an example in which the gateway device and the client are connected through a wireless network is described.
Optionally, a distribution network key is arranged on the gateway device, a distribution network signal is generated in response to the pressing operation of the distribution network key, and a corresponding SSID is generated according to the distribution network signal. The SSID is a service set identifier for uniquely indicating the gateway device, and the gateway device declares the connection mode and the device type of the gateway device by setting the SSID according to a fixed format. In one example, the SSID of the gateway device is "GN 1010100110101001".
Optionally, the gateway device starts a TCP Protocol service after broadcasting the SSID, and performs determination of Internet Protocol data (IP) and a port number. In one example, the gateway device binds the IP to 172.31.254.250 and binds its corresponding port number to 25425.
In step 802, the client receives a wireless signal broadcast by the gateway device.
Optionally, when the client is within the broadcast range of the wireless signal of the gateway device, the client may receive the wireless signal broadcast by the gateway device. When the client selects to receive the SSID matched with the format of the gateway equipment, the client can receive the wireless signal broadcasted by the gateway equipment.
In step 803, the client establishes a wireless network connection with the gateway device in the STA mode through a wireless signal.
Optionally, when performing wireless network connection, the client is first located within a wireless signal broadcast range of the gateway device, and accesses the wireless network created by the gateway device in an STA mode corresponding to the AP mode of the gateway device in response to receiving the wireless signal broadcast by the gateway device.
Optionally, when the client scans the SSID broadcasted by the gateway device, the TCPSocket communication connection with the gateway device is established.
The distribution network verification process includes but is not limited to a mode of verifying the encrypted distribution network information through a public and private key.
In one example, the verification process is as follows:
the gateway device generates a first public-private key pair comprising a first public key and a first private key. The first public key and the first private key are generated by the gateway device through a key exchange algorithm based on an Elliptic Curve Cryptosystem (ECC), and the generated first public key and the first private key conform to a shared key (sharedkey) rule.
After generating the first public-private key pair, the gateway device broadcasts the first public key via a User Datagram Protocol (UDP). The UDP protocol is a transport protocol among the internet protocol suite that supports data transfer without a connection. Under the condition that the gateway device and other computer devices do not establish wireless network connection, the gateway device can broadcast the first public key through a UDP protocol, so that the other computer devices receive the first public key.
After receiving the first public key and the SSID broadcast by the gateway equipment, the client correspondingly stores the first public key and the SSID, and generates a second public and private key pair according to the first public key, wherein the second public and private key pair comprises a second public key and a second private key.
After the second public and private key pair is generated, the client generates a first random number according to a random generation rule, and encrypts the first random number by the client through the first public key and the second private key to generate first random number information. Illustratively, the first random number is a natural number.
When the first random number information is sent by the client and received by the gateway device through the TCP Socket communication connection, the gateway device decrypts the first random number information through the first private key and the second public key to obtain the first random number, generates the second random number according to the random number rule, and encrypts the second random number through the first random number to generate the second random number information.
And when the second random number information is sent by the gateway equipment and is received by the client through TCP Socket communication connection, the client decrypts the second random number information through the first random number to obtain a second random number.
The client and the gateway equipment both generate a session control key according to the first random number and the second random number, and the session control key is used for encrypting and decrypting information sent between the client and the gateway equipment in the subsequent network distribution process. Optionally, the session control key is generated by an exclusive-or algorithm using a first random number and a second random number, and when the first random number and the second random number received and decrypted by the gateway device and the client are the same, the session control keys generated by the gateway device and the client are also the same.
Optionally, the client encrypts the distribution network information through the session control key to obtain encrypted distribution network information, and sends the encrypted distribution network information to the gateway device through TCP Socket communication connection, and after receiving the encrypted distribution network information, the gateway device decrypts the encrypted distribution network information through the session control key, and determines a distribution network verification result. And responding to successful distribution network verification, and establishing wireless network connection between the client and the gateway equipment.
Optionally, after the wireless network connection is established, the connection establishment is determined, and subsequent data and control instruction transmission is performed through the wireless network connection.
And step 804, the client sends a device adding instruction to the gateway device through the wireless network connection.
Step 805, the gateway device receives an access signal sent by the ZigBee sub device through ZigBee connection in response to receiving a device addition instruction sent by the client.
In some embodiments, after establishing wireless network connection with the client, the gateway device starts the ZigBee network, and detects ZigBee sub-devices within a signal range; or after the wireless network connection with the client is established, the gateway equipment receives a ZigBee network starting instruction sent by the client, starts the ZigBee network according to the ZigBee network starting instruction, and detects ZigBee sub-equipment in a signal range; or the ZigBee network of the gateway device is started before the wireless network connection is established, and the ZigBee network detects the ZigBee sub-devices in the signal range after the wireless network connection is established with the client.
In step 806, the gateway device sends the device configuration information to the client via the wireless network connection according to the access signal.
Optionally, the gateway device sends the device configuration information to the client after establishing the ZigBee connection with the ZigBee sub-device. The equipment configuration information comprises equipment identifiers of the ZigBee sub-equipment, and the equipment configuration information is used for adding configuration items for controlling the ZigBee sub-equipment in the client.
In step 807, the client receives device configuration information sent by the gateway device through the wireless network connection, and the device configuration information includes a device identifier of the ZigBee sub-device.
And 808, adding a configuration item for controlling the ZigBee sub-equipment by the client according to the equipment configuration information.
Fig. 9 shows a schematic diagram of a ZigBee sub-device configuration interface provided in an exemplary embodiment of the present application, please refer to fig. 9, where the ZigBee sub-device configuration interface 900 includes a ZigBee sub-device 910, a ZigBee sub-device 920, and a ZigBee sub-device 930 that are configured in a client, an open control 911, a close control 912, and a delete control 913 corresponding to the ZigBee sub-device 910, an open control 921, a close control 922, and a delete control 923 corresponding to the ZigBee sub-device 920, and an open control 931, a close control 932, and a delete control 933 corresponding to the ZigBee sub-device 930. The client may start the ZigBee sub-device 910 in response to receiving a trigger operation of opening the control 911, or close the ZigBee sub-device 910 by receiving a touch operation of closing the control 912, or release the control of the client on the ZigBee sub-device 910 by receiving a touch operation of deleting the control 913, and delete the configuration item of the ZigBee sub-device 910.
In summary, according to the method provided in this embodiment, a wireless network connection is established between a gateway device and a client, and the gateway device binds a switch device and an intelligent home device according to a received first binding request and a received second binding request, and sends device binding information to the client, and stores a binding relationship between the switch device and the intelligent home device in the client, so that when controlling a ZigBee sub-device including the switch device and the intelligent home device, unified control over the intelligent home device bound with the switch device can be achieved, and configuration by the client one by one is not required, thereby achieving a relatively convenient binding relationship storage process.
Thirdly, the control of the client to the ZigBee sub-device is explained. In an embodiment provided by the application, a communication network connection is established between a client and a gateway device, and the client controls a scene switch and an intelligent home device bound with the scene switch through the gateway device. Based on the alternative embodiment shown in fig. 5, fig. 10 shows a flowchart of controlling a ZigBee sub-device by a client through a gateway device according to an exemplary embodiment of the present application. In this embodiment, step 1001 to step 1005 are further included after step 507. The method is applied to a binding system of ZigBee sub-devices for explanation by taking as an example that the method comprises the following steps:
in step 1001, a client receives a scene control signal for a switching device.
Optionally, the device control interface of the client includes a control for controlling the ZigBee sub-device, and the scene control signal is a signal generated in response to a touch operation on the control of the switch device. Schematically, as shown in fig. 11, a bound switch device 1110, an intelligent home device 1120, an intelligent home device 1130, and an intelligent home device 1140 are displayed in an equipment control interface 1100, where a control 1101 corresponding to the switch device, a control 1102 corresponding to the intelligent home device 1120, a control 1103 corresponding to the intelligent home device 1130, and a control 1104 corresponding to the intelligent home device 1140 are displayed, and when a touch operation is received by a client for the control 1101, a scene control signal for controlling the switch device 1110 is generated.
In step 1002, the client sends a scene control command to the gateway device through the communication network connection according to the scene control signal.
Optionally, the scene control instruction includes a control instruction and a device identifier of the switching device, and the scene control instruction is used to instruct the gateway device to determine at least one smart home device bound to the switching device, and control the smart home device through the control instruction.
Step 1003, the gateway device receives a scene control instruction sent by the client through the communication network connection, where the scene control instruction includes a control instruction and a device identifier of the switching device.
And 1004, the gateway device determines at least one smart home device bound with the switch device according to the device identifier of the switch device.
Since the gateway device stores the binding relationship between the switching device and the smart home device, after receiving the device identifier, the gateway device determines the smart home device to be controlled according to the device identifier of the switching device.
And step 1005, the gateway device controls at least one piece of intelligent household equipment according to the control instruction.
Optionally, the gateway device performs control corresponding to the control instruction on the smart home device bound with the switch device according to the control instruction.
Optionally, in response to the fact that at least one piece of intelligent home equipment is in a working state, controlling the intelligent home equipment bound with the switch equipment to stop working according to the control instruction; or when each piece of intelligent household equipment bound with the switch equipment is in a non-working state, controlling the intelligent household equipment bound with the switch equipment to start working according to the control instruction; or the gateway device stores a state linkage relationship of at least one piece of intelligent home equipment, the state linkage relationship is used for indicating an equipment linkage state when the at least one piece of intelligent home equipment is bound, and the gateway device responds to the control indication to control a target intelligent home equipment in the at least one piece of intelligent home equipment to be in a linkage equipment state and controls the at least one piece of intelligent home equipment bound with the switch device to be in a linkage equipment state corresponding to the state linkage relationship.
In some embodiments, please refer to fig. 11, the control controls 1102 to 1104 of the smart home device are all control controls indicating start and stop of the corresponding device. The control 1101 of the switch device 1110 is a control that indicates the overall start-stop state corresponding to the smart home devices 1120 to 1140. Optionally, the control logic of the control 1101 of the switching device 1110 is as follows:
firstly, when at least one of the smart home devices 1120 to 1140 is in a working state, the client sends a scene control instruction for controlling all three smart home devices 1120 to 1140 to stop working by controlling the control 1101;
secondly, when all of the smart home devices 1120 to 1140 are in a non-working state, the client sends a scene control instruction for controlling all of the three smart home devices to start working by controlling the control 1101;
third, a state linkage relationship between the smart home devices 1120 and 1140 is stored in the gateway device, when the client sends a scene control instruction to the smart home device 1120, the smart home device 1120 switches working states according to the control instruction, and the smart home devices 1130 and 1140 switch corresponding working states according to the state linkage relationship. Such as: the state linkage relationship includes a linkage device on state of the smart home device 1120, a linkage device off state of the smart home device 1130, and a linkage device on state of the smart home device 1140, and when a control instruction in the scene control instruction is used to control the smart home device 1130 to be in the off state, the linkage control smart home device 1120 is in the on state, and the linkage control smart home device 1140 is in the on state.
In summary, according to the method provided in this embodiment, when a client receives a scene control signal for controlling the smart home devices bound to the switching device, a scene control instruction is sent to the gateway device, the gateway device determines the smart home devices to be controlled according to the device identifiers of the switching device in the scene control instruction, and controls the corresponding smart home devices according to the control instruction, so that centralized control over multiple ZigBee sub-devices is achieved, and the convenience of establishing the binding relationship is further improved.
Fig. 12 is a schematic process diagram illustrating a binding method for ZigBee and ZigBee sub-devices according to an exemplary embodiment of the present application, which is applied to a binding system for ZigBee sub-devices, where the binding system for ZigBee sub-devices includes a client, a gateway device, a ZigBee scene switch, and other ZigBee sub-devices that have been connected to the gateway device. The method comprises the following steps:
step 1201, the ZigBee scene switch presses the key to be paired 5 s.
And step 1202, the ZigBee scene switch enters a scene configuration state.
Steps 1201 to 1202 are ZigBee scene switches, that is, steps of binding the switching device and the smart home device shown in the foregoing embodiment. In one example, the ZigBee context switch receives a device binding signal and sends a first binding request to the gateway device in response to a press of a binding key provided on its device for a time of 5 s.
And 1203, pressing a key to be paired 5s by other ZigBee sub-devices connected to the gateway device.
And step 1204, entering a scene configuration state by other ZigBee sub-devices connected with the gateway device.
And step 1205, switching states of other ZigBee sub-synchronous devices which are connected into the gateway device are sent to the gateway device.
Steps 1203 to 1205 are steps of binding other ZigBee sub-devices that have already been connected to the gateway device, that is, the smart home device and the switching device shown in the foregoing embodiment. In one example, other ZigBee sub-devices that have connected to the gateway device send a second binding request to the gateway device in response to the time of pressing the binding key on their devices reaching 5 s.
In step 1206, the gateway device establishes a binding relationship.
Step 1207, the client and the gateway device establish connection and authenticate through the AP.
In step 1208, the gateway device establishes a connection with the client and authenticates the client.
Optionally, steps 1207 and 1208 are the procedures of performing bidirectional authentication between the client and the gateway device.
Step 1209, the client authenticates successfully.
After the bidirectional authentication process indicated in steps 1207 and 1208 is successful, i.e., indicating that the bidirectional authentication is successful, the client and the gateway device are connected through the wireless network.
At step 1210, the gateway device synchronizes the binding to the client.
Step 1211, the client local scene is automatically synchronized to the handset.
Optionally, the client generates a corresponding control on the client interface in response to the binding relationship.
In step 1212, the client may operate to unbind the binding relationship.
This step indicates that the client can release the binding.
Step 1213, the gateway device processes the control command of the client.
The step is that the gateway equipment is indicated to process a control instruction for the ZigBee sub-equipment sent by the client, so that the client can control the ZigBee sub-equipment in a non-wireless fidelity network environment.
Fig. 13 is a block diagram illustrating a structure of a binding apparatus of a ZigBee sub-device of ZigBee according to an exemplary embodiment of the present application, where the apparatus includes:
an establishing module 1301, configured to establish a communication network connection with a client;
the establishing module 1301 is further configured to establish a ZigBee connection with a ZigBee sub-device, where the ZigBee sub-device includes at least one switching device and at least one smart home device;
the receiving module 1302 is configured to, in response to receiving a first binding request and a second binding request within a preset time interval, bind the switch device with at least one smart home device, where the first binding request is sent by the switch device through a ZigBee connection, and the second binding request is sent by the smart home device through a ZigBee connection;
the sending module 1303 is configured to send device binding information to the client through a communication network connection, where the device binding information includes a binding relationship between the switching device and at least one smart home device, and the binding relationship is used to implement unified control on the at least one smart home device bound to the switching device.
In an optional embodiment, the first binding request is a request generated by the switch device according to a received first pressing signal, the first pressing signal is a signal generated by a first pressing operation on a first binding key, and the first binding key is a key set on the switch device for device binding; the second binding request is a request generated by the intelligent household equipment according to the received second pressing signal, the second pressing signal is a signal generated by second pressing operation on the second binding key, and the second binding key is a key which is arranged on the intelligent household equipment and used for binding equipment.
In an optional embodiment, the first binding request further includes a device number corresponding to the first pressing operation;
the apparatus further includes a binding module 1304, configured to bind the switch device and the at least one smart home device in response to the number of devices being greater than or equal to the number of second binding requests.
In an alternative embodiment, the number of devices is a number corresponding to the pressing duration of the first pressing operation; or, the number of devices is a number corresponding to the number of presses of the first press operation; or the number of devices is the number corresponding to the pressing rule of the first pressing operation; or, the number of devices is a preset number.
In an optional embodiment, the receiving module 1302 is further configured to receive a binding release instruction sent by the client through a communication network connection;
the apparatus further includes a releasing module 1305, configured to, in response to the binding releasing instruction, release the binding relationship between the switch device and the at least one smart home device.
In an optional embodiment, the receiving module 1302 is configured to receive a scene control instruction sent by a client through a communication network connection, where the scene control instruction includes a control instruction and a device identifier of a switching device;
the apparatus further includes a determining module 1306, configured to determine, according to the device identifier of the switch device, at least one smart home device bound to the switch device;
and the control module 1307 is configured to control at least one smart home device bound to the switching device according to the control instruction.
In an optional embodiment, the control module 1307 is configured to, in response to that there is at least one smart home device bound to the switching device that is in a working state, control, according to the control instruction, the smart home device bound to the switching device to stop working; and responding to the fact that each intelligent household device bound with the switch device is in a non-working state, and controlling the intelligent household device bound with the switch device to start working according to the control instruction.
In an optional embodiment, the gateway device further stores a state linkage relationship of the smart home devices bound to the switch device, and the state linkage relationship is used for indicating a linkage device state when the smart home devices are bound;
the control module 1307 is further configured to, in response to the control instruction, control a target smart home device of the at least one smart home device to be in a linkage device state, and control the smart home device bound with the switch device to be in a linkage device state corresponding to the state linkage relationship.
In an optional embodiment, the establishing module 1301 is further configured to establish a wireless network connection with the client in the AP mode.
In an optional embodiment, the establishing module 1301 is further configured to establish a TCP Socket communication connection with the client;
the receiving module 1302 is further configured to receive encrypted distribution network information sent by the client through a TCP Socket communication connection;
the device further includes a verification module 1308, configured to perform distribution network verification according to the encrypted distribution network information;
the establishing module 1301 is further configured to, in response to successful distribution network verification, establish a wireless network connection with the client, and generate encrypted feedback information for feedback.
In an optional embodiment, the sending module 1303 is further configured to send, to the client through the communication network connection, device configuration information, where the device configuration information includes a device identifier of the ZigBee sub-device, and the device configuration information is used to add, in the client, a configuration item for controlling the ZigBee sub-device.
It should be noted that: the binding apparatus for ZigBee sub-devices of ZigBee provided in the above embodiment is exemplified by only the division of the above functional modules, and in practical applications, the function distribution may be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions.
Fig. 14 shows a schematic structural diagram of a terminal for performing a binding method of a ZigBee sub-device of a ZigBee according to an exemplary embodiment of the present application, where the terminal includes:
the processor 1401 includes one or more processing cores, and the processor 1401 executes various functional applications and data processing by running software programs and modules.
Receiver 1402 and transmitter 1403 may be implemented as one communication component, which may be a piece of communication chip. Optionally, the communication component may implement a communication network connection including a wireless network connection as well as a ZigBee connection. That is, the transmitter 1403 may be used to transmit a wireless signal or a ZigBee signal, and the receiver 1402 may be used to receive a wireless signal or a ZigBee signal.
The memory 1404 is coupled to the processor 1401 by a bus 1405.
The memory 1404 may be used to store at least one instruction for execution by the processor 1401 to implement the various steps in the method embodiments described above.
The application also provides a gateway device, which comprises a processor and a memory, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to realize the method for binding the ZigBee sub-device. It should be noted that the gateway device may be a gateway device as provided in fig. 15 below.
Referring to fig. 15, a schematic structural diagram of a gateway device according to an exemplary embodiment of the present application is shown. Specifically, the method comprises the following steps: the gateway device 1500 includes a Central Processing Unit (CPU) 1501, a system Memory 1504 including a Random Access Memory (RAM) 1502 and a Read-Only Memory (ROM) 1503, and a system bus 1505 connecting the system Memory 1504 and the Central Processing Unit 1501. The gateway device 1500 also includes a basic input/output (I/O) System 1506 that facilitates the transfer of information between various devices within the computer, and a mass storage device 1507 that stores an operating System 1513, application programs 1514, and other program modules 1515.
The basic input/output system 1506 includes a display 1508 for displaying information and an input device 1509 such as a mouse, keyboard, etc. for inputting information by a user. Wherein a display 1508 and an input device 1509 are connected to the central processing unit 1501 via an input output controller 1510 connected to the system bus 1505. The basic input/output system 1506 may also include an input/output controller 1510 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input-output controller 1510 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1507 is connected to the central processing unit 1501 through a mass storage controller (not shown) connected to the system bus 1505. The mass storage device 1507 and its associated computer-readable media provide non-volatile storage for the gateway device 1500. That is, the mass storage device 1507 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROI drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other solid state Memory technology, CD-ROM, Digital Versatile Disks (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 1504 and mass storage device 1507 described above may be collectively referred to as memory.
The memory stores one or more programs configured to be executed by the one or more central processing units 1501, the one or more programs containing instructions for implementing the binding method of the ZigBee sub-device described above, and the central processing unit 1501 executes the one or more programs implementing the binding method of the ZigBee sub-device provided by the various method embodiments described above.
According to various embodiments of the present application, the gateway device 1500 may also operate as a remote computer connected to a network via a network, such as the Internet. That is, the gateway device 1500 may be connected to the network 1512 through a network interface unit 1511 connected to the system bus 1505 or, alternatively, the network interface unit 1511 may be used to connect to other types of networks or remote computer systems (not shown). Optionally, in this embodiment of the application, the gateway device 1500 may be connected to the ZigBee network through the network interface unit 1511, and optionally, the gateway device 1500 may also establish a connection with another device through a wireless network.
The memory further comprises one or more programs, the one or more programs are stored in the memory, and the one or more programs comprise steps executed by the gateway device for performing the method for binding the ZigBee sub-devices of the ZigBee.
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 hardware related to instructions of a program, which may be stored in a computer readable storage medium, which may be a computer readable storage medium contained in a memory of the above embodiments; or it may be a separate computer-readable storage medium not incorporated in the terminal. The computer readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the binding method of the ZigBee sub-device.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. A method for binding Zigbee and ZigBee sub-devices is applied to gateway devices, and comprises the following steps:
establishing a communication network connection with a client;
establishing ZigBee connection with the ZigBee sub-equipment, wherein the ZigBee sub-equipment comprises at least one switch device and at least one intelligent home equipment;
in response to receiving a first binding request and a second binding request within a preset time interval, binding the switch device with at least one piece of intelligent home equipment, wherein the first binding request is sent by the switch device through the ZigBee connection, and the second binding request is sent by the intelligent home equipment through the ZigBee connection;
and sending equipment binding information to the client through the communication network connection, wherein the equipment binding information comprises a binding relationship between the switching equipment and at least one piece of intelligent household equipment, and the binding relationship is used for realizing unified control on the at least one piece of intelligent household equipment bound with the switching equipment.
2. The method of claim 1,
the first binding request is a request generated by the switch device according to a received first pressing signal, the first pressing signal is a signal generated by a first pressing operation on a first binding key, and the first binding key is a key arranged on the switch device and used for binding equipment;
the second binding request is a request generated by the intelligent household equipment according to a received second pressing signal, the second pressing signal is a signal generated by second pressing operation on a second binding key, and the second binding key is a key arranged on the intelligent household equipment and used for binding equipment.
3. The method according to claim 2, wherein the first binding request further includes a device number corresponding to the first pressing operation;
the responding to the first binding request and the second binding request received in the preset time interval, and binding the switch device with at least one piece of intelligent household equipment, includes:
and binding the switch equipment and at least one piece of intelligent household equipment in response to the condition that the number of the equipment is larger than or equal to the number of the second binding requests.
4. The method of claim 3,
the number of the devices is the number corresponding to the pressing duration of the first pressing operation;
or the like, or, alternatively,
the number of devices is a number corresponding to the number of pressing times of the first pressing operation;
or the like, or, alternatively,
the number of the devices is the number corresponding to the pressing rule of the first pressing operation;
or the like, or, alternatively,
the number of the devices is preset.
5. The method of any of claims 1 to 4, further comprising:
receiving a binding release instruction sent by the client through the communication network connection;
and responding to the binding removing instruction, and removing the binding relation between the switch equipment and at least one piece of intelligent household equipment.
6. The method of any of claims 1 to 4, further comprising:
receiving a scene control instruction sent by the client through the communication network connection, wherein the scene control instruction comprises a control instruction and a device identifier of the switch device;
determining at least one piece of intelligent household equipment bound with the switch equipment according to the equipment identification of the switch equipment;
and controlling at least one piece of intelligent household equipment bound with the switch equipment according to the control instruction.
7. The method according to claim 6, wherein the controlling at least one smart home device bound to the switch device according to the control instruction comprises:
in response to the fact that at least one intelligent household device bound with the switch device is in a working state, controlling the intelligent household device bound with the switch device to stop working according to the control instruction;
responding to the fact that each intelligent household device bound with the switch device is in a non-working state, and controlling the intelligent household device bound with the switch device to start working according to the control instruction.
8. The method according to claim 6, wherein a state linkage relationship of the smart home devices bound to the switch device is further stored in the gateway device, and the state linkage relationship is used for indicating a linkage device state when the smart home devices are bound;
the controlling at least one smart home device bound with the switch device according to the control instruction includes:
responding to the control instruction and controlling a target intelligent household device in at least one intelligent household device to be in the linkage device state, and controlling the intelligent household device bound with the switch device to be in the linkage device state corresponding to the state linkage relation.
9. The method according to any one of claims 1 to 4, wherein the establishing a communication network connection with the client comprises:
and establishing wireless network connection with the client in a wireless Access Point (AP) mode.
10. The method of claim 9, wherein establishing the wireless network connection with the client in the AP mode comprises:
establishing a transmission control protocol socket (TCPSocket) communication connection with the client;
receiving encrypted distribution network information sent by the client through the TCP Socket communication connection;
carrying out distribution network verification according to the encrypted distribution network information;
and responding to the successful verification of the distribution network, establishing the wireless network connection with the client, and generating encrypted feedback information for feedback.
11. The method according to any one of claims 1 to 4, wherein after establishing the ZigBee connection with the ZigBee sub-device, the method further comprises:
and sending device configuration information to the client through the communication network connection, wherein the device configuration information comprises a device identifier of the ZigBee sub-device, and the device configuration information is used for adding a configuration item for controlling the ZigBee sub-device in the client.
12. The binding system of the ZigBee sub-device of the ZigBee is characterized by comprising a client, a gateway device and the ZigBee sub-device, wherein the ZigBee sub-device comprises at least one switch device and at least one smart home device, a communication network connection is established between the gateway device and the client, and a ZigBee connection is established between the gateway device and the ZigBee sub-device:
the switch device is used for sending a first binding request to the gateway device through the ZigBee connection;
the intelligent home equipment is used for sending a second binding request to the gateway equipment through the ZigBee connection;
the gateway device is used for binding the switching device with at least one piece of intelligent household equipment in response to receiving the first binding request and the second binding request within a preset time interval; sending equipment binding information to the client through the communication network connection, wherein the equipment binding information comprises a binding relationship between the switching equipment and at least one piece of intelligent household equipment;
the client is further configured to receive the device binding information sent by the gateway device through the communication network connection; and storing the binding relationship between the switch equipment and at least one piece of intelligent household equipment according to the equipment binding information, wherein the binding relationship is used for realizing unified control on the at least one piece of intelligent household equipment bound with the switch equipment.
13. A binding device of Zigbee and ZigBee sub-equipment is characterized by comprising:
the establishing module is used for establishing communication network connection with the client;
the establishing module is further used for establishing ZigBee connection with the ZigBee sub-equipment, and the ZigBee sub-equipment comprises at least one switch device and at least one intelligent home equipment;
the binding module is used for binding the switch equipment and at least one piece of intelligent home equipment in response to receiving a first binding request and a second binding request within a preset time interval, wherein the first binding request is sent by the switch equipment through the ZigBee connection, and the second binding request is sent by the intelligent home equipment through the ZigBee connection;
the sending module is used for sending equipment binding information to the client through the communication network connection, wherein the equipment binding information comprises a binding relationship between the switch equipment and at least one piece of intelligent household equipment, and the binding relationship is used for realizing unified control on the at least one piece of intelligent household equipment bound with the switch equipment.
14. A computer device, characterized in that it comprises a processor and a memory, in which at least one instruction, at least one program, set of codes or set of instructions is stored, which is loaded and executed by the processor to implement the binding method of ZigBee sub-devices according to any one of claims 1 to 11.
15. A computer readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of binding ZigBee sub-devices according to any one of claims 1 to 11.
CN202010296700.5A 2020-04-15 2020-04-15 Method, system, device and medium for binding ZigBee sub-devices of ZigBee Active CN111490916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010296700.5A CN111490916B (en) 2020-04-15 2020-04-15 Method, system, device and medium for binding ZigBee sub-devices of ZigBee

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010296700.5A CN111490916B (en) 2020-04-15 2020-04-15 Method, system, device and medium for binding ZigBee sub-devices of ZigBee

Publications (2)

Publication Number Publication Date
CN111490916A true CN111490916A (en) 2020-08-04
CN111490916B CN111490916B (en) 2022-03-11

Family

ID=71811725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010296700.5A Active CN111490916B (en) 2020-04-15 2020-04-15 Method, system, device and medium for binding ZigBee sub-devices of ZigBee

Country Status (1)

Country Link
CN (1) CN111490916B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930020A (en) * 2020-08-10 2020-11-13 公牛集团股份有限公司 Equipment control system, method, device, terminal and readable storage medium
CN112764351A (en) * 2020-12-18 2021-05-07 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent device, electronic device and storage medium
CN114143161A (en) * 2021-11-25 2022-03-04 杭州萤石软件有限公司 Equipment management method, device and system and electronic equipment
CN114727428A (en) * 2022-04-24 2022-07-08 佛山市顺德区美的电子科技有限公司 Network sharing method, device, equipment and storage medium
CN115001892A (en) * 2022-06-02 2022-09-02 联想(北京)有限公司 Information processing method, information processing device, electronic equipment and storage medium
WO2024031681A1 (en) * 2022-08-12 2024-02-15 Oppo广东移动通信有限公司 Device binding method and apparatus, and device, storage medium and program product

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427378A (en) * 2011-07-29 2012-04-25 上海合合信息科技发展有限公司 Data transmission method using bluetooth technology and acceleration sensing technology and system thereof
CN103078953A (en) * 2013-01-25 2013-05-01 北京奇艺世纪科技有限公司 Method for pairing connected devices
CN103188821A (en) * 2011-12-29 2013-07-03 华为技术有限公司 Network equipment binding method and communication method and communication device and communication system
TW201437845A (en) * 2013-03-20 2014-10-01 Schneider Electric South East Asia Hq Pte Ltd Method, control system and equipment for binding/pairing
US20150018987A1 (en) * 2012-03-12 2015-01-15 Securities Direct AB Method and a device for controlling a home wireless system
CN104780154A (en) * 2015-03-13 2015-07-15 小米科技有限责任公司 Device binding method and device binding device
CN105320088A (en) * 2014-07-14 2016-02-10 深圳绿米联创科技有限公司 Building and household equipment state binding method, device and system
CN105700376A (en) * 2016-04-20 2016-06-22 北京昊恒天科技有限公司 Pairing method and device for intelligent household system and intelligent household system
CN106919867A (en) * 2015-12-24 2017-07-04 中兴通讯股份有限公司 Mobile terminal and its shutdown control method and device
CN107948027A (en) * 2017-11-02 2018-04-20 南京物联传感技术有限公司 One kind carries smart home data safety backup system and method for work
US20180317271A1 (en) * 2017-04-27 2018-11-01 Abb Schweiz Ag Local connection establishment
CN109309653A (en) * 2017-07-28 2019-02-05 阿里巴巴集团控股有限公司 Information binding method, equipment and system
CN110505614A (en) * 2019-08-30 2019-11-26 青岛海信智慧家居系统股份有限公司 A kind of communication means and device of ZigBee binding switch
CN110519738A (en) * 2019-08-30 2019-11-29 青岛海信智慧家居系统股份有限公司 A kind of method and device of the multi-functional determination of ZigBee terminal device
CN110601934A (en) * 2019-09-18 2019-12-20 青岛海信智慧家居系统股份有限公司 Method and device for establishing binding relationship between binding switch equipment and switch equipment

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427378A (en) * 2011-07-29 2012-04-25 上海合合信息科技发展有限公司 Data transmission method using bluetooth technology and acceleration sensing technology and system thereof
CN103188821A (en) * 2011-12-29 2013-07-03 华为技术有限公司 Network equipment binding method and communication method and communication device and communication system
US20150018987A1 (en) * 2012-03-12 2015-01-15 Securities Direct AB Method and a device for controlling a home wireless system
CN103078953A (en) * 2013-01-25 2013-05-01 北京奇艺世纪科技有限公司 Method for pairing connected devices
TW201437845A (en) * 2013-03-20 2014-10-01 Schneider Electric South East Asia Hq Pte Ltd Method, control system and equipment for binding/pairing
CN105320088A (en) * 2014-07-14 2016-02-10 深圳绿米联创科技有限公司 Building and household equipment state binding method, device and system
CN104780154A (en) * 2015-03-13 2015-07-15 小米科技有限责任公司 Device binding method and device binding device
CN106919867A (en) * 2015-12-24 2017-07-04 中兴通讯股份有限公司 Mobile terminal and its shutdown control method and device
CN105700376A (en) * 2016-04-20 2016-06-22 北京昊恒天科技有限公司 Pairing method and device for intelligent household system and intelligent household system
US20180317271A1 (en) * 2017-04-27 2018-11-01 Abb Schweiz Ag Local connection establishment
CN109309653A (en) * 2017-07-28 2019-02-05 阿里巴巴集团控股有限公司 Information binding method, equipment and system
CN107948027A (en) * 2017-11-02 2018-04-20 南京物联传感技术有限公司 One kind carries smart home data safety backup system and method for work
CN110505614A (en) * 2019-08-30 2019-11-26 青岛海信智慧家居系统股份有限公司 A kind of communication means and device of ZigBee binding switch
CN110519738A (en) * 2019-08-30 2019-11-29 青岛海信智慧家居系统股份有限公司 A kind of method and device of the multi-functional determination of ZigBee terminal device
CN110601934A (en) * 2019-09-18 2019-12-20 青岛海信智慧家居系统股份有限公司 Method and device for establishing binding relationship between binding switch equipment and switch equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930020A (en) * 2020-08-10 2020-11-13 公牛集团股份有限公司 Equipment control system, method, device, terminal and readable storage medium
CN111930020B (en) * 2020-08-10 2024-04-05 广东沐光智能照明有限公司 Equipment control system, method, device, terminal and readable storage medium
CN112764351A (en) * 2020-12-18 2021-05-07 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent device, electronic device and storage medium
CN114143161A (en) * 2021-11-25 2022-03-04 杭州萤石软件有限公司 Equipment management method, device and system and electronic equipment
CN114727428A (en) * 2022-04-24 2022-07-08 佛山市顺德区美的电子科技有限公司 Network sharing method, device, equipment and storage medium
CN115001892A (en) * 2022-06-02 2022-09-02 联想(北京)有限公司 Information processing method, information processing device, electronic equipment and storage medium
WO2024031681A1 (en) * 2022-08-12 2024-02-15 Oppo广东移动通信有限公司 Device binding method and apparatus, and device, storage medium and program product

Also Published As

Publication number Publication date
CN111490916B (en) 2022-03-11

Similar Documents

Publication Publication Date Title
CN111490916B (en) Method, system, device and medium for binding ZigBee sub-devices of ZigBee
CN110505606B (en) Bluetooth Mesh network and distribution network authentication method, equipment and storage medium thereof
WO2019149036A1 (en) Mesh network and mesh device and network distribution method thereof
CN109150568B (en) Network management method, device, system, equipment and storage medium
CN110636483A (en) Network distribution method and system
CN111787517A (en) Method and device for binding activation of intelligent equipment
CN105741525A (en) Remote controller binding processing method, device and equipment
JP2007104310A (en) Network device, network system, and key updating method
CN105393564A (en) Communication between host and accessory devices using accessory protocols via wireless transport
CN113423105B (en) Network connection method and device
CN111930020B (en) Equipment control system, method, device, terminal and readable storage medium
CN111726886A (en) Network configuration method and device and electronic equipment
CN104635501A (en) Intelligent home control method and system
CN113630727B (en) Intelligent household network distribution method, device and system, electronic equipment and storage medium
CN112152853A (en) Equipment network distribution method and device, computer-readable storage medium and electronic device
CN108834138B (en) Network distribution method and system based on voiceprint data
CN111083766A (en) Automatic distribution network binding method based on smart screen
CN110602682A (en) Network management system and method based on Bluetooth BLE and mesh mixing
CN112752245B (en) Distribution network method and device, electronic equipment and storage medium
CN113347741A (en) Online method and system of gateway equipment
CN105812185B (en) A kind of communication connecting method of playback equipment
WO2023005410A1 (en) Information synchronization method and system, storage medium, and electronic device
CN111478816B (en) Method, system, device and medium for configuring Zigbee and ZigBee sub-equipment
CN113794996B (en) Device communication, device control method, device, electronic device, and storage medium
CN113612747B (en) Method and device for setting device control authority, computer device and storage medium

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
TR01 Transfer of patent right

Effective date of registration: 20231113

Address after: 516039 Floor 1, C2-1 Plant, Qunyi Intelligent Manufacturing Industrial Park, south of Sanhe Avenue, Tonghu Town, Zhongkai High tech Zone, Huizhou, Guangdong

Patentee after: Guangdong Muguang Intelligent Lighting Co.,Ltd.

Address before: 315300 East District of Industrial Park, Cixi, Ningbo, Zhejiang

Patentee before: GONGNIU GROUP Co.,Ltd.

TR01 Transfer of patent right