[go: up one dir, main page]

CN106604277B - A wireless network access method and mobile terminal - Google Patents

A wireless network access method and mobile terminal Download PDF

Info

Publication number
CN106604277B
CN106604277B CN201611143075.0A CN201611143075A CN106604277B CN 106604277 B CN106604277 B CN 106604277B CN 201611143075 A CN201611143075 A CN 201611143075A CN 106604277 B CN106604277 B CN 106604277B
Authority
CN
China
Prior art keywords
mobile terminal
wireless network
beacon frame
frame signal
wifi module
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.)
Expired - Fee Related
Application number
CN201611143075.0A
Other languages
Chinese (zh)
Other versions
CN106604277A (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 CN201611143075.0A priority Critical patent/CN106604277B/en
Publication of CN106604277A publication Critical patent/CN106604277A/en
Application granted granted Critical
Publication of CN106604277B publication Critical patent/CN106604277B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • 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)

Abstract

The embodiment of the invention discloses an access method of a wireless network and a mobile terminal, comprising the following steps: when the WiFi module of the mobile terminal is judged not to be accessed to a wireless network and the system of the mobile terminal is in a standby state, receiving and recording at least one Beacon frame signal through the WiFi module; when the system is detected to be switched from the standby state to the awakening state, at least one Beacon frame signal recorded by the WiFi module is acquired, and the corresponding wireless network is accessed according to the at least one Beacon frame signal. The embodiment of the invention also discloses a corresponding mobile terminal. The embodiment of the invention is beneficial to reducing the power consumption of the mobile terminal and prolonging the endurance time of the mobile terminal.

Description

一种无线网络的接入方法及移动终端A wireless network access method and mobile terminal

技术领域technical field

本发明涉及移动终端技术领域,具体涉及一种无线网络的接入方法及移动终端。The present invention relates to the technical field of mobile terminals, in particular to a wireless network access method and a mobile terminal.

背景技术Background technique

随着计算机技术的发展,各种移动终端(诸如笔记本电脑、平板电脑、智能手机、个人数字助理等电子设备)蜂拥而现,给人们的生活和工作带来了极大的方便。例如,人们可以通过智能手机进行通话、拍照、听音乐、玩游戏、定位等。无线网络技术是一种可以将不同的终端以无线方式互相连接的技术。WiFi(Wireless Fidelity,无线保真),作为其中的一种无线网络技术,可以通过无线电波进行联网,具有数据传输速度快、不受布线、安全性高等优点。对于各种具有WiFi功能的终端,都可以在无线路由器的电波覆盖的有效范围内采用WiFi连接方式与该无线路由器建立连接,从而实现联网。With the development of computer technology, all kinds of mobile terminals (such as notebook computers, tablet computers, smart phones, personal digital assistants and other electronic devices) flock to appear, which brings great convenience to people's life and work. For example, people can make calls, take pictures, listen to music, play games, locate and so on through their smartphones. Wireless network technology is a technology that can wirelessly connect different terminals to each other. WiFi (Wireless Fidelity, Wireless Fidelity), as one of the wireless network technologies, can be networked through radio waves, and has the advantages of fast data transmission speed, no wiring, and high security. For various terminals with WiFi function, a WiFi connection method can be used to establish a connection with the wireless router within the effective range of the radio wave coverage of the wireless router, so as to realize networking.

然而,对于手机、平板电脑等移动终端来说,其受限于电池容量的限制,即便是搭载了超大容量的电池,也面临一天一充电的尴尬局面。现在在手机待机时,若WiFi打开但没有连接路由器,手机上层软件会定时唤醒系统,上层软件自动发起主动扫描命令,底层软件在接收到主动扫描命令后,将主动扫描命令传输到WiFi模块内部,WiFi模块开始主动扫描,主动扫描结束后,将扫描结果上报给软件,通过软件显示出来。上述过程中移动终端唤醒时间长,进而会导致移动终端的功耗增加、续航时间短。However, for mobile terminals such as mobile phones and tablet computers, they are limited by the limitation of battery capacity. Even if they are equipped with super-capacity batteries, they are also faced with the embarrassing situation of charging once a day. Now when the mobile phone is in standby, if the WiFi is turned on but not connected to the router, the upper-layer software of the mobile phone will wake up the system regularly, and the upper-layer software will automatically initiate an active scan command. The WiFi module starts active scanning. After the active scanning is over, the scanning results are reported to the software and displayed through the software. In the above process, the wake-up time of the mobile terminal is long, which in turn leads to increased power consumption and short battery life of the mobile terminal.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种无线网络的接入方法及移动终端,以期降低移动终端接入无线网络所产生的功耗,延长移动终端的续航时间短。Embodiments of the present invention provide a wireless network access method and a mobile terminal, so as to reduce the power consumption generated by the mobile terminal accessing the wireless network and prolong the short battery life of the mobile terminal.

第一方面,本发明实施例提供一种无线网络的接入方法,包括:In a first aspect, an embodiment of the present invention provides a wireless network access method, including:

在判断出移动终端WiFi模块未接入无线网络,且所述移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号;When it is determined that the WiFi module of the mobile terminal is not connected to the wireless network and the system of the mobile terminal is in a standby state, receive and record at least one beacon frame signal through the WiFi module;

在检测到所述系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络。When it is detected that the system is switched from the standby state to the wake-up state, at least one Beacon frame signal recorded by the WiFi module is acquired, and a corresponding wireless network is accessed according to the at least one Beacon frame signal.

第二方面,本发明实施例提供了一种移动终端,包括:In a second aspect, an embodiment of the present invention provides a mobile terminal, including:

接收单元,用于在判断出移动终端WiFi模块未接入无线网络,且所述移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号;a receiving unit, configured to receive and record at least one beacon frame signal through the WiFi module when it is determined that the WiFi module of the mobile terminal is not connected to a wireless network and the system of the mobile terminal is in a standby state;

连接单元,用于在检测到所述系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络。a connection unit, configured to acquire at least one Beacon frame signal recorded by the WiFi module when it is detected that the system is switched from the standby state to the wake-up state, and access the corresponding wireless network according to the at least one Beacon frame signal .

第三方面,本发明实施例提供了一种移动终端,包括:In a third aspect, an embodiment of the present invention provides a mobile terminal, including:

处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线连接并完成相互间的通信;a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface are connected through the communication bus and complete mutual communication;

所述存储器存储有可执行程序代码,所述通信接口用于无线通信;The memory stores executable program codes, and the communication interface is used for wireless communication;

所述处理器用于调用所述存储器中的所述可执行程序代码,执行本发明实施例第一方面任一方法中所描述的部分或全部步骤。The processor is configured to call the executable program code in the memory to execute part or all of the steps described in any method in the first aspect of the embodiments of the present invention.

可以看出,本发明实施例提供的无线网络的接入方法中,移动终端在判断出WiFi模块未接入无线网络,且移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号,在检测到所述系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络。可见,移动终端在判断出未接入无线网络且处于待机状态时,采取被动扫描代替主动扫描获取可以接入的接入点,并仅在检测到系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络,否则不唤醒系统。相对于现有技术来说,减少系统唤醒时间,同时,被动扫描过程无需发送任何的信号,基于接收的Beacon帧信号接入无线网络,从而有利于移动终端能够降低功耗、延长移动终端续航时间。It can be seen that in the wireless network access method provided by the embodiment of the present invention, when the mobile terminal determines that the WiFi module is not connected to the wireless network and the system of the mobile terminal is in a standby state, the mobile terminal receives and records at least A beacon Beacon frame signal, when it is detected that the system is switched from the standby state to the wake-up state, obtain at least one Beacon frame signal recorded by the WiFi module, and access the corresponding Beacon frame signal according to the at least one Beacon frame signal. wireless network. It can be seen that when the mobile terminal determines that it is not connected to the wireless network and is in the standby state, it adopts passive scanning instead of active scanning to obtain access points that can be accessed, and only when it detects that the system is switched from the standby state to the wake-up state, Acquire at least one Beacon frame signal recorded by the WiFi module, and access the corresponding wireless network according to the at least one Beacon frame signal, otherwise the system is not woken up. Compared with the prior art, it reduces the wake-up time of the system, and at the same time, the passive scanning process does not need to send any signals, and accesses the wireless network based on the received Beacon frame signal, which is beneficial for the mobile terminal to reduce power consumption and prolong the battery life of the mobile terminal. .

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying 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 invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1是本发明实施例公开的一种无线网络的接入方法的流程示意图;1 is a schematic flowchart of a method for accessing a wireless network disclosed in an embodiment of the present invention;

图2是本发明实施例公开的另一种无线网络的接入方法的流程示意图;2 is a schematic flowchart of another wireless network access method disclosed in an embodiment of the present invention;

图3是本发明实施例公开的一种移动终端的单元组成框图;3 is a block diagram of a unit composition of a mobile terminal disclosed in an embodiment of the present invention;

图4是本发明实施例公开的一种移动终端的结构示意图;4 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present invention;

图5是本发明实施例公开的另一种移动终端的结构示意图。FIG. 5 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

为了更好理解本发明实施例公开的一种无线网络的接入方法及移动终端,下面对本发明实施例进行详细介绍。In order to better understand a method for accessing a wireless network and a mobile terminal disclosed in the embodiments of the present invention, the embodiments of the present invention are described in detail below.

请参阅图1,图1是本发明实施例提供的一种无线网络的接入方法的流程示意图,如图1所示,本发明实施例中的无线网络的接入方法包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for accessing a wireless network according to an embodiment of the present invention. As shown in FIG. 1, the method for accessing a wireless network in the embodiment of the present invention includes the following steps:

S101、移动终端在判断出移动终端WiFi模块未接入无线网络,且所述移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号。S101. When determining that the WiFi module of the mobile terminal is not connected to a wireless network and the system of the mobile terminal is in a standby state, the mobile terminal receives and records at least one beacon frame signal through the WiFi module.

具体地,待机状态指手机或电脑等电子设备开机但是不进行任何实质性工作(例如不对文件和程序的各种操作)的状态,其中,手机工作在等待状态时称为手机处于待机状态。移动终端WiFi模块未接入无线网络为移动终端WiFi模块打开但是没有连接任何接入点,例如通过WiFi连接下载文件但是中图断开的情况。即,在手机待机时,同时WiFi模块打开但没有连接路由时,下发一条命令给WiFi模块,表明当前的连接状态,WiFi模块在接收上层命令后,进入定期接收beacon帧信号模式。Specifically, the standby state refers to a state in which an electronic device such as a mobile phone or a computer is turned on but does not perform any substantive work (eg, no operations on files and programs). The WiFi module of the mobile terminal is not connected to the wireless network is that the WiFi module of the mobile terminal is turned on but is not connected to any access point, for example, the case of downloading files through WiFi connection but disconnected in the middle picture. That is, when the mobile phone is in standby and the WiFi module is turned on but no route is connected, a command is sent to the WiFi module to indicate the current connection status. After receiving the upper-layer command, the WiFi module enters the mode of regularly receiving beacon frame signals.

其中,所述通过所述WiFi模块接收并记录至少一个信标Beacon帧信号的具体实现方式可以是:当当前信道的信道编号为未处理过的信道编号时,切换至所述当前信道,通过所述WiFi模块在预设时长范围内在所述当前信道接收Beacon帧信号,并在接收到Beacon帧信号时,在预设的Beacon帧信号集合中记录所述接收到的Beacon帧信号,以及在所述预设时长之后根据信道列表更新当前信道的信道编号为未处理过的信道编号。Wherein, the specific implementation of receiving and recording at least one beacon frame signal through the WiFi module may be: when the channel number of the current channel is an unprocessed channel number, switch to the current channel, The WiFi module receives a Beacon frame signal on the current channel within a preset duration range, and when receiving a Beacon frame signal, records the received Beacon frame signal in a preset Beacon frame signal set, and records the received Beacon frame signal in the Beacon frame signal set. After the preset time period, the channel number of the current channel is updated to the unprocessed channel number according to the channel list.

具体地,移动终端与无线接入点连接的过程大致可以分为:扫描(Scanning)、认证(Authentication)、关联(Association)等三个过程。具体地,当用户在手机上点击打开WIFI时,WIFI模块通电运行起来,当然也会相应加载WIFI的驱动程序。打开完成后,手机上显示搜索到附近的WIFI热点,这个搜索过程就是扫描(Scanning)的过程,扫描的目的就是要找到一个无线网络,然后加入到该网络中。要加入一个无线网络,那么就需要找到它的网络名称,即SSID。这个SSID其实是无线接入点(Access Point)回应工作站扫描时所带的参数,还有其它的网络参数,包括BSSID(可理解为接入点的MAC地址)、信号强度、加密和认证方式等。扫描类型分两种,一种是主动扫描(active scanning),另一种是被动扫描(passivescanning)。上述步骤S102中通过所述WiFi模块接收并记录至少一个信标Beacon帧信号的过程就是被动扫描的过程。Specifically, the process of connecting the mobile terminal to the wireless access point can be roughly divided into three processes: scanning (Scanning), authentication (Authentication), and association (Association). Specifically, when the user clicks to open the WIFI on the mobile phone, the WIFI module is powered on and runs, and of course the WIFI driver will be loaded accordingly. After the opening is completed, the mobile phone displays that the nearby WIFI hotspots have been searched. This search process is the process of scanning. The purpose of scanning is to find a wireless network and then join the network. To join a wireless network, you need to find its network name, which is the SSID. This SSID is actually the parameter that the wireless access point (Access Point) takes when responding to the workstation scan, as well as other network parameters, including BSSID (which can be understood as the MAC address of the access point), signal strength, encryption and authentication methods, etc. . There are two types of scanning, one is active scanning and the other is passive scanning. The process of receiving and recording at least one beacon frame signal by the WiFi module in the above step S102 is a process of passive scanning.

S102、移动终端在检测到所述系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络。S102. When detecting that the system is switched from the standby state to the awake state, the mobile terminal acquires at least one Beacon frame signal recorded by the WiFi module, and accesses the corresponding wireless network according to the at least one Beacon frame signal.

具体地,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号后,如果上层软件唤醒系统,就将记录的至少一个信标Beacon帧信号给上层软件通报,反之不唤醒系统。Specifically, after receiving and recording at least one beacon frame signal through the WiFi module, if the upper-layer software wakes up the system, the recorded at least one beacon frame signal will be notified to the upper-layer software, otherwise the system will not be woken up.

其中,所述获取所述WiFi模块记录的至少一个Beacon帧信号的具体实现方式可以是:从所述预设的Beacon帧信号集合中获取所述WiFi模块记录的至少一个Beacon帧信号。Wherein, the specific implementation manner of acquiring at least one Beacon frame signal recorded by the WiFi module may be: acquiring at least one Beacon frame signal recorded by the WiFi module from the preset Beacon frame signal set.

所述,所述根据所述至少一个Beacon帧信号接入对应的无线网络的具体实现方式可以是:The specific implementation manner of accessing the corresponding wireless network according to the at least one Beacon frame signal may be:

在屏幕上显示所述至少一个Beacon帧信号对应的至少一个无线网络标识,所述至少一个无线网络标识包括目标无线网络标识;当检测到针对所述目标无线网络标识的选取操作时,获取录入的接入认证信息;向所述目标无线网络标识对应的第一无线接入点发送所述第一接入认证信息,所述第一接入认证信息用于所述目标无线网络标识对应的第一无线接入点在确认所述移动终端的身份后,将所述移动终端关联至第一无线网络。At least one wireless network identifier corresponding to the at least one Beacon frame signal is displayed on the screen, and the at least one wireless network identifier includes the target wireless network identifier; when a selection operation for the target wireless network identifier is detected, the entered access authentication information; send the first access authentication information to the first wireless access point corresponding to the target wireless network identifier, where the first access authentication information is used for the first access authentication information corresponding to the target wireless network identifier After confirming the identity of the mobile terminal, the wireless access point associates the mobile terminal with the first wireless network.

可以看出,本发明实施例提供的无线网络的接入方法中,移动终端在判断出WiFi模块未接入无线网络,且移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号,在检测到所述系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络。可见,移动终端在判断出未接入无线网络且处于待机状态时,采取被动扫描代替主动扫描获取可以接入的接入点,并仅在检测到系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络,否则不唤醒系统。相对于现有技术来说,减少唤醒时间,同时,被动扫描过程无需发送任何的信号,基于接收的Beacon帧信号接入无线网络,从而有利于移动终端能够降低功耗、延长移动终端续航时间。It can be seen that in the wireless network access method provided by the embodiment of the present invention, when the mobile terminal determines that the WiFi module is not connected to the wireless network and the system of the mobile terminal is in a standby state, the mobile terminal receives and records at least A beacon Beacon frame signal, when it is detected that the system is switched from the standby state to the wake-up state, obtain at least one Beacon frame signal recorded by the WiFi module, and access the corresponding Beacon frame signal according to the at least one Beacon frame signal. wireless network. It can be seen that when the mobile terminal determines that it is not connected to the wireless network and is in the standby state, it adopts passive scanning instead of active scanning to obtain access points that can be accessed, and only when it detects that the system is switched from the standby state to the wake-up state, Acquire at least one Beacon frame signal recorded by the WiFi module, and access the corresponding wireless network according to the at least one Beacon frame signal, otherwise the system is not woken up. Compared with the prior art, the wake-up time is reduced, and at the same time, the passive scanning process does not need to send any signals, and accesses the wireless network based on the received Beacon frame signal, which is beneficial for the mobile terminal to reduce power consumption and prolong the battery life of the mobile terminal.

可选的,所述在判断出移动终端WiFi模块未接入无线网络,且所述移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号之前,所述移动终端还可以执行以下操作:Optionally, when it is determined that the WiFi module of the mobile terminal is not connected to a wireless network and the system of the mobile terminal is in a standby state, before receiving and recording at least one beacon frame signal through the WiFi module, the The mobile terminal can also perform the following operations:

发送探测请求Probe Request帧;检测是否接收到第二无线接入点响应所述ProbeRequest帧而生成的探测响应Probe Response帧;在检测接收到第二无线接入点响应所述Probe Request帧而生成的探测响应Probe Response帧时,向所述第二无线接入点发送第二接入认证信息,所述第二接入认证信息用于所述第二无线接入点在确认所述移动终端的身份后,将所述移动终端关联至第二无线网络。Sending a probe request Probe Request frame; detecting whether a probe response Probe Response frame generated by the second wireless access point in response to the ProbeRequest frame is received; When the probe responds to the Probe Response frame, send second access authentication information to the second wireless access point, where the second access authentication information is used by the second wireless access point to confirm the identity of the mobile terminal Then, the mobile terminal is associated with the second wireless network.

与上述图1所示的实施例一致的,请参阅图2,图2是本发明实施例提供的另一种无线网络的接入方法的流程示意图。如图2所示,本发明实施例中的无线网络的接入方法包括:Consistent with the embodiment shown in FIG. 1 above, please refer to FIG. 2 , which is a schematic flowchart of another wireless network access method provided by an embodiment of the present invention. As shown in FIG. 2 , a method for accessing a wireless network in an embodiment of the present invention includes:

S201、移动终端发送探测请求Probe Request帧。S201. The mobile terminal sends a Probe Request frame of a probe request.

S202、移动终端检测是否接收到第二无线接入点响应所述Probe Request帧而生成的探测响应P robe Response帧。S202. The mobile terminal detects whether a probe response Probe Response frame generated by the second wireless access point in response to the Probe Request frame is received.

S203、移动终端在检测接收到第二无线接入点响应所述Probe Request帧而生成的探测响应Probe Response帧时,向所述第二无线接入点发送第二接入认证信息,所述第二接入认证信息用于所述第二无线接入点在确认所述移动终端的身份后,将所述移动终端关联至第二无线网络。S203. When detecting and receiving a probe response Probe Response frame generated by the second wireless access point in response to the Probe Request frame, the mobile terminal sends second access authentication information to the second wireless access point. The second access authentication information is used by the second wireless access point to associate the mobile terminal with the second wireless network after confirming the identity of the mobile terminal.

具体地,上述步骤S201至S203为主动扫描过程。即手机(工作站STA)以主动的方式,在每个信道上发出Probe Request帧,请求某个特定无线网络予以回应。主动扫描是主动寻找网络,而不是静候无线网络声明本身的存在。使用主动扫描的工作站将会以如下的程序扫描信道表所列的频道:(1)跳至某个信道,然后等候来帧指示(indicationof anincoming frame)或者等到ProbeDelay定时器超时。如果在这个信道收到帧,就证明该信道有用户在使用,因此可以加以探测。而ProbeDelay定时器可用来防止某个闲置信道让整个过程停止,因为工作站不会一直等待帧的到来。(2)利用基本的DCF访问过程取得媒介使用权,然后送出一个Probe Request帧。(3)至少等候一段最短的信道时间(即MinChannelTime)。a.如果媒介并不忙碌,表示没有网络存在,因此可以跳至下个信道。b.如果在MinChannelTime这段期间媒介非常忙碌,就继续等候一段时间,直到最长的信道时间(即MaxChannelTime)超时,然后处理任何的Probe Response帧。当手机进行WIFI热点搜索时,有时时间会比较长,原因是你处在的区域存在多个接入点(AP),当手机发出ProbeRequest帧时,多个接入点(AP)通过竞争窗口(congestionwindow)回应Probe Response帧,而这个竞争过程受限于最长的信道时间(即MaxChannelTime)。当无线网络收到搜寻其所属的扩展服务集(ESS)的Probe Request时,就会发出Probe Response帧。若要找到附近所有的无线网络,那么Probe Request帧可使用broadcastSSID,如此一来,该区所有的802.11无线网络都会以Probe Response加以回应。Specifically, the above steps S201 to S203 are active scanning processes. That is, the mobile phone (station STA) sends out a Probe Request frame on each channel in an active manner, requesting a specific wireless network to respond. Active scanning is actively looking for a network, rather than waiting for the wireless network to declare itself. A station using active scanning will scan the channels listed in the channel table with the following procedure: (1) Jump to a channel, then wait for an indication of an incoming frame or wait until the ProbeDelay timer expires. If a frame is received on this channel, it proves that the channel is being used by a user and can therefore be probed. And the ProbeDelay timer can be used to prevent an idle channel from stopping the whole process, because the station does not keep waiting for the arrival of the frame. (2) Use the basic DCF access process to obtain the right to use the medium, and then send a Probe Request frame. (3) Wait at least for the shortest channel time (ie MinChannelTime). a. If the medium is not busy, it means that there is no network, so you can skip to the next channel. b. If the medium is very busy during the MinChannelTime period, continue to wait for a period of time until the longest channel time (ie, MaxChannelTime) times out, and then process any Probe Response frames. When the mobile phone searches for WIFI hotspots, it sometimes takes a long time because there are multiple access points (APs) in the area you are in. When the mobile phone sends a ProbeRequest frame, multiple access points (APs) pass through the competition window ( congestionwindow) responds to the Probe Response frame, and this contention process is limited by the longest channel time (ie, MaxChannelTime). When a wireless network receives a Probe Request searching for the Extended Service Set (ESS) to which it belongs, it sends out a Probe Response frame. To find all nearby wireless networks, the Probe Request frame can use the broadcastSSID, so that all 802.11 wireless networks in the area will respond with a Probe Response.

S204、在判断出移动终端WiFi模块未接入无线网络,且所述移动终端的系统处于待机状态时,当当前信道的信道编号为未处理过的信道编号时,切换至所述当前信道,通过所述WiFi模块在预设时长范围内在所述当前信道接收Beacon帧信号,并在接收到Beacon帧信号时,在预设的Beacon帧信号集合中记录所述接收到的Beacon帧信号,以及在所述预设时长之后根据信道列表更新当前信道的信道编号为未处理过的信道编号。S204. When it is determined that the WiFi module of the mobile terminal is not connected to the wireless network and the system of the mobile terminal is in a standby state, when the channel number of the current channel is an unprocessed channel number, switch to the current channel, and pass The WiFi module receives a Beacon frame signal on the current channel within a preset duration range, and when receiving the Beacon frame signal, records the received Beacon frame signal in a preset Beacon frame signal set, and records the received Beacon frame signal in the set of Beacon frame signals. After the preset time period, the channel number of the current channel is updated to the unprocessed channel number according to the channel list.

具体地,移动终端在信道列表(channel list)所列的各个信道之间不断切换,并静候Beacon帧的到来。所收到的任何帧都会被暂存起来,以便取出传送这些帧的BSS的相关数据。在扫描的过程中,工作站会在信道间不断切换,并且会记录来自所收到的任何Beacon的信息。Beacon在设计上是为了让工作站知道加入某个基本服务集(Basic Service Set,简称BSS)所需要的参数以便进行通信。Specifically, the mobile terminal continuously switches between the channels listed in the channel list (channel list), and waits for the arrival of the Beacon frame. Any frames received are temporarily stored for retrieval of data related to the BSS that transmitted them. During the scan, the workstation will constantly switch between channels and will log information from any Beacon it receives. Beacon is designed to let workstations know the parameters required to join a basic service set (Basic Service Set, BSS for short) in order to communicate.

S205、在检测到所述系统由所述待机状态切换至唤醒状态时,从所述预设的Beacon帧信号集合中获取所述WiFi模块记录的至少一个Beacon帧信号。S205. When it is detected that the system is switched from the standby state to the wake-up state, acquire at least one Beacon frame signal recorded by the WiFi module from the preset Beacon frame signal set.

S206、在屏幕上显示所述至少一个Beacon帧信号对应的至少一个无线网络标识,所述至少一个无线网络标识包括目标无线网络标识。S206. Display on the screen at least one wireless network identifier corresponding to the at least one Beacon frame signal, where the at least one wireless network identifier includes a target wireless network identifier.

S207、当检测到针对所述目标无线网络标识的选取操作时,获取录入的接入认证信息。S207: When a selection operation for the target wireless network identifier is detected, obtain the entered access authentication information.

S208、向所述目标无线网络标识对应的第一无线接入点发送所述第一接入认证信息,所述第一接入认证信息用于所述目标无线网络标识对应的第一无线接入点在确认所述移动终端的身份后,将所述移动终端关联至第一无线网络。S208. Send the first access authentication information to the first wireless access point corresponding to the target wireless network identifier, where the first access authentication information is used for the first wireless access point corresponding to the target wireless network identifier The point is to associate the mobile terminal with the first wireless network after confirming the identity of the mobile terminal.

可以看出,本发明实施例提供的无线网络的接入方法中,移动终端在判断出WiFi模块未接入无线网络,且移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号,在检测到所述系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络。可见,移动终端在判断出未接入无线网络且处于待机状态时,采取被动扫描代替主动扫描获取可以接入的接入点,并仅在检测到系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络,否则不唤醒系统。相对于现有技术来说,减少唤醒时间,同时,被动扫描过程无需发送任何的信号,基于接收的Beacon帧信号接入无线网络,从而有利于移动终端能够降低功耗、延长移动终端续航时间。It can be seen that in the wireless network access method provided by the embodiment of the present invention, when the mobile terminal determines that the WiFi module is not connected to the wireless network and the system of the mobile terminal is in a standby state, the mobile terminal receives and records at least A beacon Beacon frame signal, when it is detected that the system is switched from the standby state to the wake-up state, obtain at least one Beacon frame signal recorded by the WiFi module, and access the corresponding Beacon frame signal according to the at least one Beacon frame signal. wireless network. It can be seen that when the mobile terminal determines that it is not connected to the wireless network and is in the standby state, it adopts passive scanning instead of active scanning to obtain access points that can be accessed, and only when it detects that the system is switched from the standby state to the wake-up state, Acquire at least one Beacon frame signal recorded by the WiFi module, and access the corresponding wireless network according to the at least one Beacon frame signal, otherwise the system is not woken up. Compared with the prior art, the wake-up time is reduced, and at the same time, the passive scanning process does not need to send any signals, and accesses the wireless network based on the received Beacon frame signal, which is beneficial for the mobile terminal to reduce power consumption and prolong the battery life of the mobile terminal.

下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例所实现的方法。如图3所示,本发明实施例中的移动终端可以包括接收单元301和连接单元302,其中:The following are apparatus embodiments of the present invention, and the apparatus embodiments of the present invention are used to execute the methods implemented by the method embodiments of the present invention. As shown in FIG. 3 , the mobile terminal in this embodiment of the present invention may include a receiving unit 301 and a connecting unit 302, wherein:

接收单元301,用于在判断出移动终端WiFi模块未接入无线网络,且所述移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号;The receiving unit 301 is configured to receive and record at least one beacon frame signal through the WiFi module when it is determined that the WiFi module of the mobile terminal is not connected to a wireless network and the system of the mobile terminal is in a standby state;

连接单元302,用于在检测到所述系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络。The connecting unit 302 is configured to acquire at least one Beacon frame signal recorded by the WiFi module when it is detected that the system is switched from the standby state to the wake-up state, and access the corresponding wireless network according to the at least one Beacon frame signal network.

可选的,所述接收单元301,在用于通过所述WiFi模块接收并记录至少一个信标Beacon帧信号时,具体用于当当前信道的信道编号为未处理过的信道编号时,切换至所述当前信道,通过所述WiFi模块在预设时长范围内在所述当前信道接收Beacon帧信号,并在接收到Beacon帧信号时,在预设的Beacon帧信号集合中记录所述接收到的Beacon帧信号,以及在所述预设时长之后根据信道列表更新当前信道的信道编号为未处理过的信道编号。Optionally, when the receiving unit 301 is used to receive and record at least one beacon frame signal through the WiFi module, it is specifically used to switch to when the channel number of the current channel is an unprocessed channel number. For the current channel, the WiFi module receives a Beacon frame signal in the current channel within a preset duration range, and when a Beacon frame signal is received, the received Beacon frame signal is recorded in a preset Beacon frame signal set frame signal, and the channel number of the current channel is updated to be the unprocessed channel number according to the channel list after the preset time period.

可选的,所述连接单元302,在用于获取所述WiFi模块记录的至少一个Beacon帧信号时,具体用于从所述预设的Beacon帧信号集合中获取所述WiFi模块记录的至少一个Beacon帧信号。Optionally, when the connecting unit 302 is used to obtain at least one Beacon frame signal recorded by the WiFi module, it is specifically configured to obtain at least one Beacon frame signal recorded by the WiFi module from the preset Beacon frame signal set. Beacon frame signal.

可选的,所述连接单元302包括:Optionally, the connection unit 302 includes:

显示子单元3021,用于在屏幕上显示所述至少一个Beacon帧信号对应的至少一个无线网络标识,所述至少一个无线网络标识包括目标无线网络标识;A display subunit 3021, configured to display on the screen at least one wireless network identifier corresponding to the at least one Beacon frame signal, where the at least one wireless network identifier includes a target wireless network identifier;

获取子单元3022,用于当检测到针对所述目标无线网络标识的选取操作时,获取录入的接入认证信息;an acquisition subunit 3022, configured to acquire the entered access authentication information when a selection operation for the target wireless network identifier is detected;

认证子单元3023,用于向所述目标无线网络标识对应的第一无线接入点发送所述第一接入认证信息,所述第一接入认证信息用于所述目标无线网络标识对应的第一无线接入点在确认所述移动终端的身份后,将所述移动终端关联至第一无线网络。The authentication subunit 3023 is configured to send the first access authentication information to the first wireless access point corresponding to the target wireless network identifier, where the first access authentication information is used for the target wireless network identifier corresponding to the After confirming the identity of the mobile terminal, the first wireless access point associates the mobile terminal with the first wireless network.

可选的,所述移动终端还包括:Optionally, the mobile terminal further includes:

主动扫描单元303,在所述连接单元302用于在判断出移动终端WiFi模块未接入无线网络,且所述移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号之前,用于发送探测请求Probe Request帧;检测是否接收到第二无线接入点响应所述Probe Request帧而生成的探测响应Probe Response帧;在检测接收到第二无线接入点响应所述Probe Request帧而生成的探测响应Probe Response帧时,向所述第二无线接入点发送第二接入认证信息,所述第二接入认证信息用于所述第二无线接入点在确认所述移动终端的身份后,将所述移动终端关联至第二无线网络。The active scanning unit 303 is configured to receive and record at least one beacon through the WiFi module when it is determined that the WiFi module of the mobile terminal is not connected to the wireless network and the system of the mobile terminal is in a standby state when the connecting unit 302 determines that the mobile terminal is in a standby state Before the Beacon frame signal, it is used to send a probe request Probe Request frame; detect whether the probe response Probe Response frame generated by the second wireless access point in response to the Probe Request frame is received; after detecting the reception of the second wireless access point response When a Probe Response frame is generated from the Probe Request frame, second access authentication information is sent to the second wireless access point, where the second access authentication information is used for the second wireless access point After confirming the identity of the mobile terminal, the mobile terminal is associated with the second wireless network.

需要注意的是,本发明装置实施例所描述的移动终端是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。It should be noted that the mobile terminal described in the apparatus embodiment of the present invention is presented in the form of functional units. The term "unit" as used herein should be understood in the broadest possible sense, and the object used to implement the functions described by each "unit" may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware Program processors (shared, dedicated, or chipset) and memory, combinational logic circuits, and/or other suitable components that provide the functions described above.

举例来说,上述接收单元301的在判断出移动终端WiFi模块未接入无线网络,且所述移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号的功能可以由图5所示的移动终端来实现,具体可以通过处理器101通过调用存储器102中的可执行程序代码,在判断出移动终端WiFi模块未接入无线网络,且所述移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号。For example, when the above-mentioned receiving unit 301 determines that the WiFi module of the mobile terminal is not connected to the wireless network and the system of the mobile terminal is in a standby state, the WiFi module receives and records at least one beacon frame signal. The function can be realized by the mobile terminal shown in FIG. 5, specifically, the processor 101 can call the executable program code in the memory 102 to determine that the WiFi module of the mobile terminal is not connected to the wireless network, and the system of the mobile terminal is not connected to the wireless network. When in the standby state, at least one beacon frame signal is received and recorded by the WiFi module.

可以看出,本发明实施例提供的无线网络的接入方法中,移动终端在判断出WiFi模块未接入无线网络,且移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号,在检测到所述系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络。可见,移动终端在判断出未接入无线网络且处于待机状态时,采取被动扫描代替主动扫描获取可以接入的接入点,并仅在检测到系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络,否则不唤醒系统。相对于现有技术来说,减少唤醒时间,同时,被动扫描过程无需发送任何的信号,基于接收的Beacon帧信号接入无线网络,从而有利于移动终端能够降低功耗、延长移动终端续航时间。It can be seen that in the wireless network access method provided by the embodiment of the present invention, when the mobile terminal determines that the WiFi module is not connected to the wireless network and the system of the mobile terminal is in a standby state, the mobile terminal receives and records at least A beacon Beacon frame signal, when it is detected that the system is switched from the standby state to the wake-up state, obtain at least one Beacon frame signal recorded by the WiFi module, and access the corresponding Beacon frame signal according to the at least one Beacon frame signal. wireless network. It can be seen that when the mobile terminal determines that it is not connected to the wireless network and is in the standby state, it adopts passive scanning instead of active scanning to obtain access points that can be accessed, and only when it detects that the system is switched from the standby state to the wake-up state, Acquire at least one Beacon frame signal recorded by the WiFi module, and access the corresponding wireless network according to the at least one Beacon frame signal, otherwise the system is not woken up. Compared with the prior art, the wake-up time is reduced, and at the same time, the passive scanning process does not need to send any signals, and accesses the wireless network based on the received Beacon frame signal, which is beneficial for the mobile terminal to reduce power consumption and prolong the battery life of the mobile terminal.

本发明实施例还提供了另一种移动终端,如图4所示,本发明实施例中的移动终端包括:处理器101,存储器102,通信接口103和通信总线104;其中,处理器101、存储器102和通信接口103通过通信总线104连接并完成相互间的通信;处理器101通过通信接口103控制与外部蜂窝网的无线通信;通信接口103包括但不限于天线、放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。存储器102包括以下至少一种:随机存取存贮器、非易失性存储器以及外部存储器,存储器102中存储有可执行程序代码,该可执行程序代码能够引导处理器101执行本发明方法实施例中具体披露的无线网络的接入方法。The embodiment of the present invention also provides another mobile terminal. As shown in FIG. 4 , the mobile terminal in the embodiment of the present invention includes: a processor 101, a memory 102, a communication interface 103 and a communication bus 104; wherein the processor 101, The memory 102 and the communication interface 103 are connected through the communication bus 104 and complete the mutual communication; the processor 101 controls the wireless communication with the external cellular network through the communication interface 103; the communication interface 103 includes but is not limited to an antenna, an amplifier, a transceiver, a coupling Amplifier, LNA (Low Noise Amplifier, Low Noise Amplifier), duplexer, etc. The memory 102 includes at least one of the following: random access memory, non-volatile memory and external memory, and the memory 102 stores executable program codes, the executable program codes can guide the processor 101 to execute the method embodiments of the present invention The wireless network access method specifically disclosed in .

所述处理器101,用于在判断出移动终端WiFi模块未接入无线网络,且所述移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号;在检测到所述系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络。The processor 101 is configured to receive and record at least one beacon frame signal through the WiFi module when it is determined that the WiFi module of the mobile terminal is not connected to a wireless network and the system of the mobile terminal is in a standby state; When it is detected that the system is switched from the standby state to the wake-up state, at least one Beacon frame signal recorded by the WiFi module is acquired, and a corresponding wireless network is accessed according to the at least one Beacon frame signal.

可选的,所述处理器101在用于通过所述WiFi模块接收并记录至少一个信标Beacon帧信号时,具体用于当当前信道的信道编号为未处理过的信道编号时,切换至所述当前信道,通过所述WiFi模块在预设时长范围内在所述当前信道接收Beacon帧信号,并在接收到Beacon帧信号时,在预设的Beacon帧信号集合中记录所述接收到的Beacon帧信号,以及在所述预设时长之后根据信道列表更新当前信道的信道编号为未处理过的信道编号。Optionally, when the processor 101 is used to receive and record at least one beacon frame signal through the WiFi module, it is specifically configured to switch to the current channel when the channel number of the current channel is an unprocessed channel number. For the current channel, the WiFi module receives a Beacon frame signal on the current channel within a preset duration range, and when a Beacon frame signal is received, the received Beacon frame is recorded in a preset Beacon frame signal set signal, and the channel number of the current channel is updated to be an unprocessed channel number according to the channel list after the preset time period.

可选的,所述处理器101在用于获取所述WiFi模块记录的至少一个Beacon帧信号时,具体用于从所述预设的Beacon帧信号集合中获取所述WiFi模块记录的至少一个Beacon帧信号。Optionally, when the processor 101 is used to acquire at least one Beacon frame signal recorded by the WiFi module, it is specifically configured to acquire at least one Beacon recorded by the WiFi module from the preset Beacon frame signal set. frame signal.

可选的,所述处理器101在用于根据所述至少一个Beacon帧信号接入对应的无线网络时,具体用于在屏幕上显示所述至少一个Beacon帧信号对应的至少一个无线网络标识,所述至少一个无线网络标识包括目标无线网络标识;当检测到针对所述目标无线网络标识的选取操作时,获取录入的接入认证信息;向所述目标无线网络标识对应的第一无线接入点发送所述第一接入认证信息,所述第一接入认证信息用于所述目标无线网络标识对应的第一无线接入点在确认所述移动终端的身份后,将所述移动终端关联至第一无线网络。Optionally, when the processor 101 is configured to access the corresponding wireless network according to the at least one Beacon frame signal, it is specifically configured to display on the screen at least one wireless network identifier corresponding to the at least one Beacon frame signal, The at least one wireless network identifier includes a target wireless network identifier; when a selection operation for the target wireless network identifier is detected, the entered access authentication information is obtained; the first wireless access corresponding to the target wireless network identifier is obtained. The first access authentication information is used by the first wireless access point corresponding to the target wireless network identity to confirm the identity of the mobile terminal, and the mobile terminal Associate to the first wireless network.

可选的,所述处理器101在用于在判断出移动终端WiFi模块未接入无线网络,且所述移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号之前,还可以用于发送探测请求Probe Request帧;检测是否接收到第二无线接入点响应所述Probe Request帧而生成的探测响应Probe Response帧;在检测接收到第二无线接入点响应所述Probe Request帧而生成的探测响应Probe Response帧时,向所述第二无线接入点发送第二接入认证信息,所述第二接入认证信息用于所述第二无线接入点在确认所述移动终端的身份后,将所述移动终端关联至第二无线网络。Optionally, the processor 101 is configured to receive and record at least one beacon Beacon through the WiFi module when it is determined that the WiFi module of the mobile terminal is not connected to the wireless network and the system of the mobile terminal is in a standby state. Before the frame signal, it can also be used to send a probe request Probe Request frame; detect whether a probe response Probe Response frame generated by the second wireless access point in response to the Probe Request frame is received; When a probe response Probe Response frame is generated in response to the Probe Request frame, send second access authentication information to the second wireless access point, where the second access authentication information is used for the second wireless access point Click to associate the mobile terminal with the second wireless network after confirming the identity of the mobile terminal.

可以看出,本发明实施例提供的无线网络的接入方法中,移动终端在判断出WiFi模块未接入无线网络,且移动终端的系统处于待机状态时,通过所述WiFi模块接收并记录至少一个信标Beacon帧信号,在检测到所述系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络。可见,移动终端在判断出未接入无线网络且处于待机状态时,采取被动扫描代替主动扫描获取可以接入的接入点,并仅在检测到系统由所述待机状态切换至唤醒状态时,获取所述WiFi模块记录的至少一个Beacon帧信号,并根据所述至少一个Beacon帧信号接入对应的无线网络,否则不唤醒系统。相对于现有技术来说,减少唤醒时间,同时,被动扫描过程无需发送任何的信号,基于接收的Beacon帧信号接入无线网络,从而有利于移动终端能够降低功耗、延长移动终端续航时间。It can be seen that in the wireless network access method provided by the embodiment of the present invention, when the mobile terminal determines that the WiFi module is not connected to the wireless network and the system of the mobile terminal is in a standby state, the mobile terminal receives and records at least A beacon Beacon frame signal, when it is detected that the system is switched from the standby state to the wake-up state, obtain at least one Beacon frame signal recorded by the WiFi module, and access the corresponding Beacon frame signal according to the at least one Beacon frame signal. wireless network. It can be seen that when the mobile terminal determines that it is not connected to the wireless network and is in the standby state, it adopts passive scanning instead of active scanning to obtain access points that can be accessed, and only when it detects that the system is switched from the standby state to the wake-up state, Acquire at least one Beacon frame signal recorded by the WiFi module, and access the corresponding wireless network according to the at least one Beacon frame signal, otherwise the system is not woken up. Compared with the prior art, the wake-up time is reduced, and at the same time, the passive scanning process does not need to send any signals, and accesses the wireless network based on the received Beacon frame signal, which is beneficial for the mobile terminal to reduce power consumption and prolong the battery life of the mobile terminal.

本发明实施例还提供了另一种移动终端,如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:An embodiment of the present invention also provides another mobile terminal, as shown in FIG. 5 . For the convenience of description, only the part related to the embodiment of the present invention is shown. If the specific technical details are not disclosed, please refer to the method of the embodiment of the present invention. part. The mobile terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, personal digital assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, etc. The mobile terminal is a mobile phone as an example:

图5示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图5,本发明实施例中的手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(wireless fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention. Referring to FIG. 5 , a mobile phone in an embodiment of the present invention includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, and a wireless fidelity (WiFi) Module 970, processor 980, and power supply 990 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 5 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.

下面结合图5对手机的各个构成部件进行具体的介绍:The following is a detailed introduction to each component of the mobile phone in conjunction with Figure 5:

RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。RF circuitry 910 may be used for the reception and transmission of information. Typically, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 910 may 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 (GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS) and the like.

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

输入单元930可用于接收输入的数字或字符信息,以及生成与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。可选的,指纹识别模组931可包括光学式指纹模块、电容式指纹模块以及射频式指纹模块。以指纹识别模组931为电容式指纹识别模组为例,具体包括感应电极(异常感应电极和正常感应电极)和与所述感应电极连接的信号处理电路(如放大电路、噪声抑制电路、模数转化电路,等等)。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be used to receive inputted numerical or character information, and generate key signal input related to user setting and function control of the mobile phone. Specifically, the input unit 930 may include a fingerprint recognition module 931 and other input devices 932 . The fingerprint identification module 931 can collect the fingerprint data of the user on it. Optionally, the fingerprint identification module 931 may include an optical fingerprint module, a capacitive fingerprint module and a radio frequency fingerprint module. Taking the fingerprint identification module 931 as a capacitive fingerprint identification module as an example, it specifically includes sensing electrodes (abnormal sensing electrodes and normal sensing electrodes) and signal processing circuits (such as amplifying circuits, noise suppression circuits, modules) connected to the sensing electrodes. digital conversion circuits, etc.). Besides the fingerprint recognition module 931 , the input unit 930 may also include other input devices 932 . Specifically, other input devices 932 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。虽然在图5中,指纹识别模组931与显示屏941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹识别模组931与显示屏941集成而实现手机的输入和输出功能。The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display screen 941. Optionally, the display screen 941 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. Although in FIG. 5 , the fingerprint recognition module 931 and the display screen 941 are used as two independent components to realize the input and input functions of the mobile phone, but in some embodiments, the fingerprint recognition module 931 and the display screen 941 can be combined Integrated to realize the input and output functions of the mobile phone.

手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one sensor 950, such as a light sensor, a 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 screen 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 941 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.

音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号输出;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据输出处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据输出至存储器920以便进一步处理。The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone. The audio circuit 960 can convert the received audio data into an electrical signal, and transmit it to the speaker 961, and the speaker 961 converts it into a sound signal for output; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 960 After receiving, it is converted into audio data, and then the audio data is output to the processor 980 for processing, and then sent to, for example, another mobile phone through the RF circuit 910, or the audio data is output to the memory 920 for further processing.

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

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

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

尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.

前述图1和图2所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiments shown in FIG. 1 and FIG. 2 , the method flow of each step can be implemented based on the structure of the mobile phone.

前述图3所示的实施例中,各单元功能可以基于该手机的结构实现。In the aforementioned embodiment shown in FIG. 3 , the functions of each unit can be implemented based on the structure of the mobile phone.

本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种无线网络的接入方法的部分或全部步骤。Embodiments of the present invention further provide a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program includes part or all of the steps of any wireless network access method described in the above method embodiments.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. As in accordance with the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable memory. Based on such understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.

以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The embodiments of the present invention have been introduced in detail above, and specific examples are used to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present invention; at the same time, for Persons of ordinary skill in the art, according to the idea of the present invention, will have changes in the specific embodiments and application scope. To sum up, the contents of this specification should not be construed as limiting the present invention.

Claims (12)

1. An access method of a wireless network, comprising:
when the WiFi module of the mobile terminal is judged not to be accessed to a wireless network and the system of the mobile terminal is in a standby state, receiving and recording at least one Beacon frame signal through the WiFi module;
only when upper software is detected to awaken the system and the system is switched from the standby state to the awakening state, acquiring at least one Beacon frame signal recorded by the WiFi module, accessing a corresponding wireless network according to the at least one Beacon frame signal, and otherwise, not awakening the system;
the WiFi module receives and records at least one Beacon frame signal, including:
when the channel number of current channel is unprocessed channel number, switch to the current channel, pass through the wiFi module is in predetermineeing the duration within range the Beacon frame signal is received to current channel to when receiving Beacon frame signal, record in predetermined Beacon frame signal set received Beacon frame signal, and be in according to the channel number that the channel list updated current channel after predetermineeing for unprocessed channel number.
2. The method of claim 1, wherein said obtaining at least one Beacon frame signal recorded by said WiFi module comprises:
and obtaining at least one Beacon frame signal recorded by the WiFi module from the preset Beacon frame signal set.
3. The method according to any one of claims 1 to 2, wherein said accessing a corresponding wireless network according to said at least one Beacon frame signal comprises:
displaying at least one wireless network identifier corresponding to the at least one Beacon frame signal on a screen, wherein the at least one wireless network identifier comprises a target wireless network identifier;
when the selection operation aiming at the target wireless network identification is detected, the input access authentication information is obtained;
and sending first access authentication information to a first wireless access point corresponding to the target wireless network identifier, wherein the first access authentication information is used for associating the mobile terminal to a first wireless network after the first wireless access point corresponding to the target wireless network identifier confirms the identity of the mobile terminal.
4. The method as claimed in any one of claims 1 to 2, wherein before receiving and recording at least one Beacon frame signal through the WiFi module when it is determined that the WiFi module of the mobile terminal does not access the wireless network and the system of the mobile terminal is in the standby state, the method further comprises:
sending a Probe Request frame;
detecting whether a Probe response frame generated by the second wireless access point in response to the Probe Request frame is received;
and when detecting that a Probe response frame generated by a second wireless access point responding to the Probe Request frame is received, sending second access authentication information to the second wireless access point, wherein the second access authentication information is used for associating the mobile terminal to a second wireless network after the second wireless access point confirms the identity of the mobile terminal.
5. The method of claim 3, wherein before receiving and recording at least one Beacon frame signal through the WiFi module when it is determined that the WiFi module of the mobile terminal does not access the wireless network and the system of the mobile terminal is in the standby state, the method further comprises:
sending a Probe Request frame;
detecting whether a Probe response frame generated by the second wireless access point in response to the Probe Request frame is received;
and when detecting that a Probe response frame generated by a second wireless access point responding to the Probe Request frame is received, sending second access authentication information to the second wireless access point, wherein the second access authentication information is used for associating the mobile terminal to a second wireless network after the second wireless access point confirms the identity of the mobile terminal.
6. The method of claim 3, wherein before receiving and recording at least one Beacon frame signal through the WiFi module when it is determined that the WiFi module of the mobile terminal does not access the wireless network and the system of the mobile terminal is in the standby state, the method further comprises:
sending a Probe Request frame;
detecting whether a Probe response frame generated by the second wireless access point in response to the Probe Request frame is received;
and when detecting that a Probe response frame generated by a second wireless access point responding to the Probe Request frame is received, sending second access authentication information to the second wireless access point, wherein the second access authentication information is used for associating the mobile terminal to a second wireless network after the second wireless access point confirms the identity of the mobile terminal.
7. A mobile terminal, comprising:
the receiving unit is used for receiving and recording at least one Beacon frame signal through the WiFi module when the WiFi module of the mobile terminal is judged not to be accessed to the wireless network and the system of the mobile terminal is in a standby state;
the connecting unit is used for acquiring at least one Beacon frame signal recorded by the WiFi module only when upper-layer software is detected to wake up the system, and the system is switched from the standby state to the wake-up state, accessing a corresponding wireless network according to the at least one Beacon frame signal, otherwise, not waking up the system;
the receiving element is being used for passing through during at least one Beacon frame signal is received and recorded to the wiFi module, specifically is used for when the channel number of current channel is unprocessed channel number, switches to current channel, through the wiFi module is in predetermineeing the length of time within range the Beacon frame signal is received to current channel to when receiving Beacon frame signal, record in predetermined Beacon frame signal set received Beacon frame signal, and the channel number of according to the current channel of channel list renewal after predetermineeing the length of time is unprocessed channel number.
8. The mobile terminal of claim 7,
the connection unit is being used for acquireing when the at least one Beacon frame signal of wiFi module record, specifically be used for following acquire in the predetermined Beacon frame signal set at least one Beacon frame signal of wiFi module record.
9. The mobile terminal according to any of claims 7 to 8, wherein said connection unit comprises:
the display subunit is configured to display at least one wireless network identifier corresponding to the at least one Beacon frame signal on a screen, where the at least one wireless network identifier includes a target wireless network identifier;
the acquisition subunit is used for acquiring the input access authentication information when the selection operation aiming at the target wireless network identifier is detected;
and the authentication subunit is configured to send first access authentication information to the first wireless access point corresponding to the target wireless network identifier, where the first access authentication information is used for associating the mobile terminal with the first wireless network after the first wireless access point corresponding to the target wireless network identifier confirms the identity of the mobile terminal.
10. The mobile terminal of any of claims 7 to 8, wherein the mobile terminal further comprises:
the active scanning unit is used for sending a Probe Request frame before the connecting unit is used for judging that the WiFi module of the mobile terminal is not accessed to the wireless network and the system of the mobile terminal is in a standby state and receiving and recording at least one Beacon frame signal through the WiFi module; detecting whether a Probe Response frame generated by the second wireless access point in Response to the Probe Request frame is received; and when detecting that a Probe Response frame generated by a second wireless access point responding to the Probe Request frame is received, sending second access authentication information to the second wireless access point, wherein the second access authentication information is used for associating the mobile terminal to a second wireless network after the second wireless access point confirms the identity of the mobile terminal.
11. The mobile terminal of claim 9, wherein the mobile terminal further comprises:
the active scanning unit is used for sending a Probe Request frame before the connecting unit is used for judging that the WiFi module of the mobile terminal is not accessed to the wireless network and the system of the mobile terminal is in a standby state and receiving and recording at least one Beacon frame signal through the WiFi module; detecting whether a Probe Response frame generated by the second wireless access point in Response to the Probe Request frame is received; and when detecting that a Probe Response frame generated by a second wireless access point responding to the Probe Request frame is received, sending second access authentication information to the second wireless access point, wherein the second access authentication information is used for associating the mobile terminal to a second wireless network after the second wireless access point confirms the identity of the mobile terminal.
12. A mobile terminal, comprising:
the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are connected through the communication bus and complete mutual communication;
the memory stores executable program code, the communication interface is for wireless communication;
the processor is configured to call the executable program code in the memory to perform the method as described in any of claims 1-6.
CN201611143075.0A 2016-12-07 2016-12-07 A wireless network access method and mobile terminal Expired - Fee Related CN106604277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611143075.0A CN106604277B (en) 2016-12-07 2016-12-07 A wireless network access method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611143075.0A CN106604277B (en) 2016-12-07 2016-12-07 A wireless network access method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106604277A CN106604277A (en) 2017-04-26
CN106604277B true CN106604277B (en) 2020-03-10

Family

ID=58597808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611143075.0A Expired - Fee Related CN106604277B (en) 2016-12-07 2016-12-07 A wireless network access method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106604277B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040357B (en) * 2017-11-30 2019-10-18 Oppo广东移动通信有限公司 Mobile terminal wireless local area network scanning method and device, computer equipment
CN110602712B (en) * 2019-08-13 2022-02-15 北京大学 A kind of frequency point switching anti-interference wireless local area network communication method and device
CN111885665B (en) * 2020-07-30 2022-06-14 海信视像科技股份有限公司 Wireless network connection control method and display device
CN114173339B (en) * 2020-09-10 2023-05-05 合肥君正科技有限公司 Method and device for quickly connecting WiFi network, storage medium and electronic equipment
CN117221990B (en) * 2023-11-09 2024-02-13 钦原科技有限公司 Standby data network connection control method for mobile terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316564A (en) * 2010-06-11 2012-01-11 任天堂株式会社 Portable data assistance, portable information system, portable information system control method
CN104322110A (en) * 2012-05-15 2015-01-28 Lg电子株式会社 Method and apparatus for low-power scanning in WLAN system
CN104365155A (en) * 2012-04-18 2015-02-18 Lg电子株式会社 Method for transmitting and receiving signal of station operable in power saving mode in wireless communication system, and device therefor
CN105407473A (en) * 2015-10-22 2016-03-16 小米科技有限责任公司 Wireless local area network discovery method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316564A (en) * 2010-06-11 2012-01-11 任天堂株式会社 Portable data assistance, portable information system, portable information system control method
CN104365155A (en) * 2012-04-18 2015-02-18 Lg电子株式会社 Method for transmitting and receiving signal of station operable in power saving mode in wireless communication system, and device therefor
CN104322110A (en) * 2012-05-15 2015-01-28 Lg电子株式会社 Method and apparatus for low-power scanning in WLAN system
CN105407473A (en) * 2015-10-22 2016-03-16 小米科技有限责任公司 Wireless local area network discovery method and apparatus

Also Published As

Publication number Publication date
CN106604277A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
US11212677B2 (en) Method for accessing wireless network, and terminal device
CN106851780B (en) A method and terminal for network connection
CN107277230B (en) Voice broadcasting method of message and related product
CN106604277B (en) A wireless network access method and mobile terminal
CN106507482B (en) A kind of network positioning method and terminal device
CN106792819B (en) A method and device for reducing power consumption of a mobile terminal
CN106792993A (en) Channel scanning method and mobile terminal
CN106453511A (en) A data backup method and device
CN106506862A (en) A mobile terminal working mode switching method and mobile terminal
CN112269842A (en) Information processing method and device, storage medium and computer equipment
CN106793010B (en) Network access method and equipment
CN108476441B (en) Cell switching method and terminal equipment
CN106454976B (en) A wireless network switching method, device and terminal
CN106095566B (en) Response control method and mobile terminal
WO2018214744A1 (en) Information processing method and related product
CN107256334A (en) recipe matching method and related product
CN106851784B (en) network scanning method and terminal equipment
CN107220344B (en) Document processing methods and related products
CN106686704B (en) Terminal monitoring method and mobile terminal
CN106507357A (en) An access control method, and terminal equipment
CN106714149B (en) Wireless network access method, device and terminal equipment
CN110741727B (en) Terminal position sending method and device
CN106817751B (en) Data sending method and mobile terminal
CN115334637B (en) 5G network registration method, equipment and computer readable storage medium
CN106535229B (en) WiFi signal receiving sensitivity testing method and mobile terminal

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200310

CF01 Termination of patent right due to non-payment of annual fee