CN106332238A - A wireless local area network channel scanning method, device and mobile terminal - Google Patents
A wireless local area network channel scanning method, device and mobile terminal Download PDFInfo
- Publication number
- CN106332238A CN106332238A CN201610695858.3A CN201610695858A CN106332238A CN 106332238 A CN106332238 A CN 106332238A CN 201610695858 A CN201610695858 A CN 201610695858A CN 106332238 A CN106332238 A CN 106332238A
- Authority
- CN
- China
- Prior art keywords
- frequency band
- channel
- information
- band information
- local area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000000052 comparative effect Effects 0.000 claims 3
- 230000000694 effects Effects 0.000 abstract description 7
- 238000001228 spectrum Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 230000007774 longterm Effects 0.000 description 4
- 238000010295 mobile communication Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000000523 sample Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明属于通信技术领域,尤其涉及一种无线局域网络信道扫描方法、装置及移动终端。The invention belongs to the technical field of communication, and in particular relates to a wireless local area network channel scanning method, device and mobile terminal.
背景技术Background technique
近年来,随着移动通信技术的迅猛发展,终端设备的功能也越来越呈现多样化和复杂化,特别是随着第三代移动通信技术(3G)和第四代移动通信技术(4G)技术的发展,市场对智能终端的需求与日俱增。通常会要求在一个设备中同时支持多种无线接入技术,如:长期演进(LTE,Long Term Evolution)网络和无线局域网络(WLAN,Wireless Local AreaNetworks)等。由于这些接入技术是在相同或相近频段上,如LTE的频谱十分靠近WLAN2.4GHz的频谱部分,特别是B40、B41、B7等,B40位于WLAN频段的下方,B41和B7位于WLAN频段的上方,当LTE在以上频段工作时,与WLAN都不可避免地存在着干扰。In recent years, with the rapid development of mobile communication technology, the functions of terminal equipment have become more and more diversified and complex, especially with the third generation mobile communication technology (3G) and fourth generation mobile communication technology (4G) With the development of technology, the market demand for smart terminals is increasing day by day. It is usually required to support multiple wireless access technologies in one device at the same time, such as: Long Term Evolution (LTE, Long Term Evolution) network and Wireless Local Area Network (WLAN, Wireless Local Area Networks) and so on. Since these access technologies are in the same or similar frequency bands, for example, the LTE spectrum is very close to the WLAN2.4GHz spectrum part, especially B40, B41, B7, etc., B40 is located below the WLAN frequency band, and B41 and B7 are located above the WLAN frequency band , when LTE works in the above frequency bands, interference with WLAN is unavoidable.
当前移动终端扫描无线访问接入点(AP,Wireless Access Point)的方式有主动扫描和被动扫描两种,主动扫描是移动终端(工作站STA)以主动的方式,在每个信道上发出探测请求(Probe Request)帧,请求某个特定无线网络予以回应,因而在扫描时,移动终端会发射请求信号。移动终端在未成功连接AP时(如无AP秘钥),移动终端每隔一段时间便会主动扫描周围可用的AP,并尝试连接。如果此时用户正在使用B7、B40或B41进行LTE语音通话时,则势必会引起邻频干扰,影响到用户正常通话,从而导致通话效果和通话质量较差。Currently, mobile terminals scan wireless access points (APs, Wireless Access Points) in two ways: active scanning and passive scanning. Active scanning means that a mobile terminal (workstation STA) sends a detection request ( Probe Request) frame, requesting a specific wireless network to respond, so when scanning, the mobile terminal will transmit a request signal. When the mobile terminal fails to connect to the AP (for example, there is no AP key), the mobile terminal will actively scan the surrounding available APs every once in a while and try to connect. If the user is using B7, B40 or B41 to make an LTE voice call at this time, it will inevitably cause adjacent channel interference and affect the user's normal call, resulting in poor call effect and call quality.
发明内容Contents of the invention
本发明的目的在于提供一种无线局域网络信道扫描方法、装置及移动终端,旨在解决WLAN主动扫描时对用户通话造成影响,导致通话效果和通话质量差的问题。The purpose of the present invention is to provide a wireless local area network channel scanning method, device and mobile terminal, aiming to solve the problem that WLAN active scanning affects user calls, resulting in poor call effect and call quality.
为解决上述技术问题,本发明实施例提供以下技术方案:In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
第一方面,本发明提供一种无线局域网络信道扫描方法,其中包括:In a first aspect, the present invention provides a wireless local area network channel scanning method, which includes:
当检测到移动终端当前进行预设语音通话业务时,获取第一频段信息,所述第一频段信息为所述预设语音通话业务所使用的频段信息;When detecting that the mobile terminal is currently performing a preset voice call service, acquiring first frequency band information, the first frequency band information is the frequency band information used by the preset voice call service;
获取第二频段信息以及所述第二频段信息相应的信道信息,所述第二频段信息为无线局域网络的工作频段信息;Acquire second frequency band information and channel information corresponding to the second frequency band information, where the second frequency band information is working frequency band information of a wireless local area network;
确定所述第一频段信息与所述第二频段信息之间的频段间距;determining the frequency band spacing between the first frequency band information and the second frequency band information;
若所述频段间距小于预设阈值,则在所述信道信息中确定相应的目标信道,并对所述目标信道进行扫描。If the frequency band spacing is smaller than the preset threshold, a corresponding target channel is determined in the channel information, and the target channel is scanned.
第二方面,本发明提供一种无线局域网络信道扫描装置,其中包括:In a second aspect, the present invention provides a wireless local area network channel scanning device, which includes:
第一获取单元,用于当检测到移动终端当前进行预设语音通话业务时,获取第一频段信息,所述第一频段信息为所述预设语音通话业务所使用的频段信息;The first obtaining unit is configured to obtain first frequency band information when it is detected that the mobile terminal is currently performing a preset voice call service, and the first frequency band information is the frequency band information used by the preset voice call service;
第二获取单元,用于获取第二频段信息以及所述第二频段信息相应的信道信息,所述第二频段信息为无线局域网络的工作频段信息;A second acquiring unit, configured to acquire second frequency band information and channel information corresponding to the second frequency band information, where the second frequency band information is working frequency band information of the wireless local area network;
间距确定单元,用于确定所述第一频段信息与所述第二频段信息之间的频段间距;a spacing determination unit, configured to determine a frequency band spacing between the first frequency band information and the second frequency band information;
信道确定单元,用于若所述频段间距小于预设阈值,则在所述信道信息中确定相应的目标信道;A channel determination unit, configured to determine a corresponding target channel in the channel information if the frequency band spacing is smaller than a preset threshold;
第一扫描单元,用于对所述目标信道进行扫描。The first scanning unit is configured to scan the target channel.
第三方面,本发明提供一种移动终端,其中包括:In a third aspect, the present invention provides a mobile terminal, including:
存储有可执行程序代码的存储器;a memory storing executable program code;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行上述提供的所述无线局域网络信道扫描方法。The processor invokes the executable program code stored in the memory to execute the wireless local area network channel scanning method provided above.
相对于现有技术,本发明实施例,首先在检测到移动终端进行预设语音通话业务时,获取其所使用的频段信息;并且,获取无线局域网络的频段信息以及相应的信道信息;然后,计算语音通话的频段信息与无线局域网络的频段信息之间的频段间距;若频段间距小于预设阈值,则在无线局域网络的信道中确定相应的目标信道并对目标信道进行扫描,来连接无线访问接入点,即通过对语音通话的频段信息与无线局域网络的频段信息之间的频段间距进行分析,来判定两者的干扰程度,从而根据分析结果来确定出扫描的目标信道,解决移动终端无线局域网络主动扫描无线访问接入点时对用户通话造成影响的问题,保证了用户通话效果和通话质量。Compared with the prior art, in the embodiment of the present invention, when it is detected that the mobile terminal is performing a preset voice call service, the frequency band information used by the mobile terminal is obtained; and the frequency band information and the corresponding channel information of the wireless local area network are obtained; and then, Calculate the frequency band spacing between the frequency band information of the voice call and the frequency band information of the wireless local area network; if the frequency band spacing is less than the preset threshold, determine the corresponding target channel in the channel of the wireless local area network and scan the target channel to connect to the wireless network Access to the access point, that is, by analyzing the frequency band spacing between the frequency band information of the voice call and the frequency band information of the wireless local area network, to determine the degree of interference between the two, so as to determine the target channel for scanning according to the analysis results, and solve the mobile phone problem. The problem that the terminal wireless local area network actively scans the wireless access point will affect the user's call, which ensures the user's call effect and call quality.
附图说明Description of drawings
下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其它有益效果显而易见。The technical solutions and other beneficial effects of the present invention will be apparent through the detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.
图1是本发明实施例提供的无线局域网络信道扫描方法的流程示意图;FIG. 1 is a schematic flow diagram of a wireless local area network channel scanning method provided by an embodiment of the present invention;
图2为本发明实施例提供的无线局域网络信道扫描方法的流程示意图;FIG. 2 is a schematic flow chart of a wireless local area network channel scanning method provided by an embodiment of the present invention;
图3为本发明实施例提供的无线接入网络的频段划分情况示意图;FIG. 3 is a schematic diagram of frequency band division of a wireless access network provided by an embodiment of the present invention;
图4为本发明实施例提供的无线局域网络信道扫描装置的结构示意图;4 is a schematic structural diagram of a wireless local area network channel scanning device provided by an embodiment of the present invention;
图5为本发明实施例提供的无线局域网络信道扫描装置的另一结构示意图;FIG. 5 is another schematic structural diagram of a wireless local area network channel scanning device provided by an embodiment of the present invention;
图6为本发明实施例提供的移动终端的结构示意图。FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention.
具体实施方式detailed description
请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Referring to the drawings, wherein like reference numerals represent like components, the principles of the present invention are exemplified when implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the invention, which should not be construed as limiting other specific embodiments of the invention not described in detail herein.
在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present invention will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Accordingly, these steps and operations will several times be referred to as being computer-implemented, which herein refers to operations by a computer processing unit of electronic signals representing data in a structured form. This operation transforms the data or maintains it at a location in the computer's memory system that can reconfigure or otherwise alter the operation of the computer in a manner well known to testers in the art. The data structures maintained by the data are physical locations in the memory that have certain characteristics defined by the data format. However, the principles of the present invention are described in the above words, which are not meant to be a limitation. Those skilled in the art will understand that the various steps and operations described below can also be implemented in hardware.
本发明的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。所熟知的适合用于本发明的运算系统、环境与组态的范例可包括(但不限于)手持电话、个人计算机、服务器、多处理器系统、微电脑为主的系统、主架构型计算机、及分布式运算环境,其中包括了任何的上述系统或装置。The principles of the invention operate with numerous other general purpose or special purpose computing, communication environments or configurations. Examples of well-known computing systems, environments, and configurations suitable for use with the present invention may include, but are not limited to, handheld phones, personal computers, servers, multiprocessor systems, microcomputer-based systems, mainframe computers, and A distributed computing environment, including any of the above systems or devices.
以下将分别进行详细说明。The details will be described respectively below.
在本实施例中,将从无线局域网络信道扫描装置(简称信道扫描装置)的角度进行描述,该无线局域网络信道扫描装置具体可以集成在如平板电脑,手机等移动终端中。In this embodiment, description will be made from the perspective of a wireless local area network channel scanning device (referred to as a channel scanning device), and the wireless local area network channel scanning device may specifically be integrated in a mobile terminal such as a tablet computer or a mobile phone.
一种无线局域网络信道扫描方法,包括:当检测到移动终端当前进行预设语音通话业务时,获取第一频段信息,所述第一频段信息为所述预设语音通话业务所使用的频段信息;获取第二频段信息以及所述第二频段信息相应的信道信息,所述第二频段信息为无线局域网络的工作频段信息;确定所述第一频段信息与所述第二频段信息之间的频段间距;若所述频段间距小于预设阈值,则在所述信道信息中确定相应的目标信道,并对所述目标信道进行扫描。A wireless local area network channel scanning method, comprising: when detecting that a mobile terminal is currently performing a preset voice call service, acquiring first frequency band information, the first frequency band information being the frequency band information used by the preset voice call service ; Obtain second frequency band information and channel information corresponding to the second frequency band information, the second frequency band information is the working frequency band information of the wireless local area network; determine the distance between the first frequency band information and the second frequency band information Frequency band spacing; if the frequency band spacing is less than a preset threshold, determine a corresponding target channel in the channel information, and scan the target channel.
请参阅图1,图1是本发明实施例提供的无线局域网络信道扫描方法的流程示意图。所述方法包括:Please refer to FIG. 1 . FIG. 1 is a schematic flow chart of a method for scanning a wireless local area network channel provided by an embodiment of the present invention. The methods include:
在步骤S101中,当检测到移动终端当前进行预设语音通话业务时,获取第一频段信息,所述第一频段信息为所述预设语音通话业务所使用的频段信息。In step S101, when it is detected that the mobile terminal is currently performing a preset voice call service, first frequency band information is obtained, and the first frequency band information is information about a frequency band used by the preset voice call service.
本发明实施例中,所述预设语音通话业务可具体为长期演进LET语音业务,主要是指人工语音与用户之间或者用户与用户之间等沟通或者交流的业务。In the embodiment of the present invention, the preset voice call service may specifically be the Long Term Evolution LTE voice service, which mainly refers to the communication or communication service between artificial voice and users or between users.
比如,当检测到移动终端当前在进行LET语音业务时,获取该通话所使用的LET频段信息,其中,在通讯领域中,频段指的是电磁波的频率范围,单位为赫兹Hz。For example, when it is detected that the mobile terminal is currently performing an LTE voice service, information about the LTE frequency band used for the call is obtained, wherein, in the communication field, the frequency band refers to the frequency range of electromagnetic waves, and the unit is Hz.
在步骤S102中,获取第二频段信息以及所述第二频段信息相应的信道信息,所述第二频段信息为无线局域网络的工作频段信息。In step S102, second frequency band information and channel information corresponding to the second frequency band information are acquired, where the second frequency band information is working frequency band information of the wireless local area network.
可以理解的是,由于根据当下频谱的划分和使用情况,LTE的频谱十分靠近WLAN2.4GHz的频谱部分,因此当LTE也工作在2.4GHz的频谱部分时,两者都不可避免地存在着干扰。It is understandable that, according to the current spectrum division and use, the LTE spectrum is very close to the WLAN 2.4GHz spectrum, so when LTE also works in the 2.4GHz spectrum, there is inevitably interference between the two.
基于此,本发明实施例中,无线局域网络的工作频段信息(第二频段信息)可以具体为2.4GHz的频谱部分(即2402MHz至2483.5MHz),该工作频段信息相应的信道信息(Channel)包括CH1、CH2、……CH13共13个信道。Based on this, in the embodiment of the present invention, the working frequency band information (second frequency band information) of the wireless local area network may specifically be the spectrum part of 2.4GHz (ie, 2402MHz to 2483.5MHz), and the corresponding channel information (Channel) of the working frequency band information includes CH1, CH2, ... CH13 a total of 13 channels.
容易想到的是,本发明中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序,此处举例不构成对本发明的限定。It is easy to imagine that the terms "first", "second" and the like in the present invention are used to distinguish different objects, rather than to describe a specific order, and the examples here do not constitute a limitation of the present invention.
在步骤S103中,确定所述第一频段信息与所述第二频段信息之间的频段间距。In step S103, the frequency band spacing between the first frequency band information and the second frequency band information is determined.
比如,根据步骤S101获取的第一频段信息以及步骤S102获取的第二频段信息,来计算两者之间的频段间距,如若LTE的频段信息为2300MHz,WLAN的频段信息为2402M Hz,则它们之间的频段间距为102MHz。For example, according to the first frequency band information acquired in step S101 and the second frequency band information acquired in step S102, the frequency band spacing between the two is calculated. For example, if the frequency band information of LTE is 2300MHz and the frequency band information of WLAN is 2402MHz, then their The frequency band spacing between them is 102MHz.
在某些实施方式中,若所述频段间距小于预设阈值,则执行步骤S104。In some implementations, if the frequency band spacing is smaller than a preset threshold, step S104 is performed.
在某些实施方式中,在信道扫描装置确定所述第一频段信息与所述第二频段信息之间的频段间距之后,还可以包括:In some implementations, after the channel scanning device determines the frequency band spacing between the first frequency band information and the second frequency band information, it may further include:
若所述频段间距大于或等于预设阈值,则对所述信道信息中所指示的全部信道进行扫描。If the frequency band spacing is greater than or equal to a preset threshold, all channels indicated in the channel information are scanned.
可以理解的是,当频段间距大于或等于预设阈值时,可认为第一频段信息与第二频段信息相距较远,即预设语音通话业务与无线局域网络之间干扰较小或不存在干扰,因此,可对第二频段信息相应的信道信息所指示的全部信道进行扫描。It can be understood that when the frequency band spacing is greater than or equal to the preset threshold, it can be considered that the first frequency band information is far from the second frequency band information, that is, there is little or no interference between the preset voice call service and the wireless local area network , therefore, all channels indicated by the channel information corresponding to the second frequency band information may be scanned.
在步骤S104中,若所述频段间距小于预设阈值,则在所述信道信息中确定相应的目标信道,并对所述目标信道进行扫描。In step S104, if the frequency band spacing is smaller than a preset threshold, determine a corresponding target channel in the channel information, and scan the target channel.
本发明实施例中,在所述信道信息中确定相应的目标信道的实现方式有很多,比如,可以具体包括如下步骤:In the embodiment of the present invention, there are many ways to determine the corresponding target channel in the channel information. For example, the following steps may be specifically included:
(1)根据所述频段间距,确定相应的预设干扰级别。(1) Determine a corresponding preset interference level according to the frequency band spacing.
(2)基于所述预设干扰级别,确定干扰信道的个数以及相应的干扰信道。(2) Based on the preset interference level, determine the number of interference channels and corresponding interference channels.
(3)在所述信道信息所指示的信道中,排除所述干扰信道,确定需要扫描的目标信道。(3) Among the channels indicated by the channel information, the interference channel is excluded, and the target channel to be scanned is determined.
也就是说,信道扫描装置可预先将干扰级别进行存储,根据频段间距来确定相应的干扰级别,如频段间距越大,干扰越大,对应的干扰级别也越高;进一步的,每一个干扰级别都预先设置有可能对预设语音业务造成干扰的信道的个数以及具体的干扰信道。最后,在全部信道中,排除干扰信道,将剩下的信道确定为目标信道。That is to say, the channel scanning device can store the interference level in advance, and determine the corresponding interference level according to the frequency band spacing. For example, the larger the frequency band spacing, the greater the interference, and the higher the corresponding interference level; further, each interference level The number of channels that may cause interference to the preset voice service and the specific interference channel are preset. Finally, among all the channels, the interference channels are excluded, and the remaining channels are determined as the target channels.
在某些实施方式中,所述根据所述频段间距,确定相应的预设干扰级别可以具体包括:In some implementation manners, the determining the corresponding preset interference level according to the frequency band spacing may specifically include:
(11)获取多个预设子阈值,所述预设子阈值小于所述预设阈值。(11) Obtaining multiple preset sub-thresholds, where the preset sub-thresholds are smaller than the preset threshold.
(12)将所述频段间距与所述多个预设子阈值进行比较,得到比较结果。(12) Comparing the frequency band spacing with the plurality of preset sub-thresholds to obtain a comparison result.
(13)根据所述比较结果确定相应的预设干扰级别。(13) Determine a corresponding preset interference level according to the comparison result.
比如,在该实施方式中,在确定出频段间距小于预设阈值后,再通过多个预设子阈值划分几个区间,将该频段间距与多个预设子阈值进行比较,则可以确定出频段间距属于哪个区间,从而可以确定该区间相应的干扰级别。For example, in this embodiment, after it is determined that the frequency band spacing is smaller than the preset threshold, several intervals are divided by multiple preset sub-thresholds, and the frequency band spacing is compared with multiple preset sub-thresholds, then it can be determined that Which section the frequency band spacing belongs to, so that the corresponding interference level of the section can be determined.
在某些实施方式中,当信道扫描装置检测到移动终端当前未进行预设语音通话业务时,可以具体包括:In some embodiments, when the channel scanning device detects that the mobile terminal is not currently performing a preset voice call service, it may specifically include:
(a)当检测到移动终端当前未进行预设语音通话业务时,获取无线局域网络的工作频段信息相应的信道信息。(a) When it is detected that the mobile terminal is not currently performing a preset voice call service, acquiring channel information corresponding to the working frequency band information of the wireless local area network.
(b)对所述信道信息中所指示的全部信道进行扫描。(b) Scanning all channels indicated in the channel information.
可以理解的是,当移动终端当前未进行预设语音通话业务时,可认为预设语音通话业务与无线局域网络之间不存在干扰,因此,可对无线局域网络的信道信息所指示的全部信道进行扫描。It can be understood that when the mobile terminal is not currently performing a preset voice call service, it can be considered that there is no interference between the preset voice call service and the wireless local area network, therefore, all channels indicated by the channel information of the wireless local area network can be to scan.
由上述可知,本实施例提供的无线局域网络信道扫描方法,首先在检测到移动终端进行预设语音通话业务时,获取其所使用的频段信息;并且,获取无线局域网络的频段信息以及相应的信道信息;然后,计算语音通话的频段信息与无线局域网络的频段信息之间的频段间距;若频段间距小于预设阈值,则在无线局域网络的信道中确定相应的目标信道并对目标信道进行扫描,来连接无线访问接入点,即通过对语音通话的频段信息与无线局域网络的频段信息之间的频段间距进行分析,来判定两者的干扰程度,从而根据分析结果来确定出扫描的目标信道,解决移动终端无线局域网络主动扫描无线访问接入点时对用户通话造成影响的问题,保证了用户通话效果和通话质量。As can be seen from the above, the wireless local area network channel scanning method provided by this embodiment firstly obtains the frequency band information used by the mobile terminal when it is detected that the mobile terminal is performing a preset voice call service; and obtains the frequency band information of the wireless local area network and the corresponding channel information; then, calculate the frequency band spacing between the frequency band information of the voice call and the frequency band information of the wireless local area network; if the frequency band spacing is less than the preset threshold, then determine the corresponding target channel in the channel of the wireless local area network and carry out the target channel Scanning to connect to the wireless access point, that is, by analyzing the frequency band spacing between the frequency band information of the voice call and the frequency band information of the wireless local area network, to determine the degree of interference between the two, and then determine the scanning based on the analysis results The target channel solves the problem that the wireless local area network of the mobile terminal actively scans the wireless access point, which affects the user's call, and ensures the effect and quality of the user's call.
根据上述实施例所描述的方法,以下将举例作进一步详细说明。According to the methods described in the above embodiments, examples will be given below for further detailed description.
首先,由于根据现有频谱的划分和使用情况,LTE的频谱十分靠近WLAN2.4GHz的频谱部分,特别是频带B40、B41、B7等,B40位于WLAN频段的下方,B41和B7位于WLAN频段的上方,因此当LTE在以上频段工作时,与WLAN都不可避免地存在着干扰,而根据当前的工艺水平,共存滤波器并不能保证将邻频段的干扰消除。First of all, due to the division and use of the existing spectrum, the LTE spectrum is very close to the WLAN2.4GHz spectrum part, especially the frequency bands B40, B41, B7, etc., B40 is located below the WLAN frequency band, and B41 and B7 are located above the WLAN frequency band , so when LTE works in the above frequency bands, there will inevitably be interference with WLAN, and according to the current technology level, the coexistence filter cannot guarantee to eliminate the interference of adjacent frequency bands.
比如,移动终端以主动扫描的方式扫描无线访问接入点AP时,会在每个信道上发出探测请求帧,请求某个特定无线网络予以回应,因而在扫描时,移动终端会发射请求信号。移动终端在未成功连接AP时(如无AP秘钥),移动终端每隔一段时间便会主动扫描周围可用的AP,并尝试连接。但是如果此时用户正在使用B7、B40或B41进行LTE语音通话时,会引起邻频干扰,影响到用户正常通话。For example, when a mobile terminal scans a wireless access point AP in an active scanning manner, it will send a probe request frame on each channel to request a specific wireless network to respond, so the mobile terminal will transmit a request signal during scanning. When the mobile terminal fails to connect to the AP (for example, there is no AP key), the mobile terminal will actively scan the surrounding available APs every once in a while and try to connect. However, if the user is using B7, B40 or B41 to make an LTE voice call at this time, it will cause adjacent channel interference and affect the user's normal call.
基于此,本发明实施例提供一种新的扫描机制对无线局域网络信道进行扫描,以避免LTE与WLAN的干扰。请参阅图2,图2为本发明实施例提供的无线局域网络信道扫描方法的另一流程示意图。所述方法包括:Based on this, embodiments of the present invention provide a new scanning mechanism to scan wireless local area network channels to avoid interference between LTE and WLAN. Please refer to FIG. 2 . FIG. 2 is another schematic flowchart of a channel scanning method for a wireless local area network provided by an embodiment of the present invention. The methods include:
在步骤S201中,检测移动终端当前是否进行LTE语音业务。In step S201, it is detected whether the mobile terminal is currently performing an LTE voice service.
比如,可以每隔一预设时间间隔(如30秒、1分钟等)去检测移动终端当前是否进行LTE语音业务,当检测到移动终端当前进行LTE语音业务时,直接执行步骤S202;当检测到移动终端当前未进行LTE语音业务时,直接执行步骤S209。For example, it is possible to detect whether the mobile terminal is currently performing an LTE voice service every preset time interval (such as 30 seconds, 1 minute, etc.), and when it is detected that the mobile terminal is currently performing an LTE voice service, step S202 is directly performed; When the mobile terminal is not currently performing the LTE voice service, step S209 is directly executed.
在步骤S202中,确定LTE语音业务所使用的LET频段信息。In step S202, the LTE frequency band information used by the LTE voice service is determined.
在步骤S203中,获取WLAN的频段信息以及相应的信道信息。In step S203, frequency band information and corresponding channel information of the WLAN are obtained.
可以理解的是,由于根据当下频谱的划分和使用情况,LTE的频谱十分靠近WLAN2.4GHz的频谱部分,因此当LTE也工作在2.4GHz的频谱部分时,两者都不可避免地存在着干扰。It is understandable that, according to the current spectrum division and use, the LTE spectrum is very close to the WLAN 2.4GHz spectrum, so when LTE also works in the 2.4GHz spectrum, there is inevitably interference between the two.
因此,在检测到移动终端当前进行LTE语音业务时,分别获取当前LET频段信息以及WLAN的工作频段信息,以便根据LET频段信息以及WLAN的工作频段信息,在移动终端主动扫描周围可用的AP时避免干扰。Therefore, when it is detected that the mobile terminal is currently performing LTE voice services, the current LTE frequency band information and WLAN working frequency band information are respectively obtained, so as to avoid interference.
请一并参考图3,图3为本发明实施例提供的无线接入网络的频段划分情况示意图,其中,本发明实施例中,WLAN的工作频段信息可以具体为2.4GHz的频谱部分(即2402MHz至2483.5MHz),该工作频段信息相应的信道信息(Channel)包括CH1、CH2、……CH13共13个信道。Please refer to FIG. 3 together. FIG. 3 is a schematic diagram of the frequency band division of the wireless access network provided by the embodiment of the present invention. to 2483.5MHz), the channel information (Channel) corresponding to the working frequency band information includes CH1, CH2, ... CH13, a total of 13 channels.
如图3,与LTE较为相近的频谱分别是频带B40、B41、B7等,B40位于WLAN频段的下方,B41和B7位于WLAN频段的上方,其中,B40频段信息主要包括2300-2400MHz,B41频段信息主要包括2496-2690MHz,B7频段信息为2600MHz。As shown in Figure 3, the frequency bands that are relatively similar to LTE are frequency bands B40, B41, B7, etc. B40 is located below the WLAN frequency band, and B41 and B7 are located above the WLAN frequency band. Among them, the information of the B40 frequency band mainly includes 2300-2400MHz, and the information of the B41 frequency band It mainly includes 2496-2690MHz, and the B7 frequency band information is 2600MHz.
在步骤S204中,确定LET频段信息与WLAN的频段信息之间的频段间距。In step S204, the frequency band spacing between the LET frequency band information and the WLAN frequency band information is determined.
比如,根据步骤S202获取的LET频段信息以及步骤S203获取的WLAN的工作频段信息,来计算两者之间的频段间距,如若LTE的频段信息为2300MHz,WLAN的频段信息为2402MHz,则它们之间的频段间距为102MHz。For example, according to the LET frequency band information obtained in step S202 and the WLAN working frequency band information obtained in step S203, the frequency band spacing between the two is calculated. If the frequency band information of LTE is 2300MHz and the frequency band information of WLAN is 2402MHz, then the The frequency band spacing is 102MHz.
在步骤S205中,判断所述频段间距是否小于预设阈值。In step S205, it is judged whether the frequency band spacing is smaller than a preset threshold.
若所述频段间距小于预设阈值,则直接执行步骤S206;若所述频段间距大于或等于预设阈值,则直接执行步骤S209。If the frequency band spacing is smaller than the preset threshold, step S206 is directly performed; if the frequency band spacing is greater than or equal to the preset threshold, step S209 is directly performed.
可以理解的是,所述预设阈值可以根据具体场景来确定,若场景要求较为精确,则该预设阈值可以设置得相对较小,若场景要求不高,则该预设阈值可以设置得相对较大,此处对其具体取值不作限定。It can be understood that the preset threshold can be determined according to the specific scene, if the scene requires more precise, then the preset threshold can be set relatively small, if the scene requirements are not high, then the preset threshold can be set relatively is relatively large, and its specific value is not limited here.
在步骤S206中,获取多个预设子阈值,将所述频段间距与所述多个预设子阈值进行比较,得到比较结果。In step S206, multiple preset sub-thresholds are obtained, and the frequency band spacing is compared with the multiple preset sub-thresholds to obtain a comparison result.
在步骤S207中,根据所述比较结果确定相应的预设干扰级别。In step S207, a corresponding preset interference level is determined according to the comparison result.
在步骤S208中,基于所述预设干扰级别,确定需要扫描的目标信道并扫描。In step S208, based on the preset interference level, the target channel to be scanned is determined and scanned.
在步骤S209中,对WLAN的频段信息中所指示的全部信道进行扫描。In step S209, all channels indicated in the frequency band information of the WLAN are scanned.
可具体的,比如,当LTE处于语音通话时,移动终端获取当前所使用的LTE频段信息,若LTE所使用的频段与WLAN 2.4GHz频段范围的间距大于或等于预设阈值,则WLAN在全信道(CH1、CH2、……CH13)进行扫描。Specifically, for example, when the LTE is in a voice call, the mobile terminal obtains information about the currently used LTE frequency band, and if the distance between the frequency band used by LTE and the 2.4GHz frequency range of the WLAN is greater than or equal to the preset threshold, the WLAN is in full channel (CH1, CH2, ... CH13) to scan.
又比如,若LTE所使用的频段信息与WLAN 2.4GHz频段范围的间距小于预设阈值,则WLAN采用部分信道扫描的方式。如LTE使用了B41中的低信道,为避免干扰,可以设置WLAN的CH13、CH12、CH11等就可以排除,将其确定为干扰信道。For another example, if the distance between the frequency band information used by the LTE and the 2.4 GHz frequency band range of the WLAN is smaller than a preset threshold, the WLAN adopts a partial channel scanning manner. If LTE uses the low channel in B41, in order to avoid interference, you can set CH13, CH12, CH11, etc. of WLAN to exclude it, and determine it as an interference channel.
需说明的是,具体干扰信道的数量可以根据互扰的程度来定,因此在确定间距小于预设阈值时,还需要设定多个子阈值来区分多个级别,以此来区分受干扰的程度。所述预设阈值可以作为阈值1,以此界定需要全信道扫描还是部分信道扫描,多个子阈值分别可以设置为阈值2、阈值3……,其中,阈值1>阈值2>阈值3……。It should be noted that the number of specific interfering channels can be determined according to the degree of mutual interference. Therefore, when the distance is determined to be smaller than the preset threshold, multiple sub-thresholds need to be set to distinguish multiple levels, so as to distinguish the degree of interference . The preset threshold can be used as threshold 1 to define whether full channel scanning or partial channel scanning is required, and multiple sub-thresholds can be set as threshold 2, threshold 3..., wherein threshold 1>threshold 2>threshold 3....
也就是说,根据互扰判定WLAN干扰信道,并排除干扰信道,对其他信道进行扫描,以解决移动终端WLAN主动扫描周围可用的AP时对用户通话的影响,避免干扰,提升用户体验。That is to say, the WLAN interference channel is determined according to the mutual interference, and the interference channel is excluded, and other channels are scanned to solve the impact on the user call when the mobile terminal WLAN actively scans the surrounding available APs, avoid interference, and improve user experience.
另外,当检测到移动终端当前未进行LET语音业务时,可认为预设语音通话业务与无线局域网络之间不存在干扰,因此,可对WLAN全信道进行扫描。In addition, when it is detected that the mobile terminal is not currently performing the LTE voice service, it can be considered that there is no interference between the preset voice call service and the wireless local area network, and therefore, all channels of the WLAN can be scanned.
由上述可知,本实施例提供的无线局域网络信道扫描方法,首先在检测到移动终端进行预设语音通话业务时,获取其所使用的频段信息;并且,获取无线局域网络的频段信息以及相应的信道信息;然后,计算语音通话的频段信息与无线局域网络的频段信息之间的频段间距;若频段间距小于预设阈值,则在无线局域网络的信道中确定相应的目标信道并对目标信道进行扫描,来连接无线访问接入点,即通过对语音通话的频段信息与无线局域网络的频段信息之间的频段间距进行分析,来判定两者的干扰程度,从而根据分析结果来确定出扫描的目标信道,解决移动终端无线局域网络主动扫描无线访问接入点时对用户通话造成影响的问题,保证了用户通话效果和通话质量。即,根据互扰判定WLAN干扰信道,并排除干扰信道,对其他信道进行扫描,以解决移动终端WLAN主动扫描周围可用的AP时对用户通话的影响,避免干扰,提升用户体验。As can be seen from the above, the wireless local area network channel scanning method provided by this embodiment firstly obtains the frequency band information used by the mobile terminal when it is detected that the mobile terminal is performing a preset voice call service; and obtains the frequency band information of the wireless local area network and the corresponding channel information; then, calculate the frequency band spacing between the frequency band information of the voice call and the frequency band information of the wireless local area network; if the frequency band spacing is less than the preset threshold, then determine the corresponding target channel in the channel of the wireless local area network and carry out the target channel Scanning to connect to the wireless access point, that is, by analyzing the frequency band spacing between the frequency band information of the voice call and the frequency band information of the wireless local area network, to determine the degree of interference between the two, and then determine the scanning based on the analysis results The target channel solves the problem that the wireless local area network of the mobile terminal actively scans the wireless access point, which affects the user's call, and ensures the effect and quality of the user's call. That is, determine the WLAN interference channel based on mutual interference, exclude the interference channel, and scan other channels to solve the impact on user calls when the mobile terminal WLAN actively scans the surrounding available APs, avoid interference, and improve user experience.
为便于更好的实施本发明实施例提供的无线局域网络信道扫描方法,本发明实施例还提供一种基于上述无线局域网络信道扫描方法的装置。其中名词的含义与上述无线局域网络信道扫描的方法中相同,具体实现细节可以参考方法实施例中的说明。In order to better implement the wireless local area network channel scanning method provided by the embodiment of the present invention, the embodiment of the present invention further provides a device based on the above wireless local area network channel scanning method. The meanings of the nouns are the same as those in the above method for wireless local area network channel scanning, and for specific implementation details, please refer to the description in the method embodiments.
请参阅图4,图4为本发明实施例提供的无线局域网络信道扫描装置的结构示意图,所述装置可包括第一获取单元301、第二获取单元302、间距确定单元303、信道确定单元304以及第一扫描单元305。Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a wireless local area network channel scanning device provided by an embodiment of the present invention. The device may include a first acquisition unit 301, a second acquisition unit 302, a distance determination unit 303, and a channel determination unit 304 and a first scanning unit 305 .
其中所述第一获取单元301,用于当检测到移动终端当前进行预设语音通话业务时,获取第一频段信息,所述第一频段信息为所述预设语音通话业务所使用的频段信息。Wherein the first acquiring unit 301 is configured to acquire first frequency band information when it is detected that the mobile terminal is currently performing a preset voice call service, and the first frequency band information is the frequency band information used by the preset voice call service .
本发明实施例中,所述预设语音通话业务可具体为长期演进LET语音业务,主要是指人工语音与用户之间或者用户与用户之间等沟通或者交流的业务。In the embodiment of the present invention, the preset voice call service may specifically be the Long Term Evolution LTE voice service, which mainly refers to the communication or communication service between artificial voice and users or between users.
比如,当检测到移动终端当前在进行LET语音业务时,获取该通话所使用的LET频段信息,其中,在通讯领域中,频段指的是电磁波的频率范围,单位为赫兹Hz。For example, when it is detected that the mobile terminal is currently performing an LTE voice service, information about the LTE frequency band used for the call is obtained, wherein, in the communication field, the frequency band refers to the frequency range of electromagnetic waves, and the unit is Hz.
第二获取单元302,用于获取第二频段信息以及所述第二频段信息相应的信道信息,所述第二频段信息为无线局域网络的工作频段信息。The second acquiring unit 302 is configured to acquire second frequency band information and channel information corresponding to the second frequency band information, where the second frequency band information is working frequency band information of the wireless local area network.
可以理解的是,由于根据当下频谱的划分和使用情况,LTE的频谱十分靠近WLAN2.4GHz的频谱部分,因此当LTE也工作在2.4GHz的频谱部分时,两者都不可避免地存在着干扰。It is understandable that, according to the current spectrum division and use, the LTE spectrum is very close to the WLAN 2.4GHz spectrum, so when LTE also works in the 2.4GHz spectrum, there is inevitably interference between the two.
基于此,本发明实施例中,无线局域网络的工作频段信息(第二频段信息)可以具体为2.4GHz的频谱部分(即2402MHz至2483.5MHz),该工作频段信息相应的信道信息(Channel)包括CH1、CH2、……CH13共13个信道。Based on this, in the embodiment of the present invention, the working frequency band information (second frequency band information) of the wireless local area network may specifically be the spectrum part of 2.4GHz (ie, 2402MHz to 2483.5MHz), and the corresponding channel information (Channel) of the working frequency band information includes CH1, CH2, ... CH13 a total of 13 channels.
容易想到的是,本发明中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序,此处举例不构成对本发明的限定。It is easy to imagine that the terms "first", "second" and the like in the present invention are used to distinguish different objects, rather than to describe a specific order, and the examples here do not constitute a limitation of the present invention.
间距确定单元303,用于确定所述第一频段信息与所述第二频段信息之间的频段间距。A spacing determination unit 303, configured to determine a frequency band spacing between the first frequency band information and the second frequency band information.
比如,根据步骤S101获取的第一频段信息以及步骤S102获取的第二频段信息,来计算两者之间的频段间距,如若LTE的频段信息为2300MHz,WLAN的频段信息为2402M Hz,则它们之间的频段间距为102M Hz。For example, according to the first frequency band information acquired in step S101 and the second frequency band information acquired in step S102, the frequency band spacing between the two is calculated. For example, if the frequency band information of LTE is 2300MHz and the frequency band information of WLAN is 2402MHz, then their The frequency band spacing between them is 102M Hz.
信道确定单元304,用于若所述频段间距小于预设阈值,则在所述信道信息中确定相应的目标信道;第一扫描单元305,用于对所述目标信道进行扫描。The channel determining unit 304 is configured to determine a corresponding target channel in the channel information if the frequency interval is smaller than a preset threshold; the first scanning unit 305 is configured to scan the target channel.
请一并参阅图5,图5为本发明实施例提供的无线局域网络信道扫描装置的另一结构示意图,其中所述装置还可以包括:Please refer to FIG. 5 together. FIG. 5 is another structural schematic diagram of a wireless local area network channel scanning device provided by an embodiment of the present invention, wherein the device may also include:
第二扫描单元306,用于若所述频段间距大于或等于预设阈值,则对所述信道信息中所指示的全部信道进行扫描。The second scanning unit 306 is configured to scan all channels indicated in the channel information if the frequency band spacing is greater than or equal to a preset threshold.
可以理解的是,当频段间距大于或等于预设阈值时,可认为第一频段信息与第二频段信息相距较远,即预设语音通话业务与无线局域网络之间干扰较小或不存在干扰,因此,可对第二频段信息相应的信道信息所指示的全部信道进行扫描。It can be understood that when the frequency band spacing is greater than or equal to the preset threshold, it can be considered that the first frequency band information is far from the second frequency band information, that is, there is little or no interference between the preset voice call service and the wireless local area network , therefore, all channels indicated by the channel information corresponding to the second frequency band information may be scanned.
如图5所示,所述信道确定单元304可以具体包括:As shown in FIG. 5, the channel determining unit 304 may specifically include:
(1)级别确定子单元3041,用于根据所述频段间距,确定相应的预设干扰级别。(1) The level determination subunit 3041 is configured to determine a corresponding preset interference level according to the frequency band spacing.
(2)干扰信道确定子单元3042,用于基于所述预设干扰级别,确定干扰信道的个数以及相应的干扰信道。(2) An interference channel determining subunit 3042, configured to determine the number of interference channels and corresponding interference channels based on the preset interference level.
(3)目标信道确定子单元3043,用于在所述信道信息所指示的信道中,排除所述干扰信道,确定需要扫描的目标信道。(3) The target channel determination subunit 3043 is configured to exclude the interference channel among the channels indicated by the channel information, and determine the target channel to be scanned.
也就是说,信道扫描装置可预先将干扰级别进行存储,根据频段间距来确定相应的干扰级别,如频段间距越大,干扰越大,对应的干扰级别也越高;进一步的,每一个干扰级别都预先设置有可能对预设语音业务造成干扰的信道的个数以及具体的干扰信道。最后,在全部信道中,排除干扰信道,将剩下的信道确定为目标信道。That is to say, the channel scanning device can store the interference level in advance, and determine the corresponding interference level according to the frequency band spacing. For example, the larger the frequency band spacing, the greater the interference, and the higher the corresponding interference level; further, each interference level The number of channels that may cause interference to the preset voice service and the specific interference channel are preset. Finally, among all the channels, the interference channels are excluded, and the remaining channels are determined as target channels.
在某些实施方式中,其中所述级别确定子单元3041具体用于:获取多个预设子阈值,所述预设子阈值小于所述预设阈值;将所述频段间距与所述多个预设子阈值进行比较,得到比较结果;根据所述比较结果确定相应的预设干扰级别。In some implementations, the level determining subunit 3041 is specifically configured to: obtain a plurality of preset sub-thresholds, the preset sub-thresholds are smaller than the preset threshold; The preset sub-thresholds are compared to obtain a comparison result; and a corresponding preset interference level is determined according to the comparison result.
比如,在该实施方式中,在确定出频段间距小于预设阈值后,再通过多个预设子阈值划分几个区间,将该频段间距与多个预设子阈值进行比较,则可以确定出频段间距属于哪个区间,从而可以确定该区间相应的干扰级别。For example, in this embodiment, after it is determined that the frequency band spacing is smaller than the preset threshold, several intervals are divided by multiple preset sub-thresholds, and the frequency band spacing is compared with multiple preset sub-thresholds, then it can be determined that Which section the frequency band spacing belongs to, so that the corresponding interference level of the section can be determined.
如图5所示,所述装置还可以包括:第三扫描单元307,用于当检测到移动终端当前未进行预设语音通话业务时,获取无线局域网络的工作频段信息相应的信道信息,对所述信道信息中所指示的全部信道进行扫描。As shown in FIG. 5, the device may further include: a third scanning unit 307, configured to obtain channel information corresponding to the working frequency band information of the wireless local area network when it is detected that the mobile terminal is not currently performing a preset voice call service, and All channels indicated in the channel information are scanned.
可以理解的是,当移动终端当前未进行预设语音通话业务时,可认为预设语音通话业务与无线局域网络之间不存在干扰,因此,可对无线局域网络的信道信息所指示的全部信道进行扫描。It can be understood that when the mobile terminal is not currently performing a preset voice call service, it can be considered that there is no interference between the preset voice call service and the wireless local area network, therefore, all channels indicated by the channel information of the wireless local area network can be to scan.
具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, each of the above units may be implemented as an independent entity, or may be combined arbitrarily as the same or several entities. The specific implementation of each of the above units may refer to the previous method embodiments, and will not be repeated here.
该无线局域网络信道扫描装置具体可以集成在如平板电脑,手机等移动终端中。Specifically, the wireless local area network channel scanning device can be integrated into mobile terminals such as tablet computers and mobile phones.
由上述可知,本实施例提供的无线局域网络信道扫描装置,首先在检测到移动终端进行预设语音通话业务时,获取其所使用的频段信息;并且,获取无线局域网络的频段信息以及相应的信道信息;然后,计算语音通话的频段信息与无线局域网络的频段信息之间的频段间距;若频段间距小于预设阈值,则在无线局域网络的信道中确定相应的目标信道并对目标信道进行扫描,来连接无线访问接入点,即通过对语音通话的频段信息与无线局域网络的频段信息之间的频段间距进行分析,来判定两者的干扰程度,从而根据分析结果来确定出扫描的目标信道,解决移动终端无线局域网络主动扫描无线访问接入点时对用户通话造成影响的问题,保证了用户通话效果和通话质量。It can be seen from the above that the wireless local area network channel scanning device provided by this embodiment firstly obtains the frequency band information used by the mobile terminal when it detects that the mobile terminal is performing a preset voice call service; and obtains the frequency band information of the wireless local area network and the corresponding channel information; then, calculate the frequency band spacing between the frequency band information of the voice call and the frequency band information of the wireless local area network; if the frequency band spacing is less than the preset threshold, then determine the corresponding target channel in the channel of the wireless local area network and carry out the target channel Scanning to connect to the wireless access point, that is, by analyzing the frequency band spacing between the frequency band information of the voice call and the frequency band information of the wireless local area network, to determine the degree of interference between the two, and then determine the scanning based on the analysis results The target channel solves the problem that the wireless local area network of the mobile terminal actively scans the wireless access point, which affects the user's call, and ensures the effect and quality of the user's call.
请参阅图6,图6为本发明实施例提供的移动终端结构示意图。本实施例中所描述的移动终端,包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如中央处理器(CPU,Central Processing Unit);和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。Please refer to FIG. 6, which is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention. The mobile terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a central processing unit (CPU, Central Processing Unit); and memory 4000, the above-mentioned input device 1000 , the output device 2000 , the processor 3000 and the memory 4000 are connected through a bus 5000 .
其中,上述输入设备1000具体可为摄像头、触控面板、物理按键或者鼠标等等。Wherein, the above-mentioned input device 1000 may specifically be a camera, a touch panel, a physical button or a mouse, and the like.
上述输出设备2000具体可为显示屏。The aforementioned output device 2000 may specifically be a display screen.
上述存储器4000可以是高速随机存取记忆体(RAM,Random Access Memory)存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:The above-mentioned memory 4000 may be a high-speed random access memory (RAM, Random Access Memory) memory, or a non-volatile memory (non-volatile memory), such as a disk memory. The above-mentioned memory 4000 is used to store a set of program codes, and the above-mentioned input device 1000, output device 2000 and processor 3000 are used to call the program codes stored in the memory 4000, and perform the following operations:
当检测到移动终端当前进行预设语音通话业务时,获取第一频段信息,所述第一频段信息为所述预设语音通话业务所使用的频段信息;获取第二频段信息以及所述第二频段信息相应的信道信息,所述第二频段信息为无线局域网络的工作频段信息;确定所述第一频段信息与所述第二频段信息之间的频段间距;若所述频段间距小于预设阈值,则在所述信道信息中确定相应的目标信道,并对所述目标信道进行扫描。When it is detected that the mobile terminal is currently performing a preset voice call service, the first frequency band information is obtained, and the first frequency band information is the frequency band information used by the preset voice call service; the second frequency band information and the second frequency band information are obtained. Channel information corresponding to the frequency band information, the second frequency band information is the working frequency band information of the wireless local area network; determine the frequency band spacing between the first frequency band information and the second frequency band information; if the frequency band spacing is less than the preset threshold, then determine the corresponding target channel in the channel information, and scan the target channel.
在某些实施方式中,通过处理器3000还可以执行代码,若所述频段间距大于或等于预设阈值,则对所述信道信息中所指示的全部信道进行扫描。In some implementation manners, the processor 3000 may also execute a code, and if the frequency band spacing is greater than or equal to a preset threshold, scan all channels indicated in the channel information.
在某些实施方式中,通过处理器3000还可以执行代码,根据所述频段间距,确定相应的预设干扰级别;基于所述预设干扰级别,确定干扰信道的个数以及相应的干扰信道;在所述信道信息所指示的信道中,排除所述干扰信道,确定需要扫描的目标信道。In some implementations, the processor 3000 can also execute codes to determine the corresponding preset interference level according to the frequency band spacing; determine the number of interference channels and the corresponding interference channels based on the preset interference level; Among the channels indicated by the channel information, the interference channel is excluded, and a target channel to be scanned is determined.
在某些实施方式中,通过处理器3000还可以执行代码,获取多个预设子阈值,所述预设子阈值小于所述预设阈值;将所述频段间距与所述多个预设子阈值进行比较,得到比较结果;根据所述比较结果确定相应的预设干扰级别。In some implementations, the processor 3000 can also execute codes to obtain a plurality of preset sub-thresholds, the preset sub-thresholds are smaller than the preset threshold; The threshold is compared to obtain a comparison result; and a corresponding preset interference level is determined according to the comparison result.
在某些实施方式中,通过处理器3000还可以执行代码,当检测到移动终端当前未进行预设语音通话业务时,获取无线局域网络的工作频段信息相应的信道信息;对所述信道信息中所指示的全部信道进行扫描。In some implementations, the processor 3000 can also execute codes to obtain channel information corresponding to the working frequency band information of the wireless local area network when it is detected that the mobile terminal is not currently performing a preset voice call service; All indicated channels are scanned.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对无线局域网络信道扫描方法的详细描述,此处不再赘述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases. For the part not described in detail in a certain embodiment, please refer to the detailed description of the channel scanning method of the wireless local area network above, and will not be repeated here.
本发明实施例提供的所述无线局域网络信道扫描装置,譬如为计算机、平板电脑、具有触摸功能的手机等等,所述无线局域网络信道扫描装置与上文实施例中的无线局域网络信道扫描方法属于同一构思,在所述无线局域网络信道扫描装置上可以运行所述无线局域网络信道扫描方法实施例中提供的任一方法,其具体实现过程详见所述无线局域网络信道扫描方法实施例,此处不再赘述。The wireless local area network channel scanning device provided in the embodiment of the present invention is, for example, a computer, a tablet computer, a mobile phone with a touch function, etc., and the wireless local area network channel scanning device is the same as the wireless local area network channel scanning device in the above embodiment The method belongs to the same concept, and any method provided in the embodiment of the wireless local area network channel scanning method can be run on the wireless local area network channel scanning device. For the specific implementation process, see the embodiment of the wireless local area network channel scanning method , which will not be repeated here.
需要说明的是,对本发明所述无线局域网络信道扫描方法而言,本领域普通测试人员可以理解实现本发明实施例所述无线局域网络信道扫描方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在移动终端的存储器中,并被该移动终端内的至少一个处理器执行,在执行过程中可包括如所述无线局域网络信道扫描方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,RandomAccess Memory)等。It should be noted that, for the wireless local area network channel scanning method described in the present invention, ordinary testers in the field can understand that all or part of the process of realizing the wireless local area network channel scanning method described in the embodiment of the present invention can be implemented through a computer program. Control related hardware to complete, the computer program can be stored in a computer-readable storage medium, such as stored in the memory of the mobile terminal, and executed by at least one processor in the mobile terminal, during the execution process can be It includes the flow of the embodiment of the wireless local area network channel scanning method. Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory) and the like.
对本发明实施例的所述无线局域网络信道扫描装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the wireless local area network channel scanning device in the embodiment of the present invention, its functional modules can be integrated into one processing chip, or each module can exist separately physically, or two or more modules can be integrated into one module middle. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as read-only memory, magnetic disk or optical disk, etc. .
以上对本发明实施例所提供的一种无线局域网络信道扫描方法、装置及移动终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A wireless local area network channel scanning method, device, and mobile terminal provided by the embodiments of the present invention are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only It is used to help understand the method and its core idea of the present invention; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this specification The content should not be construed as a limitation of the invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610695858.3A CN106332238B (en) | 2016-08-19 | 2016-08-19 | Wireless local area network channel scanning method and device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610695858.3A CN106332238B (en) | 2016-08-19 | 2016-08-19 | Wireless local area network channel scanning method and device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106332238A true CN106332238A (en) | 2017-01-11 |
CN106332238B CN106332238B (en) | 2017-08-01 |
Family
ID=57743386
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610695858.3A Active CN106332238B (en) | 2016-08-19 | 2016-08-19 | Wireless local area network channel scanning method and device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106332238B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106851690A (en) * | 2017-02-28 | 2017-06-13 | 广东欧珀移动通信有限公司 | Wireless network scanning method, device and computer equipment |
CN108055687A (en) * | 2018-01-31 | 2018-05-18 | 广东欧珀移动通信有限公司 | Wireless network connection method, device, terminal equipment and storage medium |
CN113453364A (en) * | 2021-06-29 | 2021-09-28 | 展讯通信(天津)有限公司 | Communication method, chip and electronic device |
EP4064760A4 (en) * | 2019-12-30 | 2023-01-04 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | DEVICE CONTROL METHOD AND DEVICE, STORAGE MEDIA AND ELECTRONIC DEVICE |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1874151A (en) * | 2005-06-03 | 2006-12-06 | 鸿富锦精密工业(深圳)有限公司 | Method for scanning channels |
US20140173668A1 (en) * | 2012-12-19 | 2014-06-19 | Sunplus Technology Co., Ltd. | Fast blind scan method insensitive to adjacent channel interference |
WO2015088766A1 (en) * | 2013-12-13 | 2015-06-18 | Motorola Solutions, Inc. | Apparatus and method for enabling efficient handover of a receiving radio between radio frequency sites |
CN104902545A (en) * | 2015-05-27 | 2015-09-09 | 厦门盈趣科技股份有限公司 | Coexisting method for Zigbee and WiFi (Wireless Fidelity) |
-
2016
- 2016-08-19 CN CN201610695858.3A patent/CN106332238B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1874151A (en) * | 2005-06-03 | 2006-12-06 | 鸿富锦精密工业(深圳)有限公司 | Method for scanning channels |
US20140173668A1 (en) * | 2012-12-19 | 2014-06-19 | Sunplus Technology Co., Ltd. | Fast blind scan method insensitive to adjacent channel interference |
WO2015088766A1 (en) * | 2013-12-13 | 2015-06-18 | Motorola Solutions, Inc. | Apparatus and method for enabling efficient handover of a receiving radio between radio frequency sites |
CN104902545A (en) * | 2015-05-27 | 2015-09-09 | 厦门盈趣科技股份有限公司 | Coexisting method for Zigbee and WiFi (Wireless Fidelity) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106851690A (en) * | 2017-02-28 | 2017-06-13 | 广东欧珀移动通信有限公司 | Wireless network scanning method, device and computer equipment |
CN108055687A (en) * | 2018-01-31 | 2018-05-18 | 广东欧珀移动通信有限公司 | Wireless network connection method, device, terminal equipment and storage medium |
EP4064760A4 (en) * | 2019-12-30 | 2023-01-04 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | DEVICE CONTROL METHOD AND DEVICE, STORAGE MEDIA AND ELECTRONIC DEVICE |
CN113453364A (en) * | 2021-06-29 | 2021-09-28 | 展讯通信(天津)有限公司 | Communication method, chip and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN106332238B (en) | 2017-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106855782B (en) | A kind of method, apparatus and terminal for preventing from accidentally touching | |
WO2018205829A1 (en) | Radio frequency interference processing method and apparatus, storage medium, and electronic device | |
CN106332238B (en) | Wireless local area network channel scanning method and device and mobile terminal | |
CN107231159B (en) | Radio frequency interference processing method, device, storage medium and terminal | |
US9754113B2 (en) | Method, apparatus, terminal and media for detecting document object model-based cross-site scripting attack vulnerability | |
CN110009004B (en) | Image data processing method, computer device, and storage medium | |
CN109189289A (en) | A kind of method and device generating icon based on screenshotss image | |
US11012970B2 (en) | Method for processing radio frequency interference and electronic device | |
CN109474985B (en) | Signal synchronization detection method, device, equipment and system | |
CN110519793B (en) | Measurement reporting method, measurement configuration method, terminal and network side equipment | |
CN109362129B (en) | Channel determination method, device, equipment and storage medium | |
CN108536638B (en) | Intelligent bookmark setting method, mobile terminal, system and readable storage medium | |
CN106156711A (en) | The localization method of line of text and device | |
WO2021136039A1 (en) | Device control method and apparatus, storage medium and electronic device | |
US9367225B2 (en) | Electronic apparatus and computer-readable recording medium | |
CN112749074B (en) | Test case recommending method and device | |
CN105979566A (en) | A network connection method, device and mobile terminal | |
CN112073972B (en) | Method and device for eliminating adjacent channel signal interference and small base station | |
CN111818642B (en) | Parameter processing method, device and computer readable storage medium | |
CN109041251A (en) | Accidental access method, device, base station, terminal and computer readable storage medium | |
CN109450853B (en) | Malicious website determination method and device, terminal and server | |
CN113055901A (en) | Terminal positioning method and device | |
CN108269223B (en) | Webpage graph drawing method and terminal | |
CN115623549A (en) | Network connection method, device, electronic equipment and storage medium | |
CN111899042B (en) | Malicious exposure advertisement behavior detection method and device, storage medium and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: Guangdong Opel Mobile Communications Co., Ltd. |