WO2018103401A1 - Wireless fidelity wi-fi scanning method and related product - Google Patents

Wireless fidelity wi-fi scanning method and related product Download PDF

Info

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
Application number
PCT/CN2017/101463
Other languages
French (fr)
Chinese (zh)
Inventor
俞义
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018103401A1 publication Critical patent/WO2018103401A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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

An embodiment of the present invention provides a wireless fidelity (Wi-Fi) scanning method and a related product. The method comprises: detecting whether a position of a mobile terminal changes; performing Wi-Fi scanning according to a first scanning frequency when the position of the mobile terminal changes; performing Wi-Fi scanning according to a second scanning frequency when the position of the mobile terminal does not change, wherein the second scanning frequency is smaller than the first scanning frequency. In the embodiments of the present invention, scanning can be performed according to different scanning frequencies when the position of the mobile terminal changes or does not change. In this way, the power consumption of the mobile terminal can be reduced.

Description

无线保真Wi-Fi扫描方法及相关产品Wireless fidelity Wi-Fi scanning method and related products
本发明要求2016年12月7日递交的发明名称为“一种无线保真Wi-Fi扫描方法及移动终端”的申请号201611117239.2的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present invention claims the priority of the prior application filed on December 7, 2016, entitled "A Wireless Fidelity Wi-Fi Scanning Method and Mobile Terminal", No. 201611117239.2, the content of which is incorporated herein by reference. Incorporated into this text.
技术领域Technical field
本发明涉及互联网技术领域,具体涉及一种无线保真Wi-Fi扫描方法及相关产品。The present invention relates to the field of Internet technologies, and in particular, to a wireless fidelity Wi-Fi scanning method and related products.
背景技术Background technique
随着信息技术的快速发展,移动终端(如手机、平板电脑等等)使用越来越普及,用户对移动终端的要求也越来越高,不仅需要较高的处理速度,而且对终端续航能力也提出了要求。With the rapid development of information technology, mobile terminals (such as mobile phones, tablet computers, etc.) 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.
现在技术中,在无线保真(Wireless Fidelity,Wi-Fi)连接或者断开的时候,都会按照一定的频率的进行Wi-Fi扫描。In the current technology, when Wireless Fidelity (Wi-Fi) is connected or disconnected, Wi-Fi scanning is performed at a certain frequency.
发明内容Summary of the invention
本发明实施例提供了一种无线保真Wi-Fi扫描方法及相关产品,以期避免频繁进行Wi-Fi扫描,从而,降低移动终端的功耗。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.
本发明实施例第一方面提供了一种无线保真Wi-Fi扫描方法,包括:A first aspect of the embodiments of the present invention provides a wireless fidelity Wi-Fi scanning method, including:
检测移动终端的位置是否变化;Detecting whether the location of the mobile terminal changes;
在所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描;When the location of the mobile terminal changes, performing Wi-Fi scanning according to the first scanning frequency;
在所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。When the location of the mobile terminal does not change, the Wi-Fi scan is performed according to the second scan frequency, wherein the second scan frequency is smaller than the first scan frequency.
本发明实施例第二方面提供了一种无线保真Wi-Fi扫描装置,包括: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;
扫描单元,用于在所述检测单元的检测结果为所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描; 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:
在所述检测单元的检测结果为所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。When the detection result of the detecting unit is that the position of the mobile terminal is not changed, the Wi-Fi scanning is performed according to the second scanning frequency, wherein the second scanning frequency is smaller than the first scanning frequency.
第三方面,本发明实施例提供了一种移动终端,包括:处理器和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。In a third aspect, 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.
第四方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本发明实施例第一方面中所描述的部分或全部步骤的指令。In a fourth 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.
第五方面,本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, 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.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1是本发明实施例提供的一种无线保真Wi-Fi扫描方法的第一实施例流程示意图;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是本发明实施例提供的一种Wi-Fi列表演示示意图;1a is a schematic diagram of a Wi-Fi list presentation according to an embodiment of the present invention;
图2是本发明实施例提供的一种无线保真Wi-Fi扫描方法的第二实施例流程示意图;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;
图3a是本发明实施例提供的一种无线保真Wi-Fi扫描装置的实施例结构示意图;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是本发明实施例提供的图3a所描述的无线保真Wi-Fi扫描装置的又一结构示意图; 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;
图4是本发明实施例提供的一种移动终端的实施例结构示意图。FIG. 4 is a schematic structural diagram of an embodiment of a mobile terminal according to an embodiment of the present invention.
具体实施方式detailed description
通常情况下,扫描得频繁,可以更快地获取周围的接入点信息变化,Wi-Fi扫描得慢,则会获取得慢,但是,在用户位置一直不动的时候,频繁地进行Wi-Fi扫描则会增加移动终端的功耗。本发明实施例提供了一种无线保真Wi-Fi扫描方法及相关产品,可以避免频繁进行Wi-Fi扫描,从而,降低移动终端的功耗。Usually, scanning is frequent, and the information of surrounding access points can be obtained more quickly. Wi-Fi scanning is slow, and the acquisition is slow. However, when the user position is not moving, Wi- is frequently performed. Fi scanning increases the power consumption of the mobile terminal. 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.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", and "fourth" and the like in the specification and claims of the present invention are used to distinguish different objects, and are not intended to describe a specific order. . Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置展示该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。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.
本发明实施例所描述移动终端可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备等,上述仅是举例,而非穷举,包含但不限于上述移动终端。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. The foregoing is merely an example, and not an exhaustive, including but not limited to the above-described mobile terminal.
需要说明的是,通常情况下,移动终端无论处于Wi-Fi连接状态或者Wi-Fi断开状态,只要启动了Wi-Fi芯片,都会按照一定的频率(固定频率)进行 Wi-Fi扫描,Wi-Fi扫描越频繁,可以更快地获取周围的接入点及接入点信息变化,Wi-Fi扫描得慢,就会获取得慢,但是在用户位置一直不动的时候,频繁的Wi-Fi扫描就没那么必要,位置不动的前提下,周围的接入点及接入点信息在短时间内也相对固定,可以适当降低Wi-Fi扫描的扫描频率。It should be noted that, in general, 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.
请参阅图1,为本发明实施例提供的一种无线保真Wi-Fi扫描方法的第一实施例流程示意图。本实施例中所描述的无线保真Wi-Fi扫描方法,包括以下步骤: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:
101、检测移动终端的位置是否变化。101. Detect whether the location of the mobile terminal changes.
可选地,上述步骤101中,检测移动终端的位置是否变化,包括:Optionally, in step 101, detecting whether the location of the mobile terminal changes includes:
获取当前位置与上次记录的位置之间的距离是否大于第一预设阈值,在所述当前位置与所述上次记录的位置之间的距离大于所述第一预设阈值,确认所述移动终端的位置已变化。Obtaining whether a distance between the current location and the last recorded location is greater than a first preset threshold, and a distance between the current location and the last recorded location is greater than the first preset threshold, confirming the The location of the mobile terminal has changed.
其中,移动终端可通过Wi-Fi定位技术获取当前位置,或者,通过全球定位系统(Global Positioning System,GPS)获取当前位置。上述第一预设阈值可由系统默认或者用户自行设置,例如,5米、10米、11.5米、20米等等。上述上次记录的位置为上次进行定位时候确定的终端的位置,“上次”可理解为与当前时刻最近的一次。在当前位置与上次记录的位置之间的距离大于第一预设阈值时,确定该移动终端的位置已变化。在当前位置与上次记录的位置之间的距离小于或等于第一预设阈值时,则确定该移动终端的位置未改变。例如,假设第一预设阈值为10米,若当前位置与上次记录的位置之间的距离为5米,则说明移动终端的位置未改变,若当前位置与上次记录的位置之间的距离为11米,则说明移动终端的位置已经改变。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. When 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. When 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. For example, if the first preset threshold is 10 meters, if 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.
可选地,上述步骤101中,检测移动终端的位置是否变化,包括:Optionally, in step 101, detecting whether the location of the mobile terminal changes includes:
检测所述移动终端的Wi-Fi信号强度变化值是否大于第二预设阈值,在所述移动终端的Wi-Fi信号强度变化值大于所述第二预设阈值,确认所述移动终端的位置已变化。Detecting whether the Wi-Fi signal strength change value of the mobile terminal is greater than a second preset threshold, and determining, by the mobile terminal, a Wi-Fi signal strength change value that is greater than the second preset threshold, confirming the location of the mobile terminal Has changed.
其中,在移动终端移动的过程中,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,则说明移动终端的位置已经改变。In the process of moving the mobile terminal, 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. For example, if the mobile terminal detects that the change of the signal strength of the access point A exceeds the second preset threshold within the coverage of the access point A, the mobile terminal may change its location and may leave. The access point A is within the coverage. For example, if the second preset threshold is 5 dB, if the Wi-Fi signal strength change value is 3 dB, the position of the mobile terminal is unchanged. If the Wi-Fi signal strength change value is 6 dB, the location of the mobile terminal has changed. .
可选地,上述步骤101中,检测移动终端的位置是否变化,包括:Optionally, in step 101, detecting whether the location of the mobile terminal changes includes:
检测所述移动终端的振动频率是否大于预设频率阈值,在所述移动终端的振动频率是否大于所述预设频率阈值时,确认所述移动终端的位置已变化。Detecting whether the vibration frequency of the mobile terminal is greater than a preset frequency threshold, and confirming that the location of the mobile terminal has changed when the vibration frequency of the mobile terminal is greater than the preset frequency threshold.
其中,在移动终端移动的过程中,移动终端的振动频率也会跟着变化,因而,可通过检测振动频率确定移动终端的位置是否变化。上述预设频率阈值由系统默认或者用户自行设置。在移动终端的振动频率是否大于预设频率阈值时,确认移动终端的位置已变化。在移动终端的振动频率小于或等于预设频率阈值时,确认移动终端的位置未变化。假设预设频率阈值为50HZ,若当前移动终端的振动频率为5HZ,则说明移动终端的位置未改变,若当前移动终端的振动频率为51HZ,则说明移动终端的位置已经改变。Wherein, in the process of moving the mobile terminal, 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.
可选地,上述步骤101中,检测移动终端的位置是否变化,包括:Optionally, in step 101, detecting whether the location of the mobile terminal changes includes:
A)、获取当前Wi-Fi扫描的当前Wi-Fi列表;A), obtain the current Wi-Fi list of the current Wi-Fi scan;
B)、判断所述当前Wi-Fi列表与上次Wi-Fi列表之间的相似度是否小于预设相似度,在所述当前Wi-Fi列表与所述上次Wi-Fi列表之间的相似度小于所述预设相似度时,确认所述移动终端的位置已变化。如图1a,图1a为Wi-Fi列表的一种演示示意图。B) determining whether the similarity between the current Wi-Fi list and the last Wi-Fi list is less than a preset similarity between the current Wi-Fi list and the last Wi-Fi list When the similarity is less than the preset similarity, it is confirmed that the location of the mobile terminal has changed. As shown in FIG. 1a, FIG. 1a is a schematic diagram of a Wi-Fi list.
其中,移动终端在每一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对应的接入点关闭了)。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. In step B, 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. If the mobile terminal is always in the A location, the access points included in the Wi-Fi list may still be a1, a2, a3, and a4. Of course, 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).
可选地,上述相似度可定为本次Wi-Fi列表中不存在于上次Wi-Fi列表的接入点的个数,假设上次Wi-Fi列表中包含接入点a1、a2、a3和a4,当前的Wi-Fi列表中包含接入点a1、a2和a5,则不存在于上次Wi-Fi列表的接入点数目为2(即a3和a4),则其相似度为2,假设预设相似度为2,则确认移动终端的位置未变化,假设预设相似度为3,则确认移动终端的位置已经变化。Optionally, 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. A3 and a4, 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. Assuming that the preset similarity is 2, it is confirmed that the position of the mobile terminal has not changed. Assuming that the preset similarity is 3, it is confirmed that the position of the mobile terminal has changed.
可选地,上述相似度可定为与当前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%,则确认移动终端的位置已经变化。Optionally, 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.
可选地,上述步骤101中,检测移动终端的位置是否变化,包括:Optionally, in step 101, detecting whether the location of the mobile terminal changes includes:
检测所述移动终端的Wi-Fi连接状态是否变化,在所述移动终端的Wi-Fi连接状态变化时,确认所述移动终端的位置已变化。It is detected whether the Wi-Fi connection status of the mobile terminal changes, and when the Wi-Fi connection status of the mobile terminal changes, it is confirmed that the location of the mobile terminal has changed.
其中,移动终端在移动过程中,其所连接的接入点的信号强度也会一直变化,在其连接的接入点的信号强度变化到低于某个阈值时,则移动终端可能断开与该接入点之间的连接,如此,则可以在一定程度上反映移动终端的位置已变化。当然,移动终端在之前接入的是X接入点,当前接入的是Y接入点,则说明移动终端的位置已变化。即检测到移动终端的断开Wi-Fi连接状态,或者,或者,移动终端所接入的接入点发生改变(例如,由X接入点变化为Y接入点)时,则说明移动终端的位置已经变化,若移动终端一直在X接入点的覆盖范围内,则可说明移动终端的位置尚未改变。Wherein, when the mobile terminal moves, the signal strength of the connected access point also changes constantly, and when the signal strength of the connected access point changes below a certain threshold, 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. Of course, 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.
102、在所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描。102. Perform Wi-Fi scanning according to the first scanning frequency when the location of the mobile terminal changes.
其中,移动终端的位置在变化,则可能移动终端在移动,如此,可按照第 一扫描频率进行Wi-Fi扫描。移动终端在移动,则说明其连接的Wi-Fi网络随时有断开的风险,所以需要进行扫描,如此,可快速寻找到可连接的接入点,在移动终端扫描到可连接的接入点,则可接入该接入点,如此,以保证移动终端可快速接入到Wi-Fi网络。Wherein, the location of the mobile terminal is changing, then the mobile terminal may be moving, so, according to the A scan frequency for Wi-Fi scanning. When the mobile terminal is moving, 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.
103、在所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,所述第二扫描频率小于所述第一扫描频率。103. Perform Wi-Fi scanning according to a second scanning frequency when the location of the mobile terminal does not change, where the second scanning frequency is smaller than the first scanning frequency.
其中,移动终端的位置未变化,则可适当降低Wi-Fi芯片的扫描频率,此时,可将Wi-Fi芯片的扫描频率设置为第二扫描频率,当然,该第二扫描频率可小于第一扫描频率,相对于Wi-Fi芯片按照第一扫描频率进行Wi-Fi扫描相比较,若采用第二扫描频率进行Wi-Fi扫描,可消耗更少的功耗,由于单位时间内的扫描次数少了,移动终端的功耗也少了。如此,相对于现有技术中,一直按照固定频率进行Wi-Fi扫描相比较,本发明实施例,可在一定程度上降低移动终端的功耗。移动终端的功耗降低了,其续航能力也得以提升。Wherein, if the location of the mobile terminal does not change, the scanning frequency of the Wi-Fi chip can be appropriately reduced. At this time, the scanning frequency of the Wi-Fi chip can be set to the second scanning frequency. Of course, 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.
例如,移动终端的位置未改变,如此,可按照第二扫描频率进行Wi-Fi扫描。移动终端位置未改变,则其连接Wi-Fi网络的稳定性与接入点自身的稳定性相关,只要接入点稳定,那么,移动终端的Wi-Fi网络也会稳定,此种情况下,不需要按照较高的Wi-Fi扫描频率(例如,第一扫描频率)进行Wi-Fi扫描,只需要按照降低的Wi-Fi扫描频率(例如,第二扫描频率)进行Wi-Fi扫描即可,如,移动终端若一段时间内未使用移动终端,则移动终端可能断开与该Wi-Fi网络的连接状态,在断开之后,按照第二扫描频率进行扫描,当扫描到可连接的接入点,则可接入该接入点。如此,在移动终端的位置未改变的情况下,可降低由于Wi-Fi芯片进行Wi-Fi扫描造成的功耗。For example, the location of the mobile terminal is unchanged, and thus, Wi-Fi scanning can be performed at the second scanning frequency. If the location of the mobile terminal is unchanged, the stability of the connection to the Wi-Fi network is related to the stability of the access point itself. As long as the access point is stable, 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). For example, if the mobile terminal does not use the mobile terminal for a period of time, 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. As such, in the case where the location of the mobile terminal is not changed, power consumption due to Wi-Fi scanning by the Wi-Fi chip can be reduced.
可选地,上述按照第二扫描频率进行Wi-Fi扫描,包括:Optionally, performing the Wi-Fi scan according to the second scanning frequency, including:
若在预设时间长度内所述移动终端的位置未变化,且所述移动终端一直处于休眠状态,关闭Wi-Fi。If the location of the mobile terminal does not change within a preset length of time, and the mobile terminal is always in a dormant state, Wi-Fi is turned off.
其中,上述预设时间长度可由系统默认或者用户自行设置,如10秒、1分钟、68秒、105.3秒等等。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.
可以看出,通过本发明实施例,检测移动终端的位置是否变化,在移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描,在移动终端的位置未变 化时,按照第二扫描频率进行Wi-Fi扫描,其中,第二扫描频率小于第一扫描频率。从而,在移动终端的位置变化和不变化时,按照不同的扫描频率进行扫描,如此,可降低移动终端的功耗。It can be seen that, by using the embodiment of the present invention, whether the location of the mobile terminal changes is detected, and when the location of the mobile terminal changes, the Wi-Fi scan is performed according to the first scanning frequency, and the location of the mobile terminal does not change. In the case of the second scanning frequency, 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.
与上述一致地,请参阅图2,为本发明实施例提供的一种无线保真Wi-Fi扫描方法的第二实施例流程示意图。本实施例中所描述的无线保真Wi-Fi扫描方法,包括以下步骤:With reference to 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:
201、检测移动终端的电量是否低于第三预设阈值。201. Detect whether the power of the mobile terminal is lower than a third preset threshold.
其中,上述第三预设阈值可由系统默认或者用户自行设置,例如,30%、50%、75%等等。The third preset threshold may be set by the system default or by the user, for example, 30%, 50%, 75%, and the like.
可选地,在移动终端的电量大于或等于第三预设阈值时,可不执行步骤201之后的步骤,该情况下,可认为移动终端的电量充足,则Wi-Fi芯片可以按照正常的扫频频率进行Wi-Fi扫描。Optionally, when the power of the mobile terminal is greater than or equal to the third preset threshold, the step after step 201 may not be performed. In this case, 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.
202、在所述移动终端的电量低于所述第三预设阈值时,判断所述移动终端处于休眠状态的持续时间是否大于第四预设阈值。202. When the power of the mobile terminal is lower than the third preset threshold, determine whether the duration of the mobile terminal in the sleep state is greater than a fourth preset threshold.
其中,上述第四预设阈值可由系统默认或者用户自行设置,例如,30秒、1分钟、5分钟、半小时等等。在移动终端处于休眠状态的持续时间大于第四预设阈值,则说明用户未操作移动终端。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.
可选地,在移动终端判断出移动终端处于休眠状态的持续时间小于或等于第四预设阈值,则说明用户在使用移动终端。此种情况下,可能需要随时保持Wi-Fi网络连接状态,则移动终端可继续按照第一扫描频率进行Wi-Fi扫描,以保证Wi-Fi网络即使在掉线的情况下,也可以快速接入网络。Optionally, when 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. In this case, 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.
203、在所述移动终端处于休眠状态的持续时间大于所述第四预设阈值时,检测所述移动终端的位置是否变化。203. When the duration of the mobile terminal being in a sleep state is greater than the fourth preset threshold, detecting whether the location of the mobile terminal changes.
204、在所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描。204. Perform Wi-Fi scanning according to the first scanning frequency when the location of the mobile terminal changes.
205、在所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,所述第二扫描频率小于所述第一扫描频率。205. Perform Wi-Fi scanning according to a second scanning frequency when the location of the mobile terminal does not change, where the second scanning frequency is less than the first scanning frequency.
其中,在移动终端处于休眠状态的持续时间大于第四预设阈值时,则可能用户未使用移动终端,可检测该移动终端的位置是否变化,如果位置变化了, 则可能移动终端在移动,那么,可按照第一扫描频率进行Wi-Fi扫描,如果位置未变化,则可按照第二扫描频率进行Wi-Fi扫描。If the duration of the mobile terminal in the dormant state is greater than the fourth preset threshold, 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.
例如,通常情况下,移动终端的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扫描策略,进而,降低移动终端的功耗。For example, in general, 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 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. If the user does not actively take the mobile terminal to obtain surrounding 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, of course, can also update the location information of the mobile terminal. If the location of the mobile terminal does not change, the Wi-Fi scan can be performed according to the scan frequency F2. In this case, 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.
可选地,上述按照第二扫描频率进行Wi-Fi扫描,包括:Optionally, performing the Wi-Fi scan according to the second scanning frequency, including:
若在预设时间长度内所述移动终端的位置未变化,且所述移动终端一直处于休眠状态,关闭Wi-Fi。If the location of the mobile terminal does not change within a preset length of time, and the mobile terminal is always in a dormant state, Wi-Fi is turned off.
其中,上述预设时间长度可由系统默认或者用户自行设置,如10秒、1分钟、68秒、105.3秒等等。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.
可以看出,通过本发明实施例,在移动终端的当前电量低于预设阈值时,进一步检测移动终端处于休眠状态的时间是否大于第四预设阈值,若移动终端处于休眠状态的时间大于第四预设阈值,则可检测移动终端的位置是否变化,在移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描,在移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,第二扫描频率小于第一扫描频率。从而,在移动终端的位置变化和不变化时,按照不同的扫描频 率进行扫描,如此,可降低移动终端的功耗。尤其是移动终端的位置未改变,则可以较低的扫描频率进行Wi-Fi扫描,可提升移动终端的待机能力。It can be seen that, when the current power of the mobile terminal is lower than the preset threshold, 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. When the location of the mobile terminal changes, the Wi-Fi scan is performed according to the first scanning frequency, and when the location of the mobile terminal does not change, 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. In particular, if the location of the mobile terminal is not changed, Wi-Fi scanning can be performed at a lower scanning frequency, which can improve the standby capability of the mobile terminal.
与上述一致地,以下为实施上述无线保真Wi-Fi扫描方法的装置,具体如下:Consistent to the above, the following is an apparatus for implementing the above-described wireless fidelity Wi-Fi scanning method, as follows:
请参阅图3a,为本发明实施例提供的一种无线保真Wi-Fi扫描装置的实施例结构示意图。本实施例中所描述的无线保真Wi-Fi扫描装置,包括:检测单元301和扫描单元302,具体如下: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:
检测单元,301用于检测移动终端的位置是否变化;The detecting unit 301 is configured to detect whether the location of the mobile terminal changes;
扫描单元302,用于在所述检测单元301的检测结果为所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描;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;
所述扫描单元302,还用于:The scanning unit 302 is further configured to:
在所述检测单元301的检测结果为所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。When the detection result of the detecting unit 301 is that the position of the mobile terminal is not changed, the Wi-Fi scanning is performed according to the second scanning frequency, wherein the second scanning frequency is smaller than the first scanning frequency.
可选地,所述检测单元301具体用于:Optionally, the detecting unit 301 is specifically configured to:
获取当前位置与上次记录的位置之间的距离是否大于第一预设阈值,在所述当前位置与所述上次记录的位置之间的距离大于所述第一预设阈值时,确认所述移动终端的位置已变化。Obtaining whether a distance between the current location and the last recorded location is greater than a first preset threshold, and when the distance between the current location and the last recorded location is greater than the first preset threshold, confirming The location of the mobile terminal has changed.
可选地,所述检测单元301具体用于:Optionally, the detecting unit 301 is specifically configured to:
检测所述移动终端的Wi-Fi信号强度变化值是否大于第二预设阈值,在所述移动终端的Wi-Fi信号强度变化值大于所述第二预设阈值时,确认所述移动终端的位置已变化。Detecting whether the value of the Wi-Fi signal strength change of the mobile terminal is greater than a second preset threshold, and confirming that the mobile terminal's Wi-Fi signal strength change value is greater than the second preset threshold The location has changed.
可选地,所述检测单元301具体用于:Optionally, the detecting unit 301 is specifically configured to:
检测所述移动终端的振动频率是否大于预设频率阈值,在所述移动终端的振动频率是否大于所述预设频率阈值时,确认所述移动终端的位置已变化。Detecting whether the vibration frequency of the mobile terminal is greater than a preset frequency threshold, and confirming that the location of the mobile terminal has changed when the vibration frequency of the mobile terminal is greater than the preset frequency threshold.
可选地,所述检测单元301具体用于:Optionally, the detecting unit 301 is specifically configured to:
获取当前Wi-Fi扫描的当前Wi-Fi列表;判断所述当前Wi-Fi列表与上次Wi-Fi列表之间的相似度是否小于预设相似度,在所述当前Wi-Fi列表与所述上次Wi-Fi列表之间的相似度小于所述预设相似度时,确认所述移动终端的位 置已变化。Obtaining a current Wi-Fi list of the current Wi-Fi scan; determining whether the similarity between the current Wi-Fi list and the last Wi-Fi list is less than a preset similarity, in the current Wi-Fi list and Confirming the bit of the mobile terminal when the similarity between the last Wi-Fi list is less than the preset similarity The setting has changed.
进一步可选地,所述相似度为当前Wi-Fi列表的接入点存在于上次Wi-Fi列表的接入点数目与所述上次Wi-Fi列表的接入点的总数目之间的比值。Further optionally, 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.
可选地,所述检测单元301具体用于:Optionally, the detecting unit 301 is specifically configured to:
检测所述移动终端的Wi-Fi连接状态是否变化,在所述移动终端的Wi-Fi连接状态变化时,确认所述移动终端的位置已变化。It is detected whether the Wi-Fi connection status of the mobile terminal changes, and when the Wi-Fi connection status of the mobile terminal changes, it is confirmed that the location of the mobile terminal has changed.
可选地,如图3b,图3b为图3a所描述的无线保真Wi-Fi扫描装置的一种变型结构,与图3a所描述的无线保真Wi-Fi扫描装置相比较,其还包括:判断单元303,具体如下:Optionally, as shown in FIG. 3b, 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:
所述检测单元301还具体用于:The detecting unit 301 is further specifically configured to:
在检测移动终端的位置是否变化之前,检测所述移动终端的电量是否低于第三预设阈值;Before detecting whether the location of the mobile terminal is changed, detecting whether the power quantity of the mobile terminal is lower than a third preset threshold;
判断单元303,在所述检测单元301的检测结果为所述移动终端的电量低于所述第三预设阈值时,判断所述移动终端处于休眠状态的持续时间是否大于第四预设阈值,在所述判断单元303的判断结果为所述移动终端处于休眠状态的持续时间大于所述第四预设阈值时,由所述检测单元301执行所述检测移动终端的位置是否变化。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.
可选地,所述扫描单元302按照第二扫描频率进行Wi-Fi扫描的具体实施方式为:Optionally, the specific implementation manner of the scanning unit 302 performing Wi-Fi scanning according to the second scanning frequency is:
若在预设时间长度内所述移动终端的位置未变化,且所述移动终端一直处于休眠状态,关闭Wi-Fi。If the location of the mobile terminal does not change within a preset length of time, and the mobile terminal is always in a dormant state, Wi-Fi is turned off.
可以看出,通过本发明实施例所描述的无线保真Wi-Fi扫描装置,可检测移动终端的位置是否变化,在移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描,在移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,第二扫描频率小于第一扫描频率。从而,在移动终端的位置变化和不变化时,按照不同的扫描频率进行扫描,如此,可降低移动终端的功耗。It can be seen that 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. When the location of the mobile terminal does not change, 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.
需要注意的是,本发明装置实施例所描述的无线保真Wi-Fi扫描装置是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单 个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。It should be noted that 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.
举例来说,检测单元,301用于检测移动终端的位置是否变化的功能可以由图4所示的移动终端来实现,具体可以通过处理器3000通过调用存储器4000中的可执行程序代码,检测移动终端的位置是否变化。For example, 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.
与上述一致地,请参阅图4,为本发明实施例提供的一种移动终端的实施例结构示意图。本实施例中所描述的移动终端,包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。With reference to 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.
其中,上述输入设备1000具体可为触控面板、物理按键或者鼠标。The input device 1000 may be a touch panel, a physical button, or a mouse.
上述输出设备2000具体可为显示屏。The output device 2000 described above may specifically be a display screen.
上述存储器4000可以是高速RAM存储器,也可为非易失存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作: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:
上述处理器3000,用于:The processor 3000 is configured to:
检测移动终端的位置是否变化;Detecting whether the location of the mobile terminal changes;
在所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描;When the location of the mobile terminal changes, performing Wi-Fi scanning according to the first scanning frequency;
在所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。When the location of the mobile terminal does not change, the Wi-Fi scan is performed according to the second scan frequency, wherein the second scan frequency is smaller than the first scan frequency.
可选地,上述处理器3000检测移动终端的位置是否变化,包括:Optionally, the foregoing processor 3000 detects whether the location of the mobile terminal changes, including:
获取当前位置与上次记录的位置之间的距离是否大于第一预设阈值,在所述当前位置与所述上次记录的位置之间的距离大于所述第一预设阈值时,确认所述移动终端的位置已变化。Obtaining whether a distance between the current location and the last recorded location is greater than a first preset threshold, and when the distance between the current location and the last recorded location is greater than the first preset threshold, confirming The location of the mobile terminal has changed.
可选地,上述处理器3000检测移动终端的位置是否变化,包括:Optionally, the foregoing processor 3000 detects whether the location of the mobile terminal changes, including:
检测所述移动终端的Wi-Fi信号强度变化值是否大于第二预设阈值,在所述移动终端的Wi-Fi信号强度变化值大于所述第二预设阈值时,确认所述移动 终端的位置已变化。Detecting whether the Wi-Fi signal strength change value of the mobile terminal is greater than a second preset threshold, and confirming the mobile when the Wi-Fi signal strength change value of the mobile terminal is greater than the second preset threshold The location of the terminal has changed.
可选地,上述处理器3000检测移动终端的位置是否变化,包括:Optionally, the foregoing processor 3000 detects whether the location of the mobile terminal changes, including:
检测所述移动终端的振动频率是否大于预设频率阈值,在所述移动终端的振动频率是否大于所述预设频率阈值时,确认所述移动终端的位置已变化。Detecting whether the vibration frequency of the mobile terminal is greater than a preset frequency threshold, and confirming that the location of the mobile terminal has changed when the vibration frequency of the mobile terminal is greater than the preset frequency threshold.
可选地,上述处理器3000检测移动终端的位置是否变化,包括:Optionally, the foregoing processor 3000 detects whether the location of the mobile terminal changes, including:
获取当前Wi-Fi扫描的当前Wi-Fi列表;Get the current Wi-Fi list of the current Wi-Fi scan;
判断所述当前Wi-Fi列表与上次Wi-Fi列表之间的相似度是否小于预设相似度,在所述当前Wi-Fi列表与所述上次Wi-Fi列表之间的相似度小于所述预设相似度时,确认所述移动终端的位置已变化。Determining whether the similarity between the current Wi-Fi list and the last Wi-Fi list is less than a preset similarity, and the similarity between the current Wi-Fi list and the last Wi-Fi list is less than When the similarity is preset, it is confirmed that the location of the mobile terminal has changed.
可选地,所述相似度为当前Wi-Fi列表的接入点存在于上次Wi-Fi列表的接入点数目与所述上次Wi-Fi列表的接入点的总数目之间的比值。Optionally, 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.
可选地,上述处理器3000检测移动终端的位置是否变化,包括:Optionally, the foregoing processor 3000 detects whether the location of the mobile terminal changes, including:
检测所述移动终端的Wi-Fi连接状态是否变化,在所述移动终端的Wi-Fi连接状态变化时,确认所述移动终端的位置已变化。It is detected whether the Wi-Fi connection status of the mobile terminal changes, and when the Wi-Fi connection status of the mobile terminal changes, it is confirmed that the location of the mobile terminal has changed.
可选地,上述处理器3000,在所述检测移动终端的位置是否变化之前,还具体用于:Optionally, the processor 3000 is further configured to: before detecting whether the location of the mobile terminal is changed,
检测所述移动终端的电量是否低于第三预设阈值;Detecting whether the power of the mobile terminal is lower than a third preset threshold;
在所述移动终端的电量低于所述第三预设阈值时,判断所述移动终端处于休眠状态的持续时间是否大于第四预设阈值,在所述移动终端处于休眠状态的持续时间大于所述第四预设阈值时,执行所述检测移动终端的位置是否变化。When the power of the mobile terminal is lower than the third preset threshold, determining whether the duration of the mobile terminal in the sleep state is greater than a fourth preset threshold, and the duration of the mobile terminal being in the sleep state is greater than When the fourth preset threshold is described, the detecting whether the location of the mobile terminal changes is performed.
可选地,上述处理器3000按照第二扫描频率进行Wi-Fi扫描,包括:Optionally, the processor 3000 performs a Wi-Fi scan according to the second scanning frequency, including:
若在预设时间长度内所述移动终端的位置未变化,且所述移动终端一直处于休眠状态,关闭Wi-Fi。If the location of the mobile terminal does not change within a preset length of time, and the mobile terminal is always in a dormant state, Wi-Fi is turned off.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种无线保真Wi-Fi扫描方法的部分或全部步骤。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.
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计 算机执行如上述方法实施例中记载的任何一种无线保真Wi-Fi扫描方法的部分或全部步骤。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.
尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the present invention has been described herein in connection with the embodiments of the present invention, it will be understood by those skilled in the <RTIgt; Other variations of the disclosed embodiments are achieved. 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 several of the functions recited in the claims. Certain measures are recited in mutually different dependent claims, but this does not mean that the measures are not combined to produce a good effect.
本领域技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。Those skilled in the art will appreciate that 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 present invention has been described with reference to flowchart illustrations and/or block diagrams of the methods, apparatus, and computer program products of the embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。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.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处 理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on the computer or other programmable device to produce a computer implemented The instructions, which are executed on a computer or other programmable device, provide steps for implementing the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 While the invention has been described with respect to the specific embodiments and embodiments thereof, various modifications and combinations may be made without departing from the spirit and scope of the invention. Accordingly, the specification and drawings are to be construed as the It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Claims (20)

  1. 一种无线保真Wi-Fi扫描方法,其特征在于,包括:A wireless fidelity Wi-Fi scanning method, comprising:
    检测移动终端的位置是否变化;Detecting whether the location of the mobile terminal changes;
    在所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描;When the location of the mobile terminal changes, performing Wi-Fi scanning according to the first scanning frequency;
    在所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。When the location of the mobile terminal does not change, the Wi-Fi scan is performed according to the second scan frequency, wherein the second scan frequency is smaller than the first scan frequency.
  2. 根据权利要求1所述的方法,其特征在于,所述检测移动终端的位置是否变化,包括:The method according to claim 1, wherein the detecting whether the location of the mobile terminal is changed comprises:
    获取当前位置与上次记录的位置之间的距离是否大于第一预设阈值,在所述当前位置与所述上次记录的位置之间的距离大于所述第一预设阈值时,确认所述移动终端的位置已变化。Obtaining whether a distance between the current location and the last recorded location is greater than a first preset threshold, and when the distance between the current location and the last recorded location is greater than the first preset threshold, confirming The location of the mobile terminal has changed.
  3. 根据权利要求1所述的方法,其特征在于,所述检测移动终端的位置是否变化,包括:The method according to claim 1, wherein the detecting whether the location of the mobile terminal is changed comprises:
    检测所述移动终端的Wi-Fi信号强度变化值是否大于第二预设阈值,在所述移动终端的Wi-Fi信号强度变化值大于所述第二预设阈值时,确认所述移动终端的位置已变化。Detecting whether the value of the Wi-Fi signal strength change of the mobile terminal is greater than a second preset threshold, and confirming that the mobile terminal's Wi-Fi signal strength change value is greater than the second preset threshold The location has changed.
  4. 根据权利要求1所述的方法,其特征在于,所述检测移动终端的位置是否变化,包括:The method according to claim 1, wherein the detecting whether the location of the mobile terminal is changed comprises:
    检测所述移动终端的振动频率是否大于预设频率阈值,在所述移动终端的振动频率是否大于所述预设频率阈值时,确认所述移动终端的位置已变化。Detecting whether the vibration frequency of the mobile terminal is greater than a preset frequency threshold, and confirming that the location of the mobile terminal has changed when the vibration frequency of the mobile terminal is greater than the preset frequency threshold.
  5. 根据权利要求1所述的方法,其特征在于,所述检测移动终端的位置是否变化,包括:The method according to claim 1, wherein the detecting whether the location of the mobile terminal is changed comprises:
    获取当前Wi-Fi扫描的当前Wi-Fi列表;Get the current Wi-Fi list of the current Wi-Fi scan;
    判断所述当前Wi-Fi列表与上次Wi-Fi列表之间的相似度是否小于预设相 似度,在所述当前Wi-Fi列表与所述上次Wi-Fi列表之间的相似度小于所述预设相似度时,确认所述移动终端的位置已变化。Determining whether the similarity between the current Wi-Fi list and the last Wi-Fi list is less than a preset phase Similarity, when the similarity between the current Wi-Fi list and the last Wi-Fi list is less than the preset similarity, it is confirmed that the location of the mobile terminal has changed.
  6. 根据权利要求5所述的方法,其特征在于,所述相似度为当前Wi-Fi列表的接入点存在于上次Wi-Fi列表的接入点数目与所述上次Wi-Fi列表的接入点的总数目之间的比值。The method according to claim 5, wherein the similarity is the number of access points of the access point of the current Wi-Fi list existing in the last Wi-Fi list and the last Wi-Fi list. The ratio between the total number of access points.
  7. 根据权利要求1所述的方法,其特征在于,所述检测移动终端的位置是否变化,包括:The method according to claim 1, wherein the detecting whether the location of the mobile terminal is changed comprises:
    检测所述移动终端的Wi-Fi连接状态是否变化,在所述移动终端的Wi-Fi连接状态变化时,确认所述移动终端的位置已变化。It is detected whether the Wi-Fi connection status of the mobile terminal changes, and when the Wi-Fi connection status of the mobile terminal changes, it is confirmed that the location of the mobile terminal has changed.
  8. 根据权利要求1至7任一项所述的方法,其特征在于,在所述检测移动终端的位置是否变化之前,所述方法还包括:The method according to any one of claims 1 to 7, wherein before the detecting whether the location of the mobile terminal is changed, the method further comprises:
    检测所述移动终端的电量是否低于第三预设阈值;Detecting whether the power of the mobile terminal is lower than a third preset threshold;
    在所述移动终端的电量低于所述第三预设阈值时,判断所述移动终端处于休眠状态的持续时间是否大于第四预设阈值,在所述移动终端处于休眠状态的持续时间大于所述第四预设阈值时,执行所述检测移动终端的位置是否变化。When the power of the mobile terminal is lower than the third preset threshold, determining whether the duration of the mobile terminal in the sleep state is greater than a fourth preset threshold, and the duration of the mobile terminal being in the sleep state is greater than When the fourth preset threshold is described, the detecting whether the location of the mobile terminal changes is performed.
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述按照第二扫描频率进行Wi-Fi扫描,包括:The method according to any one of claims 1 to 8, wherein the performing a Wi-Fi scan according to the second scanning frequency comprises:
    若在预设时间长度内所述移动终端的位置未变化,且所述移动终端一直处于休眠状态,关闭Wi-Fi。If the location of the mobile terminal does not change within a preset length of time, and the mobile terminal is always in a dormant state, Wi-Fi is turned off.
  10. 一种无线保真Wi-Fi扫描装置,其特征在于,包括;A wireless fidelity Wi-Fi scanning device, characterized in that
    检测单元,用于检测移动终端的位置是否变化;a detecting unit, configured to detect whether a location of the mobile terminal changes;
    扫描单元,用于在所述检测单元的检测结果为所述移动终端的位置变化时,按照第一扫描频率进行Wi-Fi扫描;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:
    在所述检测单元的检测结果为所述移动终端的位置未变化时,按照第二扫描频率进行Wi-Fi扫描,其中,所述第二扫描频率小于所述第一扫描频率。When the detection result of the detecting unit is that the position of the mobile terminal is not changed, the Wi-Fi scanning is performed according to the second scanning frequency, wherein the second scanning frequency is smaller than the first scanning frequency.
  11. 根据权利要求10所述的装置,其特征在于,所述检测单元具体用于:The device according to claim 10, wherein the detecting unit is specifically configured to:
    获取当前位置与上次记录的位置之间的距离是否大于第一预设阈值,在所述当前位置与所述上次记录的位置之间的距离大于所述第一预设阈值时,确认所述移动终端的位置已变化。Obtaining whether a distance between the current location and the last recorded location is greater than a first preset threshold, and when the distance between the current location and the last recorded location is greater than the first preset threshold, confirming The location of the mobile terminal has changed.
  12. 根据权利要求10所述的装置,其特征在于,所述检测单元具体用于:The device according to claim 10, wherein the detecting unit is specifically configured to:
    检测所述移动终端的Wi-Fi信号强度变化值是否大于第二预设阈值,在所述移动终端的Wi-Fi信号强度变化值大于所述第二预设阈值时,确认所述移动终端的位置已变化。Detecting whether the value of the Wi-Fi signal strength change of the mobile terminal is greater than a second preset threshold, and confirming that the mobile terminal's Wi-Fi signal strength change value is greater than the second preset threshold The location has changed.
  13. 根据权利要求10所述的装置,其特征在于,所述检测单元具体用于:The device according to claim 10, wherein the detecting unit is specifically configured to:
    检测所述移动终端的振动频率是否大于预设频率阈值,在所述移动终端的振动频率是否大于所述预设频率阈值时,确认所述移动终端的位置已变化。Detecting whether the vibration frequency of the mobile terminal is greater than a preset frequency threshold, and confirming that the location of the mobile terminal has changed when the vibration frequency of the mobile terminal is greater than the preset frequency threshold.
  14. 根据权利要求10所述的装置,其特征在于,所述检测单元具体用于:The device according to claim 10, wherein the detecting unit is specifically configured to:
    获取当前Wi-Fi扫描的当前Wi-Fi列表;判断所述当前Wi-Fi列表与上次Wi-Fi列表之间的相似度是否小于预设相似度,在所述当前Wi-Fi列表与所述上次Wi-Fi列表之间的相似度小于所述预设相似度时,确认所述移动终端的位置已变化。Obtaining a current Wi-Fi list of the current Wi-Fi scan; determining whether the similarity between the current Wi-Fi list and the last Wi-Fi list is less than a preset similarity, in the current Wi-Fi list and When the similarity between the last Wi-Fi lists is less than the preset similarity, it is confirmed that the location of the mobile terminal has changed.
  15. 根据权利要求14所述的装置,其特征在于,所述相似度为当前Wi-Fi列表的接入点存在于上次Wi-Fi列表的接入点数目与所述上次Wi-Fi列表的接入点的总数目之间的比值。The apparatus according to claim 14, wherein the similarity is the number of access points of the current Wi-Fi list that exist in the last Wi-Fi list and the last Wi-Fi list. The ratio between the total number of access points.
  16. 根据权利要求10至15任一项所述的装置,其特征在于,所述检测单元还具体用于: The device according to any one of claims 10 to 15, wherein the detecting unit is further configured to:
    在检测移动终端的位置是否变化之前,检测所述移动终端的电量是否低于第三预设阈值;Before detecting whether the location of the mobile terminal is changed, detecting whether the power quantity of the mobile terminal is lower than a third preset threshold;
    所述装置还包括:The device also includes:
    判断单元,在所述检测单元的检测结果为所述移动终端的电量低于所述第三预设阈值时,判断所述移动终端处于休眠状态的持续时间是否大于第四预设阈值,在所述判断单元的判断结果为所述移动终端处于休眠状态的持续时间大于所述第四预设阈值时,由所述检测单元执行所述检测移动终端的位置是否变化。a determining unit, when the detection result of the detecting unit is that the power quantity of the mobile terminal is lower than the third preset threshold, determining whether the duration of the mobile terminal in the sleep state is greater than a fourth preset threshold, When the judgment result of the judging unit is that the duration in which the mobile terminal is in the sleep state is greater than the fourth preset threshold, whether the location of the mobile terminal is detected by the detecting unit is changed.
  17. 根据权利要求10至16任一项所述的装置,其特征在于,所述扫描单元按照第二扫描频率进行Wi-Fi扫描的具体实施方式为:The device according to any one of claims 10 to 16, wherein the scanning unit performs Wi-Fi scanning according to the second scanning frequency:
    若在预设时间长度内所述移动终端的位置未变化,且所述移动终端一直处于休眠状态,关闭Wi-Fi。If the location of the mobile terminal does not change within a preset length of time, and the mobile terminal is always in a dormant state, Wi-Fi is turned off.
  18. 一种移动终端,其特征在于,包括:A mobile terminal, comprising:
    处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如权利要求1至9任意一项所述的方法。A processor and a memory; wherein the processor performs the method of any one of claims 1 to 9 by invoking code or instructions in the memory.
  19. 一种计算机存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。A computer storage medium for storing a computer program, wherein the computer program causes a computer to perform the method of any one of claims 1-9.
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。 A computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform as claimed in any one of claims 1-9 The method described.
PCT/CN2017/101463 2016-12-07 2017-09-12 Wireless fidelity wi-fi scanning method and related product WO2018103401A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611117239.2 2016-12-07
CN201611117239.2A CN106507445B (en) 2016-12-07 2016-12-07 Wireless fidelity Wi-Fi scanning method and mobile terminal

Publications (1)

Publication Number Publication Date
WO2018103401A1 true WO2018103401A1 (en) 2018-06-14

Family

ID=58329754

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/101463 WO2018103401A1 (en) 2016-12-07 2017-09-12 Wireless fidelity wi-fi scanning method and related product

Country Status (2)

Country Link
CN (1) CN106507445B (en)
WO (1) WO2018103401A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372326A (en) * 2020-03-13 2020-07-03 华为技术有限公司 Method and mobile device for establishing point-to-point wireless connection
CN114500116A (en) * 2022-04-14 2022-05-13 杭州海康威视数字技术股份有限公司 Self-healing security scanning method, system and device for video Internet of things equipment

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507445B (en) * 2016-12-07 2020-01-14 Oppo广东移动通信有限公司 Wireless fidelity Wi-Fi scanning method and mobile terminal
CN107040910A (en) * 2017-04-24 2017-08-11 北京小米移动软件有限公司 Wireless roaming method, radio roaming device and electronic equipment
CN107071806A (en) * 2017-06-16 2017-08-18 厦门美图移动科技有限公司 The method and mobile terminal of a kind of optimizing network speed
CN110710284B (en) * 2017-06-20 2021-04-27 北京嘀嘀无限科技发展有限公司 Method and apparatus for detecting a change in access point location
CN107613537B (en) * 2017-09-23 2021-02-26 Oppo广东移动通信有限公司 Frequency control method for signal quality detection and related product
WO2019237356A1 (en) * 2018-06-15 2019-12-19 华为技术有限公司 Method and device for scanning wireless fidelity network
WO2020113392A1 (en) * 2018-12-03 2020-06-11 深圳市欢太科技有限公司 Network processing method, computer-readable storage medium and electronic device
CN109618393B (en) * 2019-02-01 2021-03-02 Oppo广东移动通信有限公司 Communication control method, communication control device, mobile terminal and storage medium
CN110248401B (en) * 2019-06-18 2022-03-22 Oppo广东移动通信有限公司 WiFi scanning control method and device, storage medium and mobile terminal
CN110351812B (en) * 2019-06-24 2021-10-22 惠州Tcl移动通信有限公司 WIFI search network power control method, mobile terminal and storage medium
CN112672297B (en) * 2020-12-16 2023-02-17 上海浦东发展银行股份有限公司 Indoor positioning method, server, positioning client, equipment and storage medium
CN113225787B (en) * 2021-04-06 2023-02-28 Oppo广东移动通信有限公司 Wi-Fi scanning method, terminal equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316555A (en) * 2011-09-19 2012-01-11 华为终端有限公司 Method for scanning wireless fidelity (WiFi) network by mobile terminal and mobile terminal adopting method
US20130308512A1 (en) * 2012-05-17 2013-11-21 Samsung Electronics Co. Ltd. Portable terminal and method for scanning access points
CN103458440A (en) * 2013-08-29 2013-12-18 惠州Tcl移动通信有限公司 Method and mobile terminal for adjusting WIFI scanning frequency based on motion state
WO2015167258A1 (en) * 2014-04-29 2015-11-05 Samsung Electronics Co., Ltd. Proximity communication method and apparatus
CN105933962A (en) * 2016-05-18 2016-09-07 深圳天珑无线科技有限公司 Wi-Fi power-saving method and mobile terminal
CN106507445A (en) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 A kind of Wireless Fidelity Wi Fi scan methods and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101156328A (en) * 2004-11-12 2008-04-02 美商内数位科技公司 Method and apparatus for detecting and selectively utilizing peripheral devices
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 (en) * 2012-11-15 2017-09-19 中兴通讯股份有限公司 Mobile terminal Wi Fi application controls methods and mobile terminal
CN105898705B (en) * 2016-06-24 2019-06-07 维沃移动通信有限公司 A kind of method and mobile terminal of the scan frequency controlling WLAN

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316555A (en) * 2011-09-19 2012-01-11 华为终端有限公司 Method for scanning wireless fidelity (WiFi) network by mobile terminal and mobile terminal adopting method
US20130308512A1 (en) * 2012-05-17 2013-11-21 Samsung Electronics Co. Ltd. Portable terminal and method for scanning access points
CN103458440A (en) * 2013-08-29 2013-12-18 惠州Tcl移动通信有限公司 Method and mobile terminal for adjusting WIFI scanning frequency based on motion state
WO2015167258A1 (en) * 2014-04-29 2015-11-05 Samsung Electronics Co., Ltd. Proximity communication method and apparatus
CN105933962A (en) * 2016-05-18 2016-09-07 深圳天珑无线科技有限公司 Wi-Fi power-saving method and mobile terminal
CN106507445A (en) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 A kind of Wireless Fidelity Wi Fi scan methods and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372326A (en) * 2020-03-13 2020-07-03 华为技术有限公司 Method and mobile device for establishing point-to-point wireless connection
CN111372326B (en) * 2020-03-13 2023-01-13 华为技术有限公司 Method and mobile device for establishing point-to-point wireless connection
CN114500116A (en) * 2022-04-14 2022-05-13 杭州海康威视数字技术股份有限公司 Self-healing security scanning method, system and device for video Internet of things equipment

Also Published As

Publication number Publication date
CN106507445B (en) 2020-01-14
CN106507445A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
WO2018103401A1 (en) Wireless fidelity wi-fi scanning method and related product
US10257786B2 (en) Method and apparatus for managing a display of a mobile electronic device for power saving
TWI521341B (en) Throttling of application access to resources
CN107748685B (en) Application program starting control method and device, terminal equipment and storage medium
CN108228358B (en) Method, device, mobile terminal and storage medium for correcting vertical synchronization signal
US20130308512A1 (en) Portable terminal and method for scanning access points
EP2587369A1 (en) Method and apparatus for controlling interrupt in portable terminal
US8897825B2 (en) Wireless communication device and wireless communication method
WO2017206902A1 (en) Application control method and related device
WO2015081664A1 (en) Method, apparatus, device and system for controlling wireless network to be switched on/off
CN107943269B (en) Scheduling job control method, device, terminal equipment and storage medium
WO2019024641A1 (en) Data synchronization method and apparatus, storage medium and electronic device
EP3128789A1 (en) Method, device and mobile terminal for reducing power consumption
WO2017206901A1 (en) Process control method and related device
WO2024067803A1 (en) Data processing method, data processing apparatus, and electronic device and readable storage medium
US20190019488A1 (en) Method for Controlling Interference in Audio Service and Terminal
CN108693948B (en) Frame rate adjusting method and device, terminal equipment and storage medium
WO2020118601A1 (en) Method, apparatus, electronic device, and storage medium for video encoding
CN108011860B (en) Method, device and terminal for processing broadcast message
CN106454953B (en) Flow control method, device and terminal
WO2019072179A1 (en) Application running control method and apparatus
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
CN110800277A (en) Call processing method and related product
CN108170360B (en) Control method of gesture function and mobile terminal
CN104102717B (en) Method and system for exclusively playing music on terminal

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