The method for switching network and terminal device of terminal
Technical field
The present invention relates to wireless communication technology field, more particularly to a kind of terminal method for switching network and end
End equipment.
Background technology
At present, double card or multi-card terminal are widely available, but are all by each core due to multi-card terminal
Many cards support that piece manufacturer each provides, the definition ununified for multi-card terminal, multi-card terminal can
The automatic switching mode for carrying out data service cards is usually:Actively selected according to self-demand by user first
Certain of terminal client identification module (Subscriber Identity Module, referred to as:SIM) card conduct
Default data service card, afterwards with the service condition of data service, terminal system is by monitoring the acquiescence
The traffic conditions of data service cards, judge whether to need to carry out data service cards switching.When default data industry
When the flow of business card is remaining less, control is switched to another data service cards.
In addition, during terminal carries out data service using a certain data service cards, according to network class
Type priority, on the premise of the hardware supported of multi-card terminal, prioritizing selection 4G networks, when 4G networks
Connection 3G network is attempted during no signal, if during 3G network no signal, attempting switching 2G networks, i.e.,
After user have selected a certain data service cards, suitable network type is selected according to network condition.
However, above-mentioned mode is to be cut according to the network between the residual flow of data service cards is just blocked
Change, or it is simple according to network condition blocked in network switching, be easily caused the network after switching
Situation difference or residual flow are less, and the degree of accuracy of network switching is relatively low.
The content of the invention
The method for switching network and terminal device of terminal provided in an embodiment of the present invention, for solving according to number
Network switching between just being blocked according to the residual flow of service card, or simply carried out according to network condition
Network switching in card, is easily caused the network condition difference after switching or residual flow is less, and network is cut
The relatively low problem of the degree of accuracy changed.
The method for switching network of embodiment of the present invention first aspect terminal, the terminal includes the first data card
With the second data card, first data card is the currently used data card of the terminal, methods described bag
Include:
Detect whether to meet network switching trigger condition;
If meeting network switching trigger condition, network information parameter of the terminal according to the first data card
Network information parameter determination with the second data card needs the objective network of switching;
It is switched to the determination objective network.
Wherein, the network information parameter of each data includes the state under multiple network standard, for example:
The network formats of 2G, 3G, 4G and higher level.
Optionally, the network information parameter includes residual flow, the signal intensity of network of the network of the card
And at least two parameters in network type priority, it is also possible to including having used flow, or other
According to the parameter that influence user uses, this present invention is not limited.
The method for switching network of the terminal that this programme is provided, there is provided the network switching scheme of double-terminal,
For three or three terminals of data above card, this kind of mode can also be equally used, be examined by comprehensive
Consider the network information parameter of every kind of network of each data card, search out network information parameter most rationally effective
Objective network, complete network switching, effectively improve the degree of accuracy of network switching.
Further, it is described to be switched to the objective network and include:
Judge whether the objective network belongs to the first data card;
If belonging to, the objective network is changed to by way of network switching in card;
If being not belonging to, data service is switched on second data card, and access the target network
Network.
During specific network switching is carried out, if the objective network of selection is same with current networking
On a data card, the switching of the interior network formats of card is directly carried out, if in different data cards
On, then need, by the data card of service switching to target network, carrying out the switching of network formats.
Optionally, it is described to detect whether to meet network switching trigger condition, including:If the terminal detection
To new base station information, then the terminal meets network switching trigger condition;
Then the terminal is according to the network information parameter of the first data card and the network information ginseng of the second data card
Number determines to need the objective network of switching, including:
The terminal obtains the network type of the corresponding first network of the new base station information;
If the network type priority that the terminal judges go out the first network is higher than first data card
Current network network type priority, then obtain the signal intensity of the first network;
If the terminal determines the signal intensity of the first network and the signal intensity of the current network
Difference be more than default signal strength threshold, then the first network is defined as the objective network.
In this programme, if terminal device detects new base station information, the choosing of network switching is triggered
Process is selected, it is necessary to judge that the network type priority and signal of the corresponding first network in new base station are strong
Degree, the only priority in the first network are higher than the signal of current network and signal intensity ratio current network
During intensity, just the first network is gone as objective network to realize switching, above-mentioned scheme is provided first to be sentenced
The scheme of circuit network type priority level, in actual implementation process, it is also possible to first judge the letter of the first network
Number intensity, judges priority afterwards, and this present invention is not limited, preferential by considering network type
Level and signal intensity, it is ensured that the network performance after switching is better than current network.
Optionally, it is described to detect whether to meet network switching trigger condition, including:If the terminal detection
To new base station information, then the terminal meets network switching trigger condition;
Then the terminal is according to the network information parameter of the first data card and the network information ginseng of the second data card
Number determines to need the objective network of switching, including:
The terminal obtains the network type of the corresponding first network of the new base station information;
If the network type priority that the terminal judges go out the first network is higher than first data card
Current network network type priority, then obtain the residual flow of the first network;
If the terminal determines the residual flow of the first network and the residual flow of the current network
Difference be more than default flow threshold, then the first network is defined as the objective network.
In this programme, similar to the above detects new base station information by terminal device, then trigger network
The selection course of switching, it is necessary to judge the new base station corresponding the during objective network is chosen
The network type priority of one network and the residual flow of the first network or the flow for having used are
It is no to transfinite, only when the priority of the first network is higher than current network and more residual flow, just will
The first network is gone to realize switching as objective network, and above-mentioned scheme is provided and first judges that network type is excellent
The scheme of first level, in actual implementation process, it is also possible to first determine the residual flow of the first network, or
First determine first network has used flow, and priority is judged afterwards, and this present invention is not limited, and passes through
Consider network type priority and residual flow or used the situation of flow, it is ensured that after switching
Network performance is better than current network, and is not in that underfed produces expense, improves Consumer's Experience.
Optionally, it is described to detect whether to meet network switching trigger condition, including:If the terminal detection
To new base station information, then the terminal meets network switching trigger condition;
Then the terminal is according to the network information parameter of the first data card and the network information ginseng of the second data card
Number determines to need the objective network of switching, including:
The terminal obtains the signal intensity of the corresponding first network of the new base station information;
If the terminal obtains the signal intensity of the first network and the current network of first data card
Signal intensity difference be more than default signal strength threshold, then obtain the residual stream of the first network
Amount;
If the terminal determines the residual flow of the first network and the residual flow of the current network
Difference be more than default flow threshold, then the first network is defined as the objective network.
In this programme, similar to the above still detects new base station information by terminal device, then trigger
The selection course of network switching, during objective network is chosen, it is only necessary to consider new base station information
The signal intensity of corresponding first network and the residual flow of the first network or the flow for having used
Whether transfinite, only when the signal intensity of the first network is higher than current network and more residual flow,
Just the first network is gone as objective network to realize switching, above-mentioned scheme is provided and first judges that signal is strong
The scheme of degree, in actual implementation process, it is also possible to first determine the residual flow of the first network, Huo Zhexian
Determine the flow that used of first network, the signal intensity of first network and current network is judged afterwards, to this
The present invention is not limited, the situation of the signal intensity by considering network type priority and network,
Ensure that the network performance after switching is better than current network, improve the degree of accuracy of Consumer's Experience and network switching.
Optionally, it is described to detect whether to meet network switching trigger condition, including:If the terminal detection
Signal intensity to the current network of first data card is less than default signal strength threshold, then described
Terminal meets network switching trigger condition;
Then the terminal is according to the network information parameter of the first data card and the network information ginseng of the second data card
Number determines to need the objective network of switching, including:
The terminal obtains at least one network type priority not low from the base station information list of storage
In the second network of the current network;
The terminal obtains the residual flow of each the second network;
The terminal judges according to the residual flow of each the second network according to default optimal flux set meal
Condition, selects a second network conduct of optimal flux set meal from described at least one second networks
The objective network.
In this programme, trigger network switching function condition be detect current network signal it is strong
Degree is poor, for example:Signal intensity is less than preset signal strength thresholding.For avoid user data service or
Person's speech quality is affected, then can combine the new objective network of selection according to other parameters enters
Row switching, in implementing, selects in the multiple base station informations that can be stored from the terminal device, this
In base station including multiple network standard website, select the network type priority to be higher than or with working as first
Preceding network identical the second networks of multiple, the residual flow that each the second network is then detected respectively is
Meet the condition of setting, or detect each the second network whether use flow more than limits value, or
Person can close according to the sequence of signal intensity according to network type priority and the selection of flow service condition
Suitable objective network carries out network switching, can effectively provide the degree of accuracy of network switching.In actual realization,
Network first can be selected according to priority, it is also possible to first consider the service condition of flow, to this present invention
It is not limited.
Optionally, it is described to detect whether to meet network switching trigger condition, including:If the terminal detection
Signal intensity to the current network of first data card is less than default signal strength threshold, then described
Terminal meets network switching trigger condition;
Then the terminal is according to the network information parameter of the first data card and the network information ginseng of the second data card
Number determines to need the objective network of switching, including:
The terminal obtains at least one signal intensity and is more than the letter from the base station information list of storage
Second network of number strength threshold;
The terminal obtains the residual flow of each the second network;
The terminal judges according to the residual flow of each the second network according to default optimal flux set meal
Condition, selects a second network conduct of optimal flux set meal from described at least one second networks
The objective network.
It is similar with such scheme in this programme, it is still and door is less than by the signal intensity of current network
Limit value triggering network switching action, terminal device selection signal intensity from the base station information list of storage is big
In multiple second networks of threshold value, flow service condition then according to those the second networks (including it is surplus
Residual current amount has used flow) or according to network type priority, selection flow package is reasonable, or
Person's signal intensity and network priority carry out network switching higher than the objective network of current network, effectively improve
The degree of accuracy of network switching, it is ensured that the network performance after switching is better than current network.
In addition, in implementing, the judgement of above-mentioned residual flow, or signal intensity contrast,
Or the selection execution sequence of network priority is not limited, and can be selected according to actual conditions.
Optionally, it is described to detect whether to meet network switching trigger condition, including:If the terminal detection
Signal intensity to the current network of first data card is less than default signal strength threshold, then described
Terminal meets network switching trigger condition;
Then the terminal is according to the network information parameter of the first data card and the network information ginseng of the second data card
Number determines to need the objective network of switching, including:
The terminal obtains at least one residual flow surplus more than default from the base station information list of storage
Second network of remaining traffic threshold;
The terminal obtains the signal intensity of each the second network;
The terminal is selected according to the signal intensity of each the second network from described at least one second networks
Optimal second network of signal intensity is selected out as the objective network.
It is similar with above-mentioned two scheme, in this programme, thresholding is still less than by current network signal intensity
Value triggers the action of network switching, and terminal device selects residue from the base station information list of storage
Flow is more, that is, the flow for having used is less, relatively more rational multiple second networks of network traffics, then
According to the priority or signal intensity of each the second network, prioritizing selection signal intensity relatively strong or network
The network of type priority level completes network switching as objective network, and the network performance after the switching is better than
Current network, and for which parameter first judged in implementation process, which parameter present invention is judged afterwards not
It is limited.
Optionally, it is described to detect whether to meet network switching trigger condition, including:If the terminal detection
Residual flow to the current network of first data card is less than default residual flow thresholding, then described
Terminal meets network switching trigger condition;
Then the terminal is according to the network information parameter of the first data card and the network information ginseng of the second data card
Number determines to need the objective network of switching, including:
The terminal obtains at least one network type priority not low from the base station information list of storage
In the second network of the current network;
The terminal obtains the residual flow of each the second network;
The terminal judges according to the residual flow of each the second network according to default optimal flux set meal
Condition, selects a second network conduct of optimal flux set meal from described at least one second networks
The objective network.
From unlike above-mentioned several schemes, be by the residue under currently used network formats in the program
Underfed triggers network switching, to avoid beyond the flow package expense for user brings unnecessary,
This programme terminal device obtains that network priority is higher than current network or identical from base station information list
Multiple second networks, then the signal intensity or residual flow according to each the second network are that flow is used
Situation carrys out selection target network, network switching is completed, in implementation process, it is also possible to pay the utmost attention to residue
Flow or network signal intensity, consider further that the height of network type priority, can be according to actual conditions
It is configured, it is without limitation.
Optionally, it is described to detect whether to meet network switching trigger condition, including:If the terminal detection
Residual flow to the current network of first data card is less than default residual flow thresholding, then described
Terminal meets network switching trigger condition;
Then the terminal is according to the network information parameter of the first data card and the network information ginseng of the second data card
Number determines to need the objective network of switching, including:
The terminal obtains at least one signal intensity and is more than the letter from the base station information list of storage
Second network of number strength threshold;
The terminal obtains the residual flow of each the second network;
The terminal judges according to the residual flow of each the second network according to default optimal flux set meal
Condition, selects a second network conduct of optimal flux set meal from described at least one second networks
The objective network.
Similar with such scheme, the same network switching that triggered by residual flow deficiency is acted in the program,
Terminal device according to network signal intensity and the flow service condition of each network, or according to network signal
Intensity and network type priority, select network state and residual flow all to compare from base station information list
Good objective network completes network switching, improves the degree of accuracy and the Consumer's Experience of network switching.
Optionally, it is described to detect whether to meet network switching trigger condition, including:If the terminal detection
Residual flow to the current network of first data card is less than default residual flow thresholding, then described
Terminal meets network switching trigger condition;
Then the terminal is according to the network information parameter of the first data card and the network information ginseng of the second data card
Number determines to need the objective network of switching, including:
The terminal obtains at least one residual flow surplus more than default from the base station information list of storage
Second network of remaining traffic threshold;
The terminal obtains the signal intensity of each the second network;
The terminal is selected according to the signal intensity of each the second network from described at least one second networks
Optimal second network of signal intensity is selected out as the objective network.
It is also trigger condition that used residual flow is used as network switching less than pre-determined threshold in this programme,
Then according to the information of the multiple networks stored in base station information list, according to the situation and letter of residual flow
Number intensity, or can according to the situation of residual flow and network type priority, select performance compared with
Good objective network carries out network switching, considers multiple parameters selection performance and residual flow is rational
Objective network, improves the degree of accuracy of network switching.
It is that signal intensity, each network of each network from each card are remained in above-mentioned various ways
The alternatively new target of any two parameter in the network type priority of residual current amount and each network
Network, and any two parameter for selecting, the order judged during implementing is not
Limitation, as long as objective network of the performance better than current network can be selected.
On the basis of such scheme, be provided below several each network according to each card signal intensity,
Three kinds of parameters of network type priority of each residue of network organization flow and each network carry out objective network
The implementation of selection course:
The first, it is described to detect whether to meet network switching trigger condition, including:If the terminal detection
To new base station information, then the terminal meets network switching trigger condition;
Then the terminal is according to the network information parameter of the first data card and the network information ginseng of the second data card
Number determines to need the objective network of switching, including:
The terminal obtains the network type of the corresponding first network of the new base station information;
If the network type priority that the terminal judges go out the first network is higher than first data card
Current network network type priority, then obtain the signal intensity of the first network;
If the terminal determines the signal intensity of the first network and the signal intensity of the current network
Difference be more than default signal strength threshold, then obtain the first network residual flow and it is described work as
The residual flow of preceding network;
If the residual flow of the first network is more than default with the difference of the residual flow of the current network
Flow threshold, then the first network is defined as the objective network.
In this programme, under the trigger condition for detecting new base station information, terminal device is according to three ginsengs
Number is judged whether as objective network simultaneously;The scheme of above-mentioned offer is to judge that network type is excellent successively
What the order of first level, signal intensity and flow service condition was carried out, in fact, implementing process
In, preferentially judge which parameter is not limited, that is, there are six kinds of realities that three kinds of parameter permutation and combination are produced
Existing mode, can realize the selection of above-mentioned objective network.
It is second, described to detect whether to meet network switching trigger condition, including:If the terminal detection
Signal intensity to the current network of first data card is less than default signal strength threshold, then described
Terminal meets network switching trigger condition;
Then the terminal is according to the network information parameter of the first data card and the network information ginseng of the second data card
Number determines to need the objective network of switching, including:
The terminal obtains at least one network type priority not low from the base station information list of storage
In the second network of the current network;
The terminal obtains the residual flow and signal intensity of each the second network;
The terminal is by signal intensity at least one second networks is more than the signal strength threshold and expires
Second network of sufficient optimal flux set meal Rule of judgment is used as the objective network.
From unlike such scheme, current network signal intensity is being detected less than preset signal strength door
Under the trigger condition of limit, terminal device is judged whether as objective network simultaneously according to three parameters;
The scheme of above-mentioned offer is to judge network type priority, flow service condition and signal intensity successively
What order was carried out, in fact, during implementing, preferentially judge which parameter is not limited,
There are six kinds of implementations that three kinds of parameter permutation and combination are produced, can realize above-mentioned objective network
Selection.
The third, it is described to detect whether to meet network switching trigger condition, including:If the terminal detection
Residual flow to the current network of first data card is less than default residual flow thresholding, then described
Terminal meets network switching trigger condition;
Then the terminal is according to the network information parameter of the first data card and the network information ginseng of the second data card
Number determines to need the objective network of switching, including:
The terminal obtains at least one network type priority not low from the base station information list of storage
In the second network of the current network;
The terminal obtains the residual flow and signal intensity of each the second network;
The terminal is by signal intensity at least one second networks is more than the signal strength threshold and expires
Second network of sufficient optimal flux set meal Rule of judgment is used as the objective network.
And unlike such scheme, it is, triggering not enough by the residual flow of current network in this programme
Network switching is acted, and terminal device is judged whether as objective network simultaneously according to three parameters;On
The scheme for stating offer is judge network type priority, flow service condition and signal intensity successively suitable
What sequence was carried out, in fact, during implementing, preferentially judging which parameter is not limited, i.e.,
In the presence of six kinds of implementations that three kinds of parameter permutation and combination are produced, the choosing of above-mentioned objective network can be realized
Select.
The method for switching network that above-mentioned several implementations are provided, no matter which type of trigger condition passed through
The action of network switching is triggered, during objective network is chosen, is required to consider network
Network type priority, signal intensity and flow service condition, select performance better than current network,
And the enough objective networks of residue of network organization flow are switched over, the objective network can be the first data card
Network formats, or other be arranged on the terminal device in data card network, for example:The
Two data cards, by this kind of mode, are effectively ensured the network performance after switching more preferably, also will not be due to number
Extra-pay is produced according to flow, the degree of accuracy of network switching is effectively improved, and improve Consumer's Experience.
Embodiment of the present invention second aspect provides a kind of method for switching network of terminal, and the terminal includes the
One data card and the second data card, first data card are the currently used data card of the terminal, institute
The method of stating includes:
Detection is whether the flow that has used of current network of first data card exceedes making of being pre-configured with
Use flow threshold;
If the flow that the current network has been used exceed it is described use flow threshold, the terminal according to
Each network of first data card has used flow, signal intensity and network type priority and institute
Each network for stating the second data card has used flow, signal intensity and network type priority, it is determined that
Need the objective network of switching;
It is switched to the objective network.
This programme provides a kind of implementation of specific network switching, and the first data card of detection is currently connected
The flow that has used of network whether exceed limitation, limit if more than, then confirm to need to carry out network
Switching, then the every kind of network formats according to each data card are corresponding has used flow, signal intensity and excellent
First level, selecting suitable objective network carries out network switching, considers above-mentioned many kinds of parameters, improves
Network switching accuracy.
Further, the terminal has used flow, signal according to each network of first data card
Each network of intensity and network type priority and second data card has used the flow, signal strong
Degree and network type priority, it is determined that the objective network of switching is needed, including:
From the base station information list of storage, the network type priority according to each network is obtained the terminal
At least one network type priority is not less than the 3rd network of the current network;
According to network type priority order from high to low, letter of the terminal according to the current network
The signal intensity and each network of number intensity and each the 3rd network use flow, acquisition signal intensity
More than preset signal strength threshold value and flow has been used not less than the network conduct for using flow threshold
The objective network.
Further, the order according to network type priority from high to low, the terminal is according to institute
That states the signal intensity of current network and the signal intensity of each the 3rd network and each network has used stream
Amount, obtains signal intensity more than preset signal strength threshold value and has used flow to use stream not less than described
The network of threshold value is measured as the objective network, including:
The terminal is obtained according to the signal intensity of the current network and the signal intensity of each the 3rd network
Take fourth network of at least one signal intensity more than preset signal strength threshold value;
According to network type priority order from high to low, having used for each the 4th network is detected successively
Whether flow exceedes the use flow threshold;
If having used flow not less than the use flow threshold in the presence of the 4th network, by this
Four networks are used as the objective network.
Optionally, it is described to be switched to the objective network and include:
Judge whether the objective network belongs to the first data card;
If belonging to, the objective network is changed to by way of network switching in card;
If being not belonging to, data service is switched on second data card, and access the target network
Network.
The method for switching network of the terminal that this programme is provided, sets when finding that currently used network traffics exceed
During the threshold value put, terminal device initiates an intelligent Matching process according to above-mentioned mode, checks storage
In base station information list preserve priority be higher than or with current network identical multiple the 3rd networks, so
Detect the signal intensity of each the 3rd network afterwards, select-out signal intensity higher than the signal strength threshold for setting or
Person sets the network of threshold value, and the flow service condition of each network then inquired about in those networks is searched
Go out the order from high to low according to network type priority, looked into since the best network of signal intensity successively
Look for, if in the presence of the use of flow being that, more than thresholding, the network of other better performances is no then as objective network
Then next network is judged, until better performances are found, and the more objective network of residual flow
Switching is completed, the degree of accuracy of network switching is effectively improved, Consumer's Experience is improved.
The embodiment of the present invention third aspect provides a kind of terminal device, and the terminal device includes the first data
Card and the second data card, first data card is the currently used data card of the terminal device, described
Terminal device includes:
Detection module, for detecting whether meeting network switching trigger condition;
Processing module, network switching trigger condition, basis are met if being detected for the detection module
The network information parameter of the first data card and the network information parameter determination of the second data card need the mesh of switching
Mark network;
The processing module is additionally operable to be switched to the determination objective network.
Further, the processing module includes:
Judging submodule, for judging whether the objective network belongs to the first data card;
Network handover submodule, is used for:
If the judging submodule judges that the objective network belongs to the first data card, by card Intranet
The mode of network switching changes to the objective network;
If the judging submodule judges that the objective network is not belonging to the first data card, by data industry
Business is switched on second data card, and accesses the objective network.
Further, the network information parameter that the processing module is obtained includes the surplus of the network of the card
At least two parameters in residual current amount, the signal intensity of network and network type priority.
Optionally, if the detection module detects new base station information, the terminal device meets net
Network handover triggering condition;
Then the processing module specifically for:
Obtain the network type of the corresponding first network of the new base station information;
If judging the current net of the network type priority higher than first data card of the first network
The network type priority of network, then obtain the signal intensity of the first network;
If it is determined that the signal intensity of the first network is big with the difference of the signal intensity of the current network
In default signal strength threshold, then the first network is defined as the objective network.
Optionally, if the detection module detects new base station information, the terminal device meets net
Network handover triggering condition;
Then the processing module specifically for:
Obtain the network type of the corresponding first network of the new base station information;
If judging the current net of the network type priority higher than first data card of the first network
The network type priority of network, then obtain the residual flow of the first network;
If it is determined that the residual flow of the first network is big with the difference of the residual flow of the current network
In default flow threshold, then the first network is defined as the objective network.
Optionally, if the detection module detects new base station information, the terminal device meets net
Network handover triggering condition;
Then the processing module specifically for:
Obtain the signal intensity of the corresponding first network of the new base station information;
If the signal intensity for obtaining the first network is strong with the signal of the current network of first data card
The difference of degree is more than default signal strength threshold, then obtain the residual flow of the first network;
If it is determined that the residual flow of the first network is big with the difference of the residual flow of the current network
In default flow threshold, then the first network is defined as the objective network.
Optionally, if the detection module detects the signal intensity of the current network of first data card
Less than default signal strength threshold, then the terminal device meets network switching trigger condition;
Then the processing module specifically for:
From the base station information list of storage, obtain at least one network type priority and be not less than described working as
Second network of preceding network;
Obtain the residual flow of each the second network;
According to the residual flow of each the second network, according to default optimal flux set meal decision condition, from
Second network of optimal flux set meal is selected in described at least one second networks as the target
Network.
Optionally, if the detection module detects the signal intensity of the current network of first data card
Less than default signal strength threshold, then the terminal device meets network switching trigger condition;
Then the processing module is used for:
From the base station information list of storage, at least one signal intensity is obtained more than signal intensity door
Second network of limit;
Obtain the residual flow of each the second network;
According to the residual flow of each the second network, according to default optimal flux set meal decision condition, from
Second network of optimal flux set meal is selected in described at least one second networks as the target
Network.
Optionally, if the detection module detects the signal intensity of the current network of first data card
Less than default signal strength threshold, then the terminal device meets network switching trigger condition;
Then the processing module specifically for:
From the base station information list of storage, obtain at least one residual flow and be more than default residual flow door
Second network of limit;
Obtain the signal intensity of each the second network;
According to the signal intensity of each the second network, signal is selected from described at least one second networks
Optimal second network of intensity is used as the objective network.
Optionally, if the detection module detects the residual flow of the current network of first data card
Less than default residual flow thresholding, then the terminal device meets network switching trigger condition;
Then the processing module specifically for:
From the base station information list of storage, obtain at least one network type priority and be not less than described working as
Second network of preceding network;
Obtain the residual flow of each the second network;
According to the residual flow of each the second network, according to default optimal flux set meal decision condition, from
Second network of optimal flux set meal is selected in described at least one second networks as the target
Network.
Optionally, if the detection module detects the residual flow of the current network of first data card
Less than default residual flow thresholding, then the terminal device meets network switching trigger condition;
Then the processing module specifically for:
From the base station information list of storage, at least one signal intensity is obtained more than signal intensity door
Second network of limit;
Obtain the residual flow of each the second network;
According to the residual flow of each the second network, according to default optimal flux set meal decision condition, from
Second network of optimal flux set meal is selected in described at least one second networks as the target
Network.
Optionally, if the detection module detects the residual flow of the current network of first data card
Less than default residual flow thresholding, then the terminal device meets network switching trigger condition;
Then the processing module specifically for:
From the base station information list of storage, obtain at least one residual flow and be more than default residual flow door
Second network of limit;
Obtain the signal intensity of each the second network;
According to the signal intensity of each the second network, signal is selected from described at least one second networks
Optimal second network of intensity is used as the objective network.
Optionally, if the detection module detects new base station information, the terminal device meets net
Network handover triggering condition;
Then the processing module specifically for:
Obtain the network type of the corresponding first network of the new base station information;
If judging the current net of the network type priority higher than first data card of the first network
The network type priority of network, then obtain the signal intensity of the first network;
If it is determined that the signal intensity of the first network is big with the difference of the signal intensity of the current network
In default signal strength threshold, then the residual flow and the current network of the first network are obtained
Residual flow;
If the residual flow of the first network is more than default with the difference of the residual flow of the current network
Flow threshold, then the first network is defined as the objective network.
Optionally, if the detection module detects the signal intensity of the current network of first data card
Less than default signal strength threshold, then the terminal device meets network switching trigger condition;
Then the processing module specifically for:
From the base station information list of storage, obtain at least one network type priority and be not less than described working as
Second network of preceding network;
Obtain the residual flow and signal intensity of each the second network;
By signal intensity at least one second networks is more than the signal strength threshold and meets optimal stream
The second network of set meal Rule of judgment is measured as the objective network.
Optionally, if the detection module detects the residual flow of the current network of first data card
Less than default residual flow thresholding, then the terminal device meets network switching trigger condition;
Then the processing module specifically for:
From the base station information list of storage, obtain at least one network type priority and be not less than described working as
Second network of preceding network;
Obtain the residual flow and signal intensity of each the second network;
By signal intensity at least one second networks is more than the signal strength threshold and meets optimal stream
The second network of set meal Rule of judgment is measured as the objective network.
Embodiment of the present invention fourth aspect provides a kind of terminal device, and the terminal device includes the first data
Card and the second data card, first data card is the currently used data card of the terminal device, described
Terminal device includes:
Whether detection module, the flow used for the current network that detection is first data card surpasses
Cross the use flow threshold being pre-configured with;
Processing module, if detect the flow that the current network used for the detection module exceeding
The use flow threshold, then each network according to first data card used the flow, signal strong
Each network of degree and network type priority and second data card has used flow, signal intensity
And network type priority, it is determined that needing the objective network of switching;
The processing module is additionally operable to be switched to the objective network.
Further, the processing module specifically for:
From the base station information list of storage, the network type priority according to each network obtains at least one
Network type priority is not less than the 3rd network of the current network;
According to network type priority order from high to low, signal intensity according to the current network and
The signal intensity of each the 3rd network and each network have used flow, obtain signal intensity more than default
Signal strength threshold value and use flow not less than the network for using flow threshold as the target
Network.
Further, the processing module specifically for:
The signal intensity of signal intensity and each the 3rd network according to the current network, obtains at least one
Fourth network of the individual signal intensity more than preset signal strength threshold value;
According to network type priority order from high to low, having used for each the 4th network is detected successively
Whether flow exceedes the use flow threshold;
If having used flow not less than the use flow threshold in the presence of the 4th network, by this
Four networks are used as the objective network.
Optionally, the processing module includes:
Judging submodule, for judging whether the objective network belongs to the first data card;
Treatment submodule, is used for:
If the judging submodule judges that the objective network belongs to the first data card, by card Intranet
The mode of network switching changes to the objective network;
If the judging submodule judges that the objective network is not belonging to the first data card, by data industry
Business is switched on second data card, and accesses the objective network.
The aspect of the embodiment of the present invention the 5th provides a kind of terminal device, and the terminal device includes the first data
Card and the second data card, first data card is the currently used data card of the terminal device, described
Terminal device also includes:Can be held for the processor for controlling executable instruction to perform and for storing processor
The memory of row instruction;
The processor is used for:
Detect whether to meet network switching trigger condition;
If meeting network switching trigger condition, network information parameter and the second number according to the first data card
The objective network of switching is needed according to the network information parameter determination of card;
It is switched to the determination objective network.
The aspect of the embodiment of the present invention the 6th provides a kind of terminal device, and the terminal device includes the first data
Card and the second data card, first data card is the currently used data card of the terminal device, described
Terminal device also includes:Can be held for the processor for controlling executable instruction to perform and for storing processor
The memory of row instruction;
The processor is used for:
Detection is whether the flow that has used of current network of first data card exceedes making of being pre-configured with
Use flow threshold;
If detect the flow that the current network used exceed it is described use flow threshold, according to institute
Each network for stating the first data card has used flow, signal intensity and network type priority and described
Each network of the second data card has used flow, signal intensity and network type priority, it is determined that needing
The objective network to be switched;
It is switched to the objective network.
The method for switching network and terminal device of terminal provided in an embodiment of the present invention, terminal device is in detection
To after meeting network switching trigger condition, network type priority, signal intensity and network set meal are taken into account
Flow, selects the objective network of the data service for being best suitable for currently practical scene, and intelligently switches, it is to avoid
Flow occur transfinites suspension, and no signal leads to not online or signal difference and causes network delay problem high.
The intelligent handover scheme of basic double card, makes full use of the advantage of double card dual network mobile phone, at any time in two cards
Middle intelligence switching, without user intervention, lifts the experience of user to greatest extent.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to reality
The accompanying drawing to be used needed for example or description of the prior art is applied to be briefly described, it should be apparent that, under
Accompanying drawing in the description of face is some embodiments of the present invention, for those of ordinary skill in the art,
On the premise of not paying creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of network system schematic diagram provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of the network information flow of terminal device provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the method for switching network embodiment one of terminal provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the method for switching network embodiment two of terminal provided in an embodiment of the present invention;
Fig. 5 is the flow chart of the method for switching network embodiment three of terminal provided in an embodiment of the present invention;
Fig. 6 is the flow chart of the method for switching network example IV of terminal provided in an embodiment of the present invention;
Fig. 7 is the flow chart of the method for switching network embodiment five of terminal provided in an embodiment of the present invention;
Fig. 8 is the flow chart of the method for switching network embodiment six of terminal provided in an embodiment of the present invention;
Fig. 9 is the flow chart of the method for switching network embodiment seven of terminal provided in an embodiment of the present invention;
Figure 10 is the flow chart of the method for switching network embodiment eight of terminal provided in an embodiment of the present invention;
Figure 11 is the structural representation of terminal device embodiment one provided in an embodiment of the present invention;
Figure 12 is the structural representation of terminal device embodiment two provided in an embodiment of the present invention;
Figure 13 is the structural representation of terminal device embodiment three provided in an embodiment of the present invention;
Figure 14 is the structural representation of terminal device example IV provided in an embodiment of the present invention;
Figure 15 is the schematic diagram of the use framework of the method for switching network of terminal provided in an embodiment of the present invention;
Figure 16 is the one of the method for switching network of terminal provided in an embodiment of the present invention to implement flow chart;
Figure 17 is that the another of the method for switching network of terminal provided in an embodiment of the present invention implements flow
Figure;
Figure 18 is that the another of the method for switching network of terminal provided in an embodiment of the present invention implements flow
Figure;
Figure 19 is the structural representation of the example of terminal device provided in an embodiment of the present invention;
Figure 20 is the structural representation of terminal device yet another embodiment provided in an embodiment of the present invention;
Figure 21 is a kind of structural representation for implementing of terminal device of the present invention.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with this hair
Accompanying drawing in bright embodiment, is clearly and completely described to the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of creative work is not made
The every other embodiment for obtaining, belongs to the scope of protection of the invention.
Fig. 1 is a kind of network system schematic diagram provided in an embodiment of the present invention, reference picture 1, the network system
System includes:Base station 1, base station 2, base station 3, terminal (being referred to as terminal device);
Wherein, terminal can be carried out for smart mobile phone, panel computer etc. can connect network by data card
The equipment of data service.
Terminal is provided with two or more data card (being referred to as data service cards), number
According to service card 1 and data service cards 2;Data service cards 1 support 4G networks, the 3G that operator 1 provides
Network and 2G networks;Data service cards 2 support 4G networks, 3G network and the 2G that operator 2 provides
Network.
Base station 1 can provide the network service of operator 1;Base station 2 can provide the network of operator 2
Service;Base station 3 can provide the network service of operator 1 and operator 2.
Further, for 4G networks, 3G network and 2G networks, network type can be pre-set
Priority, for example, bandwidth of the bandwidth of 2G networks less than 3G network;The bandwidth of 3G network is less than 4G
The bandwidth of network, therefore, the network type priority of default network is:4G networks>3G network>2G nets
Network.The network type priority of network can notify terminal beforehand through base station, it is also possible to be preset at the end
In end;Optionally, it is possibility to have the priority of User Defined heterogeneous networks.
Reference picture 1, the terminal can receive the signal of base station 1, base station 2 and base station 3 transmitting, terminal
Based on the signal for receiving, generate base station information list, the list can be used comprising described at least one
The signal strength values of network, the network type priority of described at least one usable network, described work as
The signal intensity of preceding service network, the network type priority of the current service network.
Wherein, the information of each base station that may be coupled to is stored in the base station information list, optionally,
The information of the base station can include mobile phone country code (Mobile Country Code, abbreviation:
MCC) mobile device network code (Mobile Network Code, referred to as:MNC) position area compile
Code (location area code, referred to as:LAC);And Base Station Identification, can be according to those acquisition of information
When the corresponding network signal intensity in the base station, and network type etc..
It is assumed that terminal uses data service cards 1, and the 3G network that access base station 1 is provided, then should
Current service network in 3G network respective base station information list, and terminal receives the net of the offer of base station 2
Network and the network provided with base station 3, described at least one usable net in respective base station information list
Network;
Further, terminal can also obtain data service cards 1 by the traffic management module of terminal
The flow service condition of flow service condition and data service cards 2.For example, obtaining data service cards 1 pair
Answer the residue of network organization available stream of residue of network organization utilizable flow and data service cards 2 the correspondence operator of operator
Amount;Dividing mode based on current service network above and usable network, base station information list may be used also
To include:It is the residue of network organization flow of described at least one usable network correspondence operator, described current
The residue of network organization flow of service network correspondence operator, the residual flow at this refers to remaining available
Flow, i.e., the flow being had not been used in the flow bag that user has paid.
Due to the change of the mobility and Internet resources of terminal, terminal needs to enter above-mentioned base station information list
Row is safeguarded and updated, and judges whether current service network is most based on the parameter that base station information list is included
Excellent network, if in the presence of can provide the user higher quality network service or more meet user's rate demand
Usable network, then terminal carry out network switching.
For terminal, how the parameter included based on base station information list judges whether current service network is most
, there are various feasible implementations in excellent network, several feasible implementations are illustrated below:
Mode one:Terminal monitoring network change, if receiving the signal that new base station sends, in renewal
Literary base station information list;For example, terminal receives the signal of the transmission of base station 3, then base station information row are updated
Table, the base station information list after renewal is included:The signal intensity of the usable network that base station 3 provides
It is usable that the network type priority of the usable network that value, base station 3 provide, base station 3 provide
The residue of network organization utilizable flow of network correspondence operator;The signal of the usable network that base station 2 provides is strong
What the network type priority of the usable network that angle value, base station 2 provide, base station 2 provided can be used
Network correspondence operator residue of network organization utilizable flow;The signal of the current service network that base station 1 provides
It is current that the network type priority of the current service network that intensity level, base station 1 provide, base station 1 provide
The residue of network organization utilizable flow of service network correspondence operator.
Further, the network type priority of the usable network that terminal provides base station 3 and base station
The network type priority of 1 current service network for providing is compared;Result is:What base station 3 provided
3G network of the network type priority of the 4G networks of operator 2 more than the operator 1 that base station 1 provides
Network type;Then the network of residue of network organization utilizable flow and operator 1 that terminal compares operator 2 is remained
Remaining utilizable flow.If the residue of network organization utilizable flow of operator 2 is remained more than or equal to the network of operator 1
Remaining utilizable flow, then 4G networks of the operator 2 that terminal provides network switching to base station 3.Need
Illustrate, when the 4G networks of operator 2 of the offer of base station 3 are switched to, terminal will currently take first
The data service cards of business switch from data service cards 1 to data service cards 2, then the switching for carrying out network.
Mode two:Terminal monitoring change in signal strength, if the signal of the current service network that base station 1 provides
Intensity level is less than the first preset signal intensity threshold, then terminal inquires about network type in base station information list
Priority is equal to or more than the network of the network type priority of the current service network that base station 1 provides, example
Such as, the network type priority of the 4G networks that base station 2 provides is higher than the 3G network that base station 1 provides.Enter
One step, terminal compares the 3G that the remaining utilizable flow of the 4G networks of the offer of base station 2 is provided with base station 1
The remaining utilizable flow of network, if the remaining utilizable flow of the 4G networks of the offer of base station 2 is more than or equal to
Base station 1 provide 3G network remaining utilizable flow, then terminal network switching to base station 2 is provided
4G networks.Explanation is needed, when the 4G networks of operator 2 of the offer of base station 3 are switched to, terminal
The data service cards of current service are switched from data service cards 1 to data service cards 2 first, then is carried out
The switching of network.
Mode three:The residue of network organization utilizable flow of terminal monitoring current service network correspondence operator, if should
Residue of network organization utilizable flow is less than the first preset flow threshold, then terminal inquires about net in base station information list
Network type priority level is equal to or more than the net of the network type priority of the current service network that base station 1 provides
Network, for example, the 3G net of the network type priority higher than the offer of base station 1 of the 4G networks that base station 2 provides
Network.Further, terminal compares the signal strength values of 4G networks of the offer of base station 2 and is provided with base station 1
3G network signal strength values, if the signal strength values of 4G networks that base station 2 provides are more than or equal to
The signal strength values of the 3G network that base station 1 provides, the then 4G that terminal provides network switching to base station 2
Network.Explanation is needed, when the 4G networks of operator 2 of the offer of base station 3 are switched to, terminal is first
First the data service cards of current service are switched from data service cards 1 to data service cards 2, then carries out net
The switching of network.
It can be seen from above-mentioned three kinds of feasible implementations, the scheme of the embodiment of the present invention is by considering
The flow information of the network type priority of network, the signal intensity of network operator corresponding with network, comes
Realize the network switching of multi-card terminal.So as to significantly more efficient switch to terminal can provide the user more
High network quality is serviced or more meets the usable network of user's rate demand, so as to provide many cards eventually
Hold the utilization rate to Internet resources.
Fig. 2 is the schematic diagram of the network information flow of terminal device provided in an embodiment of the present invention, such as Fig. 2
Shown, the terminal device shows typical cell phone network information flow by taking mobile phone as an example, in figure
Information is passed through wave point (Radio by schematic diagram, cell phone network hardware by base station information near search
Interface Layer, referred to as:RIL) layer returns to Androd Framework ccf layers, to store base
Stand and signal message.User set interface set default data service card after, in Framework layers
MsimTelephony (the SIM framework interfaces i.e. in figure) module can match respective base station information, then
Select then suitable data network.Wherein RIL is the level of abstraction of system platform mobile phone and each vendor hardware,
MSimTelephony is the Android Framework frameworks that each chip manufacturer is provided double-card mobile phone
Layer interface.
Fig. 3 is the flow chart of the method for switching network embodiment one of terminal provided in an embodiment of the present invention, such as
Shown in Fig. 3, based on the network environment shown in above-mentioned Fig. 1 and Fig. 2, the executive agent of the method is terminal,
The terminal includes the first data card and the second data card, and first data card currently makes for the terminal
Data card, the current network for hereinafter referring to is the network for carrying out data service instantly, specifically,
The step of method for switching network of the terminal is:
S101:Detect whether to meet network switching trigger condition.
In the present embodiment, the network switching trigger condition at least includes following several:
The first, terminal detects new base station information;
Second, terminal detects the signal intensity of the current network of first data card less than default
Signal strength threshold;
The third, terminal detects the residual flow of the current network of first data card less than default
Residual flow thresholding.Or terminal detect the current network of first data card used flow surpass
Default use traffic threshold is gone out.
Furthermore it is also possible to the network switching condition of the terminal device is set according to specific applicable cases, and
Be limited to above-mentioned mode.
S102:If meeting network switching trigger condition, the terminal is believed according to the network of the first data card
The network information parameter determination of breath parameter and the second data card needs the objective network of switching.
In the present embodiment, the terminal device includes two data, then respectively according to two data cards
Network information parameter judged, if the terminal device include it is single, or three or three with
On data card, then need to select suitable objective network according to the network information parameter of each data card.
Wherein, the residual flow of the network of the network information parameter of each data card including the card, network
At least two parameters in signal intensity and network type priority.
S103:It is switched to the determination objective network.
In the present embodiment, terminal device control switches over data service, is switched to by current network
Objective network, needs to judge whether objective network belongs to same data card with current network in implementing,
For example:Judge whether the objective network belongs to the first data card (current network belongs to the first data card);
If judging, the objective network belongs to the first data card, is changed to by way of network switching in card
The objective network;
If judging, the objective network is not belonging to the first data card, and data service is switched into described second
On data card, and access the objective network.
The method for switching network of the terminal that the present embodiment is provided, there is provided the network switching scheme of double-terminal,
For three or three terminals of data above card, this kind of mode can also be equally used, be examined by comprehensive
Consider the network information parameter of every kind of network of each data card, search out network information parameter most rationally effective
Objective network, complete network switching, effectively improve the degree of accuracy of network switching.
Fig. 4 is the flow chart of the method for switching network embodiment two of terminal provided in an embodiment of the present invention, such as
Shown in Fig. 4, on the basis of above-described embodiment one, new base station information as triggering bar is detected with terminal
Part, the present embodiment provides a kind of concrete implementation mode, and even described terminal detects new base station information,
Then the terminal meets network switching trigger condition;Then end in above-described embodiment one in step S102
Hold needs to cut according to the network information parameter of the first data card and the network information parameter determination of the second data card
The objective network for changing, implementing step includes:
S201:The terminal obtains the network type of the corresponding first network of the new base station information.
S202:If the network type priority that the terminal judges go out the first network is higher than described first
The network type priority of the current network of data card, then obtain the signal intensity of the first network.
In this programme, terminal device is after the terminal detects new base station information, to judge the base
Stand corresponding first network network type priority whether higher than current network, or whether and this
The priority of current network is identical, if it is, continue to detect the signal intensity of the first network, otherwise
This network switching is abandoned, when network switching condition is met next time, proceeds matching.
S203:If the terminal determines the signal intensity of the first network and the letter of the current network
The difference of number intensity is more than default signal strength threshold, then the first network is defined as into the target
Network.
In this step, judge whether higher than the signal intensity of current network the signal intensity of first network is,
Judgment mode can direct contrast signal intensity level, it is also possible to judge difference therebetween in a manner mentioned above
Whether it is more than default signal strength threshold, is only not less than in the priority for judging the first network and worked as
Preceding network, and signal intensity ratio current network it is high when, just using the first network as objective network,
Realize network switching.
During this programme is implemented, it is also possible to first judge the signal intensity of first network whether higher than current
Network, judges two height of the priority of network afterwards, and the contrast and judgement for parameter of the invention is sequentially
It is not limited.
New base station information can be one or more in this programme, if detect multiple base stations,
Priority and signal intensity are then judged in the manner described above to each new network, suitable mesh is selected
Mark network, realizes network switching.
The method for switching network of the terminal that this programme is provided, if terminal device detects new base station information,
Then the selection course of triggering network switching is, it is necessary to judge the network class of the corresponding first network in new base station
Type priority and signal intensity, only the first network priority higher than current network and signal is strong
When spending the signal intensity than current network, just the first network is gone as objective network to realize switching, led to
Cross and consider network type priority and signal intensity, it is ensured that the network performance after switching is better than current
Network.
If the optional terminal detects new base station information, the terminal meets network switching triggering
Condition, then terminal can be according to the signal intensity of new network, network type priority, residual flow (or
Person uses the flow such as flow service condition) at least two network information parameters realize step S102
In terminal according to the network information parameter of the first data card and the network information parameter determination of the second data card
Need the objective network of switching.Except the scheme of the embodiment shown in above-mentioned Fig. 4, also including following several
Implementation:
The first implementation:
Terminal obtains the network type of the corresponding first network of the new base station information;
If the network type priority that the terminal judges go out the first network is higher than first data card
Current network network type priority, then obtain the residual flow of the first network;
If the terminal determines the residual flow of the first network and the residual flow of the current network
Difference be more than default flow threshold, then the first network is defined as the objective network.
In the program, similar to the above detects new base station information by terminal device, then trigger network
The selection course of switching, it is necessary to judge the new base station corresponding the during objective network is chosen
The network type priority of one network and the residual flow of the first network or the flow for having used are
It is no to transfinite, only when the priority of the first network is higher than current network and more residual flow, just will
The first network is gone to realize switching as objective network, and above-mentioned scheme is provided and first judges that network type is excellent
The scheme of first level, in actual implementation process, it is also possible to first determine the residual flow of the first network, or
First determine first network has used flow, and priority is judged afterwards, and this present invention is not limited, and passes through
Consider network type priority and residual flow or used the situation of flow, it is ensured that after switching
Network performance is better than current network, and is not in that underfed produces expense, improves Consumer's Experience.
Second implementation:
The terminal obtains the signal intensity of the corresponding first network of the new base station information;
If the terminal obtains the signal intensity of the first network and the current network of first data card
Signal intensity difference be more than default signal strength threshold, then obtain the residual stream of the first network
Amount;
If the terminal determines the residual flow of the first network and the residual flow of the current network
Difference be more than default flow threshold, then the first network is defined as the objective network.
In this scenario, it is similar to the above that new base station information is still detected by terminal device, then touch
The selection course of network switching is sent out, during objective network is chosen, it is only necessary to consider new base station letter
Cease the signal intensity of corresponding first network and the residual flow of the first network or the stream for having used
Whether amount transfinites, only when the signal intensity of the first network is higher than current network and more residual flow,
Just the first network is gone as objective network to realize switching, above-mentioned scheme is provided and first judges that signal is strong
The scheme of degree, in actual implementation process, it is also possible to first determine the residual flow of the first network, Huo Zhexian
Determine the flow that used of first network, the signal intensity of first network and current network is judged afterwards, to this
The present invention is not limited, the situation of the signal intensity by considering network type priority and network,
Ensure that the network performance after switching is better than current network, improve the degree of accuracy of Consumer's Experience and network switching.
Fig. 5 is the flow chart of the method for switching network embodiment three of terminal provided in an embodiment of the present invention, such as
It is low with the signal intensity that terminal detects current network on the basis of above-described embodiment one shown in Fig. 5
Network switching is triggered in default signal strength threshold, the present embodiment provides a kind of concrete implementation mode,
The signal intensity that even described terminal detects the current network of first data card is less than default signal
Strength threshold, then the terminal meet network switching trigger condition;Then step S102 in above-described embodiment one
In the terminal according to the network information parameter of the first data card and the network information parameter of the second data card
It is determined that needing the objective network of switching, implementing step includes:
S301:The terminal obtains at least one network type preferential from the base station information list of storage
Level is not less than the second network of the current network.
In the present embodiment, terminal device detects current signal intensity less than default signal intensity door
Wait in limited time, new network is searched from local storage base station information list, the network type of the new network
Priority be higher than or the current network network type priority, or the network class with current network
Type priority is identical.
S302:The terminal obtains the residual flow of each the second network.
S303:The terminal according to the residual flow of each the second network, according to default optimal flux set
Meal decision condition, selects second net of optimal flux set meal from described at least one second networks
Network is used as the objective network.
In the present embodiment, obtain priority be not less than current network one or more second networks it
Afterwards, the residual flow of each the second network is detected, or has used flow, selecting residual flow is higher than
The network of default thresholding, or the most network of residual flow, or flow has been used not less than setting
Limits value network as objective network, carry out network switching.
In the present embodiment, network type priority can preferentially be judged, it is also possible to first judge residual flow,
It is without limitation.
The method for switching network of the terminal that the present embodiment is provided, triggering the condition of the function of network switching is
The signal intensity for detecting current network is poor, for example:Signal intensity is less than preset signal strength thresholding.
For the data service or speech quality that avoid user are affected, then can be combined according to other parameters
Get up to select new objective network to switch over, in implementing, can be stored from the terminal device
Selected in multiple base station informations, base station here includes the website of multiple network standard, and network is selected first
Type priority level be higher than or with current network identical the second networks of multiple then detect respectively each the
Whether the residual flow of two networks meets the condition of setting, or detects having used for each the second network
Whether flow exceedes limits value, or can be according to the sequence of signal intensity, according to network type priority
And the suitable objective network of flow service condition selection carries out network switching, can effectively provide network switching
The degree of accuracy.
If the optional terminal detects the signal intensity of current network less than preset signal strength thresholding,
Then the terminal meets network switching trigger condition, then terminal can according to the signal intensity of new network,
Network type priority, in residual flow (or having used the flow such as flow service condition) at least two
Individual network information parameter realizes network information parameter of the terminal in step S102 according to the first data card
Network information parameter determination with the second data card needs the objective network of switching.Except shown in above-mentioned Fig. 5
Embodiment scheme, also including following several implementations:
The first implementation:
The terminal obtains at least one signal intensity and is more than the letter from the base station information list of storage
Second network of number strength threshold;
The terminal obtains the residual flow of each the second network;
The terminal judges according to the residual flow of each the second network according to default optimal flux set meal
Condition, selects a second network conduct of optimal flux set meal from described at least one second networks
The objective network.
It is similar with such scheme in this implementation, it is still low by the signal intensity of current network
In threshold value triggering network switching action, terminal device selection signal from the base station information list of storage is strong
Degree is more than multiple second networks of threshold value, flow service condition (bag then according to those the second networks
Include residual flow or used flow) or according to network type priority, selection flow package is reasonable,
Or signal intensity and network priority carry out network switching higher than the objective network of current network, effectively carry
The degree of accuracy of network switching high, it is ensured that the network performance after switching is better than current network.
In addition, in implementing, the judgement of above-mentioned residual flow, or signal intensity contrast,
Or the selection execution sequence of network priority is not limited, and can be selected according to actual conditions.
Second implementation:
The terminal obtains at least one residual flow surplus more than default from the base station information list of storage
Second network of remaining traffic threshold;
The terminal obtains the signal intensity of each the second network;
The terminal is selected according to the signal intensity of each the second network from described at least one second networks
Optimal second network of signal intensity is selected out as the objective network.
It is similar with above-mentioned two scheme, in this implementation, still it is less than by current network signal intensity
Threshold value triggers the action of network switching, and terminal device selects from the base station information list of storage
Residual flow is more, that is, the flow for having used is less, relatively more rational multiple second networks of network traffics,
Then according to the priority or signal intensity of each the second network, prioritizing selection signal intensity it is relatively strong or
The network of network type priority completes network switching, the network performance after the switching as objective network
Better than current network, and for which parameter first judged in implementation process, which parameter this hair is judged afterwards
It is bright not to be limited.
Fig. 6 is the flow chart of the method for switching network example IV of terminal provided in an embodiment of the present invention, such as
It is few with the residual flow that terminal detects current network on the basis of above-described embodiment one shown in Fig. 6
Network is triggered in default residual flow thresholding, or when exceeding default use traffic threshold using flow
Switching, the present embodiment provides a kind of concrete implementation mode, and even described terminal detects first number
Default residual flow thresholding is less than according to the residual flow of the current network of card, then the terminal meets network
Handover triggering condition;Then the terminal in above-described embodiment one in step S102 is according to the first data card
The network information parameter determination of network information parameter and the second data card needs the objective network of switching, specifically
Realize that step includes:
S401:The terminal obtains at least one network type preferential from the base station information list of storage
Level is not less than the second network of the current network.
Similar with above-described embodiment two, terminal device is selected from the base station information list being locally stored
One of the network type priority that may be coupled to greater than or equal to the network type priority of current network
Or multiple second networks.
S402:The terminal obtains the residual flow of each the second network.
S403:The terminal according to the residual flow of each the second network, according to default optimal flux set
Meal decision condition, selects second net of optimal flux set meal from described at least one second networks
Network is used as the objective network.
Then the terminal device has used flow or residual flow from each the second network is monitored, according to
Default optimal flux set meal decision condition, it is most rational from those second networks to select flow package
One, as objective network, is realized network switching.
Wherein, the optimal flux set meal decision condition can include:Residual flow at most, or has been used
Flow is minimum etc..
It is to be touched by the residual flow deficiency under currently used network formats in this programme, in the program
Hair network switching, to avoid beyond the flow package expense unnecessary for user brings, this programme terminal sets
It is standby to obtain that network priority is higher than current network or multiple second nets of identical from base station information list
Network, then to be flow service condition select the signal intensity or residual flow according to each the second network
Objective network, completes network switching, in implementation process, it is also possible to pay the utmost attention to residual flow or net
Network signal intensity, considers further that the height of network type priority, can be configured according to actual conditions,
It is without limitation.
If the residual flow that the optional terminal detects current network is less than default residual flow thresholding,
Then the terminal meets network switching trigger condition, then terminal can according to the signal intensity of new network,
Network type priority, in residual flow (or having used the flow such as flow service condition) at least two
Individual network information parameter realizes network information parameter of the terminal in step S102 according to the first data card
Network information parameter determination with the second data card needs the objective network of switching.Except shown in above-mentioned Fig. 5
Embodiment scheme, also including following several implementations:
The first implementation:
The terminal obtains at least one signal intensity and is more than the letter from the base station information list of storage
Second network of number strength threshold;
The terminal obtains the residual flow of each the second network;
The terminal judges according to the residual flow of each the second network according to default optimal flux set meal
Condition, selects a second network conduct of optimal flux set meal from described at least one second networks
The objective network.
Optionally, it is also possible to the multiple networks for meeting optimal flux set meal are first selected according to residual flow,
Then judge the signal intensity of those networks, select suitable according to signal intensity order from high to low
Objective network, carries out network switching.
Similar with such scheme, the same network switching that triggered by residual flow deficiency is acted in the program,
Terminal device according to network signal intensity and the flow service condition of each network, or according to network signal
Intensity and network type priority, select network state and residual flow all to compare from base station information list
Good objective network completes network switching, improves the degree of accuracy and the Consumer's Experience of network switching.
Second implementation:
The terminal obtains at least one residual flow surplus more than default from the base station information list of storage
Second network of remaining traffic threshold;
The terminal obtains the signal intensity of each the second network;
The terminal is selected according to the signal intensity of each the second network from described at least one second networks
Optimal second network of signal intensity is selected out as the objective network.
It is also trigger condition that used residual flow is used as network switching less than pre-determined threshold in this programme,
Then according to the information of the multiple networks stored in base station information list, according to the situation and letter of residual flow
Number intensity, or can according to the situation of residual flow and network type priority, select performance compared with
Good objective network carries out network switching, considers multiple parameters selection performance and residual flow is rational
Objective network, improves the degree of accuracy of network switching.
It is that signal intensity, each network of each network from each card are remained in above-mentioned various ways
The alternatively new target of any two parameter in the network type priority of residual current amount and each network
Network, and any two parameter for selecting, the order judged during implementing is not
Limitation, as long as objective network of the performance better than current network can be selected.
In the embodiment shown in above-mentioned Fig. 3 to Fig. 6, it is utilized in triggering network switching and acts it
Afterwards, selecting two kinds of parameters carries out the selection of objective network, can to a certain extent improve network switching
The degree of accuracy, it is preferred that signal intensity, each residue of network organization of terminal device according to each network of each card
Three kinds of parameters of network type priority of flow and each network carry out the selection one of objective network, to enter
One step improves the degree of accuracy of network switching, improves Consumer's Experience.Every kind of implementation is carried out separately below
Explanation.
Fig. 7 is the flow chart of the method for switching network embodiment five of terminal provided in an embodiment of the present invention, such as
The executive agent of the program shown in Fig. 7 be terminal device, i.e., the terminal in above-mentioned Fig. 1 and Fig. 2, for example:
The equipment that mobile phone, panel computer etc. can realize data service by data card, in implementation as shown in Figure 3
On the basis of example, when terminal detects new base station information, it is determined that terminal meets network switching triggering bar
Part is, it is necessary to carry out the matching process of network switching, then the terminal in step 102 is according to the first data card
The network information parameter determination of network information parameter and the second data card needs the objective network of switching, specifically
It is to be by step:
S501:The terminal obtains the network type of the corresponding first network of the new base station information.
S502:If the network type priority that the terminal judges go out the first network is higher than described first
The network type priority of the current network of data card, then obtain the signal intensity of the first network.
In this step, after terminal detects new base station information, it is corresponding that detection obtains the new base station
The network type of first network, according to the network type priority orders or the network of acquiescence that are pre-configured with
Whether type priority level, detect the priority of the first network higher than current network, or with current net
Network is identical, if the network type priority of the first network is less than current network, abandons this switching
Process, that is, ensure that the bad network of performance should not be switched to.
After detecting priority and be eligible, the signal intensity of the first network is obtained, it is further right
Signal intensity is contrasted, it is ensured that the signal quality of the network after switching is better than current network.
S503:If the terminal determines the signal intensity of the first network and the letter of the current network
The difference of number intensity is more than default signal strength threshold, then obtain the first network residual flow and
The residual flow of the current network.
In this step, if detecting the signal intensity of the signal intensity less than current network of first network,
Then abandon this network switching process.
During judging to contrast signal intensity, first network and current net can be directly contrasted
The size of the signal intensity of network, it is also possible to judge whether difference therebetween is more than default signal strength threshold,
After the condition for meeting signal intensity, the residual flow of first network is finally detected, judge residual stream
Whether amount disclosure satisfy that requirement.
S504:If the residual flow of the first network is big with the difference of the residual flow of the current network
In default flow threshold, then the first network is defined as the objective network.
In this step, this network switching is terminated if the underfed of first network, it is to avoid Yong Huyin
Unnecessary expense is produced using the network after switching, judges whether the residual flow of first network meets bar
The mode of part can be:The residual flow of first network and the residual flow of current network are directly contrasted, if
The residual flow of first network is more than the residual flow of current network, then meet;Or sentence according to above-mentioned
Whether the residual flow of disconnected first network is with the difference of the residual flow of current network more than the threshold value for setting;
Or can also direct detection used flow, judge whether exceeded default threshold value with using flow,
The present invention is not limited for the judgment mode having.
System schematic with reference to shown in foregoing description and Fig. 1 and Fig. 2, takes an example for illustration we below
Case, by taking mobile phone as an example.
1st, there is change when mobile phone detects base station information, the difference with current network type will be checked, concurrently
An intelligent Matching process is played, base station information change is listened to, the connection network type for getting is checked
A (equivalent to above-mentioned current network), the newly-increased base station network type B of contrast is (equivalent to above-mentioned first
Network) network type, into next step.
2nd, comparing cell type, according to default network type priority, for example:4G > 3G > 2G,
If B is 3G better than A such as A, B is 4G, then newly-increased base station network performance is more excellent than A, into step
Rapid 3, otherwise into step 4.
3rd, the signal intensity S, contrast signal strength S A and SB, if SB-SA of A and B network signals are obtained>
Threshold value, into step 5, otherwise into step 4.
4th, terminate this matching process, abandon this network switching process.
5th, check that A corresponds to the rest network flow TB of operator, and B corresponds to the rest network of operator
Flow TB, if TB-TA>Threshold value, into step 6, otherwise into step 4.
6th, base station information is inquired about, A is checked, whether B networks belongs to the same card, be then to enter step 7,
Otherwise enter step 8.
7th, the network switching in single deck tape-recorder is directly carried out.
8th, switch data service card, and shown to user and cut by user interface (User Interface, UI)
Change prompting.
Examples detailed above provide first determine whether the priority of network type, it is eligible after judging that signal is strong
Degree, finally detect network for residual flow, in actual realization, for sentencing for above three parameter
The disconnected order present invention is not limited, and may be randomly provided according to specific circumstances, that is, there are three kinds of parameter rows
Six kinds of implementations that row combination is produced, can realize the selection of above-mentioned objective network.
The method for switching network of the terminal that the present embodiment is provided, during objective network is chosen, is both needed to
Consider network type priority, signal intensity and the flow service condition of network, the property selected
Current network can be better than, and the enough objective networks of residue of network organization flow are switched over, the objective network
Can be the network formats, or other data cards being arranged in the terminal device of the first data card
Network, for example:Second data card, by this kind of mode, is effectively ensured the network performance after switching more
It is good, also extra-pay will not be produced due to data traffic, the degree of accuracy of network switching is effectively improved, and
Improve Consumer's Experience.
Fig. 8 is the flow chart of the method for switching network embodiment six of terminal provided in an embodiment of the present invention, such as
The executive agent of the program shown in Fig. 8 be terminal device, i.e., the terminal in above-mentioned Fig. 1 and Fig. 2, for example:
The equipment that mobile phone, panel computer etc. can realize data service by data card, in implementation as shown in Figure 3
On the basis of example, when terminal detects the signal intensity of the current network of first data card less than default
Signal strength threshold, it is determined that terminal meets network switching trigger condition, it is necessary to carry out network switching
Matching process, then network information parameter and second data of the terminal in step 102 according to the first data card
The network information parameter determination of card needs the objective network of switching, is specifically by step:
S601:The terminal obtains at least one network type preferential from the base station information list of storage
Level is not less than the second network of the current network.
In this step, terminal needs to select one or more network classes from the base station information list of storage
Type priority need not the low network of current network alternately, the base station information list includes that multiple can be with
The parameter information of the attachable base station for detecting.
Due to the change of the mobility and Internet resources of terminal, terminal needs to enter above-mentioned base station information list
Row is safeguarded and updated, and judges whether current service network is most based on the parameter that base station information list is included
Excellent network, if in the presence of can provide the user higher quality network service or more meet user's rate demand
Usable network, then terminal carry out the matching process of network switching.
If not inquiring priority in the base station information list to fail in exam in the network of current network, abandon
The matching process of this network switching.
S602:The terminal obtains the residual flow and signal intensity of each the second network.
S603:The terminal by signal intensity at least one second networks more than the signal strength threshold,
And the second network of optimal flux set meal Rule of judgment is met as the objective network.
In this programme, terminal needs to obtain the signal intensity and residual flow of the network for choosing,
Can first judge that whether signal intensity, higher than current network, then judges whether residual flow meets optimal stream
Measure the network of set meal condition, it is also possible to first judge detection signal intensity after residual flow.
System schematic with reference to shown in foregoing description and Fig. 1 and Fig. 2, takes an example for illustration we below
Case, by taking mobile phone as an example.There is change when mobile phone detects signal intensity, current signal strength will be checked whether
Less than threshold value, and initiate an intelligent Matching process.
1st, change in signal strength is listened to, checks that whether signal intensity, less than threshold value, is then to enter step 2,
Otherwise enter step 3.
2nd, all base station information lists of local preservation are checked, the network type with current network A is found
Priority is equal or network of more excellent bandwidth, has and then enters step 4, otherwise into step 3.
3rd, this matching process is terminated.
4th, the flow package of qualified all-network and current network is checked, optimal flux set meal is found out
The network B of ratio, if not current network, then into step 5, otherwise into step 3.
5th, base station information is inquired about, A is checked, whether B networks belongs to the same card, be then to enter step 6,
Otherwise enter step 7.
6th, single deck tape-recorder network switching is directly carried out.
7th, switch data service card, and shown to user and cut by user interface (User Interface, UI)
Change prompting.
From unlike such scheme, current network signal intensity is being detected less than preset signal strength door
Under the trigger condition of limit, terminal device is judged whether as objective network simultaneously according to three parameters;
The scheme of above-mentioned offer is to judge network type priority, flow service condition and signal intensity successively
What order was carried out, in fact, during implementing, preferentially judge which parameter is not limited,
There are six kinds of implementations that three kinds of parameter permutation and combination are produced, can realize above-mentioned objective network
Selection.
The method for switching network of the terminal that the present embodiment is provided, during objective network is chosen, is both needed to
Consider network type priority, signal intensity and the flow service condition of network, the property selected
Current network can be better than, and the enough objective networks of residue of network organization flow are switched over, the objective network
Can be the network formats, or other data cards being arranged in the terminal device of the first data card
Network, for example:Second data card, by this kind of mode, is effectively ensured the network performance after switching more
It is good, also extra-pay will not be produced due to data traffic, the degree of accuracy of network switching is effectively improved, and
Improve Consumer's Experience.
Fig. 9 is the flow chart of the method for switching network embodiment seven of terminal provided in an embodiment of the present invention, such as
The executive agent of the program shown in Fig. 8 be terminal device, i.e., the terminal in above-mentioned Fig. 1 and Fig. 2, for example:
The equipment that mobile phone, panel computer etc. can realize data service by data card, in implementation as shown in Figure 3
On the basis of example, when terminal detects the residual flow of the current network of first data card less than default
Residual flow thresholding (it is optional, can also be here terminal detect current network used flow
More than default use traffic threshold), it is determined that terminal meets network switching trigger condition, it is necessary to carry out network
The matching process of switching, then the terminal in step 102 is according to the network information parameter of the first data card and
The network information parameter determination of two data cards needs the objective network of switching, is specifically by step:
S701:The terminal obtains at least one network type preferential from the base station information list of storage
Level is not less than the second network of the current network.
S702:The terminal obtains the residual flow and signal intensity of each the second network.
S703:The terminal by signal intensity at least one second networks more than the signal strength threshold,
And the second network of optimal flux set meal Rule of judgment is met as the objective network.
Specific implementation is similar to the above embodiments, and unlike such scheme, is by current network
Residual flow it is not enough, triggering network switching action, terminal device is judged simultaneously according to three parameters
Whether as objective network;The scheme of above-mentioned offer is to judge that network type priority, flow are used successively
What the order of situation and signal intensity was carried out, in fact, during implementing, it is preferential which judges
Individual parameter is not limited, that is, there are six kinds of implementations that three kinds of parameter permutation and combination are produced, can be with
Realize the selection of above-mentioned objective network.
In several schemes shown in Fig. 7 to Fig. 9, current network A is if 2G in the first data card
Networking, then according to the scheme of any of the above-described embodiment, find out the objective network possibility for meeting above-mentioned condition
It is:3G and 4G networks in first data card, it is also possible to 2G, 3G and 4G in the second data card
Network;Current network A finds out and meets above-mentioned condition if 3G networkings in the first data card
Objective network is probably:3G and 4G networks in first data card, it is also possible in the second data card
3G and 4G networks;Current network A is found out in satisfaction if 4G networkings in the first data card
The objective network for stating condition is probably:4G networks in first data card, it is also possible to the second data card
In 4G networks.
The method for switching network of the terminal that above-mentioned several implementations are provided, no matter touched by which type of
Clockwork spring part triggers the action of network switching, during objective network is chosen, is required to consider
The network type priority of network, signal intensity and flow service condition, select performance better than current
Network, and the enough objective networks of residue of network organization flow switch over, and the objective network can be first
The network of the network formats of data card, or other data cards in the terminal device, example
Such as:Second data card, by this kind of mode, is effectively ensured the network performance after switching more preferably, effectively carries
The degree of accuracy of network switching high, and ensure the residual flow of the network after switching enough, will not be due to number
Extra-pay is produced according to flow, Consumer's Experience is further improved.
Figure 10 is the flow chart of the method for switching network embodiment eight of terminal provided in an embodiment of the present invention, such as
Shown in Figure 10, terminal includes the first data card and the second data card, first data card in the present embodiment
It is the currently used data card of the terminal, if including more than two data cards in the terminal, it is also possible to
Suitable targeted website is selected to switch over reference to which.
The present embodiment provides a kind of residual flow deficiency in current network or has used flow to exceed limitation
Trigger condition under, realize the detailed step of network switching:
S801:Detection is whether the flow that has used of current network of first data card exceedes and match somebody with somebody in advance
The use flow threshold put.
If the flow that the current network has been used uses flow threshold more than described, this network is triggered
Handoff procedure, then terminal according to each network of first data card used flow, signal intensity with
And each network of network type priority and second data card used flow, signal intensity and
Network type priority, it is determined that needing the objective network of switching, concrete implementation mode following steps S802
And S803.
S802:If the flow that the current network has been used uses flow threshold, the terminal more than described
From the base station information list of storage, the network type priority according to each network obtains at least one network
Type priority level is not less than the 3rd network of the current network.
S803:According to network type priority order from high to low, the terminal is according to the current net
The signal intensity of the signal intensity of network and each the 3rd network and each network use flow, obtain and believe
Number intensity is more than preset signal strength threshold value and has used flow not less than the net of the use flow threshold
Network is used as the objective network.
In the present embodiment, a kind of concrete implementation mode is:
The terminal is obtained according to the signal intensity of the current network and the signal intensity of each the 3rd network
Take fourth network of at least one signal intensity more than preset signal strength threshold value;It is excellent according to network type
Whether first level order from high to low, each the 4th network is detected successively exceedes described making using flow
Use flow threshold;If having used flow not less than the use flow threshold in the presence of the 4th network,
Then using the 4th network as the objective network.
S804:It is switched to the objective network.
In the present embodiment, it is described be switched to the objective network specific implementation be:First determine whether
Whether the objective network belongs to the first data card;If belonging to, changed by way of network switching in card
To the objective network;If being not belonging to, data service is switched on second data card, and connect
Enter the objective network.
System schematic with reference to shown in foregoing description and Fig. 1 and Fig. 2, takes an example for illustration this reality below
Apply the technical scheme of example, it is same by taking mobile phone as an example.When finding that current network flow exceedes threshold value, will
An intelligent Matching process is initiated, specific matching process is:
1st, mobile phone listen to current network used flow exceed whether exceed default use traffic threshold
When, if then entering step 2.
2nd, the local middle all base station information lists for preserving of mobile phone are checked, inquiry obtains equal with existing network
Or the network of more excellent bandwidth, step 4 is entered if in the presence of such network, step 3 is entered if not existing.
3rd, this matching process is terminated.
4th, the signal intensity of qualified all-network and current network is checked, if the letter of preferred network
Number intensity is higher than threshold value or the signal intensity higher than current network A, if enter in the presence of such network walking
Rapid 5, otherwise into step 6.
That the 5th, inquires about the network has used flow value, if it exceeds more than set use limit current value, then
Into step 6, otherwise into step 7.
6th, circulation step 4, search successively according to network type priority order from high to low, find letter
Number intensity higher than threshold value network B, if then entering step 5, otherwise into step 3.
7th, base station information is inquired about, A is checked, whether B networks belongs to the same card, be then to enter step 8,
Otherwise enter step 9.
8th, single deck tape-recorder network switching is directly carried out.
9th, switch data service card, and shown to user and cut by user interface (User Interface, UI)
Change prompting.
The method for switching network of the terminal that this programme is provided, sets when finding that currently used network traffics exceed
During the threshold value put, terminal device initiates an intelligent Matching process according to above-mentioned mode, checks storage
In base station information list preserve priority be higher than or with current network identical multiple the 3rd networks, so
Detect the signal intensity of each the 3rd network afterwards, select-out signal intensity higher than the signal strength threshold for setting or
Person sets the network of threshold value, and the flow service condition of each network then inquired about in those networks is searched
Go out the order from high to low according to network type priority, looked into since the best network of signal intensity successively
Look for, if in the presence of the use of flow being that, more than thresholding, the network of other better performances is no then as objective network
Then next network is judged, until better performances are found, and the more objective network of residual flow
Switching is completed, the degree of accuracy of network switching is effectively improved, Consumer's Experience is improved.
Figure 11 is the structural representation of terminal device embodiment one provided in an embodiment of the present invention, such as Figure 11
Shown, the terminal device 10 includes the first data card 11 and the second data card 12, first data
It is the currently used data card of the terminal device 10 to block, and the terminal device 10 also includes:
Detection module 13, for detecting whether meeting network switching trigger condition;
Processing module 14, network switching trigger condition, root are met if being detected for the detection module
Switching is needed according to the network information parameter of the first data card and the network information parameter determination of the second data card
Objective network;
The processing module 14 is additionally operable to be switched to the determination objective network.
The terminal device that the present embodiment is provided, for performing the terminal described in Fig. 3 to Figure 10 any embodiments
Method for switching network, its realization principle is similar with technique effect, will not be repeated here.
Figure 12 is the structural representation of terminal device embodiment two provided in an embodiment of the present invention, such as Figure 12
Shown, the processing module 14 of the terminal device 10 includes:
Judging submodule 141, for judging whether the objective network belongs to the first data card;
Network handover submodule 142, is used for:
If the judging submodule 141 judges that the objective network belongs to the first data card, by card
The mode of interior network switching changes to the objective network;
If the judging submodule 141 judges that the objective network is not belonging to the first data card, by number
According in service switching to second data card, and access the objective network.
Optionally, the network information parameter that the processing module 14 is obtained includes the surplus of the network of the card
At least two parameters in residual current amount, the signal intensity of network and network type priority.
Optionally, if the detection module 13 detects new base station information, the terminal device 10
Meet network switching trigger condition;
Then the processing module 14 specifically for:
Obtain the network type of the corresponding first network of the new base station information;
If judging the current net of the network type priority higher than first data card of the first network
The network type priority of network, then obtain the signal intensity of the first network;
If it is determined that the signal intensity of the first network is big with the difference of the signal intensity of the current network
In default signal strength threshold, then the first network is defined as the objective network.
Optionally, if the detection module 13 detects new base station information, the terminal device 10
Meet network switching trigger condition;
Then the processing module 14 specifically for:
Obtain the network type of the corresponding first network of the new base station information;
If judging the current net of the network type priority higher than first data card of the first network
The network type priority of network, then obtain the residual flow of the first network;
If it is determined that the residual flow of the first network is big with the difference of the residual flow of the current network
In default flow threshold, then the first network is defined as the objective network.
Optionally, if the detection module 13 detects new base station information, the terminal device 10
Meet network switching trigger condition;
Then the processing module 14 specifically for:
Obtain the signal intensity of the corresponding first network of the new base station information;
If the signal intensity for obtaining the first network is strong with the signal of the current network of first data card
The difference of degree is more than default signal strength threshold, then obtain the residual flow of the first network;
If it is determined that the residual flow of the first network is big with the difference of the residual flow of the current network
In default flow threshold, then the first network is defined as the objective network.
Optionally, if the detection module 13 detects the signal of the current network of first data card
Intensity is less than default signal strength threshold, then the terminal device meets network switching trigger condition;
Then the processing module 13 specifically for:
From the base station information list of storage, obtain at least one network type priority and be not less than described working as
Second network of preceding network;
Obtain the residual flow of each the second network;
According to the residual flow of each the second network, according to default optimal flux set meal decision condition, from
Second network of optimal flux set meal is selected in described at least one second networks as the target
Network.
Optionally, if the detection module 13 detects the signal of the current network of first data card
Intensity is less than default signal strength threshold, then the terminal device 10 meets network switching trigger condition;
Then the processing module 14 is used for:
From the base station information list of storage, at least one signal intensity is obtained more than signal intensity door
Second network of limit;
Obtain the residual flow of each the second network;
According to the residual flow of each the second network, according to default optimal flux set meal decision condition, from
Second network of optimal flux set meal is selected in described at least one second networks as the target
Network.
Optionally, if the detection module 13 detects the signal of the current network of first data card
Intensity is less than default signal strength threshold, then the terminal device 10 meets network switching trigger condition;
Then the processing module 14 specifically for:
From the base station information list of storage, obtain at least one residual flow and be more than default residual flow door
Second network of limit;
Obtain the signal intensity of each the second network;
According to the signal intensity of each the second network, signal is selected from described at least one second networks
Optimal second network of intensity is used as the objective network.
Optionally, if the detection module 13 detects the residue of the current network of first data card
Flow is less than default residual flow thresholding, then the terminal device 10 meets network switching trigger condition;
Then the processing module 14 specifically for:
From the base station information list of storage, obtain at least one network type priority and be not less than described working as
Second network of preceding network;
Obtain the residual flow of each the second network;
According to the residual flow of each the second network, according to default optimal flux set meal decision condition, from
Second network of optimal flux set meal is selected in described at least one second networks as the target
Network.
Optionally, if the detection module 13 detects the residue of the current network of first data card
Flow is less than default residual flow thresholding, then the terminal device 10 meets network switching trigger condition;
Then the processing module 14 specifically for:
From the base station information list of storage, at least one signal intensity is obtained more than signal intensity door
Second network of limit;
Obtain the residual flow of each the second network;
According to the residual flow of each the second network, according to default optimal flux set meal decision condition, from
Second network of optimal flux set meal is selected in described at least one second networks as the target
Network.
Optionally, if the detection module 13 detects the residue of the current network of first data card
Flow is less than default residual flow thresholding, then the terminal device 10 meets network switching trigger condition;
Then the processing module 14 specifically for:
From the base station information list of storage, obtain at least one residual flow and be more than default residual flow door
Second network of limit;
Obtain the signal intensity of each the second network;
According to the signal intensity of each the second network, signal is selected from described at least one second networks
Optimal second network of intensity is used as the objective network.
Optionally, if the detection module 13 detects new base station information, the terminal device 10
Meet network switching trigger condition;
Then the processing module 14 specifically for:
Obtain the network type of the corresponding first network of the new base station information;
If judging the current net of the network type priority higher than first data card of the first network
The network type priority of network, then obtain the signal intensity of the first network;
If it is determined that the signal intensity of the first network is big with the difference of the signal intensity of the current network
In default signal strength threshold, then the residual flow and the current network of the first network are obtained
Residual flow;
If the residual flow of the first network is more than default with the difference of the residual flow of the current network
Flow threshold, then the first network is defined as the objective network.
Optionally, if the signal that detects the current network of first data card of the detection module 13 is strong
Degree is less than default signal strength threshold, then the terminal device 10 meets network switching trigger condition;
Then the processing module 14 specifically for:
From the base station information list of storage, obtain at least one network type priority and be not less than described working as
Second network of preceding network;
Obtain the residual flow and signal intensity of each the second network;
By signal intensity at least one second networks is more than the signal strength threshold and meets optimal stream
The second network of set meal Rule of judgment is measured as the objective network.
Optionally, if the detection module detects the residual flow of the current network of first data card
Less than default residual flow thresholding, then the terminal device 10 meets network switching trigger condition;
Then the processing module 14 specifically for:
From the base station information list of storage, obtain at least one network type priority and be not less than described working as
Second network of preceding network;
Obtain the residual flow and signal intensity of each the second network;
By signal intensity at least one second networks is more than the signal strength threshold and meets optimal stream
The second network of set meal Rule of judgment is measured as the objective network.
The terminal device that the present embodiment is provided, for performing the terminal described in Fig. 3 to Figure 10 any embodiments
Method for switching network, its realization principle is similar with technique effect, will not be repeated here.
Figure 13 is the structural representation of terminal device embodiment three provided in an embodiment of the present invention, such as Figure 13
Shown, the terminal device 20 includes:First data card 21 and the second data card 22, first data
Card 21 is the currently used data card of the terminal device 20, is also included:
Detection module 23, for detect be first data card the flow that has used of current network whether
More than the use flow threshold being pre-configured with;
Processing module 24, if detect the flow that the current network used for the detection module surpassing
The use flow threshold is crossed, then each network according to first data card has used flow, signal
Each network of intensity and network type priority and second data card has used the flow, signal strong
Degree and network type priority, it is determined that needing the objective network of switching;
The processing module 24 is additionally operable to be switched to the objective network.
Further, the processing module 24 specifically for:
From the base station information list of storage, the network type priority according to each network obtains at least one
Network type priority is not less than the 3rd network of the current network;
According to network type priority order from high to low, signal intensity according to the current network and
The signal intensity of each the 3rd network and each network have used flow, obtain signal intensity more than default
Signal strength threshold value and use flow not less than the network for using flow threshold as the target
Network.
Further, the processing module 24 specifically for:
The signal intensity of signal intensity and each the 3rd network according to the current network, obtains at least one
Fourth network of the individual signal intensity more than preset signal strength threshold value;
According to network type priority order from high to low, having used for each the 4th network is detected successively
Whether flow exceedes the use flow threshold;
If having used flow not less than the use flow threshold in the presence of the 4th network, by this
Four networks are used as the objective network.
The terminal device that the present embodiment is provided, for performing the terminal described in Fig. 3 to Figure 10 any embodiments
Method for switching network, its realization principle is similar with technique effect, will not be repeated here.
Figure 14 is the structural representation of terminal device example IV provided in an embodiment of the present invention, such as Figure 14
Shown, the processing module 24 of the terminal device 20 includes:
Judging submodule 241, for judging whether the objective network belongs to the first data card;
Treatment submodule 242, is used for:
If the judging submodule 241 judges that the objective network belongs to the first data card, by card
The mode of interior network switching changes to the objective network;
If the judging submodule 241 judges that the objective network is not belonging to the first data card, by number
According in service switching to second data card, and access the objective network.
The terminal device that the present embodiment is provided, for performing the terminal described in Fig. 3 to Figure 10 any embodiments
Method for switching network, its realization principle is similar with technique effect, will not be repeated here.
With reference to the method for above-mentioned any embodiment, below by terminal device specific performing module it is thin
Change and interact to illustrate technical scheme with server, base station.
Figure 15 is the schematic diagram of the use framework of the method for switching network of terminal provided in an embodiment of the present invention,
As shown in figure 15, terminal device, base station 1, base station 2, base station 3 and rate server;Wherein, join
The embodiment stated before examination, terminal device is provided with two data service cards, data service cards 1 and data industry
Business card 2;Data service cards 1 support 4G networks, 3G network and the 2G networks that operator 1 provides;Number
4G networks, 3G network and the 2G networks of the offer of operator 2 are provided according to service card 2.
Base station 1 can provide the network service of operator 1;Base station 2 can provide the network of operator 2
Service;Base station 3 can provide the network service of operator 1 and operator 2.
Further, the terminal includes:Net mate unit, Transmit-Receive Unit, the stream of processing module control
Amount administrative unit;Wherein, the function of Transmit-Receive Unit can be by wave point (Radio Interface
Layer, referred to as:RIL) layer is realized:The radio frequency unit of terminal obtains each by base station near search
The network type of the signal strength values of the network of base station, the network of each base station, these information are passed through
RIL layers returns to Android framework (Androd Framework) layer, and above-mentioned network information list is stored up
There is Android ccf layer.
The function of the net mate unit can be by the plurality of SIM cards Telephone Management Agency unit in ccf layer
(MSimTelephony) the intelligent Matching unit and in ccf layer realizes that traffic management module generally sets
Put in application layer:Plurality of SIM cards phone module can match respective base station information, then select suitable data
Network is Terminal for service.
Wherein, RIL layers is operated in point-to-point protocol (Point to Point Protocol, PPP), transmission control
Agreement/Internet Protocol processed (Transmission Control Protocol/Internet Protocol,
TCP/IP) under agreement, be responsible for data transmitting, AT (Attention) order transmission and
The parsing of response message.Also, RIL layers also support SMS (Short Message Service) (Short Message Service,
Referred to as:SMS), the function such as audio call (Voice Call).
Specifically, being the intelligent terminal of Windows Mobile for operating system, its RIL layers is in nothing
On the protocol stack of line baseband system, under Cellular Core (Cell Core) layer of Windows Mobile.
It is the intelligent terminal of Android for operating system, Android operation system is divided into two codes by RIL layers
Space:One part is RIL finger daemons (RIL Daemon), and it is responsible for socket (socket)
Communicated with application framework.Another part is RIL finger daemons initialization (Vendor
RIL), this part is responsible for passing downwardly through two ways and is communicated with the communication module of mobile phone:Mode
First, the AT instruction paths for directly being communicated with the communication module of mobile phone;Mode two, for transmission of packet data
Data channel, data channel be used for mobile phone function of surfing the Net.
In addition, traffic management unit, interacts for the rate server with operator and obtains network
Remaining utilizable flow;Optionally, the form of flow information can be not limited to the remaining utilizable flow of network,
Can also be:The package information of operator, present flow rate use information of operator etc.;
Net mate unit, the above-mentioned parameter for being included based on network information list determines optimal network,
And service network is switched into the optimal network.
Optionally, switch prompting can be sent to terminal by net mate unit after network switching is completed
Output module, such as display module, loudspeaker etc.;By user interface (User Interface, abbreviation
UI) switch prompting is shown to user.
It should be noted that the function of net mate unit and traffic management unit, can be by terminal
BBP realize.The function of Transmit-Receive Unit can be realized by the radio frequency unit of mobile terminal.
Below by specific embodiment, terminal mentioned above is illustrated, Fig. 3 is the embodiment of the present invention
A kind of structural representation of the terminal device for providing, the terminal device is provided with least two data services
Card, reference picture 3, terminal device includes:Net mate unit, Transmit-Receive Unit and traffic management list
Unit;
The Transmit-Receive Unit, the signal intensity for obtaining network;
The traffic management unit, the residue of network organization utilizable flow of the corresponding operator for obtaining network;
The net mate unit, is used for:
The residue of network organization utilizable flow of the corresponding operator of signal intensity, the network according to the network
Determine whether to carry out network switching with the network type priority of network;The network includes current service net
Network and at least one usable network;
It is currently the network of the Terminal for service that the current service network is;Described at least one can
The network for using is the network that the terminal has access to;
If it is determined that carrying out network switching, then the current service network of the terminal is switched into first network;
The first network is to meet in described at least one usable network of switching condition.
Terminal device provided in an embodiment of the present invention, the signal for obtaining network by the transceiver module is strong
Degree;The traffic management module obtains the residue of network organization utilizable flow of the corresponding operator of network;The net
Network matching module can according to the residue of network organization of the signal intensity of the network, the corresponding operator of the network
With flow and the network type priority of network, network performance is selected better than current network, and residual stream
The optimal objective network of amount, the signal that network switching is then passed through into integrated network to the objective network for selecting
The network type priority of intensity, the residue of network organization utilizable flow of the corresponding operator of the network and network
Deng many factors, the network that selection meets switching condition is switched over, so as to take full advantage of multi-card terminal
The Internet resources of offer, improve the accuracy of network selection.
Figure 16 is the one of the method for switching network of terminal provided in an embodiment of the present invention to implement flow chart,
As shown in figure 16, on the basis of the concrete structure of the terminal device shown in above-mentioned Figure 15, the terminal device
Also include UI.Terminal device of the invention returns to base station information and change in signal strength by bottom RIL,
And double card whole network matching algorithm is carried out from three dimensions such as operator's acquisition SIM flow informations, and most
Select the data service cards and network being best suitable in currently practical environment eventually, and by UI layers of intelligence switching and
Prompting user.
Specifically matching process is:
S11:Monitor new base station information.The RIL of terminal device monitors that base station information changes,
Related base station information is obtained, the base station information includes the information such as MCC, MNC or LAC.
S12:Storage MCC, MNC information.The Telephone Management Agency unit of mobile telephone with multiple cards, that is, above-mentioned place
Reason module is stored those base station informations.
S13:The network type priority of contrast current network first network corresponding with new base station.Concurrently
The contrast to network type is played, contrast network type priority ensures the performance of the network selected better than current
Network.
S14:Instruction carries out net mate.Administrative unit indicating intelligent net mate unit carries out primary network
Matching, if that is, the priority of first network is less than current network, terminates this matching process.
S15:Indicate the signal intensity of contrast current network and first network.The intelligent network matching unit refers to
Show Framework layers of MSimTelephony module, i.e., the Telephone Management Agency unit in figure obtains each network
Signal intensity, and contrasted.
S16:Contrast the signal intensity of first network and the signal intensity of current network.
S17:The signal intensity of first network is higher.
S18:Inquire about the residual flow of first network.Net mate unit inquires about first to traffic management unit
The residual flow of network, and contrasted with current network.
S19:The residual flow of the residual flow of first network and current network is contrasted.
S20:The residual flow of first network is more.Obtain network type priority, the letter of the first network
Number intensity and residual flow are satisfied by condition, it is determined that the first network is the objective network that can switch.
S21:Whether the data card belonging to inquiry first network is identical with current network.Inquiry determination is blocked
Interior network switching still blocks a network switching.If inquire belonging to same data card, directly blocked in
Network switching.If inquiring the data card for belonging to different, first switch data card, Ran Houzai are needed
Handover network.
S22:Switch data card.
S23:Network switching is pointed out.Switch prompting is shown to user by UI.
Figure 17 is that the another of the method for switching network of terminal provided in an embodiment of the present invention implements flow
Figure, as shown in figure 17, on the basis of the concrete structure of the terminal device shown in above-mentioned Figure 15, the terminal
Equipment also includes UI.There is provided specific network switching matching process the step of be:
S31:Monitoring signals Strength Changes.RIL layers of terminal device monitors the corresponding signal of current network
Intensity, and obtain the data such as the signal intensity or variable quantity of current network.
S32:Feedback signal strength variable quantity.
S33:Whether the signal strength values for contrasting current network are less than preset signal strength thresholding.RIL layers should
Data feedback is contrasted to Telephone Management Agency unit, if the signal intensity of current network is less than the door of setting
Limit value, the then matching process of triggering following.
S34:Instruction carries out net mate.
S35:Indicate the base station information inquired about in the base station information list being locally stored.
S36:Obtain the second network that multiple network type priority are not less than current network.
The second net that multiple priority are not less than current network is obtained from the base station information list being locally stored
Network.
S37:Instruction carries out net mate.
S38:Inquire about the residual flow of each the second network.
S39:The most rational network of flow package is used as objective network in obtaining the second network.
I.e. from base station information list, the network type priority, signal intensity and residual flow are obtained equal
The network of condition is met as the objective network that can switch.
S40:Whether the data card belonging to inquiry objective network is identical with current network.
S41:Data card belonging to objective network is differed with current network.
Inquiry determination carries out the interior network switching of card and still blocks a network switching.If inquire belonging to same data
Card, then directly carry out the interior network switching of card.If inquiring the data card for belonging to different, elder generation is needed
Switch data card, then handover network again.
S42:Switch data card.
S43:Network switching is pointed out.Switch prompting is shown to user by UI.
Figure 18 is that the another of the method for switching network of terminal provided in an embodiment of the present invention implements flow
Figure, as shown in figure 18, on the basis of the concrete structure of the terminal device shown in above-mentioned Figure 15, the terminal
Equipment also includes UI.There is provided specific network switching matching process the step of be:
S51:Detect currently used flow and reach limit value.
S52:Feedback flow service condition.
Traffic management unit is by rate server lookup or detects currently used flow and has reached setting
Threshold value, or residual flow less than setting threshold value when, feed back the letter to Telephone Management Agency unit
Breath, triggering following network switching matching process.
S53:Obtain the 3rd network that multiple network type priority are not less than current network.
The 3rd net that multiple priority are not less than current network is obtained from the base station information list being locally stored
Network.
S54:Instruction carries out net mate.
S55:Inquire about the signal intensity of each 3rd network.
S56:Optimal network signal intensity is higher than preset signal strength threshold value.
Net mate unit indicates Telephone Management Agency unit to obtain the signal intensity of each the 3rd network, and carries out
Signal intensity deletes choosing, the preferable network of signal intensity, i.e. signal intensity is selected from the 3rd network high
In setting signal strength threshold or with the signal strength difference of current network more than one of given threshold or
Person's the 4th network of multiple.
S57:Obtain fourth network of the signal intensity higher than signal strength threshold value in the 3rd network.
S58:Inquire about the residual stream value of those the 4th networks.
S59:Obtain residual flow in the 4th network more or used flow not less than the network of limit value
As objective network.
Finally, the matching of network traffics is carried out, is selected residual flow more from first network or has been made
With the less network of flow as objective network, then abandon this if there is no such network and matched
Journey, does not carry out network switching.
If in the presence of such network, that is, obtaining network type priority, signal intensity and a residual flow
The network of condition is satisfied by as the objective network that can switch.
S60:Whether the data card belonging to inquiry objective network is identical with current network.
S61:Data card belonging to objective network is differed with current network.
Inquiry determination carries out the interior network switching of card and still blocks a network switching.If inquire belonging to same data
Card, then directly carry out the interior network switching of card.If inquiring the data card for belonging to different, elder generation is needed
Switch data card, then handover network again.
S62:Switch data card.
S63:Network switching is pointed out.Switch prompting is shown to user by UI.
Technical scheme in above-mentioned several embodiments, its essence is by changing Framework layers
MSimTelephony modules (i.e. above-mentioned plurality of SIM cards Telephone Management Agency unit), monitoring signal intensity becomes
Change and network base station information change onCellInfoChanged, while pass through mobile phone traffic management module, from
Operator obtains double card flow information, and monitors its change.Based on the monitoring of three of the above information, when just
There are the base station information or current data of more preferable network less than threshold value or discovery in the data card signal intensity for using
Card flow value be less than threshold value, all will trigger double card whole network matching algorithm, with reference to all three information
Match somebody with somebody, and be finally completed the strategy for whether needing switch data card.
The embodiment of the present invention provides the method for switching network of terminal, and terminal device meets network and cuts detecting
Change after trigger condition, take into account network type priority, signal intensity and network set meal flow, select most
It is adapted to the objective network of the data service of currently practical scene, and intelligently switches, it is to avoid flow occur transfinites
Suspension, no signal leads to not online or signal difference and causes network delay problem high.The intelligence of basic double card
Energy handover scheme, makes full use of the advantage of double card dual network mobile phone, intelligently switches in blocking at two at any time,
Without user intervention, the experience of user is lifted to greatest extent.
Figure 19 is the structural representation of the example of terminal device provided in an embodiment of the present invention;Such as Figure 19 institutes
Show, the terminal device can be embodied in methods that:Including the first data card processing module and the second data card
Processing module, the first data card processing module is used for the first data card access terminal equipment, and for
Data in first data card are written and read, and the second same data card processing module is used to access the second number
According to card and the data of second data card are read and write, in concrete implementation, data card processing module can use read-write
Device realizes that first data card is the currently used data card of the terminal device, for control can
Processor and the hardware device for storing the memory of processor-executable instruction that execute instruction is performed;
Wherein,
The processor is used for:Detect whether to meet network switching trigger condition;If meeting network switching to touch
Clockwork spring part, then the network information parameter of the network information parameter according to the first data card and the second data card is true
The fixed objective network for needing to switch;It is switched to the determination objective network.
Wherein, the first data card processing module and the second data card processing unit can be by hardware interface circuits
Realize, for example:In mobile phone can be set multiple client identification modules (Subscriber Identity Module,
SIM) card reader, can read telephone directory in SIM, short message and other information, and energy
The modification of telephone directory is completed, so as to back up telephone directory.Also have and crack function, specific SIM can be completed
The firing of card.
The terminal device that the present embodiment is provided, for performing the terminal described in Fig. 3 to Figure 10 any embodiments
Method for switching network, its realization principle is similar with technique effect, will not be repeated here.
Figure 20 is the structural representation of terminal device yet another embodiment provided in an embodiment of the present invention;Such as Figure 20
Shown, the terminal device can be embodied in methods that:Including the first data card processing module and the second data
Card processing module, similar to the above embodiments, the first data card processing module is used for the first data clamping
Enter terminal device, and be written and read for the data in the first data card, at the second same data card
Reason module is used to access the second data card and reads and writes the data of second data card, in concrete implementation, number
Can be realized with read write line according to card processing module, first data card is that the terminal device is currently used
Data card, for control executable instruction perform processor and for storing processor-executable instruction
Memory hardware device;Wherein,
The processor is used for:Detection be first data card the flow that has used of current network whether
More than the use flow threshold being pre-configured with;If detecting the flow that the current network used exceedes institute
State and use flow threshold, then each network according to first data card has used flow, signal intensity
And each network of network type priority and second data card used flow, signal intensity with
And network type priority, it is determined that needing the objective network of switching;It is switched to the objective network.
Wherein, the first data card processing module and the second data card processing unit can be by hardware interface circuits
Realize, for example:The multiple SIM read write lines that be can be set in mobile phone, can read the phone in SIM
Thin, short message and other information, and the modification of telephone directory can be completed, so as to back up telephone directory.Also have
Function is cracked, the firing of specific SIM can be completed.
The terminal device that the present embodiment is provided, for performing the terminal described in Fig. 3 to Figure 10 any embodiments
Method for switching network, its realization principle is similar with technique effect, will not be repeated here.
Figure 21 is a kind of structural representation for implementing of terminal device of the present invention, as shown in figure 21,
The terminal device 50 can be mobile phone, computer, digital broadcast terminal, messaging devices,
Game console, tablet device, body-building equipment, personal digital assistant etc. can enter line number by data card
According to the equipment of business.Except above-mentioned processor 51, display 52, transmitter 53 and receiver 54,
The terminal device 50 also includes one or more following component, can be according to reality in implementing
Situation is selected:Memory 55, power supply module 56, multimedia groupware 57, audio-frequency assembly 58, input/defeated
Go out the interface 59 of (I/O), sensor cluster 60, and communication component 61.
Wherein it is possible to install two or more data card, the data card is peripheral hardware, and this is not
It is terminal device part in itself, and the business of each data card can be realized by processor 51,
Can be that the different processors of each data card setting realize its business.
I.e. processor 51 is generally used for the integrated operation of control terminal equipment 50, such as with display, phone
Calling, data communication, camera operation and the associated operation of record operation.It is not limited in this scenario
A processor is only included, in order to realize more complicated function, one or more processors 51 can be included
Carry out execute instruction, to complete all or part of step of above-mentioned method.Additionally, processor 51 can be with
Including multi-media module, to facilitate the interaction between multimedia groupware 57 and multiple processors.
Memory 55 is used to store various types of data to support the operation in terminal device 50.These
The example of data includes the instruction for any application program or method operated on terminal device 50, i.e.,
Also include that the software of technical scheme and/or the configuration information of execution and program in above method embodiment refer to
Order, contact data, telephone book data, message, picture, video etc..Memory 55 can be by appointing
Volatibility or non-volatile memory device or the combinations thereof realization of what type, such as static random-access
Memory, Electrically Erasable Read Only Memory, Erasable Programmable Read Only Memory EPROM may be programmed only
Read memory, magnetic memory, flash memory, CD, read-only storage (English full name:
Read-only memory, abbreviation:ROM), hard disk, solid state hard disc, tape (English full name:
Magnetic tape), floppy disk (English full name:floppy disk).
Power supply module 56 is the various assemblies and modules with power of terminal device 50.Power supply module 56 can
With including power-supply management system, one or more power supplys, and other with generate for terminal device 50, manage
Reason and the associated component of distribution electric power.Multimedia groupware 57 is included in the terminal device 50 and user
Between one screen of output interface of offer.In certain embodiments, screen can include liquid crystal display
Device (English full name:Liquid Crystal Display, referred to as, LCD) and touch panel.If screen
Including touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch
Panel is touched including one or more touch sensors with the gesture on sensing touch, slip and touch panel.
The touch sensor can not only sensing touch or sliding action border, but also detection touches with described
Touch or slide related duration and pressure.In certain embodiments, multimedia groupware 57 is wrapped
Include a front camera and/or rear camera.When terminal device 57 is in operator scheme, such as shoot
When pattern or video mode, front camera and/or rear camera can receive outside multimedia number
According to.Each front camera and rear camera can be a fixed optical lens systems or with Jiao
Away from and optical zoom ability.
Audio-frequency assembly 58 is used to be output and/or input audio signal.For example, audio-frequency assembly 58 includes one
Individual microphone, when terminal device 50 is in operator scheme, such as call model, logging mode and voice is known
During other pattern, microphone is configured as receiving external audio signal.The audio signal for being received can be entered
The storage of one step sends in memory 55 or via communication component 31.In certain embodiments, audio-frequency assembly
58 also include a loudspeaker, for exports audio signal.
I/O interfaces 59 are that interface, above-mentioned peripheral interface mould are provided between processor 51 and peripheral interface module
Block can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, sound
Amount button, start button and locking press button.
Sensor cluster 30 includes one or more sensors, for providing each side for terminal device 50
The state estimation in face.For example, sensor cluster 30 can detect terminal device 50 beat opening/closing shape
State, the relative positioning of component, such as described component is the display and keypad of terminal device 50, is passed
Sensor component 30 can also detect that the position of the component of terminal device changes, and user connects with terminal device 50
Tactile is presence or absence of, the orientation of terminal device 50 or acceleration/deceleration, and temperature change.Sensor
Component 30 can include proximity transducer, for object near detection when without any physical contact
Presence.Sensor cluster 30 can also include optical sensor, such as complementary metal oxide semiconductors (CMOS) (English
Literary full name:Complementary Metal Oxide Semiconductor, referred to as:) or electric charge CMOS
Coupling element (English full name:Charge-coupled Device, referred to as:CCD) imageing sensor, uses
In being used in imaging applications.In certain embodiments, the sensor cluster 814 can also include accelerating
Degree sensor, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 61 is used for the communication of wired or wireless way between terminal device 50 and other equipment.
The wireless network based on communication standard, such as WiFi, 2G, 3G or 4G, or their group can be accessed
Close.In one exemplary embodiment, communication component 61 is received via broadcast channel and comes from external broadcasting
The broadcast singal or broadcast related information of management system.In one kind is implemented, the communication component 31
Also include near-field communication (Near Field Communication, NFC) module, to promote junction service.
For example, radio frequency identification (Radio Frequency IDentification, RFID) can be based in NFC module
Technology, Infrared Data Association (Infrared Data Association, IrDA) technology, ultra wide band (Ultra
Wideband, UWB) technology, Bluetooth technology and other technologies are realized.
Further, terminal device 50 can by one or more application specific integrated circuits (ASIC),
Digital signal processor (DSP), digital signal processing appts (DSPD), PLD
(Programmable Logic Device, PLD), field programmable gate array (Field
Programmable Gate Array, FPGA), controller, microcontroller, microprocessor or other electricity
Subcomponent realization, the method for switching network for performing the above-mentioned terminal including multiple data cards, for example
The terminal includes the first data card and the second data card, then specific for performing:
Detect whether to meet network switching trigger condition;
If meeting network switching trigger condition, network information parameter of the terminal according to the first data card
Network information parameter determination with the second data card needs the objective network of switching;
It is switched to the determination objective network.
Wherein, the description in the process reference method embodiment of detailed selection target network, can pass through
The control others part cooperation of processor performs realization.
In the embodiment of above-mentioned terminal device, it should be appreciated that the processor can be CPU
(English full name:Central Processing Unit, referred to as:CPU), can also be other general procedures
Device, digital signal processor (English full name:Digital Signal Processor, referred to as:DSP), specially
With integrated circuit (English full name:Application Specific Integrated Circuit, referred to as:ASIC)
Deng.General processor can be microprocessor or the processor can also be any conventional processor
Deng.The step of method with reference to disclosed in the embodiment of the present invention, can be embodied directly in hardware processor execution
Complete, or completion is performed with the hardware in processor and software module combination.
One of ordinary skill in the art will appreciate that:Realize all or part of step of above-mentioned each method embodiment
Suddenly can be completed by the related hardware of programmed instruction.Foregoing program can be stored in a computer can
In reading storage medium.The program upon execution, performs the step of including above-mentioned each method embodiment;And
Foregoing storage medium includes:ROM, RAM, magnetic disc or CD etc. are various can be with storage program generation
The medium of code.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than right
Its limitation;Although being described in detail to the present invention with reference to foregoing embodiments, this area it is common
Technical staff should be understood:It can still be repaiied to the technical scheme described in foregoing embodiments
Change, or equivalent is carried out to which part or all technical characteristic;And these are changed or replace
Change, do not make the scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution.