WO2014005515A1 - 无线保真网络中扫描接入点、信道选择方法、设备及系统 - Google Patents

无线保真网络中扫描接入点、信道选择方法、设备及系统 Download PDF

Info

Publication number
WO2014005515A1
WO2014005515A1 PCT/CN2013/078720 CN2013078720W WO2014005515A1 WO 2014005515 A1 WO2014005515 A1 WO 2014005515A1 CN 2013078720 W CN2013078720 W CN 2013078720W WO 2014005515 A1 WO2014005515 A1 WO 2014005515A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
ssid
wifi network
nth
target
Prior art date
Application number
PCT/CN2013/078720
Other languages
English (en)
French (fr)
Inventor
陈济
关鑫
丁志明
方平
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2014005515A1 publication Critical patent/WO2014005515A1/zh

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

Definitions

  • the present invention relates to communications technologies, and in particular, to a scanning access point, a channel selection method, a device, and a system in a wireless fidelity network. Background technique
  • WiFi Wireless Fidelity
  • Wired Fidelity since the release of the IEEE 802.il wireless LAN standard in 1997, has been rapidly deployed, used, and transmitted with the support of a number of industry-leading WiFi alliances.
  • WiFi technology is widely used in various industries, WiFi network access points (Access Point, tube Called AP) is located in hotels, cafes, schools and hospitals. It can be said that WiFi is ubiquitous in life.
  • an access point provides access services to multiple stations (Stations, called STAs).
  • STAs stations
  • the STA Before using the service provided by the AP, the STA must first discover the existence of the AP.
  • Each frequency band is further divided into several channels, such as channel 1, channel 2, channel 3, channel 4, channel 5, and channel 6.
  • the communication between the STA and the AP is performed on one of the channels.
  • an STA when an STA discovers an AP, it usually scans sequentially from channel 1 or randomly selects a channel until the target AP is found, and the scanning efficiency is not high.
  • SUMMARY Embodiments of the present invention provide a scanning access point, a channel selection method, and a device in a wireless fidelity network. And systems to improve scanning efficiency.
  • an embodiment of the present invention provides a method for scanning an access point in a wireless fidelity WiFi network, including:
  • the station scans on the first channel, so that when the target AP determines and uses the first channel by the preset rule, the station scans to the target AP.
  • the preset rule is used to determine a first channel to an nth channel; the method further includes:
  • the method further includes:
  • scanning is performed on the nth channel determined according to the preset rule; so that when the target AP determines and uses the preset rule, In the nth channel, scanning to the target AP;
  • n is an integer greater than 1 and less than or equal to K; and K is a number of channels in the WiFi network.
  • the determining, according to a preset rule related to a service set identifier SSID of the target access point AP, determining the WiFi Before the first channel in the network it also includes:
  • determining, according to a preset rule related to the service set identifier SSID of the target access point AP, the first channel in the WiFi network including:
  • the first channel is determined according to the country code information and the preset rule.
  • the first channel in the network is specifically:
  • the priority list corresponds to the SSID of the target AP, and the channel number of the K channels in the WiFi network and the priority corresponding to each channel number are stored; the K is the channel in the WiFi network. The number.
  • the preset rule is:
  • the 1 channel is specifically:
  • the priority list corresponds to the SSID of the access point, and the channel number of the K channels in the WiFi network and the priority corresponding to each channel number are stored.
  • the preset rule related to the SSID of the target access point is:
  • the value of the function when the value of the argument is the SSID of the target access point is used as the channel number of the first channel.
  • is the number of channels in the WiFi network; the hash (SSID) refers to hashing the SSID; mod is a modulo operator.
  • the preset rule is:
  • the channel numbers of the first channel to the nth channel are respectively determined according to the first function to the nth function with the SSID as an argument;
  • the first channel in the WiFi network is specifically:
  • S n4 is the n- 1th function
  • a is a preset constant
  • the hash (SSID) refers to hashing the SSID
  • mod is the modulo operator
  • the scanning request frame carrying the SSID of the target AP is sent on the first channel;
  • Scanning to the target AP means: receiving a scan response frame for the scan request frame.
  • the scanning on the first channel is specifically:
  • the scanning to the target AP means: listening to a beacon frame including the SSID of the target AP on the first channel.
  • a method for selecting an access point AP in a wireless fidelity WiFi network includes:
  • the preset rule is used to determine the first channel to the nth channel; the method further includes:
  • the AP determines the nth channel in the WiFi network according to the preset rule
  • the method further includes:
  • n-1th channel is unavailable, determining whether the nth channel determined according to the preset rule is available, and if available, using the nth channel, so that the station determines and scans the nth channel by using the preset rule. Scanning to the AP;
  • n is an integer greater than 1 and less than or equal to K; and K is a number of channels in the WiFi network.
  • the determining by using a preset rule related to an SSID of the AP, determining a first channel in the WiFi network Previously, it also included:
  • the determining, according to the preset rule related to the SSID, the first channel in the WiFi network including:
  • the first channel is determined according to the country code information and the preset rule.
  • the first channel is:
  • the channel numbers of the first channel to the nth channel are sequentially determined according to the order of priority from high to low;
  • the priority list corresponds to an SSID of the access point, and the WiFi is saved.
  • the preset rule related to the SSID of the UI is:
  • the value of the function when the value of the argument is the SSID of the target access point is used as the channel number of the first channel.
  • Si is the channel number of the first channel
  • K is the number of channels in the WiFi network
  • the hash (SSID) refers to hashing the SSID
  • mod is a modulo operator.
  • the preset rule is:
  • the channel numbers of the first channel to the nth channel are respectively determined according to the first function to the nth function with the SSID as an argument;
  • the AP Determining, by the AP, the nth channel in the WiFi network according to the preset rule, where: the value of the argument is the value of the nth function when the SSID of the target access point is The channel number of the nth channel.
  • S n4 is the n- 1th function
  • a is a preset constant
  • the hash (SSID) refers to hashing the SSID
  • mod is the modulo operator
  • an embodiment of the present invention provides a station for scanning an access point in a wireless fidelity WiFi network, including: a first determining unit, configured to determine, according to a preset rule related to a service set identifier SSID of the target access point AP, a first channel in the WiFi network;
  • a first scanning unit configured to scan on the first channel, so that when the target AP determines and uses the first channel by using the preset rule, scanning to the target AP.
  • the preset rule is used to determine a first channel to an nth channel; the site further includes:
  • a second determining unit configured to determine, according to the preset rule, an nth channel in the WiFi network if the target AP is not scanned on the n-1th channel;
  • a second scanning unit configured to scan on the nth channel, to scan the target AP when the target AP determines and uses the nth channel by using the preset rule;
  • the site also includes:
  • a third scanning unit configured to perform scanning on the nth channel determined according to the preset rule, if the target AP is not scanned on the n-1th channel, so that when the target AP is in the pre When the rule determines and uses the nth channel, scanning to the target AP;
  • n is an integer greater than 1 and less than or equal to K; and K is a number of channels in the WiFi network.
  • the site further includes:
  • a first obtaining unit configured to acquire country code information of a location
  • the first determining unit is specifically configured to determine the first channel according to the country code information and the preset rule.
  • the site further includes:
  • a storage unit configured to store a priority list, where the priority list corresponds to an SSID of the target AP, and saves a channel number of the K channels in the WiFi network and a priority corresponding to each channel number; K is the number of channels in the WiFi network;
  • the first determining unit is specifically configured to determine, from the priority list, a channel number with the highest priority, and the channel corresponding to the channel number with the highest priority is the first channel.
  • the site further includes: a storage unit, configured to store a priority list, where the priority list corresponds to an SSID of the target AP, and saves a channel number of the K channels in the WiFi network and a priority corresponding to each channel number; K is the number of channels in the WiFi network;
  • the first determining unit is specifically configured to determine, according to the priority list, the first channel corresponding to the channel number with the highest priority
  • the second determining unit is specifically configured to: when the target AP is not scanned on the n-1th channel, according to the priority list, the channel sequence corresponding to the channel from the first channel to the n-1th channel In the channel number other than the channel number, the nth channel corresponding to the channel number with the highest priority is determined;
  • n is an integer greater than 1 and less than or equal to K.
  • the preset rule related to the SSID of the target access point is:
  • the first determining unit is specifically configured to: when the value of the argument is the SSID of the target access point, the value of the function is used as a channel number of the first channel.
  • is the number of channels in the WiFi network; the hash (SSID) refers to hashing the SSID of the target AP; mod is a modulo operator.
  • the preset rule is: determining, according to the first function to the nth function, where the SSID is an argument, respectively, the first channel to the first Channel number of the n channel;
  • the first determining unit is specifically configured to: when the value of the argument is an SSID of the target access point, a value of the first function, as a channel number of the first channel;
  • the second determining unit is specifically configured to: when the target AP is not scanned on the n-1th channel, the value of the argument is the nth function when the SSID of the target access point is The value is the channel number of the nth channel.
  • S n4 is the n- 1th function
  • a is a preset constant
  • the hash (SSID) refers to the SSID Row hashing
  • mod is the modulo operator
  • the embodiment of the present invention provides an access point in a wireless fidelity WiFi network, including: a third determining unit, configured to determine, according to a preset rule related to a service set identifier SSID of the access point Said the first channel in the WiFi network;
  • a first determining unit configured to determine whether the first channel is available, and if the first channel is available, use the first channel, so that when the station determines and scans the first channel by using the preset rule, Scan to the access point.
  • the preset rule is used to determine a first channel to an nth channel; and the access point further includes:
  • a fourth determining unit configured to determine, according to the preset rule, that the n-1th channel is unavailable
  • a second determining unit configured to determine whether the nth channel is available, and if available, using an nth channel, so that when the station determines and scans the nth channel by using the preset rule, scanning to the Entry point;
  • the access point further includes:
  • a third determining unit configured to determine whether an nth channel determined according to the preset rule is available, and if available, use an nth channel, so that when the station determines and scans the nth channel by using the preset rule, scanning To the AP;
  • n is an integer greater than 1 and less than or equal to K; and K is a number of channels in the WiFi network.
  • the access point further includes:
  • a second obtaining unit configured to acquire country code information of the location
  • the third determining unit is specifically configured to determine the first channel according to the country code information and the preset rule.
  • the access point further includes:
  • a storage unit configured to store a priority list, where the priority list corresponds to an SSID of the access point, and stores a channel number of the K channels in the WiFi network and a priority corresponding to each channel number; Said K is the number of channels in the WiFi network;
  • the third determining unit is specifically configured to determine, from the priority list, a channel number with the highest priority; and the channel corresponding to the channel number with the highest priority is the first channel.
  • the access point further includes:
  • a storage unit configured to store a priority list, where the priority list corresponds to an SSID of the access point, and stores a channel number of the K channels in the WiFi network and a priority corresponding to each channel number; Said K is the number of channels in the WiFi network;
  • the third determining unit is specifically configured to determine the first channel corresponding to the channel number with the highest priority among the priority lists;
  • the fourth determining unit is specifically configured to: when the n-1th channel is unavailable, determine that the priority list has the highest priority except for the channel numbers corresponding to the first channel to the n-1th channel. The nth channel corresponding to the channel number;
  • n is an integer greater than 1 and less than or equal to K.
  • the third determining unit is specifically configured to:
  • the value of the SSID time function is used as the channel number of the first channel; the function takes the SSID as an argument.
  • is the number of channels in the WiFi network; the hash (SSID) refers to hashing the SSID; mod is a modulo operator.
  • the third determining unit is specifically configured to: when the value of the argument is the SSID of the target access point, a value of a function, as a channel number of the first channel; the first function takes an SSID as an argument; and the fourth determining unit is specifically configured to: when the n-1th channel is unavailable, The value of the argument is the value of the nth function when the SSID of the target access point is the channel number of the nth channel; the nth function takes the SSID as an independent variable;
  • the predetermined rule is specifically: determining channel numbers of the first channel to the nth channel according to the first function to the nth function, respectively.
  • S n4 is the n- 1th function
  • a is a preset constant
  • the hash (SSID) refers to hashing the SSID
  • mod is a modulo operator
  • an embodiment of the present invention provides a wireless fidelity WiFi network access system, including: a site provided by an embodiment of the present invention, and an access point provided by an embodiment of the present invention.
  • the scanning access point, the channel selection method, the device, and the system in the wireless fidelity network provided by the embodiment of the present invention, the STA determines the WiFi according to a preset rule related to the service set identifier SSID of the target access point AP.
  • the first channel in the network scans on the first channel to scan the target AP when the target AP having the SSID determines and uses the first channel by a preset rule.
  • the target AP Since the STA determines the first channel according to a preset rule related to the SSID of the target AP, the target AP also determines the first channel according to the SSID through the same preset rule when selecting the channel, when the target AP uses the first channel, The STA can quickly scan to the target AP during channel scanning, and the scanning process is targeted, which greatly improves the scanning efficiency.
  • BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below, and obviously, the following description will be described.
  • the drawings in the drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
  • FIG. 1 is a flowchart of a method for scanning an access point in a wireless fidelity WiFi network according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for scanning an access point in another wireless fidelity WiFi network according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for scanning an access point in another wireless fidelity WiFi network according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for selecting an AP by an access point AP in a wireless fidelity WiFi network according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for selecting an AP by an access point AP in another wireless fidelity WiFi network according to an embodiment of the present disclosure
  • FIG. 6 is an AP selection of an access point in a wireless fidelity WiFi network according to an embodiment of the present invention. Flow chart of the method of the channel;
  • FIG. 7 is a schematic structural diagram of a site for scanning an access point in a wireless fidelity WiFi network according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of another station for scanning an access point in a wireless fidelity WiFi network according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of another station for scanning an access point in a wireless fidelity WiFi network according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of an access point in a wireless fidelity WiFi network according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic diagram of an access point structure in another wireless fidelity WiFi network according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram showing the structure of an access point in another wireless fidelity WiFi network according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a wireless fidelity WiFi network access system according to an embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention.
  • the embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • FIG. 1 is a flowchart of a method for scanning an access point in a wireless fidelity WiFi network according to an embodiment of the present invention.
  • the method for scanning an access point provided in this embodiment may be specifically applied to a scanning process of a site STA to an access point AP in a WiFi network.
  • the method for scanning an access point in the wireless fidelity WiFi network provided by this embodiment can be performed by the STA.
  • the method for scanning an access point in the wireless fidelity WiFi network includes: Step A10: The station determines, according to a preset rule related to the service set identifier SSID of the target access point AP, the first in the WiFi network. channel;
  • Step A20 The station scans on the first channel, so that when the target AP determines and uses the first channel by using the preset rule, the station scans to the target AP.
  • the WiFi network may be divided into multiple WiFi sub-networks, and each WiFi sub-network has an SSID (Service Set Identifier).
  • the WiFi sub-network set by itself may be named Home, and the WiFi sub-set set by the operator.
  • the network can be named ChinaNet, Home and ChinaNet is the SSID of the WiFi subnet.
  • One or more APs may be set in each WiFi sub-network, and the SSID of the APs belonging to the same WiFi sub-network is the same as the SSID of the WiFi sub-network.
  • the STA may be a terminal provided with a WiFi module, and the terminal may be a mobile phone, a tablet computer, a notebook computer, or a personal computer.
  • the STA searches for the WiFi sub-network through the SSID of the WiFi sub-network. In the process of searching for the WiFi sub-network, the STA needs to scan the AP of the WiFi sub-network, and the AP is the target AP.
  • Each frequency band is further divided into a number of channels according to the uniform rules of the International Standards Organization, each channel having a channel number to identify the channel.
  • the preset rule related to the SSID may specifically be a mapping relationship between the SSID and the first channel, and the first channel corresponding to the different SSID may be different, that is, the first channel may be determined by using the SSID.
  • the preset rule may also be a correspondence between the SSID and the priority list.
  • the priority list includes a channel number of the K channels in the WiFi network and a priority corresponding to each channel number, and the priority list may be determined according to the SSID, and The first channel is determined based on the priority, and for example, the channel having the highest priority is determined as the first channel.
  • the preset rule may also be a preset algorithm, by which the SSID may be converted into a channel number, and the channel corresponding to the channel number obtained by the conversion is the first channel.
  • the AP determines the first channel according to a preset rule related to its own SSID, which is the same as the manner in which the STA determines the first channel. The AP determines whether the first channel is available, and if so, uses the first channel. When the AP uses the first channel, the STA scans the first channel and scans the AP. After scanning the target AP on the first channel, the STA can establish a connection with the target AP.
  • the STA determines the first channel in the WiFi network according to a preset rule related to the service set identifier SSID of the target access point AP, on the first channel Scanning is performed so that when the target AP having the SSID determines and uses the first channel with a preset rule, the target AP is scanned.
  • the target AP Since the STA determines the first channel according to a preset rule related to the SSID of the target AP, the target AP also determines the first channel according to the SSID through the same preset rule when selecting the channel, when the target AP uses the first channel, STA can be in the first channel sweep Scanning to the target AP during scanning, the scanning process is targeted and greatly improves scanning efficiency.
  • FIG. 2 is a flowchart of a method for scanning an access point in another wireless fidelity WiFi network according to an embodiment of the present invention.
  • the preset rule is used to determine a first channel to an nth channel;
  • the method further includes:
  • Step A30 If the target AP is not scanned on the n-1th channel, determine the nth channel in the WiFi network according to the preset rule.
  • Step A40 Perform scanning on the nth channel, so that when the target AP determines and uses the nth channel by using the preset rule, scanning to the target AP; or
  • the method further includes:
  • scanning is performed on the nth channel determined according to the preset rule; so that when the target AP determines and uses the preset rule, In the nth channel, scanning to the target AP;
  • n is an integer greater than 1 and less than or equal to K; and K is a number of channels in the WiFi network.
  • the nth channel is determined according to a preset rule.
  • the AP judges that the n-1th channel is unavailable, it also determines the nth channel according to a preset rule related to its own SSID.
  • the STA may determine that the implementation manner of the nth channel is different according to the preset rule related to the SSID of the target AP, and may directly convert the SSID of the target AP to the channel number of the nth channel by using a preset rule when needed.
  • the nth channel can be determined according to the priority of each channel in the priority list. For example, you can choose from high to low priorities.
  • the priority list can be preset, and the correspondence between the priority list and the SSID is stored.
  • the mapping between the priority list and the SSID may be stored locally in the STA or may be stored in the network server, and the STA may obtain the priority list corresponding to the SSID by using the SSID.
  • the priority list may also be generated in advance according to a preset algorithm, and the SSID may be used as a parameter of the preset algorithm, and the priority list generated according to different SSIDs is also different. Save the priority list, So get it instantly through the SSID when needed.
  • the priority list may include a channel number of a channel having a priority of 1, and the channel having a priority of 1 is a first channel, and the method of determining the first channel is the same as that of the above embodiment.
  • the channel number of the channel having the priority of 1 may not be included in the list, that is, the channel starting from the priority of 2 and having the priority of 2 is the second channel.
  • the STA After the STA determines the nth channel, scanning is performed on the channel, and if the target AP is scanned, the connection with the target AP is established. In the actual application process, if the target AP is not scanned after scanning on all the channels in the network, the user may be fed back the indication information that the target AP scan fails.
  • the STA may also stop the process of determining and scanning the nth channel when the target AP is not scanned after a preset number of channel scans according to the setting.
  • the AP determines that the n-1th channel is unavailable, and the AP according to the priority list corresponding to the own SSID. To determine the nth channel. The AP may select the priority according to the priority in the priority list. If the priority of the second channel with the channel number 10 is the highest, the AP determines whether the channel with the channel number 10 is available. If available, select and The channel is used, if not available, it is determined whether the channel with the lower priority level is available, and so on, until the available channel is determined.
  • the nth channel is first selected according to the priority in the priority list corresponding to the SSID of the AP, and the priority of the second channel with the channel number 10 is the highest.
  • the J STA scans on the channel with channel number 10. If the AP is scanned, the connection is established with the AP. If the AP is not scanned, the channel will be scanned on the channel with lower priority, and so on. Until the AP is scanned.
  • the AP may also display the priority list to the user who has the right to configure the AP, so that the user can select the channel of the AP according to the priority list.
  • the method for determining the nth channel by the STA is the same as the method for the AP to determine the nth channel, so that the STA is targeted to the scanning process of the AP, and the scanning efficiency is further improved.
  • step A10 the service set identifier according to the target access point AP
  • the SSID-related preset rule may further include: Step A50: Obtaining country code information of the location;
  • the determining, according to the preset rule related to the service set identifier SSID of the target access point AP, the first channel in the WiFi network may include:
  • each country may use different channels, for example, the number of channels is 14 and the channel number is 1-14. Some countries may use channels with channel numbers 1-13, and some countries may use channels. The channel numbered 1-11. For the same SSID, the first channel determined for different countries may be different. The country code information is used as a reference factor in determining the first channel. When the STA selects a channel for scanning, the channel that is not used by the country can be avoided, the accuracy of the channel determination is improved, and the scanning efficiency is further improved.
  • step A10 determining, according to a preset rule related to the service set identifier SSID of the target access point AP, determining that the first channel in the WiFi network is:
  • the channel number and the priority corresponding to each channel number; the K is the number of channels in the WiFi network.
  • the preset rule is:
  • Step A10 Determining the channel numbers of the first channel to the Kth channel in order of priority from high to low; Step A10, determining, according to a preset rule related to the service set identifier SSID of the target access point AP, the WiFi network
  • the first channel in the specific channel is:
  • the channel number and the priority corresponding to each channel number; the K is the number of channels in the WiFi network.
  • the mapping relationship between the channel number and the channel number can be preset so that the channel number can be mapped to one channel.
  • channel number 6 can be directly mapped to a channel with channel number 6.
  • the preset rule is:
  • Step A10 Determining the channel numbers of the first channel to the nth channel in order of priority from high to low; Step A10, determining, according to a preset rule related to the service set identifier SSID of the target access point AP, the WiFi network
  • the first channel in the specific channel is:
  • Step A30 Determining a channel corresponding to the channel number with the highest priority in the priority list as the first channel; Step A30, determining, according to the preset rule, the nth channel in the WiFi network is: determining the priority In the level list, the nth channel corresponding to the channel number with the highest priority, except for the sequence numbers corresponding to the first channel to the n-1th channel;
  • the priority list corresponds to the SSID of the access point, and the channel number of the K channels in the WiFi network and the priority corresponding to each channel number are stored.
  • the preset rule related to the SSID of the target access point is: determining a channel sequence number of the first channel according to a function that uses an SSID as an argument;
  • Step A10 The determining, according to a preset rule related to the service set identifier SSID of the target access point AP, determining that the first channel in the WiFi network is:
  • the value of the function when the value of the argument is the SSID of the target access point is used as the channel number of the first channel.
  • the function with the SSID as an argument can be:
  • a is a preset constant, and the range of a varies depending on K.
  • the hash hash operation can map a binary value of arbitrary length to a smaller binary value of a fixed length, which is called a hash value.
  • MD5 Message-Digest Algorithm 5
  • a string of arbitrary length can be transformed into a string of hexadecimal digits of a certain length.
  • the length of the hexadecimal digit string is a 128-bit hexadecimal digit string.
  • the SSID can be converted to a 128-bit hexadecimal digit string by MD5 operation.
  • Mod is specifically a modulo operation.
  • K is the number of channels used by the STA location.
  • the SSID can be converted into a 128-bit hexadecimal digit string by MD5 operation.
  • the 128-bit hexadecimal digit string can be used for the above formula calculation, or part of the digits can be selected. Calculation, for example, select the last 64 bits, or the last 32 bits, or the middle 64 bits, or the middle 32 bits.
  • other hash operations can also be implemented.
  • the present embodiment provides a method for calculating the channel number of the first channel to the Kth channel, but can be implemented by other algorithms by those skilled in the art, and the present invention is not limited thereto.
  • the preset rule is:
  • the channel numbers of the first channel to the nth channel are respectively determined according to the first function to the nth function with the SSID as an argument;
  • Step A10 The determining, according to a preset rule related to the service set identifier SSID of the target access point AP, determining that the first channel in the WiFi network is:
  • Step A30 the determining, according to the preset rule, that the nth channel in the WiFi network is::, the value of the argument is the value of the nth function when the SSID of the target access point is As the channel number of the nth channel.
  • S n4 is the n- 1th function
  • a is a preset constant
  • the hash (SSID) refers to hashing the SSID
  • mod is the modulo operator
  • the hash operation is MD5, SHA (Secure Hash Algorithm) 1, SHA128 or SHA256 operation.
  • the scanning on the first channel is specifically: sending, on the first channel, a scan request frame carrying an SSID of the target AP;
  • the target AP means: A scan response frame for the scan request frame is received.
  • the STA may perform the scanning of the AP in multiple manners. In an implementation manner, the STA may actively send a probe request frame on the first channel, where the scan request frame carries the target ⁇ SSID.
  • the AP using the first channel receives the scan request frame, it determines whether the SSID in the scan request frame is the same as its own SSID, and if it is the same, returns a probe response frame.
  • the STA When the STA receives the scan response frame, it indicates that the target AP is scanned, and a connection can be established with the AP. If the STA does not receive the scan response frame, it indicates that the STA is used. The AP of the first channel is not the target AP.
  • step A20 the scanning on the first channel is specifically: monitoring the first channel;
  • the scanning to the target AP means: listening to a beacon frame including the SSID of the target AP on the first channel.
  • the STA monitors the first channel, and the AP that uses the first channel periodically broadcasts the first beacon frame, where the first beacon frame carries the first beacon frame.
  • the SS ID of the AP when the STA listens to the first beacon frame sent by the AP using the first channel, the STA extracts the SSID in the first beacon frame, and determines whether the SSID is the SSID of the target AP, and if yes, the The AP is the target AP. If not, the AP is not the target AP.
  • the channel has a certain frequency range
  • the process of the STA listening to the first channel may be a process of receiving the signal in the frequency range.
  • the process of scanning the STA on the nth channel can also refer to the foregoing two modes, and details are not described herein again.
  • the obtaining the country code information of the local location includes: receiving a second beacon frame sent by any AP, and extracting the country code information from the second beacon frame.
  • the beacon frame may also carry country code information, and the STA may listen to any AP in the location to obtain the country code information.
  • the country code information can be obtained by receiving broadcast information sent by the base station in the cellular network.
  • the GPS (Global Positioning System) module is set in the STA, the geographic location information can be obtained through the GPS module, and the country is determined according to the geographical location information to obtain the national code information.
  • the user can also manually input the current location information so that the STA obtains the country code information based on the input location information.
  • FIG. 3 is a flowchart of a method for scanning an access point in another wireless fidelity WiFi network according to an embodiment of the present invention.
  • the process of scanning a target AP by a STA in a WiFi network will be described in detail in conjunction with FIG. 3.
  • the STA first obtains the country code information of the location, and determines the i-th channel according to the country information and a preset rule related to the SSID of the target AP, where i is from 1 to ⁇ , and K is the number of channels in the WiFi network.
  • the STA scans on the i-th channel, and if the target AP is scanned, establishes a connection with the target AP.
  • the scanning process is ended.
  • FIG. 4 is a flowchart of a method for selecting an access point AP selection channel in a wireless fidelity WiFi network according to an embodiment of the present invention.
  • the method for selecting an access point of an access point AP in the wireless fidelity WiFi network provided in this embodiment may be specifically applied to the process of selecting an AP by the AP during network construction, and the specific implementation process may be specifically referred to the foregoing embodiment. Description, no longer repeat here.
  • the method for selecting an access point by an access point AP in a wireless fidelity WiFi network provided by this embodiment may be performed by an AP.
  • Step B10 Determine, according to a preset rule related to the service set identifier SSID of the AP, a first channel in the WiFi network.
  • Step B20 determining whether the first channel is available, and if the first channel is available, using the first channel, so that when the station determines and scans the first channel by using the preset rule, scanning the AP.
  • the access point AP selects a channel, and the AP determines the first channel in the WiFi network according to a preset rule related to the service set identifier SSID of the AP, and determines whether the first channel is available. If the first channel is available, the first channel is used. Since the AP determines the first channel according to a preset rule related to its own SSID when selecting the channel, the station STA also determines the first channel according to a preset rule related to the SSID of the AP, when the target AP uses the first channel, The STA can scan the target AP during the first channel scan, and the scanning process is targeted, which greatly improves the scanning efficiency.
  • FIG. 5 is a flowchart of a method for selecting an AP by an access point AP in another wireless fidelity WiFi network according to an embodiment of the present invention.
  • the preset rule is used to determine a first channel to an nth channel;
  • the method further includes:
  • Step B30 If the n-1th channel is unavailable, the AP determines, according to the preset rule, the The nth channel in the WiFi network;
  • Step B40 determining whether the nth channel is available, if available, using an nth channel, so that the station scans to the AP when the nth channel is determined and scanned by the preset rule; or
  • the method also includes:
  • n-1th channel is unavailable, determining whether the nth channel determined according to the preset rule is available, and if available, using the nth channel, so that the station determines and scans the nth channel by using the preset rule. Scanning to the AP;
  • n is an integer greater than 1 and less than or equal to K; and K is a number of channels in the WiFi network.
  • the AP may determine whether a certain channel is available according to the occupancy of the channel. For example, if the signal of another AP or STA is monitored on the first channel, then the first channel is considered to be occupied, then the second channel is started, and so on. Until an unoccupied channel is found. If all channels are occupied, the channel with the lightest occupancy is used, or all channels are occupied and the occupancy is the same, then the first channel is used. Determining whether the channel can also take into account factors such as interference from other signals on the channel. The present invention does not specifically limit whether the channel is available, and can be judged according to the prior art.
  • the method for determining the nth channel by the STA may be based on the method for determining the nth channel by the AP, so that the STA is targeted to the scanning process of the AP, and the scanning efficiency is further improved.
  • the method may further include:
  • Step B50 Obtain the country code information of the location
  • step B10 the determining, according to the preset rule related to the SSID, the first channel in the WiFi network, specifically:
  • the first channel is determined according to the country code information and the preset rule.
  • the AP when the AP selects a channel, it can avoid selecting a channel that is not used by the country, and improving the accuracy of channel determination.
  • step B10 the first channel in the WiFi network is determined according to a preset rule related to the service set identifier SSID of the AP:
  • the channel number of the K channels and the priority corresponding to each channel number; the ⁇ is the number of channels in the WiFi network.
  • the determination of the channel can be conveniently performed according to the priority.
  • the preset rule is:
  • Step B10 Determining the channel numbers of the first channel to the nth channel in order of priority from high to low; Step B10, determining, according to a preset rule related to the service set identifier SSID of the AP, in the WiFi network
  • the first channel is:
  • Step B30 the AP determines, according to the preset rule, the nth channel in the WiFi network, specifically:
  • the AP determines, in the priority list, the nth channel corresponding to the channel number with the highest priority, except the sequence number corresponding to the first channel to the n-1th channel;
  • the priority list corresponds to the SSID of the access point, and the channel number of the K channels in the WiFi network and the priority corresponding to each channel number are stored.
  • the preset rule related to the SSID of the AP is:
  • Step B10 The determining, according to the preset rule related to the service set identifier SSID of the AP, determining that the first channel in the WiFi network is:
  • the value of the function when the value of the argument is the SSID of the target access point is used as the channel number of the first channel.
  • Si is the channel number of the first channel
  • K is the number of channels in the WiFi network
  • the hash (SSID) refers to hashing the SSID
  • mod is a modulo operator.
  • the preset rule is:
  • the channel numbers of the first channel to the nth channel are respectively determined according to the first function to the nth function with the SSID as an argument;
  • Step B10 The determining, according to the preset rule related to the service set identifier SSID of the AP, determining that the first channel in the WiFi network is:
  • the value of the argument is the value of the first function when the SSID of the target access point is Is the channel number of the first channel;
  • Step B30 The AP determines, according to the preset rule, an nth channel in the WiFi network, specifically:
  • S n4 is the n- 1th function
  • a is a preset constant
  • the hash (SSID) refers to hashing the SSID
  • mod is the modulo operator
  • step B20 the determining whether the first channel is available, if the
  • the method may further include:
  • Step B60 The scan request frame of the SSID carrying the target AP sent by the receiving station STA on the first channel determines whether the SSID of the target AP is the same as the SSID of the AP, and if they are the same, the STA is sent to the STA. Send a scan response frame.
  • the AP uses a certain channel, for example, the first channel.
  • the STA actively sends a probe request frame on the first channel, and the scan request frame carries the SSID of the target ⁇ .
  • the AP determines whether the SSID in the scan request frame is the same as its own SSID, and if it is the same, returns a probe response frame.
  • the STA receives the scan response frame, the AP is the target AP, and the AP can establish a connection with the target AP. If the STA does not receive the scan response frame, the AP is not the target AP.
  • step B20 the determining whether the first channel is available, and if the first channel is available, after the using the first channel, the method may further include:
  • Step B70 Broadcast a beacon frame carrying the SSID of the AP on the first channel, so that the STA monitors the beacon frame.
  • the AP uses a certain channel, for example, using the first channel.
  • the AP can broadcast its own SSID beacon frame through the first channel. Therefore, the STA can monitor the beacon frame on the first channel to determine whether the AP is the target AP.
  • step B60 and step B70 do not have a necessary timing relationship.
  • FIG. 6 is an AP selection of an access point in a wireless fidelity WiFi network according to an embodiment of the present invention. Flow chart of the method of the channel. The process of selecting a channel by an AP in a WiFi network will be described in detail in conjunction with FIG. 6.
  • the AP first obtains the country code information of the location, and determines the i channel according to the country information and a preset rule related to its own SSID, i from 1 to ⁇ , where K is the number of channels in the WiFi network. The AP determines whether the i-th channel is available. If available, the channel is used. If not, the value of i is incremented by 1, and then the i-th channel after the value of i is incremented is determined to be available, until it is judged on K channels. Soon. If none of the K channels are available, the channel selection process ends. The channel used can be further selected based on the occupancy of the K channels.
  • FIG. 7 is a schematic structural diagram of a site for scanning an access point in a wireless fidelity WiFi network according to an embodiment of the present invention.
  • the STA 81 provided in this embodiment may implement various steps of the method for scanning an access point according to any embodiment of the present invention, and the specific implementation process thereof is not described herein.
  • the station STA81 provided in this embodiment specifically includes a first determining unit 11 and a first scanning unit 12.
  • the first determining unit 11 is configured to determine the first channel in the WiFi network according to a preset rule related to the service set identifier SSID of the target access point AP82.
  • the first scanning unit 12 is configured to perform scanning on the first channel, so that when the target AP 82 determines and uses the first channel by using the preset rule, the target AP 82 is scanned.
  • the first determining unit 11 determines the first channel in the WiFi network according to a preset rule related to the service set identifier SSID of the target access point AP82.
  • the first scanning unit 12 scans on the first channel to scan the target AP 82 when the target AP 82 having the SSID determines and uses the first channel with a preset rule.
  • the target AP 82 Since the STA 81 determines the first channel according to a preset rule related to the SSID of the target AP 82, the target AP 82 also determines the first channel according to the SSID through the same preset rule when selecting the channel, when the target AP 82 uses the first channel, The STA 81 can scan the target AP 82 during the first channel scan, and the scanning process is targeted, which greatly improves the scanning efficiency.
  • FIG. 8 is a schematic structural diagram of another station for scanning an access point in a wireless fidelity WiFi network according to an embodiment of the present invention.
  • the preset rule is used to determine the first channel to the nth channel.
  • the station STA81 may further include a second determining unit 13 and a second scanning unit 14.
  • the second determining unit 13 is configured to determine the nth channel in the WiFi network according to the preset rule if the target AP 82 is not scanned on the n-1th channel.
  • the second scanning unit 14 is configured to perform scanning on the nth channel, so that when the target AP 82 is determined by the preset rule When the nth channel is determined and used, the target AP 82 is scanned.
  • the station STA81 further includes a third scanning unit, where the third scanning unit is configured to perform, on the nth channel determined according to the preset rule, if the target AP82 is not scanned on the n-1th channel. Scanning; to scan the target AP 82 when the target AP 82 determines and uses the nth channel by the preset rule, where n is an integer greater than 1 and less than or equal to K; The number of channels in the WiFi network.
  • the method of determining the nth channel by the STA 81 is the same as the method for determining the nth channel by the AP 82, so that the STA 81 is targeted to the scanning process of the AP 82, and the scanning efficiency is further improved.
  • the site STA81 may further include a first obtaining unit 15 for acquiring country code information of the location.
  • the first determining unit 11 is specifically configured to determine the first channel according to the country code information and the preset rule. Using the country code information as a reference factor in determining the first channel process, when the STA 81 selects a channel for scanning, it can avoid selecting a channel that is not used by the country, improving the accuracy of channel determination, and further improving the scanning efficiency.
  • the station STA81 may further include a storage unit 16, where the storage unit 16 is configured to store a priority list, where the priority list corresponds to the SSID of the target AP82, and the K devices in the WiFi network are saved.
  • the channel number of the channel and the priority corresponding to each channel number; the K is the number of channels in the WiFi network.
  • the first determining unit 11 is specifically configured to determine, from the priority list, a channel number with the highest priority, and the channel corresponding to the channel number with the highest priority is the first channel.
  • the station STA81 may further include a storage unit 16, where the storage unit 16 is configured to store a priority list, where the priority list corresponds to the SSID of the target AP82, and the K devices in the WiFi network are saved.
  • the channel number of the channel and the priority corresponding to each channel number; the K is the number of channels in the WiFi network.
  • the first determining unit 11 is specifically configured to determine, from the priority list, the first channel corresponding to the channel number with the highest priority.
  • the second determining unit 13 is specifically configured to: when the target AP 82 is not scanned on the n-1th channel, according to the priority list, the channel sequence corresponding to the channel from the first channel to the n-1th channel Among the channel numbers other than the channel number, the nth channel corresponding to the channel number with the highest priority is determined.
  • n is an integer greater than 1 and less than or equal to K.
  • the preset rule related to the SSID of the target access point AP82 is: determining a channel number of the first channel according to a function that uses an SSID as an argument.
  • the first determination order The element 11 is specifically configured to: when the value of the argument is the SSID of the target access point AP82, the value of the function is used as the channel number of the first channel.
  • the preset rule is: determining channel numbers of the first channel to the nth channel according to the first function to the nth function with the SSID as an argument.
  • the first determining unit 11 is specifically configured to: when the value of the argument is the SSID of the target access point AP82, the value of the first function is used as the channel number of the first channel.
  • the second determining unit 13 is specifically configured to: when the target AP 82 is not scanned on the n-1th channel, if the value of the argument is the SSID of the target access point AP82, The value of the n function is used as the channel number of the nth channel.
  • the first scanning unit 12 may include a transmitting subunit 121 and a receiving subunit 122.
  • the transmitting subunit 121 is configured to send, on the first channel, a scan request frame carrying the SSID of the target AP82.
  • the receiving subunit 122 is configured to scan the target AP 82 when receiving the scan response frame.
  • the first scanning unit 12 is further configured to monitor the first channel, and when the first beacon frame is monitored, determine the SSID and the carried in the first beacon frame. Whether the SSIDs of the target APs 82 are the same, and if they are the same, the target APs 82 are scanned.
  • the first acquiring unit 15 may be further configured to receive a second beacon frame sent by any AP 82, and extract the country code information from the second beacon frame.
  • FIG. 9 is a schematic structural diagram of another station for scanning an access point in a wireless fidelity WiFi network according to an embodiment of the present invention.
  • the STA 81 includes: a memory 32, configured to store a preset rule related to a service set identifier SSID of the target access point AP82;
  • the processor 31 is configured to determine, according to a preset rule stored by the memory, a first channel in the WiFi network;
  • the receiver 33 is configured to scan on the first channel by using the antenna 35, so that when the target AP 82 determines and uses the first channel by using the preset rule, the target AP 82 is scanned.
  • the scanning operation on the first channel can also be performed by the transmitter 34, the receiver 33 and the antenna 35. That is, the transmitter 33 transmits the detection information of the SSID carrying the target AP 82 through the antenna, and when the receiver 33 receives the response of the target AP 82 through the antenna 35, it indicates that the target AP 82 is scanned.
  • the preset rule is used to determine the first channel to the nth channel.
  • the processor 31 is configured to determine the nth channel in the WiFi network according to the preset rule if the target AP82 is not scanned on the n-1th channel.
  • the receiver 33 is configured to scan the target AP 82 through the antenna 35 during the nth channel.
  • the processor 31 is configured to perform scanning on the nth channel determined according to the preset rule if the target AP 82 is not scanned on the n-1th channel; so that when the target AP82 is in the When the rule determines and uses the nth channel, scanning to the target AP82; wherein n is an integer greater than 1, less than or equal to K; the K is the number of channels in the WiFi network.
  • the scanning operation on the nth channel can also be performed by the transmitter 34, the receiver 33 and the antenna 35. That is, the transmitter 33 transmits the detection information of the SSID carrying the target AP 82 through the antenna, and when the receiver 33 receives the response of the target AP 82 through the antenna 35, it indicates that the target AP 82 is scanned.
  • the receiver 33 receives the second beacon frame sent by any AP through the antenna 35, and the processor 31 is configured to extract the country code information from the second beacon frame, and according to the The country code information and the preset rule determine the first channel.
  • the memory 32 further stores a priority list, where the priority list corresponds to the SSID of the target AP 82, and stores channel numbers of each of the K channels in the WiFi network and each The priority corresponding to the channel number; the K is the number of channels in the WiFi network.
  • the processor 31 is configured to determine a channel number with the highest priority from the priority list, and the channel corresponding to the channel number with the highest priority is the first channel.
  • the memory 32 further stores a priority list, where the priority list corresponds to the SSID of the target AP 82, and stores channel numbers of each of the K channels in the WiFi network and each The priority corresponding to the channel number; the K is the number of channels in the WiFi network.
  • the processor 31 is configured to determine, from the priority list, the first channel corresponding to the channel number with the highest priority, and if the target AP 82 is not scanned on the n-1 channel, according to the a priority list, wherein the nth channel corresponding to the channel number with the highest priority is determined from the channel number other than the channel number corresponding to the first channel to the n-1th channel; wherein the n is greater than 1, less than or An integer equal to the number of channels in the WiFi network.
  • the preset rule related to the SSID of the target access point AP82 is: determining a channel number of the first channel according to a function that uses an SSID as an argument; The value of the function used when the value of the argument is the SSID of the target access point AP82 is used as the channel number of the first channel.
  • the channel numbers of the first channel to the nth channel are respectively determined according to the first function to the nth function with the SSID as an argument; the processor 31 is specifically configured to: When the value is the SSID of the target access point AP82, the value of the first function is used as the channel number of the first channel, and if the target AP 82 is not scanned on the n-1th channel, The value of the argument is the value of the nth function when the SSID of the target access point AP82 is the channel number of the nth channel.
  • Si is the channel number of the first channel
  • S n is the channel number of the nth channel
  • S n4 is the channel number of the n- 1th channel
  • a is a preset constant
  • K is the number of channels in the WiFi network
  • the hash (SSID) refers to hashing the SSID of the target AP 82
  • mod is a modulo operator.
  • FIG. 10 is a schematic structural diagram of an access point in a wireless fidelity WiFi network according to an embodiment of the present invention.
  • the access point AP82 provided in this embodiment may specifically implement the steps of the channel selection method of the access point provided by any embodiment of the present invention, and details are not described herein again.
  • the access point AP82 provided in this embodiment specifically includes a third determining unit 21 and a first determining unit 22.
  • the third determining unit 21 is configured to determine the first channel in the WiFi network according to a preset rule related to the service set identifier SSID of the AP 82.
  • the first determining unit 22 is configured to determine whether the first channel is available, and if the first channel is available, use the first channel, so that the station STA 81 determines and scans the first channel by using the preset rule. Scanning to the access point AP82.
  • the third determining unit 21 determines the first channel in the WiFi network according to a preset rule related to the service set identifier SSID of the AP 82.
  • the first judging unit 22 judges Whether the first channel is available or not, if the first channel is available, the first channel is used.
  • the STA 81 Since the AP 82 determines the first channel according to a preset rule related to its own SSID when the channel is selected, the STA 81 also determines the first channel according to a preset rule related to the SSID of the AP 82, and when the target AP 82 uses the first channel, the STA 81 The target AP82 can be scanned during the first channel scan, and the scanning process is targeted, which greatly improves the scanning efficiency.
  • FIG. 11 is a schematic diagram of an access point structure in another wireless fidelity WiFi network according to an embodiment of the present invention.
  • the preset rule is used to determine the first channel to the nth channel; the access point AP82 may further include a fourth determining unit 23 and Second judging unit 24.
  • the fourth determining unit 23 is configured to determine an nth channel in the WiFi network according to the preset rule if the n-1th channel is unavailable.
  • the second determining unit 24 is configured to determine whether the nth channel is available, and if available, use an nth channel, so that when the station STA81 determines and scans the nth channel by using the preset rule, scanning the Access point AP82.
  • the access point AP82 further includes a third determining unit, where the third determining unit is configured to determine whether the nth channel determined according to the preset rule is available, and if available, use the nth channel, so that the station STA81 uses the When the preset rule determines and scans the nth channel, the AP 82 is scanned.
  • the n is an integer greater than 1, smaller than or equal to the number of channels in the WiFi network.
  • the method for determining the nth channel by the STA 81 can determine the method of the nth channel according to the AP82, so that the STA81 is targeted to the scanning process of the AP82, and the scanning efficiency is further improved.
  • the access point AP82 may further include a second obtaining unit 25, where the second acquiring unit 25 is configured to obtain country code information of the location.
  • the third determining unit 21 is specifically configured to determine the first channel according to the country code information and the preset rule. Using the country code information as a reference factor in determining the first channel process, when the AP 82 selects a channel, it can avoid selecting a channel that is not used by the country, and improving the accuracy of channel determination.
  • the access point AP82 may further include a storage unit 26.
  • the storage unit 26 is configured to store a priority list, where the priority list corresponds to the SSID of the access point AP82, and the channel number of the K channels in the WiFi network and the priority corresponding to each channel number are saved.
  • the K is the number of channels in the WiFi network.
  • the third determining unit 21 is specifically configured to determine, from the priority list, a channel number with the highest priority; and the channel corresponding to the channel number with the highest priority is the first channel.
  • the access point AP82 may further include a storage unit 26.
  • the storage unit 26 is used to store a priority list, where the priority list corresponds to the SSID of the access point AP82, and the channel number of the K channels in the WiFi network and the priority corresponding to each channel number are saved; K is the number of channels in the WiFi network.
  • the third determining unit 21 is specifically configured to determine the first channel corresponding to the channel number with the highest priority among the priority lists.
  • the fourth determining unit is specifically configured to determine, in the priority list, that the channel number corresponding to the first channel to the n-1th channel is the highest priority, if the n-1th channel is unavailable.
  • the nth channel corresponding to the channel number wherein n is an integer greater than 1 and less than or equal to K.
  • the third determining unit 21 is specifically configured to: set, the value of the argument as the value of the SSID function of the target access point AP82, as the channel number of the first channel;
  • the function takes the SSID as an argument.
  • the third determining unit 21 is specifically configured to: when the value of the argument is the value of the first function of the SSID of the target access point AP82, as the channel number of the first channel;
  • the first function takes an SSID as an argument.
  • the fourth determining unit 23 is specifically configured to: when the n-1th channel is unavailable, the value of the argument is the value of the nth function when the SSID of the target access point AP82 is Channel number of the n channel; the nth function takes the SSID as an argument.
  • the predetermined rule is specifically: determining channel numbers of the first channel to the nth channel according to the first function to the nth function, respectively.
  • the access point AP82 may further include a scan processing unit 27, and the scan processing unit 27 is configured to receive a scan request frame that carries the SSID of the target AP82 sent by the station STA81 on the first channel, and determines the location. Whether the SSID of the target AP 82 is the same as the SSID of the own, and if the same, sends a scan response frame to the STA 81.
  • the access point AP82 may further include a broadcast unit 28, and the broadcast unit 28 is configured to broadcast a beacon frame carrying the SSID of the self on the first channel, so that the STA 81 listens to the location.
  • the beacon frame is a schematic structural diagram of an access point in another wireless fidelity WiFi network according to an embodiment of the present invention.
  • the access point AP82 includes a memory 52, configured to store a preset rule related to the service set identifier SSID of the access point AP82.
  • the processor 51 is configured to determine, according to a preset rule stored in the memory, a first channel in the WiFi network, determine whether the first channel is available, and if the first channel is available, use the first channel, so that When the station STA 81 determines and scans the first channel by the preset rule, it scans to the access point AP82.
  • the operation of determining whether the first channel is available may be performed by the processor 51, the receiver 53, and the antenna 55.
  • the receiver 53 listens on the first channel through the antenna 55, and the processor 51 determines whether the first channel is available based on the monitored signal.
  • the AP 82 using the first channel is scanned by the STA 81.
  • the process can also be performed by the transmitter 54, the receiver 53 and the antenna 55.
  • the receiver 53 receives the detection information of the SSID carrying the target AP 82 sent by the STA 81 through the antenna 55, and determines whether the SSID is the same as its own SSID. If the same, the transmitter 54 sends a response through the antenna 55, indicating that the AP82 is The target AP82.
  • the preset rule is used to determine the first channel to the nth channel; the processor 51 is configured to determine, according to the preset rule, that the n-1th channel is unavailable The nth channel in the WiFi network, determining whether the nth channel is available, and if available, using the nth channel, so that the station STA81 determines and scans the nth channel by using the preset rule, scanning the location
  • the access point AP82 is used to determine whether the nth channel determined according to the preset rule is available. If available, the nth channel is used, so that the station STA81 determines and scans the preset rule.
  • the AP82 is scanned; wherein, n is an integer greater than 1 and less than or equal to K; and the K is the number of channels in the WiFi network.
  • the receiver 53 receives the second beacon frame sent by any AP through the antenna 55, and the processor 51 is configured to extract the country code information from the second beacon frame, and according to the The country code information and the preset rule determine the first channel.
  • the memory 52 is configured to store a priority list, where the priority list corresponds to the SSID of the access point AP82, and the channel number of each of the K channels in the WiFi network is saved and each The priority corresponding to the channel number; the K is the number of channels in the WiFi network.
  • the processor 51 is specifically configured to determine, from the priority list, a channel number with the highest priority. The channel corresponding to the channel number having the highest priority is the first channel.
  • the memory 52 is configured to store a priority list, where the priority list corresponds to the SSID of the access point AP82, and the channel number of each of the K channels in the WiFi network is saved and each The priority corresponding to the channel number, where K is the number of channels in the WiFi network.
  • the processor 51 is specifically configured to determine, according to the priority list, the first channel corresponding to the channel number with the highest priority, and in the case that the n-1th channel is unavailable, according to the priority list, And determining, by the channel number other than the channel number corresponding to the first channel to the n-1th channel, an nth channel corresponding to the channel number with the highest priority, wherein the n is greater than 1, less than or equal to the WiFi network. An integer of the number of channels.
  • the processor 51 is specifically configured to use, if the value of the argument is a value of a function of the SSID of the target access point AP82, as a channel number of the first channel;
  • the SSID is an independent variable.
  • the processor 51 is specifically configured to: when the value of the argument is the SS1 of the target access point AP82, the value of the first function, as the channel number of the first channel;
  • the first function takes the SSID as an argument.
  • the value of the argument is the value of the nth function when the SSID of the target access point AP82 is used as the nth channel.
  • the channel number is the SS variable as the argument;
  • the predetermined rule is specifically: determining the channel numbers of the first channel to the nth channel according to the first function to the nth function, respectively.
  • FIG. 13 is a schematic structural diagram of a wireless fidelity WiFi network access system according to an embodiment of the present invention.
  • the wireless fidelity WiFi network access system provided in this embodiment specifically includes a site STA81 provided by any embodiment of the present invention, and an access point AP82 provided by any embodiment of the present invention.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

本发明实施例提供一种无线保真网络中扫描接入点、信道选择方法、设备及系统,该方法包括:站点根据与目标接入点AP的服务集标识SSID相关的预设规则确定WiFi网络中的第1信道;所述站点在第1信道上进行扫描,以便当具有所述目标AP以预设规则确定并使用第1信道时,扫描到目标AP。本发明实施例提供的无线保真网络中扫描接入点、信道选择方法、设备及系统,由于STA根据预设规则确定第1信道,该目标AP在选择信道时也根据预设规则,则当目标AP使用该第1信道时,STA可以在第一次信道扫描时扫描到该目标AP,扫描过程具有针对性,大大提高了扫描效率。

Description

无线保真网络中扫描接入点、 信道选择方法、 设备及系统 本申请要求于 2012 年 7 月 3 日提交中国专利局、 申请号为 201210227514.1、 名称为 "无线保真网络中扫描接入点、 信道选择方法、 设备 及系统" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域 本发明实施例涉及通信技术, 尤其涉及一种无线保真网络中扫描接入点、 信道选择方法、 设备及系统。 背景技术
WiFi( Wireless Fidelity,无线保真 ) ,从 1997年无线局域网标准 IEEE802.i l 发布以来, 在拥有众多在业界领先的公司组成的 WiFi联盟的大力推动下, 以 其具有的部署快速、使用便利和传输速率高等优势, 发展迅猛, 由于现在的笔 记本电脑、 平板电脑和手机等都支持 WiFi技术, 用户具有移动办公等需求, WiFi技术被广泛应用于各个行业, WiFi 网络的接入点 (Access Point, 筒称 AP )遍布于酒店、 咖啡厅、 学校和医院等场所, 可以说 WiFi在生活中无所不 在。
WiFi的网络中, 一个接入点 ( AP )给多个站点 ( Station, 筒称 STA )提 供接入服务。 STA在使用 AP提供的服务之前, 要先发现 AP的存在。 WiFi 网络的频段有两个, 一个是 2.4G的频段, 一个是 5G的频段。 每个频段又被 划分成若干个信道, 如信道 1、 信道 2、 信道 3、 信道 4、 信道 5和信道 6等。 STA和 AP之间的通信, 都是在其中某一个信道上进行。 现有技术中, STA 要发现某一个 AP的时候, 通常是通过从信道 1开始顺序扫描, 或者是随机选 择信道进行扫描, 直到发现目标 AP为止, 扫描效率不高。 发明内容 本发明实施例提供一种无线保真网络中扫描接入点、信道选择方法、设备 及系统, 以提高扫描效率。
第一方面, 本发明实施例提供一种无线保真 WiFi网络中扫描接入点的方 法, 包括:
站点根据与目标接入点 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道;
所述站点在所述第 1信道上进行扫描, 以便当所述目标 AP以所述预设规 则确定并使用所述第 1信道时, 所述站点扫描到所述目标 AP。
在第一种可能的实现方式中,所述预设规则用于确定第 1信道至第 n信道; 所述方法还包括:
若在第 n-1 信道上扫描不到所述目标 AP, 则按所述预设规则确定所述
WiFi网络中的第 n信道;
在所述第 n信道上进行扫描, 以便当所述目标 AP以所述预设规则确定并 使用所述第 n信道时, 扫描到所述目标 AP; 或者
所述方法还包括:
若在第 n-1信道上扫描不到所述目标 AP, 则在根据所述预设规则确定的 第 n信道上进行扫描; 以便当所述目标 AP以所述预设规则确定并使用所述第 n信道时, 扫描到所述目标 AP;
其中, 所述 n为大于 1 , 小于或等于 K的整数; 所述 K为所述 WiFi网络 中的信道数。
结合第一方面或第一方面的第一种可能的实现方式,在第二种可能的实现 方式中, 所述根据与目标接入点 AP的服务集标识 SSID相关的预设规则确定 所述 WiFi网络中的第 1信道之前, 还包括:
获取所在地的国家码信息;
相应地, 所述根据与目标接入点 AP的服务集标识 SSID相关的预设规则 确定所述 WiFi网络中的第 1信道, 包括:
根据所述国家码信息和所述预设规则确定所述第 1信道。
结合第一方面或第一方面的第二种可能的实现方式,在第三种可能的实现 方式中, 所述根据与目标接入点 AP的服务集标识 SSID相关的预设规则确定 所述 WiFi网络中的第 1信道具体为:
将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 其中, 所述优先级列表与所述目标 AP的 SSID相对应, 保存有所述 WiFi 网络中 K个信道的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi网络中信道的个数。
结合第一方面的第一种可能的实现方式,在第四种可能的实现方式中, 所 述预设规则为:
按照优先度由高到低的顺序, 依次确定第 1信道至第 n信道的信道号; 所述根据与目标接入点 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道具体为:
将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 所述按所述预设规则确定所述 WiFi网络中的第 n信道具体为:
确定所述优先级列表中, 除第 1信道至第 n-1信道对应的序号外, 优先度 最高的信道序号对应的所述第 n信道;
其中, 所述优先级列表与所述接入点的 SSID相对应, 保存有所述 WiFi 网络中 K个信道的信道序号及每个信道序号对应的优先度。
结合第一方面或第一方面的第二种可能的实现方式,在第五种可能的实现 方式中, 所述与所述目标接入点的 SSID相关的预设规则为:
根据以 SSID为自变量的函数确定所述第 1信道的信道序号;
所述根据与目标接入点 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述函数的值, 作为所 述第 1信道的信道序号。
结合第一方面的第五种可能的实现方式,在第六种可能的实现方式中, 所 述以 SSID为自变量的函数为: S1= (hash(SSID) mod K) + 1 ;
其中, Κ为所述 WiFi网络中的信道个数; 所述 hash(SSID)是指对 SSID 进行哈希运算; mod为求模运算符。
结合第一方面的第一种可能的实现方式,在第七种可能的实现方式中, 所 述预设规则为:
根据以 SSID为自变量的第 1函数至第 n函数分别确定第 1信道至第 n信 道的信道序号;
所述根据与目标接入点 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述第 1函数的值, 作 为所述第 1信道的信道序号;
所述按所述预设规则确定所述 WiFi网络中的第 n信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述第 n函数的值, 作 为所述第 n信道的信道序号。
结合第一方面的第七种可能的实现方式,在第八种可能的实现方式中, 所 述第 1函数为 S1= (hash(SSID) mod K) + 1 ; 所述第 η函数为 Sn = (Sn4 + a) mod K +l ;
其中, S n4为第 n-1函数, a为预设常数; 所述 hash(SSID)是指对 SSID 进行哈希运算; mod为求模运算符。
结合第一方面或第一方面的任一种可能的实现方式,在第九种可能的实现 方式中, 在所述第 1信道上发送携带有所述目标 AP的 SSID的扫描请求帧; 所述扫描到所述目标 AP是指: 接收到对所述扫描请求帧的扫描响应帧。 结合第一方面或第一方面的任一种可能的实现方式,在第十种可能的实现 方式中, 所述在所述第 1信道上进行扫描具体为:
对所述第 1信道进行监听;
所述扫描到所述目标 AP是指: 在所述第 1 信道上监听到包含所述目标 AP的 SSID的信标帧。
第二方面, 本发明实施例一种无线保真 WiFi网络中接入点 AP选择信道 的方法, 包括:
根据与所述 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中 的第 1信道;
判断所述第 1信道是否可用,若所述第 1信道可用,则使用所述第 1信道, 以便站点以所述预设规则确定并扫描所述第 1信道时, 扫描到所述 AP。
第一种可能的实现方式中, 所述预设规则用于确定第 1信道至第 n信道; 所述方法还包括:
若第 n-1信道不可用, 则所述 AP根据所述预设规则确定所述 WiFi网络 中的第 n信道;
判断所述第 n信道是否可用, 若可用, 则使用第 n信道, 以便所述站点以 所述预设规则确定并扫描所述第 n信道时, 扫描到所述 AP; 或者
所述方法还包括:
若第 n-1信道不可用,则判断根据所述预设规则确定的第 n信道是否可用, 若可用, 则使用第 n信道, 以便站点以所述预设规则确定并扫描所述第 n信道 时, 扫描到所述 AP;
其中, 所述 n为大于 1 , 小于或等于 K的整数; 所述 K为所述 WiFi网络 中的信道数。
结合第二方面或第二方面的第一种可能的实现方式,第二种可能的实现方 式中,所述根据与所述 AP的 SSID相关的预设规则确定所述 WiFi网络中的第 1信道之前, 还包括:
获取所在地的国家码信息;
相应地, 所述根据与所述 SSID相关的预设规则确定所述 WiFi网络中的 第 1信道, 包括:
根据所述国家码信息和所述预设规则确定所述第 1信道。
结合第二方面或第二方面的第二种可能的实现方式,在第三种可能的实现 方式中, 所述根据与所述 AP 的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道为:
将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 其中, 所述优先级列表与所述 AP的 SSID相对应,保存有所述 WiFi网络 中 K个信道的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi 网络中信道的个数。
结合第二方面的第一种可能的实现方式,在第四种可能的实现方式中,按 照优先度由高到低的顺序, 依次确定第 1信道至第 n信道的信道号;
所述根据与所述 AP的服务集标识 SSID相关的预设规则确定所述 WiFi 网络中的第 1信道为:
将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 所述 AP根据所述预设规则确定所述 WiFi网络中的第 n信道具体为: 所述 AP确定所述优先级列表中,除第 1信道至第 n-1信道对应的序号外, 优先度最高的信道序号对应的所述第 n信道;
其中, 所述优先级列表与所述接入点的 SSID相对应, 保存有所述 WiFi 网络中 K个信道的信道序号及每个信道序号对应的优先度。
结合第二方面或第二方面的第二种可能的实现方式,在第五种可能的实现 方式中, 所述与所述 ΑΡ的 SSID相关的预设规则为:
根据以 SSID为自变量的函数确定所述第 1信道的信道序号;
所述根据与所述 AP的服务集标识 SSID相关的预设规则确定所述 WiFi 网络中的第 1信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述函数的值, 作为所 述第 1信道的信道序号。
结合第二方面的在第五种可能的实现方式, 在第六种可能的实现方式中, 所述以 SSID为自变量的函数为: S1= (hash(SSID) mod K) + 1 ;
其中, Si为第 1信道的信道序号; K为所述 WiFi网络中的信道个数; 所 述 hash(SSID)是指对 SSID进行哈希运算; mod为求模运算符。
结合第二方面的第一种可能的实现方式,在第七种可能的实现方式中, 所 述预设规则为:
根据以 SSID为自变量的第 1函数至第 n函数分别确定第 1信道至第 n信 道的信道序号;
所述根据与所述 AP的服务集标识 SSID相关的预设规则确定所述 WiFi 网络中的第 1信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述第 1函数的值, 作 为所述第 1信道的信道序号;
所述 AP根据所述预设规则确定所述 WiFi网络中的第 n信道具体为: 将, 所述自变量的值为所述目标接入点的 SSID时所述第 n函数的值, 作 为所述第 n信道的信道序号。
结合第二方面的第七种可能的实现方式,在第八种可能的实现方式中, 所 述第 1函数为 S1= (hash(SSID) mod K) + 1 ; 所述第 η函数为 Sn = (Sn4 + a) mod K +l ;
其中, S n4为第 n-1函数, a为预设常数; 所述 hash(SSID)是指对 SSID 进行哈希运算; mod为求模运算符。
第三方面, 本发明实施例提供一种用于在无线保真 WiFi网络中扫描接入 点的站点, 包括: 第一确定单元, 用于根据与目标接入点 AP的服务集标识 SSID相关的预 设规则确定所述 WiFi网络中的第 1信道;
第一扫描单元, 用于在所述第 1信道上进行扫描, 以便当所述目标 AP以 所述预设规则确定并使用所述第 1信道时, 扫描到所述目标 AP。
在第一种可能的实现方式中,所述预设规则用于确定第 1信道至第 n信道; 所述站点还包括:
第二确定单元, 用于若在第 n-1信道上扫描不到所述目标 AP, 则按所述 预设规则确定所述 WiFi网络中的第 n信道;
第二扫描单元, 用于在所述第 n信道上进行扫描, 以便当所述目标 AP以 所述预设规则确定并使用所述第 n信道时, 扫描到所述目标 AP; 或者
所述站点还包括:
第三扫描单元, 用于若在第 n-1信道上扫描不到所述目标 AP, 则在根据 所述预设规则确定的第 n信道上进行扫描; 以便当所述目标 AP以所述预设规 则确定并使用所述第 n信道时, 扫描到所述目标 AP;
其中, 所述 n为大于 1 , 小于或等于 K的整数; 所述 K为所述 WiFi网络 中的信道数。
结合第三方面或第三方面的第一种可能的实现方式,在第二种可能的实现 方式中, 所述的站点还包括:
第一获取单元, 用于获取所在地的国家码信息;
相应地,所述第一确定单元具体用于根据所述国家码信息和所述预设规则 确定所述第 1信道。
结合第三方面或第三方面的第二种可能的实现方式,在第三种可能的实现 方式中, 所述站点还包括:
存储单元,用于存储优先级列表,所述优先级列表与所述目标 AP的 SSID 相对应,保存有所述 WiFi网络中 K个信道的信道序号及每个信道序号对应的 优先度; 所述 K为所述 WiFi网络中信道的个数;
所述第一确定单元具体用于从所述优先级列表中确定优先度最高的信道 序号, 该优先度最高的信道序号对应的信道为所述第 1信道。
结合第三方面第一种可能的实现方式, 第四种可能的实现方式中, 所述站 点还包括: 存储单元,用于存储优先级列表,所述优先级列表与所述目标 AP的 SSID 相对应,保存有所述 WiFi网络中 K个信道的信道序号及每个信道序号对应的 优先度; 所述 K为所述 WiFi网络中信道的个数;
所述第一确定单元具体用于,从所述优先级列表中确定优先度最高的信道 序号对应的所述第 1信道;
所述第二确定单元具体用于, 在第 n-1信道上扫描不到所述目标 AP的情 况下, 根据所述优先级列表, 从除第 1信道至第 n-1信道对应的信道序号之外 的信道序号中, 确定优先度最高的信道序号对应的第 n信道;
其中, 所述 n为大于 1 , 小于或等于 K的整数。
结合第三方面或第三方面的第二种可能的实现方式,在第五种可能的实现 方式中, 所述与所述目标接入点的 SSID相关的预设规则为:
根据以 SSID为自变量的函数确定所述第 1信道的信道序号;
所述第一确定单元具体用于: 将, 所述自变量的值为所述目标接入点的 SSID时所述函数的值, 作为所述第 1信道的信道序号。
结合第三方面的第五种可能的实现方式,在第六种可能的实现方式中, 所 述以 SSID为自变量的函数为: S1= (hash(SSID) mod K) + 1 ;
其中, Κ为所述 WiFi网络中的信道个数; 所述 hash(SSID)是指对所述目 标 AP的所述 SSID进行哈希运算; mod为求模运算符。
结合第三方面第一种可能的实现方式, 在第七种可能的实现方式中, 所述 预设规则为: 根据以 SSID为自变量的第 1函数至第 n函数分别确定第 1信道 至第 n信道的信道序号;
所述第一确定单元具体用于: 将, 所述自变量的值为所述目标接入点的 SSID时所述第 1函数的值, 作为所述第 1信道的信道序号;
所述第二确定单元具体用于在第 n-1信道上扫描不到所述目标 AP的情况 下, 将, 所述自变量的值为所述目标接入点的 SSID时所述第 n函数的值, 作 为所述第 n信道的信道序号。
结合第三方面第七种可能的实现方式, 在第八种可能的实现方式中, 所述 第 1函数为 S1= (hash(SSID) mod K) + 1 ; 所述第 η函数为 Sn = (Sn4 + a) mod K +1 ;
其中, S n4为第 n-1函数, a为预设常数; 所述 hash(SSID)是指对 SSID进 行哈希运算; mod为求模运算符。
第四方面,本发明实施例提供一种无线保真 WiFi网络中的接入点, 包括: 第三确定单元, 用于根据与所述接入点的服务集标识 SSID相关的预设规 则确定所述 WiFi网络中的第 1信道;
第一判断单元, 用于判断所述第 1信道是否可用, 若所述第 1信道可用, 则使用所述第 1信道, 以便站点以所述预设规则确定并扫描所述第 1信道时, 扫描到所述接入点。
在第一种可能的实现方式中,所述预设规则用于确定第 1信道至第 n信道; 所述接入点还包括:
第四确定单元, 用于若第 n-1信道不可用, 则根据所述预设规则确定所述
WiFi网络中的第 n信道;
第二判断单元, 用于判断所述第 n信道是否可用, 若可用, 则使用第 n 信道, 以便所述站点以所述预设规则确定并扫描所述第 n信道时,扫描到所述 接入点; 或者
所述接入点还包括:
第三判断单元, 用于判断根据所述预设规则确定的第 n信道是否可用, 若 可用,则使用第 n信道,以便站点以所述预设规则确定并扫描所述第 n信道时, 扫描到所述 AP;
其中, 所述 n为大于 1 , 小于或等于 K的整数; 所述 K为所述 WiFi网络 中的信道数。
结合第四方面或第四方面的第一种可能的实现方式,在第二种可能的实现 方式中, 所述接入点还包括:
第二获取单元, 用于获取所在地的国家码信息;
相应地,所述第三确定单元具体用于根据所述国家码信息和所述预设规则 确定所述第 1信道。
结合第四方面或第四方面的第二种可能的实现方式,在第三种可能的实现 方式中, 所述接入点还包括:
存储单元, 用于存储优先级列表, 所述优先级列表与所述接入点的 SSID 相对应,保存有所述 WiFi网络中 K个信道的信道序号及每个信道序号对应的 优先度; 所述 K为所述 WiFi网络中信道的个数; 所述第三确定单元具体用于 ,从所述优先级列表中确定优先度最高的信道 序号; 该优先度最高的信道序号对应的信道为所述第 1信道。
结合第四方面的第一种可能的实现方式,在第四种可能的实现方式中, 所 述接入点还包括:
存储单元, 用于存储优先级列表, 所述优先级列表与所述接入点的 SSID 相对应,保存有所述 WiFi网络中 K个信道的信道序号及每个信道序号对应的 优先度; 所述 K为所述 WiFi网络中信道的个数;
所述第三确定单元具体用于,确定所述优先级列表中优先度最高的信道序 号对应的所述第 1信道;
所述第四确定单元具体用于, 在第 n-1信道不可用的情况下, 确定所述优 先级列表中, 除第 1信道至第 n-1信道对应的信道序号之外, 优先度最高的信 道序号对应的第 n信道;
其中, 所述 n为大于 1 , 小于或等于 K的整数。
结合第四方面或第四方面的第二种可能的实现方式,在第五种可能的实现 方式中, 所述第三确定单元具体用于: 将, 自变量的值为所述目标接入点的 SSID时函数的值,作为所述第 1信道的信道序号;所述函数以 SSID为自变量。
结合第四方面的第五种可能的实现方式,在第六种可能的实现方式中, 所 述函数为: S1= (hash(SSID) mod K) + 1 ;
其中, Κ为所述 WiFi网络中的信道个数; 所述 hash(SSID)是指对 SSID 进行哈希运算; mod为求模运算符。
结合第四方面的第一种可能的实现方式,在第七种可能的实现方式中, 所 述第三确定单元具体用于: 将, 自变量的值为所述目标接入点的 SSID时第 1 函数的值, 作为所述第 1信道的信道序号; 所述第 1函数以 SSID为自变量; 所述第四确定单元具体用于: 在第 n-1信道不可用的情况下, 将, 自变量 的值为所述目标接入点的 SSID时第 n函数的值, 作为所述第 n信道的信道序 号; 所述第 n函数以 SSID为自变量;
所述预定规则具体为: 根据第 1函数至第 n函数分别确定第 1信道至第 n 信道的信道号。
结合第四方面的第七种可能的实现方式,在第八种可能的实现方式中, 所 述第 1函数为 S1= (hash(SSID) mod K) + 1 ; 所述第 η函数为 Sn = (Sn4 + a) mod K +l ;
其中, S n4为第 η-1函数, a为预设常数; 所述 hash(SSID)是指对 SSID进 行哈希运算; mod为求模运算符。
第五方面, 本发明实施例提供一种无线保真 WiFi网络接入系统, 包括: 本发明实施例提供的站点, 和本发明实施例提供的接入点。
由上述技术方案可知, 本发明实施例提供的无线保真网络中扫描接入点、 信道选择方法、 设备及系统, STA根据与目标接入点 AP的服务集标识 SSID 相关的预设规则确定 WiFi网络中的第 1信道, 在第 1信道上进行扫描, 以便 当具有 SSID的目标 AP以预设规则确定并使用第 1信道时, 扫描到目标 AP。 由于 STA根据与目标 AP的 SSID相关的预设规则确定第 1信道, 该目标 AP 在选择信道时也根据 SSID通过相同的预设规则确定第 1信道, 则当目标 AP 使用该第 1信道时, STA可以在信道扫描时快速扫描到该目标 AP, 扫描过程 具有针对性, 大大提高了扫描效率。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作一筒单地介绍, 显而易见地, 下面描 述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出 创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例提供的一种无线保真 WiFi网络中扫描接入点的方法 流程图;
图 2为本发明实施例提供的另一种无线保真 WiFi网络中扫描接入点的方 法流程图;
图 3为本发明实施例提供的再一种无线保真 WiFi网络中扫描接入点的方 法流程图;
图 4为本发明实施例提供的一种无线保真 WiFi网络中接入点 AP选择信 道的方法流程图;
图 5为本发明实施例提供的另一种无线保真 WiFi网络中接入点 AP选择 信道的方法流程图;
图 6为本发明实施例提供的再一种无线保真 WiFi网络中接入点 AP选择 信道的方法流程图;
图 7为本发明实施例提供的一种用于在无线保真 WiFi网络中扫描接入点 的站点结构示意图;
图 8为本发明实施例提供的另一种用于在无线保真 WiFi网络中扫描接入 点的站点结构示意图;
图 9为本发明实施例提供的再一种用于在无线保真 WiFi网络中扫描接入 点的站点结构示意图;
图 10为本发明实施例提供的一种无线保真 WiFi网络中的接入点结构示意 图;
图 11为本发明实施例提供的另一种无线保真 WiFi网络中的接入点结构示 意图;
图 12为本发明实施例提供的再一种无线保真 WiFi网络中的接入点结构示 意图;
图 13为本发明实施例提供的无线保真 WiFi网络接入系统结构示意图。 具体实施方式 为使本发明实施例的目的、技术方案和优点更加清楚, 下面将结合本发明 实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。基于本发明中 的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其 他实施例, 都属于本发明保护的范围。
图 1为本发明实施例提供的一种无线保真 WiFi网络中扫描接入点的方法 流程图。 如图 1所示, 本实施例提供的扫描接入点方法具体可以应用于 WiFi 网络中站点 STA对接入点 AP的扫描过程。 本实施例提供的无线保真 WiFi网 络中扫描接入点的方法可以通过 STA来执行。
本实施例提供的无线保真 WiFi网络中扫描接入点的方法具体包括: 步骤 A10、 站点根据与目标接入点 AP的服务集标识 SSID相关的预设规 则确定所述 WiFi网络中的第 1信道;
步骤 A20、 所述站点在所述第 1信道上进行扫描, 以便当所述目标 AP以 所述预设规则确定并使用所述第 1信道时, 所述站点扫描到所述目标 AP。 具体地, WiFi网络可以划分为多个 WiFi子网络, 每个 WiFi子网络具有 一个 SSID ( Service Set Identifier, 服务集标识 ) , 例如自己设置的 WiFi子网 络可以命名为 Home, 运营商设置的 WiFi子网络可以命名为 ChinaNet, Home 和 ChinaNet即为 WiFi子网络的 SSID。每个 WiFi子网络中可以设置有一个或 多个 AP,属于同一 WiFi子网络的 AP的 SSID与该 WiFi子网络的 SSID相同。
STA具体可以为设置有 WiFi模块的终端,该终端可以为手机、平板电脑、 笔记本电脑或个人计算机等。 STA通过 WiFi子网络的 SSID来搜索该 WiFi子 网络, STA在搜索 WiFi子网络的过程中, 需要扫描该 WiFi子网络的 AP, 则 该 AP为目标 AP。
WiFi网络的频段有两个, 一个是 2.4G的频段, 一个是 5G的频段。 每个 频段根据国际标准组织的统一规定又被划分成若干个信道,每个信道具有一个 信道号以标识该信道。
与 SSID相关的预设规则具体可以为 SSID与第 1信道映射关系,不同 SSID 对应的第 1信道可以不同, 即通过 SSID即可确定第 1信道。 该预设规则也可 以为 SSID与优先级列表的对应关系, 优先度列表中包含有 WiFi网络中 K个 信道的信道序号及每个信道序号对应的优先度, 可以根据 SSID确定优先级列 表, 并根据优先度确定第 1信道, 例如将优先度最高的信道确定为第 1信道。 该预设规则还可以是预设算法, 通过该预设算法可以将 SSID转换为信道号, 该转换得到的信道号对应的信道即为第 1信道。
在建设网络时, AP根据与自身的 SSID相关的预设规则确定第 1信道, 该预设规则与 STA确定第 1信道的方式相同。 AP判断该第 1信道是否可用, 若可用, 则使用该第 1信道。 AP使用该第 1信道时, STA在第 1信道上进行 扫描, 即可扫描到该 AP。 STA在第 1信道上扫描到目标 AP后, 可以建立与 该目标 AP的连接。
本实施例提供的无线保真 WiFi网络中扫描接入点的方法, STA根据与目 标接入点 AP的服务集标识 SSID相关的预设规则确定 WiFi网络中的第 1信道, 在第 1信道上进行扫描, 以便当具有 SSID的目标 AP以预设规则确定并使用 第 1信道时, 扫描到目标 AP。 由于 STA根据与目标 AP的 SSID相关的预设 规则确定第 1信道, 该目标 AP在选择信道时也根据 SSID通过相同的预设规 则确定第 1信道, 则当目标 AP使用该第 1信道时, STA可以在第一次信道扫 描时扫描到该目标 AP, 扫描过程具有针对性, 大大提高了扫描效率。
图 2为本发明实施例提供的另一种无线保真 WiFi网络中扫描接入点的方 法流程图。 如图 2所示, 在本实施例中, 所述预设规则用于确定第 1信道至第 n信道;
所述方法还包括:
步骤 A30、 若在第 n-1信道上扫描不到所述目标 AP, 则按所述预设规则 确定所述 WiFi网络中的第 n信道;
步骤 A40、 在所述第 n信道上进行扫描, 以便当所述目标 AP以所述预设 规则确定并使用所述第 n信道时, 扫描到所述目标 AP; 或者
所述方法还包括:
若在第 n-1信道上扫描不到所述目标 AP, 则在根据所述预设规则确定的 第 n信道上进行扫描; 以便当所述目标 AP以所述预设规则确定并使用所述第 n信道时, 扫描到所述目标 AP;
其中, 所述 n为大于 1 , 小于或等于 K的整数; 所述 K为所述 WiFi网络 中的信道数。
具体地, 若 STA在第 n-1信道上扫描不到目标 AP, 根据预设规则确定第 n信道。 建设网络时, AP判断第 n-1信道不可用时, 也根据与自身的 SSID相 关的预设规则确定第 n信道。
STA根据与目标 AP的 SSID相关的预设规则确定第 n信道的实现方式可 以有多种, 可以在需要的时候即时通过预设规则将目标 AP的 SSID转换为第 n信道的信道号, 也可以根据目标 AP的 SSID获取预先保存好的优先级列表, 该优先级列表中包括多个信道的信道序号和每个信道序号对应的优先度。 例 如, 信道序号为 6的信道的优先度为 1 , 信道序号为 10的信道的优先度为 2 等。 则可以根据该优先级列表中的各个信道的优先度在确定第 n信道。 例如, 可以根据优先度从高到低来选择。
该优先级列表可以预先设置, 并将该优先级列表与 SSID的对应关系进行 存储。优先级列表与 SSID的对应关系可以存储在 STA本地,也可以存储在网 络服务器中, STA可以通过 SSID获取到与该 SSID对应的优先级列表。 优先 级列表也可以根据预设算法提前生成, 可以将 SSID作为该预设算法的一个参 数,根据不同的 SSID生成的优先级列表也不相同。把该优先级列表进行保存, 以便需要的时候即时通过 SSID获取。 优先级列表中可以包括优先度为 1的信 道的信道序号, 该优先度为 1的信道即为第 1信道, 第 1信道的确定方法与上 述实施例相同。 列表中也可以不包括优先度为 1的信道的信道序号, 即从优先 度为 2开始, 优先度为 2开始的信道即为第 2信道。
STA确定了第 n信道后, 在该信道上进行扫描, 若扫描到目标 AP, 则建 立与目标 AP的连接。 在实际应用过程中, 若在网络中的所有信道上都扫描过 后仍未扫描到该目标 AP, 则可以为用户反馈目标 AP扫描失败的指示信息。 STA也可以根据设置, 在预设数量的信道扫描后仍未扫描到该目标 AP时, 停 止确定和扫描第 n信道的处理流程。
在 AP和 STA都根据 SSID获取优先级列表,并根据该优先级列表选择信 道的实现方式中, 在建设网络时, AP判断第 n-1信道不可用, AP根据与自身 SSID对应的优先级列表来确定第 n信道。 AP可以根据优先级列表中优先度由 高到低进行选择, 如信道序号为 10的第 2信道的优先度为最高, 则 AP判断 该信道序号为 10的信道是否可用, 若可用, 则选择并使用该信道, 若不可用, 再判断优先度低一级的信道是否可用, 以此类推, 直到确定可用的信道为止。 在 STA扫描该 AP时, 首先根据与该 AP的 SSID对应的优先级列表中的优先 度由高到低来选择第 n信道, 如信道序号为 10的第 2信道的优先度为最高, 贝' J STA在信道序号为 10的信道上扫描, 若扫描到该 AP, 则与该 AP建立连 接, 若扫描不到该 AP, 则将在优先度低一级的信道上进行扫描, 以此类推, 直到扫描到该 AP为止。
在实际应用中, AP也可以将优先级列表显示给有权限对 AP进行配置的 用户, 以供用户根据该优先级列表选择对 AP的信道进行配置。
STA确定第 n信道的方法与 AP确定第 n信道的方法相同, 使得 STA对 AP的扫描过程具有针对性, 进一步提高了扫描效率。
在本实施例中, 在步骤 A10, 所述根据与目标接入点 AP 的服务集标识
SSID相关的预设规则确定所述 WiFi网络中的第 1信道之前, 还可以包括: 步骤 A50、 获取所在地的国家码信息;
相应地, 步骤 A10, 所述根据与目标接入点 AP的服务集标识 SSID相关 的预设规则确定所述 WiFi网络中的第 1信道, 具体可以包括:
根据所述国家码信息和所述预设规则确定所述第 1信道。 具体地, 每个国家在信道的使用上可能不同, 例如, 信道的数量为 14个, 信道号为 1-14, 有的国家可能使用信道号为 1-13的信道, 有的国家可能使用 信道号为 1-11的信道。对于同一 SSID ,对不同国家确定的第 1信道可以不同。 将国家码信息作为确定第 1信道过程中所参考的因素, 在 STA选择信道进行 扫描时可以避免选择该国家不使用的信道,提高了信道确定的准确性, 进一步 提高了扫描效率。
在本实施例中,步骤 A10,所述根据与目标接入点 AP的服务集标识 SSID 相关的预设规则确定所述 WiFi网络中的第 1信道具体为:
将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 其中, 所述优先级列表与所述目标 AP的 SSID相对应, 保存有所述 WiFi 网络中 K个信道的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi网络中信道的个数。
在本实施例中, 所述预设规则为:
按照优先度由高到低的顺序, 依次确定第 1信道至第 K信道的信道号; 步骤 A10, 所述根据与目标接入点 AP的服务集标识 SSID相关的预设规 则确定所述 WiFi网络中的第 1信道具体为:
将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 其中, 所述优先级列表与所述目标 AP的 SSID相对应, 保存有所述 WiFi 网络中 K个信道的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi网络中信道的个数。
具体地, 可以预设信道号与信道序号的映射关系, 以使得信道序号可以映 射到一个信道。 例如, 信道序号 6可以直接映射到信道号为 6的信道。
在本市实例中, 所述预设规则为:
按照优先度由高到低的顺序, 依次确定第 1信道至第 n信道的信道号; 步骤 A10, 所述根据与目标接入点 AP的服务集标识 SSID相关的预设规 则确定所述 WiFi网络中的第 1信道具体为:
将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 步骤 A30,所述按所述预设规则确定所述 WiFi网络中的第 n信道具体为: 确定所述优先级列表中, 除第 1信道至第 n-1信道对应的序号外, 优先度 最高的信道序号对应的所述第 n信道; 其中, 所述优先级列表与所述接入点的 SSID相对应, 保存有所述 WiFi 网络中 K个信道的信道序号及每个信道序号对应的优先度。
在本实施例中, 所述与所述目标接入点的 SSID相关的预设规则为: 根据以 SSID为自变量的函数确定所述第 1信道的信道序号;
步骤 A10, 所述根据与目标接入点 AP的服务集标识 SSID相关的预设规 则确定所述 WiFi网络中的第 1信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述函数的值, 作为所 述第 1信道的信道序号。
具体地, 以 SSID为自变量的函数可以为:
i § i = (hash (SSID ) mod K ) + 1
Figure imgf000018_0001
其中, a为预设常数, a的取值范围根据 K的不同而有所不同, 当 K=13 时, l<=a<=13且 a!=12, (! =表示不等于) 。
具体地, 哈希 hash运算可以将任意长度的二进制值映射为固定长度的较 小二进制值, 这个二进制值称为哈希值。 MD5 ( Message-Digest Algorithm 5 ) 为消息摘要算法, 是 hash运算的一种, 通过该 MD5运算, 可以把一个任意长 度的字符串变换成一定长的十六进制数字串。通常该一定长的十六进制数字串 为 128位的十六进制数字串。 通过 MD5运算可以将 SSID转换成 128位的十 六进制数字串。 Mod具体为取模运算。 K为 STA所在地所使用的信道的数量。 通过 hash运算对 SSID进行处理时, 可以预先将 SSID转换为二进制值。
实际应用过程中, 通过 MD5运算可以将 SSID转换成 128位的十六进制 数字串, 可以将 128位的十六进制数字串全部用于上述公式进行计算, 也可以 选择部分位数来进行计算, 例如选择后 64位, 或者后 32位, 或者中间 64位, 或者中间 32位等。在上述计算过程中, 除了使用 MD5运算, 也可以采用其他 hash运算来实现。 本实施例提供了一种计算第 1信道至第 K信道的信道序号 的方法,但是本领域技术人员可以通过其他算法来实现,本发明并不以此为限。
在本实施例中, 所述以 SSID为自变量的函数为: S1= (hash(SSID) mod K) 其中, K为所述 WiFi网络中的信道个数; 所述 hash(SSID)是指对 SSID 进行哈希运算; mod为求模运算符。
在本实施例中, 所述预设规则为:
根据以 SSID为自变量的第 1函数至第 n函数分别确定第 1信道至第 n信 道的信道序号;
步骤 A10, 所述根据与目标接入点 AP的服务集标识 SSID相关的预设规 则确定所述 WiFi网络中的第 1信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述第 1函数的值, 作 为所述第 1信道的信道序号;
步骤 A30,所述按所述预设规则确定所述 WiFi网络中的第 n信道具体为: 将, 所述自变量的值为所述目标接入点的 SSID时所述第 n函数的值, 作 为所述第 n信道的信道序号。
在本实施例中, 所述第 1函数为 S1= (hash(SSID) mod K) + 1 ; 所述第 η函 数为 sn = (Sn-1 + a) mod K +l;
其中, S n4为第 n-1函数, a为预设常数; 所述 hash(SSID)是指对 SSID 进行哈希运算; mod为求模运算符。
例如, SSID为 ChinaNet, K为 13 , a为 5时, 通过上述公式可以得到以 下结果: S1 = 6; S2 = 12; S3 = 5; S4 = 11 ; S5 = 4; S6 = 10; S7 = 3; S8 = 9; S9 = 2; S10 = 8; Sl l = 1 ; S12 = 7; S13 = 13。
在本实施例中, 所述哈希运算为 MD5、 SHA ( Secure Hash Algorithm, 安 全散列算法 ) 1、 SHA128或 SHA256运算。
在本实施例中, 步骤 A20, 所述在所述第 1信道上进行扫描具体为: 在所述第 1信道上发送携带有所述目标 AP的 SSID的扫描请求帧; 所述扫描到所述目标 AP是指: 接收到对所述扫描请求帧的扫描响应帧。 具体地, STA可以通过多种方式进行 AP的扫描,在一种实现方式中, STA 可以主动在第 1信道发送扫描请求帧( probe request frame ) , 该扫描请求帧中 携带有目标 ΑΡ的 SSID。使用该第 1信道的 AP接收到该扫描请求帧时, 判断 该扫描请求帧中的 SSID与自身的 SSID是否相同, 若相同, 则返回扫描响应 帧( probe response frame )。 当 STA接收到该扫描响应帧时, 说明扫描到该目 标 AP, 即可与该 AP建立连接。 若 STA没有接收到扫描响应帧, 说明使用该 第 1信道的 AP并不是目标 AP。
在本实施例中, 步骤 A20, 所述在所述第 1信道上进行扫描具体为: 对所述第 1信道进行监听;
所述扫描到所述目标 AP是指: 在所述第 1 信道上监听到包含所述目标 AP的 SSID的信标帧。
对所述第 1信道进行监听, 当监听到第一信标帧时, 判断所述第一信标帧 中携带的 SSID与所述目标 AP的 SSID是否相同,若相同,则扫描到所述目标 AP。
在另一种实现方式中, STA对第 1信道进行监听, 使用该第 1信道的 AP 会周期性广播第一信标帧, 该第一信标帧内携带有发送该第一信标帧的 AP的 SSID, STA当监听到使用该第 1信道的 AP发送的第一信标帧时, STA提取 第一信标帧中的 SSID, 判断该 SSID是否为目标 AP的 SSID, 若是, 则说明 该 AP即为目标 AP, 若不是, 则说明该 AP并不是目标 AP。 具体地, 信道具 有一定的频率范围, STA对第 1信道进行监听的过程可以为对该频率范围的 信号的接收过程。
在实际应用中, STA在第 n信道上进行扫描的过程也可以参照上述两种 方式, 在此不再赘述。
在本实施例中, 步骤 A50, 所述获取所在地的国家码信息, 具体包括: 接收任一 AP发送的第二信标帧, 从所述第二信标帧中提取所述国家码信 息。
信标帧中还可以携带国家码信息, STA可以对所在地的任一 AP进行监听, 以获取该国家码信息。
在实际应用中, 获取国家码信息的方式可以为多种。 例如, STA 为手机 时, 可以通过接收蜂窝网中基站发送的广播信息获取该国家码信息。 当 STA 中设置有 GPS ( Global Positioning System, 全球定位系统)模块, 可以通过 GPS模块获取地理位置信息,再根据该地理位置信息确定所在国家, 以获取该 国家码信息。 用户还可以手动输入当前的位置信息, 以使得 STA根据该输入 的位置信息获取该国家码信息。
图 3为本发明实施例提供的再一种无线保真 WiFi网络中扫描接入点的方 法流程图。 结合图 3对 WiFi网络中 STA扫描目标 AP的过程进行详细描述。 STA首先获取所在地的国家码信息, 根据国家信息和与目标 AP的 SSID 相关的预设规则确定第 i信道, i从 1到 Κ, K为 WiFi网络中的信道数。 STA 在第 i信道上扫描, 若扫描到目标 AP, 则与目标 AP建立连接, 若扫描不到目 标 AP, 则将 i的值加 1 , 在 i的值加 1后的第 i信道上扫描, 直到在 K个信道 上都扫描过为止。 若在 K个信道上都扫描过仍未扫描到目标 AP, 则结束该扫 描流程。
图 4为本发明实施例提供的一种无线保真 WiFi网络中接入点 AP选择信 道的方法流程图。 如图 4所示, 本实施例提供的无线保真 WiFi网络中接入点 AP选择信道的方法具体可以应用于网络建设时 AP选择信道的过程, 其具体 实现过程, 具体可以参照上述实施例的描述, 在此不再赘述。 本实施例提供的 无线保真 WiFi网络中接入点 AP选择信道的方法可以通过 AP来执行。
本实施例提供的无线保真 WiFi网络中接入点 AP选择信道的方法具体包 括:
步骤 B10、 根据与所述 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道;
步骤 B20、 判断所述第 1信道是否可用, 若所述第 1信道可用, 则使用所 述第 1信道, 以便站点以所述预设规则确定并扫描所述第 1信道时,扫描到所 述 AP。
本实施例提供的无线保真 WiFi网络中接入点 AP选择信道的方法, AP根 据与 AP的服务集标识 SSID相关的预设规则确定 WiFi网络中的第 1信道,判 断第 1信道是否可用, 若第 1信道可用, 则使用第 1信道。 由于 AP在选择信 道时根据与自身的 SSID相关的预设规则确定第 1信道, 站点 STA也根据与 AP的 SSID相关的预设规则确定第 1信道, 则当目标 AP使用该第 1信道时, STA可以在第一次信道扫描时扫描到该目标 AP, 扫描过程具有针对性, 大大 提高了扫描效率。
图 5为本发明实施例提供的另一种无线保真 WiFi网络中接入点 AP选择 信道的方法流程图。 如图 5所示, 在本实施例中, 所述预设规则用于确定第 1 信道至第 n信道;
所述方法还包括:
步骤 B30、 若第 n-1信道不可用, 则所述 AP根据所述预设规则确定所述 WiFi网络中的第 n信道;
步骤 B40、 判断所述第 n信道是否可用, 若可用, 则使用第 n信道, 以便 所述站点以所述预设规则确定并扫描所述第 n信道时, 扫描到所述 AP; 或者 所述方法还包括:
若第 n-1信道不可用,则判断根据所述预设规则确定的第 n信道是否可用, 若可用, 则使用第 n信道, 以便站点以所述预设规则确定并扫描所述第 n信道 时, 扫描到所述 AP;
其中, 所述 n为大于 1 , 小于或等于 K的整数; 所述 K为所述 WiFi网络 中的信道数。
具体地, AP可以根据该信道的占用情况判断某个信道是否可用。 例如在 第 1信道上监听到了其他 AP或 STA的信号, 则认为该第 1信道已被占用了, 那么开始尝试第 2信道, 以此类推。 直到找到一个未被占用的信道为止。 若所 有的信道均为占用, 则使用被占用情况最轻的信道,或者所有的信道均被占用 且占用情况都一样的话, 则使用第 1信道。判断信道是否可以还可以考虑该信 道上受到其他信号的干扰等因素。 本发明对判断信道是否可用不做具体限定, 可根据现有技术进行判断。
STA确定第 n信道的方法可以依据 AP确定第 n信道的方法, 使得 STA 对 AP的扫描过程具有针对性, 进一步提高了扫描效率。
在本实施例中, 在步骤 B10, 所述根据与所述 AP的 SSID相关的预设规 则确定所述 WiFi网络中的第 1信道之前, 还可以包括:
步骤 B50、 获取所在地的国家码信息;
相应地, 步骤 B10, 所述根据与所述 SSID相关的预设规则确定所述 WiFi 网络中的第 1信道, 具体可以包括:
根据所述国家码信息和所述预设规则确定所述第 1信道。
将国家码信息作为确定第 1信道过程中所参考的因素, 在 AP选择信道时 可以避免选择该国家不使用的信道, 提高了信道确定的准确性。
在本实施例中, 步骤 B10, 所述根据与所述 AP的服务集标识 SSID相关 的预设规则确定所述 WiFi网络中的第 1信道为:
将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 其中, 所述优先级列表与所述 AP的 SSID相对应,保存有所述 WiFi网络 中 K个信道的信道序号及每个信道序号对应的优先度; 所述 Κ为所述 WiFi 网络中信道的个数。
通过优先级列表的设置, 可以根据优先度方便地进行信道的确定。
在本市实例中, 所述预设规则为:
按照优先度由高到低的顺序, 依次确定第 1信道至第 n信道的信道号; 步骤 B10 , 所述根据与所述 AP的服务集标识 SSID相关的预设规则确定 所述 WiFi网络中的第 1信道为:
将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 步骤 B30 , 所述 AP根据所述预设规则确定所述 WiFi网络中的第 n信道 具体为:
所述 AP确定所述优先级列表中,除第 1信道至第 n-1信道对应的序号外, 优先度最高的信道序号对应的所述第 n信道;
其中, 所述优先级列表与所述接入点的 SSID相对应, 保存有所述 WiFi 网络中 K个信道的信道序号及每个信道序号对应的优先度。
在本市实例中, 所述与所述 AP的 SSID相关的预设规则为:
根据以 SSID为自变量的函数确定所述第 1信道的信道序号;
步骤 B10 , 所述根据与所述 AP的服务集标识 SSID相关的预设规则确定 所述 WiFi网络中的第 1信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述函数的值, 作为所 述第 1信道的信道序号。
在本实施例中, 所述以 SSID为自变量的函数为: S1= (hash(SSID) mod K)
+ 1 ;
其中, Si为第 1信道的信道序号; K为所述 WiFi网络中的信道个数; 所 述 hash(SSID)是指对 SSID进行哈希运算; mod为求模运算符。
在本实施例中, 所述预设规则为:
根据以 SSID为自变量的第 1函数至第 n函数分别确定第 1信道至第 n信 道的信道序号;
步骤 B10 , 所述根据与所述 AP的服务集标识 SSID相关的预设规则确定 所述 WiFi网络中的第 1信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述第 1函数的值, 作 为所述第 1信道的信道序号;
步骤 B30, 所述 AP根据所述预设规则确定所述 WiFi网络中的第 n信道 具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述第 n函数的值, 作 为所述第 n信道的信道序号。
在本实施例中, 所述第 1函数为 S1= (hash(SSID) mod K) + 1 ; 所述第 η函 数为 sn = (Sn-1 + a) mod K +l ;
其中, S n4为第 n-1函数, a为预设常数; 所述 hash(SSID)是指对 SSID 进行哈希运算; mod为求模运算符。
在本实施例中, 在步骤 B20, 所述判断所述第 1信道是否可用, 若所述第
1信道可用, 则使用所述第 1信道之后, 还可以包括:
步骤 B60、接收站点 STA在所述第 1信道上发送的携带有目标 AP的 SSID 的扫描请求帧, 判断所述目标 AP的 SSID与所述 AP的 SSID是否相同, 若相 同, 则向所述 STA发送扫描响应帧。
当网络建设好后, AP使用了某个信道, 例如为第 1信道。 在 STA扫描目 标 AP 的过程中, STA主动在第 1 信道上发送扫描请求帧 (probe request frame ) ,该扫描请求帧中携带有目标 ΑΡ的 SSID。 AP接收到该扫描请求帧时, 判断该扫描请求帧中的 SSID与自身的 SSID是否相同, 若相同, 则返回扫描 响应帧 ( probe response frame ) 。 当 STA接收到该扫描响应帧时, 该 AP即为 目标 AP, 即可与该目标 AP建立连接。 若 STA没有接收到扫描响应帧, 说明 该 AP并不是目标 AP。
在实施例中, 在步骤 B20, 所述判断所述第 1信道是否可用, 若所述第 1 信道可用, 则使用所述第 1信道之后, 还可以包括:
步骤 B70、 将携带有所述 AP的 SSID的信标帧在所述第 1信道上进行广 播, 以使 STA监听到所述信标帧。
当网络建设好后, AP使用了某个信道, 例如使用第 1信道。 AP可以通过 该第 1信道将携带有自身的 SSID信标帧进行广播。 以使得 STA可以在第 1 信道上对该信标帧进行监听, 以判断该 AP是否为目标 AP。
值得注意的是, 步骤 B60和步骤 B70并不具有必然的时序关系。
图 6为本发明实施例提供的再一种无线保真 WiFi网络中接入点 AP选择 信道的方法流程图。 结合图 6对 WiFi网络中 AP选择信道的过程进行详细描 述。
AP首先获取所在地的国家码信息, 根据国家信息和与自身的 SSID相关 的预设规则确定第 i信道, i从 1到 Κ, K为 WiFi网络中的信道数。 AP判断 第 i信道是否可用, 若可用, 则使用该信道, 若不可用则将 i的值加 1 , 再判 断 i的值加 1后的第 i信道是否可用, 直到在 K个信道上都判断过为止。 若在 K个信道上均不可用, 则结束该信道选择流程。 可以进一步根据 K个信道的 占用情况选择使用的信道。
图 7为本发明实施例提供的一种用于在无线保真 WiFi网络中扫描接入点 的站点结构示意图。 如图 7所示, 本实施例提供的站点 STA81具体可以实现 本发明任意实施例提供的扫描接入点方法的各个步骤, 其具体实现过程, 在此 不再赘述。本实施例提供的站点 STA81具体包括第一确定单元 11和第一扫描 单元 12。 第一确定单元 11用于根据与目标接入点 AP82的服务集标识 SSID 相关的预设规则确定所述 WiFi网络中的第 1信道。第一扫描单元 12用于在所 述第 1信道上进行扫描, 以便当所述目标 AP82以所述预设规则确定并使用所 述第 1信道时, 扫描到所述目标 AP82。
本实施例提供的站点 STA81 , 第一确定单元 11根据与目标接入点 AP82 的服务集标识 SSID相关的预设规则确定 WiFi网络中的第 1信道。 第一扫描 单元 12在第 1信道上进行扫描,以便当具有 SSID的目标 AP82以预设规则确 定并使用第 1信道时,扫描到目标 AP82。由于 STA81根据与目标 AP82的 SSID 相关的预设规则确定第 1信道, 该目标 AP82在选择信道时也根据 SSID通过 相同的预设规则确定第 1信道, 则当目标 AP82使用该第 1信道时, STA81可 以在第一次信道扫描时扫描到该目标 AP82, 扫描过程具有针对性, 大大提高 了扫描效率。
图 8为本发明实施例提供的另一种用于在无线保真 WiFi网络中扫描接入 点的站点结构示意图。 如图 8所示, 所述预设规则用于确定第 1信道至第 n 信道; 进一步地, 在本实施例中, 该站点 STA81还可以包括第二确定单元 13 和第二扫描单元 14。 第二确定单元 13用于若在第 n-1信道上扫描不到所述目 标 AP82,则按所述预设规则确定所述 WiFi网络中的第 n信道。第二扫描单元 14用于在所述第 n信道上进行扫描 ,以便当所述目标 AP82以所述预设规则确 定并使用所述第 n信道时, 扫描到所述目标 AP82。 或者, 所述站点 STA81还 包括第三扫描单元, 第三扫描单元用于若在第 n-1 信道上扫描不到所述目标 AP82, 则在根据所述预设规则确定的第 n信道上进行扫描; 以便当所述目标 AP82以所述预设规则确定并使用所述第 n信道时,扫描到所述目标 AP82,其 中, 所述 n为大于 1 , 小于或等于 K的整数; 所述 K为所述 WiFi网络中的信 道数。
STA81确定第 n信道的方法与 AP82确定第 n信道的方法相同,使得 STA81 对 AP82的扫描过程具有针对性, 进一步提高了扫描效率。
在本实施例中, 该站点 STA81还可以包括第一获取单元 15 , 第一获取单 元 15用于获取所在地的国家码信息。相应地, 所述第一确定单元 11具体用于 根据所述国家码信息和所述预设规则确定所述第 1信道。将国家码信息作为确 定第 1信道过程中所参考的因素, 在 STA81选择信道进行扫描时可以避免选 择该国家不使用的信道, 提高了信道确定的准确性, 进一步提高了扫描效率。
在本实施例中, 该站点 STA81还可以包括存储单元 16, 存储单元 16用 于存储优先级列表, 所述优先级列表与所述目标 AP82的 SSID相对应, 保存 有所述 WiFi网络中 K个信道的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi网络中信道的个数。所述第一确定单元 11具体用于从所述优先 级列表中确定优先度最高的信道序号,该优先度最高的信道序号对应的信道为 所述第 1信道。
在本实施例中, 该站点 STA81还可以包括存储单元 16, 存储单元 16用 于存储优先级列表, 所述优先级列表与所述目标 AP82的 SSID相对应, 保存 有所述 WiFi网络中 K个信道的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi网络中信道的个数。所述第一确定单元 11具体用于从所述优先 级列表中确定优先度最高的信道序号对应的所述第 1信道。所述第二确定单元 13具体用于在第 n-1信道上扫描不到所述目标 AP82的情况下,根据所述优先 级列表, 从除第 1信道至第 n-1信道对应的信道序号之外的信道序号中, 确定 优先度最高的信道序号对应的第 n信道。 其中, 所述 n为大于 1 , 小于或等于 K的整数。
在本实施例中,所述与所述目标接入点 AP82的 SSID相关的预设规则为: 根据以 SSID为自变量的函数确定所述第 1信道的信道序号。 所述第一确定单 元 11具体用于: 将, 所述自变量的值为所述目标接入点 AP82的 SSID时所述 函数的值, 作为所述第 1信道的信道序号。
在本实施例中, 所述以 SSID为自变量的函数为: S1= (hash(SSID) mod K) + 1 ; 其中, Κ为所述 WiFi网络中的信道个数; 所述 hash(SSID)是指对所述目 标 AP82的所述 SSID进行哈希运算; mod为求模运算符。
在本实施例中, 所述预设规则为: 根据以 SSID为自变量的第 1函数至第 n函数分别确定第 1信道至第 n信道的信道序号。 所述第一确定单元 11具体 用于: 将, 所述自变量的值为所述目标接入点 AP82的 SSID时所述第 1函数 的值,作为所述第 1信道的信道序号。所述第二确定单元 13具体用于在第 n-1 信道上扫描不到所述目标 AP82的情况下, 将, 所述自变量的值为所述目标接 入点 AP82的 SSID时所述第 n函数的值, 作为所述第 n信道的信道序号。
在本实施例中, 所述第 1函数为 S1= (hash(SSID) mod K) + 1 ; 所述第 η函 数为 Sn = (Sn4 + a) mod K +l ; 其中, S n4为第 n-1函数, a为预设常数; 所述 hash(SSID)是指对 SSID进行哈希运算; mod为求模运算符。
在本实施例中, 所述第一扫描单元 12可以包括发送子单元 121和接收子 单元 122。 发送子单元 121用于在所述第 1信道上发送携带有所述目标 AP82 的 SSID的扫描请求帧。 接收子单元 122用于当接收到扫描响应帧时, 则扫描 到所述目标 AP82。
在本实施例中, 所述第一扫描单元 12还可以用于对所述第 1信道进行监 听, 当监听到第一信标帧时, 判断所述第一信标帧中携带的 SSID与所述目标 AP82的 SSID是否相同, 若相同, 则扫描到所述目标 AP82。
在本实施例中, 所述第一获取单元 15还可以用于接收任一 AP82发送的 第二信标帧, 从所述第二信标帧中提取所述国家码信息。
图 9为本发明实施例提供的再一种用于在无线保真 WiFi网络中扫描接入 点的站点结构示意图。 如图 9所示, 该站点 STA81包括: 存储器 32, 用于存 储与目标接入点 AP82的服务集标识 SSID相关的预设规则;
处理器 31 , 用于根据所述存储器存储的预设规则确定 WiFi网络中的第 1 信道;
接收器 33 , 用于通过天线 35在所述第 1信道上进行扫描, 以便当所述目 标 AP82以所述预设规则确定并使用所述第 1信道时,扫描到所述目标 AP82。 在本发明的一个实施例中,在所述第 1信道上进行扫描的工作还可由发送 器 34, 接收器 33和天线 35完成。 也即由发送器 33通过天线发送携带目标 AP82的 SSID的侦测信息,在接收器 33通过天线 35接收到目标 AP82的响应 时, 表明扫描到所述目标 AP82。
在本发明的一个实施例中, 所述预设规则用于确定第 1信道至第 n信道。 处理器 31用于若在第 n-1信道上扫描不到所述目标 AP82,则按所述预设规则 确定所述 WiFi网络中的第 n信道。 接收器 33用于通过天线 35在所述第 n信 道时, 扫描到所述目标 AP82。 或者, 处理器 31用于若在第 n-1信道上扫描不 到所述目标 AP82, 则在根据所述预设规则确定的第 n信道上进行扫描; 以便 当所述目标 AP82以所述预设规则确定并使用所述第 n信道时, 扫描到所述目 标 AP82; 其中, 所述 n为大于 1 , 小于或等于 K的整数; 所述 K为所述 WiFi 网络中的信道数。
在本发明的一个实施例中,在所述第 n信道上进行扫描的工作还可由发送 器 34, 接收器 33和天线 35完成。 也即由发送器 33通过天线发送携带目标 AP82的 SSID的侦测信息,在接收器 33通过天线 35接收到目标 AP82的响应 时, 表明扫描到所述目标 AP82。
在本发明的一个实施例中,接收器 33通过天线 35接收到任一 AP发送的 第二信标帧, 处理器 31用于从所述第二信标帧中提取国家码信息, 并根据所 述国家码信息和所述预设规则确定所述第 1信道。
在本发明的一个实施例中, 存储器 32中还存储有优先级列表, 所述优先 级列表与所述目标 AP82的 SSID相对应, 保存有所述 WiFi网络中 K个信道 的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi网络中信道的 个数。 处理器 31用于从优先级列表中确定优先度最高的信道序号, 该优先度 最高的信道序号对应的信道为所述第 1信道。
在本发明的一个实施例中, 存储器 32中还存储有优先级列表, 所述优先 级列表与所述目标 AP82的 SSID相对应, 保存有所述 WiFi网络中 K个信道 的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi网络中信道的 个数。 处理器 31用于从所述优先级列表中确定优先度最高的信道序号对应的 所述第 1信道, 在第 n-1信道上扫描不到所述目标 AP82的情况下, 根据所述 优先级列表, 从除第 1信道至第 n-1信道对应的信道序号之外的信道序号中, 确定优先度最高的信道序号对应的第 n信道; 其中, 所述 n为大于 1 , 小于或 等于所述 WiFi网络中信道的个数的整数。
在本发明的一个实施例中, 所述与所述目标接入点 AP82的 SSID相关的 预设规则为: 根据以 SSID为自变量的函数确定所述第 1信道的信道序号; 处 理器 31具体用于将,所述自变量的值为所述目标接入点 AP82的 SSID时所述 函数的值, 作为所述第 1信道的信道序号。
在本发明的一个实施例中, 根据以 SSID为自变量的第 1函数至第 n函数 分别确定第 1信道至第 n信道的信道序号; 处理器 31具体用于: 将, 所述自 变量的值为所述目标接入点 AP82的 SSID时所述第 1函数的值, 作为所述第 1信道的信道序号, 在第 n-1信道上扫描不到所述目标 AP82的情况下, 将, 所述自变量的值为所述目标接入点 AP82的 SSID时所述第 n函数的值, 作为 所述第 n信道的信道序号。
在本发明的一个实施例中, 处理器 31具体用于根据公式 S1= (hash(SSID) mod K) + 1确定所述第 1信道的信道序号, 在第 n-1信道上扫描不到所述目标 AP82的情况下, 根据公式 Sn = (Sn-1 + a) mod K +1确定第 η信道的信道序号。 其中, Si为第 1信道的信道序号, S n为第 n信道的信道序号, S n4为第 n-1信 道的信道序号, a 为预设常数; K 为所述 WiFi 网络中的信道个数; 所述 hash(SSID)是指对所述目标 AP82的所述 SSID进行哈希运算; mod为求模运 算符。
图 10为本发明实施例提供的一种无线保真 WiFi网络中的接入点结构示意 图。 如图 10所示, 本实施例提供的接入点 AP82具体可以实现本发明任意实 施例提供的接入点的信道选择方法的各个步骤,在此不再赘述。本实施例提供 的接入点 AP82具体包括第三确定单元 21和第一判断单元 22。 第三确定单元 21用于根据与所述 AP82的服务集标识 SSID相关的预设规则确定所述 WiFi 网络中的第 1信道。 第一判断单元 22用于判断所述第 1信道是否可用, 若所 述第 1信道可用, 则使用所述第 1信道, 以便站点 STA81以所述预设规则确 定并扫描所述第 1信道时, 扫描到所述接入点 AP82。
本实施例提供的接入点 AP82, 第三确定单元 21根据与 AP82的服务集标 识 SSID相关的预设规则确定 WiFi网络中的第 1信道。 第一判断单元 22判断 第 1信道是否可用, 若第 1信道可用, 则使用第 1信道。 由于 AP82在选择信 道时根据与自身的 SSID相关的预设规则确定第 1信道, STA81也根据与 AP82 的 SSID相关的预设规则确定第 1信道, 则当目标 AP82使用该第 1信道时, STA81可以在第一次信道扫描时扫描到该目标 AP82, 扫描过程具有针对性, 大大提高了扫描效率。
图 11为本发明实施例提供的另一种无线保真 WiFi网络中的接入点结构示 意图。 如图 11所示, 在本实施例中, 在本实施例中, 所述预设规则用于确定 第 1信道至第 n信道; 所述接入点 AP82还可以包括第四确定单元 23和第二 判断单元 24。 第四确定单元 23用于若第 n-1信道不可用, 则根据所述预设规 则确定所述 WiFi网络中的第 n信道。第二判断单元 24用于判断所述第 n信道 是否可用, 若可用, 则使用第 n信道, 以便所述站点 STA81以所述预设规则 确定并扫描所述第 n信道时,扫描到所述接入点 AP82。或者所述接入点 AP82 还包括第三判断单元, 第三判断单元用于判断根据所述预设规则确定的第 n 信道是否可用, 若可用, 则使用第 n信道, 以便站点 STA81以所述预设规则 确定并扫描所述第 n信道时, 扫描到所述 AP82。 其中, 所述 n为大于 1 , 小 于或等于所述 WiFi网络中信道的个数的整数。 STA81确定第 n信道的方法可 以依据 AP82确定第 n信道的方法,使得 STA81对 AP82的扫描过程具有针对 性, 进一步提高了扫描效率。
在本实施例中,该接入点 AP82还可以包括第二获取单元 25 , 第二获取单 元 25用于获取所在地的国家码信息。相应地,所述第三确定单元 21具体用于 根据所述国家码信息和所述预设规则确定所述第 1信道。将国家码信息作为确 定第 1信道过程中所参考的因素, 在 AP82选择信道时可以避免选择该国家不 使用的信道, 提高了信道确定的准确性。
在本实施例中, 该接入点 AP82 还可以包括存储单元 26。 所述存储单元 26用于存储优先级列表,所述优先级列表与所述接入点 AP82的 SSID相对应, 保存有所述 WiFi网络中 K个信道的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi网络中信道的个数。 所述第三确定单元 21具体用于从所 述优先级列表中确定优先度最高的信道序号;该优先度最高的信道序号对应的 信道为所述第 1信道。
在本实施例中, 该接入点 AP82 还可以包括存储单元 26。 所述存储单元 26用于存储优先级列表,所述优先级列表与所述接入点 AP82的 SSID相对应, 保存有所述 WiFi网络中 K个信道的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi网络中信道的个数。 所述第三确定单元 21具体用于确定 所述优先级列表中优先度最高的信道序号对应的所述第 1信道。所述第四确定 单元具体用于在第 n-1信道不可用的情况下, 确定所述优先级列表中, 除第 1 信道至第 n-1信道对应的信道序号之外,优先度最高的信道序号对应的第 n信 道。 其中, 所述 n为大于 1 , 小于或等于 K的整数。
在本实施例中, 所述第三确定单元 21具体用于: 将, 自变量的值为所述 目标接入点 AP82的 SSID时函数的值, 作为所述第 1信道的信道序号; 所述 函数以 SSID为自变量。
在本实施例中, 所述函数为: S1= (hash(SSID) mod K) + 1; 其中, Κ为所 述 WiFi网络中的信道个数; 所述 hash(SSID)是指对 SSID进行哈希运算; mod 为求模运算符。
在本实施例中, 所述第三确定单元 21具体用于: 将, 自变量的值为所述 目标接入点 AP82的 SSID时第 1函数的值, 作为所述第 1信道的信道序号; 所述第 1 函数以 SSID为自变量。 所述第四确定单元 23具体用于: 在第 n-1 信道不可用的情况下, 将, 自变量的值为所述目标接入点 AP82的 SSID时第 n函数的值, 作为所述第 n信道的信道序号; 所述第 n函数以 SSID为自变量。 所述预定规则具体为:根据第 1函数至第 n函数分别确定第 1信道至第 n信道 的信道号。
在本实施例中, 所述第 1函数为 S1= (hash(SSID) mod K) + 1 ; 所述第 η函 数为 Sn = (Sn4 + a) mod K +l ; 其中, S n4为第 n-1函数, a为预设常数; 所述 hash(SSID)是指对 SSID进行哈希运算; mod为求模运算符。
在本实施例中, 该接入点 AP82还可以包括扫描处理单元 27 ,扫描处理单 元 27用于接收站点 STA81在所述第 1信道上发送的携带有目标 AP82的 SSID 的扫描请求帧,判断所述目标 AP82的 SSID与所述自身的 SSID是否相同,若 相同, 则向所述 STA81发送扫描响应帧。
在本实施例中, 接入点 AP82还可以包括广播单元 28, 广播单元 28用于 将携带有所述自身的 SSID的信标帧在所述第 1信道上进行广播, 以使 STA81 监听到所述信标帧。 图 12为本发明实施例提供的再一种无线保真 WiFi网络中的接入点结构示 意图。 如图 12所示, 该接入点 AP82包括存储器 52, 用于存储与所述接入点 AP82的服务集标识 SSID相关的预设规则;
处理器 51 , 用于根据所述存储器存储的预设规则确定 WiFi网络中的第 1 信道, 判断所述第 1信道是否可用, 若所述第 1信道可用, 则使用所述第 1 信道, 以便站点 STA81以所述预设规则确定并扫描所述第 1信道时, 扫描到 所述接入点 AP82。
在本发明的一个实施例中 ,所述判断第 1信道是否可用的工作可以由处理 器 51、 接收器 53和天线 55完成。 接收器 53通过天线 55在所述第 1信道上 进行监听, 处理器 51根据监听到的信号判断所述第 1信道是否可用。
在本发明的一个实施例中, 使用第 1信道的所述 AP82被 STA81扫描到 过程还可以由发送器 54, 接收器 53和天线 55完成。 接收器 53通过天线 55 接收 STA81发送的携带有目标 AP82的 SSID的侦测信息, 判断该 SSID与自 身的 SSID是否相同, 若相同, 则发送器 54通过天线 55发送响应, 表明所述 AP82即为所述目标 AP82。
在本发明的一个实施例中, 所述预设规则用于确定第 1信道至第 n信道; 处理器 51用于若判断第 n-1信道不可用, 则根据所述预设规则确定所述 WiFi 网络中的第 n信道, 判断所述第 n信道是否可用, 若可用, 则使用第 n信道, 以便所述站点 STA81以所述预设规则确定并扫描所述第 n信道时, 扫描到所 述接入点 AP82,或者,处理器 51用于判断根据所述预设规则确定的第 n信道 是否可用, 若可用, 则使用第 n信道, 以便站点 STA81以所述预设规则确定 并扫描所述第 n信道时, 扫描到所述 AP82; 其中, 所述 n为大于 1 , 小于或 等于 K的整数; 所述 K为所述 WiFi网络中的信道数。
在本发明的一个实施例中,接收器 53通过天线 55接收到任一 AP发送的 第二信标帧, 处理器 51用于从所述第二信标帧中提取国家码信息, 并根据所 述国家码信息和所述预设规则确定所述第 1信道。
在本发明的一个实施例中, 存储器 52用于存储优先级列表, 所述优先级 列表与所述接入点 AP82的 SSID相对应, 保存有所述 WiFi网络中 K个信道 的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi网络中信道的 个数。 处理器 51具体用于从所述优先级列表中确定优先度最高的信道序号, 该优先度最高的信道序号对应的信道为所述第 1信道。
在本发明的一个实施例中, 存储器 52用于存储优先级列表, 所述优先级 列表与所述接入点 AP82的 SSID相对应, 保存有所述 WiFi网络中 K个信道 的信道序号及每个信道序号对应的优先度, 所述 K为所述 WiFi网络中信道的 个数。 处理器 51具体用于从所述优先级列表中确定优先度最高的信道序号对 应的所述第 1信道,以及在第 n-1信道不可用的情况下,根据所述优先级列表, 从除第 1信道至第 n-1信道对应的信道序号之外的信道序号中,确定优先度最 高的信道序号对应的第 n信道, 其中, 所述 n为大于 1 , 小于或等于所述 WiFi 网络中信道的个数的整数。
在本发明的一个实施例中, 处理器 51具体用于将, 自变量的值为所述目 标接入点 AP82的 SSID时函数的值, 作为所述第 1信道的信道序号; 所述函 数以 SSID为自变量。
在本发明的一个实施例中, 处理器 51具体用于将, 自变量的值为所述目 标接入点 AP82的 SSID时第 1函数的值, 作为所述第 1信道的信道序号; 所 述第 1函数以 SSID为自变量, 在第 n-1信道不可用的情况下, 将, 自变量的 值为所述目标接入点 AP82的 SSID时第 n函数的值, 作为所述第 n信道的信 道序号; 所述第 n函数以 SSID为自变量; 所述预定规则具体为: 根据第 1函 数至第 n函数分别确定第 1信道至第 n信道的信道号。
图 13为本发明实施例提供的无线保真 WiFi网络接入系统结构示意图。如 图 13所示,本实施例提供的无线保真 WiFi网络接入系统具体包括本发明任意 实施例提供的站点 STA81 , 和本发明任意实施例提供的接入点 AP82。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可 以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存 储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储 介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修 改, 或者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不 使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims

权利 要求 书
1、 一种无线保真 WiFi网络中扫描接入点的方法, 其特征在于, 包括: 站点根据与目标接入点 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道;
所述站点在所述第 1信道上进行扫描, 以便当所述目标 AP以所述预设规 则确定并使用所述第 1信道时, 所述站点扫描到所述目标 AP。
2、 根据权利要求 1所述的方法, 其特征在于, 所述预设规则用于确定第 1信道至第 n信道;
所述方法还包括:
若在第 n-1 信道上扫描不到所述目标 AP, 则按所述预设规则确定所述 WiFi网络中的第 n信道;
在所述第 n信道上进行扫描, 以便当所述目标 AP以所述预设规则确定并 使用所述第 n信道时, 扫描到所述目标 AP; 或者
所述方法还包括:
若在第 n-1信道上扫描不到所述目标 AP, 则在根据所述预设规则确定的 第 n信道上进行扫描; 以便当所述目标 AP以所述预设规则确定并使用所述第 n信道时, 扫描到所述目标 AP;
其中, 所述 n为大于 1 , 小于或等于 K的整数; 所述 K为所述 WiFi网络 中的信道数。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述根据与目标接入 点 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道之 前, 还包括:
获取所在地的国家码信息;
相应地, 所述根据与目标接入点 AP的服务集标识 SSID相关的预设规则 确定所述 WiFi网络中的第 1信道, 包括:
根据所述国家码信息和所述预设规则确定所述第 1信道。
4、 根据权利要求 1或 3所述的方法, 其特征在于, 所述根据与目标接入 点 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道具 体为: 将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 其中, 所述优先级列表与所述目标 AP的 SSID相对应, 保存有所述 WiFi 网络中 K个信道的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi网络中信道的个数。
5、 根据权利要求 2所述的方法, 其特征在于, 所述预设规则为: 按照优先度由高到低的顺序, 依次确定第 1信道至第 n信道的信道号; 所述根据与目标接入点 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道具体为:
将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 所述按所述预设规则确定所述 WiFi网络中的第 n信道具体为:
确定所述优先级列表中, 除第 1信道至第 n-1信道对应的序号外, 优先度 最高的信道序号对应的所述第 n信道;
其中, 所述优先级列表与所述接入点的 SSID相对应, 保存有所述 WiFi 网络中 K个信道的信道序号及每个信道序号对应的优先度。
6、 根据权利要求 1或 3所述的方法, 其特征在于, 所述与所述目标接入 点的 SSID相关的预设规则为:
根据以 SSID为自变量的函数确定所述第 1信道的信道序号;
所述根据与目标接入点 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述函数的值, 作为所 述第 1信道的信道序号。
7、 根据所述权利要求 6所述的方法, 其特征在于, 所述以 SSID为自变 量的函数为: S1= (hash(SSID) mod K) + 1 ;
其中, Κ为所述 WiFi网络中的信道个数; 所述 hash(SSID)是指对 SSID 进行哈希运算; mod为求模运算符。
8、 根据权利要求 2所述的方法, 其特征在于, 所述预设规则为: 根据以 SSID为自变量的第 1函数至第 n函数分别确定第 1信道至第 n信 道的信道序号;
所述根据与目标接入点 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道具体为: 将, 所述自变量的值为所述目标接入点的 SSID时所述第 1函数的值, 作 为所述第 1信道的信道序号;
所述按所述预设规则确定所述 WiFi网络中的第 n信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述第 n函数的值, 作 为所述第 n信道的信道序号。
9、 根据权利要求 8 所述的方法, 其特征在于, 所述第 1 函数为 S1=
(hash(SSID) mod K) + 1; 所述第 η函数为 Sn = (Sn4 + a) mod K +1;
其中, S n4为第 n-1函数, a为预设常数; 所述 hash(SSID)是指对 SSID 进行哈希运算; mod为求模运算符。
10、 根据权利要求 1-9任一所述的方法, 其特征在于, 所述在所述第 1信 道上进行扫描具体为:
在所述第 1信道上发送携带有所述目标 AP的 SSID的扫描请求帧; 所述扫描到所述目标 AP是指: 接收到对所述扫描请求帧的扫描响应帧。
11、 根据权利要求 1-9任一所述的方法, 其特征在于, 所述在所述第 1信 道上进行扫描具体为:
对所述第 1信道进行监听;
所述扫描到所述目标 AP是指: 在所述第 1 信道上监听到包含所述目标 AP的 SSID的信标帧。
12、 一种无线保真 WiFi网络中接入点 AP选择信道的方法, 其特征在于, 包括:
根据与所述 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中 的第 1信道;
判断所述第 1信道是否可用,若所述第 1信道可用,则使用所述第 1信道, 以便站点以所述预设规则确定并扫描所述第 1信道时, 扫描到所述 AP。
13、 根据权利要求 12所述的方法, 其特征在于, 所述预设规则用于确定 第 1信道至第 n信道;
所述方法还包括:
若第 n-1信道不可用, 则所述 AP根据所述预设规则确定所述 WiFi网络 中的第 n信道;
判断所述第 n信道是否可用, 若可用, 则使用第 n信道, 以便所述站点以 所述预设规则确定并扫描所述第 n信道时, 扫描到所述 AP; 或者
所述方法还包括:
若第 n-1信道不可用,则判断根据所述预设规则确定的第 n信道是否可用, 若可用, 则使用第 n信道, 以便站点以所述预设规则确定并扫描所述第 n信道 时, 扫描到所述 AP;
其中, 所述 n为大于 1 , 小于或等于 K的整数; 所述 K为所述 WiFi网络 中的信道数。
14、 根据权利要求 12或 13所述的方法, 其特征在于, 所述根据与所述 AP的 SSID相关的预设规则确定所述 WiFi网络中的第 1信道之前, 还包括: 获取所在地的国家码信息;
相应地, 所述根据与所述 SSID相关的预设规则确定所述 WiFi网络中的 第 1信道, 包括:
根据所述国家码信息和所述预设规则确定所述第 1信道。
15、 根据权利要求 12或 14所述的方法, 其特征在于, 所述根据与所述 AP的服务集标识 SSID相关的预设规则确定所述 WiFi网络中的第 1信道为: 将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 其中, 所述优先级列表与所述 AP的 SSID相对应,保存有所述 WiFi网络 中 K个信道的信道序号及每个信道序号对应的优先度; 所述 K为所述 WiFi 网络中信道的个数。
16、 根据权利要求 13所述的方法, 其特征在于, 所述预设规则为: 按照优先度由高到低的顺序, 依次确定第 1信道至第 n信道的信道号; 所述根据与所述 AP的服务集标识 SSID相关的预设规则确定所述 WiFi 网络中的第 1信道为:
将优先级列表中优先度最高的信道序号对应的信道确定为所述第 1信道; 所述 AP根据所述预设规则确定所述 WiFi网络中的第 n信道具体为: 所述 AP确定所述优先级列表中,除第 1信道至第 n-1信道对应的序号外, 优先度最高的信道序号对应的所述第 n信道;
其中, 所述优先级列表与所述接入点的 SSID相对应, 保存有所述 WiFi 网络中 K个信道的信道序号及每个信道序号对应的优先度。
17、 根据权利要求 12或 14所述的方法, 其特征在于, 所述与所述 AP的 SSID相关的预设规则为:
根据以 SSID为自变量的函数确定所述第 1信道的信道序号;
所述根据与所述 AP的服务集标识 SSID相关的预设规则确定所述 WiFi 网络中的第 1信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述函数的值, 作为所 述第 1信道的信道序号。
18、 根据权利要求 17所述的方法, 其特征在于, 所述以 SSID为自变量 的函数为: S1= (hash(SSID) mod K) + 1 ;
其中, Si为第 1信道的信道序号; K为所述 WiFi网络中的信道个数; 所 述 hash(SSID)是指对 SSID进行哈希运算; mod为求模运算符。
19、 根据权利要求 13所述的方法, 其特征在于, 所述预设规则为: 根据以 SSID为自变量的第 1函数至第 n函数分别确定第 1信道至第 n信 道的信道序号;
所述根据与所述 AP的服务集标识 SSID相关的预设规则确定所述 WiFi 网络中的第 1信道具体为:
将, 所述自变量的值为所述目标接入点的 SSID时所述第 1函数的值, 作 为所述第 1信道的信道序号;
所述 AP根据所述预设规则确定所述 WiFi网络中的第 n信道具体为: 将, 所述自变量的值为所述目标接入点的 SSID时所述第 n函数的值, 作 为所述第 n信道的信道序号。
20、 根据权利要求 19 所述的方法, 其特征在于, 所述第 1 函数为 S1= (hash(SSID) mod K) + 1; 所述第 η函数为 Sn = (Sn4 + a) mod K +1;
其中, S n4为第 n-1函数, a为预设常数; 所述 hash(SSID)是指对 SSID 进行哈希运算; mod为求模运算符。
21、 一种用于在无线保真 WiFi网络中扫描接入点的站点, 其特征在于, 包括:
第一确定单元, 用于根据与目标接入点 AP的服务集标识 SSID相关的预 设规则确定所述 WiFi网络中的第 1信道;
第一扫描单元, 用于在所述第 1信道上进行扫描, 以便当所述目标 AP以 所述预设规则确定并使用所述第 1信道时, 扫描到所述目标 AP。
22、 根据权利要求 21所述的站点, 其特征在于, 所述预设规则用于确定 第 1信道至第 n信道;
所述站点还包括:
第二确定单元, 用于若在第 n-1信道上扫描不到所述目标 AP, 则按所述 预设规则确定所述 WiFi网络中的第 n信道;
第二扫描单元, 用于在所述第 n信道上进行扫描, 以便当所述目标 AP以 所述预设规则确定并使用所述第 n信道时, 扫描到所述目标 AP; 或者
所述站点还包括:
第三扫描单元, 用于若在第 n-1信道上扫描不到所述目标 AP, 则在根据 所述预设规则确定的第 n信道上进行扫描; 以便当所述目标 AP以所述预设规 则确定并使用所述第 n信道时, 扫描到所述目标 AP;
其中, 所述 n为大于 1 , 小于或等于 K的整数; 所述 K为所述 WiFi网络 中的信道数。
23、 根据权利要求 21或 22所述的站点, 其特征在于, 还包括: 第一获取单元, 用于获取所在地的国家码信息;
相应地,所述第一确定单元具体用于根据所述国家码信息和所述预设规则 确定所述第 1信道。
24、 根据权利要求 21或 23所述的站点, 其特征在于, 还包括: 存储单元,用于存储优先级列表,所述优先级列表与所述目标 AP的 SSID 相对应,保存有所述 WiFi网络中 K个信道的信道序号及每个信道序号对应的 优先度; 所述 K为所述 WiFi网络中信道的个数;
所述第一确定单元具体用于从所述优先级列表中确定优先度最高的信道 序号, 该优先度最高的信道序号对应的信道为所述第 1信道。
25、 根据权利要求 22所述的站点, 其特征在于, 还包括:
存储单元,用于存储优先级列表,所述优先级列表与所述目标 AP的 SSID 相对应,保存有所述 WiFi网络中 K个信道的信道序号及每个信道序号对应的 优先度; 所述 K为所述 WiFi网络中信道的个数;
所述第一确定单元具体用于,从所述优先级列表中确定优先度最高的信道 序号对应的所述第 1信道;
所述第二确定单元具体用于, 在第 n-1信道上扫描不到所述目标 AP的情 况下, 根据所述优先级列表, 从除第 1信道至第 n-1信道对应的信道序号之外 的信道序号中, 确定优先度最高的信道序号对应的第 n信道;
其中, 所述 n为大于 1 , 小于或等于 K的整数。
26、 根据权利要求 21或 23所述的站点, 其特征在于, 所述与所述目标接 入点的 SSID相关的预设规则为:
根据以 SSID为自变量的函数确定所述第 1信道的信道序号;
所述第一确定单元具体用于: 将, 所述自变量的值为所述目标接入点的 SSID时所述函数的值, 作为所述第 1信道的信道序号。
27、 根据权利要求 26所述的站点, 其特征在于: 所述以 SSID为自变量 的函数为: 1110(1 10 + 1 ;
其中, K为所述 WiFi网络中的信道个数; 所述 hash(SSID)是指对所述目 标 AP的所述 SSID进行哈希运算; mod为求模运算符。
28、 根据权利要求 22所述的站点, 其特征在于, 所述预设规则为: 根据 以 SSID为自变量的第 1函数至第 n函数分别确定第 1信道至第 n信道的信道 序号;
所述第一确定单元具体用于: 将, 所述自变量的值为所述目标接入点的 SSID时所述第 1函数的值, 作为所述第 1信道的信道序号;
所述第二确定单元具体用于在第 n-1信道上扫描不到所述目标 AP的情况 下, 将, 所述自变量的值为所述目标接入点的 SSID时所述第 n函数的值, 作 为所述第 n信道的信道序号。
29、 根据权利要求 28 所述的站点, 其特征在于, 所述第 1 函数为 S1= (hash(SSID) mod K) + 1; 所述第 η函数为 Sn = (Sn4 + a) mod K +1;
其中, S n4为第 n-1函数, a为预设常数; 所述 hash(SSID)是指对 SSID进 行哈希运算; mod为求模运算符。
30、 一种无线保真 WiFi网络中的接入点, 其特征在于, 包括:
第三确定单元, 用于根据与所述接入点的服务集标识 SSID相关的预设规 则确定所述 WiFi网络中的第 1信道;
第一判断单元, 用于判断所述第 1信道是否可用, 若所述第 1信道可用, 则使用所述第 1信道, 以便站点以所述预设规则确定并扫描所述第 1信道时, 扫描到所述接入点。
31、 根据权利要求 30所述的接入点, 其特征在于, 所述预设规则用于确 定第 1信道至第 n信道; 所述接入点还包括:
第四确定单元, 用于若第 n-1信道不可用, 则根据所述预设规则确定所述 WiFi网络中的第 n信道;
第二判断单元, 用于判断所述第 n信道是否可用, 若可用, 则使用第 n 信道, 以便所述站点以所述预设规则确定并扫描所述第 n信道时,扫描到所述 接入点; 或者
所述接入点还包括:
第三判断单元, 用于判断根据所述预设规则确定的第 n信道是否可用, 若 可用,则使用第 n信道,以便站点以所述预设规则确定并扫描所述第 n信道时, 扫描到所述 AP;
其中, 所述 n为大于 1 , 小于或等于 K的整数; 所述 K为所述 WiFi网络 中的信道数。
32、 根据权利要求 30或 31所述的接入点, 其特征在于, 还包括: 第二获取单元, 用于获取所在地的国家码信息;
相应地,所述第三确定单元具体用于根据所述国家码信息和所述预设规则 确定所述第 1信道。
33、 根据权利要求 30或 32所述的接入点, 其特征在于, 还包括: 存储单元, 用于存储优先级列表, 所述优先级列表与所述接入点的 SSID 相对应,保存有所述 WiFi网络中 K个信道的信道序号及每个信道序号对应的 优先度; 所述 K为所述 WiFi网络中信道的个数;
所述第三确定单元具体用于,从所述优先级列表中确定优先度最高的信道 序号; 该优先度最高的信道序号对应的信道为所述第 1信道。
34、 根据权利要求 31所述的接入点, 其特征在于, 还包括:
存储单元, 用于存储优先级列表, 所述优先级列表与所述接入点的 SSID 相对应,保存有所述 WiFi网络中 K个信道的信道序号及每个信道序号对应的 优先度; 所述 K为所述 WiFi网络中信道的个数;
所述第三确定单元具体用于,确定所述优先级列表中优先度最高的信道序 号对应的所述第 1信道;
所述第四确定单元具体用于, 在第 n-1信道不可用的情况下, 确定所述优 先级列表中, 除第 1信道至第 n-1信道对应的信道序号之外, 优先度最高的信 道序号对应的第 n信道;
其中, 所述 n为大于 1 , 小于或等于 K的整数。
35、 根据权利要求 30或 32所述的接入点, 其特征在于: 所述第三确定单 元具体用于: 将, 自变量的值为所述目标接入点的 SSID时函数的值, 作为所 述第 1信道的信道序号; 所述函数以 SSID为自变量。
36、 根据权利要求 35 所述的接入点, 其特征在于, 所述函数为: S1= (hash(SSID) mod K) + 1 ;
其中, K为所述 WiFi网络中的信道个数; 所述 hash(SSID)是指对 SSID 进行哈希运算; mod为求模运算符。
37、 根据权利要求 31所述的接入点, 其特征在于:
所述第三确定单元具体用于: 将, 自变量的值为所述目标接入点的 SSID 时第 1函数的值, 作为所述第 1信道的信道序号; 所述第 1函数以 SSID为自 变量;
所述第四确定单元具体用于: 在第 n-1信道不可用的情况下, 将, 自变量 的值为所述目标接入点的 SSID时第 n函数的值, 作为所述第 n信道的信道序 号; 所述第 n函数以 SSID为自变量;
所述预定规则具体为: 根据第 1函数至第 n函数分别确定第 1信道至第 n 信道的信道号。
38、 根据权利要求 37所述的接入点, 其特征在于:
所述第 1函数为 S1= (hash(SSID) mod K) + 1 ;所述第 η函数为 Sn = (Sn4 + a) mod K +1 ;
其中, S n4为第 n-1函数, a为预设常数; 所述 hash(SSID)是指对 SSID进 行哈希运算; mod为求模运算符。
39、 一种无线保真 WiFi网络接入系统, 其特征在于, 包括:
如权利要求 21-29任一所述的站点,和如权利要求 30-38任一所述的接 入点。
PCT/CN2013/078720 2012-07-03 2013-07-03 无线保真网络中扫描接入点、信道选择方法、设备及系统 WO2014005515A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210227514.1A CN103533604B (zh) 2012-07-03 2012-07-03 无线保真网络中扫描接入点、信道选择方法、设备及系统
CN201210227514.1 2012-07-03

Publications (1)

Publication Number Publication Date
WO2014005515A1 true WO2014005515A1 (zh) 2014-01-09

Family

ID=49881341

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/078720 WO2014005515A1 (zh) 2012-07-03 2013-07-03 无线保真网络中扫描接入点、信道选择方法、设备及系统

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995672A (zh) * 2017-12-13 2018-05-04 乐鑫信息科技(上海)有限公司 一种Wi-Fi选择最优接入点的方法及其系统
WO2019047411A1 (zh) * 2017-09-11 2019-03-14 上海斐讯数据通信技术有限公司 一种无线路由器及其信道选择方法和系统

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015168850A1 (zh) 2014-05-05 2015-11-12 华为终端有限公司 Wi-Fi网络连接方法、Wi-Fi控制器及Wi-Fi设备
CN105101341A (zh) * 2014-05-09 2015-11-25 联想移动通信软件(武汉)有限公司 一种终端无线连接的方法、装置及终端
CN104125624B (zh) * 2014-06-16 2019-04-23 联想(北京)有限公司 一种信息处理方法及电子设备
KR102275025B1 (ko) * 2014-11-21 2021-07-08 삼성전자주식회사 무선 랜 서비스를 제공하기 위한 방법 및 그 전자 장치
CN105228264B (zh) * 2015-07-01 2018-09-14 利尔达科技集团股份有限公司 一种适用于物联网的快捷wi-fi网络配对方法
CN105246131A (zh) * 2015-09-29 2016-01-13 东软集团股份有限公司 用于终端连接ap的方法及装置
CN105407499B (zh) * 2015-10-26 2019-01-15 珠海格力电器股份有限公司 信息处理方法、装置及电子设备
CN105472006A (zh) * 2015-12-10 2016-04-06 小米科技有限责任公司 文件传输方法、装置和系统
CN106162829A (zh) * 2016-09-19 2016-11-23 青岛海信电器股份有限公司 Wifi连接方法及装置
CN107067787A (zh) * 2017-02-16 2017-08-18 乐高乐佳(北京)信息技术有限公司 公共交通工具报站方法及装置
CN106710284B (zh) * 2017-02-16 2020-06-05 乐高乐佳(北京)信息技术有限公司 公共交通工具报站提醒的方法及装置
CN106982459B (zh) * 2017-03-14 2019-09-20 Oppo广东移动通信有限公司 网络扫描方法与终端设备
CN107493586B (zh) * 2017-09-07 2020-09-11 深圳市兆驰数码科技股份有限公司 路由器wisp模式下信道自适应修改及断线重连方法
CN109729567B (zh) * 2017-10-27 2020-10-27 华为技术有限公司 一种消息处理方法和接入点设备以及消息处理设备
CN111698742B (zh) * 2020-06-08 2023-03-21 锐捷网络股份有限公司 数据通信方法、终端设备、电子设备及计算机存储介质
CN113438711B (zh) * 2021-05-21 2024-04-12 珠海全志科技股份有限公司 一种Wi-Fi连接的控制方法及装置
CN113613310B (zh) * 2021-07-02 2023-10-13 深圳Tcl新技术有限公司 Wifi连接方法、装置、存储介质及移动终端
CN114900873A (zh) * 2022-05-26 2022-08-12 武汉秒开网络科技有限公司 一种通过拨码开关来实现WiFi Mesh设备快速组网的方法及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050068928A1 (en) * 2003-09-30 2005-03-31 Motorola, Inc. Enhanced passive scanning
CN101388841A (zh) * 2008-10-30 2009-03-18 杭州华三通信技术有限公司 探测响应帧的发送方法和设备
CN101483894A (zh) * 2009-01-06 2009-07-15 北京交通大学 一种无线局域网的快速切换方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8228865B2 (en) * 2006-04-07 2012-07-24 Qualcomm Incorporated Method and apparatus for operating in a wireless local area network based on information from a wireless wide area network
EP2184892B1 (en) * 2007-07-31 2016-12-21 Lenovo Innovations Limited (Hong Kong) Wireless lan terminal and access point searching method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050068928A1 (en) * 2003-09-30 2005-03-31 Motorola, Inc. Enhanced passive scanning
CN101388841A (zh) * 2008-10-30 2009-03-18 杭州华三通信技术有限公司 探测响应帧的发送方法和设备
CN101483894A (zh) * 2009-01-06 2009-07-15 北京交通大学 一种无线局域网的快速切换方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019047411A1 (zh) * 2017-09-11 2019-03-14 上海斐讯数据通信技术有限公司 一种无线路由器及其信道选择方法和系统
CN107995672A (zh) * 2017-12-13 2018-05-04 乐鑫信息科技(上海)有限公司 一种Wi-Fi选择最优接入点的方法及其系统
CN107995672B (zh) * 2017-12-13 2021-06-29 乐鑫信息科技(上海)股份有限公司 一种Wi-Fi选择最优接入点的方法及其系统

Also Published As

Publication number Publication date
CN103533604B (zh) 2016-12-28
CN103533604A (zh) 2014-01-22

Similar Documents

Publication Publication Date Title
WO2014005515A1 (zh) 无线保真网络中扫描接入点、信道选择方法、设备及系统
US11533674B2 (en) Information processing apparatus
EP2769576B1 (en) Method, apparatus, and computer program product for filtering list in wireless request
US8520583B2 (en) Method, apparatus, and computer program product for roaming partner discovery
CN108029091B (zh) 用于wlan rtt测量的广播测距消息
US8463175B2 (en) Method, apparatus, and computer program product for wireless network discovery through passive and active scanning
US9872230B2 (en) System and method for efficient communications system scanning
JP5976823B2 (ja) 高速初期ネットワークリンクセットアップのためのシステムおよび方法
JP6129862B2 (ja) 高速初期ネットワークリンクセットアップのためのシステムおよび方法
WO2013152633A1 (zh) 无线局域网络的发现与选择方法、设备及系统与终端
JP6430252B2 (ja) 高速初期ネットワークリンクセットアップのためのシステムおよび方法
WO2013053234A1 (zh) 加快公共陆地移动网络搜网速度的方法及装置
JP2021508203A (ja) 低電力高速スマートスキャニングのための通信装置および通信方法
WO2014019420A1 (zh) 无线接入点信息的发送方法、装置及移动终端
JP5526069B2 (ja) 無線通信端末
CN105453615B (zh) 无线终端、无线终端的搜索处理方法和无线通信系统
US9877328B2 (en) Method, apparatus, and computer program product for efficient use of frequency bands and channels in wireless environment
CN106131925B (zh) Gas查询方法及装置
US20160014689A1 (en) Advertising supported domains via probe request/response and beacons
WO2014106434A1 (en) System and method for efficient access network query protocol (anqp) discovery of multiple access points (aps)
JP2006067103A (ja) 無線lanシステム及びそれに用いられる無線lan端末、管理サーバ
JP3925425B2 (ja) 無線マルチホップネットワークの構成方法
US20140241332A1 (en) System and Method for Indicating and Acquiring Information of an Access Point
JP6658731B2 (ja) 無線通信ネットワークにおける通信端末、通信制御方法および通信システム
WO2015188846A1 (en) Scanning for access points in a wireless local area network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13812466

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13812466

Country of ref document: EP

Kind code of ref document: A1