Background technology
UWB (Ultra Wideband, ultra broadband) technology is a wireless technology of using high bandwidth and low-power consumption high speed transmission data in short distance, be that high-quality content of multimedia such as wireless transmission digital video, image and the ideal that makes up high speed WPAN (Wireless Personal Area Network, wireless personal-area network) are selected.
In the WPAN of prior art, realize that the needed basic timing architecture of equipment room data communication is superframe, as shown in Figure 1, be the superframe structure in ECMA-368 MAC in the prior art (Media Access Control, the medium access control) agreement.The MAS that each superframe is 256us by 256 length (MediaAccess Slot, medium access slot) forms, and MASs is since 0 numbering arrangement according to the order of sequence successively, and therefore, the total duration of each superframe is 65536 (=256 * 256) us.The beginning part of superframe must be used for the activity relevant with beacon (as the beacon that sends this equipment, the beacon of monitoring neighbouring device etc.), and this part is called BP (Beacon Period, beacon period); Remainder is used for transport service or control Frame, is called DTP (Data Transmit Period, data transfer period).
In BP, the the 0th and the 1st BS (Beacon Slot, beacon slot) is specifically designed to the command transmitting beacon, this signalling beacon refers to carry the beacon of adjusting the BP length information, all the other BS then are used for the common beacon of transmission, and this common beacon carries the beacon slot positional information that BS is occupied among this BP (beacon slot number).The initial moment (the initial moment of each superframe just) of each BP is called BPST (Beacon Period Start Time, time started beacon period).In DTP, equipment can be by using DRP (Distributed Reservation Protocol, distributed reservation protocol) or PCA (Prioritized Contention Access, divide the competition of priority to insert) access channel transmission data, the former is the channel resource reservation mode, and the latter is competition access channel mode.
In existing ECMA-368 MAC agreement, network is divided at least two BG (Beacon Group, beacon group), wherein BG refers to have identical BPST, sends the device populations of beacon in same BP.Though may have two or more BGs with different B PST simultaneously in the network, a plurality of BPs are namely arranged, as long as enough far away every getting between the BGs, they just can communicate independently of each other.
Yet because equipment is mobile, network topology structure changes suddenly, may enter (the communication role scope that namely enters the other side each other) between the different BGs each other, causes that superframe is overlapping, causes beacon or transfer of data conflict.Come from other BG if the equipment among certain BG receives beacon, claim that such beacon is outside beacon, the BP at outside beacon place is called outside BP, and the BPST of outside BP is called outside BPST.In order to avoid this conflict, ECMA-368 MAC protocol requirement merges all this BGs that enter each other in the network, and namely the equipment of all these BGs merges and all resends and receive beacon among the new BP after merging in the network.For any BG, proper communication alone before not hearing any external beacon, in case listen to external beacon, then be apprised of and exist two or more BGs to enter each other in the network, merge with other BGs and then communicate by letter thereby the equipment among this BG must begin to reorientate the BS that oneself sends beacon.
Disclose a kind of many BPs based on detection external beacon/outside BP in the prior art and coordinated to merge the BPST synchronization scenarios, specified as follows:
There are two or more BGs in the hypothesis network now, suppose that they have all set up the BP of oneself respectively, and proper communication independently separately.According to ECMA-368 MAC agreement, if this moment network topology structure change suddenly or arbitrary BG in have equipment to move to make and enter each other between the BGs, the equipment among the BG of external beacon of listening to so need carry out many BPs according to following steps to be coordinated to merge:
(1) equipment comprises in the beacon that oneself sends or revises BP Switch IE;
Wherein, BP Switch IE (Beacon Period Switch Information Element, the handover information of beacon period) is a kind of among numerous IEs, comprise three important territories: BP MoveCountdown (Beacon Period Move Countdown, the metering that beacon period moves), BPSTOffset (Beacon Period Start Time offset, the side-play amount of time started beacon period), Beacon Slot Offset (side-play amount of beacon slot).The value of BP Move Countdown is that equipment is adjusted and to be needed the number of superframes waited for before the BPST; The value of BPST Offset is the time span that equipment need postpone own BPST; The value of Beacon Slot Offset is the beacon slot number that original relatively beacon slot need be offset among the new BP of equipment after merging.
(2) equipment is adjusted BPST, reorientates the beacon of oneself.
When existing two or more BGs to enter each other in the network, reorientate the beacon of oneself according to above-mentioned rule if listen to all devices among the BGs of external beacon, then all devices among these BGs will finally all be synchronized with maximum BPST Offset and maximum Beacon Slot Offset, namely finally all be synchronized with the BPST of BPST that BG at the latest in this network.
In realizing embodiment of the invention process, the inventor finds that there are the following problems at least in the prior art: when prior art enters fusion each other at a plurality of BGs, can select the BPST of BPST that BG at the latest in the network as benchmark BPST all the time, the equipment of other BG can be the beacon that benchmark is reorientated oneself with this benchmark BPST.Therefore prior art is benchmark with BPST BG at the latest only when carrying out that a plurality of BG merge, and do not consider the actual conditions of network, as network size of each BG etc., therefore can cause the merging time long, merging process causes devices communicating long break period, and the too poor technological deficiency of the flexibility that merges between the BGs.
For instance, as shown in Figure 2, co-exist in the WPAN network of 3 parts in the network, wherein WPAN1 has A-G totally 7 equipment, and WPAN2 has H-L totally 5 equipment, and WPAN3 has M-R totally 6 equipment, and equipment uses identical BPST in each WPAN.Because the unexpected variation of network topology, each WPAN network enters each other, edge device can receive the outside beacon that sends from outside BG mutually, suppose to have only the equipment G of WPAN1 and the equipment H of WPAN2, and the equipment M of the equipment L of WPAN2 and WPAN3 can hear mutually, and other equipment all can not.Using coordination Merge Scenarios merging WPAN1, WPAN2 and WPAN3 below is a new WPAN, the BPST that supposes WPAN2 lags behind WPAN1 and WPAN3, way according to prior art, equipment among the WPAN2 will be adjusted BPST and merge to WPAN1 or WPAN3, suppose that the BPST Offset that equipment H and equipment L calculate is respectively 10ms and 15ms, the shared timeslot number of each equipment is shown in mark among Fig. 2.According to the way of prior art, can obtain the data variation in WPAN2 and the WPAN3 merging process, as shown in table 1:
Superframe |
H |
I |
J |
K |
L |
1 |
(10,4,9) |
|
|
|
(15,6,9) |
2 |
(10,4,8) |
(10,4,9) |
|
(15,6,9) |
(15,6,8) |
3 |
(10,4,7) |
(15,6,9) |
(10,4,9) |
(15,6,8) |
(15,6,7) |
4 |
(15,6,9) |
(15,6,8) |
(15,6,9) |
(15,6,7) |
(15,6,6) |
5 |
(15,6,8) |
(15,6,7) |
(15,6,8) |
(15,6,6) |
(15,6,5) |
6 |
(15,6,7) |
(15,6,6) |
(15,6,7) |
(15,6,5) |
(15,6,4) |
7 |
(15,6,6) |
(15,6,5) |
(15,6,6) |
(15,6,4) |
(15,6,3) |
8 |
(15,6,5) |
(15,6,4) |
(15,6,5) |
(15,6,3) |
(15,6,2) |
9 |
(15,6,4) |
(15,6,3) |
(15,6,4) |
(15,6,2) |
(15,6,1) |
10 |
(15,6,3) |
(15,6,2) |
(15,6,3) |
(15,6,1) |
(15,6,0) |
11 |
(15,6,2) |
(15,6,1) |
(15,6,2) |
(15,6,0) |
|
12 |
(15,6,1) |
(15,6,0) |
(15,6,1) |
|
|
13 |
(15,6,0) |
|
(15,6,0) |
|
|
As can be seen from Table 1, at the 1-10 frame, the equipment M of WPAN3 will hear in the external beacon that the external equipment L of WPAN2 sends and comprise BP Switch IE, show external beacon to own merging, and equipment M will not do any operation.Until do not comprise BP SwitchIE in the beacon that the 11st frame equipment L sends, this moment equipment M to calculate BPST Offset value be 0, show that merging finishes.
And in WPAN1 some difference of situation, though because WPAN2 merges to WPAN1 at first, last result turns to WPAN3 to merge.From the 1-13 frame, comprise BP Switch IE in the beacon that equipment H sends always, thereby equipment G will not do any operation, and do not comprise BP Swtich IE in the beacon that equipment H sends in the 14th frame, equipment G will calculate the value of each parameter this moment, and will just comprise BP Swtich IE in the 15th frame at next superframe, then other equipment in the WPAN1 spread, and merge to WPAN2 and WPAN3 up to WPAN1 and finish.Whole process is as shown in table 2:
Superframe |
A |
B |
C |
D |
E |
F |
G |
15 |
|
|
|
|
|
|
(5,4,9) |
16 |
|
|
|
|
|
(5,4,9) |
(5,4,8) |
17 |
|
|
(5,4,9) |
|
(5,4,9) |
(5,4,8) |
(5,4,7) |
18 |
|
(5,4,9) |
(5,4,8) |
(5,4,9) |
(5,4,8) |
(5,4,7) |
(5,4,6) |
19 |
(5,4,9) |
(5,4,8) |
(5,4,7) |
(5,4,8) |
(5,4,7) |
(5,4,6) |
(5,4,5) |
20 |
(5,4,8) |
(5,4,7) |
(5,4,6) |
(5,4,7) |
(5,4,6) |
(5,4,5) |
(5,4,4) |
21 |
(5,4,7) |
(5,4,6) |
(5,4,5) |
(5,4,6) |
(5,4,5) |
(5,4,4) |
(5,4,3) |
22 |
(5,4,6) |
(5,4,5) |
(5,4,4) |
(5,4,5) |
(5,4,4) |
(5,4,3) |
(5,4,2) |
23 |
(5,4,5) |
(5,4,4) |
(5,4,3) |
(5,4,4) |
(5,4,3) |
(5,4,2) |
(5,4,1) |
24 |
(5,4,4) |
(5,4,3) |
(5,4,2) |
(5,4,3) |
(5,4,2) |
(5,4,1) |
(5,4,0) |
25 |
(5,4,3) |
(5,4,2) |
(5,4,1) |
(5,4,2) |
(5,4,1) |
(5,4,0) |
|
26 |
(5,4,2) |
(5,4,1) |
(5,4,0) |
(5,4,1) |
(5,4,0) |
|
|
27 |
(5,4,1) |
(5,4,0) |
|
(5,4,0) |
|
|
|
28 |
(5,4,0) |
|
|
|
|
|
|
From table 1 and table 2 as can be seen, hear that from the edge device of WPAN1 external beacon begins to merge to the merging of finishing WPAN1, WPAN2 and three networks of WPAN3 at last and experienced 28 superframe times altogether, and WPAN1 waits until always that WPAN2 and WPAN3 merge to finish and just begins merging in merging process, thereby many superframe times have been wasted, strengthened the time that devices communicating interrupts simultaneously, and the flexibility that merges between the BGs is too poor.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
In the present embodiment, each BG BP building process according to the rules builds the BP of oneself in the network, and as shown in Figure 2, WPAN1, WPAN2, WAPN3 are all different BG.All devices among each BG all selects a BS periodically to send the beacon of oneself in BP, carry the beacon slot positional information that this BS occupies (beacon slot number) in the beacon that sends in BP, and can comprise BPOIE, the information (length of BP, occupied situation of BSs etc. among the BP) of relevant current BP is provided.
Fig. 3 is the flow chart of dynamic merging method of the multi-beacon group of embodiment of the present invention, in the present embodiment, be elaborated in conjunction with Fig. 2, in the present embodiment, when two BG every far the time, equipment among each BG can be received the beacon that the adjacent equipment among this BG sends, i.e. inner marker.Two BG by near near the time, the equipment among each BG not only can be received the beacon that the neighbouring device among residing BG itself sends, and simultaneously, also can receive the beacon that the equipment among another BG sends, i.e. outside beacon.For example, equipment G among the WPAN1 receives the beacon that the equipment H among the WPAN2 sends, be outside beacon, because of WPAN1 and WPAN3 from away from, so do not receive the outside beacon that WPAN3 sends, the equipment G among the WPAN1 receives the beacon that the adjacent equipment F among the WPAN1 sends, and is inner marker, simultaneously, the beacon of equipment G transmission is self beacon.In the present embodiment, G describes with equipment, in other embodiments, can also describe by miscellaneous equipment.In the present embodiment, describe conveniently for making, the BPST Offset among the BP Switch IE, Beacon Slot Offset, BP Move Countdown are identified with X, Y, Z respectively, in other embodiments, also available other letter identifies.
Step S200 receives the outside beacon that WPAN2 sends, and in the present embodiment, the equipment G among the WPAN1 receives the outside beacon that the equipment H among the WPAN2 sends.
Step S202 judges whether the BP Switch IE in the outside beacon of current reception is inequality with the preceding outside beacon BP Switch IE that once receives of record.In the present embodiment, if the preceding outside beacon BP Switch IE that once receives of the BP Switch IE in the outside beacon of the current reception of judgement and record is inequality, judge that then WPAN2 turns to WPAN3 to merge, be that WPAN2 is in the process that merges to WPAN1, stopped the merging to WPAN1, then merged to WPAN3.
In step S202, if judge identically, then enter step S204, judge whether self beacon of former frame transmission has BP Switch IE.When not having BPSwitch IE in self beacon of judging that former frame sends, enter step S206, judge whether the value of Z is 0.In the present embodiment, when judge that former frame sends self beacon in when not having BP Switch IE, judge that then WPAN2 continues to merge to WPAN1;
In step S206, if judge that the value of Z is not 0, then enter step S208, the value of Z is subtracted 1.Behind execution of step S208, return step S200.If judge that the value of Z is 0, then end operation.
If when in self beacon of judging that former frame sends BP Switch IE being arranged, enter step S212.
In step S202, if judgement is inequality, then enter step S210, recomputate BP SwitchIE, and record the BP Switch IE in the outside beacon.In the present embodiment, new X value=| the value of the X of the value-record of the X in the outside beacon |, the value-1 of the Y in the highest occupied beacon slot number among new Y value=outside beacon BP+outside beacon is reset to maximum with the value of Z, in the present embodiment, its maximum is 9.In other embodiments, maximum also can be other value.
Step S212 adjusts self beacon to be sent and merges preparing.In the present embodiment, when WPAN1 sends the BP Switch IE that has after recomputating, represent that WPAN1 is just preparing WPAN3 and merging, finally finish WPAN1 to the merging of WPAN3.Because this step S212 can adopt known technology to realize, no longer narration herein.
Fig. 4 is the particular flow sheet of dynamic merging method of the multi-beacon group of embodiment of the present invention.In the present embodiment, still describe in conjunction with Fig. 2.
Step S300 receives beacon.In the present embodiment, this beacon comprises the inner marker of the equipment transmission except G equipment among the WPAN1 and the outside beacon that WPAN2 is sent to WPAN1.
Step S302 judges that beacon is outside beacon or inner marker.
In step S302, if judge that beacon is inner marker, then enter step S336, the BP Switch IE in the record inner marker.
In step S302, if judge that beacon is outside beacon, then enter step S304, continue to judge whether BP Switch IE is arranged in the outside beacon.
In step S304, if judge in the outside beacon there is not BP Switch IE, then enter step S306, calculate the X among the BP Switch IE, the value of Y according to formula one.In the present embodiment, formula one is: the BPST| of the outside beacon BPST-self of X=| beacon, the highest occupied beacon slot number-1 among the outside BP of Y=.
In step S304, if judge in the outside beacon that BP Switch IE is arranged, then enter step S308, continue to judge whether the BP Switch IE of the outside beacon that once receives before the record.
In step S308, if BP Switch IE is not recorded in judgement, then enter step S310, record the BP Switch IE in the outside beacon.Behind execution of step S310, return step S300.
In step S308, if judge record BP Switch IE arranged, then enter step S312, judge whether the BP Switch IE in the preceding outside beacon that once receives of record is identical with the BP Switch IE of the outside of current reception, judge that namely WPAN2 continues to merge or turn to the WPAN3 merging to WPAN1.
In step S312, if judge that the BP Switch IE in the outside beacon of BP SwitchIE and current reception in the preceding outside beacon that once receives of record is identical, then enter step S314, in self beacon of judging that former frame sends whether BP Switch IE is arranged.In present embodiment, step S314 can notify prior art to realize.In step S314, if judge there is not BP Switch IE, then enter step S316, judge whether the Z value among the BP Switch IE that records is 0.If judge that the value of Z is 0, end operation then, namely WPAN2 merges to WPAN1 and finishes.If judge that the value of Z is not 0, then enter step S318, the Z value is subtracted 1.Behind execution of step S318, return step S300.In step S314, if judge that BP Switch IE is arranged, then enter step S326, judge whether to need to revise BP Switch IE.
In step S312, if the BP Switch IE in the BP SwitchIE in the preceding outside beacon that once receives of judgement record and the outside beacon of current reception is inequality, be that WPAN2 stops to merge to WPAN1, then merge to WPAN3, then enter step S320, again calculate the X among the BP SwitchIE, the value of Y according to formula two, and the value of Z is reset to maximum, and the BP Switch IE in the outside beacon of new record more.In the present embodiment, formula two is: the value of the X of the value-record of the X in the outside beacon of X=| |, the value-1 of the Y in the highest occupied beacon slot number among the beacon BP of Y=outside+outside beacon, and the value of Z is reset to maximum, in the present embodiment, its maximum is 9.In other embodiments, maximum also can be other value.In the present embodiment, when WPAN1 sends the BP Switch IE that has after recomputating, represent that WPAN1 merges to WPAN3 with preparation.
Behind execution of step S320 or step S306 or step S336, continue to enter step S322, in self beacon that once sends before the judgement whether BP Switch IE is arranged.
In step S322, in self beacon that before judging, once sends BP Switch IE is arranged, then enter step S326.
In step S322, there is not BP Switch IE in self beacon that before judging, once sends, namely WPAN2 continues to merge to WPAN1, then enters step S324.
Step S326 judges whether need to revise X and the Y value of the BP Switch IE in self beacon to be sent, does not need to revise BP Switch IE as if judgement, then enters step S330; If judging needs to revise BP Switch IE, then enter step S328.
At step S328, revise X and Y value among the BP Switch IE in self beacon to be sent, and the Z value is reset to maximum.
At step S330, judge whether the Z value is 0, if judge that the Z value is not 0, then enter step S332, the Z value is subtracted 1; If judge that the Z value is 0, enter step S334, adjust BPST and BS to finish merging according to the X of BP Switch IE and Y value, namely finish WPAN1 and merge to WPAN3.
Behind execution of step S332 or step S328, execution in step S324 sends self beacon have new BP Switch IE in next frame, return step S300.
In the present embodiment, step 314, step S322, step 326, step S324, step S328, step S334 all can pass through existing techniques in realizing, herein not in narration.
In the present embodiment, still be illustrated in conjunction with Fig. 2, wherein WPAN2 is known process to the process that WPAN3 merges, and no longer narration herein is as shown in table 2:
Superframe |
H |
I |
J |
K |
L |
1 |
(10,4,9) |
|
|
|
(15,6,9) |
2 |
(10,4,8) |
(10,4,9) |
|
(15,6,9) |
(15,6,8) |
3 |
(10,4,7) |
(15,6,9) |
(10,4,9) |
(15,6,8) |
(15,6,7) |
4 |
(15,6,9) |
(15,6,8) |
(15,6,9) |
(15,6,7) |
(15,6,6) |
5 |
(15,6,8) |
(15,6,7) |
(15,6,8) |
(15,6,6) |
(15,6,5) |
6 |
(15,6,7) |
(15,6,6) |
(15,6,7) |
(15,6,5) |
(15,6,4) |
7 |
(15,6,6) |
(15,6,5) |
(15,6,6) |
(15,6,4) |
(15,6,3) |
8 |
(15,6,5) |
(15,6,4) |
(15,6,5) |
(15,6,3) |
(15,6,2) |
9 |
(15,6,4) |
(15,6,3) |
(15,6,4) |
(15,6,2) |
(15,6,1) |
10 |
(15,6,3) |
(15,6,2) |
(15,6,3) |
(15,6,1) |
(15,6,0) |
11 |
(15,6,2) |
(15,6,1) |
(15,6,2) |
(15,6,0) |
|
12 |
(15,6,1) |
(15,6,0) |
(15,6,1) |
|
|
13 |
(15,6,0) |
|
(15,6,0) |
|
|
The dynamic merging method of the multi-beacon group that provides according to present embodiment, equipment G is at the BP Switch IE of the 1st superframe with regard to the outside beacon of opening entry equipment H transmission, and judge whether the value among the BP Switch IE in the outside beacon that receives equipment H transmission is the same with the BP Switch IE value of record, as can be seen from Table 2, the BP Switch IE that equipment G judges in the outside beacon of equipment H at the 4th frame changes, be that WPAN2 forward WPAN3 merges, thereby equipment G will send BP Switch IE after the calculating since the 5th frame, be that WPAN1 also prepares to merge to WPAN3, finish WPAN1 at the 18th frame at last, WPAN2 and WPAN3 merge, and be as shown in table 3:
Superframe |
A |
B |
C |
D |
E |
F |
G |
5 |
|
|
|
|
|
|
(5,10,9) |
6 |
|
|
|
|
|
(5,10,9) |
(5,10,8) |
7 |
|
|
(5,10,9) |
|
(5,10,9) |
(5,10,8) |
(5,10,7) |
8 |
|
(5,10,9) |
(5,10,8) |
(5,10,9) |
(5,10,8) |
(5,10,7) |
(5,10,6) |
9 |
(5,10,9) |
(5,10,8) |
(5,10,7) |
(5,10,8) |
(5,10,7) |
(5,10,6) |
(5,10,5) |
10 |
(5,10,8) |
(5,10,7) |
(5,10,6) |
(5,10,7) |
(5,10,6) |
(5,10,5) |
(5,10,4) |
11 |
(5,10,7) |
(5,10,6) |
(5,10,5) |
(5,10,6) |
(5,10,5) |
(5,10,4) |
(5,10,3) |
12 |
(5,10,6) |
(5,10,5) |
(5,10,4) |
(5,10,5) |
(5,10,4) |
(5,10,3) |
(5,10,2) |
13 |
(5,10,5) |
(5,10,4) |
(5,10,3) |
(5,10,4) |
(5,10,3) |
(5,10,2) |
(5,10,1) |
14 |
(5,10,4) |
(5,10,3) |
(5,10,2) |
(5,10,3) |
(5,10,2) |
(5,10,1) |
(5,10,0) |
15 |
(5,10,3) |
(5,10,2) |
(5,10,1) |
(5,10,2) |
(5,10,1) |
(5,10,0) |
|
16 |
(5,10,2) |
(5,10,1) |
(5,10,0) |
(5,10,1) |
(5,10,0) |
|
|
17 |
(5,10,1) |
(5,10,0) |
|
(5,10,0) |
|
|
|
18 |
(5,10,0) |
|
|
|
|
|
|
The above, the dynamic merging method of the multi-beacon group that embodiment of the present invention provides, by judging that WPAN2 continues to merge or turn to WPAN3 to merge to WPAN1, thereby WPAN1 need not be waited until after WPAN2 and WPAN3 merge just to begin to merge with WPAN3, thereby make a plurality of BGs in the process that merges, shorten the time of merging process, and reduced the time that the devices communicating among the BGs interrupts, improved the flexibility that BGs merges simultaneously.
The structure chart of the dynamic combination system of the multi-beacon group that provides in the embodiment of the present invention is provided Fig. 5.In the present embodiment, combination system 40 comprises a BG41, the 2nd BG42 and the 3rd BG43, wherein each BG outwards sends beacon, also receive simultaneously the beacon that beacon that another BG sends and the equipment among the BG own send, and each BG comprises a plurality of terminal equipments.In the present embodiment, if a BG41 receives the beacon that the 2nd BG42 sends, be referred to as outside beacon, certain equipment of a BG41 inside receives the beacon of another equipment transmission of a BG41, is referred to as inner marker.In the present embodiment, the one BG41 is used for receiving the outside beacon that the 2nd BG42 sends, and judge that the 2nd BG42 continues to merge or the 2nd BG42 turns to a BG41 to merge to the 3rd BG43, and when judging not that simultaneously adjusting self beacon to be sent by the BP Switch IE that recomputates merges to the 3rd BG43 preparing.In the present embodiment, each BG can be WPAN.
The module map of the terminal equipment that provides in the embodiment of the present invention is provided Fig. 6.In the present embodiment, describe with reference to figure 5.The one BG41 comprises a plurality of terminal equipments 50.Terminal equipment 50 comprises beacon receiver module 500, beacon classification judge module 510, reference record module 520, the handover information judge module 530 of beacon period, reference record judge module 540, parameter calculating module 550, merges direction judge module 560, parameter adjustment module 570 and beacon sending module 580.
In the present embodiment, reference record module 520 is used for the BP Switch IE of record beacon.
Beacon receiver module 500 is used for receiving beacon.In the present embodiment, this beacon comprises the inner marker of the equipment transmission except G equipment among the WPAN1 and the outside beacon that WPAN2 is sent to WPAN1.
Beacon classification judge module 510 is used for the classification of the beacon of judgement beacon receiver module 500 receptions.
Reference record module 520 also is used for recording the BP Switch IE of this inner marker when beacon classification judge module 510 judges that the beacon of beacon receiver module 500 receptions is inner marker, and notifying parameters adjusting module 570.
The handover information judge module 530 of beacon period is used for judging in this outside beacon it is that BPSwitch IE is arranged when beacon classification judge module 510 judges that the beacon of beacon receiver module 500 receptions is outside beacon.
Parameter calculating module 550 is used for recomputating BP Switch IE when the handover information judge module 530 of beacon period judges that this outside beacon does not have BP Switch IE, and notifying parameters adjusting module 570.At this moment, the value of calculating X, Y among the BP Switch IE adopts the BPST| of the outside beacon BPST-self of following formula: X=| beacon, and the highest occupied beacon slot number-1 among the BP of Y=outside, and the value of Z is reset to maximum, in the present embodiment, its maximum is 9.In other embodiments, maximum also can be other value.
Reference record judge module 540 is used for judging whether reference record module 520 has the BP Switch IE of the outside beacon that once receives before the record when the handover information judge module 530 of beacon period judges that this outside beacon has BP Switch IE.
When reference record judge module 540 also was used for the BP Switch IE of the outside beacon that once receives before judging record not, notifying parameters logging modle 520 recorded the BP Switch IE of the outside beacon of current reception.
When merging direction judge module 560 and being used for the BP Switch IE of the outside beacon that before reference record judge module 540 judges that record is arranged, once receives, judge that described the 2nd BG42 continues to merge or the 2nd BG42 turns to described the 3rd BG43 merging to a described BG41.In the present embodiment, described merging direction judge module 560 also is used for judging that by the BP Switch IE in the preceding outside beacon that once receives of the BPSwitch IE of the outside beacon of judging current reception and record is inequality described the 2nd BG42 turns to described the 3rd BG43 to merge, represent that namely the 2nd BG42 is in the process that merges to a BG41, stop to merge to a BG41, then merge to the 3rd BG43.
Merge BP Switch IE in the preceding outside beacon that once receives of BPSwitch IE that direction judge module 560 also is used for the outside beacon by judging current reception and record when identical, once in self beacon of transmission whether BP Switch IE is arranged before the judgement.
When self beacon that merges that direction judge module 560 also is used for once sending before judging does not have BP Switch IE, judge that the 2nd BG42 is lasting to merge to a BG41.
Reference record judge module 540 is used for judging whether the Z value among the BP Switch IE that records is 0 when merging self beacon that once sends before direction judge module 560 is judged and do not have BP Switch IE.In the present embodiment, reference record judge module 540 also is used for when judging that the Z value is not 0, and notifying parameters computing module 550 subtracts 1 with the Z value among the BP Switch IE of record.
Reference record judge module 540 also is used for need judging whether BP Switch IE in the modification beacon to be sent when merging self beacon that once sends before direction judge module 560 is judged BP Switch IE is arranged.
Reference record judge module 540 also is used for when judgement does not need to revise the BP Switch IE of self beacon to be sent, judges whether the Z value is 0 among the BP Switch IE in self beacon to be sent.
Parameter calculating module 550 also is used for when 560 judgements of merging direction judge module are inequality, recomputate BP Switch IE, and the notifying parameters logging modle 520 BP Switch IE of the outside beacon of new record more, and in self beacon of once sending before judging of notifying parameters record judge module 540 whether BP Switch IE is arranged.At this moment, the value of calculating X, Y among the BP Switch IE adopts following formula: the X value=| the value of the X of the value-record of the X in the outside beacon |, the value-1 of Y in the highest occupied beacon slot number among Y value=outside beacon BP+outside beacon, and the value of Z is reset to maximum, in the present embodiment, its maximum is 9.In other embodiments, maximum also can be other value.
When self beacon that parameter adjustment module 570 is used for before reference record judge module 540 is judged once transmission does not have BP Switch IE, be adjusted into BP Switch IE in self beacon to be sent with recomputating back BP Switch IE, and notice beacon sending module 580 sends self beacon and merges preparing.In the present embodiment, a BG41 sends beacon according to the BP Switch IE after adjusting, and represents that a BG41 prepares to merge to the 3rd BG43.
Parameter adjustment module 570 also is used for when reference record judge module 540 is judged the X of the BP Switch IE that needs modifications self beacon to be sent and Y value, revise X and the Y value of the BP Switch IE in self beacon to be sent, and the value of the Z that resets is maximum, and sends self beacon through beacon sending module 580 and merge preparing.
Parameter adjustment module 570 also is used for when reference record judge module 540 judges that the value of Z is 0, according to the X value of BP Switch IE and Y value adjustment BPST and BS to finish merging.
Parameter adjustment module 570 also is used for when reference record judge module 540 judges that the value of Z is not 0, the value of Z is subtracted 1, and adjust Z value among the BP Switch IE in self beacon to be sent, and send self beacon via beacon sending module 580 and merge preparing.
The above, dynamic combination system and the terminal equipment of the multi-beacon group that embodiment of the present invention provides, by judging that the 2nd BG continues to merge or turn to the 3rd BG to merge to a BG, thereby a BG41 need not be waited until after the 2nd BG42 and the 3rd BG43 merge just to begin to merge with the 3rd BG43, thereby make a plurality of BGs in the process that merges, shorten the time of merging process, and reduced the time that the devices communicating among the BGs interrupts, improved the flexibility that BGs merges simultaneously.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although with reference to preferred embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.