Nothing Special   »   [go: up one dir, main page]

CN107896385B - Mobile terminal wireless local area network scan method and apparatus, computer equipment - Google Patents

Mobile terminal wireless local area network scan method and apparatus, computer equipment Download PDF

Info

Publication number
CN107896385B
CN107896385B CN201711244178.0A CN201711244178A CN107896385B CN 107896385 B CN107896385 B CN 107896385B CN 201711244178 A CN201711244178 A CN 201711244178A CN 107896385 B CN107896385 B CN 107896385B
Authority
CN
China
Prior art keywords
base station
mobile terminal
station information
target
wlan
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
CN201711244178.0A
Other languages
Chinese (zh)
Other versions
CN107896385A (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 CN201711244178.0A priority Critical patent/CN107896385B/en
Publication of CN107896385A publication Critical patent/CN107896385A/en
Application granted granted Critical
Publication of CN107896385B publication Critical patent/CN107896385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • 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 Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

This application involves a kind of mobile terminal wireless local area network scan method and apparatus, computer equipment.Mobile terminal wireless local area network scan method, comprising: acquisition can provide the corresponding base station information in all base stations of communication service currently for mobile terminal, form Current base station information list;Default base station database is called, default base station database is used to store the base station information of the corresponding all target BS of at least one available wireless access device;When there is no when the base station information of target BS in default base station database in Current base station information list, enable scanning switchover policy, active scan mode is switched to drive sweep mode to be scanned to WLAN, power consumption can be saved, improve cruising ability, radiation can be reduced, while the experience of user will not be influenced.

Description

Mobile terminal wireless local area network scan method and apparatus, computer equipment
Technical field
This application involves field of communication technology, more particularly to a kind of mobile terminal wireless local area network scan method, apparatus, Computer equipment and computer readable storage medium.
Background technique
WLAN (Wireless Local Network, WLAN), which refers to, to be passed with wireless channel to substitute traditional wire The local area network that defeated medium is constituted.Mobile terminal (work station STA) uses Wireless Fidelity (Wireless Fidelity, Wi- Fi) technology and wireless access point (Access Point, AP) establish connection to access WLAN.Specifically, mobile terminal Built-in Wi-Fi module, to access WLAN, whether mobile terminal is available firstly the need of finding nearby to have by scanning WLAN, scanning mode are divided into two kinds: active scan and drive sweep.Wherein, mobile terminal must first go through scanning machine The relevant information of available access point is made.No matter where user such as goes to go out shopping, goes to work, travels, and is all by same A kind of scanning mode can use access point to obtain, and there is a problem of that power consumption is big, cruise duration is short in the scanning process.
Summary of the invention
The embodiment of the present application provides a kind of mobile terminal wireless local area network scan method, apparatus, computer equipment and calculating Machine readable storage medium storing program for executing can save power consumption, improve cruising ability.
A kind of control method of WLAN switch, comprising:
Acquisition can provide the corresponding base station information in all base stations of communication service currently for mobile terminal, form current base station Information list;
Default base station database is called, the default base station database is for storing at least one available wireless access device The base station information of corresponding all target BS;
When the base station that target BS described in the default base station database is not present in the Current base station information list When information, scanning switchover policy is enabled, active scan mode is switched to drive sweep mode to sweep to WLAN It retouches.
A kind of mobile terminal wireless local area network scan device, comprising:
Module is obtained, can currently provide the corresponding base station letter in all base stations of communication service for mobile terminal for obtaining Breath forms Current base station information list;
Calling module, for calling default base station database, the default base station database can for storing at least one With the base station information of the corresponding all target BS of radio reception device;
Scan control module, for when there is no institutes in the default base station database in the Current base station information list When stating the base station information of target BS, scanning switchover policy is enabled, active scan mode is switched to drive sweep mode and is come pair WLAN is scanned.
A kind of computer equipment, including memory and processor store computer-readable instruction in the memory, institute When stating instruction by processor execution, so that the processor executes the step of above-mentioned mobile terminal wireless local area network scan method Suddenly.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of above-mentioned mobile terminal wireless local area network scan method is realized when row.
Above-mentioned mobile terminal wireless local area network scan method, apparatus, computer equipment and computer readable storage medium, when There is no when the base station information of target BS described in the default base station database in the Current base station information list, then table Bright mobile terminal has had been moved off the overlay area of the WLAN of any available wireless access device, at this point, starting scanning Active scan mode is switched to drive sweep mode to be scanned to WLAN, can save power consumption by switchover policy, Improve cruising ability, it is possible to reduce radiation, while the experience of user will not be influenced.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, 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 application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the working environment schematic diagram of mobile terminal wireless local area network scan method in one embodiment;
Fig. 2 is the flow diagram of mobile terminal wireless local area network scan method in one embodiment;
Fig. 3 is the flow diagram of mobile terminal wireless local area network scan method in another embodiment;
Fig. 4 is the flow diagram of mobile terminal wireless local area network scan method in another embodiment;
Fig. 5 is the flow diagram that default base station database is updated in one embodiment;
Fig. 6 is the overlay area schematic diagram of the WLAN of base station and available wireless access device in one embodiment;
Fig. 7 is the flow diagram of mobile terminal wireless local area network scan method in further embodiment;
Fig. 8 is the structural block diagram of the control device of mobile terminal wireless local area network scan method in one embodiment;
Fig. 9 is the block diagram of the part-structure of mobile phone relevant to computer equipment provided by the embodiments of the present application.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
Fig. 1 is the working environment schematic diagram of mobile terminal wireless local area network scan method in one embodiment.The building ring Border is related to plurality of application scenes, it may for example comprise Universal Mobile Communication System (Universal Mobile Telecommunications System, UMTS), long term evolution (Long Term Evolution, LTE), the whole world it is mobile logical Letter system (Global System for Mobile Communication, GSM) and WLAN etc..As non-limiting example, Following description is related to WLAN communication system, but such introduction is equally applicable to other types of system.As shown in Figure 1, Its working environment is related to mobile terminal 100, cloud server 101, base station 102 and radio reception device (for example, wireless access point Access Point, AP) 103, it can be in communication with each other between mobile terminal 100 and base station 102, each base station 102 can be with cloud Server 101 is in communication with each other, and mobile terminal 100 can also pass through the network of relation and cloud server other than base station 102 101 are communicated, and mobile terminal 100 can also be communicated with radio reception device 103, establish wireless network connection.Into one Step ground, in a wireless communication system, base station 102 receives the reverse link signal from mobile terminal 100.Mobile terminal 100 is logical Often participate in call, information receiving and transmitting and other types of communication.Base station 102 handles received each reverse link signal, And signal is sent to mobile terminal 100 in the form of forward link signals by treated.Optionally, above-mentioned communication process uses Communication channel division mode include but is not limited to frequency division multiple access (frequency division multiple access, FDMA), time division multiple acess (time division multiple access, TDMA) and CDMA (code division Multiple access, CDMA).
As shown in Fig. 2, in one embodiment, providing a kind of mobile terminal wireless local area network scan method, being applied to Has the mobile terminal of mobile communication function, the present embodiment is applied to above-mentioned figure in the mobile terminal wireless local area network scan method The mobile terminal 100 of working environment in 1 illustrates.The control method of WLAN switch specifically includes following step It is rapid:
Step 202: acquisition can provide the corresponding base station information in all base stations of communication service currently for mobile terminal, be formed Current base station information list.
Mobile terminal can carry out information exchange by mobile network and base station at any time, wherein mobile network uses honeycomb Layout.When mobile terminal scanning around WLAN when, can scan can provide communication for current mobile terminal The quantity of the base station information of the base station of service, the base station scanned can be with 1,2 or multiple.
Specifically, base station information has generally comprised mobile country code (Mobile country code, MCC), mobile network Network number (Mobile Network Code, MNC), location area code (location area code, LAC), base station number (Cell Identity, CID) and base station signal strength (Base Station Signal Strength, BSSS) etc..For Each base station, location area code and base station number are all unique, therefore can be with unique identification by obtaining base station information Base station, and can determine the affiliated area of base station, to realize the identification in region.When the present position of mobile terminal is fixed not Become, and the base station information that Base Transmitter goes out is when can cover the location of current mobile terminal region, then it is assumed that the base station can To be interpreted as that the base station of communication service can be provided for mobile terminal.What be will acquire current provides communication service for mobile terminal The corresponding base station information in all base stations form Current base station information list according to base station number or location area code.
Optionally, the base station information that mobile terminal can also will acquire can also be sent to Cloud Server, by cloud service Device identifies base station according to base station information, then returns to recognition result to mobile terminal by Cloud Server, and the present embodiment is to this It is not construed as limiting.
Step 204: calling default base station database, the default base station database is for storing at least one available wireless The base station information of the corresponding all target BS of access device.
The base of the corresponding all target BS of at least one available wireless access device is stored in default base station database It stands information.Wherein, radio reception device can be wireless access point AP, and available wireless access device is that mobile terminal has succeeded Accessed the WLAN of the radio reception device, for example, household can with AP, often be accessed with AP, work unit can AP etc. can be used with AP or other public domains.
When mobile terminal is communicated with an available wireless access device, mobile terminal can automatically record Current ambient The base station information of all target BS of communication service can be provided for mobile terminal, and by the base station information of these target BS Default base station database is stored according to default memory mechanism.
Step 206: when there is no target bases described in the default base station database in the Current base station information list When the base station information stood, scanning switchover policy is enabled, active scan mode is switched to drive sweep mode and is come to wireless local area Net is scanned.
The base station of target BS described in the base station information and default base station database in base station information list that will acquire Information compares, when there is no the base stations of target BS described in default base station database in discovery Current base station information list When information, then show that mobile terminal has had been moved off the overlay area of the WLAN of any available wireless access device, example It such as goes on business, travel, on road on and off duty, when mobile terminal has had been moved off the wireless of any available wireless access device When the overlay area of local area network, active scan mode is switched to drive sweep mode and come to wireless by starting scanning switchover policy Local area network is scanned, and does not interfere with user experience, while can also save power consumption, is improved cruising ability, can also be subtracted Few radiation can shorten the standby time of complete machine to avoid the power consumption for virtually increasing mobile terminal using active scan.
It should be noted that for drive sweep mode, mobile terminal will not active transmission probe request, be exactly passively Beacon frame (Beacon) Lai Faxian network for periodically sending of reception wireless access point.Beacon frame includes wireless access point AP Service set, supporting rate, the MAC Address of wireless access point, support authentication mode, between Encryption Algorithm, beacon frame information Every the information such as channel used.For example, the default cycles that wireless access point sends beacon frame are 100ms, i.e. wireless access point is every 100ms can beacon frame of broadcast transmission.STA is exactly by listening to beacon frame on each channel that it is supported, to know Wireless network existing for surrounding.
It should be noted that mobile terminal actively can successively be sent out on the channel that it is supported for active scan mode Detectable signal is sent, for detecting wireless network existing for surrounding.The detectable signal that mobile terminal is sent is known as probe request (Probe Request) obtains network signal by receiving probe response frame (Probe Response).Probe request is again Two classes can be divided into, one kind is not specified service set (Service Set Identifier, SSID), and one kind is specified clothes Business set identifier.If not having specified services set identifier inside probe request, it is meant that this probe requests thereby is wanted to get surrounding All wireless network signals that can be got, all wireless access point for receiving this broadcast probe request frame can all respond shifting Dynamic terminal.If specifying service set in probe request, it is meant that mobile terminal merely desires to find specific service set, Other wireless networks in addition to specified services set identifier are not needed.After wireless access point receives probe request, only it is found Service set and the service set of oneself in probe request are just to respond mobile terminal in identical situation.
Above-mentioned mobile terminal wireless local area network scan method, when there is no described default in the Current base station information list When the base station information of target BS described in base station database, then show that mobile terminal has had been moved off any available wireless access The overlay area of the WLAN of equipment, at this point, starting scanning switchover policy, is switched to drive sweep for active scan mode Mode is scanned WLAN, can save power consumption, improves cruising ability, it is possible to reduce radiation, while will not Influence the experience of user.
As shown in figure 3, in one embodiment, before the default base station database of the calling, further includes:
Step 302: when mobile terminal is connect with radio reception device, record can provide communication clothes for the mobile terminal The corresponding base station information of all target BS of business.
When mobile terminal is connect with available wireless access device, mobile terminal, which can automatically record Current ambient, to be shifting Dynamic terminal provides the base station information of all target BS of communication service.Wherein, the base station information of target BS includes mobile state Family's code, mobile network code, location area code, base station number and base station signal strength etc..For each base station, position Set region code and base station number all and be it is unique, can be by the way that owning for communication service can be provided for mobile terminal to acquisition The corresponding base station information of target BS is analyzed, and then can determine the affiliated area of base station, to realize to geographic area Positioning.
Step 304: the base station information of all target BS corresponding with the radio reception device is stored in target base It stands in information list, to form the default base station database.
When mobile terminal is connect with an available wireless access device, mobile terminal can automatically record Current ambient can The base station information of all target BS of communication service is provided for mobile terminal.One available wireless access device can correspond to more The base station information of a target BS.That is, the base station of the corresponding all target BS of the available wireless access device can be believed Breath is stored in a target BS information list.The target BS information list and the available wireless access device one are a pair of It answers, the target BS information list can be named with information such as the title of the available wireless access device, unique identifications.
When mobile terminal with multiple available wireless access devices with being successively wirelessly connected respectively, so that it may be formed more A multiple target BS information lists correspondingly with available wireless access device, multiple target information lists of formation can To form default base station database.
It should be noted that the target BS information list can be stored in default base in the form of data packet, file etc. It stands in database, but storage form is not limited to this.
As shown in figure 4, in one embodiment, the record can provide all mesh of communication service for the mobile terminal Before marking the corresponding base station information in base station, further includes:
Step 402: the base station signal strength of the target BS of communication service can be provided for the mobile terminal by obtaining Information.
When obtaining the base station information for the target BS that can provide communication service for mobile terminal, base station can be also obtained Base station signal strength information (Base Station Signal Strength, BSSS) in information.Base station signal strength Information is the signal strength gone out by Base Transmitter that mobile terminal receives.
Step 404: then can be shifting described in record when the base station signal strength information is greater than preset signal strength threshold value Dynamic terminal provides the corresponding base station information in base station of communication service.
It at this time can be mobile whole when mobile terminal accesses available wireless access device due to distance, topography etc. End provide communication service target BS base station information strength information it is not identical, have by force have it is weak.
The base station signal strength information that will acquire is compared with preset signal strength threshold value, only will be greater than the preset signals The corresponding target BS of base station signal strength information of intensity threshold is embodied in target BS information list.And it will be less than or equal to The corresponding target BS of the base station signal strength information of the preset signal strength threshold value is deleted, and default base station database can be improved Accuracy, and then the identification of the peripheral region of overlay area to available wireless access device WLAN can be improved Degree.
As shown in figure 5, in one embodiment, after the formation default base station database, further includes:
Step 502: obtaining the overlay area of the WLAN of the radio reception device.
Each radio reception device is according to the attribute of oneself equipment, and the overlay area for the WLAN being capable of providing is simultaneously It is not identical, as shown in fig. 6, the region within dotted line frame is the overlay area of the WLAN of radio reception device 1.Work as movement When terminal is communicated with the radio reception device 1 foundation, the target BS that communication service can be provided for mobile terminal has n, respectively For base station 1, base station 2 ..., base station (n-1), base station n.
Step 504: when mobile terminal is when the overlay area is mobile, if getting new is that the mobile terminal mentions For the target BS of communication service base station information when, update the corresponding target BS information list of the radio reception device.
Overlay area such as the WLAN of radio reception device 1 is larger, and user's hand-held mobile terminal is in wireless access When moving in the overlay area of the WLAN of equipment 1, the communication connection with the radio reception device 1 can be still kept, this When, movement can obtain it is new be the base station information for the target BS that mobile terminal provides communication service, and will acquire The base station information updating of new the target BS that communication service can be provided for mobile terminal is to the corresponding target of radio reception device In base station information list, this makes it possible to real-time update target BS information lists, promote user experience.
It in conjunction with Fig. 6, can be further understood that: when there is no mesh in default base station database in Current base station information list Mark the base station information of base station.That is, there is no target BS in default base station database to build a station in Current base station information list When information, then it is to be understood that current mobile terminal has had been moved off the covering of the WLAN of available wireless access device Region 1, or can be provided for current mobile terminal the base station of communication service signal coverage areas and no longer available wireless access The overlay area 2 of the WLAN of equipment.It is passively swept at this point it is possible to which the active scan mode that mobile terminal is defaulted is switched to Mode is retouched, power consumption can be saved, cruising ability is improved, radiation can also be reduced, meanwhile, user experience will not be influenced.
It should be noted that can move forward the overlay area 1 of the WLAN of available wireless access device and to work as Dynamic terminal provides the signal coverage areas of base station and the covering for the WLAN of no longer available radio reception device of communication service Cover area 2 is referred to as active scan region, will be referred to as drive sweep region except the region in the active scan region.
As shown in fig. 7, in one embodiment, mobile terminal wireless local area network scan method, comprising:
Step 702: acquisition can provide the corresponding base station information in all base stations of communication service currently for mobile terminal, be formed Current base station information list.
Step 704: calling default base station database, the default base station database is for storing at least one available wireless The base station information of the corresponding all target BS of access device.
Step step 202, step 204 in step 702, step 704 and previous embodiment correspond, no longer superfluous again It states.
Step 706: when the base station information of all base stations in the Current base station information list and the default base station data When the duplicate message of the base station information of target BS described in library reaches preset value, by the scanning mode of the mobile terminal by quilt Dynamic scanning switches back into active scan and is scanned to WLAN.
Described in the base station information of all base stations in the Current base station information list and the default base station database When the duplicate message of the base station information of target BS reaches preset value, it may be considered that mobile terminal has reentered available wireless The signal coverage areas 1 of the WLAN of access device, at this point, mobile terminal to be swept to the scanning mode of Wlan scanning There is drive sweep to switch back into active scan, can quickly and effectively scan accessible WLAN, promotes user's body It tests.
In one embodiment, mobile terminal wireless local area network scan method further includes connecing when using active scan mode When entering to the WLAN, the step of active scan mode is switched to drive sweep mode.
That is, when mobile terminal scans neighbouring, accessible WLAN by active scan mode, and it is mobile whole When end is linked into the WLAN, then the currently used active scan mode of mobile terminal can be switched to drive sweep side Formula.When mobile terminal is connected to network access equipment, then user is to the requirement of real-time for searching for other network access equipments It is just not high, active scan mode is switched to drive sweep mode at this time, power consumption can be saved, increases cruise duration, simultaneously Reduce radiation.
In one embodiment, the scanning frequency of active scan and drive sweep can also be dynamically adjusted according to actual needs Rate.
Specifically, increasing when using active scan mode Wlan scanning and reducing scan frequency, to reduce scanning Period, thus faster scanning arrive available WLAN, improve the Experience Degree of user, movement speed and scan frequency at Inversely prroportional relationship.When using drive sweep mode Wlan scanning, scan frequency is reduced, to increase the scan period, from And save power consumption.
In one embodiment, mobile terminal wireless local area network scan method further includes when the Current base station information list In the duration that keeps there is no the base station information of target BS described in the default base station database be more than preset duration step Suddenly.
When keeping duration to be greater than preset duration, then scanning switchover policy is enabled, active scan mode is switched to passively Scanning mode is scanned WLAN, in this way can switch to avoid " table tennis ".
As shown in figure 8, in one embodiment, providing a kind of mobile terminal wireless local area network scan device, comprising:
Module 810 is obtained, can currently provide the corresponding base station in all base stations of communication service for mobile terminal for obtaining Information forms Current base station information list;
Calling module 820, for calling default base station database, the default base station database is for storing at least one The base station information of the corresponding all target BS of available wireless access device;
Scan control module 830, for when there is no the default base station databases in the Current base station information list Described in target BS base station information when, enable scanning switchover policy, active scan mode is switched to drive sweep mode To be scanned to WLAN.
Above-mentioned mobile terminal wireless local area network scan device, scan control module 830 work as the Current base station information list In there is no when the base station information of target BS described in the default base station database, then show that mobile terminal has been moved off The overlay area of the WLAN of any available wireless access device, at this point, the starting scanning switching plan of scan control module 830 Slightly, active scan mode is switched to drive sweep mode to be scanned to WLAN, power consumption can be saved, improved continuous Boat ability, it is possible to reduce radiation, while the experience of user will not be influenced.
In one embodiment, mobile terminal wireless local area network scan device, further includes:
Module is constructed, for when mobile terminal is connect with radio reception device, record can to provide for the mobile terminal The corresponding base station information of all target BS of communication service;By all target BS corresponding with the radio reception device Base station information is stored in target BS information list, to form the default base station database.
Module is constructed, is also used to obtain the base station letter for the target BS that communication service can be provided for the mobile terminal Number strength information;It then can be mobile whole described in record when the base station signal strength information is greater than preset signal strength threshold value End provides the corresponding base station information in base station of communication service.
In one embodiment, mobile terminal wireless local area network scan device, further includes:
Update module, the overlay area of the WLAN for obtaining the radio reception device;When mobile terminal exists When the overlay area is mobile, if getting new be that the base station of the target BS that the mobile terminal provides communication service is believed When breath, the corresponding target BS information list of the radio reception device is updated.
In one embodiment, scan control module is also used to when all base stations in the Current base station information list It, will when the duplicate message of the base station information of target BS described in base station information and the default base station database reaches preset value The scanning mode of the mobile terminal switches back into active scan by drive sweep and is scanned to WLAN.
Described in the base station information of all base stations in the Current base station information list and the default base station database When the duplicate message of the base station information of target BS reaches preset value, it may be considered that mobile terminal has reentered available wireless The signal coverage areas 1 of the WLAN of access device, at this point, mobile terminal to be swept to the scanning mode of Wlan scanning There is drive sweep to switch back into active scan, can quickly and effectively scan accessible WLAN, promotes user's body It tests.
In one embodiment, mobile terminal wireless local area network scan device, further includes:
Switching module, for when using active scan mode be linked into the WLAN when, by the active scan Mode is switched to drive sweep mode.
When mobile terminal scans neighbouring, accessible WLAN by active scan mode, and mobile terminal connects When entering to the WLAN, then the currently used active scan mode of mobile terminal can be switched to drive sweep mode. When mobile terminal is connected to network access equipment, then user is not to searching for the requirement of real-time of other network access equipments also just not Active scan mode is switched to drive sweep mode at this time by Gao Liao, can save power consumption, is increased cruise duration, is reduced simultaneously Radiation.
In one embodiment, mobile terminal wireless local area network scan device, further includes:
Frequency adjustment module, for increasing scan frequency when using active scan mode Wlan scanning;When adopting When with drive sweep mode Wlan scanning, scan frequency is reduced.
When using active scan mode Wlan scanning, increases and reduce scan frequency, to reduce the scan period, from And available WLAN is scanned faster, the Experience Degree of user is improved, movement speed is inversely proportional with scan frequency Relationship.When using drive sweep mode Wlan scanning, scan frequency is reduced, to increase the scan period, to save Power consumption.
The division of modules is only used for for example, in other realities in above-mentioned mobile terminal wireless local area network scan device It applies in example, mobile terminal wireless local area network scan device can be divided into different modules as required, to complete above-mentioned movement All or part of function of terminal wireless local area network scan device.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When, so that the processor executes following steps:
Acquisition can provide the corresponding base station information in all base stations of communication service currently for mobile terminal, form current base station Information list;
Default base station database is called, the default base station database is for storing at least one available wireless access device The base station information of corresponding all target BS;
When the base station that target BS described in the default base station database is not present in the Current base station information list When information, scanning switchover policy is enabled, active scan mode is switched to drive sweep mode to sweep to WLAN It retouches.
In above-mentioned computer readable storage medium computer program (instruction) when executed, when the Current base station information In list there is no when the base station information of target BS described in the default base station database, then show mobile terminal from The overlay area of the WLAN of any available wireless access device is opened, at this point, starting scanning switchover policy, will actively sweep The mode of retouching is switched to drive sweep mode to be scanned to WLAN, can save power consumption, improves cruising ability, can be with Radiation is reduced, while the experience of user will not be influenced.
The embodiment of the present application also provides a kind of computer program products.A kind of computer program product comprising instruction, When run on a computer, so that computer executes the control of the switch of WLAN described in the various embodiments described above Method.
Fig. 9 is the block diagram of the part-structure of mobile phone relevant to mobile terminal provided by the embodiments of the present application.With reference to Fig. 9, Mobile phone includes: radio frequency (Radio Frequency, RF) circuit 99, memory 920, input unit 930, display unit 940, passes Sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, WiFi) module 970, processor 980, Yi Ji electricity The components such as source 990.It, can be with it will be understood by those skilled in the art that handset structure shown in Fig. 9 does not constitute the restriction to mobile phone Including perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 910 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 980;The data of uplink can also be sent to base station.In general, RF circuit include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 910 can also be communicated with network and other equipment by wireless communication.Above-mentioned channel radio Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in letter Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..
Memory 920 can be used for storing software program and module, and processor 980 is stored in memory 920 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 920 can mainly include Program storage area and data storage area, wherein program storage area can application journey needed for storage program area, at least one function Sequence (such as application program, application program of image player function of sound-playing function etc.) etc.;Data storage area can store root Created data (such as audio data, address list etc.) etc. are used according to mobile phone.In addition, memory 920 may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input unit 930 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 900 And the related key signals input of function control.Specifically, input unit 930 may include touch panel 931 and other inputs Equipment 932.Touch panel 931, alternatively referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the operation of any suitable object or attachment such as finger, stylus on touch panel 931 or near touch panel 931), And corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 931 may include touching inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation Bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 980, and can receive order that processor 980 is sent and be executed.In addition, Touch panel 931 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 931, input unit 930 can also include other input equipments 932.Specifically, other input equipments 932 may include but not It is limited to one of physical keyboard, function key (such as volume control button, switch key etc.) etc. or a variety of.
Display unit 940 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display panel 941.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 941.In one embodiment, touch panel 931 can cover display panel 941, when touch panel 931 is examined After measuring touch operation on it or nearby, processor 980 is sent to determine the type of touch event, is followed by subsequent processing device 980 provide corresponding visual output according to the type of touch event on display panel 941.Although in Fig. 9, touch panel 931 and display panel 941 are the input and input function for realizing mobile phone as two independent components, but in certain implementations In example, can be integrated by touch panel 931 and display panel 941 and that realizes mobile phone output and input function.
Mobile phone 900 may also include at least one sensor 950, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 941, and proximity sensor can close display panel when mobile phone is moved in one's ear 941 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared sensor etc..
Voicefrequency circuit 960, loudspeaker 961 and microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 961, be converted to sound by loudspeaker 961 by road 960 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 It is changed to audio data, then by after the processing of audio data output processor 980, another mobile phone can be sent to through RF circuit 910, or Person exports audio data to memory 920 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 970 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 9 is shown WiFi module 970, but it is understood that, and it is not belonging to must be configured into for mobile phone 900, it can according to need and omit.
Processor 980 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 920, and call and be stored in memory 920 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, it handles Device 980 may include one or more processing units.In one embodiment, processor 980 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 980.
Mobile phone 900 further includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 980 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
In one embodiment, mobile phone 900 can also include camera, bluetooth module etc..
In the embodiment of the present application, processor 980 included by the mobile terminal executes the calculating of storage on a memory It is performed the steps of when machine program
Acquisition can provide the corresponding base station information in all base stations of communication service currently for mobile terminal, form current base station Information list;
Default base station database is called, the default base station database is for storing at least one available wireless access device The base station information of corresponding all target BS;
When the base station that target BS described in the default base station database is not present in the Current base station information list When information, scanning switchover policy is enabled, active scan mode is switched to drive sweep mode to sweep to WLAN It retouches.
When processor 980 included by mobile terminal executes the computer program of storage on a memory, when described current It is mobile whole there is no when the base station information of target BS described in the default base station database, then showing in base station information list End has had been moved off the overlay area of the WLAN of any available wireless access device, at this point, starting scanning switchover policy, Active scan mode is switched to drive sweep mode to be scanned to WLAN, power consumption can be saved, improves continuation of the journey Ability, it is possible to reduce radiation, while the experience of user will not be influenced.
The embodiment of the present application also provides a kind of computer program product comprising instruction, when run on a computer, So that computer executes following steps:
Acquisition can provide the corresponding base station information in all base stations of communication service currently for mobile terminal, form current base station Information list;
Default base station database is called, the default base station database is for storing at least one available wireless access device The base station information of corresponding all target BS;
When the base station that target BS described in the default base station database is not present in the Current base station information list When information, scanning switchover policy is enabled, active scan mode is switched to drive sweep mode to sweep to WLAN It retouches.
Computer program product comprising instruction, when run on a computer, when the Current base station information list In there is no when the base station information of target BS described in the default base station database, then show that mobile terminal has been moved off The overlay area of the WLAN of any available wireless access device, at this point, starting scanning switchover policy, by active scan side Formula is switched to drive sweep mode to be scanned to WLAN, can save power consumption, improves cruising ability, it is possible to reduce Radiation, while the experience of user will not be influenced.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of mobile terminal wireless local area network scan method characterized by comprising
Acquisition can provide the corresponding base station information in all base stations of communication service currently for mobile terminal, form Current base station information List;
Default base station database is called, the default base station database is corresponding for storing at least one available wireless access device All target BS base station information;The available wireless access device refers to the mobile terminal successful access mistake The WLAN of the radio reception device;
When the base station information that target BS described in the default base station database is not present in the Current base station information list When, scanning switchover policy is enabled, active scan mode is switched to drive sweep mode to be scanned to WLAN.
2. the method according to claim 1, wherein before the default base station database of the calling, further includes:
When mobile terminal is connect with radio reception device, record can provide all targets of communication service for the mobile terminal The corresponding base station information in base station;
The base station information of all target BS corresponding with the radio reception device is stored in target BS information list, To form the default base station database.
3. according to the method described in claim 2, it is characterized in that, the base station information is believed including at least base station signal strength Breath;
Before the record can provide the corresponding base station information of all target BS of communication service for the mobile terminal, also wrap It includes:
The base station signal strength information of the target BS of communication service can be provided for the mobile terminal by obtaining;
When the base station signal strength information is greater than preset signal strength threshold value, then can be provided described in record for mobile terminal logical The corresponding base station information in the base station of telecommunications services.
4. according to the method described in claim 2, it is characterized in that, after the formation default base station database, further includes:
Obtain the overlay area of the WLAN of the radio reception device;
When mobile terminal is when the overlay area is mobile, if getting new is that the mobile terminal provides communication service When the base station information of target BS, the corresponding target BS information list of the radio reception device is updated.
5. the method according to claim 1, wherein further include:
When the base station information of all base stations in the Current base station information list and target described in the default base station database When the duplicate message of the base station information of base station reaches preset value, the scanning mode of the mobile terminal is switched back by drive sweep Active scan is scanned WLAN.
6. according to the method described in claim 5, it is characterized by further comprising:
When being linked into the WLAN using active scan mode, the active scan mode is switched to drive sweep Mode.
7. the method according to claim 1, wherein further include:
When using active scan mode Wlan scanning, increase scan frequency;
When using drive sweep mode Wlan scanning, scan frequency is reduced.
8. a kind of mobile terminal wireless local area network scan device characterized by comprising
Module is obtained, can currently provide the corresponding base station information in all base stations of communication service, shape for mobile terminal for obtaining At Current base station information list;
Calling module, for calling default base station database, the default base station database is for storing at least one available nothing The base station information of the corresponding all target BS of line access device;The available wireless access device refers to the mobile terminal Successful access crosses the WLAN of the radio reception device;
Scan control module, for when there is no mesh described in the default base station database in the Current base station information list When marking the base station information of base station, scanning switchover policy is enabled, active scan mode is switched to drive sweep mode and is come to wireless Local area network is scanned.
9. a kind of computer equipment, including memory and processor, computer-readable instruction is stored in the memory, it is described Instruction by the processor execute when so that the processor execute as described in any one of claims 1 to 7 mobile terminal without The step of line local area network scan method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program It is realized when being executed by processor as described in any one of claims 1 to 7 the step of mobile terminal wireless local area network scan method.
CN201711244178.0A 2017-11-30 2017-11-30 Mobile terminal wireless local area network scan method and apparatus, computer equipment Active CN107896385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711244178.0A CN107896385B (en) 2017-11-30 2017-11-30 Mobile terminal wireless local area network scan method and apparatus, computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711244178.0A CN107896385B (en) 2017-11-30 2017-11-30 Mobile terminal wireless local area network scan method and apparatus, computer equipment

Publications (2)

Publication Number Publication Date
CN107896385A CN107896385A (en) 2018-04-10
CN107896385B true CN107896385B (en) 2019-10-18

Family

ID=61806525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711244178.0A Active CN107896385B (en) 2017-11-30 2017-11-30 Mobile terminal wireless local area network scan method and apparatus, computer equipment

Country Status (1)

Country Link
CN (1) CN107896385B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379777A (en) * 2018-11-30 2019-02-22 努比亚技术有限公司 A kind of network search method, terminal and computer readable storage medium
CN113068245B (en) * 2020-01-02 2023-02-03 Oppo广东移动通信有限公司 Multi-antenna network searching method and device, storage medium and electronic equipment
CN112135302B (en) * 2020-09-02 2023-08-01 深圳市艾伯通信有限公司 Control method and device for base station topology information and computer readable storage medium
CN114189798A (en) * 2020-09-15 2022-03-15 青岛海信移动通信技术股份有限公司 Method and equipment for determining scanning interval of Wireless Local Area Network (WLAN) network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101491144A (en) * 2006-07-14 2009-07-22 高通股份有限公司 WLAN system scanning and selection
CN103843410A (en) * 2011-07-22 2014-06-04 诺基亚公司 Idle mode access through assisted discovery
CN106063306A (en) * 2014-03-03 2016-10-26 三菱电机株式会社 Wireless communication system and wireless communication device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101491144A (en) * 2006-07-14 2009-07-22 高通股份有限公司 WLAN system scanning and selection
CN103843410A (en) * 2011-07-22 2014-06-04 诺基亚公司 Idle mode access through assisted discovery
CN106063306A (en) * 2014-03-03 2016-10-26 三菱电机株式会社 Wireless communication system and wireless communication device

Also Published As

Publication number Publication date
CN107896385A (en) 2018-04-10

Similar Documents

Publication Publication Date Title
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
CN108040357B (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN107896385B (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
US9426724B2 (en) Apparatus, system and method of controlling wireless scanning
CN107820302B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
CN107949040B (en) Wireless local area network scanning method and device, computer equipment and storage medium
CN105898839B (en) Communication network cut-in method and device
CN107820301B (en) Control method, device, terminal and storage medium of wireless local area network switch
CN107820303A (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN107846723B (en) Wireless local area network scanning method and device, computer equipment and storage medium
CN108023628B (en) Terminal equipment mobility processing method, terminal equipment and base station
CN109756924A (en) A kind of wave beam history information transmittance method, terminal and the network equipment
CN107969025B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
CN106993327B (en) Network locating method, device and computer equipment
US10708882B2 (en) UE camping method and apparatus, paging method and apparatus, and storage medium
CN105704700A (en) Communication network access method and device
CN105873103A (en) Communication network access device and user equipment
CN108012304B (en) Wireless local area network scanning method and device, computer equipment and storage medium
CN106028316A (en) Network search method and device for international roaming
CN107896381B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
CN109862607B (en) Network recommendation method and mobile terminal
CN105744602A (en) Communication network access method and device
CN105657792A (en) Communication network access method and device
CN105704788A (en) Communication network access method and user equipment
CN106851784B (en) network scanning method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
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.

GR01 Patent grant
GR01 Patent grant