The coordination system of intelligent domestic system based on Zigbee wireless communication technology and
Method
Technical field
The present invention relates to electronic information communication field, particularly relate to a kind of intelligent family based on Zigbee wireless communication technology
Occupy system coordination system and method.
Background technology
At present, the international standard in Smart Home field is the most ripe, and all big enterprises and mechanism of linked groups set about building
The Network interface standard stood and formulate between intelligent domestic system internal unit and Data Transport Protocol, but present circumstances is come
Seeing, Smart Home communications protocol camp is complicated, and each incompatible.About communications protocol, Smart Home field has had much
Communication protocol, WiFi, bluetooth, ZigBee, Z-Wave etc..Estimate that developer's head selecting which kind of agreement when is the biggest
, finally it is likely to be forced to support eight kinds of communication protocols as Homey.Now, Samsung, Nest, ARM put out jointly again
A kind of new agreement Thread.Do not know that Thread can accelerate industry unified standard and be formed, still allow and originally reached the logical of unrest
Letter agreement more " cut constantly, reason is gone back disorderly ".
The most the more commonly used procotol has WiFi, bluetooth, ZigBee, Z-Wave, but has existence following not
Foot:
1, the power dissipation ratio of WiFi is relatively big, is suitable for transmitting substantial amounts of data;
2, Bluetooth power consumption ratio is relatively low, but there is also now bluetooth 2.0 and bluetooth 4.0 trouble waters deposited, and does not supports
IPv6;
3, Z-Wave is dominated by Danish company Zensys, the most powerful, selects user very little.
In Design for Smart Home System, on the premise of keeping standard unified as far as possible, come for various signal types
Select suitable bus or wireless technology and design master controller oneself become Smart Home build matter of utmost importance.At wired mode
In, each sensor and controller connect through bus, its advantage is to simplify the design of each functional unit, and shortcoming is exactly
Wiring is many, and structure is complicated, the problem that there is also bus protocol design alternative.
In current intelligent domestic system, system communication module typically integrates with functional control module, in intelligence
The early stage of energy house system development, Smart Home production firm is fewer, and each systematic comparison is independent, so can increase system
Unite integrated, reduce system cost, promoted the development of Smart Home.But along with the raising of people's living standard, various households set
For quickly growing, the continuous application of house system network technology (wired and wireless technology), use communication module and function to control
It is bad that the integrated traditional intelligence house system of module has versatility, and system difficulty is safeguarded and designs the shortcomings such as dumb.
Summary of the invention
For weak point present in above-mentioned technology, the present invention provides a kind of intelligence based on Zigbee wireless communication technology
The coordination system and method for energy house system, the intelligent domestic system of the present invention has durability, installs easily, debugging letter
Single, the features such as versatility is good.
For achieving the above object, the present invention provides the association of a kind of intelligent domestic system based on Zigbee wireless communication technology
Adjusting system, including host node intelligent home network controller and the household network equipment being distributed in each room, described household
The network equipment all communicates to connect with host node intelligent home network controller, and the quantity in described room is at least one;
Household network equipment in each room includes that partial node intelligent home network controls router, multiple home equipment, many
The function-driven module of the individual function executing mechanism as home equipment and multiple partial node intelligent home network controller;Each
Home equipment connects alternately with corresponding function-driven module, each function-driven module and corresponding partial node Smart Home net
Network controller interacts connection, and each partial node intelligent home network controller all controls road with partial node intelligent home network
It is communicatively coupled by device;
The partial node intelligent home network in each room controls to carry out between router and host node intelligent home network controller
The Zigbee cordless communication network of this system is formed after communication connection;
After Zigbee intelligent network set up by host node intelligent home network controller, the partial node intelligent home network in each room
Controlling router and be subsequently added this network, thus both have collectively constituted the Zigbee radio house network of a tufted;When needing
When a certain home equipment being controlled or to be monitored, host node intelligent home network controller finds and this home equipment phase
The id information of partial node even, and control information is mail to the partial node intelligent home network control road in this room, partial node place
By device, partial node intelligent home network controls router and forwards the information to the partial node intelligent home network control of correspondence again
Device, after partial node intelligent home network controller receives information, sends into corresponding function-driven module;Last by function-driven
This home equipment is operated by module accordingly.
Wherein, it is equipped with one in host node intelligent home network controller and each partial node intelligent home network controller
Zigbee radio receiving transmitting module, and host node intelligent home network controller is additionally provided with GPRS module, described host node intelligence
Household network controller is connected with mobile phone and internet communication by GPRS module, can pass through the Internet and mobile phone pair
Home equipment remotely monitors;
The corresponding operating that corresponding home equipment is carried out by function-driven module has: can be remote by mobile phone or the Internet
Journey is monitored, when user remotely monitors, and the SIM phone number sending information in GPRS module, GPRS module receives this information,
Passing to host node intelligent home network controller, this information is resolved, and passes through by host node intelligent home network controller
Zigbee radio communication is sent to corresponding home equipment.
Wherein, described Zigbee cordless communication network uses Zigbee tufted structure to set up wireless intelligent house network.
For achieving the above object, the present invention also provides for a kind of intelligent domestic system based on Zigbee wireless communication technology
Coordination approach, the method is:
After Zigbee intelligent network set up by host node intelligent home network controller, the partial node intelligent home network in each room
Controlling router and be subsequently added this network, thus both have collectively constituted the Zigbee radio house network of a tufted;When needing
When a certain home equipment being controlled or to be monitored, host node intelligent home network controller finds and this home equipment phase
The id information of partial node even, and control information is mail to the partial node intelligent home network control road in this room, partial node place
By device, partial node intelligent home network controls router and forwards the information to the partial node intelligent home network control of correspondence again
Device, after partial node intelligent home network controller receives information, sends into corresponding function-driven module;Last by function-driven
This home equipment is operated by module accordingly.
Wherein, the networking flow process of Zigbee intelligent network is specific as follows:
First initiated request by the host node intelligent home network controller serving as network coordinator and set up network, creating simultaneously
One network adjacency list, is that each partial node intelligent home network controls router one 16 PAN m of distribution subsequently, and will letter
Breath adds in this network adjacency list, and the interpolation of network node just completes.
Wherein, when home equipment wants to add this network, self information is sent to partial node intelligent home network and controls
Router, then controlled router by partial node intelligent home network and this information is transmitted to host node intelligent home network controls
Device, host node intelligent home network controller controls router according to different partial node intelligent home network and forwards the information come to enter
Row packet, is then the PAN ID of each home equipment distribution one 16, then adds this home equipment to network adjacency list
In, mark terminal unit is added in this network.
Wherein, network coordinator plays vital effect in Zigbee intelligent network, except directly participating in network
Application outside, also to complete perhaps member identities management, link-state information management and packet forwarding task.
Wherein, the system of selection of adaptive network coordinator particularly as follows:
First there is the probability terminating normal work at any time in view of network coordinator, so setting the partial node intelligence in each room
Can control whether to exist in router first to broadcast search for networks each node device request data is transmitted when by household network
Network coordinator;There is network coordinator in network when searching, then one beacon frame of transmission is to this network coordinator, notifies it
One group of data is had to be transmitted;If network coordinator is in idle condition, send an acknowledgement frame to partial node intelligence
Household network controls router, and distributes respective channel and control router, partial node intelligence man to partial node intelligent home network
Occupying network control router and relay to home equipment, home equipment starts the transmission of data after receiving acknowledgement frame;If now
Network coordinator is the most idle, in running order, partial node intelligent home network is not controlled the beacon that router sends
Frame makes reflection, and partial node intelligent home network controls router and then sends beacon by predetermined time interval to network coordinator
Frame is filed a request until network coordinator is idle;Do not send out when searching for network when partial node intelligent home network controls router
Existing network coordinator, then can building network automatically, take on the responsibility of network coordinator temporarily, and distribute the PAN ID address of 16
To the network equipment;When each home equipment wants to carry out data exchange, then can carry out according to above-mentioned steps;Can not at network coordinator
The when of normally work, this method can make home equipment temporarily be carried out by partial node intelligent home network control router
Control.
Compared with prior art, the coordination of the intelligent domestic system based on Zigbee wireless communication technology that the present invention provides
System and method,
This intelligent domestic system mainly includes that host node intelligent home network controller, partial node intelligent home network control route
Device, as the function-driven module of function executing mechanism of home equipment and partial node intelligent home network controller;Each room
Between partial node intelligent home network control to be communicatively coupled between router and host node intelligent home network controller after
Form the Zigbee cordless communication network of this system, be the communication network of whole intelligent domestic system, changing of this system and method
Enter, have the advantages that
1) zigbce wireless communication technology is applied in Smart Home, proposes a kind of Zigbee wireless communication technology of using
Design for Smart Home System scheme.Compared with traditional intelligence house system, having and exempt from wiring, easy to maintenance, operating cost is low, real
Time on-line monitoring, data various to household inside carry out wireless collection and pass the features such as color;
2) for intelligent home network feature, use clustered network to set up Smart Home in-house network, and propose a kind of self adaptation intelligence
Energy household network coordinator selection strategy, can overcome because of the unexpected drawback causing network paralysis;
3) household network data transmission credibility is improved;
4) household network is made to have self-organization, self application;
5) internet security etc. is improved;
6) system is made to have extensibility.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the coordination system of the intelligent domestic system based on Zigbee wireless communication technology of the present invention;
Fig. 2 is adaptive network coordinator system of selection in the present invention.
Main element symbol description is as follows:
10, host node intelligent home network controller 11, household network equipment
12, mobile phone 13, the Internet
101, GPRS module 111, partial node intelligent home network control router
112, home equipment 113, function-driven module
114, partial node intelligent home network controller.
Detailed description of the invention
In order to more clearly state the present invention, below in conjunction with the accompanying drawings the present invention is further described.
Refer to Fig. 1, the coordination system of the intelligent domestic system based on Zigbee wireless communication technology of the present invention, including
Host node intelligent home network controller 10 and the household network equipment 11 being distributed in each room, described household network equipment
11 all communicate to connect with host node intelligent home network controller 10, and the quantity in described room is at least one;
Household network equipment in each room includes that partial node intelligent home network controls router 111, multiple home equipment
112, the function-driven module 113 of multiple function executing mechanisms as home equipment 112 and multiple partial node Smart Home net
Network controller 114;Each home equipment connects alternately with corresponding function-driven module, and each function-driven module is with corresponding
Partial node intelligent home network controller interacts connection, each partial node intelligent home network controller all with partial node intelligence
Can be communicatively coupled by household network control router;
The partial node intelligent home network in each room controls to carry out between router and host node intelligent home network controller
The Zigbee cordless communication network of this system is formed after communication connection;
After Zigbee intelligent network set up by host node intelligent home network controller, the partial node intelligent home network in each room
Controlling router and be subsequently added this network, thus both have collectively constituted the Zigbee radio house network of a tufted;When needing
When a certain home equipment being controlled or to be monitored, host node intelligent home network controller finds and this home equipment phase
The id information of partial node even, and control information is mail to the partial node intelligent home network control road in this room, partial node place
By device, partial node intelligent home network controls router and forwards the information to the partial node intelligent home network control of correspondence again
Device, after partial node intelligent home network controller receives information, sends into corresponding function-driven module;Last by function-driven
This home equipment is operated by module accordingly.The present invention is function-driven module and partial node intelligent home network to be controlled
The scheme that device is implemented separately, function controls the interface driving module to realize with various home equipments, and is the function of home equipment
Actuator.
In the present embodiment, host node intelligent home network controller 10 and each partial node intelligent home network controller
It is equipped with a Zigbee radio receiving transmitting module in 114, and host node intelligent home network controller 10 is additionally provided with GPRS module
101, described host node intelligent home network controller is by GPRS module 101 and mobile phone 12 and the Internet 13 communication link
Connect, by the Internet and mobile phone, home equipment remotely can be monitored;Function-driven module is to corresponding home equipment
The corresponding operating carried out has: can remotely be monitored by mobile phone or the Internet, when user remotely monitors, send information to
SIM phone number in GPRS module, GPRS module receives this information, passes to host node intelligent home network controller, main
This information is resolved by node intelligent household network controller, and is sent to corresponding household by Zigbee radio communication and sets
Standby.Native system uses this design, can set up intelligent domestic system network easily, lead to each home equipment
Letter, when being newly added home equipment, it is only necessary to functional control module is revised accordingly, when deleting home equipment, also
Have only to remove corresponding intelligent home network controller partial node.Therefore the program has flexible design, and versatility is good, can expand
The advantages such as malleability is good.
In the present embodiment, Zigbee cordless communication network uses Zigbee tufted structure to set up wireless intelligent house net
Network.At present, most wireless intelligent house network all uses Star Network, using PC as master controller,
An external FFD Zigbee module on PC, thus serve as the network coordinator in Star Network, its simple in construction, it is easy to dimension
Protect, but there is also a shortcoming the most serious simultaneously: once network coordinator damages or depleted of energy, at whole network general
In state of paralysis, it is impossible to realizing controlling operation, Smart Home is lost meaning.And mesh network topology is more complicated, compare
Under expensive, the most applicable for the purpose that Smart Home realizes low cost, and due to can communication node too much,
Easily produce channel confliction, delay and the communication overhead of message transmission can be increased.Therefore, the reality of combined with intelligent household of the present invention
Situation have employed Zigbee tufted structure and sets up wireless intelligent house network.Intelligent domestic system is considered in the design of network structure
Having durability, install easily, debugging is simple, and the features such as versatility is good, this case have employed modularized design principle, i.e. household system
Communications portion and the function-driven module of system are implemented separately, and communications portion is served as by partial node intelligent home network controller.
Intelligent home network controller host node is as the network coordinator i.e. master controller of intelligent home device of home network, simultaneously
One partial node intelligent home network control router is installed in each room and realizes the router feature of home network, each
Home equipment also connects an intelligent home network controller partial node, so one small home clustered network of composition.
Bunch type network is also a kind of application of peer-to-peer network, and hereinto in network, most of equipment is FFD equipment,
And RFD equipment is always connected in network as bunch leaf equipment of tree.Any one FFD can serve as RFD coordinator or
Network coordinator, provides synchronizing information for other equipment.In these coordinators, only one of which can serve as whole point-to-point net
The network coordinator of network.Network coordinator may be the same with other equipment in network, it is also possible to has more more than other equipment
Calculate resource and energy resource.First oneself is set to a bunch head (Cluster Header, CLH) and by a bunch mark by network coordinator
Number (Cluster Identifier, CID) is set to 0, selects a PAN mobile network identification number being not used by for this bunch simultaneously,
Forming the first bunch of network, then, network coordinator starts broadcast beacon frame.After nearby device receives beacon frame, it is possible to
Application adds this bunch.Equipment could become a bunch member, network coordinator determine.If request is allowed to, then this equipment will be made
For bunch word equipment join in the neighboring node list of network coordinator, the equipment being newly added using bunch head as its parent device
Join in the neighboring node list of byte.
For home system network structure, first need two concepts of distinguishing one from the other, i.e. identifier and global unique identification in net
Symbol.In Zigbee network, there are two kinds of forms device address: the short address of 16 (2 bytes) and 64 (expansions of 8 bytes 1
Location, the site of an exhibition.16 short addresses are equipment when associating with PAN network coordinator device, by coordinating local address in the net of equipment distribution,
It it is this equipment identifier in this LAN;And 64 Bits Expanding addresses are globally unique locations, when equipment dispatches from the factory, entrance
Being distributed by manufacturer before network, this respect work is responsible for by Zigbee alliance.16 short addresses can only ensure at PAN net
It is unique inside network, network coordinator is the distribution of each net interior nodes building network when, so using 16
Need the PAN network identifier combining 16 the most meaningful during the communication of short address.
For achieving the above object, the present invention also provides for a kind of intelligent domestic system based on Zigbee wireless communication technology
Coordination approach, the method is:
After Zigbee intelligent network set up by host node intelligent home network controller, the partial node intelligent home network in each room
Controlling router and be subsequently added this network, thus both have collectively constituted the Zigbee radio house network of a tufted;When needing
When a certain home equipment being controlled or to be monitored, host node intelligent home network controller finds and this home equipment phase
The id information of partial node even, and control information is mail to the partial node intelligent home network control road in this room, partial node place
By device, partial node intelligent home network controls router and forwards the information to the partial node intelligent home network control of correspondence again
Device, after partial node intelligent home network controller receives information, sends into corresponding function-driven module;Last by function-driven
This home equipment is operated by module accordingly.The networking flow process of Zigbee intelligent network is specific as follows:
First initiated request by the host node intelligent home network controller serving as network coordinator and set up network, creating simultaneously
One network adjacency list, is that each partial node intelligent home network controls router one 16 PAN m of distribution subsequently, and will letter
Breath adds in this network adjacency list, and the interpolation of network node just completes.
In the present embodiment, when home equipment wants to add this network, self information is sent to partial node Smart Home
Network controls router, then is controlled router by partial node intelligent home network this information is transmitted to host node Smart Home net
Network controller, host node intelligent home network controller controls what router forwarding came according to different partial node intelligent home network
Information is grouped, and is then the PAN ID of each home equipment distribution one 16, then adds this home equipment to network
In adjacency list, mark terminal unit is added in this network.Network coordinator plays to closing weight in Zigbee intelligent network
The effect wanted, except directly participate in network application in addition to, also to complete perhaps member identities management, link-state information management with
And packet forwarding task.
Referring to Fig. 2, simultaneously take account of the viability of whole household network, once host node is paralysed, and uses corresponding
Strategy is served as master node functionality by the router in certain room.This strategy is specially adaptive network coordinator system of selection, from
Adapt to network coordinator system of selection particularly as follows: first there is the probability terminating normal work at any time in view of network coordinator,
So the partial node intelligent home network setting each room controls router each node device request data is transmitted when
Whether network coordinator is there is in first broadcasting search for networks;When searching, network exists network coordinator, then send one
Beacon frame gives this network coordinator, notifies that it has one group of data to be transmitted;If network coordinator is in idle condition
Then send an acknowledgement frame and control router to partial node intelligent home network, and distribute respective channel to partial node Smart Home
Network controls router, and partial node intelligent home network controls router and relays to home equipment, and home equipment receives really
The transmission of data is started after recognizing frame;If now network coordinator is the most idle, in running order, the most not to partial node intelligence man
Occupy network to control the beacon frame that router sends and make reflection, partial node intelligent home network control router then by specify time
Between be spaced to network coordinator send beacon frame file a request until network coordinator is idle;When partial node intelligent home network control
Router processed does not find network coordinator when searching for network, then can building network automatically, take on network coordinator temporarily
Responsibility, and distribute the PAN ID address of 16 to the network equipment;When each home equipment wants to carry out data exchange, then can be according to upper
State step to carry out;Network coordinator cisco unity malfunction when, this method can make home equipment temporarily by partial node
Intelligent home network controls router and is controlled.
The most former network coordinator cisco unity malfunction in this case, before former network coordinator recovers normally, this period of phase
In want to carry out any partial node intelligent home network of data exchange control router can be the most automatic
Serve as network coordinator.Each terminal node sent a beacon frame before preparing communication and receives to destination node, destination node
After beacon frame, one acknowledgement frame of transmission is to source node, and source node receives acknowledgement frame and whether acknowledgement channel is in idle condition,
If then proceeding by the transmission of data.
Compared to the situation of prior art, the intelligent domestic system based on Zigbee wireless communication technology that the present invention provides
Coordination system and method, this intelligent domestic system and method mainly include host node intelligent home network controller, merogenesis
Point intelligent home network controls router, as the function-driven module of function executing mechanism of home equipment and partial node intelligence
Household network controller;The partial node intelligent home network in each room controls router and controls with host node intelligent home network
Form the Zigbee cordless communication network of this system after being communicatively coupled between device, be the communication network of whole intelligent domestic system
Network, the improvement of this system and method, have the advantages that
1) zigbce wireless communication technology is applied in Smart Home, proposes a kind of Zigbee wireless communication technology of using
Design for Smart Home System scheme.Compared with traditional intelligence house system, having and exempt from wiring, easy to maintenance, operating cost is low, real
Time on-line monitoring, data various to household inside carry out wireless collection and pass the features such as color;
2) for intelligent home network feature, use clustered network to set up Smart Home in-house network, and propose a kind of self adaptation intelligence
Energy household network coordinator selection strategy, can overcome because of the unexpected drawback causing network paralysis;
3) household network data transmission credibility is improved;
4) household network is made to have self-organization, self application;
5) internet security etc. is improved;
6) system is made to have extensibility.
The several specific embodiments being only the present invention disclosed above, but the present invention is not limited to this, any ability
What the technical staff in territory can think change all should fall into protection scope of the present invention.