CN106792818A - Data network changing method, device and terminal device based on network speed - Google Patents
Data network changing method, device and terminal device based on network speed Download PDFInfo
- Publication number
- CN106792818A CN106792818A CN201611218147.3A CN201611218147A CN106792818A CN 106792818 A CN106792818 A CN 106792818A CN 201611218147 A CN201611218147 A CN 201611218147A CN 106792818 A CN106792818 A CN 106792818A
- Authority
- CN
- China
- Prior art keywords
- identification card
- network
- speed
- current
- network speed
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- 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
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a kind of data network switching based on network speed, device and terminal device, wherein, method includes:In response to the network access request of current application, the corresponding network switching of current identification card is opened, network is connected by current identification card;When the corresponding network speed of the current identification card reaches switching condition, the corresponding network of at least one standby identification card is performed and is tested the speed, the corresponding network speed of all standby identification card and the corresponding network speed of current identification card obtained based on testing the speed, obtain obtaining the first identification card of most fast network speed;It is switched to the first identification card connection network.The embodiment of the present invention can be realized and provide the user most fast network speed by testing the speed and switching, to ensure that user can normally connect network, without because not good just use of the influence user to current application of current identification card correspondence network speed.
Description
Technical field
The present invention relates to Internet technical field, especially a kind of data network changing method based on network speed, device and
Terminal device.
Background technology
Smart machine has turned into the necessary equipment of people's routine work study, and smart machine generally provides two kinds of net
Network mode, one kind is cellular data network type, by the subscriber identification module card (Subscriber installed in smart machine
Identity Module, abbreviation SIM;Or User Identity Module, abbreviation UIM card) Virtual network operator above carry
For forth generation network (The fourth Generation, abbreviation 4G) being nowd provide, in the 5th generation (The fifth of future
Generation, abbreviation 5G) after network researches and develops successfully, will also popularize quickly.Another kind is WiFi network (Wireless Fidelity networking),
Two kinds of network types respectively have quality, and WiFi network is favored due to its low cost of surfing the Net by people, but because it is often
WiFi website suppliers are voluntarily set, in most cases, it is necessary to authorized could access, and cellular data network, by
Then Virtual network operator is provided, as long as in the region for having mobile network signals, it is possible to realize online, but due to its network coverage
Scope is big, easily cause different zones network signal and have differences, even if active user position region overlay 4G networks,
Networking speed may be also unstable, and with communication network technology development and the reduction of rate, the consumption of data network flux is not
It is again factor that user pays close attention to, user is more desirable to obtain whenever and wherever possible the online experience of smoothness, present most of intelligence
Energy equipment all supports double card.
Realize it is of the invention during, inventor has found that prior art at least has problems with:
If the network that the currently used SIM of user (or UIM cards) Virtual network operator is provided, networking speed is poor, then need
Want user to be manually switched to the network that the Virtual network operator of another SIM (or UIM cards) is provided, and cannot guarantee that and be switched to
New network, its network speed disclosure satisfy that the demand of user's currently online, thus cause the online experience of user not improve.
The content of the invention
An embodiment of the present invention technical problem to be solved is:In order that network speed can all the time meet user and work as
A kind of demand of preceding online, there is provided data network changing method based on network speed, including:
In response to the network access request of current application, the corresponding network switching of current identification card is opened, by working as
Preceding identification card connects network;
When the corresponding network speed of the current identification card reaches switching condition, at least one standby identification card
Corresponding network is performed and tested the speed, the corresponding network speed of all standby identification card obtained based on testing the speed and current identification card
Corresponding network speed, obtains obtaining the first identification card of most fast network speed;
It is switched to the first identification card connection network.
In another embodiment based on the above method, all standby identification card obtained based on testing the speed is corresponding
Network speed and the corresponding network speed of current identification card, obtain obtaining the first identification card of most fast network speed, including:
It is corresponding wherein most fast network speed network to be obtained based on being tested the speed to the corresponding network of at least one standby identification card
Whether the second identification card, judge the corresponding network speed of second identification card less than or equal to the current identification
Block corresponding network speed;
When whether the corresponding network speed of second identification card is corresponding less than or equal to the current identification card
During network speed, first identification card that can obtain most fast network speed is current identification card;
It is described to obtain when the corresponding network speed of second identification card network speed corresponding more than current identification card
The first identification card for obtaining most fast network speed is the second identification card.
It is described that the corresponding network of at least one standby identification card is tested the speed in another embodiment based on the above method
Obtaining corresponding second identification card of wherein most fast network speed network includes:
The corresponding network of at least one standby identification card is tested the speed and obtains the corresponding network speed of each standby identification,
All standby identification cards are sorted based on network speed, sequentially obtains corresponding second identification card of most fast network speed.
In another embodiment based on the above method, when be switched to be not current identification card the second identification card
After connection network, the corresponding network switching of current identification card is closed, open the corresponding network switching of the first identification card.
In another embodiment based on the above method, the switching condition includes:The current identification card is corresponding
Network speed is less than default network speed.
In another embodiment based on the above method, the switching condition includes:The current identification card is corresponding
Network speed is corresponding less than all current applications to preset minimum network speed sum.
In another embodiment based on the above method, the current application is including at least one foreground application and/or at least
One background application.
It is described that the corresponding network of at least one standby identification card is performed in another embodiment based on the above method
Before testing the speed, also include:
The data switch of all background applications is closed, and setting time is cached to all foreground applications, obtain correspondence described
The limited quantity of foreground application it is data cached.
In another embodiment based on the above method, also include:It is described corresponding at least one standby identification card
Network performs time of the time less than the foreground application reading cache data tested the speed.
It is described that the corresponding network of at least one standby identification card is performed in another embodiment based on the above method
Test the speed including:
The corresponding network switching of all standby identification cards is opened successively, to the corresponding net of each standby identification card
Network carries out testing the speed respectively and obtains at least one network speed of the standby identification card of correspondence.
It is described to open the network switching of the correspondence standby identification card in another embodiment based on the above method
Afterwards, also include:Start the data switch of background application.
In another embodiment based on the above method, the identification card includes client identification module or user's identification mould
Block.
In another embodiment based on the above method, the current identification card and standby identification card belong to different
Operator.
Other side according to embodiments of the present invention, there is provided a kind of data network switching device based on network speed, bag
Include:
Network access unit, for the network access request in response to current application, opens current identification card correspondence
Network switching, by current identification card connect network;
Test the speed unit, for when the corresponding network speed of the current identification card reaches switching condition, at least one
The corresponding network of standby identification card is performed and tested the speed, the corresponding network speed of all standby identification card obtained based on testing the speed and
The corresponding network speed of current identification card, obtains obtaining the first identification card of most fast network speed;
Network switch unit, for being switched to the first identification card connection network.
Another aspect according to embodiments of the present invention, there is provided a kind of terminal device, including as described above be based on net
The data network switching device of speed.
The data network changing method based on network speed, device and the terminal device provided based on the above embodiment of the present invention,
The network switching of current identification card answers the internet access of current application to ask to open, and is connected by current identification card
Network is connect, when the corresponding network speed of current identification card reaches switching condition, to the corresponding net of other standby identification cards
Network is tested the speed, and obtains the first most fast identification card of network speed, and is switched to the first identification card connection network, by surveying
Speed and switching, realize and provide the user most fast network speed, to ensure that user can normally connect network, without because working as
Preceding not good just use of the influence user to current application of identification card correspondence network speed.
Below by drawings and Examples, technical scheme is described in further detail.
Brief description of the drawings
The Description of Drawings embodiments of the invention of a part for specification are constituted, and together with description for explaining
Principle of the invention.
Referring to the drawings, according to following detailed description, the present invention can be more clearly understood from, wherein:
Fig. 1 is the flow chart of the inventive method one embodiment.
Fig. 2 is the structural representation of apparatus of the present invention one embodiment.
Fig. 3 is the structural representation of apparatus of the present invention a still further embodiment.
Fig. 4 is the structural representation of another embodiment of apparatus of the present invention.
Specific embodiment
Describe various exemplary embodiments of the invention in detail now with reference to accompanying drawing.It should be noted that:Unless had in addition
Body illustrates that the part and the positioned opposite of step, numerical expression and numerical value for otherwise illustrating in these embodiments do not limit this
The scope of invention.
Simultaneously, it should be appreciated that for the ease of description, the size of the various pieces shown in accompanying drawing is not according to reality
Proportionate relationship draw.
The description only actually at least one exemplary embodiment is illustrative below, never as to the present invention
And its any limitation applied or use.
May be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable
In the case of, the technology, method and apparatus should be considered as a part for specification.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it need not be further discussed in subsequent accompanying drawing.
The embodiment of the present invention can apply to computer system/server, and it can be with numerous other universal or special calculating
System environments or configuration are operated together.It is suitable to the well-known computing system, the ring that are used together with computer system/server
The example of border and/or configuration is included but is not limited to:Personal computer system, server computer system, thin client, thick client
Machine, hand-held or laptop devices, the system based on microprocessor, Set Top Box, programmable consumer electronics, NetPC Network PC,
Little types Ji calculates machine Xi Tong ﹑ large computer systems and the distributed cloud computing technology environment including any of the above described system, etc..
Computer system/server can be in computer system executable instruction (the such as journey performed by computer system
Sequence module) general linguistic context under describe.Generally, program module can include routine, program, target program, component, logic, number
According to structure etc., they perform specific task or realize specific abstract data type.Computer system/server can be with
Implement in distributed cloud computing environment, in distributed cloud computing environment, task is by by the long-range of communication network links
What reason equipment was performed.In distributed cloud computing environment, program module may be located at the Local or Remote meter including storage device
On calculation system storage medium.
Fig. 1 is the flow chart of the inventive method one embodiment.As shown in figure 1, the embodiment method includes:
Step 101, in response to the network access request of current application, opens the corresponding network of current identification card and opens
Close, network is connected by current identification card.
By the network access request of current application, opening network switch, on the one hand can save always on network and open
The electricity and data traffic for closing and consuming, on the other hand can realize different application correspondence heterogeneous networks, for example:To data traffic
Demand can be corresponded to than larger application and start the big network of flow, and the application smaller to data traffic demand amount can be corresponded to
Start the less network of flow.
Step 102, when the corresponding network speed of current identification card reaches switching condition, knows at least one standby identity
Do not block corresponding network execution to test the speed, the corresponding network speed of all standby identification card obtained based on testing the speed and current identity are known
Do not block corresponding network speed, obtain obtaining the first identification card of most fast network speed.
When judging whether the corresponding network speed of current identification card reaches switching condition, just complete and current identity is known
That does not block tests the speed, and, it is necessary to provide the user network speed more preferably network service when reaching network switching condition, now to all standby
Tested the speed with the corresponding network of identification card, all network speeds to obtaining are compared and can obtain network speed most fast first
Identification card.
Step 103, is switched to first identification card connection network.
The network switching of current identification card answers the internet access of current application to ask to open, and by current identity
Identification card connects network, when the corresponding network speed of current identification card reaches switching condition, to other standby identification cards
Corresponding network is tested the speed, and obtains the first most fast identification card of network speed, and be switched to the first identification card connection net
Network, by testing the speed and switching, realizes and provides the user most fast network speed, to ensure that user can normally connect network, and
Will not be because of not good just use of the influence user to current application of current identification card correspondence network speed.
In another embodiment of the inventive method, on the basis of above-described embodiment, obtained based on testing the speed in step 102
The corresponding network speed of all standby identification card and the corresponding network speed of current identification card, obtain that most fast network speed can be obtained
First identification card, including:
It is corresponding wherein most fast network speed network to be obtained based on being tested the speed to the corresponding network of at least one standby identification card
Whether the second identification card, judge the corresponding network speed of the second identification card less than or equal to current identification card correspondence
Network speed;
When the corresponding network speed of the second identification card network speed whether corresponding less than or equal to current identification card,
The first identification card that most fast network speed can be obtained is current identification card;
When the corresponding network speed of the second identification card network speed corresponding more than current identification card, can obtain most fast
First identification card of network speed is the second identification card.
Based on the present embodiment method, the corresponding network of all standby identification cards is tested the speed and compared, obtained institute
There is the second most fast identification card of network speed in the corresponding network of standby identification card, by the corresponding net of the second identification card
Fast network speed corresponding with current identification card is compared and is capable of achieving all standby identification cards and current identification
The network speed of card compares, and now the network speed of second identification card works as predecessor less than or equal to the network speed of current identification card
Part identification card is exactly the first most fast identification card of network speed, is now switched to the first identification card equivalent to not carrying out network
Switching;And when the network speed of second identification card is more than the network speed of current identification card, second identification card is
The first most fast identification card of network speed, can now realize network switching, provide the user the faster network service of network speed.
In above-mentioned another embodiment, the corresponding network of at least one standby identification card is tested the speed and obtains wherein most fast
Corresponding second identification card of network speed network includes:
The corresponding network of at least one standby identification card is tested the speed and obtains the corresponding network speed of each standby identification,
All standby identification cards are sorted based on network speed, sequentially obtains corresponding second identification card of most fast network speed.
Obtain the second most fast identification card of network speed in order to most fast, to testing the speed after all standby identification card base
It is ranked up in network speed, the speed after sequence for network speed just can more easily obtain the second identification card with very clear;
Standby identification card is ranked up based on network speed in this embodiment can be positive sequence (network speed have small to big), or
Inverted order (network speed is descending), has no effect on last result, also order direction is not defined.
In above-mentioned another embodiment, when be switched to be not current identification card the second identification card connect network
Afterwards, the corresponding network switching of current identification card is closed, the corresponding network switching of the first identification card is opened.
Ensure that disconnecting current network connects by closing the corresponding network switching of current identification card in the present embodiment,
Opening the corresponding network switching of the first identification card makes the connection of the first identification card more stable.
On the basis of the various embodiments described above, the switching condition can include:The corresponding network speed of current identification card is small
In default network speed.The default network speed is the minimum network speed of the requirement set according to user, when the network speed of current identification card is small
When default network speed, current identification card will be unable to meet demand of the user to network service, therefore, now need to network
Switch over.
Or, the switching condition can include:The current corresponding network speed of identification card is less than all current applications correspondence
Default minimum network speed sum.User starts at least one and applies, and each application, should with the minimum network speed needed for its startup
Minimum network speed is the guarantee that normally can be applied using correspondence, therefore, need to such as guarantee, using all applications having been turned on, to need
The network speed default minimum network speed sum corresponding more than or equal to current application of current identification card is wanted, otherwise, it is necessary to carry out
Network switching.
In the inventive method another embodiment, on the basis of the various embodiments described above, upper current application includes at least one
Individual foreground application and/or at least one background application.
The application for generally starting within one device is not only only included in the visible foreground application in foreground, is additionally included in backstage
The background application of startup, and foreground application and background application be required for consuming current identification after current network is connected
The network data for providing is provided, therefore, need to judge foreground application and background application jointly during network speed is judged.
In another embodiment of the invention, the corresponding network of at least one standby identification card is held in step 102
Before row tests the speed, also include:
The data switch of all background applications is closed, and setting time is cached to all foreground applications, obtain correspondence foreground
The limited quantity of application it is data cached.
In the present embodiment, current identification card meets network switching condition, it is necessary to current identification card is switched
To other identification cards, may there is the process of unstable networks in handoff procedure, therefore, by backstage in the present embodiment
The data switch of application is closed, in the data, services in current identification card is concentrated on foreground application, and to all foregrounds
Application cache setting time, will not be stopped with foreground application in network switching process with ensureing to be tested the speed in network because network is unstable
Only work.
In above-mentioned another embodiment of the present invention, can also include:It is corresponding at least one standby identification card
Network performs time of the time less than foreground application reading cache data tested the speed.
Because it is above-mentioned it is data cached only cached the limited time, therefore, foreground application reads the data cached time
It is same limited, and in order to guarantee by data cached as foreground application provides the service of stabilization, it is necessary to make the time of testing the speed small
In the time of foreground application reading cache data.
In another embodiment of the invention, on the basis of the various embodiments described above, at least one standby identification card
Corresponding network perform test the speed including:
The corresponding network switching of all standby identification cards is opened successively, to the corresponding net of each standby identification card
Network carries out testing the speed respectively and obtains at least one network speed of the standby identification card of correspondence.
When there is multiple standby identification cards, because generally same equipment can only support one at a moment
Individual identification card connects network, therefore, even if opening all-network switch simultaneously, also it is only capable of realizing that an identification card connects
Network is connect, and cannot intuitively distinguish it is which identification card connection network, it is therefore desirable to which opening network is switched successively, respectively
Corresponding identification card is tested the speed, now, the network speed for measuring can directly obtain corresponding standby identification
Card.
In above-mentioned another embodiment, opening to should also include after the network switching of standby identification card:Open
The data switch of dynamic background application.
After the network switching for opening standby identification card, before starting to test the speed the standby identification card, after unlatching
The data traffic switch of platform application is to obtain data traffic from multiple different servers as far as possible, it is to avoid single server
The influence that self reason is judged data network speed.
In the inventive method a still further embodiment, on the basis of above-mentioned each embodiment, above-mentioned identification card includes
Client identification module or subscriber identification module.
SIM:For (Subscriber Identification Module client identification modules) refers to client's identification
The electronic equipment of module, the Virtual network operator of the network of registration is China Mobile or company of China Netcom.Support network class
Type is TD-SCDMA, WCDMA, GSM;UIM cards:(User Identity Module subscriber identification modules), also refers to user
The electronic equipment of identification module, the Virtual network operator of network registry is China Telecom, and access network is CDMA;Double-card dual-standby
Mobile phone:Support that two mobile phones of same type of card (two SIM cards or two UIM cards) are double card double standby mobile phone simultaneously;It is double
Mould double standby mobile phone:Support that two mobile phones of different types of card (SIM and UIM) are double model double standby phone simultaneously.
Current identification card and standby identification card belong to different operators.
Current identification card and standby identification card provided herein may belong to what same operator provided,
Different operators can also be belonged to, a kind of preferred scheme for belonging to different operators is only provided in the present embodiment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
Fig. 2 is the structural representation of apparatus of the present invention one embodiment.The device of the embodiment can be used to realize the present invention
Above-mentioned each method embodiment.As shown in Fig. 2 the device of the embodiment includes:
Network access unit 1, for the network access request in response to current application, opens current identification card correspondence
Network switching, by current identification card connect network;
Test the speed unit 2, standby at least one for when the corresponding network speed of current identification card reaches switching condition
The corresponding network of identification card is performed and tested the speed, the corresponding network speed of all standby identification card obtained based on testing the speed and current
The corresponding network speed of identification card, obtains obtaining the first identification card of most fast network speed;
Network switch unit 3, for being switched to the first identification card connection network.
The network switching of current identification card answers the internet access of current application to ask to open, and by current identity
Identification card connects network, when the corresponding network speed of current identification card reaches switching condition, to other standby identification cards
Corresponding network is tested the speed, and obtains the first most fast identification card of network speed, and be switched to the first identification card connection net
Network, by testing the speed and switching, realizes and provides the user most fast network speed, to ensure that user can normally connect network, and
Will not be because of not good just use of the influence user to current application of current identification card correspondence network speed.
Fig. 3 is the structural representation of another embodiment of apparatus of the present invention, on the basis of above-described embodiment, such as Fig. 3 institutes
Show, the above-mentioned unit 2 that tests the speed includes:
Backstage speed measuring module 21, for being obtained wherein based on being tested the speed to the corresponding network of at least one standby identification card
Corresponding second identification card of most fast network speed network;
Judge module 22, for judging whether the corresponding network speed of the second identification card is known less than or equal to current identity
Do not block corresponding network speed;When whether the corresponding network speed of the second identification card is corresponding less than or equal to current identification card
During network speed, the first identification card that can obtain most fast network speed is current identification card;When second identification card correspondence
Network speed more than current identification card corresponding network speed when, can obtain the first identification card of most fast network speed for the second identity
Identification card.
Based on the present embodiment device, the corresponding network of all standby identification cards is tested the speed and compared, obtained institute
There is the second most fast identification card of network speed in the corresponding network of standby identification card, by the corresponding net of the second identification card
Fast network speed corresponding with current identification card is compared and is capable of achieving all standby identification cards and current identification
The network speed of card compares, and now the network speed of second identification card works as predecessor less than or equal to the network speed of current identification card
Part identification card is exactly the first most fast identification card of network speed, is now switched to the first identification card equivalent to not carrying out network
Switching;And when the network speed of second identification card is more than the network speed of current identification card, second identification card is
The first most fast identification card of network speed, can now realize network switching, provide the user the faster network service of network speed.
In above-mentioned another embodiment, the above-mentioned unit 2 that tests the speed also includes order module, at least one standby identity
The corresponding network of identification card tests the speed and obtains the corresponding network speed of each standby identification, based on network speed to all standby identifications
Card sequence, sequentially obtains corresponding second identification card of most fast network speed.
In above-mentioned another embodiment, it be not current identification card that above-mentioned network switch unit 3 is additionally operable to when being switched to
The second identification card connection network after, close the corresponding network switching of current identification card, open the first identification
Block corresponding network switching.
On the basis of the various embodiments described above, above-mentioned switching condition can include:The corresponding network speed of current identification card
Less than default network speed.
Or, above-mentioned switching condition can include:The corresponding network speed of current identification card is less than all current applications
It is corresponding to preset minimum network speed sum.
In apparatus of the present invention another embodiments, on the basis of the various embodiments described above, above-mentioned current application is included at least
One foreground application and/or at least one background application.
The application for generally starting within one device is not only only included in the visible foreground application in foreground, is additionally included in backstage
The background application of startup, and foreground application and background application be required for consuming current identification after current network is connected
The network data for providing is provided, therefore, need to judge foreground application and background application jointly during network speed is judged.
Fig. 4 is the structural representation of another embodiment of apparatus of the present invention, such as Fig. 4 institutes on the basis of above-described embodiment
Show, also including data buffer storage unit 4, the data switch for closing all background applications, and all foreground applications caching is set
Fix time, obtain the above-mentioned foreground application of correspondence limited quantity it is data cached.
In the present embodiment, current identification card meets network switching condition, it is necessary to current identification card is switched
To other identification cards, may there is the process of unstable networks in handoff procedure, therefore, by backstage in the present embodiment
The data switch of application is closed, in the data, services in current identification card is concentrated on foreground application, and to all foregrounds
Application cache setting time, will not be stopped with foreground application in network switching process with ensureing to be tested the speed in network because network is unstable
Only work.
In above-mentioned another embodiment of the present invention, the above-mentioned 2 pairs of at least one standby identification card correspondences of unit that test the speed
Network perform the time of time for testing the speed less than above-mentioned foreground application reading cache data.
In another embodiment of the invention, on the basis of the various embodiments described above, the above-mentioned unit 2 that tests the speed is specifically for successively
The corresponding network switching of all standby identification cards is opened, the corresponding network of each standby identification card is surveyed respectively
Speed obtains at least one network speed of the standby identification card of correspondence.
In above-mentioned another embodiment, the above-mentioned unit 2 that tests the speed is opening the network of the above-mentioned standby identification card of correspondence
After switch, it is additionally operable to start the data switch of background application.
In apparatus of the present invention a still further embodiment, on the basis of above-mentioned each embodiment, above-mentioned identification card includes
Client identification module or subscriber identification module.
Current identification card and standby identification card belong to different operators.
Another aspect according to embodiments of the present invention, there is provided a kind of terminal device, including as described above be based on net
The data network switching device of speed.
1st, a kind of data network changing method based on network speed, including:
In response to the network access request of current application, the corresponding network switching of current identification card is opened, by working as
Preceding identification card connects network;
When the corresponding network speed of the current identification card reaches switching condition, at least one standby identification card
Corresponding network is performed and tested the speed, the corresponding network speed of all standby identification card obtained based on testing the speed and current identification card
Corresponding network speed, obtains obtaining the first identification card of most fast network speed;
It is switched to the first identification card connection network.
2nd, the method according to 1, the corresponding network speed of all standby identification card obtained based on testing the speed and work as
The corresponding network speed of preceding identification card, obtains obtaining the first identification card of most fast network speed, including:
It is corresponding wherein most fast network speed network to be obtained based on being tested the speed to the corresponding network of at least one standby identification card
Whether the second identification card, judge the corresponding network speed of second identification card less than or equal to the current identification
Block corresponding network speed;
When whether the corresponding network speed of second identification card is corresponding less than or equal to the current identification card
During network speed, first identification card that can obtain most fast network speed is current identification card;
It is described to obtain when the corresponding network speed of second identification card network speed corresponding more than current identification card
The first identification card for obtaining most fast network speed is the second identification card.
3rd, the method according to 2, described being tested the speed to the corresponding network of at least one standby identification card obtains wherein
Corresponding second identification card of most fast network speed network includes:
The corresponding network of at least one standby identification card is tested the speed and obtains the corresponding network speed of each standby identification,
All standby identification cards are sorted based on network speed, sequentially obtains corresponding second identification card of most fast network speed.
4th, the method according to 2 or 3, when be switched to be not current identification card the second identification card connect net
After network, the corresponding network switching of current identification card is closed, open the corresponding network switching of the first identification card.
5th, the method according to 1 to 4 any one, the switching condition includes:The current identification card correspondence
Network speed be less than default network speed.
6th, the method according to 1 to 4 any one, the switching condition includes:The current identification card correspondence
Network speed less than all current applications it is corresponding preset minimum network speed sum.
7th, the method according to 1 to 6 any one, the current application is including at least one foreground application and/or extremely
A few background application.
8th, the method according to 7, it is described the corresponding network of at least one standby identification card is performed test the speed before,
Also include:
The data switch of all background applications is closed, and setting time is cached to all foreground applications, obtain correspondence described
The limited quantity of foreground application it is data cached.
9th, the method according to 8, also includes:It is described that survey is performed to the corresponding network of at least one standby identification card
Time of the time of speed less than the foreground application reading cache data.
10th, the method according to 7 to 9 any one, it is described to the corresponding network of at least one standby identification card
Execution test the speed including:
The corresponding network switching of all standby identification cards is opened successively, to the corresponding net of each standby identification card
Network carries out testing the speed respectively and obtains at least one network speed of the standby identification card of correspondence.
11st, the method according to 10, it is described after the network switching for opening the correspondence standby identification card, also wrap
Include:Start the data switch of background application.
12nd, the method according to 1 to 11 any one, the identification card includes that client identification module or user know
Other module.
13rd, the method according to 1 to 12 any one, the current identification card and standby identification card belong to
Different operators.
14th, a kind of data network switching device based on network speed, including:
Network access unit, for the network access request in response to current application, opens current identification card correspondence
Network switching, by current identification card connect network;
Test the speed unit, for when the corresponding network speed of the current identification card reaches switching condition, at least one
The corresponding network of standby identification card is performed and tested the speed, the corresponding network speed of all standby identification card obtained based on testing the speed and
The corresponding network speed of current identification card, obtains obtaining the first identification card of most fast network speed;
Network switch unit, for being switched to the first identification card connection network.
15th, the device according to 14, the unit that tests the speed includes:
Backstage speed measuring module, for being obtained wherein most based on being tested the speed to the corresponding network of at least one standby identification card
Corresponding second identification card of fast network speed network;
Judge module, for judging whether the corresponding network speed of second identification card works as predecessor described in being less than or equal to
The corresponding network speed of part identification card;When whether the corresponding network speed of second identification card is known less than or equal to the current identity
When not blocking corresponding network speed, first identification card that can obtain most fast network speed is current identification card;When described
It is described to obtain the first of most fast network speed when the corresponding network speed of two identification cards is more than current identification card corresponding network speed
Identification card is the second identification card.
16th, the device according to 15, the unit that tests the speed also includes order module, at least one standby identity
The corresponding network of identification card tests the speed and obtains the corresponding network speed of each standby identification, based on network speed to all standby identifications
Card sequence, sequentially obtains corresponding second identification card of most fast network speed.
17th, the device according to 15 or 16, it be not that current identity is known that the network switch unit is additionally operable to when being switched to
After the second identification card connection network not blocked, the corresponding network switching of current identification card is closed, open the first identity
The corresponding network switching of identification card.
18th, the device according to 14 to 17 any one, the switching condition includes:The current identification card pair
The network speed answered is less than default network speed.
19th, the device according to 14 to 17 any one, the switching condition includes:The current identification card pair
The network speed answered is corresponding less than all current applications to preset minimum network speed sum.
20th, the device according to 14 to 19 any one, the current application include at least one foreground application and/or
At least one background application.
21st, the device according to 20, also including data buffer storage unit, the data for closing all background applications are opened
Close, and setting time cached to all foreground applications, obtain the correspondence foreground application limited quantity it is data cached.
22nd, the device according to 21, the unit that tests the speed is held to the corresponding network of at least one standby identification card
Time of the time that row tests the speed less than the foreground application reading cache data.
23rd, the device according to 20 to 22 any one, the unit that tests the speed is all standby specifically for opening successively
The corresponding network switching of identification card, the corresponding network of each standby identification card is carried out testing the speed respectively, and it is standby to obtain correspondence
With at least one network speed of identification card.
24th, the device according to 23, the unit that tests the speed is opened in the network for opening the correspondence standby identification card
Guan Hou, is additionally operable to start the data switch of background application.
25th, the device according to 14 to 24 any one, the identification card includes client identification module or user
Identification module.
26th, the device according to 25, the current identification card and standby identification card belong to different operations
Business.
27th, a kind of terminal device, including the data network switching device based on network speed as described in 14 to 26 any one.
Each embodiment is described by the way of progressive in this specification, and what each embodiment was stressed is and it
The difference of its embodiment, same or analogous part cross-reference between each embodiment.For system embodiment
For, because it is substantially corresponding with embodiment of the method, so description is fairly simple, referring to the portion of embodiment of the method in place of correlation
Defend oneself bright.
Methods and apparatus of the present invention may be achieved in many ways.For example, can by software, hardware, firmware or
Software, hardware, any combinations of firmware realize methods and apparatus of the present invention.The said sequence of the step of for methods described
Order described in detail above is not limited to merely to illustrate, the step of the method for the present invention, it is special unless otherwise
Do not mentionlet alone bright.Additionally, in certain embodiments, also the present invention can be embodied as recording program in the recording medium, these programs
Including the machine readable instructions for realizing the method according to the invention.Thus, the present invention also covering storage is for performing basis
The recording medium of the program of the method for the present invention.
Description of the invention is given for the sake of example and description, and is not exhaustively or by the present invention
It is limited to disclosed form.Many modifications and variations are for the ordinary skill in the art obvious.Select and retouch
State embodiment and be to more preferably illustrate principle of the invention and practical application, and one of ordinary skill in the art is managed
The solution present invention is suitable to the various embodiments with various modifications of special-purpose so as to design.
Claims (10)
1. a kind of data network changing method based on network speed, it is characterised in that including:
In response to the network access request of current application, the corresponding network switching of current identification card is opened, by working as predecessor
Part identification card connection network;
When the corresponding network speed of the current identification card reaches switching condition, at least one standby identification card correspondence
Network perform test the speed, the corresponding network speed of all standby identification card obtained based on testing the speed is corresponding with current identification card
Network speed, obtain obtaining the first identification card of most fast network speed;
It is switched to the first identification card connection network.
2. method according to claim 1, it is characterised in that all standby identification card obtained based on testing the speed
Corresponding network speed and the corresponding network speed of current identification card, obtain obtaining the first identification card of most fast network speed, including:
Wherein most fast network speed network corresponding second is obtained based on being tested the speed to the corresponding network of at least one standby identification card
Whether identification card, judge the corresponding network speed of second identification card less than or equal to the current identification card pair
The network speed answered;
When whether the corresponding network speed of second identification card is less than or equal to the corresponding network speed of the current identification card
When, first identification card that can obtain most fast network speed is current identification card;
It is described to obtain most when the corresponding network speed of second identification card network speed corresponding more than current identification card
First identification card of fast network speed is the second identification card.
3. method according to claim 2, it is characterised in that described to the corresponding net of at least one standby identification card
Network tests the speed and obtains corresponding second identification card of wherein most fast network speed network and include:
The corresponding network of at least one standby identification card is tested the speed and obtains the corresponding network speed of each standby identification, be based on
Network speed sorts to all standby identification cards, sequentially obtains corresponding second identification card of most fast network speed.
4. according to the method in claim 2 or 3, it is characterised in that when being switched to be not the second of current identification card
After identification card connection network, the corresponding network switching of current identification card is closed, open the first identification card correspondence
Network switching.
5. the method according to Claims 1-4 any one, it is characterised in that the switching condition includes:It is described current
The corresponding network speed of identification card is less than default network speed.
6. the method according to Claims 1-4 any one, it is characterised in that the switching condition includes:It is described current
The corresponding network speed of identification card is corresponding less than all current applications to preset minimum network speed sum.
7. the method according to claim 1 to 6 any one, it is characterised in that the current application includes at least one
Foreground application and/or at least one background application.
8. method according to claim 7, it is characterised in that described to the corresponding net of at least one standby identification card
Network is performed before testing the speed, and is also included:
The data switch of all background applications is closed, and setting time is cached to all foreground applications, obtain the correspondence foreground
The limited quantity of application it is data cached.
9. a kind of data network switching device based on network speed, it is characterised in that including:
Network access unit, for the network access request in response to current application, opens the corresponding net of current identification card
Network is switched, and network is connected by current identification card;
Test the speed unit, standby at least one for when the corresponding network speed of the current identification card reaches switching condition
The corresponding network of identification card is performed and tested the speed, the corresponding network speed of all standby identification card obtained based on testing the speed and current
The corresponding network speed of identification card, obtains obtaining the first identification card of most fast network speed;
Network switch unit, for being switched to the first identification card connection network.
10. a kind of terminal device, it is characterised in that switch dress including the data network based on network speed as claimed in claim 9
Put.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611218147.3A CN106792818A (en) | 2016-12-26 | 2016-12-26 | Data network changing method, device and terminal device based on network speed |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611218147.3A CN106792818A (en) | 2016-12-26 | 2016-12-26 | Data network changing method, device and terminal device based on network speed |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106792818A true CN106792818A (en) | 2017-05-31 |
Family
ID=58925068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611218147.3A Pending CN106792818A (en) | 2016-12-26 | 2016-12-26 | Data network changing method, device and terminal device based on network speed |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106792818A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110087270A (en) * | 2019-05-15 | 2019-08-02 | 深圳市沃特沃德股份有限公司 | A kind of method, apparatus of reading, storage medium and computer equipment |
CN110430611A (en) * | 2019-07-22 | 2019-11-08 | 恒大智慧科技有限公司 | A kind of intelligence wifi connection method, system and readable storage medium storing program for executing |
CN112788685A (en) * | 2020-12-28 | 2021-05-11 | 北京小米移动软件有限公司 | Network communication method and device, terminal and storage medium |
WO2022062182A1 (en) * | 2020-09-25 | 2022-03-31 | 宇龙计算机通信科技(深圳)有限公司 | Communication connection method and apparatus, storage medium, and electronic device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106028375A (en) * | 2016-05-12 | 2016-10-12 | 北京小米移动软件有限公司 | Method and device for prompting network switching and terminal device |
-
2016
- 2016-12-26 CN CN201611218147.3A patent/CN106792818A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106028375A (en) * | 2016-05-12 | 2016-10-12 | 北京小米移动软件有限公司 | Method and device for prompting network switching and terminal device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110087270A (en) * | 2019-05-15 | 2019-08-02 | 深圳市沃特沃德股份有限公司 | A kind of method, apparatus of reading, storage medium and computer equipment |
CN110087270B (en) * | 2019-05-15 | 2021-09-17 | 深圳市沃特沃德信息有限公司 | Reading method and device, storage medium and computer equipment |
CN110430611A (en) * | 2019-07-22 | 2019-11-08 | 恒大智慧科技有限公司 | A kind of intelligence wifi connection method, system and readable storage medium storing program for executing |
WO2022062182A1 (en) * | 2020-09-25 | 2022-03-31 | 宇龙计算机通信科技(深圳)有限公司 | Communication connection method and apparatus, storage medium, and electronic device |
CN112788685A (en) * | 2020-12-28 | 2021-05-11 | 北京小米移动软件有限公司 | Network communication method and device, terminal and storage medium |
CN112788685B (en) * | 2020-12-28 | 2023-03-21 | 北京小米移动软件有限公司 | Network communication method and device, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106973376A (en) | Application program is selected to access the method and device of network | |
CN106792818A (en) | Data network changing method, device and terminal device based on network speed | |
CN105873013B (en) | A kind of operator's selection method, device and mobile terminal based on e-SIM card | |
CN105959934B (en) | Network re-entry recognition methods and system | |
CN104852937B (en) | Method for network access and device for mobile application | |
CN106973379B (en) | Network re-entry recognition methods and device | |
CN108616979A (en) | Double card network formats control method, device, computer equipment and storage medium | |
CN105744646B (en) | A kind of mobile terminal and communication means | |
CN105141789B (en) | Unknown phone number labeling method and device | |
CN107182098A (en) | For realizing the method and apparatus that user equipment switches between WAP | |
CN107085554A (en) | A kind of method and apparatus for adding control mark | |
Biggs et al. | Emerging issues for our hyperconnected world | |
CN106658616A (en) | Network switching method and apparatus based on network speed, and terminal device | |
CN105577651A (en) | Service providing method and apparatus | |
CN101272293A (en) | Network testing method and device | |
CN105744504A (en) | Communication method of terminal and card applications and terminal | |
CN107682926A (en) | Offline localization method and offline positioner | |
CN104571781A (en) | Multi-application window display method and window management device in Android system | |
CN107786869A (en) | A kind of television equipment menu path generation method, device and storage medium | |
CN107734496A (en) | Mobile terminal searches network control method, device and mobile terminal | |
CN106777144A (en) | A kind of server switching method and device | |
CN106911634A (en) | A kind of login method and equipment | |
CN102685878A (en) | Method and device for detecting long term evolution (LTE) cell synchronous position | |
CN114363879B (en) | Roaming processing method and system for wireless terminal | |
CN107807974A (en) | A kind of application program access method, device, terminal and readable storage medium storing program for executing |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20170719 Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801 Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD. Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park) Applicant before: Beijing Qihu Technology Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170531 |