CN108551413B - Intelligent household equipment binding method and device, gateway equipment and storage medium - Google Patents
Intelligent household equipment binding method and device, gateway equipment and storage medium Download PDFInfo
- Publication number
- CN108551413B CN108551413B CN201810258923.5A CN201810258923A CN108551413B CN 108551413 B CN108551413 B CN 108551413B CN 201810258923 A CN201810258923 A CN 201810258923A CN 108551413 B CN108551413 B CN 108551413B
- Authority
- CN
- China
- Prior art keywords
- gateway device
- gateway
- equipment
- real
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000012545 processing Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 abstract description 12
- 238000004891 communication Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000010408 sweeping Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- 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/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Selective Calling Equipment (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and a device for binding intelligent household equipment, gateway equipment and a storage medium, and relates to the field of intelligent household, wherein the method comprises the following steps: acquiring a first binding relationship of intelligent household equipment in a registration process; when detecting that the second binding relationship of the intelligent home equipment is stored, acquiring the real-time connection state of the intelligent home equipment in the first gateway equipment and the second gateway equipment; selecting a target gateway device; and determining that the target gateway equipment is the gateway equipment bound with the intelligent household equipment. When the main gateway device comprises more than one group of binding relations corresponding to the intelligent home devices, one gateway device is determined to be used as the gateway device bound with the intelligent home devices by acquiring the real-time connection state of the intelligent home devices in the bound gateway devices, and the binding between other gateway devices and the intelligent home devices is released, so that the gateway device for controlling the intelligent home devices is determined.
Description
Technical Field
The embodiment of the invention relates to the field of intelligent home, in particular to a method and a device for binding intelligent home equipment, gateway equipment and a storage medium.
Background
The intelligent household multi-gateway system is a system for controlling intelligent household equipment, and adopts a master-slave gateway architecture, namely the intelligent household multi-gateway system comprises master gateway equipment and slave gateway equipment.
When a new smart home device is to be added to the smart home multi-gateway system, gateway devices capable of controlling the smart home device are determined in the master gateway device and the slave gateway devices, the smart home device registers in the gateway devices, and the binding relationship between the gateway devices and the smart home device is stored in the master gateway device. When a user controls the smart home device, a control instruction is sent to the main gateway device through the mobile phone, and the main gateway device searches for a gateway device (such as a certain slave gateway device) which controls the smart home device in the stored binding relationship and then sends the control instruction to the gateway device. When the intelligent home equipment exits from the gateway equipment, if the gateway equipment is in an online state, the gateway equipment records the state of the intelligent home equipment as exit registration; and if the gateway equipment is not in the online state, the intelligent household equipment unilaterally exits the gateway equipment.
When the intelligent home equipment unilaterally exits from the gateway equipment, the binding relationship between the gateway equipment and the intelligent home equipment is recorded in the main gateway equipment, if the intelligent home equipment is continuously registered in other gateway equipment, two groups of binding relationships corresponding to the intelligent home equipment are correspondingly arranged in the main gateway equipment, and when a user controls the intelligent home equipment, the user cannot determine which gateway equipment is used for controlling the intelligent home equipment, so that the control failure of the intelligent home equipment is caused.
Disclosure of Invention
In order to solve the problem that in a multi-gateway system, when an intelligent home device exits from a gateway device, the gateway device does not receive information of the intelligent home device exiting from a register, so that the situation that one intelligent home device is bound with a plurality of gateway devices possibly occurs in the multi-gateway system, and the device control is disordered, the embodiment of the invention provides an intelligent home device binding method, an intelligent home device binding device, a gateway device and a storage medium. The technical scheme is as follows:
in a first aspect, a method for binding smart home devices is provided, where the method includes:
acquiring a first binding relationship of the intelligent home equipment, wherein the first binding relationship is used for indicating the intelligent home equipment to register in first gateway equipment in a multi-gateway system;
when detecting that a second binding relationship of the intelligent home equipment is stored, acquiring real-time connection states of the intelligent home equipment in the first gateway equipment and the second gateway equipment, wherein the second binding relationship is used for indicating the intelligent home equipment to register in the second gateway equipment in the multi-gateway system;
selecting one gateway device from the first gateway device and the second gateway device as a target gateway device according to the real-time connection state;
and determining that the target gateway equipment is the gateway equipment bound with the intelligent household equipment.
In an optional embodiment, selecting one gateway device from the first gateway device and the second gateway device as a target gateway device according to the real-time connection status includes:
and selecting the gateway equipment with the real-time connection state as the online state as target gateway equipment from the first gateway equipment and the second gateway equipment.
In an optional embodiment, the real-time connection state of the first gateway device is a first real-time state, and the real-time connection state of the second gateway device is a second real-time state;
selecting a gateway device with a real-time connection state as an online state as a target gateway device from a first gateway device and a second gateway device, comprising:
when the first real-time state is an online state and the second real-time state is an offline state, the first gateway device is used as a target gateway device;
or,
and when the first real-time state is an offline state and the second real-time state is an online state, the second gateway device is used as the target gateway device.
In an optional embodiment, the obtaining the real-time connection states of the smart home devices in the first gateway device and the second gateway device includes:
when the first gateway device is a slave gateway device, sending a first state updating instruction to the first gateway device, wherein the first state updating instruction is used for indicating the first gateway device to update the state corresponding to the intelligent home device; acquiring a real-time connection state of the intelligent home equipment in the first gateway equipment according to a feedback result of the first state updating instruction;
or,
and when the first gateway device is the main gateway device, acquiring the real-time connection state of the intelligent home device in the first gateway device.
In an optional embodiment, the obtaining the real-time connection states of the smart home devices in the first gateway device and the second gateway device includes:
when the second gateway device is a slave gateway device, sending a second state updating instruction to the second gateway device, wherein the second state updating instruction is used for indicating the second gateway device to update the state corresponding to the intelligent home device; acquiring the real-time connection state of the intelligent household equipment in the second gateway equipment according to the feedback result of the second state updating instruction;
or,
and when the second gateway device is the main gateway device, acquiring the real-time connection state of the intelligent household device in the second gateway device.
In an optional embodiment, the obtaining of the first binding relationship of the smart home device in the registration process includes:
receiving a first binding request sent by a first gateway device, wherein the first binding request comprises a first binding relationship;
or,
receiving a registration request of the intelligent home equipment, wherein the registration request is used for requesting the intelligent home equipment to be registered in the main gateway equipment; and determining the first binding relationship according to the registration request.
In an optional embodiment, after determining that the target gateway device is a gateway device bound to the smart home device, the method further includes:
and sending a device deleting instruction to non-target gateway devices in the first gateway device and the second gateway device, wherein the device deleting instruction is used for indicating the non-target gateway devices to delete the registration information of the intelligent home devices.
In a second aspect, an apparatus for binding smart home devices is provided, the apparatus comprising:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a first binding relationship of the intelligent home equipment, and the first binding relationship is used for indicating the intelligent home equipment to register in first gateway equipment in a multi-gateway system;
the acquisition module is further used for acquiring the real-time connection state of the intelligent home equipment in the first gateway equipment and the second gateway equipment when detecting that a second binding relationship of the intelligent home equipment is stored, wherein the second binding relationship is used for indicating the intelligent home equipment to register in the second gateway equipment in the multi-gateway system;
the selection module is used for selecting one gateway device from the first gateway device and the second gateway device as a target gateway device according to the real-time connection state;
and the determining module is used for determining that the target gateway equipment is the gateway equipment bound with the intelligent household equipment.
In a third aspect, a gateway device is provided, where the gateway device includes a processor and a memory, where the memory 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 the processor to implement the smart home device binding method in any one of the first aspect and optional embodiments of the foregoing embodiments of the present invention.
In a fourth 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 the smart home device binding method according to any one of the first aspect and optional embodiments of the foregoing embodiments of the present invention.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the related art, when the smart home device exits from the gateway device, the gateway device does not receive the information that the smart home device exits from the registration, which may cause a situation that one smart home device is bound to multiple gateway devices in the master gateway device, and a problem of device control confusion occurs.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an intelligent home multi-gateway system according to an exemplary embodiment of the present invention;
fig. 2 is a flowchart of a smart home device binding method according to an exemplary embodiment of the present invention;
fig. 3 is a flowchart of a smart home device binding method according to another exemplary embodiment of the present invention;
fig. 4 is a block diagram illustrating a structure of a smart home device binding apparatus according to an exemplary embodiment of the present invention;
fig. 5 is a schematic structural diagram of a gateway device according to an exemplary embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an intelligent home multi-gateway system according to an exemplary embodiment of the present invention. As shown in fig. 1, the smart home system includes: the system comprises a server 11, a gateway device 12, a communication network 13, an intelligent household device 14 and a terminal 15;
the server 11 is configured to receive information of the smart home devices 14 sent by the gateway device 12, and send the received information of the smart home devices 14 to the terminal 15, optionally, the server 11 may be a physical server, or may also be a cloud server, that is, a virtual server set in a cloud, and the server 11 may be one server, or may also be a set of servers composed of multiple servers.
The server 11 and the gateway device 12 are connected through a communication network 13, where the communication network 13 may be a wired network or a wireless network, and optionally, the communication network 13 may be at least one of a local area network, a metropolitan area network, and a wide area network.
The gateway device 12 is a device for controlling the smart home devices 14, and optionally, the gateway device 12 controls the smart home devices 14 through a communication technology, which may be a wireless communication technology or a wired communication technology, where the wireless communication technology may also be a short-range wireless communication technology (NFC), a ZigBee (violet protocol) technology, a Bluetooth technology, a WiFi (wireless local area network) technology, and the like.
Optionally, the gateway device 12 includes a master gateway device and a slave gateway device, and optionally, the gateway device 12 includes one master gateway device and at least one slave gateway device, where the number of slave gateway devices may be within a preset number range, such as: the number of slave gateway devices must not exceed 10. Illustratively, the smart home multi-gateway system shown in fig. 1 includes a master gateway device 121, a slave gateway device 122, and a slave gateway device 123.
The main gateway device 121 is configured to control the smart home devices 14 corresponding to the main gateway device 121, optionally, the smart home devices 14 may also be a smart home device group, as shown in fig. 1, the main gateway device 121 is configured to control the smart home device group 141 corresponding to the main gateway device 121, where the smart home device group 141 includes smart home devices 1411 and smart home devices 1412, for example: the main gateway device 121 is configured to control a corresponding smart home device group 141, where the smart home device group 141 includes an air conditioner and a television. Optionally, the main gateway device 121 is further configured to manage devices in the smart home multi-gateway system, such as: the corresponding relationship between the gateway device 12 and the smart home device 14 in the smart home multi-gateway system is stored, and illustratively, the corresponding relationship between the slave gateway device 122 and the smart home device 142, and the corresponding relationship between the gateway device 123 and the smart home device 143 are also stored in the master gateway device 121. Optionally, in this embodiment of the application, the main gateway device 121 is further configured to manage upgrading of the gateway device 12 in the smart home multi-gateway system.
The slave gateway device is configured to control the corresponding smart home devices 14, as shown in fig. 1, the slave gateway device 122 is configured to control the corresponding smart home devices 142, and the slave gateway device 123 is configured to control the corresponding smart home devices 143.
Optionally, the number of the smart home devices 14 controlled by each gateway device 12 is within a preset number range, and one smart home device 14 may be controlled by only one gateway device 12, that is, one smart home device 14 may be bound to only one gateway device 12.
The smart home devices 14 may be devices that can be registered in the gateway device 12, and optionally, the smart home devices 14 may include one or more devices, illustratively, as shown in fig. 1, the smart home devices 14 include smart home devices 141, smart home devices 142, and smart home devices 143, where the smart home devices 141 are devices controlled by the gateway device 121, and the smart home devices 141 further include smart home devices 1411 and smart home devices 1412. Optionally, the smart home device 14 may be at least one of an air conditioner, a television, a water heater, an air purifier, a sweeping robot, and a monitoring device.
The terminal 15 is a terminal device for interacting with a user. Optionally, the terminal 15 is configured to display the state of the smart home device 14 on a user interface, and control the smart home device 14 through the user interface, such as: the method includes the steps of starting the intelligent household equipment 14, closing the intelligent household equipment 14, changing parameters of the intelligent household equipment 14 and the like. Optionally, when the smart home device 14 is a smart home device group, the smart home device group includes a plurality of smart home devices, and the smart home devices in the smart home device group may be respectively displayed or controlled through the user interface. Optionally, the terminal 15 is a terminal device associated with the gateway device 12, that is, the terminal 15 and the gateway device 12 establish a binding relationship. Alternatively, the terminal 15 may be a mobile terminal, such as: at least one of a mobile phone, a tablet, an entrance guard interphone and a portable notebook computer.
The registration process of the smart home device is described with reference to fig. 1.
Firstly, a gateway device to be added to the smart home device needs to be selected, generally, after the smart home device is placed by a user, a gateway device capable of controlling the smart home device is selected from the gateway devices, the user adjusts the network access state of the gateway device, and after the network access state of the gateway device is adjusted to the network access allowed state, the smart home device is added to the gateway device whose network access allowed state is the gateway device, wherein the gateway device may be a master gateway device or a slave gateway device.
Firstly, registering the intelligent household equipment in the main gateway equipment;
the method comprises the steps that the intelligent home equipment is firstly added into the main gateway equipment, the main gateway equipment records the intelligent home equipment and sends registration information of the intelligent home equipment to a server, the registration information is used for indicating the server to store the binding relationship between the intelligent home equipment and the main gateway equipment, after the server receives the registration information and sends a binding success information to the main gateway equipment, the intelligent home equipment completes registration in the main gateway equipment.
Secondly, registering the intelligent household equipment in the slave gateway equipment;
the method comprises the steps that the intelligent home equipment is firstly added into the slave gateway equipment, the slave gateway equipment records the intelligent home equipment and then sends registration information of the intelligent home equipment to the master gateway equipment, the master gateway equipment feeds back registration confirmation information to the slave gateway equipment after receiving the registration information, the master gateway equipment stores the binding relationship between the slave gateway equipment and the intelligent home equipment, the master gateway equipment sends the binding relationship between the slave gateway equipment and the intelligent home equipment to a server, the server sends a binding success information to the master gateway equipment after receiving the binding relationship, and the intelligent home equipment completes registration in the slave gateway equipment.
The process of logging out the smart home device is described with reference to fig. 1.
Firstly, the intelligent household equipment is bound in the main gateway equipment;
the method comprises the steps that firstly, the intelligent home equipment quits from the main gateway equipment, the main gateway equipment records the quit of the intelligent home equipment and removes the binding with the intelligent home equipment, the main gateway equipment sends a unbinding message to a server, the server removes the binding relation between the main gateway equipment and the intelligent home equipment according to the received unbinding message and sends a successful unbinding message to the main gateway equipment, and therefore the intelligent home equipment finishes the quit of the quit in the main gateway equipment.
Secondly, the intelligent household equipment is bound in the slave gateway equipment;
the method comprises the steps that the intelligent home equipment firstly exits from the slave gateway equipment, the slave gateway equipment records the exit registration of the intelligent home equipment, then sends the exit registration message of the intelligent home equipment to the master gateway equipment, the master gateway equipment feeds back an exit confirmation message to the slave gateway equipment after receiving the exit registration message, the master gateway equipment deletes the binding relationship between the slave gateway equipment and the intelligent home equipment, the master gateway equipment sends the unbinding message of the slave gateway equipment and the intelligent home equipment to the server, the server sends the unbinding success message to the master gateway equipment after receiving the unbinding message, and the intelligent home equipment finishes the exit registration in the slave gateway equipment.
When the intelligent home equipment exits from the gateway equipment and the gateway equipment does not receive the exit registration message, that is, the intelligent home equipment unilaterally exits from the gateway equipment, the binding relationship between the gateway equipment and the intelligent home equipment is recorded in the main gateway equipment, if the intelligent home equipment continues to register in other gateway equipment, two groups of binding relationships corresponding to the intelligent home equipment correspond to the main gateway equipment, and when a user controls the intelligent home equipment, the user cannot determine which gateway equipment controls the intelligent home equipment, so that the control failure of the intelligent home equipment is caused.
In view of the above, the present invention provides a method for binding smart home devices, which is capable of determining one gateway device as a gateway device bound with a smart home device when a main gateway device includes more than one group of binding relationships corresponding to the smart home devices, and releasing the binding between other gateway devices and the smart home device, thereby determining the gateway device controlling the smart home device and ensuring the control of the smart home device.
Referring to fig. 2, fig. 2 is a flowchart of a method for binding smart home devices according to an exemplary embodiment of the present invention, and taking an example that the method for binding smart home devices is applied to a main gateway device of a smart home multi-gateway system shown in fig. 1, the method for binding smart home devices includes:
Optionally, the first binding relationship is used to indicate that the smart home device is registered in a first gateway device in the multi-gateway system.
Optionally, when the first binding relationship of the smart home device in the registration process is obtained, the method includes any one of the following two ways:
first, when a first gateway device is a slave gateway device, a master gateway device may receive a first binding request sent by the first gateway device, where the first binding request includes a first binding relationship, that is, the first binding request is used to request the smart home device to register in the first gateway device;
second, when the first gateway device is a main gateway device in the multi-gateway system, the main gateway device may receive a registration request sent by the smart home device, and determine a first binding relationship according to the registration request, where the registration request is used to request the smart home device to register in the main gateway device, that is, the first binding relationship is a binding relationship between the smart home device and the main gateway device.
The second binding relationship is used for indicating the intelligent household equipment to register in second gateway equipment in the multi-gateway system. Optionally, the process of registering the smart home device in the second gateway device is the same as the process of registering in the first gateway device, but it should be noted that when the first gateway device is a master gateway device, the second gateway device can only be a slave gateway device, and when the first gateway device is a slave gateway device, the second gateway device may be either a master gateway device or a slave gateway device, that is, only one master gateway device in the multi-gateway system may be provided, and there may be a plurality of slave gateway devices.
It is noted that the first gateway device and the second gateway device are in the same multi-gateway system.
The real-time connection state is used for indicating a connection state of the smart home device in the gateway device, and optionally, the real-time connection state is used for determining the gateway device capable of controlling the smart home device.
Optionally, when the smart home device unilaterally exits from a certain gateway device, the gateway device cannot be unbound to the smart home device, and when the gateway device is restarted, the state of the smart home device in the gateway device is an offline state, that is, the smart home device still maintains a binding relationship with the gateway device, but the gateway device cannot control the smart home device, which is equivalent to that the smart home device is in an uncontrollable state in the gateway device.
Optionally, when the second binding relationship of the smart home device is not stored, the smart home device may register in the first gateway device, and feed back a registration success instruction to the first gateway device.
Optionally, the real-time connection status includes an online status or an offline status.
Optionally, in the first gateway device and the second gateway device, a gateway device with a real-time connection state being an online state is selected as a target gateway device, that is, the target gateway device is the first gateway device, or the target gateway device is the second gateway device.
Optionally, the real-time connection state of the first gateway device is determined as a first real-time state, the connection state of the second gateway device is determined as a second real-time state, and when the first real-time state is an online state and the second real-time state is an offline state, the first gateway device is determined as a target gateway device; or when the first real-time state is an offline state and the second real-time state is an online state, determining the second gateway device as the target gateway device.
And 204, determining that the target gateway equipment is the gateway equipment bound with the intelligent household equipment.
And determining that the target gateway device is the gateway device bound with the intelligent home device, namely, the target gateway device can control the intelligent home device.
In summary, according to the method for binding smart home devices provided in this embodiment, when a smart home device is bound to multiple gateway devices (a master gateway device or a slave gateway device), by acquiring real-time connection states of the smart home device in the bound multiple gateway devices, when a real-time connection state of a certain gateway device indicates that the gateway device can control the smart home device, the gateway device is used as a gateway device bound to the smart home device, and the binding between other gateway devices and the smart home device is released, so as to determine the gateway device that controls the smart home device.
The method for binding smart home devices provided in the embodiment of the present invention is described with reference to the smart home multi-gateway system shown in fig. 1, and fig. 3 is a flowchart of the method for binding smart home devices provided in another exemplary embodiment of the present invention, and taking application of the method for binding smart home devices in a main gateway device of the smart home multi-gateway system shown in fig. 1 as an example, the method for binding smart home devices includes:
Optionally, the first binding relationship is used to indicate that the smart home device is registered in a first gateway device in the multi-gateway system.
Optionally, when the first binding relationship of the smart home device in the registration process is obtained, the method includes any one of the following two ways:
first, when a first gateway device is a slave gateway device, a master gateway device may receive a first binding request sent by the first gateway device, where the first binding request includes a first binding relationship, that is, the first binding request is used to request the smart home device to register in the first gateway device;
second, when the first gateway device is a main gateway device in the multi-gateway system, the main gateway device may receive a registration request sent by the smart home device, and determine a first binding relationship according to the registration request, where the registration request is used to request the smart home device to register in the main gateway device, that is, the first binding relationship is a binding relationship between the smart home device and the main gateway device.
The second binding relationship is used for indicating the intelligent household equipment to register in second gateway equipment in the multi-gateway system. Optionally, the process of registering the smart home device in the second gateway device is the same as the process of registering in the first gateway device, but it should be noted that when the first gateway device is a master gateway device, the second gateway device can only be a slave gateway device, and when the first gateway device is a slave gateway device, the second gateway device may be either a master gateway device or a slave gateway device, that is, only one master gateway device in the multi-gateway system may be provided, and there may be a plurality of slave gateway devices.
The real-time connection state is used for indicating a connection state of the smart home device in the gateway device, and optionally, the real-time connection state is used for determining the gateway device capable of controlling the smart home device.
Optionally, the obtaining of the real-time connection state of the first gateway device includes any one of the following two cases:
firstly, when the first gateway device is a slave gateway device, a first state updating instruction is sent to the first gateway device, and a real-time connection state of the intelligent home device in the first gateway device is obtained according to a feedback result of the first state updating instruction, wherein the first state updating instruction is used for indicating the first gateway device to update a state corresponding to the intelligent home device.
Optionally, obtaining the real-time connection state of the smart home device in the first gateway device according to the feedback result of the first state updating instruction is further classified into any one of the following cases:
1.1 when the state fed back to the main gateway device by the first gateway device according to the first state updating instruction is an online state, the real-time connection state of the intelligent home device in the first gateway device is an online state; when the state fed back to the main gateway device by the first gateway device according to the first state updating instruction is an offline state, the real-time connection state of the intelligent home device in the first gateway device is the offline state;
1.2 when the state fed back to the main gateway device by the first gateway device according to the first state updating instruction is an online state, the real-time connection state of the intelligent home device in the first gateway device is an online state; when the first gateway device does not feed back the connection state to the main gateway device, the real-time connection state of the smart home device in the first gateway device is an offline state.
And secondly, when the first gateway device is the main gateway device, acquiring the real-time connection state of the intelligent home device in the first gateway device.
When the first gateway device is the main gateway device, that is, the execution subject of this embodiment is the first gateway device, that is, the first gateway device may directly obtain the real-time connection state of the smart home device.
Optionally, the obtaining of the real-time connection state of the second gateway device includes any one of the following two cases:
firstly, when the second gateway device is the slave gateway device, a second state updating instruction is sent to the second gateway device, and the real-time connection state of the intelligent home device in the second gateway device is obtained according to the feedback result of the second state updating instruction, wherein the second state updating instruction is used for indicating the second gateway device to update the state corresponding to the intelligent home device.
Optionally, obtaining the real-time connection state of the smart home device in the second gateway device according to the feedback result of the second state updating instruction is further classified into any one of the following cases:
2.1 when the state fed back to the main gateway device by the second gateway device according to the second state updating instruction is an online state, the real-time connection state of the intelligent home device in the second gateway device is an online state; when the state fed back to the main gateway device by the second gateway device according to the second state updating instruction is an offline state, the real-time connection state of the intelligent home device in the second gateway device is the offline state;
2.2 when the state fed back to the main gateway device by the second gateway device according to the second state updating instruction is an online state, the real-time connection state of the intelligent home device in the second gateway device is an online state; when the second gateway device does not feed back the connection state to the main gateway device, the real-time connection state of the smart home device in the second gateway device is an offline state.
And secondly, when the second gateway device is the main gateway device, acquiring the real-time connection state of the intelligent home device in the second gateway device.
When the second gateway device is the main gateway device, that is, the execution subject of this embodiment is the second gateway device, that is, the second gateway device may directly obtain the real-time connection state of the smart home device.
And step 304, selecting the gateway device with the real-time connection state as the online state as the target gateway device from the first gateway device and the second gateway device.
Optionally, the real-time connection status includes an online status or an offline status.
Optionally, only one gateway device with the real-time connection status being the online status is provided, that is, the gateway device with the real-time connection status being the online status is the first gateway device or the second gateway device.
Optionally, the real-time connection state of the first gateway device is determined as a first real-time state, the connection state of the second gateway device is determined as a second real-time state, and when the first real-time state is an online state and the second real-time state is an offline state, the first gateway device is determined as a target gateway device; or when the first real-time state is an offline state and the second real-time state is an online state, determining the second gateway device as the target gateway device.
And 305, determining that the target gateway device is a gateway device bound with the intelligent household device.
And determining that the target gateway device is the gateway device bound with the intelligent home device, namely, the target gateway device can control the intelligent home device.
Optionally, the delete device instruction is used to instruct the non-target gateway device to delete the registration information corresponding to the smart home device.
Optionally, the non-target gateway device is a gateway device that is not a target gateway device in the first gateway device and the second gateway device.
Optionally, the master gateway device stores the binding relationship between the target gateway device and the smart home device, and sends a registration success instruction to the target gateway device, where the registration success instruction is used to indicate that the smart home device is successfully registered in the target gateway device.
And 307, when the second binding relationship of the intelligent household equipment is not stored, sending a registration success instruction to the first gateway equipment.
Optionally, when the second binding relationship of the smart home device is not stored in the main gateway device, it indicates that the smart gateway device is not bound to the multiple gateway devices at the same time, and then sends a registration success instruction to the first gateway device, and stores the binding relationship between the first gateway device and the smart home device.
In summary, according to the method for binding smart home devices provided in this embodiment, when a smart home device is bound to multiple gateway devices (a master gateway device or a slave gateway device), by acquiring real-time connection states of the smart home device in the bound multiple gateway devices, when a real-time connection state of a certain gateway device is connected, it indicates that the gateway device can control the smart home device, the gateway device is used as a gateway device bound to the smart home device, and the binding between other gateway devices and the smart home device is released, so as to determine the gateway device that controls the smart home device.
In the method for binding the smart home devices provided in this embodiment, the gateway device whose real-time connection state is an online state is determined as the target gateway device in the first gateway device and the second gateway device, and the target gateway device is used as the gateway device bound to the smart home devices, so that the gateway device bound to the smart home devices is ensured as the gateway device whose real-time connection state is the online state, that is, the smart home devices can be controlled by the gateway device, and a user is ensured to control the smart home devices through the gateway device.
Fig. 4 is a block diagram of a structure of an intelligent home device binding apparatus according to an exemplary embodiment of the present invention, and as shown in fig. 4, the intelligent home device binding apparatus includes: an acquisition module 41, a selection module 42 and a determination module 43;
the acquiring module 41 is configured to acquire a first binding relationship of the smart home device, where the first binding relationship is used to indicate that the smart home device is registered in a first gateway device in the multi-gateway system;
the obtaining module 41 is further configured to, when detecting that a second binding relationship of the smart home device has been stored, obtain a real-time connection state of the smart home device in the first gateway device and the second gateway device, where the second binding relationship is used to indicate that the smart home device is registered in the second gateway device in the multi-gateway system;
a selecting module 42, configured to select one gateway device from the first gateway device and the second gateway device as a target gateway device according to the real-time connection state;
and the determining module 43 is configured to determine that the target gateway device is a gateway device bound with the smart home device.
In an optional embodiment, the selecting module 42 is further configured to select, as the target gateway device, a gateway device with a real-time connection status being an online status from the first gateway device and the second gateway device.
In an optional embodiment, the real-time connection state of the first gateway device is a first real-time state, and the real-time connection state of the second gateway device is a second real-time state;
the selecting module 42 is further configured to, when the first real-time status is an online status and the second real-time status is an offline status, take the first gateway device as a target gateway device;
the selecting module 42 is further configured to use the second gateway device as the target gateway device when the first real-time status is an offline status and the second real-time status is an online status.
In an alternative embodiment, the obtaining module 41 includes:
the first sending unit is used for sending a first state updating instruction to the first gateway device when the first gateway device is the slave gateway device, wherein the first state updating instruction is used for indicating the first gateway device to update the state corresponding to the intelligent home device; acquiring a real-time connection state of the intelligent home equipment in the first gateway equipment according to a feedback result of the first state updating instruction;
the first obtaining unit is used for obtaining the real-time connection state of the intelligent home equipment in the first gateway equipment when the first gateway equipment is the main gateway equipment.
In an alternative embodiment, the obtaining module 41 includes:
the second sending unit is used for sending a second state updating instruction to the second gateway device when the second gateway device is the slave gateway device, and the second state updating instruction is used for indicating the second gateway device to update the state corresponding to the intelligent home device; acquiring the real-time connection state of the intelligent household equipment in the second gateway equipment according to the feedback result of the second state updating instruction;
and the second obtaining unit is used for obtaining the real-time connection state of the intelligent home equipment in the second gateway equipment when the second gateway equipment is the main gateway equipment.
In an alternative embodiment, the obtaining module 41 includes:
the gateway device comprises a receiving unit, a sending unit and a processing unit, wherein the receiving unit is used for receiving a first binding request sent by a first gateway device, and the first binding request comprises a first binding relationship;
the receiving unit is further used for receiving a registration request of the intelligent home equipment, wherein the registration request is used for requesting the intelligent home equipment to be registered in the main gateway equipment; and determining the first binding relationship according to the registration request.
In an optional embodiment, the apparatus further comprises:
a sending module for sending the data to the first gateway device and the second gateway device
The non-target gateway device sends a device deleting instruction, and the device deleting instruction is used for instructing the non-target gateway device to delete the registration information of the intelligent home device.
In summary, when the smart home device is bound to multiple gateway devices (a master gateway device or a slave gateway device), the smart home device binding apparatus provided in this embodiment indicates that the gateway device can control the smart home device by acquiring the real-time connection state of the smart home device in the bound multiple gateway devices, and when the real-time connection state of a certain gateway device is connected, the gateway device is used as the gateway device bound to the smart home device, and the binding between other gateway devices and the smart home device is released, so as to determine the gateway device that controls the smart home device.
According to the intelligent home device binding device provided by the embodiment, the gateway device with the real-time connection state of the intelligent home device being the online state is determined to be the target gateway device in the first gateway device and the second gateway device, and the target gateway device is used as the gateway device bound with the intelligent home device, so that the gateway device bound with the intelligent home device is ensured to be the gateway device with the real-time connection state being the online state, that is, the intelligent home device can be controlled through the gateway device, and the user is ensured to control the intelligent home device through the gateway device.
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 intelligent home device binding method provided by the above method embodiments. It should be noted that the gateway device may be a gateway device as provided in fig. 5 below.
Referring to fig. 5, a schematic structural diagram of a gateway device according to an exemplary embodiment of the present application is shown. Specifically, the method comprises the following steps: the gateway device includes a processor 510, a memory 520, and a communication interface 530.
The processor 510 is connected to the memory 520 and the communication interface 530 through buses, respectively.
Optionally, memory 520 may store an operating system 522, and application modules 524 required for at least one function. Optionally, the application module 524 includes: a receiving unit 524a, a processing unit 524b and a transmitting unit 524 c. Wherein, the receiving unit 524a is configured to implement the steps related to receiving; the processing unit 524b is used to implement steps related to calculations or processing; the transmitting unit 524c is used to implement the steps related to the transmission.
Further, the memory 520 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Optionally, at least one instruction, at least one program, a code set, or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the smart home device binding method described in fig. 1 to 3.
Those skilled in the art will appreciate that the configuration shown in fig. 5 does not constitute a limitation of the gateway device described above, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
An embodiment of the present application further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor 510 to implement the smart home device binding method as described in any one of fig. 1 to fig. 3.
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 has at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by the processor to implement the smart home device binding method as described in any one of fig. 1 to 3.
Optionally, the computer-readable storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD), or an optical disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where 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 the present application, 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 (10)
1. A smart home device binding method is characterized by comprising the following steps:
acquiring a first binding relationship of the intelligent home equipment, wherein the first binding relationship is used for indicating the intelligent home equipment to register in first gateway equipment in a multi-gateway system;
when a second binding relationship of the intelligent home equipment is detected to be stored, acquiring a real-time connection state of the intelligent home equipment in the first gateway equipment and a second gateway equipment in the multi-gateway system, wherein the second binding relationship is used for indicating the intelligent home equipment to register in the second gateway equipment in the multi-gateway system;
selecting one gateway device from the first gateway device and the second gateway device as a target gateway device according to the real-time connection state;
and determining that the target gateway equipment is the gateway equipment bound with the intelligent household equipment.
2. The method of claim 1, wherein the selecting one gateway device from the first gateway device and the second gateway device as a target gateway device according to the real-time connection status comprises:
and selecting the gateway equipment with the real-time connection state as the target gateway equipment from the first gateway equipment and the second gateway equipment.
3. The method of claim 2, wherein the real-time connection status of the first gateway device is a first real-time status and the real-time connection status of the second gateway device is a second real-time status;
the selecting, as the target gateway device, a gateway device whose real-time connection state is an online state from the first gateway device and the second gateway device includes:
when the first real-time state is the online state and the second real-time state is the offline state, taking the first gateway device as the target gateway device;
or,
and when the first real-time state is the offline state and the second real-time state is the online state, taking the second gateway device as the target gateway device.
4. The method according to any one of claims 1 to 3, wherein the obtaining of the real-time connection state of the smart home device in the first gateway device and the second gateway device includes:
when the first gateway device is a slave gateway device, sending a first state updating instruction to the first gateway device, wherein the first state updating instruction is used for indicating the first gateway device to update a state corresponding to the intelligent home device; acquiring the real-time connection state of the intelligent home equipment in the first gateway equipment according to the feedback result of the first state updating instruction;
or,
and when the first gateway device is a main gateway device, acquiring the real-time connection state of the intelligent home device in the first gateway device.
5. The method according to any one of claims 1 to 3, wherein the obtaining of the real-time connection state of the smart home device in the first gateway device and the second gateway device includes:
when the second gateway device is a slave gateway device, sending a second state updating instruction to the second gateway device, where the second state updating instruction is used to instruct the second gateway device to update a state corresponding to the smart home device; acquiring the real-time connection state of the intelligent home equipment in the second gateway equipment according to the feedback result of the second state updating instruction;
or,
and when the second gateway device is a main gateway device, acquiring the real-time connection state of the intelligent home device in the second gateway device.
6. The method according to any one of claims 1 to 3, wherein the obtaining the first binding relationship of the smart home device includes:
receiving a first binding request sent by the first gateway device, wherein the first binding request comprises the first binding relationship;
or,
receiving a registration request of the intelligent home equipment, wherein the registration request is used for requesting the intelligent home equipment to be registered in the main gateway equipment; and determining the first binding relationship according to the registration request.
7. The method according to claim 1, wherein after determining that the target gateway device is a gateway device bound to the smart home device, the method further comprises:
sending a device deleting instruction to a non-target gateway device in the first gateway device and the second gateway device, wherein the non-target gateway device is a gateway device which is not the target gateway device in the first gateway device and the second gateway device, and the device deleting instruction is used for instructing the non-target gateway device to delete the registration information of the intelligent home device.
8. The utility model provides an intelligent household equipment binding apparatus, its characterized in that, the device includes:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a first binding relationship of the intelligent home equipment, and the first binding relationship is used for indicating the intelligent home equipment to register in first gateway equipment in a multi-gateway system;
the obtaining module is further configured to obtain a real-time connection state of the smart home device in the first gateway device and a second gateway device in the multi-gateway system when detecting that a second binding relationship of the smart home device has been stored, where the second binding relationship is used to indicate that the smart home device is registered in the second gateway device in the multi-gateway system;
a selecting module, configured to select one gateway device from the first gateway device and the second gateway device as a target gateway device according to the real-time connection state;
and the determining module is used for determining that the target gateway equipment is the gateway equipment bound with the intelligent household equipment.
9. A gateway device, characterized in that the gateway device 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 implement the smart home device binding method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the smart home device binding method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810258923.5A CN108551413B (en) | 2018-03-27 | 2018-03-27 | Intelligent household equipment binding method and device, gateway equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810258923.5A CN108551413B (en) | 2018-03-27 | 2018-03-27 | Intelligent household equipment binding method and device, gateway equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108551413A CN108551413A (en) | 2018-09-18 |
CN108551413B true CN108551413B (en) | 2020-11-03 |
Family
ID=63517321
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810258923.5A Active CN108551413B (en) | 2018-03-27 | 2018-03-27 | Intelligent household equipment binding method and device, gateway equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108551413B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109495539B (en) * | 2018-09-26 | 2021-08-31 | 深圳爱根斯通科技有限公司 | Method and device for preventing sub-equipment from being deleted by mistake, electronic equipment and storage medium |
CN110838959B (en) * | 2019-11-07 | 2021-12-21 | 深圳市欧瑞博科技股份有限公司 | Smart home equipment binding method and device, electronic equipment and storage medium |
CN112423322B (en) * | 2020-11-18 | 2022-09-06 | 青岛海尔科技有限公司 | Model information sending method, device, storage medium and electronic device |
CN115250189B (en) * | 2021-04-27 | 2023-06-02 | 西门子(中国)有限公司 | Key management method and device for intelligent household equipment |
CN113422814A (en) * | 2021-06-16 | 2021-09-21 | 青岛易来智能科技股份有限公司 | Method and system for sending device control command, storage medium and electronic device |
CN114095558B (en) * | 2022-01-24 | 2022-04-22 | 深圳市朗琴音响技术有限公司 | Communication switching method and device of intelligent sound box |
CN114666401B (en) * | 2022-04-08 | 2023-11-24 | 深圳市欧瑞博科技股份有限公司 | Device information processing method, device, computer device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104144168A (en) * | 2014-08-15 | 2014-11-12 | 深圳市蜂联科技有限公司 | Method for binding user account and gateway equipment on basis of open-type intelligent gateway platform |
CN104717081A (en) * | 2013-12-13 | 2015-06-17 | 杭州华为数字技术有限公司 | Gateway function realization method and device |
CN104935485A (en) * | 2015-05-28 | 2015-09-23 | 北京海尔广科数字技术有限公司 | Appliance service calling method, appliance service calling request forwarding method and apparatus |
CN105467846A (en) * | 2015-11-10 | 2016-04-06 | 广东安居宝数码科技股份有限公司 | Intelligent household appliance control method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030056012A1 (en) * | 2001-05-10 | 2003-03-20 | Philbert Modeste | System for providing continuous cyber link between embedded controllers and web servers |
-
2018
- 2018-03-27 CN CN201810258923.5A patent/CN108551413B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104717081A (en) * | 2013-12-13 | 2015-06-17 | 杭州华为数字技术有限公司 | Gateway function realization method and device |
CN104144168A (en) * | 2014-08-15 | 2014-11-12 | 深圳市蜂联科技有限公司 | Method for binding user account and gateway equipment on basis of open-type intelligent gateway platform |
CN104935485A (en) * | 2015-05-28 | 2015-09-23 | 北京海尔广科数字技术有限公司 | Appliance service calling method, appliance service calling request forwarding method and apparatus |
CN105467846A (en) * | 2015-11-10 | 2016-04-06 | 广东安居宝数码科技股份有限公司 | Intelligent household appliance control method and system |
Also Published As
Publication number | Publication date |
---|---|
CN108551413A (en) | 2018-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108551413B (en) | Intelligent household equipment binding method and device, gateway equipment and storage medium | |
CN108491222B (en) | Gateway equipment upgrading method and device, gateway equipment and storage medium | |
CN112738805B (en) | Device control method and apparatus, storage medium, and electronic device | |
CN108306796B (en) | Intelligent home system, and information processing method and device of intelligent home equipment | |
EP3675543B1 (en) | Device control method and apparatus | |
WO2015137740A1 (en) | Home network system using robot and control method thereof | |
CN108702389A (en) | For being remotely controlled IOT(Internet of Things)The framework of equipment | |
CN108055339B (en) | Household appliance interconnection method and device, storage medium and cloud platform server | |
JP2007114899A5 (en) | ||
US20150046830A1 (en) | Methods, Device and Social Network Manager for Enabling Interaction with Another Device | |
CN112114524B (en) | Centralized control network-based equipment control and access method and equipment thereof | |
CN110762604B (en) | Indoor unit, pairing method and device of indoor unit and wired controller, storage medium and air conditioner | |
US9836958B2 (en) | Device control method, server, system and computer storage medium | |
CN109274561B (en) | Method and device for determining gateway role | |
CN103810010A (en) | Information processing method and first electronic device terminal | |
CN104917794A (en) | Data sharing method, device and system | |
JP5669967B2 (en) | COMMUNICATION DEVICE, ADDRESS MANAGEMENT METHOD, PROGRAM, AND COMMUNICATION SYSTEM | |
EP3171608B1 (en) | Playing device grouping control method and user terminal | |
CN110795041A (en) | Quota method, quota device, server and storage medium of distributed file system | |
CN110071950B (en) | Information transmission method, transfer device, terminal, controlled device and storage medium | |
CN106254201A (en) | Network-building method and device, method for connecting network and device, network system and terminal | |
CN107180525A (en) | Bluetooth control method, device, system and the relevant device of a kind of physical equipment | |
CN112968860B (en) | Method and device for managing electronic device | |
CN111642031B (en) | Method for connecting multiple devices, electronic device and computer readable storage medium | |
CN106028303B (en) | Intelligent device discovery method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: No.399, Songling Road, Laoshan District, Qingdao City, Shandong Province 266010 Patentee after: Qingdao Hisense Smart Life Technology Co.,Ltd. Address before: No.399, Songling Road, Laoshan District, Qingdao City, Shandong Province 266010 Patentee before: QINGDAO HISENSE SMART HOME SYSTEMS Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |