CN107277878B - Method for switching network, device and mobile terminal - Google Patents
Method for switching network, device and mobile terminal Download PDFInfo
- Publication number
- CN107277878B CN107277878B CN201710669491.2A CN201710669491A CN107277878B CN 107277878 B CN107277878 B CN 107277878B CN 201710669491 A CN201710669491 A CN 201710669491A CN 107277878 B CN107277878 B CN 107277878B
- Authority
- CN
- China
- Prior art keywords
- network
- switching
- cut
- information
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
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/0055—Transmission or use of information for re-establishing the radio link
- H04W36/0072—Transmission or use of information for re-establishing the radio link of resource information of target access point
-
- 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/16—Performing reselection for specific purposes
- H04W36/22—Performing reselection for specific purposes for handling the traffic
Abstract
The present invention is suitable for network switching technical field, provides a kind of method for switching network, device and mobile terminal.It include: to judge whether mobile terminal will carry out network switching;When judging that mobile terminal will carry out network switching, the information of switching network to be cut is obtained;Judge whether the switching network to be cut meets switching and require according to the information of the switching network to be cut, wherein the switching requires to include safety requirements and/or downstream rate requirement;When the switching network to be cut meets switching and requires, the switching network to be cut is switched to from current network;When the switching network to be cut does not meet switching and requires, the switching network to be cut is not switched to, keeps the connection with current network.By the above method, it can guarantee that the network of switching is all the network for meeting safety requirements and/or meeting downstream rate requirement.
Description
Technical field
The invention belongs to network switching technical field more particularly to a kind of method for switching network, device and mobile terminal.
Background technique
Currently, people's using terminal equipment access network can obtain various information, in the process of access network
In, the switching that is usually directed between heterogeneous networks.
In existing method for switching network, including switching to open wireless network from data network, alternatively, from a nothing
Gauze network switches to another wireless network.But during network switching, the type of network is usually only considered, such as from data
Network switching is avoided to open wireless network using the increased campus network of data network, and in actual conditions
In, the new network detected is most likely undesirable, for example, not meeting safety requirements, and is accessed unsafe
Network will make the information of user be in unsafe network environment, therefore most probably cause the leakage of information or property damage of user
It loses.
Therefore need to propose a kind of new scheme, to solve the above technical problems.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of method for switching network, device and mobile terminal, it is existing to solve
In handover network, to be switched network does not meet safety requirements and/or does not meet downstream rate requirement technology, so as to cause shifting
Move the leakage of the information of terminal and/or the problem that downloading rate is excessively slow.
The first aspect of the embodiment of the present invention provides a kind of method for switching network, comprising:
Judge whether mobile terminal will carry out network switching;
When judging that mobile terminal will carry out network switching, the information of switching network to be cut is obtained;
Judge whether the switching network to be cut meets switching and require according to the information of the switching network to be cut, wherein described
Switching requires to include safety requirements and/or downstream rate requirement;
When the switching network to be cut meets switching and requires, the switching network to be cut is switched to from current network;
When the switching network to be cut does not meet switching and requires, the switching network to be cut is not switched to, is kept and current net
The connection of network.
The second aspect of the embodiment of the present invention provides a kind of network switching device, comprising:
Whether network switching judging unit is carried out, for judging whether mobile terminal will carry out network switching;
The information acquisition unit of switching network to be cut, for obtaining when judging that mobile terminal will carry out network switching
The information of switching network to be cut;
Switching requires whether meet judging unit, for judging the draping to be cut according to the information of the switching network to be cut
Whether network, which meets switching, requires, wherein the switching requires to include safety requirements and/or downstream rate requirement;
Network switch unit, for being switched to from current network described when the switching network to be cut meets switching and requires
Switching network to be cut;
Network not switch unit, for not switching to described to be cut when the switching network to be cut does not meet switching and requires
Switching network keeps the connection with current network.
The third aspect of the embodiment of the present invention provides a kind of mobile terminal, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
It realizes such as the step of any one of method for switching network the method.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, realizes as described in any one of method for switching network when the computer program is executed by processor
The step of method.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
Due to judging whether the switching network to be cut meets the requirements according to the information of switching network to be cut before handover network,
For example, judging that the switching requires whether to meet safety requirements and/or meets downstream rate requirement, if meeting the requirements, just execute
Otherwise the switching of network does not execute the switching of network, thereby it is ensured that switching network be all meet safety requirements and/or
Meet the network of downstream rate requirement.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow chart for method for switching network that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram for mobile terminal that the embodiment of the present invention one provides;
Fig. 3 is a kind of structural schematic diagram of network switching device provided by Embodiment 2 of the present invention;
Fig. 4 is the schematic diagram for the mobile terminal that the embodiment of the present invention three provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one:
Fig. 1 shows a kind of flow chart of method for switching network of first embodiment of the invention offer, and details are as follows:
Step S11, judges whether mobile terminal will carry out network switching.
Specifically, the type information of the current network of acquisition for mobile terminal access, according to the judgement access of the type information
Whether the type of current network is data network, if data network, continues to determine whether to detect available wifi hotspot, if
It detects available wifi hotspot, then determines that the mobile terminal will carry out network switching;If the type of the current network of access
For wifi network, then judge whether the signal strength of the wifi network is less than preset signal strength threshold, if being less than preset
Signal strength threshold then continues to determine whether to detect that (the available network includes data network and wifi network to available network
Network), if detecting available network, determine that the mobile terminal will carry out network switching.
Alternatively it is also possible to judge whether the mobile terminal will carry out network according to the position that mobile terminal is presently in
Switching.Specifically, when judging position that mobile terminal is presently in is preset position, determine that the mobile terminal will be into
Row network switching, wherein preset position can be manually set, or after the probability by the switching of mobile terminal statistics network itself
Setting, for example, being greater than predetermined probabilities threshold value in the probability that position X carries out network switching when mobile terminal counts mobile terminal
When, determine that mobile terminal will carry out network switching in the position.
Wherein, which includes mobile phone.The schematic diagram of the mobile phone is as shown in Fig. 2, in Fig. 2, the mobile terminal packet
Include memory 201, processor 202, input equipment 203, output equipment 204, bus 205.
Step S12 obtains the information of switching network to be cut when judging that mobile terminal will carry out network switching.
It should be pointed out that when detecting multiple available networks, according to preset rules select one of network as
Switching network to be cut.For example, when being detected simultaneously by available data network and one or more wifi networks, if the data network
The downstream rate of network and the maximum downstream rate of wifi network are identical, then the wifi network with maximum downstream rate may be selected and make
For switching network to be cut.Wherein, downstream rate can by from predetermined server downloading fixed size (usually less than 1M) file, then
It is determined according to download time.
Alternatively, as the wifi for being detected simultaneously by available data network and one or more open (without authentication information)
When network, in order to guarantee to access the completeness of network, the data network may be selected as switching network to be cut.
Optionally, the information of the switching network to be cut includes service set and/or base station number, at this point, the step
S12 includes:
A1, judge whether the switching network to be cut is wifi network, when the switching network to be cut is wifi network, obtain
The service set of the wifi network.Wherein, service set (Service Set Identifier, SSID) technology can be with
One WLAN is divided into several sub-networks for needing different identity to verify, each sub-network requires independent identity
Verifying only can just enter corresponding sub-network by the user of authentication, prevent unauthorized user from entering Home Network
Network, therefore, the SSID of wifi network being capable of the unique identification wifi network.
A2, the switching network to be cut be data network when, obtain the base station number of the data network.Here base station
Number (CellId) refers to the number ID of mobile terminal (such as mobile phone) signal coverage areas.
Step S13 judges whether the switching network to be cut meets switching and require according to the information of the switching network to be cut,
In, the switching requires to include safety requirements and/or downstream rate requirement.
Optionally, when meet switching require refer to that the step S13 includes: when meeting safety requirements
The linkage record that B1, acquisition prestore, the linkage record prestored includes the letter for the network that mobile terminal once connected
Breath.Specifically, when the information of switching network to be cut includes service set and/or base station number, then the linkage record packet that prestores
Include the service set and/or base station number of the network that mobile terminal once connected.Certainly, in order to guarantee the linkage record prestored
The information of the network of storage is the information of the network of the safety by verifying, the then information of the network of the linkage record storage prestored
To establish connection with mobile terminal, and the duration for establishing connection is more than the information of the network of preset duration threshold value.Due to user or
When mobile terminal judges that the network of access is dangerous, the connection with the network is usually actively disconnected, therefore, by filtering and is moved
Dynamic terminal establishes connection, and establish connection duration be no more than preset duration threshold value network can filter out it is a part of dangerous
Network.
B2, by the linkage record prestored compared with the information of the switching network to be cut.Specifically, when switching network to be cut
Information be service set (or base station number) when, then by the service set (or base station number) of the linkage record prestored with
The service set (or base station number) of switching network to be cut compares.
B3, the linkage record prestored exist information identical with the information of the switching network to be cut when, determine institute
It states switching network to be cut and meets switching requirement.
B4, the linkage record prestored be not present information identical with the information of the switching network to be cut when, obtain
The blacklist prestored, the blacklist prestored include the information for forbidding the network of connection.Specifically, user can be stored in advance one
It part include the blacklist for forbidding the information of network of connection, it is subsequent when mobile terminal or user judge newly to detect or newly connects
Network is unsafe network, alternatively, when the network of jitter, by unsafe network or the network of jitter
Corresponding information is added in blacklist, to update the blacklist prestored.
B5, when there is information identical with the information of the switching network to be cut in the blacklist prestored, described in judgement
Switching network to be cut does not meet switching and requires.
Optionally, the method for switching network further include:
B6, the blacklist prestored be not present information identical with the information of the switching network to be cut when, pass through shifting
Switching network to be cut described in the system access of dynamic terminal, and preset data are sent to specified services by the switching network to be cut
Device.It should be pointed out that then being waited for this when the information of the information of switching network to be cut and the network of blacklist storage is different from
Handover network carries out safety detection.Specifically, setting only allows switching network to be cut described in the system access of mobile terminal, but does not permit
Perhaps the other application of mobile terminal installation accesses the switching network to be cut (for the other application energy for guaranteeing mobile terminal installation
Network communication is enough carried out, then continues the communication connection of the other application for keeping the mobile terminal to install and current network), in order to avoid should
The other application of mobile terminal installation leads to the leakage of data due to accessing unsafe network.When the system access of mobile terminal
After the switching network to be cut, then a connection is initiated, such as initiates a hypertext transfer protocol (HyperText Transfer
Protocol, HTTP) it is connected to specified server, to send preset data to the given server.Wherein, this is preset
Data are usually meaningless data, or are the data of encryption, which is server trusty.
B7, the return value for receiving the given server, judge whether the switching network to be cut accords with according to the return value
Switching is closed to require.Specifically, judge whether the return value of given server is identical as preset standard value, if they are the same, then determines
Switching network to be cut meets switching and requires, and otherwise, showing the return value of the given server, there may be network connections to be held as a hostage, or
Person is monitored, at this point, determining that switching network to be cut does not meet switching and requires.
Optionally, when meet switching require refer to meet downstream rate require when, the step S13 includes:
The downstream rate of C1, the downstream rate for obtaining the switching network to be cut and current network.
C2, judge whether the downstream rate of the switching network to be cut is greater than the downstream rate of the current network, if so, sentencing
The fixed switching network to be cut meets switching and requires, if it is not, determining that the switching network to be cut does not meet switching and requires.
Certainly, when meeting switching requirement can also require including safety requirements and downstream rate simultaneously, the step S13 is specific
The following steps are included: step B1;Step B2;Exist in the linkage record prestored identical as the information of the switching network to be cut
Information when, obtain the downstream rate of the switching network to be cut and the downstream rate of current network;Step C2.
Step S14 switches to the draping to be cut from current network when the switching network to be cut meets switching and requires
Network.
Step S15 does not switch to the switching network to be cut when the switching network to be cut does not meet switching and requires, and keeps
With the connection of current network.
In first embodiment of the invention, judge whether mobile terminal will carry out network switching, is judging mobile terminal
When will carry out network switching, the information of switching network to be cut is obtained, is judged according to the information of the switching network to be cut described to be cut
Whether switching network, which meets switching, requires, when the switching network to be cut meets switching and requires, from current network switch to it is described to
Handover network does not switch to the switching network to be cut when the switching network to be cut does not meet switching and requires, and keeps and current net
The connection of network.Due to judging whether the switching network to be cut meets the requirements according to the information of switching network to be cut before handover network,
For example, judging that the switching requires whether to meet safety requirements and/or meets downstream rate requirement, if meeting the requirements, just execute
Otherwise the switching of network does not execute the switching of network, thereby it is ensured that switching network be all meet safety requirements and/or
The network for meeting downstream rate requirement, to can be improved the information of mobile terminal when the network of switching meets safety requirements
Safety, the network of switching meet downstream rate require when, can be improved data transmission rate.
Embodiment two:
Corresponding with a kind of method for switching network that embodiment one provides, Fig. 3 shows second embodiment of the invention offer
A kind of structural schematic diagram of network switching device, the network switching device can be applied in mobile terminal, for ease of description, only
Show part related to the embodiment of the present invention:
The network switching device includes: whether to carry out the acquisition of information list of network switching judging unit 31, switching network to be cut
Member 32, switching require whether meet judging unit 33, network switch unit 34, network not switch unit 35.Wherein:
Whether network switching judging unit 31 is carried out, for judging whether mobile terminal will carry out network switching.
Specifically, the type information for obtaining the current network of access, according to the current network of the type information judgement access
Type whether be data network, if data network, continue to determine whether to detect available wifi hotspot, can if detecting
Wifi hotspot then determines that the mobile terminal will carry out network switching;If the type of the current network of access is wifi network
Network, then judge whether the signal strength of the wifi network is less than preset signal strength threshold, if being less than preset signal strength
Threshold value then continues to determine whether to detect available network (the available network includes data network and wifi network), if inspection
Available network is measured, then determines that the mobile terminal will carry out network switching.
Alternatively it is also possible to judge whether the mobile terminal will carry out network according to the position that mobile terminal is presently in
Switching.Specifically, when judging position that mobile terminal is presently in is preset position, determine that the mobile terminal will be into
Row network switching, wherein preset position can be manually set, or after the probability by the switching of mobile terminal statistics network itself
Setting.
The information acquisition unit 32 of switching network to be cut, for obtaining when judging that mobile terminal will carry out network switching
Take the information of switching network to be cut.
It should be pointed out that when detecting multiple available networks, according to preset rules select one of network as
Switching network to be cut.For example, when being detected simultaneously by available data network and one or more wifi networks, if the data network
The downstream rate of network and the maximum downstream rate of wifi network are identical, then the wifi network with maximum downstream rate may be selected and make
For switching network to be cut.Wherein, downstream rate can by from predetermined server downloading fixed size (usually less than 1M) file, then
It is determined according to download time.
Alternatively, as the wifi for being detected simultaneously by available data network and one or more open (without authentication information)
When network, in order to guarantee to access the completeness of network, the data network may be selected as switching network to be cut.
Optionally, the information of the switching network to be cut includes service set and/or base station number, at this point, described to be cut
The information acquisition unit 32 of switching network includes:
Service set obtains module, for judging whether the switching network to be cut is wifi network, described to be switched
When network is wifi network, the service set of the wifi network is obtained.
Base station number obtains module, for obtaining the data network when the switching network to be cut is data network
Base station number.
Switching requires whether meet judging unit 33, described to be switched for being judged according to the information of the switching network to be cut
Whether network, which meets switching, requires, wherein the switching requires to include safety requirements and/or downstream rate requirement.
Optionally, require to refer to whether switching requirement meets judging unit when meeting safety requirements when meeting switching
33 include:
Linkage record obtains module, and for obtaining the linkage record prestored, the linkage record prestored includes mobile whole
Hold the information of the network once connected.Specifically, when the information of switching network to be cut includes service set and/or base station number,
The linkage record then prestored includes the service set and/or base station number for the network that mobile terminal once connected.Certainly, in order to
The information for guaranteeing the network of the linkage record prestored storage is the information of the network of the safety by verifying, then the connection note prestored
The information of the network of address book stored is the network that the duration established connection with mobile terminal, and establish connection is more than preset duration threshold value
Information.
Information comparison module, for by the linkage record prestored compared with the information of the switching network to be cut.
Switching requires to meet determination module, for there is the letter with the switching network to be cut in the linkage record prestored
When ceasing identical information, determine that the switching network to be cut meets switching and requires.
Blacklist obtains module, in the linkage record prestored, there is no the information phases with the switching network to be cut
With information when, obtain the blacklist prestored, the blacklist prestored includes the information for forbidding the network of connection.Specifically,
It includes the blacklist for forbidding the information of network of connection that user, which can be stored in advance a, subsequent when mobile terminal or user are judged
The new network for detecting or newly connecting is unsafe network, alternatively, when the network of jitter, by unsafe network or
The corresponding information of the network of jitter is added in blacklist, to update the blacklist prestored.
Switching requires not meeting determination module, for there is the letter with the switching network to be cut in the blacklist prestored
When ceasing identical information, determine that the switching network to be cut does not meet switching and requires.
Optionally, the network switching device further include:
Preset data transmission blocks, for there is no the information with the switching network to be cut in the blacklist prestored
When identical information, switching network to be cut described in the system access by mobile terminal, and sent in advance by the switching network to be cut
If data to given server.Specifically, setting only allows switching network to be cut described in the system access of mobile terminal, but does not permit
Perhaps the other application of mobile terminal installation accesses the switching network to be cut (for the other application energy for guaranteeing mobile terminal installation
Network communication is enough carried out, then continues the communication connection of the other application for keeping the mobile terminal to install and current network), in order to avoid should
The other application of mobile terminal installation leads to the leakage of data due to accessing unsafe network.When the system access of mobile terminal
After the switching network to be cut, then a connection is initiated, such as initiates a HTTP and be connected to specified server, it is preset to send
Data are to the given server.Wherein, which is usually meaningless data, or is the data of encryption, this refers to
Determining server is server trusty.
Return value receiving module, for receiving the return value of the given server, according to return value judgement
Whether switching network to be cut, which meets switching, requires.Specifically, judge the return value of given server and preset standard value whether phase
Together, if they are the same, then determine that switching network to be cut meets switching and requires, otherwise, show the return value of the given server there may be
Network connection is held as a hostage, or monitored, at this point, determining that switching network to be cut does not meet switching and requires.
Optionally, when meeting switching and requiring to refer to that meeting downstream rate requires, whether switching requirement meets judgement
Unit 33 includes:
Downstream rate obtains module, for obtaining the downstream rate of the switching network to be cut and the lower scanning frequency of current network
Rate.
Downstream rate comparison module, for judging whether the downstream rate of the switching network to be cut is greater than the current network
Downstream rate, if so, determining that the switching network to be cut meets switching and requires, if it is not, determining that the switching network to be cut is not met
Switching requires.
Certainly, when meeting switching requirement can also require including safety requirements and downstream rate simultaneously, the switching requirement is
The no judging unit 33 that meets includes: that linkage record obtains module, the downlink of information comparison module, switching network to be cut and current network
Rate obtains module and downstream rate comparison module.
Wherein, the downstream rate of switching network to be cut and current network obtains module, in the linkage record prestored
When in the presence of information identical with the information of the switching network to be cut, the downstream rate of the acquisition switching network to be cut and current net
The downstream rate of network.
Network switch unit 34, for switching to institute from current network when the switching network to be cut meets switching and requires
State switching network to be cut.
Network not switch unit 35, for when the switching network to be cut does not meet switching and requires, do not switch to it is described to
Handover network keeps the connection with current network.
In second embodiment of the invention, due to judging that this is to be cut according to the information of switching network to be cut before handover network
Whether switching network meets the requirements, for example, judging that the switching requires whether to meet safety requirements and/or meet downstream rate to want
It asks, if meeting the requirements, otherwise the switching for just executing network does not execute the switching of network, thereby it is ensured that the network of switching
It is all the network for meeting safety requirements and/or meeting downstream rate requirement.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Embodiment three:
Fig. 4 is the schematic diagram for the mobile terminal that one embodiment of the invention provides.As shown in figure 4, the mobile end of the embodiment
End 4 includes: processor 40, memory 41 and is stored in the meter that can be run in the memory 41 and on the processor 40
Calculation machine program 42.The processor 40 realizes that above-mentioned each wifi hotspot management method is implemented when executing the computer program 42
Step in example, such as step S11 to S15 shown in FIG. 1.Alternatively, when the processor 40 executes the computer program 42
Realize the function of each module/unit in above-mentioned each Installation practice, such as the function of module 31 to 35 shown in Fig. 3.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the mobile terminal 4 is described.For example, the computer program 42 can be divided
Be cut into and whether carry out network switching judging unit, the information acquisition unit of switching network to be cut, switching require whether to meet judgement it is single
Switch unit, each unit concrete function be not as follows for member, network switch unit, network:
Whether network switching judging unit is carried out, for judging whether mobile terminal will carry out network switching;
The information acquisition unit of switching network to be cut, for obtaining when judging that mobile terminal will carry out network switching
The information of switching network to be cut;
Switching requires whether meet judging unit, for judging the draping to be cut according to the information of the switching network to be cut
Whether network, which meets switching, requires, wherein the switching requires to include safety requirements and/or downstream rate requirement;
Network switch unit, for being switched to from current network described when the switching network to be cut meets switching and requires
Switching network to be cut;
Network not switch unit, for not switching to described to be cut when the switching network to be cut does not meet switching and requires
Switching network keeps the connection with current network.
The mobile terminal 4 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The mobile terminal may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4
The only example of mobile terminal 4 does not constitute the restriction to mobile terminal 4, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the mobile terminal can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the mobile terminal 4, such as the hard disk or interior of mobile terminal 4
It deposits.The memory 41 is also possible to the External memory equipment of the mobile terminal 4, such as be equipped on the mobile terminal 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the mobile terminal 4
Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the mobile terminal
Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (5)
1. a kind of method for switching network characterized by comprising
Judge whether mobile terminal will carry out network switching;
When judging that mobile terminal will carry out network switching, the information of switching network to be cut is obtained, the switching network to be cut
Information includes service set and/or base coded;
Judge whether the switching network to be cut meets switching and require according to the information of the switching network to be cut, wherein the switching
Require to include safety requirements and/or downstream rate requirement;
When the switching network to be cut meets switching and requires, the switching network to be cut is switched to from current network;
When the switching network to be cut does not meet switching and requires, the switching network to be cut is not switched to, is kept and current network
Connection;
It is described to judge whether mobile terminal carry out network switching, comprising:
When the position that mobile terminal is presently in is preset position, determine that the mobile terminal will carry out network switching, institute
It states the predeterminated position that preset position includes artificial settings and is set after the probability that person is switched by mobile terminal statistics network itself
Fixed position;
The information according to the switching network to be cut judges whether the switching network to be cut meets switching and require, comprising:
The linkage record prestored is obtained, the linkage record prestored includes the information for the network that mobile terminal once connected;
By the linkage record prestored compared with the information of the switching network to be cut;
When the linkage record prestored has information identical with the information of the switching network to be cut, determine described to be switched
Network meets switching and requires;
The linkage record prestored be not present information identical with the information of the switching network to be cut when, obtain prestore it is black
List, the blacklist prestored include the information for forbidding the network of connection;
When the blacklist prestored has information identical with the information of the switching network to be cut, the draping to be cut is determined
Network does not meet switching and requires;
When information identical with the information of the switching network to be cut is not present in the blacklist prestored, pass through mobile terminal
Switching network to be cut described in system access, setting only allows switching network to be cut described in the system access of mobile terminal, but does not allow this
The other application of mobile terminal installation accesses the switching network to be cut, and sends preset data by the switching network to be cut and extremely refer to
Determine server;
The return value for receiving the given server judges whether the switching network to be cut meets switching and want according to the return value
It asks.
2. method for switching network as described in claim 1, which is characterized in that the information according to the switching network to be cut is sentenced
Whether the switching network to be cut that breaks, which meets switching, requires, comprising:
Obtain the downstream rate of the switching network to be cut and the downstream rate of current network;
Judge whether the downstream rate of the switching network to be cut is greater than the downstream rate of the current network, if so, described in determining
Switching network to be cut meets switching and requires, if it is not, determining that the switching network to be cut does not meet switching and requires.
3. a kind of network switching device characterized by comprising
Whether network switching judging unit is carried out, for judging whether mobile terminal will carry out network switching;
The information acquisition unit of switching network to be cut, for obtaining to be cut when judging that mobile terminal will carry out network switching
The information of switching network, the information of the switching network to be cut include service set and/or base coded;
Switching requires whether meet judging unit, for judging that the switching network to be cut is according to the information of the switching network to be cut
It is no to meet switching requirement, wherein the switching requires to include safety requirements and/or downstream rate requirement;
Network switch unit, for being switched to from current network described to be cut when the switching network to be cut meets switching and requires
Switching network;
Network not switch unit, for not switching to the draping to be cut when the switching network to be cut does not meet switching and requires
Network keeps the connection with current network;
It is described whether to carry out network switching judging unit, for judging whether mobile terminal will carry out network switching, comprising:
When the position that mobile terminal is presently in is preset position, determine that the mobile terminal will carry out network switching, institute
Preset position is stated to include the predeterminated position being manually set or set after the probability switched by mobile terminal statistics network itself
Fixed position;
The switching requires whether to meet judging unit
Linkage record obtains module, for obtaining the linkage record prestored, the linkage record prestored include mobile terminal once
The information of the network of connection;
Information comparison module, for by the linkage record prestored compared with the information of the switching network to be cut;
Switching requires to meet determination module, for there is the information phase with the switching network to be cut in the linkage record prestored
With information when, determine that the switching network to be cut meets switching and requires;
Blacklist obtains module, in the linkage record prestored, there is no identical with the information of the switching network to be cut
When information, the blacklist prestored is obtained, the blacklist prestored includes the information for forbidding the network of connection;
Switching requires not meeting determination module, for there is the information phase with the switching network to be cut in the blacklist prestored
With information when, determine that the switching network to be cut does not meet switching and requires;
Letter identical with the information of the switching network to be cut is not present in the blacklist prestored in preset data transmission blocks
When breath, switching network to be cut described in the system access by mobile terminal, setting only allow mobile terminal system access described in
Handover network, but the other application for not allowing the mobile terminal to install accesses the switching network to be cut, and passes through the draping to be cut
Network sends preset data to given server;
Return value receiving module receives the return value of the given server, judges the draping to be cut according to the return value
Whether network, which meets switching, requires.
4. a kind of mobile terminal, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 2 when executing the computer program
The step of any one the method.
5. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 2 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710669491.2A CN107277878B (en) | 2017-08-08 | 2017-08-08 | Method for switching network, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710669491.2A CN107277878B (en) | 2017-08-08 | 2017-08-08 | Method for switching network, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107277878A CN107277878A (en) | 2017-10-20 |
CN107277878B true CN107277878B (en) | 2019-03-29 |
Family
ID=60076721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710669491.2A Active CN107277878B (en) | 2017-08-08 | 2017-08-08 | Method for switching network, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107277878B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107708141B (en) * | 2017-11-27 | 2020-01-10 | Oppo广东移动通信有限公司 | Wireless network scanning method, mobile terminal and storage medium |
CN109963311B (en) * | 2017-12-26 | 2021-09-17 | 飞狐信息技术(天津)有限公司 | Network switching method, system, network switching equipment and storage medium |
CN108093450B (en) * | 2018-01-08 | 2020-04-10 | 平安科技(深圳)有限公司 | Network switching method and terminal equipment |
CN108632823A (en) * | 2018-05-14 | 2018-10-09 | Oppo广东移动通信有限公司 | A kind of method for switching network, terminal and computer storage media |
CN112437476A (en) * | 2020-12-08 | 2021-03-02 | 努比亚技术有限公司 | Network switching control method and device, intelligent terminal and readable storage medium |
CN114125974A (en) * | 2021-12-03 | 2022-03-01 | Oppo广东移动通信有限公司 | Cell selection method, device, terminal and storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10051078B2 (en) * | 2007-06-12 | 2018-08-14 | Icontrol Networks, Inc. | WiFi-to-serial encapsulation in systems |
US9398525B2 (en) * | 2013-03-14 | 2016-07-19 | Qualcomm Incorporated | Selecting a network for a wireless device |
WO2015180138A1 (en) * | 2014-05-30 | 2015-12-03 | Apple Inc. | Methods and apparatus to support parallel communication for multiple subscriber identities in a wireless communication device |
CN106304278A (en) * | 2015-05-19 | 2017-01-04 | 中兴通讯股份有限公司 | Network selecting method, device and mobile terminal |
CN105163355A (en) * | 2015-09-29 | 2015-12-16 | 努比亚技术有限公司 | Method and device for switching networks of mobile terminal |
CN105916145A (en) * | 2016-04-19 | 2016-08-31 | 上海卓易科技股份有限公司 | Cellphone WIFI intelligent locking method |
CN106231595B (en) * | 2016-07-29 | 2020-05-22 | Tcl科技集团股份有限公司 | Wireless hotspot selection method and system |
-
2017
- 2017-08-08 CN CN201710669491.2A patent/CN107277878B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107277878A (en) | 2017-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107277878B (en) | Method for switching network, device and mobile terminal | |
CN107295594B (en) | Method for switching network, device and mobile terminal | |
JP3585422B2 (en) | Access point device and authentication processing method thereof | |
CN103249047B (en) | The access authentication method and device of WLAN hot spot | |
CN102791016B (en) | Access processing method and device | |
CN109041140B (en) | Method for rapidly switching wireless network, intelligent hardware and terminal equipment | |
CN107223326A (en) | A kind of network access authority management method and relevant device | |
CN113206814B (en) | Network event processing method and device and readable storage medium | |
CN110461024B (en) | Method for automatically connecting intelligent equipment and router, router and intelligent equipment | |
CN107404740B (en) | Method for switching network, device and the terminal device of safety | |
CN104469977B (en) | Method of mobile communication, device and system | |
US20160373925A1 (en) | Method and apparatus for interconnection between terminal device and gateway device | |
CN112202844B (en) | Method and equipment for opening cross-domain multi-access edge computing capability | |
CN108770008A (en) | Configuration method, device and the storage medium that household appliance networks | |
CN106656547A (en) | Method and apparatus for updating network configuration of household electrical appliances | |
CN108196458A (en) | Intelligent home equipment control method, device and terminal device | |
CN107395633A (en) | A kind of network detecting method, network detection means and intelligent terminal | |
CN110012517A (en) | Relay transmission method, device, mobile terminal and storage medium | |
CN104869621B (en) | A kind of Network Recognition method and apparatus | |
CN108093097A (en) | The connection method of camera and home gateway and home gateway | |
CN109246690A (en) | Method for network access, device, storage medium and processor | |
CN107396316B (en) | Method for switching network, device and terminal device | |
CN108024241A (en) | Terminal accessing authentication method, system and authentication server | |
CN113038467B (en) | Event information reporting method and communication device | |
CN107484165B (en) | Wireless local area network access control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |