WO2018103401A1 - 无线保真Wi-Fi扫描方法及相关产品 - Google Patents
无线保真Wi-Fi扫描方法及相关产品 Download PDFInfo
- Publication number
- WO2018103401A1 WO2018103401A1 PCT/CN2017/101463 CN2017101463W WO2018103401A1 WO 2018103401 A1 WO2018103401 A1 WO 2018103401A1 CN 2017101463 W CN2017101463 W CN 2017101463W WO 2018103401 A1 WO2018103401 A1 WO 2018103401A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- mobile terminal
- location
- scanning
- frequency
- changed
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present invention relates to the field of Internet technologies, and in particular, to a wireless fidelity Wi-Fi scanning method and related products.
- mobile terminals such as mobile phones, tablet computers, etc.
- mobile terminals are becoming more and more popular, and users are increasingly demanding mobile terminals, which not only requires high processing speed, but also has terminal endurance. A request was also made.
- Wi-Fi Wireless Fidelity
- Embodiments of the present invention provide a wireless fidelity Wi-Fi scanning method and related products, so as to avoid frequent Wi-Fi scanning, thereby reducing power consumption of the mobile terminal.
- a first aspect of the embodiments of the present invention provides a wireless fidelity Wi-Fi scanning method, including:
- the Wi-Fi scan is performed according to the second scan frequency, wherein the second scan frequency is smaller than the first scan frequency.
- a second aspect of the embodiments of the present invention provides a wireless fidelity Wi-Fi scanning apparatus, including:
- a detecting unit configured to detect whether a location of the mobile terminal changes
- a scanning unit configured to perform a Wi-Fi scan according to the first scanning frequency when the detection result of the detecting unit is a change of the position of the mobile terminal;
- the scanning unit is further configured to:
- the Wi-Fi scanning is performed according to the second scanning frequency, wherein the second scanning frequency is smaller than the first scanning frequency.
- an embodiment of the present invention provides a mobile terminal, including: a processor and a memory; and one or more programs, where the one or more programs are stored in the memory, and configured to be The processor executes, the program including instructions for some or all of the steps as described in the first aspect.
- an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium is configured to store a computer program, wherein the computer program causes a computer to perform the first aspect of the embodiment of the present invention. Instructions for some or all of the steps described in the section.
- an embodiment of the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute Some or all of the steps described in the first aspect of the invention.
- the computer program product can be a software installation package.
- FIG. 1 is a schematic flow chart of a first embodiment of a wireless fidelity Wi-Fi scanning method according to an embodiment of the present invention
- 1a is a schematic diagram of a Wi-Fi list presentation according to an embodiment of the present invention.
- FIG. 2 is a schematic flowchart diagram of a second embodiment of a wireless fidelity Wi-Fi scanning method according to an embodiment of the present disclosure
- FIG. 3 is a schematic structural diagram of an embodiment of a wireless fidelity Wi-Fi scanning apparatus according to an embodiment of the present invention
- FIG. 3b is another schematic structural diagram of the wireless fidelity Wi-Fi scanning apparatus described in FIG. 3a according to an embodiment of the present invention
- FIG. 4 is a schematic structural diagram of an embodiment of a mobile terminal according to an embodiment of the present invention.
- the embodiments of the present invention provide a wireless fidelity Wi-Fi scanning method and related products, which can avoid frequent Wi-Fi scanning, thereby reducing power consumption of the mobile terminal.
- references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
- the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
- the mobile terminal described in the embodiments of the present invention may include a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.), a tablet computer, a palmtop computer, a notebook computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable device.
- a smart phone such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.
- a tablet computer such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.
- a palmtop computer such as a notebook computer
- MID Mobile Internet Devices
- Wi-Fi scanning when the mobile terminal is in the Wi-Fi connection state or the Wi-Fi disconnection state, the Wi-Fi chip is activated at a certain frequency (fixed frequency). Wi-Fi scanning, the more frequent Wi-Fi scanning, the faster access to surrounding access points and access point information changes, Wi-Fi scanning slow, it will get slow, but the user position has not been moving At the same time, frequent Wi-Fi scanning is not necessary. Under the premise of not moving, the surrounding access points and access point information are relatively fixed in a short time, and the scanning frequency of Wi-Fi scanning can be appropriately reduced.
- FIG. 1 is a schematic flowchart diagram of a first embodiment of a wireless fidelity Wi-Fi scanning method according to an embodiment of the present invention.
- the wireless fidelity Wi-Fi scanning method described in this embodiment includes the following steps:
- step 101 detecting whether the location of the mobile terminal changes includes:
- the mobile terminal can obtain the current location through the Wi-Fi positioning technology, or obtain the current location through a Global Positioning System (GPS).
- the first preset threshold may be set by the system by default or by the user, for example, 5 meters, 10 meters, 11.5 meters, 20 meters, and the like.
- the last recorded position is the position of the terminal determined when the positioning was last performed, and "last time" can be understood as the closest to the current time.
- the distance between the current location and the last recorded location is greater than the first predetermined threshold, it is determined that the location of the mobile terminal has changed.
- the distance between the current location and the last recorded location is less than or equal to the first predetermined threshold, it is determined that the location of the mobile terminal has not changed.
- the first preset threshold is 10 meters
- the distance between the current position and the last recorded position is 5 meters
- the position of the mobile terminal is not changed, if the current position is between the last recorded position and the last recorded position.
- the distance is 11 meters, indicating that the location of the mobile terminal has changed.
- step 101 detecting whether the location of the mobile terminal changes includes:
- the Wi-Fi signal strength also changes. Therefore, whether the location of the mobile terminal changes can be determined by detecting the change value of the Wi-Fi signal strength.
- the second pre- The threshold can be set by the system default or by the user, for example, 5 decibel (dB), 10 dB, 11.5 dB, 20 dB, and the like.
- the Wi-Fi signal strength change value of the mobile terminal is greater than the second preset threshold, and it is confirmed that the location of the mobile terminal has changed.
- the Wi-Fi signal strength change value of the mobile terminal is less than or equal to the second preset threshold, and it is confirmed that the location of the mobile terminal has changed.
- the mobile terminal may change its location and may leave.
- the access point A is within the coverage.
- the second preset threshold is 5 dB
- the Wi-Fi signal strength change value is 3 dB
- the position of the mobile terminal is unchanged.
- the Wi-Fi signal strength change value is 6 dB
- step 101 detecting whether the location of the mobile terminal changes includes:
- the vibration frequency of the mobile terminal also changes, and thus, whether the position of the mobile terminal changes can be determined by detecting the vibration frequency.
- the above preset frequency threshold is set by the system default or by the user. When the vibration frequency of the mobile terminal is greater than a preset frequency threshold, it is confirmed that the position of the mobile terminal has changed. When the vibration frequency of the mobile terminal is less than or equal to the preset frequency threshold, it is confirmed that the position of the mobile terminal does not change. Assuming that the preset frequency threshold is 50 Hz, if the vibration frequency of the current mobile terminal is 5 Hz, the position of the mobile terminal is unchanged. If the vibration frequency of the current mobile terminal is 51 Hz, the position of the mobile terminal has changed.
- step 101 detecting whether the location of the mobile terminal changes includes:
- FIG. 1a is a schematic diagram of a Wi-Fi list.
- the mobile terminal may generate a scan record, that is, a Wi-Fi list, after each Wi-Fi scan, and the Wi-Fi list may include multiple access points and their corresponding access point information.
- the above preset similarity can be set by the system default or by the user.
- the mobile terminal can obtain the last Wi-Fi list, and the last Wi-Fi list can be understood as the Wi-Fi obtained by the Wi-Fi scan closest to the current time. List, assuming that the mobile terminal is fixed at one location, the Wi-Fi list obtained by each scan is relatively stable. For example, the mobile terminal is in the A position, and its Wi-Fi list includes access points a1, a2, a3, and A4.
- the access points included in the Wi-Fi list may still be a1, a2, a3, and a4.
- the access point included in the Wi-Fi list may still be a1.
- a2 and a3 for example: the access point corresponding to a4 is closed).
- the similarity may be determined as the number of access points in the Wi-Fi list that are not present in the last Wi-Fi list, and the access point a1, a2 is included in the last Wi-Fi list.
- the current Wi-Fi list includes access points a1, a2, and a5, and the number of access points that do not exist in the last Wi-Fi list is 2 (ie, a3 and a4), and the similarity is 2.
- the preset similarity is 2 it is confirmed that the position of the mobile terminal has not changed.
- the preset similarity is 3, it is confirmed that the position of the mobile terminal has changed.
- the similarity may be determined as the number of access points that exist in the last Wi-Fi list and the total number of access points in the last Wi-Fi list with the access point of the current Wi-Fi list. Ratio, assuming that the last Wi-Fi list contains access points a1, a2, a3, and a4, and the current Wi-Fi list contains access points a1, a2, and a5, which exist in the last Wi-Fi list. If the number of ingress points is 2 (ie, a1 and a2), the similarity is 50%. If the preset similarity is 50%, confirm that the position of the mobile terminal has not changed. Assuming the preset similarity is 75%, confirm the movement. The location of the terminal has changed.
- step 101 detecting whether the location of the mobile terminal changes includes:
- the mobile terminal may disconnect and The connection between the access points, as such, can reflect to some extent that the location of the mobile terminal has changed.
- the mobile terminal accesses the X access point before, and the current access point is the Y access point, indicating that the location of the mobile terminal has changed. That is, when the disconnected Wi-Fi connection state of the mobile terminal is detected, or, when the access point accessed by the mobile terminal changes (for example, when the X access point changes to the Y access point), the mobile terminal is illustrated. The location has changed. If the mobile terminal is always within the coverage of the X access point, it can be stated that the location of the mobile terminal has not changed.
- the mobile terminal may be moving, so, according to the A scan frequency for Wi-Fi scanning.
- the connected Wi-Fi network is at risk of disconnection at any time, so scanning is required, so that the connectable access point can be quickly found, and the connectable access point is scanned at the mobile terminal.
- the access point can be accessed, so as to ensure that the mobile terminal can quickly access the Wi-Fi network.
- the scanning frequency of the Wi-Fi chip can be appropriately reduced.
- the scanning frequency of the Wi-Fi chip can be set to the second scanning frequency.
- the second scanning frequency can be smaller than the second scanning frequency.
- a scanning frequency is compared with a Wi-Fi scan performed by the Wi-Fi chip according to the first scanning frequency. If the second scanning frequency is used for Wi-Fi scanning, less power consumption can be consumed, due to the number of scans per unit time. Less, the power consumption of mobile terminals is also less. In this way, compared with the prior art, the Wi-Fi scanning is compared according to the fixed frequency. In the embodiment of the present invention, the power consumption of the mobile terminal can be reduced to some extent. The power consumption of the mobile terminal is reduced, and its endurance is also improved.
- the location of the mobile terminal is unchanged, and thus, Wi-Fi scanning can be performed at the second scanning frequency.
- the stability of the connection to the Wi-Fi network is related to the stability of the access point itself.
- the Wi-Fi network of the mobile terminal is also stable. In this case, There is no need to perform Wi-Fi scanning at a higher Wi-Fi scanning frequency (for example, the first scanning frequency), and only need to perform Wi-Fi scanning according to the reduced Wi-Fi scanning frequency (for example, the second scanning frequency).
- the mobile terminal may disconnect the connection state with the Wi-Fi network, and after the disconnection, scan according to the second scanning frequency, when scanning to the connectable connection At the point of entry, the access point can be accessed.
- the location of the mobile terminal is not changed, power consumption due to Wi-Fi scanning by the Wi-Fi chip can be reduced.
- performing the Wi-Fi scan according to the second scanning frequency including:
- Wi-Fi is turned off.
- the preset time length may be set by the system default or by the user, such as 10 seconds, 1 minute, 68 seconds, 105.3 seconds, and the like.
- the Wi-Fi scan is performed according to the first scanning frequency, and the location of the mobile terminal does not change.
- the Wi-Fi scanning is performed, wherein the second scanning frequency is smaller than the first scanning frequency. Therefore, when the position of the mobile terminal changes and does not change, the scanning is performed according to different scanning frequencies, and thus, the power consumption of the mobile terminal can be reduced.
- FIG. 2 it is a schematic flowchart of a second embodiment of a wireless fidelity Wi-Fi scanning method according to an embodiment of the present invention.
- the wireless fidelity Wi-Fi scanning method described in this embodiment includes the following steps:
- the third preset threshold may be set by the system default or by the user, for example, 30%, 50%, 75%, and the like.
- the step after step 201 may not be performed.
- the power of the mobile terminal may be considered to be sufficient, and the Wi-Fi chip may follow the normal frequency sweep. The frequency is scanned by Wi-Fi.
- the fourth preset threshold may be set by the system default or by the user, for example, 30 seconds, 1 minute, 5 minutes, half an hour, and the like. When the duration in which the mobile terminal is in the sleep state is greater than the fourth preset threshold, it indicates that the user does not operate the mobile terminal.
- the mobile terminal determines that the duration of the mobile terminal in the dormant state is less than or equal to the fourth preset threshold, the user is in use of the mobile terminal.
- the Wi-Fi network connection status may need to be maintained at any time, and the mobile terminal can continue to perform Wi-Fi scanning according to the first scanning frequency to ensure that the Wi-Fi network can be quickly connected even if the line is dropped. Into the network.
- the user may not use the mobile terminal, and the location of the mobile terminal may be detected. If the location changes, Then, the mobile terminal may be moving, then the Wi-Fi scan may be performed according to the first scan frequency, and if the location is not changed, the Wi-Fi scan may be performed according to the second scan frequency.
- the Wi-Fi chip of the mobile terminal has a fixed scanning frequency, and the normal scanning frequency of the Wi-Fi is F1. If the power is saved, the scanning frequency of the Wi-Fi chip can be set to F2. Among them, F2 is smaller than F1. If the user actively views the current access point information (the user is operating the mobile terminal) on the Wi-Fi function setting interface or other software interface of the mobile terminal, the power saving policy may be temporarily stopped according to the normal Wi-Fi scanning policy (ie, scanning).
- the normal Wi-Fi scanning policy ie, scanning
- the frequency F1) is scanned to ensure that when the user actively views the mobile terminal, the mobile terminal can perform Wi-Fi scanning in time to obtain the access point information around the mobile terminal in time, that is, at least on the display interface of the mobile terminal can be displayed by at least A Wi-Fi list generated by an access point information.
- the Wi-Fi chip may be in an automatic scanning state. For example, the mobile terminal can obtain the real-time location of the mobile terminal and record. When the mobile terminal performs Wi-Fi scanning, the current location is compared with the previous location record. If the location is changed, the Wi can be performed according to the scanning frequency F1.
- -Fi scan can also update the location information of the mobile terminal.
- the Wi-Fi scan can be performed according to the scan frequency F2.
- the number of scans per unit time is reduced with respect to the scan frequency F1, and thus the mobile terminal can be reduced.
- the power consumption is adjusted, so that the Wi-Fi scanning strategy can be adjusted through the change of the location information of the mobile terminal, thereby reducing the power consumption of the mobile terminal.
- performing the Wi-Fi scan according to the second scanning frequency including:
- Wi-Fi is turned off.
- the preset time length may be set by the system default or by the user, such as 10 seconds, 1 minute, 68 seconds, 105.3 seconds, and the like.
- the time for detecting whether the mobile terminal is in the sleep state is greater than the fourth preset threshold, and the time when the mobile terminal is in the sleep state is greater than the first time.
- the four preset thresholds may detect whether the location of the mobile terminal changes.
- the Wi-Fi scan is performed according to the first scanning frequency
- the Wi is performed according to the second scanning frequency.
- - Fi scan wherein the second scan frequency is less than the first scan frequency. Therefore, when the position of the mobile terminal changes and does not change, according to different scanning frequencies The rate is scanned, thus reducing the power consumption of the mobile terminal.
- Wi-Fi scanning can be performed at a lower scanning frequency, which can improve the standby capability of the mobile terminal.
- FIG. 3 is a schematic structural diagram of an embodiment of a wireless fidelity Wi-Fi scanning apparatus according to an embodiment of the present invention.
- the wireless fidelity Wi-Fi scanning device described in this embodiment includes: a detecting unit 301 and a scanning unit 302, as follows:
- the detecting unit 301 is configured to detect whether the location of the mobile terminal changes
- the scanning unit 302 is configured to perform Wi-Fi scanning according to the first scanning frequency when the detection result of the detecting unit 301 is a change of the position of the mobile terminal;
- the scanning unit 302 is further configured to:
- the Wi-Fi scanning is performed according to the second scanning frequency, wherein the second scanning frequency is smaller than the first scanning frequency.
- the detecting unit 301 is specifically configured to:
- the detecting unit 301 is specifically configured to:
- the detecting unit 301 is specifically configured to:
- the detecting unit 301 is specifically configured to:
- the similarity is that the access point of the current Wi-Fi list exists between the number of access points of the last Wi-Fi list and the total number of access points of the last Wi-Fi list. The ratio.
- the detecting unit 301 is specifically configured to:
- FIG. 3b is a variant structure of the wireless fidelity Wi-Fi scanning device described in FIG. 3a, which is further compared with the wireless fidelity Wi-Fi scanning device described in FIG. 3a.
- Judging unit 303 as follows:
- the detecting unit 301 is further specifically configured to:
- the determining unit 303 determines, when the detection result of the detecting unit 301 is that the power quantity of the mobile terminal is lower than the third preset threshold, whether the duration of the mobile terminal in the sleep state is greater than a fourth preset threshold, When the determination result of the determining unit 303 is that the duration in which the mobile terminal is in the sleep state is greater than the fourth preset threshold, the detecting unit 301 performs the detecting whether the location of the mobile terminal changes.
- the specific implementation manner of the scanning unit 302 performing Wi-Fi scanning according to the second scanning frequency is:
- Wi-Fi is turned off.
- the wireless fidelity Wi-Fi scanning device described in the embodiment of the present invention can detect whether the location of the mobile terminal changes, and when the location of the mobile terminal changes, perform Wi-Fi scanning according to the first scanning frequency.
- the Wi-Fi scan is performed according to the second scan frequency, wherein the second scan frequency is smaller than the first scan frequency. Therefore, when the position of the mobile terminal changes and does not change, the scanning is performed according to different scanning frequencies, and thus, the power consumption of the mobile terminal can be reduced.
- the wireless fidelity Wi-Fi scanning device described in the device embodiment of the present invention is presented in the form of a functional unit.
- the term "unit” as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the function described by each "unit” may be, for example, an integrated circuit ASIC, single Circuitry, a processor (shared, dedicated or chipset) and memory for executing one or more software or firmware programs, combinatorial logic, and/or other suitable components for performing the functions described above.
- the function of the detecting unit 301 for detecting whether the location of the mobile terminal is changed may be implemented by the mobile terminal shown in FIG. 4, and specifically, the processor 3000 may detect the mobile by calling the executable program code in the memory 4000. Whether the location of the terminal changes.
- FIG. 4 it is a schematic structural diagram of an embodiment of a mobile terminal according to 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 a memory 4000, the input device 1000, the output device 2000, the processor 3000, and The memory 4000 is connected by a bus 5000.
- the input device 1000 may be a touch panel, a physical button, or a mouse.
- the output device 2000 described above may specifically be a display screen.
- the above memory 4000 may be a high speed RAM memory or a non-volatile memory such as a magnetic disk memory.
- the above memory 4000 is used to store a set of program codes, and the input device 1000, the output device 2000, and the processor 3000 are used to call the program code stored in the memory 4000, and perform the following operations:
- the processor 3000 is configured to:
- the Wi-Fi scan is performed according to the second scan frequency, wherein the second scan frequency is smaller than the first scan frequency.
- the foregoing processor 3000 detects whether the location of the mobile terminal changes, including:
- the foregoing processor 3000 detects whether the location of the mobile terminal changes, including:
- the foregoing processor 3000 detects whether the location of the mobile terminal changes, including:
- the foregoing processor 3000 detects whether the location of the mobile terminal changes, including:
- the similarity is between an access point of the current Wi-Fi list and an access point of the last Wi-Fi list and a total number of access points of the last Wi-Fi list. ratio.
- the foregoing processor 3000 detects whether the location of the mobile terminal changes, including:
- the processor 3000 is further configured to: before detecting whether the location of the mobile terminal is changed,
- the processor 3000 performs a Wi-Fi scan according to the second scanning frequency, including:
- Wi-Fi is turned off.
- the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, where the program includes some or all of the wireless fidelity Wi-Fi scanning methods described in the foregoing method embodiments. step.
- Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause The computer performs some or all of the steps of any of the wireless fidelity Wi-Fi scanning methods described in the above method embodiments.
- embodiments of the present invention can be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can 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.) including computer usable program code.
- the computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例提供了一种无线保真Wi-Fi扫描方法及相关产品,所述方法包括:检测移动终端的位置是否变化;在所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描;在所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。通过本发明实施例可在移动终端的位置变化和不变化时,按照不同的扫描频率进行扫描,如此,可降低移动终端的功耗。
Description
本发明要求2016年12月7日递交的发明名称为“一种无线保真Wi-Fi扫描方法及移动终端”的申请号201611117239.2的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
本发明涉及互联网技术领域,具体涉及一种无线保真Wi-Fi扫描方法及相关产品。
随着信息技术的快速发展,移动终端(如手机、平板电脑等等)使用越来越普及,用户对移动终端的要求也越来越高,不仅需要较高的处理速度,而且对终端续航能力也提出了要求。
现在技术中,在无线保真(Wireless Fidelity,Wi-Fi)连接或者断开的时候,都会按照一定的频率的进行Wi-Fi扫描。
发明内容
本发明实施例提供了一种无线保真Wi-Fi扫描方法及相关产品,以期避免频繁进行Wi-Fi扫描,从而,降低移动终端的功耗。
本发明实施例第一方面提供了一种无线保真Wi-Fi扫描方法,包括:
检测移动终端的位置是否变化;
在所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描;
在所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。
本发明实施例第二方面提供了一种无线保真Wi-Fi扫描装置,包括:
检测单元,用于检测移动终端的位置是否变化;
扫描单元,用于在所述检测单元的检测结果为所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描;
所述扫描单元,还用于:
在所述检测单元的检测结果为所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。
第三方面,本发明实施例提供了一种移动终端,包括:处理器和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。
第四方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本发明实施例第一方面中所描述的部分或全部步骤的指令。
第五方面,本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种无线保真Wi-Fi扫描方法的第一实施例流程示意图;
图1a是本发明实施例提供的一种Wi-Fi列表演示示意图;
图2是本发明实施例提供的一种无线保真Wi-Fi扫描方法的第二实施例流程示意图;
图3a是本发明实施例提供的一种无线保真Wi-Fi扫描装置的实施例结构示意图;
图3b是本发明实施例提供的图3a所描述的无线保真Wi-Fi扫描装置的又一结构示意图;
图4是本发明实施例提供的一种移动终端的实施例结构示意图。
通常情况下,扫描得频繁,可以更快地获取周围的接入点信息变化,Wi-Fi扫描得慢,则会获取得慢,但是,在用户位置一直不动的时候,频繁地进行Wi-Fi扫描则会增加移动终端的功耗。本发明实施例提供了一种无线保真Wi-Fi扫描方法及相关产品,可以避免频繁进行Wi-Fi扫描,从而,降低移动终端的功耗。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、***、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置展示该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本发明实施例所描述移动终端可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备等,上述仅是举例,而非穷举,包含但不限于上述移动终端。
需要说明的是,通常情况下,移动终端无论处于Wi-Fi连接状态或者Wi-Fi断开状态,只要启动了Wi-Fi芯片,都会按照一定的频率(固定频率)进行
Wi-Fi扫描,Wi-Fi扫描越频繁,可以更快地获取周围的接入点及接入点信息变化,Wi-Fi扫描得慢,就会获取得慢,但是在用户位置一直不动的时候,频繁的Wi-Fi扫描就没那么必要,位置不动的前提下,周围的接入点及接入点信息在短时间内也相对固定,可以适当降低Wi-Fi扫描的扫描频率。
请参阅图1,为本发明实施例提供的一种无线保真Wi-Fi扫描方法的第一实施例流程示意图。本实施例中所描述的无线保真Wi-Fi扫描方法,包括以下步骤:
101、检测移动终端的位置是否变化。
可选地,上述步骤101中,检测移动终端的位置是否变化,包括:
获取当前位置与上次记录的位置之间的距离是否大于第一预设阈值,在所述当前位置与所述上次记录的位置之间的距离大于所述第一预设阈值,确认所述移动终端的位置已变化。
其中,移动终端可通过Wi-Fi定位技术获取当前位置,或者,通过全球定位***(Global Positioning System,GPS)获取当前位置。上述第一预设阈值可由***默认或者用户自行设置,例如,5米、10米、11.5米、20米等等。上述上次记录的位置为上次进行定位时候确定的终端的位置,“上次”可理解为与当前时刻最近的一次。在当前位置与上次记录的位置之间的距离大于第一预设阈值时,确定该移动终端的位置已变化。在当前位置与上次记录的位置之间的距离小于或等于第一预设阈值时,则确定该移动终端的位置未改变。例如,假设第一预设阈值为10米,若当前位置与上次记录的位置之间的距离为5米,则说明移动终端的位置未改变,若当前位置与上次记录的位置之间的距离为11米,则说明移动终端的位置已经改变。
可选地,上述步骤101中,检测移动终端的位置是否变化,包括:
检测所述移动终端的Wi-Fi信号强度变化值是否大于第二预设阈值,在所述移动终端的Wi-Fi信号强度变化值大于所述第二预设阈值,确认所述移动终端的位置已变化。
其中,在移动终端移动的过程中,Wi-Fi信号强度也会跟着变化,因而,可通过检测Wi-Fi信号强度变化值确定移动终端的位置是否变化。上述第二预
设阈值可由***默认或者用户自行设置,例如,5分贝(Decibel,dB)、10dB、11.5dB、20dB等等。在移动终端的Wi-Fi信号强度变化值大于第二预设阈值,确认移动终端的位置已变化。在移动终端的Wi-Fi信号强度变化值小于或等于第二预设阈值,确认移动终端的位置已变化。例如,移动终端在接入点A的覆盖范围内,若该移动终端检测到接入点A的信号强度变化值改变超过了第二预设阈值,则说明移动终端的位置变化了,有可能离开该接入点A的覆盖范围内。例如,假设第二预设阈值为5dB,若Wi-Fi信号强度变化值为3dB,则说明移动终端的位置未改变,若Wi-Fi信号强度变化值为6dB,则说明移动终端的位置已经改变。
可选地,上述步骤101中,检测移动终端的位置是否变化,包括:
检测所述移动终端的振动频率是否大于预设频率阈值,在所述移动终端的振动频率是否大于所述预设频率阈值时,确认所述移动终端的位置已变化。
其中,在移动终端移动的过程中,移动终端的振动频率也会跟着变化,因而,可通过检测振动频率确定移动终端的位置是否变化。上述预设频率阈值由***默认或者用户自行设置。在移动终端的振动频率是否大于预设频率阈值时,确认移动终端的位置已变化。在移动终端的振动频率小于或等于预设频率阈值时,确认移动终端的位置未变化。假设预设频率阈值为50HZ,若当前移动终端的振动频率为5HZ,则说明移动终端的位置未改变,若当前移动终端的振动频率为51HZ,则说明移动终端的位置已经改变。
可选地,上述步骤101中,检测移动终端的位置是否变化,包括:
A)、获取当前Wi-Fi扫描的当前Wi-Fi列表;
B)、判断所述当前Wi-Fi列表与上次Wi-Fi列表之间的相似度是否小于预设相似度,在所述当前Wi-Fi列表与所述上次Wi-Fi列表之间的相似度小于所述预设相似度时,确认所述移动终端的位置已变化。如图1a,图1a为Wi-Fi列表的一种演示示意图。
其中,移动终端在每一Wi-Fi扫描之后,均可生成一个扫描记录,即Wi-Fi列表,该Wi-Fi列表中可包含多个接入点及其对应的接入点信息。上述预设相似度可由***默认或者用户自行设置。步骤B中,移动终端可获取上次Wi-Fi列表,该上次Wi-Fi列表可理解为与当前时间最近的Wi-Fi扫描得到的Wi-Fi
列表,假设移动终端固定在一个位置,则其每一次扫描得到的Wi-Fi列表是相对稳定的,例如,移动终端在A位置,其Wi-Fi列表中包含接入点a1、a2、a3和a4,若该移动终端一直在该A位置,则其Wi-Fi列表中包含的接入点可能还是a1、a2、a3和a4,当然,其Wi-Fi列表中包含的接入点可能还是a1、a2和a3(如:a4对应的接入点关闭了)。
可选地,上述相似度可定为本次Wi-Fi列表中不存在于上次Wi-Fi列表的接入点的个数,假设上次Wi-Fi列表中包含接入点a1、a2、a3和a4,当前的Wi-Fi列表中包含接入点a1、a2和a5,则不存在于上次Wi-Fi列表的接入点数目为2(即a3和a4),则其相似度为2,假设预设相似度为2,则确认移动终端的位置未变化,假设预设相似度为3,则确认移动终端的位置已经变化。
可选地,上述相似度可定为与当前Wi-Fi列表的接入点存在于上次Wi-Fi列表的接入点数目与上次Wi-Fi列表的接入点的总数目之间的比值,假设上次Wi-Fi列表中包含接入点a1、a2、a3和a4,当前的Wi-Fi列表中包含接入点a1、a2和a5,则存在于上次Wi-Fi列表的接入点数目为2(即a1和a2),则其相似度为50%,假设预设相似度为50%,则确认移动终端的位置未变化,假设预设相似度为75%,则确认移动终端的位置已经变化。
可选地,上述步骤101中,检测移动终端的位置是否变化,包括:
检测所述移动终端的Wi-Fi连接状态是否变化,在所述移动终端的Wi-Fi连接状态变化时,确认所述移动终端的位置已变化。
其中,移动终端在移动过程中,其所连接的接入点的信号强度也会一直变化,在其连接的接入点的信号强度变化到低于某个阈值时,则移动终端可能断开与该接入点之间的连接,如此,则可以在一定程度上反映移动终端的位置已变化。当然,移动终端在之前接入的是X接入点,当前接入的是Y接入点,则说明移动终端的位置已变化。即检测到移动终端的断开Wi-Fi连接状态,或者,或者,移动终端所接入的接入点发生改变(例如,由X接入点变化为Y接入点)时,则说明移动终端的位置已经变化,若移动终端一直在X接入点的覆盖范围内,则可说明移动终端的位置尚未改变。
102、在所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描。
其中,移动终端的位置在变化,则可能移动终端在移动,如此,可按照第
一扫描频率进行Wi-Fi扫描。移动终端在移动,则说明其连接的Wi-Fi网络随时有断开的风险,所以需要进行扫描,如此,可快速寻找到可连接的接入点,在移动终端扫描到可连接的接入点,则可接入该接入点,如此,以保证移动终端可快速接入到Wi-Fi网络。
103、在所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,所述第二扫描频率小于所述第一扫描频率。
其中,移动终端的位置未变化,则可适当降低Wi-Fi芯片的扫描频率,此时,可将Wi-Fi芯片的扫描频率设置为第二扫描频率,当然,该第二扫描频率可小于第一扫描频率,相对于Wi-Fi芯片按照第一扫描频率进行Wi-Fi扫描相比较,若采用第二扫描频率进行Wi-Fi扫描,可消耗更少的功耗,由于单位时间内的扫描次数少了,移动终端的功耗也少了。如此,相对于现有技术中,一直按照固定频率进行Wi-Fi扫描相比较,本发明实施例,可在一定程度上降低移动终端的功耗。移动终端的功耗降低了,其续航能力也得以提升。
例如,移动终端的位置未改变,如此,可按照第二扫描频率进行Wi-Fi扫描。移动终端位置未改变,则其连接Wi-Fi网络的稳定性与接入点自身的稳定性相关,只要接入点稳定,那么,移动终端的Wi-Fi网络也会稳定,此种情况下,不需要按照较高的Wi-Fi扫描频率(例如,第一扫描频率)进行Wi-Fi扫描,只需要按照降低的Wi-Fi扫描频率(例如,第二扫描频率)进行Wi-Fi扫描即可,如,移动终端若一段时间内未使用移动终端,则移动终端可能断开与该Wi-Fi网络的连接状态,在断开之后,按照第二扫描频率进行扫描,当扫描到可连接的接入点,则可接入该接入点。如此,在移动终端的位置未改变的情况下,可降低由于Wi-Fi芯片进行Wi-Fi扫描造成的功耗。
可选地,上述按照第二扫描频率进行Wi-Fi扫描,包括:
若在预设时间长度内所述移动终端的位置未变化,且所述移动终端一直处于休眠状态,关闭Wi-Fi。
其中,上述预设时间长度可由***默认或者用户自行设置,如10秒、1分钟、68秒、105.3秒等等。
可以看出,通过本发明实施例,检测移动终端的位置是否变化,在移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描,在移动终端的位置未变
化时,按照第二扫描频率进行Wi-Fi扫描,其中,第二扫描频率小于第一扫描频率。从而,在移动终端的位置变化和不变化时,按照不同的扫描频率进行扫描,如此,可降低移动终端的功耗。
与上述一致地,请参阅图2,为本发明实施例提供的一种无线保真Wi-Fi扫描方法的第二实施例流程示意图。本实施例中所描述的无线保真Wi-Fi扫描方法,包括以下步骤:
201、检测移动终端的电量是否低于第三预设阈值。
其中,上述第三预设阈值可由***默认或者用户自行设置,例如,30%、50%、75%等等。
可选地,在移动终端的电量大于或等于第三预设阈值时,可不执行步骤201之后的步骤,该情况下,可认为移动终端的电量充足,则Wi-Fi芯片可以按照正常的扫频频率进行Wi-Fi扫描。
202、在所述移动终端的电量低于所述第三预设阈值时,判断所述移动终端处于休眠状态的持续时间是否大于第四预设阈值。
其中,上述第四预设阈值可由***默认或者用户自行设置,例如,30秒、1分钟、5分钟、半小时等等。在移动终端处于休眠状态的持续时间大于第四预设阈值,则说明用户未操作移动终端。
可选地,在移动终端判断出移动终端处于休眠状态的持续时间小于或等于第四预设阈值,则说明用户在使用移动终端。此种情况下,可能需要随时保持Wi-Fi网络连接状态,则移动终端可继续按照第一扫描频率进行Wi-Fi扫描,以保证Wi-Fi网络即使在掉线的情况下,也可以快速接入网络。
203、在所述移动终端处于休眠状态的持续时间大于所述第四预设阈值时,检测所述移动终端的位置是否变化。
204、在所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描。
205、在所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,所述第二扫描频率小于所述第一扫描频率。
其中,在移动终端处于休眠状态的持续时间大于第四预设阈值时,则可能用户未使用移动终端,可检测该移动终端的位置是否变化,如果位置变化了,
则可能移动终端在移动,那么,可按照第一扫描频率进行Wi-Fi扫描,如果位置未变化,则可按照第二扫描频率进行Wi-Fi扫描。
例如,通常情况下,移动终端的Wi-Fi芯片,其扫描频率是固定的,假设Wi-Fi的正常扫描频率为F1,如果为了省电,可以将Wi-Fi芯片的扫描频率设置为F2,其中,F2小于F1。如果用户在移动终端的Wi-Fi功能设置界面或者其他软件界面主动查看当前接入点信息(用户在操作移动终端)时,可暂时停止省电策略,按照正常的Wi-Fi扫描策略(即扫描频率F1)进行扫描,保证用户主动查看移动终端时,移动终端可及时进行Wi-Fi扫描,以求及时获取该移动终端周围的接入点信息,即在移动终端的显示界面上可展示由至少一个接入点信息生成的Wi-Fi列表。如果用户不主动该移动终端获取周围的接入点信息,则Wi-Fi芯片可处于自动扫描状态。例如,移动终端可获取该移动终端的实时位置并记录,当移动终端进行Wi-Fi扫描时,将当前位置与上次位置记录进行对比,如果发现位置发生了变化,可以按照扫描频率F1进行Wi-Fi扫描,当然,还可以更新移动终端的位置信息。如果移动终端的位置未发生变化,则可以按照扫描频率F2进行Wi-Fi扫描,在该情况下,相对于扫描频率F1而言,其在单位时间的扫描次数得以减少,因而,可降低移动终端的功耗,于是,可通过移动终端的位置信息变化调整Wi-Fi扫描策略,进而,降低移动终端的功耗。
可选地,上述按照第二扫描频率进行Wi-Fi扫描,包括:
若在预设时间长度内所述移动终端的位置未变化,且所述移动终端一直处于休眠状态,关闭Wi-Fi。
其中,上述预设时间长度可由***默认或者用户自行设置,如10秒、1分钟、68秒、105.3秒等等。
可以看出,通过本发明实施例,在移动终端的当前电量低于预设阈值时,进一步检测移动终端处于休眠状态的时间是否大于第四预设阈值,若移动终端处于休眠状态的时间大于第四预设阈值,则可检测移动终端的位置是否变化,在移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描,在移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,第二扫描频率小于第一扫描频率。从而,在移动终端的位置变化和不变化时,按照不同的扫描频
率进行扫描,如此,可降低移动终端的功耗。尤其是移动终端的位置未改变,则可以较低的扫描频率进行Wi-Fi扫描,可提升移动终端的待机能力。
与上述一致地,以下为实施上述无线保真Wi-Fi扫描方法的装置,具体如下:
请参阅图3a,为本发明实施例提供的一种无线保真Wi-Fi扫描装置的实施例结构示意图。本实施例中所描述的无线保真Wi-Fi扫描装置,包括:检测单元301和扫描单元302,具体如下:
检测单元,301用于检测移动终端的位置是否变化;
扫描单元302,用于在所述检测单元301的检测结果为所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描;
所述扫描单元302,还用于:
在所述检测单元301的检测结果为所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。
可选地,所述检测单元301具体用于:
获取当前位置与上次记录的位置之间的距离是否大于第一预设阈值,在所述当前位置与所述上次记录的位置之间的距离大于所述第一预设阈值时,确认所述移动终端的位置已变化。
可选地,所述检测单元301具体用于:
检测所述移动终端的Wi-Fi信号强度变化值是否大于第二预设阈值,在所述移动终端的Wi-Fi信号强度变化值大于所述第二预设阈值时,确认所述移动终端的位置已变化。
可选地,所述检测单元301具体用于:
检测所述移动终端的振动频率是否大于预设频率阈值,在所述移动终端的振动频率是否大于所述预设频率阈值时,确认所述移动终端的位置已变化。
可选地,所述检测单元301具体用于:
获取当前Wi-Fi扫描的当前Wi-Fi列表;判断所述当前Wi-Fi列表与上次Wi-Fi列表之间的相似度是否小于预设相似度,在所述当前Wi-Fi列表与所述上次Wi-Fi列表之间的相似度小于所述预设相似度时,确认所述移动终端的位
置已变化。
进一步可选地,所述相似度为当前Wi-Fi列表的接入点存在于上次Wi-Fi列表的接入点数目与所述上次Wi-Fi列表的接入点的总数目之间的比值。
可选地,所述检测单元301具体用于:
检测所述移动终端的Wi-Fi连接状态是否变化,在所述移动终端的Wi-Fi连接状态变化时,确认所述移动终端的位置已变化。
可选地,如图3b,图3b为图3a所描述的无线保真Wi-Fi扫描装置的一种变型结构,与图3a所描述的无线保真Wi-Fi扫描装置相比较,其还包括:判断单元303,具体如下:
所述检测单元301还具体用于:
在检测移动终端的位置是否变化之前,检测所述移动终端的电量是否低于第三预设阈值;
判断单元303,在所述检测单元301的检测结果为所述移动终端的电量低于所述第三预设阈值时,判断所述移动终端处于休眠状态的持续时间是否大于第四预设阈值,在所述判断单元303的判断结果为所述移动终端处于休眠状态的持续时间大于所述第四预设阈值时,由所述检测单元301执行所述检测移动终端的位置是否变化。
可选地,所述扫描单元302按照第二扫描频率进行Wi-Fi扫描的具体实施方式为:
若在预设时间长度内所述移动终端的位置未变化,且所述移动终端一直处于休眠状态,关闭Wi-Fi。
可以看出,通过本发明实施例所描述的无线保真Wi-Fi扫描装置,可检测移动终端的位置是否变化,在移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描,在移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,第二扫描频率小于第一扫描频率。从而,在移动终端的位置变化和不变化时,按照不同的扫描频率进行扫描,如此,可降低移动终端的功耗。
需要注意的是,本发明装置实施例所描述的无线保真Wi-Fi扫描装置是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单
个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。
举例来说,检测单元,301用于检测移动终端的位置是否变化的功能可以由图4所示的移动终端来实现,具体可以通过处理器3000通过调用存储器4000中的可执行程序代码,检测移动终端的位置是否变化。
与上述一致地,请参阅图4,为本发明实施例提供的一种移动终端的实施例结构示意图。本实施例中所描述的移动终端,包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。
其中,上述输入设备1000具体可为触控面板、物理按键或者鼠标。
上述输出设备2000具体可为显示屏。
上述存储器4000可以是高速RAM存储器,也可为非易失存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:
上述处理器3000,用于:
检测移动终端的位置是否变化;
在所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描;
在所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。
可选地,上述处理器3000检测移动终端的位置是否变化,包括:
获取当前位置与上次记录的位置之间的距离是否大于第一预设阈值,在所述当前位置与所述上次记录的位置之间的距离大于所述第一预设阈值时,确认所述移动终端的位置已变化。
可选地,上述处理器3000检测移动终端的位置是否变化,包括:
检测所述移动终端的Wi-Fi信号强度变化值是否大于第二预设阈值,在所述移动终端的Wi-Fi信号强度变化值大于所述第二预设阈值时,确认所述移动
终端的位置已变化。
可选地,上述处理器3000检测移动终端的位置是否变化,包括:
检测所述移动终端的振动频率是否大于预设频率阈值,在所述移动终端的振动频率是否大于所述预设频率阈值时,确认所述移动终端的位置已变化。
可选地,上述处理器3000检测移动终端的位置是否变化,包括:
获取当前Wi-Fi扫描的当前Wi-Fi列表;
判断所述当前Wi-Fi列表与上次Wi-Fi列表之间的相似度是否小于预设相似度,在所述当前Wi-Fi列表与所述上次Wi-Fi列表之间的相似度小于所述预设相似度时,确认所述移动终端的位置已变化。
可选地,所述相似度为当前Wi-Fi列表的接入点存在于上次Wi-Fi列表的接入点数目与所述上次Wi-Fi列表的接入点的总数目之间的比值。
可选地,上述处理器3000检测移动终端的位置是否变化,包括:
检测所述移动终端的Wi-Fi连接状态是否变化,在所述移动终端的Wi-Fi连接状态变化时,确认所述移动终端的位置已变化。
可选地,上述处理器3000,在所述检测移动终端的位置是否变化之前,还具体用于:
检测所述移动终端的电量是否低于第三预设阈值;
在所述移动终端的电量低于所述第三预设阈值时,判断所述移动终端处于休眠状态的持续时间是否大于第四预设阈值,在所述移动终端处于休眠状态的持续时间大于所述第四预设阈值时,执行所述检测移动终端的位置是否变化。
可选地,上述处理器3000按照第二扫描频率进行Wi-Fi扫描,包括:
若在预设时间长度内所述移动终端的位置未变化,且所述移动终端一直处于休眠状态,关闭Wi-Fi。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种无线保真Wi-Fi扫描方法的部分或全部步骤。
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计
算机执行如上述方法实施例中记载的任何一种无线保真Wi-Fi扫描方法的部分或全部步骤。
尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
本领域技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信***。
本发明是参照本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处
理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。
Claims (20)
- 一种无线保真Wi-Fi扫描方法,其特征在于,包括:检测移动终端的位置是否变化;在所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描;在所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。
- 根据权利要求1所述的方法,其特征在于,所述检测移动终端的位置是否变化,包括:获取当前位置与上次记录的位置之间的距离是否大于第一预设阈值,在所述当前位置与所述上次记录的位置之间的距离大于所述第一预设阈值时,确认所述移动终端的位置已变化。
- 根据权利要求1所述的方法,其特征在于,所述检测移动终端的位置是否变化,包括:检测所述移动终端的Wi-Fi信号强度变化值是否大于第二预设阈值,在所述移动终端的Wi-Fi信号强度变化值大于所述第二预设阈值时,确认所述移动终端的位置已变化。
- 根据权利要求1所述的方法,其特征在于,所述检测移动终端的位置是否变化,包括:检测所述移动终端的振动频率是否大于预设频率阈值,在所述移动终端的振动频率是否大于所述预设频率阈值时,确认所述移动终端的位置已变化。
- 根据权利要求1所述的方法,其特征在于,所述检测移动终端的位置是否变化,包括:获取当前Wi-Fi扫描的当前Wi-Fi列表;判断所述当前Wi-Fi列表与上次Wi-Fi列表之间的相似度是否小于预设相 似度,在所述当前Wi-Fi列表与所述上次Wi-Fi列表之间的相似度小于所述预设相似度时,确认所述移动终端的位置已变化。
- 根据权利要求5所述的方法,其特征在于,所述相似度为当前Wi-Fi列表的接入点存在于上次Wi-Fi列表的接入点数目与所述上次Wi-Fi列表的接入点的总数目之间的比值。
- 根据权利要求1所述的方法,其特征在于,所述检测移动终端的位置是否变化,包括:检测所述移动终端的Wi-Fi连接状态是否变化,在所述移动终端的Wi-Fi连接状态变化时,确认所述移动终端的位置已变化。
- 根据权利要求1至7任一项所述的方法,其特征在于,在所述检测移动终端的位置是否变化之前,所述方法还包括:检测所述移动终端的电量是否低于第三预设阈值;在所述移动终端的电量低于所述第三预设阈值时,判断所述移动终端处于休眠状态的持续时间是否大于第四预设阈值,在所述移动终端处于休眠状态的持续时间大于所述第四预设阈值时,执行所述检测移动终端的位置是否变化。
- 根据权利要求1至8任一项所述的方法,其特征在于,所述按照第二扫描频率进行Wi-Fi扫描,包括:若在预设时间长度内所述移动终端的位置未变化,且所述移动终端一直处于休眠状态,关闭Wi-Fi。
- 一种无线保真Wi-Fi扫描装置,其特征在于,包括;检测单元,用于检测移动终端的位置是否变化;扫描单元,用于在所述检测单元的检测结果为所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描;所述扫描单元,还用于:在所述检测单元的检测结果为所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。
- 根据权利要求10所述的装置,其特征在于,所述检测单元具体用于:获取当前位置与上次记录的位置之间的距离是否大于第一预设阈值,在所述当前位置与所述上次记录的位置之间的距离大于所述第一预设阈值时,确认所述移动终端的位置已变化。
- 根据权利要求10所述的装置,其特征在于,所述检测单元具体用于:检测所述移动终端的Wi-Fi信号强度变化值是否大于第二预设阈值,在所述移动终端的Wi-Fi信号强度变化值大于所述第二预设阈值时,确认所述移动终端的位置已变化。
- 根据权利要求10所述的装置,其特征在于,所述检测单元具体用于:检测所述移动终端的振动频率是否大于预设频率阈值,在所述移动终端的振动频率是否大于所述预设频率阈值时,确认所述移动终端的位置已变化。
- 根据权利要求10所述的装置,其特征在于,所述检测单元具体用于:获取当前Wi-Fi扫描的当前Wi-Fi列表;判断所述当前Wi-Fi列表与上次Wi-Fi列表之间的相似度是否小于预设相似度,在所述当前Wi-Fi列表与所述上次Wi-Fi列表之间的相似度小于所述预设相似度时,确认所述移动终端的位置已变化。
- 根据权利要求14所述的装置,其特征在于,所述相似度为当前Wi-Fi列表的接入点存在于上次Wi-Fi列表的接入点数目与所述上次Wi-Fi列表的接入点的总数目之间的比值。
- 根据权利要求10至15任一项所述的装置,其特征在于,所述检测单元还具体用于:在检测移动终端的位置是否变化之前,检测所述移动终端的电量是否低于第三预设阈值;所述装置还包括:判断单元,在所述检测单元的检测结果为所述移动终端的电量低于所述第三预设阈值时,判断所述移动终端处于休眠状态的持续时间是否大于第四预设阈值,在所述判断单元的判断结果为所述移动终端处于休眠状态的持续时间大于所述第四预设阈值时,由所述检测单元执行所述检测移动终端的位置是否变化。
- 根据权利要求10至16任一项所述的装置,其特征在于,所述扫描单元按照第二扫描频率进行Wi-Fi扫描的具体实施方式为:若在预设时间长度内所述移动终端的位置未变化,且所述移动终端一直处于休眠状态,关闭Wi-Fi。
- 一种移动终端,其特征在于,包括:处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如权利要求1至9任意一项所述的方法。
- 一种计算机存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611117239.2 | 2016-12-07 | ||
CN201611117239.2A CN106507445B (zh) | 2016-12-07 | 2016-12-07 | 一种无线保真Wi-Fi扫描方法及移动终端 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018103401A1 true WO2018103401A1 (zh) | 2018-06-14 |
Family
ID=58329754
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/101463 WO2018103401A1 (zh) | 2016-12-07 | 2017-09-12 | 无线保真Wi-Fi扫描方法及相关产品 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106507445B (zh) |
WO (1) | WO2018103401A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111372326A (zh) * | 2020-03-13 | 2020-07-03 | 华为技术有限公司 | 建立点对点无线连接的方法和移动设备 |
CN114500116A (zh) * | 2022-04-14 | 2022-05-13 | 杭州海康威视数字技术股份有限公司 | 视频物联网设备自愈安全扫描方法、***及装置 |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106507445B (zh) * | 2016-12-07 | 2020-01-14 | Oppo广东移动通信有限公司 | 一种无线保真Wi-Fi扫描方法及移动终端 |
CN107040910A (zh) * | 2017-04-24 | 2017-08-11 | 北京小米移动软件有限公司 | 无线漫游方法、无线漫游装置和电子设备 |
CN107071806A (zh) * | 2017-06-16 | 2017-08-18 | 厦门美图移动科技有限公司 | 一种优化上网速度的方法及移动终端 |
WO2018232606A1 (en) | 2017-06-20 | 2018-12-27 | Beijing Didi Infinity Technology And Development Co., Ltd. | METHODS AND APPARATUSES FOR DETECTING CHANGE OF POSITION OF A POINT OF ACCESS |
CN107613537B (zh) * | 2017-09-23 | 2021-02-26 | Oppo广东移动通信有限公司 | 信号质量检测的频率控制方法及相关产品 |
CN110945913B (zh) * | 2018-06-15 | 2021-07-09 | 华为技术有限公司 | 一种扫描无线保真网络的方法、终端及存储介质 |
CN112823546B (zh) * | 2018-12-03 | 2023-01-03 | 深圳市欢太科技有限公司 | 网络处理方法、计算机可读存储介质和电子设备 |
CN109618393B (zh) * | 2019-02-01 | 2021-03-02 | Oppo广东移动通信有限公司 | 通信控制方法、装置、移动终端及存储介质 |
CN110248401B (zh) * | 2019-06-18 | 2022-03-22 | Oppo广东移动通信有限公司 | WiFi的扫描控制方法、装置、存储介质及移动终端 |
CN110351812B (zh) * | 2019-06-24 | 2021-10-22 | 惠州Tcl移动通信有限公司 | Wifi搜索网络功率控制方法、移动终端及存储介质 |
CN112672297B (zh) * | 2020-12-16 | 2023-02-17 | 上海浦东发展银行股份有限公司 | 室内定位方法、服务端、定位客户端、设备及存储介质 |
CN113225787B (zh) * | 2021-04-06 | 2023-02-28 | Oppo广东移动通信有限公司 | Wi-Fi扫描的方法、终端设备及存储介质 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102316555A (zh) * | 2011-09-19 | 2012-01-11 | 华为终端有限公司 | 一种移动终端扫描WiFi网络的方法以及使用该方法的移动终端 |
US20130308512A1 (en) * | 2012-05-17 | 2013-11-21 | Samsung Electronics Co. Ltd. | Portable terminal and method for scanning access points |
CN103458440A (zh) * | 2013-08-29 | 2013-12-18 | 惠州Tcl移动通信有限公司 | 基于运动状态调整wifi扫描频率的方法和移动终端 |
WO2015167258A1 (en) * | 2014-04-29 | 2015-11-05 | Samsung Electronics Co., Ltd. | Proximity communication method and apparatus |
CN105933962A (zh) * | 2016-05-18 | 2016-09-07 | 深圳天珑无线科技有限公司 | Wi-Fi省电方法及移动终端 |
CN106507445A (zh) * | 2016-12-07 | 2017-03-15 | 广东欧珀移动通信有限公司 | 一种无线保真Wi‑Fi扫描方法及移动终端 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101156328A (zh) * | 2004-11-12 | 2008-04-02 | 美商内数位科技公司 | 侦测及选择利用周边装置的方法及装置 |
US8412189B2 (en) * | 2009-01-22 | 2013-04-02 | Research In Motion Limited | Method for wireless system selection optimization |
US8805360B2 (en) * | 2012-02-14 | 2014-08-12 | Apple Inc. | Wi-Fi process |
CN103813414B (zh) * | 2012-11-15 | 2017-09-19 | 中兴通讯股份有限公司 | 移动终端Wi‑Fi应用控制方法及移动终端 |
CN105898705B (zh) * | 2016-06-24 | 2019-06-07 | 维沃移动通信有限公司 | 一种控制无线局域网的扫描频率的方法及移动终端 |
-
2016
- 2016-12-07 CN CN201611117239.2A patent/CN106507445B/zh active Active
-
2017
- 2017-09-12 WO PCT/CN2017/101463 patent/WO2018103401A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102316555A (zh) * | 2011-09-19 | 2012-01-11 | 华为终端有限公司 | 一种移动终端扫描WiFi网络的方法以及使用该方法的移动终端 |
US20130308512A1 (en) * | 2012-05-17 | 2013-11-21 | Samsung Electronics Co. Ltd. | Portable terminal and method for scanning access points |
CN103458440A (zh) * | 2013-08-29 | 2013-12-18 | 惠州Tcl移动通信有限公司 | 基于运动状态调整wifi扫描频率的方法和移动终端 |
WO2015167258A1 (en) * | 2014-04-29 | 2015-11-05 | Samsung Electronics Co., Ltd. | Proximity communication method and apparatus |
CN105933962A (zh) * | 2016-05-18 | 2016-09-07 | 深圳天珑无线科技有限公司 | Wi-Fi省电方法及移动终端 |
CN106507445A (zh) * | 2016-12-07 | 2017-03-15 | 广东欧珀移动通信有限公司 | 一种无线保真Wi‑Fi扫描方法及移动终端 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111372326A (zh) * | 2020-03-13 | 2020-07-03 | 华为技术有限公司 | 建立点对点无线连接的方法和移动设备 |
CN111372326B (zh) * | 2020-03-13 | 2023-01-13 | 华为技术有限公司 | 建立点对点无线连接的方法和移动设备 |
CN114500116A (zh) * | 2022-04-14 | 2022-05-13 | 杭州海康威视数字技术股份有限公司 | 视频物联网设备自愈安全扫描方法、***及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN106507445A (zh) | 2017-03-15 |
CN106507445B (zh) | 2020-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018103401A1 (zh) | 无线保真Wi-Fi扫描方法及相关产品 | |
US10257786B2 (en) | Method and apparatus for managing a display of a mobile electronic device for power saving | |
TWI521341B (zh) | 節流應用程式對資源之存取 | |
CN108228358B (zh) | 修正垂直同步信号的方法、装置、移动终端以及存储介质 | |
CN107797841B (zh) | 窗口控制方法、装置、终端设备及存储介质 | |
US20130308512A1 (en) | Portable terminal and method for scanning access points | |
EP2587369A1 (en) | Method and apparatus for controlling interrupt in portable terminal | |
CN107943269B (zh) | 调度作业控制方法、装置、终端设备及存储介质 | |
US8897825B2 (en) | Wireless communication device and wireless communication method | |
WO2017206902A1 (zh) | 应用控制方法及相关设备 | |
WO2015081664A1 (zh) | 控制无线网络开关方法、装置、设备及*** | |
WO2017206901A1 (zh) | 进程控制方法及相关设备 | |
WO2019024641A1 (zh) | 数据同步方法、装置、存储介质以及电子设备 | |
CN108693948B (zh) | 帧率调整方法、装置、终端设备及存储介质 | |
WO2024067803A1 (zh) | 数据处理方法、数据处理装置、电子设备和可读存储介质 | |
US20190019488A1 (en) | Method for Controlling Interference in Audio Service and Terminal | |
CN109753262B (zh) | 帧显示处理方法、装置、终端设备及存储介质 | |
WO2020118601A1 (zh) | 视频编码方法、装置、电子设备及存储介质 | |
CN107404569B (zh) | 一种***控制方法、终端和计算机可读存储介质 | |
CN107908527B (zh) | 一种应用图标显示方法及装置 | |
CN108011860B (zh) | 一种处理广播消息的方法、装置及终端 | |
WO2017206903A1 (zh) | 应用控制方法及相关设备 | |
CN106454953B (zh) | 流量控制方法、装置及终端 | |
WO2019072179A1 (zh) | 应用程序运行控制方法及装置 | |
WO2018103404A1 (zh) | 无线保真Wi-Fi扫描方法及相关产品 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17879090 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17879090 Country of ref document: EP Kind code of ref document: A1 |