A kind of wireless transducer network address configuration method based on IEEE802.15.4
Technical field
The present invention proposes a kind of wireless transducer network address configuration method based on IEEE 802.15.4, belongs to technical field of the computer network.
Background technology
(Wireless Sensor Networks is by being deployed in the network that the monitored area is inner or near a large amount of cheap microsensor node constitutes by the self-organizing mode WSN) to wireless sensor network.Wireless sensor network technology expands to the sensor application of limited distance ubiquitous, the network application that kind is abundant, between objective world object and people, set up a kind of effective communication way, become an application technology that broad development space and fine development prospect are arranged.Wireless sensor network has been widely deployed in fields such as military affairs, Smart Home, Industry Control, health care, environmental monitoring at present.
Fig. 1 shows common wireless sensor network structure.Wireless sensor network system generally includes sensor node (sensor node), aggregation node (sink node) and management node.A large amount of sensor nodes be deployed at random the monitored area inner or near, can constitute network by the self-organizing mode.The sensor node data monitored is transmitted along other sensor node hop-by-hop ground, and Monitoring Data may be routed to aggregation node through behind the multi-hop by a plurality of node processing in transmission course, arrives management node by the Internet or satellite at last.The disposal ability of aggregation node, storage capacity and communication capacity are relatively strong, it connects external networks such as sensor network and Internet, realize two kinds of direct communication Protocol Conversion of protocol stack, the monitoring task of while release management node, and a data forwarding of collecting is to external network.The user is configured and manages wireless sensor network by management node, issue monitoring task and collection Monitoring Data.
IEEE 802.15.4 standard is that IEEE 802.15.4 working group formulates at the low-speed wireless personal area network, physical layer and MAC layer have been defined, low-energy-consumption, lower rate transmissions, low-cost as highest priority, be intended to in individual or the home-ranges between the distinct device low speed interconnection unified standard is provided.Based on above-mentioned technical characterictic, IEEE 802.15.4 standard has become one of optimal selection of wireless sensor network underlying protocol stack.
Form by two types equipment according to the network that IEEE 802.15.4 makes up, a kind of is the equipment (RFD) of the simplification function that can only communicate by letter with the equipment (FFD) with complete function, another kind is exactly FFD, can communicate by letter with a plurality of RFD with a plurality of FFD simultaneously.In the network that IEEE 802.15.4 makes up, all equipment all has 64 unique long address codes, this address can be used for direct communication in PAN (personal area network), perhaps when having had connection between the equipment, it can be changed into 16 short address sign indicating numbers and distribute to PAN equipment, therefore, when equipment initiates to connect, adopt 64 long address code, only after successful connection, system assignment behind the identifier of PAN, can adopt 16 short address sign indicating numbers to communicate.
At present, address of node in the wireless sensor network is not formed unified standard.Consider wireless sensor network to energy-conservation specific (special) requirements, must make node address simple as far as possible,, reach purpose of energy saving to reduce the expense of data packet transmission.Simultaneously, node address should make it comprise abundanter information except being used for the identification nodes as much as possible, for example serves packet route, network topological information and network behavior such as obtains.
Summary of the invention
The present invention is directed to the deficiency of present technology, a kind of wireless transducer network address configuration method based on IEEE 802.15.4 is provided.Invention is at the small-scale wireless sensor network based on IEEE 802.15.4 standard, in of can obtain after adding network that father node distributes of new node can be used for netting communication, net in 16 unique short addresses, node can utilize this short address to net interior communication after successfully adding network, reduces length of data package.
For achieving the above object, the present invention by the following technical solutions:
The method that the present invention proposes may further comprise the steps,
Step 1, father node is that the new child node that networks is distributed 16 short addresses, this short address comprises two parts, and the 0th is flag bit, and the 1st is address bit to the 15th, in 15 the address bit, per from high to low 3 is 1 section, and the 13rd~15 is first section, increases progressively one by one, the 1st~3 is the 5th section, and value is not that the complete cross section numerical table of 0 address bit shows the node jumping figure;
Step 2 is got 0 short address coding to flag bit;
Step 3 adopts the dotted decimal notation address representation of band flag bit to represent the short address behind the coding.
The coding method of above-mentioned location is specific as follows: if the child node application networks successfully, then for the 1st hop node, by the aggregation node distribution short address of network; I jumps father node and is 7 child nodes distribution short addresses at the most, the 1st section of this short address is identical to i section value and father node, i+1 section value increases progressively from 1 one by one by the sequencing that distributes gets 7, i is from { 1,2,3, value among the 4}, for being father node and the 5th jumping father node that 7 child nodes have been distributed the short address, the short address that the node of networking for application distributes will be 0xFFFE, show the node accessed network that application networks, but the communication in net need be used location longways later on; The failure if the child node application networks, then its short address is set to 0xFFFF.
The dotted decimal notation address representation of above-mentioned band flag bit is specially, 16 short addresses are divided into 6 sections, wherein the 0th bit flag position is one section, 15 address bit has five sections, every section value is represented with its equivalent ten's digit, separate with symbol ". " between each section of address bit, separate with symbol " * " between address bit and the flag bit.
The present invention has following advantage: by the inventive method is that new network access node distributes 16 unique short addresses in the net, by being encoded in the short address, make the part topology information that contains current network in the sign indicating number of short address, the child node short address has kept father node short address information simultaneously, the address is the identify label of node no longer just, can also serve other network behavior.Utilize the dotted decimal notation address representation of band flag bit to represent the node short address, can strengthen the readability of node address, convenient further application.In sum,, can utilize simple 16 short addresses that fairly large wireless sensor network is efficiently managed, optimize wireless sensor network performance by address configuration.
Description of drawings
Fig. 1 is the wireless sensor network structure;
Fig. 2 is the application scenarios schematic diagram of the embodiment of the invention;
Fig. 3 is 16 short addresses of new network access node form schematic diagram;
Embodiment
In specific implementation process, the method step that proposes according to the present invention carries out:
Step 1, father node is that the new child node that networks is distributed 16 short addresses, this short address comprises two parts, and the 0th is flag bit, and the 1st is address bit to the 15th, in 15 the address bit, per from high to low 3 is 1 section, and the 13rd~15 is first section, increases progressively one by one, the 1st~3 is the 5th section, and value is not that the complete cross section numerical table of 0 address bit shows the node jumping figure;
Step 2 is got 0 short address coding to flag bit;
Step 3 adopts the dotted decimal notation address representation of band flag bit to represent the short address behind the coding.
Existing conjunction with figs. and embodiment are described in detail as follows:
In the wireless sensor network that the present invention was suitable for, comprise 3 category nodes: an aggregation node; RFD node, RFD node only are responsible for the collection and the transmission of data in its monitored area, only with his father's node communication; FFD node, FFD node can be used as the networking request that father node is handled other nodes, and the collection of data can be used as the optional function of FFD node in the monitored area.In the wireless sensor network that the present invention was suitable for, the node of (containing 5 jumps) carries out the short address coding in can jumping 5, and the networking request of 7 child nodes can be accepted, be handled to each FFD node, distributes the short address.
Short address 0x0000,0xFFFE, 0xFFFF have special implication: address 0x0000 shows that this node is the aggregation node of this wireless sensor network; 0xFFFE represents the successful access network of node, but superior node does not also distribute 16 short addresses to this node, in this case, in the communication of this node in network, needs to use 64 locations longways; If recipient node does not add network, 16 short addresses that node is set are 0xFFFF.
Fig. 2 is a present embodiment application scenarios schematic diagram.In this schematic diagram, the S node is an aggregation node, A, and B, C, E, F, G, H and I node are the FFD node, D, J and K node are the RFD node.In this schematic diagram, straight arrows is pointed to the superior node that processing node networks and asks, and solid line represents that node successfully adds network, and dotted line is represented node networking failure.The address on each node right side is 16 short addresses of node.
16 short addresses of node each section implication is referring to Fig. 3.
At first, start the S node, the S node is an aggregation node, and the short address is 0x0000, can be expressed as 0.0.0.0.0*0 with the Dotted decimal notation of being with flag bit.
Then A, B, C node sequence start, and the short address that successful access network, S node are distributed to A, B, C node is followed successively by 1.0.0.0.0*0,2.0.0.0.0*0,3.0.0.0.0*0.The jumping figure of A, B, C node is 1 jumping.
The D node adds network to the application of B node, networks successfully, and the B node distributes short address 2.1.0.0.0*0 for the D node; The F node adds network to the application of C node, networks successfully, and the C node distributes short address 3.1.0.0.0*0 for the F node.The jumping figure of D, F node is all 2 and jumps.
The G node adds network to the application of F node, networks successfully, and the F node distributes short address 3.1.1.0.0*0 for the G node, and the jumping figure of G node is 3 jumpings; The H node adds network to the application of G node, networks successfully, and the G node distributes short address 3.1.1.1.0*0 for the H node, and the jumping figure of H node is 4 jumpings; The I node adds network to the application of H node, networks successfully, and the H node distributes short address 3.1.1.1.1*0 for the I node, and the jumping figure of I node is 5 jumpings.
The E node adds network to the application of B node, the failure that networks, and the short address of E node is 0xFFFF, the E node will attempt adding network once more in a certain moment in the future.
The J node adds network to the application of I node, networks successfully, because I node jumping figure is 5 jumpings, the I node is 0xFFFE for the short address of J node distribution, later J node in network, will use 64 longways the location communicate.
The short address that is positioned at the K node in this network somewhere is 6.6.6.6.6*1, and the flag bit value is 1, is not encoded in this address.
Can oppositely release the short address of the even higher level of node of accepting its networking by the short address of node.For example, distributing the even higher level of node short address of short address for node 1.0.0.0.0*0 is 0.0.0.0.0.*0, and distributing the even higher level of node short address of short address for node 3.1.1.1.0*0 is 3.1.1.0.0*0.