Movatterモバイル変換


[0]ホーム

URL:


CN106604362A - A wireless fidelity Wi-Fi scanning method and mobile terminal - Google Patents

A wireless fidelity Wi-Fi scanning method and mobile terminal
Download PDF

Info

Publication number
CN106604362A
CN106604362ACN201611118639.5ACN201611118639ACN106604362ACN 106604362 ACN106604362 ACN 106604362ACN 201611118639 ACN201611118639 ACN 201611118639ACN 106604362 ACN106604362 ACN 106604362A
Authority
CN
China
Prior art keywords
scanning
time
mobile terminal
intended application
scan
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
CN201611118639.5A
Other languages
Chinese (zh)
Other versions
CN106604362B (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 LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611118639.5ApriorityCriticalpatent/CN106604362B/en
Publication of CN106604362ApublicationCriticalpatent/CN106604362A/en
Priority to PCT/CN2017/101464prioritypatent/WO2018103402A1/en
Application grantedgrantedCritical
Publication of CN106604362BpublicationCriticalpatent/CN106604362B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The embodiment of the invention provides a wireless fidelity Wi-Fi scanning method and a mobile terminal, wherein the method comprises the following steps: receiving a Wi-Fi scanning request initiated by a target application, wherein the Wi-Fi scanning request carries a target application identifier of the target application; detecting whether the target application identifier exists in a preset identifier set or not; when the target application identifier does not exist in the preset identifier set, judging whether the time difference between the current time and the last Wi-Fi scanning time is greater than a preset threshold value or not; reading a scanning result of the last Wi-Fi scanning when the time difference between the current time and the last Wi-Fi scanning time is smaller than or equal to the preset threshold; and when the time difference between the current time and the last Wi-Fi scanning time is larger than the preset threshold value, carrying out Wi-Fi scanning. According to the embodiment of the invention, the number of Wi-Fi scanning times can be reduced through the preset identification set, so that the power consumption of the mobile terminal is reduced.

Description

Translated fromChinese
一种无线保真Wi-Fi扫描方法及移动终端A wireless fidelity Wi-Fi scanning method and mobile terminal

技术领域technical field

本发明涉及互联网技术领域,具体涉及一种无线保真Wi-Fi扫描方法及移动终端。The invention relates to the technical field of the Internet, in particular to a wireless fidelity Wi-Fi scanning method and a mobile terminal.

背景技术Background technique

随着信息技术的快速发展,移动终端(如手机、平板电脑等等)使用越来越普及,用户对移动终端的要求也越来越高,不仅需要较高的处理速度,而且对移动终端的续航能力也提出了要求。With the rapid development of information technology, the use of mobile terminals (such as mobile phones, tablet computers, etc.) is becoming more and more popular, and users have higher and higher requirements for mobile terminals. Endurance is also required.

现有技术中,无线保真(Wireless Fidelity,Wi-Fi)扫描原本只是为连接接入点(Access Point,AP)使用,但是,现在很多应用发起Wi-Fi扫描,只是为了收集用户周围AP信息,这种频繁的扫描操作,会消耗移动终端的大量功耗。In the prior art, wireless fidelity (Wireless Fidelity, Wi-Fi) scanning was originally only used to connect to access points (Access Point, AP), but now many applications initiate Wi-Fi scanning, just to collect AP information around the user , such frequent scanning operations will consume a large amount of power consumption of the mobile terminal.

发明内容Contents of the invention

本发明实施例提供了一种无线保真Wi-Fi扫描方法及移动终端,以期降低移动终端的功耗。Embodiments of the present invention provide a wireless fidelity Wi-Fi scanning method and a mobile terminal, in order to reduce power consumption of the mobile terminal.

本发明实施例第一方面提供了一种无线保真Wi-Fi扫描方法,包括:The first aspect of the embodiment of the present invention provides a wireless fidelity Wi-Fi scanning method, including:

接收由目标应用发起的Wi-Fi扫描请求,所述Wi-Fi扫描请求携带所述目标应用的目标应用标识;receiving a Wi-Fi scan request initiated by a target application, where the Wi-Fi scan request carries a target application identifier of the target application;

检测所述目标应用标识是否存在于预设标识集合;Detecting whether the target application identifier exists in a preset identifier set;

在所述目标应用标识不存在于所述预设标识集合时,判断当前时间与上次Wi-Fi扫描时间之间的时间差是否大于预设阈值;When the target application identifier does not exist in the preset identifier set, determine whether the time difference between the current time and the last Wi-Fi scanning time is greater than a preset threshold;

在所述当前时间与所述上次Wi-Fi扫描时间之间的时间差小于或等于所述预设阈值,读取所述上次Wi-Fi扫描的扫描结果;When the time difference between the current time and the last Wi-Fi scan time is less than or equal to the preset threshold, read the scan result of the last Wi-Fi scan;

在所述当前时间与所述上次Wi-Fi扫描时间之间的时间差大于所述预设阈值,进行Wi-Fi扫描。When the time difference between the current time and the last Wi-Fi scanning time is greater than the preset threshold, Wi-Fi scanning is performed.

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

接收单元,用于接收由目标应用发起的Wi-Fi扫描请求,所述Wi-Fi扫描请求携带所述目标应用的目标应用标识;A receiving unit, configured to receive a Wi-Fi scan request initiated by a target application, where the Wi-Fi scan request carries a target application identifier of the target application;

检测单元,用于检测所述目标应用标识是否存在于预设标识集合;a detecting unit, configured to detect whether the target application identifier exists in a preset identifier set;

第一判断单元,用于在所述检测单元的检测结果为所述目标应用标识不存在于所述预设标识集合时,判断当前时间与上次Wi-Fi扫描时间之间的时间差是否大于预设阈值;The first judging unit is configured to judge whether the time difference between the current time and the last Wi-Fi scanning time is greater than the preset time when the detection result of the detection unit is that the target application identifier does not exist in the preset identifier set. set threshold;

读取单元,用于在所述第一判断单元的判断结果为所述当前时间与所述上次Wi-Fi扫描时间之间的时间差小于或等于所述预设阈值,读取所述上次Wi-Fi扫描的扫描结果;A reading unit, configured to read the last time when the judgment result of the first judgment unit is that the time difference between the current time and the last Wi-Fi scanning time is less than or equal to the preset threshold The scan result of the Wi-Fi scan;

扫描单元,用于在所述第一判断单元的判断结果为所述当前时间与所述上次Wi-Fi扫描时间之间的时间差大于所述预设阈值,进行Wi-Fi扫描。The scanning unit is configured to perform Wi-Fi scanning when the first judging unit judges that the time difference between the current time and the last Wi-Fi scanning time is greater than the preset threshold.

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

处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行第一方面所描述的方法的部分或者全部步骤。A processor and a memory; wherein, the processor executes part or all of the steps of the method described in the first aspect by invoking codes or instructions in the memory.

实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:

通过本发明实施例,接收由目标应用发起的Wi-Fi扫描请求,该Wi-Fi扫描请求携带目标应用的目标应用标识,检测目标应用标识是否存在于预设标识集合,在目标应用标识不存在于预设标识集合时,判断当前时间与上次Wi-Fi扫描时间之间的时间差是否大于预设阈值,在当前时间与上次Wi-Fi扫描时间之间的时间差小于或等于预设阈值,读取上次Wi-Fi扫描的扫描结果,在当前时间与上次Wi-Fi扫描时间之间的时间差大于预设阈值,进行Wi-Fi扫描。从而,可通过预设标识集合降低Wi-Fi扫描的次数,从而,降低移动终端的功耗。Through the embodiment of the present invention, a Wi-Fi scan request initiated by a target application is received, the Wi-Fi scan request carries the target application identifier of the target application, and it is detected whether the target application identifier exists in the preset identifier set, and if the target application identifier does not exist When the preset identification is set, it is judged whether the time difference between the current time and the last Wi-Fi scanning time is greater than the preset threshold, and the time difference between the current time and the last Wi-Fi scanning time is less than or equal to the preset threshold, Read the scan result of the last Wi-Fi scan, and perform a Wi-Fi scan when the time difference between the current time and the last Wi-Fi scan time is greater than the preset threshold. Therefore, the number of times of Wi-Fi scanning can be reduced through the preset identification set, thereby reducing the power consumption of the mobile terminal.

附图说明Description of drawings

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

图1是本发明实施例提供的一种无线保真Wi-Fi扫描方法的第一实施例流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of a wireless fidelity Wi-Fi scanning method provided by an embodiment of the present invention;

图1a是本发明实施例提供的一种Wi-Fi列表演示示意图;Fig. 1a is a schematic diagram of a Wi-Fi list demonstration provided by an embodiment of the present invention;

图2是本发明实施例提供的一种无线保真Wi-Fi扫描方法的第二实施例流程示意图;FIG. 2 is a schematic flowchart of a second embodiment of a wireless fidelity Wi-Fi scanning method provided by an embodiment of the present invention;

图3a是本发明实施例提供的一种移动终端的第一实施例结构示意图;Fig. 3a is a schematic structural diagram of a first embodiment of a mobile terminal provided by an embodiment of the present invention;

图3b是本发明实施例提供的图3a所描述的移动终端的扫描单元的结构示意图;Fig. 3b is a schematic structural diagram of the scanning unit of the mobile terminal described in Fig. 3a provided by an embodiment of the present invention;

图3c是本发明实施例提供的图3a所描述的移动终端的又一结构示意图;FIG. 3c is another schematic structural diagram of the mobile terminal described in FIG. 3a provided by an embodiment of the present invention;

图4是本发明实施例提供的一种移动终端的第二实施例结构示意图。Fig. 4 is a schematic structural diagram of a second embodiment of a mobile terminal provided by an embodiment of the present invention.

具体实施方式detailed description

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

本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present invention and the drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a 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 further includes For other steps or units inherent in these processes, methods, products or apparatuses.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置展示该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。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 presentation of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are independent or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

本发明实施例所描述移动终端可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,MobileInternet Devices)或穿戴式设备等,上述仅是举例,而非穷举,包含但不限于上述移动终端。The mobile terminal described in the embodiment of the present invention may include a smart phone (such as an Android phone, an iOS phone, a Windows Phone, etc.), a tablet computer, a palmtop computer, a notebook computer, a mobile Internet device (MID, MobileInternet Devices) or a wearable device, etc. The above is only an example, not an exhaustive list, including but not limited to the above mobile terminal.

需要说明的是,在移动终端处于无线保真Wi-Fi连接状态之前,也需要进行Wi-Fi扫描,在其进行Wi-Fi扫描之后,可得到一个Wi-Fi列表,可保存该Wi-Fi列表,通常情况下,该Wi-Fi列表中至少包含1个接入点,及该接入点的接入点信息,接入点信息可包括但不仅限于:接入点名称、接入点的MAC地址、接入点的服务集标识(Service Set Identifier,SSID)、接入点的接入用户数目、接入点的信号强度值等等。移动终端可从该Wi-Fi列表中选择一个接入点,并接入该接入点,从而,实现接入互联网。那么,在移动终端处于无线保真Wi-Fi连接状态时,则可直接获取上次扫描的Wi-Fi列表。It should be noted that before the mobile terminal is in the wireless fidelity Wi-Fi connection state, it also needs to perform a Wi-Fi scan. After the Wi-Fi scan is performed, a Wi-Fi list can be obtained, and the Wi-Fi list can be saved. list, usually, the Wi-Fi list contains at least one access point, and the access point information of the access point, the access point information may include but not limited to: access point name, access point The MAC address, the service set identifier (Service Set Identifier, SSID) of the access point, the number of users accessing the access point, the signal strength value of the access point, and the like. The mobile terminal can select an access point from the Wi-Fi list, and access the access point, thereby realizing access to the Internet. Then, when the mobile terminal is in the Wi-Fi connection state, the last scanned Wi-Fi list can be directly acquired.

请参阅图1,为本发明实施例提供的一种无线保真Wi-Fi扫描方法的第一实施例流程示意图。本实施例中所描述的无线保真Wi-Fi扫描方法,包括以下步骤:Please refer to FIG. 1 , which is a schematic flowchart of a first embodiment of a wireless fidelity Wi-Fi scanning method provided by an embodiment of the present invention. The wireless fidelity Wi-Fi scanning method described in the present embodiment comprises the following steps:

101、接收由目标应用发起的Wi-Fi扫描请求,所述Wi-Fi扫描请求携带所述目标应用的目标应用标识。101. Receive a Wi-Fi scanning request initiated by a target application, where the Wi-Fi scanning request carries a target application identifier of the target application.

其中,上述目标应用可为可接入互联网的应用,其可包括但不仅限于:地图应用(如:百度地图、Google地图)、即时通讯应用(微信、QQ等)、社交应用(如微博、人人网、Facebook等等)、团购应用(大众点评、美团等)、浏览器应用、支付应用等等。在目标应用发起Wi-Fi扫描时,移动终端的系统接收到该Wi-Fi扫描请求之后,可向Wi-Fi芯片发送扫描指令,该扫描指令指示Wi-Fi芯片进行扫描,Wi-Fi芯片在接收到扫描指令后,开始进行Wi-Fi扫描。Wherein, the above-mentioned target application may be an application that can access the Internet, which may include but not limited to: map applications (such as: Baidu Maps, Google Maps), instant messaging applications (WeChat, QQ, etc.), social applications (such as Weibo, Renren, Facebook, etc.), group buying applications (Dianping, Meituan, etc.), browser applications, payment applications, etc. When the target application initiates a Wi-Fi scan, the system of the mobile terminal can send a scan command to the Wi-Fi chip after receiving the Wi-Fi scan request, and the scan command instructs the Wi-Fi chip to scan. After receiving the scanning command, start Wi-Fi scanning.

102、检测所述目标应用标识是否存在于预设标识集合。102. Detect whether the target application identifier exists in a preset identifier set.

其中,预设标识集合可在步骤101之前进行预先设置,预设标识集合中可包含多个应用标识,该应用标识可包括但不仅限于:应用名称、应用版本号、应用开发商、应用的产品日期、应用的类别等等。例如,预设标识集合中可包含多个应用名称,如:预设标识集合可为微信、QQ、手机管家。当然,对于分身应用而言,可将分身应用的一部分设置到预设标识集合,例如,就微信而言,其分身应用为:微信1和微信2,则预设标识集合可只包含微信1或者微信2。Wherein, the preset identification set can be preset before step 101, and the preset identification set can contain multiple application identifications, and the application identification can include but not limited to: application name, application version number, application developer, application product date, category applied, etc. For example, a plurality of application names can be included in the preset identification set, such as: the preset identification set can be WeChat, QQ, and mobile phone housekeeper. Of course, for the avatar application, part of the avatar application can be set to the preset identification set, for example, as far as WeChat is concerned, its avatar application is: WeChat 1 and WeChat 2, then the preset identification set can only include WeChat 1 or WeChat2.

具体地,上述检测所述目标应用标识是否存在于预设标识集合,可按照如下方式实施:Specifically, the above detection of whether the target application identifier exists in the preset identifier set can be implemented in the following manner:

将目标应用标识与预设标识集合中的多个应用标识进行比对,如果目标应用标识与预设标识集合中的某个应用标识一致,则说明目标应用标识存在于预设标识集合。如果目标应用标识与预设标识集合中的任何应用标识一致,则说明目标应用标识不存在于预设标识集合。The target application identifier is compared with multiple application identifiers in the preset identifier set, and if the target application identifier is consistent with an application identifier in the preset identifier set, it means that the target application identifier exists in the preset identifier set. If the target application identifier is consistent with any application identifier in the preset identifier set, it means that the target application identifier does not exist in the preset identifier set.

103、在所述目标应用标识不存在于所述预设标识集合时,判断当前时间与上次Wi-Fi扫描时间之间的时间差是否大于预设阈值。103. When the target application identifier does not exist in the preset identifier set, determine whether the time difference between the current time and the last Wi-Fi scanning time is greater than a preset threshold.

其中,预设阈值可由系统默认或者用户自行设置。上次Wi-Fi扫描时间可为上次进行Wi-Fi扫描的扫描时间。上述“上次”可理解为与当前时刻最近的一次。可计算当前时间与上次Wi-Fi扫描时间之间的时间差,如果该时间差大于预设阈值,则执行步骤105,如果该时间差小于或等于预设阈值,则执行步骤104。Wherein, the preset threshold can be set by default by the system or by the user. The last Wi-Fi scanning time may be the scanning time of the last Wi-Fi scanning. The above "last time" can be understood as the latest time to the current moment. The time difference between the current time and the last Wi-Fi scanning time may be calculated, and if the time difference is greater than a preset threshold, step 105 is performed, and if the time difference is less than or equal to the preset threshold, step 104 is performed.

可选地,上述步骤102之后,还可以包含如下步骤:Optionally, after the above step 102, the following steps may also be included:

在所述目标应用标识存在于所述预设标识集合时,进行Wi-Fi扫描。When the target application identifier exists in the preset identifier set, Wi-Fi scanning is performed.

进一步可选地,上述进行Wi-Fi扫描,可包括如下步骤:Further optionally, the above-mentioned Wi-Fi scanning may include the following steps:

A)、确定当前位置;A), determine the current location;

B)、获取与所述当前位置对应的上次Wi-Fi扫描的扫描结果,所述扫描结果中包含X个接入点,所述X为大于1的整数;B), obtaining the scan result of the last Wi-Fi scan corresponding to the current location, the scan result includes X access points, and the X is an integer greater than 1;

C)、从所述X个接入点中选取Y个目标接入点,所述Y为小于所述X的正整数;C), selecting Y target access points from the X access points, where Y is a positive integer smaller than X;

D)、按照所述Y个目标接入点的稳定性由强到弱的顺序进行扫描。D) Scanning is performed according to the order of stability of the Y target access points from strong to weak.

可选地,上述步骤C,从所述X个接入点中选取Y个目标接入点,包括:Optionally, in the above step C, selecting Y target access points from the X access points includes:

筛选出所述X个接入点中符合预设要求的Y个接入点,所述预设要求为接入点的信号强度大于预设信号强度且其密码为静态密码。Screening out Y access points from the X access points that meet the preset requirement, the preset requirement is that the signal strength of the access point is greater than the preset signal strength and the password of the access point is a static password.

可选地,上述步骤C,从所述X个接入点中选取Y个目标接入点,可包括如下步骤:Optionally, the step C above, selecting Y target access points from the X access points, may include the following steps:

C1)、根据所述X个接入点的接入点信息对所述X个接入点进行稳定性评价,得到所述X个稳定性评价值;C1), performing stability evaluation on the X access points according to the access point information of the X access points, and obtaining the X stability evaluation values;

C2)、从所述X个稳定性评价值中选取大于第一阈值的Y个稳定性评价值对应的所述Y个接入点,所述Y为小于所述X的正整数;C2), selecting the Y access points corresponding to the Y stability evaluation values greater than the first threshold from the X stability evaluation values, and the Y is a positive integer smaller than the X;

其中,上述C1中可确定每一接入点的稳定性评价值,得到X个稳定性评价值,该稳定性评价值可用于评价每一接入点的稳定性,某一接入点的稳定性评价值越大,则可说明该接入点的稳定性越好。上述第一阈值可由用户自行设置或者系统默认。步骤C2中,可从X个稳定性评价值中选取大于第一阈值的Y个稳定性评价值对应的Y个接入点信息,Y为小于X的正整数。Wherein, the stability evaluation value of each access point can be determined in the above C1, and X stability evaluation values can be obtained, and the stability evaluation value can be used to evaluate the stability of each access point, and the stability of a certain access point The greater the stability evaluation value, the better the stability of the access point. The above-mentioned first threshold may be set by the user or defaulted by the system. In step C2, Y access point information corresponding to Y stability evaluation values greater than the first threshold may be selected from the X stability evaluation values, where Y is a positive integer smaller than X.

可选地,可采用至少一个稳定性评价指标对接入点的稳定性进行评价,得到权重值,其中,稳定性评价指标可包括但不仅限于:接入点的可接入用户数目、接入点的信号强度值、接入点的网络速率、接入点的网络带宽等等。Optionally, at least one stability evaluation index may be used to evaluate the stability of the access point to obtain a weight value, wherein the stability evaluation index may include but not limited to: the number of accessible users of the access point, the access point The signal strength value of the point, the network speed of the access point, the network bandwidth of the access point, and so on.

需要说明的是,由于采用单一稳定性评价指标对接入点的稳定性进行评价时,具有一定的局限性,因此,可采用多个稳定性评价指标对接入点的稳定性进行评价,当然,对接入点的稳定性进行评价时,并非稳定性评价指标越多越好,因为稳定性评价指标越多,稳定性评价过程的计算复杂度越高,也不见得稳定性评价效果越好,因此,在对稳定性评价要求较高的情况下,可采用2~10个稳定性评价指标对接入点的稳定性进行评价。具体地,选取稳定性评价指标的个数及哪个指标,可依据具体实现情况而定。It should be noted that, since there are certain limitations when using a single stability evaluation index to evaluate the stability of an access point, multiple stability evaluation indexes can be used to evaluate the stability of an access point. , when evaluating the stability of the access point, it is not that the more stability evaluation indicators the better, because the more stability evaluation indicators, the higher the computational complexity of the stability evaluation process, and the better the stability evaluation effect is not necessarily , therefore, in the case of high requirements for stability evaluation, 2 to 10 stability evaluation indicators can be used to evaluate the stability of the access point. Specifically, the number of stability evaluation indicators and which indicator to select may be determined according to specific implementation conditions.

可选地,在对接入点的稳定性评价精度要求较高的情况下,可以采用多个稳定性评价指标对接入点的稳定性进行评价,在稳定性评价指标对接入点的稳定性进行稳定性评价时,可设置该多个稳定性评价指标中稳定性评价指标的权重,可得到多个稳定性评价值,根据该多个稳定性评价值及其对应的权重可得到最终的稳定性评价值,例如,三个稳定性评价指标分别为:A指标、B指标和C指标,A的权重为a1,B的权重为a2,C的权重为a3,采用A、B和C对某一接入点的稳定性进行评价时,A对应的稳定性评价值为b1,B对应的稳定性评价值为b2,C对应的稳定性评价值为b3,那么,最后的稳定性评价值=a1b1+a2b2+a3b3。通常情况下,稳定性评价值越大,说明接入点的稳定性越好。Optionally, when the stability evaluation accuracy of the access point is required to be high, multiple stability evaluation indicators can be used to evaluate the stability of the access point. When evaluating stability, the weight of the stability evaluation index in the multiple stability evaluation indexes can be set, and multiple stability evaluation values can be obtained. According to the multiple stability evaluation values and their corresponding weights, the final Stability evaluation value, for example, three stability evaluation indicators are: A index, B index and C index, the weight of A is a1, the weight of B is a2, and the weight of C is a3. When evaluating the stability of an access point, the stability evaluation value corresponding to A is b1, the stability evaluation value corresponding to B is b2, and the stability evaluation value corresponding to C is b3. Then, the final stability evaluation value =a1b1+a2b2+a3b3. Generally, the greater the stability evaluation value, the better the stability of the access point.

104、在所述当前时间与所述上次Wi-Fi扫描时间之间的时间差小于或等于所述预设阈值,读取所述上次Wi-Fi扫描的扫描结果。104. When the time difference between the current time and the last Wi-Fi scanning time is less than or equal to the preset threshold, read the scanning result of the last Wi-Fi scanning.

其中,在当前时间与上次Wi-Fi扫描时间之间的时间差小于或等于预设阈值,读取上次Wi-Fi扫描的扫描结果。移动终端可直接读取上次Wi-Fi扫描的扫描结果,即Wi-Fi列表(如图1a,图1a为Wi-Fi列表的一种演示示意图)。移动终端在上次Wi-Fi扫描结束后,可记录扫描时间。Wherein, when the time difference between the current time and the last Wi-Fi scanning time is less than or equal to the preset threshold, the scanning result of the last Wi-Fi scanning is read. The mobile terminal can directly read the scan result of the last Wi-Fi scan, that is, the Wi-Fi list (as shown in Figure 1a, which is a schematic diagram of a demonstration of the Wi-Fi list). After the last Wi-Fi scan ends, the mobile terminal can record the scan time.

105、在所述当前时间与所述上次Wi-Fi扫描时间之间的时间差大于所述预设阈值,进行Wi-Fi扫描。105. When the time difference between the current time and the last Wi-Fi scanning time is greater than the preset threshold, perform Wi-Fi scanning.

其中,在当前时间与上次Wi-Fi扫描时间之间的时间差大于预设阈值,进行Wi-Fi扫描。Wherein, when the time difference between the current time and the last Wi-Fi scanning time is greater than a preset threshold, the Wi-Fi scanning is performed.

例如,移动终端的系统收到应用(如微信、QQ等)发起的Wi-Fi扫描请求,可判断该应用的应用标识是否存在于预设标识集合。如果发起扫描的应用在预设标识集合中,则直接进行Wi-Fi扫描,同时,记录该进行Wi-Fi扫描的扫描时间,假设为:Time_Req。如果发起扫描的应用不在预设标识集合中,则可对比当前时间与上次Wi-Fi扫描时间:For example, the system of the mobile terminal receives a Wi-Fi scanning request initiated by an application (such as WeChat, QQ, etc.), and can determine whether the application identifier of the application exists in the preset identifier set. If the application that initiates the scan is in the preset identification set, it will directly perform the Wi-Fi scan, and at the same time, record the scan time for the Wi-Fi scan, which is assumed to be: Time_Req. If the application that initiated the scan is not in the preset identification set, you can compare the current time with the last Wi-Fi scan time:

如果current_Time–Req_Time<Threshold,直接返回上一次Wi-Fi扫描的扫描结果。If current_Time–Req_Time<Threshold, directly return the scan result of the last Wi-Fi scan.

如果current_Time–Req_Time>Threshold,触发Wi-Fi芯片进行Wi-Fi扫描,同时,可设置Req_Time=current_time。If current_Time–Req_Time>Threshold, trigger the Wi-Fi chip to scan for Wi-Fi, and at the same time, set Req_Time=current_time.

其中,上述current_Time为当前时间,Req_Time为上次Wi-Fi扫描的扫描时间,Threshold为预设阈值。Wherein, the above-mentioned current_Time is the current time, Req_Time is the scan time of the last Wi-Fi scan, and Threshold is the preset threshold.

可以看出,通过本发明实施例,接收由目标应用发起的Wi-Fi扫描请求,该Wi-Fi扫描请求携带目标应用的目标应用标识,检测目标应用标识是否存在于预设标识集合,在目标应用标识不存在于预设标识集合时,判断当前时间与上次Wi-Fi扫描时间之间的时间差是否大于预设阈值,在当前时间与上次Wi-Fi扫描时间之间的时间差小于或等于预设阈值,读取上次Wi-Fi扫描的扫描结果,在当前时间与上次Wi-Fi扫描时间之间的时间差大于预设阈值,进行Wi-Fi扫描。从而,可通过预设标识集合降低Wi-Fi扫描的次数,从而,降低移动终端的功耗。It can be seen that, through the embodiment of the present invention, the Wi-Fi scanning request initiated by the target application is received, the Wi-Fi scanning request carries the target application identifier of the target application, and it is detected whether the target application identifier exists in the preset identifier set. When the application identifier does not exist in the preset identifier set, determine whether the time difference between the current time and the last Wi-Fi scanning time is greater than the preset threshold, and whether the time difference between the current time and the last Wi-Fi scanning time is less than or equal to Preset the threshold, read the scan result of the last Wi-Fi scan, and perform a Wi-Fi scan when the time difference between the current time and the time of the last Wi-Fi scan is greater than the preset threshold. Therefore, the number of times of Wi-Fi scanning can be reduced through the preset identification set, thereby reducing the power consumption of the mobile terminal.

与上述一致地,请参阅图2,为本发明实施例提供的一种无线保真Wi-Fi扫描方法的第二实施例流程示意图。本实施例中所描述的无线保真Wi-Fi扫描方法,包括以下步骤:Consistent with the above, please refer to FIG. 2 , which is a schematic flowchart of a second embodiment of a wireless fidelity Wi-Fi scanning method provided by an embodiment of the present invention. The wireless fidelity Wi-Fi scanning method described in the present embodiment comprises the following steps:

201、接收由目标应用发起的Wi-Fi扫描请求,所述Wi-Fi扫描请求携带所述目标应用的目标应用标识。201. Receive a Wi-Fi scanning request initiated by a target application, where the Wi-Fi scanning request carries a target application identifier of the target application.

202、判断移动终端的位置是否存在于历史定位记录中。202. Determine whether the location of the mobile terminal exists in a historical location record.

其中,移动终端可通过全球定位系统(Global Positioning System,GPS)或者Wi-Fi定位技术确定移动终端的位置。移动终端在每次定位之后,可记录其定位的位置,并将其保存在历史定位记录中,因而,历史定位记录中可至少包含一个位置。Wherein, the mobile terminal may determine the location of the mobile terminal through a Global Positioning System (Global Positioning System, GPS) or Wi-Fi positioning technology. After each positioning, the mobile terminal can record its located position and save it in the historical positioning record. Therefore, the historical positioning record can include at least one position.

203、在所述移动终端的位置处于所述历史定位记录中,检测所述目标应用标识是否存在于预设标识集合。203. When the location of the mobile terminal is in the historical location record, detect whether the target application identifier exists in a preset identifier set.

其中,在移动终端的位置处于历史定位记录中,则检测目标应用标识是否存在于预设标识集合。在移动终端的位置处于历史定位记录中,则说明移动终端又来到了以前来过的位置,该位置的范围内可能包含曾经连接过的接入点,因而,可对移动终端的位置进行判断,如果移动终端的位置不存在于历史定位记录,则说明移动终端可能来到一个陌生位置,则可不执行后续步骤。当然,如果移动终端的位置不存在于历史定位记录,也可以不进行Wi-Fi扫描,除非接收到用户输入的扫描指令,则进行Wi-Fi扫描,一方面,为了移动终端的网络安全考虑,另外一方面,也为了降低移动终端的功耗。Wherein, when the location of the mobile terminal is in the historical location record, it is detected whether the target application identifier exists in the preset identifier set. If the location of the mobile terminal is in the historical positioning record, it means that the mobile terminal has come to the location where it has been before, and the range of this location may include access points that have been connected. Therefore, the location of the mobile terminal can be judged. If the location of the mobile terminal does not exist in the historical location record, it means that the mobile terminal may come to an unfamiliar location, and the subsequent steps may not be performed. Of course, if the location of the mobile terminal does not exist in the historical location records, Wi-Fi scanning may not be performed, unless a scanning instruction input by the user is received, then Wi-Fi scanning is performed. On the one hand, for the sake of network security of the mobile terminal, On the other hand, it is also to reduce the power consumption of the mobile terminal.

204、在所述目标应用标识不存在于所述预设标识集合时,判断当前时间与上次Wi-Fi扫描时间之间的时间差是否大于预设阈值。204. When the target application identifier does not exist in the preset identifier set, determine whether the time difference between the current time and the last Wi-Fi scanning time is greater than a preset threshold.

205、在所述当前时间与所述上次Wi-Fi扫描时间之间的时间差小于或等于所述预设阈值,读取所述上次Wi-Fi扫描的扫描结果。205. When the time difference between the current time and the last Wi-Fi scanning time is less than or equal to the preset threshold, read the scanning result of the last Wi-Fi scanning.

206、在所述当前时间与所述上次Wi-Fi扫描时间之间的时间差大于所述预设阈值,进行Wi-Fi扫描。206. Perform Wi-Fi scanning when the time difference between the current time and the last Wi-Fi scanning time is greater than the preset threshold.

其中,上述步骤201以及步骤204-步骤206的具体描述可参照图1所描述的无线保真Wi-Fi扫描方法的相应步骤,在此不再赘述。Wherein, for the specific description of the above-mentioned step 201 and steps 204-206, reference may be made to the corresponding steps of the wireless fidelity Wi-Fi scanning method described in FIG. 1 , which will not be repeated here.

可以看出,通过本发明实施例,接收由目标应用发起的Wi-Fi扫描请求,该Wi-Fi扫描请求携带目标应用的目标应用标识,在该移动终端的位置存在于历史定位记录中时,则检测目标应用标识是否存在于预设标识集合,在目标应用标识不存在于预设标识集合时,判断当前时间与上次Wi-Fi扫描时间之间的时间差是否大于预设阈值,在当前时间与上次Wi-Fi扫描时间之间的时间差小于或等于预设阈值,读取上次Wi-Fi扫描的扫描结果,在当前时间与上次Wi-Fi扫描时间之间的时间差大于预设阈值,进行Wi-Fi扫描。从而,可通过预设标识集合降低Wi-Fi扫描的次数,从而,降低移动终端的功耗。另外,如果移动终端的位置不存在于历史定位记录则可不执行Wi-Fi扫描,一定程度上可提高移动终端的网络安全性,另外,还可降低移动终端的功耗。It can be seen that, through the embodiment of the present invention, receiving a Wi-Fi scanning request initiated by a target application, the Wi-Fi scanning request carrying the target application identifier of the target application, when the location of the mobile terminal exists in the historical location record, Then detect whether the target application identifier exists in the preset identifier set, and when the target application identifier does not exist in the preset identifier set, judge whether the time difference between the current time and the last Wi-Fi scanning time is greater than the preset threshold, and at the current time The time difference between the last Wi-Fi scan time is less than or equal to the preset threshold, read the scan results of the last Wi-Fi scan, and the time difference between the current time and the last Wi-Fi scan time is greater than the preset threshold , to perform a Wi-Fi scan. Therefore, the number of times of Wi-Fi scanning can be reduced through the preset identification set, thereby reducing the power consumption of the mobile terminal. In addition, if the location of the mobile terminal does not exist in the historical location records, then Wi-Fi scanning may not be performed, which can improve the network security of the mobile terminal to a certain extent, and also reduce the power consumption of the mobile terminal.

与上述一致地,以下为实施上述无线保真Wi-Fi扫描方法的装置,具体如下:Consistent with the above, the following is a device for implementing the above-mentioned wireless fidelity Wi-Fi scanning method, specifically as follows:

请参阅图3a,为本发明实施例提供的一种移动终端的第一实施例结构示意图。本实施例中所描述的移动终端,包括:接收单元301、检测单元302、第一判断单元303、读取单元304和扫描单元305,具体如下:Please refer to FIG. 3 a , which is a schematic structural diagram of a first embodiment of a mobile terminal provided by an embodiment of the present invention. The mobile terminal described in this embodiment includes: a receiving unit 301, a detecting unit 302, a first judging unit 303, a reading unit 304, and a scanning unit 305, specifically as follows:

接收单元301,用于接收由目标应用发起的Wi-Fi扫描请求,所述Wi-Fi扫描请求携带所述目标应用的目标应用标识;The receiving unit 301 is configured to receive a Wi-Fi scan request initiated by a target application, where the Wi-Fi scan request carries a target application identifier of the target application;

检测单元302,用于检测所述目标应用标识是否存在于预设标识集合;A detecting unit 302, configured to detect whether the target application identifier exists in a preset identifier set;

第一判断单元303,用于在所述检测单元302的检测结果为所述目标应用标识不存在于所述预设标识集合时,判断当前时间与上次Wi-Fi扫描时间之间的时间差是否大于预设阈值;The first judging unit 303 is configured to judge whether the time difference between the current time and the last Wi-Fi scanning time is greater than a preset threshold;

读取单元304,用于在所述第一判断单元303的判断结果为所述当前时间与所述上次Wi-Fi扫描时间之间的时间差小于或等于所述预设阈值,读取所述上次Wi-Fi扫描的扫描结果;The reading unit 304 is configured to read the time difference between the current time and the last Wi-Fi scanning time when the judgment result of the first judgment unit 303 is less than or equal to the preset threshold. Scan results from the last Wi-Fi scan;

扫描单元305,用于在所述第一判断单元303的判断结果为所述当前时间与所述上次Wi-Fi扫描时间之间的时间差大于所述预设阈值,进行Wi-Fi扫描。The scanning unit 305 is configured to perform Wi-Fi scanning when the first determining unit 303 determines that the time difference between the current time and the last Wi-Fi scanning time is greater than the preset threshold.

可选地,所述扫描单元305还具体用于:Optionally, the scanning unit 305 is also specifically configured to:

在所述检测单元的检测结果为所述目标应用标识存在于所述预设标识集合时,进行Wi-Fi扫描。When the detection result of the detection unit is that the target application identifier exists in the preset identifier set, Wi-Fi scanning is performed.

可选地,如图3b,图3b为图3a所描述的移动终端的扫描单元305的具体细化结构,该扫描单元305可包括:确定模块3051、获取模块3052、选取模块3053和扫描模块3054,具体如下:Optionally, as shown in FIG. 3b, FIG. 3b is a specific detailed structure of the scanning unit 305 of the mobile terminal described in FIG. 3a. The scanning unit 305 may include: a determination module 3051, an acquisition module 3052, a selection module 3053 and a scanning module 3054 ,details as follows:

确定模块3051,用于确定当前位置;Determining module 3051, configured to determine the current location;

获取模块3052,用于获取与所述当前位置对应的上次Wi-Fi扫描的扫描结果,所述扫描结果中包含X个接入点,所述X为大于1的整数;An acquisition module 3052, configured to acquire a scan result of the last Wi-Fi scan corresponding to the current location, where the scan result includes X access points, where X is an integer greater than 1;

选取模块3053,用于从所述X个接入点中选取Y个目标接入点,所述Y为小于所述X的正整数;A selecting module 3053, configured to select Y target access points from the X access points, where Y is a positive integer smaller than the X;

扫描模块3054,用于按照所述Y个目标接入点的稳定性由强到弱的顺序进行扫描。The scanning module 3054 is configured to perform scanning in descending order of the stability of the Y target access points.

可选地,所述选取模块3053具体用于:Optionally, the selecting module 3053 is specifically configured to:

筛选出所述X个接入点中符合预设要求的Y个接入点,所述预设要求为接入点的信号强度大于预设信号强度且其密码为静态密码。Screening out Y access points from the X access points that meet the preset requirement, the preset requirement is that the signal strength of the access point is greater than the preset signal strength and the password of the access point is a static password.

可选地,如图3c,图3c为图3a所描述的移动终端的一种变型结构,其与图3a所描述的移动终端相比较,还可包括:第二判断单元306,具体如下:Optionally, as shown in FIG. 3c, FIG. 3c is a modified structure of the mobile terminal described in FIG. 3a. Compared with the mobile terminal described in FIG. 3a, it may further include: a second judging unit 306, specifically as follows:

第二判断单元306,用于在所述接收单元301接收由目标应用发送的无线保真Wi-Fi扫描请求之后,判断所述移动终端的位置是否存在于历史定位记录中,在所述第二判断单元306的判断结果为所述移动终端的位置处于所述历史定位记录中,由所述检测单元302执行所述检测所述目标应用标识是否存在于预设标识集合。The second judging unit 306 is configured to judge whether the location of the mobile terminal exists in the historical location record after the receiving unit 301 receives the Wi-Fi scanning request sent by the target application. The judgment result of the judgment unit 306 is that the location of the mobile terminal is in the historical location record, and the detection unit 302 performs the detection whether the target application identifier exists in the preset identifier set.

可以看出,通过本发明实施例所描述的移动终端,可接收由目标应用发起的Wi-Fi扫描请求,该Wi-Fi扫描请求携带目标应用的目标应用标识,检测目标应用标识是否存在于预设标识集合,在目标应用标识不存在于预设标识集合时,判断当前时间与上次Wi-Fi扫描时间之间的时间差是否大于预设阈值,在当前时间与上次Wi-Fi扫描时间之间的时间差小于或等于预设阈值,读取上次Wi-Fi扫描的扫描结果,在当前时间与上次Wi-Fi扫描时间之间的时间差大于预设阈值,进行Wi-Fi扫描。从而,可通过预设标识集合降低Wi-Fi扫描的次数,从而,降低移动终端的功耗。It can be seen that, through the mobile terminal described in the embodiment of the present invention, the Wi-Fi scanning request initiated by the target application can be received, the Wi-Fi scanning request carries the target application identification of the target application, and whether the target application identification exists in the preset Set up an identification set. When the target application identification does not exist in the preset identification set, it is judged whether the time difference between the current time and the last Wi-Fi scanning time is greater than the preset threshold. Between the current time and the last Wi-Fi scanning time If the time difference between the current time and the last Wi-Fi scan time is greater than the preset threshold, the Wi-Fi scan is performed. Therefore, the number of times of Wi-Fi scanning can be reduced through the preset identification set, thereby reducing the power consumption of the mobile terminal.

与上述一致地,请参阅图4,为本发明实施例提供的一种移动终端的第二实施例结构示意图。本实施例中所描述的移动终端,包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。Consistent with the above, please refer to FIG. 4 , which is a schematic structural diagram of a second embodiment of a mobile terminal provided by an embodiment of the present invention. The mobile terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and memory 4000, the above-mentioned input device 1000, output device 2000, processor 3000 and The memory 4000 is connected via a bus 5000 .

其中,上述输入设备1000具体可为触控面板、物理按键或者鼠标。Wherein, the above-mentioned input device 1000 may specifically be a touch panel, a physical button or a mouse.

上述输出设备2000具体可为显示屏。The aforementioned output device 2000 may specifically be a display screen.

上述存储器4000可以是高速RAM存储器,也可为非易失存储器(non-volatilememory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:The above-mentioned memory 4000 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory. The above-mentioned memory 4000 is used to store a set of program codes, and the above-mentioned input device 1000, output device 2000 and processor 3000 are used to call the program codes stored in the memory 4000, and perform the following operations:

上述处理器3000,用于:The above-mentioned processor 3000 is used for:

接收由目标应用发起的Wi-Fi扫描请求,所述Wi-Fi扫描请求携带所述目标应用的目标应用标识;receiving a Wi-Fi scan request initiated by a target application, where the Wi-Fi scan request carries a target application identifier of the target application;

检测所述目标应用标识是否存在于预设标识集合;Detecting whether the target application identifier exists in a preset identifier set;

在所述目标应用标识不存在于所述预设标识集合时,判断当前时间与上次Wi-Fi扫描时间之间的时间差是否大于预设阈值;When the target application identifier does not exist in the preset identifier set, determine whether the time difference between the current time and the last Wi-Fi scanning time is greater than a preset threshold;

在所述当前时间与所述上次Wi-Fi扫描时间之间的时间差小于或等于所述预设阈值,读取所述上次Wi-Fi扫描的扫描结果;When the time difference between the current time and the last Wi-Fi scan time is less than or equal to the preset threshold, read the scan result of the last Wi-Fi scan;

在所述当前时间与所述上次Wi-Fi扫描时间之间的时间差大于所述预设阈值,进行Wi-Fi扫描。When the time difference between the current time and the last Wi-Fi scanning time is greater than the preset threshold, Wi-Fi scanning is performed.

可选地,上述处理器3000,还具体用于;Optionally, the above-mentioned processor 3000 is further specifically configured to;

在所述目标应用标识存在于所述预设标识集合时,进行Wi-Fi扫描。When the target application identifier exists in the preset identifier set, Wi-Fi scanning is performed.

可选地,上述处理器3000进行Wi-Fi扫描,包括:Optionally, the above-mentioned processor 3000 performs Wi-Fi scanning, including:

确定当前位置;determine the current location;

获取与所述当前位置对应的上次Wi-Fi扫描的扫描结果,所述扫描结果中包含X个接入点,所述X为大于1的整数;Obtain the scan result of the last Wi-Fi scan corresponding to the current location, the scan result includes X access points, and the X is an integer greater than 1;

从所述X个接入点中选取Y个目标接入点,所述Y为小于所述X的正整数;Selecting Y target access points from the X access points, where Y is a positive integer smaller than X;

按照所述Y个目标接入点的稳定性由强到弱的顺序进行扫描。Scanning is performed in descending order of the stability of the Y target access points.

可选地,上述处理器3000从所述X个接入点中选取Y个目标接入点,包括:Optionally, the processor 3000 selecting Y target access points from the X access points includes:

筛选出所述X个接入点中符合预设要求的Y个接入点,所述预设要求为接入点的信号强度大于预设信号强度且其密码为静态密码。Screening out Y access points from the X access points that meet the preset requirement, the preset requirement is that the signal strength of the access point is greater than the preset signal strength and the password of the access point is a static password.

可选地,上述处理器3000,在所述接收由目标应用发送的无线保真Wi-Fi扫描请求之后,以及所述检测所述目标应用标识是否存在于预设标识集合,还具体用于:Optionally, the above-mentioned processor 3000, after receiving the Wi-Fi scanning request sent by the target application, and detecting whether the target application identifier exists in the preset identifier set, is further specifically configured to:

判断所述移动终端的位置是否存在于历史定位记录中;judging whether the location of the mobile terminal exists in the historical location record;

在所述移动终端的位置处于所述历史定位记录中,执行所述检测所述目标应用标识是否存在于预设标识集合。When the location of the mobile terminal is in the historical location record, performing the detecting whether the target application identifier exists in a preset identifier set.

本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种无线保真Wi-Fi扫描方法的部分或全部步骤。An embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, it includes part or all of any wireless fidelity Wi-Fi scanning method described in the above method embodiments step.

尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the present invention has been described in conjunction with various embodiments herein, in the process of implementing the claimed invention, those skilled in the art can understand and Other variations of the disclosed embodiments are implemented. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.

本领域技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, devices (devices), or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The computer program is stored/distributed on suitable media, supplied with or as part of other hardware, and may also take other forms of distribution, such as via the Internet or other wired or wireless telecommunication systems.

本发明是参照本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, apparatus (device) and computer program products according to embodiments of the present invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Although the invention has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made therein without departing from the spirit and scope of the invention. Accordingly, the specification and drawings are merely illustrative of the invention as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the invention. Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (11)

CN201611118639.5A2016-12-072016-12-07Wireless fidelity Wi-Fi scanning method and mobile terminalActiveCN106604362B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201611118639.5ACN106604362B (en)2016-12-072016-12-07Wireless fidelity Wi-Fi scanning method and mobile terminal
PCT/CN2017/101464WO2018103402A1 (en)2016-12-072017-09-12Wireless fidelity (wifi) scan method and related product

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201611118639.5ACN106604362B (en)2016-12-072016-12-07Wireless fidelity Wi-Fi scanning method and mobile terminal

Publications (2)

Publication NumberPublication Date
CN106604362Atrue CN106604362A (en)2017-04-26
CN106604362B CN106604362B (en)2019-09-10

Family

ID=58596263

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201611118639.5AActiveCN106604362B (en)2016-12-072016-12-07Wireless fidelity Wi-Fi scanning method and mobile terminal

Country Status (2)

CountryLink
CN (1)CN106604362B (en)
WO (1)WO2018103402A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107949040A (en)*2017-12-042018-04-20广东欧珀移动通信有限公司 Wireless local area network scanning method, device, computer equipment and storage medium
WO2018103402A1 (en)*2016-12-072018-06-14广东欧珀移动通信有限公司Wireless fidelity (wifi) scan method and related product
CN108924908A (en)*2018-06-122018-11-30Oppo广东移动通信有限公司WiFi scanning method and device and electronic device
CN110876182A (en)*2018-09-032020-03-10成都鼎桥通信技术有限公司Position measuring method and device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111988101B (en)*2019-05-232022-08-05杭州海康威视数字技术股份有限公司Wireless channel switching method, system, access point and workstation
CN114786242B (en)*2019-08-212023-07-04Oppo广东移动通信有限公司Wireless high-fidelity Wi-Fi access point selection method and related device
CN112422627B (en)*2020-10-162023-07-28鹏城实验室 An Internet of Things node control method, device, intelligent terminal, and storage medium
CN115314976A (en)*2021-05-062022-11-08Oppo广东移动通信有限公司Network connection method and device, and storage medium
CN114051274B (en)*2021-11-092024-11-15青岛海信宽带多媒体技术有限公司 A router and a router relay connection method

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2012148183A2 (en)*2011-04-292012-11-01Lg Electronics Inc.Channel access method and apparatus using the same in wireless local area network system
CN104509183A (en)*2012-07-312015-04-08高通股份有限公司Processing of access point crowdsourcing data
CN105338606A (en)*2014-08-122016-02-17中兴通讯股份有限公司Wireless network access power consumption processing method and device
CN105407473A (en)*2015-10-222016-03-16小米科技有限责任公司Wireless local area network discovery method and apparatus
CN105430715A (en)*2015-10-222016-03-23小米科技有限责任公司Method and apparatus for controlling WIFI scanning

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR101510714B1 (en)*2008-10-272015-04-10삼성전자주식회사Method for connecting to wireless lan access point and apparatus using the same
US8787228B2 (en)*2010-02-232014-07-22Intel CorporationMethod apparatus and system for reducing power consumption of a wireless device
CN102711226A (en)*2012-05-232012-10-03中兴通讯股份有限公司Method and device for scanning WIFI (wireless fidelity) access point
CN103813414B (en)*2012-11-152017-09-19中兴通讯股份有限公司Mobile terminal Wi Fi application controls methods and mobile terminal
CN106604362B (en)*2016-12-072019-09-10Oppo广东移动通信有限公司Wireless fidelity Wi-Fi scanning method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2012148183A2 (en)*2011-04-292012-11-01Lg Electronics Inc.Channel access method and apparatus using the same in wireless local area network system
CN104509183A (en)*2012-07-312015-04-08高通股份有限公司Processing of access point crowdsourcing data
CN105338606A (en)*2014-08-122016-02-17中兴通讯股份有限公司Wireless network access power consumption processing method and device
CN105407473A (en)*2015-10-222016-03-16小米科技有限责任公司Wireless local area network discovery method and apparatus
CN105430715A (en)*2015-10-222016-03-23小米科技有限责任公司Method and apparatus for controlling WIFI scanning

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2018103402A1 (en)*2016-12-072018-06-14广东欧珀移动通信有限公司Wireless fidelity (wifi) scan method and related product
CN107949040A (en)*2017-12-042018-04-20广东欧珀移动通信有限公司 Wireless local area network scanning method, device, computer equipment and storage medium
CN107949040B (en)*2017-12-042020-06-12Oppo广东移动通信有限公司 Wireless local area network scanning method, device, computer equipment and storage medium
CN108924908A (en)*2018-06-122018-11-30Oppo广东移动通信有限公司WiFi scanning method and device and electronic device
CN110876182A (en)*2018-09-032020-03-10成都鼎桥通信技术有限公司Position measuring method and device

Also Published As

Publication numberPublication date
CN106604362B (en)2019-09-10
WO2018103402A1 (en)2018-06-14

Similar Documents

PublicationPublication DateTitle
CN106604362B (en)Wireless fidelity Wi-Fi scanning method and mobile terminal
CN106658672B (en)Wireless fidelity Wi-Fi connection method and mobile terminal
CN110147320A (en)Interface test method, device and electronic equipment
EP3562257B1 (en)Wireless fidelity (wi-fi) connection method and related product
CN105245346B (en)A kind of identity identifying method and user terminal
CN104376258B (en)The security risk detection method and device of Android application program
CN106686587B (en) A wireless fidelity Wi-Fi connection method, mobile terminal and medium
CN106851779A (en)A kind of method and mobile terminal for recognizing access point and focus
CN113468515A (en)User identity authentication method and device, electronic equipment and storage medium
CN106792699A (en) A wireless fidelity Wi-Fi connection method and mobile terminal
CN112395519A (en)Method and device for generating interest points in road information
CN106535102B (en)A kind of mobile terminal locating method and mobile terminal
WO2018103403A1 (en)Wireless fidelity (wi-fi) scanning method and related product
CN106209918A (en)The method of a kind of internet security management and terminal
CN106604363B (en)Wireless fidelity Wi-Fi scanning method, mobile terminal and storage medium
CN106227664A (en)A kind of method and device testing application program
CN105468947A (en)Information processing method and device and electronic equipment
CN109976828B (en)Method and device for configuring file
CN106302519A (en)The method of a kind of internet security management and terminal
CN106793015A (en) A wireless fidelity Wi-Fi connection method and mobile terminal
CN106550423A (en) Access point management method and terminal
CN105472705B (en)A kind of wireless network processing method and mobile terminal
CN106793016B (en)Wireless fidelity Wi-Fi connection method and mobile terminal
CN106686588B (en)Wireless fidelity Wi-Fi connection method and mobile terminal
CN106535300A (en)Network access method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after:OPPO Guangdong Mobile Communications Co., Ltd.

Address before:523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before:Guangdong OPPO Mobile Communications Co., Ltd.

CB02Change of applicant information
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp