CN107820301A - Control method, device, terminal and the storage medium of WLAN switch - Google Patents

Control method, device, terminal and the storage medium of WLAN switch Download PDF

Info

Publication number
CN107820301A
CN107820301A CN201711240759.7A CN201711240759A CN107820301A CN 107820301 A CN107820301 A CN 107820301A CN 201711240759 A CN201711240759 A CN 201711240759A CN 107820301 A CN107820301 A CN 107820301A
Authority
CN
China
Prior art keywords
base station
station information
information list
terminal
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.)
Granted
Application number
CN201711240759.7A
Other languages
Chinese (zh)
Other versions
CN107820301B (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 CN201711240759.7A priority Critical patent/CN107820301B/en
Publication of CN107820301A publication Critical patent/CN107820301A/en
Application granted granted Critical
Publication of CN107820301B publication Critical patent/CN107820301B/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
    • 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
    • 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/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application is related to a kind of control method, device, terminal and the storage medium of WLAN switch.This method includes:Acquisition can currently provide base station information corresponding to all base stations of communication service for the terminal, form Current base station information list;By the Current base station information list compared with the base station information list prestored, judge in the Current base station information list with the presence or absence of the base station information in the base station information list prestored;Wherein each corresponding available wireless access points of the base station information list prestored;If it is not, the WLAN switch is then controlled to close.By the above method, automatic after away from available wireless access points WLAN switch can be closed, reduce the power consumption of terminal, make the standby time of terminal increase, and improve Consumer's Experience.

Description

Control method, device, terminal and the storage medium of WLAN switch
Technical field
The application is related to communication technical field, more particularly to a kind of control method of WLAN switch, device, end End and storage medium.
Background technology
With the development of mobile communications network, WLAN (Wireless Local Area Networks, WLAN) As a kind of access is convenient, speed is fast, relative low price local communication network has widely been disposed and used.With The WLAN that family needs manually to open in terminal is switched to enable the terminals to connect AP (Wireless Access Point, nothing Line access points).Terminal can be regularly scanned after WLAN, which is switched, to be opened, and searching can use AP.When user leaves available AP Effective coverage range when, such as go to go out shopping, go to work, travel, if manual-lock WLAN is not switched user, terminal can one Directly periodically transmission signal is scanned, and scanning process can cause the power consumption of terminal to increase, and standby time shortens.
The content of the invention
The embodiment of the present application provides a kind of control method, device, terminal and the storage medium of WLAN switch, can WLAN switches are automatically turned on or closed, reduce the power consumption of terminal.
A kind of control method of WLAN switch, applied to the terminal for possessing mobile communication function, with described in control WLAN switch in terminal, methods described include:
Acquisition can currently provide base station information corresponding to all base stations of communication service for the terminal, form current base station Information list;
By the Current base station information list compared with the base station information list prestored, the current base is judged Stand in information list with the presence or absence of the base station information in the base station information list prestored;It is wherein each described to deposit in advance The corresponding available wireless access points of the base station information list of storage;
If it is not, the WLAN switch is then controlled to close;
If so, then WLAN switchs according to preset switches policy control.
A kind of control device of WLAN switch, it is characterised in that described device includes:
Data obtaining module, currently base station corresponding to all base stations of communication service can be provided for the terminal for obtaining Information, form Current base station information list;
Information comparison module, for the Current base station information list to be compared with the base station information list prestored Compared with judging in the Current base station information list with the presence or absence of the base station information in the base station information list prestored; Wherein each corresponding available wireless access points of the base station information list prestored;
Switch control module, for controlling the WLAN switch to close, it is additionally operable to according to preset switches strategy control Make the WLAN switch.
A kind of terminal, including memory and processor, computer-readable instruction, the instruction are stored in the memory During by the computing device so that the step of method described in the computing device.
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor The step of described method is realized during row.
Control method, device, terminal and the storage medium of above-mentioned WLAN switch, can be the terminal by obtaining Base station information corresponding to all base stations of communication service is provided, the Current base station information list and the base station prestored are believed Breath list is compared, if the base station letter being not present in Current base station information list in the base station information list prestored Breath, then the WLAN switch is controlled to close.Wireless office can be closed automatically after away from available wireless access points Domain net switch, reduces the power consumption of terminal, makes the standby time of terminal increase, and improve Consumer's Experience.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of application, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the working environment schematic diagram of the control method that WLAN switchs in one embodiment;
Fig. 2 is the internal structure schematic diagram of terminal in one embodiment;
Fig. 3 is the internal structure schematic diagram of server in one embodiment;
Fig. 4 is the schematic flow sheet of the control method that WLAN switchs in one embodiment;
Fig. 5 is the schematic flow sheet of the control method that WLAN switchs in another embodiment;
Fig. 6 is the schematic flow sheet of the control method that WLAN switchs in another embodiment;
Fig. 7 is the schematic flow sheet of the control method that WLAN switchs in another embodiment;
Fig. 8 is base station and AP signal coverage areas schematic diagram in one embodiment;
Fig. 9 is the structured flowchart of the control device that WLAN switchs in one embodiment;
Figure 10 is the block diagram of the part-structure of the mobile phone related to the terminal of the embodiment of the present application offer.
Embodiment
In order that the object, technical solution and advantage of the application are more clearly understood, it is right below in conjunction with drawings and Examples The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, and It is not used in restriction the application.
Fig. 1 is the working environment schematic diagram of the control method that WLAN switchs in one embodiment.The working environment It is related to plurality of application scenes, it may for example comprise UMTS (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 systems, but such teaching is equally applicable to other types of system.As shown in figure 1, Its working environment is related to intelligent terminal 100, cloud server 101, base station 102 and AP (wireless access points) 103, and intelligence is eventually It can be in communication with each other between end 100 and base station 102, each base station 102 can be in communication with each other with cloud server 101, intelligent terminal 100 can also be communicated by the network of relation in addition to base station 102 with cloud server 101, and intelligent terminal 100 may be used also To be communicated with AP 103, wireless network connection is established.Further, in a wireless communication system, base station 102 receives and come from The reverse link signal of intelligent terminal 100.Intelligent terminal 100 generally participates in call, information receiving and transmitting and other types of communication.Base 102 pairs of each reverse link signals received of standing are handled, and the signal after processing is sent out in the form of forward link signals Deliver to intelligent terminal 100.Alternatively, the communication channel dividing mode that above-mentioned communication process uses includes 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).
Intelligent terminal 100 can be communicated in application process with base station 102, received and come from the transmission of base station 102 Base station information.The invention relates to be whether the base station information that is received to intelligent terminal 100 is to be recorded in AP 103 Whether the mode that the base station information under catalogue is identified, as identification intelligent terminal 100 are under the catalogues of AP 103 what is stored Scheme in the coverage of base station.Whether the base station information received to intelligent terminal 100 is to be recorded under the catalogues of AP 103 Base station information, this identification process can carry out in intelligent terminal 100, server 101 can also carry out beyond the clouds.
Fig. 2 is the internal structure schematic diagram of terminal in one embodiment.As shown in Fig. 2 the terminal is including total by system Processor, memory and the network interface of line connection.Wherein, the processor is used to provide calculating and control ability, and support is whole The operation of terminal.Memory is used for data storage, program etc., at least one computer program is stored on memory, the computer Program can be executed by processor, to realize the control of the WLAN switch suitable for terminal provided in the embodiment of the present application Method.Memory may include the non-volatile memories such as magnetic disc, CD, read-only memory (Read-Only Memory, ROM) Medium, or random access memory (Random-Access-Memory, RAM) etc..For example, in one embodiment, memory Including non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with operating system and computer program.Should Computer program can be performed by processor, for realizing that a kind of WLAN that following each embodiment is provided switchs Control method.Built-in storage provides the operation of cache for the operating system computer program in non-volatile memory medium Environment.Network interface can be Ethernet card or wireless network card etc., for being communicated with external equipment.Those skilled in the art It is appreciated that the block diagram of the structure shown in Fig. 2, the only part-structure related to application scheme, is not formed to this The restriction for the terminal that application scheme is applied thereon, specific terminal can include than more or less portions shown in figure Part, either combine some parts or arranged with different parts.The terminal can be mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, selling mobile terminal), car Carry computer, Wearable etc..
Fig. 3 is the internal structure schematic diagram of server (or high in the clouds etc.) in one embodiment.As shown in figure 3, the server Including processor, non-volatile memory medium, built-in storage and the network interface connected by system bus.Wherein, the processing Device is used to provide calculating and control ability, supports the operation of whole computer equipment.Memory is used for data storage, program etc.. Memory may include the non-volatile memory mediums such as magnetic disc, CD, read-only memory (Read-Only Memory, ROM), Or random access memory (Random-Access-Memory, RAM) etc..For example, in one embodiment, memory includes non- Volatile storage medium and built-in storage.Non-volatile memory medium is stored with operating system and is stored with for realizing and this The data for the control method correlation that the WLAN suitable for computer equipment provided in application embodiment switchs.Memory storage Device provides slow at a high speed for the operating system in non-volatile memory medium and suitable for the data processing method of computer equipment The running environment deposited.Network interface can be Ethernet card or wireless network card etc., for being led to the computer equipment of outside Letter.Server can with independent server either multiple server groups into server cluster realize.Art technology Personnel are appreciated that the structure shown in Fig. 3, and only the block diagram of the part-structure related to application scheme, is not formed The restriction for the server being applied thereon to application scheme, specific server can include than shown in figure more or more Few part, either combine some parts or arranged with different parts.
As shown in figure 4, in one embodiment, there is provided a kind of control method of WLAN switch, applied to tool The terminal of standby mobile communication function, to control the WLAN in the terminal to switch, the present embodiment is with the WLAN The intelligent terminal 100 that the control method of switch is applied to the working environment in above-mentioned Fig. 1 comes for example, intelligent terminal 100 can To be mobile terminal.The control method of WLAN switch specifically comprises the following steps:
Step 402:Acquisition can currently provide base station information corresponding to all base stations of communication service for the terminal, be formed Current base station information list.
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..Example Such as, Chinese MCC is 460, and the MNC of China Mobile is 0, the MNC of CHINAUNICOM is 1, the MNC of China Telecom is 2.For each Individual base station, its location area code and base station number are all unique, thus by obtain base station information can with unique identification base station, And it can determine the affiliated area of base station.When mobile terminal is in the signal cover of base station, mobile terminal can Communicated with base station, base station now is the base station that communication service can be provided for terminal.
In one embodiment, mobile terminal obtains the base station information of surrounding automatically.It is mobile whole after the base station information of acquisition End base station can be identified according to base station information to determine the band of position that mobile terminal is presently in, in other embodiment In, the base station information of acquisition can also be sent to Cloud Server, and base station is identified according to base station information by Cloud Server, Recognition result is returned to by Cloud Server again to be not construed as limiting this to mobile terminal, the present embodiment.
Step 404:By the Current base station information list compared with the base station information list prestored, institute is judged State in Current base station information list with the presence or absence of the base station information in the base station information list prestored;If it is not, then hold Row step 406;If so, then perform step 408.
Mobile terminal prestores a series of base station informations.Wherein, after mobile terminal is connected with wireless access points, In the wireless access points coverage, the base station information that can be received is stored to the accessing wirelessly and accessed by mobile terminal Under base station information list corresponding to point, wherein, each corresponding available wireless of the base station information list prestored is visited Ask access point.By the Current base station information list compared with the base station information list prestored, it can determine whether mobile whole Hold whether the base station information currently obtained is the base station information being recorded under the base station information list prestored, that is, pass through identification The base station information of acquisition for mobile terminal judges whether mobile terminal leaves or approached attachable wireless access points area Domain.
Step 406:The WLAN switch is controlled to close.
Specifically, when in the base station information list prestored described in being not present in the Current base station information list of acquisition During base station information, i.e., now mobile terminal has had moved away from the coverage of available wireless access points, now described in detection The state of WLAN switch, if now WLAN switch is in opening, closes the WLAN and open Close.
Step 408:Switched according to WLAN described in preset switches policy control.
In one embodiment, when the base of the Current base station information list and the base station information list prestored When information of standing same number is more than present count value, the WLAN switch is controlled to open.
Specifically, when the base in the base station information list prestored described in existing in the Current base station information list of acquisition Stand information, and the base station information same number of Current base station information list and the base station information list prestored is more than During present count value, such as identical with the base station information of the base station information list prestored of Current base station information list Number is more than 3, that is to say and at least three in Current base station information list be present and prestore identical base station in information list. It then can determine whether that now mobile terminal already close to the coverage of available wireless access points, now detects the wireless office The state of domain net switch, if now WLAN switch is closed, open the WLAN switch.
The control method of above-mentioned WLAN switch, all bases of communication service can be provided for the terminal by obtaining Base station information corresponding to standing, by the Current base station information list compared with the base station information list prestored, if working as The base station information in the base station information list prestored is not present in preceding base station information list, then controls the wireless office Domain net switch is closed.Automatic after away from available wireless access points WLAN switch can be closed, reduce terminal Power consumption, make the standby time of terminal increase, and improve Consumer's Experience.
As shown in figure 5, in one embodiment, all base stations that can provide communication service for the terminal in acquisition are corresponding Base station information before, the control method of WLAN switch also includes the step of prestoring base station information list, bag Include:
Step 502:When terminal is connected with wireless access points, record can provide the institute of communication service for the terminal There is base station information corresponding to base station.
Wherein, mobile network's generally use cellular layout, multiple service available shiftings be there may be in a location point Dynamic base station.In the range of a wireless access points cover, multiple provided for the terminal usually can be provided and led to Base station information corresponding to all base stations of telecommunications services.
Step 504:The base station information is stored into base station information list corresponding to the wireless access points.
In actual applications, after user opens WLAN functions, available focus nearby is scanned, focus is connected and inputs close Code, to connect wlan network.After mobile terminal is connected with wireless access points, the nothing is established under default store path The storage catalogue of line access points, base station information list is stored with the storage catalogue.
In one embodiment, when mobile terminal is connected to an AP, mobile terminal records Current ambient automatically can The information of all base stations of service is provided, and these base station informations are stored under the catalogue of the AP.When mobile terminal is in AP institutes When overlay area is moved, using the teaching of the invention it is possible to provide the mobile base station of service may change, and now believe all base stations received Breath is recorded under the AP catalogues, i.e., all mobile base station letters that can provide service in AP institutes overlay area are saved under the catalogue Breath.
In one embodiment, when multiple available wireless access points be present, being sequentially connected the available wireless and visiting Access point is asked, forms base station information list corresponding to multiple available wireless access points.
In one embodiment, the base station information comprises at least base station signal strength, and the record can be the terminal Before base station information corresponding to all base stations of communication service is provided, in addition to:Communication service can be provided described in detection for terminal Base station signal intensity, can be terminal described in record if the signal intensity of the base station is more than preset signal strength threshold value Base station information corresponding to the base station of communication service is provided.
Step 506:Obtain the overlay area of the WLAN of the wireless access points.
After mobile terminal is connected with wireless access points, WLAN, the overlay area of WLAN are formed The signal radiation scope of the WLAN is referred to, it is some to ambient radiation typically centered on wireless access points Distance.
Step 508:When the terminal moves in the overlay area, new provided if getting for the terminal Corresponding to the base station of communication service during base station information, base station information list corresponding to the wireless access points is updated.
In one embodiment, when mobile terminal is connected to AP, mobile terminal is persistently to current service available base The base station information under the AP catalogues is stood and is stored in be compared, if finding to there is new service available base station to add, from Dynamic renewal is arrived under the AP catalogues, such as when there is in AP coverages new base station, base station corresponding to the new base station is believed Breath can be recorded under AP catalogues.
In one embodiment, as shown in figure 8, being base station and AP signal coverage areas schematic diagram, wherein broken circle with Inner region is AP signal coverage areas, and the overlay area for having the mobile base station of common factor with AP signal coverage areas is opened automatically for WLAN Region is opened, region is closed in region in addition automatically for WLAN.Because mobile terminal all carries out this information friendship with mobile base station at any time Mutually, therefore mobile terminal can judge whether close to or far away from available AP position according to the base station information obtained in real time, And then realize automatic switch WLAN function.
The control method for the WLAN switch that the present embodiment provides, the wireless visit of base station information can be stored by establishing Ask the catalogue of access point, and new base station information corresponding to all base stations of communication service is provided for the terminal getting When, the base station information stored under the storage catalogue of the wireless access points is updated, is added by identifying that base station information determines The accuracy in wireless access points region, mobile terminal is set to automatically turn on WLAN when close to WAP Switch, WLAN switch can be closed automatically after away from WAP.
As shown in fig. 6, in one embodiment, a kind of control method of WLAN switch is additionally provided, this is wireless The control method of local area network switch specifically comprises the following steps:
Step 602:Acquisition for mobile terminal base station information.
Step 604:Judge whether include the base station under available AP catalogues in current service available base station, if so, Then perform the operation of step 610;If it is not, then perform step 606.
Step 606:Detect whether current WLAN is in opening, if so, then performing the operation of step 608;If it is not, then Perform step 602.
Step 608:Close WLAN.
Step 610:Open WLAN.
In the present embodiment, when mobile terminal have left AP catalogues it is lower store base station coverage after, mobile terminal It is automatic to close WLAN;After mobile terminal has reentered the coverage of any storage base station under AP catalogues, then automatically turn on WLAN;Circulate according to this.WLAN automatic switch is realized by obtaining base station information, saves the WLAN of mobile terminal without available The power consumption scanned during AP, and reduce the radiation to human body.
As shown in fig. 7, in one embodiment, a kind of control method of WLAN switch is additionally provided, this is wireless The control method of local area network switch specifically comprises the following steps:
Step 702:When receive instruction is switched on to WLAN when, open WLAN switch.
Wherein, after the WLAN switch is opened, mobile terminal detects the connection status of wireless network, if inspection Measure the wireless network to be connected with new wireless access points, then perform the wireless access points established and connected Storage catalogue the step of, in the coverage of new wireless access points, the base station information of acquisition is stored new to this Wireless access points storage catalogue under.So mobile terminal can be according to the region of new wireless wireless access points Information switchs to automatically control WLAN.
Step 704:Start timing after the WLAN switch is opened, after waiting preset duration, if detecting nothing Line LAN is in idle condition, then closes the WLAN switch.
In one embodiment, when user closes region and need to connect new AP automatically in WLAN, user only needs manually WLAN is opened, now mobile terminal starts timing, and wait for a period of time t.It is mobile if being not attached to new AP within the stand-by period Terminal then closes WLAN automatically;If being connected to new AP, aforesaid operations are performed, record the base station in new AP coverages Information.
The control method for the WLAN switch that the present embodiment provides, in the manually opened WLAN switch of user Afterwards, it is automatic to close WLAN switch if wireless network is not connected with wireless access points in preset time;If wireless network Network is connected to new wireless access points, then mobile terminal can be according to the area information of new wireless wireless access points To automatically control WLAN switch, the intelligent of automatic switch WLAN is added, lifts Consumer's Experience.
As shown in figure 9, in one embodiment, there is provided a kind of control device of WLAN switch, the device include: Data obtaining module 901, information comparison module 902 and switch control module 903.
Data obtaining module 901 is used to obtain that currently base corresponding to all base stations of communication service can be provided for the terminal Stand information, form Current base station information list.
Information comparison module 902 is used to carry out the Current base station information list and the base station information list prestored Compare, judge in the Current base station information list with the presence or absence of the base station letter in the base station information list prestored Breath;Wherein each corresponding available wireless access points of the base station information list prestored.
Switch control module 903 is used to control the WLAN switch to close, it is additionally operable to according to preset switches strategy The WLAN is controlled to switch.
In one embodiment, switch control module 903 is additionally operable to when the base station information obtained and is recorded in wireless When base station information under access points storage catalogue differs, detect the state of WLAN switch, if now without Line local area network switch is in opening, then closes the WLAN switch.
In one embodiment, switch control module 903 is additionally operable to when the base station information obtained and is recorded in wireless When base station information under access points storage catalogue is identical, and the base station information in the Current base station information list with it is described When the similarity of base station information in the base station information list prestored is more than predetermined threshold value, detects the WLAN and open The state of pass, if now WLAN switch is closed, open the WLAN switch.
In one embodiment, the control device of WLAN switch also includes:Memory module and update module.
Memory module, for when terminal is connected with wireless access points, record can to provide communication clothes for the terminal Base station information corresponding to all base stations of business, form base station information list corresponding with the wireless access points and preserve;
Update module, in the coverage of the wireless access points, if it is the end to get new When end provides base station information corresponding to the base station of communication service, update base station information corresponding to the wireless access points and arrange Table.
In one embodiment, the control device of WLAN switch also includes:Instruct execution module and timing inspection Survey module.
Instruct execution module, for when receive instruction is switched on to WLAN when, open the wireless office Domain net switch.
Timing detection module, for starting timing after the WLAN switch is opened, after waiting preset duration, if Detect that the wireless network is in not-connected status, then close the WLAN switch.
In one embodiment, data obtaining module 901 is additionally operable to receive the institute that the base station is sent by wireless channel State base station information.
In one embodiment, base station information includes country code, mobile network code, location area code, base station number At least one of with base station signal strength.
The control device of above-mentioned WLAN switch, all bases of communication service can be provided for the terminal by obtaining Base station information corresponding to standing, by the Current base station information list compared with the base station information list prestored, if working as The base station information in the base station information list prestored is not present in preceding base station information list, then controls the wireless office Domain net switch is closed.Automatic after away from available wireless access points WLAN switch can be closed, reduce terminal Power consumption, make the standby time of terminal increase, and improve Consumer's Experience.
The division of modules is only used for for example, in other implementations in the control device of above-mentioned WLAN switch In example, the control device that WLAN switchs can be divided into different modules as required, to complete above-mentioned wireless local Net all or part of function of the control device of switch.
The embodiment of the present application additionally provides a kind of computer-readable recording medium.One or more can perform 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 control method of the computing device WLAN switch described in each embodiment as described above.
The embodiment of the present application additionally provides a kind of computer program product.A kind of computer program product for including instruction, When run on a computer so that computer performs the control of the WLAN switch described in the various embodiments described above Method.
Figure 10 is the block diagram of the part-structure of the mobile phone related to the terminal of the embodiment of the present application offer.With reference to figure 10, hand Machine includes:Radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input block 1030, display unit 1040, Sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor 1080, And the grade part of power supply 1090.It will be understood by those skilled in the art that the handset structure shown in Figure 10 is not formed to mobile phone Limit, can include than illustrating more or less parts, either combine some parts or different parts arrangement.
Wherein, RF circuits 1010 can be used for receive and send messages or communication process in, the reception and transmission of signal can be by base stations After downlink information receives, handled to processor 1080;Up data can also be sent to base station.Generally, RF circuits 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 circuits 1010 can also be communicated by radio communication with network and other equipment.It is above-mentioned wireless Communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storage software program and module, and processor 1080 is stored in memory by operation 1020 software program and module, so as to perform the various function application of mobile phone and data processing.Memory 1020 can be led To include program storage area and data storage area, wherein, program storage area can storage program area, needed at least one function Application program (such as the application program of sound-playing function, application program of image player function etc.) etc.;Data storage area can Storage uses created data (such as voice data, address list etc.) etc. according to mobile phone.In addition, memory 1020 can wrap High-speed random access memory is included, nonvolatile memory, for example, at least disk memory, a flash memories can also be included Part or other volatile solid-state parts.
Input block 1030 can be used for the numeral or character information for receiving input, and produces and set with the user of mobile phone 1000 Put and the input of key signals that function control is relevant.Specifically, input block 1030 may include contact panel 1031 and other Input equipment 1032.Contact panel 1031, alternatively referred to as touch-screen, collect touch operation (ratio of the user on or near it Such as user is using finger, any suitable object of stylus or annex on contact panel 1031 or near contact panel 1031 Operation), and corresponding attachment means are driven according to formula set in advance.In one embodiment, contact panel 1031 can Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine The signal that touch operation is brought is surveyed, transmits a signal to touch controller;Touch controller receives from touch detecting apparatus to be touched Information is touched, and is converted into contact coordinate, then gives processor 1080, and the order sent of reception processing device 1080 and can be added To perform.Furthermore, it is possible to contact panel is realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves 1031.Except contact panel 1031, input block 1030 can also include other input equipments 1032.Specifically, other are inputted Equipment 1032 can include but is not limited in physical keyboard, function key (such as volume control button, switch key etc.) etc. one Kind is a variety of.
Display unit 1040 can be used for display by user input information or be supplied to user information and mobile phone it is each Kind menu.Display unit 1040 may include display panel 1041.In one embodiment, liquid crystal display can be used (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, ) etc. OLED form configures display panel 1041.In one embodiment, contact panel 1031 can cover display panel 1041, After contact panel 1031 detects the touch operation on or near it, processor 1080 is sent to determine touch event Type, it is followed by subsequent processing device 1080 and corresponding visual output is provided on display panel 1041 according to the type of touch event.Although In Fig. 10, contact panel 1031 and display panel 1041 are the parts independent as two to realize the input of mobile phone and input Function, but in some embodiments it is possible to contact panel 1031 and display panel 1041 are integrated and realize the input of mobile phone And output function.
Mobile phone 1000 may also include at least one sensor 1050, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ring The light and shade of environmental light adjusts the brightness of display panel 1041, and proximity transducer can close display when mobile phone is moved in one's ear Panel 1041 and/or backlight.Motion sensor may include acceleration transducer, and all directions are can detect by acceleration transducer The size of upper acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture is (such as horizontal Portrait layout switches), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, Other sensors such as hygrometer, thermometer, infrared ray sensor etc..
Voicefrequency circuit 1060, loudspeaker 1061 and microphone 1062 can provide the COBBAIF between user and mobile phone.Sound Frequency circuit 1060 voice data received can be changed after electric signal, loudspeaker 1061 is transferred to, by 1061 turns of loudspeaker It is changed to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1062, by voicefrequency circuit 1060 receive after be converted to voice data, then after voice data output processor 1080 is handled, can be sent out through RF circuits 1010 Another mobile phone is given, or voice data is exported to memory 1020 so as to subsequent treatment.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 1070 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Figure 10 is shown WiFi module 1070, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone 1000, can save as needed Slightly.
Processor 1080 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, By running or performing the software program and/or module that are stored in memory 1020, and call and be stored in memory 1020 Interior data, the various functions and processing data of mobile phone are performed, so as to carry out integral monitoring to mobile phone.In one embodiment, Processor 1080 may include one or more processing units.In one embodiment, processor 1080 can integrate application processor And modem processor, wherein, application processor mainly handles operating system, user interface and application program etc.;Modulatedemodulate Processor is adjusted mainly to handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor In 1080.
Mobile phone 1000 also includes the power supply 1090 (such as battery) to all parts power supply, it is preferred that power supply can pass through Power-supply management system and processor 1080 are logically contiguous, so as to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
In one embodiment, mobile phone 1000 can also include camera, bluetooth module etc..
In the embodiment of the present application, the processor 1080 included by the mobile terminal performs the calculating of storage on a memory The control method of the WLAN switch described in the various embodiments described above is realized during machine program.
During the execution of the computer program run on a processor, realize automatic opening or close WLAN switches, reduce The power consumption of terminal, makes the standby time of terminal increase, and improve Consumer's Experience.
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 storage (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).
Embodiment described above only expresses the several embodiments of the application, and its description is more specific and detailed, but simultaneously Therefore the limitation to the application the scope of the claims can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, on the premise of the application design is not departed from, various modifications and improvements can be made, these belong to the guarantor of the application Protect scope.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

1. a kind of control method of WLAN switch, applied to the terminal for possessing mobile communication function, to control the end WLAN switch on end, methods described include:
Acquisition can currently provide base station information corresponding to all base stations of communication service for the terminal, form Current base station information List;
By the Current base station information list compared with the base station information list prestored, the current base station letter is judged With the presence or absence of the base station information in the base station information list prestored in breath list;It is wherein each described to prestore The corresponding available wireless access points of base station information list;
If it is not, the WLAN switch is then controlled to close;
If so, then WLAN switchs according to preset switches policy control.
2. according to the method for claim 1, it is characterised in that the wireless local according to preset switches policy control Net switch, including:
When the base station information same number of the Current base station information list and the base station information list prestored is more than During present count value, the WLAN switch is controlled to open.
3. according to the method for claim 1, it is characterised in that the step of also including prestoring base station information list, bag Include:
When terminal is connected with wireless access points, record can be provided corresponding to all base stations of communication service for the terminal Base station information;
The base station information is stored into base station information list corresponding to the wireless access points.
4. according to the method for claim 3, it is characterised in that the base station information comprises at least base station signal strength;Institute State record can provide base station information corresponding to all base stations of communication service for the terminal before, in addition to:
Obtain the base station signal strength for all base stations that communication service can be provided for the terminal;
When the base station signal strength is more than preset signal strength threshold value, then communication service can be provided for terminal described in record Base station information corresponding to base station.
5. according to the method for claim 3, it is characterised in that store the base station information to the wireless visit described After asking in base station information list corresponding to access point, in addition to:
Obtain the overlay area of the WLAN of the wireless access points;
When the terminal moves in the overlay area, if getting the new base that communication service is provided for the terminal Corresponding to standing during base station information, base station information list corresponding to the wireless access points is updated.
6. according to the method for claim 3, it is characterised in that it is described to prestore base station information list, in addition to:
When multiple available wireless access points be present, the available wireless access points are sequentially connected, forming multiple institutes State base station information list corresponding to available wireless access points.
7. according to the method for claim 1, it is characterised in that methods described also includes:
When receive instruction is switched on to WLAN when, open WLAN switch;
Start timing after the WLAN switch is opened, after waiting preset duration, WLAN is in if detecting Idle condition, then close the WLAN switch.
8. a kind of control device of WLAN switch, it is characterised in that described device includes:
Data obtaining module, base station letter corresponding to all base stations of communication service can be currently provided for the terminal for obtaining Breath, form Current base station information list;
Information comparison module, for by the Current base station information list compared with the base station information list prestored, Judge in the Current base station information list with the presence or absence of the base station information in the base station information list prestored;Wherein Each corresponding available wireless access points of the base station information list prestored;
Switch control module, for controlling the WLAN switch to close, it is additionally operable to according to preset switches policy control institute State WLAN switch.
9. a kind of terminal, including memory and processor, computer-readable instruction, the instruction quilt are stored in the memory During the computing device so that the step of method of the computing device as any one of claim 1 to 7.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The step of method as any one of claim 1 to 7 is realized when being executed by processor.
CN201711240759.7A 2017-11-30 2017-11-30 Control method, device, terminal and storage medium of wireless local area network switch Active CN107820301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711240759.7A CN107820301B (en) 2017-11-30 2017-11-30 Control method, device, terminal and storage medium of wireless local area network switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711240759.7A CN107820301B (en) 2017-11-30 2017-11-30 Control method, device, terminal and storage medium of wireless local area network switch

Publications (2)

Publication Number Publication Date
CN107820301A true CN107820301A (en) 2018-03-20
CN107820301B CN107820301B (en) 2021-02-02

Family

ID=61606373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711240759.7A Active CN107820301B (en) 2017-11-30 2017-11-30 Control method, device, terminal and storage medium of wireless local area network switch

Country Status (1)

Country Link
CN (1) CN107820301B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418327A (en) * 2018-04-27 2019-11-05 中国移动通信有限公司研究院 A kind of wireless control method and device, base station and storage medium
CN112135302A (en) * 2020-09-02 2020-12-25 深圳市艾伯通信有限公司 Control method and device for base station topology information and computer readable storage medium
CN112335275A (en) * 2018-07-13 2021-02-05 华为技术有限公司 Access right control method of terminal
CN112449305A (en) * 2019-09-05 2021-03-05 中兴通讯股份有限公司 WiFi connection method, control method, mobile terminal, equipment and server
CN112770419A (en) * 2020-12-22 2021-05-07 南昌黑鲨科技有限公司 Network card closing method, radio frequency module, storage medium and electronic equipment
CN113473568A (en) * 2020-03-31 2021-10-01 深圳市万普拉斯科技有限公司 Device position judging method and device, computer device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040156399A1 (en) * 2002-08-07 2004-08-12 Extricom Ltd. Wireless LAN control over a wired network
CN105208627A (en) * 2014-06-24 2015-12-30 振江传讯有限公司 Method for automatically accessing wireless local area network
CN105357378A (en) * 2015-10-20 2016-02-24 广东欧珀移动通信有限公司 Method and mobile terminal for automatically opening WIFI (Wireless Fidelity) list and connecting WIFI
CN106028286A (en) * 2016-07-12 2016-10-12 努比亚技术有限公司 Wireless local area network access device and method
US20170118698A1 (en) * 2015-10-23 2017-04-27 Belden, Inc. Systems and methods for obtaining available channels for fast channel switching
CN106714275A (en) * 2016-12-07 2017-05-24 广东欧珀移动通信有限公司 Wi-Fi connection method and mobile terminal
CN107124751A (en) * 2017-04-26 2017-09-01 努比亚技术有限公司 A kind of terminal and terminal control method
CN107197470A (en) * 2017-05-24 2017-09-22 努比亚技术有限公司 Wireless network connecting method, mobile terminal and computer-readable recording medium
CN107222898A (en) * 2017-08-07 2017-09-29 广东欧珀移动通信有限公司 Method for switching network, mobile terminal and computer-readable recording medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040156399A1 (en) * 2002-08-07 2004-08-12 Extricom Ltd. Wireless LAN control over a wired network
CN105208627A (en) * 2014-06-24 2015-12-30 振江传讯有限公司 Method for automatically accessing wireless local area network
CN105357378A (en) * 2015-10-20 2016-02-24 广东欧珀移动通信有限公司 Method and mobile terminal for automatically opening WIFI (Wireless Fidelity) list and connecting WIFI
US20170118698A1 (en) * 2015-10-23 2017-04-27 Belden, Inc. Systems and methods for obtaining available channels for fast channel switching
CN106028286A (en) * 2016-07-12 2016-10-12 努比亚技术有限公司 Wireless local area network access device and method
CN106714275A (en) * 2016-12-07 2017-05-24 广东欧珀移动通信有限公司 Wi-Fi connection method and mobile terminal
CN107124751A (en) * 2017-04-26 2017-09-01 努比亚技术有限公司 A kind of terminal and terminal control method
CN107197470A (en) * 2017-05-24 2017-09-22 努比亚技术有限公司 Wireless network connecting method, mobile terminal and computer-readable recording medium
CN107222898A (en) * 2017-08-07 2017-09-29 广东欧珀移动通信有限公司 Method for switching network, mobile terminal and computer-readable recording medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418327A (en) * 2018-04-27 2019-11-05 中国移动通信有限公司研究院 A kind of wireless control method and device, base station and storage medium
CN110418327B (en) * 2018-04-27 2022-05-31 中国移动通信有限公司研究院 Wireless control method and device, base station and storage medium
CN112335275A (en) * 2018-07-13 2021-02-05 华为技术有限公司 Access right control method of terminal
CN112335275B (en) * 2018-07-13 2023-02-10 华为技术有限公司 Access right control method of terminal
CN112449305A (en) * 2019-09-05 2021-03-05 中兴通讯股份有限公司 WiFi connection method, control method, mobile terminal, equipment and server
CN112449305B (en) * 2019-09-05 2023-03-31 中兴通讯股份有限公司 WiFi connection method, control method, mobile terminal, equipment and server
CN113473568A (en) * 2020-03-31 2021-10-01 深圳市万普拉斯科技有限公司 Device position judging method and device, computer device and storage medium
CN113473568B (en) * 2020-03-31 2022-11-15 深圳市万普拉斯科技有限公司 Device position judging method and device, computer device and storage medium
CN112135302A (en) * 2020-09-02 2020-12-25 深圳市艾伯通信有限公司 Control method and device for base station topology information and computer readable storage medium
CN112770419A (en) * 2020-12-22 2021-05-07 南昌黑鲨科技有限公司 Network card closing method, radio frequency module, storage medium and electronic equipment
CN112770419B (en) * 2020-12-22 2022-11-01 南昌黑鲨科技有限公司 Network card closing method, radio frequency module, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN107820301B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN107820301A (en) Control method, device, terminal and the storage medium of WLAN switch
CN107820331B (en) Call method, device, computer equipment and readable storage medium
CN107734584A (en) The method and apparatus of network connection switching, computer equipment, readable storage medium storing program for executing
WO2018188315A1 (en) Method and apparatus for identifying pseudo base-station, and terminal
CN104717125B (en) Graphic code store method and device
WO2018014745A1 (en) Network search method and device after roaming ends
CN107949040A (en) Wireless local area network scan method, apparatus, computer equipment and storage medium
CN107231159A (en) A kind of Radio frequency interference processing method, device, storage medium and terminal
CN104035951B (en) Show the method for map, device and terminal
CN107682910A (en) Floating resources sharing method, device, mobile terminal and storage medium
CN107820302B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
CN103561400A (en) Method for initiating communication, device thereof and mobile terminal
CN107743305A (en) Load method and apparatus, the computer equipment of configuration information
CN107172671A (en) A kind of channel switching method, device, storage medium and terminal
CN107846723A (en) Wireless local area network scan method, apparatus, computer equipment and storage medium
CN106028316B (en) The network search method and equipment of a kind of international roaming
CN107484154A (en) Data switching method and apparatus, terminal, computer-readable recording medium
CN107682851A (en) Information processing method, device, mobile terminal and computer-readable recording medium
CN107896385B (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN106231650A (en) A kind of method for network access and terminal
CN107734495A (en) Information processing method, device, storage medium and terminal
CN106454976A (en) Switching method and device for wireless network and terminal
CN106454975A (en) Hotspot network switching method and terminal equipment
CN108012304A (en) Wireless local area network scan method, apparatus, computer equipment and storage medium
CN103561155B (en) Send the method for note, device and terminal

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

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant