CN105872980B - A kind of method and device scanning wireless network signal - Google Patents

A kind of method and device scanning wireless network signal Download PDF

Info

Publication number
CN105872980B
CN105872980B CN201610393802.2A CN201610393802A CN105872980B CN 105872980 B CN105872980 B CN 105872980B CN 201610393802 A CN201610393802 A CN 201610393802A CN 105872980 B CN105872980 B CN 105872980B
Authority
CN
China
Prior art keywords
mobile terminal
wireless network
frequency
current location
network signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610393802.2A
Other languages
Chinese (zh)
Other versions
CN105872980A (en
Inventor
黄园
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610393802.2A priority Critical patent/CN105872980B/en
Publication of CN105872980A publication Critical patent/CN105872980A/en
Application granted granted Critical
Publication of CN105872980B publication Critical patent/CN105872980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • 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
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The present invention is suitable for technical field of mobile terminals, provides a kind of method and device for scanning wireless network signal.The present invention passes through the current location for determining mobile terminal, detect the distance between current location and the target position of mobile terminal, when the distance between the current location and target position that detect mobile terminal meet preset distance condition, the frequency for scanning wireless network signal is adjusted to targeted scans frequency, compared to the prior art, the relationship that the present invention passes through distance between detection mobile terminal locations and target position, and the mode of scanning wireless network signal frequency is adjusted according to the relationship, avoid mobile terminal blindly, continually it is scanned, slow down the depletion rate of mobile terminal electricity, increase cruise duration.

Description

A kind of method and device scanning wireless network signal
Technical field
The invention belongs to technical field of mobile terminals more particularly to a kind of method and devices for scanning wireless network signal.
Background technique
In recent years, with the fast development of intelligent mobile terminal the relevant technologies, the intelligent mobile terminals such as mobile phone are in people Life in it is more more and more universal, greatly facilitate people's lives, amusement and study.Since mobile terminal is needed using flow It collects the charges, and some mobile terminals, such as tablet computer, laptop etc., cannot be surfed the Internet using flow, therefore nothing Gauze network just seems particularly significant for current terminal user.In currently existing scheme, when the connection of wireless network is disconnected After opening, the wireless network module of mobile terminal can periodic frequent progress scanning, this will increase mobile terminal electric quantity consumption speed Degree shortens cruise duration.
Summary of the invention
Technical problem to be solved by the present invention lies in provide a kind of method and device for scanning wireless network signal, it is intended to It solves in the prior art after the connection of wireless network disconnects, mobile terminal can periodic frequent progress wireless network signal The problem of scanning increases mobile terminal electric quantity consumption speed, shortens cruise duration.
First aspect present invention provides a kind of method for scanning wireless network signal, which comprises
Determine the current location of mobile terminal;
Detect the distance between current location and the target position of the mobile terminal;
When the distance between the current location and the target position that detect the mobile terminal meet preset distance item When part, the frequency for scanning wireless network signal is adjusted to targeted scans frequency.
With reference to first aspect, described described mobile whole when detecting in first aspect in the first feasible implementation When the distance between the current location at end and the target position meet preset distance condition, the frequency of wireless network signal will be scanned Rate is adjusted to targeted scans frequency
When the distance between current location and the target position for detecting the mobile terminal is less than preset distance, The frequency for scanning wireless network signal is tuned up into first object scan frequency;
When detecting that it is preset that the distance between the current location of the mobile terminal and the target position are greater than or equal to Apart from when, the frequency for scanning wireless network signal is slowed down to the second targeted scans frequency.
With reference to first aspect, in second of first aspect feasible implementation, the determining mobile terminal it is current Include: before position
When the mobile terminal is successfully connected wireless network, the position of the mobile terminal is recorded as the target position It sets.
With reference to first aspect, the first feasible implementation of first aspect or second of first aspect feasible realization Mode, in first aspect in the third feasible implementation, the current location of the determining mobile terminal includes: before
Detect the wireless network connection state of the mobile terminal;
When the wireless network for detecting the mobile terminal is in an off state, start to scan wireless network signal.
The third feasible implementation with reference to first aspect, in the 4th kind of feasible implementation of first aspect, institute It states after detecting the wireless network connection state of the mobile terminal and includes:
When the wireless network for detecting the mobile terminal is in connection status, stop scanning wireless network signal.
Second aspect of the present invention provides a kind of device for scanning wireless network signal, and described device includes:
Determining module, for determining the current location of mobile terminal;
Detection module, the distance between current location and target position for detecting the mobile terminal;
Scan module is full for working as the distance between the current location for detecting the mobile terminal and the target position When sufficient preset distance condition, the frequency for scanning wireless network signal is adjusted to targeted scans frequency.
In conjunction with second aspect, in second aspect in the first feasible implementation, the scan module is also used to when inspection When the current location and the distance between the target position for measuring the mobile terminal are less than preset distance, wireless network will be scanned The frequency of network signal tunes up first object scan frequency;When the current location and the target position for detecting the mobile terminal It the distance between sets when being greater than or equal to preset distance, the frequency for scanning wireless network signal is slowed down to the second targeted scans frequency Rate.
In conjunction with second aspect, in second of second aspect feasible implementation, described device further include:
Logging modle, for recording the position of the mobile terminal when the mobile terminal is successfully connected wireless network As the target position.
In conjunction with second aspect, the first feasible implementation of second aspect or second of second aspect feasible realization Mode, in second aspect in the third feasible implementation, the detection module is also used to detect the nothing of the mobile terminal Line network connection state;
The scan module is also used to when the wireless network for detecting the mobile terminal is in an off state, and is started Scan wireless network signal.
The third feasible implementation in conjunction with second aspect, in the 4th kind of feasible implementation of second aspect, institute Scan module is stated, is also used to when the wireless network for detecting the mobile terminal is in connection status, scanning wireless network is stopped Network signal.
From the embodiments of the present invention it is found that the present invention passes through the current location for determining mobile terminal, mobile terminal is detected Current location and the distance between target position, when the distance between the current location and target position for detecting mobile terminal When meeting preset distance condition, the frequency for scanning wireless network signal is adjusted to targeted scans frequency, compared to the prior art, The present invention scans wireless network signal frequency to adjust by the relationship of distance between detection mobile terminal locations and target position The mode of rate avoids mobile terminal and blindly, is continually scanned, slow down the depletion rate of mobile terminal electricity, increases Cruise duration.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those skilled in the art without any creative labor, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of structural block diagram of mobile terminal;
Fig. 2 is the implementation process schematic diagram of the method for the scanning wireless network signal that first embodiment of the invention provides;
Fig. 3 is the implementation process schematic diagram of the method for the scanning wireless network signal that second embodiment of the invention provides;
Fig. 4 is the structural schematic diagram of the device for the scanning wireless network signal that third embodiment of the invention provides;
Fig. 5 is the structural schematic diagram of the device for the scanning wireless network signal that fourth embodiment of the invention provides.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, those skilled in the art Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Technical problem to be solved by the present invention lies in provide a kind of method and device for scanning wireless network signal, it is intended to It solves in the prior art after the connection of wireless network disconnects, mobile terminal can periodic frequent progress wireless network signal The problem of scanning increases mobile terminal electric quantity consumption speed, shortens cruise duration.
Fig. 1 shows a kind of structural block diagram of mobile terminal.Scanning wireless network signal provided in an embodiment of the present invention Method can be applied in mobile terminal 10 as shown in Figure 1, and mobile terminal 10 can be, but not limited to include: that need to maintain by battery Smart phone, notebook, tablet computer, the wearing smart machine etc. for operating normally and supporting network and download function.
As shown in Figure 1, mobile terminal 10 includes memory 101, storage control 102, one or more (is only shown in figure One) processor 103, Peripheral Interface 104, radio-frequency module 105, key module 106, audio-frequency module 107 and Touch Screen 108.These components are mutually communicated by one or more communication bus/signal wire 110.
It is appreciated that structure shown in FIG. 1 is only to illustrate, the structure of mobile terminal is not caused to limit.It is mobile whole End 10 may also include than shown in Fig. 1 more perhaps less component or with the configuration different from shown in Fig. 1.It is shown in FIG. 1 Each component can be realized using hardware, software, or its combination.
Memory 101 can be used for storing software program and module, such as the scanning wireless network letter in the embodiment of the present invention Number the corresponding program instruction/module of method and device, processor 103 passes through the software journey that is stored in memory 101 of operation Sequence and module realize that the scanning of above-mentioned mobile terminal 10 is wireless thereby executing various function application and data processing The method of network signal.
Memory 101 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 101 can further comprise The memory remotely located relative to processor 103, these remote memories can pass through network connection to mobile terminal 10.On The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.Processor 103 And other possible components can carry out the access of memory 101 under the control of storage control 102.
Various input/output devices are couple CPU and memory 101 by Peripheral Interface 104.The operation of processor 103 is deposited Various softwares, instruction in reservoir 101 are to execute the various functions of mobile terminal 10 and carry out data processing.
In some embodiments, Peripheral Interface 104, processor 103 and storage control 102 can be in one single chips It realizes.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 105 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with Communication network or other equipment are communicated.Radio-frequency module 105 may include various existing for executing the electricity of these functions Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, Memory etc..Radio-frequency module 105 can be with the wireless network progress of various networks such as internet, intranet, preset type Communication is communicated by the wireless network of preset type with other equipment.The wireless network of above-mentioned preset type can wrap Include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).Various communications can be used in the wireless network of above-mentioned preset type Standard, agreement and technology, including but not limited to global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE) is wide Band Code Division Multiple Access (Wideband Code Division Multiple Access, W-CDMA), Code Division Multiple Access (Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), Bluetooth, adopting wireless fidelity technology (Wireless-Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over Internet Protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other for mail, instant messaging and short message agreement and any other is suitable Communications protocol.
Key module 106 provides the interface that is inputted to mobile terminal of user, user can by press it is different by Key is so that mobile terminal 10 executes different functions.
Audio-frequency module 107 provides a user audio interface, may include one or more microphones, one or more raises Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data from Peripheral Interface 104, and voice data is converted to power information, Power information is transmitted to loudspeaker.Power information is converted to the sound wave that human ear can be heard by loudspeaker.Voicefrequency circuit is also from microphone Place receive power information, convert electrical signals to voice data, and by data transmission in network telephony into Peripheral Interface 104 to carry out into one The processing of step.Audio data can obtain from memory 101 or through radio-frequency module 105.In addition, audio data can also be with It stores into memory 101 or is sent by radio-frequency module 105.In some instances, audio-frequency module 107 may also include One earphone broadcasts hole, for providing audio interface to earphone or other equipment.
Touch Screen 108 provides an output and input interface simultaneously between mobile terminal and user.Specifically, touch-control Screen 108 shows video output to user, and the content of these videos output may include text, figure, video and its any group It closes.Some outputs are the result is that correspond to some user interface objects.Touch Screen 108 also receives the input of user, such as user The gesture operations such as click, sliding, so that user interface object responds the input of these users.Detect user's input Technology can be based on resistance-type, condenser type or any other possible touch control detection technology.108 display unit of Touch Screen Specific example include but is not limited to liquid crystal display or light emitting polymer displays.
Referring to Fig. 2, Fig. 2 is the implementation process of the method for the scanning wireless network signal that first embodiment of the invention provides The method of schematic diagram, the scanning wireless network signal provided in the embodiment of the present invention includes:
S201, the current location for determining mobile terminal;
The current location of mobile terminal refers to the position that mobile terminal is presently in.
The current location of mobile terminal can be searched for and determined by locating module, which, which refers to, has search simultaneously It determines the functional module of the current location of mobile terminal, can also be determined by the APP in mobile terminal with positioning function The current location of mobile terminal, it includes Baidu map, Amap etc. that this, which has the APP of positioning function,.
The distance between S202, the current location for detecting mobile terminal and target position;
The target position can be when mobile terminal is successfully connected wireless network, the present bit of the mobile terminal of record It sets, be also possible to system intialization there is a possibility that the higher position of wireless network signal, can also be the customized setting of user Position.
S203, when the distance between current location and target position for detecting mobile terminal meets preset distance condition When, the frequency for scanning wireless network signal is adjusted to targeted scans frequency.
The preset distance condition refers to the distance between current location and target position of mobile terminal, with preset distance it Between the prerequisite that meets of size relation.Specifically, which can be the current location and target position of mobile terminal It the distance between sets and to be greater than the preset distance, be also possible to the distance between the current location of mobile terminal and target position and be equal to The preset distance can also be that the distance between current location and target position of mobile terminal are less than preset distance.
The method of scanning wireless network signal provided in an embodiment of the present invention, by determining the current location of mobile terminal, The distance between current location and the target position for detecting mobile terminal, when the current location and target position for detecting mobile terminal It the distance between sets when meeting preset distance condition, the frequency for scanning wireless network signal is adjusted to targeted scans frequency, phase Compared with the prior art, the present invention passes through the relationship of distance between detection mobile terminal locations and target position, and according to the relationship The mode for adjusting scanning wireless network signal frequency avoids mobile terminal and blindly, is continually scanned, and slows down mobile whole The depletion rate for holding electricity, increases cruise duration.
Referring to Fig. 3, Fig. 3 is the implementation process of the method for the scanning wireless network signal that second embodiment of the invention provides The method of schematic diagram, the scanning wireless network signal provided in the embodiment of the present invention includes:
S301, when mobile terminal is successfully connected wireless network, record the position of mobile terminal as target position;
In the present embodiment, when mobile terminal is successfully connected wireless network, to record the position of mobile terminal as target For position.
Specifically, the database for establishing a wireless network on-position, mobile terminal when will be successfully connected wireless network Current location be stored in the wireless network on-position database, easy-to-look-up target position.
When the distance between the position and target position for detecting mobile terminal, position and the nothing of mobile terminal are detected one by one The distance between the position of terminal device when wireless network is successfully connected in the database of gauze network on-position.
S302, the wireless network connection state for detecting mobile terminal;
The wireless network connection state refers to that the current connection state of mobile terminal has been successfully connected into a wireless network Network does not still access any wireless network, and be in and all wireless networks disconnect state.
When the wireless network for detecting mobile terminal is in an off state, step S303 is executed, it is mobile whole when detecting When the wireless network at end is in connection status, step S304 is executed.
S303, start to scan wireless network signal;
Mobile terminal by network module start scan wireless network signal, the network module refer to scanning, access, The module of disconnection of wireless network function.
S304, stop scanning wireless network signal;
S305, the current location for determining mobile terminal;
The current location of mobile terminal refers to the position that mobile terminal is presently in.
The distance between S306, the current location for detecting mobile terminal and target position;
The target position includes the current location of the mobile terminal of record when mobile terminal is successfully connected wireless network.
When the distance between current location and target position for detecting mobile terminal is less than preset distance, step is executed S307 is executed when the distance between current location and target position for detecting mobile terminal is greater than or equal to preset distance Step S308.
One example can set the preset distance to 300 meters.
S307, the frequency for scanning wireless network signal is tuned up into first object scan frequency;
When the distance between current location and target position for detecting mobile terminal is less than preset distance, illustrate to move Wireless network was nearby accessed before terminal here, mobile terminal very likely connects upper wireless network here, will be wireless The Current Scan frequency of network signal tunes up first object scan frequency, which is greater than the Current Scan Frequency, first scan frequency is a faster scan frequency in the art, connects upper wireless network as early as possible, both plus The speed of fast access wireless network, and can stop scanning and avoiding mobile terminal blindly, frequently after accessing wireless network Ground is scanned, and slows down the depletion rate of mobile terminal electricity, can be set first object scan frequency to every 10 seconds Clock run-down.
S308, the frequency for scanning wireless network signal is slowed down to the second targeted scans frequency.
When the distance between current location and target position for detecting mobile terminal is more than or equal to preset distance, Wireless network was not nearby accessed here before illustrating mobile terminal, mobile terminal can not may connect wirelessly here Network, therefore the Current Scan frequency of wireless network signal is slowed down to the second targeted scans frequency, second targeted scans frequency Rate is less than the current scan frequency, is a more slow scan frequency in the art, and reducing scan frequency as a result, can be with It avoids mobile terminal blindly, to be continually scanned, slows down the depletion rate of mobile terminal electricity.
Further, at this point, if mobile terminal is in bright screen state, illustrate that user may operate the mobile terminal, If mobile terminal, which is in, puts out screen state, illustrate that user may not operate the mobile terminal, mobile terminal is in bright screen state When, compared in screen state is put out, user is likely more urgent need and connects upper wireless network.Therefore, the present invention is by bright screen The second targeted scans set of frequency under state is every 3 minutes run-downs, by the second targeted scans put out under screen state frequency Rate is set as every 5 minutes run-downs.
The method of scanning wireless network signal provided in an embodiment of the present invention, by determining the current location of mobile terminal, The distance between current location and the target position for detecting mobile terminal, when the current location and target position for detecting mobile terminal It the distance between sets when meeting preset distance condition, the frequency for scanning wireless network signal is adjusted to targeted scans frequency, phase Compared with the prior art, the present invention passes through the relationship of distance between detection mobile terminal locations and target position, and according to the relationship The mode for adjusting scanning wireless network signal frequency avoids mobile terminal and blindly, is continually scanned, and slows down mobile whole The depletion rate for holding electricity, increases cruise duration.
Referring to Fig. 4, Fig. 4 is the structural representation of the device for the scanning wireless network signal that third embodiment of the invention provides Figure, for ease of description, only parts related to embodiments of the present invention are shown.The exemplary scanning wireless network signal of Fig. 4 Device can be the executing subject of the method for the scanning wireless network signal of aforementioned first embodiment offer.The exemplary scanning of Fig. 4 The device of wireless network signal specifically includes that determining module 401, detection module 402 and scan module 403.Each functional module Detailed description are as follows:
Determining module 401, for determining the current location of mobile terminal.
The current location of mobile terminal refers to the position that mobile terminal is presently in.
The current location of mobile terminal can be searched for and determined by locating module, which, which refers to, has search simultaneously It determines the functional module of the current location of mobile terminal, can also be determined by the APP in mobile terminal with positioning function The current location of mobile terminal, it includes Baidu map, Amap etc. that this, which has the APP of positioning function,.
Detection module 402, the distance between current location and target position for detecting mobile terminal.
The target position can be when mobile terminal is successfully connected wireless network, the present bit of the mobile terminal of record It sets, be also possible to system intialization there is a possibility that the higher position of wireless network signal, can also be the customized setting of user Position.
Scan module 403, for meeting in advance when the distance between current location and target position for detecting mobile terminal When setting distance condition, the frequency for scanning wireless network signal is adjusted to targeted scans frequency.
The preset distance condition refers to the distance between current location and target position of mobile terminal, with preset distance it Between the prerequisite that meets of size relation.Specifically, which can be the current location and target position of mobile terminal It the distance between sets and to be greater than the preset distance, be also possible to the distance between the current location of mobile terminal and target position and be equal to The preset distance can also be that the distance between current location and target position of mobile terminal are less than preset distance.
The device of scanning wireless network signal provided in an embodiment of the present invention, by determining the current location of mobile terminal, The distance between current location and the target position for detecting mobile terminal, when the current location and target position for detecting mobile terminal It the distance between sets when meeting preset distance condition, the frequency for scanning wireless network signal is adjusted to targeted scans frequency, phase Compared with the prior art, the present invention passes through the relationship of distance between detection mobile terminal locations and target position, and according to the relationship The mode for adjusting scanning wireless network signal frequency avoids mobile terminal and blindly, is continually scanned, and slows down mobile whole The depletion rate for holding electricity, increases cruise duration.
Referring to Fig. 5, Fig. 5 is the structural representation of the device for the scanning wireless network signal that fourth embodiment of the invention provides Figure, for ease of description, only parts related to embodiments of the present invention are shown.The exemplary scanning wireless network signal of Fig. 5 Device can be the executing subject of the method for the scanning wireless network signal of aforementioned second embodiment offer.The exemplary scanning of Fig. 5 The device of wireless network signal specifically includes that logging modle 501, detection module 502, scan module 503 and determining module 504.Detailed description are as follows for each functional module:
Logging modle 501, for when mobile terminal is successfully connected wireless network, recording the position of mobile terminal as mesh Cursor position.
In the present embodiment, when mobile terminal is successfully connected wireless network, to record the position of mobile terminal as target For position.
Specifically, the database for establishing a wireless network on-position, mobile terminal when will be successfully connected wireless network Current location be stored in the wireless network on-position database, easy-to-look-up target position.
When the distance between the position and target position for detecting mobile terminal, position and the nothing of mobile terminal are detected one by one The distance between the position of terminal device when wireless network is successfully connected in the database of gauze network on-position.
Detection module 502, for detecting the wireless network connection state of mobile terminal.
The wireless network connection state refers to that the current connection state of mobile terminal has been successfully connected into a wireless network Network does not still access any wireless network, and be in and all wireless networks disconnect state.
Scan module 503, it is wireless for when the wireless network for detecting mobile terminal is in an off state, starting scanning Network signal.
Mobile terminal by network module start scan wireless network signal, the network module refer to scanning, access, The module of disconnection of wireless network function.
Scan module 503 is also used to when the wireless network for detecting mobile terminal is in connection status, stops scanning nothing Line network signal.
Determining module 504, for determining the current location of mobile terminal.
The current location of mobile terminal refers to the position that mobile terminal is presently in.
Detection module 502 is also used to detect the distance between current location and target position of mobile terminal.
The target position includes the current location of the mobile terminal of record when mobile terminal is successfully connected wireless network.
Scan module 503 is also used to when detecting that the distance between the current location of mobile terminal and target position be less than When preset distance, the frequency for scanning wireless network signal is tuned up into first object scan frequency.
When the distance between current location and target position for detecting mobile terminal is less than preset distance, illustrate to move Wireless network was nearby accessed before terminal here, mobile terminal very likely connects upper wireless network here, will be wireless The Current Scan frequency of network signal tunes up first object scan frequency, which is greater than the Current Scan Frequency, first scan frequency is a faster scan frequency in the art, connects upper wireless network as early as possible, both plus The speed of fast access wireless network, and can stop scanning and avoiding mobile terminal blindly, frequently after accessing wireless network Ground is scanned, and slows down the depletion rate of mobile terminal electricity, can be set first object scan frequency to every 10 seconds Clock run-down.
One example can set the preset distance to 300 meters.
Scan module 503 is also used to when detecting that the distance between the current location of mobile terminal and target position be greater than Or when being equal to preset distance, the frequency for scanning wireless network signal is slowed down to the second targeted scans frequency.
When the distance between current location and target position for detecting mobile terminal is more than or equal to preset distance, Wireless network was not nearby accessed here before illustrating mobile terminal, mobile terminal can not may connect wirelessly here Network, therefore the Current Scan frequency of wireless network signal is slowed down to the second targeted scans frequency, second targeted scans frequency Rate is less than the current scan frequency, is a more slow scan frequency in the art, and reducing scan frequency as a result, can be with It avoids mobile terminal blindly, to be continually scanned, slows down the depletion rate of mobile terminal electricity.
Further, at this point, if mobile terminal is in bright screen state, illustrate that user may operate the mobile terminal, If mobile terminal, which is in, puts out screen state, illustrate that user may not operate the mobile terminal, mobile terminal is in bright screen state When, compared in screen state is put out, user is likely more urgent need and connects upper wireless network.Therefore, the present invention is by bright screen The second targeted scans set of frequency under state is every 3 minutes run-downs, by the second targeted scans put out under screen state frequency Rate is set as every 5 minutes run-downs.
The device of scanning wireless network signal provided in an embodiment of the present invention, by determining the current location of mobile terminal, The distance between current location and the target position for detecting mobile terminal, when the current location and target position for detecting mobile terminal It the distance between sets when meeting preset distance condition, the frequency for scanning wireless network signal is adjusted to targeted scans frequency, phase Compared with the prior art, the present invention passes through the relationship of distance between detection mobile terminal locations and target position, and according to the relationship The mode for adjusting scanning wireless network signal frequency avoids mobile terminal and blindly, is continually scanned, and slows down mobile whole The depletion rate for holding electricity, increases cruise duration.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or module Letter connection can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple On network module.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in a processing module It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hair Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The above are the descriptions of the method and device to scanning wireless network signal provided by the present invention, for this field Technical staff, thought according to an embodiment of the present invention, there will be changes in the specific implementation manner and application range, comprehensive On, the contents of this specification are not to be construed as limiting the invention.

Claims (8)

1. a kind of method for scanning wireless network signal, which is characterized in that the described method includes:
Determine the current location of mobile terminal;
Detect the distance between current location and the target position of the mobile terminal;
When the distance between current location and the target position for detecting the mobile terminal is less than preset distance, will sweep The frequency for retouching wireless network signal tunes up first object scan frequency;
When detecting that it is described preset that the distance between the current location of the mobile terminal and the target position are greater than or equal to Apart from when, detect the screen state of the mobile terminal;
When detecting that the mobile terminal is in bright screen state, the frequency for scanning wireless network signal is slowed down into bright screen state Under the second targeted scans frequency;
When detect the mobile terminal be in put out screen state when, the frequency for scanning wireless network signal is slowed down and puts out screen state Under the second targeted scans frequency.
2. the method as described in claim 1, which is characterized in that include: before the current location of the determining mobile terminal
When the mobile terminal is successfully connected wireless network, the position of the mobile terminal is recorded as the target position.
3. method according to claim 1 or 2, which is characterized in that include: before the current location of the determining mobile terminal
Detect the wireless network connection state of the mobile terminal;
When the wireless network for detecting the mobile terminal is in an off state, start to scan wireless network signal.
4. method as claimed in claim 3, which is characterized in that the wireless network connection state of the detection mobile terminal Include: later
When the wireless network for detecting the mobile terminal is in connection status, stop scanning wireless network signal.
5. a kind of device for scanning wireless network signal, which is characterized in that described device includes:
Determining module, for determining the current location of mobile terminal;
Detection module, the distance between current location and target position for detecting the mobile terminal;
Scan module, for being less than in advance when the distance between the current location and the target position that detect the mobile terminal Set apart from when, the frequency for scanning wireless network signal is tuned up into first object scan frequency;When detecting the mobile terminal Current location and the distance between target position when being greater than or equal to the preset distance, detect the mobile terminal Screen state slows down the frequency for scanning wireless network signal bright when detecting that the mobile terminal is in bright screen state The second targeted scans frequency under screen state, when detect the mobile terminal be in put out screen state when, wireless network will be scanned The frequency of signal slows down the second targeted scans frequency put out under screen state.
6. device as claimed in claim 5, which is characterized in that described device further include:
Logging modle, for recording the position conduct of the mobile terminal when the mobile terminal is successfully connected wireless network The target position.
7. such as device described in claim 5 or 6, which is characterized in that the detection module is also used to detect the mobile terminal Wireless network connection state;
The scan module is also used to start to scan when the wireless network for detecting the mobile terminal is in an off state Wireless network signal.
8. device as claimed in claim 7, which is characterized in that the scan module is also used to described mobile whole when detecting When the wireless network at end is in connection status, stop scanning wireless network signal.
CN201610393802.2A 2016-06-06 2016-06-06 A kind of method and device scanning wireless network signal Active CN105872980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610393802.2A CN105872980B (en) 2016-06-06 2016-06-06 A kind of method and device scanning wireless network signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610393802.2A CN105872980B (en) 2016-06-06 2016-06-06 A kind of method and device scanning wireless network signal

Publications (2)

Publication Number Publication Date
CN105872980A CN105872980A (en) 2016-08-17
CN105872980B true CN105872980B (en) 2019-07-26

Family

ID=56676910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610393802.2A Active CN105872980B (en) 2016-06-06 2016-06-06 A kind of method and device scanning wireless network signal

Country Status (1)

Country Link
CN (1) CN105872980B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106455002A (en) * 2016-12-01 2017-02-22 深圳天珑无线科技有限公司 Wireless search method and device, and terminal
CN106879055B (en) * 2017-01-19 2020-12-29 北京安云世纪科技有限公司 Wireless network scanning control method and related equipment
CN107613537B (en) * 2017-09-23 2021-02-26 Oppo广东移动通信有限公司 Frequency control method for signal quality detection and related product
CN107682825A (en) * 2017-09-23 2018-02-09 广东欧珀移动通信有限公司 Scan frequency control method and Related product
CN107820302B (en) * 2017-11-30 2021-01-26 Oppo广东移动通信有限公司 Mobile terminal wireless local area network scanning method and device and computer equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101645461B1 (en) * 2010-01-12 2016-08-12 삼성전자주식회사 Apparatus and method for auto conntecting wlan in portable terminal
US9148851B2 (en) * 2010-08-20 2015-09-29 Lg Electronics Inc. Method and terminal for searching for an access point
CN103582076A (en) * 2012-08-07 2014-02-12 中兴通讯股份有限公司 WLAN WifiTrak control method and device
JP6213473B2 (en) * 2012-09-27 2017-10-18 日本電気株式会社 Scan control system, method and program
US9408136B2 (en) * 2013-03-12 2016-08-02 Qualcomm Incorporated Method and apparatus for performing scan operations
US20140357266A1 (en) * 2013-05-28 2014-12-04 Nvidia Corporation Using application feedback to optimize plmn search

Also Published As

Publication number Publication date
CN105872980A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN105872980B (en) A kind of method and device scanning wireless network signal
CN105528229B (en) Improve the method and device that mobile terminal first powers on speed
CN109656980A (en) Data processing method, electronic equipment, device and readable storage medium storing program for executing
CN112911556A (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices and dual-mode Bluetooth device
CN104935744A (en) Verification code display method, verification code display device and mobile terminal
CN104092723B (en) Document down loading method, Apparatus and system
CN104243517A (en) Content sharing method and device used between different terminals
CN105320616B (en) External device control method and device
CN106331258A (en) Call methods, call apparatus and call system
CN104333643B (en) Add the method for contact person, system and terminal
CN106488413A (en) Notification message based reminding method and mobile terminal
CN109217995B (en) Data processing method, terminal and base station
CN105404394A (en) Display interface display control method and mobile terminal
CN107613536A (en) Select method, apparatus, mobile terminal and the readable storage medium storing program for executing of network
CN106123910A (en) Step-recording method based on mobile terminal and step count set
CN105704770A (en) Method and apparatus for intelligent access of wireless network
CN106254791A (en) The startup method of photographic head and mobile terminal
CN107608720A (en) Using the display methods of footmark, device, mobile terminal and storage medium
CN106294707A (en) A kind of countdown information output intent and device
CN108391277B (en) Signal connection method, device, mobile terminal and computer readable storage medium
CN108363628A (en) Message treatment method, device, terminal and computer readable storage medium
CN105824509A (en) Method and device for arranging icons
CN106788561B (en) Radio circuit control method, device and terminal device
CN106095132B (en) Playback equipment keypress function setting method and device
CN106375031B (en) The detection method and mobile terminal of radio-frequency channel

Legal Events

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

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

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

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

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant