CN111478816A - Method, system, device and medium for configuring Zigbee and ZigBee sub-equipment - Google Patents
Method, system, device and medium for configuring Zigbee and ZigBee sub-equipment Download PDFInfo
- Publication number
- CN111478816A CN111478816A CN202010297272.8A CN202010297272A CN111478816A CN 111478816 A CN111478816 A CN 111478816A CN 202010297272 A CN202010297272 A CN 202010297272A CN 111478816 A CN111478816 A CN 111478816A
- Authority
- CN
- China
- Prior art keywords
- equipment
- client
- zigbee
- gateway
- bluetooth connection
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2807—Exchanging configuration information on appliance services in a home automation network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/283—Processing of data at an internetworking point of a home automation network
- H04L12/2832—Interconnection of the control functionalities between home networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L2012/284—Home automation networks characterised by the type of medium used
- H04L2012/2841—Wireless
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Computing Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application relates to a method, a system, a device and a medium for configuring Zigbee and ZigBee sub-equipment, and relates to the field of intelligent home furnishing. The method comprises the following steps: establishing a Bluetooth connection with a client; receiving an access signal sent by the ZigBee sub-equipment through the ZigBee network in response to receiving an equipment adding instruction sent by the client through Bluetooth connection; and sending the equipment configuration information to the client through the Bluetooth connection according to the access signal. By establishing the Bluetooth connection with the client, when the client sends a device adding instruction through the Bluetooth connection, the ZigBee sub-device is configured into a device controlled by the client, and under the condition that the client is in a non-wireless fidelity network environment, the connection between the gateway device and the client is realized, so that the control of the client on the ZigBee sub-device is realized.
Description
Technical Field
The application relates to the field of smart home, in particular to a method, a system, a device and a medium for configuring Zigbee and ZigBee sub-equipment.
Background
The intelligent home technology is embodied by home equipment in an internet of things manner under the influence of the internet, indoor ZigBee sub-equipment is connected together through the internet of things technology, and centralized control is carried out on the ZigBee sub-equipment through a central control platform.
In an intelligent home system in the related art, when a gateway device and a mobile phone client are in the same Wireless Fidelity (WiFi) network environment, the gateway device is accessed to the mobile phone client through a WiFi network, and a ZigBee sub-device is accessed to the gateway device, so that the ZigBee sub-device is controlled by the client.
However, in the related art, the gateway device can only connect with the client when in the WiFi network environment, and in the pre-installed environment such as a blank house, there is no applicable WiFi network environment, and the client cannot establish a connection with the gateway device.
Disclosure of Invention
The application relates to a configuration method, a configuration system, a configuration device and a configuration medium of ZigBee and ZigBee sub-devices, which can realize connection with gateway devices under the condition that a client is not in a WiFi network environment, and further realize control over the ZigBee sub-devices. The technical scheme is as follows:
on one hand, a configuration method of ZigBee sub-devices of ZigBee is provided, which is applied to gateway devices, and the method includes:
establishing a Bluetooth connection with a client, wherein the Bluetooth connection is established when the client is not in a wireless fidelity (WiFi) network environment;
receiving an access signal sent by the ZigBee sub-device through a ZigBee network in response to receiving a device adding instruction sent by the client through the Bluetooth connection;
and sending device configuration information to the client through the Bluetooth connection according to the access signal, wherein the device configuration information comprises a device identifier of the ZigBee sub-device, and the device configuration information is used for indicating that a configuration item for controlling the ZigBee sub-device is added in the client.
On the other hand, a configuration method of ZigBee sub-devices of ZigBee is provided, which is applied to a client, and the method includes:
determining the current network environment;
responding to the current situation that the gateway equipment is not in the wireless fidelity WiFi network environment, and establishing Bluetooth connection with the gateway equipment;
sending a device adding instruction to the gateway device through the Bluetooth connection, wherein the device adding instruction is used for instructing the gateway device to receive an access signal sent by the ZigBee sub-device through a ZigBee network;
receiving device configuration information sent by the gateway device through the Bluetooth connection, wherein the device configuration information comprises a device identifier of the ZigBee sub-device;
and adding a configuration item for controlling the ZigBee sub-equipment according to the equipment configuration information.
On the other hand, a configuration system of ZigBee sub-device of ZigBee is provided, the system includes client, gateway device and ZigBee sub-device:
the client is used for determining the current network environment; establishing a Bluetooth connection with the gateway device in response to not being in a wireless fidelity (WiFi) network environment; sending a device adding instruction to the gateway device through the Bluetooth connection;
the gateway device is used for receiving the device adding instruction sent by the client through the Bluetooth connection; receiving an access signal sent by the ZigBee sub-equipment through a ZigBee network according to the equipment adding instruction; sending device configuration information to the client through the Bluetooth connection according to the access signal, wherein the device configuration information comprises a device identifier of the ZigBee sub-device;
the client is also used for receiving the equipment configuration information sent by the gateway through the Bluetooth connection; and adding a configuration item for controlling the ZigBee sub-equipment according to the equipment configuration information.
In another aspect, a configuration device for ZigBee sub-devices of ZigBee is provided, the device including:
the system comprises an establishing module, a receiving module and a processing module, wherein the establishing module is used for establishing Bluetooth connection with a client, and the Bluetooth connection is established when the client is not in a wireless fidelity WiFi network environment;
the receiving module is used for responding to a device adding instruction sent by the client through the Bluetooth connection and receiving an access signal sent by the ZigBee sub device through a ZigBee network;
a sending module, configured to send device configuration information to the client through the bluetooth connection according to the access signal, where the device configuration information includes a device identifier of the ZigBee sub-device, and the device configuration information is used to add a configuration item for controlling the ZigBee sub-device in the client.
In another aspect, a configuration device for ZigBee sub-devices of ZigBee is provided, the device including:
the determining module is used for determining the current network environment;
the establishing module is used for responding to the situation that the gateway equipment is not in the wireless fidelity WiFi network environment currently and establishing Bluetooth connection with the gateway equipment;
the transmitting module is used for transmitting a device adding instruction to the gateway device through the Bluetooth connection, wherein the device adding instruction is used for indicating the gateway device to receive an access signal transmitted by the ZigBee sub-device through a ZigBee network;
a receiving module, configured to receive device configuration information sent by the gateway device through the bluetooth connection, where the device configuration information includes a device identifier of the ZigBee sub device;
and the adding module is used for adding configuration items for controlling the ZigBee sub-devices according to the device configuration information.
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 configuration method of the ZigBee sub-device.
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 one of the above-mentioned configuration methods for the ZigBee sub-devices.
In another aspect, a computer program product is provided, which when run on a computer, causes the computer to execute the configuration method of the ZigBee sub-device 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:
by establishing the Bluetooth connection between the gateway device and the client, when the client sends a device adding instruction to the gateway device through the Bluetooth connection, the gateway device sends device configuration information to the client, and the ZigBee sub-device is configured into a device controlled by the client, so that the connection between the gateway device and the client can be realized under the condition that the client is in a non-WiFi network environment, and the control of the client on the ZigBee sub-device is further realized.
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 configuration method of a ZigBee sub-device 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 shows a flowchart of a configuration method of a ZigBee sub-device according to another exemplary embodiment of the present application;
fig. 5 shows a schematic diagram of a distribution network interface provided based on the embodiment shown in fig. 4;
fig. 6 shows a flowchart of a configuration method of a ZigBee sub-device according to another exemplary embodiment of the present application;
FIG. 7 shows a schematic diagram of a ZigBee kid device configuration interface of a client display provided based on the embodiment shown in FIG. 6;
fig. 8 shows a flowchart of a ZigBee sub-device configuration method according to another exemplary embodiment of the present application;
fig. 9 is a schematic diagram illustrating that the smart home devices and the switch devices are bound by the gateway device according to the embodiment shown in fig. 8;
FIG. 10 shows a schematic diagram of a device control interface provided based on the embodiment shown in FIG. 8;
fig. 11 shows a flowchart of a ZigBee sub-device configuration method according to another exemplary embodiment of the present application;
fig. 12 is a schematic interface diagram illustrating that the client controls the smart home devices according to the binding relationship, which is provided based on the embodiment illustrated in fig. 11;
fig. 13 is a process diagram illustrating a configuration method of a ZigBee sub-device according to another exemplary embodiment of the present application;
fig. 14 shows a block diagram of a configuration apparatus of a ZigBee sub-device according to an exemplary embodiment of the present application;
fig. 15 shows a block diagram of a configuration apparatus of a ZigBee sub-device according to another exemplary embodiment of the present application;
fig. 16 illustrates a schematic diagram of a terminal according to an exemplary embodiment of the present application;
fig. 17 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 bluetooth interface.
In the embodiment of the application, the gateway device provides data transmission service between the client and the ZigBee sub-device. The gateway equipment is connected with the client through Bluetooth and communicates with the client based on Bluetooth protocol specifications; in addition, the gateway equipment is connected with the ZigBee sub-equipment through a ZigBee network, and communicates 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.
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 Bluetooth connection is established between the client 101 and the gateway device 102, the connection is established between the gateway device 102 and the ZigBee sub-device 103 through the ZigBee network, and the gateway device 102 performs communication instruction interaction between the client 101 and the ZigBee sub-device 103.
First, a bluetooth connection between the client 101 and the gateway device 102 (i.e., of the gateway device 102) is described
Network distribution process):
optionally, the client 101 displays a distribution network interface, when the client 101 and the gateway 102 are not in a WiFi network environment, the client 101 starts bluetooth to scan a bluetooth device, the gateway 102 receives a push to a distribution network button, starts bluetooth to broadcast a bluetooth connection request, and the client 101 scans the bluetooth connection request of the gateway 102 to establish bluetooth connection with the gateway 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)
ZigBeeNetwork distribution process of the sub-device 103):
in response to the bluetooth connection established between the gateway device 102 and the client 101, the gateway device 102 starts the ZigBee network, and the ZigBee sub-device 103 receives a press of a distribution network key to scan the gateway device 102, so as to establish a connection with the gateway device 102 through the ZigBee network.
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. adding ZigBee sub-equipment 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.
2. 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.
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 Bluetooth connection, after format conversion is carried out on the control instruction by the gateway equipment, 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 ZigBee sub-device is added in a client, and fig. 2 shows a flowchart of a configuration method of a ZigBee sub-device according to an exemplary embodiment of the present application. Taking the application of the method to the gateway device as an example for explanation, as shown in fig. 2, the method includes:
Alternatively, the bluetooth connection may be implemented as a B L E connection, that is, a connection between the client and the gateway device is made through a B L E technology.
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, when establishing the bluetooth connection with the client, the gateway device first broadcasts a bluetooth connection signal, so that the computer device that starts the bluetooth function within the target range corresponding to the gateway device can detect the bluetooth connection signal, wherein the client is located within the target range of the gateway device and starts the bluetooth function, so that when receiving the bluetooth connection signal broadcasted by the gateway device, the client establishes the bluetooth connection with the gateway device.
Optionally, the gateway device first receives a distribution network control signal triggered by a distribution network control operation, such as: and receiving the pressing operation on the distribution network key to generate a distribution network control signal. The gateway equipment firstly establishes Bluetooth distribution network connection with the client according to the distribution network control signal; and performing bidirectional authentication between the Bluetooth distribution network connection and the client, and establishing Bluetooth connection between the Bluetooth distribution network connection and the client in response to successful bidirectional authentication. Optionally, the bidirectional authentication method includes, but is not limited to, an authentication method performed by a preset Message Digest Algorithm (MD 5).
Optionally, the gateway device generates a distribution network control signal after receiving the distribution network control operation, broadcasts a bluetooth connection signal according to the distribution network control signal, establishes a bluetooth distribution network connection with the client when the client receives the bluetooth connection signal broadcasted by the gateway device, and establishes the bluetooth connection between the gateway device and the client in response to successful bidirectional authentication between the client and the gateway device. Fig. 3 schematically shows a network distribution process of a gateway device according to an exemplary embodiment of the present application. Referring to fig. 3, the non-WiFi network environment 300 includes a client 301 and a gateway device 302, and the gateway device 302 has a distribution network button 303. When the distribution network key 303 on the gateway device 302 is pressed, a distribution network control signal is generated, and a bluetooth connection signal is broadcasted according to the distribution network control signal, so that bluetooth distribution network connection with the client is established.
In some embodiments, after establishing a bluetooth connection with a client, a gateway device starts a ZigBee network and detects ZigBee sub-devices within a signal range; or after the gateway device establishes Bluetooth connection with the client, when receiving a ZigBee start instruction sent by the client, the gateway device starts the ZigBee network according to the ZigBee start instruction and detects ZigBee sub-devices in a signal range.
Step 202, in response to receiving a device adding instruction sent by the client through the bluetooth connection, receiving an access signal sent by the ZigBee sub-device through the ZigBee network.
The ZigBee sub-equipment is connected with the gateway equipment through a ZigBee network in an intelligent home scene and is controlled by the client.
Optionally, the device adding instruction includes a device type corresponding to the ZigBee sub-device, and the gateway device establishes a connection with the ZigBee sub-device corresponding to the device type through the device type. The gateway device receives the device adding instruction and determines that the ZigBee network is started, the ZigBee sub-devices requesting access in the signal range are verified in the device type, therefore, ZigBee connection is established between the ZigBee sub-devices matched with the device type according to the device adding instruction, and the ZigBee sub-devices are configured into devices controlled by the client.
Optionally, the ZigBee sub-device sends an access signal through the ZigBee network, where the access signal is a signal for the ZigBee sub-device to request connection with the gateway device.
Optionally, the device adding instruction includes the number of devices, and the gateway device establishes ZigBee connection with the ZigBee sub-device of the corresponding number detected first after receiving the device adding instruction.
Optionally, the device adding instruction includes an adding time period, and the gateway device establishes ZigBee connection with the ZigBee sub-device detected in the adding time period.
Optionally, the ZigBee sub-device scans the gateway device when receiving a pressing operation on a distribution network key, and because the gateway device opens the ZigBee network, the ZigBee sub-device scans the gateway device and sends an access request to the gateway device, and the gateway device establishes ZigBee connection with the ZigBee sub-device after receiving the access request. Optionally, the gateway device performs bidirectional authentication with the ZigBee sub-device, and establishes ZigBee connection with the ZigBee sub-device after the bidirectional authentication is successful.
Step 203, sending device configuration information to the client through the bluetooth connection according to the access signal, wherein the device configuration information includes a device identifier of the ZigBee sub-device, and the device configuration information is used for indicating that a configuration item for controlling the ZigBee sub-device is added to the client.
Optionally, after establishing ZigBee connection with the ZigBee sub device, the gateway device sends device configuration information corresponding to the ZigBee sub device to the client through bluetooth connection, where the device configuration information includes a device identifier of the ZigBee sub device, and the device configuration information is used to add a configuration item for controlling the ZigBee sub device in the client. That is, when the client receives the device configuration information, the configuration item for controlling the ZigBee sub-device is configured according to the device identifier, and the control corresponding to the ZigBee sub-device is displayed in the display interface of the client, and optionally, the display interface further includes a network environment where the client is located, a name of the ZigBee sub-device that the client can control, a name of the gateway device connected to the client, and the like.
In summary, in the method provided in this embodiment, by establishing the bluetooth connection between the gateway device and the client, when the client sends a device addition instruction to the gateway device through the bluetooth connection, the gateway device sends device configuration information to the client, and configures the ZigBee sub-device as a device controlled by the client, so that the connection between the gateway device and the client can be implemented even when the client is in a non-WiFi network environment, and the client controls the ZigBee sub-device.
Fig. 4 shows a flowchart of a configuration method of a ZigBee sub-device of ZigBee according to an exemplary embodiment of the present application. Taking the application of the method to the client as an example, as shown in fig. 4, the method includes:
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 terminal corresponding to the client includes at least one of a Near Field Communication (NFC) network environment, a WiFi network environment, and a cellular mobile network environment.
Optionally, the process of determining the network environment may be automatically triggered when the distribution network interface of the client is displayed, or may be triggered by receiving a selection operation on the network environment detection control in the distribution network interface of the client. The distribution network interface is used for realizing a distribution network process of the gateway equipment, namely a process of establishing connection between the client and the gateway equipment.
In response to not being in a WiFi network environment, a bluetooth connection is established with the gateway device, step 402.
And when the client is not in the wireless fidelity network environment, displaying prompt information which cannot establish connection with the WiFi network in the client. That is, the client cannot realize data interaction with the gateway device through the WiFi network, and cannot configure or control the ZigBee sub-device through the gateway device.
Optionally, when performing bluetooth connection, the client is located within a target range of the gateway device (i.e., within a bluetooth signal range), and starts a bluetooth function, so as to receive a bluetooth connection signal broadcast by the gateway device.
Optionally, a distribution network mode control is correspondingly displayed in the distribution network interface of the client in the candidate distribution network mode, and fig. 5 schematically shows a schematic diagram of the distribution network interface provided in an exemplary embodiment of the present application. Referring to fig. 5, in response to that the client is in a non-wireless fidelity network environment, the distribution network interface 500 displays distribution network mode indication information, which includes a distribution network mode selection control, as shown in fig. 5, the distribution network mode selection control includes a bluetooth distribution network mode selection control 511 and a WiFi distribution network mode selection control 512 (since the client is in a non-WiFi network environment, the WiFi distribution network mode selection control 512 is in an unselected state).
Optionally, after receiving the bluetooth connection signal broadcast by the gateway device, the client establishes a bluetooth distribution network connection with the gateway device, performs bidirectional authentication with the gateway device through the bluetooth distribution network connection, and establishes a bluetooth connection with the gateway device in response to successful bidirectional authentication. Optionally, the bidirectional authentication mode includes, but is not limited to, a mode of authentication through the preset MD 5.
After the client establishes the Bluetooth connection with the gateway equipment, the client can exchange data with the gateway equipment through the Bluetooth connection. Optionally, the client can acquire device information of the ZigBee sub-device connected to the gateway device; or, the client can control the ZigBee sub-equipment connected with the gateway equipment by sending a control command.
Optionally, the device configuration information is information sent to the client by the ZigBee sub device for which a connection is established after the gateway device establishes a ZigBee connection with the ZigBee sub device.
And step 405, adding configuration items for controlling the ZigBee sub-devices according to the device configuration information.
Optionally, a sub-device control interface corresponds to the client, and the sub-device control interface includes a configuration item for controlling the ZigBee sub-device. When the client receives the device configuration information sent by the gateway device, the configuration items corresponding to the ZigBee sub-devices are added in the sub-device control interface according to the device identifiers in the device configuration information, and the ZigBee sub-devices can be controlled through the configuration items.
Fig. 6 shows a flowchart of a configuration method of ZigBee sub-device of ZigBee provided in an exemplary embodiment of the present application, which is described by taking as an example that the method is applied to a ZigBee sub-device configuration system, and the method includes:
step 601, the client determines the current network environment.
Optionally, the process of determining the network environment may be automatically triggered when the distribution network interface of the client is displayed, or may be triggered by receiving a selection operation on the network environment detection control in the distribution network interface of the client. The distribution network interface is used for realizing a distribution network process of the gateway equipment, namely a process of establishing connection between the client and the gateway equipment.
In step 602, in response to the client not being in the WiFi network environment, a bluetooth connection is established with the gateway device.
Optionally, after detecting the network environment, when the client is in a WiFi network environment, the client directly establishes a connection with the gateway device through WiFi; and when the client is not in the WiFi network environment, displaying distribution network mode indication information, wherein the distribution network mode indication information is used for indicating that distribution is finished through a candidate distribution network mode, and the candidate distribution network mode comprises a Bluetooth distribution network mode.
Optionally, when the client receives a bluetooth connection signal broadcast by the gateway device, the bluetooth network connection with the gateway device is first established, bidirectional authentication is performed between the bluetooth network connection and the gateway device, and the bluetooth connection with the gateway device is established in response to successful bidirectional authentication.
The bidirectional authentication mode includes, but is not limited to, a mode of authentication through the preset MD 5.
Step 603, the gateway device establishes a bluetooth connection with the client.
In some embodiments, the gateway device corresponds to a distribution network key, generates a distribution network control signal in response to receiving a pressing of the distribution network key, broadcasts a bluetooth connection signal according to the distribution network control signal, establishes a bluetooth distribution network connection with the client in response to receiving the bluetooth connection signal by the client, and performs security verification in a bidirectional authentication manner, and when the bidirectional authentication is successful, the gateway device establishes a bluetooth connection with the client.
In step 604, the client sends a device add command to the gateway device via the bluetooth connection.
Optionally, the device adding instruction is used to instruct the gateway device to receive an access signal sent by the ZigBee sub device through the ZigBee network.
Step 605, the gateway device receives an access signal sent by the ZigBee sub device through the ZigBee network in response to receiving the device addition instruction sent by the client.
In some embodiments, after establishing a bluetooth connection with the client, the gateway device starts a ZigBee network and detects ZigBee sub-devices within a signal range; or after the Bluetooth connection with the client is established, the gateway equipment receives a ZigBee start instruction sent by the client, starts a ZigBee network according to the ZigBee start instruction, and detects ZigBee sub-equipment in a signal range; or the ZigBee network of the gateway equipment is started, and the ZigBee network monitors the ZigBee sub-equipment in the signal range after the Bluetooth connection with the client is established.
Step 606, the gateway device sends the device configuration information to the client via the bluetooth connection according to the access signal.
Step 607, the client receives the device configuration information sent by the gateway device through the bluetooth connection, and the device configuration information includes the device identifier of the ZigBee sub-device.
And step 608, adding a configuration item for controlling the ZigBee sub-devices by the client according to the device configuration information.
Fig. 7 shows a schematic diagram of a ZigBee sub-device configuration interface provided in an exemplary embodiment of the present application, please refer to fig. 7, where the ZigBee sub-device configuration interface 700 includes a ZigBee sub-device 710, a ZigBee sub-device 720, and a ZigBee sub-device 730 configured in a client, an open control 711, a close control 712, and a delete control 713 corresponding to the ZigBee sub-device 710, an open control 721, a close control 722, and a delete control 723 corresponding to the ZigBee sub-device 720, and an open control 731, a close control 732, and a delete control 733 corresponding to the ZigBee sub-device 730. The client may start the ZigBee sub-device 710 in response to receiving a trigger operation of the start control 711, or close the ZigBee sub-device 710 in response to receiving a touch operation of the close control 712, or remove the control of the client on the ZigBee sub-device 710 in response to receiving a touch operation of the delete control 713, and delete the configuration item of the ZigBee sub-device 710.
In summary, in the method provided in this embodiment, the bluetooth connection between the client and the gateway device is established when both the gateway device and the client are in the non-WiFi network environment, and when the gateway device turns on the ZigBee network corresponding to the turning on of the bluetooth connection, the client sends a device addition instruction to the gateway device, and the gateway device configures the ZigBee sub-device through the ZigBee network, and when the client is in the non-WiFi network environment, the connection between the gateway device and the client is implemented, so that the client controls the ZigBee sub-device.
Next, a case where ZigBee child devices are bound will be described. Optionally, after the bluetooth connection with the gateway device, the client may control different kinds of ZigBee sub-devices, where the ZigBee sub-devices include at least one switching device and at least one smart home device. Fig. 8 shows a flowchart of a ZigBee sub-device configuration method according to an exemplary embodiment of the present application, which may be implemented after step 608 shown in fig. 6. For explanation, the method is applied to a ZigBee sub-device configuration system as an example, and the method includes:
step 801, a gateway device responds to a first binding request sent by a switch device and a second binding request sent by at least one smart home device which are respectively received by a ZigBee network within a preset time interval, and binds the switch device and the at least one smart home device.
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 intelligent home equipment with the binding relationship. 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 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.
A binding control is arranged on the switch device, and optionally, the first binding request is a request generated by receiving a pressing operation on the binding control on the switch device; the intelligent household equipment is also provided with a binding control, and the second binding request is a request generated by receiving the pressing operation of the binding control on the intelligent household equipment. Fig. 9 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. 9, a gateway device 901 is connected to a switching device 910 and a smart home device 920 via a ZigBee network. The switch device 910 is provided with a binding control 911, and the smart home device 920 is provided with a binding control 921. When the switch device 910 receives a pressing operation on the binding control 911 and the pressing duration of the pressing operation reaches a first pressing time threshold, the switch device 910 sends a first binding request to the gateway device 901 through the ZigBee network; when the intelligent home device 920 receives the pressing operation on the binding control 921 and the pressing duration of the pressing operation reaches the second pressing time threshold, the intelligent home device 920 sends a second binding request to the gateway device 901 through the ZigBee network.
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.
Optionally, the switching device may be bound to a single smart home device, or may be bound to a plurality of smart home devices. In some embodiments, the gateway device receives a first binding request sent by the switch device through the ZigBee network, where the first binding request is a request generated when a pressing operation is received on a binding control on the switch device, and the first binding request includes the number of devices corresponding to the pressing duration of the pressing operation, receives a second binding request sent by at least one smart home device through the ZigBee network within a preset time interval, and binds the switch device and the at least one smart home device in response to the matching between the number of devices and the number of second binding requests. Optionally, in response to the number of the devices being greater than or equal to the number of the second binding requests, the switching device is bound with at least one smart home device.
Illustratively, when the time of receiving the pressing operation exceeds 5 seconds, a first binding request for allowing binding with 1 smart home device is generated, and when the pressing time exceeds 5 seconds, a connectable smart home device is added every one second (rounded) pressing time, for example, when the pressing time is 7.5 seconds, corresponding to 1+ (8-5) ═ 4 smart home devices. 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.
Optionally, the smart home devices may be devices that can be bound to the switching device, 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 802, the gateway device sends device binding information to the client via bluetooth connection.
Optionally, the device binding information includes a binding relationship between the switching device and at least one smart home device.
Optionally, the gateway device first stores the binding relationship between the switching device and the at least one smart home device, and sends the binding relationship to the client in the form of device binding information.
In step 803, the client receives the device binding information sent by the gateway device through the bluetooth connection.
And step 804, the client stores the binding relationship between the switch device and the at least one smart home device according to the device binding information.
Optionally, the client stores the binding relationship in a terminal storage space, or stores the binding relationship in a cloud server 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. 10 illustrates a schematic diagram of a device control interface provided by an exemplary embodiment of the present application. Referring to fig. 10, in the present embodiment, the switch device corresponds to 3 smart home devices. The device control interface 1000 includes a bound switch device 1001, a smart home device 1002, a smart home device 1003, a smart home device 1004, and binding release controls 1005 to 1008 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 bluetooth connection according to the unbinding signal. The gateway equipment receives a binding removing instruction sent by the client through Bluetooth connection, responds to the binding removing instruction, and removes the binding relation between the switch equipment and at least one piece of intelligent household equipment.
Wherein, the binding release signal can be realized as any one of the following conditions:
firstly, a client receives a binding release signal triggered on a binding release control corresponding to a switch device, wherein the binding release signal is used for indicating that the binding relationship between all intelligent household devices bound with the switch device and the switch device is released;
secondly, the client receives a binding removing signal triggered on a binding removing control corresponding to the intelligent household equipment, only the binding relation between the intelligent household equipment and the switch equipment is removed, and the binding relation between the switch equipment and other intelligent household equipment is not removed;
in summary, in the method provided in this embodiment, the gateway device receives the binding request sent by the switch device and the smart home device, binds the switch device and the smart home device according to the binding request, sends the binding information to the client, and the client determines the binding relationship according to the binding information and displays the binding interface.
Thirdly, the control of the client to the ZigBee sub-device is explained. In an embodiment provided by the application, the client is connected with the gateway device through bluetooth, and the client controls the switch device and the smart home device bound with the switch device through the gateway device. Based on the alternative embodiment shown in fig. 8, fig. 11 shows a flowchart of a ZigBee sub-device configuration method provided in another exemplary embodiment of the present application. In this embodiment, step 1101 to step 1105 are further included after step 804. For explanation, the method is applied to a ZigBee sub-device configuration system as an example, and the method includes:
in step 1101, the client receives a scene control signal for controlling the 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 by receiving a touch operation on the control of the switch device. Illustratively, as shown in fig. 12, a bound switch device 1210, an intelligent home device 1220, an intelligent home device 1230, and an intelligent home device 1240 are displayed in an apparatus control interface 1200, where a control 1201 corresponding to the switch device, a control 1202 corresponding to the intelligent home device 1220, a control 1204 corresponding to the intelligent home device 1230, and a control 1204 corresponding to the intelligent home device 1240, and when a client receives a touch operation on the control 1201, a scene control signal for controlling the switch device 1210 is generated.
Step 1102, the client sends a scene control command to the gateway device through the bluetooth 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 the smart home device bound to the switching device, and control the smart home device through the control instruction. The control instruction is used for indicating a control mode of at least one ZigBee sub-device in the binding relationship.
Step 1103, the gateway device receives a scene control instruction sent by the client through the bluetooth connection, where the scene control instruction includes a control instruction and a device identifier of the switching device.
And 1104, 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 1105, the gateway device controls the smart home device 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. In some embodiments, please refer to fig. 12, the control controls 1202 to 1204 of the smart home devices are all control controls indicating start and stop of corresponding devices. The control 1201 of the switch device 1210 is a control that indicates the overall start-stop state corresponding to the smart home devices 1220 to 1240. Optionally, the control logic of the control 1201 of the switching device 1210 is as follows:
firstly, when at least one of the smart home devices 1220 to 1240 is in a working state, the client sends a scene control instruction for controlling all of the three smart home devices 1220 to 1240 to stop working through the control of the control 1201;
secondly, when all of the smart home devices 1220 to 1240 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 through controlling the control 1201.
In summary, in the method provided in this embodiment, when a client receives a scene control signal for controlling an intelligent home device bound to a switch device, a scene control instruction is sent to a gateway device, the gateway determines an intelligent home device to be controlled according to a device identifier of the switch device in the scene control instruction, and controls a corresponding intelligent home device through the control instruction, so that when the client is in a non-WiFi network environment, connection between the gateway device and the client is achieved, and when the gateway device is connected to multiple ZigBee sub devices at the same time, centralized control after binding can be performed on the multiple ZigBee sub devices at the same time, and the control efficiency of the client on the ZigBee sub devices when the client is in the non-WiFi network environment is further improved.
Fig. 13 shows a process schematic diagram of a configuration method of ZigBee and ZigBee sub-device according to another embodiment of the present application, which is described by taking as an example that the method is applied to a ZigBee sub-device configuration system, where the ZigBee sub-device configuration system includes a client, a gateway device, a ZigBee scene switch, and other ZigBee sub-devices that have been connected to the gateway. The method comprises the following steps:
Before the gateway establishes the binding relationship between the ZigBee scene switch and other ZigBee sub-devices that have already connected to the gateway, the ZigBee scene switch and other ZigBee sub-devices that have already connected to the gateway both execute step 1302 and step 1303.
In step 1304, the client establishes a connection with the gateway via bluetooth and authenticates the connection.
Optionally, steps 1304 and 1305 are the bidirectional authentication procedure between the client and the gateway device.
After the bidirectional authentication process indicated in the steps 1304 and 1305 is successful, that is, the bidirectional authentication is successful, the client and the gateway device are connected through bluetooth.
In step 1307, the gateway device synchronizes the binding to the client.
The binding relationship is bound for the gateway, and after binding, the gateway device sends device binding information to the client.
Optionally, the client generates a corresponding space on the client interface corresponding to the binding relationship.
In step 1309, the client may operate to unbind the binding relationship.
This step indicates that the client can release the binding.
At step 1310, the gateway device processes the control commands for the client.
The step indicates that the gateway equipment can 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-WiFi network environment.
Fig. 14 shows a block diagram of a configuration apparatus of a ZigBee sub-device according to an exemplary embodiment of the present application, where the apparatus includes:
an establishing module 1401, configured to establish a bluetooth connection with a client, where the bluetooth connection is established when the client is not in a WiFi network environment;
a receiving module 1402, configured to receive, in response to receiving a device addition instruction sent by the client through the bluetooth connection, an access signal sent by the ZigBee sub device through a ZigBee network;
a sending module 1403, configured to send, according to the access signal, device configuration information to the client through the bluetooth connection, where the device configuration information includes a device identifier of the ZigBee sub device, and the device configuration information is used to indicate that a configuration item for controlling the ZigBee sub device is added to the client.
In an optional embodiment, the ZigBee sub-device includes at least one switching device and at least one smart home device;
a receiving module 1402, configured to respond to a first binding request sent by the switching device and a second binding request sent by at least one piece of smart home equipment that are respectively received through the ZigBee network within a preset time interval, and bind the switching device and the at least one piece of smart home equipment;
a sending module 1403, configured to send device binding information to the client through the bluetooth connection, where the device binding information includes a binding relationship between the switching device and at least one piece of smart home equipment, and the device binding information is used to indicate that the client stores the binding relationship between the switching device and at least one piece of smart home equipment.
In an optional embodiment, the receiving module 1402 is configured to receive, through the ZigBee network, the first binding request sent by the switch device, where the first binding request is a request generated when a pressing operation is received on a binding control of the switch device, and the first binding request further includes a device number corresponding to a pressing duration of the pressing operation;
a receiving module 1402, configured to receive, within the preset time interval, the second binding request sent by at least one smart home device through the ZigBee network;
a binding module 1404, configured to bind the switch device with at least one piece of smart home device in response to that the number of devices is greater than or equal to the number of second binding requests.
In an optional embodiment, the receiving module 1402 is configured to receive a scene control instruction sent by the client through the bluetooth connection, where the scene control instruction includes a control instruction and a device identifier of the switch device;
the apparatus further includes a binding module 1404, configured to determine, according to the device identifier of the switch device, at least one smart home device bound to the switch device;
a control module 1405, configured to control at least one smart home device bound to the switch device according to the control instruction.
In an optional embodiment, the receiving module 1402 is configured to receive a binding release instruction sent by the client through the bluetooth connection;
the apparatus further includes a releasing module 1406, configured to, in response to the binding releasing instruction, release the binding relationship between the switch device and at least one of the smart home devices.
In an optional embodiment, the receiving module 1401 is configured to receive a distribution network control signal triggered by a distribution network control operation;
an establishing module 1401, configured to establish a bluetooth distribution network connection with the client according to the distribution network control signal;
the device also comprises an authentication module 1407, which is used for performing bidirectional authentication with the client through the Bluetooth distribution network connection;
an establishing module 1401, configured to establish the bluetooth connection with the client in response to a successful bidirectional authentication.
Fig. 15 shows a block diagram of a configuration apparatus of a ZigBee sub-device of ZigBee according to an exemplary embodiment of the present application, where the apparatus includes:
a determining module 1501, configured to determine a current network environment;
an establishing module 1502, configured to establish a bluetooth connection with a gateway device in response to not being in a WiFi network environment currently;
a sending module 1503, configured to send a device adding instruction to the gateway device through the bluetooth connection, where the device adding instruction is used to instruct the gateway device to receive an access signal sent by the ZigBee sub device through a ZigBee network;
a receiving module 1504, configured to receive device configuration information sent by the gateway device through the bluetooth connection, where the device configuration information includes a device identifier of the ZigBee sub device;
an adding module 1505 for adding configuration items for controlling the ZigBee sub-devices according to the device configuration information.
In an optional embodiment, the ZigBee sub-device includes at least one switching device and at least one smart home device;
a receiving module 1504, configured to receive device binding information sent by the gateway device through the bluetooth connection, where the device binding information includes a binding relationship between the switch device and at least one smart home device;
the apparatus further includes a storage module 1506, configured to store the binding relationship between the switching device and at least one smart home device according to the device binding information.
In an alternative embodiment, the receiving module 1504 is configured to receive a scene control signal for controlling the switching device;
a sending module 1503, configured to send a scene control instruction to the gateway device through the bluetooth connection according to the scene control signal, where the scene control instruction includes a control instruction and a device identifier of the switch device, and the scene control instruction is used to instruct the gateway device to determine at least one smart home device bound to the switch device, and control the at least one smart home device according to the control instruction.
In an optional embodiment, the receiving module 1504 is configured to receive a binding release signal triggered on a binding release control, where the binding release signal is used to instruct to release the binding relationship between the switch device and at least one of the smart home devices;
the sending module 1503 is configured to send a binding release instruction to the gateway device through the bluetooth connection according to the binding release signal, where the binding release instruction is used to instruct the gateway device to release the binding relationship between the switch device and at least one smart home device.
In an optional embodiment, the display module 1507 is configured to display, in response to the WiFi network environment not being currently in the WiFi network environment, distribution network mode indication information, where the distribution network mode indication information is used to indicate that a distribution network is completed through a candidate distribution network mode, where the candidate distribution network mode includes a bluetooth distribution network mode;
a receiving module 1504, configured to receive a selection signal for selecting the bluetooth distribution network mode;
the apparatus further comprises a starting module 1508, configured to start bluetooth scanning according to the selection signal;
the receiving module 1504 is configured to establish a bluetooth connection with the gateway device in response to receiving the bluetooth connection signal broadcast by the gateway device.
In an optional embodiment, the establishing module 1502 is configured to establish a bluetooth distribution network connection with the gateway device in response to receiving the bluetooth connection signal broadcast by the gateway device;
the device also comprises an authentication module 1509, which is used for performing bidirectional authentication with the gateway equipment through the Bluetooth distribution network connection;
and responding to the success of the bidirectional authentication, and establishing the Bluetooth connection with the gateway equipment.
It should be noted that: the configuration device of ZigBee sub-device of ZigBee provided in the above embodiment is exemplified by only dividing each functional module, and in practical application, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
Fig. 16 shows a schematic structural diagram of a terminal for performing a configuration method of a ZigBee sub-device according to an exemplary embodiment of the present application, where the terminal includes:
the processor 1601 includes one or more processing cores, and the processor 1601 executes various functional applications and data processing by executing software programs and modules.
The receiver 1602 and the transmitter 1603 may be implemented as one communication component, which may be a communication chip. Optionally, the communication component may implement a bluetooth connection as well as a ZigBee connection. That is, the transmitter 1603 may be used to transmit a bluetooth signal or a ZigBee signal, and the receiver 1602 may be used to receive a bluetooth signal or a ZigBee signal.
The memory 1604 is connected to the processor 1601 by a bus 1605.
The memory 1604 may be used to store at least one instruction that the processor 1601 is configured to execute to implement various steps in the above-described method embodiments.
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 configuration method of the ZigBee sub-device provided by each method embodiment. It should be noted that the gateway device may be a gateway device as provided in fig. 17 below.
Referring to fig. 17, 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 apparatus 1700 includes a Central Processing Unit (CPU) 1701, a system Memory 1704 including a Random Access Memory (RAM) 1702 and a Read-Only Memory (ROM) 1703, and a system bus 1705 connecting the system Memory 104 and the CPU 1701. The gateway device 1700 also includes a basic input/output (I/O) System 106 that facilitates the transfer of information between various devices within the computer, and a mass storage device 1707 for storing an operating System 1713, application programs 1714, and other program modules 1715.
The basic input/output system 1706 includes a display 1708 for displaying information and an input device 1709 such as a mouse, keyboard, etc. for user input of information. Wherein a display 1708 and an input device 1709 are connected to the central processing unit 1701 via an input-output controller 1710 connected to the system bus 1705. The basic input/output system 1706 may also include an input/output controller 1710 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input-output controller 1710 may also provide output to a display screen, a printer, or other type of output device.
The mass storage device 1707 is connected to the central processing unit 1701 through a mass storage controller (not shown) connected to the system bus 1705. The mass storage device 1707 and its associated computer-readable media provide non-volatile storage for the gateway device 1700. That is, the mass storage device 1707 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 1704 and mass storage device 1707 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 1701, the one or more programs containing instructions for implementing the configuration method of the ZigBee sub-device described above, and the central processing unit 1701 executes the one or more programs implementing the configuration method of the ZigBee sub-device provided by the various method embodiments described above.
According to various embodiments of the present application, gateway device 1700 may also operate with remote computers connected to a network through a network, such as the Internet. That is, the gateway device 1700 may connect to the network 1712 through the network interface unit 1711 connected to the system bus 1705, or may connect to another type of network or a remote computer system (not shown) using the network interface unit 1711. Optionally, in this embodiment of the application, the gateway device 1700 may be connected to a ZigBee network through the network interface unit 1711, and optionally, the gateway device 1700 may also establish a connection with another device through bluetooth.
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 carrying out the configuration method of the ZigBee sub-device provided by the embodiment of the application.
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 configuration 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 configuration method of Zigbee and ZigBee sub-equipment is applied to gateway equipment, and is characterized in that the method comprises the following steps:
establishing a Bluetooth connection with a client, wherein the Bluetooth connection is established when the client is not in a wireless fidelity (WiFi) network environment;
receiving an access signal sent by the ZigBee sub-device through a ZigBee network in response to receiving a device adding instruction sent by the client through the Bluetooth connection;
and sending device configuration information to the client through the Bluetooth connection according to the access signal, wherein the device configuration information comprises a device identifier of the ZigBee sub-device, and the device configuration information is used for indicating that a configuration item for controlling the ZigBee sub-device is added in the client.
2. The method according to claim 1, wherein the ZigBee sub-devices comprise at least one switch device and at least one smart home device;
the method further comprises the following steps:
in response to the fact that a first binding request sent by the switch device and a second binding request sent by at least one piece of intelligent household equipment are respectively received through the ZigBee network within a preset time interval, the switch device and the at least one piece of intelligent household equipment are bound;
and sending equipment binding information to the client through the Bluetooth 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 equipment binding information is used for indicating the client to store the binding relationship between the switch equipment and at least one piece of intelligent household equipment.
3. The method according to claim 2, wherein the binding the switch device with at least one smart home device in response to receiving a first binding request sent by the switch device and a second binding request sent by at least one smart home device through the ZigBee network within a preset time interval, respectively, comprises:
receiving the first binding request sent by the switch device through the ZigBee network, wherein the first binding request is a request generated when a press operation is received on a binding control of the switch device, and the first binding request also comprises the number of devices corresponding to the press duration of the press operation;
receiving the second binding request sent by at least one piece of intelligent household equipment through the ZigBee network within the preset time interval;
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 2, further comprising:
receiving a scene control instruction sent by the client through the Bluetooth 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.
5. The method according to any one of claims 1 to 4, wherein the establishing the Bluetooth connection with the client comprises:
receiving a distribution network control signal triggered by distribution network control operation;
establishing Bluetooth distribution network connection with the client according to the distribution network control signal;
performing bidirectional authentication between the Bluetooth distribution network connection and the client;
and responding to successful bidirectional authentication, and establishing the Bluetooth connection with the client.
6. A configuration method of Zigbee and ZigBee sub-equipment is applied to a client, and is characterized in that the method comprises the following steps:
determining the current network environment;
responding to the current situation that the gateway equipment is not in the wireless fidelity WiFi network environment, and establishing Bluetooth connection with the gateway equipment;
sending a device adding instruction to the gateway device through the Bluetooth connection, wherein the device adding instruction is used for instructing the gateway device to receive an access signal sent by the ZigBee sub-device through a ZigBee network;
receiving device configuration information sent by the gateway device through the Bluetooth connection, wherein the device configuration information comprises a device identifier of the ZigBee sub-device;
and adding a configuration item for controlling the ZigBee sub-equipment according to the equipment configuration information.
7. The method according to claim 6, wherein the ZigBee sub-devices comprise at least one switch device and at least one smart home device;
the method further comprises the following steps:
receiving device binding information sent by the gateway device through the Bluetooth connection, wherein the device binding information comprises a binding relationship between the switching device and at least one piece of intelligent household equipment;
and storing the binding relationship between the switch equipment and at least one piece of intelligent household equipment according to the equipment binding information.
8. The method of claim 7, further comprising:
receiving a scene control signal that controls the switching device;
and sending a scene control instruction to the gateway device through the Bluetooth connection according to the scene control signal, wherein the scene control instruction comprises a control instruction and a device identifier of the switch device, and the scene control instruction is used for instructing the gateway device to determine at least one intelligent home device bound with the switch device and control the at least one intelligent home device according to the control instruction.
9. The method of claim 7, further comprising:
receiving a binding release signal triggered on a binding release control, wherein the binding release signal is used for indicating that the binding relationship between the switch equipment and at least one piece of intelligent household equipment is released;
and sending a binding removing instruction to the gateway equipment through the Bluetooth connection according to the binding removing signal, wherein the binding removing instruction is used for indicating the gateway equipment to remove the binding relation between the switch equipment and at least one piece of intelligent household equipment.
10. The method of any of claims 6 to 9, wherein said establishing said bluetooth connection with said gateway device in response to receiving a bluetooth connection signal broadcast by said gateway device comprises:
responding to the received Bluetooth connection signal broadcasted by the gateway equipment, and establishing Bluetooth distribution network connection with the gateway equipment;
performing bidirectional authentication between the Bluetooth distribution network connection and the gateway equipment;
and responding to the successful bidirectional authentication, and establishing the Bluetooth connection with the gateway equipment.
11. A configuration system of ZigBee and ZigBee sub-equipment is characterized in that the system comprises a client, gateway equipment and the ZigBee sub-equipment:
the client is used for determining the current network environment; establishing a Bluetooth connection with the gateway device in response to not being in a wireless fidelity (WiFi) network environment; sending a device adding instruction to the gateway device through the Bluetooth connection;
the gateway device is used for receiving the device adding instruction sent by the client through the Bluetooth connection; receiving an access signal sent by the ZigBee sub-equipment through a ZigBee network according to the equipment adding instruction; sending device configuration information to the client through the Bluetooth connection according to the access signal, wherein the device configuration information comprises a device identifier of the ZigBee sub-device;
the client is also used for receiving the equipment configuration information sent by the gateway through the Bluetooth connection; and adding a configuration item for controlling the ZigBee sub-equipment according to the equipment configuration information.
12. A configuration device of Zigbee and ZigBee sub-equipment is characterized by comprising:
the system comprises an establishing module, a receiving module and a processing module, wherein the establishing module is used for establishing Bluetooth connection with a client, and the Bluetooth connection is established when the client is not in a wireless fidelity WiFi network environment;
the receiving module is used for responding to a device adding instruction sent by the client through the Bluetooth connection and receiving an access signal sent by the ZigBee sub device through a ZigBee network;
a sending module, configured to send device configuration information to the client through the bluetooth connection according to the access signal, where the device configuration information includes a device identifier of the ZigBee sub-device, and the device configuration information is used to add a configuration item for controlling the ZigBee sub-device in the client.
13. A configuration device of Zigbee and ZigBee sub-equipment is characterized by comprising:
the determining module is used for determining the current network environment;
the establishing module is used for responding to the situation that the gateway equipment is not in the wireless fidelity WiFi network environment currently and establishing Bluetooth connection with the gateway equipment;
the transmitting module is used for transmitting a device adding instruction to the gateway device through the Bluetooth connection, wherein the device adding instruction is used for indicating the gateway device to receive an access signal transmitted by the ZigBee sub-device through a ZigBee network;
a receiving module, configured to receive device configuration information sent by the gateway device through the bluetooth connection, where the device configuration information includes a device identifier of the ZigBee sub device;
and the adding module is used for adding configuration items for controlling the ZigBee sub-devices according to the device configuration information.
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 configuration method of ZigBee sub-device according to any one of claims 1 to 10.
15. A computer readable storage medium, characterized in that it has 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 configuration method of the ZigBee sub-device according to any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010297272.8A CN111478816B (en) | 2020-04-15 | 2020-04-15 | Method, system, device and medium for configuring Zigbee and ZigBee sub-equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010297272.8A CN111478816B (en) | 2020-04-15 | 2020-04-15 | Method, system, device and medium for configuring Zigbee and ZigBee sub-equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111478816A true CN111478816A (en) | 2020-07-31 |
CN111478816B CN111478816B (en) | 2023-04-07 |
Family
ID=71753492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010297272.8A Active CN111478816B (en) | 2020-04-15 | 2020-04-15 | Method, system, device and medium for configuring Zigbee and ZigBee sub-equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111478816B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112130461A (en) * | 2020-09-24 | 2020-12-25 | 珠海格力电器股份有限公司 | Smart home control method and device, storage medium and electronic device |
CN114143161A (en) * | 2021-11-25 | 2022-03-04 | 杭州萤石软件有限公司 | Equipment management method, device and system and electronic equipment |
WO2024260072A1 (en) * | 2023-06-20 | 2024-12-26 | 杭州萤石软件有限公司 | Device addition system, method and apparatus, and electronic device and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102769619A (en) * | 2012-07-20 | 2012-11-07 | 南京小网科技有限责任公司 | Method for automatically registering intelligent home appliance in network by one key |
CN104780154A (en) * | 2015-03-13 | 2015-07-15 | 小米科技有限责任公司 | Device binding method and device binding device |
CN105471686A (en) * | 2015-12-26 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Terminal control method, terminal control apparatus and system |
US20170108236A1 (en) * | 2015-04-03 | 2017-04-20 | Lucis Technologies Holding Limited | Environment control system |
CN108173724A (en) * | 2017-12-26 | 2018-06-15 | 陈占辉 | A kind of sharing method of the smart home device based on mobile terminal |
US20180317271A1 (en) * | 2017-04-27 | 2018-11-01 | Abb Schweiz Ag | Local connection establishment |
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 |
-
2020
- 2020-04-15 CN CN202010297272.8A patent/CN111478816B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102769619A (en) * | 2012-07-20 | 2012-11-07 | 南京小网科技有限责任公司 | Method for automatically registering intelligent home appliance in network by one key |
CN104780154A (en) * | 2015-03-13 | 2015-07-15 | 小米科技有限责任公司 | Device binding method and device binding device |
US20170108236A1 (en) * | 2015-04-03 | 2017-04-20 | Lucis Technologies Holding Limited | Environment control system |
CN105471686A (en) * | 2015-12-26 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Terminal control method, terminal control apparatus and system |
US20180317271A1 (en) * | 2017-04-27 | 2018-11-01 | Abb Schweiz Ag | Local connection establishment |
CN108173724A (en) * | 2017-12-26 | 2018-06-15 | 陈占辉 | A kind of sharing method of the smart home device based on mobile terminal |
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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112130461A (en) * | 2020-09-24 | 2020-12-25 | 珠海格力电器股份有限公司 | Smart home control method and device, storage medium and electronic device |
CN114143161A (en) * | 2021-11-25 | 2022-03-04 | 杭州萤石软件有限公司 | Equipment management method, device and system and electronic equipment |
CN114143161B (en) * | 2021-11-25 | 2024-05-31 | 杭州萤石软件有限公司 | Device management method, device and system and electronic device |
WO2024260072A1 (en) * | 2023-06-20 | 2024-12-26 | 杭州萤石软件有限公司 | Device addition system, method and apparatus, and electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111478816B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11979274B2 (en) | Network management method and apparatus | |
CN111490916B (en) | Method, system, device and medium for binding ZigBee sub-devices of ZigBee | |
CN112584364A (en) | Bluetooth network, communication method, device and storage medium thereof | |
CN111930020B (en) | Equipment control system, method, device, terminal and readable storage medium | |
CN105100190A (en) | Methods, devices and system for managing control relation of account and device | |
JP2017521968A (en) | Device binding method, apparatus, program, and recording medium | |
CN110996405A (en) | Earphone connection method, terminal, earphone box and computer readable storage medium | |
CN111478816A (en) | Method, system, device and medium for configuring Zigbee and ZigBee sub-equipment | |
CN104635501A (en) | Intelligent home control method and system | |
CN104348524A (en) | Binding method, center equipment and peripheral equipment | |
CN108306796B (en) | Intelligent home system, and information processing method and device of intelligent home equipment | |
CN103634657A (en) | Television and mobile terminal synchronous WIFI connection setup method and device | |
CN105553964A (en) | Method and apparatus for controlling Bluetooth device | |
CN111491351A (en) | Method and system for sensing online of WiFi terminal based on authentication information | |
CN112689316B (en) | Binding method and device of intelligent equipment, storage medium and electronic device | |
CN106648721A (en) | Method and device for upgrading software | |
WO2021248963A1 (en) | Home appliance, networking method therefor, control terminal, and computer storage medium | |
CN103327387A (en) | Television remote control method and system | |
CN116208796A (en) | Screen projection control method, screen projection control device, processor and screen projection system | |
CN115356937A (en) | Equipment control method, device, storage medium and electronic device | |
CN114301628A (en) | Smart home equipment authentication method, device, equipment, system and storage medium | |
CN105828253A (en) | Wireless connection control method and device in audio playing system | |
CN113794996A (en) | Device communication method, device control method, device communication apparatus, electronic device, and storage medium | |
CN104837216A (en) | Method and device for reconnecting intelligent terminal with wireless intelligent equipment | |
CN109525469B (en) | Networking method of intelligent household equipment and intelligent household equipment |
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: 20231127 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 |