Make the Wi-Fi device select working channel automatically to avoid the method for phase mutual interference
Technical field
The present invention relates to a kind of Wi-Fi device that makes selects working channel to avoid the method for phase mutual interference automatically.
Background technology
Radio network system line usefulness very corrupt, except basic constructed in hardware, the quality of its communication quality is the key factor that influences line usefulness, and communication quality depend on usually the containing, receive of signal/transmitting power power, signal processing comparison precisely, and often for the people ignored: the size of annoyance level; No matter transmitting power is strong again, receiver sensitivity is high again, treatment system precision how about, in case interference phenomenon occurred between the various signals, still can serious harm to the operation ecology of whole Wi-Fi environment, and be the situation that the user denounced more at ordinary times: as indescribable broken string, noise, data mistake etc., the interference that also is extraneous signal mostly causes, say nothing of within a Wireless LAN, just in case starting, the frequency confusion of using between the various Wi-Fi equipment causes the phase mutual interference, that influence degree is big can't be imagined especially, so, the phase mutual interference that this case inventor promptly how to prevent may cause between the Wi-Fi connection device, and the convenience that makes various device can select working channel (frequency) to increase use automatically is its research aim.
Summary of the invention
In view of this, this case inventor makes the present invention be born itself to be engaged in the relevant industries many years of experience, to reach and constantly ponder over research eventually.
Technical problem to be solved by this invention is, above-mentioned deficiency at prior art, and provide a kind of Wi-Fi device that makes to select working channel automatically to avoid the method for phase mutual interference, make equipment can select an optimum channel automatically once starting shooting, avoid and other device mutual interference mutually, allow the user be had good line quality.
Above-mentioned technical problem of the present invention is realized by following technical scheme.
A kind of Wi-Fi device that makes selects working channel to avoid the method for phase mutual interference automatically, its principal character is: by set program circuit of this method and algorithm decided at the higher level but not officially announced thereof, when making a Wi-Fi jockey add a Wi-Fi, can select its frequency optimum traffic automatically once start, enable to avoid with its signal covering scope within the shared channel of other wireless connection devices heavily cover, cause the phase mutual interference and start, the set program circuit of this method is as follows:
(1) when starting shooting with a wireless connection device of this method collocation enforcement, at first enter the inspection step, it mainly is: the total quantity of wireless connection device arround the inspection, this inspection step is the beacon that the wireless connection device arround receiving is earlier sent, filter out device of the same type again, and then can learn in this Wi-Fi signal covering scope the quantity of wireless connection device of the same type, this inspection step of waiting is finished, and program circuit continues to enter the comparison step;
(2) this comparison step: be the situation that the wireless connection device channel is used arround the comparison, this comparison step is to inherit to come from the check result of checking step, and scans the noise value of all each channels of wireless connection device of the same type in this Wireless LAN signal covering scope; The noise value of analyzing this each channel again that continues, be higher than the program position standard decided at the higher level but not officially announced of comparing step as this noise value, represent that this channel is taken by other devices, be lower than the program position standard decided at the higher level but not officially announced of comparing step as the noise value, represent that this channel may not be used, or also be other zone uses, this Wi-Fi signal covering scope is not constituted and disturb, this comparison step of waiting is finished, and produces comparison result, and program circuit continues to enter algorithm steps;
(3) this algorithm steps: the working channel that is selected this wireless connection device, and avoid with this radio area network signal covering scope in other wireless connection devices cause under the prerequisite of interference and finish start, it imports by the comparison comparison result that step produced, and with its program this comparison result of algorithm step-sizing decided at the higher level but not officially announced, the occupied channel of rejecting, last select fixed one group again and all heavily do not cover and use be separated by farthest working channel of frequency range with other wireless connection device, the mutual interference phenomenon that may cause with the equipment itself of preventing fully.
Except that above-mentioned essential features, in specific implementation process, also can replenish following technology contents:
Algorithm wherein: be meant many groups program of carrying out in the algorithm steps of being located at this method, the calculation of this many groups program thes contents are as follows:
Program one:
(1) calculate by the comparison comparison result that step imported, when this comparison result more than or equal to six the time, the lowest channel numerical value of then selecting this wireless connection device to use is its working channel;
(2) calculate by the comparison comparison result that step imported, less than 6 o'clock, the highest channel numerical value of then selecting this wireless connection device to use was its working channel as this comparison result;
(3) calculate by the comparison comparison result that step imported, as not only one of this comparison result, and produce when organizing comparison result more, expression is just having many group channels occupied, then this program one end, and continuation performs calculations with program two;
Program two:
(1) ordering is by comparison many groups comparison result that step imported, and with the greatest measure in this comparison result and minimum value addition, again with addition result divided by two, the end value of gained is the working channel that this wireless connection device is selected;
(2) as this program two and then find that this selected working channel still produces when heavily covering with comparison comparison result numerical value that step imported, perhaps via in comparison this comparison result and discontinuous set that step imported, and when being evenly distributed in each channel, then this program two finishes, and continues to perform calculations with program three;
Program three:
(1) from the comparison comparison result that step imported, seek the successive channel interval that is not used,,, then get its middle channel, be the selected working channel of this wireless connection device if find that five successive channel intervals are unoccupied earlier since five intervals:
(2) can't be from the comparison comparison result that step imported as this program three, find five successive channel intervals that are not used, then this program three will be reduced searching scope to four a successive channel interval that is not used, and get its middle second channel, be the selected working channel of this wireless connection device;
(3) can't be from the comparison comparison result that step imported as this program three, find four successive channel intervals that are not used, then this program three will be reduced searching scope to three a successive channel interval that is not used, and get its middle channel, be the working channel of this wireless connection device;
(4) can't be from the comparison comparison result that step imported as this program three, find three successive channel intervals that are not used, then this program three will be reduced searching scope to two a successive channel interval that is not used, and get its second channel, as the working channel of this wireless connection device.
The present invention makes a Wi-Fi jockey, as the switched wireless device, equipment such as wireless router, at the beginning of start, just check: itself whether be positioned within the signal covering scope of other Wi-Fi jockeys in advance, and receive with reference to the employed channel of all wireless connection devices in this scope, advance to make the special algorithm of the mat of this wireless connection device one own, the channel of painstakingly selecting the to take different channel work farthest of being separated by with other devices, and can cooperate actual state in the networking, contain as multi-section wireless connection device signal cross, situations such as different label products set up simultaneously, make equipment can select an optimum channel automatically once starting shooting, avoid and other device mutual interference mutually, allow the user be had good line quality.
The invention has the advantages that:
1, effectively avoids the mutual interference of Wi-Fi device signal phase, guarantee the line quality, make the networking overall efficiency better.
2, can arrange in pairs or groups new and old or different label hardware systems of this method are implemented the more polynary selectivity of tool.
When 3, new equipment adds the Wi-Fi environment, do not influence the running of original networking fully, need not to revise system architecture, investment is not heavily covered, is not wasted.
4, full automation is selected working channel, and NM network management more shape is simple, can save human cost really.
5, the value of using on the tool industry.
For the effect that makes things convenient for simple and direct understanding other features of the present invention and advantage and reached can more manifest, enumerate specific embodiments of the invention now and be illustrated in the back in conjunction with the accompanying drawings:
Description of drawings
Fig. 1 is an implementation process schematic diagram of the present invention.
Fig. 2 is that schematic diagram is finished in enforcement of the present invention.
Fig. 3 is a main program flow chart of the present invention.
Embodiment
The present invention is providing a kind of Wi-Fi device that makes to select working channel to avoid the method for phase mutual interference automatically, be in order to the wireless connection device 1 of arranging in pairs or groups, a switched wireless device and being implemented for example, the principal character of this method: be this wireless connection device 1 of control, make it when start, whether elder generation's inspection itself is within the signal covering scope 2a of other wireless connection device of the same type 2, as another switched wireless device, then scan the channel (as shown in Figure 1) that the wireless connection device 2 in this covering scope 2a has taken, again the data remittance program of being collected is performed calculations, in order to selected this wireless connection device 1 working channel own, and avoid the channel that all have been used, the signal covering scope 2a that is produced with the signal covering scope 1a that avoids itself being produced and another wireless connection device 2 causes interactive interference, finishes start work (as shown in Figure 2) at last;
The main program flow process (seeing also Fig. 3) that institute of the present invention again tool is established is as follows: when a wireless connection device 1 start, at first enter and check step 11, the beacon 21 (Beacon) that wireless connection device 2 arround this inspection step 11 receives is earlier sent, again with program 111 screenings, and then learn within this covering scope 2a, always have the similar wireless connection device 2 of how many, so far, this checks that step 11 is complete, and system enters comparison step 12;
This comparison step 12 is inherited and is come from the check result of checking step 11, and with in program 121 this covering scope of scanning 2a, the noise of each channel of all wireless connection devices 2 of the same type (Noise) value, the been scanned of waiting, this program 121 finishes; Analyze the noise value of all channels succeeded by program 122, as the noise value be higher than program 122 position decided at the higher level but not officially announced accurate, represent that this channel is occupied, as the noise value be lower than program 122 position decided at the higher level but not officially announced accurate, represent that this channel may be unoccupied, perhaps this channel is to use in another zone, 2a does not constitute interference to this covering scope, so far this program 122 is finished, and produces comparison result 12a, and system enters algorithm steps 13;
This algorithm steps 13 imports the comparison result 12a that the comparison step produces, and performs calculations with program 131, and its algorithm is as follows:
(1) as by comparison this comparison result 12a that step 12 imported more than or equal to 6 o'clock, the lowest frequency Taoism value that program 131 will select this wireless connection device 1 to use, for example first channel is the working channel of this wireless connection device 1;
(2) as by comparison this comparison result 12a that step 12 imported, less than 6 o'clock, the highest channel numerical value that program 131 can be used selective system, as the 11 channel was the working channel of this wireless connection device 1;
(3) as by not only one of comparison comparison result 12a that step 12 imported, but when producing many group comparison result 12a, expression has many group channels occupied at present, and then this program 131 finishes, and performs calculations with program 132;
Algorithm as for this program 132 is as follows:
(1) when the comparison comparison result 12a that step 12 imported has a lot of groups, expression has many group channels just to be used at present, one, two, three, nine, ten, 11 channels for example, then program 132 is that the greatest measure among the comparison result 12a is added up mutually with minimum value, more than example, be one to add 11 and equal 12, to add overall result again divided by two, the result of gained, as above Li result is six, promptly represent this wireless connection device 1, will select the 6th channel is its working channel;
(2) further find through selected working channel as this program 132, still with comparison result 12a in some numerical value heavily cover, or be somebody's turn to do in comparison result 12a that organize and the discontinuous set in particular section more, but be evenly distributed in each channel, for example first, the 3rd, the 6th, the 7th, when the 11 channel is all occupied, then this program 132 finishes, and performs calculations with program 133;
The algorithm of relevant this program 133 is as follows:
(1) from comparison result 12a, seek the successive channel interval that is not used, earlier since five intervals, if find that five successive channel intervals are unoccupied, then program 133 will be selected centre (the 3rd) channel in these five successive channel intervals, be the working channel of this wireless connection device 1;
(2) if this program 133 can't obtain five successive channel intervals, then this program 133 will be reduced the searching scope and is: four successive channel intervals that are not used, and get (second) channel in the middle of it, be the working channel of this wireless connection device 1;
(3) still can't obtain four successive channel intervals that are not used as this program 133, this program 133 with continuing to dwindle the searching scope is: three successive channel intervals that are not used, and get (second) channel in the middle of it, working channel for this wireless connection device 1, the first, the the 3rd, the 6th, the 7th, the 11 channel has been occupied with precedent:, and three successive channel intervals that wherein are not used are the 8th channel, Channel Nine, the tenth channel, this moment, program 133 military orders were selected Channel Nine, were the working channel of this wireless connection device 1;
(4) if this program 133 still can't obtain three successive channel intervals that are not used, this program 133 will reduce the searching scope again and be; Two successive channel intervals that are not used, and selected this second channel are the working channel of this wireless connection device 1;
The working channel of this wireless connection device 1 of waiting is in a single day chosen, then this program 133 finishes, system promptly accuses and finishes start, and produce a signal covering scope 1a, though the signal covering scope 2a that this signal covering scope 1a and original wireless connection device 2 are produced must some be overlapping, but because both employed channels are painstakingly avoided and are greatly differed from each other up and down, so, the situation of phase mutual interference between the wireless device can not be caused fully; And illustration mentioned above is in order to one of algorithm execution mode of the present invention to be described, and non-limiting the present invention only by this illustration side implemented.
By above technical approach characteristics of the present invention as can be known: it can make a wireless connection device 1 when start, with regard to the working channel of automatic selecting system, can not produce mutual interference mutually with other wireless connection device 2, can not have influence on the normal operation of Wi-Fi fully; Not only use, management is got up very convenient, and the various reference values such as the channel that are used in this method, signals such as beacon, be the standard criterion of Wi-Fi agreement 802.11b, no matter set up the product of any label in the Wireless LAN in advance, or a brand-new Wireless LAN is set up in planning for the first time, all can be suitable for this method, the change system design of needn't making or have much ado, just can reach and enlarge the signal covering scope, increase user's wiring quantity, improve the communication connection quality, promote the purpose of integrity service usefulness, information personnel also can be with easier, more efficient mode is managed the running of whole networking, and then promotes the essence productivity.
In sum, the present invention has met the application important document of patent of invention really, files an application in accordance with the law.