CN103501540A - Communication channel distribution method and device - Google Patents

Communication channel distribution method and device Download PDF

Info

Publication number
CN103501540A
CN103501540A CN201310439389.5A CN201310439389A CN103501540A CN 103501540 A CN103501540 A CN 103501540A CN 201310439389 A CN201310439389 A CN 201310439389A CN 103501540 A CN103501540 A CN 103501540A
Authority
CN
China
Prior art keywords
bunch
communication channel
mean value
available
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310439389.5A
Other languages
Chinese (zh)
Inventor
冯冬芹
褚健
薄尧剑
还约辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHEJIANG SUPCON RESEARCH Co Ltd
Original Assignee
ZHEJIANG SUPCON RESEARCH Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHEJIANG SUPCON RESEARCH Co Ltd filed Critical ZHEJIANG SUPCON RESEARCH Co Ltd
Priority to CN201310439389.5A priority Critical patent/CN103501540A/en
Publication of CN103501540A publication Critical patent/CN103501540A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a communication channel distribution method and device. The method comprises the steps: in the stage that communication is carried out between wireless sensors in an Ith cluster, conducting detection on communication quality of a current communication channel of the Ith cluster, and obtaining quality parameters of the current communication channel of the Ith cluster; in the stage that communication is not carried out between the wireless sensors in the Ith cluster, sequentially conducting detection on channel quality of N communication channels in N clusters, and obtaining channel quality parameters corresponding to the N communication channels; comparing the quality parameters of the N channels with first preset threshold values in a one-to-one mode, arranging the quality parameters of the N channels according to the size sequence, and obtaining an available communication channel list of the Ith cluster; when the quality parameter of the current communication channel of the Ith cluster is smaller than a second preset threshold value, and selecting an available communication channel from the available communication channel list of the Ith cluster to be redistributed to the Ith cluster. By the adoption of the method, the communication quality of the wireless sensor network can be ensured.

Description

Communication channel allocation method and device
Technical field
The present invention relates to the wireless sensor network technology field, particularly a kind of communication channel allocation method and device.
Background technology
Growing along with the Internet of Things industry, wireless sensor network has been widely used in the every field such as environment of plant detection, intelligent building and military surveillance.But because wireless sensor network be take electromagnetic wave and is carried out the information transmission as carrier in space, thereby the communication that causes wireless sensor network can be subject to the impact of communication environment and external interference source, finally cause the communication quality of wireless sensor network effectively not guaranteed.
Summary of the invention
In view of this, the object of the present invention is to provide communication channel allocation method and device, to guarantee the communication quality of wireless sensor network.
For achieving the above object, the invention provides following technical scheme:
A kind of communication channel allocation method, be divided into first bunch, second bunch until N bunch in advance by wireless sensor network, and be that every cluster is distributed a communication channel, and N bunch is divided into and joins N communication channel;
Described method comprises: for i bunch, described i and N are natural number, and 1≤i≤N;
The stage that wireless senser in i bunch communicates each other, the communication quality of the current communication channel of i bunch is detected, obtain the current communication channel quality parameter of i bunch;
The stage that wireless senser in i bunch does not communicate each other, successively the channel quality of N the communication channel of N bunch detected, obtain the channel quality parameter of a corresponding N communication channel;
A described N channel quality parameter is compared with the size of the first predetermined threshold value one by one, according to size order, arrange a described N channel quality parameter, obtain the available communication channel list of i bunch;
The stage communication quality of the current communication channel of i bunch judged at gateway, when the current communication channel quality parameter of described i bunch is less than the second predetermined threshold value, from the available communication channel list of i bunch, select an available communication channel to redistribute to i bunch.
Preferably, the stage that the described wireless senser at i bunch communicates each other, the communication quality of the current communication channel of i bunch is detected, obtain the current communication channel quality parameter of i bunch, comprising:
Wireless senser in i bunch often completes while once communicating by letter each other, corresponding recipient's wireless senser utilizes self set signal receiving strength indicating device RSSI and link-quality indicating device LQI to be detected received communication message successively, obtains a RSSI mean value and LQI mean value;
Wherein, a described RSSI mean value and LQI mean value all belong to current communication channel quality parameter.
Preferably, described the second predetermined threshold value comprises default RSSI mean value and default LQI mean value; The available communication channel list of i bunch comprises that the first available communication channel, the second available communication channel are until the X available communication channel; The described stage current communication channel quality parameter of i bunch judged at gateway, when the current communication channel quality parameter of described i bunch is less than the second predetermined threshold value, from the available communication channel list of i bunch, select an available communication channel to redistribute to i bunch, comprising:
When the described i bunch RSSI mean value detected is less than default RSSI mean value and or LQI mean value and is less than default LQI mean value, be i bunch and redistribute communication channel;
When being i bunch while redistributing communication channel, all wireless sensers of i bunch all are switched to described the first available communication channel, check whether it can receive the message of other communication channel except the first available communication channel in described the first available communication channel;
When all wireless sensers of i bunch all do not receive the message of other communication channel in described the first available communication channel, described the first available communication channel is distributed to i bunch, otherwise all wireless sensers of i bunch all are switched to described the second available communication channel, until be switched to the X available communication channel;
Wherein, described X is natural number, 1≤X≤N.
Preferably, the stage that described wireless senser in i bunch does not communicate each other, successively the channel quality of N the communication channel of N bunch detected, obtain the channel quality parameter of a corresponding N communication channel, comprising:
The stage do not communicated each other at the wireless senser of i bunch, all wireless sensers in i bunch all utilize self set RSSI to carry out quality testing to the current communication channel of i bunch, obtain the 2nd RSSI mean value of the current communication channel of i bunch;
All wireless sensers of i bunch all are switched to the communication channel of M bunch, and utilize self set RSSI to carry out quality testing to the communication channel of M bunch, obtain the 2nd RSSI mean value of the communication channel of M bunch, until detected the 2nd RSSI mean value of N the communication channel of N bunch, 1≤M≤N, and described M is not equal to i;
Wherein, described the 2nd RSSI mean value belongs to the channel quality parameter of communication channel.
Preferably, described N channel quality parameter compared with the size of the first predetermined threshold value one by one, according to size order, arranges a described N channel quality parameter, obtain the available communication channel list of i bunch, comprising:
Described N the 2nd RSSI mean value is compared with the size of described the first predetermined threshold value one by one;
When described the 2nd RSSI mean value is less than or equal to described the first predetermined threshold value, using the corresponding communication channel of described the 2nd RSSI mean value number as index, store described the 2nd RSSI mean value;
The 2nd stored RSSI mean value is carried out to the ascending order arrangement according to the size of the 2nd RSSI mean value, obtain the available communication channel list of i bunch.
Preferably, before the described stage current communication channel quality of i bunch judged at gateway, after the available communication channel list of i bunch of described acquisition, also comprise:
Take N bunch bunch number be index, the available communication channel list that storage is N bunch, and using it as Assembly Listing;
Mark respectively the current communication channel of each bunch in described Assembly Listing, obtain channel and safeguard chained list.
Preferably, described method also comprises:
The wireless senser of different bunches communicate each other bunch between stage of communication;
When the wireless senser of the wireless senser of O bunch and P bunch communicates, the wireless senser of O bunch safeguards that by described channel chained list obtains the current communication channel W of the wireless senser of P bunch;
The wireless senser that the wireless senser of O bunch is switched to communication channel W and P bunch communicates;
Wherein, described O, P and W are natural number, 1≤O≤N, and 1≤P≤N, 1≤W≤N, and described O is not equal to P.
A kind of traffic channel assignment device comprises:
The pre-module of dividing is used for, and wireless sensor network is divided into to first bunch, second bunch in advance until N bunch, and be that every cluster is distributed a communication channel, and individual bunch of N is divided into and joins N communication channel;
First detection module is used for, the stage that the wireless senser in i bunch communicates each other, the communication quality of the current communication channel of i bunch is detected, and obtain the current communication channel quality parameter of i bunch;
The second detection module is used for, the stage do not communicated each other at the wireless senser of i bunch, successively the channel quality of N the communication channel of N bunch detected, and obtain the channel quality parameter of a corresponding N communication channel;
The first acquisition module is used for, and a described N channel quality parameter is compared with the size of the first predetermined threshold value one by one, according to size order, arranges a described N channel quality parameter, obtains the available communication channel list of i bunch;
Distribution module is used for, the stage communication quality of the current communication channel of i bunch judged at gateway, when the current communication channel quality parameter of described i bunch is less than the second predetermined threshold value, from the available communication channel list of i bunch, select a communication channel to redistribute to i bunch.
Preferably, described first detection module comprises:
The first detecting unit is used for, and the wireless senser in i bunch often completes while once communicating by letter each other, and the communication message that recipient's wireless senser is received is detected, and obtains a RSSI mean value;
The second detecting unit is used for, and the wireless senser in i bunch often completes while once communicating by letter each other, and the communication message that recipient's wireless senser is received is detected, and obtains LQI mean value;
Wherein, a described RSSI mean value and LQI mean value all belong to current communication channel quality parameter.
Preferably, described the second predetermined threshold value comprises default RSSI mean value and default LQI mean value; The available communication channel list of i bunch comprises that the first available communication channel, the second available communication channel are until the X available communication channel;
Described distribution module comprises: the first allocation units are used for, and when the described i bunch RSSI mean value detected is less than default RSSI mean value and/or LQI mean value and is less than default LQI mean value, are i bunch and redistribute communication channel;
Check unit for, when being i bunch while redistributing communication channel, check successively all wireless sensers of i bunch at described the first available communication channel to the message that whether can receive other communication channel in described X available communication channel;
The second allocation units are used for, and when all wireless sensers of i bunch all can not receive the message of other communication channel in the B available communication channel, described B available communication channel are distributed to i bunch,
Wherein, described B and X are natural number, and 1≤B≤X, 1≤X≤N.
By above-mentioned technical scheme, can be found out, in embodiments of the present invention, the stage communicated each other at the wireless senser of i bunch, the communication quality of the current communication channel of i bunch is detected, obtain the current communication channel quality parameter of i bunch; In the stage do not communicated each other at the wireless senser of i bunch, successively the channel quality of N the communication channel of N bunch detected, and set up the available communication channel list of i bunch; Because the current communication channel quality parameter of i bunch has reflected the communication quality of current communication channel; Therefore, when the current communication channel quality parameter of i bunch is less than the second predetermined threshold value, can think the communication quality variation of current communication channel of i bunch, from the available communication channel list of i bunch, select an available communication channel to redistribute to i bunch.Because the available communication channel list of i bunch is that channel quality by N the communication channel to N bunch is detected rear foundation.Therefore, when the communication quality variation of the current communication channel of i bunch, can guarantee as the communication channel of its distribution communication quality when the communication is good, thereby guarantee the communication quality of wireless sensor network.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of the communication channel allocation method that Fig. 1 provides for the embodiment of the present invention;
Another flow chart of the communication channel allocation method that Fig. 2 provides for the embodiment of the present invention;
The communication channel allocation method that Fig. 3 provides for the embodiment of the present invention another flow chart;
The schematic diagram of the available communication channel list that Fig. 4 provides for the embodiment of the present invention;
Another flow chart of the communication channel allocation method that Fig. 5 provides for the embodiment of the present invention;
The another flow chart of the communication channel allocation method that Fig. 6 provides for the embodiment of the present invention;
The channel that Fig. 7 provides for the embodiment of the present invention is safeguarded the schematic diagram of chained list;
The module map of the traffic channel assignment device that Fig. 8 provides for the embodiment of the present invention;
The another module map of the traffic channel assignment device that Fig. 9 provides for the embodiment of the present invention;
Another module map of the traffic channel assignment device that Figure 10 provides for the embodiment of the present invention;
The another module map of the traffic channel assignment device that Figure 11 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
The invention discloses a kind of communication channel allocation method, as shown in Figure 1, the method at least comprises the following steps:
S11: wireless sensor network is divided into to first bunch, second bunch in advance until N bunch, and is that every cluster is distributed a communication channel, N bunch is divided into and joins N communication channel;
Concrete, realize that S11 comprises the following steps:
A: gateway will be in wireless sensor network the broadcast networking message;
B: the wireless senser that receives the networking message will transmit into network packet to above-mentioned gateway;
C: receive the cluster head node of gateway using wireless senser as certain bunch into network packet, and be that each above-mentioned cluster head node distributes a communication channel;
D: the above-mentioned wireless senser as the cluster head node will be at wireless sensor network broadcast networking message;
E: the wireless senser that receives the networking message will transmit into network packet to above-mentioned cluster head node;
F: receive the cluster head node of network packet using the wireless senser of institute's the sensor in this bunch.
Wherein, the wireless senser in each bunch, when communicating, can adopt time-sharing multiplexing method, certainly also can take other multiplexing method, does not repeat them here.
S12: for i bunch, i and N are natural number, and 1≤i≤N; The stage that wireless senser in i bunch communicates each other, the communication quality of the current communication channel of i bunch is detected, obtain the current communication channel quality parameter of i bunch;
Concrete, current communication channel quality parameter comprises a RSSI mean value and LQI mean value;
Wireless senser in i bunch often completes while once communicating by letter each other, corresponding recipient's wireless senser utilizes self set signal receiving strength indicating device RSSI (Receive Signal Strength Indicator) and link-quality indicating device LQI(Link Quanlity Indicator successively) communication message received is detected, obtain a RSSI mean value and LQI mean value;
More specifically, the stage that wireless senser in i bunch communicates each other, wireless senser often completes communication in primary cluster when (in bunch, communication refers to that the wireless senser of i bunch communicates each other) arbitrarily, corresponding recipient's wireless senser utilizes self set RSSI and LQI to be detected the communication message received successively, obtains a RSSI value and the LQI value of this communication;
The cluster head node of i bunch respectively to i bunch bunch in the stage of communication all RSSI values and the LQI value that obtain ask arithmetic mean, can obtain a RSSI mean value and LQI mean value, and the cluster head node of i bunch is sent to gateway by a RSSI mean value and LQI mean value;
S13: the stage that the wireless senser in i bunch does not communicate each other, successively the channel quality of N the communication channel of N bunch detected, obtain the channel quality parameter of a corresponding N communication channel;
Concrete, channel quality parameter comprises the 2nd RSSI mean value;
As shown in Figure 2, realize that S13 at least comprises the following steps:
S21: the stage do not communicated each other at the wireless senser of i bunch, all wireless sensers of i bunch all utilize self set RSSI to carry out quality testing to the current communication channel of i bunch, obtain the 2nd RSSI mean value of the current communication channel of i bunch;
More specifically, RSSI is for the gauge signal energy intensity.In the stage do not communicated each other at the wireless senser of i bunch, all wireless sensers of i bunch all can utilize the channel energy of self set RSSI Direct Acquisition i bunch of current communication channel under current environment.Due to now, in the stage of the wireless senser of i bunch in not communicating each other, resulting the 2nd RSSI mean value is larger, represents that the suffered interference of the current communication channel of i bunch is larger, and now the current communication channel communication quality of i bunch is poorer.
Simultaneously, performing step S21 at least comprises the following steps:
A: every Preset Time, all wireless sensers of i bunch all utilize self set RSSI to carry out quality testing to the current communication channel of i bunch, obtain a plurality of the 2nd RSSI values;
B: the cluster head node of i bunch calculates the arithmetic mean of a plurality of the 2nd RSSI values, obtains the 2nd RSSI mean value.
S22: all wireless sensers of i bunch all are switched to the communication channel of M bunch, and utilize self set RSSI to carry out the quality inspection to the communication channel of M bunch, obtain the 2nd RSSI mean value of the communication channel of M bunch, until detected the 2nd RSSI mean value of N the communication channel of N bunch, 1≤M≤N, and M is not equal to i;
More specifically, the cluster head node of i bunch obtain self bunch the 2nd RSSI mean value of current communication channel after, be switched to the communication channel of another bunch (M bunch) except the current communication channel of this bunch, carry out quality testing according to method as described as S21, obtain the 2nd RSSI mean value of this bunch, and then be switched to and carry out quality testing except the communication channel of another bunch of i bunch and M bunch, until N the communication channel of individual bunch of N all detected.
S14: N channel quality parameter compared with the size of the first predetermined threshold value one by one, according to size order, arrange N channel quality parameter, obtain the available communication channel list of i bunch;
Concrete, as shown in Figure 3, realize that S14 at least comprises the following steps:
S31: by N the 2nd RSSI mean value
Figure BDA0000386625290000085
with the size of the first predetermined threshold value α, compare one by one;
S32: when second
Figure BDA0000386625290000086
the time, using the corresponding communication channel of the 2nd RSSI mean value number as index, store the 2nd RSSI mean value;
More specifically, when
Figure BDA0000386625290000087
the time, delete the 2nd RSSI mean value of this channel.Wherein the value of α, can obtain by long-term test, also can determine according to user's requirement.
S33: the 2nd stored RSSI mean value is carried out to the ascending order arrangement according to the size of the 2nd RSSI mean value, obtain the available communication channel list of i bunch.
Concrete, the available communication channel list of i bunch, can be as shown in Figure 4, and, after obtaining the available communication channel list of i bunch, the cluster head node of i bunch is sent to gateway by it.
It should be noted that, the 2nd RSSI mean value that also can just store carries out descending according to the size of the 2nd RSSI mean value, and the available communication channel list as i bunch, do not repeat them here.
S15: the stage communication quality of the current communication channel of i bunch judged at gateway, when the current communication channel quality parameter of i bunch is less than the second predetermined threshold value, from the available communication channel list of i bunch, select an available communication channel to redistribute to i bunch.
Concrete, the second predetermined threshold value comprises default RSSI mean value γ and default LQI mean value β; The available communication channel list of i bunch comprises that the first available communication channel, the second available communication channel are until the X available communication channel.
More specifically, as shown in Figure 5, realize that S15 at least comprises:
S51: when the i bunch of RSSI mean value detected
Figure BDA0000386625290000081
be less than default RSSI mean value γ and or LQI mean value
Figure BDA0000386625290000082
while being less than default LQI mean value β, being i bunch and redistributing communication channel;
Concrete, when
Figure BDA0000386625290000083
and/or
Figure BDA0000386625290000084
the time, can think and be required to be the current communication quality variation of i bunch i bunch and redistribute communication channel;
More specifically, can be by long-term test, research is when the value of β and γ during in what scope, and the wireless senser of i bunch can carry out proper communication, the wireless senser of i bunch did not have packet loss or indivedual packet losses are only arranged and does not affect proper communication in when communication, determined the concrete value of β and γ; Can certainly to determine the concrete value of β and γ according to user's demand.
S52: when being i bunch while redistributing communication channel, all wireless sensers of i bunch all are switched to the first available communication channel, check whether it can receive the message of other communication channel except the first available communication channel in the first available communication channel;
S53: when all wireless sensers of i bunch all do not receive the message of other communication channel in the first available communication channel, the first available communication channel is distributed to i bunch, otherwise all wireless sensers of i bunch all are switched to the second available communication channel, it is to being switched to the X available communication channel;
Concrete, gateway can check whether the available communication channel list of i bunch exists the current communication channel of i bunch, while having the current communication channel of i bunch in the available communication channel list of i bunch, delete the current communication channel of i bunch from available communication channel after, again the available communication channel of i bunch is sent to i bunch, all wireless sensers of i bunch detect and select communication channel from available communication channel.Wherein, X is natural number, 1≤X≤N.
More specifically, but all can receive the message of other communication channel when the wireless senser of i bunch in X communication channel, show i bunch now the environment of all available communication channels all be not suitable for radio communication.Now, send network environment by the cluster head node of i bunch to gateway and report to the police, the gateway that receives the network environment warning will be dismissed all wireless sensers of i bunch, the wireless senser of i bunch be joined in other bunch simultaneously.
It should be noted that, when being the i bunch of communication channel of redistributing, with the current signal of communication of other bunch, repeat also not hinder, because all can not receive the message of other channel in the channel of redistributing at all wireless sensers of i bunch, this illustrates that these two bunches distances geographically are enough far away, reusable this channel.
Therefore, in embodiments of the present invention, the stage communicated each other at the wireless senser of i bunch, the communication quality of the current communication channel of i bunch is detected, obtain the current communication channel quality parameter of i bunch; In the stage do not communicated each other at the wireless senser of i bunch, successively the channel quality of N the communication channel of N bunch detected, and set up the available communication channel list of i bunch; Because the current communication channel quality parameter of i bunch has reflected the communication quality of current communication channel; Therefore, when the current communication channel quality parameter of i bunch is less than the second predetermined threshold value, can think the communication quality variation of current communication channel of i bunch, from the available communication channel list of i bunch, select an available communication channel to redistribute to i bunch.Because the available communication channel list of i bunch is that channel quality by N the communication channel to N bunch is detected rear foundation.Therefore, when the communication quality variation of the current communication channel of i bunch, can guarantee as the communication channel of its distribution communication quality when the communication is good, thereby guarantee the communication quality of wireless sensor network.Simultaneously, because each bunch in the present invention takies a communication channel.When communicating each other, then adopt time-sharing multiplexing technology with the wireless senser of cluster.Therefore, the present invention can be under the prerequisite that guarantees the wireless senser communication quality, improves the capacity of wireless sensor network and to the utilance of the communication resource.
In other embodiment of the present invention, as shown in Figure 6, " before the stage current communication channel quality of i bunch judged at gateway, after obtaining the available communication channel list of i bunch " in above-mentioned all embodiment also comprises:
S65: take N bunch bunch number be index, the available communication channel list that storage is N bunch, and using it as Assembly Listing;
S66: mark respectively the current communication channel of each bunch in Assembly Listing, obtain channel and safeguard chained list.
Concrete, channel is safeguarded chained list, can be as shown in Figure 7, wherein n is natural number, and n1 represents the channel number of the 1st bunch of available communication channel, in like manner n2, n3 and nn represent respectively the channel number of the 2nd bunch of available communication channel, the channel number of the 3rd bunch of available communication channel and the channel number of n bunch of available communication channel.
More specifically, when gateway is i bunch while redistributing communication channel, safeguard chained list the available communication channel list of searching i bunch from described channel, and check in the available communication channel list whether have the current communication channel of i bunch; When the current communication channel that has i bunch, delete the current communication channel of i bunch from the current communication channel list of i bunch, and send to i bunch; Available communication channel in the communication channel list that all wireless sensers of i bunch send gateway is detected, and then selects an available communication channel to communicate for i bunch.Available communication channel in the communication channel list how gateway sent as for all wireless sensers of i bunch is detected, and the process of the communication channel of i bunch of how to confirm as previously mentioned, do not repeat them here.
In other embodiment of the present invention, the method in above-mentioned all embodiment also comprises: the stage that the wireless senser of different bunches communicates each other;
Concrete, when the wireless senser of the wireless senser of O bunch and P bunch communicates, the wireless senser of O bunch safeguards that by channel chained list obtains the current communication channel W of the wireless senser of P bunch;
The wireless senser that the wireless senser of O bunch is switched to communication channel W and P bunch communicates.
Wherein, O, P and W are natural number, 1≤O≤N, and 1≤P≤N, 1≤W≤N, and O is not equal to P.
Therefore, safeguard chained list by setting up channel, can make the wireless senser of different bunches communicate each other.
The invention also discloses a kind of traffic channel assignment device corresponding with said method, as shown in Figure 8, comprising:
Pre-divide module 81 for, wireless sensor network is divided into to first bunch, second bunch in advance until N bunch, and be that every cluster is distributed a communication channel, individual bunch of N is divided into and joins N communication channel;
First detection module 82 is for, stage that the wireless senser in i bunch communicates each other, and the communication quality of the current communication channel of i bunch is detected, and obtains the current communication channel quality parameter of i bunch;
Concrete, as shown in Figure 9, first detection module 82 can comprise:
The first detecting unit 91 for, at the wireless senser of i bunch, often complete each other while once communicating by letter, the communication message that recipient's wireless senser is received is detected, and obtains a RSSI mean value;
More specifically, the first detecting unit 91 can be, the set RSSI of recipient's wireless senser self;
The second detecting unit 92 for, at the wireless senser of i bunch, often complete each other while once communicating by letter, the communication message that recipient's wireless senser is received is detected, and obtains LQI mean value;
More specifically, the second detecting unit 92 can be, the set LQI of recipient's wireless senser self;
The second detection module 83 is for, stage do not communicated each other at the wireless senser of i bunch, successively the channel quality of N the communication channel of N bunch detected, and obtains the channel quality parameter of a corresponding N communication channel;
Concrete, the channel quality parameter of communication channel comprises the 2nd RSSI mean value; The second detection module 83 can be himself set RSSI of wireless senser of i bunch.
The first acquisition module 84 for, N channel quality parameter compared with the size of the first predetermined threshold value one by one, arrange N channel quality parameter according to size order, obtain the available communication channel list of i bunch;
Concrete, the first acquisition module 84 can be the cluster head node of i bunch;
Wherein, as shown in figure 10, the first acquisition module 84 comprises:
Comparing unit 101 for, N the 2nd RSSI mean value is compared with the size of the first predetermined threshold value one by one;
Memory cell 102 for, when the 2nd RSSI mean value is less than or equal to the first predetermined threshold value, using the corresponding communication channel of the 2nd RSSI mean value number as index, store the 2nd RSSI mean value;
Arrangement units 103 for, the 2nd stored RSSI mean value is carried out to the ascending order arrangement according to the size of the 2nd RSSI mean value, obtain the available communication channel list of i bunch.
Distribution module 85 for, the stage communication quality of the current communication channel of i bunch judged at gateway, when the current communication channel quality parameter of i bunch is less than the second predetermined threshold value, from the available communication channel list of i bunch, select a communication channel to redistribute to i bunch;
Concrete, distribution module 85 can be gateway;
Wherein, the second predetermined threshold value comprises default RSSI mean value and default LQI mean value; The available communication channel list of i bunch comprises that the first available communication channel, the second available communication channel are until the X available communication channel;
More specifically, as shown in figure 11, distribution module 85 can comprise:
The first allocation units 111 for, when the i bunch of RSSI mean value detected is less than default RSSI mean value and/or LQI mean value and is less than default LQI mean value, be i bunch and redistribute communication channel;
Check unit 112 for, when being i bunch while redistributing communication channel, check successively whether all wireless sensers of i bunch can receive the message of other communication channel in the first available communication channel to the X available communication channel;
The second allocation units 113 for, when all wireless sensers of i bunch all can not receive the message of other communication channel in the B available communication channel, the B available communication channel is distributed to i bunch;
Wherein, described B and X are natural number, and 1≤B≤X, 1≤X≤N.
Therefore, in embodiments of the present invention, first detection module 82 is for, stage communicated each other at the wireless senser of i bunch, communication quality to the current communication channel of i bunch is detected, and obtains the current communication channel quality parameter of i bunch; The second detection module 83 is for, stage do not communicated each other at the wireless senser of i bunch, successively the channel quality of N the communication channel of N bunch detected; The first acquisition module 84 for, set up the available communication channel list of i bunch; Distribution module 85 for, when the current communication channel quality parameter of i bunch is less than the second predetermined threshold value, from the available communication channel list of i bunch, select an available communication channel to redistribute to i bunch.Because the available communication channel list of i bunch is that channel quality by N the communication channel to N bunch is detected rear foundation.Therefore, when the communication quality variation of the current communication channel of i bunch, can guarantee as the communication channel of its distribution communication quality when the communication is good, thereby guarantee the communication quality of wireless sensor network.Simultaneously, because each bunch in the present invention takies a communication channel.When communicating each other, then adopt time-sharing multiplexing technology with the transducer of cluster.Therefore, the present invention can be under the prerequisite that guarantees the network communication of wireless sensor quality, improves the capacity of wireless sensor network and to the utilance of the communication resource.
In other embodiment of the present invention, the device of above-mentioned all embodiment also comprises:
Composite module is used for, take N bunch bunch number be index, the available communication channel list that storage is N bunch, and using it as Assembly Listing;
Labeling module is used for, and marks respectively the current communication channel of each bunch in Assembly Listing, obtains channel and safeguards chained list.
The second acquisition module is used for, and when the wireless senser of the wireless senser of O bunch and P bunch communicates, the wireless senser of O bunch safeguards that by channel chained list obtains the current communication channel W of the wireless senser of P bunch;
The communication channel handover module is used for, and the wireless senser that is switched to communication channel W and P bunch by current communication channel communicates;
Wherein, O, P and W are natural number, 1≤O≤N, and 1≤P≤N, 1≤W≤N, and O is not equal to P; And composite module, labeling module and the second acquisition module can be gateway; The communication channel handover module can be the wireless senser in O bunch.
Therefore, safeguard chained list by channel, can be so that the wireless senser between different bunches communicates.
Each refinement function for pre-division module 81, first detection module 82, the second detection module 83, the first acquisition module 84 and distribution module 85 can, referring to the record of said method, not repeat them here.
To the above-mentioned explanation of the disclosed embodiments, make professional and technical personnel in the field can realize or use the present invention.Multiple modification to these embodiment will be apparent for those skilled in the art, and General Principle as defined herein can be in the situation that do not break away from the spirit or scope of the present invention, realization in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a communication channel allocation method, is characterized in that, wireless sensor network is divided into to first bunch, second bunch in advance until N bunch, and be that every cluster is distributed a communication channel, and N bunch is divided into and joins N communication channel;
Described method comprises: for i bunch, described i and N are natural number, and 1≤i≤N;
The stage that wireless senser in i bunch communicates each other, the communication quality of the current communication channel of i bunch is detected, obtain the current communication channel quality parameter of i bunch;
The stage that wireless senser in i bunch does not communicate each other, successively the channel quality of N the communication channel of N bunch detected, obtain the channel quality parameter of a corresponding N communication channel;
A described N channel quality parameter is compared with the size of the first predetermined threshold value one by one, according to size order, arrange a described N channel quality parameter, obtain the available communication channel list of i bunch;
The stage communication quality of the current communication channel of i bunch judged at gateway, when the current communication channel quality parameter of described i bunch is less than the second predetermined threshold value, from the available communication channel list of i bunch, select an available communication channel to redistribute to i bunch.
2. method according to claim 1, is characterized in that, the stage that the described wireless senser at i bunch communicates each other, the communication quality of the current communication channel of i bunch is detected, and obtain the current communication channel quality parameter of i bunch, comprising:
Wireless senser in i bunch often completes while once communicating by letter each other, corresponding recipient's wireless senser utilizes self set signal receiving strength indicating device RSSI and link-quality indicating device LQI to be detected received communication message successively, obtains a RSSI mean value and LQI mean value;
Wherein, a described RSSI mean value and LQI mean value all belong to current communication channel quality parameter.
3. method according to claim 2, is characterized in that, described the second predetermined threshold value comprises default RSSI mean value and default LQI mean value; The available communication channel list of i bunch comprises that the first available communication channel, the second available communication channel are until the X available communication channel; The described stage current communication channel quality parameter of i bunch judged at gateway, when the current communication channel quality parameter of described i bunch is less than the second predetermined threshold value, from the available communication channel list of i bunch, select an available communication channel to redistribute to i bunch, comprising:
When the described i bunch RSSI mean value detected is less than default RSSI mean value and or LQI mean value and is less than default LQI mean value, be i bunch and redistribute communication channel;
When being i bunch while redistributing communication channel, all wireless sensers of i bunch all are switched to described the first available communication channel, check whether it can receive the message of other communication channel except the first available communication channel in described the first available communication channel;
When all wireless sensers of i bunch all do not receive the message of other communication channel in described the first available communication channel, described the first available communication channel is distributed to i bunch, otherwise all wireless sensers of i bunch all are switched to described the second available communication channel, until be switched to the X available communication channel;
Wherein, described X is natural number, 1≤X≤N.
4. method according to claim 1, it is characterized in that the stage that described wireless senser in i bunch does not communicate is each other detected the channel quality of N the communication channel of N bunch successively, obtain the channel quality parameter of a corresponding N communication channel, comprising:
The stage do not communicated each other at the wireless senser of i bunch, all wireless sensers in i bunch all utilize self set RSSI to carry out quality testing to the current communication channel of i bunch, obtain the 2nd RSSI mean value of the current communication channel of i bunch;
All wireless sensers of i bunch all are switched to the communication channel of M bunch, and utilize self set RSSI to carry out quality testing to the communication channel of M bunch, obtain the 2nd RSSI mean value of the communication channel of M bunch, until detected the 2nd RSSI mean value of N the communication channel of N bunch, 1≤M≤N, and described M is not equal to i;
Wherein, described the 2nd RSSI mean value belongs to the channel quality parameter of communication channel.
5. method according to claim 4, it is characterized in that, described N channel quality parameter compared with the size of the first predetermined threshold value one by one, according to size order, arrange a described N channel quality parameter, obtain the available communication channel list of i bunch, comprising:
Described N the 2nd RSSI mean value is compared with the size of described the first predetermined threshold value one by one;
When described the 2nd RSSI mean value is less than or equal to described the first predetermined threshold value, using the corresponding communication channel of described the 2nd RSSI mean value number as index, store described the 2nd RSSI mean value;
The 2nd stored RSSI mean value is carried out to the ascending order arrangement according to the size of the 2nd RSSI mean value, obtain the available communication channel list of i bunch.
6. according to the described any one method of claim 1-5, it is characterized in that, before the described stage current communication channel quality of i bunch judged at gateway, after the available communication channel list of i bunch of described acquisition, also comprise:
Take N bunch bunch number be index, the available communication channel list that storage is N bunch, and using it as Assembly Listing;
Mark respectively the current communication channel of each bunch in described Assembly Listing, obtain channel and safeguard chained list.
7. method according to claim 6, is characterized in that, also comprises:
The wireless senser of different bunches communicate each other bunch between stage of communication;
When the wireless senser of the wireless senser of O bunch and P bunch communicates, the wireless senser of O bunch safeguards that by described channel chained list obtains the current communication channel W of the wireless senser of P bunch;
The wireless senser that the wireless senser of O bunch is switched to communication channel W and P bunch communicates;
Wherein, described O, P and W are natural number, 1≤O≤N, and 1≤P≤N, 1≤W≤N, and described O is not equal to P.
8. a traffic channel assignment device, is characterized in that, comprising:
The pre-module of dividing is used for, and wireless sensor network is divided into to first bunch, second bunch in advance until N bunch, and be that every cluster is distributed a communication channel, and individual bunch of N is divided into and joins N communication channel;
First detection module is used for, the stage that the wireless senser in i bunch communicates each other, the communication quality of the current communication channel of i bunch is detected, and obtain the current communication channel quality parameter of i bunch;
The second detection module is used for, the stage do not communicated each other at the wireless senser of i bunch, successively the channel quality of N the communication channel of N bunch detected, and obtain the channel quality parameter of a corresponding N communication channel;
The first acquisition module is used for, and a described N channel quality parameter is compared with the size of the first predetermined threshold value one by one, according to size order, arranges a described N channel quality parameter, obtains the available communication channel list of i bunch;
Distribution module is used for, the stage communication quality of the current communication channel of i bunch judged at gateway, when the current communication channel quality parameter of described i bunch is less than the second predetermined threshold value, from the available communication channel list of i bunch, select a communication channel to redistribute to i bunch.
9. device according to claim 8, is characterized in that, described first detection module comprises:
The first detecting unit is used for, and the wireless senser in i bunch often completes while once communicating by letter each other, and the communication message that recipient's wireless senser is received is detected, and obtains a RSSI mean value;
The second detecting unit is used for, and the wireless senser in i bunch often completes while once communicating by letter each other, and the communication message that recipient's wireless senser is received is detected, and obtains LQI mean value;
Wherein, a described RSSI mean value and LQI mean value all belong to current communication channel quality parameter.
10. device according to claim 9, is characterized in that, described the second predetermined threshold value comprises default RSSI mean value and default LQI mean value; The available communication channel list of i bunch comprises that the first available communication channel, the second available communication channel are until the X available communication channel;
Described distribution module comprises: the first allocation units are used for, and when the described i bunch RSSI mean value detected is less than default RSSI mean value and/or LQI mean value and is less than default LQI mean value, are i bunch and redistribute communication channel;
Check unit for, when being i bunch while redistributing communication channel, check successively all wireless sensers of i bunch at described the first available communication channel to the message that whether can receive other communication channel in described X available communication channel;
The second allocation units are used for, and when all wireless sensers of i bunch all can not receive the message of other communication channel in the B available communication channel, described B available communication channel are distributed to i bunch,
Wherein, described B and X are natural number, and 1≤B≤X, 1≤X≤N.
CN201310439389.5A 2013-09-24 2013-09-24 Communication channel distribution method and device Pending CN103501540A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310439389.5A CN103501540A (en) 2013-09-24 2013-09-24 Communication channel distribution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310439389.5A CN103501540A (en) 2013-09-24 2013-09-24 Communication channel distribution method and device

Publications (1)

Publication Number Publication Date
CN103501540A true CN103501540A (en) 2014-01-08

Family

ID=49866689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310439389.5A Pending CN103501540A (en) 2013-09-24 2013-09-24 Communication channel distribution method and device

Country Status (1)

Country Link
CN (1) CN103501540A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997766A (en) * 2014-03-25 2014-08-20 山东省科学院情报研究所 Low-energy consumption channel scanning method of wireless multimedia sensor network
CN104363139A (en) * 2014-11-21 2015-02-18 西北工业大学 Method for calculating link quality estimation value of sensing network by using local characteristics
CN104812081A (en) * 2015-05-14 2015-07-29 中国联合网络通信集团有限公司 Channel allocation method and system in wireless mesh network
CN105828440A (en) * 2016-03-14 2016-08-03 重庆大学 Inter-vehicle-communication-demand-based intra-cluster channel distribution method
CN106128118A (en) * 2016-06-08 2016-11-16 青岛交通科技信息有限公司 A kind of wireless vehicle detecting system
CN111726183A (en) * 2020-06-29 2020-09-29 南方电网数字电网研究院有限公司 Channel allocation method and device for sensor communication and computer equipment
US11956761B2 (en) 2020-06-30 2024-04-09 Boe Technology Group Co., Ltd. Assigning channels to gateways based on IoT system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185906A (en) * 2011-04-21 2011-09-14 西安交通大学 Safety monitoring wireless sensor network for large equipment
CN102413473A (en) * 2011-11-01 2012-04-11 东南大学 Cooperative game-based frequency spectrum allocation method in cognitive sensor network cluster
CN102571292A (en) * 2012-02-29 2012-07-11 浙江中控研究院有限公司 Communication maintenance scheme matching method, link monitor and wireless sensor network
CN102769894A (en) * 2012-07-04 2012-11-07 上海大学 Multi-gateway multi-node wireless sensor network and multi-gateway channel selection and node adaptive network access method for same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185906A (en) * 2011-04-21 2011-09-14 西安交通大学 Safety monitoring wireless sensor network for large equipment
CN102413473A (en) * 2011-11-01 2012-04-11 东南大学 Cooperative game-based frequency spectrum allocation method in cognitive sensor network cluster
CN102571292A (en) * 2012-02-29 2012-07-11 浙江中控研究院有限公司 Communication maintenance scheme matching method, link monitor and wireless sensor network
CN102769894A (en) * 2012-07-04 2012-11-07 上海大学 Multi-gateway multi-node wireless sensor network and multi-gateway channel selection and node adaptive network access method for same

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997766A (en) * 2014-03-25 2014-08-20 山东省科学院情报研究所 Low-energy consumption channel scanning method of wireless multimedia sensor network
CN103997766B (en) * 2014-03-25 2017-07-25 山东省科学院情报研究所 A kind of wireless multimedia sensor network channel scanning method of low energy consumption
CN104363139A (en) * 2014-11-21 2015-02-18 西北工业大学 Method for calculating link quality estimation value of sensing network by using local characteristics
CN104363139B (en) * 2014-11-21 2018-11-23 西北工业大学 A kind of Sensor Network link quality estimation value calculating method using local characteristics
CN104812081A (en) * 2015-05-14 2015-07-29 中国联合网络通信集团有限公司 Channel allocation method and system in wireless mesh network
CN104812081B (en) * 2015-05-14 2018-06-01 中国联合网络通信集团有限公司 Method for channel allocation and system in a kind of wireless mesh network
CN105828440A (en) * 2016-03-14 2016-08-03 重庆大学 Inter-vehicle-communication-demand-based intra-cluster channel distribution method
CN105828440B (en) * 2016-03-14 2018-11-16 重庆大学 Method for channel allocation in cluster based on inter-vehicle communication demand
CN106128118A (en) * 2016-06-08 2016-11-16 青岛交通科技信息有限公司 A kind of wireless vehicle detecting system
CN111726183A (en) * 2020-06-29 2020-09-29 南方电网数字电网研究院有限公司 Channel allocation method and device for sensor communication and computer equipment
CN111726183B (en) * 2020-06-29 2021-07-06 南方电网数字电网研究院有限公司 Channel allocation method and device for sensor communication and computer equipment
US11956761B2 (en) 2020-06-30 2024-04-09 Boe Technology Group Co., Ltd. Assigning channels to gateways based on IoT system

Similar Documents

Publication Publication Date Title
CN103501540A (en) Communication channel distribution method and device
CN107105394B (en) Building safety monitoring system based on wireless sensor network
CN103796284B (en) A kind of relay selection method for energy acquisition wireless network
CN104780544B (en) A kind of communication means and device using unlicensed spectrum
CN104734759A (en) Wave beam recognition method, related device and system for MIMO beam forming communication system
CN106851550A (en) The method and Base Band Unit of a kind of positioning terminal
CN102883428B (en) Based on the node positioning method of ZigBee wireless sensor network
EP2775634A3 (en) Method for multi-input multi-output communication in large-scale antenna system
CN102387488B (en) Method for judging affiliation of terminal space and base station
CN103716917A (en) Base station equipment, terminal equipment and communication system
RU2012147810A (en) HANDOVER WITH AGREGATION OF CARRIERS
RU2012120872A (en) METHODS AND NODES FOR PLANNING RADIO RESOURCES IN A WIRELESS COMMUNICATION SYSTEM USING THE IMPROVED APPOINTMENT OF TIME INTERVALS (EFTA)
CN101938832A (en) Division and refinement-based node self-positioning method for wireless sensor network
CN101895419A (en) Tree structure-based data aggregation method with reliability assurance
CN103167607A (en) Unknown node positioning method for wireless sensor network
CN106470078B (en) A kind of method, equipment and the system of channel state information measurement and feedback
CN103945409A (en) Wireless link quality detection method and device
KR101379217B1 (en) Cluster head node selection method based on a distance between node and base station
CN103619062A (en) Method for positioning unknown nodes in field environment wireless sensor network
CN105357683A (en) Gibbs sampling-based ultra-dense heterogeneous network optimal cell range expansion bias adjustment method
CN102932912A (en) WSN (wireless sensor network) based electromagnetic spectrum signal positioning method
CN104683989A (en) Broadband cognitive network communication method on basis of multichannel synchronous cooperation spectrum sensing
JP2015523034A5 (en)
CN105284171B (en) Transmitter, receiver and data transmission method based on M2M communication system
CN105991261B (en) Method and apparatus of the enhancing PHR MAC CE to support most N number of component carrier aggregations

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140108