CN108551413A - Smart home device binding method, device, gateway device and storage medium - Google Patents

Smart home device binding method, device, gateway device and storage medium Download PDF

Info

Publication number
CN108551413A
CN108551413A CN201810258923.5A CN201810258923A CN108551413A CN 108551413 A CN108551413 A CN 108551413A CN 201810258923 A CN201810258923 A CN 201810258923A CN 108551413 A CN108551413 A CN 108551413A
Authority
CN
China
Prior art keywords
gateway device
smart home
gateway
real
home device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810258923.5A
Other languages
Chinese (zh)
Other versions
CN108551413B (en
Inventor
王艳青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Smart Life Technology Co Ltd
Original Assignee
Qingdao Hisense Smart Home System Ltd By Share Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Smart Home System Ltd By Share Ltd filed Critical Qingdao Hisense Smart Home System Ltd By Share Ltd
Priority to CN201810258923.5A priority Critical patent/CN108551413B/en
Publication of CN108551413A publication Critical patent/CN108551413A/en
Application granted granted Critical
Publication of CN108551413B publication Critical patent/CN108551413B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Abstract

The invention discloses a kind of smart home device binding method, device, gateway device and storage mediums, are related to smart home field, and this method includes:Obtain first binding relationship of the smart home device in registration process;When detecting the second binding relationship for being stored with smart home device, real-time connection status of the smart home device in the first gateway device and the second gateway device is obtained;Selection target gateway device;Determine that intended gateway equipment is the gateway device bound with smart home device.The present invention is when main gateway device includes corresponding with the smart home device binding relationship of more than one set, by obtaining real-time connection status of the smart home device in multiple gateway devices of binding, determine a gateway device as the gateway device bound with smart home device, and the binding of other gateway devices and the smart home device is released, so that it is determined that the gateway device controlled smart home device.

Description

Smart home device binding method, device, gateway device and storage medium
Technical field
The present embodiments relate to smart home field, more particularly to a kind of smart home device binding method, device, net Close equipment and storage medium.
Background technology
Smart home multiple gateway system is a kind of system for being controlled smart home device, and the smart home is more Gateway system uses principal and subordinate's gateway architecture, i.e., the smart home multiple gateway system includes main gateway device and from gateway device.
When a new smart home device will be added to the smart home multiple gateway system, first in main gateway device With from gateway device determination can control the gateway device of the smart home device, smart home device the gateway device into Row registration, and the binding relationship of the gateway device and smart home device is stored in main gateway device.As user couple When the smart home device is controlled, control instruction is sent to by main gateway device by mobile phone first, main gateway device exists The gateway device (such as some from gateway device) controlled to the smart home device is searched in the binding relationship of storage Control instruction is sent to the gateway device afterwards.When smart home device exits gateway device, if the gateway device is in Linear state, then the state that the gateway device records the smart home device is to exit registration;If the gateway device is not in online State, then smart home device unilaterally exit the gateway device.
When smart home device unilaterally exits gateway device, also record has the gateway device and is somebody's turn to do in main gateway device The binding relationship of smart home device, if smart home device continuation is registered in other gateway devices, primary gateway Just two groups of binding relationships corresponding with the smart home device are corresponding in equipment, when user controls the smart home device When processed, can not determine controlled smart home by which gateway device, so as to cause to smart home device Control failure.
Invention content
In order to solve in multiple gateway system, since smart home device is when exiting gateway device, gateway device does not connect Receive the information that smart home device exits registration, cause to be likely to occur in multiple gateway system a smart home device with it is multiple The case where gateway device is bound, the problem for causing equipment control chaotic, an embodiment of the present invention provides a kind of smart home devices Binding method, device, gateway device and storage medium.The technical solution is as follows:
In a first aspect, providing a kind of smart home device binding method, this method includes:
The first binding relationship of smart home device is obtained, the first binding relationship is used to indicate smart home device in more nets It is registered in the first gateway device in relationship system;
When detecting the second binding relationship for being stored with smart home device, smart home device is obtained in the first net The real-time connection status in equipment and the second gateway device is closed, the second binding relationship is used to indicate smart home device in multiple gateway It is registered in the second gateway device in system;
Select a gateway device as mesh from the first gateway device and the second gateway device according to real-time connection status Mark gateway device;
Determine that intended gateway equipment is the gateway device bound with smart home device.
In an alternative embodiment, it is selected from the first gateway device and the second gateway device according to real-time connection status A gateway device is selected as intended gateway equipment, including:
In the first gateway device and the second gateway device, real-time connection status is selected to make for the gateway device of presence For intended gateway equipment.
In an alternative embodiment, the real-time connection status of the first gateway device is the first real-time status, the second net The real-time connection status for closing equipment is the second real-time status;
In the first gateway device and the second gateway device, real-time connection status is selected to make for the gateway device of presence For intended gateway equipment, including:
When the first real-time status is presence, and the second real-time status is off-line state, the first gateway device is made For intended gateway equipment;
Or,
When the first real-time status is off-line state, and the second real-time status is presence, the second gateway device is made For intended gateway equipment.
In an alternative embodiment, smart home device is obtained in the first gateway device and the second gateway device Real-time connection status, including:
When the first gateway device be from gateway device when, to the first gateway device send first state more new command, first State more new command is used to indicate the first gateway device and updates state corresponding with smart home device;It is updated according to first state The feedback result of instruction obtains real-time connection status of the smart home device in the first gateway device;
Alternatively,
When the first gateway device is main gateway device, smart home device connecting in real time in the first gateway device is obtained Connect state.
In an alternative embodiment, smart home device is obtained in the first gateway device and the second gateway device Real-time connection status, including:
When the second gateway device be from gateway device when, to the second gateway device send the second state more new command, second State more new command is used to indicate the second gateway device and updates state corresponding with smart home device;It is updated according to the second state The feedback result of instruction obtains real-time connection status of the smart home device in the second gateway device;
Alternatively,
When the second gateway device is main gateway device, smart home device connecting in real time in the second gateway device is obtained Connect state.
In an alternative embodiment, first binding relationship of the smart home device in registration process is obtained, including:
The first bind request of the first gateway device transmission is received, the first bind request includes the first binding relationship;
Or,
The registration request of smart home device is received, registration request is for asking smart home device in main gateway device In registered;The first binding relationship is determined according to registration request.
In an alternative embodiment, determine that intended gateway equipment is to be set with the gateway that smart home device is bound After standby, further include:
Non-targeted gateway device into the first gateway device and the second gateway device sends sweep equipment instruction, and deletion is set Standby instruction is used to indicate the log-on message that non-targeted gateway device deletes smart home device.
Second aspect, provides a kind of smart home device binding device, which includes:
Acquisition module, the first binding relationship for obtaining smart home device, the first binding relationship are used to indicate intelligence Home equipment is registered in the first gateway device in multiple gateway system;
Acquisition module is additionally operable to when detecting the second binding relationship for being stored with smart home device, obtains intelligence Real-time connection status of the home equipment in the first gateway device and the second gateway device, the second binding relationship are used to indicate intelligence Home equipment is registered in the second gateway device in multiple gateway system;
Selecting module, for selecting a net from the first gateway device and the second gateway device according to real-time connection status Equipment is closed as intended gateway equipment;
Determining module, for determining that intended gateway equipment is the gateway device bound with smart home device.
The third aspect provides a kind of gateway device, and gateway device includes processor and memory, is stored in memory At least one instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, code set or refer to Collection is enabled to be loaded by processor and executed to realize as any in embodiments of the present invention first aspect and its alternative embodiment Smart home device binding method.
Fourth aspect provides a kind of computer readable storage medium, and at least one instruction, extremely is stored in storage medium Few one section of program, code set or instruction set, at least one instruction, at least one section of program, code set or instruction set are added by processor It carries and executes to realize that the smart home device as any in embodiments of the present invention first aspect and its alternative embodiment is tied up Determine method.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
In the related technology, when smart home device is when exiting gateway device, gateway device does not receive smart home and sets The standby information for exiting registration causes to be likely to occur a smart home device and the binding of multiple gateway devices in main gateway device Situation, the chaotic problem of equipment control, and in the application when smart home device and multiple gateway devices (main gateway device or From gateway device) binding when, by obtaining real-time connection status of the smart home device in multiple gateway devices of binding, when When the real-time connection status of some gateway device indicates that the gateway device can control the smart home device, by the net Equipment is closed as the gateway device bound with smart home device, and releases tying up for other gateway devices and the smart home device It is fixed, so that it is determined that the gateway device controlled smart home device.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the schematic diagram for the smart home multiple gateway system that an illustrative embodiment of the invention provides;
Fig. 2 is the flow chart for the smart home device binding method that the embodiment of an example of the present invention provides;
Fig. 3 is the flow chart for the smart home device binding method that another exemplary embodiment of the invention provides;
Fig. 4 is the structure diagram for the smart home device binding device that the embodiment of an example of the present invention provides;
Fig. 5 is the structural schematic diagram for the gateway device that the embodiment of an example of the present invention provides.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is the schematic diagram for the smart home multiple gateway system that an illustrative embodiment of the invention provides.Such as Fig. 1 institutes Show, which includes:Server 11, gateway device 12, communication network 13, smart home device 14 and terminal 15;
Server 11 is used to receive the information of the smart home device 14 of the transmission of gateway device 12, and the intelligence that will be received The information of home equipment 14 is sent to terminal 15, and optionally, which can be physical server, can also be cloud service Virtual server beyond the clouds is arranged in device, and the server 11 can be a server, can also be by multiple servers One group of server of composition.
The server 11 is connected with gateway device 12 by communication network 13, which can be cable network, Can also be wireless network, optionally, which can be at least one in LAN, Metropolitan Area Network (MAN) and wide area network Kind.
Gateway device 12 is the equipment for being controlled smart home device 14, and optionally, gateway device 12 passes through The communication technology controls smart home device 14, which can be wireless communication technique, can also be cable modem Letter technology, wherein the wireless communication technique can also be short-distance wireless communication technology (Near Field Communication, NFC), ZigBee (purple peak agreement) technology, Bluetooth (bluetooth) technology, WiFi (WLAN) Technology etc..
Optionally, gateway device 12 includes main gateway device and from gateway device, optionally, in the gateway device 12 Including a main gateway device and at least one from gateway device, wherein from the quantity of gateway device can be in present count It measures in range, such as:10 are must not exceed from the quantity of gateway device.Schematically, smart home multiple gateway system shown in Fig. 1 System includes main gateway device 121, from gateway device 122 and from gateway device 123.
Wherein, main gateway device 121 is for controlling corresponding smart home device 14, optionally, the intelligence Energy home equipment 14 can also be smart home device group, as shown in Figure 1, main gateway device 121 is used for corresponding intelligence Energy home equipment group 141 is controlled, wherein the smart home device group 141 includes smart home device 1411 and intelligence again Energy home equipment 1412, such as:Main gateway device 121 is for controlling corresponding smart home device group 141, the intelligence Energy home equipment group 141 includes air-conditioning and television set.Optionally, main gateway device 121 is additionally operable to smart home multiple gateway Equipment in system is managed, such as:To the gateway device 12 and smart home device 14 in smart home multiple gateway system Correspondence stored, schematically, in main gateway device 121 be also stored with from gateway device 122 with smart home and set Correspondence between standby 142 correspondence and gateway device 123 and smart home device 143.Optionally, the application In embodiment, main gateway device 121 is additionally operable to be managed the upgrading of the gateway device 12 in smart home multiple gateway system.
From gateway device for controlling corresponding smart home device 14, as shown in Figure 1, from gateway device 122 for controlling corresponding smart home device 142, is used for from gateway device 123 to corresponding intelligence Home equipment 143 is controlled.
Optionally, the quantity for the smart home device 14 that each gateway device 12 controls is same within the scope of preset quantity A smart home device 14 can only be controlled by a gateway device 12, i.e., a smart home device 14 can only be with a net Equipment 12 is closed to be bound.
Smart home device 14 is the equipment that can be registered in gateway device 12, and optionally, which sets May include one or more equipment in standby 14, schematically, as shown in Figure 1, the smart home device 14 includes intelligent family Occupy equipment 141 and smart home device 142 and smart home device 143, wherein smart home device 141 is to be set by gateway Further include smart home device 1411 and smart home device in the smart home device 141 for 121 equipment controlled 1412.Optionally, which can be air-conditioning, television set, water heater, air purifier, sweeping robot, prison Control at least one of equipment.
Terminal 15 is the terminal device for being interacted with user.Optionally, terminal 15 is used for smart home device 14 state is shown on a user interface, and is controlled smart home device 14 by user interface, such as:It opens Smart home device 14, the parameter etc. closed smart home device 14, change smart home device 14.Optionally, when intelligent family Occupy equipment 14 be smart home device group when, which includes multiple smart home devices, by user circle Face can also be shown or controlled respectively to the smart home device in smart home device group.Optionally, the terminal 15 It is to establish binding relationship with gateway device 12 with 12 associated terminal device of gateway device, the i.e. terminal 15.Optionally, the end End 15 can be mobile terminal, such as:At least one of mobile phone, tablet, door control interphone, portable notebook computer.
The registration process of smart home device is illustrated in conjunction with above-mentioned Fig. 1.
Firstly, it is necessary to which the gateway device that smart home device is added selects, in general, user is by smart home device After placing, selection one can be to the gateway device that the smart home device is controlled in gateway device, and user is to this The net state that enters of gateway device is adjusted, and the net state that enters of the gateway device is adjusted to after allowing net state, intelligent family It is the gateway device allowed into net state to occupy equipment and be added to this to enter net state, wherein the gateway device can be that primary gateway is set It is standby, can also be from gateway device.
The first, smart home device is registered in main gateway device;
Smart home device is fed first into the main gateway device, and main gateway device remembers the smart home device It records, and sends the registration message of the smart home device to server, which is used to indicate server by smart home The binding relationship of equipment and main gateway device is stored, and after server receives registration message, is tied up to main gateway device transmission After determining success message, smart home device completes the registration in main gateway device.
Second, smart home device is being registered from gateway device;
Smart home device is fed first into this from gateway device, is recorded from gateway device to the smart home device Afterwards, the registration message of the smart home device is sent to main gateway device, main gateway device receives registration message backward should be from Gateway device feed back registration confirmation message, main gateway device by this from the binding relationship of gateway device and smart home device into After row storage, main gateway device sends the binding relationship from gateway device and the smart home device to server and is sent to clothes Business device after server receives the binding relationship, sends binding success message, smart home device is completed to exist to main gateway device From the registration in gateway device.
The process for exiting registration to smart home device in conjunction with above-mentioned Fig. 1 illustrates.
The first, smart home device is bundled in main gateway device;
First, smart home device exits the main gateway device, and main gateway device exits registration to the smart home device The binding with the smart home device is recorded and is released, main gateway device sends unbundlings message, server root to server The binding relationship between main gateway device and smart home device is released according to the unbundlings message received, and success message will be unbinded It is sent to main gateway device, to which registration is exited in smart home device completion in main gateway device.
Second, smart home device is bundled in from gateway device;
Smart home device exits this from gateway device first, and registration is exited to the smart home device from gateway device After being recorded, the registration message that exits of the smart home device is sent to main gateway device, main gateway device, which receives, to be exited Registration message should feed back exit confirmation message from gateway device backward, and main gateway device should be from gateway device and smart home After the binding relationship of equipment is deleted, main gateway device sends this from gateway device and the smart home device to server Unbinding message is sent to server, after server receives the unbinding message, sends to release to main gateway device and tie up Determine success message, smart home device completion is exiting registration from gateway device.
When smart home device exits gateway device and gateway device does not receive and exits registration message, i.e., smart home is set When for unilaterally exiting gateway device, also record has the gateway device and the binding of the smart home device to close in main gateway device System, if the smart home device continuation when being registered in other gateway devices, be just corresponding in main gateway device two groups with The corresponding binding relationship of the smart home device can not determine it is to pass through when user controls the smart home device Which gateway device controls smart home, fails so as to cause to the control of smart home device.
In view of the foregoing, the present invention provides a kind of smart home device binding methods to be wrapped in main gateway device When including corresponding with the smart home device binding relationship of more than one set, determine that a gateway device is tied up as with smart home device Fixed gateway device, and the binding of other gateway devices and the smart home device is released, so that it is determined that smart home device The gateway device controlled ensures the control to smart home device.
Smart home device provided in an embodiment of the present invention is tied up in conjunction with above-mentioned smart home multiple gateway system shown in FIG. 1 The method of determining illustrates, and the smart home device provided incorporated by reference to the embodiment that Fig. 2, Fig. 2 are an example of the present invention is bound The flow chart of method applies the master in smart home multiple gateway system as shown in Figure 1 with the smart home device binding method For in gateway device, which includes:
Step 201, first binding relationship of the smart home device in registration process is obtained.
Optionally, which is used to indicate first gateway device of the smart home device in multiple gateway system In registered.
Optionally, when obtaining first binding relationship of the smart home device in registration process, including the following two kinds mode In any one:
The first, when the first gateway device is from gateway device, main gateway device can receive first gateway device The first bind request sent, which includes the first binding relationship, i.e., first bind request is for asking The smart home device is registered in the first gateway device;
Second, when the first gateway device is the main gateway device in the multiple gateway system, which can To receive the registration request of smart home device transmission, and the first binding relationship is determined according to the registration request, the registration request For asking the smart home device to be registered in main gateway device, i.e., first binding relationship be smart home device with Binding relationship between the main gateway device.
Step 202, it when detecting the second binding relationship for being stored with smart home device, obtains smart home device and exists Real-time connection status in first gateway device and the second gateway device.
Second binding relationship is used to indicate in the second gateway device of the smart home device in multiple gateway system and carries out Registration.Optionally, which is registered in the second gateway device process in the first gateway device into The process of row registration is identical, it will be appreciated, however, that when the first gateway device is main gateway device, the second gateway device can only It is from gateway device, when the first gateway device is from gateway device, the second gateway device can be that main gateway device can also It is that is, there are one the main gateway devices in multiple gateway system, and can have from gateway device multiple from gateway device.
It is worth noting that, the first gateway device and the second gateway device are in the same multiple gateway system.
The real-time connection status is used to indicate connection status of the smart home device in gateway device, optionally, the reality When connection status be used to be determined to control the gateway device of the smart home device.
Optionally, when smart home device unilaterally exits some gateway device, which can not be with the intelligence Home equipment is unbinding, and when the gateway device restarts, state of the smart home device in the gateway device is Off-line state, the i.e. smart home device still keep binding relationship with the gateway device, but the gateway device can not be to the intelligence Energy home equipment is controlled, and is equivalent to the smart home device and is in uncontrollable state in the gateway device.
Optionally, when not being stored with the second binding relationship of smart home device, then smart home device can be It is registered in one gateway device, feeds back instruction of succeeding in registration to the first gateway device.
Step 203, a gateway is selected to set from the first gateway device and the second gateway device according to real-time connection status It is standby to be used as intended gateway equipment.
Optionally, which includes presence or off-line state.
Optionally, in first gateway device and the second gateway device, select real-time connection status for presence Gateway device is as intended gateway equipment, i.e., the intended gateway equipment is the first gateway device or the intended gateway equipment is Second gateway device.
Optionally, the real-time connection status of the first gateway device is determined as the first real-time status, by the second gateway device When be that connection status is determined as the second real-time status, then when the first real-time status is presence, and the second real-time status is When off-line state, the first gateway device is determined as intended gateway equipment;Alternatively, when the first real-time status is off-line state, the When two real-time status are presence, the second gateway device is determined as intended gateway equipment.
Step 204, determine that intended gateway equipment is the gateway device bound with smart home device.
It determines that the intended gateway equipment is the gateway device bound with smart home device, that is, passes through the intended gateway Equipment can control smart home device.
In conclusion smart home device binding method provided in this embodiment, when smart home device and multiple gateways When equipment (main gateway device or from gateway device) binding, by obtain smart home device binding multiple gateway devices In real-time connection status, when the real-time connection status of some gateway device indicates that the gateway device can set the smart home For when being controlled, using the gateway device as the gateway device bound with smart home device, and other gateway devices are released With the binding of the smart home device, so that it is determined that the gateway device controlled smart home device.
Smart home device provided in an embodiment of the present invention is tied up in conjunction with above-mentioned smart home multiple gateway system shown in FIG. 1 The method of determining illustrates, and Fig. 3 is the stream for the smart home device binding method that another exemplary embodiment of the invention provides Cheng Tu applies the main gateway device in smart home multiple gateway system as shown in Figure 1 with the smart home device binding method In for, which includes:
Step 301, first binding relationship of the smart home device in registration process is obtained.
Optionally, which is used to indicate first gateway device of the smart home device in multiple gateway system In registered.
Optionally, when obtaining first binding relationship of the smart home device in registration process, including the following two kinds mode In any one:
The first, when the first gateway device is from gateway device, main gateway device can receive first gateway device The first bind request sent, which includes the first binding relationship, i.e., first bind request is for asking The smart home device is registered in the first gateway device;
Second, when the first gateway device is the main gateway device in the multiple gateway system, which can To receive the registration request of smart home device transmission, and the first binding relationship is determined according to the registration request, the registration request For asking the smart home device to be registered in main gateway device, i.e., first binding relationship be smart home device with Binding relationship between the main gateway device.
Step 302, the second binding relationship for being stored with smart home device is detected whether.
Second binding relationship is used to indicate in the second gateway device of the smart home device in multiple gateway system and carries out Registration.Optionally, which is registered in the second gateway device process in the first gateway device into The process of row registration is identical, it will be appreciated, however, that when the first gateway device is main gateway device, the second gateway device can only It is from gateway device, when the first gateway device is from gateway device, the second gateway device can be that main gateway device can also It is that is, there are one the main gateway devices in multiple gateway system, and can have from gateway device multiple from gateway device.
Step 303, when being stored with the second binding relationship of smart home device, smart home device is obtained in the first net Close the real-time connection status in equipment and the second gateway device.
The real-time connection status is used to indicate connection status of the smart home device in gateway device, optionally, the reality When connection status be used to be determined to control the gateway device of the smart home device.
Optionally, include any one in the following two kinds situation when the real-time connection status for obtaining the first gateway device:
First, when the first gateway device is from gateway device, first state more new command is sent to the first gateway device, And real-time connection shape of the smart home device in the first gateway device is obtained according to the feedback result of first state more new command State, the first state more new command are used to indicate the first gateway device and update state corresponding with smart home device.
Optionally, smart home device is obtained in the first gateway device according to the feedback result of first state more new command Real-time connection status be divided into as any one in following situation:
1.1 when the state that the first gateway device feed back to main gateway device according to first state more new command be presence When, then real-time connection status of the smart home device in the first gateway device is presence;When the first gateway device according to When the state that first state more new command is fed back to main gateway device is off-line state, then smart home device is set in the first gateway Real-time connection status in standby is off-line state;
1.2 when the state that the first gateway device feed back to main gateway device according to first state more new command be presence When, then real-time connection status of the smart home device in the first gateway device is presence;When the first gateway device not to When main gateway device feedback link state, then real-time connection status of the smart home device in the first gateway device is offline shape State.
Second, when the first gateway device is main gateway device, smart home device is obtained in the first gateway device Real-time connection status.
When the first gateway device is main gateway device, i.e., the executive agent of the present embodiment is first gateway device, i.e., First gateway device can directly acquire the real-time connection status of the smart home device.
Optionally, include any one in the following two kinds situation when the real-time connection status for obtaining the second gateway device:
First, when the second gateway device is from gateway device, the second state more new command is sent to the second gateway device, And real-time connection shape of the smart home device in the second gateway device is obtained according to the feedback result of the second state more new command State, the second state more new command are used to indicate the second gateway device and update state corresponding with smart home device.
Optionally, smart home device is obtained in the second gateway device according to the feedback result of the second state more new command Real-time connection status be divided into as any one in following situation:
2.1 when the state that the second gateway device feed back to main gateway device according to the second state more new command be presence When, then real-time connection status of the smart home device in the second gateway device is presence;When the second gateway device according to When the state that second state more new command is fed back to main gateway device is off-line state, then smart home device is set in the second gateway Real-time connection status in standby is off-line state;
2.2 when the state that the second gateway device feed back to main gateway device according to the second state more new command be presence When, then real-time connection status of the smart home device in the second gateway device is presence;When the second gateway device not to When main gateway device feedback link state, then real-time connection status of the smart home device in the second gateway device is offline shape State.
Second, when the second gateway device is main gateway device, smart home device is obtained in the second gateway device Real-time connection status.
When the second gateway device is main gateway device, i.e., the executive agent of the present embodiment is second gateway device, i.e., Second gateway device can directly acquire the real-time connection status of the smart home device.
Step 304, in the first gateway device and the second gateway device, select real-time connection status for the net of presence Equipment is closed as intended gateway equipment.
Optionally, which includes presence or off-line state.
Optionally, real-time connection status be presence gateway device only there are one, i.e., real-time connection status is online The gateway device of state is the first gateway device or the second gateway device.
Optionally, the real-time connection status of the first gateway device is determined as the first real-time status, by the second gateway device When be that connection status is determined as the second real-time status, then when the first real-time status is presence, and the second real-time status is When off-line state, the first gateway device is determined as intended gateway equipment;Alternatively, when the first real-time status is off-line state, the When two real-time status are presence, the second gateway device is determined as intended gateway equipment.
Step 305, determine that intended gateway equipment is the gateway device bound with smart home device.
It determines that the intended gateway equipment is the gateway device bound with smart home device, that is, passes through the intended gateway Equipment can control smart home device.
Step 306, the non-targeted gateway device into the first gateway device and the second gateway device sends sweep equipment and refers to It enables.
Optionally, sweep equipment instruction is used to indicate non-targeted gateway device and deletes the corresponding registration of smart home device Information.
Optionally, it is not intended gateway equipment which, which is in the first gateway device and the second gateway device, Gateway device.
Optionally, main gateway device stores the binding relationship of intended gateway equipment and smart home device, and to Intended gateway equipment sends instruction of succeeding in registration, which is used to indicate smart home device in intended gateway equipment In succeed in registration.
Step 307, it when not being stored with the second binding relationship of smart home device, sends and registers to the first gateway device Success instructs.
Optionally, when not being stored with the second binding relationship of smart home device in main gateway device, illustrate the intelligence Gateway device is not carried out at the same time binding with multiple gateway devices, then succeeds in registration instruction to the transmission of the first gateway device, and by the The binding relationship of one gateway device and smart home device is stored.
In conclusion smart home device binding method provided in this embodiment, when smart home device and multiple gateways When equipment (main gateway device or from gateway device) binding, by obtain smart home device binding multiple gateway devices In real-time connection status, when the real-time connection status of some gateway device be have connected when, indicate that the gateway device can be right The smart home device is controlled, and using the gateway device as the gateway device bound with smart home device, and releases it The binding of his gateway device and the smart home device, so that it is determined that the gateway device controlled smart home device.
Smart home device binding method provided in this embodiment, by the first gateway device and the second gateway device In, determine that gateway device that the real-time connection status of smart home device is presence, and should as intended gateway equipment Intended gateway equipment is as the gateway device bound with smart home device, it is ensured that is set with the gateway of smart home device binding Standby is the gateway device that real-time connection status is presence, i.e., can be controlled to smart home device by the gateway device System, it is ensured that control of the user by gateway device to smart home device.
Fig. 4 is the structure diagram for the smart home device binding device that the embodiment of an example of the present invention provides, such as Shown in Fig. 4, which includes:Acquisition module 41, selecting module 42 and determining module 43;
Acquisition module 41, the first binding relationship for obtaining smart home device, the first binding relationship are used to indicate intelligence It can be registered in the first gateway device of the home equipment in multiple gateway system;
Acquisition module 41 is additionally operable to when detecting the second binding relationship for being stored with smart home device, obtains intelligence Real-time connection status of the energy home equipment in the first gateway device and the second gateway device, the second binding relationship are used to indicate intelligence It can be registered in the second gateway device of the home equipment in multiple gateway system;
Selecting module 42, for selecting one from the first gateway device and the second gateway device according to real-time connection status Gateway device is as intended gateway equipment;
Determining module 43, for determining that intended gateway equipment is the gateway device bound with smart home device.
In an alternative embodiment, selecting module 42 are additionally operable in the first gateway device and the second gateway device, It is the gateway device of presence as intended gateway equipment to select real-time connection status.
In an alternative embodiment, the real-time connection status of the first gateway device is the first real-time status, the second net The real-time connection status for closing equipment is the second real-time status;
Selecting module 42, be additionally operable to when the first real-time status be presence, and the second real-time status be off-line state when, Using the first gateway device as intended gateway equipment;
Selecting module 42, be additionally operable to when the first real-time status be off-line state, and the second real-time status be presence when, Using the second gateway device as intended gateway equipment.
In an alternative embodiment, acquisition module 41, including:
First transmission unit, for when the first gateway device is from gateway device, first to be sent to the first gateway device State more new command, first state more new command are used to indicate the first gateway device and update shape corresponding with smart home device State;Real-time connection shape of the smart home device in the first gateway device is obtained according to the feedback result of first state more new command State;
First acquisition unit, for when the first gateway device is main gateway device, obtaining smart home device first Real-time connection status in gateway device.
In an alternative embodiment, acquisition module 41, including:
Second transmission unit, for when the second gateway device is from gateway device, second to be sent to the second gateway device State more new command, the second state more new command are used to indicate the second gateway device and update shape corresponding with smart home device State;Real-time connection shape of the smart home device in the second gateway device is obtained according to the feedback result of the second state more new command State;
Second acquisition unit, for when the second gateway device is main gateway device, obtaining smart home device second Real-time connection status in gateway device.
In an alternative embodiment, acquisition module 41, including:
Receiving unit, the first bind request sent for receiving the first gateway device, the first bind request includes the One binding relationship;
Receiving unit is additionally operable to receive the registration request of smart home device, and registration request is for asking smart home Equipment is registered in main gateway device;The first binding relationship is determined according to registration request.
In an alternative embodiment, the device further includes:
Sending module, for into the first gateway device and the second gateway device
Non-targeted gateway device send sweep equipment instruction, sweep equipment instruction is used to indicate non-targeted gateway device and deletes Except the log-on message of smart home device.
In conclusion smart home device binding device provided in this embodiment, when smart home device and multiple gateways When equipment (main gateway device or from gateway device) binding, by obtain smart home device binding multiple gateway devices In real-time connection status, when the real-time connection status of some gateway device be have connected when, indicate that the gateway device can be right The smart home device is controlled, and using the gateway device as the gateway device bound with smart home device, and releases it The binding of his gateway device and the smart home device, so that it is determined that the gateway device controlled smart home device.
Smart home device binding device provided in this embodiment, by the first gateway device and the second gateway device In, determine that gateway device that the real-time connection status of smart home device is presence, and should as intended gateway equipment Intended gateway equipment is as the gateway device bound with smart home device, it is ensured that is set with the gateway of smart home device binding Standby is the gateway device that real-time connection status is presence, i.e., can be controlled to smart home device by the gateway device System, it is ensured that control of the user by gateway device to smart home device.
Present invention also provides a kind of gateway device, which includes processor and memory, is stored in memory There are at least one instruction, at least one instruction to be loaded by processor and executed to realize the intelligence of above-mentioned each embodiment of the method offer It can home equipment binding method.It should be noted that the gateway device can be the gateway device that following Fig. 5 is provided.
Referring to FIG. 5, the structural schematic diagram of the gateway device provided it illustrates one exemplary embodiment of the application.Tool For body:The gateway device includes processor 510, memory 520 and communication interface 530.
Processor 510 is connected with memory 520 and communication interface 530 respectively by bus.
Communication interface 530 is used for and realizes the communication between other network elements.
Processor 510 includes one or more processing cores.Processor 510 is by running operating system or applying journey Sequence module, to realize the function of gateway device in above-mentioned each embodiment of the method.
Optionally, memory 520 can storage program area 522, the application program module 524 needed at least one function. Optionally, application program module 524 includes:Receiving unit 524a, processing unit 524b and transmission unit 524c.Wherein, it receives The step of unit 524a is for realizing related reception;The step of processing unit 524b is for realizing related calculating or processing;It sends The step of unit 524c is for realizing related transmission.
In addition, memory 520 can be by any kind of volatibility or non-volatile memory device or combination thereof It realizes, such as static RAM (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, Disk or CD.
Optionally, be stored at least one instruction, at least one section of program, code set or instruction set in memory, it is above-mentioned extremely Few instruction, at least one section of program, code set or an instruction set are loaded by processor and are executed to realize above-mentioned Fig. 1 to Fig. 3 The smart home device binding method.
It will be understood by those skilled in the art that the structure shown in Fig. 5 does not constitute the restriction of above-mentioned gateway device, it can To include than illustrating more or fewer components or combining certain components or different components arrangement.
The embodiment of the present application also provides a kind of computer readable storage medium, and at least one finger is stored in the storage medium Enable, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or Instruction set is loaded by the processor 510 and is executed to realize the smart home device binding side as described in Fig. 1 to Fig. 3 is any Method.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, the meter Calculation machine readable storage medium storing program for executing can be computer readable storage medium included in memory in above-described embodiment;It can also It is individualism, without the computer readable storage medium in supplying terminal.Be stored in the computer readable storage medium to Few an instruction, at least one section of program, code set or instruction set, it is at least one instruction, at least one section of program, described Code set or instruction set are loaded by the processor and are executed to realize that the smart home device as described in Fig. 1 to Fig. 3 is any is tied up Determine method.
Optionally, which may include:Read-only memory (ROM, Read Only Memory), Random access memory (RAM, Random Access Memory), solid state disk (SSD, Solid State Drives) or light Disk etc..Wherein, random access memory may include resistive random access memory body (ReRAM, Resistance Random Access Memory) and dynamic random access memory (DRAM, Dynamic Random Access Memory).Above-mentioned Apply for that embodiment sequence number is for illustration only, can not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on should be included within the protection domain of the application.

Claims (10)

1. a kind of smart home device binding method, which is characterized in that the method includes:
The first binding relationship of the smart home device is obtained, first binding relationship is used to indicate the smart home and sets It is registered in standby the first gateway device in multiple gateway system;
When detecting the second binding relationship for being stored with the smart home device, the smart home device is obtained in institute The real-time connection status in the first gateway device and second gateway device is stated, second binding relationship is used to indicate described Smart home device is registered in the second gateway device in the multiple gateway system;
A gateway is selected to set from first gateway device and second gateway device according to the real-time connection status It is standby for i is set as intended gateway;
Determine that the intended gateway equipment is the gateway device bound with the smart home device.
2. according to the method described in claim 1, it is characterized in that, it is described according to the real-time connection status from first net Closing in equipment and second gateway device selects a gateway device as intended gateway equipment, including:
In first gateway device and second gateway device, select the real-time connection status for the net of presence Equipment is closed as the intended gateway equipment.
3. according to the method described in claim 2, it is characterized in that, the real-time connection status of first gateway device is The real-time connection status of first real-time status, second gateway device is the second real-time status;
It is described in first gateway device and second gateway device, it is presence to select the real-time connection status Gateway device as the intended gateway equipment, including:
When first real-time status is the presence, and second real-time status is the off-line state, by institute The first gateway device is stated as the intended gateway equipment;
Or,
When first real-time status is the off-line state, and second real-time status is the presence, by institute The second gateway device is stated as the intended gateway equipment.
4. method according to any one of claims 1 to 3, which is characterized in that described to obtain the smart home device in institute The real-time connection status in the first gateway device and second gateway device is stated, including:
When first gateway device is from gateway device, first state more new command is sent to first gateway device, The first state more new command is used to indicate first gateway device and updates state corresponding with the smart home device; The smart home device is obtained in first gateway device according to the feedback result of the first state more new command The real-time connection status;
Alternatively,
When first gateway device is main gateway device, the smart home device is obtained in first gateway device The real-time connection status.
5. method according to any one of claims 1 to 3, which is characterized in that described to obtain the smart home device in institute The real-time connection status in the first gateway device and second gateway device is stated, including:
When second gateway device is from gateway device, the second state more new command is sent to second gateway device, The second state more new command is used to indicate second gateway device and updates state corresponding with the smart home device; The smart home device is obtained in second gateway device according to the feedback result of the second state more new command The real-time connection status;
Alternatively,
When second gateway device is main gateway device, the smart home device is obtained in second gateway device The real-time connection status.
6. method according to any one of claims 1 to 3, which is characterized in that the acquisition smart home device is being noted The first binding relationship during volume, including:
The first bind request that first gateway device is sent is received, first bind request includes first binding Relationship;
Or,
The registration request of the smart home device is received, the registration request is for asking the smart home device in institute It states in main gateway device and is registered;First binding relationship is determined according to the registration request.
7. according to the method described in claim 1, it is characterized in that, the determination intended gateway equipment is and the intelligence After the gateway device that home equipment is bound, further include:
Non-targeted gateway device into first gateway device and second gateway device sends sweep equipment instruction, institute Non-targeted gateway device is stated not to be the intended gateway equipment in first gateway device and second gateway device Gateway device, the sweep equipment instruction are used to indicate the registration that the non-targeted gateway device deletes the smart home device Information.
8. a kind of smart home device binding device, which is characterized in that described device includes:
Acquisition module, the first binding relationship for obtaining the smart home device, first binding relationship are used to indicate The smart home device is registered in the first gateway device in multiple gateway system;
The acquisition module is additionally operable to when detecting the second binding relationship for being stored with the smart home device, is obtained Real-time connection status of the smart home device in first gateway device and second gateway device, described second Binding relationship is used to indicate in the second gateway device of the smart home device in the multiple gateway system and is registered;
Selecting module, for being selected from first gateway device and second gateway device according to the real-time connection status A gateway device is selected as intended gateway equipment;
Determining module, for determining that the intended gateway equipment is the gateway device bound with the smart home device.
9. a kind of gateway device, which is characterized in that the gateway device includes processor and memory, is stored in the memory Have at least one instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, The code set or instruction set are loaded by the processor and are executed to realize the intelligent family as described in claim 1 to 7 is any Occupy apparatus bound method.
10. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction Collection is loaded by the processor and is executed to realize the smart home device binding method as described in claim 1 to 7 is any.
CN201810258923.5A 2018-03-27 2018-03-27 Intelligent household equipment binding method and device, gateway equipment and storage medium Active CN108551413B (en)

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 true CN108551413A (en) 2018-09-18
CN108551413B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495539A (en) * 2018-09-26 2019-03-19 深圳爱根斯通科技有限公司 Method, apparatus, electronic equipment and the storage medium for preventing sub- equipment from accidentally being deleted
CN110838959A (en) * 2019-11-07 2020-02-25 深圳市欧瑞博科技有限公司 Smart home equipment binding method and device, electronic equipment and storage medium
CN112423322A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Model information sending method, device, storage medium and electronic device
CN113422814A (en) * 2021-06-16 2021-09-21 青岛易来智能科技股份有限公司 Method and system for sending device control command, storage medium and electronic device
CN114095558A (en) * 2022-01-24 2022-02-25 深圳市朗琴音响技术有限公司 Communication switching method and device of intelligent sound box
CN114666401A (en) * 2022-04-08 2022-06-24 深圳市欧瑞博科技股份有限公司 Equipment information processing method and device, computer equipment and storage medium
CN115250189A (en) * 2021-04-27 2022-10-28 西门子(中国)有限公司 Secret key management method and device for intelligent household equipment

Citations (5)

* Cited by examiner, † Cited by third party
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
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
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

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495539A (en) * 2018-09-26 2019-03-19 深圳爱根斯通科技有限公司 Method, apparatus, electronic equipment and the storage medium for preventing sub- equipment from accidentally being deleted
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
CN110838959A (en) * 2019-11-07 2020-02-25 深圳市欧瑞博科技有限公司 Smart home equipment binding method and device, electronic equipment and storage medium
CN112423322A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Model information sending method, device, storage medium and electronic device
CN115250189A (en) * 2021-04-27 2022-10-28 西门子(中国)有限公司 Secret key management method and device for intelligent household equipment
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
CN114095558A (en) * 2022-01-24 2022-02-25 深圳市朗琴音响技术有限公司 Communication switching method and device of intelligent sound box
CN114666401A (en) * 2022-04-08 2022-06-24 深圳市欧瑞博科技股份有限公司 Equipment information processing method and device, computer equipment and storage medium
CN114666401B (en) * 2022-04-08 2023-11-24 深圳市欧瑞博科技股份有限公司 Device information processing method, device, computer device and storage medium

Also Published As

Publication number Publication date
CN108551413B (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN108551413A (en) Smart home device binding method, device, gateway device and storage medium
CN108702389A (en) For being remotely controlled IOT(Internet of Things)The framework of equipment
CN107367949B (en) Obtain the methods, devices and systems of product identification
CN111800442A (en) Network system, mirror image management method, device and storage medium
CN101753446B (en) Network system, network management server, and configuration scheduling method
CN110262274A (en) Smart home device control display methods and system based on Internet of Things operating system
CN107003983A (en) Configuration network
CN105763385B (en) Traffic scheduling method and device
CN105722089B (en) A kind of equipment authentication method
CN102420863B (en) Rapid file distribution system, method thereof and apparatus thereof
CN107872473A (en) Message treatment method, device and system
US11373116B2 (en) Model parameter fusion method and apparatus
CN110519366A (en) A kind of method and device for replacing gateway
CN104641606B (en) The method and virtual network management entity of Internet resources equilibrium treatment
CN109246201A (en) cloud resource delivery method, processor and storage medium
CN107430582A (en) Thin client system, connection management device, virtual machine operations device, method and storage medium
CN107222569A (en) X-ray machine breakdown maintenance methods, devices and systems
CN108933844A (en) The method and apparatus of DHCP service is provided
CN105812413A (en) Communication method and device
CN105242885B (en) A kind of variation and device of network storage
CN110363979A (en) A kind of LoRa remote control system and control method based on ModBus agreement
CN107018177A (en) It is a kind of to manage the terminal management system serviced with multizone concentratedly
CN109788057A (en) A kind of internet of things equipment dynamic virtual configuration method and system
CN106375361A (en) Method of transmitting file between terminals, mobile terminal and wireless routing device
CN109150981A (en) Block chain network network-building method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
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