A kind of wireless router and its channel selecting method and systemTechnical field
The present invention relates to wireless router technical field, more particularly to a kind of wireless router and its channel selecting method andSystem.
Background technology
Wireless channel, it is the data-signal Transfer pipe using radio wave signal as transmission media.The matter of wireless channelAmount directly affects the quality and efficiency being wirelessly transferred, therefore selects the wireless channel of better quality for improving wireless routerPerformance is particularly important.
The selection of usual wireless channel includes automatically selecting and manually selecting two kinds.When wireless device connects wireless communication automaticallyDuring road, wireless router can select the channel using acquiescence.This uses the probability of same channel by increasing, and makes wireless signal easilyCollide with each other, disturb, reduce wireless transmission quality.In the case where wireless signal is more, surrounding environment interference is big, can directly affectIt to wireless performance, or even can go offline, cause user can not normal use.
When wireless device connects wireless channel manually, a channel different from surrounding radio sources need to be selected as far as possible to keep awayWireless co-channel interference is opened, improvement is wirelessly transferred effect.In addition, the wireless signal of a channel can disturb simultaneously it is adjacent theretoTwo channels, therefore when wireless channel is set, it should more than two channels of the selection away from other radio signal sources.But can not also to know which channel router should be operated in more preferable by general user, because it also does not go to obtain without effective meansTake the quality of wireless channel.
And for example Application No. CN201510616431.5 domestic applications disclose a kind of wireless channel automatic selecting methodAnd the wireless device information around system, including step S1, regular monitoring, the wireless device information are included on each channel of surroundingWireless access node number, the signal intensity of each wireless access node;Step S2, counted respectively according to wireless device informationThe channel interference values of each channel around calculating;Step S3, the minimum channel of channel interference values is selected as wireless channel.
Although the above method realizes to a certain extent automatically selects preferable wireless channel, it is only by wirelessThe number of accessed node can not embody the quality of each wireless channel completely, because each wirelessly visiting as reference frameIt is all different to ask the factors such as data transmission frequencies, the speed of node, therefore this method still has defect.
The content of the invention
The invention aims to solve the above-mentioned problems of the prior art, there is provided a kind of wireless router channel choosingSelection method, it can effectively select optimal wireless channel for wireless router, to improve the wireless performance of wireless router.
The purpose of the present invention is achieved through the following technical solutions:
A kind of wireless router channel selecting method, comprises the following steps:
Step 1, the wireless router scans the beacon frame in each wireless channel that it is supported;
Step 2, the communication quality of each wireless channel is obtained according to the scanning result of step 1, and is selected most preferablyWireless channel.
Preferably, the step of acquisition communication quality in the step 2, is specially:
Obtain and be operated in all wireless devices on each wireless channel, and the wireless device send bag signal it is strongDegree, send data rate;
Analyze the quantity for obtaining the wireless device that each wireless channel is used, average signal strength, averagely send dataSpeed.
Preferably, the method that optimal wireless channel is selected in the step 2 is specially:For the number of the wireless deviceAmount, average signal strength, averagely transmission data rate are respectively provided with corresponding weight value, and carried out according to the total weight value of each wireless channelSelection.
Preferably, the proportion of weights shared by the quantity of the wireless device is more than the average signal strength and average hairSend data rate.
Preferably, the weights of the quantity of the wireless device are inversely proportional with its numerical value.
Preferably, the weights of the average signal strength and averagely transmission data rate are directly proportional to its numerical value.
The present invention also provides a kind of wireless router, including:
Scan module, for scanning the beacon frame in each wireless channel that it is supported;
Processing module, the communication quality of each wireless channel is obtained according to the result of the scan module;
Selecting module, optimal wireless channel is selected according to the result of the processing module.
Preferably, the sampling module includes:
Memory module, for storing the result of the processing module;
Uploading module, for the information of memory module to be uploaded to the management of webpage end of the wireless router.
The present invention also provides a kind of wireless router channel selecting system, including wireless router as described above, describedThe management of webpage end of wireless router;The management of webpage end controls the communication quality of the wireless router progress wireless channelAcquisition, the wireless router gives the feedback of the information of acquisition to the management of webpage end.
Preferably, the management of webpage end includes:
Control module, the acquisition of the communication quality for controlling the wireless router progress wireless channel;
Display module, for showing the information acquired in the wireless router.
It is an advantage of the invention that:Optimal wireless channel can be effectively selected for wireless router, to improve without circuitBy the wireless performance of device.
Brief description of the drawings
Fig. 1 is the flow chart of the inventive method embodiment 1;
Fig. 2 is a kind of structure principle chart of embodiment of wireless router of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
Embodiment 1
A kind of wireless router channel selecting method, comprises the following steps:
Step 1, the wireless router scans the beacon frame in each wireless channel that it is supported;
Step 2, the communication quality of each wireless channel is obtained according to the scanning result of step 1, and is selected most preferablyWireless channel.
This method by scan the beacon frame in wireless channel obtain each wireless channel by service condition because letterThe relevant information of wireless device can be typically included in mark frame, such as receives signal intensity, current operating channel, send data rateDeng.Then the quality of each wireless channel is determined according to this series of information, in order to make optimal selection.
In addition, the wireless channel that described selection is optimal, can be specifically that wireless router selects automatically according to relative setSelect or user voluntarily selects.
, can be by setting corresponding judgement preferential to every group of data when wireless router automatically selects optimal wireless channelLevel, such as first judge the quantity of wireless device to be worked on each wireless channel, and select the wireless channel of minimum number;If depositIn number of devices identical wireless channel, then the average received of all wireless devices to be worked on each wireless channel is judged againSignal intensity, and select average received signal strength highest wireless channel;If average received signal strength identical also be presentWireless channel, then continue to judge the average transmission data rate of all wireless devices to be worked on each wireless channel, and selectSelect the most fast wireless channel of average transmission data rate;If, can be after in the presence of data rate identical wireless channel is averagely sentIt is continuous to judge other data or select satisfactory wireless channel immediately.
The above-mentioned a kind of method for automatically selecting optimal wireless channel for wireless router, can also be by entering to all dataRow is unified to be judged, the size such as influenceed according to each data on quality of wireless channel, gives each data distribution corresponding weights, soAll weights of each wireless channel are added afterwards, wireless channel selection is finally carried out according to the size of total weight value.Specifically,The quantity of wireless device has a great influence to quality of wireless channel, then can accordingly increase the weights proportion shared by number of devices;AndAverage signal strength and the weights proportion averagely sent shared by data rate can be reduced accordingly.
When user voluntarily selects wireless channel, the data that can obtain scanning analysis are shown by terminal, so as toUser makes a choice.Specifically, because the working channel of in general wireless router is set by its management of webpage interfacePut, therefore corresponding functional module can be increased on management of webpage interface, quality of wireless channel is shown in a manner of by chart etc.Related data, so that quality of wireless channel information intuitively is showed into user, user makes a choice according to the information.
In addition it is noted that the method that wireless channel is automatically selected by wireless router is more convenient, once surroundingQuality of wireless channel in environment changes, and wireless router can switch to optimal wireless channel.And pass through userVoluntarily the method for wireless channel is selected more to embody the subjective will of user, at the same it is also more flexible, for example user can be relatedThe variation tendency of wireless environment after information is predicted, to make rational selection etc..
Embodiment 2
The step of acquisition communication quality in step 2 described in embodiment 1 is specially:
Obtain and be operated in all wireless devices on each wireless channel, and the wireless device send bag signal it is strongDegree, send data rate;
Analyze the quantity for obtaining the wireless device that each wireless channel is used, average signal strength, averagely send dataSpeed.
By being analyzed the beacon frame scanned to obtain the phase for the wireless device being operated on current radio channelInformation is closed, then obtains can be used for judging the wireless device quantity of quality of wireless channel, average signal strength by handling, be averagedSend data rate etc..Three groups of data are made to influence the data of quality of wireless channel most critical according to the dataWireless channel selection is more reliable.
The method of selection optimal wireless channel is specially in the step 2:For the quantity of the wireless device, average signalIntensity, averagely transmission data rate are respectively provided with corresponding weight value, and selected according to the total weight value of each wireless channel.
The above method is a kind of method of specific selection wireless channel, more efficient in its work, the choosing madeSelect more rationally reliable.
By the influence to quality of wireless channel that every group of data are embodied in practice is different, thus can to influence compared withThe corresponding higher weights proportion of big data distribution, and to the corresponding relatively low weights proportion of less data distribution is influenceed, thenIt is ranked up with the weights sum obtained by final each wireless channel come the quality to wireless channel, in order to select pledgeMeasure highest wireless channel.
The proportion of weights shared by the quantity of the wireless device is more than the average signal strength and averagely sends data speedRate.
Specifically, the quantity of the wireless device to work over the wireless channel is the maximum factor of influence quality of wireless channel,Therefore the proportion of its shared weights is more than other two item datas.The proportion of weights as shared by the quantity of wireless device is 50% or moreIt is more, and the proportion that other data account for altogether is 50% or less.
The specific weights of the quantity of the wireless device are inversely proportional with its numerical value.
Obviously, the quantity of the wireless device to be worked on wireless channel is more, then the quality of the wireless channel can accordingly dropIt is low, and situations such as be more easy to easily get congestion.Therefore the quantity of wireless device is more, then this weights of corresponding wireless channel are got overIt is small, it is on the contrary then bigger.
The specific weights of the average signal strength and averagely transmission data rate are directly proportional to its numerical value.
And average signal strength and averagely send data rate and embodied the stability of the wireless channel to a certain extentAnd quality, and average signal strength is stronger or averagely transmission data rate is faster, then illustrates that the quality of wireless channel is higher,Its corresponding weights is bigger, on the contrary then smaller.
In summary, can be according to the quantitative range of wireless device, with the relation allocation 0-100 of inverse ratio in practiceWeights, such as wireless device quantity be 0, then corresponding weights be 100;If the quantity of wireless device is the maximum of settingValue, such as 100, then corresponding weights are 0.And average signal strength, according to its accessible excursion, with the relation of direct ratioThe minimum value of 0-60 weights, such as average signal strength for setting is distributed, then corresponding weights are 0;If average signal is strongThe maximum for setting is spent, then corresponding weights are 60.Then data rate is averagely sent, according to its excursion, with justThe relation allocation 0-40 of ratio weights, for example, averagely send data rate be in the range of minimum value, then corresponding weights be0;If averagely send data rate be in the range of maximum, corresponding weights are 40.Finally by the weights of three groups of dataIt is added, the total weight value of each wireless channel is represented to obtain one, and automatically selects the maximum wireless channel of total weight value, orThe approach such as administration interface that the data message and analysis result pass through wireless router are shown, so that user makes mostGood selection.
The present invention also provides a kind of wireless router, including:
Scan module, for scanning the beacon frame in each wireless channel that it is supported;
Processing module, the communication quality of each wireless channel is obtained according to the result of the scan module;
Selecting module, optimal wireless channel is selected according to the result of the processing module.
The wireless router first passes through beacon of its scan module to its wireless channel supported in surrounding environmentFrame is scanned, then by processing module to obtain the related data of each wireless channel according to the beacon frame scanned, thanThe quantity of such as wireless device, averagely average signal strength, transmission data rate, finally by selecting module according to the processingThe result of module selects optimal wireless channel.
It is noted that the selecting module can be the module that wireless router automatically selects wireless channel, also may be usedTo be available to the module of user's associated wireless channel data and select button.
, can be right according to its to all data according to the method described above when wireless router automatically selects optimal wireless channelThe size that quality of wireless channel influences, distributes corresponding weights, is then added all weights of each wireless channel, last rootWireless channel selection is carried out according to the size of total weight value.Specifically, influence of the quantity of wireless device to quality of wireless channel compared withGreatly, then the weights proportion shared by number of devices can accordingly be increased;And shared by average signal strength and averagely transmission data rateWeights proportion can be reduced accordingly.
When user voluntarily selects wireless channel, the data that can obtain scanning analysis are shown by terminal, so as toFamily makes a choice.Specifically, because the working channel of in general wireless router is configured by its management of webpage interface, therefore corresponding functional module can be increased on management of webpage interface, show quality of wireless channel in a manner of by chart etc.Related data, so that quality of wireless channel information intuitively is showed into user, user makes a choice according to the information.
The wireless router also includes:
Memory module, for storing the result of the processing module;
Uploading module, for the information of memory module to be uploaded to the management of webpage end of the wireless router.
Above-mentioned memory module is used in time be stored the result of processing module, in order to the work at any time of uploading moduleMake, and ensure the integrality of historical data, facilitate user to understand overall radio channel state, to make more preferable selection.
And obtained data then can be passed through the channels such as the administration interface of wireless router by uploading module in a manner of chart etc.It is shown, here by taking the management of webpage end of wireless router as an example, because the setting or selection of wireless channel are usually logicalCross the management of webpage interface.But also it is not exclusively by other-end completion, such as mobile phone.
The present invention also provides a kind of wireless router channel selecting system, including wireless router as described above, describedThe management of webpage end of wireless router;The management of webpage end controls the communication quality of the wireless router progress wireless channelAcquisition, the wireless router gives the feedback of the information of acquisition to the management of webpage end.
The management of webpage end includes:
Control module, the acquisition of the communication quality for controlling the wireless router progress wireless channel;
Display module, for showing the information acquired in the wireless router.
Said system is a kind of mode for preferably carrying out wireless channel selection, to pass through wireless router and its webpage pipeThe interaction at end is managed, the feedback of relevant control operation and data is carried out, makes user can be intuitively by the webpage pipe of wireless routerThe communication quality that interface understands each wireless channel is managed, to make optimal selection.
Specifically, a single page can be increased newly on the management of webpage interface of wireless router, and on this pageOne button is set, presses this button to start control module, to control the wireless router to carry out the logical of wireless channelBelieve the acquisition of quality related data, then graphically shown the data of acquisition by display module.And showChart in, can be using wireless channel as abscissa, and using the quality of wireless channel as ordinate, the specific ordinate can beTotal weight value in the above method.User can be clearly seen that the quality height of all wireless channels, to make a choice.
In addition, each wireless channel of settable abscissa can be clicked on, the detailed of the wireless channel can be shown after clickStatistics, including the quantity of above-mentioned wireless device, averagely average signal strength, transmission data rate etc..It is easy to user moreThe concrete condition of each wireless channel is well understood, to make more preferable selection.
Certainly, each data can also be arranged to click on, and the historical data of the data, Yi Jibian can be shown after clickChange trend, in order to which user can carry out more perfect analysis, and make optimal adjustment or selection.
Specific embodiment described herein is only to spirit explanation for example of the invention.Technology belonging to the present invention is ledThe technical staff in domain can be made various modifications or supplement to described specific embodiment or be replaced using similar modeGeneration, but without departing from the spiritual of the present invention or surmount scope defined in appended claims.