CN108307462A - A kind of method for connecting network, terminal and computer readable storage medium - Google Patents
A kind of method for connecting network, terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108307462A CN108307462A CN201810089648.9A CN201810089648A CN108307462A CN 108307462 A CN108307462 A CN 108307462A CN 201810089648 A CN201810089648 A CN 201810089648A CN 108307462 A CN108307462 A CN 108307462A
- Authority
- CN
- China
- Prior art keywords
- wireless lan
- network
- terminal
- signal strength
- signal intensity
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/32—Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
Abstract
The embodiment of the invention discloses a kind of method for connecting network, obtain the network signal intensity for the first Wireless LAN that terminal currently connects;Determine that the signal strength threshold of currently used application, the usage time of the currently used application are more than preset time according to pre-stored signal strength data library;When the network signal intensity of first Wireless LAN is less than the signal strength threshold of the currently used application, the first Wireless LAN that the terminal currently connects is switched to mobile data network connection.The embodiment of the invention also discloses a kind of terminal and computer readable storage mediums, can the network signal intensity according to Wireless LAN and the signal strength threshold using needs switch over the network of connection, it avoids and is connected to network but using the case where can not surfing the Internet, the continuity that ensure that the network data that user uses, improves work efficiency.
Description
Technical field
The present invention relates to a kind of communications field more particularly to method for connecting network, terminal and computer readable storage mediums.
Background technology
With the continuous development of internet and electronic technology, the application of various mobile terminals in people's lives is got over
Come it is more extensive, meanwhile, based on terminal and to rely on the application of the business of network signal in people's lives more and more extensive.With mutual
The arriving in networking epoch, Wireless LAN wifi more and more frequently appear in people’s lives, work, leisurely and carefree amusement
Etc. various aspects.
Each place, such as work unit, restaurant, market in existing life etc. are covered with wifi, when mobile phone connects
It crosses after many wifi in each place, the shortcoming of autoconnect function can make troubles, such as be passed through from some shop doorway
Out-of-date, mobile phone connects upper wifi automatically, but when making a phone call or unlocking shared bicycle outdoors because wifi insufficient strengths can not
Normal online;Or some wifi need to input account number cipher, the automatic successful connection of mobile phone on short-message verification or webpage
But be constantly in the state that do not net and can not receive message, therefore, to user life, work etc. make troubles, user experience
It is poor.
Invention content
In order to solve the above technical problems, the embodiment of the present invention provides a kind of method for connecting network, terminal and computer-readable
Storage medium, can the network signal intensity according to Wireless LAN and the signal strength threshold using needs cut
The network for changing connection avoids and is connected to network but using the case where can not surfing the Internet, ensure that the network data that user uses
Continuity improves work efficiency.
The technical proposal of the invention is realized in this way:
In a first aspect, the embodiment of the present invention provides a kind of method for connecting network, the method includes:
Obtain the network signal intensity for the first Wireless LAN that terminal currently connects;
The signal strength threshold of currently used application is determined according to pre-stored signal strength data library, it is described currently to make
The usage time of application is more than preset time;
When the network signal intensity of first Wireless LAN is less than the signal strength of the currently used application
When threshold value, the first Wireless LAN that the terminal currently connects is switched to mobile data network connection.
Further, the first Wireless LAN that terminal currently connects is switched to mobile data network connection described
When, the method further includes:
Obtain the terminal currently the first Wireless LAN of connection when first position information and described currently connect
The first network parameter information of first Wireless LAN protects the first position information and the first network parameter information
There are in Wireless LAN table, first Wireless LAN is identified in the Wireless LAN table, institute
State the network signal intensity that mark is used to indicate first WLAN.
Further, before the network signal intensity for the first Wireless LAN that the acquisition terminal currently connects,
Including:
When terminal is in the second Wireless LAN connection status, all in the terminal apply when in use is obtained
Signal strength threshold, by the correspondence storage of all applications signal strength threshold when in use and all applications
In the pre-stored signal strength data library, the network signal intensity of second Wireless LAN meets described all
Any one in is using required signal strength.
Further, the pre-stored signal strength data library of the basis determines the signal strength threshold of currently used application
Value, including:
The application that prestores identical with the currently used application is searched in the pre-stored signal strength data library,
It determines and prestores using the corresponding signal strength threshold that signal strength threshold is the currently used application that prestores with described.
Further, the first Wireless LAN that the terminal currently connects is switched to mobile data network described
After connection, including:
In terminal moving process, the second net of the second position information and third Wireless LAN where terminal is obtained
Network parameter information;
Determine that the third Wireless LAN is according to the second position information and second net-work parameter information
It is no in the Wireless LAN table;
If the third Wireless LAN is in the Wireless LAN table, and the Wireless LAN table is got the bid
The network signal intensity of the third Wireless LAN of knowledge is strong, and it is wireless that the current network connection of terminal is switched to the third
Local area network connects;
If the third Wireless LAN is in the Wireless LAN table, and the Wireless LAN table is got the bid
The network signal intensity of the third Wireless LAN of knowledge is network connection that is weak, keeping terminal current;
If the third Wireless LAN obtains the third WLAN not in the Wireless LAN table
The network signal intensity of network, according to the signal of the network signal intensity of the third Wireless LAN and currently used application
Intensity threshold determines the connection of network, and second net-work parameter information and described are stored in the Wireless LAN table
Two location informations, and in the Wireless LAN table to the network signal intensity of the third Wireless LAN into rower
Know.
Second aspect, the embodiment of the present invention also provide a kind of terminal, and the terminal includes:Processor, memory and communication
Bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing the network attachment procedure stored in memory, to realize following steps:
Obtain the network signal intensity for the first Wireless LAN that terminal currently connects;
The signal strength threshold of currently used application is determined according to pre-stored signal strength data library, it is described currently to make
The usage time of application is more than preset time;
When the network signal intensity of first Wireless LAN is less than the signal strength of the currently used application
When threshold value, the first Wireless LAN that the terminal currently connects is switched to mobile data network connection.
Further, the first Wireless LAN that terminal currently connects is switched to mobile data network connection described
When, the processor is additionally operable to execute the network attachment procedure stored in memory, to realize following steps:
Obtain the terminal currently the first Wireless LAN of connection when first position information and described currently connect
The first network parameter information of first Wireless LAN protects the first position information and the first network parameter information
There are in Wireless LAN table, first Wireless LAN is identified in the Wireless LAN table, institute
State the network signal intensity that mark is used to indicate first WLAN.
Further, before the network signal intensity for the first Wireless LAN that the acquisition terminal currently connects,
The processor is additionally operable to execute the network attachment procedure stored in memory, to realize following steps:
When terminal is in the second Wireless LAN connection status, all in the terminal apply when in use is obtained
Signal strength threshold, by the correspondence storage of all applications signal strength threshold when in use and all applications
In the pre-stored signal strength data library, the network signal intensity of second Wireless LAN meets described all
Any one in is using required signal strength.
Further, the first Wireless LAN that the terminal currently connects is switched to mobile data network described
After connection, the processor is additionally operable to execute the network attachment procedure stored in memory, to realize following steps:
In terminal moving process, the second net of the second position information and third Wireless LAN where terminal is obtained
Network parameter information;
Determine that the third Wireless LAN is according to the second position information and second net-work parameter information
It is no in the Wireless LAN table;
If the third Wireless LAN is in the Wireless LAN table, and the Wireless LAN table is got the bid
The network signal intensity of the third Wireless LAN of knowledge is strong, and it is wireless that the current network connection of terminal is switched to the third
Local area network connects;
If the third Wireless LAN is in the Wireless LAN table, and the Wireless LAN table is got the bid
The network signal intensity of the third Wireless LAN of knowledge is network connection that is weak, keeping terminal current;
If the third Wireless LAN obtains the third WLAN not in the Wireless LAN table
The network signal intensity of network, according to the signal of the network signal intensity of the third Wireless LAN and currently used application
Intensity threshold determines the connection of network, and second net-work parameter information and described are stored in the Wireless LAN table
Two location informations, and in the Wireless LAN table to the network signal intensity of the third Wireless LAN into rower
Know.
Further, the processor is specifically used for executing the network attachment procedure stored in memory, following to realize
Step:
The application that prestores identical with the currently used application is searched in the pre-stored signal strength data library,
It determines and prestores using the corresponding signal strength threshold that signal strength threshold is the currently used application that prestores with described.
The third aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, the computer-readable storage
There are one media storages or multiple programs, one or more of programs can be executed by one or more processor, with
The step of realizing any one of them method as above.
An embodiment of the present invention provides a kind of method for connecting network, terminal and computer readable storage mediums, obtain terminal
The network signal intensity of the first Wireless LAN currently connected;Being determined according to pre-stored signal strength data library currently makes
The usage time of the signal strength threshold of application, the currently used application is more than preset time;When first nothing
It is when the network signal intensity of line local area network is less than the signal strength threshold of the currently used application, the terminal is current
First Wireless LAN of connection is switched to mobile data network connection.Method for connecting network provided in an embodiment of the present invention,
Terminal and computer readable storage medium, being capable of the network signal intensity according to Wireless LAN and the letter using needs
Number intensity threshold judged, the network for selecting terminal to be attached, so as to avoid the weaker network of signal strength is connected to
But the case where application used can not normally surf the Internet ensure that the continuity for the network data that user uses, and improve work effect
Rate.
Description of the drawings
The hardware architecture diagram of Fig. 1 optional mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is method for connecting network flow diagram one provided in an embodiment of the present invention;
Fig. 4 is method for connecting network flow diagram two provided in an embodiment of the present invention;
Fig. 5 is Wireless LAN handoff scenario exemplary plot provided in an embodiment of the present invention;
Fig. 6 is Wireless LAN switching control examples of interfaces figure provided in an embodiment of the present invention;
Fig. 7 is Wireless LAN search interface exemplary plot provided in an embodiment of the present invention;
Fig. 8 is terminal structure schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only
The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, tablet
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Either combine certain components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
The relevant audio output of specific function executed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
A/V input units 104 are for receiving audio or video signal.A/V input units 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes 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 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc.
It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For the transmission data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes communicating UE (User Equipment, the use of connection successively
Family equipment) (the lands Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., it does not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
It should be noted that term " first ", " second " etc. in description and claims of this specification and attached drawing
It is for distinguishing similar object, without being used to describe specific sequence or precedence.
The embodiment of the present invention provides a kind of method for connecting network, is applied to terminal, and the function that this method is realized can lead to
The processor caller code crossed in terminal realizes that certain program code can be stored in computer storage media, can
See, which includes at least pocessor and storage media.Fig. 3 is a kind of reality of method for connecting network provided in an embodiment of the present invention
Existing flow diagram, as shown in figure 3, this method may comprise steps of:
Step 301, the network signal intensity for obtaining the first Wireless LAN that terminal currently connects.
Specifically, in the embodiment of the present invention, the network signal for obtaining the first Wireless LAN that terminal currently connects is strong
Degree can be realized by terminal, i.e., the network signal for the first Wireless LAN that terminal acquisition terminal itself currently connects is strong
Degree.The terminal can be mobile terminal, can be specifically the mobile intelligent terminal that can connect network.
Here, Wireless LAN (Wireless Local Area Networks, WLAN) is particularly convenient data
Transmission system, it utilizes radio frequency (Radio Frequency;RF technology), using electromagnetic wave, old-fashioned pair got in the way of substitution
The local area network that copper wire (Coaxial) is constituted is twisted, is communicatively coupled in the air.WLAN in the embodiment of the present invention
Network is specifically as follows wifi network.
Specifically, when terminal connects the first Wireless LAN, terminal detects the first wireless office currently connected automatically
The network signal intensity of domain network.
Step 302, the signal strength threshold that currently used application is determined according to pre-stored signal strength data library.
Wherein, the usage time of the currently used application is more than preset time.Preset time can be 5 minutes,
It can be 10 minutes, can also be that other time values, the embodiment of the present invention do not limit this.Currently used application is more than
Preset time illustrates that user is using the application for a long time, avoids maloperation and opens the case where being closed again after certain is applied, also
It is to say, acquisition is the signal strength threshold of application that user uses for a long time.
Specifically, terminal lookup in pre-stored signal strength data library is identical pre- with the currently used application
Application is deposited, determines and prestores using the corresponding signal strength that signal strength threshold is the currently used application that prestores with described
Threshold value.
Step 303, when the first Wireless LAN network signal intensity be less than currently used application signal strength
When threshold value, the first Wireless LAN that the terminal currently connects is switched to mobile data network connection.
Specifically, when the first Wireless LAN for currently connecting terminal is switched to mobile data network connection, eventually
End obtain the terminal itself currently the first Wireless LAN of connection when first position information and the currently connected
The first network parameter information of one Wireless LAN preserves the first position information and the first network parameter information
In Wireless LAN table, first Wireless LAN is identified in the Wireless LAN table, it is described
Mark is used to indicate the network signal intensity of first WLAN.
Wherein, first network parameter information may include:Service set SSID, carrier frequency, consensus standard, channel
Deng can also include other network parameters, the embodiment of the present invention not limit this.
One WLAN can be divided into several by service set (SSID, Service Set Identifier) technology
A sub-network for needing different identity to verify, each sub-network are required for independent authentication, only pass through authentication
User just can enter corresponding sub-network, prevent unauthorized user from entering present networks.
Optionally, when the network signal intensity of the first Wireless LAN is more than or equal to the currently used application
Signal strength threshold when, the first Wireless LAN for keeping the terminal currently to connect.
Method for connecting network provided in an embodiment of the present invention according to the network signal intensity of Wireless LAN and can answer
With using the signal strength threshold of needs to be judged, the network for selecting terminal to be attached, so as to avoid signal is connected to
The weaker network of intensity but the case where the application used can not normally surf the Internet, ensure that the continuous of the network data that user uses
Property, it improves work efficiency.
The embodiment of the present invention provides a kind of method for connecting network, is applied to terminal, and the function that this method is realized can lead to
The processor caller code crossed in terminal realizes that certain program code can be stored in computer storage media, can
See, which includes at least pocessor and storage media.Fig. 4 is a kind of reality of method for connecting network provided in an embodiment of the present invention
Existing flow diagram, as shown in figure 4, this method may comprise steps of:
Step 401, the network signal intensity for obtaining the first Wireless LAN that terminal currently connects.
The executive agent of method for connecting network provided in an embodiment of the present invention can be terminal, wherein the terminal can be with
For mobile terminal, mobile terminal can be implemented in a variety of manners, which has the function of connecting network.For example, hand
Machine, PDA (personal digital assistant), PAD (tablet computer) etc..
Step 402 searches the application that prestores identical with currently used application in pre-stored signal strength data library,
It determines and prestores using the corresponding signal strength threshold that signal strength threshold is currently used application that prestores.
Wherein, the usage time of the currently used application is more than preset time, illustrates that user's long-time should in use
Using, avoid maloperation open certain application after again close the case where, that is to say, that acquisition be user for a long time use answer
Signal strength threshold.
Specifically, having prestored all apply installed in terminal in terminal can normally make in WIFI network
The signal strength threshold of all applications, the signal strength threshold each applied, which is the application, normally to be gone up needed for network operation
The lowest signal intensity wanted, when signal strength less than application signal strength threshold when, this application then can not normal use, i.e., should
Using can not normally surf the Internet;When signal strength threshold of the signal strength higher than application, this is answered using ability normal use, i.e. this
With can normally surf the Internet.
Further, before the network signal intensity for obtaining the first Wireless LAN that terminal currently connects, including:
When terminal is in the second Wireless LAN connection status, all in the terminal apply when in use is obtained
Signal strength threshold, by the correspondence storage of all applications signal strength threshold when in use and all applications
In the pre-stored signal strength data library, the network signal intensity of second Wireless LAN meets described all
Any one in is using required signal strength, that is to say, that when terminal is in the second Wireless LAN,
Any one application in terminal can normal use.
Step 403 is less than the currently used application when the network signal intensity of first Wireless LAN
When signal strength threshold, the first Wireless LAN that the terminal currently connects is switched to mobile data network connection.
Specifically, when the first Wireless LAN intensity be less than being capable of the currently used letter using app of normal use
When number intensity threshold, then the first Wireless LAN of automatic disconnected end connection, while terminal connects mobile data network automatically
Network uses mobile data network, while terminal backstage record works as the location information of prelocalization and connects the first bad nothing
The net-work parameter information of line local area network, the net-work parameter information can be the routing for connecting the first bad Wireless LAN
The parameters of device, including and be not limited to SSID, carrier frequency, consensus standard, channel etc., and by first Wireless LAN
Network signal intensity be identified as it is weak, i.e. the first Wireless LAN be weak wifi then will not when searching the network next time
It is automatic to connect, it avoids the occurrence of and but connects upper wifi then slow continuous situations, Yi Jike when only passing by some places automatically
Connection can not but use the case where data.For the wifi network that once connected and smooth can use, it is automatically set as
Priority network, when searching next time, preferential attachment.
Step 404, in terminal moving process, obtain terminal where second position information and third Wireless LAN
The second net-work parameter information.
Wherein, the third Wireless LAN includes at least one Wireless LAN, i.e. third Wireless LAN
It can be a Wireless LAN, can also be multiple Wireless LAN, for multiple Wireless LAN, select network
The strongest network of signal strength is judged.
Here, second net-work parameter information may include:Service set SSID, carrier frequency, consensus standard, letter
Road etc., can also include other network parameters, and the embodiment of the present invention does not limit this.
Illustratively, as shown in figure 5, terminal currently connects Wireless LAN A, in terminal moving process, arrow in Fig. 5
The moving direction of head direction instruction mobile phone terminal, it can be seen that with the movement of mobile phone terminal, terminal is in Wireless LAN
The network signal in the region where B, Wireless LAN B gradually increases, and terminal obtains the position letter where Wireless LAN B
The net-work parameter information of breath and Wireless LAN B.
Step 405 determines the wireless office of the third according to the second position information and second net-work parameter information
Whether domain network is in Wireless LAN table.
Wherein, stored in Wireless LAN table the Wireless LAN that terminal connected net-work parameter information and
The location of terminal information when connecting Wireless LAN.
Specifically, terminal finds network parameter letter identical with the second net-work parameter information in Wireless LAN table
Breath, and when finding in Wireless LAN table location information identical with second position information, determine third wireless local
Network is in the Wireless LAN table.Terminal is not found and the second net-work parameter information phase in Wireless LAN table
With net-work parameter information when, determine third Wireless LAN in the Wireless LAN table.
If step 406, third Wireless LAN are in the Wireless LAN table, and the Wireless LAN table
The network signal intensity of the third Wireless LAN of middle mark is strong, and the current network connection of terminal is switched to the third
Wireless LAN connects.
Optionally, after step 405, can also include:
If the third Wireless LAN is in the Wireless LAN table, and the Wireless LAN table is got the bid
The network signal intensity of the third Wireless LAN of knowledge is network connection that is weak, keeping terminal current.
Optionally, after step 405, can also include:
If the third Wireless LAN obtains the third WLAN not in the Wireless LAN table
The network signal intensity of network, according to the signal of the network signal intensity of the third Wireless LAN and currently used application
Intensity threshold determines the connection of network, and second net-work parameter information and described are stored in the Wireless LAN table
Two location informations, and in the Wireless LAN table to the network signal intensity of the third Wireless LAN into rower
Know.
With specific reference to the signal strength threshold of the network signal intensity and currently used application of third Wireless LAN
Determine that the connection of network is, when the network signal intensity of third Wireless LAN is less than the signal strength of currently used application
When threshold value, without the switching of network signal, avoid the occurrence of that but to connect upper wifi when only passing by some places automatically then slow
Continuous situation late, and the case where can not but using data can be connected, when the network signal intensity of third Wireless LAN
More than or equal to currently used application signal strength threshold when, network switching that the terminal is currently connected is third
Wireless LAN.
Optionally, the network around the automatic detection search of terminal progress can be arranged function items and be controlled, such as Fig. 6 institutes
The web search function items shown, when opening web search function, terminal can detect the network around search automatically, such as scheme
Shown in 7, the web search display interface of the Fig. 7 does not appear in the display interface of terminal when terminal carries out automatically switching network,
That is terminal backstage directly carries out network switching, when user needs to check the network that can around connect, can enter terminal
Setting, checks, such as shown in Fig. 8 into WLAN option, can check the network of surrounding.
Method for connecting network provided in an embodiment of the present invention according to the network signal intensity of Wireless LAN and can answer
With using the signal strength threshold of needs to be judged, the network for selecting terminal to be attached, so as to avoid signal is connected to
The weaker network of intensity but the case where the application used can not normally surf the Internet, ensure that the continuous of the network data that user uses
Property, it improves work efficiency.
The embodiment of the present invention also provides a kind of terminal 50, as shown in figure 8, the terminal 50 includes:Processor 501, storage
Device 502 and communication bus 503;
The communication bus 503 is for realizing the connection communication between processor 501 and memory 502;
The processor 501 is for executing the network attachment procedure stored in memory 502, to realize following steps:
Obtain the network signal intensity for the first Wireless LAN that terminal currently connects;
The signal strength threshold of currently used application is determined according to pre-stored signal strength data library, it is described currently to make
The usage time of application is more than preset time;
When the network signal intensity of first Wireless LAN is less than the signal strength of the currently used application
When threshold value, the first Wireless LAN that the terminal currently connects is switched to mobile data network connection.
Further, the first Wireless LAN that terminal currently connects is switched to mobile data network connection described
When, the processor 501 is additionally operable to execute the network attachment procedure stored in memory 502, to realize following steps:
Obtain the terminal currently the first Wireless LAN of connection when first position information and described currently connect
The first network parameter information of first Wireless LAN protects the first position information and the first network parameter information
There are in Wireless LAN table, first Wireless LAN is identified in the Wireless LAN table, institute
State the network signal intensity that mark is used to indicate first WLAN.
Further, before the network signal intensity for the first Wireless LAN that the acquisition terminal currently connects,
The processor 501 is additionally operable to execute the network attachment procedure stored in memory 502, to realize following steps:
When terminal is in the second Wireless LAN connection status, all in the terminal apply when in use is obtained
Signal strength threshold, by the correspondence storage of all applications signal strength threshold when in use and all applications
In the pre-stored signal strength data library, the network signal intensity of second Wireless LAN meets described all
Any one in is using required signal strength.
Further, the first Wireless LAN that the terminal currently connects is switched to mobile data network described
After connection, the processor 501 is additionally operable to execute the network attachment procedure stored in memory 502, to realize following steps:
In terminal moving process, the second net of the second position information and third Wireless LAN where terminal is obtained
Network parameter information, the third Wireless LAN include at least one Wireless LAN;
Determine that the third Wireless LAN is according to the second position information and second net-work parameter information
It is no in the Wireless LAN table;
If the third Wireless LAN is in the Wireless LAN table, and the Wireless LAN table is got the bid
The network signal intensity of the third Wireless LAN of knowledge is strong, and it is wireless that the current network connection of terminal is switched to the third
Local area network connects;
If the third Wireless LAN is in the Wireless LAN table, and the Wireless LAN table is got the bid
The network signal intensity of the third Wireless LAN of knowledge is network connection that is weak, keeping terminal current;
If the third Wireless LAN obtains the third WLAN not in the Wireless LAN table
The network signal intensity of network, according to the signal of the network signal intensity of the third Wireless LAN and currently used application
Intensity threshold determines the connection of network, and second net-work parameter information and described are stored in the Wireless LAN table
Two location informations, and in the Wireless LAN table to the network signal intensity of the third Wireless LAN into rower
Know.
Further, the processor 501 is specifically used for executing the network attachment procedure stored in memory 502, with reality
Existing following steps:
The application that prestores identical with the currently used application is searched in the pre-stored signal strength data library,
It determines and prestores using the corresponding signal strength threshold that signal strength threshold is the currently used application that prestores with described.
Here, memory 502 can be volatile memory or nonvolatile memory, may also comprise volatibility and Fei Yi
Both the property lost memories.Wherein, nonvolatile memory can be read-only memory (ROM, Read Only Memory), can compile
Journey read-only memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM
(EPROM, Erasable Programmable Read-Only Memory), electrically erasable programmable read-only memory
(EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access store
Device (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface are deposited
Reservoir, CD or CD-ROM (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be
Magnetic disk storage or magnetic tape storage.Volatile memory can be random access memory (RAM, Random Access
Memory), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as
Static RAM (SRAM, Static Random Access Memory), synchronous static RAM
(SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM,
Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous
Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM,
Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random
Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links
Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus
Random access memory (DRRAM, Direct Rambus Random Access Memory).Description of the embodiment of the present invention is deposited
Reservoir 502 is intended to the memory of including but not limited to these and any other suitable type.
Memory 502 in the embodiment of the present invention is for storing various types of data to support the operation of terminal 50.This
The example of data includes a bit:Any computer program for being operated in terminal 50, such as operating system and application program;Contact
Personal data;Telephone book data;Message;Picture;Video etc..Wherein, operating system include various system programs, such as ccf layer,
Core library layer, driving layer etc., for realizing various basic businesses and the hardware based task of processing.Application program can include
Various application programs, such as media player (Media Player), browser (Browser) etc., for realizing various applications
Business.Realize that the program of present invention method may be embodied in application program.
The method that the embodiments of the present invention disclose can be applied in processor 501, or be realized by processor 501.
Processor 501 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.Above-mentioned processing
Device 501 can be general processor, digital signal processor (DSP, Digital Signal Processor) or other can
Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..Processor 501 may be implemented or hold
Disclosed each method, step and logic diagram in the row embodiment of the present invention.General processor can be microprocessor or appoint
What conventional processor etc..It the step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly at hardware decoding
Reason device executes completion, or in decoding processor hardware and software module combine and execute completion.Software module can be located at
In storage medium, which is located at memory 502, and processor 501 reads the information in memory 502, in conjunction with its hardware
The step of completing preceding method.
Specifically, understanding for terminal provided in an embodiment of the present invention can refer to saying for above-mentioned method for connecting network embodiment
Bright, details are not described herein for the embodiment of the present invention.
Terminal provided in an embodiment of the present invention, can be according to the network signal intensity of Wireless LAN and using need
The signal strength threshold wanted is judged that the network for selecting terminal to be attached is weaker so as to avoid signal strength is connected to
Network but the application that uses the case where can not normally surfing the Internet, ensure that the continuity for the network data that user uses, improve
Working efficiency.
In the embodiment of the present invention, if above-mentioned method for connecting network is realized in the form of software function module, and conduct
Independent product sale in use, can also be stored in a computer read/write memory medium.Based on this understanding,
Substantially the part that contributes to existing technology can be with the shape of software product in other words for the technical solution of the embodiment of the present invention
Formula embodies, which is stored in a storage medium, including some instructions are used so that a calculating
Machine equipment (can be personal computer, server or network equipment etc.) executes each embodiment the method for the present invention
It is all or part of.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read Only
Memory), the various media that can store program code such as magnetic disc or CD.In this way, the embodiment of the present invention is not limited to appoint
What specific hardware and software combines.
The embodiment of the present invention provides a kind of computer readable storage medium, and the computer-readable recording medium storage has one
A or multiple programs, one or more of programs can be executed by one or more processor, as described above to realize
Method for connecting network.
The above computer readable storage medium implements the description of item, is similar with above method description, has Tongfang
The identical advantageous effect of method embodiment.For undisclosed technical detail in computer readable storage medium embodiment of the present invention,
Those skilled in the art please refers to the description of the method for the present invention embodiment and understands.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is related with embodiment
A particular feature, structure, or characteristic includes at least one embodiment of the present invention.Therefore, occur everywhere in the whole instruction
" in one embodiment " or " in one embodiment " not necessarily refer to identical embodiment.In addition, these specific feature, knots
Structure or characteristic can in any suitable manner combine in one or more embodiments.It should be understood that in the various implementations of the present invention
In example, size of the sequence numbers of the above procedures is not meant that the order of the execution order, and the execution sequence of each process should be with its work(
It can determine that the implementation process of the embodiments of the invention shall not be constituted with any limitation with internal logic.The embodiments of the present invention
Serial number is for illustration only, can not represent the quality of embodiment.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only
A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as:Multiple units or component can combine, or
It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion
It can be the INDIRECT COUPLING by some interfaces, equipment or unit to divide mutual coupling or direct-coupling or communication connection
Or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be and be physically separated, aobvious as unit
The component shown can be or may not be physical unit;Both it can be located at a place, may be distributed over multiple network lists
In member;Some or all of wherein unit can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used
It, can also be during two or more units be integrated in one unit to be each unit individually as a unit;It is above-mentioned
The form that hardware had both may be used in integrated unit is realized, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in computer read/write memory medium, which exists
When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:Movable storage device read-only is deposited
The various media that can store program code such as reservoir (Read Only Memory, ROM), magnetic disc or CD.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product
Sale in use, can also be stored in a computer read/write memory medium.Based on this understanding, the present invention is implemented
Substantially the part that contributes to existing technology can be expressed in the form of software products the technical solution of example in other words,
The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with
It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention.
And storage medium above-mentioned includes:Various Jie that can store program code such as movable storage device, ROM, magnetic disc or CD
Matter.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of method for connecting network, which is characterized in that the method includes:
Obtain the network signal intensity for the first Wireless LAN that terminal currently connects;
The signal strength threshold of currently used application is determined according to pre-stored signal strength data library, it is described currently used
The usage time of application is more than preset time;
When the network signal intensity of first Wireless LAN is less than the signal strength threshold of the currently used application
When, the first Wireless LAN that the terminal currently connects is switched to mobile data network connection.
2. according to the method described in claim 1, it is characterized in that, in first WLAN for currently connecting terminal
When network is switched to mobile data network connection, the method further includes:
Obtain the terminal currently connection the first Wireless LAN when first position information and first currently connected
The first position information and the first network parameter information are stored in by the first network parameter information of Wireless LAN
In Wireless LAN table, first Wireless LAN is identified in the Wireless LAN table, the mark
Know the network signal intensity for being used to indicate first WLAN.
3. method according to claim 1 or 2, which is characterized in that currently connected in the acquisition terminal first wireless
Before the network signal intensity of local area network, including:
When terminal is in the second Wireless LAN connection status, the signal of all applications when in use in the terminal is obtained
All signal strength thresholds applied when in use and the correspondence of all applications are stored in institute by intensity threshold
It states in pre-stored signal strength data library, the network signal intensity of second Wireless LAN meets all applications
In any one using required signal strength.
4. according to the method described in claim 3, it is characterized in that, the signal strength data library that the basis is pre-stored determines and works as
The signal strength threshold of the preceding application used, including:
The application that prestores identical with the currently used application is searched in the pre-stored signal strength data library, is determined
It prestores using the corresponding signal strength threshold that signal strength threshold is the currently used application that prestores with described.
5. method according to claim 1 or 2, which is characterized in that in first nothing for currently connecting the terminal
Line local area network is switched to after mobile data network connection, including:
In terminal moving process, the second network ginseng of the second position information and third Wireless LAN where terminal is obtained
Number information;
According to the second position information and second net-work parameter information determine the third Wireless LAN whether
In the Wireless LAN table;
If the third Wireless LAN identifies in the Wireless LAN table in the Wireless LAN table
The network signal intensity of third Wireless LAN is strong, and the current network connection of terminal is switched to the third wireless local
Network connection;
If the third Wireless LAN identifies in the Wireless LAN table in the Wireless LAN table
The network signal intensity of third Wireless LAN is network connection that is weak, keeping terminal current;
If the third Wireless LAN obtains the third Wireless LAN not in the Wireless LAN table
Network signal intensity, according to the signal strength of the network signal intensity of the third Wireless LAN and currently used application
Threshold value determines the connection of network, and second net-work parameter information and the second are stored in the Wireless LAN table
Confidence ceases, and is identified to the network signal intensity of the third Wireless LAN in the Wireless LAN table.
6. a kind of terminal, which is characterized in that the terminal includes:Processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing the network attachment procedure stored in memory, to realize following steps:
Obtain the network signal intensity for the first Wireless LAN that terminal currently connects;
The signal strength threshold of currently used application is determined according to pre-stored signal strength data library, it is described currently used
The usage time of application is more than preset time;
When the network signal intensity of first Wireless LAN is less than the signal strength threshold of the currently used application
When, the first Wireless LAN that the terminal currently connects is switched to mobile data network connection.
7. terminal according to claim 6, which is characterized in that in first WLAN for currently connecting terminal
When network is switched to mobile data network connection, the processor is additionally operable to execute the network attachment procedure stored in memory, with
Realize following steps:
Obtain the terminal currently connection the first Wireless LAN when first position information and first currently connected
The first position information and the first network parameter information are stored in by the first network parameter information of Wireless LAN
In Wireless LAN table, first Wireless LAN is identified in the Wireless LAN table, the mark
Know the network signal intensity for being used to indicate first WLAN.
8. the terminal described according to claim 6 or 7, which is characterized in that currently connected in the acquisition terminal first wireless
Before the network signal intensity of local area network, the processor is additionally operable to execute the network attachment procedure stored in memory, with
Realize following steps:
When terminal is in the second Wireless LAN connection status, the signal of all applications when in use in the terminal is obtained
All signal strength thresholds applied when in use and the correspondence of all applications are stored in institute by intensity threshold
It states in pre-stored signal strength data library, the network signal intensity of second Wireless LAN meets all applications
In any one using required signal strength.
9. the terminal described according to claim 6 or 7, which is characterized in that in first nothing for currently connecting the terminal
Line local area network is switched to after mobile data network connection, and the processor is additionally operable to execute the network company stored in memory
Program is connect, to realize following steps:
In terminal moving process, the second network ginseng of the second position information and third Wireless LAN where terminal is obtained
Number information;
According to the second position information and second net-work parameter information determine the third Wireless LAN whether
In the Wireless LAN table;
If the third Wireless LAN identifies in the Wireless LAN table in the Wireless LAN table
The network signal intensity of third Wireless LAN is strong, and the current network connection of terminal is switched to the third wireless local
Network connection;
If the third Wireless LAN identifies in the Wireless LAN table in the Wireless LAN table
The network signal intensity of third Wireless LAN is network connection that is weak, keeping terminal current;
If the third Wireless LAN obtains the third Wireless LAN not in the Wireless LAN table
Network signal intensity, according to the signal strength of the network signal intensity of the third Wireless LAN and currently used application
Threshold value determines the connection of network, and second net-work parameter information and the second are stored in the Wireless LAN table
Confidence ceases, and is identified to the network signal intensity of the third Wireless LAN in the Wireless LAN table.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or
Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 5
Any one of described in method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810089648.9A CN108307462A (en) | 2018-01-30 | 2018-01-30 | A kind of method for connecting network, terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810089648.9A CN108307462A (en) | 2018-01-30 | 2018-01-30 | A kind of method for connecting network, terminal and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108307462A true CN108307462A (en) | 2018-07-20 |
Family
ID=62867467
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810089648.9A Withdrawn CN108307462A (en) | 2018-01-30 | 2018-01-30 | A kind of method for connecting network, terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108307462A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040958A (en) * | 2018-08-16 | 2018-12-18 | Oppo广东移动通信有限公司 | Method for connecting network, device, electronic equipment and computer readable storage medium |
CN111328120A (en) * | 2020-02-28 | 2020-06-23 | Oppo(重庆)智能科技有限公司 | Network connection method, device, electronic equipment and storage medium |
CN112492655A (en) * | 2020-11-17 | 2021-03-12 | 珠海格力电器股份有限公司 | Hotspot bearer network switching method, device, equipment and medium |
CN112738745A (en) * | 2019-10-14 | 2021-04-30 | Oppo广东移动通信有限公司 | Method for controlling network connection and related product |
CN112822681A (en) * | 2019-10-29 | 2021-05-18 | 中移物联网有限公司 | Network security detection method and device, floor sweeping robot and gateway |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102724738A (en) * | 2012-04-16 | 2012-10-10 | 中兴通讯股份有限公司 | Multimode terminal and method and device for selecting resident network for multimode terminal |
CN106304276A (en) * | 2016-07-29 | 2017-01-04 | 维沃移动通信有限公司 | A kind of wireless network processing method and mobile terminal |
CN106332307A (en) * | 2015-07-03 | 2017-01-11 | 华为技术有限公司 | Method for application program access to network and mobile terminal |
CN107438086A (en) * | 2016-05-27 | 2017-12-05 | 杨仲辉 | Application program uses reminding method |
-
2018
- 2018-01-30 CN CN201810089648.9A patent/CN108307462A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102724738A (en) * | 2012-04-16 | 2012-10-10 | 中兴通讯股份有限公司 | Multimode terminal and method and device for selecting resident network for multimode terminal |
CN106332307A (en) * | 2015-07-03 | 2017-01-11 | 华为技术有限公司 | Method for application program access to network and mobile terminal |
CN107438086A (en) * | 2016-05-27 | 2017-12-05 | 杨仲辉 | Application program uses reminding method |
CN106304276A (en) * | 2016-07-29 | 2017-01-04 | 维沃移动通信有限公司 | A kind of wireless network processing method and mobile terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040958A (en) * | 2018-08-16 | 2018-12-18 | Oppo广东移动通信有限公司 | Method for connecting network, device, electronic equipment and computer readable storage medium |
CN112738745A (en) * | 2019-10-14 | 2021-04-30 | Oppo广东移动通信有限公司 | Method for controlling network connection and related product |
CN112822681A (en) * | 2019-10-29 | 2021-05-18 | 中移物联网有限公司 | Network security detection method and device, floor sweeping robot and gateway |
CN111328120A (en) * | 2020-02-28 | 2020-06-23 | Oppo(重庆)智能科技有限公司 | Network connection method, device, electronic equipment and storage medium |
CN112492655A (en) * | 2020-11-17 | 2021-03-12 | 珠海格力电器股份有限公司 | Hotspot bearer network switching method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108307462A (en) | A kind of method for connecting network, terminal and computer readable storage medium | |
CN107027114A (en) | A kind of SIM card switching method, equipment and computer-readable recording medium | |
CN108234773A (en) | A kind of switching method of double-sided screen, terminal and storage medium | |
CN109618052A (en) | A kind of call audio switching method and device, mobile terminal and readable storage medium storing program for executing | |
CN108282771A (en) | A kind of network access management method, mobile terminal and computer readable storage medium | |
CN108182028A (en) | A kind of control method, terminal and computer readable storage medium | |
CN109743764A (en) | A kind of identification elevator scene method and device, mobile terminal device and storage medium | |
CN108537021A (en) | Unlocked by fingerprint method, terminal and computer readable storage medium based on double-sided screen | |
CN107707728A (en) | A kind of audio transmission switching method, terminal and computer-readable recording medium | |
CN110300435A (en) | A kind of communication pattern switching method, terminal and computer readable storage medium | |
CN107967056A (en) | Control method, terminal and the computer-readable recording medium of flexible screen | |
CN108200421A (en) | A kind of white balancing treatment method, terminal and computer readable storage medium | |
CN108307483A (en) | wireless network connecting method and mobile terminal | |
CN108540146A (en) | A kind of method, apparatus and computer storage media of antenna switching | |
CN110187808A (en) | Dynamic wallpaper setting method, device and computer readable storage medium | |
CN109768811A (en) | The control method of radiation dispersion, communication terminal and computer readable storage medium between double antenna | |
CN109683742A (en) | Prevent touch control device by error touch control method and device, touch control device and storage medium | |
CN108536383A (en) | A kind of game control method, equipment and computer readable storage medium | |
CN108600513A (en) | A kind of record screen control method, equipment and computer readable storage medium | |
CN108062669A (en) | A kind of method of payment, terminal and computer readable storage medium | |
CN108322602A (en) | A kind of method, terminal and computer readable storage medium handled using no response | |
CN107567013A (en) | A kind of signal switching method, terminal and computer-readable recording medium | |
CN108334302A (en) | A kind of sound transmission method, mobile terminal and computer readable storage medium | |
CN107678671A (en) | One kind applies startup method, terminal and computer-readable recording medium | |
CN109688268A (en) | A kind of method and device, mobile terminal and the storage medium of mixed audio output |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180720 |
|
WW01 | Invention patent application withdrawn after publication |