CN105872980A - Method and device for scanning wireless network signal - Google Patents

Method and device for scanning wireless network signal Download PDF

Info

Publication number
CN105872980A
CN105872980A CN201610393802.2A CN201610393802A CN105872980A CN 105872980 A CN105872980 A CN 105872980A CN 201610393802 A CN201610393802 A CN 201610393802A CN 105872980 A CN105872980 A CN 105872980A
Authority
CN
China
Prior art keywords
mobile terminal
wireless network
scanning
distance
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610393802.2A
Other languages
Chinese (zh)
Other versions
CN105872980B (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 invention is applicable to the technical field of mobile terminals, and provides a method and device for scanning a wireless network signal. The current position of the mobile terminal is determined, so that the distance between the current position of the mobile terminal and the target position is detected; when the distance between the current position of the mobile terminal and the target position meets the preset distance condition, the frequency of a scanned wireless network signal is regulated to the target scanning frequency. Compared with the prior art, the method and the device have the advantages that the relationship of the distance between the position of the mobile terminal and the target position is detected; the mode of the wireless network signal scanning frequency is regulated according to the relationship; the blind and frequent scanning of the mobile terminal is avoided; the consumption speed of the electric quantity of the mobile terminal is reduced; the duration time is increased.

Description

A kind of method and device scanning wireless network signal
Technical field
The invention belongs to technical field of mobile terminals, particularly relate to a kind of method scanning wireless network signal and Device.
Background technology
In recent years, along with the fast development of intelligent mobile terminal correlation technique, the intelligent mobile terminal such as mobile phone is Through more and more universal in the life of people, greatly facilitate the life of people, entertain and learn.Due to Mobile terminal uses flow to need to collect the charges, and some mobile terminal, such as panel computer, notebook Computer etc., it is impossible to using flow online, therefore wireless network just seems ten for current terminal use Divide important.In currently existing scheme, after the connection of wireless network disconnects, the wireless network mould of mobile terminal Block can the most frequently be scanned, and this can increase mobile terminal electric quantity consumption speed, shortens cruising time.
Summary of the invention
The technical problem to be solved is to provide a kind of method scanning wireless network signal and dress Put, it is intended to solving in prior art after the connection of wireless network disconnects, mobile terminal can be the most frequent Carry out the scanning of wireless network signal, increase mobile terminal electric quantity consumption speed, the problem shortening cruising time.
First aspect present invention provides a kind of method scanning wireless network signal, and described method includes:
Determine the current location of mobile terminal;
Detect the distance between current location and the target location of described mobile terminal;
When the distance detected between the current location of described mobile terminal and described target location meet preset away from When condition, the frequency of scanning wireless network signal is regulated to targeted scans frequency.
In conjunction with first aspect, in the first feasible implementation of first aspect, described described when detecting When distance between current location and the described target location of mobile terminal meets preset distance condition, will scanning The frequency regulation of wireless network signal includes to targeted scans frequency:
When the distance detected between the current location of described mobile terminal and described target location less than preset away from From time, by scanning wireless network signal frequency tune up first object rate of scanning;
When the distance detected between the current location of described mobile terminal and described target location is more than or equal to During preset distance, the frequency of scanning wireless network signal is slowed down to the second targeted scans frequency.
In conjunction with first aspect, in the implementation that first aspect the second is feasible, described determine mobile terminal Current location before include:
When described mobile terminal is successfully connected wireless network, record the position of described mobile terminal as described Target location.
In conjunction with first aspect, the first feasible implementation of first aspect or first aspect the second are feasible Implementation, in the third feasible implementation of first aspect, described determine the current of mobile terminal Include before position:
Detect the wireless network connection status of described mobile terminal;
When the wireless network described mobile terminal being detected is off, start to scan wireless network letter Number.
In conjunction with the third feasible implementation of first aspect, in the 4th kind of feasible implementation of first aspect In, include after the wireless network connection status of the described mobile terminal of described detection:
When the wireless network described mobile terminal being detected is in connection status, stop scanning wireless network letter Number.
Second aspect present invention provides a kind of device scanning wireless network signal, and described device includes:
Determine module, for determining the current location of mobile terminal;
Detection module, the distance between current location and the target location detecting described mobile terminal;
Scan module, for when detecting between the current location of described mobile terminal and described target location When distance meets preset distance condition, the frequency of scanning wireless network signal is regulated to targeted scans frequency.
In conjunction with second aspect, in the first feasible implementation of second aspect, described scan module, also For when detect distance between the current location of described mobile terminal and described target location less than preset away from From time, by scanning wireless network signal frequency tune up first object rate of scanning;When described shifting being detected When distance between current location and the described target location of dynamic terminal is more than or equal to preset distance, will scanning The frequency of wireless network signal slows down the second targeted scans frequency.
In conjunction with second aspect, in the implementation that second aspect the second is feasible, described device also includes:
Logging modle, for when described mobile terminal is successfully connected wireless network, records described mobile terminal Position as described target location.
In conjunction with second aspect, the first feasible implementation of second aspect or second aspect the second are feasible Implementation, in the third feasible implementation of second aspect, described detection module, be additionally operable to inspection Survey the wireless network connection status of described mobile terminal;
Described scan module, is additionally operable to when the wireless network described mobile terminal being detected is off, Start to scan wireless network signal.
In conjunction with the third feasible implementation of second aspect, in the 4th kind of feasible implementation of second aspect In, described scan module, it is additionally operable to when the wireless network described mobile terminal being detected is in connection status, Stop scanning wireless network signal.
Knowable to the invention described above embodiment, the present invention is determined by the current location of mobile terminal, and detection moves Distance between current location and the target location of dynamic terminal, when current location and mesh that mobile terminal detected When distance between cursor position meets preset distance condition, the frequency of scanning wireless network signal is regulated to mesh Mark rate of scanning, compared to prior art, the present invention is by between detection mobile terminal locations and target location The relation of distance, thus regulate the mode of scanning wireless network signal frequency, it is to avoid mobile terminal blindly, It is scanned continually, slow down the depletion rate of mobile terminal electricity, add cruising time.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those skilled in the art, do not paying wound On the premise of the property made is laborious, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the structured flowchart of a kind of mobile terminal;
Fig. 2 is that the flow process that realizes of the method for the scanning wireless network signal that first embodiment of the invention provides is illustrated Figure;
Fig. 3 is that the flow process that realizes of the method for the scanning wireless network signal that second embodiment of the invention provides is illustrated Figure;
Fig. 4 is the structural representation of the device of the scanning wireless network signal that third embodiment of the invention provides;
Fig. 5 is the structural representation of the device of the scanning wireless network signal that fourth embodiment of the invention provides.
Detailed description of the invention
For making the goal of the invention of the present invention, feature, the advantage can be the most obvious and understandable, below will knot Close the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely retouched State, it is clear that described embodiment is only a part of embodiment of the present invention, and not all embodiments.Base Embodiment in the present invention, those skilled in the art are obtained under not making creative work premise Every other embodiment, broadly falls into the scope of protection of the invention.
The technical problem to be solved is to provide a kind of method scanning wireless network signal and dress Put, it is intended to solving in prior art after the connection of wireless network disconnects, mobile terminal can be the most frequent Carry out the scanning of wireless network signal, increase mobile terminal electric quantity consumption speed, the problem shortening cruising time.
Fig. 1 shows the structured flowchart of a kind of mobile terminal.The scanning wireless network that the embodiment of the present invention provides The method of signal can be applicable in mobile terminal 10 as shown in Figure 1, and mobile terminal 10 can be, but not limited to Including: battery need to be relied on to remain properly functioning and support network and the smart mobile phone of download function, notebook, Panel computer, wearing smart machine etc..
As it is shown in figure 1, mobile terminal 10 includes memorizer 101, storage control 102, one or many Individual (only illustrating one in figure) processor 103, Peripheral Interface 104, radio-frequency module 105, button mould Block 106, audio-frequency module 107 and Touch Screen 108.These assemblies are total by one or more communication The mutual communication of line/holding wire 110.
Being appreciated that the structure shown in Fig. 1 is only signal, the structure of mobile terminal is not caused limit by it Fixed.Mobile terminal 10 may also include the assembly more or more less than shown in Fig. 1, or has and figure Configurations different shown in 1.Each assembly shown in Fig. 1 can use hardware, software or a combination thereof to realize.
Memorizer 101 can be used for storing software program and module, such as the scanning nothing in the embodiment of the present invention Programmed instruction/module that the method and device of line network signal is corresponding, processor 103 is stored by operation Software program in memorizer 101 and module, thus perform at the application of various function and data Reason, the method i.e. realizing the scanning wireless network signal of above-mentioned mobile terminal 10.
Memorizer 101 can include high speed random access memory, may also include nonvolatile memory, such as one Or multiple magnetic storage devices, flash memory or other non-volatile solid state memories.At some examples In, memorizer 101 can farther include the memorizer remotely located relative to processor 103, and these are remote Journey memorizer can be connected to mobile terminal 10 by network.The example of above-mentioned network includes but not limited to The Internet, intranet, LAN, mobile radio communication and combinations thereof.Processor 103 and other The access of memorizer 101 can be carried out under the control of storage control 102 by possible assembly.
Various input/output devices are coupled to CPU and memorizer 101 by Peripheral Interface 104.Process Various softwares in device 103 run memory 101, instruction are to perform the various functions of mobile terminal 10 And carry out data process.
In certain embodiments, Peripheral Interface 104, processor 103 and storage control 102 are permissible One single chip realizes.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 105 is used for receiving and sending electromagnetic wave, it is achieved electromagnetic wave mutually turns with the signal of telecommunication Change, thus carry out communication with communication network or other equipment.Radio-frequency module 105 can include various existing For performing the component of these functions, such as, antenna, RF transceiver, Digital Signal Processing Device, encryption/deciphering chip, subscriber identity module (SIM) card, memorizer etc..Radio-frequency module 105 Communication can be carried out with various networks such as the Internet, intranet, the wireless network of preset type or lead to The wireless network crossing preset type carries out communication with other equipment.The wireless network of above-mentioned preset type can Including cellular telephone networks, WLAN or Metropolitan Area Network (MAN).The wireless network of above-mentioned preset type can To use various communication standards, agreement and technology, include, but are not limited to global system for mobile communications (Global System for Mobile Communication, GSM), enhancement mode mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (Wideband Code Division Multiple Access, W-CDMA), CDMA (Code Division Access, CDMA), tdma (Time Division Multiple Access, TDMA), Bluetooth, adopting wireless fidelity technology (Wireless-Fidelity, WiFi) is (such as U.S. electric and Electronics Engineer Association criterion 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 are used for mail, IMU News and the agreement of short message, and any other suitable communications protocol.
Key-press module 106 provides user to carry out the interface inputted to mobile terminal, and user can be by pressing not Same button is so that mobile terminal 10 performs different functions.
Audio-frequency module 107 provides a user with audio interface, its can include one or more mike, one or The multiple speaker of person and voicefrequency circuit.Voicefrequency circuit receives voice data at Peripheral Interface 104, by sound Sound data are converted to electrical information, transmit electrical information to speaker.Electrical information is converted to human ear energy by speaker The sound wave heard.Voicefrequency circuit also receives electrical information at mike, converts electrical signals to voice data, And by data transmission in network telephony to Peripheral Interface 104 to be further processed.Voice data can be from depositing Obtain at reservoir 101 or by radio-frequency module 105.Additionally, voice data can also store to memorizer It is transmitted in 101 or by radio-frequency module 105.In some instances, audio-frequency module 107 also can wrap Include an earphone and broadcast hole, for providing audio interface to earphone or other equipment.
Touch Screen 108 provides an output and inputting interface between mobile terminal and user simultaneously.Tool Body ground, Touch Screen 108 displays to the user that video frequency output, the content of these video frequency output can include word, Figure, video and combination in any thereof.Some output results correspond to some user interface object.Touch Control screen 108 also receives the input of user, the gesture operation such as the click of such as user, slip, in order to use The input of these users is responded by family interface object.The technology of detection user's input can be based on electricity Resistive, condenser type or other the most possible touch control detection technology.Touch Screen 108 display unit Instantiation includes, but are not limited to liquid crystal display or light emitting polymer displays.
The method referring to the scanning wireless network signal that Fig. 2, Fig. 2 provide for first embodiment of the invention Realize schematic flow sheet, in the embodiment of the present invention provide scanning wireless network signal method include:
S201, determine the current location of mobile terminal;
The current location of mobile terminal refers to the position that mobile terminal is presently in.
Can be searched for and determine the current location of mobile terminal by locating module, this locating module refers to have Search for and determine the functional module of current location of mobile terminal, it is also possible to by mobile terminal has location The APP of function determines the current location of mobile terminal, and this APP with positioning function includes Baidu ground Figure, high moral map etc..
S202, detection mobile terminal current location and target location between distance;
This target location can be when mobile terminal is successfully connected wireless network, working as of the mobile terminal of record Front position, it is also possible to be the position that the existence wireless network signal probability of system intialization is higher, it is also possible to be The position that User Defined is arranged.
S203, meet preset distance when the distance detected between the current location of mobile terminal and target location During condition, the frequency of scanning wireless network signal is regulated to targeted scans frequency.
This preset distance condition refers to the distance between the current location of mobile terminal and target location, with preset The prerequisite that magnitude relationship between Ju Li meets.Specifically, this distance condition can be mobile terminal Distance between current location and target location is more than this preset distance, it is also possible to be the present bit of mobile terminal Put the distance between target location equal to this preset distance, it is also possible to be current location and the mesh of mobile terminal Distance between cursor position is less than preset distance.
The method of the scanning wireless network signal that the embodiment of the present invention provides, is determined by the current of mobile terminal Position, the distance between current location and the target location of detection mobile terminal, when mobile terminal being detected When distance between current location and target location meets preset distance condition, by scanning wireless network signal Frequency regulation is to targeted scans frequency, compared to prior art, the present invention by detection mobile terminal locations with The relation of the spacing of target location, and according to the mode of this relation regulation scanning wireless network signal frequency, Avoid mobile terminal blindness, be scanned continually, slow down the depletion rate of mobile terminal electricity, increase Add cruising time.
Refer to the method for the scanning wireless network signal that Fig. 3, Fig. 3 provide for second embodiment of the invention Realizing schematic flow sheet, the method for the scanning wireless network signal provided in the embodiment of the present invention includes:
S301, when mobile terminal is successfully connected wireless network, record mobile terminal position as target position Put;
In the present embodiment, with when mobile terminal is successfully connected wireless network, the position of record mobile terminal is made As a example by target location.
Specifically, set up the data base of a wireless network on-position, wireless network time shift will be successfully connected The current location of dynamic terminal is stored in the data base of this wireless network on-position, easy-to-look-up target location.
When detect mobile terminal position and target location between distance time, detect the position of mobile terminal one by one Put and wireless network on-position data base be successfully connected during wireless network between the position of described terminal unit Distance.
S302, the wireless network connection status of detection mobile terminal;
The current connection state that this wireless network connection status refers to mobile terminal is to be successfully connected into a nothing Gauze network, does not still access any wireless network, and is in and the state of all wireless networks disconnection.
When wireless network mobile terminal being detected is off, perform step S303, when detecting When the wireless network of mobile terminal is in connection status, perform step S304.
S303, start to scan wireless network signal;
Mobile terminal starts to scan wireless network signal by mixed-media network modules mixed-media, this mixed-media network modules mixed-media refer to have scanning, Access, the module of disconnection of wireless network function.
S304, stopping scanning wireless network signal;
S305, determine the current location of mobile terminal;
The current location of mobile terminal refers to the position that mobile terminal is presently in.
S306, detection mobile terminal current location and target location between distance;
This target location includes when mobile terminal is successfully connected wireless network, the mobile terminal of record current Position.
When the distance detected between the current location of mobile terminal and target location is less than preset distance, hold Row step S307, when the distance detected between the current location of mobile terminal and target location is more than or equal to During preset distance, perform step S308.
One example, can be set to 300 meters by this preset distance.
S307, by scanning wireless network signal frequency tune up first object rate of scanning;
When the distance detected between the current location of mobile terminal and target location is less than preset distance, say Before bright mobile terminal herein near accessed wireless network, mobile terminal very likely herein connect on Wireless network, tunes up first object rate of scanning by the Current Scan frequency of wireless network signal, and this is first years old Targeted scans frequency be more than this current rate of scanning, in the art this first rate of scanning be one relatively Fast rate of scanning, connects upper wireless network as early as possible, both accelerates to access the speed of wireless network, is accessing again Scanning can be stopped after wireless network and avoid mobile terminal blindness, be scanned continually, slow down shifting The depletion rate of dynamic terminal power, can be set to first object rate of scanning scan one every 10 seconds Secondary.
S308, by scanning wireless network signal frequency slow down the second targeted scans frequency.
When the distance detected between the current location of mobile terminal and target location more than or equal to preset away from From time, before mobile terminal is described herein near do not accessed wireless network, mobile terminal may be at this Place cannot connect wireless network, therefore the Current Scan frequency of wireless network signal is slowed down to the second target Rate of scanning, this second targeted scans frequency be less than this current rate of scanning, be one the most relatively Rate of scanning slowly, thus, reduces rate of scanning and can be avoided mobile terminal blindness, carries out continually Scanning, slow down the depletion rate of mobile terminal electricity.
Further, now, if mobile terminal is in bright screen state, illustrate that user may operate this shifting Dynamic terminal, if mobile terminal is in puts out screen state, illustrates that user is likely not to have this mobile terminal of operation, moves When dynamic terminal is in bright screen state, putting out screen state compared to being in, user is likely more exigence and connects Upper wireless network.Therefore, the second targeted scans frequency configuration under bright screen state is every 3 points by the present invention Clock run-down, is every 5 minutes run-downs by the second targeted scans frequency configuration put out under screen state.
The method of the scanning wireless network signal that the embodiment of the present invention provides, is determined by the current of mobile terminal Position, the distance between current location and the target location of detection mobile terminal, when mobile terminal being detected When distance between current location and target location meets preset distance condition, by scanning wireless network signal Frequency regulation is to targeted scans frequency, compared to prior art, the present invention by detection mobile terminal locations with The relation of the spacing of target location, and according to the mode of this relation regulation scanning wireless network signal frequency, Avoid mobile terminal blindness, be scanned continually, slow down the depletion rate of mobile terminal electricity, increase Add cruising time.
Refer to the device that Fig. 4, Fig. 4 are the scanning wireless network signals that third embodiment of the invention provides Structural representation, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.Fig. 4 The device of the scanning wireless network signal of example can be the scanning wireless network that aforementioned first embodiment provides The executive agent of the method for network signal.The device of the scanning wireless network signal of Fig. 4 example, specifically includes that Determine module 401, detection module 402 and scan module 403.Each functional module describes in detail as follows:
Determine 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.
Can be searched for and determine the current location of mobile terminal by locating module, this locating module refers to have Search for and determine the functional module of current location of mobile terminal, it is also possible to by mobile terminal has location The APP of function determines the current location of mobile terminal, and this APP with positioning function includes Baidu ground Figure, high moral map etc..
Detection module 402, for detecting the distance between the current location of mobile terminal and target location.
This target location can be when mobile terminal is successfully connected wireless network, working as of the mobile terminal of record Front position, it is also possible to be the position that the existence wireless network signal probability of system intialization is higher, it is also possible to be The position that User Defined is arranged.
Scan module 403, for when the distance between the current location of mobile terminal and target location being detected When meeting preset distance condition, the frequency of scanning wireless network signal is regulated to targeted scans frequency.
This preset distance condition refers to the distance between the current location of mobile terminal and target location, with preset The prerequisite that magnitude relationship between Ju Li meets.Specifically, this distance condition can be mobile terminal Distance between current location and target location is more than this preset distance, it is also possible to be the present bit of mobile terminal Put the distance between target location equal to this preset distance, it is also possible to be current location and the mesh of mobile terminal Distance between cursor position is less than preset distance.
The device of the scanning wireless network signal that the embodiment of the present invention provides, is determined by the current of mobile terminal Position, the distance between current location and the target location of detection mobile terminal, when mobile terminal being detected When distance between current location and target location meets preset distance condition, by scanning wireless network signal Frequency regulation is to targeted scans frequency, compared to prior art, the present invention by detection mobile terminal locations with The relation of the spacing of target location, and according to the mode of this relation regulation scanning wireless network signal frequency, Avoid mobile terminal blindness, be scanned continually, slow down the depletion rate of mobile terminal electricity, increase Add cruising time.
Refer to the device that Fig. 5, Fig. 5 are the scanning wireless network signals that fourth embodiment of the invention provides Structural representation, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.Fig. 5 example Scanning wireless network signal device can be aforementioned second embodiment provide scanning wireless network signal The executive agent of method.The device of the scanning wireless network signal of Fig. 5 example, specifically includes that logging modle 501, detection module 502, scan module 503 and determine module 504.Each functional module describes in detail such as Under:
Logging modle 501, for when mobile terminal is successfully connected wireless network, records the position of mobile terminal Put as target location.
In the present embodiment, with when mobile terminal is successfully connected wireless network, the position of record mobile terminal is made As a example by target location.
Specifically, set up the data base of a wireless network on-position, wireless network time shift will be successfully connected The current location of dynamic terminal is stored in the data base of this wireless network on-position, easy-to-look-up target location.
When detect mobile terminal position and target location between distance time, detect the position of mobile terminal one by one Put and wireless network on-position data base be successfully connected during wireless network between the position of described terminal unit Distance.
Detection module 502, for detecting the wireless network connection status of mobile terminal.
The current connection state that this wireless network connection status refers to mobile terminal is to be successfully connected into a nothing Gauze network, does not still access any wireless network, and is in and the state of all wireless networks disconnection.
Scan module 503, for when wireless network mobile terminal being detected is off, starts Scanning wireless network signal.
Mobile terminal starts to scan wireless network signal by mixed-media network modules mixed-media, this mixed-media network modules mixed-media refer to have scanning, Access, the module of disconnection of wireless network function.
Scan module 503, is additionally operable to, when wireless network mobile terminal being detected is in connection status, stop Only scan wireless network signal.
Determine 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 additionally operable to the distance detecting between current location and the target location of mobile terminal.
This target location includes when mobile terminal is successfully connected wireless network, the mobile terminal of record current Position.
Scan module 503, be additionally operable to when detect between the current location of mobile terminal and target location away from From during less than preset distance, the frequency of scanning wireless network signal is tuned up first object rate of scanning.
When the distance detected between the current location of mobile terminal and target location is less than preset distance, say Before bright mobile terminal herein near accessed wireless network, mobile terminal very likely herein connect on Wireless network, tunes up first object rate of scanning by the Current Scan frequency of wireless network signal, and this is first years old Targeted scans frequency be more than this current rate of scanning, in the art this first rate of scanning be one relatively Fast rate of scanning, connects upper wireless network as early as possible, both accelerates to access the speed of wireless network, is accessing again Scanning can be stopped after wireless network and avoid mobile terminal blindness, be scanned continually, slow down shifting The depletion rate of dynamic terminal power, can be set to first object rate of scanning scan one every 10 seconds Secondary.
One example, can be set to 300 meters by this preset distance.
Scan module 503, be additionally operable to when detect between the current location of mobile terminal and target location away from From during more than or equal to preset distance, the frequency of scanning wireless network signal is slowed down to the second targeted scans frequency Rate.
When the distance detected between the current location of mobile terminal and target location more than or equal to preset away from From time, before mobile terminal is described herein near do not accessed wireless network, mobile terminal may be at this Place cannot connect wireless network, therefore the Current Scan frequency of wireless network signal is slowed down to the second target Rate of scanning, this second targeted scans frequency be less than this current rate of scanning, be one the most relatively Rate of scanning slowly, thus, reduces rate of scanning and can be avoided mobile terminal blindness, carries out continually Scanning, slow down the depletion rate of mobile terminal electricity.
Further, now, if mobile terminal is in bright screen state, illustrate that user may operate this shifting Dynamic terminal, if mobile terminal is in puts out screen state, illustrates that user is likely not to have this mobile terminal of operation, moves When dynamic terminal is in bright screen state, putting out screen state compared to being in, user is likely more exigence and connects Upper wireless network.Therefore, the second targeted scans frequency configuration under bright screen state is every 3 points by the present invention Clock run-down, is every 5 minutes run-downs by the second targeted scans frequency configuration put out under screen state.
The device of the scanning wireless network signal that the embodiment of the present invention provides, is determined by the current of mobile terminal Position, the distance between current location and the target location of detection mobile terminal, when mobile terminal being detected When distance between current location and target location meets preset distance condition, by scanning wireless network signal Frequency regulation is to targeted scans frequency, compared to prior art, the present invention by detection mobile terminal locations with The relation of the spacing of target location, and according to the mode of this relation regulation scanning wireless network signal frequency, Avoid mobile terminal blindness, be scanned continually, slow down the depletion rate of mobile terminal electricity, increase Add cruising time.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can To realize by another way.Such as, device embodiment described above is only schematically, example Such as, the division of described module, being only a kind of logic function and divide, actual can have other drawing when realizing Point mode, the most multiple modules or assembly can in conjunction with or be desirably integrated into another system, or some are special Levy and can ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling Or communication connection can be the INDIRECT COUPLING by some interfaces, device or module or communication connection, Ke Yishi Electrically, machinery or other form.
The described module illustrated as separating component can be or may not be physically separate, as The parts that module shows can be or may not be physical module, i.e. may be located at a place, or Can also be distributed on multiple mixed-media network modules mixed-media.Can select therein some or all of according to the actual needs Module realizes the purpose of the present embodiment scheme.
It addition, each functional module in each embodiment of the present invention can be integrated in a processing module, Can also be that modules is individually physically present, it is also possible to two or more modules are integrated in a module In.Above-mentioned integrated module both can realize to use the form of hardware, it would however also be possible to employ software function module Form realizes.
If described integrated module realizes using the form of software function module and as independent production marketing or During use, can be stored in a computer read/write memory medium.Based on such understanding, the present invention The part that the most in other words prior art contributed of technical scheme or this technical scheme whole or Part can embody with the form of software product, and this computer software product is stored in a storage medium In, including some instructions with so that computer equipment (can be personal computer, server, or Person's network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And it is aforesaid Storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various permissible The medium of storage program code.
It should be noted that for aforesaid each method embodiment, in order to simplicity describes, therefore it is all stated For a series of combination of actions, but those skilled in the art should know, the present invention is not by described The restriction of sequence of movement, because according to the present invention, some step can use other order or carry out simultaneously. Secondly, those skilled in the art also should know, embodiment described in this description belongs to be preferable to carry out Example, involved action and module might not be all necessary to the present invention.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, in certain embodiment the most in detail The part stated, may refer to the associated description of other embodiments.
It is more than the description of method and device to scanning wireless network signal provided by the present invention, for this The technical staff in field, according to the thought of the embodiment of the present invention, the most all Will change, to sum up, this specification content should not be construed as limitation of the present invention.

Claims (10)

1. the method scanning wireless network signal, it is characterised in that described method includes:
Determine the current location of mobile terminal;
Detect the distance between current location and the target location of described mobile terminal;
When the distance detected between the current location of described mobile terminal and described target location meet preset away from When condition, the frequency of scanning wireless network signal is regulated to targeted scans frequency.
2. the method for claim 1, it is characterised in that described when described mobile terminal being detected When distance between current location and described target location meets preset distance condition, will scanning wireless network letter Number frequency regulation include to targeted scans frequency:
When the distance detected between the current location of described mobile terminal and described target location less than preset away from From time, by scanning wireless network signal frequency tune up first object rate of scanning;
When the distance detected between the current location of described mobile terminal and described target location is more than or equal to During described preset distance, the frequency of scanning wireless network signal is slowed down to the second targeted scans frequency.
3. the method for claim 1, it is characterised in that the described current location determining mobile terminal Include before:
When described mobile terminal is successfully connected wireless network, record the position of described mobile terminal as described Target location.
4. the method as described in any one of claims 1 to 3, it is characterised in that described determine mobile terminal Current location before include:
Detect the wireless network connection status of described mobile terminal;
When the wireless network described mobile terminal being detected is off, start to scan wireless network letter Number.
5. method as claimed in claim 4, it is characterised in that the described mobile terminal of described detection wireless Include after network connection state:
When the wireless network described mobile terminal being detected is in connection status, stop scanning wireless network letter Number.
6. the device scanning wireless network signal, it is characterised in that described device includes:
Determine module, for determining the current location of mobile terminal;
Detection module, the distance between current location and the target location detecting described mobile terminal;
Scan module, for when detecting between the current location of described mobile terminal and described target location When distance meets preset distance condition, the frequency of scanning wireless network signal is regulated to targeted scans frequency.
7. device as claimed in claim 6, it is characterised in that described scan module, is additionally operable to when detection When distance between the current location and described target location of described mobile terminal is less than preset distance, will sweep The frequency retouching wireless network signal tunes up first object rate of scanning;When working as of described mobile terminal being detected When distance between front position and described target location is more than or equal to preset distance, will scanning wireless network letter Number frequency slow down the second targeted scans frequency.
8. device as claimed in claim 6, it is characterised in that described device also includes:
Logging modle, for when described mobile terminal is successfully connected wireless network, records described mobile terminal Position as described target location.
9. the device as described in any one of claim 6 to 8, it is characterised in that described detection module, also For detecting the wireless network connection status of described mobile terminal;
Described scan module, is additionally operable to when the wireless network described mobile terminal being detected is off, Start to scan wireless network signal.
10. device as claimed in claim 9, it is characterised in that described scan module, is additionally operable to when inspection Measure the wireless network of described mobile terminal when being 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 true CN105872980A (en) 2016-08-17
CN105872980B 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)

Cited By (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
CN106879055A (en) * 2017-01-19 2017-06-20 北京奇虎科技有限公司 A kind of wireless network scan control method and relevant device
CN107613537A (en) * 2017-09-23 2018-01-19 广东欧珀移动通信有限公司 The control method for frequency and Related product of signal quality detection
CN107682825A (en) * 2017-09-23 2018-02-09 广东欧珀移动通信有限公司 Scan frequency control method and Related product
CN107820302A (en) * 2017-11-30 2018-03-20 广东欧珀移动通信有限公司 Mobile terminal wireless local area network scan method and apparatus, computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012023683A1 (en) * 2010-08-20 2012-02-23 엘지전자 주식회사 Method and terminal for searching for an access point
CN102714885A (en) * 2010-01-12 2012-10-03 三星电子株式会社 Method and apparatus for automatically connecting short range wireless network in portable terminal
CN103582076A (en) * 2012-08-07 2014-02-12 中兴通讯股份有限公司 WLAN WifiTrak control method and device
WO2014049950A1 (en) * 2012-09-27 2014-04-03 Nec Corporation Scan control system, method and program
CN104185255A (en) * 2013-05-28 2014-12-03 辉达公司 Using application feedback to optimize plmn search
CN105027634A (en) * 2013-03-12 2015-11-04 高通股份有限公司 Method and apparatus for performing scan operations

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102714885A (en) * 2010-01-12 2012-10-03 三星电子株式会社 Method and apparatus for automatically connecting short range wireless network in portable terminal
WO2012023683A1 (en) * 2010-08-20 2012-02-23 엘지전자 주식회사 Method and terminal for searching for an access point
CN103582076A (en) * 2012-08-07 2014-02-12 中兴通讯股份有限公司 WLAN WifiTrak control method and device
WO2014049950A1 (en) * 2012-09-27 2014-04-03 Nec Corporation Scan control system, method and program
CN105027634A (en) * 2013-03-12 2015-11-04 高通股份有限公司 Method and apparatus for performing scan operations
CN104185255A (en) * 2013-05-28 2014-12-03 辉达公司 Using application feedback to optimize plmn search

Cited By (8)

* 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
CN106879055A (en) * 2017-01-19 2017-06-20 北京奇虎科技有限公司 A kind of wireless network scan control method and relevant device
CN106879055B (en) * 2017-01-19 2020-12-29 北京安云世纪科技有限公司 Wireless network scanning control method and related equipment
CN107613537A (en) * 2017-09-23 2018-01-19 广东欧珀移动通信有限公司 The control method for frequency and Related product of signal quality detection
CN107682825A (en) * 2017-09-23 2018-02-09 广东欧珀移动通信有限公司 Scan frequency control method and Related product
CN107613537B (en) * 2017-09-23 2021-02-26 Oppo广东移动通信有限公司 Frequency control method for signal quality detection and related product
CN107820302A (en) * 2017-11-30 2018-03-20 广东欧珀移动通信有限公司 Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN107820302B (en) * 2017-11-30 2021-01-26 Oppo广东移动通信有限公司 Mobile terminal wireless local area network scanning method and device and computer equipment

Also Published As

Publication number Publication date
CN105872980B (en) 2019-07-26

Similar Documents

Publication Publication Date Title
CN105872980A (en) Method and device for scanning wireless network signal
CN105306682A (en) Method and device for automatically disconnecting network connection
CN106301462A (en) Radio frequency control circuit and mobile terminal
CN105704770A (en) Method and apparatus for intelligent access of wireless network
CN106507289A (en) A kind of cut-in method of wireless network and mobile terminal
CN105430600A (en) Data transmission method and terminal
CN104717125A (en) Graphic code storage method and device
CN106331258A (en) Call methods, call apparatus and call system
CN103338193B (en) Method, system and device for initial media equipment
CN103546632B (en) A kind of quarter-bell ringing method for mobile terminal, device and mobile terminal
CN105892822A (en) Mobile terminal and rapid setting method and device thereof
CN106254791A (en) The startup method of photographic head and mobile terminal
CN105657175A (en) Network acceleration device and method
CN106888495A (en) A kind of method for network access and terminal
CN106961710A (en) A kind of method for network access and terminal
CN105187653A (en) Turning off method and apparatus of network connecting switch
CN106714277A (en) Network connection method and terminal
CN106406947A (en) Method and apparatus for preventing system service process from restarting, and mobile terminal
CN106454975A (en) Hotspot network switching method and terminal equipment
CN106294707A (en) A kind of countdown information output intent and device
CN105744609A (en) Method and device for improving power consumption of mobile terminal
CN105246075A (en) Access point connecting method and device
CN105843361A (en) Method for reducing power consumption while photographing, and mobile terminal
CN105357657A (en) Mesh network construction method and device
CN105828290A (en) Method and device for selecting terminal to process business event

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