CN107896381A - Mobile terminal wireless local area network scanning method and device, computer equipment - Google Patents

Mobile terminal wireless local area network scanning method and device, computer equipment Download PDF

Info

Publication number
CN107896381A
CN107896381A CN201711242777.9A CN201711242777A CN107896381A CN 107896381 A CN107896381 A CN 107896381A CN 201711242777 A CN201711242777 A CN 201711242777A CN 107896381 A CN107896381 A CN 107896381A
Authority
CN
China
Prior art keywords
mobile terminal
network
wireless access
track
access device
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
Application number
CN201711242777.9A
Other languages
Chinese (zh)
Other versions
CN107896381B (en
Inventor
肖龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711242777.9A priority Critical patent/CN107896381B/en
Publication of CN107896381A publication Critical patent/CN107896381A/en
Application granted granted Critical
Publication of CN107896381B publication Critical patent/CN107896381B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application relates to a mobile terminal wireless local area network scanning method and device and computer equipment. The mobile terminal wireless local area network scanning method comprises the following steps: sequentially acquiring network information of wireless access equipment capable of providing communication service for the mobile terminal according to the moving track of the mobile terminal to form a current network track table; calling a preset network track table, wherein the preset network track table is used for at least storing network information of a target wireless access device corresponding to the mobile terminal when the mobile terminal moves according to a first preset track; the first preset track is a moving track of the mobile terminal leaving a wireless local area network coverage area of the available wireless access equipment; when the network information in the current network track table is consistent with the network information corresponding to the first preset track, the scanning switching strategy is started, the active scanning mode is switched to the passive scanning mode to scan the wireless local area network, the power consumption can be saved, the cruising ability is improved, the radiation can be reduced, and the user experience cannot be influenced.

Description

移动终端无线局域网扫描方法和装置、计算机设备Mobile terminal wireless local area network scanning method and device, computer equipment

技术领域technical field

本申请涉及通信技术领域,特别是涉及一种移动终端无线局域网扫描方法和装置、计算机设备、计算机可读存储介质。The present application relates to the technical field of communications, and in particular to a mobile terminal wireless local area network scanning method and device, computer equipment, and a computer-readable storage medium.

背景技术Background technique

无线局域网(Wireless Local Network,WLAN)是指以无线信道来替代传统有线传输介质所构成的局域网络。移动终端(工作站STA)采用无线保真(Wireless Fidelity,Wi-Fi)技术与无线接入设备(例如,无线接入点Access Point,AP)建立连接以接入无线局域网。具体的,移动终端内置Wi-Fi模块,为接入无线局域网,移动终端首先需要通过扫描来发现附近是否有可用的无线局域网,扫描方式分为两种:主动扫描和被动扫描。其中,移动终端必须先通过扫描机制得到可用接入点的相关信息。无论用户在哪里如去外出购物、上班、旅游等,都是通过同一种扫描方式来获取可用接入点,该扫描过程中存在功耗大、续航时间短的问题。Wireless local area network (Wireless Local Network, WLAN) refers to a local area network composed of wireless channels instead of traditional wired transmission media. A mobile terminal (workstation STA) establishes a connection with a wireless access device (for example, a wireless access point, Access Point, AP) using a wireless fidelity (Wireless Fidelity, Wi-Fi) technology to access a wireless local area network. Specifically, the mobile terminal has a built-in Wi-Fi module. In order to access the wireless local area network, the mobile terminal first needs to scan to find out whether there is an available wireless local area network nearby. There are two scanning methods: active scanning and passive scanning. Wherein, the mobile terminal must first obtain relevant information of available access points through a scanning mechanism. No matter where the user is going shopping, going to work, traveling, etc., the same scanning method is used to obtain available access points. There are problems of high power consumption and short battery life in the scanning process.

发明内容Contents of the invention

本申请实施例提供一种移动终端无线局域网扫描方法和装置、计算机设备、计算机可读存储介质,可以节省功耗,提高续航能力。Embodiments of the present application provide a mobile terminal wireless local area network scanning method and device, computer equipment, and a computer-readable storage medium, which can save power consumption and improve battery life.

一种无线局域网开关的控制方法,包括:A method for controlling a wireless local area network switch, comprising:

根据移动终端的移动轨迹依次获取能够为所述移动终端提供通信服务的目标无线接入设备的网络信息,形成当前网络轨迹表;Obtaining network information of target wireless access devices capable of providing communication services for the mobile terminal in sequence according to the mobile terminal's movement trajectory, forming a current network trajectory table;

调用预设网络轨迹表,所述预设网络轨迹表用于至少存储所述移动终端按照第一预设轨迹移动时所对应的目标无线接入设备的网络信息;所述第一预设轨迹为移动终端离开可用无线接入设备的无线局域网覆盖区域的移动轨迹;calling a preset network track table, the preset network track table is used to at least store the network information of the target wireless access device corresponding to the mobile terminal when moving according to the first preset track; the first preset track is The mobile trajectory of the mobile terminal leaving the coverage area of the wireless local area network of the available wireless access equipment;

当所述当前网络轨迹表中的网络信息与所述第一预设轨迹对应的网络信息一致时,启用扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描。When the network information in the current network track table is consistent with the network information corresponding to the first preset track, enable a scanning switching strategy, and switch the active scanning mode to the passive scanning mode to scan the wireless local area network.

一种移动终端无线局域网扫描装置,包括:A mobile terminal wireless local area network scanning device, comprising:

网络轨迹形成模块,用于根据移动终端的移动轨迹依次获取能够为所述移动终端提供通信服务的目标无线接入设备的网络信息,形成当前网络轨迹表;A network trajectory forming module, configured to sequentially acquire network information of target wireless access devices capable of providing communication services for the mobile terminal according to the mobile terminal's movement trajectory, to form a current network trajectory table;

网络轨迹调用模块,用于调用预设网络轨迹表,所述预设网络轨迹表用于至少存储所述移动终端按照第一预设轨迹移动时所对应的目标无线接入设备的网络信息;所述第一预设轨迹为移动终端离开可用无线接入设备的轨迹;The network track calling module is used to call a preset network track table, and the preset network track table is used to at least store the network information of the target wireless access device corresponding to the mobile terminal when moving according to the first preset track; The first preset track is the track where the mobile terminal leaves the available wireless access device;

扫描控制模块,用于当所述当前网络轨迹表中的网络信息与所述第一预设轨迹对应的网络信息一致时,启用扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描。A scan control module, configured to enable a scan switching strategy when the network information in the current network track table is consistent with the network information corresponding to the first preset track, and switch the active scan mode to a passive scan mode to scan the wireless local area network. to scan.

一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行上述移动终端无线局域网扫描方法的步骤。A computer device includes a memory and a processor, wherein computer-readable instructions are stored in the memory, and when the instructions are executed by the processor, the processor is made to execute the steps of the mobile terminal wireless local area network scanning method.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述移动终端无线局域网扫描方法的步骤。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above mobile terminal wireless local area network scanning method are implemented.

上述移动终端无线局域网扫描方法、装置、计算机设备和计算机可读存储介质,当所述当前网络轨迹表中的网络信息与所述第一预设轨迹对应的网络信息一致时,则表明移动终端已经离开了任意可用无线接入设备的无线局域网覆盖区域,此时,启动扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描,能够节省功耗,提高续航能力,可以减少辐射,同时也不会影响用户的体验。The above mobile terminal wireless local area network scanning method, device, computer equipment, and computer-readable storage medium, when the network information in the current network track table is consistent with the network information corresponding to the first preset track, it indicates that the mobile terminal has After leaving the wireless LAN coverage area of any available wireless access device, at this time, start the scanning switching strategy and switch the active scanning mode to passive scanning mode to scan the wireless LAN, which can save power consumption, improve battery life, and reduce radiation , without affecting the user experience.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为一个实施例中移动终端无线局域网扫描方法的工作环境示意图;Fig. 1 is the working environment schematic diagram of mobile terminal wireless local area network scanning method in one embodiment;

图2为一个实施例中移动终端无线局域网扫描方法的流程示意图;Fig. 2 is a schematic flow chart of a mobile terminal wireless local area network scanning method in one embodiment;

图3为另一个实施例中移动终端无线局域网扫描方法的流程示意图;FIG. 3 is a schematic flow diagram of a mobile terminal wireless local area network scanning method in another embodiment;

图4为又一个实施例中移动终端无线局域网扫描方法的流程示意图;4 is a schematic flow diagram of a mobile terminal wireless local area network scanning method in yet another embodiment;

图5为一个实施例中移动终端离开或进入可用无线接入设备覆盖区域示意图示意图;Fig. 5 is a schematic diagram of a mobile terminal leaving or entering a coverage area of an available wireless access device in an embodiment;

图6为再一个实施例中移动终端无线局域网扫描方法的流程示意图;6 is a schematic flow diagram of a mobile terminal wireless local area network scanning method in another embodiment;

图7为一个实施例中移动终端无线局域网扫描方法的控制装置的结构框图;FIG. 7 is a structural block diagram of a control device of a mobile terminal wireless local area network scanning method in an embodiment;

图8为与本申请实施例提供的计算机设备相关的手机的部分结构的框图。Fig. 8 is a block diagram of a partial structure of a mobile phone related to the computer device provided by the embodiment of the present application.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

图1为一个实施例中移动终端无线局域网扫描方法的工作环境示意图。该工作环境涉及多种应用场景,例如,包括通用移动通信系统(Universal MobileTelecommunications System,UMTS)、长期演进(Long Term Evolution,LTE)、全球移动通信系统(Global System for Mobile Communication,GSM)和WLAN等。作为非限制性示例,下面的描述涉及WLAN通信系统,但是这样的教导同样适用于其它类型的系统。如图1所示,其工作环境涉及移动终端100、云端服务器101、基站102和无线接入设备(例如,无线接入点Access Point,AP)103,移动终端100与基站102之间可以相互通信,各基站102可以与云端服务器101相互通信,移动终端100还可以通过除了基站102之外的相关网络与云端服务器101进行通信,移动终端100还可以与无线接入设备103进行通信,建立无线网络连接。进一步地,在无线通信系统中,基站102接收来自移动终端100的反向链路信号。移动终端100通常参与通话、消息收发和其它类型的通信。基站102对接收的每个反向链路信号进行处理,并将处理后的信号以正向链路信号的形式发送至移动终端100。可选地,上述通信过程采用的通信信道划分方式包括但不限于频分多址(frequency division multiple access,FDMA)、时分多址(time division multiple access,TDMA)和码分多址(code divisionmultiple access,CDMA)。FIG. 1 is a schematic diagram of a working environment of a mobile terminal wireless local area network scanning method in an embodiment. The working environment involves various application scenarios, for example, including Universal Mobile Telecommunications System (Universal Mobile Telecommunications System, UMTS), Long Term Evolution (Long Term Evolution, LTE), Global System for Mobile Communication (Global System for Mobile Communication, GSM) and WLAN, etc. . As a non-limiting example, the following description refers to a WLAN communication system, but such teachings are equally applicable to other types of systems. As shown in FIG. 1 , its working environment involves a mobile terminal 100, a cloud server 101, a base station 102, and a wireless access device (for example, a wireless access point Access Point, AP) 103, and the mobile terminal 100 and the base station 102 can communicate with each other. , each base station 102 can communicate with the cloud server 101, the mobile terminal 100 can also communicate with the cloud server 101 through a related network other than the base station 102, and the mobile terminal 100 can also communicate with the wireless access device 103 to establish a wireless network connect. Further, in a wireless communication system, the base station 102 receives a reverse link signal from the mobile terminal 100 . Mobile terminal 100 typically engages in calls, messaging, and other types of communications. The base station 102 processes each received reverse link signal and sends the processed signal to the mobile terminal 100 in the form of a forward link signal. Optionally, the communication channel division methods used in the above communication process include but are not limited to frequency division multiple access (frequency division multiple access, FDMA), time division multiple access (time division multiple access, TDMA) and code division multiple access (code division multiple access , CDMA).

如图2所示,在一个实施例中,提供了一种移动终端无线局域网扫描方法,应用于具备移动通信功能的终端,本实施例以该移动终端无线局域网扫描方法应用于上述图1中的工作环境的移动终端100来举例说明。该无线局域网开关的控制方法具体包括如下步骤:As shown in Figure 2, in one embodiment, a wireless local area network scanning method of a mobile terminal is provided, which is applied to a terminal with a mobile communication function. The mobile terminal 100 in the working environment is used as an example for illustration. The control method of the wireless local area network switch specifically includes the following steps:

步骤202:根据移动终端的移动轨迹依次获取能够为所述移动终端提供通信服务的目标无线接入设备的网络信息,形成当前网络轨迹表。Step 202: Obtain network information of target wireless access devices capable of providing communication services for the mobile terminal in sequence according to the mobile terminal's movement trajectory, and form a current network trajectory table.

为了将移动终端为接入无线局域网,移动终端则会通过扫描来发现附近是否有可用的无线局域网,在扫描的过程中,移动终端会扫描到当前能够为移动终端提供通信服务的所有无线接入设备的网络信息。该网络信息包括当前移动终端接收到的无线接入设备的无线局域网的信号强度信息、以及各无线接入设备的唯一身份标识。In order to connect the mobile terminal to the wireless local area network, the mobile terminal will scan to find out whether there is an available wireless local area network nearby. During the scanning process, the mobile terminal will scan all wireless access points that can currently provide communication services for the mobile terminal Device network information. The network information includes the signal strength information of the wireless local area network of the wireless access device received by the current mobile terminal, and the unique identity of each wireless access device.

具体地,目标无线接入设备为所有无线接入设备中,能够为移动终端提供最大无线局域网信号强度的无线接入设备。Specifically, the target wireless access device is the wireless access device capable of providing the mobile terminal with the largest wireless local area network signal strength among all the wireless access devices.

其中,当前移动终端接收到的所有无线接入设备对应的无线局域网的信号强度以无线局域网WLAN列表展示给用户。Wherein, the signal strengths of the wireless local area networks corresponding to all wireless access devices received by the current mobile terminal are displayed to the user in a wireless local area network WLAN list.

移动终端在移动的过程中,会实时扫描到当前能够给移动终端提供通信服务的所有无线接入设备对应的无线局域网,并筛选出所有无线局域网中信号强度最大的无线局域网,将具有最大信号强度对应的无线接入设备定义为目标无线接入设备,将目标无线接入设备的身份标识与当前移动终端的位置信息一一对应存储。按照移动终端的移动轨迹,获取当前位置,移动终端能够扫描到的目标无线接入设备的身份标识,以形成当前网络轨迹表。When the mobile terminal is moving, it will scan in real time the wireless local area networks corresponding to all wireless access devices that can provide communication services to the mobile terminal at present, and screen out the wireless local area network with the highest signal strength among all wireless local area networks, which will have the largest signal strength The corresponding wireless access device is defined as a target wireless access device, and the identity of the target wireless access device is stored in a one-to-one correspondence with the location information of the current mobile terminal. According to the moving trajectory of the mobile terminal, the current location and the identity of the target wireless access device that the mobile terminal can scan are acquired to form a current network trajectory table.

需要说明的是,身份标识可以为用户自定义名称,也可以为无线可用接入设备的型号,也即,身份标识可以用字母、数字、特殊符号等组合形式表示。It should be noted that the identity mark can be a user-defined name, or a model of a wireless access device, that is, the identity mark can be represented by a combination of letters, numbers, and special symbols.

需要说明的是,移动终端的移动轨迹可以通过GPS定位技术、北斗定位技术或基站定位技术来获取,通过设置于移动终端内的陀螺仪检测移动终端的移动方向,但本申请实施例不限于此,还可以采用其他方式获取移动终端的移动轨迹。It should be noted that the moving track of the mobile terminal can be obtained through GPS positioning technology, Beidou positioning technology or base station positioning technology, and the moving direction of the mobile terminal can be detected by the gyroscope installed in the mobile terminal, but the embodiment of the present application is not limited thereto , and other methods may also be used to obtain the movement track of the mobile terminal.

步骤204:调用预设网络轨迹表,所述预设网络轨迹表用于至少存储所述移动终端按照第一预设轨迹移动时所对应的目标无线接入设备的网络信息。Step 204: calling a preset network track table, where the preset network track table is used to at least store network information of a target wireless access device corresponding to when the mobile terminal moves along the first preset track.

其中,第一预设轨迹为移动终端离开可用无线接入设备的无线局域网覆盖区域的移动轨迹。预设网络轨迹表中至少存储移动终端按照第一预设轨迹移动时所对应的目标无线接入设备的网络信息。Wherein, the first preset track is a moving track of the mobile terminal leaving the coverage area of the wireless local area network of the available wireless access device. The preset network track table stores at least the network information of the target wireless access device corresponding to when the mobile terminal moves along the first preset track.

具体地,目标无线接入设备为所有无线接入设备中,能够为移动终端提供最大无线局域网信号强度的无线接入设备。移动终端离开可用无线接入设备的无线局域网覆盖区域的移动轨迹可以为1条、多条(大于等于2条),也即,第一预设轨迹的条数可以为1条、多条(大于等于2条)。当第一预设轨迹为多条时,可以根据不同的第一预设轨迹形成一个庞大而有序的预设网络轨迹表。Specifically, the target wireless access device is the wireless access device capable of providing the mobile terminal with the largest wireless local area network signal strength among all the wireless access devices. There can be 1 or more (more than or equal to 2) moving trajectories for the mobile terminal to leave the coverage area of the wireless local area network of the available wireless access device, that is, the number of the first preset trajectories can be 1 or more (more than or equal to 2) equal to 2 bars). When there are multiple first preset tracks, a huge and orderly preset network track table can be formed according to different first preset tracks.

需要说明的是,其中,无线接入设备可以为无线接入点AP,可用无线接入设备为移动终端已经成功访问过该无线接入设备的无线局域网,例如,家用可用AP、工作单位可用AP、经常访问的可用AP或其他公共区域可用AP等等。It should be noted that, the wireless access device can be a wireless access point AP, and the available wireless access device is a wireless local area network that the mobile terminal has successfully accessed the wireless access device, for example, an AP available for home use and an AP available for work units , Frequently visited available APs or other available APs in public areas, etc.

进一步的,根据可用无线接入设备的数量,可以形成与可用无线接入设备数量相等的预设网络轨迹表,即,可用无线接入设备与预设网络轨迹表一一对应,例如,家用可用无线接入设备对应于家用预设网络轨迹表,工作单位可用无线接入设备对应于工作单位预设网络轨迹表。Further, according to the number of available wireless access devices, a preset network track table equal to the number of available wireless access devices can be formed, that is, the available wireless access devices correspond to the preset network track table one-to-one, for example, the The wireless access device corresponds to the home preset network track table, and the wireless access device available to the work unit corresponds to the work unit preset network track table.

步骤206:当所述当前网络轨迹表中的网络信息与所述第一预设轨迹对应的网络信息一致时,启用扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描。Step 206: When the network information in the current network track table is consistent with the network information corresponding to the first preset track, activate a scan switching strategy, and switch the active scanning mode to the passive scanning mode to scan the wireless local area network.

将获取的当前网络轨迹表中的移动终端的移动轨迹对应目标无线接入设备的网络信息与预设网络轨迹表中第一预设轨迹对应目标无线接入设备的网络信息进行对比。在对比的过程中,当前网络轨迹表中的移动终端的移动轨迹对应的网络信息与预设网络轨迹表中第一预设轨迹对应的网络信息一致时,则表明移动终端已经离开了任意可用无线接入设备的无线局域网的覆盖区域,例如出差、旅游、在上下班的路上等等。当移动终端已经离开了任意可用无线接入设备的无线局域网的覆盖区域时,启动扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描,并不会影响到用户体验,同时还能够节省功耗,提高续航能力,还可以减少辐射,可以避免采用主动扫描无形中增加移动终端的功耗,缩短整机的待机时长。Comparing the acquired network information of the target wireless access device corresponding to the moving track of the mobile terminal in the current network track table with the network information of the target wireless access device corresponding to the first preset track in the preset network track table. In the process of comparison, when the network information corresponding to the mobile trajectory of the mobile terminal in the current network trajectory table is consistent with the network information corresponding to the first preset trajectory in the preset network trajectory table, it indicates that the mobile terminal has left any available wireless network. The coverage area of the WLAN of the access device, such as business trips, tourism, commuting, and so on. When the mobile terminal has left the coverage area of the WLAN of any available wireless access device, start the scanning switching strategy, and switch the active scanning mode to the passive scanning mode to scan the WLAN without affecting the user experience. It can also save power consumption, improve endurance, and reduce radiation, which can avoid the use of active scanning to increase the power consumption of mobile terminals virtually, and shorten the standby time of the whole machine.

需要说明的是,对于被动扫描方式,移动终端不会主动发送探测请求帧,就是被动的接收无线接入点定期发送的信标帧(Beacon)来发现网络。信标帧包括有无线接入点AP的服务集标识、支持速率、无线接入点的MAC地址、支持的认证方式,加密算法、信标帧发送间隔,使用的信道等信息。例如,无线接入点发送信标帧的默认周期为100ms,即无线接入点每100ms都会广播发送一次信标帧。STA就是通过在其支持的每个信道上侦听信标帧,来获知周围存在的无线网络。It should be noted that, for the passive scanning mode, the mobile terminal does not actively send a probe request frame, but passively receives beacon frames (Beacon) periodically sent by the wireless access point to discover the network. The beacon frame includes information such as the service set identifier of the wireless access point AP, the supported rate, the MAC address of the wireless access point, the supported authentication method, the encryption algorithm, the beacon frame transmission interval, and the channel used. For example, the default period for the wireless access point to send the beacon frame is 100ms, that is, the wireless access point broadcasts and sends the beacon frame every 100ms. The STA learns the surrounding wireless network by listening to the beacon frame on each channel it supports.

需要说明的是,对于主动扫描方式,移动终端会主动在其所支持的信道上依次发送探测信号,用于探测周围存在的无线网络。移动终端发送的探测信号称为探测请求帧(Probe Request),通过接受探查响应帧(Probe Response)来获取网络信号。探测请求帧又可以分为两类,一类是未指定服务集标识(Service Set Identifier,SSID),一类是指定服务集标识。若探测请求帧里面未没指定服务集标识,意味着这个探测请求想要获取到周围所有能够获取到的无线网络信号,所有收到这个广播探测请求帧的无线接入点都会回应移动终端。若探测请求帧中指定了服务集标识,意味着移动终端只想找到特定的服务集标识,不需要除指定服务集标识之外的其它无线网络。无线接入点接收探测请求帧后,只有发现探测请求帧中的服务集标识和自己的服务集标识是相同的情况下,才会回应移动终端。It should be noted that, for the active scanning mode, the mobile terminal will proactively send detection signals sequentially on the channels it supports to detect the surrounding wireless networks. The probe signal sent by the mobile terminal is called a probe request frame (Probe Request), and a network signal is obtained by receiving a probe response frame (Probe Response). The probe request frame can be divided into two types, one is unspecified service set identifier (Service Set Identifier, SSID), and the other is specified service set identifier. If no service set identifier is specified in the probe request frame, it means that the probe request wants to obtain all available wireless network signals around, and all wireless access points that receive the broadcast probe request frame will respond to the mobile terminal. If the SSID is specified in the probe request frame, it means that the mobile terminal only wants to find a specific SSID, and does not need other wireless networks except the specified SSID. After receiving the probe request frame, the wireless access point will respond to the mobile terminal only if it finds that the SSID in the probe request frame is the same as its own SSID.

上述移动终端无线局域网扫描方法,当当前网络轨迹表中的移动终端的移动轨迹对应的网络信息与预设网络轨迹表中第一预设轨迹对应的网络信息一致时,则表明移动终端已经离开了任意可用无线接入设备的无线局域网的覆盖区域,此时,启动扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描,能够节省功耗,提高续航能力,可以减少辐射,同时也不会影响用户的体验。In the above mobile terminal WLAN scanning method, when the network information corresponding to the mobile trajectory of the mobile terminal in the current network trajectory table is consistent with the network information corresponding to the first preset trajectory in the preset network trajectory table, it indicates that the mobile terminal has left Any wireless LAN coverage area where wireless access devices are available. At this time, start the scan switching strategy and switch the active scanning mode to passive scanning mode to scan the wireless LAN, which can save power consumption, improve battery life, and reduce radiation. At the same time, it will not affect the user experience.

如图3所示,在一个实施例中,在调用预设网络轨迹表前,还包括:As shown in Figure 3, in one embodiment, before calling the preset network track table, it also includes:

步骤302:当移动终端离开所述可用无线接入设备的无线局域网覆盖区域时,记录当前能够为所述移动终端提供通信服务的目标无线接入设备对应的网络信息。Step 302: When the mobile terminal leaves the coverage area of the wireless local area network of the available wireless access device, record the network information corresponding to the target wireless access device that can currently provide communication services for the mobile terminal.

获取可用无线接入设备的设备信息,包括该无线接入设备的身份标识,该无线接入设备的无线局域网覆盖区域(覆盖半径)等等。当终端离开该无线接入设备的无线局域网覆盖区域时,通过实时扫描获取能够为移动终端提供通信服务的所有无线接入设备对应的网络信息。The device information of the available wireless access device is obtained, including the identity of the wireless access device, the coverage area (coverage radius) of the wireless local area network of the wireless access device, and the like. When the terminal leaves the coverage area of the wireless local area network of the wireless access device, the network information corresponding to all wireless access devices capable of providing communication services for the mobile terminal is obtained through real-time scanning.

步骤304:根据所述所有无线接入设备对应的网络信息获取所述可用无线接入设备的一级无线接入设备。Step 304: Obtain the primary wireless access device of the available wireless access device according to the network information corresponding to all the wireless access devices.

其中,网络信息包括当前移动终端接收到的无线接入设备对应的无线局域网的强度信息、以及无线接入设备的身份标识。根据通过扫描获取的所有无线接入设备的网络信息,获取目标无线接入设备,即在离开可用无线接入设备的无线局域网覆盖区域的那一时刻,扫描到具有最大信号强度的无线局域网对应的无线接入设备定义离开可用无线接入设备的无线局域网覆盖区域时的目标无线接入设备,也为可用无线接入设备的一级无线接入设备。Wherein, the network information includes the strength information of the wireless local area network corresponding to the wireless access device received by the current mobile terminal, and the identity of the wireless access device. According to the network information of all wireless access devices obtained through scanning, the target wireless access device is obtained, that is, at the moment of leaving the coverage area of the wireless LAN of the available wireless access device, the corresponding wireless LAN with the maximum signal strength is scanned The wireless access device defines the target wireless access device when it leaves the coverage area of the wireless local area network of the available wireless access device, and is also a first-class wireless access device of the available wireless access device.

一级无线接入设备还可以理解为当移动终端离开可用无线接入设备对应的无线局域网覆盖区域后,移动终端首次扫描到的具有最大信号强度的无线局域网对应的无线接入设备,此时,对应记录移动终端当前的位置信息以及一级无线接入设备的身份标识。The first-level wireless access device can also be understood as the wireless access device corresponding to the wireless LAN with the maximum signal strength scanned by the mobile terminal for the first time after the mobile terminal leaves the coverage area of the wireless local area network corresponding to the available wireless access device. At this time, Correspondingly record the current location information of the mobile terminal and the identity of the primary wireless access device.

步骤306:当移动终端离开所述一级无线接入设备无线局域网覆盖区域时,获取二级无线接入设备。Step 306: When the mobile terminal leaves the wireless local area network coverage area of the primary wireless access device, acquire the secondary wireless access device.

所述二级接入设备为离开所述一级无线接入设备无线局域网覆盖区域时,能够为所述移动终端提供最大强度信号的无线接入设备。The secondary access device is a wireless access device capable of providing the mobile terminal with a signal of maximum strength when leaving the coverage area of the wireless local area network of the primary wireless access device.

相应的,当移动终端也可以获取一级无线接入设备的设备信息,该设备信息包括该一级无线接入设备的身份标识,该一级无线接入设备的无线局域网覆盖区域(覆盖半径)等等。当终端离开一级无线接入设备的无线局域网覆盖区域时,通过实时扫描获取能够为移动终端提供通信服务的所有无线接入设备对应的网络信息。Correspondingly, when the mobile terminal can also obtain the device information of the first-level wireless access device, the device information includes the identity of the first-level wireless access device, the wireless LAN coverage area (coverage radius) of the first-level wireless access device and many more. When the terminal leaves the wireless local area network coverage area of the first-level wireless access device, the network information corresponding to all wireless access devices that can provide communication services for the mobile terminal is obtained through real-time scanning.

移动终端根据获取的所有无线接入设备的网络信息,可以在离开一级无线接入设备的无线局域网覆盖区域的那一时刻,扫描到具有最大信号强度的无线局域网,将具有最大信号强度的无线局域网对应的无线接入设备定义为可用无线接入设备的二级无线接入设备。二级无线接入设备可以理解为当移动终端离开一级无线接入设备对应的无线局域网覆盖区域后,移动终端首次扫描到的具有最大信号强度的无线局域网对应的无线接入设备,此时,对应记录移动终端当前的位置信息以及二级无线接入设备的身份标识。According to the acquired network information of all wireless access devices, the mobile terminal can scan for the wireless LAN with the maximum signal strength at the moment when it leaves the coverage area of the wireless LAN of the first-level wireless access device, and will scan the wireless LAN with the maximum signal strength. The wireless access device corresponding to the LAN is defined as the secondary wireless access device of the available wireless access device. The secondary wireless access device can be understood as the wireless access device corresponding to the wireless LAN with the maximum signal strength scanned by the mobile terminal for the first time after the mobile terminal leaves the coverage area of the wireless LAN corresponding to the primary wireless access device. At this time, The current location information of the mobile terminal and the identity of the secondary wireless access device are correspondingly recorded.

步骤308:将所述移动终端的从所述可用无线接入设备经所述一级无线接入设备移动至二级无线接入设备的轨迹定义为所述第一预设移动轨迹。Step 308: Define a trajectory of the mobile terminal moving from the available wireless access device to the secondary wireless access device via the primary wireless access device as the first preset movement trajectory.

获取移动终端从可用无线接入设备的无线局域网覆盖区域移动到一级无线接入设备的无线局域网覆盖区域,从一级无线接入设备的无线局域网覆盖区域移动到二级无线接入设备的无线局域网覆盖区域的移动轨迹,并将该移动轨迹定义为第一预设移动轨迹。Acquire the mobile terminal moving from the wireless LAN coverage area of the available wireless access device to the wireless LAN coverage area of the first-level wireless access device, and from the wireless LAN coverage area of the first-level wireless access device to the wireless network of the second-level wireless access device. A movement track of the coverage area of the local area network, and define the movement track as the first preset movement track.

需要说明的是,在第一预设移动轨迹上会标识出可用无线接入设备、一级无线接入设备、二级无线接入设备的无线局域网覆盖区域的范围。It should be noted that ranges of wireless local area network coverage areas of available wireless access devices, primary wireless access devices, and secondary wireless access devices are identified on the first preset movement trajectory.

步骤310:根据所述一级无线接入设备、二级无线接入设备和第一预设移动轨迹形成所述预设网络轨迹表。Step 310: Form the preset network track table according to the first-level wireless access device, the second-level wireless access device and the first preset movement track.

根据获取的一级无线接入设备、二级无线接入设备和第一预设移动轨迹,就可以形成预设网络轨迹表。预设网络轨迹表中存储了第一预设移动轨迹中各个位置区域与可用无线接入设备、一级无线接入设备、二级无线接入设备的映射关系。According to the obtained primary wireless access device, secondary wireless access device and the first preset movement track, a preset network track table can be formed. The preset network track table stores the mapping relationship between each location area in the first preset movement track and available wireless access devices, primary wireless access devices, and secondary wireless access devices.

进一步的,形成的预设网络轨迹表可以以步骤302中的可用无线接入设备的身份标识来命名。Further, the formed preset network track table may be named after the identifier of the available wireless access device in step 302 .

如图4所示,在一个实施例中,在调用预设网络轨迹表前,还包括:As shown in Figure 4, in one embodiment, before calling the preset network track table, it also includes:

步骤402:获取移动终端离开所述可用无线接入设备的无线局域网覆盖区域和/或所述一级无线接入设备的无线局域网覆盖区域的方位信息。Step 402: Obtain orientation information of the mobile terminal leaving the coverage area of the wireless local area network of the available wireless access device and/or the coverage area of the wireless local area network of the primary wireless access device.

具体的,移动终端离开可用无线接入设备对应的无线局域网覆盖区域时,每次离开的方向可能都不同,根据离开可用无线接入设备对应的无线局域网覆盖区域的方位,可以获取不同方位的一级无线接入设备,也即,就可以形成新的第一预设轨迹。Specifically, when the mobile terminal leaves the coverage area of the wireless local area network corresponding to the available wireless access device, the direction of departure may be different every time. level wireless access device, that is, a new first preset trajectory can be formed.

可选的,移动终端离开可用无线接入设备AP对应的无线局域网覆盖区域时,若每次离开的方向都相同,则可用无线接入设备的一级无线接入设备AP_1#相同,若每次离开一级无线接入设备AP_1#对应的无线局域网覆盖区域的方位不同时,根据离开一级无线接入设备AP_1#对应的无线局域网覆盖区域的方位,如图5所示,可以获取不同方位的二级无线接入设备(AP_2#、AP_3#、...、AP_n#),相应的,也可以形成新的第一预设轨迹。Optionally, when the mobile terminal leaves the wireless local area network coverage area corresponding to the available wireless access device AP, if the direction of departure is the same every time, the first-level wireless access device AP_1# of the available wireless access device is the same. When leaving the location of the wireless LAN coverage area corresponding to the first-level wireless access device AP_1# is different, according to the location of leaving the wireless LAN coverage area corresponding to the first-level wireless access device AP_1#, as shown in Figure 5, you can obtain different directions. The secondary wireless access devices (AP_2#, AP_3#, . . . , AP_n#) can also form a new first preset track accordingly.

可选的,若每次离开可用无线接入设备对应的无线局域网覆盖区域的方向不同,就可以对应获取不同方位的一级无线接入设备;若每次离开一级无线接入设备对应的无线局域网覆盖区域的方位也不同,相应的,也可以对应获取不同方位的二级无线接入设备,也就可以根据可用无线接入设备、一级无线接入设备、二级无线接入设备形成新的第一预设轨迹。Optionally, if the direction of leaving the wireless local area network coverage area corresponding to the available wireless access device is different each time, you can correspondingly obtain the first-level wireless access device with different orientations; The location of the LAN coverage area is also different. Correspondingly, secondary wireless access devices of different locations can also be obtained correspondingly, and new wireless access devices can be formed according to available wireless access devices, primary wireless access devices, and secondary wireless access devices. The first preset track of .

步骤404:根据所述方位信息更新所述预设网络轨迹表。Step 404: Update the preset network trajectory table according to the orientation information.

根据动终端离开可用无线接入设备的无线局域网覆盖区域和/或一级无线接入设备的无线局域网覆盖区域的方位信息就可以形成的新的第一预设轨迹。A new first preset trajectory can be formed according to the orientation information of the mobile terminal leaving the coverage area of the wireless local area network of the available wireless access device and/or the coverage area of the wireless local area network of the primary wireless access device.

根据新的第一预设轨迹以及在形成第一预设轨迹时获取的一级无线接入设备、二级无线接入设备,就可以形成新的预设网络轨迹表以实现对预设网络轨迹表的更新。预设网络轨迹表中存储了第一预设移动轨迹中各个位置区域与可用无线接入设备、一级无线接入设备、二级无线接入设备的映射关系。According to the new first preset track and the first-level wireless access device and the second-level wireless access device obtained when forming the first preset track, a new preset network track table can be formed to implement the preset network track table updates. The preset network track table stores the mapping relationship between each location area in the first preset movement track and available wireless access devices, primary wireless access devices, and secondary wireless access devices.

在一个实施例中,预设网络轨迹表还用于存储移动终端按照第二预设轨迹移动时所对应的目标无线接入设备的网络信息。其中,第二预设轨迹为移动终端进入可用无线接入设备的无线局域网覆盖区域的移动轨迹。In one embodiment, the preset network track table is further used to store the network information of the target wireless access device corresponding to when the mobile terminal moves along the second preset track. Wherein, the second preset track is a moving track of the mobile terminal entering the coverage area of the wireless local area network of the available wireless access device.

需要说明的是,每一条第一预设轨迹都有一条与之对应的第二预设轨迹。对应设置的第一预设轨迹与第二预设轨迹的行驶路程在一定程度上大致重复。同时,移动终端沿第一预设轨迹的移动方向与移动终端沿第二预设轨迹的移动方向相反。也即,预设网络轨迹表中存储的移动终端按照第一预设轨迹移动时所对应的目标无线接入设备的网络信息与移动终端按照第二预设轨迹移动时所对应的目标无线接入设备的网络信息是一一相对设置的。例如,移动终端按照第一预设轨迹移动时扫描到的无线接入设备的依次为:可用无线接入设备、一级无线接入设备、二级无线接入设备;移动终端按照第二预设轨迹移动时扫描到的无线接入设备的依次为:二级无线接入设备、一级无线接入设备、可用无线接入设备。It should be noted that each first preset track has a corresponding second preset track. The driving distances of the correspondingly set first preset trajectory and the second preset trajectory roughly overlap to a certain extent. Meanwhile, the moving direction of the mobile terminal along the first preset track is opposite to the moving direction of the mobile terminal along the second preset track. That is, the network information of the target wireless access device corresponding to the mobile terminal moving along the first preset track stored in the preset network track table and the target wireless access device corresponding to the mobile terminal moving along the second preset track The network information of the device is set relative to each other. For example, when the mobile terminal moves according to the first preset track, the order of the wireless access devices scanned is: available wireless access devices, first-level wireless access devices, and second-level wireless access devices; The sequence of wireless access devices scanned during track movement is: secondary wireless access devices, primary wireless access devices, and available wireless access devices.

如图6所示,在一个实施例中,移动终端无线局域网扫描方法,包括:As shown in Figure 6, in one embodiment, the mobile terminal wireless local area network scanning method includes:

步骤602:根据移动终端的移动轨迹依次获取能够为所述移动终端提供通信服务的无线接入设备的网络信息,形成当前网络轨迹表。Step 602: Obtain network information of wireless access devices capable of providing communication services for the mobile terminal in sequence according to the mobile terminal's movement trajectory, and form a current network trajectory table.

步骤604:调用预设网络轨迹表,预设网络轨迹表还用于存储移动终端按照第二预设轨迹移动时所对应的目标无线接入设备的网络信息。Step 604: call the preset network track table, which is also used to store the network information of the corresponding target wireless access device when the mobile terminal moves along the second preset track.

步骤606:当所述当前网络轨迹表中的网络信息与所述第二预设轨迹对应的网络信息一致时,将被动扫描方式切换为主动扫描方式来对无线局域网进行扫描。Step 606: When the network information in the current network track table is consistent with the network information corresponding to the second preset track, switch the passive scanning mode to the active scanning mode to scan the wireless local area network.

也即,当移动终端在移动过程中,当所述当前网络轨迹表中的网络信息与所述第二预设轨迹对应的网络信息一致时,则可以理解为首先扫描到预设网络轨迹表中的二级无线接入设备,接着扫描到一级无线接入设备,则表明该移动终端即将进入可用无线接入设备的无线局域网覆盖区域,此时将被动扫描方式切换为主动扫描方式来对无线局域网进行扫描,可以快速、有效的扫描到可接入的无线局域网,提升用户体验。That is, when the mobile terminal is moving, when the network information in the current network track table is consistent with the network information corresponding to the second preset track, it can be understood that it first scans into the preset network track table Second-level wireless access devices, and then scan the first-level wireless access devices, it indicates that the mobile terminal is about to enter the wireless LAN coverage area of available wireless access devices, at this time, switch the passive scanning mode to the active scanning mode to scan It can quickly and effectively scan to an accessible wireless LAN to improve user experience.

在一个实施例中,移动终端无线局域网扫描方法,还包括当采用主动扫描方式接入到所述无线局域网时,将所述主动扫描方式切换为被动扫描方式的步骤。In one embodiment, the wireless local area network scanning method for a mobile terminal further includes the step of switching the active scanning mode to a passive scanning mode when the active scanning mode is used to access the wireless local area network.

也即,当移动终端通过主动扫描方式扫描到附近、可接入的无线局域网,且移动终端接入到该无线局域网时,则可以将移动终端当前使用的主动扫描方式切换为被动扫描方式。当移动终端连接了网络接入设备时,则用户对搜索其他网络接入设备的实时性要求也就不高了,此时将主动扫描方式切换为被动扫描方式,可以节省功耗,增加续航时间,同时减少辐射。That is, when the mobile terminal scans a nearby and accessible wireless local area network through the active scanning mode, and the mobile terminal accesses the wireless local area network, the active scanning mode currently used by the mobile terminal can be switched to a passive scanning mode. When the mobile terminal is connected to the network access device, the real-time requirements of the user to search for other network access devices are not high. At this time, switching the active scanning mode to the passive scanning mode can save power consumption and increase battery life. , while reducing radiation.

在一个实施例中,还可以根据实际需求动态调整主动扫描和被动扫描的扫描频率。In an embodiment, the scanning frequencies of active scanning and passive scanning may also be dynamically adjusted according to actual needs.

具体的,当采用主动扫描方式扫描无线局域网时,增大减少扫描频率,以降低扫描周期,从而更快的扫描到可用的无线局域网,提高用户的体验度,其移动速度与扫描频率成反比例关系。当采用被动扫描方式扫描无线局域网时,减少扫描频率,以增大扫描周期,从而节约功耗。Specifically, when using the active scanning method to scan wireless local area networks, increase or decrease the scanning frequency to reduce the scanning cycle, so as to scan available wireless local area networks faster and improve user experience. The moving speed is inversely proportional to the scanning frequency . When the wireless local area network is scanned in a passive scanning mode, the scanning frequency is reduced to increase the scanning period, thereby saving power consumption.

如图7所示,在一个实施例中,提供一种移动终端无线局域网扫描装置,包括:As shown in Figure 7, in one embodiment, a mobile terminal wireless local area network scanning device is provided, including:

网络轨迹形成模块710,用于根据移动终端的移动轨迹依次获取能够为所述移动终端提供通信服务的目标无线接入设备的网络信息,形成当前网络轨迹表;A network trajectory forming module 710, configured to sequentially acquire network information of target wireless access devices capable of providing communication services for the mobile terminal according to the mobile terminal's movement trajectory, and form a current network trajectory table;

网络轨迹调用模块720,用于调用预设网络轨迹表,所述预设网络轨迹表用于至少存储所述移动终端按照第一预设轨迹移动时所对应的目标无线接入设备的网络信息;所述第一预设轨迹为移动终端离开可用无线接入设备的轨迹;A network track calling module 720, configured to call a preset network track table, where the preset network track table is used to at least store the network information of the target wireless access device corresponding to the mobile terminal when moving according to the first preset track; The first preset track is the track where the mobile terminal leaves the available wireless access device;

扫描控制模块730,用于当所述当前网络轨迹表中的网络信息与所述第一预设轨迹对应的网络信息一致时,启用扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描。The scan control module 730 is configured to enable a scan switch strategy when the network information in the current network track table is consistent with the network information corresponding to the first preset track, and switch the active scan mode to the passive scan mode to scan the wireless LAN to scan.

上述移动终端无线局域网扫描装置,扫描控制模块830当所述当前网络轨迹表中的网络信息与所述第一预设轨迹对应的网络信息一致时,则表明移动终端已经离开了任意可用无线接入设备的无线局域网的覆盖区域,此时,扫描控制模块830启动扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描,能够节省功耗,提高续航能力,可以减少辐射,同时也不会影响用户的体验。In the mobile terminal WLAN scanning device, the scanning control module 830 indicates that the mobile terminal has left any available wireless access network when the network information in the current network track table is consistent with the network information corresponding to the first preset track. The coverage area of the wireless local area network of the device. At this time, the scanning control module 830 starts the scanning switching strategy, and switches the active scanning mode to the passive scanning mode to scan the wireless local area network, which can save power consumption, improve battery life, and reduce radiation. It will not affect the user experience.

在一个实施例中,移动终端无线局域网扫描装置,还包括:In one embodiment, the mobile terminal WLAN scanning device also includes:

网络轨迹形成模块,用于当移动终端离开所述可用无线接入设备的无线局域网覆盖区域时,记录当前能够为所述移动终端提供通信服务的目标无线接入设备对应的网络信息;根据所述网络信息获取所述可用无线接入设备的一级无线接入设备;当移动终端离开所述一级无线接入设备无线局域网覆盖区域时,获取二级无线接入设备,所述二级接入设备为离开所述一级无线接入设备无线局域网覆盖区域时,能够为所述移动终端提供最大强度信号的无线接入设备;将所述移动终端的从所述可用无线接入设备经所述一级无线接入设备移动至二级无线接入设备的轨迹定义为所述第一预设移动轨迹;根据所述一级无线接入设备、二级无线接入设备和第一预设移动轨迹形成所述预设网络轨迹表。A network trace forming module, configured to record the network information corresponding to the target wireless access device currently capable of providing communication services for the mobile terminal when the mobile terminal leaves the coverage area of the wireless local area network of the available wireless access device; according to the The network information acquires the primary wireless access equipment of the available wireless access equipment; when the mobile terminal leaves the coverage area of the wireless local area network of the primary wireless access equipment, acquires the secondary wireless access equipment, and the secondary access equipment The device is a wireless access device capable of providing the mobile terminal with a signal of maximum strength when leaving the coverage area of the wireless local area network of the first-level wireless access device; The trajectory of the first-level wireless access device moving to the second-level wireless access device is defined as the first preset movement trajectory; according to the first-level wireless access device, the second-level wireless access device and the first preset movement trajectory Forming the preset network track table.

在一个实施例中,移动终端无线局域网扫描装置,还用于:In one embodiment, the mobile terminal WLAN scanning device is also used for:

网络轨迹更新模块,用于获取移动终端离开所述可用无线接入设备的无线局域网覆盖区域和/或所述一级无线接入设备的无线局域网覆盖区域的方位信息;根据所述方位信息更新所述预设网络轨迹表。A network track update module, configured to acquire the location information of the mobile terminal leaving the wireless LAN coverage area of the available wireless access device and/or the wireless LAN coverage area of the primary wireless access device; update the location information according to the location information Describe the default network track table.

在一个实施例中,所述预设网络轨迹表用于存储所述移动终端按照第二预设轨迹移动时所对应的目标无线接入设备的网络信息;所述第二预设轨迹为移动终端进入所述可用无线接入设备的无线局域网覆盖区域的移动轨迹。In one embodiment, the preset network track table is used to store the network information of the target wireless access device corresponding to the mobile terminal when moving according to the second preset track; the second preset track is the mobile terminal A movement track entering the coverage area of the wireless local area network of the available wireless access device.

在一个实施例中,扫描控制模块,还用于:当所述当前网络轨迹表中的网络信息与所述第二预设轨迹对应的网络信息一致时,将被动扫描方式切换为主动扫描方式来对无线局域网进行扫描。In one embodiment, the scanning control module is further configured to: switch the passive scanning mode to the active scanning mode when the network information in the current network track table is consistent with the network information corresponding to the second preset track Scan for wireless LAN.

当所述当前网络轨迹表中的网络信息与所述第二预设轨迹对应的网络信息一致时,则可以认为移动终端重新进入了可用无线接入设备的无线局域网的信号覆盖区域,此时,将移动终端扫扫描无线局域网的扫描方式有被动扫描切换回主动扫描,可以快速、有效的扫描到可接入的无线局域网,提升用户体验。When the network information in the current network track table is consistent with the network information corresponding to the second preset track, it can be considered that the mobile terminal has re-entered the signal coverage area of the wireless local area network where the wireless access device is available. At this time, Switch the scanning mode of the mobile terminal to scan the wireless local area network from passive scanning to active scanning, which can quickly and effectively scan the accessible wireless local area network and improve user experience.

在一个实施例中,移动终端无线局域网扫描装置,还包括:In one embodiment, the mobile terminal WLAN scanning device also includes:

切换模块,用于当采用主动扫描方式接入到所述无线局域网时,将所述主动扫描方式切换为被动扫描方式。A switching module, configured to switch the active scanning mode to a passive scanning mode when the active scanning mode is used to access the wireless local area network.

当移动终端通过主动扫描方式扫描到附近、可接入的无线局域网,且移动终端接入到该无线局域网时,则可以将移动终端当前使用的主动扫描方式切换为被动扫描方式。当移动终端连接了网络接入设备时,则用户对搜索其他网络接入设备的实时性要求也就不高了,此时将主动扫描方式切换为被动扫描方式,可以节省功耗,增加续航时间,同时减少辐射。When the mobile terminal scans a nearby and accessible wireless local area network through the active scanning mode, and the mobile terminal accesses the wireless local area network, the active scanning mode currently used by the mobile terminal can be switched to a passive scanning mode. When the mobile terminal is connected to the network access device, the real-time requirements of the user to search for other network access devices are not high. At this time, switching the active scanning mode to the passive scanning mode can save power consumption and increase battery life. , while reducing radiation.

在一个实施例中,移动终端无线局域网扫描装置,还包括:In one embodiment, the mobile terminal WLAN scanning device also includes:

频率调节模块,用于当采用主动扫描方式扫描无线局域网时,增大扫描频率;当采用被动扫描方式扫描无线局域网时,减少扫描频率。The frequency adjustment module is used to increase the scanning frequency when scanning the wireless local area network in an active scanning manner; and reduce the scanning frequency when scanning the wireless local area network in a passive scanning manner.

当采用主动扫描方式扫描无线局域网时,增大减少扫描频率,以降低扫描周期,从而更快的扫描到可用的无线局域网,提高用户的体验度,其移动速度与扫描频率成反比例关系。当采用被动扫描方式扫描无线局域网时,减少扫描频率,以增大扫描周期,从而节约功耗。When using the active scanning method to scan wireless LANs, increase or decrease the scanning frequency to reduce the scanning cycle, so as to scan available wireless LANs faster and improve user experience. The moving speed is inversely proportional to the scanning frequency. When the wireless local area network is scanned in a passive scanning mode, the scanning frequency is reduced to increase the scanning period, thereby saving power consumption.

上述移动终端无线局域网扫描装置中各个模块的划分仅用于举例说明,在其他实施例中,可将移动终端无线局域网扫描装置按照需要划分为不同的模块,以完成上述移动终端无线局域网扫描装置的全部或部分功能。The division of each module in the mobile terminal wireless local area network scanning device is only for illustration. In other embodiments, the mobile terminal wireless local area network scanning device can be divided into different modules according to needs to complete the mobile terminal wireless local area network scanning device. full or partial functionality.

本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行以下步骤:The embodiment of the present application also provides a computer-readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to:

根据移动终端的移动轨迹依次获取能够为所述移动终端提供通信服务的目标无线接入设备的网络信息,形成当前网络轨迹表;Obtaining network information of target wireless access devices capable of providing communication services for the mobile terminal in sequence according to the mobile terminal's movement trajectory, forming a current network trajectory table;

调用预设网络轨迹表,所述预设网络轨迹表用于至少存储所述移动终端按照第一预设轨迹移动时所对应的目标无线接入设备的网络信息;所述第一预设轨迹为移动终端离开可用无线接入设备的无线局域网覆盖区域的移动轨迹;calling a preset network track table, the preset network track table is used to at least store the network information of the target wireless access device corresponding to the mobile terminal when moving according to the first preset track; the first preset track is The mobile trajectory of the mobile terminal leaving the coverage area of the wireless local area network of the available wireless access equipment;

当所述当前网络轨迹表中的网络信息与所述第一预设轨迹对应的网络信息一致时,启用扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描。When the network information in the current network track table is consistent with the network information corresponding to the first preset track, enable a scanning switching strategy, and switch the active scanning mode to the passive scanning mode to scan the wireless local area network.

上述计算机可读存储介质中计算机程序(指令)在被执行时,当所述当前网络轨迹表中的网络信息与所述第一预设轨迹对应的网络信息一致时,则表明移动终端已经离开了任意可用无线接入设备的无线局域网的覆盖区域,此时,启动扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描,能够节省功耗,提高续航能力,可以减少辐射,同时也不会影响用户的体验。When the computer program (instruction) in the computer-readable storage medium is executed, when the network information in the current network track table is consistent with the network information corresponding to the first preset track, it indicates that the mobile terminal has left Any wireless LAN coverage area where wireless access devices are available. At this time, start the scan switching strategy and switch the active scanning mode to passive scanning mode to scan the wireless LAN, which can save power consumption, improve battery life, and reduce radiation. At the same time, it will not affect the user experience.

本申请实施例还提供了一种计算机程序产品。一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各实施例中所描述的无线局域网开关的控制方法。The embodiment of the present application also provides a computer program product. A computer program product containing instructions, when running on a computer, causes the computer to execute the method for controlling a wireless local area network switch described in the above embodiments.

图8为与本申请实施例提供的计算机设备相关的手机的部分结构的框图。参考图8,手机包括:射频(Radio Frequency,RF)电路810、存储器820、输入单元830、显示单元840、传感器850、音频电路860、无线保真(wireless fidelity,WiFi)模块870、处理器880、以及电源890等部件。本领域技术人员可以理解,图8所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Fig. 8 is a block diagram of a partial structure of a mobile phone related to the computer device provided by the embodiment of the present application. Referring to FIG. 8 , the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a wireless fidelity (wireless fidelity, WiFi) module 870, and a processor 880 , and power supply 890 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 8 does not constitute a limitation to the mobile phone, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.

其中,RF电路810可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器880处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路810还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。Among them, the RF circuit 810 can be used for sending and receiving information or receiving and sending signals during a call. After receiving the downlink information from the base station, it can be processed by the processor 880; it can also send uplink data to the base station. Generally, an RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 810 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

存储器820可用于存储软件程序以及模块,处理器880通过运行存储在存储器820的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器820可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器820可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 820 can be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 820 . The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.); The data storage area can store data created according to the use of the mobile phone (such as audio data, address book, etc.) and the like. In addition, the memory 820 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

输入单元830可用于接收输入的数字或字符信息,以及产生与手机800的用户设置以及功能控制有关的键信号输入。具体地,输入单元830可包括触控面板831以及其他输入设备832。触控面板831,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板831上或在触控面板831附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板831可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器880,并能接收处理器880发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板831。除了触控面板831,输入单元830还可以包括其他输入设备832。具体地,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 830 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone 800 . Specifically, the input unit 830 may include a touch panel 831 and other input devices 832 . The touch panel 831, which can also be referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 831 or near the touch panel 831 operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 831 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 880, and can receive and execute commands sent by the processor 880. In addition, the touch panel 831 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 831 , the input unit 830 may also include other input devices 832 . Specifically, other input devices 832 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), and the like.

显示单元840可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元840可包括显示面板841。在一个实施例中,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板841。在一个实施例中,触控面板831可覆盖显示面板841,当触控面板831检测到在其上或附近的触摸操作后,传送给处理器880以确定触摸事件的类型,随后处理器880根据触摸事件的类型在显示面板841上提供相应的视觉输出。虽然在图8中,触控面板831与显示面板841是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板831与显示面板841集成而实现手机的输入和输出功能。The display unit 840 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 840 may include a display panel 841 . In one embodiment, the display panel 841 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. In one embodiment, the touch panel 831 can cover the display panel 841, and when the touch panel 831 detects a touch operation on or near it, the touch operation is sent to the processor 880 to determine the type of the touch event, and then the processor 880 according to The type of touch event provides a corresponding visual output on the display panel 841 . Although in FIG. 8 , the touch panel 831 and the display panel 841 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 831 and the display panel 841 can be integrated and Realize the input and output functions of the mobile phone.

手机800还可包括至少一种传感器850,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板841的亮度,接近传感器可在手机移动到耳边时,关闭显示面板841和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。Cell phone 800 may also include at least one sensor 850, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 841 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 841 and/or or backlight. The motion sensor can include an acceleration sensor, through which the magnitude of acceleration in various directions can be detected, and the magnitude and direction of gravity can be detected when stationary, and can be used for applications that recognize the attitude of a mobile phone (such as switching between horizontal and vertical screens), vibration recognition related functions (such as pedometer, tap), etc.; in addition, the mobile phone can also be equipped with gyroscope, barometer, hygrometer, thermometer, infrared sensor and other sensors.

音频电路860、扬声器861和传声器862可提供用户与手机之间的音频接口。音频电路860可将接收到的音频数据转换后的电信号,传输到扬声器861,由扬声器861转换为声音信号输出;另一方面,传声器862将收集的声音信号转换为电信号,由音频电路860接收后转换为音频数据,再将音频数据输出处理器880处理后,经RF电路810可以发送给另一手机,或者将音频数据输出至存储器820以便后续处理。Audio circuitry 860, speaker 861 and microphone 862 may provide an audio interface between the user and the handset. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the speaker 861 converts it into an audio signal for output; After being received, it is converted into audio data, and after being processed by the output processor 880, the audio data can be sent to another mobile phone through the RF circuit 810, or the audio data can be output to the memory 820 for subsequent processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块870可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了WiFi模块870,但是可以理解的是,其并不属于手机800的必须构成,可以根据需要而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 870. It provides users with wireless broadband Internet access. Although FIG. 8 shows a WiFi module 870, it can be understood that it is not an essential component of the mobile phone 800 and can be omitted as required.

处理器880是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器820内的软件程序和/或模块,以及调用存储在存储器820内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器880可包括一个或多个处理单元。在一个实施例中,处理器880可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器880中。The processor 880 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 820, and calling data stored in the memory 820, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. In one embodiment, processor 880 may include one or more processing units. In one embodiment, the processor 880 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc.; the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 880 .

手机800还包括给各个部件供电的电源890(比如电池),优选的,电源可以通过电源管理系统与处理器880逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 800 also includes a power supply 890 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 880 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.

在一个实施例中,手机800还可以包括摄像头、蓝牙模块等。In one embodiment, the mobile phone 800 may also include a camera, a Bluetooth module, and the like.

在本申请实施例中,该移动终端所包括的处理器880执行存储在存储器上的计算机程序时实现以下步骤:In the embodiment of the present application, the processor 880 included in the mobile terminal implements the following steps when executing the computer program stored in the memory:

根据移动终端的移动轨迹依次获取能够为所述移动终端提供通信服务的目标无线接入设备的网络信息,形成当前网络轨迹表;Obtaining network information of target wireless access devices capable of providing communication services for the mobile terminal in sequence according to the mobile terminal's movement trajectory, forming a current network trajectory table;

调用预设网络轨迹表,所述预设网络轨迹表用于至少存储所述移动终端按照第一预设轨迹移动时所对应的目标无线接入设备的网络信息;所述第一预设轨迹为移动终端离开可用无线接入设备的无线局域网覆盖区域的移动轨迹;calling a preset network track table, the preset network track table is used to at least store the network information of the target wireless access device corresponding to the mobile terminal when moving according to the first preset track; the first preset track is The mobile trajectory of the mobile terminal leaving the coverage area of the wireless local area network of the available wireless access equipment;

当所述当前网络轨迹表中的网络信息与所述第一预设轨迹对应的网络信息一致时,启用扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描。When the network information in the current network track table is consistent with the network information corresponding to the first preset track, enable a scanning switching strategy, and switch the active scanning mode to the passive scanning mode to scan the wireless local area network.

移动终端所包括的处理器880执行存储在存储器上的计算机程序时,当所述当前网络轨迹表中的网络信息与所述第一预设轨迹对应的网络信息一致时,则表明移动终端已经离开了任意可用无线接入设备的无线局域网的覆盖区域,此时,启动扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描,能够节省功耗,提高续航能力,可以减少辐射,同时也不会影响用户的体验。When the processor 880 included in the mobile terminal executes the computer program stored in the memory, when the network information in the current network track table is consistent with the network information corresponding to the first preset track, it indicates that the mobile terminal has left At this time, start the scanning switching strategy, switch the active scanning mode to the passive scanning mode to scan the wireless local area network, which can save power consumption, improve battery life, and reduce radiation , without affecting the user experience.

本申请实施例还提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如下步骤:The embodiment of the present application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to perform the following steps:

根据移动终端的移动轨迹依次获取能够为所述移动终端提供通信服务的目标无线接入设备的网络信息,形成当前网络轨迹表;Obtaining network information of target wireless access devices capable of providing communication services for the mobile terminal in sequence according to the mobile terminal's movement trajectory, forming a current network trajectory table;

调用预设网络轨迹表,所述预设网络轨迹表用于至少存储所述移动终端按照第一预设轨迹移动时所对应的目标无线接入设备的网络信息;所述第一预设轨迹为移动终端离开可用无线接入设备的无线局域网覆盖区域的移动轨迹;calling a preset network track table, the preset network track table is used to at least store the network information of the target wireless access device corresponding to the mobile terminal when moving according to the first preset track; the first preset track is The mobile trajectory of the mobile terminal leaving the coverage area of the wireless local area network of the available wireless access equipment;

当所述当前网络轨迹表中的网络信息与所述第一预设轨迹对应的网络信息一致时,启用扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描。When the network information in the current network track table is consistent with the network information corresponding to the first preset track, enable a scanning switching strategy, and switch the active scanning mode to the passive scanning mode to scan the wireless local area network.

包含指令的计算机程序产品,当其在计算机上运行时,当所述当前网络轨迹表中的网络信息与所述第一预设轨迹对应的网络信息一致时,则表明移动终端已经离开了任意可用无线接入设备的无线局域网的覆盖区域,此时,启动扫描切换策略,将主动扫描方式切换为被动扫描方式来对无线局域网进行扫描,能够节省功耗,提高续航能力,可以减少辐射,同时也不会影响用户的体验。A computer program product containing instructions, when running on a computer, when the network information in the current network track table is consistent with the network information corresponding to the first preset track, it indicates that the mobile terminal has left any available The coverage area of the wireless LAN of the wireless access device. At this time, start the scanning switching strategy and switch the active scanning mode to the passive scanning mode to scan the wireless LAN, which can save power consumption, improve battery life, reduce radiation, and also It will not affect the user experience.

本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Suitable nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (10)

  1. A kind of 1. mobile terminal wireless local area network scan method, it is characterised in that including:
    The Target Wireless of communication service can be provided for the mobile terminal by, which being obtained successively according to the motion track of mobile terminal, connects Enter the network information of equipment, form current network track table;
    Default network path table is called, the default network path table is preset at least storing the mobile terminal according to first The network information of track Target Wireless access device corresponding when moving;First desired guiding trajectory leaves for mobile terminal can With the motion track of the WLAN overlay area of radio reception device;
    When the network information corresponding with first desired guiding trajectory of the network information in the table of the current network track is consistent, open With scanning switchover policy, drive sweep mode is switched to be scanned WLAN active scan mode.
  2. 2. according to the method for claim 1, it is characterised in that before the default network path table of the calling, in addition to:
    When mobile terminal leaves the WLAN overlay area of the available wireless access device, record is currently able to as institute State mobile terminal and the network information corresponding to the Target Wireless access device of communication service is provided;
    The one-level radio reception device of the available wireless access device is obtained according to the network information;
    When mobile terminal leaves the one-level radio reception device WLAN overlay area, obtain two level wireless access and set Standby, it can be described when leaving the one-level radio reception device WLAN overlay area that the two level access device, which is, Mobile terminal provides the radio reception device of maximum intensity signal;
    By the mobile terminal from the available wireless access device through the one-level radio reception device be moved to two level without The track definition of line access device is the described first default motion track;
    The default net is formed according to the default motion track of the one-level radio reception device, two level radio reception device and first Network track table.
  3. 3. according to the method for claim 2, it is characterised in that also include:
    Obtain mobile terminal leave the available wireless access device WLAN overlay area and/or the one-level it is wireless The azimuth information of the WLAN overlay area of access device;
    The default network path table is updated according to the azimuth information.
  4. 4. according to the method for claim 1, it is characterised in that the default network path table is used to store the movement eventually The network information of end Target Wireless access device corresponding when being moved according to the second desired guiding trajectory;Second desired guiding trajectory is Mobile terminal enters the motion track of the WLAN overlay area of the available wireless access device.
  5. 5. according to the method for claim 4, it is characterised in that also include:
    , will when the network information corresponding with second desired guiding trajectory of the network information in the table of the current network track is consistent Drive sweep mode switches to active scan mode to be scanned WLAN.
  6. 6. according to the method for claim 5, it is characterised in that also include:
    When being linked into the WLAN using active scan mode, the active scan mode is switched into drive sweep Mode.
  7. 7. according to the method for claim 1, it is characterised in that also include:
    When using active scan mode Wlan scanning, increase scan frequency;
    When using drive sweep mode Wlan scanning, scan frequency is reduced.
  8. A kind of 8. mobile terminal wireless local area network scan device, it is characterised in that including:
    Network path forms module, for obtaining can be provided for the mobile terminal successively according to the motion track of mobile terminal The network information of the Target Wireless access device of communication service, form current network track table;
    Network path calling module, for calling default network path table, the default network path table is used at least store institute State the network information of Target Wireless access device corresponding when mobile terminal moves according to the first desired guiding trajectory;Described first is pre- If track is the track that mobile terminal leaves available wireless access device;
    Scan control module, for when the network information in the table of the current network track it is corresponding with first desired guiding trajectory When the network information is consistent, scanning switchover policy is enabled, switches to drive sweep mode to come to wireless local active scan mode Net is scanned.
  9. 9. a kind of computer equipment, including memory and processor, computer-readable instruction is stored in the memory, it is described Instruction by the computing device when so that the computing device as any one of claim 1 to 7 mobile terminal without The step of line local area network scan method.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program Realized when being executed by processor as any one of claim 1 to 7 the step of mobile terminal wireless local area network scan method.
CN201711242777.9A 2017-11-30 2017-11-30 Mobile terminal wireless local area network scanning method and device, computer equipment Active CN107896381B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711242777.9A CN107896381B (en) 2017-11-30 2017-11-30 Mobile terminal wireless local area network scanning method and device, computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711242777.9A CN107896381B (en) 2017-11-30 2017-11-30 Mobile terminal wireless local area network scanning method and device, computer equipment

Publications (2)

Publication Number Publication Date
CN107896381A true CN107896381A (en) 2018-04-10
CN107896381B CN107896381B (en) 2020-08-04

Family

ID=61807141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711242777.9A Active CN107896381B (en) 2017-11-30 2017-11-30 Mobile terminal wireless local area network scanning method and device, computer equipment

Country Status (1)

Country Link
CN (1) CN107896381B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738857A (en) * 2020-12-30 2021-04-30 维沃移动通信有限公司 Network switching method and device, electronic equipment and readable storage medium
CN114189798A (en) * 2020-09-15 2022-03-15 青岛海信移动通信技术股份有限公司 Method and equipment for determining scanning interval of Wireless Local Area Network (WLAN) network
CN115604818A (en) * 2022-10-19 2023-01-13 中国标准化研究院(Cn) Positioning method based on sensor and recording system thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101365246A (en) * 2007-04-26 2009-02-11 捷讯研究有限公司 Predicting user availability from aggregated signal strength data
US20120327898A1 (en) * 2011-06-24 2012-12-27 Accton Technology Corporation Method of controlling the connection of station and access points
CN105407473A (en) * 2015-10-22 2016-03-16 小米科技有限责任公司 Wireless local area network discovery method and apparatus
CN105898705A (en) * 2016-06-24 2016-08-24 维沃移动通信有限公司 Method for controlling scanning frequency of wireless local area network and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101365246A (en) * 2007-04-26 2009-02-11 捷讯研究有限公司 Predicting user availability from aggregated signal strength data
US20120327898A1 (en) * 2011-06-24 2012-12-27 Accton Technology Corporation Method of controlling the connection of station and access points
CN105407473A (en) * 2015-10-22 2016-03-16 小米科技有限责任公司 Wireless local area network discovery method and apparatus
CN105898705A (en) * 2016-06-24 2016-08-24 维沃移动通信有限公司 Method for controlling scanning frequency of wireless local area network and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189798A (en) * 2020-09-15 2022-03-15 青岛海信移动通信技术股份有限公司 Method and equipment for determining scanning interval of Wireless Local Area Network (WLAN) network
CN112738857A (en) * 2020-12-30 2021-04-30 维沃移动通信有限公司 Network switching method and device, electronic equipment and readable storage medium
CN115604818A (en) * 2022-10-19 2023-01-13 中国标准化研究院(Cn) Positioning method based on sensor and recording system thereof
CN115604818B (en) * 2022-10-19 2023-06-06 中国标准化研究院 Positioning method based on sensor and recording system thereof

Also Published As

Publication number Publication date
CN107896381B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
CN107820331B (en) Call method, device, computer equipment and readable storage medium
US11258708B2 (en) Communication method and communications apparatus
WO2018103492A1 (en) Method for setting wifi roaming, and terminal device
WO2017080378A1 (en) Method implementing licensed-assisted access, network equipment, and terminal equipment
CN107949040B (en) Wireless local area network scanning method and device, computer equipment and storage medium
CN107820302B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
US10813057B2 (en) Method for processing information and terminal device
CN107820301B (en) Control method, device, terminal and storage medium of wireless local area network switch
CN107846723B (en) Wireless local area network scanning method and device, computer equipment and storage medium
CN108040357B (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
KR20120033788A (en) Apparatus and method for providing service corresponding to a service zone
CN108471626B (en) Reporting method and detection method of UE (user equipment) capability, mobile terminal and server
CN107820303B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
KR102500710B1 (en) Method for establishing hotspot connection, and terminal device
CN107969025B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
CN107896381B (en) Mobile terminal wireless local area network scanning method and device, computer equipment
CN107896385B (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
US11212670B2 (en) Detecting method of UE capability, reporting method of UE capability, mobile terminal and server
CN108012304B (en) Wireless local area network scanning method and device, computer equipment and storage medium
CN113472474B (en) Information transmission method, user terminal and access network element
WO2021068969A1 (en) Network attachment method and user equipment
WO2017076279A1 (en) Method of updating forward information base item, and device and system utilizing same
EP4246908A1 (en) Communication system, method and apparatus
CN112740827B (en) Network communication processing method, computer-readable storage medium, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant