CN103533604B - Wireless fidelity network scans access point, channel selecting method, equipment and system - Google Patents

Wireless fidelity network scans access point, channel selecting method, equipment and system Download PDF

Info

Publication number
CN103533604B
CN103533604B CN201210227514.1A CN201210227514A CN103533604B CN 103533604 B CN103533604 B CN 103533604B CN 201210227514 A CN201210227514 A CN 201210227514A CN 103533604 B CN103533604 B CN 103533604B
Authority
CN
China
Prior art keywords
channel
ssid
preset rules
wifi network
designator
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.)
Active
Application number
CN201210227514.1A
Other languages
Chinese (zh)
Other versions
CN103533604A (en
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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201210227514.1A priority Critical patent/CN103533604B/en
Priority to PCT/CN2013/078720 priority patent/WO2014005515A1/en
Publication of CN103533604A publication Critical patent/CN103533604A/en
Application granted granted Critical
Publication of CN103533604B publication Critical patent/CN103533604B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present invention provides in a kind of wireless fidelity network and scans access point, channel selecting method, equipment and system, and the method includes: website determines the 1st channel in WiFi network according to the preset rules relevant to service set SSID of target access AP;Described website is scanned on the 1st channel, in order to when having described target AP and determining with preset rules and use 1 channel, scan target AP.The wireless fidelity network that the embodiment of the present invention provides scans access point, channel selecting method, equipment and system, owing to STA determines the 1st channel according to preset rules, this target AP select channel time also according to preset rules, then when target AP uses 1 channel, STA can scan this target AP when first time scan channel, scanning process has specific aim, substantially increases scan efficiency.

Description

Wireless fidelity network scans access point, channel selecting method, equipment and system
Technical field
The present embodiments relate to communication technology, particularly relate to a kind of wireless fidelity network scans access point, channel choosing Selection method, equipment and system.
Background technology
WiFi(Wireless Fidelity, Wireless Fidelity), issue from WLAN standard IEEE802.11 in 1997 Since, under having the promotion energetically of WiFi alliance of leading numerous company's composition, quick with its deployment having, The advantages such as easy-to-use and transfer rate is high, development is swift and violent, all props up due to present notebook computer, panel computer and mobile phone etc. Holding WiFi technology, user has the demands such as mobile office, and WiFi technology is widely used in industry-by-industry, the access of WiFi network Point (Access Point is called for short AP) is dispersed throughout the places such as hotel, coffee shop, school and hospital, it may be said that WiFi is in life Omnipresent.
In the network of WiFi, an access point (AP) provides access service to multiple websites (Station is called for short STA). STA, before the service using AP to provide, will first find the existence of AP.The frequency range of WiFi network has two, and one is 2.4G Frequency range, one is the frequency range of 5G.Each frequency range is divided into again several channels, such as channel 1, channel 2, channel 3, channel 4, letter Road 5 and channel 6 etc..Communication between STA and AP, is all to carry out on some channel wherein.In prior art, STA to send out The when of some AP existing, it is common that by starting sequential scan from channel 1, or randomly choose channel and be scanned, directly To finding target AP, scan efficiency is the highest.
Summary of the invention
The embodiment of the present invention provides in a kind of wireless fidelity network and scans access point, channel selecting method, equipment and system, To improve scan efficiency.
First aspect, the embodiment of the present invention provides a kind of method scanning access point in Wireless Fidelity WiFi network, including:
Website determines described WiFi network according to the preset rules relevant to service set SSID of target access AP In the 1st channel;
Described website is scanned on described 1st channel, in order to when described target AP determines also with described preset rules When using described 1 channel, described station scans is to described target AP.
In the implementation that the first is possible, described preset rules is used for determining that the 1st channel is to the n-th channel;
Described method also includes:
If scanning on the (n-1)th channel less than described target AP, then determine in described WiFi network by described preset rules The n-th channel;
Described n-th channel is scanned, in order to when described target AP determines with described preset rules and uses described During the n-th channel, scan described target AP;Or
Described method also includes:
If scanning less than described target AP on the (n-1)th channel, then on the n-th channel determined according to described preset rules It is scanned;When described target AP determines with described preset rules and uses described n-th channel, to scan described target AP;
Wherein, described n is more than 1, less than or equal to the integer of K;Described K is the number of channel in described WiFi network.
In conjunction with the first possible implementation of first aspect or first aspect, in the implementation that the second is possible In, the preset rules that described basis is relevant to service set SSID of target access AP determines in described WiFi network Before 1 channel, also include:
Obtain on-site national code information;
Correspondingly, the preset rules that described basis is relevant to service set SSID of target access AP determines described The 1st channel in WiFi network, including:
Described 1st channel is determined according to described national code information and described preset rules.
In conjunction with the implementation that the second of first aspect or first aspect is possible, in the implementation that the third is possible In, the preset rules that described basis is relevant to service set SSID of target access AP determines in described WiFi network 1 channel particularly as follows:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Wherein, described priority list is corresponding with the SSID of described target AP, preserves K letter in described WiFi network The channel designator in road and relative importance value corresponding to each channel designator;Described K is the number of channel in described WiFi network.
In conjunction with the first possible implementation of first aspect, in the 4th kind of possible implementation, described default Rule is:
According to relative importance value order from high to low, determine the channel number of the 1st channel to the n-th channel successively;
The preset rules that described basis is relevant to service set SSID of target access AP determines described WiFi network In the 1st channel particularly as follows:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Described determine the n-th channel in described WiFi network by described preset rules particularly as follows:
Determine in described priority list, in addition to the sequence number that the 1st channel to the (n-1)th channel is corresponding, the letter that relative importance value is the highest Described n-th channel that road sequence number is corresponding;
Wherein, described priority list is corresponding with the SSID of described access point, preserves K letter in described WiFi network The channel designator in road and relative importance value corresponding to each channel designator.
In conjunction with the implementation that the second of first aspect or first aspect is possible, the 5th kind of possible implementation In, the preset rules relevant for SSID of described and described target access is:
The channel designator of described 1st channel is determined according to the function with SSID as independent variable;
The preset rules that described basis is relevant to service set SSID of target access AP determines described WiFi network In the 1st channel particularly as follows:
Will, the value of described independent variable value of described function when being the SSID of described target access, as described 1st channel Channel designator.
In conjunction with the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation, described with SSID is that the function of independent variable is: S1=(hash(SSID)mod K)+1;
Wherein, the channel number during K is described WiFi network;Described hash (SSID) refers to SSID is carried out Hash fortune Calculate;Mod is modulo operator.
In conjunction with the first possible implementation of first aspect, in the 7th kind of possible implementation, described default Rule is:
Determine the channel sequence of the 1st channel to the n-th channel respectively to the n-th function according to the 1st function with SSID as independent variable Number;
The preset rules that described basis is relevant to service set SSID of target access AP determines described WiFi network In the 1st channel particularly as follows:
Will, the value of the 1st function described in when the value of described independent variable is the SSID of described target access, as the described 1st The channel designator of channel;
Described determine the n-th channel in described WiFi network by described preset rules particularly as follows:
Will, the value of the n-th function described in when the value of described independent variable is the SSID of described target access, as described n-th The channel designator of channel.
In conjunction with the 7th kind of possible implementation of first aspect, in the 8th kind of possible implementation, described 1st letter Number is S1=(hash(SSID)mod K)+1;Described n-th function is Sn=(Sn-1+a)mod K+1;
Wherein, Sn-1Being the (n-1)th function, a is preset constant;Described hash (SSID) refers to SSID is carried out Hash operation; Mod is modulo operator.
In conjunction with any one possible implementation of first aspect or first aspect, the 9th kind of possible implementation In, described 1st channel sends the scan request frame of the SSID carrying described target AP;
Described scan described target AP and refer to: receive the scanning response frame to described scan request frame.
In conjunction with any one possible implementation of first aspect or first aspect, the tenth kind of possible implementation In, described be scanned on described 1st channel particularly as follows:
Described 1st channel is monitored;
Described scan described target AP and refer to: on described 1st channel, listen to comprise the SSID's of described target AP Beacon frame.
Second aspect, the method that in the embodiment of the present invention a kind of Wireless Fidelity WiFi network, access point AP selects channel, bag Include:
The 1st letter in described WiFi network is determined according to the preset rules relevant to service set SSID of described AP Road;
Judge whether described 1st channel can be used, if described 1st channel can be used, then use described 1st channel, in order to website When determining with described preset rules and scan described 1 channel, scan described AP.
In the first possible implementation, described preset rules is used for determining that the 1st channel is to the n-th channel;
Described method also includes:
If the (n-1)th channel is unavailable, the most described AP determines the n-th letter in described WiFi network according to described preset rules Road;
Judge whether described n-th channel can be used, if available, then use the n-th channel, in order to described website is with described default rule When then determining and scan described n-th channel, scan described AP;Or
Described method also includes:
If the (n-1)th channel is unavailable, then judge whether the n-th channel determined according to described preset rules can be used, if available, Then use the n-th channel, in order to when website determines with described preset rules and scans described n-th channel, scan described AP;
Wherein, described n is more than 1, less than or equal to the integer of K;Described K is the number of channel in described WiFi network.
In conjunction with the first possible implementation of second aspect or second aspect, in the implementation that the second is possible, Before the preset rules that described basis is relevant to the SSID of described AP determines the 1st channel in described WiFi network, also include:
Obtain on-site national code information;
Correspondingly, the preset rules that described basis is relevant to described SSID determines the 1st channel in described WiFi network, bag Include:
Described 1st channel is determined according to described national code information and described preset rules.
In conjunction with the implementation that the second of second aspect or second aspect is possible, in the implementation that the third is possible In, the preset rules that described basis is relevant to service set SSID of described AP determines the 1st channel in described WiFi network For:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Wherein, described priority list is corresponding with the SSID of described AP, preserves K channel in described WiFi network Channel designator and relative importance value corresponding to each channel designator;Described K is the number of channel in described WiFi network.
In conjunction with the first possible implementation of second aspect, in the 4th kind of possible implementation, according to preferentially Degree order from high to low, determines the channel number of the 1st channel to the n-th channel successively;
The preset rules that described basis is relevant to service set SSID of described AP determines the 1st in described WiFi network Channel is:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Described AP determine the n-th channel in described WiFi network according to described preset rules particularly as follows:
Described AP determines in described priority list, and in addition to the sequence number that the 1st channel to the (n-1)th channel is corresponding, relative importance value is Described n-th channel that high channel designator is corresponding;
Wherein, described priority list is corresponding with the SSID of described access point, preserves K letter in described WiFi network The channel designator in road and relative importance value corresponding to each channel designator.
In conjunction with the implementation that the second of second aspect or second aspect is possible, the 5th kind of possible implementation In, the preset rules relevant for SSID of described and described AP is:
The channel designator of described 1st channel is determined according to the function with SSID as independent variable;
The preset rules that described basis is relevant to service set SSID of described AP determines the 1st in described WiFi network Channel particularly as follows:
Will, the value of described independent variable value of described function when being the SSID of described target access, as described 1st channel Channel designator.
In conjunction with second aspect the 5th kind of possible implementation, in the 6th kind of possible implementation, described with SSID is that the function of independent variable is: S1=(hash(SSID)mod K)+1;
Wherein, S1It it is the channel designator of the 1st channel;K is the channel number in described WiFi network;Described hash (SSID) Refer to SSID is carried out Hash operation;Mod is modulo operator.
In conjunction with the first possible implementation of second aspect, in the 7th kind of possible implementation, described default Rule is:
Determine the channel sequence of the 1st channel to the n-th channel respectively to the n-th function according to the 1st function with SSID as independent variable Number;
The preset rules that described basis is relevant to service set SSID of described AP determines the 1st in described WiFi network Channel particularly as follows:
Will, the value of the 1st function described in when the value of described independent variable is the SSID of described target access, as the described 1st The channel designator of channel;
Described AP determine the n-th channel in described WiFi network according to described preset rules particularly as follows:
Will, the value of the n-th function described in when the value of described independent variable is the SSID of described target access, as described n-th The channel designator of channel.
In conjunction with the 7th kind of possible implementation of second aspect, in the 8th kind of possible implementation, described 1st letter Number is S1=(hash(SSID)mod K)+1;Described n-th function is Sn=(Sn-1+a)mod K+1;
Wherein, Sn-1Being the (n-1)th function, a is preset constant;Described hash (SSID) refers to SSID is carried out Hash operation; Mod is modulo operator.
The third aspect, the embodiment of the present invention provides a kind of station for scanning access point in Wireless Fidelity WiFi network Point, including:
First determines unit, for determining according to the preset rules relevant to service set SSID of target access AP The 1st channel in described WiFi network;
First scanning element, for being scanned, in order to when described target AP is with described default rule on described 1st channel When then determining and use described 1 channel, scan described target AP.
In the implementation that the first is possible, described preset rules is used for determining that the 1st channel is to the n-th channel;
Described website also includes:
Second determines unit, if for scanning on the (n-1)th channel less than described target AP, then true by described preset rules The n-th channel in fixed described WiFi network;
Second scanning element, for being scanned, in order to when described target AP is with described default rule on described n-th channel When then determining and use described n-th channel, scan described target AP;Or
Described website also includes:
3rd scanning element, if for scanning less than described target AP, then according to described default rule on the (n-1)th channel It is scanned on the n-th channel then determined;So that when described target AP determines with described preset rules and uses described n-th channel Time, scan described target AP;
Wherein, described n is more than 1, less than or equal to the integer of K;Described K is the number of channel in described WiFi network.
In conjunction with the first possible implementation of the third aspect or the third aspect, in the implementation that the second is possible In, described website also includes:
First acquiring unit, is used for obtaining on-site national code information;
Correspondingly, described first determines that unit is specifically for determining institute according to described national code information and described preset rules State the 1st channel.
In conjunction with the implementation that the second of the third aspect or the third aspect is possible, in the implementation that the third is possible In, described website also includes:
Memory element, is used for storing priority list, and described priority list is corresponding with the SSID of described target AP, protects There are the channel designator of K channel in described WiFi network and the relative importance value that each channel designator is corresponding;Described K is described WiFi The number of channel in network;
Described first determines that unit, should specifically for determining the channel designator that relative importance value is the highest from described priority list Channel corresponding to channel designator that relative importance value is the highest is described 1st channel.
In conjunction with the first possible implementation of the third aspect, in the 4th kind of possible implementation, described website also wraps Include:
Memory element, is used for storing priority list, and described priority list is corresponding with the SSID of described target AP, protects There are the channel designator of K channel in described WiFi network and the relative importance value that each channel designator is corresponding;Described K is described WiFi The number of channel in network;
Described first determine unit specifically for, from described priority list, determine the channel designator pair that relative importance value is the highest Described 1st channel answered;
Described second determine unit specifically for, in the case of the (n-1)th channel scans less than described target AP, according to Described priority list, from the channel designator in addition to the channel designator that the 1st channel to the (n-1)th channel is corresponding, determines preferential Spend the n-th channel that the highest channel designator is corresponding;
Wherein, described n is more than 1, less than or equal to the integer of K.
In conjunction with the implementation that the second of the third aspect or the third aspect is possible, the 5th kind of possible implementation In, the preset rules relevant for SSID of described and described target access is:
The channel designator of described 1st channel is determined according to the function with SSID as independent variable;
Described first determine unit specifically for: will, the value of described independent variable is the SSID time institute of described target access State the value of function, as the channel designator of described 1st channel.
In conjunction with the 5th kind of possible implementation of the third aspect, in the 6th kind of possible implementation, described with SSID is that the function of independent variable is: S1=(hash (SSID) mod K)+1;
Wherein, the channel number during K is described WiFi network;Described hash (SSID) refers to described in described target AP SSID carries out Hash operation;Mod is modulo operator.
In conjunction with the first possible implementation of the third aspect, in the 7th kind of possible implementation, described default rule It is then: determine the channel designator of the 1st channel to the n-th channel respectively to the n-th function according to the 1st function with SSID as independent variable;
Described first determine unit specifically for: will, the value of described independent variable is the SSID time institute of described target access State the value of the 1st function, as the channel designator of described 1st channel;
In the case of described second determines that unit is specifically for scanning less than described target AP on the (n-1)th channel, will, institute The value of the n-th function described in when stating the SSID that value is described target access of independent variable, as the channel sequence of described n-th channel Number.
In conjunction with the 7th kind of possible implementation of the third aspect, in the 8th kind of possible implementation, described 1st function For S1=(hash(SSID)mod K)+1;Described n-th function is Sn=(Sn-1+a)mod K+1;
Wherein, Sn-1Being the (n-1)th function, a is preset constant;Described hash (SSID) refers to SSID is carried out Hash operation; Mod is modulo operator.
Fourth aspect, the embodiment of the present invention provides the access point in a kind of Wireless Fidelity WiFi network, including:
3rd determines unit, for determining institute according to the preset rules relevant to service set SSID of described access point State the 1st channel in WiFi network;
First judging unit, is used for judging whether described 1st channel can be used, if described 1st channel can be used, then uses described 1st channel, in order to when website determines with described preset rules and scans described 1 channel, scans described access point.
In the implementation that the first is possible, described preset rules is used for determining that the 1st channel is to the n-th channel;Described connect Access point also includes:
4th determines unit, if unavailable for the (n-1)th channel, then determines described WiFi network according to described preset rules In the n-th channel;
Second judging unit, is used for judging whether described n-th channel can be used, if available, then uses the n-th channel, in order to institute State website when determining with described preset rules and scan described n-th channel, scan described access point;Or
Described access point also includes:
3rd judging unit, for judging whether the n-th channel determined according to described preset rules can be used, if available, then Use the n-th channel, in order to when website determines with described preset rules and scans described n-th channel, scan described AP;
Wherein, described n is more than 1, less than or equal to the integer of K;Described K is the number of channel in described WiFi network.
In conjunction with the first possible implementation of fourth aspect or fourth aspect, in the implementation that the second is possible In, described access point also includes:
Second acquisition unit, is used for obtaining on-site national code information;
Correspondingly, the described 3rd determines that unit is specifically for determining institute according to described national code information and described preset rules State the 1st channel.
In conjunction with the implementation that the second of fourth aspect or fourth aspect is possible, in the implementation that the third is possible In, described access point also includes:
Memory element, is used for storing priority list, and described priority list is corresponding with the SSID of described access point, protects There are the channel designator of K channel in described WiFi network and the relative importance value that each channel designator is corresponding;Described K is described WiFi The number of channel in network;
Described 3rd determine unit specifically for, from described priority list, determine the channel designator that relative importance value is the highest; Channel corresponding to channel designator that this relative importance value is the highest is described 1st channel.
In conjunction with the first possible implementation of fourth aspect, in the 4th kind of possible implementation, described access Point also includes:
Memory element, is used for storing priority list, and described priority list is corresponding with the SSID of described access point, protects There are the channel designator of K channel in described WiFi network and the relative importance value that each channel designator is corresponding;Described K is described WiFi The number of channel in network;
Described 3rd determine unit specifically for, determine that channel designator that in described priority list, relative importance value is the highest is corresponding Described 1st channel;
Described 4th determine unit specifically for, in the case of the (n-1)th channel is disabled, determine described priority list In, in addition to the channel designator that the 1st channel to the (n-1)th channel is corresponding, the n-th channel that channel designator that relative importance value is the highest is corresponding;
Wherein, described n is more than 1, less than or equal to the integer of K.
In conjunction with the implementation that the second of fourth aspect or fourth aspect is possible, the 5th kind of possible implementation In, the described 3rd determine unit specifically for: will, the value of function when the value of independent variable is the SSID of described target access, make Channel designator for described 1st channel;Described function is with SSID as independent variable.
In conjunction with the 5th kind of possible implementation of fourth aspect, in the 6th kind of possible implementation, described function For: S1=(hash(SSID)mod K)+1;
Wherein, the channel number during K is described WiFi network;Described hash (SSID) refers to SSID is carried out Hash fortune Calculate;Mod is modulo operator.
In conjunction with the first possible implementation of fourth aspect, in the 7th kind of possible implementation, the described 3rd Determine unit specifically for: will, the value of the 1st function when the value of independent variable is the SSID of described target access, as the described 1st The channel designator of channel;Described 1st function is with SSID as independent variable;
Described 4th determine unit specifically for: in the case of the (n-1)th channel is disabled, will, the value of independent variable is institute The value of the n-th function when stating the SSID of target access, as the channel designator of described n-th channel;Described n-th function with SSID is Independent variable;
Described pre-defined rule particularly as follows: determine the channel of the 1st channel to the n-th channel respectively according to the 1st function to the n-th function Number.
In conjunction with the 7th kind of possible implementation of fourth aspect, in the 8th kind of possible implementation, described 1st letter Number is S1=(hash(SSID)mod K)+1;Described n-th function is Sn=(Sn-1+a)mod K+1;
Wherein, Sn-1Being the (n-1)th function, a is preset constant;Described hash (SSID) refers to SSID is carried out Hash operation; Mod is modulo operator.
5th aspect, the embodiment of the present invention provides a kind of Wireless Fidelity WiFi network access system, including:
The website that the embodiment of the present invention provides, and the access point that the embodiment of the present invention provides.
As shown from the above technical solution, the wireless fidelity network that the embodiment of the present invention provides scans access point, channel choosing Selection method, equipment and system, STA determines WiFi according to the preset rules relevant to service set SSID of target access AP The 1st channel in network, is scanned on the 1st channel, in order to determines with preset rules when having target AP of SSID and makes During with 1 channel, scan target AP.Owing to STA determines the 1st channel according to the preset rules relevant to the SSID of target AP, This target AP determines 1st channel also according to SSID by identical preset rules when selecting channel, then be somebody's turn to do when target AP uses During 1 channel, STA can quickly scan this target AP when scan channel, and scanning process has specific aim, substantially increases Scan efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is this Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
A kind of Wireless Fidelity WiFi network that Fig. 1 provides for the embodiment of the present invention scans the method flow diagram of access point;
The another kind of Wireless Fidelity WiFi network that Fig. 2 provides for the embodiment of the present invention scans the method flow of access point Figure;
Another Wireless Fidelity WiFi network that Fig. 3 provides for the embodiment of the present invention scans the method flow of access point Figure;
In a kind of Wireless Fidelity WiFi network that Fig. 4 provides for the embodiment of the present invention, access point AP selects the method stream of channel Cheng Tu;
The method that in the another kind of Wireless Fidelity WiFi network that Fig. 5 provides for the embodiment of the present invention, access point AP selects channel Flow chart;
The method that in another Wireless Fidelity WiFi network that Fig. 6 provides for the embodiment of the present invention, access point AP selects channel Flow chart;
A kind of website knot for scanning access point in Wireless Fidelity WiFi network that Fig. 7 provides for the embodiment of the present invention Structure schematic diagram;
Fig. 8 is used for scanning the website of access point in Wireless Fidelity WiFi network for the another kind that the embodiment of the present invention provides Structural representation;
Another website being used for scanning access point in Wireless Fidelity WiFi network that Fig. 9 provides for the embodiment of the present invention Structural representation;
Access point structures schematic diagram in a kind of Wireless Fidelity WiFi network that Figure 10 provides for the embodiment of the present invention;
Access point structures schematic diagram in the another kind of Wireless Fidelity WiFi network that Figure 11 provides for the embodiment of the present invention;
Access point structures schematic diagram in another Wireless Fidelity WiFi network that Figure 12 provides for the embodiment of the present invention;
The Wireless Fidelity WiFi network access system structural representation that Figure 13 provides for the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
A kind of Wireless Fidelity WiFi network that Fig. 1 provides for the embodiment of the present invention scans the method flow diagram of access point. As it is shown in figure 1, the scanning access point method that the present embodiment provides specifically can apply in WiFi network site STA to access point The scanning process of AP.The method scanning access point in the Wireless Fidelity WiFi network that the present embodiment provides can be held by STA OK.
The method scanning access point in the Wireless Fidelity WiFi network that the present embodiment provides specifically includes:
Step A10, website determine described according to the preset rules relevant to service set SSID of target access AP The 1st channel in WiFi network;
Step A20, described website are scanned on described 1st channel, in order to when described target AP is with described default rule When then determining and use described 1 channel, described station scans is to described target AP.
Specifically, WiFi network can be divided into multiple WiFi sub-network, and each WiFi sub-network has a SSID (Service Set Identifier, service set), the WiFi sub-network such as oneself arranged can be transported with named Home The WiFi sub-network that battalion business is arranged can be the SSID of WiFi sub-network with named ChinaNet, Home and ChinaNet.Often Individual WiFi sub-network can be provided with one or more AP, belong to SSID and this WiFi subnet of the AP of same WiFi sub-network The SSID of network is identical.
STA is specifically as follows the terminal being provided with WiFi module, and this terminal can be mobile phone, panel computer, notebook electricity Brain or personal computer etc..STA searches for this WiFi sub-network by the SSID of WiFi sub-network, and STA is at search WiFi subnet During network, need to scan the AP of this WiFi sub-network, then this AP is target AP.
The frequency range of WiFi network has two, and one is the frequency range of 2.4G, and one is the frequency range of 5G.Each frequency range is according to the world The Uniform provisions of normal structure is divided into again several channels, and each channel has a channel number to identify this channel.
The preset rules relevant to SSID is specifically as follows SSID and the 1st channel mapping relations, corresponding for difference SSID the 1st Channel can be different, i.e. i.e. can determine that the 1st channel by SSID.What this preset rules can also be SSID with priority list is right Should be related to, relative importance value list includes the channel designator of K channel in WiFi network and corresponding preferential of each channel designator Degree, can determine priority list according to SSID, and determine the 1st channel according to relative importance value, such as by channel the highest for relative importance value It is defined as the 1st channel.This preset rules can also is that preset algorithm, SSID can be converted to channel by this preset algorithm Number, the channel that this channel number being converted to is corresponding is the 1st channel.
When construction network, AP determines the 1st channel according to the preset rules relevant to the SSID of self, this preset rules with STA determines that the mode of the 1st channel is identical.AP judges whether the 1st channel can be used, if available, then uses the 1st channel.AP makes During with 1 channel, STA is scanned on the 1st channel, can scan this AP.STA scans target on the 1st channel After AP, the connection with this target AP can be set up.
The Wireless Fidelity WiFi network that the present embodiment provides scans the method for access point, STA according to target access The preset rules that service set SSID of AP is relevant determines the 1st channel in WiFi network, is scanned on the 1st channel, When target AP with SSID determines with preset rules and uses 1 channel, to scan target AP.Due to STA according to The preset rules relevant to the SSID of target AP determines the 1st channel, and this target AP passes through phase when selecting channel also according to SSID Same preset rules determines the 1st channel, then, when target AP uses 1 channel, STA can sweep when first time scan channel Retouching this target AP, scanning process has specific aim, substantially increases scan efficiency.
The another kind of Wireless Fidelity WiFi network that Fig. 2 provides for the embodiment of the present invention scans the method flow of access point Figure.As in figure 2 it is shown, in the present embodiment, described preset rules is used for determining that the 1st channel is to the n-th channel;
Described method also includes:
If step A30 scans less than described target AP on the (n-1)th channel, then determine described by described preset rules The n-th channel in WiFi network;
Step A40, it is scanned on described n-th channel, in order to when described target AP determines also with described preset rules When using described n-th channel, scan described target AP;Or
Described method also includes:
If scanning less than described target AP on the (n-1)th channel, then on the n-th channel determined according to described preset rules It is scanned;When described target AP determines with described preset rules and uses described n-th channel, to scan described target AP;
Wherein, described n is more than 1, less than or equal to the integer of K;Described K is the number of channel in described WiFi network.
Specifically, if STA scans fall short AP on the (n-1)th channel, the n-th channel is determined according to preset rules.Build During network, AP judges when the (n-1)th channel is unavailable, determines the n-th channel also according to the preset rules relevant to the SSID of self.
According to the preset rules relevant to the SSID of target AP, STA determines that the implementation of the n-th channel can have multiple, can Immediately the SSID of target AP to be converted to by preset rules the channel number of the n-th channel needing when, it is also possible to according to The SSID of target AP obtains the priority list pre-saved, this priority list include multiple channel channel designator and The relative importance value that each channel designator is corresponding.Such as, channel designator be the relative importance value of the channel of 6 be 1, channel designator is the channel of 10 Relative importance value be 2 etc..Then can determine the n-th channel according to the relative importance value of each channel in this priority list.Such as, may be used To select from high to low according to relative importance value.
This priority list can pre-set, and is stored by the corresponding relation of this priority list with SSID.Excellent It is local that first level list and the corresponding relation of SSID can be stored in STA, it is also possible to being stored in the webserver, STA can lead to Cross SSID and get the priority list corresponding with this SSID.Priority list can also generate in advance according to preset algorithm, can Using by SSID as a parameter of this preset algorithm, also differ according to the priority list that different SSID generates.This Priority list preserves, in order to immediately obtained by SSID when of needs.Priority list can include relative importance value Be the channel designator of the channel of 1, this relative importance value be 1 channel be the 1st channel, the determination method of the 1st channel and above-mentioned enforcement Example is identical.Can not also include the channel designator of the channel that relative importance value is 1 in list, i.e. from the beginning of relative importance value is 2, relative importance value is 2 channels started are the 2nd channel.
After STA determines the n-th channel, being scanned on this channel, if scanning target AP, then setting up and target AP Connect.In actual application, if not scanning this target AP yet after the most scanned on all channels in a network, then may be used Think the instruction information that the scanning of user feedback target AP is failed.STA can also be according to setting, after the scan channel of predetermined number When not scanning this target AP yet, stop determining and scanning the handling process of the n-th channel.
All obtain priority list according to SSID at AP and STA, and select the realization side of channel according to this priority list In formula, when construction network, AP judges that the (n-1)th channel is unavailable, and AP comes really according to the priority list corresponding with self SSID Fixed n-th channel.AP can select from high to low according to relative importance value in priority list, such as the 2nd letter that channel designator is 10 The relative importance value in road is the highest, then AP judges whether the channel that this channel designator is 10 can be used, if available, then select and uses this letter Road, if unavailable, then judge whether the channel of the low one-level of relative importance value can be used, by that analogy, until determining available channel. When STA scans this AP, first select from high to low according to the relative importance value in the priority list corresponding with the SSID of this AP N-th channel, if the relative importance value of the 2nd channel that channel designator is 10 is the highest, then STA sweeps on the channel that channel designator is 10 Retouch, if scanning this AP, then set up with this AP and be connected, if scanning is less than this AP, then by enterprising for the channel in the low one-level of relative importance value Row scanning, by that analogy, until scanning this AP.
In actual applications, priority list can also be shown to have permission the user configuring AP by AP, for User selects to configure the channel of AP according to this priority list.
STA determines that the method for the n-th channel determines that with AP the method for the n-th channel is identical so that the scanning process of AP is had by STA Targetedly, scan efficiency is further increased.
In the present embodiment, in step A10, pre-relevant to service set SSID of target access AP of described basis If before rule determines the 1st channel in described WiFi network, it is also possible to including:
Step A50, obtain on-site national code information;
Correspondingly, step A10, the preset rules that described basis is relevant to service set SSID of target access AP is true The 1st channel in fixed described WiFi network, specifically may include that
Described 1st channel is determined according to described national code information and described preset rules.
Specifically, each country may be different in the use of channel, and such as, the quantity of channel is 14, and channel number is 1-14, some countries may use channel number to be the channel of 1-13, and some countries may use channel number to be the channel of 1-11.Right In same SSID, the 1st channel determining country variant can be different.Using national code information as determining in the 1st channel procedure Referenced factor, selects channel can avoid the channel selecting this country not use when being scanned at STA, improves channel The accuracy determined, further increases scan efficiency.
In the present embodiment, step A10, preset relevant to service set SSID of target access AP of described basis Rule determine the 1st channel in described WiFi network particularly as follows:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Wherein, described priority list is corresponding with the SSID of described target AP, preserves K letter in described WiFi network The channel designator in road and relative importance value corresponding to each channel designator;Described K is the number of channel in described WiFi network.
In the present embodiment, described preset rules is:
According to relative importance value order from high to low, determine that the 1st channel is to the channel number of K channel successively;
Step A10, the preset rules that described basis is relevant to service set SSID of target access AP determines described The 1st channel in WiFi network particularly as follows:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Wherein, described priority list is corresponding with the SSID of described target AP, preserves K letter in described WiFi network The channel designator in road and relative importance value corresponding to each channel designator;Described K is the number of channel in described WiFi network.
Specifically, can be with the mapping relations of preset channel number with channel designator, so that channel designator may map to one Individual channel.Such as, channel designator 6 can map directly to the channel that channel number is 6.
In this city example, described preset rules is:
According to relative importance value order from high to low, determine the channel number of the 1st channel to the n-th channel successively;
Step A10, the preset rules that described basis is relevant to service set SSID of target access AP determines described The 1st channel in WiFi network particularly as follows:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Step A30, described determine the n-th channel in described WiFi network by described preset rules particularly as follows:
Determine in described priority list, in addition to the sequence number that the 1st channel to the (n-1)th channel is corresponding, the letter that relative importance value is the highest Described n-th channel that road sequence number is corresponding;
Wherein, described priority list is corresponding with the SSID of described access point, preserves K letter in described WiFi network The channel designator in road and relative importance value corresponding to each channel designator.
In the present embodiment, the preset rules relevant for SSID of described and described target access is:
The channel designator of described 1st channel is determined according to the function with SSID as independent variable;
Step A10, the preset rules that described basis is relevant to service set SSID of target access AP determines described The 1st channel in WiFi network particularly as follows:
Will, the value of described independent variable value of described function when being the SSID of described target access, as described 1st channel Channel designator.
Specifically, the function with SSID as independent variable can be:
S 1 = ( hash ( SSID ) mod K ) + 1 S 2 = ( ( S 1 + a ) mod K ) + 1 S n = ( S n - 2 + 2 * a + 1 ) mod K ) + 1 ( 3 ≤ n ≤ 13 )
Wherein, a is preset constant, and the span of a is different according to the difference of K, as K=13,1≤a≤13 and a!=12, (!=expression is not equal to).
Specifically, the binary value of random length can be mapped as the less binary system of regular length by Hash hash computing Value, this binary value is referred to as cryptographic Hash.MD5(Message-Digest Algorithm 5) it is Message Digest 5, be The one of hash computing, by this MD5 computing, can be transformed into the character string of a random length hexadecimal of one fixed length Numeric string.The generally hexadecimal number word string that hexadecimal number word string is 128 of this fixed length.Can be by by MD5 computing SSID is converted into the hexadecimal number word string of 128.Mod is specially modulo operation.The channel that K is used by STA location Quantity.When SSID being processed by hash computing, in advance SSID can be converted to binary value.
In actual application, SSID can be converted into by MD5 computing the hexadecimal number word string of 128, permissible The hexadecimal number word string of 128 is completely used for above-mentioned formula calculate, it is also possible to select part figure place to calculate, Such as select latter 64, or latter 32, or middle 64, or middle 32 etc..During above-mentioned calculating, except making Use MD5 computing, it would however also be possible to employ other hash computings realize.Present embodiments provide a kind of the 1st channel that calculates to K channel The method of channel designator, but those skilled in the art can be realized by other algorithms, the present invention is not limited thereto.
In the present embodiment, the described function with SSID as independent variable is: S1=(hash(SSID)mod K)+1;
Wherein, the channel number during K is described WiFi network;Described hash (SSID) refers to SSID is carried out Hash fortune Calculate;Mod is modulo operator.
In the present embodiment, described preset rules is:
Determine the channel sequence of the 1st channel to the n-th channel respectively to the n-th function according to the 1st function with SSID as independent variable Number;
Step A10, the preset rules that described basis is relevant to service set SSID of target access AP determines described The 1st channel in WiFi network particularly as follows:
Will, the value of the 1st function described in when the value of described independent variable is the SSID of described target access, as the described 1st The channel designator of channel;
Step A30, described determine the n-th channel in described WiFi network by described preset rules particularly as follows:
Will, the value of the n-th function described in when the value of described independent variable is the SSID of described target access, as described n-th The channel designator of channel.
In the present embodiment, described 1st function is S1=(hash(SSID)mod K)+1;Described n-th function is Sn=(Sn-1+ a)mod K+1;
Wherein, Sn-1Being the (n-1)th function, a is preset constant;Described hash (SSID) refers to SSID is carried out Hash operation; Mod is modulo operator.
Such as, SSID be ChinaNet, K be 13, when a is 5, following result: S1=6 can be obtained by above-mentioned formula;S2 =12;S3=5;S4=11;S5=4;S6=10;S7=3;S8=9;S9=2;S10=8;S11=1;S12=7;S13=13.
In the present embodiment, described Hash operation is MD5, SHA(Secure Hash Algorithm, and secure hash is calculated Method) 1, SHA128 or SHA256 computing.
In the present embodiment, step A20, described be scanned on described 1st channel particularly as follows:
Described 1st channel sends the scan request frame of the SSID carrying described target AP;
Described scan described target AP and refer to: receive the scanning response frame to described scan request frame.
Specifically, STA can carry out the scanning of AP in several ways, and in one implementation, STA can actively exist 1st channel sends scan request frame (probe request frame), carries the SSID of target AP in this scan request frame. When the AP using the 1st channel receives this scan request frame, it is judged that the SSID in this scan request frame with the SSID of self is No identical, if identical, then return scanning response frame (probe response frame).When STA receives this scanning response frame Time, illustrate to scan this target AP, can set up with this AP and be connected.If STA is not received by scanning response frame, illustrates to use and be somebody's turn to do The AP of the 1st channel is not target AP.
In the present embodiment, step A20, described be scanned on described 1st channel particularly as follows:
Described 1st channel is monitored;
Described scan described target AP and refer to: on described 1st channel, listen to comprise the SSID's of described target AP Beacon frame.
Described 1st channel is monitored, when listening to the first beacon frame, it is judged that described first beacon frame carries SSID is the most identical with the SSID of described target AP, if identical, then scans described target AP.
In another kind of implementation, the 1st channel is monitored by STA, uses the AP meeting periodic broadcast of the 1st channel First beacon frame, carry in this first beacon frame the SSID, STA of the AP sending this first beacon frame when listen to use this During the first beacon frame that the AP of 1 channel sends, STA extracts the SSID in the first beacon frame, it is judged that whether this SSID is target AP SSID, the most then illustrate that this AP is target AP, if it is not, then illustrate that this AP is not target AP.Specifically, channel tool Having certain frequency range, the process that the 1st channel is monitored by STA can be the reception of the signal to this frequency range Journey.
In actual applications, the process that STA is scanned on the n-th channel can also be with reference to above two mode, at this Repeat no more.
In the present embodiment, step A50, described acquisition on-site national code information, specifically include:
Receive the second beacon frame that arbitrary AP sends, from described second beacon frame, extract described national code information.
Can also carry national code information in beacon frame, on-site arbitrary AP can be monitored by STA, is somebody's turn to do to obtain National code information.
In actual applications, the mode obtaining national code information can be multiple.Such as, when STA is mobile phone, can pass through Receive the broadcast message that in Cellular Networks, base station sends and obtain this national code information.When STA is provided with GPS(Global Positioning System, global positioning system) module, geographical location information can be obtained by GPS module, further according to this Geographical location information determines the country one belongs to, to obtain this national code information.User can also be manually entered current positional information, So that STA obtains this national code information according to the positional information of this input.
Another Wireless Fidelity WiFi network that Fig. 3 provides for the embodiment of the present invention scans the method flow of access point Figure.In conjunction with Fig. 3, the process of STA scanning target AP in WiFi network is described in detail.
First STA obtains on-site national code information, according to national information and preset relevant to the SSID of target AP Rule determines the i-th channel, and i is from 1 to K, and K is the number of channel in WiFi network.STA scans on the i-th channel, if the target of scanning AP, then set up with target AP and be connected, if scanning fall short AP, then add 1 by the value of i, the i-th channel after the value of i adds 1 is swept Retouch, until the most scanned on K channel.If the most scanned target AP that do not scans yet, then terminate this on K channel Scanning process.
In a kind of Wireless Fidelity WiFi network that Fig. 4 provides for the embodiment of the present invention, access point AP selects the method stream of channel Cheng Tu.As shown in Figure 4, in the Wireless Fidelity WiFi network that the present embodiment provides, the method for access point AP selection channel is the most permissible Being applied to AP during networking and select the process of channel, it implements process, is specifically referred to the description of above-described embodiment, Do not repeat them here.In the Wireless Fidelity WiFi network that the present embodiment provides, access point AP selects the method for channel can pass through AP Perform.
In the Wireless Fidelity WiFi network that the present embodiment provides, access point AP selects the method for channel to specifically include:
Step B10, the basis preset rules relevant to service set SSID of described AP determine in described WiFi network The 1st channel;
Step B20, judge whether described 1st channel can be used, if described 1st channel can be used, then use described 1st channel, During so that website determines with described preset rules and scans described 1 channel, scan described AP.
The method that in the Wireless Fidelity WiFi network that the present embodiment provides, access point AP selects channel, AP is according to the clothes with AP Preset rules relevant for business set identifier SSID determines the 1st channel in WiFi network, it is judged that whether the 1st channel can be used, if the 1st letter Road can be used, then use the 1st channel.Owing to AP determines the 1st when selecting channel according to the preset rules relevant to the SSID of self Channel, site STA determines the 1st channel also according to the preset rules relevant to the SSID of AP, then uses the 1st channel when target AP Time, STA can scan this target AP when first time scan channel, and scanning process has specific aim, substantially increases scanning Efficiency.
The method that in the another kind of Wireless Fidelity WiFi network that Fig. 5 provides for the embodiment of the present invention, access point AP selects channel Flow chart.As it is shown in figure 5, in the present embodiment, described preset rules is used for determining that the 1st channel is to the n-th channel;
Described method also includes:
If step B30 the (n-1)th channel is unavailable, the most described AP determines in described WiFi network according to described preset rules The n-th channel;
Step B40, judge whether described n-th channel can be used, if available, then use the n-th channel, in order to described website is with institute State preset rules when determining and scan described n-th channel, scan described AP;Or
Described method also includes:
If the (n-1)th channel is unavailable, then judge whether the n-th channel determined according to described preset rules can be used, if available, Then use the n-th channel, in order to when website determines with described preset rules and scans described n-th channel, scan described AP;
Wherein, described n is more than 1, less than or equal to the integer of K;Described K is the number of channel in described WiFi network.
Specifically, according to the situation that takies of this channel, AP can judge whether certain channel can be used.Such as on the 1st channel Listen to the signal of other AP or STA, then it is assumed that the 1st channel is the most occupied, then begin attempt to the 2nd channel, with this Analogize.Until finding a unappropriated channel.If all of channel is take, then use occupied situation the lightest Channel, or all of channel is the most occupied and the situation that takies all the same if, then use the 1st channel.Whether judge channel The factors such as interference by other signals can be it is also conceivable on this channel.The present invention is to judging whether channel can have with not doing Body limits, and can judge according to prior art.
STA determines the method that the method for the n-th channel can determine the n-th channel according to AP so that the STA scanning process to AP There is specific aim, further increase scan efficiency.
In the present embodiment, in step B10, the preset rules that described basis is relevant to the SSID of described AP determines described Before the 1st channel in WiFi network, it is also possible to including:
Step B50, obtain on-site national code information;
Correspondingly, step B10, the preset rules that described basis is relevant to described SSID determines in described WiFi network 1 channel, specifically may include that
Described 1st channel is determined according to described national code information and described preset rules.
Using national code information as determining factor referenced in the 1st channel procedure, can avoid when AP selects channel The channel selecting this country not use, improves the accuracy that channel determines.
In the present embodiment, step B10, the preset rules that described basis is relevant to service set SSID of described AP is true The 1st channel in fixed described WiFi network is:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Wherein, described priority list is corresponding with the SSID of described AP, preserves K channel in described WiFi network Channel designator and relative importance value corresponding to each channel designator;Described K is the number of channel in described WiFi network.
By the setting of priority list, the determination of channel can be carried out easily according to relative importance value.
In this city example, described preset rules is:
According to relative importance value order from high to low, determine the channel number of the 1st channel to the n-th channel successively;
Step B10, the preset rules that described basis is relevant to service set SSID of described AP determines described WiFi net The 1st channel in network is:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Step B30, described AP determine the n-th channel in described WiFi network according to described preset rules particularly as follows:
Described AP determines in described priority list, and in addition to the sequence number that the 1st channel to the (n-1)th channel is corresponding, relative importance value is Described n-th channel that high channel designator is corresponding;
Wherein, described priority list is corresponding with the SSID of described access point, preserves K letter in described WiFi network The channel designator in road and relative importance value corresponding to each channel designator.
In this city example, the preset rules relevant for SSID of described and described AP is:
The channel designator of described 1st channel is determined according to the function with SSID as independent variable;
Step B10, the preset rules that described basis is relevant to service set SSID of described AP determines described WiFi net The 1st channel in network particularly as follows:
Will, the value of described independent variable value of described function when being the SSID of described target access, as described 1st channel Channel designator.
In the present embodiment, the described function with SSID as independent variable is: S1=(hash(SSID)mod K)+1;
Wherein, S1It it is the channel designator of the 1st channel;K is the channel number in described WiFi network;Described hash (SSID) Refer to SSID is carried out Hash operation;Mod is modulo operator.
In the present embodiment, described preset rules is:
Determine the channel sequence of the 1st channel to the n-th channel respectively to the n-th function according to the 1st function with SSID as independent variable Number;
Step B10, the preset rules that described basis is relevant to service set SSID of described AP determines described WiFi net The 1st channel in network particularly as follows:
Will, the value of the 1st function described in when the value of described independent variable is the SSID of described target access, as the described 1st The channel designator of channel;
Step B30, described AP determine the n-th channel in described WiFi network according to described preset rules particularly as follows:
Will, the value of the n-th function described in when the value of described independent variable is the SSID of described target access, as described n-th The channel designator of channel.
In the present embodiment, described 1st function is S1=(hash(SSID)mod K)+1;Described n-th function is Sn=(Sn-1+ a)mod K+1;
Wherein, Sn-1Being the (n-1)th function, a is preset constant;Described hash (SSID) refers to SSID is carried out Hash operation; Mod is modulo operator.
In the present embodiment, in step B20, described judge whether described 1st channel can be used, if described 1st channel can be used, After then using described 1st channel, it is also possible to including:
The scan request of the SSID carrying target AP that step B60, receiving station STA send on described 1st channel Frame, it is judged that the SSID of described target AP is the most identical with the SSID of described AP, if identical, then sends scanning response to described STA Frame.
After networking is good, AP employs certain channel, for example, the 1st channel.Process in STA scanning target AP In, STA actively sends scan request frame (probe request frame) on the 1st channel, carries in this scan request frame The SSID of target AP.When AP receives this scan request frame, it is judged that whether the SSID in this scan request frame and the SSID of self Identical, if identical, then return scanning response frame (probe response frame).When STA receives this scanning response frame, This AP is target AP, can set up with this target AP and be connected.If STA is not received by scanning response frame, this AP is described not It it is target AP.
In an embodiment, in step B20, described judge whether described 1st channel can be used, if described 1st channel can be used, then After using described 1st channel, it is also possible to including:
Step B70, the beacon frame carrying the SSID of described AP is broadcasted on described 1st channel, so that STA prison Hear described beacon frame.
After networking is good, AP employs certain channel, such as, use the 1st channel.AP can be incited somebody to action by the 1st channel The SSID beacon frame carrying self is broadcasted.So that this beacon frame can be monitored on the 1st channel by STA, with Judge whether this AP is target AP.
It should be noted that step B60 and step B70 do not have inevitable sequential relationship.
The method that in another Wireless Fidelity WiFi network that Fig. 6 provides for the embodiment of the present invention, access point AP selects channel Flow chart.The process of channel is selected to be described in detail AP in WiFi network in conjunction with Fig. 6.
First AP obtains on-site national code information, according to national information and the preset rules relevant to the SSID of self Determining the i-th channel, i is from 1 to K, and K is the number of channel in WiFi network.AP judges whether the i-th channel can be used, if available, then uses This channel, if unavailable, adds 1 by the value of i, then judge the value of i add 1 after the i-th channel whether can use, until on K channel Till all judging.If the most unavailable on K channel, then terminate this Channel assignment flow process.Can be further according to K channel The situation that takies select use channel.
A kind of website knot for scanning access point in Wireless Fidelity WiFi network that Fig. 7 provides for the embodiment of the present invention Structure schematic diagram.As it is shown in fig. 7, the site STA 81 that the present embodiment provides specifically can realize what any embodiment of the present invention provided Each step of scanning access point method, it implements process, does not repeats them here.The site STA 81 that the present embodiment provides Specifically include first and determine unit 11 and the first scanning element 12.First determines that unit 11 is for basis and target access AP82 The relevant preset rules of service set SSID determine the 1st channel in described WiFi network.First scanning element 12 is used for Described 1st channel is scanned, in order to when described target AP82 determines with described preset rules and uses described 1st channel Time, scan described target AP82.
The site STA 81 that the present embodiment provides, first determines that unit 11 is according to the services set mark with target access AP82 Know preset rules relevant for SSID and determine the 1st channel in WiFi network.First scanning element 12 is swept on the 1st channel Retouch, in order to when target AP82 with SSID determines with preset rules and uses 1 channel, scan target AP82.Due to STA81 determines the 1st channel according to the preset rules relevant to the SSID of target AP82, and this target AP82 is also root when selecting channel Determine the 1st channel according to SSID by identical preset rules, then, when target AP82 uses 1 channel, STA81 can be Scanning this target AP82 during scan channel, scanning process has specific aim, substantially increases scan efficiency.
Fig. 8 is used for scanning the website of access point in Wireless Fidelity WiFi network for the another kind that the embodiment of the present invention provides Structural representation.As shown in Figure 8, described preset rules is used for determining that the 1st channel is to the n-th channel;Further, at the present embodiment In, this site STA 81 can also include that second determines unit 13 and the second scanning element 14.If second determine unit 13 for Scan less than described target AP82 on (n-1)th channel, then determine the n-th channel in described WiFi network by described preset rules. Second scanning element 14 is for being scanned on described n-th channel, in order to when described target AP82 is true with described preset rules When determining and use described n-th channel, scan described target AP82.Or, described site STA 81 also includes that the 3rd scanning is single Unit, if the 3rd scanning element is for scanning less than described target AP82, then true according to described preset rules on the (n-1)th channel It is scanned on the n-th fixed channel;So that when described target AP82 determines with described preset rules and uses described n-th channel Time, scan described target AP82, wherein, described n is more than 1, less than or equal to the integer of K;Described K is described WiFi network In the number of channel.
STA81 determines that the method for the n-th channel determines that with AP82 the method for the n-th channel is identical so that AP82 is swept by STA81 The process of retouching has specific aim, further increases scan efficiency.
In the present embodiment, this site STA 81 can also include that the first acquiring unit 15, the first acquiring unit 15 are used for obtaining Take on-site national code information.Correspondingly, described first determines that unit 11 is specifically for according to described national code information and institute State preset rules and determine described 1st channel.Using national code information as determining factor referenced in the 1st channel procedure, STA81 selects channel can avoid the channel selecting this country not use when being scanned, and improves the accuracy that channel determines, Further increase scan efficiency.
In the present embodiment, this site STA 81 can also include that memory element 16, memory element 16 are used for storing priority List, described priority list is corresponding with the SSID of described target AP82, preserves the letter of K channel in described WiFi network Road sequence number and relative importance value corresponding to each channel designator;Described K is the number of channel in described WiFi network.Described first determines Unit 11 specifically for determining the channel designator that relative importance value is the highest from described priority list, the channel sequence that this relative importance value is the highest Number corresponding channel is described 1st channel.
In the present embodiment, this site STA 81 can also include that memory element 16, memory element 16 are used for storing priority List, described priority list is corresponding with the SSID of described target AP82, preserves the letter of K channel in described WiFi network Road sequence number and relative importance value corresponding to each channel designator;Described K is the number of channel in described WiFi network.Described first determines Described 1st channel that unit 11 is corresponding specifically for determining channel designator that relative importance value is the highest from described priority list.Institute State second determine that unit 13 is specifically for scanning less than described target AP82 on the (n-1)th channel in the case of, according to described excellent First level list, from the channel designator in addition to the channel designator that the 1st channel to the (n-1)th channel is corresponding, determines that relative importance value is the highest The n-th channel corresponding to channel designator.Wherein, described n is more than 1, less than or equal to the integer of K.
In the present embodiment, the preset rules relevant for SSID of described and described target access AP82 is: according to SSID is the channel designator that the function of independent variable determines described 1st channel.Described first determine unit 11 specifically for: will, institute The value of described function when stating the SSID that value is described target access AP82 of independent variable, as the channel sequence of described 1st channel Number.
In the present embodiment, the described function with SSID as independent variable is: S1=(hash(SSID)mod K)+1;Wherein, K For the channel number in described WiFi network;Described hash (SSID) refers to the described SSID of described target AP82 is carried out Hash Computing;Mod is modulo operator.
In the present embodiment, described preset rules is: according to the 1st function with SSID as independent variable to the n-th function respectively Determine the channel designator of the 1st channel to the n-th channel.Described first determine unit 11 specifically for: will, the value of described independent variable is The value of the 1st function described in during the SSID of described target access AP82, as the channel designator of described 1st channel.Described second In the case of determining that unit 13 is specifically for scanning less than described target AP82 on the (n-1)th channel, will, the value of described independent variable For the value of the n-th function described in during the SSID of described target access AP82, as the channel designator of described n-th channel.
In the present embodiment, described 1st function is S1=(hash(SSID)mod K)+1;Described n-th function is Sn=(Sn-1+ a)mod K+1;Wherein, Sn-1Being the (n-1)th function, a is preset constant;Described hash (SSID) refers to SSID is carried out Hash fortune Calculate;Mod is modulo operator.
In the present embodiment, described first scanning element 12 can include sending subelement 121 and receiving subelement 122. Send subelement 121 for sending the scan request frame of the SSID carrying described target AP82 on described 1st channel.Receive Subelement 122 is for when receiving scanning response frame, then scanning described target AP82.
In the present embodiment, described first scanning element 12 can be also used for monitoring described 1st channel, works as monitoring During to the first beacon frame, it is judged that the SSID carried in described first beacon frame is the most identical with the SSID of described target AP82, if Identical, then scan described target AP82.
In the present embodiment, described first acquiring unit 15 can be also used for receiving the second beacon that arbitrary AP82 sends Frame, extracts described national code information from described second beacon frame.
Another website being used for scanning access point in Wireless Fidelity WiFi network that Fig. 9 provides for the embodiment of the present invention Structural representation.As it is shown in figure 9, this site STA 81 includes: memorizer 32, for the service of storage with target access AP82 The preset rules that set identifier SSID is relevant;
Processor 31, the 1st channel that the preset rules for storing according to described memorizer determines in WiFi network;
Receptor 33, for being scanned on described 1st channel by antenna 35, in order to when described target AP82 is with institute State preset rules when determining and use described 1 channel, scan described target AP82.
In one embodiment of the invention, the work being scanned on described 1st channel also can be connect by transmitter 34 Receive device 33 and antenna 35 completes.Namely passed through, by transmitter 33, the detecting information that the SSID of target AP82 is carried in antenna transmission, When receptor 33 receives the response of target AP82 by antenna 35, show to scan described target AP82.
In one embodiment of the invention, described preset rules is used for determining that the 1st channel is to the n-th channel.Processor 31 If for scanning less than described target AP82 on the (n-1)th channel, then determining in described WiFi network by described preset rules N-th channel.Receptor 33 is for being scanned on described n-th channel by antenna 35, in order to when described target AP82 is with institute State preset rules when determining and use described n-th channel, scan described target AP82.Or, if processor 31 is for the Scan on n-1 channel less than described target AP82, be then scanned on the n-th channel determined according to described preset rules;With When described target AP82 of box lunch determines with described preset rules and uses described n-th channel, scan described target AP82;Its In, described n is more than 1, less than or equal to the integer of K;Described K is the number of channel in described WiFi network.
In one embodiment of the invention, the work being scanned on described n-th channel also can be connect by transmitter 34 Receive device 33 and antenna 35 completes.Namely passed through, by transmitter 33, the detecting information that the SSID of target AP82 is carried in antenna transmission, When receptor 33 receives the response of target AP82 by antenna 35, show to scan described target AP82.
In one embodiment of the invention, receptor 33 receives, by antenna 35, the second beacon that arbitrary AP sends Frame, processor 31 is for extracting national code information from described second beacon frame, and according to described national code information and described pre- If rule determines described 1st channel.
In one embodiment of the invention, in memorizer 32, also storage has a priority list, described priority list with The SSID of described target AP82 is corresponding, preserves the channel designator of K channel in described WiFi network and each channel designator Corresponding relative importance value;Described K is the number of channel in described WiFi network.Processor 31 is excellent for determining from priority list First spending the highest channel designator, channel corresponding to channel designator that this relative importance value is the highest is described 1st channel.
In one embodiment of the invention, in memorizer 32, also storage has a priority list, described priority list with The SSID of described target AP82 is corresponding, preserves the channel designator of K channel in described WiFi network and each channel designator Corresponding relative importance value;Described K is the number of channel in described WiFi network.Processor 31 is for true from described priority list Determine described 1st channel that the highest channel designator of relative importance value is corresponding, the (n-1)th channel scans the feelings less than described target AP82 Under condition, according to described priority list, from the channel designator in addition to the channel designator that the 1st channel to the (n-1)th channel is corresponding, Determine the n-th channel that channel designator that relative importance value is the highest is corresponding;Wherein, described n is more than 1, less than or equal to described WiFi net The integer of the number of channel in network.
In one embodiment of the invention, the preset rules relevant for SSID of described and described target access AP82 For: the channel designator of described 1st channel is determined according to the function with SSID as independent variable;Processor 31 is specifically for inciting somebody to action, described The value of independent variable is the value of described function when being the SSID of described target access AP82, as the channel designator of described 1st channel.
In one embodiment of the invention, is determined respectively according to the 1st function to the n-th function with SSID as independent variable The channel designator of 1 channel to the n-th channel;Processor 31 specifically for: will, the value of described independent variable is described target access Described in during the SSID of AP82, the value of the 1st function, as the channel designator of described 1st channel, scans less than institute on the (n-1)th channel In the case of stating target AP82, will, the n-th function described in when the value of described independent variable is the SSID of described target access AP82 Value, as the channel designator of described n-th channel.
In one embodiment of the invention, processor 31 is specifically for according to formula S1=(hash(SSID)mod K)+1 Determine the channel designator of described 1st channel, in the case of the (n-1)th channel scans less than described target AP82, according to formula Sn=(Sn-1+ a) mod K+1 determines the channel designator of the n-th channel.Wherein, S1It is the channel designator of the 1st channel, SnIt it is the n-th channel Channel designator, Sn-1Being the channel designator of the (n-1)th channel, a is preset constant;K is the channel number in described WiFi network; Described hash (SSID) refers to the described SSID of described target AP82 is carried out Hash operation;Mod is modulo operator.
Access point structures schematic diagram in a kind of Wireless Fidelity WiFi network that Figure 10 provides for the embodiment of the present invention.Such as figure Shown in 10, the access point AP82 that the present embodiment provides specifically can realize the channel of the access point that any embodiment of the present invention provides Each step of system of selection, does not repeats them here.The access point AP82 that the present embodiment provides specifically includes the 3rd and determines unit 21 and first judging unit 22.3rd determines that unit 21 is for presetting according to relevant to service set SSID of described AP82 Rule determines the 1st channel in described WiFi network.First judging unit 22 is used for judging whether described 1st channel can be used, if Described 1st channel can be used, then use described 1st channel, in order to site STA 81 determines with described preset rules and scans described During 1 channel, scan described access point AP82.
The access point AP82 that the present embodiment provides, the 3rd determines that unit 21 is relevant according to service set SSID to AP82 Preset rules determine the 1st channel in WiFi network.First judging unit 22 judges whether the 1st channel can be used, if the 1st channel Available, then use the 1st channel.Owing to AP82 determines the 1st when selecting channel according to the preset rules relevant to the SSID of self Channel, STA81 determines the 1st channel also according to the preset rules relevant to the SSID of AP82, then uses the 1st to believe when target AP82 During road, STA81 can scan this target AP82 when first time scan channel, and scanning process has specific aim, is greatly improved Scan efficiency.
Access point structures schematic diagram in the another kind of Wireless Fidelity WiFi network that Figure 11 provides for the embodiment of the present invention.As Shown in Figure 11, in the present embodiment, in the present embodiment, described preset rules is used for determining that the 1st channel is to the n-th channel;Described Access point AP82 can also include that the 4th determines unit 23 and the second judging unit 24.If the 4th determines that unit 23 is for (n-1)th Channel is unavailable, then determine the n-th channel in described WiFi network according to described preset rules.Second judging unit 24 is used for sentencing Whether disconnected described n-th channel can be used, if available, then uses the n-th channel, in order to described site STA 81 is true with described preset rules When determining and scan described n-th channel, scan described access point AP82.Or described access point AP82 also includes that the 3rd judgement is single Unit, the 3rd judging unit, for judging whether the n-th channel determined according to described preset rules can be used, if available, then uses n-th Channel, in order to when site STA 81 determines with described preset rules and scans described n-th channel, scans described AP82.Wherein, Described n is more than 1, less than or equal to the integer of the number of channel in described WiFi network.STA81 determines the method for the n-th channel The method that can determine the n-th channel according to AP82 so that STA81 has specific aim to the scanning process of AP82, improves further Scan efficiency.
In the present embodiment, this access point AP82 can also include that second acquisition unit 25, second acquisition unit 25 are used for Obtain on-site national code information.Correspondingly, the described 3rd determine unit 21 specifically for according to described national code information and Described preset rules determines described 1st channel.Using national code information as determining factor referenced in the 1st channel procedure, AP82 selects the channel that can avoid selecting this country not use during channel, improves the accuracy that channel determines.
In the present embodiment, this access point AP82 can also include memory element 26.Described memory element 26 is used for storing Priority list, described priority list is corresponding with the SSID of described access point AP82, preserves K in described WiFi network individual The channel designator of channel and relative importance value corresponding to each channel designator;Described K is the number of channel in described WiFi network.Described 3rd determines that unit 21 is specifically for determining the channel designator that relative importance value is the highest from described priority list;This relative importance value is the highest Channel corresponding to channel designator be described 1st channel.
In the present embodiment, this access point AP82 can also include memory element 26.Described memory element 26 is used for storing Priority list, described priority list is corresponding with the SSID of described access point AP82, preserves K in described WiFi network individual The channel designator of channel and relative importance value corresponding to each channel designator;Described K is the number of channel in described WiFi network.Described 3rd determines described 1st letter that unit 21 is corresponding specifically for determining channel designator that in described priority list, relative importance value is the highest Road.Described 4th determines that unit, specifically in the case of the (n-1)th channel is disabled, determines in described priority list, removes Outside the channel designator that 1st channel to the (n-1)th channel is corresponding, the n-th channel that channel designator that relative importance value is the highest is corresponding.Wherein, Described n is more than 1, less than or equal to the integer of K.
In the present embodiment, the described 3rd determine unit 21 specifically for: will, the value of independent variable is described target access The value of function during the SSID of AP82, as the channel designator of described 1st channel;Described function is with SSID as independent variable.
In the present embodiment, described function is: S1=(hash(SSID)mod K)+1;Wherein, during K is described WiFi network Channel number;Described hash (SSID) refers to SSID is carried out Hash operation;Mod is modulo operator.
In the present embodiment, the described 3rd determine unit 21 specifically for: will, the value of independent variable is described target access The value of the 1st function during the SSID of AP82, as the channel designator of described 1st channel;Described 1st function is with SSID as independent variable. Described 4th determine unit 23 specifically for: in the case of the (n-1)th channel is disabled, will, the value of independent variable is described target The value of the n-th function during the SSID of access point AP82, as the channel designator of described n-th channel;Described n-th function is with SSID for certainly Variable.Described pre-defined rule particularly as follows: determine the channel number of the 1st channel to the n-th channel respectively according to the 1st function to the n-th function.
In the present embodiment, described 1st function is S1=(hash(SSID)mod K)+1;Described n-th function is Sn=(Sn-1+ a)mod K+1;Wherein, Sn-1Being the (n-1)th function, a is preset constant;Described hash (SSID) refers to SSID is carried out Hash fortune Calculate;Mod is modulo operator.
In the present embodiment, this access point AP82 can also include that scan process unit 27, scan process unit 27 are used for The scan request frame of the SSID carrying target AP82 that receiving station STA81 sends on described 1st channel, it is judged that described mesh The SSID of mark AP82 is the most identical with self SSID described, if identical, then send to described STA81 and scans response frame.
In the present embodiment, access point AP82 can also include radio unit 28, and radio unit 28 will be for having carried The beacon frame of the SSID stating self is broadcasted on described 1st channel, so that STA81 listens to described beacon frame.
Access point structures schematic diagram in another Wireless Fidelity WiFi network that Figure 12 provides for the embodiment of the present invention.As Shown in Figure 12, this access point AP82 includes memorizer 52, for the service set SSID phase of storage with described access point AP82 The preset rules closed;
Processor 51, the 1st channel that the preset rules for storing according to described memorizer determines in WiFi network, it is judged that Whether described 1st channel can be used, if described 1st channel can be used, then uses described 1st channel, in order to site STA 81 is with described pre- If rule determines and scans described 1 channel, scan described access point AP82.
In one embodiment of the invention, described judge the 1st channel whether can work can by processor 51, connect Receive device 53 and antenna 55 completes.Receptor 53 is monitored on described 1st channel by antenna 55, and processor 51 is according to monitoring To signal judge whether described 1st channel can be used.
In one embodiment of the invention, the described AP82 using the 1st channel is scanned process by STA81 can also be by Transmitter 54, receptor 53 and antenna 55 complete.Receptor 53 carries target AP82 by what antenna 55 received that STA81 sends The detecting information of SSID, it is judged that this SSID is the most identical with the SSID of self, if identical, then transmitter 54 is by 55, antenna Send response, show that described AP82 is described target AP82.
In one embodiment of the invention, described preset rules is used for determining that the 1st channel is to the n-th channel;Processor 51 If unavailable for judging the (n-1)th channel, then determine the n-th channel in described WiFi network according to described preset rules, it is judged that Whether described n-th channel can be used, if available, then uses the n-th channel, in order to described site STA 81 determines with described preset rules And when scanning described n-th channel, scan described access point AP82, or, processor 51 is for judging according to described default rule Whether the n-th channel then determined can be used, if available, then uses the n-th channel, in order to site STA 81 determines with described preset rules And when scanning described n-th channel, scan described AP82;Wherein, described n is more than 1, less than or equal to the integer of K;Described K For the number of channel in described WiFi network.
In one embodiment of the invention, receptor 53 receives, by antenna 55, the second beacon that arbitrary AP sends Frame, processor 51 is for extracting national code information from described second beacon frame, and according to described national code information and described pre- If rule determines described 1st channel.
In one embodiment of the invention, memorizer 52 is used for storing priority list, described priority list and institute The SSID stating access point AP82 is corresponding, preserves the channel designator of K channel in described WiFi network and each channel designator Corresponding relative importance value;Described K is the number of channel in described WiFi network.Processor 51 is specifically for from described priority list The middle channel designator determining that relative importance value is the highest, channel corresponding to channel designator that this relative importance value is the highest is described 1st channel.
In one embodiment of the invention, memorizer 52 is used for storing priority list, described priority list and institute The SSID stating access point AP82 is corresponding, preserves the channel designator of K channel in described WiFi network and each channel designator Corresponding relative importance value, described K is the number of channel in described WiFi network.Processor 51 is specifically for from described priority list Described 1st channel that the middle channel designator determining that relative importance value is the highest is corresponding, and in the case of the (n-1)th channel is disabled, root According to described priority list, from the channel designator in addition to the channel designator that the 1st channel to the (n-1)th channel is corresponding, determine excellent First spending the n-th channel that the highest channel designator is corresponding, wherein, described n is more than 1, believes less than or equal in described WiFi network The integer of the number in road.
In one embodiment of the invention, processor 51 is specifically for inciting somebody to action, and the value of independent variable is described target access The value of function during the SSID of AP82, as the channel designator of described 1st channel;Described function is with SSID as independent variable.
In one embodiment of the invention, processor 51 is specifically for inciting somebody to action, and the value of independent variable is described target access The value of the 1st function during the SSID of AP82, as the channel designator of described 1st channel;Described 1st function with SSID as independent variable, In the case of the (n-1)th channel is disabled, will, the n-th function when the value of independent variable is the SSID of described target access AP82 Value, as the channel designator of described n-th channel;Described n-th function is with SSID as independent variable;Described pre-defined rule is particularly as follows: root Determine the channel number of the 1st channel to the n-th channel respectively to the n-th function according to the 1st function.
The Wireless Fidelity WiFi network access system structural representation that Figure 13 provides for the embodiment of the present invention.Such as Figure 13 institute Showing, the Wireless Fidelity WiFi network access system that the present embodiment provides specifically includes the website that any embodiment of the present invention provides STA81, and the access point AP82 that any embodiment of the present invention provides.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be passed through The hardware that programmed instruction is relevant completes, and aforesaid program can be stored in a computer read/write memory medium, this program Upon execution, perform to include the step of said method embodiment;And aforesaid storage medium includes: ROM, RAM, magnetic disc or light The various medium that can store program code such as dish.
Last it is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although With reference to previous embodiment, the present invention is described in detail, it will be understood by those within the art that: it still may be used So that the technical scheme described in foregoing embodiments to be modified, or wherein portion of techniques feature is carried out equivalent; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (35)

1. the method scanning access point in a Wireless Fidelity WiFi network, it is characterised in that including:
Website determines in described WiFi network according to the preset rules relevant to service set SSID of target access AP 1st channel;
Described website is scanned on described 1st channel, in order to when described target AP determines with described preset rules and uses During described 1 channel, described station scans is to described target AP;
Wherein, described preset rules is used for determining that the 1st channel is to the n-th channel;
Described method also includes:
If scanning on the (n-1)th channel less than described target AP, then determine n-th in described WiFi network by described preset rules Channel;
Described n-th channel is scanned, in order to when described target AP determines with described preset rules and uses described n-th letter During road, scan described target AP;Or
Described method also includes:
If scanning on the (n-1)th channel less than described target AP, then carry out on the n-th channel determined according to described preset rules Scanning;When described target AP determines with described preset rules and uses described n-th channel, to scan described target AP;
Wherein, described n is more than 1, less than or equal to the integer of K;Described K is the number of channel in described WiFi network.
Method the most according to claim 1, it is characterised in that the service set of described basis and target access AP Before preset rules relevant for SSID determines the 1st channel in described WiFi network, also include:
Obtain on-site national code information;
Correspondingly, the preset rules that described basis is relevant to service set SSID of target access AP determines described WiFi net The 1st channel in network, including:
Described 1st channel is determined according to described national code information and described preset rules.
Method the most according to claim 1, it is characterised in that the service set of described basis and target access AP Preset rules relevant for SSID determine the 1st channel in described WiFi network particularly as follows:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Wherein, described priority list is corresponding with the SSID of described target AP, preserves K channel in described WiFi network Channel designator and relative importance value corresponding to each channel designator;Described K is the number of channel in described WiFi network.
Method the most according to claim 1, it is characterised in that described preset rules is:
According to relative importance value order from high to low, determine the channel number of the 1st channel to the n-th channel successively;
The preset rules that described basis is relevant to service set SSID of target access AP determines in described WiFi network 1st channel particularly as follows:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Described determine the n-th channel in described WiFi network by described preset rules particularly as follows:
Determine in described priority list, in addition to the sequence number that the 1st channel to the (n-1)th channel is corresponding, the channel sequence that relative importance value is the highest Number corresponding described n-th channel;
Wherein, described priority list is corresponding with the SSID of described access point, preserves K channel in described WiFi network Channel designator and relative importance value corresponding to each channel designator.
Method the most according to claim 1, it is characterised in that relevant the presetting of SSID of described and described target access Rule is:
The channel designator of described 1st channel is determined according to the function with SSID as independent variable;
The preset rules that described basis is relevant to service set SSID of target access AP determines in described WiFi network 1st channel particularly as follows:
Will, the value of described independent variable value of described function when being the SSID of described target access, as the letter of described 1st channel Road sequence number.
6. according to the method described in described claim 5, it is characterised in that the described function with SSID as independent variable is: S1= (hash(SSID)mod K)+1;
Wherein, the channel number during K is described WiFi network;Described hash (SSID) refers to SSID is carried out Hash operation;mod For modulo operator.
Method the most according to claim 1, it is characterised in that described preset rules is:
Determine the channel designator of the 1st channel to the n-th channel respectively to the n-th function according to the 1st function with SSID as independent variable;
The preset rules that described basis is relevant to service set SSID of target access AP determines in described WiFi network 1st channel particularly as follows:
Will, the value of the 1st function described in when the value of described independent variable is the SSID of described target access, as described 1st channel Channel designator;
Described determine the n-th channel in described WiFi network by described preset rules particularly as follows:
Will, the value of the n-th function described in when the value of described independent variable is the SSID of described target access, as described n-th channel Channel designator.
Method the most according to claim 7, it is characterised in that described 1st function is S1=(hash (SSID) mod K)+1; Described n-th function is Sn=(Sn-1+a)mod K+1;
Wherein, Sn-1Being the (n-1)th function, a is preset constant;Described hash (SSID) refers to SSID is carried out Hash operation;mod For modulo operator.
9. according to the arbitrary described method of claim 1-8, it is characterised in that described being scanned on described 1st channel has Body is:
Described 1st channel sends the scan request frame of the SSID carrying described target AP;
Described scan described target AP and refer to: receive the scanning response frame to described scan request frame.
10. according to the arbitrary described method of claim 1-8, it is characterised in that described being scanned on described 1st channel has Body is:
Described 1st channel is monitored;
Described scan described target AP and refer to: on described 1st channel, listen to comprise the beacon of the SSID of described target AP Frame.
The method that in 11. 1 kinds of Wireless Fidelity WiFi network, access point AP selects channel, it is characterised in that including:
The 1st channel in described WiFi network is determined according to the preset rules relevant to service set SSID of described AP;
Judge whether described 1st channel can be used, if described 1st channel can be used, then use described 1st channel, in order to website is with institute State preset rules when determining and scan described 1 channel, scan described AP;
Wherein, described preset rules is used for determining that the 1st channel is to the n-th channel;
Described method also includes:
If the (n-1)th channel is unavailable, the most described AP determines the n-th channel in described WiFi network according to described preset rules;
Judge whether described n-th channel can be used, if available, then use the n-th channel, in order to described website is true with described preset rules When determining and scan described n-th channel, scan described AP;Or
Described method also includes:
If the (n-1)th channel is unavailable, then judge whether the n-th channel determined according to described preset rules can be used, if available, then make Use the n-th channel, in order to when website determines with described preset rules and scans described n-th channel, scan described AP;
Wherein, described n is more than 1, less than or equal to the integer of K;Described K is the number of channel in described WiFi network.
12. methods according to claim 11, it is characterised in that the default rule that described basis is relevant to the SSID of described AP Before then determining the 1st channel in described WiFi network, also include:
Obtain on-site national code information;
Correspondingly, the preset rules that described basis is relevant to described SSID determines the 1st channel in described WiFi network, including:
Described 1st channel is determined according to described national code information and described preset rules.
13. according to the method described in claim 11 or 12, it is characterised in that the service set of described basis and described AP Preset rules relevant for SSID determines that the 1st channel in described WiFi network is:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Wherein, described priority list is corresponding with the SSID of described AP, preserves the channel of K channel in described WiFi network Sequence number and relative importance value corresponding to each channel designator;Described K is the number of channel in described WiFi network.
14. methods according to claim 11, it is characterised in that described preset rules is:
According to relative importance value order from high to low, determine the channel number of the 1st channel to the n-th channel successively;
The preset rules that described basis is relevant to service set SSID of described AP determines the 1st channel in described WiFi network For:
Channel corresponding for channel designator the highest for relative importance value in priority list is defined as described 1st channel;
Described AP determine the n-th channel in described WiFi network according to described preset rules particularly as follows:
Described AP determines in described priority list, and in addition to the sequence number that the 1st channel to the (n-1)th channel is corresponding, relative importance value is the highest Described n-th channel that channel designator is corresponding;
Wherein, described priority list is corresponding with the SSID of described access point, preserves K channel in described WiFi network Channel designator and relative importance value corresponding to each channel designator.
15. according to the method described in claim 11 or 12, it is characterised in that the default rule relevant for SSID of described and described AP It is then:
The channel designator of described 1st channel is determined according to the function with SSID as independent variable;
The preset rules that described basis is relevant to service set SSID of described AP determines the 1st channel in described WiFi network Particularly as follows:
Will, the value of described independent variable value of described function when being the SSID of target access, as the channel sequence of described 1st channel Number.
16. methods according to claim 15, it is characterised in that the described function with SSID as independent variable is: S1= (hash(SSID)mod K)+1;
Wherein, S1It it is the channel designator of the 1st channel;K is the channel number in described WiFi network;Described hash (SSID) refers to SSID is carried out Hash operation;Mod is modulo operator.
17. methods according to claim 11, it is characterised in that described preset rules is:
Determine the channel designator of the 1st channel to the n-th channel respectively to the n-th function according to the 1st function with SSID as independent variable;
The preset rules that described basis is relevant to service set SSID of described AP determines the 1st channel in described WiFi network Particularly as follows:
Will, the value of the 1st function described in when the value of described independent variable is the SSID of target access, as the letter of described 1st channel Road sequence number;
Described AP determine the n-th channel in described WiFi network according to described preset rules particularly as follows:
Will, the value of the n-th function described in when the value of described independent variable is the SSID of target access, as the letter of described n-th channel Road sequence number.
18. methods according to claim 17, it is characterised in that described 1st function is S1=(hash (SSID) mod K)+ 1;Described n-th function is Sn=(Sn-1+a)mod K+1;
Wherein, Sn-1Being the (n-1)th function, a is preset constant;Described hash (SSID) refers to SSID is carried out Hash operation;mod For modulo operator.
19. 1 kinds for scanning the website of access point in Wireless Fidelity WiFi network, it is characterised in that including:
First determines unit, described for determining according to the preset rules relevant to service set SSID of target access AP The 1st channel in WiFi network;
First scanning element, for being scanned, in order to when described target AP is true with described preset rules on described 1st channel When determining and use described 1 channel, scan described target AP;
Wherein, described preset rules is used for determining that the 1st channel is to the n-th channel;
Described website also includes:
Second determines unit, if for scanning on the (n-1)th channel less than described target AP, then determining institute by described preset rules State the n-th channel in WiFi network;
Second scanning element, for being scanned, in order to when described target AP is true with described preset rules on described n-th channel When determining and use described n-th channel, scan described target AP;Or
Described website also includes:
3rd scanning element, if for scanning less than described target AP, then true according to described preset rules on the (n-1)th channel It is scanned on the n-th fixed channel;So that when described target AP determines with described preset rules and uses described n-th channel, Scan described target AP;
Wherein, described n is more than 1, less than or equal to the integer of K;Described K is the number of channel in described WiFi network.
20. websites according to claim 19, it is characterised in that also include:
First acquiring unit, is used for obtaining on-site national code information;
Correspondingly, described first determines that unit is specifically for determining described according to described national code information and described preset rules 1 channel.
21. according to the website described in claim 19 or 20, it is characterised in that also include:
Memory element, is used for storing priority list, and described priority list is corresponding with the SSID of described target AP, preserves The channel designator of K channel and relative importance value corresponding to each channel designator in described WiFi network;Described K is described WiFi network The number of middle channel;
Described first determine unit specifically for determining the channel designator that relative importance value is the highest from described priority list, this is preferential Spending channel corresponding to the highest channel designator is described 1st channel.
22. websites according to claim 19, it is characterised in that also include:
Memory element, is used for storing priority list, and described priority list is corresponding with the SSID of described target AP, preserves The channel designator of K channel and relative importance value corresponding to each channel designator in described WiFi network;Described K is described WiFi network The number of middle channel;
Described first determine unit specifically for, from described priority list, determine that the channel designator that relative importance value is the highest is corresponding Described 1st channel;
Described second determine unit specifically for, in the case of the (n-1)th channel scans less than described target AP, according to described Priority list, from the channel designator in addition to the channel designator that the 1st channel to the (n-1)th channel is corresponding, determines that relative importance value is The n-th channel that high channel designator is corresponding;
Wherein, described n is more than 1, less than or equal to the integer of K.
23. according to the website described in claim 19 or 20, it is characterised in that the SSID of described and described target access is relevant Preset rules be:
The channel designator of described 1st channel is determined according to the function with SSID as independent variable;
Described first determine unit specifically for: will, the value of described independent variable is described letter when being the SSID of described target access The value of number, as the channel designator of described 1st channel.
24. websites according to claim 23, it is characterised in that: the described function with SSID as independent variable is: S1= (hash(SSID)mod K)+1;
Wherein, the channel number during K is described WiFi network;Described hash (SSID) refers to the described SSID to described target AP Carry out Hash operation;Mod is modulo operator.
25. websites according to claim 19, it is characterised in that described preset rules is: according to SSID as independent variable The 1st function determine the channel designator of the 1st channel to the n-th channel respectively to the n-th function;
Described first determine unit specifically for: will, described in when the value of described independent variable is the SSID of described target access the 1st The value of function, as the channel designator of described 1st channel;
In the case of described second determines that unit is specifically for scanning less than described target AP on the (n-1)th channel, will, described from The value of the n-th function described in when the value of variable is the SSID of described target access, as the channel designator of described n-th channel.
26. websites according to claim 25, it is characterised in that described 1st function is S1=(hash (SSID) mod K)+ 1;Described n-th function is Sn=(Sn-1+a)mod K+1;
Wherein, Sn-1Being the (n-1)th function, a is preset constant;Described hash (SSID) refers to SSID is carried out Hash operation;mod For modulo operator.
Access point in 27. 1 kinds of Wireless Fidelity WiFi network, it is characterised in that including:
3rd determines unit, described for determining according to the preset rules relevant to service set SSID of described access point The 1st channel in WiFi network;
First judging unit, is used for judging whether described 1st channel can be used, if described 1st channel can be used, then uses the described 1st Channel, in order to when website determines with described preset rules and scans described 1 channel, scans described access point;
Wherein, described preset rules is used for determining that the 1st channel is to the n-th channel;Described access point also includes:
4th determines unit, if unavailable for the (n-1)th channel, then determines in described WiFi network according to described preset rules N-th channel;
Second judging unit, is used for judging whether described n-th channel can be used, if available, then uses the n-th channel, in order to described station When point determines with described preset rules and scans described n-th channel, scan described access point;Or
Described access point also includes:
3rd judging unit, for judging whether the n-th channel determined according to described preset rules can be used, if available, then uses N-th channel, in order to when website determines with described preset rules and scans described n-th channel, scans described access point;
Wherein, described n is more than 1, less than or equal to the integer of K;Described K is the number of channel in described WiFi network.
28. access points according to claim 27, it is characterised in that also include:
Second acquisition unit, is used for obtaining on-site national code information;
Correspondingly, the described 3rd determines that unit is specifically for determining described according to described national code information and described preset rules 1 channel.
29. according to the access point described in claim 27 or 28, it is characterised in that also include:
Memory element, is used for storing priority list, and described priority list is corresponding with the SSID of described access point, preserves The channel designator of K channel and relative importance value corresponding to each channel designator in described WiFi network;Described K is described WiFi network The number of middle channel;
Described 3rd determine unit specifically for, from described priority list, determine the channel designator that relative importance value is the highest;This is excellent First spending channel corresponding to the highest channel designator is described 1st channel.
30. access points according to claim 27, it is characterised in that also include:
Memory element, is used for storing priority list, and described priority list is corresponding with the SSID of described access point, preserves The channel designator of K channel and relative importance value corresponding to each channel designator in described WiFi network;Described K is described WiFi network The number of middle channel;
Described 3rd determine unit specifically for, determine the institute that channel designator that in described priority list, relative importance value is the highest is corresponding State the 1st channel;
Described 4th determine unit specifically for, in the case of the (n-1)th channel is disabled, determine in described priority list, In addition to the channel designator that the 1st channel to the (n-1)th channel is corresponding, the n-th channel that channel designator that relative importance value is the highest is corresponding;
Wherein, described n is more than 1, less than or equal to the integer of K.
31. according to the access point described in claim 27 or 28, it is characterised in that: the described 3rd determine unit specifically for: will, The value of function when the value of independent variable is the SSID of target access, as the channel designator of described 1st channel;Described function with SSID is independent variable.
32. access points according to claim 31, it is characterised in that described function is: S1=(hash (SSID) mod K)+ 1;
Wherein, the channel number during K is described WiFi network;Described hash (SSID) refers to SSID is carried out Hash operation;mod For modulo operator.
33. access points according to claim 27, it is characterised in that:
Described 3rd determine unit specifically for: will, the value of the 1st function when the value of independent variable is the SSID of target access, make Channel designator for described 1st channel;Described 1st function is with SSID as independent variable;
Described 4th determine unit specifically for: in the case of the (n-1)th channel is disabled, will, the value of independent variable is that target connects The value of the n-th function during the SSID of access point, as the channel designator of described n-th channel;Described n-th function is with SSID as independent variable;
Described preset rules particularly as follows: determine the channel number of the 1st channel to the n-th channel respectively according to the 1st function to the n-th function.
34. access points according to claim 33, it is characterised in that:
Described 1st function is S1=(hash (SSID) mod K)+1;Described n-th function is Sn=(Sn-1+a)mod K+1;
Wherein, Sn-1Being the (n-1)th function, a is preset constant;Described hash (SSID) refers to SSID is carried out Hash operation;mod For modulo operator.
35. 1 kinds of Wireless Fidelity WiFi network access systems, it is characterised in that including:
Website as described in claim 19-26 is arbitrary, and the access point as described in claim 27-34 is arbitrary.
CN201210227514.1A 2012-07-03 2012-07-03 Wireless fidelity network scans access point, channel selecting method, equipment and system Active CN103533604B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210227514.1A CN103533604B (en) 2012-07-03 2012-07-03 Wireless fidelity network scans access point, channel selecting method, equipment and system
PCT/CN2013/078720 WO2014005515A1 (en) 2012-07-03 2013-07-03 Method, device and system for scanning for access points and performing channel selection in a wireless fidelity network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210227514.1A CN103533604B (en) 2012-07-03 2012-07-03 Wireless fidelity network scans access point, channel selecting method, equipment and system

Publications (2)

Publication Number Publication Date
CN103533604A CN103533604A (en) 2014-01-22
CN103533604B true CN103533604B (en) 2016-12-28

Family

ID=49881341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210227514.1A Active CN103533604B (en) 2012-07-03 2012-07-03 Wireless fidelity network scans access point, channel selecting method, equipment and system

Country Status (2)

Country Link
CN (1) CN103533604B (en)
WO (1) WO2014005515A1 (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104412664B (en) * 2014-05-05 2019-10-18 华为终端有限公司 Wi-Fi network connection method, Wi-Fi controller and Wi-Fi equipment
CN105101341A (en) * 2014-05-09 2015-11-25 联想移动通信软件(武汉)有限公司 Terminal wireless connection method, apparatus and terminal
CN104125624B (en) * 2014-06-16 2019-04-23 联想(北京)有限公司 A kind of information processing method and electronic equipment
KR102275025B1 (en) * 2014-11-21 2021-07-08 삼성전자주식회사 Method for providing wireless lan service and electronic device thereof
CN105228264B (en) * 2015-07-01 2018-09-14 利尔达科技集团股份有限公司 A kind of quick WI-FI network matching method suitable for Internet of Things
CN105246131A (en) * 2015-09-29 2016-01-13 东软集团股份有限公司 Method and device for connecting terminal with AP (Wireless Access Point)
CN105407499B (en) * 2015-10-26 2019-01-15 珠海格力电器股份有限公司 Information processing method and device and electronic equipment
CN105472006A (en) * 2015-12-10 2016-04-06 小米科技有限责任公司 File transfer method, device and system
CN106162829A (en) * 2016-09-19 2016-11-23 青岛海信电器股份有限公司 WIFI method of attachment and device
CN107067787A (en) * 2017-02-16 2017-08-18 乐高乐佳(北京)信息技术有限公司 Public transport reporting station method and device
CN106710284B (en) * 2017-02-16 2020-06-05 乐高乐佳(北京)信息技术有限公司 Method and device for public transport means stop reporting reminding
CN106982459B (en) * 2017-03-14 2019-09-20 Oppo广东移动通信有限公司 Network scanning method and terminal device
CN107493586B (en) * 2017-09-07 2020-09-11 深圳市兆驰数码科技股份有限公司 Channel self-adaptive modification and disconnection reconnection method in router WISP mode
CN107466083A (en) * 2017-09-11 2017-12-12 上海斐讯数据通信技术有限公司 A kind of wireless router and its channel selecting method and system
CN109729567B (en) * 2017-10-27 2020-10-27 华为技术有限公司 Message processing method, access point equipment and message processing equipment
CN107995672B (en) * 2017-12-13 2021-06-29 乐鑫信息科技(上海)股份有限公司 Method and system for selecting optimal access point by Wi-Fi
CN111698742B (en) * 2020-06-08 2023-03-21 锐捷网络股份有限公司 Data communication method, terminal device, electronic device, and computer storage medium
CN113923755A (en) * 2020-07-09 2022-01-11 阿里巴巴集团控股有限公司 Method and device for scanning and connecting hidden router and electronic equipment
CN113438711B (en) * 2021-05-21 2024-04-12 珠海全志科技股份有限公司 Wi-Fi connection control method and device
CN113613310B (en) * 2021-07-02 2023-10-13 深圳Tcl新技术有限公司 WIFI connection method and device, storage medium and mobile terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390344A (en) * 2006-04-07 2009-03-18 高通股份有限公司 Method and apparatus for operating in a wireless local area network based on information from a wireless wide area network
CN101483894A (en) * 2009-01-06 2009-07-15 北京交通大学 Fast switching method for WLAN

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7583643B2 (en) * 2003-09-30 2009-09-01 Motorola, Inc. Enhanced passive scanning
EP2184892B1 (en) * 2007-07-31 2016-12-21 Lenovo Innovations Limited (Hong Kong) Wireless lan terminal and access point searching method
CN101388841B (en) * 2008-10-30 2011-04-13 杭州华三通信技术有限公司 Probing response frame sending method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390344A (en) * 2006-04-07 2009-03-18 高通股份有限公司 Method and apparatus for operating in a wireless local area network based on information from a wireless wide area network
CN101483894A (en) * 2009-01-06 2009-07-15 北京交通大学 Fast switching method for WLAN

Also Published As

Publication number Publication date
WO2014005515A1 (en) 2014-01-09
CN103533604A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
CN103533604B (en) Wireless fidelity network scans access point, channel selecting method, equipment and system
CN104704885B (en) Scan method and device in Wireless LAN
JP6538865B2 (en) Method and apparatus for cell selection and reselection
CN111316675A (en) Method and terminal equipment for selecting resources in D2D communication
JP2021184623A (en) Beam measurement method, terminal and network device
US9572190B2 (en) Device and method for associating with WiFi networks
JP6843895B2 (en) Communication method and communication device
US20130033995A1 (en) Channel scanning in a network having one or more access points
US20110264780A1 (en) Access network discovery
CN111052789B (en) Method and apparatus for tuning to an available channel in a narrowband wireless network
CN110932828B (en) Message receiving method, message sending method, terminal equipment and network side equipment
ES2878195T3 (en) Wave beam selection method, apparatus and system
CN109691173B (en) Communication method, terminal equipment and network equipment
JP2018503307A (en) Improved access network query protocol (ANQP) signaling for scaling to support multiple service providers at an access point (AP)
CN109286988A (en) Transmission method, equipment and computer readable storage medium under unauthorized frequency range
CN105100129A (en) Data transmission method, device and system
CN110168992A (en) Method and apparatus for signaling and determining reference signal offset
CN105453615A (en) Wireless terminal, search process method for wireless terminal, and wireless communication system
CN104426626A (en) Terminal device and management frame sending method and receiving method
CN103052142B (en) Network selecting method, mobile terminal and base station
US20160088477A1 (en) Coordinator and device in a radio communication network
US11368934B2 (en) System and method to improve verification of 5G status
CN105992208A (en) Wireless connection authentication method and wireless connection authentication device
CN108540305A (en) Pre-Association Service Discovery
CN104105160B (en) Method for discovering equipment, base station and user equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20171101

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee after: HUAWEI terminal (Dongguan) Co., Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Patentee before: Huawei Device Co., Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: Huawei Device Co., Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: HUAWEI terminal (Dongguan) Co., Ltd.

CP01 Change in the name or title of a patent holder