Summary of the invention
The purpose of the present invention is intended to solve above-mentioned one of technical problem at least to a certain extent.
For this purpose, the first purpose of this invention is to propose a kind of control method of ZigBee pairing grouping.This method makes
It is very intuitive easy to operate to obtain whole process, can be completed at the scene, it is auxiliary without monitoring systems such as computer or mobile devices
Help completion, it might even be possible to without electrically operated completion, greatly reduce the skill requirement and installation difficulty to construction personnel.
Second object of the present invention is to propose a kind of equipment.
To achieve the goals above, the control method of the ZigBee pairing grouping of first aspect present invention embodiment, comprising:
According to multiple dial-up information of pairing demand and group control demand setting multiple equipment, wherein each equipment all has ZigBee mould
Block and toggle switch;Networking is carried out to the multiple equipment to establish by the ZigBee module based on ZigBee technology
ZigBee-network, and the multiple dial-up information is sent to the gateway of the ZigBee-network;And the gateway is according to institute
It states multiple dial-up information and generates matching table and control logic, and according to the matching table and the control logic to corresponding equipment
It is controlled.
The control method of ZigBee pairing grouping according to an embodiment of the present invention, according to pairing demand and group control demand setting
Multiple dial-up information of multiple equipment, wherein each equipment all has ZigBee module and toggle switch, later, is based on
ZigBee technology carries out networking to multiple equipment by ZigBee module to establish ZigBee-network, and multiple dial-up information are sent out
It send to the gateway of ZigBee-network, then, gateway generates matching table and control logic according to multiple dial-up information, and according to pairing
Table and control logic control corresponding equipment, realize and are switched on i.e. inside ZigBee-network by the dial-up in equipment
Function pairing (or binding) or the grouping control between equipment can be simply realized, so that the very intuitive easily behaviour of whole process
Make, can be completed at the scene, assists completing without monitoring systems such as computer or mobile devices, it might even be possible to not charged behaviour
It completes, greatly reduces the skill requirement and installation difficulty to construction personnel.
According to one embodiment of present invention, the control logic includes single control, group control and scene.
Wherein, in one embodiment of the invention, the multiple dial-up information includes digital code information, the gateway according to
The multiple dial-up information generates matching table and control logic, specifically includes: the gateway is by dialling with identical digital code information
Code information is matched, and generates the matching table and the control logic according to the relationship of the pairing.
Wherein, in an embodiment of the present invention, the relationship of the pairing includes one-to-one combination, one-to-many combination, single control
Combination, group control combination and scene composition.
According to one embodiment of present invention, when the control logic is described group of control or the scene, the method
Further include: the ID of the described group of control or ID of the scene is generated according to the multiple dial-up information, and according to the ID of described group of control
Or ID, the matching table and the control logic of the scene control corresponding equipment.
According to one embodiment of present invention, matching table and control are generated according to the multiple dial-up information in the gateway
After logic, the method also includes: the control logic is issued to corresponding equipment according to the matching table by the gateway
It is stored.
According to one embodiment of present invention, the change of the equipment is carried out by modifying the dial-up information of equipment, alternatively,
Dial-up information by modifying equipment carries out the modification of the matching table.
According to one embodiment of present invention, the equipment includes light bulb and wireless switching.
To achieve the goals above, second aspect of the present invention embodiment proposes that a kind of equipment, the equipment have ZigBee
Module and toggle switch, the equipment further include: receiving module, for receiving user according to pairing demand and group control demand setting
The equipment dial-up information;Module is established, for being based on ZigBee technology by the ZigBee module to multiple equipment
Networking is carried out to establish ZigBee-network;Sending module, for the dial-up information to be sent to the net of the ZigBee-network
It closes, so that the gateway generates matching table and control logic according to the dial-up information, and according to the matching table and the control
Logic processed controls corresponding equipment.
Equipment according to an embodiment of the present invention receives user according to pairing demand and group control demand setting by receiving module
Equipment dial-up information, establish module be based on ZigBee technology by ZigBee module 10 to multiple equipment carry out networking to build
Dial-up information is sent to the gateway of ZigBee-network by vertical ZigBee-network, sending module, so that gateway is raw according to dial-up information
Corresponding equipment is controlled at matching table and control logic, and according to matching table and control logic, is realized in ZigBee
Network internal can simply realize the pairing of the function between equipment (or binding) or grouping by the dial-up booting in equipment
Control can be completed at the scene so that whole process is very intuitive easy to operate, monitor without computer or mobile device etc.
System auxiliary is completed, it might even be possible to without electrically operated completion, greatly reduce the skill requirement and installation difficulty to construction personnel.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the control method and equipment of the ZigBee pairing grouping of the embodiment of the present invention are described.
Fig. 1 is the flow chart of the control method of ZigBee pairing grouping according to an embodiment of the invention.Such as Fig. 1 institute
Show, the control method of ZigBee pairing grouping may include:
S101, according to multiple dial-up information of pairing demand and group control demand setting multiple equipment, wherein each equipment is equal
With ZigBee module and toggle switch.
In addition, in an embodiment of the present invention, equipment may include but be not limited to light bulb and wireless switching etc..
Specifically, the dial-up of the equipment can be set according to pairing demand and group control demand by the toggle switch in equipment
Information.For example, it is assumed that there is 3 ZigBee equipment, respectively ZigBee equipment 1, ZigBee equipment 2 and ZigBee equipment 3, each
Toggle switch is all had in ZigBee equipment, user can pass through in each ZigBee equipment according to pairing demand and group control demand
Toggle switch is arranged its dial-up information, as user can dialling according to pairing demand setting ZigBee equipment 1 and ZigBee equipment 2
Code information is 8, and the dial-up information of setting ZigBee equipment 3 is 12.
S102, based on ZigBee technology by ZigBee module to multiple equipment carry out networking to establish ZigBee-network,
And multiple dial-up information are sent to the gateway of ZigBee-network.
Specifically, setting up a complete ZigBee-network may include two steps: netinit, node device are added
Network, it includes two steps that wherein network is added in node device again: being networked and by connecting with coordinator by having father node
It networks.More specifically, netinit: needing to determine network coordinator first, node device passes through active channel scanning side later
Formula obtains a best and relatively quiet channel, and then network coordinator is that the network selectes a network identifier.In net
After network initialization, node device and network coordinator establish connection so that network is added, to complete the foundation of ZigBee-network.
After ZigBee-network establishes completion, the dial-up information of each equipment can be sent on gateway (the i.e. net of the ZigBee-network
Network coordinator) in.
S103, gateway generate matching table and control logic according to multiple dial-up information, and according to matching table and control logic
Corresponding equipment is controlled.
Wherein, in an embodiment of the present invention, multiple dial-up information may include digital code information.Specifically, in the present invention
Embodiment in, gateway can be as follows according to the specific implementation process that multiple dial-up information generate matching table and control logic: gateway
Dial-up information with identical digital code information is matched, and matching table and control logic are generated according to the relationship of pairing.Its
In, in an embodiment of the present invention, the relationship of pairing may include but be not limited to it is one-to-one combination, it is one-to-many combination, single control combination,
Group control combination and scene composition etc..In addition, control logic may include but be not limited to single control, group control and scene etc..
It is appreciated that the pairing of the function between equipment can be realized by the way that the number of identical toggle switch is arranged, such as
It is configurable to one-to-one or one-to-many and other various combinations (such as single control, group control and scene).In this way, gateway can will have
There is equipment corresponding to the dial-up information of identical digital code information to be matched, and according to the relationship of pairing (such as one-to-one combination, one
Multiple groups are closed, single control combination, organizes and controls combination and scene composition etc.) form matching table and control logic, it is possible to understand that the pairing
With having pairing relationship between which equipment in table, can have single control logic, group control logic, scenery control in the control logic
Logic etc..Later, gateway can carry out various communication control to corresponding equipment according to matching table and control logic.
In an embodiment of the present invention, when control logic is group control or scene, which may also include that according to more
The ID of a dial-up information generation group control or ID of scene, and according to group ID of control or ID, matching table and the control logic pair of scene
Corresponding equipment is controlled.Specifically, it when the control logic formed according to dial-up information is group control or scene, can be formed
Group control ID or scene ID carry out storage management, and can by group control ID or scene ID be issued in corresponding equipment with into
Row storage, and various communications can be carried out to corresponding equipment according to ID, matching table and the control logic of group ID of control or scene
Control, so that efficient collaboration can be realized by the ID of judgement group control or the ID of scene in the communications, avoids network delay.
Further, in one embodiment of the invention, matching table and control are generated according to multiple dial-up information in gateway
After logic processed, which may also include that control logic is issued to corresponding equipment according to matching table and deposited by gateway
Storage.Specifically, after gateway generates matching table and control logic according to multiple dial-up information, gateway can also will be by dial-up information
The various control logics formed are issued to corresponding equipment to be stored, while gateway also stores the control logic,
Thus, it is possible to restore control planning with can be convenient when equipment or gateway power failure.
Optionally, in one embodiment of the invention, the change of equipment can be carried out by modifying the dial-up information of equipment,
Alternatively, the modification of matching table can be carried out by modifying the dial-up information of equipment.Specifically, when the node device in network needs to become
It when more or needing to modify pairing relationship, can be realized by directly modifying dial-up information, to not influence other pairing sections
The control planning of point device.
The control method of ZigBee pairing grouping according to an embodiment of the present invention, according to pairing demand and group control demand setting
Multiple dial-up information of multiple equipment, wherein each equipment all has ZigBee module and toggle switch, later, is based on
ZigBee technology carries out networking to multiple equipment by ZigBee module to establish ZigBee-network, and multiple dial-up information are sent out
It send to the gateway of ZigBee-network, then, gateway generates matching table and control logic according to multiple dial-up information, and according to pairing
Table and control logic control corresponding equipment, realize and are switched on i.e. inside ZigBee-network by the dial-up in equipment
Function pairing (or binding) or the grouping control between equipment can be simply realized, so that the very intuitive easily behaviour of whole process
Make, can be completed at the scene, assists completing without monitoring systems such as computer or mobile devices, it might even be possible to not charged behaviour
It completes, greatly reduces the skill requirement and installation difficulty to construction personnel.
In order to realize above-described embodiment, the invention also provides a kind of equipment.
Fig. 2 is the structural schematic diagram of equipment according to an embodiment of the invention.As shown in Fig. 2, the equipment can have
ZigBee module 10 and toggle switch 20, in addition, the equipment may also include that receiving module 30, establish module 40 and sending module
50.It should be noted that in an embodiment of the present invention, equipment may include but be not limited to light bulb and wireless switching etc..
Specifically, receiving module 30 can be used for receiving user according to the dial-up of pairing demand and the equipment of group control demand setting
Information.More specifically, the equipment can be arranged by the toggle switch 20 in equipment according to pairing demand and group control demand in user
Dial-up information.For example, it is assumed that there is 3 ZigBee equipment, respectively ZigBee equipment 1, ZigBee equipment 2 and ZigBee equipment
3, toggle switch is all had in each ZigBee equipment, user can be set according to pairing demand and group control demand by each ZigBee
Its dial-up information is arranged in toggle switch 20 in standby, as user can be according to pairing demand setting ZigBee equipment 1 and ZigBee
The dial-up information of equipment 2 is 8, and the dial-up information of setting ZigBee equipment 3 is 12.It is set up in the dial-up information of each equipment
At later, the receiving module 30 of each equipment can receive the dial-up information of itself.
Establishing module 40 can be used for carrying out networking to multiple equipment by ZigBee module 10 based on ZigBee technology to build
Vertical ZigBee-network.More specifically, setting up a complete ZigBee-network may include two steps: netinit, node
Network is added in equipment, and it includes two steps that wherein network is added in node device again: being networked and by connecting with coordinator by
There is father node networking.More specifically, netinit: needing to determine network coordinator first, node device is by actively believing later
Road scanning mode obtains a best and relatively quiet channel, and then network coordinator is that the network selectes a network mark
Know symbol.After netinit, node device and network coordinator establish connection so that network is added, to complete ZigBee net
The foundation of network.
Sending module 50 can be used for for dial-up information being sent to the gateway of ZigBee-network, so that gateway is according to dial-up information
Matching table and control logic are generated, and corresponding equipment is controlled according to matching table and control logic.More specifically,
ZigBee-network is established after completion, and sending module 50 can send the dial-up information of each equipment on the net of the ZigBee-network
It closes in (i.e. network coordinator).Gateway can match the dial-up information with identical digital code information, and according to the pass of pairing
System generates matching table and control logic.Wherein, in an embodiment of the present invention, the relationship of pairing may include but be not limited to one-to-one
Combination, one-to-many combination, single control combination, group control combination and scene composition etc..In addition, control logic may include but be not limited to list
Control, group control and scene etc..
It is appreciated that can be by the way that the digital to realize that the function between equipment is matched of identical toggle switch 20, example be arranged
Such as it is configurable to one-to-one or one-to-many and other various combinations (such as single control, group control and scene).In this way, gateway can incite somebody to action
Equipment corresponding to dial-up information with identical digital code information is matched, and according to the relationship of pairing (such as it is one-to-one combination,
One-to-many combination, single control combination, group control combination and scene composition etc.) form matching table and control logic, it is possible to understand that and this is matched
To with having pairing relationship between which equipment, can having single control logic, group control logic, scene control in table in the control logic
Logic processed etc..Later, gateway can carry out various communication control to corresponding equipment according to matching table and control logic.
In an embodiment of the present invention, when control logic is group control or scene, gateway can also be used according to multiple dial-ups
The ID of the information generation group control or ID of scene, and according to ID, matching table and the control logic of group ID of control or scene to corresponding
Equipment is controlled.More specifically, a group control can be formed when the control logic formed according to dial-up information is group control or scene
ID or the ID of scene carry out storage management, and the ID or the ID of scene of group control can be issued in corresponding equipment to deposit
Storage, and various communication control can be carried out to corresponding equipment according to ID, matching table and the control logic of group ID of control or scene,
So that efficient collaboration can be realized by the ID of judgement group control or the ID of scene in the communications, network delay is avoided.
Further, in one embodiment of the invention, matching table and control are generated according to multiple dial-up information in gateway
After logic processed, gateway, which can also be used to control logic is issued to corresponding equipment according to matching table, to be stored.More specifically,
After gateway generates matching table and control logic according to multiple dial-up information, gateway can will also be formed various by dial-up information
Control logic is issued to corresponding equipment to be stored, while gateway also stores the control logic, thus, it is possible to make
Restore control planning with can be convenient when proper equipment or gateway power failure.
Optionally, in one embodiment of the invention, the change of equipment can be carried out by modifying the dial-up information of equipment,
Alternatively, the modification of matching table can be carried out by modifying the dial-up information of equipment.More specifically, when the node device in network needs
It when changing or needing to modify pairing relationship, can be realized by directly modifying dial-up information, to not influence other pairings
The control planning of node device.
Equipment according to an embodiment of the present invention receives user according to pairing demand and group control demand setting by receiving module
Equipment dial-up information, establish module be based on ZigBee technology by ZigBee module 10 to multiple equipment carry out networking to build
Dial-up information is sent to the gateway of ZigBee-network by vertical ZigBee-network, sending module, so that gateway is raw according to dial-up information
Corresponding equipment is controlled at matching table and control logic, and according to matching table and control logic, is realized in ZigBee
Network internal can simply realize the pairing of the function between equipment (or binding) or grouping by the dial-up booting in equipment
Control can be completed at the scene so that whole process is very intuitive easy to operate, monitor without computer or mobile device etc.
System auxiliary is completed, it might even be possible to without electrically operated completion, greatly reduce the skill requirement and installation difficulty to construction personnel.
In the description of the present invention, it is to be understood that, the meaning of " plurality " is at least two, such as two, three etc.,
Unless otherwise specifically defined.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.