WO2015074186A1 - Channel scan method and apparatus - Google Patents

Channel scan method and apparatus Download PDF

Info

Publication number
WO2015074186A1
WO2015074186A1 PCT/CN2013/087468 CN2013087468W WO2015074186A1 WO 2015074186 A1 WO2015074186 A1 WO 2015074186A1 CN 2013087468 W CN2013087468 W CN 2013087468W WO 2015074186 A1 WO2015074186 A1 WO 2015074186A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
scanning
sta
channels
network device
Prior art date
Application number
PCT/CN2013/087468
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Priority to PCT/CN2013/087468 priority Critical patent/WO2015074186A1/en
Priority to CN201380076735.6A priority patent/CN105264828A/en
Publication of WO2015074186A1 publication Critical patent/WO2015074186A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates to the field of communications and, more particularly, to a method and apparatus for channel scanning. Background technique
  • a communication technology in which network devices scan a plurality of channels located within a prescribed frequency range in the same order (for example, in a low-to-high order for frequency points) to select a channel of the highest quality. For communication.
  • the network device needs to scan each channel, the scanning time is greatly increased, thereby prolonging the communication establishment time, which seriously affects the user experience.
  • Embodiments of the present invention provide a method and apparatus for channel scanning, which can reduce channel scanning time and improve user experience.
  • a method for channel scanning comprising: determining, by a first one of the at least two network devices, a first target channel from the at least two channels, where the first target channel and the at least The center frequency of the second target channel is different, the second target channel is the first scan channel of the at least one second network device, and the first network device does not use the same channel to communicate with the second network device.
  • the at least two channels have the same bandwidth; the first network device scans the at least two channels by using the first target channel as the first scan channel, and stops scanning when the channel condition of the currently scanned channel meets a preset condition.
  • the first network device of the at least two network devices determines the first target channel from the at least two channels, including: the at least two network devices The first network device obtains the first scan indication information, where the first scan indication information is used to indicate the first channel; and the first network device determines the first channel according to the first scan indication information.
  • the first network device of the at least two network devices determines the first target channel from the at least two channels, including: Determining, by the first network device of the at least two network devices, the at least two channels a scan order in which the first target channel is a first scan channel; the first network device determines the first target channel according to the scan order; and the first network device uses the first target channel as Scanning the channel for the first time, scanning the at least two channels, including: the first network device scanning the at least two channels according to the scanning sequence.
  • the first The target channel is separated from the second target channel by at least one channel.
  • the scanning is stopped, including: if the interference in the currently scanned channel If the preset interference threshold is less than or equal to, the scanning is stopped; or if the signal strength in the currently scanned channel is greater than or equal to the preset quality threshold, the scanning is stopped.
  • a method for channel scanning comprising: determining, by a first station STA, a coverage of at least two access points AP and a channel used by each AP, wherein a center of a channel used by each AP The frequency points are different, and the bandwidths of the channels used by the APs are the same; the first STA determines the first candidate channel from the channels used by each AP according to the current location and the coverage of each AP, where The first candidate channel is a channel used by the first AP, and the first STA is in the coverage of the first AP; the first STA uses the first candidate channel as the first scan channel, and the AP is used for each AP.
  • the used channel is scanned, and the scanning is stopped when the channel condition of the currently scanned channel satisfies a preset condition.
  • the first candidate channel is different from the at least one second candidate channel, where the second candidate channel is the first scan channel of the at least one second STA And the first STA does not use the same channel to communicate with the second STA.
  • the first STA determines, according to the current location and the coverage of each AP, from the channels used by each AP.
  • An optional channel including: the first STA determines, according to the current location and the coverage of each AP, a scanning order of channels used by each AP, where the first candidate channel is the first time in the scanning sequence Scanning the channel; and scanning, by the first STA, the channel used by each AP by using the first candidate channel as the first scan channel, including: scanning, by the first STA, the channel used by each AP according to the scanning sequence .
  • the distance between the first AP and the first STA is the smallest.
  • the scanning is stopped, including: if the signal in the currently scanned channel If the intensity is greater than or equal to the preset quality threshold, the scan is stopped.
  • an apparatus for channel scanning comprising: a determining unit, configured to determine, from at least two channels, a first target channel, where the first target channel and the at least one second target channel The central frequency points are different, the second target channel is a first scan channel of the at least one second network device, and the first network device communicates with the second network device at the same time interval by using the same channel, and the bandwidth of the at least two channels
  • the scanning unit is configured to scan the at least two channels by using the first target channel as the first scan channel, and stop scanning when the channel condition of the currently scanned channel meets a preset condition.
  • the determining unit is specifically configured to acquire first scan indication information, where the first scan indication information is used to indicate the first channel, and to be used according to the first Scanning indication information to determine the first channel.
  • the determining unit is specifically configured to determine a scanning sequence for the at least two channels, where the first target channel is in the scanning sequence The first scanning channel is determined according to the scanning sequence, and the scanning unit is specifically configured to scan the at least two channels according to the scanning sequence.
  • the determining unit is specifically configured to acquire second scan indication information, where the second scan indication information is used to indicate the scan sequence.
  • the first target channel is The second target channel is separated by at least one channel.
  • the scanning unit is specifically configured to stop scanning if the interference in the currently scanned channel is less than or equal to a preset interference threshold; or Stop scanning after the signal strength in the currently scanned channel is greater than or equal to the preset quality threshold.
  • a device for channel scanning includes: a first determining unit, configured to determine a coverage of at least two access points AP, and a channel used by each AP, where each AP uses The center frequency of the channel is different, and the bandwidth of the channel used by each AP is the same; the second determining unit is configured from each AP according to the current location and the coverage of each AP.
  • the scanning unit is configured to use the first
  • the candidate channel is used as the first scan channel, and the channel used by each AP is scanned, and when the channel condition of the currently scanned channel satisfies a preset condition, the scanning is stopped.
  • the first candidate channel is different from the at least one second candidate channel, where the second candidate channel is a first scan channel of the at least one second STA
  • the device communicates with the second STA at the same time using the same channel.
  • the second determining unit is specifically configured to determine, according to the current location and the coverage of each AP, the used for each AP a scanning sequence of the channel, in the scanning sequence, the first candidate channel is a first scanning channel; and the scanning unit is specifically configured to scan a channel used by each AP according to the scanning sequence.
  • a distance between the first AP and the device is the smallest.
  • the scanning unit is specifically configured to stop scanning if a signal strength in the currently scanned channel is greater than or equal to a preset quality threshold.
  • a method and apparatus for channel scanning by using at least two network devices that cannot communicate using the same channel, when scanning a channel, respectively, using channels having different center frequency points as the first scanning channel, It is possible to enable each network device to determine a usable channel when the first scan is performed, and to reduce the channel scan time of the network device by causing the network device to stop scanning when the channel condition of the currently scanned channel satisfies a preset condition, and further Reduce the time it takes to establish a communication, thereby improving the user experience.
  • FIG. 1 is a schematic flowchart of a method for channel scanning according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram showing a scanning object of a method of channel scanning according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method of channel scanning according to another embodiment of the present invention.
  • FIG. 4 is a schematic diagram showing a system of a method of channel scanning to which another embodiment of the present invention is applied.
  • FIG. 5 is a schematic block diagram of an apparatus for channel scanning according to an embodiment of the present invention.
  • FIG. 6 is a schematic block diagram of an apparatus for channel scanning according to another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an apparatus for channel scanning according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an apparatus for channel scanning according to another embodiment of the present invention.
  • FIG. 9 is a schematic block diagram of a system for channel scanning in accordance with an embodiment of the present invention.
  • FIG. 10 is a schematic block diagram of a system for channel scanning according to another embodiment of the present invention. detailed description
  • the technical solution of the present invention can be applied to various communication systems that need to scan for radio resources (for example, multiple channels in a specified frequency range) provided by the system to select a channel to be used, for example, a wireless local area network (WLAN).
  • WLAN wireless Local Area Network
  • Wi-Fi Wireless Fidelity
  • the network device can be an access point (AP, Access Point) or a user site (STA, Station) in the WLAN.
  • FIG. 1 is a schematic flowchart of a method 100 for channel scanning according to an embodiment of the present invention, where an execution body of the method 100 (or a network device in the embodiment of the present invention) may be an AP in a WLAN system.
  • the present invention is not limited to the present invention.
  • the following describes an operation and method at the time of AP execution as an example.
  • the type of the first network device and the second network device need to be the same, that is, if the first network device is an AP, the second network device is also an AP, and likewise, if the first The network device is STA, Then, the second network gives the device also a STA.
  • communication can be performed using multiple channels at 2.4 GHz and 5 GHz, where the channel bandwidth can be different for different communication versions.
  • Figure 2 shows the channel division mode at 5 GHz.
  • STAs and APs can use channels with a bandwidth of 20 MHz at 5.3 GHz and 5.8 GHz.
  • STAs and APs can use a channel with a bandwidth of 20 MHz at 2.4 GHz.
  • STAs and APs can use a channel with a bandwidth of 20 MHz at 2.4 GHz.
  • STAs and APs can use 2.4GHz and 5GHz, and the bandwidth is
  • STAs and APs can use channels at 5 GHz with bandwidths of 20 MHz, 40 MHz, 80 MHz, or 160 MHz.
  • the 40 MHz channel is composed of two (for example, adjacent) 20 MHz channels, and when using a 40 MHz channel for communication, it is necessary to satisfy the following conditions:
  • the two 20 MHz channels constituting the 40 MHz channel are not occupied by other APs or STAs. That is, if the STA or AP detects that a 20 MHz channel within a 40 MHz channel range is occupied, the STA or AP cannot use the 40 MHz channel.
  • the method 100 includes:
  • the first network device of the at least two network devices determines, from the at least two channels, a first target channel, where the first target channel is different from a center frequency of the at least one second target channel, where the second The target channel is a first scan channel of the at least one second network device, and the first network device communicates with the second network device at the same time using the same channel, and the at least two channels have the same bandwidth;
  • the first network device scans the at least two channels by using the first target channel as the first scan channel, and stops scanning when the channel condition of the currently scanned channel meets a preset condition.
  • the network device when scanning the channel, uses the channel with different center frequency as the first scanning channel, so that each network device can determine the available channel when scanning for the first time.
  • the first network device of the at least two network devices determines the first target channel from the at least two channels, including:
  • the first network indicator of the at least two network devices acquires first scan indication information, where the first scan indication information is used to indicate the first channel;
  • the first network device determines the first channel according to the first scan indication information.
  • the first scan channel of the at least two network devices may be preset by, for example, a server, and then sent and stored in the at least two network devices.
  • the server may be set in one network device or may be independently set.
  • the present invention is not particularly limited as long as communication between the server and each network device can be realized.
  • the server can determine the location and coverage of each network device.
  • information indicating the current location may be sent to the server, so that the server can determine the location of each network device based on the information.
  • the method for positioning the network device may be the same as the prior art.
  • positioning may be performed using a Global Positioning System (GPS).
  • GPS Global Positioning System
  • the description thereof is omitted.
  • the server may further locate the network device according to a signal from the network device by using, for example, a base station positioning method, to determine the The location of the user device.
  • the server may further obtain information indicating the location of the network device from a service provider capable of positioning the network device, so that the server may determine the location of the network device according to the information.
  • each network device can send indication information indicating its coverage (for example, transmission power) to the server, so that the server can determine the coverage of each network device.
  • the server can determine the coverage coverage.
  • Each of a network device (hereinafter, referred to as network device #1)
  • the network device, or the server can determine each network device that cannot communicate with the first network device using the same channel at the same time.
  • the server may determine a determination area according to the coverage of each network device, and determine the network device in the determination area according to the location of each network device, and may consider that each network device in the determination area cannot
  • Each network device hereinafter, referred to as a to-be-processed network device that communicates using the same channel at the same time.
  • the determination area may be arbitrarily determined according to the location of each network device and the transmission power, and the present invention is not particularly limited.
  • the network device to be processed is determined according to the coverage and location of each network device (i.e., an example of the location relationship between the network devices), the data to be processed can be reduced, the processing efficiency is improved, and resource waste is reduced.
  • each network device determines the network device to be processed according to the location, the coverage, the transmission power, and the like of each network device.
  • the present invention is not limited thereto, and the server may not pay attention to the network devices. Coverage and location, and each network device in the system is regarded as a network device to be processed.
  • the server can determine the currently available channel (ie, the unoccupied channel, hereinafter referred to as the channel to be allocated) according to the usage of the radio resources (ie, channels) provided by the system.
  • the channel to be allocated is determined according to the usage of the channel, the data to be processed can be reduced, the processing efficiency is improved, and resource waste is reduced.
  • the present invention is not limited thereto, and may not pay attention to the use of each channel. For example, when each network device in the system is uniformly turned on, since each channel is unoccupied, all channels in the system bandwidth may be used. Both are considered as channels to be allocated.
  • the server may allocate the first scanned channel to each network device to be processed according to the number of network devices to be processed and the number of channels to be allocated, where it is necessary to ensure the first time of at least two network devices including network device #1.
  • the scanning channels are different.
  • channel A1 to channel A10 in Fig. 2 will be described as a channel to be allocated.
  • the number of available channels to be allocated is N, and the number of network devices to be processed is M. According to the size relationship between M and N, it can be divided into the following three cases:
  • the server can allocate a channel to be allocated that is different from other network devices to be processed for each of the to-be-processed network devices as its first scanning channel.
  • the server may number M network devices to be processed (for example, APs), so that the set 1: ⁇ #1, ⁇ #2, ..., ⁇ # ⁇ can be obtained, and The assigned channels are numbered so that set 2 can be obtained: ⁇ channel #1, channel #2, channel # ⁇ .
  • the server can make each element in the set 1 correspond to each element in the set 2 one by one, and send the corresponding channel in each set 2 as its first scan channel to each of the frames.
  • each element in the set 1 corresponds to each element in the set 2
  • the following embodiments can be cited:
  • It can be based on the number of each element in the set 1 and the number of each element in the set 2. For example, the elements with the same number are associated with each other. It should be noted that the numbers of the elements in the set 1 need to be different from each other. The numbers of the elements in the set 2 also need to be different from each other.
  • each network device in Set 1 has an identifier that uniquely indicates the network device in the system, for example, Medium Access Control (MAC) address, Association Identifier (AID), or partial association
  • MAC Medium Access Control
  • AID Association Identifier
  • the partial AID may correspond to the number of each element in the set 2 according to a preset rule.
  • each network device can be made to correspond to each digit of the random number, and the number on each digit of the random number can represent each element in the set 2, thereby enabling each element in the set 1 to Each element in set 2 - corresponds.
  • the first target channel and the second target channel are separated by at least one channel.
  • interference between the two network devices can be reduced by making the first scan channels corresponding to the two adjacent network devices at least one channel apart in the system bandwidth. For example, if the distance between ⁇ #1 and ⁇ #2 is less than the preset distance threshold, channel A1 can be selected as the first scan channel of ⁇ #1, and channel A10 can be selected as the first scan channel of ⁇ #2.
  • the foregoing distance threshold may be determined according to, for example, a transmit power of the two network devices. That is, if the transmission powers of both AP#1 and AP#2 are large, the two parties are more likely to receive interference with each other, and thus the distance threshold can be shortened.
  • the distance thresholds may be the same or different for different pairs of network devices, and the present invention is not particularly limited.
  • a distance threshold for determining whether the first scan channel of AP#1 and AP#2 is separated by at least one channel and a distance threshold for determining whether at least one channel of AP#1 and AP#3 are separated by at least one channel may be different.
  • the first scan channel of each AP can be determined in the manner shown in Table 1 below.
  • the number of network devices to be processed is smaller than the number of channels currently available (the channels to be allocated), as in case (1), it is possible to ensure that the first scanning channels of each of the to-be-processed network devices are different.
  • M channels can be randomly selected from the N channels to be allocated, so that the selected M channels to be allocated can be allocated to the M network devices to be processed using a method similar to the case (1).
  • the server may divide the T (TN) network devices into a group, so that a plurality of network device groups may be determined, and the number of network devices in each network device group is less than or equal to N, and thus, according to the above situation (1) Or the method of case (2), assigning a first scan channel to network devices in each group.
  • the interference between the network devices that are close to each other is strong. Therefore, in the embodiment of the present invention, the network devices that are closer in distance are preferably divided into one group.
  • N 10
  • AP#1 to AP#12 are arranged in a straight line in numerical order (ie, the distance between AP#1 and AP#2 is the closest, AP#1 and AP#12)
  • the farthest distance between them is, by way of example and not limitation, the first scan channel of each AP can be determined in the manner shown in Table 2 below.
  • Network device first scan channel
  • the first network device of the at least two network devices determines the first target channel from the at least two channels, including:
  • the first target channel is a first scan channel
  • the first network device scans the at least two channels by using the first target channel as the first scan channel, including:
  • the first network device scans the at least two channels according to the scanning sequence.
  • the scanning order for the remaining channels to be allocated may be determined.
  • the determining process may be performed by the network device, or may be performed by the server, and determined.
  • a complete scan sequence for each channel is sent to each network device.
  • the sequence of channel sequences of AP#i is recorded as:
  • the channel scanning sequence of AP#1 may be shifted to the left (2 - 1) bits as the channel scanning sequence sequence of AP#2, that is, the channel scanning sequence sequence of AP#2 is determined as:
  • (2, N) ] [Channel ( 1, 2), Channel ( 1, 3 ), ..., Channel ( 1, N ), Channel (1, 1) ];
  • the channel scanning sequence sequence of AP#i is left (i-1) bit of the channel scanning sequence of AP#1, that is,
  • the channel scanning order of AP#1 can be randomly generated. Moreover, if the scanning sequence is adjacent to the channel of the current scanning in the system bandwidth, for example, the channel of the current scanning is channel A4, and the channel of the next scanning is channel A5, if channel A4 cannot be used as The final communication channel (for example, occupied by other network devices), when the next scan is performed, because channel A4 is used, the interference to channel A5 is large, which may affect the user experience.
  • channel ( 1, i) - channel ( 1, i+1 ) ! lor-l, that is, two channels in the scanning sequence before and after the system
  • the bandwidth is not adjacent (or at least one channel apart).
  • the sequence of scanning sequence of AP#1 can be ⁇ A1, A3, A5, A7, A9, A2, A4, A6, A8, A10 ⁇ .
  • the scanning sequence of ⁇ #1 can be generated as follows:
  • the first scan channel Channel (1, 1) A1 can be determined as described above.
  • b. In the remaining channels to be allocated, select the channel farthest from Channel (1, 1) as the second scan.
  • Channel Channel ( 1, 2), ie, Channel (1, 2) AN
  • Channel (1, 1) is also the channel as far as possible.
  • the channel scanning order of each AP can be determined in the manner shown in Table 3 below.
  • Network device channel scan order
  • each AP has the same scanning order, all of which are Al, A2, A3, A4, A5, A6, A7. , A8, A9, A10.
  • the first scanning order of each AP is different, so that each AP can quickly find an appropriate channel, which can save communication establishment time and improve user experience.
  • the channels selected by the APs with smaller distances are separated by at least one channel, and the occurrence of adjacent frequency interference can be avoided.
  • the first network device (hereinafter, the first network device is an AP#1 as an example) may be configured according to the first scan indication information (for example, the above table 1) or the second scan delivered by the server.
  • the indication information (for example, Table 3 above) determines the channel to be scanned for the first time.
  • the first scan of AP#1 is the channel A1 described in Tables 1 to 3 above.
  • the first network device may perform channel scanning according to the first scan channel determined as described above, that is, when the first network device can determine that the channel A1 meets the preset condition, determine that the channel A1 can be used for communication, and stop scanning. .
  • Stopping scanning when the channel condition of the currently scanned channel meets a preset condition including: stopping scanning if the interference in the currently scanned channel is less than or equal to a preset interference threshold; or
  • the scanning is stopped.
  • the following two methods may be used for determining:
  • the interference e.g., the noise value
  • a preset value i.e., the interference threshold
  • the AP when the AP performs channel scanning, it is preferred that the channel is not occupied by any device (for example, other APs), and if one channel is not occupied by any device, the signal (or noise) on the channel is 0 ( An example of the interference threshold), therefore, if the signal strength on the channel is zero, the AP can consider the channel unoccupied, thereby determining to use the channel and stopping scanning.
  • any device for example, other APs
  • the signal (or noise) on the channel is 0 ( An example of the interference threshold)
  • a certain signal may still be present on a channel that is not occupied by other APs.
  • the interference of the signal is small, that is, The channel can satisfy the communication condition, and the AP can consider the channel unoccupied, thereby determining to use the channel and stopping scanning.
  • the quality of the channel A1 e.g., the signal-to-noise ratio
  • a preset value i.e., a quality threshold
  • the STA when the STA performs channel scanning, it mainly scans the APs that can serve it, and needs to ensure that the signal strength from the AP can meet the communication requirements. Therefore, if the signal strength on one channel is greater than or equal to a preset value (quality threshold) For example, if the signal-to-noise ratio on the channel is greater than or equal to a preset value (another example of a quality threshold), the STA can consider that the channel can be used for communication and stop scanning.
  • quality threshold a preset value
  • the STA can consider that the channel can be used for communication and stop scanning.
  • a certain signal may still be present on a channel that is not used by the AP, in which case the quality threshold is set to be radiated with the AP.
  • the value corresponding to the signal strength of the signal can avoid the interference of the noise, enabling the STA to accurately scan the channel that can be used for communication.
  • the interference threshold and the quality threshold listed above may be set according to the type of communication, for example, for a real-time communication service (for example, a video service or an online game service).
  • a service with high communication resources requires a higher threshold.
  • the present invention is not limited thereto, and may be determined by the at least two network devices.
  • the present invention is not particularly limited as long as The first scan channels of the at least two network devices are different, and the actions and processes of each of the network devices performing the above 100 (mainly determining the first scan channel or channel scan order) are similar to those of the server.
  • the description is omitted.
  • the channel scanning method of the embodiment of the present invention when at least two network devices that cannot communicate using the same channel are scanned, the channels with different center frequency points are respectively used as the first scanning channel, which enables
  • the network device scans for the first time, it can determine the channel that can be used, and by causing the network device to stop scanning when the channel condition of the currently scanned channel meets the preset condition, the channel scanning time of the network device can be reduced, thereby shortening the communication. Establish time to improve the user experience.
  • FIG. 3 is a schematic flowchart of a method 200 for channel scanning according to an embodiment of the present invention, wherein an execution body of the method 200 may be a STA in a WLAN system.
  • multiple channels on 2.4 GHz and 5 GHz can be used for communication.
  • the bandwidth of each channel can be different for different communication versions.
  • Figure 2 shows the channel division at 5 GHz, as shown in Figure 2:
  • STAs can use channels with a bandwidth of 20 MHz at 5.3 GHz and 5.8 GHz.
  • the STA can use a channel with a bandwidth of 20 MHz at 2.4 GHz.
  • the STA can use a channel with a bandwidth of 20 MHz at 2.4 GHz.
  • IEEE 802.11 ⁇ STAs can use channels with bandwidths of 20 MHz or 40 MHz at 2.4 GHz and 5 GHz.
  • the STA can use a channel with a bandwidth of 20MHz, 40MHz, 80MHz or 160MHz at 5GHz.
  • the 40 MHz channel is composed of two (for example, adjacent) 20 MHz channels, and when using a 40 MHz channel for communication, it is necessary to satisfy the following conditions:
  • the two 20 MHz channels constituting the 40 MHz channel are not occupied by other APs or STAs. That is, if the STA detects that a 20 MHz channel within a 40 MHz channel range is occupied, the STA cannot use the 40 MHz channel.
  • a scanning process of each 20 MHz channel by the STA will be described as an example.
  • the method 200 includes:
  • the first station STA determines the coverage of the at least two access point APs and the channels used by the APs, where the channels used by the APs have different center frequencies, and the channels used by the APs have the same bandwidth. ;
  • the first STA determines, according to the current location and the coverage of each AP, a first candidate channel from the channels used by each AP, where the first candidate channel is used by the first AP. Channel, the first STA is in the coverage of the first AP;
  • the first STA scans a channel used by each AP by using the first candidate channel as a first scan channel, and stops scanning when a channel condition of the currently scanned channel meets a preset condition.
  • each STA scans (or listens to) each channel in a prescribed order, and after completing the interception of all channels in the system bandwidth, selects the channel with the best quality for communication.
  • the Bayer J ST needs to waste a lot. Time and energy scan the unusable channels, resulting in longer communication setups that severely impact the user experience.
  • the STA determines the channel that can be used by the AP it serves, and determines the first scan channel therefrom, enabling the STA to determine the available channel when it is first scanned.
  • the implementation body of the method 200 can determine the coverage of each AP in the system and the channel used.
  • STA#1 can obtain the coverage of each AP in the system and the used channel from the network operator, the maintenance party, or the network administrator, and can also record the coverage of each AP in the previous access process.
  • the coverage of the AP can be derived based on the location of the AP, the transmit power, and the like.
  • STA#1 can determine the current location.
  • STA#1 when STA#1 has the function of positioning, it can locate itself.
  • the positioning method may be, for example, positioning using a Global Positioning System (GPS), and the description thereof will be omitted herein.
  • GPS Global Positioning System
  • STA#1 may also obtain information indicating the location of the STA#1 from a service provider capable of providing the located service, so that STA#1 may determine the current location according to the information. position.
  • the STA #1 can determine the AP (ie, the first AP) that can provide the service to the AP. For example, each AP whose coverage includes the current location of the STA #1 can be used as the first AP, or The AP that covers the STA #1 and is closest to the STA #1 is the first AP, and the present invention is not particularly limited.
  • the channel used by the first AP determined in S210 may be used as an alternate channel (which may be one or plural, which is not particularly limited in the present invention), and one channel is determined from the candidate channel. (ie, the first alternate channel) as the first scan channel.
  • the distance between the first AP and the device is the smallest.
  • the first AP is the closest AP to the first STA, that is, in the embodiment of the present invention, The AP closest to STA#1 serves as the AP serving the STA#1.
  • the first candidate channel is different from the at least one second candidate channel, where the second candidate channel is a first scan channel of the at least one second STA, where the first STA is not in the same period as the second STA Use the same channel for communication.
  • STA#2 the number of which may be one or more
  • STA#1 and STA#2 cannot communicate using the same channel at the same time.
  • 8# is the same as STA#2's first scan channel, at least one party may not be determined after the first scan. A channel that can be used.
  • STA#1 and STA#2 can communicate (for example, device-to-device communication)
  • STA#1 and STA#2 can negotiate to make each determined.
  • the first scan channel is different.
  • the determination of the first scan channel may be performed by a server independent of STA#1 and STA#2, that is, when STA#1 needs to perform channel scanning to determine a channel used for communication, a request may be sent to the server, The server may determine the location of the STA #1 according to the request, and determine, according to the coverage of each AP, the first AP that can serve the STA #1, and the available alternate channels, the foregoing process and S210 and S220 The process in the process is similar, and the description is omitted here to avoid redundancy.
  • the server determines that STA#2 can also communicate through the first AP, there is an intersection between the candidate channel corresponding to STA#1 and the candidate channel corresponding to STA#2.
  • the server can assign different first scan channels to STA#1 and STA#2.
  • the number of channels used by the first AP (one or more APs) is N, and the number of STAs that communicate through the first AP is M. According to the size relationship between M and N, it can be divided into the following three cases:
  • the server can allocate a channel to be allocated that is different from other STAs for each STA as its first scanning channel.
  • the server can number M STAs to get the set 1 : ⁇ STA#1 ,
  • STA#2, STA#M ⁇ , and the channels to be allocated may be numbered, so that set 2: ⁇ channel #1, channel #2, channel #N ⁇ can be obtained. Then, the server can make each element in the set 1 correspond to each element in the set 2, and send the channel corresponding to each STA in the set 2 as its first scan channel to each STA.
  • each element in the set 1 corresponds to each element in the set 2
  • the following embodiments can be cited:
  • each STA in set 1 has an identifier that can uniquely indicate the network device in the system, for example, a medium access control (MAC) address, an associated identity information (AID, Association Identifier), or a partial associated identity
  • MAC medium access control
  • AID Association Identifier
  • the partial AID may correspond to the number of each element in the set 2 according to a preset rule.
  • each STA can be made to correspond to each digit of the random number, and the number on each digit of the random number can represent each element in the set 2, thereby enabling each element and set in the set 1 to be The elements in 2 - corresponding.
  • the first candidate channel and the second candidate channel are separated by at least one channel.
  • the distance between two STAs is too small and the channels used are adjacent in the system bandwidth, communication between the two adjacent network devices may cause interference to each other.
  • interference between the two network devices can be reduced by making the first scan channels corresponding to the two adjacent STAs at least one channel apart in the system bandwidth. For example, if the distance between STA#1 and STA#2 is less than the preset distance threshold, channel A1 can be selected as the first scan channel of STA#1, and channel A10 can be selected as the first scan channel of STA#2.
  • the foregoing distance threshold may be determined according to, for example, the transmit power of the two network devices, for example, if the transmit powers of AP#1 and AP#2 are both large, the two parties receive each other. The possibility of interference is large, so the distance threshold can be shortened.
  • the distance thresholds may be the same or different for different pairs of network devices, and the present invention is not particularly limited.
  • a distance threshold for determining whether the first scan channel of AP#1 and AP#2 is separated by at least one channel and a distance threshold for determining whether at least one channel of AP#1 and AP#3 are separated by at least one channel may be different.
  • the first scan channel of each STA can be determined in the manner shown in Table 4 below.
  • STA scans channel for the first time
  • the distance between STA#1 and STA#2 is the closest, by expanding the interval between the first scan channel (channel A1) of STA#1 and the first scan channel (channel A10) of STA#2, it is possible to The interference between STA#1 and STA#2 is reduced.
  • the distance between STA#1 and STA#7 is relatively far, even the first scan channel (channel A1) and STA of the large STA#1
  • the interval between the first scanning channels (channel A2) of #7 is small (specifically, adjacent); the interference between the two network devices can also be controlled within a prescribed range, thereby further improving the user experience.
  • the number of STAs is smaller than the number of channels currently available (the channels to be allocated), as in the case (1), it is possible to ensure that the first scanning channels of each STA are different.
  • M channels can be randomly selected from the N channels to be allocated, so that the selected M channels to be allocated can be allocated to M STAs using a method similar to the case (1).
  • the server may divide the T (TN) STAs into a group, so that multiple STA groups may be determined, and the number of STAs in each STA group is less than or equal to N, so that the foregoing situation (1) or case (2) may be The method of assigning the first scan channel to the STAs in each group.
  • the interference between the STAs is relatively strong, in the embodiment of the present invention, it is preferable to divide the STAs that are closer in distance into one group.
  • N 10
  • STA#1 to STA#12 are linearly arranged in numerical order (ie, the distance between STA#1 and STA#2 is the closest, STA#1 and STA#12 The farthest distance between them is, by way of example and not limitation, the first scan channel of each AP can be determined in the manner shown in Table 5 below.
  • STA scans channel for the first time
  • the probability that each STA determines the communication channel after the first scanning can be improved. Thereby, the user experience can be further improved.
  • the first STA determines, according to the current location and the coverage of each AP, the first candidate channel from the channels used by each AP, including:
  • the first STA scans the channel used by each AP by using the first candidate channel as the first scan channel, including:
  • the first STA scans the channel used by each AP according to the scanning sequence.
  • the scanning order for the remaining candidate channels may be determined.
  • the determining process may be performed by the STA, or may be performed by the server, and The complete scan order of each channel is sent to each STA.
  • a process and a method for determining a scanning channel of each STA for an alternate channel by a server will be described.
  • the candidate channel (the channel used by the first AP) is N, and the sequence of channel sequences of STA#i is recorded as: [Channel ( i, 1), Channel ( i, 2), ⁇ , Channel (i, N) ].
  • the channel scan sequence of STA#1 may be shifted left (2 - 1) bits to the channel scan sequence of STA#2, that is, the channel scan sequence of STA#2 is determined as:
  • (2, N) ] [Channel (1, 2), Channel (1, 3 ), ..., Channel ( 1, N ), Channel
  • the channel scanning sequence sequence of STA#i is STA#1, and the channel scanning sequence is shifted to the left (i-1) bit, that is,
  • the channel scanning order of STA#1 can be randomly generated.
  • the channel of the current scanning is channel A4
  • the channel of the next scanning is channel A5
  • channel A4 cannot be used as The final communication channel (for example, occupied by other STAs)
  • the interference to channel A5 is large, which may affect the user experience.
  • the scan sequence of #1 can be ⁇ A1, A3, A5, A7, A9, A2, A4, A6, A8, A10 ⁇ .
  • the number of selected channels of the device is N, that is, if the candidate channel is ⁇ #1, ⁇ #2, ..., ⁇ # ⁇ , the scan sequence of STA#1 can be generated as follows:
  • the first scan channel Channel (1, 1) A1 can be determined as described above. In the remaining candidate channels, the channel farthest from Channel (1, 1) is selected as the second scan.
  • Channel Channel ( 1, 2), ie, Channel (1, 2) AN
  • Channel (1, 1) is also the channel as far as possible.
  • the channel scanning order of each STA can be determined in the manner shown in Table 6 below.
  • the scanning order of each STA is the same, and all are Al, A2, A3, A4, A5, A6, A7, A8, A9, A10.
  • the interval may also be 4 , small, causing adjacent channel interference.
  • the STAs use different scanning orders.
  • the first scan order of each STA is different, enabling each STA to quickly find an appropriate channel, which can save communication setup time and improve user experience.
  • the channels selected by the STAs having a small distance are separated by at least one channel, and the occurrence of adjacent frequency interference can be avoided.
  • the first STA may determine the channel for the first scan according to the indication information (for example, Table 4 or Table 6 above) delivered by the server.
  • the first scan channel of STA#1 is the channel A1 described in Tables 4 to 6 above.
  • the first STA may perform channel scanning according to the first scan channel determined as described above, that is, when the first STA can determine that the channel A1 satisfies the preset condition, it is determined that the channel A1 can be used for communication, and the scanning is stopped.
  • the scanning is stopped, including: if the signal strength in the currently scanned channel is greater than or equal to a preset quality threshold, the scanning is stopped.
  • the quality of the channel A1 e.g., the signal-to-noise ratio
  • a preset value i.e., a quality threshold
  • the STA when the STA performs channel scanning, it mainly scans the APs that can serve it, and needs to ensure that the signal strength from the AP can meet the communication requirements. Therefore, if the signal strength on one channel is greater than or equal to a preset value (quality threshold) For example, if the signal-to-noise ratio on the channel is greater than or equal to a preset value (another example of a quality threshold), the STA can consider that the channel can be used for communication and stop scanning.
  • quality threshold a preset value
  • the STA can consider that the channel can be used for communication and stop scanning.
  • a certain signal may still be present on a channel that is not used by the AP, in which case the quality threshold is set to be radiated with the AP.
  • the value corresponding to the signal strength of the signal can avoid the interference of the noise, enabling the STA to accurately scan the channel that can be used for communication.
  • the interference threshold and the quality threshold listed above may be set according to the type of communication, for example, for a service that requires high communication resources such as a real-time communication service (for example, a video service or an online game service). Set a higher threshold.
  • the foregoing describes an embodiment in which the first scan channel or the channel scan sequence is set and delivered by the server.
  • the present invention is not limited thereto, and may be determined by the at least two STAs.
  • the present invention is not particularly limited as long as The first scan channels of at least two STAs may be different, and the actions and processes when the STAs perform the above process (mainly determining the first scan channel or channel scan order) are similar to those of the server.
  • the description is omitted. Description.
  • the channel scanning method of the embodiment of the present invention by making the STA determine the channel that can be used by the AP it serves, and determining the first scanning channel therefrom, it is possible to enable the STA to determine the available channel at the time of the first scanning. Moreover, by causing the network device to stop scanning when the channel condition of the currently scanned channel satisfies the preset condition, the channel scanning time of the network device can be reduced, thereby shortening the communication establishment time, thereby improving the user experience.
  • FIG. 4 shows a schematic diagram of a WLAN system to which the method 200 of the present invention is applied.
  • AP#1 uses channel A1
  • AP#2 uses channel A10
  • AP#3 uses channel A5
  • AP#4 uses channel A8
  • AP#6 uses channel A6.
  • the distance between STA#1 and AP#1 (in the distance between the STA#1 and each AP) is the shortest; between STA#2 and AP#1 The distance (in the distance between the STA#2 and each AP) is the shortest; the distance between STA#3 and AP#2 (in the distance between the STA#3 and each AP) is the shortest; STA#4 and AP#3 The distance between (the distance between STA#4 and each AP) is the shortest; the distance between STA#5 and AP#3 (in the distance between STA#5 and each AP) is the shortest; STA#6 and AP# The distance between 4 (in the distance between STA#6 and each AP) is the shortest; the distance between STA#7 and AP#5 (in the distance between STA#7 and each AP) is the shortest; STA#8 and The distance between AP #6 (in the distance between STA #6 (in the distance between STA #
  • each STA can be made to use the channel used by the AP with the shortest distance as the first scanning channel, i.e., the first scanning channel of each STA can be determined in the manner shown in Table 7 below.
  • STA scans channel for the first time
  • STA#2 channel Al (channel used by AP#1)
  • STA#3 channel A10 (channel used by AP#2)
  • STA#4 channel A5 (channel used by AP#3)
  • STA#5 channel A5 (channel used by AP#3)
  • STA#6 channel A8 (channel used by AP#4)
  • STA#7 channel A3 (channel used by AP#5)
  • STA#8 channel A6 (channel used by AP#6)
  • the channel scanning order of each STA may be determined according to the distance between each STA and each AP. For example, for the channel used by the two APs, the channel used by the AP closer to the STA is ranked in the STA. Before the channel used by the far AP, that is, the first scan channel of each STA can be determined in the manner shown in Table 8 below.
  • STA scans channel for the first time
  • STA#8 A6, A3, A8, A5, A10, A1 A method of channel scanning according to an embodiment of the present invention, by enabling a STA to determine a channel that can be used by an AP that it can serve, and determining a first scan channel therefrom, enabling STA There is no need to scan the channels that cannot be served, which can shorten the communication setup time and improve the user experience.
  • FIGS. 1 through 4 a method of channel scanning according to an embodiment of the present invention is described in detail with reference to FIGS. 1 through 4.
  • an apparatus for channel scanning according to an embodiment of the present invention will be described in detail with reference to FIGS. 5 through 6.
  • FIG. 5 shows a schematic block diagram of an apparatus 300 for channel scanning in accordance with an embodiment of the present invention.
  • the device 300 includes: The determining unit 310 is configured to determine, from the at least two channels, the first target channel, where the first target channel is different from the center frequency of the at least one second target channel, and the second target channel is at least one second a first scan channel of the network device, where the first network device and the second network device do not use the same channel to communicate at the same time, the at least two channels have the same bandwidth;
  • the scanning unit 320 is configured to scan the at least two channels by using the first target channel as the first scan channel, and stop scanning when the channel condition of the currently scanned channel meets a preset condition.
  • the determining unit 310 is specifically configured to acquire first scan indication information, where the first scan indication information is used to indicate the first channel;
  • the determining unit 310 is specifically configured to determine a scan order for the at least two channels, where the first target channel is a first scan channel;
  • the scanning unit 320 is specifically configured to scan the at least two channels according to the scanning sequence.
  • the determining unit 310 is specifically configured to acquire second scan indication information, where the second scan indication information is used to indicate the scan order.
  • the first target channel and the second target channel are separated by at least one channel.
  • the scanning unit 320 is specifically configured to
  • the scanning is stopped.
  • the device 300 for channel scanning according to an embodiment of the present invention may correspond to a first network device (for example, AP#1) in the method of the embodiment of the present invention, and each unit in the device 300 is a module and the other operations and In order to implement the corresponding process of the method 100 in FIG. 1 , the functions are not described here.
  • a first network device for example, AP#1
  • AP#1 a network device
  • each unit in the device 300 is a module and the other operations and In order to implement the corresponding process of the method 100 in FIG. 1 , the functions are not described here.
  • the apparatus for channel scanning when at least two network devices that cannot communicate using the same channel are used, when the channel is scanned, respectively, channels having different center frequency points are used as the first scanning channel, which enables
  • the network device scans for the first time, it can determine the channel that can be used, and by causing the network device to stop scanning when the channel condition of the currently scanned channel meets the preset condition, the channel scanning time of the network device can be reduced, thereby shortening the communication. Established time In order to improve the user experience.
  • FIG. 6 shows a schematic block diagram of an apparatus 400 for channel scanning in accordance with an embodiment of the present invention.
  • the device 400 includes:
  • the first determining unit 410 is configured to determine a coverage area of the at least two access points AP and a channel used by each of the APs, where a center frequency of each channel used by the AP is different, and a channel used by each AP is used. The same bandwidth;
  • the second determining unit 420 determines, according to the current location and the coverage of each AP, a first candidate channel from the channels used by each AP, where the first candidate channel is used by the first AP. Channel, the device 400 is within the coverage of the first AP;
  • the scanning unit 430 is configured to scan the channel used by each AP by using the first candidate channel as the first scanning channel, and stop scanning when the channel condition of the currently scanned channel meets a preset condition.
  • the first candidate channel is different from the at least one second candidate channel, where the second candidate channel is the first scan channel of the at least one second STA, and the device 400 is not used in the same period as the second STA. Communicate on the same channel.
  • the second determining unit 420 is specifically configured to determine, according to the current location and the coverage of each AP, a scan order of channels used by each AP, where the first candidate channel is in the scan sequence. For the first scan of the channel;
  • the scanning unit 430 is specifically configured to scan a channel used by each AP according to the scanning sequence.
  • the scanning unit 430 is specifically configured to:
  • the apparatus 400 for channel scanning according to an embodiment of the present invention may correspond to a first STA (for example, STA #1) in the method of the embodiment of the present invention, and each unit in the apparatus 400 is a module and the other operations described above and/or For the purpose of implementing the corresponding process of the method 200 in FIG. 3, the functions are not described here.
  • the apparatus for channel scanning according to an embodiment of the present invention by enabling a STA to determine a channel used by an AP that can serve it, and determining a first scan channel therefrom, enables the STA to shorten the communication without scanning a channel that cannot be served by the STA Establish time to improve the user experience.
  • a method of channel scanning according to an embodiment of the present invention is described in detail with reference to FIGS. 1 through 4.
  • an apparatus for channel scanning according to an embodiment of the present invention will be described in detail with reference to FIGS. 7 through 8.
  • FIG. 7 shows a schematic block diagram of an apparatus 500 for channel scanning in accordance with an embodiment of the present invention.
  • the device 500 includes:
  • processor 520 coupled to the bus 510;
  • a memory 530 connected to the bus 510;
  • the processor 520 through the bus 510, invokes a program stored in the memory 530, for determining a first target channel from at least two channels, wherein the first target channel and the at least one second target channel The central frequency points are different, the second target channel is the first scan channel of the at least one second network device, and the device 500 communicates with the second network device at the same time interval using the same channel, and the at least two channels have the same bandwidth ;
  • the processor 520 is further configured to acquire first scan indication information, where the first scan indication information is used to indicate the first channel;
  • the processor 520 is specifically configured to determine a scan order for the at least two channels, where the first target channel is a first scan channel;
  • the processor 520 is specifically configured to acquire second scan indication information, where the second scan indication information is used to indicate the scan sequence.
  • the first target channel and the second target channel are separated by at least one channel.
  • the processor 520 is specifically configured to:
  • the general purpose processor 520 can be a microprocessor or the processor can be any conventional processor, decoder or the like.
  • the steps of the method disclosed in connection with the embodiments of the present invention It can be directly implemented as a hardware processor or completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 530, and the processor 520 reads the information in the memory 530 and completes the steps of the above method in combination with hardware.
  • device 500 may be embedded or may itself be a wireless communication device such as a mobile telephone.
  • device 500 may also include a transmitting circuit, a receiving circuit, a power controller, a decoding processor, and an antenna.
  • a carrier housing the transmitting circuit and the receiving circuit may be included to allow data transmission and reception between the device 500 and the remote location.
  • the transmit and receive circuits can be coupled to the antenna.
  • the various components of device 500 are coupled together by a bus 510.
  • the processor 520 may be a central processing unit (a central processing unit), and the processor 520 may also be another general-purpose processor, a digital signal processor (DSP). ), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like.
  • DSP digital signal processor
  • ASICs application specific integrated circuits
  • FPGAs off-the-shelf programmable gate arrays
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 530 can include read only memory and random access memory and provides instructions and data to the processor 820.
  • a portion of memory 530 may also include non-volatile random access memory.
  • the memory 530 can also store information of the device type.
  • the bus 510 can include, in addition to the data bus, a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are labeled as bus 510 in the figure.
  • the steps of the above method may be completed by an integrated logic circuit of hardware in the processor 520 or an instruction in the form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software modules can be located in random memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, etc., which are well established in the art.
  • the storage medium is located in the memory 530.
  • the processor 520 reads the information in the memory 530 and combines the hardware to perform the steps of the above method. To avoid repetition, it will not be described in detail here.
  • the device 500 for channel scanning according to the embodiment of the present invention may correspond to a first network device (for example, AP#1) in the method of the embodiment of the present invention, and each unit in the device 500 is a module and the other operations described above. In order to implement the corresponding process of the method 100 in FIG. 1 , the functions are not described here.
  • the apparatus for channel scanning when at least two network devices that cannot communicate using the same channel are used, when the channel is scanned, respectively, channels having different center frequency points are used as the first scanning channel, which enables
  • the network device scans for the first time, it can determine the channel that can be used, and by causing the network device to stop scanning when the channel condition of the currently scanned channel meets the preset condition, the channel scanning time of the network device can be reduced, thereby shortening the communication. Establish time to improve the user experience.
  • FIG. 8 shows a schematic block diagram of an apparatus 600 for channel scanning in accordance with an embodiment of the present invention.
  • the device 600 includes:
  • the device 600 includes:
  • processor 620 connected to the bus 610;
  • a memory 630 connected to the bus 610;
  • the processor 620 calls, by using the bus 610, a program stored in the memory 630, for determining a coverage of at least two access points AP and a channel used by each AP, where each AP uses a channel.
  • the frequency of the center is different, and the bandwidth of the channel used by each AP is the same; and the first candidate channel is determined from the channels used by each AP according to the current location and the coverage of each AP, where The first candidate channel is a channel used by the first AP, and the device 600 is in the coverage of the first AP;
  • the first candidate channel is different from the at least one second candidate channel, where the second candidate channel is the first scan channel of the at least one second STA, and the device 600 is not used in the same period as the second STA. Communicate on the same channel.
  • the processor 620 is specifically configured to determine, according to the current location and the coverage of each AP, a scanning sequence of channels used by each AP, where the first candidate channel is the first time in the scanning sequence. Scanning channel;
  • the processor 620 is specifically configured to stop scanning if the interference in the currently scanned channel is less than or equal to a preset interference threshold; or
  • device 600 may be embedded or may itself be a step and logical block diagram such as a mobile phone.
  • the general purpose processor 620 can be a microprocessor or the processor can be any conventional processor, decoder or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software modules can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 630.
  • the processor 620 reads the information in the memory 630 and completes the steps of the above method in combination with hardware.
  • device 600 may be embedded or may itself be a wireless communication device such as a mobile telephone.
  • device 600 may also include a transmitting circuit, a receiving circuit, a power controller, a decoding processor, and an antenna.
  • a carrier housing the transmitting circuit and the receiving circuit may be included to allow data transmission and reception between the device 600 and the remote location.
  • the transmit and receive circuits can be coupled to the antenna.
  • the various components of device 600 are coupled together by a bus 610.
  • the processor 620 may be a central processing unit (Central)
  • the processing unit may also be other general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), or other programmable Logic devices, discrete gates or transistor logic devices, discrete hardware components, and more.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 630 can include read only memory and random access memory and provides instructions and data to the processor 620.
  • a portion of memory 630 may also include non-volatile random access memory.
  • the memory 630 can also store information of the device type.
  • the bus 610 can include, in addition to the data bus, a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are labeled as bus 610 in the figure.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 620 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software modules can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 630.
  • the processor 620 reads the information in the memory 630 and completes the steps of the above method in combination with hardware. To avoid repetition, it will not be described in detail here.
  • the apparatus 600 for channel scanning according to the embodiment of the present invention may correspond to a first STA (for example, STA #1) in the method of the embodiment of the present invention, and each unit in the apparatus 600 is a module and the other operations described above and/or For the purpose of implementing the corresponding process of the method 200 in FIG. 3, the functions are not described here.
  • STA for example, STA #1
  • a device for channel scanning by enabling a STA to determine a channel used by an AP that can serve it, and determining a first scan channel therefrom, enables the STA to shorten the communication without scanning a channel that cannot be served by the STA Establish time to improve the user experience.
  • FIGS. 1 through 4 a method of channel scanning according to an embodiment of the present invention is described in detail with reference to FIGS. 1 through 4.
  • a system for channel scanning according to an embodiment of the present invention will be described in detail with reference to FIGS. 9 and 10.
  • Figure 9 shows a schematic block diagram of a system 700 for channel scanning in accordance with an embodiment of the present invention.
  • the system 700 includes at least two network devices, and a first one of the at least two network devices is configured to determine, from the at least two channels, a first target channel, where the first target The channel is different from a center frequency of the at least one second target channel, the second target channel is a first scan channel of the at least one second network device 720, and the first network device does not use the same channel in the same time period as the second network device Communicating, the at least two channels have the same bandwidth, and the first network device 710 scans the at least two channels by using the first target channel as the first scan channel, when the channel condition of the currently scanned channel meets a preset condition. , stop scanning.
  • AP#1 and the modules and the other operations and/or functions in the first network device 710 are respectively implemented in order to implement the corresponding process of the method 100 in FIG. Narration.
  • the system for channel scanning by scanning at least two network devices that cannot communicate using the same channel, respectively, channels having different center frequency points are used as the first scanning channel, which enables
  • the network device scans for the first time, it can determine the channel that can be used, and by causing the network device to stop scanning when the channel condition of the currently scanned channel meets the preset condition, the channel scanning time of the network device can be reduced, thereby shortening the communication. Establish time to improve the user experience.
  • FIG 10 shows a schematic block diagram of a system 800 for channel scanning in accordance with an embodiment of the present invention.
  • the system 800 includes:
  • the first station STA 810 determines the coverage of at least two access point APs and each of the APs The used channel, wherein the center frequency of the channel used by each AP is different, and the bandwidth of the channel used by each AP is the same, and the first STA 810 is configured according to the current location and the coverage of each AP.
  • the channel used by the AP determines the first candidate channel, where the first candidate channel is the channel used by the first AP 820, the first STA is in the coverage of the first AP 820, and the first STA 810
  • the first candidate channel is used as the first scan channel, and the channel used by each AP is scanned, and when the channel condition of the currently scanned channel meets a preset condition, the scanning is stopped.
  • the first station STA 810 may correspond to a first STA (eg, STA #1) in the method of the embodiment of the present invention, and each unit in the first station STA 810 is a module and the other operations and/or functions described above respectively In order to implement the corresponding process of the method 200 in FIG. 3, for the sake of cleaning, no further details are provided herein.
  • a system for channel scanning by enabling a STA to determine a channel used by an AP that can serve it, and determining a first scan channel therefrom, enabling the STA to shorten the communication without scanning a channel that cannot be served by the STA Establish time to improve the user experience.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and may be implemented in actual implementation.
  • multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential to the prior art or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Landscapes

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

Abstract

Embodiments of the present invention provide a channel scan method and an apparatus, which can reduce channel scan time and improve user experience. The method comprises: a first network device in at least two network devices determining a first target channel from at least two channels, wherein the first target channel has a different central frequency from at least one second target channel, the second target channel is a first scan channel of at least one second network device, the first network device and the second network device do not communicate using a same channel in a same time segment, and bandwidths of the at least two channels are the same; and the first network device using the first target channel as a first scan channel, scanning the at least two channels, and stopping scanning when a channel situation of a channel that is currently scanned meets a preset condition.

Description

信道扫描的方法和装置 技术领域  Channel scanning method and device
本发明涉及通信领域, 并且更具体地, 涉及信道扫描的方法和装置。 背景技术  The present invention relates to the field of communications and, more particularly, to a method and apparatus for channel scanning. Background technique
目前, 已知一种通信技术, 网络设备按照相同的顺序(例如, 针对频点 的由低到高的顺序), 对位于规定频率范围内的多个信道进行扫描, 选择质 量最好的信道, 以进行通信。  At present, a communication technology is known in which network devices scan a plurality of channels located within a prescribed frequency range in the same order (for example, in a low-to-high order for frequency points) to select a channel of the highest quality. For communication.
但是, 由于网络设备需要对每个信道进行扫描, 大大增加了扫描时间, 进而延长了通信建立的时间, 严重影响了用户体验。  However, since the network device needs to scan each channel, the scanning time is greatly increased, thereby prolonging the communication establishment time, which seriously affects the user experience.
因此, 希望提供一种技术, 能够减少信道扫描的时间, 改善用户体验。 发明内容  Therefore, it is desirable to provide a technique that can reduce the time of channel scanning and improve the user experience. Summary of the invention
本发明实施例提供一种信道扫描的方法和装置, 能够减少信道扫描的时 间, 改善用户体验。  Embodiments of the present invention provide a method and apparatus for channel scanning, which can reduce channel scanning time and improve user experience.
第一方面, 提供了一种信道扫描的方法, 该方法包括: 至少两个网络设 备中的第一网络设备从至少两个信道中, 确定第一目标信道, 其中, 该第一 目标信道与至少一个第二目标信道的中心频点相异, 该第二目标信道是至少 一个第二网络设备的首次扫描信道,该第一网络设备与该第二网络设备不在 同一时段使用同一信道进行通信, 该至少两个信道的带宽相同; 该第一网络 设备以该第一目标信道作为首次扫描信道, 对该至少两个信道进行扫描, 在 当前扫描的信道的信道状况满足预设条件时, 停止扫描。  In a first aspect, a method for channel scanning is provided, the method comprising: determining, by a first one of the at least two network devices, a first target channel from the at least two channels, where the first target channel and the at least The center frequency of the second target channel is different, the second target channel is the first scan channel of the at least one second network device, and the first network device does not use the same channel to communicate with the second network device. The at least two channels have the same bandwidth; the first network device scans the at least two channels by using the first target channel as the first scan channel, and stops scanning when the channel condition of the currently scanned channel meets a preset condition.
结合第一方面, 在第一方面的第一种实现方式中, 该至少两个网络设备 中的第一网络设备从至少两个信道中, 确定第一目标信道, 包括: 该至少两 个网络设备中的第一网络设备获取第一扫描指示信息, 该第一扫描指示信息 用于指示该第一信道; 该第一网络设备根据该第一扫描指示信息, 确定该第 一信道。  With reference to the first aspect, in a first implementation manner of the first aspect, the first network device of the at least two network devices determines the first target channel from the at least two channels, including: the at least two network devices The first network device obtains the first scan indication information, where the first scan indication information is used to indicate the first channel; and the first network device determines the first channel according to the first scan indication information.
结合第一方面及其上述实现方式, 在第一方面的第二种实现方式中, 该 至少两个网络设备中的第一网络设备从至少两个信道中, 确定第一目标信 道, 包括: 该至少两个网络设备中的第一网络设备确定针对该至少两个信道 的扫描顺序, 在该扫描顺序中, 该第一目标信道为首次扫描信道; 该第一网 络设备根据该扫描顺序, 确定该第一目标信道; 以及该第一网络设备以该第 一目标信道作为首次扫描信道, 对该至少两个信道进行扫描, 包括: 该第一 网络设备根据该扫描顺序, 对该至少两个信道进行扫描。 With reference to the first aspect and the foregoing implementation manner, in a second implementation manner of the first aspect, the first network device of the at least two network devices determines the first target channel from the at least two channels, including: Determining, by the first network device of the at least two network devices, the at least two channels a scan order in which the first target channel is a first scan channel; the first network device determines the first target channel according to the scan order; and the first network device uses the first target channel as Scanning the channel for the first time, scanning the at least two channels, including: the first network device scanning the at least two channels according to the scanning sequence.
结合第一方面及其上述实现方式, 在第一方面的第三种实现方式中, 当 该第一网络设备与该第二网络设备之间的距离小于等于预设的距离门限时, 该第一目标信道与该第二目标信道之间相隔至少一个信道。  In combination with the first aspect and the foregoing implementation manner, in a third implementation manner of the first aspect, when the distance between the first network device and the second network device is less than or equal to a preset distance threshold, the first The target channel is separated from the second target channel by at least one channel.
结合第一方面及其上述实现方式, 在第一方面的第四种实现方式中, 该 在当前扫描的信道的信道状况满足预设条件时, 停止扫描, 包括: 如果当前 扫描的信道中的干扰小于等于预设的干扰门限, 则停止扫描; 或如果当前扫 描的信道中的信号强度大于等于预设的质量门限, 则停止扫描。  With reference to the first aspect and the foregoing implementation manner, in a fourth implementation manner of the first aspect, when the channel condition of the currently scanned channel meets a preset condition, the scanning is stopped, including: if the interference in the currently scanned channel If the preset interference threshold is less than or equal to, the scanning is stopped; or if the signal strength in the currently scanned channel is greater than or equal to the preset quality threshold, the scanning is stopped.
第二方面, 提供了一种信道扫描的方法, 该方法包括: 第一站点 STA 确定至少两个接入点 AP的覆盖范围以及各该 AP使用的信道, 其中, 各该 AP使用的信道的中心频点相异, 且各该 AP使用的信道的带宽相同; 该第 一 STA根据当前所处位置以及各该 AP的覆盖范围, 从各该 AP使用的信道 中, 确定第一备选信道, 其中, 该第一备选信道为第一 AP所使用的信道, 该第一 STA处于该第一 AP的覆盖范围内; 该第一 STA以该第一备选信道 作为首次扫描信道, 对各该 AP使用的信道进行扫描, 在当前扫描的信道的 信道状况满足预设条件时, 停止扫描。  In a second aspect, a method for channel scanning is provided, the method comprising: determining, by a first station STA, a coverage of at least two access points AP and a channel used by each AP, wherein a center of a channel used by each AP The frequency points are different, and the bandwidths of the channels used by the APs are the same; the first STA determines the first candidate channel from the channels used by each AP according to the current location and the coverage of each AP, where The first candidate channel is a channel used by the first AP, and the first STA is in the coverage of the first AP; the first STA uses the first candidate channel as the first scan channel, and the AP is used for each AP. The used channel is scanned, and the scanning is stopped when the channel condition of the currently scanned channel satisfies a preset condition.
结合第二方面, 在第二方面的第一种实现方式中, 该第一备选信道与至 少一个第二备选信道相异, 该第二备选信道是至少一个第二 STA 的首次扫 描信道, 该第一 STA与该第二 STA不在同一时段使用同一信道进行通信。  With reference to the second aspect, in a first implementation manner of the second aspect, the first candidate channel is different from the at least one second candidate channel, where the second candidate channel is the first scan channel of the at least one second STA And the first STA does not use the same channel to communicate with the second STA.
结合第二方面及其上述实现方式, 在第二方面的第二种实现方式中, 该 第一 STA根据当前所处位置以及各该 AP的覆盖范围, 从各该 AP使用的信 道中, 确定第一备选信道, 包括: 该第一 STA根据当前所处位置以及各该 AP的覆盖范围, 确定针对各该 AP使用的信道的扫描顺序, 在该扫描顺序 中, 该第一备选信道为首次扫描信道; 以及该第一 STA 以该第一备选信道 作为首次扫描信道, 对各该 AP使用的信道进行扫描, 包括: 该第一 STA根 据该扫描顺序, 对各该 AP使用的信道进行扫描。  With reference to the second aspect and the foregoing implementation manner, in the second implementation manner of the second aspect, the first STA determines, according to the current location and the coverage of each AP, from the channels used by each AP. An optional channel, including: the first STA determines, according to the current location and the coverage of each AP, a scanning order of channels used by each AP, where the first candidate channel is the first time in the scanning sequence Scanning the channel; and scanning, by the first STA, the channel used by each AP by using the first candidate channel as the first scan channel, including: scanning, by the first STA, the channel used by each AP according to the scanning sequence .
结合第二方面及其上述实现方式, 在第二方面的第三种实现方式中, 在 各该 AP中, 该第一 AP是与该第一 STA之间的距离最小。 结合第二方面及其上述实现方式, 在第二方面的第四种实现方式中, 该 在当前扫描的信道的信道状况满足预设条件时, 停止扫描, 包括: 如果当前 扫描的信道中的信号强度大于等于预设的质量门限, 则停止扫描。 With reference to the second aspect and the foregoing implementation manner, in a third implementation manner of the second aspect, in each AP, the distance between the first AP and the first STA is the smallest. With reference to the second aspect and the foregoing implementation manner, in a fourth implementation manner of the second aspect, when the channel condition of the currently scanned channel meets a preset condition, the scanning is stopped, including: if the signal in the currently scanned channel If the intensity is greater than or equal to the preset quality threshold, the scan is stopped.
第三方面, 提供了一种信道扫描的装置, 该装置包括: 确定单元, 用于 从至少两个信道中, 确定第一目标信道, 其中, 该第一目标信道与至少一个 第二目标信道的中心频点相异, 该第二目标信道是至少一个第二网络设备的 首次扫描信道,该第一网络设备与该第二网络设备不在同一时段使用同一信 道进行通信, 该至少两个信道的带宽相同; 扫描单元, 用于以该第一目标信 道作为首次扫描信道, 对该至少两个信道进行扫描, 在当前扫描的信道的信 道状况满足预设条件时, 停止扫描。  In a third aspect, an apparatus for channel scanning is provided, the apparatus comprising: a determining unit, configured to determine, from at least two channels, a first target channel, where the first target channel and the at least one second target channel The central frequency points are different, the second target channel is a first scan channel of the at least one second network device, and the first network device communicates with the second network device at the same time interval by using the same channel, and the bandwidth of the at least two channels The scanning unit is configured to scan the at least two channels by using the first target channel as the first scan channel, and stop scanning when the channel condition of the currently scanned channel meets a preset condition.
结合第三方面, 在第三方面的第一种实现方式中, 该确定单元具体用于 获取第一扫描指示信息, 该第一扫描指示信息用于指示该第一信道; 用于根 据该第一扫描指示信息, 确定该第一信道。  With reference to the third aspect, in a first implementation manner of the third aspect, the determining unit is specifically configured to acquire first scan indication information, where the first scan indication information is used to indicate the first channel, and to be used according to the first Scanning indication information to determine the first channel.
结合第三方面及其上述实现方式, 在第三方面的第二种实现方式中, 该 确定单元具体用于确定针对该至少两个信道的扫描顺序, 在该扫描顺序中, 该第一目标信道为首次扫描信道; 用于根据该扫描顺序, 确定该第一目标信 道;以及该扫描单元具体用于根据该扫描顺序,对该至少两个信道进行扫描。  With reference to the third aspect and the foregoing implementation manner, in a second implementation manner of the third aspect, the determining unit is specifically configured to determine a scanning sequence for the at least two channels, where the first target channel is in the scanning sequence The first scanning channel is determined according to the scanning sequence, and the scanning unit is specifically configured to scan the at least two channels according to the scanning sequence.
结合第三方面及其上述实现方式, 在第三方面的第三种实现方式中, 该 确定单元具体用于获取第二扫描指示信息, 该第二扫描指示信息用于指示该 扫描顺序。  In combination with the third aspect and the foregoing implementation manner, in a third implementation manner of the third aspect, the determining unit is specifically configured to acquire second scan indication information, where the second scan indication information is used to indicate the scan sequence.
结合第三方面及其上述实现方式, 在第三方面的第四种实现方式中, 当 该装置与该第二网络设备之间的距离小于等于预设的距离门限时, 该第一目 标信道与该第二目标信道之间相隔至少一个信道。  With reference to the third aspect and the foregoing implementation manner, in a fourth implementation manner of the third aspect, when the distance between the device and the second network device is less than or equal to a preset distance threshold, the first target channel is The second target channel is separated by at least one channel.
结合第三方面及其上述实现方式, 在第三方面的第五种实现方式中, 该 扫描单元具体用于如果当前扫描的信道中的干扰小于等于预设的干扰门限, 则停止扫描; 或如果当前扫描的信道中的信号强度大于等于预设的质量门 限, 则停止扫描  With reference to the third aspect and the foregoing implementation manner, in a fifth implementation manner of the third aspect, the scanning unit is specifically configured to stop scanning if the interference in the currently scanned channel is less than or equal to a preset interference threshold; or Stop scanning after the signal strength in the currently scanned channel is greater than or equal to the preset quality threshold.
第四方面, 提供了一种信道扫描的装置, 该装置包括: 第一确定单元, 用于确定至少两个接入点 AP的覆盖范围以及各该 AP使用的信道, 其中, 各该 AP使用的信道的中心频点相异, 且各该 AP使用的信道的带宽相同; 第二确定单元, 根据当前所处位置以及各该 AP的覆盖范围, 从各该 AP使 用的信道中, 确定第一备选信道, 其中, 该第一备选信道为第一 AP所使用 的信道, 该装置处于该第一 AP的覆盖范围内; 扫描单元, 用于以该第一备 选信道作为首次扫描信道, 对各该 AP使用的信道进行扫描, 在当前扫描的 信道的信道状况满足预设条件时, 停止扫描。 In a fourth aspect, a device for channel scanning is provided, where the device includes: a first determining unit, configured to determine a coverage of at least two access points AP, and a channel used by each AP, where each AP uses The center frequency of the channel is different, and the bandwidth of the channel used by each AP is the same; the second determining unit is configured from each AP according to the current location and the coverage of each AP. Determining a first candidate channel, wherein the first candidate channel is a channel used by the first AP, the device is within the coverage of the first AP, and the scanning unit is configured to use the first The candidate channel is used as the first scan channel, and the channel used by each AP is scanned, and when the channel condition of the currently scanned channel satisfies a preset condition, the scanning is stopped.
结合第四方面, 在第四方面的第一种实现方式中, 该第一备选信道与至 少一个第二备选信道相异, 该第二备选信道是至少一个第二 STA 的首次扫 描信道, 该装置与该第二 STA不在同一时段使用同一信道进行通信。  With reference to the fourth aspect, in a first implementation manner of the fourth aspect, the first candidate channel is different from the at least one second candidate channel, where the second candidate channel is a first scan channel of the at least one second STA The device communicates with the second STA at the same time using the same channel.
结合第四方面及其上述实现方式, 在第四方面的第二种实现方式中, 该 第二确定单元具体用于根据当前所处位置以及各该 AP的覆盖范围, 确定针 对各该 AP使用的信道的扫描顺序, 在该扫描顺序中, 该第一备选信道为首 次扫描信道; 以及该扫描单元具体用于根据该扫描顺序, 对各该 AP使用的 信道进行扫描。  With reference to the fourth aspect and the foregoing implementation manner, in the second implementation manner of the fourth aspect, the second determining unit is specifically configured to determine, according to the current location and the coverage of each AP, the used for each AP a scanning sequence of the channel, in the scanning sequence, the first candidate channel is a first scanning channel; and the scanning unit is specifically configured to scan a channel used by each AP according to the scanning sequence.
结合第四方面及其上述实现方式, 在第四方面的第三种实现方式中, 在 各 AP中, 该第一 AP与该装置之间的距离最小。  With reference to the fourth aspect and the foregoing implementation manner, in a third implementation manner of the fourth aspect, in each AP, a distance between the first AP and the device is the smallest.
结合第四方面及其上述实现方式, 在第四方面的第四种实现方式中, 该 扫描单元具体用于,如果当前扫描的信道中的信号强度大于等于预设的质量 门限, 则停止扫描。  With reference to the fourth aspect and the foregoing implementation manner, in a fourth implementation manner of the fourth aspect, the scanning unit is specifically configured to stop scanning if a signal strength in the currently scanned channel is greater than or equal to a preset quality threshold.
根据本发明实施例的信道扫描的方法和装置,通过使无法使用相同的信 道进行通信的至少两个网络设备, 在对信道进行扫描时, 分别以中心频点相 异的信道作为首次扫描信道, 能够使各网络设备在首次扫描时, 便能够确定 可以使用的信道, 并且, 通过使网络设备在当前扫描的信道的信道状况满足 预设条件时停止扫描, 能够降低网络设备的信道扫描时间, 进而缩短通信建 立的时间, 从而提高用户体验。 附图说明  A method and apparatus for channel scanning according to an embodiment of the present invention, by using at least two network devices that cannot communicate using the same channel, when scanning a channel, respectively, using channels having different center frequency points as the first scanning channel, It is possible to enable each network device to determine a usable channel when the first scan is performed, and to reduce the channel scan time of the network device by causing the network device to stop scanning when the channel condition of the currently scanned channel satisfies a preset condition, and further Reduce the time it takes to establish a communication, thereby improving the user experience. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例或现有技 术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图 仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造 性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings to be used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only the present invention. For some embodiments, other drawings may be obtained from those of ordinary skill in the art without departing from the drawings.
图 1是根据本发明一实施例的信道扫描的方法的示意性流程图。  FIG. 1 is a schematic flowchart of a method for channel scanning according to an embodiment of the present invention.
图 2是表示本发明一实施例的信道扫描的方法的扫描对象的示意图。 图 3是根据本发明另一实施例的信道扫描的方法的示意性流程图。 2 is a schematic diagram showing a scanning object of a method of channel scanning according to an embodiment of the present invention. FIG. 3 is a schematic flowchart of a method of channel scanning according to another embodiment of the present invention.
图 4是表示适用本发明另一实施例的信道扫描的方法的***的示意图。 图 5是根据本发明一实施例的信道扫描的装置的示意性框图。  4 is a schematic diagram showing a system of a method of channel scanning to which another embodiment of the present invention is applied. FIG. 5 is a schematic block diagram of an apparatus for channel scanning according to an embodiment of the present invention.
图 6是根据本发明另一实施例的信道扫描的装置的示意性框图。  6 is a schematic block diagram of an apparatus for channel scanning according to another embodiment of the present invention.
图 7是根据本发明一实施例的信道扫描的设备的示意性结构图。  FIG. 7 is a schematic structural diagram of an apparatus for channel scanning according to an embodiment of the present invention.
图 8是根据本发明另一实施例的信道扫描的设备的示意性结构图。  FIG. 8 is a schematic structural diagram of an apparatus for channel scanning according to another embodiment of the present invention.
图 9是根据本发明一实施例的信道扫描的***的示意性框图。  9 is a schematic block diagram of a system for channel scanning in accordance with an embodiment of the present invention.
图 10是根据本发明另一实施例的信道扫描的***的示意性框图。 具体实施方式  FIG. 10 is a schematic block diagram of a system for channel scanning according to another embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创 造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  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. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without making creative labor are within the scope of the present invention.
本发明的技术方案,可以应用于各种需要对***提供的无线资源(例如, 规定频率范围内的多个信道)进行扫描, 以选择所使用的信道的通信***, 例如, 无线局域网 (WLAN, Wireless Local Area Network ) ***、 无线保真 ( Wi-Fi , Wireless Fidelity ) ***等。 相对应的, 网络设备可以是 WLAN中 的接入点 (AP, Access Point )或用户站点 ( STA, Station )。  The technical solution of the present invention can be applied to various communication systems that need to scan for radio resources (for example, multiple channels in a specified frequency range) provided by the system to select a channel to be used, for example, a wireless local area network (WLAN). Wireless Local Area Network ) System, Wi-Fi (Wireless Fidelity) system, etc. Correspondingly, the network device can be an access point (AP, Access Point) or a user site (STA, Station) in the WLAN.
应理解, 以上列举的适用本发明提供的信道扫描的方法的通信***仅为 示例性说明, 本发明并不限定于此, 其他需要网络设备(包括信息或数据的 发送端和接收端 )对***提供的信道进行扫描以使用未被占用的信道进行通 信的***均落入本发明的保护范围内。  It should be understood that the above-mentioned communication system to which the method for channel scanning provided by the present invention is applied is merely exemplary, and the present invention is not limited thereto, and other network devices (including the transmitting end and the receiving end of information or data) are required to the system. Systems in which the provided channels are scanned for communication using unoccupied channels fall within the scope of the present invention.
为了便于理解, 在以下说明中, 以应用于 WLAN***中的实施过程为 例, 对本发明实施例的信道扫描的方法和装置进行说明。  For ease of understanding, in the following description, a method and apparatus for channel scanning according to an embodiment of the present invention will be described by taking an implementation procedure applied in a WLAN system as an example.
图 1示出了本发明一实施例的信道扫描的方法 100的示意性流程图, 其 中, 该方法 100的执行主体(或者说, 本发明实施例中的网络设备)可以是 WLAN***中的 AP, 也可以是 STA, 本发明并未特别限定, 为了便于理解, 以下, 以 AP执行时的动作和方法为例, 进行说明。 需要说明的是, 在本发 明实施例中, 第一网络设备与第二网络设备的类型需要一致, 即, 如果第一 网络设备为 AP,则第二网络设备也为 AP, 同样,如果第一网络设备为 STA, 则第二网给设备也为 STA。 FIG. 1 is a schematic flowchart of a method 100 for channel scanning according to an embodiment of the present invention, where an execution body of the method 100 (or a network device in the embodiment of the present invention) may be an AP in a WLAN system. The present invention is not limited to the present invention. For the sake of easy understanding, the following describes an operation and method at the time of AP execution as an example. It should be noted that, in the embodiment of the present invention, the type of the first network device and the second network device need to be the same, that is, if the first network device is an AP, the second network device is also an AP, and likewise, if the first The network device is STA, Then, the second network gives the device also a STA.
在 WLAN***中,可以使用 2.4GHz以及 5GHz上的多个信道进行通信, 其中, 对于不同的通信版本, 各信道带宽可以相异。  In a WLAN system, communication can be performed using multiple channels at 2.4 GHz and 5 GHz, where the channel bandwidth can be different for different communication versions.
图 2示出了 5GHz上的信道划分方式,如图 2所示,在 IEEE 802.11a中, STA和 AP可以使用 5.3GHz和 5.8GHz上, 带宽为 20MHz的信道;  Figure 2 shows the channel division mode at 5 GHz. As shown in Figure 2, in IEEE 802.11a, STAs and APs can use channels with a bandwidth of 20 MHz at 5.3 GHz and 5.8 GHz.
在 IEEE 802.11b中, STA和 AP可以使用 2.4GHz上, 带宽为 20MHz 的信道。  In IEEE 802.11b, STAs and APs can use a channel with a bandwidth of 20 MHz at 2.4 GHz.
在 IEEE 802.11g中, STA和 AP可以使用 2.4GHz上, 带宽为 20MHz 的信道。  In IEEE 802.11g, STAs and APs can use a channel with a bandwidth of 20 MHz at 2.4 GHz.
在 IEEE 802.11η中, STA和 AP可以使用 2.4GHz和 5GHz上, 带宽为 In IEEE 802.11η, STAs and APs can use 2.4GHz and 5GHz, and the bandwidth is
20MHz或 40MHz的信道。 20MHz or 40MHz channel.
在 IEEE 802.1 lac中, STA和 AP可以使用 5GHz上, 带宽为 20MHz、 40MHz、 80MHz或者 160MHz的信道。  In IEEE 802.1 lac, STAs and APs can use channels at 5 GHz with bandwidths of 20 MHz, 40 MHz, 80 MHz, or 160 MHz.
需要说明的是, 在本发明实施例中, 40MHz 的信道是由两个(例如, 相邻的) 20MHz的信道组成的, 在使用 40MHz的信道进行通信时, 需要满 足以下奈件:  It should be noted that, in the embodiment of the present invention, the 40 MHz channel is composed of two (for example, adjacent) 20 MHz channels, and when using a 40 MHz channel for communication, it is necessary to satisfy the following conditions:
构成该 40MHz的信道两个 20MHz的信道均未被其他 AP或 STA占用。 即,如果 STA或 AP检测到一个 40MHz的信道范围内的 20MHz的信道被占 用, 则该 STA或 AP无法使用该 40MHz的信道。  The two 20 MHz channels constituting the 40 MHz channel are not occupied by other APs or STAs. That is, if the STA or AP detects that a 20 MHz channel within a 40 MHz channel range is occupied, the STA or AP cannot use the 40 MHz channel.
为了便于理解, 在以下说明中, 以网络侧设备对各 20MHz的信道的扫 描过程为例, 进行说明。  For the sake of understanding, in the following description, the scanning process of each 20 MHz channel by the network side device will be described as an example.
如图 1所示, 该方法 100包括:  As shown in FIG. 1, the method 100 includes:
S110, 至少两个网络设备中的第一网络设备从至少两个信道中, 确定第 一目标信道, 其中, 该第一目标信道与至少一个第二目标信道的中心频点相 异, 该第二目标信道是至少一个第二网络设备的首次扫描信道, 该第一网络 设备与该第二网络设备不在同一时段使用同一信道进行通信, 该至少两个信 道的带宽相同;  S110. The first network device of the at least two network devices determines, from the at least two channels, a first target channel, where the first target channel is different from a center frequency of the at least one second target channel, where the second The target channel is a first scan channel of the at least one second network device, and the first network device communicates with the second network device at the same time using the same channel, and the at least two channels have the same bandwidth;
S120, 该第一网络设备以该第一目标信道作为首次扫描信道, 对该至少 两个信道进行扫描, 在当前扫描的信道的信道状况满足预设条件时, 停止扫 描。  S120. The first network device scans the at least two channels by using the first target channel as the first scan channel, and stops scanning when the channel condition of the currently scanned channel meets a preset condition.
具体地说, 在本发明实施例中, 使无法使用相同的信道进行通信的至少 网络设备, 在对信道进行扫描时, 分别以中心频点相异的信道作为首次扫描 信道, 能够使各网络设备在首次扫描时, 便能够确定可以使用的信道。 Specifically, in the embodiment of the present invention, at least the same channel cannot be used for communication. The network device, when scanning the channel, uses the channel with different center frequency as the first scanning channel, so that each network device can determine the available channel when scanning for the first time.
可选地, 该至少两个网络设备中的第一网络设备从至少两个信道中, 确 定第一目标信道, 包括:  Optionally, the first network device of the at least two network devices determines the first target channel from the at least two channels, including:
该至少两个网络设备中的第一网络设备获取第一扫描指示信息, 该第一 扫描指示信息用于指示该第一信道;  The first network indicator of the at least two network devices acquires first scan indication information, where the first scan indication information is used to indicate the first channel;
该第一网络设备根据该第一扫描指示信息, 确定该第一信道。  The first network device determines the first channel according to the first scan indication information.
具体地说, 在本发明实施例中, 该至少两个网络设备的首次扫描信道可 以由例如, 服务器预先设定, 其后, 下发并存储在该至少两个网络设备中。  Specifically, in the embodiment of the present invention, the first scan channel of the at least two network devices may be preset by, for example, a server, and then sent and stored in the at least two network devices.
需要说明的是, 在本发明实施例中, 该服务器可以设置在一个网络设备 中, 也可以独立设置, 本发明并未特别限定, 只要能够实现该服务器与各网 络设备之间的通信即可。  It should be noted that, in the embodiment of the present invention, the server may be set in one network device or may be independently set. The present invention is not particularly limited as long as communication between the server and each network device can be realized.
下面, 对该服务器确定各网络设备 (包括第一网络设备)的首次扫描信 道的过程和方法进行说明。  Next, a description will be given of a process and method for the server to determine the first scan channel of each network device (including the first network device).
首先, 服务器可以确定各网络设备的位置以及覆盖范围。  First, the server can determine the location and coverage of each network device.
例如, 当网络设备具有进行定位的功能时, 可以向服务器发送指示当前 所处位置的信息, 从而, 服务器可以根据该信息, 确定各网络设备的位置。  For example, when the network device has a function of performing positioning, information indicating the current location may be sent to the server, so that the server can determine the location of each network device based on the information.
并且, 在本发明实施例中, 网络设备进行定位的方法可以与现有技术相 同, 例如, 可以使用全球定位***(GPS , Global Positioning System )进行 定位等, 这里, 为了避免赘述, 省略其说明。  Further, in the embodiment of the present invention, the method for positioning the network device may be the same as the prior art. For example, positioning may be performed using a Global Positioning System (GPS). Here, in order to avoid redundancy, the description thereof is omitted.
再例如, 在本发明实施例中, 当服务器与各网络设备采用无线通信的情 况下, 服务器还可以根据来自网络设备的信号, 采用例如, 基站定位法, 对 该网络设备进行定位, 以确定该用户设备的位置。  For example, in the embodiment of the present invention, when the server and the network device adopt wireless communication, the server may further locate the network device according to a signal from the network device by using, for example, a base station positioning method, to determine the The location of the user device.
再例如, 在本发明实施例中, 服务器还可以从能够对网络设备进行定位 的服务商获取指示该网络设备的位置的信息,从而,服务器可以根据该信息, 确定网络设备的位置。  For example, in the embodiment of the present invention, the server may further obtain information indicating the location of the network device from a service provider capable of positioning the network device, so that the server may determine the location of the network device according to the information.
并且,各网络设备可以向服务器发送指示其覆盖范围(例如,传输功率) 的指示信息, 从而, 服务器可以确定各网络设备的覆盖范围。  And, each network device can send indication information indicating its coverage (for example, transmission power) to the server, so that the server can determine the coverage of each network device.
在两个网络设备的覆盖范围交叠的情况下,如果这两个网络设备使用同 一信道进行通信, 则会对彼此造成极大的干扰, 导致通信无法进行, 因此, 服务器可以确定覆盖范围涵盖第一网络设备(以下, 称为网络设备 #1 )的各 网络设备, 或者说, 服务器可以确定不能与该第一网络设备同时使用相同的 信道进行通信的各网络设备。 In the case where the coverage of two network devices overlaps, if the two network devices communicate using the same channel, they will cause great interference to each other, resulting in communication failure. Therefore, the server can determine the coverage coverage. Each of a network device (hereinafter, referred to as network device #1) The network device, or the server, can determine each network device that cannot communicate with the first network device using the same channel at the same time.
或者, 服务器还可以根据各网络设备的覆盖范围, 确定一个判定区域, 并根据各网络设备的位置,确定处于该判定区域中的网络设备,并可以认为, 处于该判定区域中的各网络设备不能同时使用相同的信道进行通信的各网 络设备(以下, 称为待处理网络设备)。  Alternatively, the server may determine a determination area according to the coverage of each network device, and determine the network device in the determination area according to the location of each network device, and may consider that each network device in the determination area cannot Each network device (hereinafter, referred to as a to-be-processed network device) that communicates using the same channel at the same time.
需要说明的是, 在本发明实施例中, 该判定区域可以根据各网络设备的 位置以及发射功率任意确定, 本发明并未特别限定。  It should be noted that, in the embodiment of the present invention, the determination area may be arbitrarily determined according to the location of each network device and the transmission power, and the present invention is not particularly limited.
由于根据各网络设备的覆盖范围和位置(即, 各网络设备之间的位置关 系的一例 )来判定待处理网络设备, 能够减少待处理的数据,提高处理效率, 减少资源浪费。  Since the network device to be processed is determined according to the coverage and location of each network device (i.e., an example of the location relationship between the network devices), the data to be processed can be reduced, the processing efficiency is improved, and resource waste is reduced.
应理解, 以上列举的根据各网络设备的位置、 覆盖范围或发送功率等来 确定待处理网络设备的方式仅为示例性说明, 本发明并未限定于此, 服务器 也可以不关注各网络设备的覆盖范围和位置, 而将***内的各网络设备均视 为待处理网络设备。  It should be understood that the manner of determining the network device to be processed according to the location, the coverage, the transmission power, and the like of each network device is merely exemplary. The present invention is not limited thereto, and the server may not pay attention to the network devices. Coverage and location, and each network device in the system is regarded as a network device to be processed.
其后, 服务器可以根据***提供的无线资源 (即, 信道) 的使用情况, 确定当前可以使用的信道(即, 未被占用的信道, 以下, 称为待分配信道)。  Thereafter, the server can determine the currently available channel (ie, the unoccupied channel, hereinafter referred to as the channel to be allocated) according to the usage of the radio resources (ie, channels) provided by the system.
由于根据信道的使用情况来判定待分配信道, 能够减少待处理的数据, 提高处理效率, 减少资源浪费。 但是, 本发明并不限定于此, 也可以不关注 各信道的使用情况, 例如, 在***内各网络设备统一开启时, 由于各信道均 未被占用, 因此, 可以将***带宽内的所有信道均视为待分配信道。  Since the channel to be allocated is determined according to the usage of the channel, the data to be processed can be reduced, the processing efficiency is improved, and resource waste is reduced. However, the present invention is not limited thereto, and may not pay attention to the use of each channel. For example, when each network device in the system is uniformly turned on, since each channel is unoccupied, all channels in the system bandwidth may be used. Both are considered as channels to be allocated.
其后, 服务器可以根据待处理网络设备的数量和待分配信道的数量, 为 各待处理网络设备分配首次扫描的信道, 其中, 需要确保包括网络设备 #1 在内的至少两个网络设备的首次扫描信道相异。  Thereafter, the server may allocate the first scanned channel to each network device to be processed according to the number of network devices to be processed and the number of channels to be allocated, where it is necessary to ensure the first time of at least two network devices including network device #1. The scanning channels are different.
为了便于理解和说明, 在以下说明中, 以图 2中的信道 A1至信道 A10 作为待分配信道, 进行说明。  For ease of understanding and explanation, in the following description, channel A1 to channel A10 in Fig. 2 will be described as a channel to be allocated.
在本发明实施例中, 设待分配的可用信道个数为 N, 待处理网络设备的 数量为 M。 根据 M和 N之间的大小关系, 可以分为以下三种情况:  In the embodiment of the present invention, the number of available channels to be allocated is N, and the number of network devices to be processed is M. According to the size relationship between M and N, it can be divided into the following three cases:
情况( 1 ): M=N  Situation (1): M=N
此情况下,服务器能够为每个待处理网络设备均分配一个与其他待处理 网络设备相异的待分配信道, 作为其首次扫描信道。 例如, 服务器可以为 M个待处理网络设备(以, AP为例)进行编号, 从而可以获得集合 1: {ΑΡ#1 , ΑΡ#2, ... , ΑΡ#Μ}, 并且, 可以为待分配信 道进行编号, 从而可以获得集合 2: {信道 #1 , 信道 #2, 信道 #Ν}。 In this case, the server can allocate a channel to be allocated that is different from other network devices to be processed for each of the to-be-processed network devices as its first scanning channel. For example, the server may number M network devices to be processed (for example, APs), so that the set 1: {ΑΡ#1, ΑΡ#2, ..., ΑΡ#Μ} can be obtained, and The assigned channels are numbered so that set 2 can be obtained: {channel #1, channel #2, channel #Ν}.
其后, 服务器可以使集合 1中的各元素与集合 2中的各元素一一对应, 并将各 ΑΡ的在集合 2中所对应的信道作为其首次扫描信道, 下发给各 ΑΡ。  Thereafter, the server can make each element in the set 1 correspond to each element in the set 2 one by one, and send the corresponding channel in each set 2 as its first scan channel to each of the frames.
作为使集合 1中的各元素与集合 2中的各元素——对应的方法, 可以列 举以下实施例:  As a method of making each element in the set 1 correspond to each element in the set 2, the following embodiments can be cited:
Α. 可以根据集合 1中的各元素与集合 2中的各元素的编号来进行, 例 如, 使编号相同的元素相对应, 需要说明的是, 集合 1中的各元素的编号需 要彼此相异, 集合 2中的各元素的编号也需要彼此相异。  可以. It can be based on the number of each element in the set 1 and the number of each element in the set 2. For example, the elements with the same number are associated with each other. It should be noted that the numbers of the elements in the set 1 need to be different from each other. The numbers of the elements in the set 2 also need to be different from each other.
Β. 如果集合 1 中各网络设备具有能够在***中唯一地指示该网络设备 的标识, 例如, 媒体接入控制 (MAC, Medium Access Control )地址、 关联 身份信息 (AID, Association Identifier )或部分关联身份信息 (partial AID, partial Association Identifier ), 则可以根据预设的规则, 使具各标识与集合 2 中的各元素的编号——对应。  如果. If each network device in Set 1 has an identifier that uniquely indicates the network device in the system, for example, Medium Access Control (MAC) address, Association Identifier (AID), or partial association The partial AID (partial association Identifier) may correspond to the number of each element in the set 2 according to a preset rule.
C. 在集合 1和集合 2中的各元素个数小于等于 10的情况下, 可以产生 一个位数与集合 1中的元素个数相同的随机数, 该随机数的个数位上的数字 彼此相异, 从而, 可以使各网络设备与该随机数的各数位——对应, 并且, 该随机数的各数位上的数字可以代表集合 2中各元素, 从而, 能够使集合 1 中的各元素与集合 2中的各元素——对应。  C. In the case where the number of elements in the set 1 and the set 2 is less than or equal to 10, a random number having the same number of bits as the number of elements in the set 1 can be generated, and the numbers on the digits of the random number are mutually Therefore, each network device can be made to correspond to each digit of the random number, and the number on each digit of the random number can represent each element in the set 2, thereby enabling each element in the set 1 to Each element in set 2 - corresponds.
可选地, 当该第一网络设备与该第二网络设备之间的距离小于等于预设 的距离门限时, 该第一目标信道与该第二目标信道之间相隔至少一个信道。  Optionally, when the distance between the first network device and the second network device is less than or equal to a preset distance threshold, the first target channel and the second target channel are separated by at least one channel.
具体地说, 由于滤波器不可能做到^艮理想, 可能存在带外泄露, 所以会 对邻带造成干扰, 因此, 如果两个网络设备之间的距离过小, 并且所使用的 信道在***带宽中相邻, 可能导致这两个相邻网络设备的通信对彼此造成干 扰。  Specifically, since the filter is impossible to implement, there may be an out-of-band leakage, which may cause interference to the adjacent band. Therefore, if the distance between the two network devices is too small, and the channel used is in the system Adjacent bandwidths may cause communications between the two adjacent network devices to interfere with each other.
因此, 在本发明实施中, 通过使这两个相邻的网络设备所对应的首次扫 描信道在***带宽中至少相隔一个信道, 能够减小这两个网络设备之间的干 扰。 例如, 如果 ΑΡ#1与 ΑΡ#2之间的距离小于预设的距离门限, 则可以选 择信道 A1作为 ΑΡ#1的首次扫描信道, 并可以选择信道 A10作为 ΑΡ#2的 首次扫描信道。 需要说明的是, 在本发明实施例中, 上述距离门限可以根据例如, 两网 络设备的发射功率等确定。 即, 如果 AP#1与 AP#2的发射功率都较大, 则 双方收到彼此干扰的可能性较大, 因此可以缩短该距离门限。 Therefore, in the implementation of the present invention, interference between the two network devices can be reduced by making the first scan channels corresponding to the two adjacent network devices at least one channel apart in the system bandwidth. For example, if the distance between ΑΡ#1 and ΑΡ#2 is less than the preset distance threshold, channel A1 can be selected as the first scan channel of ΑΡ#1, and channel A10 can be selected as the first scan channel of ΑΡ#2. It should be noted that, in the embodiment of the present invention, the foregoing distance threshold may be determined according to, for example, a transmit power of the two network devices. That is, if the transmission powers of both AP#1 and AP#2 are large, the two parties are more likely to receive interference with each other, and thus the distance threshold can be shortened.
另外, 在本发明实施例中, 对于不同的网络设备对, 所对应的距离门限 可以相同,也可以相异,本发明并未特别限定。例如,用于判定 AP#1与 AP#2 的首次扫描信道是否相隔至少一个信道的距离门限, 与用于判定 AP#1 与 AP#3的首次扫描信道是否相隔至少一个信道的距离门限可以相异。  In addition, in the embodiment of the present invention, the distance thresholds may be the same or different for different pairs of network devices, and the present invention is not particularly limited. For example, a distance threshold for determining whether the first scan channel of AP#1 and AP#2 is separated by at least one channel, and a distance threshold for determining whether at least one channel of AP#1 and AP#3 are separated by at least one channel may be different.
例如,在 M=N=10的情况下,如果 AP#1至 AP#10按编号顺序直线排列 (即, AP#1与 AP#2之间的距离最近, AP#1与 AP#10之间的距离最远 ), 则作为示例而非限定,可以按以下表 1所示方式确定各 AP的首次扫描信道。  For example, in the case of M=N=10, if AP#1 to AP#10 are arranged in a straight line in numerical order (ie, the distance between AP#1 and AP#2 is the closest, between AP#1 and AP#10) The farthest distance is, as an example and not a limitation, the first scan channel of each AP can be determined in the manner shown in Table 1 below.
表 1  Table 1
Figure imgf000012_0001
Figure imgf000012_0001
如上所述, 由于 AP#1与 AP#2之间的距离最近, 通过扩大 AP#1的首 次扫描信道(信道 A1 )与 AP#2的首次扫描信道(信道 A10 )彼此之间的间 隔, 能够降低 AP#1与 AP#2之间的干扰, 另夕卜, 由于 AP#1与 AP#7之间的 距离相对较远, 因此, 即使大 AP#1的首次扫描信道(信道 A1 )与 AP#7的 首次扫描信道(信道 A2 )之间的间隔较小 (具体地说, 是相邻), 两网络设 备之间的干扰也能控制于规定范围内, 从而, 能够进一步改善用户感受。 情况( 2 ): M < N As described above, since the distance between AP#1 and AP#2 is the closest, by increasing the interval between the first scan channel (channel A1) of AP#1 and the first scan channel (channel A10) of AP#2, Reduce the interference between AP#1 and AP#2. In addition, since the distance between AP#1 and AP#7 is relatively far, even the first scan channel (channel A1) and AP of the large AP#1 The interval between the first scanning channels (channel A2) of #7 is small (specifically, adjacent), and the interference between the two network devices can also be controlled within a prescribed range, thereby further improving the user experience. Situation ( 2 ): M < N
由于待处理网络设备的数量小于当前可以使用的信道(待分配信道)的 数量, 因此, 与情况(1 ) 同样, 能够确保每个待处理网络设备的首次扫描 信道相异。 此情况下, 可以从 N个待分配信道中随机选择 M个信道, 从而 可以使用与情况( 1 )相似的方法, 将所选择的 M个待分配信道分配给 M个 待处理网络设备。  Since the number of network devices to be processed is smaller than the number of channels currently available (the channels to be allocated), as in case (1), it is possible to ensure that the first scanning channels of each of the to-be-processed network devices are different. In this case, M channels can be randomly selected from the N channels to be allocated, so that the selected M channels to be allocated can be allocated to the M network devices to be processed using a method similar to the case (1).
情况( 3 ): M > N  Situation (3): M > N
此情况下, 无法确保每个待处理网络设备的首次扫描信道均相异。 服务 器可以将 T ( T N )个网络设备分为一组, 从而可以确定多个网络设备组, 每个网络设备组中的网络设备的数量均小于或等于 N, 从而, 可以按照上述 情况(1 )或情况(2 ) 的方法, 为各组中的网络设备分配首次扫描信道。 另 夕卜, 如上所述, 由于距离较近的网络设备之间的干扰较强, 因此, 在本发明 实施例中, 优选将距离较近的网络设备划分在一组。  In this case, there is no guarantee that the first scan channel of each pending network device will be different. The server may divide the T (TN) network devices into a group, so that a plurality of network device groups may be determined, and the number of network devices in each network device group is less than or equal to N, and thus, according to the above situation (1) Or the method of case (2), assigning a first scan channel to network devices in each group. In addition, as described above, the interference between the network devices that are close to each other is strong. Therefore, in the embodiment of the present invention, the network devices that are closer in distance are preferably divided into one group.
例如, 在 M=12, N=10的情况下, 如果 AP#1至 AP#12按编号顺序直线 排列(即, AP#1与 AP#2之间的距离最近, AP#1与 AP#12之间的距离最远 ), 则作为示例而非限定,可以按以下表 2所示方式确定各 AP的首次扫描信道。  For example, in the case of M=12, N=10, if AP#1 to AP#12 are arranged in a straight line in numerical order (ie, the distance between AP#1 and AP#2 is the closest, AP#1 and AP#12) The farthest distance between them is, by way of example and not limitation, the first scan channel of each AP can be determined in the manner shown in Table 2 below.
表 2  Table 2
网络设备 首次扫描信道 Network device first scan channel
AP#1 信道 Al AP#1 channel Al
AP#2 信道 A10  AP#2 channel A10
AP#3 信道 A5  AP#3 channel A5
AP#4 信道 A8  AP#4 channel A8
AP#5 信道 A3  AP#5 channel A3
AP#6 信道 A6  AP#6 channel A6
AP#7 信道 A2  AP#7 channel A2
AP#8 信道 A9 AP#8 channel A9
AP#9 信道 A4 AP#9 channel A4
AP#10 信道 A7 AP#11 信道 Al AP#10 channel A7 AP#11 channel Al
AP#12 信道 A10 可选地, 该至少两个网络设备中的第一网络设备从至少两个信道中, 确 定第一目标信道, 包括:  AP#12 Channel A10 Optionally, the first network device of the at least two network devices determines the first target channel from the at least two channels, including:
该至少两个网络设备中的第一网络设备确定针对该至少两个信道的扫 描顺序, 在该扫描顺序中, 该第一目标信道为首次扫描信道;  Determining, by the first one of the at least two network devices, a scanning order for the at least two channels, in the scanning sequence, the first target channel is a first scan channel;
该第一网络设备根据该扫描顺序, 确定该第一目标信道; 以及  Determining, by the first network device, the first target channel according to the scanning sequence;
该第一网络设备以该第一目标信道作为首次扫描信道,对该至少两个信 道进行扫描, 包括:  The first network device scans the at least two channels by using the first target channel as the first scan channel, including:
该第一网络设备根据该扫描顺序, 对该至少两个信道进行扫描。  The first network device scans the at least two channels according to the scanning sequence.
具体地说, 在本发明实施例中, 除了首次扫描信道以外, 还可以确定针 对剩余待分配信道的扫描顺序, 同样地, 该确定过程可以由网络设备执行, 也可以由服务器执行, 并将确定对于各信道的完整的扫描顺序下发至各网络 设备。 以下, 为了便于理解和说明, 以服务器确定各网络设备的针对待分配 信道的扫描信道的过程和方法进行说明。  Specifically, in the embodiment of the present invention, in addition to the first scanning channel, the scanning order for the remaining channels to be allocated may be determined. Similarly, the determining process may be performed by the network device, or may be performed by the server, and determined. A complete scan sequence for each channel is sent to each network device. Hereinafter, for ease of understanding and explanation, a process and method for determining, by a server, a scanning channel for a channel to be allocated by each server will be described.
待分配信道为 N个, 则 AP#i的信道顺序序列记为:  If the number of channels to be allocated is N, the sequence of channel sequences of AP#i is recorded as:
[Channel ( i, 1 ), Channel ( i, 2), ···, Channel (i, N) ]。  [Channel ( i, 1 ), Channel ( i, 2), ···, Channel (i, N) ].
假设 AP#1的信道扫描顺序序列确定为:  Assume that the channel scan sequence of AP#1 is determined as:
[Channel ( 1 , 1 ), Channel ( 1 , 2), ···, Channel ( 1 , N) ],  [Channel ( 1 , 1 ), Channel ( 1 , 2), ···, Channel ( 1 , N) ],
则例如, 可以将 AP#1的信道扫描顺序序列左移( 2 - 1 )位, 作为 AP#2 的信道扫描顺序序列, 即, AP#2的信道扫描顺序序列确定为:  For example, the channel scanning sequence of AP#1 may be shifted to the left (2 - 1) bits as the channel scanning sequence sequence of AP#2, that is, the channel scanning sequence sequence of AP#2 is determined as:
[Channel ( 2, 1 ), Channel ( 2, 2), ···, Channel ( 2, N-l ), Channel [Channel ( 2, 1 ), Channel ( 2, 2), ···, Channel ( 2, N-l ), Channel
(2, N) ]=[Channel ( 1, 2), Channel ( 1, 3 ), …, Channel ( 1, N ), Channel (1, 1) ]; (2, N) ]=[Channel ( 1, 2), Channel ( 1, 3 ), ..., Channel ( 1, N ), Channel (1, 1) ];
同理, 可得 AP#i的信道扫描顺序序列为 AP#1 的信道扫描顺序序列左 移 (i-1)位, 即  Similarly, the channel scanning sequence sequence of AP#i is left (i-1) bit of the channel scanning sequence of AP#1, that is,
[Channel (i, 1), Channel ( i, 2), Channel (i, N-l), Channel ( i, [Channel (i, 1), Channel ( i, 2), Channel (i, N-l), Channel ( i,
N) ]= [Channel ( 1, i), Channel (1, i+1 ), Channel (1, N), Channel (1, 1), Channel ( 1 , 2), Channel ( 1 , i-1) ] N) ]= [Channel ( 1, i), Channel (1, i+1 ), Channel (1, N), Channel (1, 1), Channel ( 1 , 2), Channel ( 1 , i-1) ]
其中, AP#1的信道扫描顺序可以随机产生。 并且, 如果扫描顺序中, 下一次扫描的信道与本次扫描的信道在***带 宽中相邻,例如,本次扫描的信道为信道 A4, 下一次扫描的信道为信道 A5, 如果信道 A4不能作为最终的通信信道(例如, 被其他网络设备占用), 则进 行下次扫描时, 由于信道 A4被使用, 对信道 A5的干扰较大, 可能影响用 户体验。 The channel scanning order of AP#1 can be randomly generated. Moreover, if the scanning sequence is adjacent to the channel of the current scanning in the system bandwidth, for example, the channel of the current scanning is channel A4, and the channel of the next scanning is channel A5, if channel A4 cannot be used as The final communication channel (for example, occupied by other network devices), when the next scan is performed, because channel A4 is used, the interference to channel A5 is large, which may affect the user experience.
因此, 在本发明实施例中, 在确定扫描顺序时, 优选使 channel ( 1, i) -channel ( 1, i+1 ) !=lor-l, 即, 在扫描顺序中前后两个信道在***带宽中 不相邻 (或者说, 至少相隔一个信道), 例如, N=10时, AP#1 的扫描顺序 序列可以为 {A1, A3, A5, A7, A9, A2, A4, A6, A8, A10}。  Therefore, in the embodiment of the present invention, when determining the scanning order, it is preferable to make channel ( 1, i) - channel ( 1, i+1 ) ! = lor-l, that is, two channels in the scanning sequence before and after the system The bandwidth is not adjacent (or at least one channel apart). For example, when N=10, the sequence of scanning sequence of AP#1 can be {A1, A3, A5, A7, A9, A2, A4, A6, A8, A10}.
设待分配信道的数量为 N, 即, 待分配信道为 {Α#1, Α#2, ..., Α#Ν}, 则 ΑΡ#1的扫描顺序序列可以按照下述方法产生:  Let the number of channels to be allocated be N, that is, the channel to be allocated is {Α#1, Α#2, ..., Α#Ν}, then the scanning sequence of ΑΡ#1 can be generated as follows:
a. 可以按如上所述方法确定首次扫描信道 Channel ( 1, 1 ) =A1 b. 在剩余的待分配信道中, 选择与 Channel ( 1, 1)距离最远的信道, 作为第二次扫描的信道 Channel ( 1, 2), 即, Channel (1, 2 ) =AN  a. The first scan channel Channel (1, 1) = A1 can be determined as described above. b. In the remaining channels to be allocated, select the channel farthest from Channel (1, 1) as the second scan. Channel Channel ( 1, 2), ie, Channel (1, 2) = AN
c. 在剩余的待分配信道中, 选择与 Channel ( 1, 2 )和 Channel ( 1, 1) 距离都比较远的信道作为第三次扫描的信道 Channel ( 1, 3), 即, Channel (1, 3) ^[Channel (1, 1 ) +Channel ( 1, 2) ]/2=A ( 1+N ) II, 如果 N 为 偶数, 则其整数部分。  c. In the remaining channels to be allocated, select the channel that is farther away from Channel ( 1, 2 ) and Channel ( 1, 1) as the channel Channel ( 1, 3) of the third scan, that is, Channel (1) , 3) ^[Channel (1, 1 ) +Channel ( 1, 2) ]/2=A ( 1+N ) II, if N is even, its integer part.
d. 在剩余的待分配信道中, 选择与 Channel ( 1, 3 )和 Channel ( 1 , 2) 距离都比较远的信道作为第四次扫描的信道 Channel ( 1 , 3 ) ,而且和 Channel d. In the remaining channels to be allocated, select the channel farther away from Channel (1, 3) and Channel (1, 2) as the channel of the fourth scan Channel (1, 3), and with Channel
(1, 1)也尽可能远的信道 (1, 1) also as far as possible the channel
e. 类似地, 在后续信道排序中, 使 Channel ( 1, i )与 Channel ( 1 , i-1 ) 和 channel (1, i-2 )距离都比较远, 而且和 Channel ( 1, i-3 ), Channel ( 1, 1 )也尽可能远的信道。  e. Similarly, in subsequent channel ordering, make Channel ( 1, i ) farther away from Channel ( 1 , i-1 ) and channel (1, i-2 ), and with Channel ( 1, i-3 ), Channel (1, 1) is also the channel as far as possible.
例如, 在 M=12, N=10的情况下, 如果 AP#1至 AP#12按编号顺序直线 排列(即, AP#1与 AP#2之间的距离最近, AP#1与 AP#12之间的距离最远 ), 则作为示例而非限定,可以按以下表 3所示方式确定各 AP的信道扫描顺序。  For example, in the case of M=12, N=10, if AP#1 to AP#12 are arranged in a straight line in numerical order (ie, the distance between AP#1 and AP#2 is the closest, AP#1 and AP#12) The distance between them is the farthest.) By way of example and not limitation, the channel scanning order of each AP can be determined in the manner shown in Table 3 below.
表 3  table 3
网络设备 信道扫描顺序 Network device channel scan order
AP#1 Al, A10, A5, A8, A3, A6, A2, A9, A4, A7 AP#2 A10, A5, A8, A3 , A6, A2, A9, A4, A7, Al AP#1 Al, A10, A5, A8, A3, A6, A2, A9, A4, A7 AP#2 A10, A5, A8, A3, A6, A2, A9, A4, A7, Al
AP#3 A5 , A8, A3, A6, A2, A9, A4, A7, Al , A10 AP#3 A5, A8, A3, A6, A2, A9, A4, A7, Al, A10
AP#4 A8, A3, A6, A2, A9, A4, A7, Al , A10, A5 AP#4 A8, A3, A6, A2, A9, A4, A7, Al, A10, A5
AP#5 A3 , A6, A2, A9, A4, A7, Al , A10, A5 , A8 AP#5 A3, A6, A2, A9, A4, A7, Al, A10, A5, A8
AP#6 A6, A2, A9, A4, A7, Al , A10, A5, A8, A3 AP#6 A6, A2, A9, A4, A7, Al, A10, A5, A8, A3
AP#7 A2, A9, A4, A7, Al , A10, A5, A8, A3 , A6 AP#7 A2, A9, A4, A7, Al, A10, A5, A8, A3, A6
AP#8 A9, A4, A7, Al , A10, A5 , A8, A3, A6, A2 AP#8 A9, A4, A7, Al, A10, A5, A8, A3, A6, A2
AP#9 A4, A7, Al , A10, A5, A8, A3 , A6, A2, A9 AP#9 A4, A7, Al, A10, A5, A8, A3, A6, A2, A9
AP#10 A7, Al , A10, A5 , A8, A3, A6, A2, A9, A4 AP#10 A7, Al, A10, A5, A8, A3, A6, A2, A9, A4
AP#11 Al , A10, A5, A8, A3, A6, A2, A9, A4, A7 AP#11 Al , A10, A5, A8, A3, A6, A2, A9, A4, A7
AP#12 A10, A5, A8, A3 , A6, A2, A9, A4, A7, Al 在现有技术中, 各 AP的扫描顺序相同, 均为 Al , A2, A3 , A4, A5, A6, A7, A8, A9, A10。 导致 AP在找到合适的信道前, 需要扫描多个信 道, 花费较长的时间, 并且, 同时, 由于相邻 AP选择到的信道在频率上间 隔也可能很小, 导致邻频干扰。 AP#12 A10, A5, A8, A3, A6, A2, A9, A4, A7, Al In the prior art, each AP has the same scanning order, all of which are Al, A2, A3, A4, A5, A6, A7. , A8, A9, A10. This causes the AP to scan multiple channels before finding a suitable channel, which takes a long time, and at the same time, the channel selected by the neighboring AP may be small in frequency, resulting in adjacent channel interference.
与此相对, 通过是各 AP采用不同的扫描顺序, 特别是, 使各 AP的首 次扫描顺序相异, 能够使各 AP均能够迅速地找到合适的信道, 能够节省通 信建立时间, 改善用户体验。 并且, 通过设置扫描顺序, 使距离较小(例如, 相邻 ) AP选择到的信道至少间隔一个信道, 能够避免邻频干扰的发生。  On the other hand, by using different scanning orders for each AP, in particular, the first scanning order of each AP is different, so that each AP can quickly find an appropriate channel, which can save communication establishment time and improve user experience. Moreover, by setting the scanning order, the channels selected by the APs with smaller distances (for example, adjacent) are separated by at least one channel, and the occurrence of adjacent frequency interference can be avoided.
从而, 在 S110, 第一网络设备(以下, 以该第一网络设备为 AP#1为例, 进行说明 )可以根据服务器下发的第一扫描指示信息 (例如, 上述表 1 )或 第二扫描指示信息 (例如, 上述表 3 ), 确定首次扫描的信道, 这里, AP#1 的首次扫描为如上所述表 1至表 3中记载的信道 Al。  Therefore, in S110, the first network device (hereinafter, the first network device is an AP#1 as an example) may be configured according to the first scan indication information (for example, the above table 1) or the second scan delivered by the server. The indication information (for example, Table 3 above) determines the channel to be scanned for the first time. Here, the first scan of AP#1 is the channel A1 described in Tables 1 to 3 above.
在 S120, 第一网络设备可以根据如上所述确定的首次扫描信道, 进行 信道扫描, 即, 第一网络设备可以确定信道 A1满足预设条件时, 确定能够 使用该信道 A1进行通信, 并停止扫描。  At S120, the first network device may perform channel scanning according to the first scan channel determined as described above, that is, when the first network device can determine that the channel A1 meets the preset condition, determine that the channel A1 can be used for communication, and stop scanning. .
该在当前扫描的信道的信道状况满足预设条件时, 停止扫描, 包括: 如果当前扫描的信道中的干扰小于等于预设的干扰门限, 则停止扫描; 或 Stopping scanning when the channel condition of the currently scanned channel meets a preset condition, including: stopping scanning if the interference in the currently scanned channel is less than or equal to a preset interference threshold; or
如果当前扫描的信道中的信号强度大于等于预设的质量门限, 则停止扫 描。  If the signal strength in the currently scanned channel is greater than or equal to the preset quality threshold, the scanning is stopped.
具体地说, 在本发明实施例中, 可以采用以下两种方式进行判定: 方式 1  Specifically, in the embodiment of the present invention, the following two methods may be used for determining:
如果信道 A1的干扰(例如, 噪声值)小于等于预设值(即, 干扰门限), 则可能判定为该信道 A1的质量较好, 或者说, 该信道 A1未被占用。 从而 可以停止扫描, 并通过该信道 A1进行通信。  If the interference (e.g., the noise value) of the channel A1 is less than or equal to a preset value (i.e., the interference threshold), it may be determined that the quality of the channel A1 is good, or the channel A1 is unoccupied. Thereby, the scanning can be stopped and communication is performed through the channel A1.
例如, AP在进行信道扫描时, 优选该信道未被任何设备(例如, 其他 AP ) 占用, 在一个信道未被任何设备占用的情况下, 该信道上的信号(或者 说, 噪声) 为 0 (干扰门限的一例), 因此, 如果该信道上的信号强度为 0, 则 AP可以认为该信道未被占用, 从而确定使用该信道, 并停止扫描。  For example, when the AP performs channel scanning, it is preferred that the channel is not occupied by any device (for example, other APs), and if one channel is not occupied by any device, the signal (or noise) on the channel is 0 ( An example of the interference threshold), therefore, if the signal strength on the channel is zero, the AP can consider the channel unoccupied, thereby determining to use the channel and stopping scanning.
另外, 由于环境因素, 例如, 来自微波炉等的干扰, 可以导致未被其他 AP占用的信道上仍然存在一定的信号(或者说, 噪声 ), 此情况下, 如果该 信号的干扰较小, 即, 该信道能够满足通信的条件, 则 AP可以认为该信道 未被占用, 从而确定使用该信道, 并停止扫描。  In addition, due to environmental factors, for example, interference from a microwave oven or the like, a certain signal (or noise) may still be present on a channel that is not occupied by other APs. In this case, if the interference of the signal is small, that is, The channel can satisfy the communication condition, and the AP can consider the channel unoccupied, thereby determining to use the channel and stopping scanning.
方式 2  Way 2
如果信道 A1的质量(例如,信噪比)大于等于预设值(即,质量门限), 则可能判定为该信道 A1的干扰较小, 或者说, 该信道 A1未被占用。 从而 可以停止扫描, 并通过该信道 A1进行通信。  If the quality of the channel A1 (e.g., the signal-to-noise ratio) is greater than or equal to a preset value (i.e., a quality threshold), it may be determined that the interference of the channel A1 is small, or the channel A1 is unoccupied. Thereby, the scanning can be stopped and communication is performed through the channel A1.
例如, STA在进行信道扫描时, 主要是扫描可以为其服务的 AP, 需要 该确保来自该 AP的信号强度能够满足通信要求, 因此, 如果一个信道上的 信号强度大于等于预设值(质量门限的一例), 或者说, 该信道上的信噪比 大于等于预设值(质量门限的另一例), 则 STA可以认为能够使用该信道进 行通信, 并停止扫描。  For example, when the STA performs channel scanning, it mainly scans the APs that can serve it, and needs to ensure that the signal strength from the AP can meet the communication requirements. Therefore, if the signal strength on one channel is greater than or equal to a preset value (quality threshold) For example, if the signal-to-noise ratio on the channel is greater than or equal to a preset value (another example of a quality threshold), the STA can consider that the channel can be used for communication and stop scanning.
另外, 由于环境因素, 例如, 来自微波炉等的干扰, 可以导致未被 AP 使用的信道上仍然存在一定的信号 (或者说, 噪声), 此情况下, 通过将质 量门限设定为与 AP辐射的信号的信号强度相对应的值, 能够避免该噪声的 干扰, 使 STA准确的扫描到能够用于通信的信道。  In addition, due to environmental factors, for example, interference from a microwave oven or the like, a certain signal (or noise) may still be present on a channel that is not used by the AP, in which case the quality threshold is set to be radiated with the AP. The value corresponding to the signal strength of the signal can avoid the interference of the noise, enabling the STA to accurately scan the channel that can be used for communication.
需要说明的是, 以上列举的干扰门限和质量门限可以根据通信的类型设 定, 例如, 对于实时通信业务(例如, 视频类业务或在线游戏类业务)等对 通信资源要求交高的业务, 可以设定一个较高的门限。 It should be noted that the interference threshold and the quality threshold listed above may be set according to the type of communication, for example, for a real-time communication service (for example, a video service or an online game service). A service with high communication resources requires a higher threshold.
以上列举了首次扫描信道或信道扫描顺序由服务器设置并下发的实施 例, 但本发明并不限定于此, 也可以由该至少两个网络设备协商确定, 本发 明并未特别限定, 只要能够使至少两个网络设备的首次扫描信道相异即可, 并且,各网络设备执行上述 100 (主要是确定首次扫描信道或信道扫描顺序 ) 时的动作和过程与服务器的类似, 这里, 为了避免赘述, 省略其说明。  The foregoing describes an embodiment in which the first scan channel or the channel scan sequence is set and delivered by the server. However, the present invention is not limited thereto, and may be determined by the at least two network devices. The present invention is not particularly limited as long as The first scan channels of the at least two network devices are different, and the actions and processes of each of the network devices performing the above 100 (mainly determining the first scan channel or channel scan order) are similar to those of the server. Here, in order to avoid redundancy , the description is omitted.
根据本发明实施例的信道扫描的方法,通过使无法使用相同的信道进行 通信的至少两个网络设备, 在对信道进行扫描时, 分别以中心频点相异的信 道作为首次扫描信道, 能够使各网络设备在首次扫描时, 便能够确定可以使 用的信道, 并且, 通过使网络设备在当前扫描的信道的信道状况满足预设条 件时停止扫描, 能够降低网络设备的信道扫描时间, 进而缩短通信建立的时 间, 从而提高用户体验。  According to the channel scanning method of the embodiment of the present invention, when at least two network devices that cannot communicate using the same channel are scanned, the channels with different center frequency points are respectively used as the first scanning channel, which enables When the network device scans for the first time, it can determine the channel that can be used, and by causing the network device to stop scanning when the channel condition of the currently scanned channel meets the preset condition, the channel scanning time of the network device can be reduced, thereby shortening the communication. Establish time to improve the user experience.
图 3示出了本发明一实施例的信道扫描的方法 200的示意性流程图, 其 中, 该方法 200的执行主体可以是 WLAN***中的 STA。  FIG. 3 is a schematic flowchart of a method 200 for channel scanning according to an embodiment of the present invention, wherein an execution body of the method 200 may be a STA in a WLAN system.
在 WLAN***中,可以使用 2.4GHz以及 5GHz上的多个信道进行通信, 其中, 对于不同的通信版本, 各信道带宽可以相异.  In a WLAN system, multiple channels on 2.4 GHz and 5 GHz can be used for communication. The bandwidth of each channel can be different for different communication versions.
图 2示出了 5GHz上的信道划分方式, 如图 2所示:  Figure 2 shows the channel division at 5 GHz, as shown in Figure 2:
在 IEEE 802.11a中, STA可以使用 5.3GHz和 5.8GHz上,带宽为 20MHz 的信道。  In IEEE 802.11a, STAs can use channels with a bandwidth of 20 MHz at 5.3 GHz and 5.8 GHz.
在 IEEE 802.11b中, STA可以使用 2.4GHz上, 带宽为 20MHz的信道。 在 IEEE 802.11g中, STA可以使用 2.4GHz上, 带宽为 20MHz的信道。 在 IEEE 802.11η中, STA可以使用 2.4GHz和 5GHz上, 带宽为 20MHz 或 40MHz的信道。  In IEEE 802.11b, the STA can use a channel with a bandwidth of 20 MHz at 2.4 GHz. In IEEE 802.11g, the STA can use a channel with a bandwidth of 20 MHz at 2.4 GHz. In IEEE 802.11 η, STAs can use channels with bandwidths of 20 MHz or 40 MHz at 2.4 GHz and 5 GHz.
在 IEEE 802.1 lac中, STA可以使用 5GHz上, 带宽为 20MHz、 40MHz、 80MHz或者 160MHz的信道。  In IEEE 802.1 lac, the STA can use a channel with a bandwidth of 20MHz, 40MHz, 80MHz or 160MHz at 5GHz.
需要说明的是, 在本发明实施例中, 40MHz 的信道是由两个(例如, 相邻的) 20MHz的信道组成的, 在使用 40MHz的信道进行通信时, 需要满 足以下奈件:  It should be noted that, in the embodiment of the present invention, the 40 MHz channel is composed of two (for example, adjacent) 20 MHz channels, and when using a 40 MHz channel for communication, it is necessary to satisfy the following conditions:
构成该 40MHz的信道两个 20MHz的信道均未被其他 AP或 STA占用。 即, 如果 STA检测到一个 40MHz的信道范围内的 20MHz的信道被占用, 则该 STA无法使用该 40MHz的信道。 为了便于理解, 在以下说明中, 以 STA对各 20MHz的信道的扫描过程 为例, 进行说明。 The two 20 MHz channels constituting the 40 MHz channel are not occupied by other APs or STAs. That is, if the STA detects that a 20 MHz channel within a 40 MHz channel range is occupied, the STA cannot use the 40 MHz channel. For ease of understanding, in the following description, a scanning process of each 20 MHz channel by the STA will be described as an example.
如图 3所示, 该方法 200包括:  As shown in FIG. 3, the method 200 includes:
S210, 第一站点 STA确定至少两个接入点 AP的覆盖范围以及各该 AP 使用的信道, 其中, 各该 AP使用的信道的中心频点相异, 且各该 AP使用 的信道的带宽相同;  S210, the first station STA determines the coverage of the at least two access point APs and the channels used by the APs, where the channels used by the APs have different center frequencies, and the channels used by the APs have the same bandwidth. ;
S220, 该第一 STA根据当前所处位置以及各该 AP的覆盖范围,从各该 AP使用的信道中, 确定第一备选信道, 其中, 该第一备选信道为第一 AP 所使用的信道, 该第一 STA处于该第一 AP的覆盖范围内;  S220, the first STA determines, according to the current location and the coverage of each AP, a first candidate channel from the channels used by each AP, where the first candidate channel is used by the first AP. Channel, the first STA is in the coverage of the first AP;
S230, 该第一 STA以该第一备选信道作为首次扫描信道, 对各该 AP使 用的信道进行扫描, 在当前扫描的信道的信道状况满足预设条件时, 停止扫 描。  S230. The first STA scans a channel used by each AP by using the first candidate channel as a first scan channel, and stops scanning when a channel condition of the currently scanned channel meets a preset condition.
在现有技术中, 各 STA 均按规定顺序对各信道进行扫描(或者说, 侦 听), 并在完成对***带宽内的所有信道的侦听后, 选择质量最好的信道进 行通信。  In the prior art, each STA scans (or listens to) each channel in a prescribed order, and after completing the interception of all channels in the system bandwidth, selects the channel with the best quality for communication.
但是, 例如, 如果该 STA的覆盖范围 (或者说扫描范围) 内的 AP, 或 者说, 能够覆盖该 STA的 AP所使用的信道在***带宽中的排列顺序靠后, 贝' J STA 需要浪费大量时间和能源对无法使用的信道进行扫描, 导致通信建 立花费的时间较长, 严重影响用户体验。  However, for example, if the AP in the coverage (or scanning range) of the STA, or the channel used by the AP that can cover the STA, is ranked later in the system bandwidth, the Bayer J ST needs to waste a lot. Time and energy scan the unusable channels, resulting in longer communication setups that severely impact the user experience.
在本发明实施例中, STA确定能够为其服务的 AP使用的信道, 并从其 中确定首次扫描信道, 能够使 STA在首次扫描时, 便能够确定可以使用的 信道。  In the embodiment of the present invention, the STA determines the channel that can be used by the AP it serves, and determines the first scan channel therefrom, enabling the STA to determine the available channel when it is first scanned.
在 S210, 该方法 200的实施主体(以下记做 "STA#1" ) , 可以确定*** 内各 AP的覆盖范围以及所使用的信道。 作为实现方法, STA#1可以从网络 运营商、 维护方或者网络管理员处获取***内各 AP的覆盖范围以及所使用 的信道, 也可以在之前的接入过程中记录各 AP的覆盖范围以及所使用的信 道。 并且, AP的覆盖范围可以根据 AP的位置及发射功率等推算出。  At S210, the implementation body of the method 200 (hereinafter referred to as "STA#1") can determine the coverage of each AP in the system and the channel used. As an implementation method, STA#1 can obtain the coverage of each AP in the system and the used channel from the network operator, the maintenance party, or the network administrator, and can also record the coverage of each AP in the previous access process. The channel used. Moreover, the coverage of the AP can be derived based on the location of the AP, the transmit power, and the like.
在 S220, STA#1可以确定当前所处的位置。  At S220, STA#1 can determine the current location.
例如, 当 STA#1 具有进行定位的功能时, 可以自行定位。 在本发明实 施例中, 作为定位方法可以列举, 例如, 使用全球定位***(GPS, Global Positioning System )进行定位等, 这里, 为了避免赘述, 省略其说明。 再例如, 在本发明实施例中, STA#1还可以从能够提供定位的服务的服 务商获取指示该 STA#1 的位置的信息, 从而, STA#1可以根据该信息, 确 定当前所处的位置。 For example, when STA#1 has the function of positioning, it can locate itself. In the embodiment of the present invention, the positioning method may be, for example, positioning using a Global Positioning System (GPS), and the description thereof will be omitted herein. For example, in the embodiment of the present invention, STA#1 may also obtain information indicating the location of the STA#1 from a service provider capable of providing the located service, so that STA#1 may determine the current location according to the information. position.
从而, STA#1可以确定能够对其提供服务的 AP (即, 第一 AP ), 例如, 可以将覆盖范围包含该 STA#1当前所处位置的各 AP均作为第一 AP, 也可 以将将覆盖范围包含该 STA#1且与该 STA#1距离最近的 AP作为第一 AP, 本发明并未特别限定。  Therefore, the STA #1 can determine the AP (ie, the first AP) that can provide the service to the AP. For example, each AP whose coverage includes the current location of the STA #1 can be used as the first AP, or The AP that covers the STA #1 and is closest to the STA #1 is the first AP, and the present invention is not particularly limited.
其后,可以将在 S210中确定的第一 AP所使用的信道作为备选信道(可 以为一个, 也可以为多个, 本发明并未特别限定), 并从该备选信道中确定 一个信道(即, 第一备选信道), 作为首次扫描信道。  Thereafter, the channel used by the first AP determined in S210 may be used as an alternate channel (which may be one or plural, which is not particularly limited in the present invention), and one channel is determined from the candidate channel. (ie, the first alternate channel) as the first scan channel.
可选地, 在各该 AP中, 该第一 AP与该装置之间的距离最小。  Optionally, in each AP, the distance between the first AP and the device is the smallest.
具体地说, 由于 AP与 STA的距离越近, 路损越小, 通信效果越好, 因 此, 该第一 AP是该第一 STA距离最近的 AP, 即, 在本发明实施例中, 可 以将与 STA#1距离最近的 AP作为为该 STA#1服务的 AP。  Specifically, the closer the distance between the AP and the STA is, the smaller the path loss is, and the better the communication effect is. Therefore, the first AP is the closest AP to the first STA, that is, in the embodiment of the present invention, The AP closest to STA#1 serves as the AP serving the STA#1.
可选地, 该第一备选信道与至少一个第二备选信道相异, 该第二备选信 道是至少一个第二 STA的首次扫描信道, 该第一 STA与该第二 STA不在同 一时段使用同一信道进行通信。  Optionally, the first candidate channel is different from the at least one second candidate channel, where the second candidate channel is a first scan channel of the at least one second STA, where the first STA is not in the same period as the second STA Use the same channel for communication.
具体地说, 如果其他 STA (以下记做 "STA#2" , 其数量可以为一个或 多个)也需要通过该第一 AP进行通信, 或者说, STA#1与 STA#2的覆盖范 围交叠, 则 STA#1与 STA#2无法在同一时段使用相同的信道进行通信, 此 情况下, 如果 8丁 #与 STA#2的首次扫描信道相同, 则可能导致至少一方无 法在首次扫描后确定可以使用的信道。  Specifically, if other STAs (hereinafter referred to as "STA#2", the number of which may be one or more) also need to communicate through the first AP, or STA#1 and STA#2 coverage Stack, STA#1 and STA#2 cannot communicate using the same channel at the same time. In this case, if 8# is the same as STA#2's first scan channel, at least one party may not be determined after the first scan. A channel that can be used.
对于该情况,在本发明实施例中,在 STA#1与 STA#2能够进行通信(例 如, 设备到设备通信) 的情况下, STA#1与 STA#2可以进行协商, 使各自 所确定的首次扫描信道相异。  For this case, in the embodiment of the present invention, in the case where STA#1 and STA#2 can communicate (for example, device-to-device communication), STA#1 and STA#2 can negotiate to make each determined. The first scan channel is different.
或者, 该首次扫描信道的确定可以由与 STA#1及 STA#2相独立的服务 器进行, 即, 当 STA#1 需要进行信道扫描以确定通信所使用的信道时, 可 以向该服务器发送请求, 服务器可以根据该请求, 确定 STA#1 的位置, 并 根据各 AP的覆盖范围, 确定能够为该 STA#1提供服务的第一 AP, 以及可 供使用的备选信道, 上述过程与 S210及 S220中的过程类似, 这里为了避免 赘述, 省略其说明。 当服务器确定 STA#2也能够通过第一 AP进行通信时, STA#1所对应的 备选信道与 STA#2 所对应的备选信道之间存在交集。 从而, 服务器可以为 STA#1与 STA#2分配不同的首次扫描信道。 Alternatively, the determination of the first scan channel may be performed by a server independent of STA#1 and STA#2, that is, when STA#1 needs to perform channel scanning to determine a channel used for communication, a request may be sent to the server, The server may determine the location of the STA #1 according to the request, and determine, according to the coverage of each AP, the first AP that can serve the STA #1, and the available alternate channels, the foregoing process and S210 and S220 The process in the process is similar, and the description is omitted here to avoid redundancy. When the server determines that STA#2 can also communicate through the first AP, there is an intersection between the candidate channel corresponding to STA#1 and the candidate channel corresponding to STA#2. Thus, the server can assign different first scan channels to STA#1 and STA#2.
在本发明实施例中, 设该第一 AP (一个或多个 AP )使用的信道数量为 N, 通过该第一 AP进行通信的 STA的数量为 M。 根据 M和 N之间的大小 关系, 可以分为以下三种情况:  In the embodiment of the present invention, the number of channels used by the first AP (one or more APs) is N, and the number of STAs that communicate through the first AP is M. According to the size relationship between M and N, it can be divided into the following three cases:
情况( 1 ): M=N  Situation (1): M=N
此情况下, 服务器能够为每个 STA均分配一个与其他 STA相异的待分 配信道, 作为其首次扫描信道。  In this case, the server can allocate a channel to be allocated that is different from other STAs for each STA as its first scanning channel.
例如,服务器可以为 M个 STA进行编号,从而可以获得集合 1 : { STA#1 , For example, the server can number M STAs to get the set 1 : { STA#1 ,
STA#2 , STA#M }, 并且, 可以为待分配信道进行编号, 从而可以获得 集合 2: {信道 #1 , 信道 #2 , 信道 #N}。 其后, 服务器可以使集合 1中的 各元素与集合 2中的各元素——对应, 并将各 STA的在集合 2中所对应的 信道作为其首次扫描信道, 下发给各 STA。 STA#2, STA#M}, and the channels to be allocated may be numbered, so that set 2: {channel #1, channel #2, channel #N} can be obtained. Then, the server can make each element in the set 1 correspond to each element in the set 2, and send the channel corresponding to each STA in the set 2 as its first scan channel to each STA.
作为使集合 1中的各元素与集合 2中的各元素——对应的方法, 可以列 举以下实施例:  As a method of making each element in the set 1 correspond to each element in the set 2, the following embodiments can be cited:
A. 可以根据集合 1中的各元素与集合 2中的各元素的编号来进行, 例 如, 使编号相同的元素相对应, 需要说明的是, 集合 1中的各元素的编号需 要彼此相异, 集合 2中的各元素的编号也需要彼此相异。  A. It can be performed according to the number of each element in the set 1 and the element in the set 2, for example, the elements having the same number are associated with each other. It should be noted that the numbers of the elements in the set 1 need to be different from each other. The numbers of the elements in the set 2 also need to be different from each other.
B. 如果集合 1中各 STA具有能够在***中唯一地指示该网络设备的标 识, 例如, 媒体接入控制 (MAC , Medium Access Control )地址、 关联身份 信息(AID , Association Identifier )或部分关联身份信息(partial AID , partial Association Identifier ), 则可以根据预设的规则,使具各标识与集合 2中的各 元素的编号——对应。  B. If each STA in set 1 has an identifier that can uniquely indicate the network device in the system, for example, a medium access control (MAC) address, an associated identity information (AID, Association Identifier), or a partial associated identity The partial AID (partial association Identifier) may correspond to the number of each element in the set 2 according to a preset rule.
C. 在集合 1和集合 2中的各元素个数小于等于 10的情况下, 可以产生 一个位数与集合 1中的元素个数相同的随机数, 该随机数的个数位上的数字 彼此相异, 从而, 可以使各 STA 与该随机数的各数位——对应, 并且, 该 随机数的各数位上的数字可以代表集合 2中各元素, 从而, 能够使集合 1中 的各元素与集合 2中的各元素——对应。  C. In the case where the number of elements in the set 1 and the set 2 is less than or equal to 10, a random number having the same number of bits as the number of elements in the set 1 can be generated, and the numbers on the digits of the random number are mutually Therefore, each STA can be made to correspond to each digit of the random number, and the number on each digit of the random number can represent each element in the set 2, thereby enabling each element and set in the set 1 to be The elements in 2 - corresponding.
可选地, 当该第一 STA与该第二 STA之间的距离小于等于预设的距离 门限时, 该第一备选信道与该第二备选信道之间相隔至少一个信道。 具体地说, 如果两个 STA之间的距离过小, 并且所使用的信道在*** 带宽中相邻, 可能导致这两个相邻网络设备的通信对彼此造成干扰。 Optionally, when the distance between the first STA and the second STA is less than or equal to a preset distance threshold, the first candidate channel and the second candidate channel are separated by at least one channel. Specifically, if the distance between two STAs is too small and the channels used are adjacent in the system bandwidth, communication between the two adjacent network devices may cause interference to each other.
因此, 在本发明实施中, 通过使这两个相邻的 STA所对应的首次扫描 信道在***带宽中至少相隔一个信道, 能够减小这两个网络设备之间的干 扰。 例如, 如果 STA#1与 STA#2之间的距离小于预设的距离门限, 则可以 选择信道 A1作为 STA#1的首次扫描信道,并可以选择信道 A10作为 STA#2 的首次扫描信道。  Therefore, in the implementation of the present invention, interference between the two network devices can be reduced by making the first scan channels corresponding to the two adjacent STAs at least one channel apart in the system bandwidth. For example, if the distance between STA#1 and STA#2 is less than the preset distance threshold, channel A1 can be selected as the first scan channel of STA#1, and channel A10 can be selected as the first scan channel of STA#2.
需要说明的是, 在本发明实施例中, 上述距离门限可以根据例如, 两网 络设备的发射功率等确定, 例如, 如果 AP#1与 AP#2的发射功率都较大, 则双方收到彼此干扰的可能性较大, 因此可以缩短该距离门限。  It should be noted that, in the embodiment of the present invention, the foregoing distance threshold may be determined according to, for example, the transmit power of the two network devices, for example, if the transmit powers of AP#1 and AP#2 are both large, the two parties receive each other. The possibility of interference is large, so the distance threshold can be shortened.
另外, 在本发明实施例中, 对于不同的网络设备对, 所对应的距离门限 可以相同,也可以相异,本发明并未特别限定。例如,用于判定 AP#1与 AP#2 的首次扫描信道是否相隔至少一个信道的距离门限, 与用于判定 AP#1 与 AP#3的首次扫描信道是否相隔至少一个信道的距离门限可以相异。  In addition, in the embodiment of the present invention, the distance thresholds may be the same or different for different pairs of network devices, and the present invention is not particularly limited. For example, a distance threshold for determining whether the first scan channel of AP#1 and AP#2 is separated by at least one channel, and a distance threshold for determining whether at least one channel of AP#1 and AP#3 are separated by at least one channel may be different.
例如, 在 M=N=10的情况下, 如果 STA#1至 STA#10按编号顺序直线 排歹 ll (即, STA#1与 STA#2之间的距离最近, STA#1与 STA#10之间的距离 最远), 则作为示例而非限定, 可以按以下表 4所示方式确定各 STA的首次 扫描信道。  For example, in the case of M=N=10, if STA#1 to STA#10 are linearly arranged in the order of numbering (ie, the distance between STA#1 and STA#2 is the closest, STA#1 and STA#10) The farthest distance between them is, by way of example and not limitation, the first scan channel of each STA can be determined in the manner shown in Table 4 below.
表 4  Table 4
STA 首次扫描信道  STA scans channel for the first time
STA#1 信道 Al STA#1 channel Al
STA#2 信道 A10  STA#2 channel A10
STA#3 信道 A5  STA#3 channel A5
STA#4 信道 A8  STA#4 channel A8
STA#5 信道 A3  STA#5 channel A3
STA#6 信道 A6 STA#6 channel A6
STA#7 信道 A2  STA#7 channel A2
STA#8 信道 A9 STA#9 信道 A4 STA#8 channel A9 STA#9 channel A4
STA#10 信道 A7 STA#10 channel A7
如上所述, 由于 STA#1与 STA#2之间的距离最近, 通过扩大 STA#1的 首次扫描信道(信道 A1 ) 与 STA#2的首次扫描信道(信道 A10 )彼此之间 的间隔,能够降低 STA#1与 STA#2之间的干扰,另夕卜,由于 STA#1与 STA#7 之间的距离相对较远, 因此, 即使大 STA#1的首次扫描信道(信道 A1 ) 与 STA#7的首次扫描信道(信道 A2 )之间的间隔较小 (具体地说, 是相邻;), 两网络设备之间的干扰也能控制于规定范围内, 从而, 能够进一步改善用户 感受。  As described above, since the distance between STA#1 and STA#2 is the closest, by expanding the interval between the first scan channel (channel A1) of STA#1 and the first scan channel (channel A10) of STA#2, it is possible to The interference between STA#1 and STA#2 is reduced. In addition, since the distance between STA#1 and STA#7 is relatively far, even the first scan channel (channel A1) and STA of the large STA#1 The interval between the first scanning channels (channel A2) of #7 is small (specifically, adjacent); the interference between the two network devices can also be controlled within a prescribed range, thereby further improving the user experience.
情况( 2 ): M < N  Situation ( 2 ): M < N
由于 STA 的数量小于当前可以使用的信道(待分配信道) 的数量, 因 此, 与情况(1 )同样, 能够确保每个 STA的首次扫描信道相异。 此情况下, 可以从 N个待分配信道中随机选择 M个信道, 从而可以使用与情况(1 )相 似的方法, 将所选择的 M个待分配信道分配给 M个 STA。  Since the number of STAs is smaller than the number of channels currently available (the channels to be allocated), as in the case (1), it is possible to ensure that the first scanning channels of each STA are different. In this case, M channels can be randomly selected from the N channels to be allocated, so that the selected M channels to be allocated can be allocated to M STAs using a method similar to the case (1).
情况( 3 ): M > N  Situation (3): M > N
此情况下, 无法确保每个 STA的首次扫描信道均相异。服务器可以将 T ( T N ) 个 STA分为一组, 从而可以确定多个 STA组, 每个 STA组中的 STA的数量均小于或等于 N, 从而, 可以按照上述情况(1 )或情况(2 )的 方法, 为各组中的 STA分配首次扫描信道。 另外, 如上所述, 由于距离较 近的 STA之间的干扰较强, 因此, 在本发明实施例中, 优选将距离较近的 STA划分在一组。  In this case, there is no guarantee that the first scan channel of each STA will be different. The server may divide the T (TN) STAs into a group, so that multiple STA groups may be determined, and the number of STAs in each STA group is less than or equal to N, so that the foregoing situation (1) or case (2) may be The method of assigning the first scan channel to the STAs in each group. In addition, as described above, since the interference between the STAs is relatively strong, in the embodiment of the present invention, it is preferable to divide the STAs that are closer in distance into one group.
例如, 在 M=12, N=10的情况下, 如果 STA#1至 STA#12按编号顺序 直线排列(即, STA#1与 STA#2之间的距离最近, STA#1与 STA#12之间的 距离最远),则作为示例而非限定,可以按以下表 5所示方式确定各 AP的首 次扫描信道。  For example, in the case of M=12, N=10, if STA#1 to STA#12 are linearly arranged in numerical order (ie, the distance between STA#1 and STA#2 is the closest, STA#1 and STA#12 The farthest distance between them is, by way of example and not limitation, the first scan channel of each AP can be determined in the manner shown in Table 5 below.
表 5  table 5
STA 首次扫描信道  STA scans channel for the first time
STA#1 信道 A1 STA#1 channel A1
STA#2 信道 A10 STA#3 信道 A5 STA#2 channel A10 STA#3 channel A5
STA#4 信道 A8  STA#4 channel A8
STA#5 信道 A3  STA#5 channel A3
STA#6 信道 A6  STA#6 channel A6
STA#7 信道 A2  STA#7 channel A2
STA#8 信道 A9 STA#8 channel A9
STA#9 信道 A4  STA#9 channel A4
STA#10 信道 A7 STA#10 channel A7
STA#11 信道 A1  STA#11 channel A1
STA#12 信道 A10 根据本发明实施例的信道扫描的方法,通过使不使用同一信道进行通信 的多个 STA的首次扫描信道相异, 能够提高各 STA在首次扫描后确定通信 用信道的概率, 从而, 能够进一步改善用户体验。  STA#12 Channel A10 According to the channel scanning method of the embodiment of the present invention, by making the first scanning channels of a plurality of STAs that do not use the same channel different, the probability that each STA determines the communication channel after the first scanning can be improved. Thereby, the user experience can be further improved.
可选地, 该第一 STA根据当前所处位置以及各该 AP的覆盖范围, 从各 该 AP使用的信道中, 确定第一备选信道, 包括:  Optionally, the first STA determines, according to the current location and the coverage of each AP, the first candidate channel from the channels used by each AP, including:
该第一 STA根据当前所处位置以及各该 AP的覆盖范围,确定针对各该 AP使用的信道的扫描顺序, 在该扫描顺序中, 该第一备选信道为首次扫描 信道; 以及  Determining, by the first STA, a scan order of channels used by each AP according to a current location and coverage of each AP, where the first candidate channel is a first scan channel;
该第一 STA以该第一备选信道作为首次扫描信道,对各该 AP使用的信 道进行扫描, 包括:  The first STA scans the channel used by each AP by using the first candidate channel as the first scan channel, including:
该第一 STA根据该扫描顺序, 对各该 AP使用的信道进行扫描。  The first STA scans the channel used by each AP according to the scanning sequence.
具体地说, 在本发明实施例中, 除了首次扫描信道以外, 还可以确定针 对剩余备选信道的扫描顺序, 同样地, 该确定过程可以由 STA执行, 也可 以由服务器执行, 并将确定对于各信道的完整的扫描顺序下发至各 STA。 以 下, 为了便于理解和说明, 以服务器确定各 STA 的针对备选信道的扫描信 道的过程和方法进行说明。  Specifically, in the embodiment of the present invention, in addition to the first scanning channel, the scanning order for the remaining candidate channels may be determined. Similarly, the determining process may be performed by the STA, or may be performed by the server, and The complete scan order of each channel is sent to each STA. Hereinafter, for ease of understanding and explanation, a process and a method for determining a scanning channel of each STA for an alternate channel by a server will be described.
备选信道(第一 AP使用的信道)为 N个, 则 STA#i的信道顺序序列记 为: [Channel ( i, 1), Channel ( i, 2), ···, Channel (i, N) ]。 The candidate channel (the channel used by the first AP) is N, and the sequence of channel sequences of STA#i is recorded as: [Channel ( i, 1), Channel ( i, 2), ···, Channel (i, N) ].
假设 STA#1的信道扫描顺序序列确定为:  Assume that the channel scan sequence of STA#1 is determined as:
[Channel ( 1 , 1 ), Channel ( 1 , 2), ···, Channel ( 1 , N) ],  [Channel ( 1 , 1 ), Channel ( 1 , 2), ···, Channel ( 1 , N) ],
则例如,可以将 STA#1的信道扫描顺序序列左移( 2 - 1 )位,作为 STA#2 的信道扫描顺序序列, 即, STA#2的信道扫描顺序序列确定为:  For example, the channel scan sequence of STA#1 may be shifted left (2 - 1) bits to the channel scan sequence of STA#2, that is, the channel scan sequence of STA#2 is determined as:
[Channel ( 2, 1 ), Channel ( 2, 2), ···, Channel ( 2, N-l ), Channel [Channel ( 2, 1 ), Channel ( 2, 2), ···, Channel ( 2, N-l ), Channel
(2, N) ]=[Channel (1, 2), Channel (1, 3 ), …, Channel ( 1, N ), Channel(2, N) ]=[Channel (1, 2), Channel (1, 3 ), ..., Channel ( 1, N ), Channel
(1, 1) ]; (1, 1) ];
同理, 可得 STA#i的信道扫描顺序序列为 STA#1的信道扫描顺序序列 左移 (i-1 )位, 即  Similarly, the channel scanning sequence sequence of STA#i is STA#1, and the channel scanning sequence is shifted to the left (i-1) bit, that is,
[Channel (i, 1), Channel ( i, 2), Channel (i, N-l), Channel ( i, N) ]= [Channel ( 1, i), Channel (1, i+1 ), Channel (1, N), Channel (1, 1), Channel ( 1 , 2), Channel ( 1 , i-1) ]  [Channel (i, 1), Channel ( i, 2), Channel (i, Nl), Channel ( i, N) ] = [Channel ( 1, i), Channel (1, i+1 ), Channel (1 , N), Channel (1, 1), Channel ( 1 , 2), Channel ( 1 , i-1) ]
其中, STA#1的信道扫描顺序可以随机产生。  The channel scanning order of STA#1 can be randomly generated.
并且, 如果扫描顺序中, 下一次扫描的信道与本次扫描的信道在***带 宽中相邻,例如,本次扫描的信道为信道 A4, 下一次扫描的信道为信道 A5, 如果信道 A4不能作为最终的通信信道(例如, 被其他 STA占用 ), 则进行 下次扫描时, 由于信道 A4被使用, 对信道 A5的干扰较大, 可能影响用户 体验。  Moreover, if the scanning sequence is adjacent to the channel of the current scanning in the system bandwidth, for example, the channel of the current scanning is channel A4, and the channel of the next scanning is channel A5, if channel A4 cannot be used as The final communication channel (for example, occupied by other STAs), when the next scan is performed, because channel A4 is used, the interference to channel A5 is large, which may affect the user experience.
因此, 在本发明实施例中, 在确定扫描顺序时, 优选使 channel ( 1, i) Therefore, in the embodiment of the present invention, when determining the scanning order, it is preferable to make channel (1, i)
-channel ( 1, i+1 ) !=lor-l, 即, 在扫描顺序中前后两个信道在***带宽中 不相邻(或者说, 至少相隔一个信道), 例如, N=10时, STA#1的扫描顺序 序列可以为 {A1, A3, A5, A7, A9, A2, A4, A6, A8, A10}。 -channel ( 1, i+1 ) !=lor-l, that is, in the scan order, the two channels are not adjacent in the system bandwidth (or at least one channel apart), for example, when N=10, STA The scan sequence of #1 can be {A1, A3, A5, A7, A9, A2, A4, A6, A8, A10}.
设备选信道的数量为 N, 即, 备选信道为 {Α#1, Α#2, ..., Α#Ν}, 则 STA#1的扫描顺序序列可以按照下述方法产生:  The number of selected channels of the device is N, that is, if the candidate channel is {Α#1, Α#2, ..., Α#Ν}, the scan sequence of STA#1 can be generated as follows:
a. 可以按如上所述方法确定首次扫描信道 Channel ( 1, 1 ) =A1 b. 在剩余的备选信道中, 选择与 Channel ( 1, 1 )距离最远的信道, 作 为第二次扫描的信道 Channel ( 1, 2), 即, Channel (1, 2) =AN  a. The first scan channel Channel (1, 1) = A1 can be determined as described above. In the remaining candidate channels, the channel farthest from Channel (1, 1) is selected as the second scan. Channel Channel ( 1, 2), ie, Channel (1, 2) = AN
c. 在剩余的备选信道中, 选择与 Channel (1, 2)和 Channel ( 1, 1) 距离都比较远的信道作为第三次扫描的信道 Channel ( 1, 3), 即, Channel c. In the remaining candidate channels, select the channel that is farther away from Channel (1, 2) and Channel (1, 1) as the channel (1, 3) of the third scan, that is, Channel
(1, 3) ^[Channel (1, 1 ) +Channel ( 1, 2) ]/2=A ( 1+N ) II, 如果 N 为 偶数, 则其整数部分。 (1, 3) ^[Channel (1, 1 ) +Channel ( 1, 2) ]/2=A ( 1+N ) II, if N is Even, the integer part.
d. 在剩余的备选信道中, 选择与 Channel ( 1, 3 )和 Channel ( 1 , 2) 距离都比较远的信道作为第四次扫描的信道 Channel ( 1, 3),而且和 Channel (1, 1)也尽可能远的信道  d. In the remaining candidate channels, select the channel that is farther away from Channel (1, 3) and Channel (1, 2) as the channel Channel (1, 3) for the fourth scan, and with Channel (1) , 1) also as far as possible the channel
e. 类似地, 在后续信道排序中, 使 Channel (1, i)与 Channel (1, i-1 ) 和 channel (1, i-2 )距离都比较远, 而且和 Channel (1, i-3 ), Channel ( 1, 1 )也尽可能远的信道。  e. Similarly, in subsequent channel ordering, make Channel (1, i) farther away from Channel (1, i-1) and channel (1, i-2), and channel (1, i-3) ), Channel (1, 1) is also the channel as far as possible.
例如, 在 M=12, N=10的情况下, 如果 STA#1至 STA#12按编号顺序 直线排列(即, STA#1与 STA#2之间的距离最近, STA#1与 STA#12之间的 距离最远), 则作为示例而非限定, 可以按以下表 6所示方式确定各 STA的 信道扫描顺序。  For example, in the case of M=12, N=10, if STA#1 to STA#12 are linearly arranged in numerical order (ie, the distance between STA#1 and STA#2 is the closest, STA#1 and STA#12 The distance between them is the farthest.) By way of example and not limitation, the channel scanning order of each STA can be determined in the manner shown in Table 6 below.
表 6  Table 6
Figure imgf000026_0001
Figure imgf000026_0001
在现有技术中, 各 STA的扫描顺序相同, 均为 Al, A2, A3, A4, A5, A6, A7, A8, A9, A10。 导致 STA在找到合适的信道前, 需要扫描多个信 道, 花费较长的时间, 并且, 同时, 由于相邻 STA选择到的信道在频率上 间隔也可能 4艮小, 导致邻频干扰。 In the prior art, the scanning order of each STA is the same, and all are Al, A2, A3, A4, A5, A6, A7, A8, A9, A10. Causes the STA to scan multiple channels before finding a suitable channel, which takes a long time, and, at the same time, because the channel selected by the neighboring STA is on the frequency The interval may also be 4 , small, causing adjacent channel interference.
与此相对, 通过是各 STA采用不同的扫描顺序, 特别是, 使各 STA的 首次扫描顺序相异, 能够使各 STA 均能够迅速地找到合适的信道, 能够节 省通信建立时间,改善用户体验。并且,通过设置扫描顺序,使距离较小(例 如,相邻) STA选择到的信道至少间隔一个信道,能够避免邻频干扰的发生。  On the other hand, the STAs use different scanning orders. In particular, the first scan order of each STA is different, enabling each STA to quickly find an appropriate channel, which can save communication setup time and improve user experience. Moreover, by setting the scanning order, the channels selected by the STAs having a small distance (e.g., adjacent) are separated by at least one channel, and the occurrence of adjacent frequency interference can be avoided.
从而, 在 S330, 第一 STA (以下, 以该第一 STA为 STA#1为例, 进行 说明)可以根据服务器下发的指示信息(例如, 上述表 4或表 6 ), 确定首次 扫描的信道, 这里, STA#1的首次扫描信道为如上所述表 4至表 6中记载的 信道 Al。  Therefore, in S330, the first STA (hereinafter, taking the first STA as the STA#1 as an example) may determine the channel for the first scan according to the indication information (for example, Table 4 or Table 6 above) delivered by the server. Here, the first scan channel of STA#1 is the channel A1 described in Tables 4 to 6 above.
其后, 第一 STA可以根据如上所述确定的首次扫描信道, 进行信道扫 描, 即, 第一 STA可以确定信道 A1满足预设条件时, 确定能够使用该信道 A1进行通信, 并停止扫描。  Thereafter, the first STA may perform channel scanning according to the first scan channel determined as described above, that is, when the first STA can determine that the channel A1 satisfies the preset condition, it is determined that the channel A1 can be used for communication, and the scanning is stopped.
该在当前扫描的信道的信道状况满足预设条件时, 停止扫描, 包括: 如果当前扫描的信道中的信号强度大于等于预设的质量门限, 则停止扫 描。  When the channel condition of the currently scanned channel meets the preset condition, the scanning is stopped, including: if the signal strength in the currently scanned channel is greater than or equal to a preset quality threshold, the scanning is stopped.
具体地说,  Specifically,
如果信道 A1的质量(例如,信噪比)大于等于预设值(即,质量门限), 则可能判定为该信道 A1的干扰较小, 或者说, 该信道 A1未被占用。 从而 可以停止扫描, 并通过该信道 A1进行通信。  If the quality of the channel A1 (e.g., the signal-to-noise ratio) is greater than or equal to a preset value (i.e., a quality threshold), it may be determined that the interference of the channel A1 is small, or the channel A1 is unoccupied. Thereby, the scanning can be stopped and communication is performed through the channel A1.
例如, STA在进行信道扫描时, 主要是扫描可以为其服务的 AP, 需要 该确保来自该 AP的信号强度能够满足通信要求, 因此, 如果一个信道上的 信号强度大于等于预设值(质量门限的一例), 或者说, 该信道上的信噪比 大于等于预设值(质量门限的另一例), 则 STA可以认为能够使用该信道进 行通信, 并停止扫描。  For example, when the STA performs channel scanning, it mainly scans the APs that can serve it, and needs to ensure that the signal strength from the AP can meet the communication requirements. Therefore, if the signal strength on one channel is greater than or equal to a preset value (quality threshold) For example, if the signal-to-noise ratio on the channel is greater than or equal to a preset value (another example of a quality threshold), the STA can consider that the channel can be used for communication and stop scanning.
另外, 由于环境因素, 例如, 来自微波炉等的干扰, 可以导致未被 AP 使用的信道上仍然存在一定的信号 (或者说, 噪声), 此情况下, 通过将质 量门限设定为与 AP辐射的信号的信号强度相对应的值, 能够避免该噪声的 干扰, 使 STA准确的扫描到能够用于通信的信道。  In addition, due to environmental factors, for example, interference from a microwave oven or the like, a certain signal (or noise) may still be present on a channel that is not used by the AP, in which case the quality threshold is set to be radiated with the AP. The value corresponding to the signal strength of the signal can avoid the interference of the noise, enabling the STA to accurately scan the channel that can be used for communication.
需要说明的是, 以上列举的干扰门限和质量门限可以根据通信的类型设 定, 例如, 对于实时通信业务(例如, 视频类业务或在线游戏类业务)等对 通信资源要求交高的业务, 可以设定一个较高的门限。 以上列举了首次扫描信道或信道扫描顺序由服务器设置并下发的实施 例, 但本发明并不限定于此, 也可以由该至少两个 STA协商确定, 本发明 并未特别限定, 只要能够使至少两个 STA的首次扫描信道相异即可, 并且, 各 STA执行上述过程(主要是确定首次扫描信道或信道扫描顺序) 时的动 作和过程与服务器的类似, 这里, 为了避免赘述, 省略其说明。 It should be noted that the interference threshold and the quality threshold listed above may be set according to the type of communication, for example, for a service that requires high communication resources such as a real-time communication service (for example, a video service or an online game service). Set a higher threshold. The foregoing describes an embodiment in which the first scan channel or the channel scan sequence is set and delivered by the server. However, the present invention is not limited thereto, and may be determined by the at least two STAs. The present invention is not particularly limited as long as The first scan channels of at least two STAs may be different, and the actions and processes when the STAs perform the above process (mainly determining the first scan channel or channel scan order) are similar to those of the server. Here, in order to avoid redundancy, the description is omitted. Description.
根据本发明实施例的信道扫描的方法, 通过使 STA确定能够为其服务 的 AP使用的信道,并从其中确定首次扫描信道,能够使 STA在首次扫描时, 便能够确定可以使用的信道。 并且, 通过使网络设备在当前扫描的信道的信 道状况满足预设条件时停止扫描, 能够降低网络设备的信道扫描时间, 进而 缩短通信建立的时间, 从而提高用户体验。  According to the channel scanning method of the embodiment of the present invention, by making the STA determine the channel that can be used by the AP it serves, and determining the first scanning channel therefrom, it is possible to enable the STA to determine the available channel at the time of the first scanning. Moreover, by causing the network device to stop scanning when the channel condition of the currently scanned channel satisfies the preset condition, the channel scanning time of the network device can be reduced, thereby shortening the communication establishment time, thereby improving the user experience.
应理解, 以上列举的信道扫描的方法仅为示例性说明, 本发明并不限定 于此, 也可以不关心相邻 STA的扫描顺序, 而直接根据各 STA与各 AP之 间的距离进行扫描, 例如:  It should be understood that the method for channel scanning enumerated above is only an exemplary description, and the present invention is not limited thereto, and may not directly care for the scanning order of adjacent STAs, but directly scan according to the distance between each STA and each AP. E.g:
图 4示出了适用本发明方法 200的 WLAN***的示意图。如图 4所示, 在该 WLAN***中, AP#1使用信道 A1; AP#2使用信道 A10; AP#3使用 信道 A5; AP#4使用信道 A8; AP#6使用信道 A6。  Figure 4 shows a schematic diagram of a WLAN system to which the method 200 of the present invention is applied. As shown in FIG. 4, in the WLAN system, AP#1 uses channel A1; AP#2 uses channel A10; AP#3 uses channel A5; AP#4 uses channel A8; AP#6 uses channel A6.
并且,如图 4所示,在该 WALN***中, STA#1与 AP#1之间的距离(在 该 STA#1与各 AP的距离中)最短; STA#2与 AP#1之间的距离(在该 STA#2 与各 AP的距离中)最短; STA#3与 AP#2之间的距离 (在该 STA#3与各 AP的距离中)最短; STA#4与 AP#3之间的距离 (在该 STA#4与各 AP的 距离中)最短; STA#5与 AP#3之间的距离(在该 STA#5与各 AP的距离中) 最短; STA#6与 AP#4之间的距离 (在该 STA#6与各 AP的距离中)最短; STA#7与 AP#5之间的距离 (在该 STA#7与各 AP的距离中) 最短; STA#8 与 AP#6之间的距离 (在该 STA#8与各 AP的距离中) 最短。  Moreover, as shown in FIG. 4, in the WALN system, the distance between STA#1 and AP#1 (in the distance between the STA#1 and each AP) is the shortest; between STA#2 and AP#1 The distance (in the distance between the STA#2 and each AP) is the shortest; the distance between STA#3 and AP#2 (in the distance between the STA#3 and each AP) is the shortest; STA#4 and AP#3 The distance between (the distance between STA#4 and each AP) is the shortest; the distance between STA#5 and AP#3 (in the distance between STA#5 and each AP) is the shortest; STA#6 and AP# The distance between 4 (in the distance between STA#6 and each AP) is the shortest; the distance between STA#7 and AP#5 (in the distance between STA#7 and each AP) is the shortest; STA#8 and The distance between AP #6 (in the distance between STA #8 and each AP) is the shortest.
此情况下,可以使各 STA使用与其距离最短的 AP所使用的信道作为首 次扫描信道, 即, 可以按以下表 7所示方式确定各 STA的首次扫描信道。  In this case, each STA can be made to use the channel used by the AP with the shortest distance as the first scanning channel, i.e., the first scanning channel of each STA can be determined in the manner shown in Table 7 below.
表 7  Table 7
STA 首次扫描信道  STA scans channel for the first time
STA#1 信道 Al ( AP#1所使用的信道) STA#1 channel Al (channel used by AP#1)
STA#2 信道 Al ( AP#1所使用的信道) STA#3 信道 A10 ( AP#2所使用的信道) STA#2 channel Al (channel used by AP#1) STA#3 channel A10 (channel used by AP#2)
STA#4 信道 A5 ( AP#3所使用的信道)  STA#4 channel A5 (channel used by AP#3)
STA#5 信道 A5 ( AP#3所使用的信道)  STA#5 channel A5 (channel used by AP#3)
STA#6 信道 A8 ( AP#4所使用的信道)  STA#6 channel A8 (channel used by AP#4)
STA#7 信道 A3 ( AP#5所使用的信道)  STA#7 channel A3 (channel used by AP#5)
STA#8 信道 A6 ( AP#6所使用的信道) STA#8 channel A6 (channel used by AP#6)
或者, 可以根据各 STA与各 AP之间的距离, 确定各 STA的信道扫描 顺序, 例如, 对于两 AP所使用的信道, 使距该 STA较近的 AP所使用的信 道排在距该 STA较远的 AP所使用的信道之前, 即, 可以按以下表 8所示方 式确定各 STA的首次扫描信道。  Alternatively, the channel scanning order of each STA may be determined according to the distance between each STA and each AP. For example, for the channel used by the two APs, the channel used by the AP closer to the STA is ranked in the STA. Before the channel used by the far AP, that is, the first scan channel of each STA can be determined in the manner shown in Table 8 below.
表 8  Table 8
STA 首次扫描信道  STA scans channel for the first time
STA#1 Al , A10, A5, A8, A3, A6 STA#1 Al , A10, A5, A8, A3, A6
STA#2 Al , A10, A5, A8, A3, A6  STA#2 Al , A10, A5, A8, A3, A6
STA#3 A10, Al , A5, A8, A3, A6  STA#3 A10, Al, A5, A8, A3, A6
STA#4 A5 , A10, Al , A8, A3, A6  STA#4 A5, A10, Al, A8, A3, A6
STA#5 A5 , A8, A3, A10, A6, A1  STA#5 A5, A8, A3, A10, A6, A1
STA#6 A8, A3, A5, A10, A6, A1  STA#6 A8, A3, A5, A10, A6, A1
STA#7 A3 , A8, A6, A5 , A10, A1  STA#7 A3, A8, A6, A5, A10, A1
STA#8 A6, A3, A8, A5 , A10, A1 根据本发明实施例的信道扫描的方法, 通过使 STA确定能够为其服务 的 AP使用的信道, 并从其中确定首次扫描信道, 能够使 STA无需对无法对 其服务的信道进行扫描, 能够缩短通信建立时间, 进而改善用户体验。  STA#8 A6, A3, A8, A5, A10, A1 A method of channel scanning according to an embodiment of the present invention, by enabling a STA to determine a channel that can be used by an AP that it can serve, and determining a first scan channel therefrom, enabling STA There is no need to scan the channels that cannot be served, which can shorten the communication setup time and improve the user experience.
以上,结合图 1至图 4详细说明了根据本发明实施例的信道扫描的方法, 下面, 结合图 5至图 6详细说明根据本发明实施例的信道扫描的装置。  Hereinabove, a method of channel scanning according to an embodiment of the present invention is described in detail with reference to FIGS. 1 through 4. Hereinafter, an apparatus for channel scanning according to an embodiment of the present invention will be described in detail with reference to FIGS. 5 through 6.
图 5示出了根据本发明实施例的信道扫描的装置 300的示意性框图。该 装置 300包括: 确定单元 310, 用于从至少两个信道中, 确定第一目标信道, 其中, 该 第一目标信道与至少一个第二目标信道的中心频点相异, 该第二目标信道是 至少一个第二网络设备的首次扫描信道, 该第一网络设备与该第二网络设备 不在同一时段使用同一信道进行通信, 该至少两个信道的带宽相同; FIG. 5 shows a schematic block diagram of an apparatus 300 for channel scanning in accordance with an embodiment of the present invention. The device 300 includes: The determining unit 310 is configured to determine, from the at least two channels, the first target channel, where the first target channel is different from the center frequency of the at least one second target channel, and the second target channel is at least one second a first scan channel of the network device, where the first network device and the second network device do not use the same channel to communicate at the same time, the at least two channels have the same bandwidth;
扫描单元 320, 用于以该第一目标信道作为首次扫描信道, 对该至少两 个信道进行扫描,在当前扫描的信道的信道状况满足预设条件时,停止扫描。  The scanning unit 320 is configured to scan the at least two channels by using the first target channel as the first scan channel, and stop scanning when the channel condition of the currently scanned channel meets a preset condition.
可选地, 该确定单元 310具体用于获取第一扫描指示信息, 该第一扫描 指示信息用于指示该第一信道;  Optionally, the determining unit 310 is specifically configured to acquire first scan indication information, where the first scan indication information is used to indicate the first channel;
用于根据该第一扫描指示信息, 确定该第一信道。  And configured to determine the first channel according to the first scan indication information.
可选地,该确定单元 310具体用于确定针对该至少两个信道的扫描顺序, 在该扫描顺序中, 该第一目标信道为首次扫描信道;  Optionally, the determining unit 310 is specifically configured to determine a scan order for the at least two channels, where the first target channel is a first scan channel;
用于根据该扫描顺序, 确定该第一目标信道; 以及  Used to determine the first target channel according to the scanning sequence;
该扫描单元 320具体用于根据该扫描顺序,对该至少两个信道进行扫描。 可选地, 该确定单元 310具体用于获取第二扫描指示信息, 该第二扫描 指示信息用于指示该扫描顺序。  The scanning unit 320 is specifically configured to scan the at least two channels according to the scanning sequence. Optionally, the determining unit 310 is specifically configured to acquire second scan indication information, where the second scan indication information is used to indicate the scan order.
可选地, 当该装置 300与该第二网络设备之间的距离小于等于预设的距 离门限时, 该第一目标信道与该第二目标信道之间相隔至少一个信道。  Optionally, when the distance between the device 300 and the second network device is less than or equal to a preset distance threshold, the first target channel and the second target channel are separated by at least one channel.
可选地, 该扫描单元 320具体用于  Optionally, the scanning unit 320 is specifically configured to
如果当前扫描的信道中的干扰小于等于预设的干扰门限, 则停止扫描; 或  If the interference in the currently scanned channel is less than or equal to the preset interference threshold, stop scanning; or
如果当前扫描的信道中的信号强度大于等于预设的质量门限, 则停止扫 描。  If the signal strength in the currently scanned channel is greater than or equal to the preset quality threshold, the scanning is stopped.
根据本发明实施例的信道扫描的装置 300可对应于本发明实施例的方法 中的第一网络设备(例如, AP#1 ), 并且, 该装置 300中的各单元即模块和 上述其他操作和 /或功能分别为了实现图 1中的方法 100的相应流程,为了筒 洁, 在此不再赘述。  The device 300 for channel scanning according to an embodiment of the present invention may correspond to a first network device (for example, AP#1) in the method of the embodiment of the present invention, and each unit in the device 300 is a module and the other operations and In order to implement the corresponding process of the method 100 in FIG. 1 , the functions are not described here.
根据本发明实施例的信道扫描的装置,通过使无法使用相同的信道进行 通信的至少两个网络设备, 在对信道进行扫描时, 分别以中心频点相异的信 道作为首次扫描信道, 能够使各网络设备在首次扫描时, 便能够确定可以使 用的信道, 并且, 通过使网络设备在当前扫描的信道的信道状况满足预设条 件时停止扫描, 能够降低网络设备的信道扫描时间, 进而缩短通信建立的时 间, 从而提高用户体验。 According to the apparatus for channel scanning according to the embodiment of the present invention, when at least two network devices that cannot communicate using the same channel are used, when the channel is scanned, respectively, channels having different center frequency points are used as the first scanning channel, which enables When the network device scans for the first time, it can determine the channel that can be used, and by causing the network device to stop scanning when the channel condition of the currently scanned channel meets the preset condition, the channel scanning time of the network device can be reduced, thereby shortening the communication. Established time In order to improve the user experience.
图 6示出了根据本发明实施例的信道扫描的装置 400的示意性框图。该 装置 400包括:  FIG. 6 shows a schematic block diagram of an apparatus 400 for channel scanning in accordance with an embodiment of the present invention. The device 400 includes:
第一确定单元 410, 用于确定至少两个接入点 AP的覆盖范围以及各该 AP使用的信道, 其中, 各该 AP使用的信道的中心频点相异, 且各该 AP使 用的信道的带宽相同;  The first determining unit 410 is configured to determine a coverage area of the at least two access points AP and a channel used by each of the APs, where a center frequency of each channel used by the AP is different, and a channel used by each AP is used. The same bandwidth;
第二确定单元 420, 根据当前所处位置以及各该 AP的覆盖范围, 从各 该 AP使用的信道中, 确定第一备选信道, 其中, 该第一备选信道为第一 AP 所使用的信道, 该装置 400处于该第一 AP的覆盖范围内;  The second determining unit 420 determines, according to the current location and the coverage of each AP, a first candidate channel from the channels used by each AP, where the first candidate channel is used by the first AP. Channel, the device 400 is within the coverage of the first AP;
扫描单元 430, 用于以该第一备选信道作为首次扫描信道, 对各该 AP 使用的信道进行扫描, 在当前扫描的信道的信道状况满足预设条件时, 停止 扫描。  The scanning unit 430 is configured to scan the channel used by each AP by using the first candidate channel as the first scanning channel, and stop scanning when the channel condition of the currently scanned channel meets a preset condition.
可选地, 该第一备选信道与至少一个第二备选信道相异, 该第二备选信 道是至少一个第二 STA的首次扫描信道, 该装置 400与该第二 STA不在同 一时段使用同一信道进行通信。  Optionally, the first candidate channel is different from the at least one second candidate channel, where the second candidate channel is the first scan channel of the at least one second STA, and the device 400 is not used in the same period as the second STA. Communicate on the same channel.
可选地, 该第二确定单元 420具体用于根据当前所处位置以及各该 AP 的覆盖范围, 确定针对各该 AP使用的信道的扫描顺序, 在该扫描顺序中, 该第一备选信道为首次扫描信道; 以及  Optionally, the second determining unit 420 is specifically configured to determine, according to the current location and the coverage of each AP, a scan order of channels used by each AP, where the first candidate channel is in the scan sequence. For the first scan of the channel;
该扫描单元 430具体用于根据该扫描顺序, 对各该 AP使用的信道进行 扫描。  The scanning unit 430 is specifically configured to scan a channel used by each AP according to the scanning sequence.
可选地, 在各该 AP中, 该第一 AP与该装置 400之间的距离最小。 可选地, 该扫描单元 430具体用于,  Optionally, in each AP, the distance between the first AP and the device 400 is the smallest. Optionally, the scanning unit 430 is specifically configured to:
如果当前扫描的信道的干扰小于等于预设的干扰门限, 则停止扫描; 或 如果当前扫描的信道的质量大于等于预设的质量门限, 则停止扫描。 根据本发明实施例的信道扫描的装置 400可对应于本发明实施例的方法 中的第一 STA (例如, STA#1 ), 并且, 该装置 400 中的各单元即模块和上 述其他操作和 /或功能分别为了实现图 3中的方法 200的相应流程,为了筒洁, 在此不再赘述。  If the interference of the currently scanned channel is less than or equal to the preset interference threshold, the scanning is stopped; or if the quality of the currently scanned channel is greater than or equal to the preset quality threshold, the scanning is stopped. The apparatus 400 for channel scanning according to an embodiment of the present invention may correspond to a first STA (for example, STA #1) in the method of the embodiment of the present invention, and each unit in the apparatus 400 is a module and the other operations described above and/or For the purpose of implementing the corresponding process of the method 200 in FIG. 3, the functions are not described here.
根据本发明实施例的信道扫描的装置, 通过使 STA确定能够为其服务 的 AP使用的信道, 并从其中确定首次扫描信道, 能够使 STA无需对无法对 其服务的信道进行扫描, 能够缩短通信建立时间, 进而改善用户体验。 以上,结合图 1至图 4详细说明了根据本发明实施例的信道扫描的方法, 下面, 结合图 7至图 8详细说明根据本发明实施例的信道扫描的设备。 The apparatus for channel scanning according to an embodiment of the present invention, by enabling a STA to determine a channel used by an AP that can serve it, and determining a first scan channel therefrom, enables the STA to shorten the communication without scanning a channel that cannot be served by the STA Establish time to improve the user experience. Hereinabove, a method of channel scanning according to an embodiment of the present invention is described in detail with reference to FIGS. 1 through 4. Hereinafter, an apparatus for channel scanning according to an embodiment of the present invention will be described in detail with reference to FIGS. 7 through 8.
图 7示出了根据本发明实施例的信道扫描的设备 500的示意性框图。如 图 7所示, 该设备 500包括:  FIG. 7 shows a schematic block diagram of an apparatus 500 for channel scanning in accordance with an embodiment of the present invention. As shown in Figure 7, the device 500 includes:
总线 510;  Bus 510;
与该总线 510相连的处理器 520;  a processor 520 coupled to the bus 510;
与该总线 510相连的存储器 530;  a memory 530 connected to the bus 510;
其中,该处理器 520通过该总线 510,调用该存储器 530中存储的程序, 以用于从至少两个信道中, 确定第一目标信道, 其中, 该第一目标信道与至 少一个第二目标信道的中心频点相异, 该第二目标信道是至少一个第二网络 设备的首次扫描信道,该设备 500与该第二网络设备不在同一时段使用同一 信道进行通信, 该至少两个信道的带宽相同;  The processor 520, through the bus 510, invokes a program stored in the memory 530, for determining a first target channel from at least two channels, wherein the first target channel and the at least one second target channel The central frequency points are different, the second target channel is the first scan channel of the at least one second network device, and the device 500 communicates with the second network device at the same time interval using the same channel, and the at least two channels have the same bandwidth ;
用于以该第一目标信道作为首次扫描信道, 对该至少两个信道进行扫 描, 在当前扫描的信道的信道状况满足预设条件时, 停止扫描。  And scanning the at least two channels by using the first target channel as the first scan channel, and stopping scanning when the channel condition of the currently scanned channel meets a preset condition.
可选地, 该处理器 520还用于获取第一扫描指示信息, 该第一扫描指示 信息用于指示该第一信道;  Optionally, the processor 520 is further configured to acquire first scan indication information, where the first scan indication information is used to indicate the first channel;
用于根据该第一扫描指示信息, 确定该第一信道。  And configured to determine the first channel according to the first scan indication information.
可选地, 该处理器 520具体用于确定针对该至少两个信道的扫描顺序, 在该扫描顺序中, 该第一目标信道为首次扫描信道;  Optionally, the processor 520 is specifically configured to determine a scan order for the at least two channels, where the first target channel is a first scan channel;
用于根据该扫描顺序, 确定该第一目标信道; 以及  Used to determine the first target channel according to the scanning sequence;
用于根据该扫描顺序, 对该至少两个信道进行扫描。  And scanning the at least two channels according to the scanning sequence.
可选地, 该处理器 520具体用于获取第二扫描指示信息, 该第二扫描指 示信息用于指示该扫描顺序。  Optionally, the processor 520 is specifically configured to acquire second scan indication information, where the second scan indication information is used to indicate the scan sequence.
可选地, 当该设备 500与该第二网络设备之间的距离小于等于预设的距 离门限时, 该第一目标信道与该第二目标信道之间相隔至少一个信道。  Optionally, when the distance between the device 500 and the second network device is less than or equal to a preset distance threshold, the first target channel and the second target channel are separated by at least one channel.
可选地, 该处理器 520具体用于,  Optionally, the processor 520 is specifically configured to:
如果当前扫描的信道中的信号强度大于等于预设的质量门限, 则停止扫 描。 开的各步骤及逻辑框图。通用处理器 520可以是微处理器或者该处理器也可 以是任何常规的处理器, 解码器等。 结合本发明实施例所公开的方法的步骤 可以直接体现为硬件处理器执行完成, 或者用解码处理器中的硬件及软件模 块组合执行完成。 软件模块可以位于随机存储器, 闪存、 只读存储器, 可编 程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质 中。 该存储介质位于存储器 530, 处理器 520读取存储器 530中的信息, 结 合其硬件完成上述方法的步骤。 If the signal strength in the currently scanned channel is greater than or equal to the preset quality threshold, the scanning is stopped. Each step and logic block diagram. The general purpose processor 520 can be a microprocessor or the processor can be any conventional processor, decoder or the like. The steps of the method disclosed in connection with the embodiments of the present invention It can be directly implemented as a hardware processor or completed by a combination of hardware and software modules in the decoding processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 530, and the processor 520 reads the information in the memory 530 and completes the steps of the above method in combination with hardware.
并且,设备 500可以嵌入或者本身可以就是例如移动电话之类的无线通 信设备, 此情况下, 设备 500还可以包括发射电路、接收电路、 功率控制器、 解码处理器及天线。 此外, 还可以包括容纳发射电路和接收电路的载体, 以 允许设备 500和远程位置之间进行数据发射和接收。发射电路和接收电路可 以耦合到天线。 设备 500的各个组件通过总线 510耦合在一起。  Also, device 500 may be embedded or may itself be a wireless communication device such as a mobile telephone. In this case, device 500 may also include a transmitting circuit, a receiving circuit, a power controller, a decoding processor, and an antenna. In addition, a carrier housing the transmitting circuit and the receiving circuit may be included to allow data transmission and reception between the device 500 and the remote location. The transmit and receive circuits can be coupled to the antenna. The various components of device 500 are coupled together by a bus 510.
应理解,在本发明实施例中,该处理器 520可以是中央处理单元( Central Processing Unit, 筒称为 "CPU" ), 该处理器 520还可以是其他通用处理器、 数字信号处理器(DSP )、专用集成电路(ASIC )、现成可编程门阵列(FPGA ) 或者其他可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件等。 通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。  It should be understood that, in the embodiment of the present invention, the processor 520 may be a central processing unit (a central processing unit), and the processor 520 may also be another general-purpose processor, a digital signal processor (DSP). ), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器 530可以包括只读存储器和随机存取存储器, 并向处理器 820 提供指令和数据。存储器 530的一部分还可以包括非易失性随机存取存储器。 例如, 存储器 530还可以存储设备类型的信息。  The memory 530 can include read only memory and random access memory and provides instructions and data to the processor 820. A portion of memory 530 may also include non-volatile random access memory. For example, the memory 530 can also store information of the device type.
该总线 510除包括数据总线之外, 还可以包括电源总线、 控制总线和状 态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线 510。  The bus 510 can include, in addition to the data bus, a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are labeled as bus 510 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器 520中的硬件的集成 逻辑电路或者软件形式的指令完成。 结合本发明实施例所公开的方法的步骤 可以直接体现为硬件处理器执行完成, 或者用处理器中的硬件及软件模块组 合执行完成。 软件模块可以位于随机存储器, 闪存、 只读存储器, 可编程只 读存储器或者电可擦写可编程存储器、 寄存器等本领域成熟的存储介质中。 该存储介质位于存储器 530, 处理器 520读取存储器 530中的信息, 结合其 硬件完成上述方法的步骤。 为避免重复, 这里不再详细描述。  In an implementation process, the steps of the above method may be completed by an integrated logic circuit of hardware in the processor 520 or an instruction in the form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software modules can be located in random memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, etc., which are well established in the art. The storage medium is located in the memory 530. The processor 520 reads the information in the memory 530 and combines the hardware to perform the steps of the above method. To avoid repetition, it will not be described in detail here.
根据本发明实施例的信道扫描的设备 500可对应于本发明实施例的方法 中的第一网络设备(例如, AP#1 ), 并且, 该设备 500中的各单元即模块和 上述其他操作和 /或功能分别为了实现图 1中的方法 100的相应流程,为了筒 洁, 在此不再赘述。 根据本发明实施例的信道扫描的设备,通过使无法使用相同的信道进行 通信的至少两个网络设备, 在对信道进行扫描时, 分别以中心频点相异的信 道作为首次扫描信道, 能够使各网络设备在首次扫描时, 便能够确定可以使 用的信道, 并且, 通过使网络设备在当前扫描的信道的信道状况满足预设条 件时停止扫描, 能够降低网络设备的信道扫描时间, 进而缩短通信建立的时 间, 从而提高用户体验。 The device 500 for channel scanning according to the embodiment of the present invention may correspond to a first network device (for example, AP#1) in the method of the embodiment of the present invention, and each unit in the device 500 is a module and the other operations described above. In order to implement the corresponding process of the method 100 in FIG. 1 , the functions are not described here. According to the apparatus for channel scanning according to the embodiment of the present invention, when at least two network devices that cannot communicate using the same channel are used, when the channel is scanned, respectively, channels having different center frequency points are used as the first scanning channel, which enables When the network device scans for the first time, it can determine the channel that can be used, and by causing the network device to stop scanning when the channel condition of the currently scanned channel meets the preset condition, the channel scanning time of the network device can be reduced, thereby shortening the communication. Establish time to improve the user experience.
图 8示出了根据本发明实施例的信道扫描的设备 600的示意性框图。该 设备 600包括:  FIG. 8 shows a schematic block diagram of an apparatus 600 for channel scanning in accordance with an embodiment of the present invention. The device 600 includes:
如图 8所示, 该设备 600包括:  As shown in Figure 8, the device 600 includes:
总线 610;  Bus 610;
与该总线 610相连的处理器 620;  a processor 620 connected to the bus 610;
与该总线 610相连的存储器 630;  a memory 630 connected to the bus 610;
其中,该处理器 620通过该总线 610,调用该存储器 630中存储的程序, 以用于确定至少两个接入点 AP的覆盖范围以及各该 AP使用的信道,其中, 各该 AP使用的信道的中心频点相异, 且各该 AP使用的信道的带宽相同; 用于根据当前所处位置以及各该 AP的覆盖范围, 从各该 AP使用的信 道中, 确定第一备选信道, 其中, 该第一备选信道为第一 AP所使用的信道, 该设备 600处于该第一 AP的覆盖范围内;  The processor 620 calls, by using the bus 610, a program stored in the memory 630, for determining a coverage of at least two access points AP and a channel used by each AP, where each AP uses a channel. The frequency of the center is different, and the bandwidth of the channel used by each AP is the same; and the first candidate channel is determined from the channels used by each AP according to the current location and the coverage of each AP, where The first candidate channel is a channel used by the first AP, and the device 600 is in the coverage of the first AP;
用于以该第一备选信道作为首次扫描信道, 对各该 AP使用的信道进行 扫描, 在当前扫描的信道的信道状况满足预设条件时, 停止扫描。  And scanning the channel used by each AP by using the first candidate channel as the first scan channel, and stopping scanning when the channel condition of the currently scanned channel meets a preset condition.
可选地, 该第一备选信道与至少一个第二备选信道相异, 该第二备选信 道是至少一个第二 STA的首次扫描信道, 该设备 600与该第二 STA不在同 一时段使用同一信道进行通信。  Optionally, the first candidate channel is different from the at least one second candidate channel, where the second candidate channel is the first scan channel of the at least one second STA, and the device 600 is not used in the same period as the second STA. Communicate on the same channel.
可选地, 该处理器 620具体用于根据当前所处位置以及各该 AP的覆盖 范围, 确定针对各该 AP使用的信道的扫描顺序, 在该扫描顺序中, 该第一 备选信道为首次扫描信道;  Optionally, the processor 620 is specifically configured to determine, according to the current location and the coverage of each AP, a scanning sequence of channels used by each AP, where the first candidate channel is the first time in the scanning sequence. Scanning channel;
用于根据该扫描顺序, 对各该 AP使用的信道进行扫描。  It is used to scan the channels used by each AP according to the scanning sequence.
可选地,该处理器 620具体用于如果当前扫描的信道中的干扰小于等于 预设的干扰门限, 则停止扫描; 或  Optionally, the processor 620 is specifically configured to stop scanning if the interference in the currently scanned channel is less than or equal to a preset interference threshold; or
如果当前扫描的信道中的信号强度大于等于预设的质量门限, 则停止扫 描。 具体的应用中,设备 600可以嵌入或者本身可以就是例如移动电话之类 的各步骤及逻辑框图。通用处理器 620可以是微处理器或者该处理器也可以 是任何常规的处理器, 解码器等。 结合本发明实施例所公开的方法的步骤可 以直接体现为硬件处理器执行完成,或者用解码处理器中的硬件及软件模块 组合执行完成。 软件模块可以位于随机存储器, 闪存、 只读存储器, 可编程 只读存储器或者电可擦写可编程存储器、 寄存器等本领域成熟的存储介质 中。 该存储介质位于存储器 630, 处理器 620读取存储器 630中的信息, 结 合其硬件完成上述方法的步骤。 If the signal strength in the currently scanned channel is greater than or equal to the preset quality threshold, the scanning is stopped. In a particular application, device 600 may be embedded or may itself be a step and logical block diagram such as a mobile phone. The general purpose processor 620 can be a microprocessor or the processor can be any conventional processor, decoder or the like. The steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software modules can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 630. The processor 620 reads the information in the memory 630 and completes the steps of the above method in combination with hardware.
并且,设备 600可以嵌入或者本身可以就是例如移动电话之类的无线通 信设备, 此情况下, 设备 600还可以包括发射电路、接收电路、 功率控制器、 解码处理器及天线。 此外, 还可以包括容纳发射电路和接收电路的载体, 以 允许设备 600和远程位置之间进行数据发射和接收。发射电路和接收电路可 以耦合到天线。 设备 600的各个组件通过总线 610耦合在一起。  Also, device 600 may be embedded or may itself be a wireless communication device such as a mobile telephone. In this case, device 600 may also include a transmitting circuit, a receiving circuit, a power controller, a decoding processor, and an antenna. In addition, a carrier housing the transmitting circuit and the receiving circuit may be included to allow data transmission and reception between the device 600 and the remote location. The transmit and receive circuits can be coupled to the antenna. The various components of device 600 are coupled together by a bus 610.
应理解,在本发明实施例中,该处理器 620可以是中央处理单元( Central It should be understood that in the embodiment of the present invention, the processor 620 may be a central processing unit (Central)
Processing Unit, 筒称为 "CPU" ), 该处理器 620还可以是其他通用处理器、 数字信号处理器(DSP )、专用集成电路(ASIC )、现成可编程门阵列(FPGA ) 或者其他可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件等。 通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。 The processing unit, referred to as the "CPU", may also be other general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), or other programmable Logic devices, discrete gates or transistor logic devices, discrete hardware components, and more. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器 630可以包括只读存储器和随机存取存储器, 并向处理器 620 提供指令和数据。存储器 630的一部分还可以包括非易失性随机存取存储器。 例如, 存储器 630还可以存储设备类型的信息。  The memory 630 can include read only memory and random access memory and provides instructions and data to the processor 620. A portion of memory 630 may also include non-volatile random access memory. For example, the memory 630 can also store information of the device type.
该总线 610除包括数据总线之外, 还可以包括电源总线、 控制总线和状 态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线 610。  The bus 610 can include, in addition to the data bus, a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are labeled as bus 610 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器 620中的硬件的集成 逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤 可以直接体现为硬件处理器执行完成, 或者用处理器中的硬件及软件模块组 合执行完成。 软件模块可以位于随机存储器, 闪存、 只读存储器, 可编程只 读存储器或者电可擦写可编程存储器、 寄存器等本领域成熟的存储介质中。 该存储介质位于存储器 630, 处理器 620读取存储器 630中的信息, 结合其 硬件完成上述方法的步骤。 为避免重复, 这里不再详细描述。 根据本发明实施例的信道扫描的设备 600可对应于本发明实施例的方法 中的第一 STA (例如, STA#1 ), 并且, 该设备 600 中的各单元即模块和上 述其他操作和 /或功能分别为了实现图 3中的方法 200的相应流程,为了筒洁, 在此不再赘述。 In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 620 or an instruction in a form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software modules can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 630. The processor 620 reads the information in the memory 630 and completes the steps of the above method in combination with hardware. To avoid repetition, it will not be described in detail here. The apparatus 600 for channel scanning according to the embodiment of the present invention may correspond to a first STA (for example, STA #1) in the method of the embodiment of the present invention, and each unit in the apparatus 600 is a module and the other operations described above and/or For the purpose of implementing the corresponding process of the method 200 in FIG. 3, the functions are not described here.
根据本发明实施例的信道扫描的设备, 通过使 STA确定能够为其服务 的 AP使用的信道, 并从其中确定首次扫描信道, 能够使 STA无需对无法对 其服务的信道进行扫描, 能够缩短通信建立时间, 进而改善用户体验。  A device for channel scanning according to an embodiment of the present invention, by enabling a STA to determine a channel used by an AP that can serve it, and determining a first scan channel therefrom, enables the STA to shorten the communication without scanning a channel that cannot be served by the STA Establish time to improve the user experience.
以上,结合图 1至图 4详细说明了根据本发明实施例的信道扫描的方法, 下面, 结合图 9和图 10详细说明根据本发明实施例的信道扫描的***。  Hereinabove, a method of channel scanning according to an embodiment of the present invention is described in detail with reference to FIGS. 1 through 4. Hereinafter, a system for channel scanning according to an embodiment of the present invention will be described in detail with reference to FIGS. 9 and 10.
图 9示出了根据本发明实施例的信道扫描的*** 700的示意性框图。如 图 9所示, 该*** 700包括至少两个网络设备, 该至少两个网络设备中的第 一网络设备 710用于从至少两个信道中, 确定第一目标信道, 其中, 该第一 目标信道与至少一个第二目标信道的中心频点相异, 该第二目标信道是至少 一个第二网络设备 720的首次扫描信道, 该第一网络设备与该第二网络设备 不在同一时段使用同一信道进行通信, 该至少两个信道的带宽相同, 第一网 络设备 710以该第一目标信道作为首次扫描信道,对该至少两个信道进行扫 描, 在当前扫描的信道的信道状况满足预设条件时, 停止扫描。 如, AP#1 ), 并且, 该第一网络设备 710中的各单元即模块和上述其他操作 和 /或功能分别为了实现图 1中的方法 100的相应流程, 为了筒洁,在此不再 赘述。  Figure 9 shows a schematic block diagram of a system 700 for channel scanning in accordance with an embodiment of the present invention. As shown in FIG. 9, the system 700 includes at least two network devices, and a first one of the at least two network devices is configured to determine, from the at least two channels, a first target channel, where the first target The channel is different from a center frequency of the at least one second target channel, the second target channel is a first scan channel of the at least one second network device 720, and the first network device does not use the same channel in the same time period as the second network device Communicating, the at least two channels have the same bandwidth, and the first network device 710 scans the at least two channels by using the first target channel as the first scan channel, when the channel condition of the currently scanned channel meets a preset condition. , stop scanning. For example, AP#1), and the modules and the other operations and/or functions in the first network device 710 are respectively implemented in order to implement the corresponding process of the method 100 in FIG. Narration.
根据本发明实施例的信道扫描的***,通过使无法使用相同的信道进行 通信的至少两个网络设备, 在对信道进行扫描时, 分别以中心频点相异的信 道作为首次扫描信道, 能够使各网络设备在首次扫描时, 便能够确定可以使 用的信道, 并且, 通过使网络设备在当前扫描的信道的信道状况满足预设条 件时停止扫描, 能够降低网络设备的信道扫描时间, 进而缩短通信建立的时 间, 从而提高用户体验。  According to the system for channel scanning according to the embodiment of the present invention, by scanning at least two network devices that cannot communicate using the same channel, respectively, channels having different center frequency points are used as the first scanning channel, which enables When the network device scans for the first time, it can determine the channel that can be used, and by causing the network device to stop scanning when the channel condition of the currently scanned channel meets the preset condition, the channel scanning time of the network device can be reduced, thereby shortening the communication. Establish time to improve the user experience.
图 10示出了根据本发明实施例的信道扫描的*** 800的示意性框图。 如图 10所示, 该*** 800包括:  Figure 10 shows a schematic block diagram of a system 800 for channel scanning in accordance with an embodiment of the present invention. As shown in Figure 10, the system 800 includes:
至少两个接入点 AP  At least two access points AP
第一站点 STA 810确定至少两个接入点 AP的覆盖范围以及各该 AP使 用的信道, 其中, 各该 AP使用的信道的中心频点相异, 且各该 AP使用的 信道的带宽相同,第一 STA 810根据当前所处位置以及各该 AP的覆盖范围, 从各该 AP使用的信道中, 确定第一备选信道, 其中, 该第一备选信道为第 一 AP 820所使用的信道,该第一 STA处于该第一 AP 820的覆盖范围内,第 一 STA 810以该第一备选信道作为首次扫描信道, 对各该 AP使用的信道进 行扫描, 在当前扫描的信道的信道状况满足预设条件时, 停止扫描。 The first station STA 810 determines the coverage of at least two access point APs and each of the APs The used channel, wherein the center frequency of the channel used by each AP is different, and the bandwidth of the channel used by each AP is the same, and the first STA 810 is configured according to the current location and the coverage of each AP. The channel used by the AP determines the first candidate channel, where the first candidate channel is the channel used by the first AP 820, the first STA is in the coverage of the first AP 820, and the first STA 810 The first candidate channel is used as the first scan channel, and the channel used by each AP is scanned, and when the channel condition of the currently scanned channel meets a preset condition, the scanning is stopped.
第一站点 STA 810可对应于本发明实施例的方法中的第一 STA (例如, STA#1 ) , 并且, 该第一站点 STA 810中的各单元即模块和上述其他操作和 / 或功能分别为了实现图 3中的方法 200的相应流程, 为了筒洁, 在此不再赘 述。  The first station STA 810 may correspond to a first STA (eg, STA #1) in the method of the embodiment of the present invention, and each unit in the first station STA 810 is a module and the other operations and/or functions described above respectively In order to implement the corresponding process of the method 200 in FIG. 3, for the sake of cleaning, no further details are provided herein.
根据本发明实施例的信道扫描的***, 通过使 STA确定能够为其服务 的 AP使用的信道, 并从其中确定首次扫描信道, 能够使 STA无需对无法对 其服务的信道进行扫描, 能够缩短通信建立时间, 进而改善用户体验。  A system for channel scanning according to an embodiment of the present invention, by enabling a STA to determine a channel used by an AP that can serve it, and determining a first scan channel therefrom, enabling the STA to shorten the communication without scanning a channel that cannot be served by the STA Establish time to improve the user experience.
应理解, 本文中术语 "和 /或", 仅仅是一种描述关联对象的关联关系, 表示可以存在三种关系, 例如, A和 /或 B, 可以表示: 单独存在 A, 同时存 在 A和 B, 单独存在 B这三种情况。 另外, 本文中字符 "/" , 一般表示前后 关联对象是一种 "或" 的关系。  It should be understood that the term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may represent: A exists separately, and A and B exist simultaneously There are three cases of B alone. In addition, the character "/" in this article generally indicates that the context object is an "or" relationship.
应理解, 在本发明的各种实施例中, 上述各过程的序号的大小并不意味 着执行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不应 对本发明实施例的实施过程构成任何限定。  It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结 合来实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特 定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使用不同方 法来实现所描述的功能, 但是这种实现不应认为超出本发明的范围。  Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in a combination of electronic hardware or computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到, 为描述的方便和筒洁, 上述描 述的***、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。  It will be apparent to those skilled in the art that, for the convenience of the description and the cleaning process, the specific operation of the system, the device and the unit described above may be referred to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的***、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个 ***, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。 In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division, and may be implemented in actual implementation. In a different manner, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。  The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一 个单元中。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使 用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明 的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部 分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质 中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前 述的存储介质包括: U盘、移动硬盘、只读存储器( ROM, Read-Only Memory )、 随机存取存储器(RAM, Random Access Memory ), 磁碟或者光盘等各种可 以存储程序代码的介质。  The functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential to the prior art or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应以所述权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims

权利要求 Rights request
1、 一种信道扫描的方法, 其特征在于, 所述方法包括: 1. A method of channel scanning, characterized in that the method includes:
至少两个网络设备中的第一网络设备从至少两个信道中,确定第一目标 信道, 其中, 所述第一目标信道与至少一个第二目标信道的中心频点相异, 所述第二目标信道是至少一个第二网络设备的首次扫描信道, 所述第一网络 设备与所述第二网络设备不在同一时段使用同一信道进行通信,所述至少两 个信道的带宽相同; A first network device among at least two network devices determines a first target channel from at least two channels, wherein the first target channel has a different center frequency point from at least one second target channel, and the second target channel The target channel is the first scan channel of at least one second network device, the first network device and the second network device do not use the same channel for communication in the same period, and the bandwidths of the at least two channels are the same;
所述第一网络设备以所述第一目标信道作为首次扫描信道,对所述至少 两个信道进行扫描, 在当前扫描的信道的信道状况满足预设条件时, 停止扫 描。 The first network device uses the first target channel as a first scanning channel, scans the at least two channels, and stops scanning when the channel condition of the currently scanned channel meets a preset condition.
2、 根据权利要求 1所述的方法, 其特征在于, 所述至少两个网络设备 中的第一网络设备从至少两个信道中, 确定第一目标信道, 包括: 2. The method according to claim 1, wherein the first network device among the at least two network devices determines the first target channel from at least two channels, including:
所述至少两个网络设备中的第一网络设备获取第一扫描指示信息, 所述 第一扫描指示信息用于指示所述第一信道; The first network device among the at least two network devices acquires first scanning indication information, and the first scanning indication information is used to indicate the first channel;
所述第一网络设备根据所述第一扫描指示信息, 确定所述第一信道。 The first network device determines the first channel according to the first scanning instruction information.
3、 根据权利要求 1所述的方法, 其特征在于, 所述至少两个网络设备 中的第一网络设备从至少两个信道中, 确定第一目标信道, 包括: 3. The method according to claim 1, characterized in that the first network device among the at least two network devices determines the first target channel from at least two channels, including:
所述至少两个网络设备中的第一网络设备确定针对所述至少两个信道 的扫描顺序, 在所述扫描顺序中, 所述第一目标信道为首次扫描信道; 所述第一网络设备根据所述扫描顺序, 确定所述第一目标信道; 以及 所述第一网络设备以所述第一目标信道作为首次扫描信道,对所述至少 两个信道进行扫描, 包括: The first network device among the at least two network devices determines a scanning sequence for the at least two channels, and in the scanning sequence, the first target channel is the first scan channel; the first network device is based on The scanning sequence determines the first target channel; and the first network device uses the first target channel as the first scanning channel to scan the at least two channels, including:
所述第一网络设备根据所述扫描顺序, 对所述至少两个信道进行扫描。 The first network device scans the at least two channels according to the scanning order.
4、 根据权利要求 3所述的方法, 其特征在于, 所述至少两个网络设备 中的第一网络设备确定针对所述至少两个信道的扫描顺序, 包括: 4. The method according to claim 3, wherein the first network device among the at least two network devices determines the scanning order for the at least two channels, including:
所述至少两个网络设备中的第一网络设备获取第二扫描指示信息, 所述 第二扫描指示信息用于指示所述扫描顺序; The first network device among the at least two network devices obtains second scanning instruction information, and the second scanning instruction information is used to indicate the scanning sequence;
所述第一网络设备根据所述第二扫描指示信息, 确定所述扫描顺序。 The first network device determines the scanning sequence according to the second scanning instruction information.
5、 根据权利要求 1至 4中任一项所述的方法, 其特征在于, 当所述第 一网络设备与所述第二网络设备之间的距离小于等于预设的距离门限时, 所 述第一目标信道与所述第二目标信道之间相隔至少一个信道。 5. The method according to any one of claims 1 to 4, characterized in that when the distance between the first network device and the second network device is less than or equal to a preset distance threshold, the The first target channel and the second target channel are separated by at least one channel.
6、 根据权利要求 1至 5中任一项所述的方法, 其特征在于, 所述在当 前扫描的信道的信道状况满足预设条件时, 停止扫描, 包括: 6. The method according to any one of claims 1 to 5, characterized in that, when the channel condition of the currently scanned channel meets a preset condition, stopping scanning includes:
如果当前扫描的信道中的干扰小于等于预设的干扰门限, 则停止扫描; 或 If the interference in the currently scanned channel is less than or equal to the preset interference threshold, stop scanning; or
如果当前扫描的信道中的信号强度大于等于预设的质量门限, 则停止扫 描。 If the signal strength in the currently scanned channel is greater than or equal to the preset quality threshold, scanning will stop.
7、 一种信道扫描的方法, 其特征在于, 所述方法包括: 7. A method of channel scanning, characterized in that the method includes:
第一站点 STA确定至少两个接入点 AP的覆盖范围以及各所述 AP使用 的信道, 其中, 各所述 AP使用的信道的中心频点相异, 且各所述 AP使用 的信道的带宽相同; The first station STA determines the coverage area of at least two access points AP and the channels used by each of the APs, wherein the center frequencies of the channels used by each of the APs are different, and the bandwidth of the channels used by each of the APs same;
所述第一 STA根据当前所处位置以及各所述 AP的覆盖范围,从各所述 AP使用的信道中, 确定第一备选信道, 其中, 所述第一备选信道为第一 AP 所使用的信道, 所述第一 STA处于所述第一 AP的覆盖范围内; The first STA determines a first alternative channel from the channels used by each AP based on its current location and the coverage area of each AP, wherein the first alternative channel is the one used by the first AP. The channel used, the first STA is within the coverage of the first AP;
所述第一 STA以所述第一备选信道作为首次扫描信道,对各所述 AP使 用的信道进行扫描, 在当前扫描的信道的信道状况满足预设条件时, 停止扫 描。 The first STA uses the first candidate channel as the first scanning channel, scans the channels used by each of the APs, and stops scanning when the channel condition of the currently scanned channel meets the preset conditions.
8、 根据权利要求 7所述的方法, 其特征在于, 所述第一备选信道与至 少一个第二备选信道相异, 所述第二备选信道是至少一个第二 STA 的首次 扫描信道, 所述第一 STA与所述第二 STA不在同一时段使用同一信道进行 通信。 8. The method according to claim 7, wherein the first candidate channel is different from at least one second candidate channel, and the second candidate channel is the first scanning channel of at least one second STA. , the first STA and the second STA do not communicate using the same channel during the same time period.
9、 根据权利要求 7或 8所述的方法, 其特征在于, 所述第一 STA根据 当前所处位置以及各所述 AP的覆盖范围, 从各所述 AP使用的信道中, 确 定第一备选信道, 包括: 9. The method according to claim 7 or 8, characterized in that the first STA determines the first backup from the channels used by each of the APs based on its current location and the coverage of each of the APs. Select channels, including:
所述第一 STA根据当前所处位置以及各所述 AP的覆盖范围,确定针对 各所述 AP使用的信道的扫描顺序, 在所述扫描顺序中, 所述第一备选信道 为首次扫描信道; 以及 The first STA determines a scanning order for channels used by each AP based on its current location and the coverage of each AP. In the scanning order, the first candidate channel is the first scan channel. ; as well as
所述第一 STA以所述第一备选信道作为首次扫描信道,对各所述 AP使 用的信道进行扫描, 包括: The first STA uses the first candidate channel as the first scanning channel to scan the channels used by each AP, including:
所述第一 STA根据所述扫描顺序, 对各所述 AP使用的信道进行扫描。 The first STA scans the channels used by each of the APs according to the scanning order.
10、 根据权利要求 7至 9中任一项所述的方法, 其特征在于, 在各所述10. The method according to any one of claims 7 to 9, characterized in that in each of the
AP中, 所述第一 AP是与所述第一 STA之间的距离最小。 Among APs, the first AP has the smallest distance from the first STA.
11、 根据权利要求 7至 10中任一项所述的方法, 其特征在于, 所述在 当前扫描的信道的信道状况满足预设条件时, 停止扫描, 包括: 如果当前扫描的信道中的信号强度大于等于预设的质量门限, 则停止扫 描。 11. The method according to any one of claims 7 to 10, characterized in that, when the channel condition of the currently scanned channel meets a preset condition, stopping scanning includes: if the signal in the currently scanned channel If the intensity is greater than or equal to the preset quality threshold, scanning will stop.
12、 一种信道扫描的装置, 其特征在于, 所述装置包括: 12. A device for channel scanning, characterized in that the device includes:
确定单元, 用于从至少两个信道中, 确定第一目标信道, 其中, 所述第 一目标信道与至少一个第二目标信道的中心频点相异, 所述第二目标信道是 至少一个第二网络设备的首次扫描信道, 所述第一网络设备与所述第二网络 设备不在同一时段使用同一信道进行通信, 所述至少两个信道的带宽相同; 扫描单元, 用于以所述第一目标信道作为首次扫描信道, 对所述至少两 个信道进行扫描,在当前扫描的信道的信道状况满足预设条件时,停止扫描。 Determining unit, configured to determine a first target channel from at least two channels, wherein the center frequency points of the first target channel and at least one second target channel are different, and the second target channel is at least a first target channel. The first scanning channel of two network devices, the first network device and the second network device do not use the same channel to communicate in the same period, and the bandwidths of the at least two channels are the same; a scanning unit, configured to use the first The target channel is used as the first scanning channel, and the at least two channels are scanned. When the channel condition of the currently scanned channel meets the preset condition, the scanning is stopped.
13、 根据权利要求 12所述的装置, 其特征在于, 所述确定单元具体用 于获取第一扫描指示信息, 所述第一扫描指示信息用于指示所述第一信道; 用于根据所述第一扫描指示信息, 确定所述第一信道。 13. The device according to claim 12, wherein the determining unit is specifically configured to obtain first scanning instruction information, and the first scanning instruction information is used to indicate the first channel; The first scanning indication information determines the first channel.
14、 根据权利要求 12所述的装置, 其特征在于, 所述确定单元具体用 于确定针对所述至少两个信道的扫描顺序, 在所述扫描顺序中, 所述第一目 标信道为首次扫描信道; 14. The device according to claim 12, wherein the determining unit is specifically configured to determine a scanning order for the at least two channels, and in the scanning order, the first target channel is scanned for the first time. channel;
用于根据所述扫描顺序, 确定所述第一目标信道; 以及 For determining the first target channel according to the scanning sequence; and
所述扫描单元具体用于根据所述扫描顺序,对所述至少两个信道进行扫 描。 The scanning unit is specifically configured to scan the at least two channels according to the scanning order.
15、 根据权利要求 14所述的装置, 其特征在于, 所述确定单元具体用 于获取第二扫描指示信息, 所述第二扫描指示信息用于指示所述扫描顺序; 用于^^据所述第二扫描指示信息, 确定所述扫描顺序。 15. The device according to claim 14, wherein the determining unit is specifically configured to obtain second scan instruction information, and the second scan instruction information is used to indicate the scan sequence; The second scanning instruction information determines the scanning sequence.
16、 根据权利要求 12至 15中任一项所述的装置, 其特征在于, 当所述 装置与所述第二网络设备之间的距离小于等于预设的距离门限时, 所述第一 目标信道与所述第二目标信道之间相隔至少一个信道。 16. The device according to any one of claims 12 to 15, wherein when the distance between the device and the second network device is less than or equal to a preset distance threshold, the first target The channel is separated from the second target channel by at least one channel.
17、 根据权利要求 1至 5中任一项所述的装置, 其特征在于, 所述扫描 单元具体用于 17. The device according to any one of claims 1 to 5, characterized in that the scanning unit is specifically used to
如果当前扫描的信道中的干扰小于等于预设的干扰门限, 则停止扫描; 或 如果当前扫描的信道中的信号强度大于等于预设的质量门限, 则停止扫 描。 If the interference in the currently scanned channel is less than or equal to the preset interference threshold, stop scanning; or If the signal strength in the currently scanned channel is greater than or equal to the preset quality threshold, scanning will stop.
18、 一种信道扫描的装置, 其特征在于, 所述装置包括: 18. A device for channel scanning, characterized in that the device includes:
第一确定单元,用于确定至少两个接入点 AP的覆盖范围以及各所述 AP 使用的信道, 其中, 各所述 AP使用的信道的中心频点相异, 且各所述 AP 使用的信道的带宽相同; The first determining unit is used to determine the coverage range of at least two access points AP and the channels used by each of the APs, wherein the center frequencies of the channels used by each of the APs are different, and the channels used by each of the APs The bandwidth of the channel is the same;
第二确定单元, 根据当前所处位置以及各所述 AP的覆盖范围, 从各所 述 AP使用的信道中, 确定第一备选信道, 其中, 所述第一备选信道为第一 AP所使用的信道, 所述装置处于所述第一 AP的覆盖范围内; The second determination unit determines a first alternative channel from the channels used by each AP based on the current location and the coverage area of each AP, wherein the first alternative channel is the first alternative channel used by the first AP. The channel used, the device is within the coverage of the first AP;
扫描单元, 用于以所述第一备选信道作为首次扫描信道, 对各所述 AP 使用的信道进行扫描, 在当前扫描的信道的信道状况满足预设条件时, 停止 扫描。 The scanning unit is configured to use the first candidate channel as the first scanning channel, scan the channels used by each of the APs, and stop scanning when the channel condition of the currently scanned channel meets the preset condition.
19、 根据权利要求 18所述的装置, 其特征在于, 所述第一备选信道与 至少一个第二备选信道相异, 所述第二备选信道是至少一个第二 STA 的首 次扫描信道, 所述装置与所述第二 STA 不在同一时段使用同一信道进行通 信。 19. The apparatus according to claim 18, characterized in that, the first candidate channel is different from at least one second candidate channel, and the second candidate channel is the first scanning channel of at least one second STA. , the device and the second STA do not communicate using the same channel during the same period.
20、 根据权利要求 18或 19所述的装置, 其特征在于, 所述第二确定单 元具体用于根据当前所处位置以及各所述 AP的覆盖范围, 确定针对各所述 AP使用的信道的扫描顺序, 在所述扫描顺序中, 所述第一备选信道为首次 扫描信道; 以及 20. The device according to claim 18 or 19, characterized in that the second determining unit is specifically configured to determine the channel used by each AP according to the current location and the coverage area of each AP. Scanning sequence, in the scanning sequence, the first candidate channel is the first scan channel; and
所述扫描单元具体用于根据所述扫描顺序, 对各所述 AP使用的信道进 行扫描。 The scanning unit is specifically configured to scan the channels used by each of the APs according to the scanning order.
21、 根据权利要求 18至 20中任一项所述的装置, 其特征在于, 在各所 述 AP中, 所述第一 AP与所述装置之间的距离最小。 21. The device according to any one of claims 18 to 20, wherein among each of the APs, the distance between the first AP and the device is the smallest.
22、 根据权利要求 18至 21中任一项所述的装置, 其特征在于, 所述扫 描单元具体用于, 如果当前扫描的信道中的信号强度大于等于预设的质量门限, 则停止扫 描。 22. The device according to any one of claims 18 to 21, characterized in that the scanning unit is specifically configured to stop scanning if the signal strength in the currently scanned channel is greater than or equal to a preset quality threshold.
PCT/CN2013/087468 2013-11-20 2013-11-20 Channel scan method and apparatus WO2015074186A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/087468 WO2015074186A1 (en) 2013-11-20 2013-11-20 Channel scan method and apparatus
CN201380076735.6A CN105264828A (en) 2013-11-20 2013-11-20 Channel scan method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/087468 WO2015074186A1 (en) 2013-11-20 2013-11-20 Channel scan method and apparatus

Publications (1)

Publication Number Publication Date
WO2015074186A1 true WO2015074186A1 (en) 2015-05-28

Family

ID=53178786

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/087468 WO2015074186A1 (en) 2013-11-20 2013-11-20 Channel scan method and apparatus

Country Status (2)

Country Link
CN (1) CN105264828A (en)
WO (1) WO2015074186A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021017712A1 (en) * 2019-08-01 2021-02-04 Oppo广东移动通信有限公司 Adjustment method, terminal and computer storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550345B (en) * 2016-10-26 2021-11-26 邱文丰 Wifi signal intelligent scanning system with self-learning and optimization capabilities
CN110324832B (en) * 2018-03-30 2022-09-27 南宁富联富桂精密工业有限公司 Wireless scanning method, network device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1965534A (en) * 2004-04-30 2007-05-16 英特尔公司 Channel scanning in wireless networks
CN102457942A (en) * 2010-10-29 2012-05-16 中兴通讯股份有限公司 Method and system for scanning channel in wireless network
CN102783235A (en) * 2010-07-13 2012-11-14 联发科技(新加坡)私人有限公司 System and method for coordinating multiple wireless communications devices in a wireless communications network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7395064B2 (en) * 2004-07-14 2008-07-01 Intel Corporation Systems and methods of distributed self-configuration for wireless networks
JP5102319B2 (en) * 2008-02-21 2012-12-19 日本電信電話株式会社 Radio base station search method, radio base station search apparatus, and radio base station search program
US8599767B2 (en) * 2008-06-26 2013-12-03 Netgear, Inc. Method and apparatus for scanning multi-mode wireless communication environments
CN101483894B (en) * 2009-01-06 2010-08-11 北京交通大学 Fast switching method for WLAN
US8625441B2 (en) * 2009-10-29 2014-01-07 Fluke Corporation System and method for measuring and displaying presence of wireless local area network devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1965534A (en) * 2004-04-30 2007-05-16 英特尔公司 Channel scanning in wireless networks
CN102783235A (en) * 2010-07-13 2012-11-14 联发科技(新加坡)私人有限公司 System and method for coordinating multiple wireless communications devices in a wireless communications network
CN102457942A (en) * 2010-10-29 2012-05-16 中兴通讯股份有限公司 Method and system for scanning channel in wireless network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021017712A1 (en) * 2019-08-01 2021-02-04 Oppo广东移动通信有限公司 Adjustment method, terminal and computer storage medium

Also Published As

Publication number Publication date
CN105264828A (en) 2016-01-20

Similar Documents

Publication Publication Date Title
US11924898B2 (en) System and method for multilink devices (MLDs)
KR102381712B1 (en) Communication method and communication device
US7343162B2 (en) Wireless communication method, wireless communication apparatus, and wireless communication system
WO2019157961A1 (en) Communication method and apparatus
US11930381B2 (en) Backup link for low latency communication
WO2018188557A1 (en) Method and device for selecting target base station and storage medium
WO2014040506A1 (en) Terminal discovery, discovery processing method and device
US11638226B2 (en) Method and device for processing synchronization signal block information and communication device
US11096151B2 (en) Method and apparatus for managing channel in WLAN system
CN110167198B (en) Method and device for determining protocol data unit session service network element
JP2017515357A (en) Dedicated channel for fast initial link setup in wireless networks
WO2017214767A1 (en) Method, terminal, and base station for use in data transmission
WO2016109921A1 (en) Data transmission method, station, access point and access controller
TW201824930A (en) Method and device for random access
WO2016074741A1 (en) Network node, user device and methods thereof
WO2016015328A1 (en) Information transmission method, radio network control device, and network access point
WO2015074186A1 (en) Channel scan method and apparatus
WO2021062811A1 (en) Data transmission method and related device
US20190158217A1 (en) Csi obtaining method, server, terminal, and ap
WO2015180017A1 (en) Method for transmitting signal in device to device proximity service, base station and user equipment
WO2021026929A1 (en) Communication method and apparatus
CN113676922A (en) Terminal device cooperation method and device
WO2021047479A1 (en) Communication method and apparatus
WO2015074199A1 (en) Method and apparatus for establishing direct link in wireless local area network
CN111682913B (en) Method and device for discovering AP and method and device for sending beacon frame by AP in WLAN

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201380076735.6

Country of ref document: CN

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

Ref document number: 13897992

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: 13897992

Country of ref document: EP

Kind code of ref document: A1