WO2017092678A1 - 终端的网络切换方法及终端设备 - Google Patents

终端的网络切换方法及终端设备 Download PDF

Info

Publication number
WO2017092678A1
WO2017092678A1 PCT/CN2016/108050 CN2016108050W WO2017092678A1 WO 2017092678 A1 WO2017092678 A1 WO 2017092678A1 CN 2016108050 W CN2016108050 W CN 2016108050W WO 2017092678 A1 WO2017092678 A1 WO 2017092678A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
terminal
signal strength
traffic
data card
Prior art date
Application number
PCT/CN2016/108050
Other languages
English (en)
French (fr)
Inventor
黄洲
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017092678A1 publication Critical patent/WO2017092678A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0066Transmission or use of information for re-establishing the radio link of control information between different types of networks in order to establish a new radio link in the target network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • H04W36/302Reselection being triggered by specific parameters by measured or perceived connection quality data due to low signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters

Definitions

  • the present invention relates to the field of wireless communications technologies, and in particular, to a network switching method for a terminal and a terminal device.
  • SIM Subscriber Identity Module
  • the 4G network is preferentially selected, and when the 4G network has no signal, the 3G network is attempted to be connected. If the 3G network has no signal, try to switch the 2G network. After the user selects a data service card, select the appropriate network type according to the network conditions.
  • the above method only performs network switching between cards according to the remaining traffic of the data service card, or simply performs network switching in the card according to the network condition, which easily leads to poor network condition after handover or less residual traffic, and network switching. The accuracy is lower.
  • the network switching method and the terminal device of the terminal provided by the embodiment of the present invention are used to solve the network switching between the cards according to the remaining traffic of the data service card, or simply perform network switching in the card according to the network condition, which is easy to cause the switch after the switch. Poor network conditions or less residual traffic, network cut The problem of lower accuracy is changed.
  • the terminal includes a first data card and a second data card, where the first data card is a data card currently used by the terminal, and the method includes:
  • the terminal determines, according to the network information parameter of the first data card and the network information parameter of the second data card, the target network that needs to be switched;
  • the network information parameters of each data include the status under various network standards, such as: 2G, 3G, 4G and more advanced network standards.
  • the network information parameter includes at least two parameters of the remaining traffic of the network of the card, the signal strength of the network, and the priority of the network type, and may also include used traffic, or other parameters according to the impact on the user, This invention is not limited.
  • the network switching method of the terminal provided by the solution provides a network switching scheme of the dual-card terminal.
  • the same manner can also be adopted, by considering each type of each data card comprehensively.
  • the network information parameters of the network find the most reasonable and effective target network of the network information parameters, complete the network switching, and effectively improve the accuracy of the network switching.
  • the switching to the target network includes:
  • the data service is switched to the second data card and accesses the target network.
  • the card network mode can be directly switched. If it is on a different data card, the service needs to be performed. Switch to the data card of the target network and switch the network standard.
  • the method includes: if the terminal detects new base station information, the terminal meets a network handover trigger condition;
  • the terminal determines that the network type priority of the first network is higher than the network type priority of the current network of the first data card, acquiring the signal strength of the first network;
  • the terminal device detects the new base station information, triggering the network handover selection process, and determining the network type priority and signal strength of the first network corresponding to the new base station, only in the first network.
  • the first network is used as the target network to implement handover.
  • the foregoing solution provides a scheme for determining the priority of the network type first, and in actual implementation, The signal strength of the first network may be determined first, and then the priority is determined.
  • the invention is not limited.
  • the network type priority and the signal strength are comprehensively considered to ensure that the network performance after handover is better than the current network.
  • the method includes: if the terminal detects new base station information, the terminal meets a network handover trigger condition;
  • the terminal determines that the network type priority of the first network is higher than the network type priority of the current network of the first data card, acquiring the remaining traffic of the first network;
  • the new base station information is detected by the terminal device, and the network handover selection process is triggered.
  • the network type priority of the first network corresponding to the new base station needs to be determined. And whether the remaining traffic of the first network or the used traffic exceeds the limit, and the first network is used as the target network to implement the handover only when the priority of the first network is higher than the current network and the remaining traffic is large.
  • the solution provides a solution for determining the priority of the network type.
  • the remaining traffic of the first network may be determined first, or the used traffic of the first network may be determined first, and then the priority is determined. Without limitation, by considering the network type priority and the remaining traffic or used traffic, the network performance after the handover is guaranteed to be better than that of the current network, and there is no shortage of traffic, which will increase the user experience.
  • the detecting whether the network switching trigger condition is met including: if the terminal detects Going to the new base station information, the terminal satisfies the network handover trigger condition;
  • the network handover selection process is triggered.
  • the process of selecting the target network only the signal strength of the first network corresponding to the new base station information needs to be considered. And whether the remaining traffic of the first network or the used traffic exceeds the limit, and the first network is used as the target network to implement the handover only when the signal strength of the first network is higher than the current network and the remaining traffic is large.
  • the scheme provides a scheme for judging the signal strength first.
  • the remaining traffic of the first network may also be determined first, or the used traffic of the first network may be determined first, and then the signal strength of the first network and the current network may be determined.
  • the present invention is not limited. By comprehensively considering the network type priority and the signal strength of the network, it is ensured that the network performance after the handover is better than the current network, and the user experience and the accuracy of the network handover are improved.
  • the detecting whether the network switching trigger condition is met if the terminal detects that the signal strength of the current network of the first data card is lower than a preset signal strength threshold, the terminal satisfies the network switching. Triggering conditions;
  • the terminal acquires, from the stored base station information list, at least one second network whose network type priority is not lower than the current network;
  • the terminal acquires remaining traffic of each second network
  • the terminal selects a second network of the optimal traffic plan from the at least one second network as the target network according to the preset optimal traffic plan determining condition according to the remaining traffic of each second network.
  • the condition for triggering the function of the network handover is to detect the signal strength of the current network. Poor degree, for example: the signal strength is less than the preset signal strength threshold.
  • the new target network may be selected according to other parameters, and the specific target network may be selected from the plurality of base station information stored in the terminal device.
  • a site including multiple network standards first selects a plurality of second networks whose network type has a higher priority than or is the same as the current network, and then respectively detects whether the remaining traffic of each second network satisfies the set condition, or detects each Whether the used traffic of the second network exceeds the limit value, or according to the order of the signal strength, selecting a suitable target network for network switching according to the network type priority and the traffic usage condition, can effectively provide the accuracy of the network switching.
  • the network may be selected according to the priority, or the usage of the traffic may be considered first, and the present invention is not limited.
  • the detecting whether the network switching trigger condition is met if the terminal detects that the signal strength of the current network of the first data card is lower than a preset signal strength threshold, the terminal satisfies the network switching. Triggering conditions;
  • the terminal acquires, from the stored base station information list, at least one second network whose signal strength is greater than the signal strength threshold;
  • the terminal acquires remaining traffic of each second network
  • the terminal selects a second network of the optimal traffic plan from the at least one second network as the target network according to the preset optimal traffic plan determining condition according to the remaining traffic of each second network.
  • the network switching action is triggered by the signal strength of the current network being lower than the threshold, and the terminal device selects multiple seconds whose signal strength is greater than the threshold from the stored base station information list.
  • the network selects the traffic plan according to the traffic usage of the second network (including the remaining traffic or the used traffic) or according to the network type priority, or the signal strength and the network priority are higher than the target network of the current network for the network. Switching effectively improves the accuracy of network switching and ensures that the network performance after switching is better than the current network.
  • the foregoing determination of the remaining traffic, or the comparison of the signal strength, or the selection order of the network priority is not limited, and may be selected according to actual conditions.
  • the detecting whether the network switching trigger condition is met including: if the terminal detects If the signal strength of the current network to the first data card is lower than a preset signal strength threshold, the terminal meets a network handover trigger condition;
  • the terminal acquires, from the stored base station information list, at least one second network whose remaining traffic is greater than a preset remaining traffic threshold;
  • the terminal acquires a signal strength of each second network
  • the terminal selects, as the target network, a second network with the best signal strength from the at least one second network according to the signal strength of each second network.
  • the action of the network switching is triggered by the current network signal strength being lower than the threshold value, and the terminal device selects more residual traffic from the stored base station information list, that is, has been used.
  • the second network with less traffic and reasonable network traffic, and then according to the priority or signal strength of each second network, the network with strong signal strength or network type priority is preferentially selected as the target network to complete the network switching.
  • the network performance after the handover is better than the current network, and in the implementation process, which parameter is first determined, and which parameter is determined by the invention is not limited.
  • the detecting whether the network switching trigger condition is met if the terminal detects that the remaining traffic of the current network of the first data card is lower than a preset remaining traffic threshold, the terminal meets the network switching. Triggering conditions;
  • the terminal acquires, from the stored base station information list, at least one second network whose network type priority is not lower than the current network;
  • the terminal acquires remaining traffic of each second network
  • the terminal selects a second network of the optimal traffic plan from the at least one second network as the target network according to the preset optimal traffic plan determining condition according to the remaining traffic of each second network.
  • the network switching is triggered by the insufficient remaining traffic under the currently used network standard.
  • the terminal device information of the terminal device of the solution is Get the network priority in the list is higher or the same as the current network a plurality of second networks, and then selecting a target network according to signal strength or remaining traffic of each second network, that is, traffic usage, and completing network switching.
  • priority may also be given to remaining traffic or network signal strength, and then considering The priority of the network type can be set according to the actual situation. There is no restriction on this.
  • the detecting whether the network switching trigger condition is met if the terminal detects that the remaining traffic of the current network of the first data card is lower than a preset remaining traffic threshold, the terminal meets the network switching. Triggering conditions;
  • the terminal acquires, from the stored base station information list, at least one second network whose signal strength is greater than the signal strength threshold;
  • the terminal acquires remaining traffic of each second network
  • the terminal selects a second network of the optimal traffic plan from the at least one second network as the target network according to the preset optimal traffic plan determining condition according to the remaining traffic of each second network.
  • the network switching action is triggered by insufficient remaining traffic, and the terminal device selects the base station information list according to the network signal strength and the traffic usage of each network, or according to the network signal strength and the network type priority. Select the target network with better network status and remaining traffic to complete network switching, improve the accuracy and user experience of network switching.
  • the detecting whether the network switching trigger condition is met if the terminal detects that the remaining traffic of the current network of the first data card is lower than a preset remaining traffic threshold, the terminal meets the network switching. Triggering conditions;
  • the terminal acquires, from the stored base station information list, at least one second network whose remaining traffic is greater than a preset remaining traffic threshold;
  • the terminal acquires a signal strength of each second network
  • the terminal selects, as the target network, a second network with the best signal strength from the at least one second network according to the signal strength of each second network.
  • the remaining traffic is used below the preset threshold as a trigger condition for network switching. Then, according to the information of multiple networks stored in the base station information list, according to the status and signal strength of the remaining traffic, or according to the status of the remaining traffic and the priority of the network type, the target network with better performance is selected for network switching, and the comprehensive Consider a plurality of parameters to select a target network with reasonable performance and remaining traffic, and improve the accuracy of network switching.
  • the signal strength of each network of each card, the remaining traffic of each network, and any two parameters of the network type priority of each network are selected as the new target network, and
  • the order of judgment in the specific implementation process is not limited, as long as the target network with better performance than the current network can be selected.
  • the following provides several implementation methods for selecting the target network according to the signal strength of each network of each card, the remaining traffic of each network, and the network type priority of each network:
  • the first type, the detecting whether the network handover trigger condition is met includes: if the terminal detects new base station information, the terminal satisfies a network handover trigger condition;
  • the terminal determines that the network type priority of the first network is higher than the network type priority of the current network of the first data card, acquiring the signal strength of the first network;
  • the terminal determines that the difference between the signal strength of the first network and the signal strength of the current network is greater than a preset signal strength threshold, acquiring remaining traffic of the first network and remaining of the current network flow;
  • the difference between the remaining traffic of the first network and the remaining traffic of the current network is greater than a preset traffic threshold, determining the first network as the target network.
  • the terminal device simultaneously determines whether it is the target network according to the three parameters; the solution provided is to sequentially determine the priority of the network type, the signal strength, and the order of the traffic usage.
  • the solution provided is to sequentially determine the priority of the network type, the signal strength, and the order of the traffic usage.
  • it is preferred to determine which parameter is not restricted that is, there are six implementation modes generated by the combination of the three parameters, and the selection of the target network can be achieved.
  • the second method the detecting whether the network switching trigger condition is met, includes: if the terminal detects that the signal strength of the current network of the first data card is lower than a preset signal strength threshold, The terminal satisfies the network handover trigger condition;
  • the terminal acquires, from the stored base station information list, at least one second network whose network type priority is not lower than the current network;
  • the terminal acquires remaining traffic and signal strength of each second network
  • the terminal uses, as the target network, a second network in the at least one second network that has a signal strength greater than the signal strength threshold and meets an optimal traffic plan determination condition.
  • the terminal device when the trigger condition that the current network signal strength is lower than the preset signal strength threshold is detected, the terminal device simultaneously judges whether it is the target network according to the three parameters; the solution provided is to sequentially determine the network type priority. Level, flow usage, and signal strength are sequentially performed. In fact, in the specific implementation process, it is preferred to determine which parameter is not restricted, that is, there are six implementation modes of three parameter arrangement combinations, which can achieve the above objectives. The choice of the network.
  • the third type, the detecting whether the network switching trigger condition is met includes: if the terminal detects that the remaining traffic of the current network of the first data card is lower than a preset remaining traffic threshold, the terminal satisfies the network switching Triggering conditions;
  • the terminal acquires, from the stored base station information list, at least one second network whose network type priority is not lower than the current network;
  • the terminal acquires remaining traffic and signal strength of each second network
  • the terminal uses, as the target network, a second network in the at least one second network that has a signal strength greater than the signal strength threshold and meets an optimal traffic plan determination condition.
  • the remaining network traffic of the current network is insufficient, and the network switching action is triggered, and the terminal device simultaneously determines whether it is the target network according to three parameters; the solution provided is to sequentially determine the network type priority.
  • the flow usage and the signal strength are sequentially performed.
  • it is preferred to determine which parameter is not restricted that is, there are six implementation manners in which three parameter arrangements are combined, and the above target network can be realized. s Choice.
  • the network switching method provided by the foregoing implementation manners, regardless of the trigger condition triggering the network switching action, in the process of selecting the target network, it is necessary to comprehensively consider the network type priority, signal strength, and traffic usage of the network.
  • the target network with better performance than the current network and sufficient network traffic is selected, and the target network may be a network standard of the first data card, or may be a network of other data cards installed in the terminal device.
  • the second data card in this way, effectively ensures that the network performance after the handover is better, and does not generate additional costs due to the data traffic, effectively improving the accuracy of the network handover and improving the user experience.
  • a second aspect of the embodiments of the present invention provides a network switching method of a terminal, where the terminal includes a first data card and a second data card, where the first data card is a data card currently used by the terminal, and the method includes :
  • the terminal If the traffic used by the current network exceeds the usage traffic threshold, the terminal according to the used traffic, signal strength, and network type priority of each network of the first data card and the second data card The used traffic, signal strength, and network type priority of each network to determine the target network that needs to be switched;
  • the solution provides a specific network switching implementation manner, and detects whether the used traffic of the network currently connected to the first data card exceeds the limit. If the limit is exceeded, it is confirmed that the network switching needs to be performed, according to each data card.
  • the used traffic, signal strength and priority corresponding to the network standard select the appropriate target network for network switching, comprehensively consider the above various parameters, and improve the network switching accuracy.
  • the terminal according to the used traffic, signal strength, and network type priority of each network of the first data card and the used traffic, signal strength, and network type priority of each network of the second data card To determine the target network that needs to be switched, including:
  • the terminal acquires, from the stored base station information list, at least one third network whose network type priority is not lower than the current network according to the network type priority of each network;
  • the terminal obtains the signal strength greater than the preset signal strength threshold according to the signal strength of the current network, the signal strength of each third network, and the used traffic of each network. a value and a network that has used traffic that does not exceed the usage traffic threshold The target network.
  • the terminal obtains a signal strength greater than a pre-determined according to the signal strength of the current network, the signal strength of each third network, and the used traffic of each network according to the highest priority of the network type.
  • a network with a signal strength threshold and a used traffic that does not exceed the usage traffic threshold is used as the target network, including:
  • the terminal acquires at least one fourth network whose signal strength is greater than a preset signal strength threshold according to the signal strength of the current network and the signal strength of each third network;
  • the fourth network is used as the target network.
  • the switching to the target network includes:
  • the data service is switched to the second data card and accesses the target network.
  • the network switching method of the terminal when the network traffic that is currently used exceeds the set threshold, the terminal device initiates an intelligent matching process according to the foregoing manner, and checks that the stored priority of the stored base station information list is higher than or equal to Multiple third networks with the same network, then detecting the signal strength of each third network, selecting a network whose signal strength is higher than the set signal strength threshold or setting a threshold, and then querying the traffic of each network in the networks. According to the usage, find the order of the network type priority from high to low, and then search from the network with the best signal strength. If the usage traffic exceeds the threshold, other networks with better performance are used as the target network. Otherwise, the next network A network judges until a target network with better performance and more remaining traffic is found to complete the handover, thereby effectively improving the accuracy of the network handover and improving the user experience.
  • a third aspect of the embodiments of the present invention provides a terminal device, where the terminal device includes a first data card and a second data card, where the first data card is a data card currently used by the terminal device, and the terminal device includes :
  • a detecting module configured to detect whether a network switching trigger condition is met
  • a processing module configured to: if the detecting module detects that the network switching trigger condition is met, The network information parameter of the first data card and the network information parameter of the second data card determine a target network that needs to be switched;
  • the processing module is further configured to switch to the determined target network.
  • processing module includes:
  • a determining submodule configured to determine whether the target network belongs to the first data card
  • Network switching submodule for:
  • the determining sub-module determines that the target network belongs to the first data card, switching to the target network by means of intra-card network switching;
  • the determining sub-module determines that the target network does not belong to the first data card, then switching the data service to the second data card and accessing the target network.
  • the network information parameter acquired by the processing module includes at least two parameters of a remaining traffic of the network of the card, a signal strength of the network, and a network type priority.
  • the terminal device meets a network handover triggering condition
  • the processing module is specifically configured to:
  • the first network determines whether the difference between the signal strength of the first network and the signal strength of the current network is greater than a preset signal strength threshold, determining the first network as the target network.
  • the terminal device meets a network handover triggering condition
  • the processing module is specifically configured to:
  • the network type priority of the first network is higher than the network type priority of the current network of the first data card, acquiring the remaining traffic of the first network;
  • the terminal device meets a network handover triggering condition
  • the processing module is specifically configured to:
  • the terminal device meets a network switching trigger condition
  • the processing module is specifically configured to:
  • the terminal device meets a network switching trigger condition
  • processing module is used to:
  • the terminal device meets a network switching trigger condition
  • the processing module is specifically configured to:
  • the terminal device meets a network switching triggering condition
  • the processing module is specifically configured to:
  • the terminal device meets a network switching triggering condition
  • the processing module is specifically configured to:
  • the terminal device meets a network switching triggering condition
  • the processing module is specifically configured to:
  • the terminal device meets a network handover triggering condition
  • the processing module is specifically configured to:
  • the difference between the remaining traffic of the first network and the remaining traffic of the current network is greater than a preset traffic threshold, determining the first network as the target network.
  • the terminal device meets a network switching trigger condition
  • the processing module is specifically configured to:
  • a second network in the at least one second network having a signal strength greater than the signal strength threshold and satisfying an optimal traffic plan determination condition is used as the target network.
  • the terminal device meets a network switching triggering condition
  • the processing module is specifically configured to:
  • a second network in the at least one second network having a signal strength greater than the signal strength threshold and satisfying an optimal traffic plan determination condition is used as the target network.
  • a fourth aspect of the embodiments of the present invention provides a terminal device, where the terminal device includes a first data card and a second data card, where the first data card is a data card currently used by the terminal device, and the terminal device includes :
  • a detecting module configured to detect whether the used traffic of the current network of the first data card exceeds a pre-configured usage traffic threshold
  • a processing module configured to: if the detecting module detects that the used traffic of the current network exceeds the usage traffic threshold, according to the used traffic, signal strength, and network type priority of each network of the first data card Determining the target network that needs to be switched, and using the used traffic, signal strength, and network type priority of each network of the second data card;
  • the processing module is further configured to switch to the target network.
  • processing module is specifically configured to:
  • the obtained signal strength is greater than the preset signal strength threshold and has been A network whose traffic does not exceed the usage traffic threshold is used as the target network.
  • processing module is specifically configured to:
  • the fourth network is used as the target network.
  • the processing module includes:
  • a determining submodule configured to determine whether the target network belongs to the first data card
  • Processing submodule for:
  • the determining sub-module determines that the target network belongs to the first data card, switching to the target network by means of intra-card network switching;
  • the determining sub-module determines that the target network does not belong to the first data card, then switching the data service to the second data card and accessing the target network.
  • a fifth aspect of the embodiments of the present invention provides a terminal device, where the terminal device includes a first data card and a second data card, where the first data card is a data card currently used by the terminal device, and the terminal device further A processor for controlling execution of executable instructions and a memory for storing processor-executable instructions;
  • the processor is used to:
  • the network handover trigger condition is met, determining the target network that needs to be switched according to the network information parameter of the first data card and the network information parameter of the second data card;
  • a sixth aspect of the embodiments of the present invention provides a terminal device, where the terminal device includes a first data card and a second data card, where the first data card is a data card currently used by the terminal device, and the terminal device further A processor for controlling execution of executable instructions and a memory for storing processor-executable instructions;
  • the processor is used to:
  • the used traffic of the current network exceeds the usage traffic threshold, according to the used traffic, signal strength, network type priority, and the second data card of each network of the first data card The used traffic, signal strength, and network type priority of the network to determine the target network that needs to be switched;
  • the network switching method of the terminal and the terminal device provided by the embodiment of the present invention, after detecting that the network switching trigger condition is met, the terminal device takes into account the network type priority, the signal strength and the network package traffic, and selects the data service that is most suitable for the current actual scenario.
  • the target network, and intelligent switching to avoid the occurrence of traffic overruns, no signal caused by the lack of Internet access or poor signal caused by high network delay.
  • the intelligent switching scheme of the basic dual-card makes full use of the advantages of the dual-card dual-network mobile phone, and intelligently switches between the two cards at any time without user intervention, thereby maximizing the user experience.
  • FIG. 1 is a schematic diagram of a network system according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a network information flow of a terminal device according to an embodiment of the present invention
  • FIG. 3 is a flowchart of Embodiment 1 of a network switching method of a terminal according to an embodiment of the present disclosure
  • Embodiment 4 is a flowchart of Embodiment 2 of a network switching method of a terminal according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart of Embodiment 3 of a network switching method of a terminal according to an embodiment of the present disclosure
  • FIG. 6 is a flowchart of Embodiment 4 of a network switching method of a terminal according to an embodiment of the present disclosure
  • FIG. 7 is a flowchart of Embodiment 5 of a network switching method of a terminal according to an embodiment of the present disclosure
  • FIG. 8 is a flowchart of Embodiment 6 of a network switching method of a terminal according to an embodiment of the present disclosure
  • FIG. 9 is a flowchart of Embodiment 7 of a network switching method of a terminal according to an embodiment of the present disclosure.
  • FIG. 10 is a flowchart of Embodiment 8 of a network switching method of a terminal according to an embodiment of the present disclosure
  • FIG. 11 is a schematic structural diagram of Embodiment 1 of a terminal device according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of Embodiment 2 of a terminal device according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of Embodiment 3 of a terminal device according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of Embodiment 4 of a terminal device according to an embodiment of the present disclosure.
  • FIG. 15 is a schematic diagram of a usage architecture of a network switching method of a terminal according to an embodiment of the present disclosure
  • FIG. 16 is a flowchart of a specific implementation of a network switching method of a terminal according to an embodiment of the present disclosure
  • FIG. 17 is a flowchart of another specific implementation of a network switching method of a terminal according to an embodiment of the present disclosure.
  • FIG. 18 is a flowchart of still another specific implementation of a network switching method of a terminal according to an embodiment of the present disclosure.
  • FIG. 19 is a schematic structural diagram of an example of a terminal device according to an embodiment of the present disclosure.
  • FIG. 20 is a schematic structural diagram of still another example of a terminal device according to an embodiment of the present disclosure.
  • FIG. 21 is a schematic structural diagram of a specific implementation of a terminal device according to the present invention.
  • FIG. 1 is a schematic diagram of a network system according to an embodiment of the present invention.
  • the network system is The system includes: a base station 1, a base station 2, a base station 3, and a terminal (which may also be referred to as a terminal device);
  • the terminal may be a device such as a smart phone or a tablet computer that can connect to the network through a data card for data services.
  • the terminal is provided with two or more data cards (also referred to as data service cards), a data service card 1 and a data service card 2;
  • the data service card 1 supports the 4G network, the 3G network, and the 2G network provided by the operator 1.
  • the data service card 2 supports the 4G network, the 3G network, and the 2G network provided by the operator 2.
  • the base station 1 is capable of providing the network service of the operator 1; the base station 2 is capable of providing the network service of the operator 2; and the base station 3 is capable of providing the network services of the operator 1 and the operator 2.
  • the network type priority may be preset.
  • the bandwidth of the 2G network is lower than the bandwidth of the 3G network; the bandwidth of the 3G network is lower than the bandwidth of the 4G network, and therefore, the default network
  • the network type priority is: 4G network > 3G network > 2G network.
  • the network type priority of the network may be notified to the terminal in advance through the base station, or may be preset in the terminal; optionally, the user may customize the priority of different networks.
  • the terminal is capable of receiving signals transmitted by the base station 1, the base station 2, and the base station 3.
  • the terminal generates a base station information list based on the received signals, and the list includes signal strength values and locations of the at least one available network. Determining a network type priority of at least one available network, a signal strength of the current serving network, and a network type priority of the current serving network.
  • the base station information list stores information about each base station that can be connected.
  • the information of the base station may include a Mobile Country Code (MCC) and a mobile device network code (Mobile Network). Code, abbreviation: MNC), location area code (LAC), and base station identifier, which can obtain the network signal strength corresponding to the base station and the network type according to the information.
  • MCC Mobile Country Code
  • Mobile Network Mobile Network
  • the terminal uses the data service card 1 and has access to the 3G network provided by the base station 1, and the 3G network corresponds to the current service network in the base station information list, and the terminal receives the network provided by the base station 2 and the network provided by the base station 3.
  • the terminal receives the network provided by the base station 2 and the network provided by the base station 3.
  • the terminal may obtain the traffic usage of the data service card 1 and the traffic usage of the data service card 2 through the traffic management module of the terminal.
  • the data service card 1 is obtained corresponding to the operator's network remaining available traffic and the data service card 2 corresponds to the operator's network remaining available stream.
  • the base station information list may further include: the at least one usable network corresponds to the network remaining traffic of the operator, and the current service network corresponds to the operator's network, based on the foregoing manner of dividing the current serving network and the available network. Remaining traffic, where the remaining traffic refers to the remaining available traffic, that is, traffic that has not been used in the traffic packets that the user has already paid.
  • the terminal needs to maintain and update the foregoing base station information list, and determine whether the current service network is an optimal network based on parameters included in the base station information list, and if present, can provide higher quality for the user.
  • the network service or the usable network that satisfies the user's tariff requirements, the terminal performs network switching.
  • Manner 1 The terminal monitors the network change. If the signal sent by the new base station is received, the base station information list is updated. For example, when the terminal receives the signal sent by the base station 3, the terminal updates the base station information list, and the updated base station information list includes : the signal strength value of the available network provided by the base station 3, the network type priority of the available network provided by the base station 3, the available network provided by the base station 3, and the remaining available traffic of the network of the operator; The signal strength value of the network used, the network type priority of the available network provided by the base station 2, the available network provided by the base station 2, and the remaining network available traffic of the operator; the signal strength value of the current serving network provided by the base station 1 The network type priority of the current serving network provided by the base station 1 and the current service network provided by the base station 1 correspond to the remaining available traffic of the network of the operator.
  • the terminal compares the network type priority of the available network provided by the base station 3 with the network type priority of the current serving network provided by the base station 1; the result is: the network type of the 4G network of the operator 2 provided by the base station 3.
  • the priority is greater than the network type of the 3G network of the carrier 1 provided by the base station 1; the terminal compares the remaining available traffic of the network of the operator 2 with the remaining available traffic of the network of the operator 1. If the remaining available traffic of the network of the operator 2 is greater than or equal to the remaining available traffic of the network of the operator 1, the terminal switches the network to the 4G network of the operator 2 provided by the base station 3. It should be noted that, when switching to the 4G network of the operator 2 provided by the base station 3, the terminal first switches the data service card of the current service from the data service card 1 to the data service card 2, and then performs network switching.
  • Manner 2 The terminal monitors the signal strength change. If the signal strength value of the current serving network provided by the base station 1 is lower than the first preset signal strength threshold, the terminal queries the base station information list for the network type priority equal to or greater than that provided by the base station 1. Network of the current network type of the service network, for example For example, the network type of the 4G network provided by the base station 2 has a higher priority than the 3G network provided by the base station 1. Further, the terminal compares the remaining available traffic of the 4G network provided by the base station 2 with the remaining available traffic of the 3G network provided by the base station 1, and if the remaining available traffic of the 4G network provided by the base station 2 is greater than or equal to the remaining available of the 3G network provided by the base station 1.
  • the terminal switches the network to the 4G network provided by the base station 2. It should be noted that, when switching to the 4G network of the operator 2 provided by the base station 3, the terminal first switches the data service card of the current service from the data service card 1 to the data service card 2, and then performs network switching.
  • Manner 3 The terminal monitors the remaining available traffic of the network corresponding to the current service network, and if the remaining available traffic of the network is lower than the first preset traffic threshold, the terminal queries the base station information list for the network type priority equal to or greater than that provided by the base station 1
  • the network type priority network of the current serving network for example, the network type of the 4G network provided by the base station 2 has a higher priority than the 3G network provided by the base station 1.
  • the terminal compares the signal strength value of the 4G network provided by the base station 2 with the signal strength value of the 3G network provided by the base station 1, and if the signal strength value of the 4G network provided by the base station 2 is greater than or equal to the signal strength of the 3G network provided by the base station 1.
  • the terminal switches the network to the 4G network provided by the base station 2. It should be noted that, when switching to the 4G network of the operator 2 provided by the base station 3, the terminal first switches the data service card of the current service from the data service card 1 to the data service card 2, and then performs network switching.
  • the solution of the embodiment of the present invention implements network switching of a multi-card terminal by comprehensively considering the network type priority of the network, the signal strength of the network, and the traffic information of the network corresponding operator. Therefore, the terminal can be more effectively switched to a usable network capable of providing users with higher quality network services or more satisfying user tariff requirements, thereby providing utilization of network resources by the multi-card terminal.
  • FIG. 2 is a schematic diagram of a network information flow of a terminal device according to an embodiment of the present invention.
  • the terminal device uses a mobile phone as an example.
  • the figure shows a typical mobile phone network information flow diagram, and the mobile phone network hardware.
  • RIL Radio Interface Layer
  • the MsimTelephony (ie, the SIM framework interface in the figure) module in the Framework layer matches the corresponding base station information, and then selects the appropriate data network.
  • RIL is the abstraction layer of the system platform mobile phone and the hardware of each manufacturer.
  • MSimTelephony is the Android Framework framework provided by each chip manufacturer for dual-card mobile phones. Layer interface.
  • FIG. 3 is a flowchart of Embodiment 1 of a network switching method of a terminal according to an embodiment of the present invention.
  • an execution body of the method is a terminal,
  • the terminal includes a first data card and a second data card, where the first data card is a data card currently used by the terminal, and the current network mentioned below is a network for performing data services at present, and specifically, the network of the terminal
  • the steps to switch the method are:
  • the network handover trigger condition includes at least the following:
  • the terminal detects new base station information
  • the terminal detects that the signal strength of the current network of the first data card is lower than a preset signal strength threshold
  • the terminal detects that the remaining traffic of the current network of the first data card is lower than a preset remaining traffic threshold. Or the terminal detects that the used traffic of the current network of the first data card exceeds a preset usage traffic threshold.
  • the network switching condition of the terminal device may also be set according to a specific application situation, and is limited to the above manner.
  • the terminal determines, according to the network information parameter of the first data card and the network information parameter of the second data card, the target network that needs to be switched.
  • the terminal device includes two data, and respectively determines according to the network information parameters of the two data cards. If the terminal device includes a single, or three or more data cards, The appropriate target network needs to be selected according to the network information parameters of each data card.
  • the network information parameter of each data card includes at least two parameters of the remaining traffic of the network of the card, the signal strength of the network, and the network type priority.
  • the terminal device controls to switch the data service, and the current network is switched to the target network.
  • it is required to determine whether the target network belongs to the same data card as the current network, for example, determining whether the target network belongs to the first a data card (the current network belongs to the first data card);
  • the mode is switched to the target network by means of intra-card network switching;
  • the data service is switched to the second On the data card, and access the target network.
  • the network switching method of the terminal provides a network switching solution for a dual-card terminal.
  • a network switching solution for a terminal of three or more data cards, the same manner can also be adopted, by considering each data card comprehensively.
  • the network information parameters of the network find the most reasonable and effective target network of network information parameters, complete the network switching, and effectively improve the accuracy of network switching.
  • FIG. 4 is a flowchart of Embodiment 2 of a network switching method of a terminal according to an embodiment of the present invention.
  • the terminal detects that a new base station information is used as a trigger condition, and the implementation is implemented.
  • the example provides a specific implementation manner, that is, if the terminal detects the new base station information, the terminal satisfies the network handover trigger condition; the terminal in step S102 in the first embodiment is configured according to the first data card.
  • the network information parameter and the network information parameter of the second data card determine the target network that needs to be switched.
  • the specific implementation steps include:
  • the terminal acquires a network type of the first network corresponding to the new base station information.
  • the terminal device After the terminal device detects the new base station information, it is determined whether the network type priority of the first network corresponding to the base station is higher than the current network, or is the same priority as the current network. If yes, continue to detect the signal strength of the first network, otherwise discard the current network handover, and continue to perform matching when the network handover condition is met next time.
  • the determination mode may directly compare the signal strength values, or may determine whether the difference between the signals is greater than the preset signal strength according to the above manner.
  • the threshold is determined only when the priority of the first network is not lower than the current network, and the signal strength is higher than the current network, and the first network is used as the target network to implement network switching.
  • the present invention does not limit the comparison and determination order of the parameters.
  • the new base station information in this solution may be one or more, if multiple base stations are detected, Then, for each new network, the priority and the signal strength are determined according to the above manner, and a suitable target network is selected to implement network switching.
  • the network switching method of the terminal provided by the solution, if the terminal device detects the new base station information, triggers the network handover selection process, and needs to determine the network type priority and signal strength of the first network corresponding to the new base station, only in the When the priority of the first network is higher than the current network and the signal strength is greater than the signal strength of the current network, the first network is used as the target network to implement handover, and the network type priority and the signal strength are comprehensively considered to ensure the switched. Network performance is better than current networks.
  • the terminal may use the network strength according to the signal strength of the new network, the network type priority, and the remaining traffic (or used traffic).
  • At least two network information parameters in the case to implement the terminal in step S102 to determine the target network to be switched according to the network information parameter of the first data card and the network information parameter of the second data card.
  • the terminal determines that the network type priority of the first network is higher than the network type priority of the current network of the first data card, acquiring the remaining traffic of the first network;
  • the new base station information is detected by the terminal device, and the network handover selection process is triggered.
  • the network type priority of the first network corresponding to the new base station needs to be determined. And whether the remaining traffic of the first network or the used traffic exceeds the limit, and the first network is used as the target network to implement the handover only when the priority of the first network is higher than the current network and the remaining traffic is large.
  • the solution provides a solution for determining the priority of the network type.
  • the remaining traffic of the first network may be determined first, or the used traffic of the first network may be determined first, and then the priority is determined. Without limitation, by considering the network type priority and the remaining traffic or used traffic, the network performance after the handover is guaranteed to be better than that of the current network, and there is no shortage of traffic, which will increase the user experience.
  • the selection process of the network handover is triggered.
  • the signal of the first network corresponding to the new base station information needs to be considered.
  • the strength and the remaining traffic of the first network or the used traffic are out of limits, and only when the signal strength of the first network is higher than the current network and the remaining traffic is large, the first network is used as the target network to implement the handover.
  • the foregoing solution provides a solution for determining the signal strength first.
  • the remaining traffic of the first network may be determined first, or the used traffic of the first network is determined first, and then the signals of the first network and the current network are determined.
  • the strength is not limited by the present invention.
  • FIG. 5 is a flowchart of Embodiment 3 of a network switching method of a terminal according to an embodiment of the present invention.
  • the terminal detects that the signal strength of the current network is lower than a preset.
  • the signal strength threshold triggers the network switching.
  • the embodiment provides a specific implementation manner, that is, if the terminal detects that the signal strength of the current network of the first data card is lower than a preset signal strength threshold, the terminal The network switching triggering condition is met; the terminal in the step S102 in the first embodiment determines the target network to be switched according to the network information parameter of the first data card and the network information parameter of the second data card, and the specific implementation steps include:
  • S301 The terminal acquires, from the stored list of base station information, at least one second network whose network type priority is not lower than the current network.
  • the terminal device when the terminal device detects that the current signal strength is lower than the preset signal strength threshold, the terminal searches for a new network from the local storage base station information list, and the network type priority of the new network is higher than or The network type of the current network is prioritized or has the same priority as the network type of the current network.
  • S302 The terminal acquires remaining traffic of each second network.
  • S303 The terminal according to the remaining traffic of each second network, according to a preset optimal traffic set
  • the meal determining condition selects a second network of the optimal traffic plan from the at least one second network as the target network.
  • the target network for network switching after obtaining the one or more second networks whose priorities are not lower than the current network, detecting the remaining traffic of each second network, or using the traffic, selecting the remaining traffic to be higher than a preset threshold.
  • the network, or the network with the most remaining traffic, or the network that has used the traffic whose traffic does not exceed the set limit value is used as the target network for network switching.
  • the priority of the network type may be prioritized, and the remaining traffic may be determined first, and no limitation is imposed on this.
  • the network switching method of the terminal triggers the function of the network switching function to detect that the signal strength of the current network is poor, for example, the signal strength is less than the preset signal strength threshold.
  • the new target network may be selected according to other parameters, and the specific target network may be selected from the plurality of base station information stored in the terminal device.
  • a site including multiple network standards first selects a plurality of second networks whose network type has a higher priority than or is the same as the current network, and then respectively detects whether the remaining traffic of each second network satisfies the set condition, or detects each Whether the used traffic of the second network exceeds the limit value, or according to the order of the signal strength, selecting a suitable target network for network switching according to the network type priority and the traffic usage condition, can effectively provide the accuracy of the network switching.
  • the terminal may according to the signal strength of the new network, the network type priority, and the remaining traffic.
  • the terminal in step S102 determines that the target network that needs to be switched according to the network information parameter of the first data card and the network information parameter of the second data card is implemented by at least two network information parameters (or the traffic usage condition such as the traffic usage is used).
  • the following implementation manners are also included:
  • the terminal acquires, from the stored base station information list, at least one second network whose signal strength is greater than the signal strength threshold;
  • the terminal acquires remaining traffic of each second network
  • the target network Determining, by the terminal according to the preset optimal traffic plan determination condition, a second network that selects an optimal traffic package from the at least one second network according to the remaining traffic of each second network.
  • the network switching action is triggered by the signal strength of the current network being lower than the threshold, and the terminal device selects multiples of the signal strength from the stored base station information list that are greater than the threshold.
  • the second network and then according to the traffic usage of the second network (including remaining traffic or used traffic) or according to the network type priority, the traffic plan is selected reasonably, or the signal strength and the network priority are higher than the target network of the current network.
  • Network switching effectively improves the accuracy of network switching and ensures that the network performance after switching is better than the current network.
  • the foregoing determination of the remaining traffic, or the comparison of the signal strength, or the selection order of the network priority is not limited, and may be selected according to actual conditions.
  • the terminal acquires, from the stored base station information list, at least one second network whose remaining traffic is greater than a preset remaining traffic threshold;
  • the terminal acquires a signal strength of each second network
  • the terminal selects, as the target network, a second network with the best signal strength from the at least one second network according to the signal strength of each second network.
  • the network switching action is triggered by the current network signal strength being lower than the threshold value, and the terminal device selects more residual traffic from the stored base station information list, that is, The second network that uses less traffic and reasonable network traffic, and then selects the network with stronger signal strength or network type priority as the target network according to the priority or signal strength of each second network, and completes the network. Switching, the network performance after the switching is better than the current network, and in the implementation process, which parameter is first determined, and then which parameter is not restricted by the present invention.
  • FIG. 6 is a flowchart of Embodiment 4 of a network switching method of a terminal according to an embodiment of the present invention.
  • the terminal detects that the remaining network traffic of the current network is less than a preset remaining.
  • the traffic threshold is triggered, or the network traffic is triggered when the used traffic exceeds the preset traffic threshold.
  • This embodiment provides a specific implementation manner, that is, if the terminal detects that the current network has low remaining traffic of the first data card.
  • the terminal meets the network handover triggering condition in the preset remaining traffic threshold; the terminal in step S102 in the first embodiment is determined according to the network information parameter of the first data card and the network information parameter of the second data card.
  • the target network that needs to be switched.
  • the specific implementation steps include:
  • the terminal acquires, from the stored base station information list, at least one second network whose network type priority is not lower than the current network.
  • the terminal device selects, from the locally stored base station information list, one or more second networks whose network type priority is higher than or equal to the network type priority of the current network.
  • S402 The terminal acquires remaining traffic of each second network.
  • S403 The terminal selects, according to a preset optimal traffic plan determining condition, a second network that selects an optimal traffic plan from the at least one second network as the target according to the remaining traffic of each second network.
  • the internet The internet.
  • the terminal device monitors the used traffic or the remaining traffic of each second network, and selects the most reasonable one of the traffic packets from the second networks as the target network according to the preset optimal traffic plan determining condition. Network switching.
  • the optimal traffic plan determination condition may include: the maximum remaining traffic, or the least used traffic.
  • the network switching is triggered by the insufficient remaining traffic under the currently used network standard.
  • the terminal device of the solution acquires the network from the base station information list.
  • the remaining traffic or network signal strength, and then consider the priority of the network type can be set according to the actual situation, no restrictions on this.
  • the terminal may according to the signal strength of the new network, the network type priority, and the remaining traffic.
  • the terminal in step S102 determines that the target network that needs to be switched according to the network information parameter of the first data card and the network information parameter of the second data card is implemented by at least two network information parameters (or the traffic usage condition such as the traffic usage is used).
  • the following implementation manners are also included:
  • the terminal acquires, from the stored base station information list, at least one second network whose signal strength is greater than the signal strength threshold;
  • the terminal acquires remaining traffic of each second network
  • the terminal selects a second network of the optimal traffic plan from the at least one second network as the target network according to the preset optimal traffic plan determining condition according to the remaining traffic of each second network.
  • multiple networks satisfying the optimal traffic package may be selected according to the remaining traffic, and then the signal strengths of the networks are determined, and the appropriate target network is selected according to the order of the signal strength from high to low, and the network is switched. .
  • the network switching action is triggered by insufficient remaining traffic, and the terminal device selects the base station information list according to the network signal strength and the traffic usage of each network, or according to the network signal strength and the network type priority. Select the target network with better network status and remaining traffic to complete network switching, improve the accuracy and user experience of network switching.
  • the terminal acquires, from the stored base station information list, at least one second network whose remaining traffic is greater than a preset remaining traffic threshold;
  • the terminal acquires a signal strength of each second network
  • the terminal selects, as the target network, a second network with the best signal strength from the at least one second network according to the signal strength of each second network.
  • the remaining traffic is used as a trigger condition for network switching, and then according to the information of multiple networks stored in the base station information list, according to the status and signal strength of the remaining traffic, or according to the remaining traffic.
  • the status and network type priority select the target network with better performance for network switching, comprehensively consider the target network with multiple parameter selection performance and remaining traffic, and improve the accuracy of network switching.
  • the signal strength of each network of each card, the remaining traffic of each network, and any two parameters of the network type priority of each network are selected as the new target network, and
  • the order of judgment in the specific implementation process is not limited, as long as the target network with better performance than the current network can be selected.
  • selecting two parameters to select the target network can improve the accuracy of the network switching to a certain extent.
  • the terminal device selects the target network according to the signal strength of each network of each card, the remaining traffic of each network, and the network type priority of each network. Improve the accuracy of network switching in one step and improve user experience.
  • FIG. 7 is a flowchart of Embodiment 5 of a network switching method of a terminal according to an embodiment of the present invention.
  • an execution body of the solution is a terminal device, that is, the terminal in FIG. 1 and FIG. 2, for example, a mobile phone.
  • a device such as a tablet computer that can implement data services through a data card.
  • the terminal detects new base station information, it is determined that the terminal satisfies the network handover trigger condition, and the network handover needs to be matched.
  • the terminal in step 102 determines the target network to be switched according to the network information parameter of the first data card and the network information parameter of the second data card, specifically according to the steps:
  • S501 The terminal acquires a network type of the first network corresponding to the new base station information.
  • the terminal After detecting the new base station information, the terminal detects the network type of the first network corresponding to the new base station, and detects the first according to the pre-configured network type priority order or the default network type priority. Whether the priority of the network is higher than the current network or the same as the current network. If the network type of the first network has a lower priority than the current network, the handover process is abandoned, that is, the network is not switched to the network with poor performance.
  • the signal strength of the first network is obtained, and the signal strength is further compared to ensure that the signal quality of the switched network is better than the current network.
  • S503 If the terminal determines that the difference between the signal strength of the first network and the signal strength of the current network is greater than a preset signal strength threshold, acquiring the remaining traffic of the first network and the current network. The remaining traffic.
  • the signal strength of the first network and the current network may be directly compared, and whether the difference between the signals is greater than a preset signal strength threshold, after the condition of the signal strength is satisfied Finally, the remaining traffic of the first network is detected to determine whether the remaining traffic can meet the requirements.
  • S504 If the difference between the remaining traffic of the first network and the remaining traffic of the current network is greater than a preset traffic threshold, determining the first network as the target network.
  • the method for determining whether the remaining traffic of the first network satisfies the condition may be: direct comparison The remaining traffic of the first network and the remaining traffic of the current network are satisfied if the remaining traffic of the first network is more than the remaining traffic of the current network; or the difference between the remaining traffic of the first network and the remaining traffic of the current network is determined according to the foregoing Whether the value is greater than the set threshold; or directly detecting the used traffic, and determining whether the used traffic exceeds a preset threshold, the present invention does not limit the manner of judgment.
  • the mobile phone When the mobile phone detects that the base station information has changed, it will check the difference with the current network type, and initiate an intelligent matching process to monitor the change of the base station information and view the obtained connected network type A (equivalent to the current network mentioned above). Compare the network type of the new base station network type B (equivalent to the first network described above) and proceed to the next step.
  • step 5 Check that A corresponds to the remaining network traffic TB of the operator, and B corresponds to the remaining network traffic TB of the operator. If TB-TA> threshold, go to step 6, otherwise go to step 4.
  • step 6 Query the base station information to check whether the A and B networks belong to the same card. If yes, go to step 7. Otherwise, go to step 8.
  • the foregoing example provides the priority of determining the priority of the network type, determining the signal strength after the condition is met, and finally detecting the remaining traffic for the network.
  • the determination order of the foregoing three parameters is not limited by the present invention, and may be specifically
  • the situation is randomly set, that is, there are six implementation ways of three parameter arrangement combinations, which can achieve the selection of the above target network.
  • the network switching method of the terminal needs to comprehensively consider the network type priority, signal strength, and traffic usage of the network in the process of selecting the target network, and selects that the performance is better than the current network, and the remaining network traffic is sufficient.
  • the target network is switched.
  • the target network may be a network standard of the first data card, or may be a network of other data cards installed in the terminal device, for example, a second data card. In this way, the switching is effectively guaranteed.
  • the network performance is better, and there is no additional cost due to data traffic, which effectively improves the accuracy of network switching and improves the user experience.
  • FIG. 8 is a flowchart of Embodiment 6 of a network switching method of a terminal according to an embodiment of the present invention.
  • an execution body of the solution is a terminal device, that is, the terminal in FIG. 1 and FIG. 2 , for example, a mobile phone.
  • a device such as a tablet computer that can implement data services by using a data card.
  • the terminal detects that the signal strength of the current network of the first data card is lower than a preset signal strength threshold.
  • the terminal in step 102 determines, according to the network information parameter of the first data card and the network information parameter of the second data card, the target network that needs to be switched, Is followed by steps:
  • S601 The terminal acquires, from the stored list of base station information, at least one second network whose network type priority is not lower than the current network.
  • the terminal needs to select one or more network type priorities from the stored base station information list, and the network information list does not need to be a low network, and the base station information list includes multiple detectable connectable base stations. Parameter information.
  • the terminal needs to maintain and update the foregoing base station information list, and determine whether the current service network is an optimal network based on parameters included in the base station information list, and if present, can provide higher quality for the user.
  • the network service or a usable network that more satisfies the user's tariff requirements, the terminal performs a network switching matching process.
  • S602 The terminal acquires remaining traffic and signal strength of each second network.
  • the terminal uses, as the target network, a second network in the at least one second network that has a signal strength greater than the signal strength threshold and meets an optimal traffic plan determination condition.
  • the terminal needs to obtain the signal strength and remaining traffic of the selected network, and can first determine whether the signal strength is higher than the current network, and then determine whether the remaining traffic satisfies the optimal flow.
  • the network of the package condition can also determine the signal strength after determining the remaining traffic.
  • an example is given to illustrate the solution, taking a mobile phone as an example.
  • the phone detects a change in signal strength, it checks whether the current signal strength is below the threshold and initiates an intelligent matching process.
  • step 4 Check all the base station information lists saved locally, and find the network with the same priority or better bandwidth as the network type of the current network A. If yes, go to step 4, otherwise go to step 3.
  • step 4 Check the network packages of all the networks that meet the conditions and the current network, and find the network B with the optimal traffic package ratio. If it is not the current network, go to step 5, otherwise go to step 3.
  • step 5 Query the base station information to check whether the A and B networks belong to the same card. If yes, go to step 6. Otherwise, go to step 7.
  • the terminal device when the trigger condition that the current network signal strength is lower than the preset signal strength threshold is detected, the terminal device simultaneously judges whether it is the target network according to the three parameters; the solution provided is to sequentially determine the network type priority. Level, flow usage, and signal strength are sequentially performed. In fact, in the specific implementation process, it is preferred to determine which parameter is not restricted, that is, there are six implementation modes of three parameter arrangement combinations, which can achieve the above objectives. The choice of the network.
  • the network switching method of the terminal needs to comprehensively consider the network type priority, signal strength, and traffic usage of the network in the process of selecting the target network, and selects that the performance is better than the current network, and the remaining network traffic is sufficient.
  • the target network is switched.
  • the target network may be a network standard of the first data card, or may be a network of other data cards installed in the terminal device, for example, a second data card. In this way, the switching is effectively guaranteed.
  • the network performance is better, and there is no additional cost due to data traffic, which effectively improves the accuracy of network switching and improves the user experience.
  • FIG. 9 is a flowchart of Embodiment 7 of a network switching method of a terminal according to an embodiment of the present invention, such as
  • the execution entity of the solution shown in FIG. 8 is a terminal device, that is, the terminal in FIG. 1 and FIG. 2 above, for example, a device that can implement data services through a data card, such as a mobile phone or a tablet computer, in the embodiment shown in FIG.
  • the terminal detects that the remaining traffic of the current network of the first data card is lower than a preset remaining traffic threshold (optional, the terminal may also detect that the used traffic of the current network exceeds the preset usage.
  • the traffic threshold is determined, the terminal is configured to meet the network handover triggering condition, and the network switching matching process is required.
  • the terminal in step 102 determines the target to be switched according to the network information parameter of the first data card and the network information parameter of the second data card.
  • the network specifically by step:
  • S701 The terminal acquires, from the stored list of base station information, at least one second network whose network type priority is not lower than the current network.
  • S702 The terminal acquires remaining traffic and signal strength of each second network.
  • the terminal uses, as the target network, a second network in the at least one second network that has a signal strength greater than the signal strength threshold and meets an optimal traffic plan determination condition.
  • the specific implementation is similar to the foregoing embodiment.
  • the difference from the foregoing solution is that the remaining network traffic of the current network is insufficient, triggering the network switching action, and the terminal device simultaneously determines whether the target network is based on three parameters; Judging the order of network type priority, traffic usage, and signal strength, in fact, in the specific implementation process, it is preferred to determine which parameter is not restricted, that is, there are six implementation modes of three parameter arrangement combinations. The choice of the above target network can be achieved.
  • the target network that meets the foregoing conditions may be:
  • the 3G and 4G networks in the first data card may also be the 2G, 3G, and 4G networks in the second data card; if the current network A is the 3G network in the first data card, find the target network that satisfies the above conditions. It may be: the 3G and 4G networks in the first data card, or the 3G and 4G networks in the second data card; if the current network A is the 4G network in the first data card, find the target that satisfies the above conditions.
  • the network may be: a 4G network in the first data card, or a 4G network in the second data card.
  • the network switching method of the terminal does not need any trigger condition to trigger the network switching action.
  • the network type priority and signal strength of the network need to be comprehensively considered.
  • Traffic usage select a target network with better performance than the current network and sufficient network traffic
  • the target network may be the first
  • the network standard of the data card may also be a network of other data cards installed in the terminal device, for example, a second data card. In this way, the network performance after the handover is effectively ensured, and the network switching is effectively improved. Degree, and ensure that the remaining traffic of the switched network is sufficient, and will not generate additional costs due to data traffic, further improving the user experience.
  • a terminal includes a first data card and a second data card, where the first data card is If the data card currently used by the terminal includes more than two data cards in the terminal, it is also possible to select an appropriate target website for switching by referring to the method.
  • S801 Detect whether the used traffic of the current data of the first data card exceeds a pre-configured usage traffic threshold.
  • the terminal obtains, according to the network type priority of each network, at least one network type priority from the stored base station information list is not lower than the current current The third network of the network.
  • the terminal obtains a signal strength greater than a preset signal strength according to the signal strength of the current network, the signal strength of each third network, and the used traffic of each network, according to a sequence of priority of the network type.
  • the threshold value and the network whose traffic does not exceed the usage traffic threshold has been used as the target network.
  • the terminal acquires, according to the signal strength of the current network and the signal strength of each third network, at least one fourth network whose signal strength is greater than a preset signal strength threshold; according to the order of the network type priorities from high to low And detecting, in sequence, whether the used traffic of each fourth network exceeds the usage traffic threshold; if there is a used traffic of the fourth network that does not exceed the usage traffic threshold, the fourth network is used as the target network.
  • the specific implementation manner of the switching to the target network is: first determining whether the target network belongs to the first data card; if yes, switching to the target network by means of intra-card network switching If not, the data service is switched to the second data card and accesses the target network.
  • step 2 If the mobile phone monitors whether the used traffic of the current network exceeds the preset usage traffic threshold, if yes, go to step 2.
  • step 4 Check the list of all base station information stored in the local area of the mobile phone, and query for the network with the same or better bandwidth as the existing network. If there is such a network, go to step 4. If not, go to step 3.
  • step 4 Check the signal strength of all the networks that meet the conditions and the current network. If the signal strength of the preferred network is higher than the threshold or higher than the signal strength of the current network A, if there is such a network, go to step 5. Otherwise, go to step 6.
  • step 6 Query the used traffic value of the network. If it exceeds the set usage flow limit, go to step 6. Otherwise, go to step 7.
  • Step 4 Search according to the network type priority from high to low, and find the network B whose signal strength is higher than the threshold. If yes, go to step 5, otherwise go to step 3.
  • step 7 Query the base station information to check whether the A and B networks belong to the same card. If yes, go to step 8. Otherwise, go to step 9.
  • the network switching method of the terminal when the network traffic that is currently used exceeds the set threshold, the terminal device initiates an intelligent matching process according to the foregoing manner, and checks that the stored priority of the stored base station information list is higher than or equal to Multiple third networks with the same network, then detecting the signal strength of each third network, selecting a network whose signal strength is higher than the set signal strength threshold or setting a threshold, and then querying the traffic of each network in the networks. Usage, find According to the order of the network type priority from high to low, the network starts with the best signal strength. If the usage traffic exceeds the threshold, other networks with better performance are used as the target network. Otherwise, the next network is judged. Until the target network with better performance and more remaining traffic is found to complete the handover, the accuracy of the network handover is improved, and the user experience is improved.
  • FIG. 11 is a schematic structural diagram of Embodiment 1 of a terminal device according to an embodiment of the present invention.
  • the terminal device 10 includes a first data card 11 and a second data card 12, where the first data card is The data card currently used by the terminal device 10, the terminal device 10 further includes:
  • the detecting module 13 is configured to detect whether the network switching trigger condition is met;
  • the processing module 14 is configured to: if the detecting module detects that the network switching trigger condition is met, determine, according to the network information parameter of the first data card and the network information parameter of the second data card, the target network that needs to be switched;
  • the processing module 14 is further configured to switch to the determined target network.
  • the terminal device provided in this embodiment is used to perform the network switching method of the terminal in any of the embodiments shown in FIG. 3 to FIG. 10, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 12 is a schematic structural diagram of Embodiment 2 of a terminal device according to an embodiment of the present invention.
  • the processing module 14 of the terminal device 10 includes:
  • a determining sub-module 141 configured to determine whether the target network belongs to the first data card
  • the network switching sub-module 142 is configured to:
  • determining sub-module 141 determines that the target network belongs to the first data card, switching to the target network by means of intra-card network switching;
  • the determining sub-module 141 determines that the target network does not belong to the first data card, then switching the data service to the second data card and accessing the target network.
  • the network information parameter acquired by the processing module 14 includes at least two parameters of a remaining traffic of the network of the card, a signal strength of the network, and a network type priority.
  • the terminal device 10 satisfies a network switching trigger condition
  • the processing module 14 is specifically configured to:
  • the first network determines whether the difference between the signal strength of the first network and the signal strength of the current network is greater than a preset signal strength threshold, determining the first network as the target network.
  • the terminal device 10 satisfies a network switching trigger condition
  • the processing module 14 is specifically configured to:
  • the network type priority of the first network is higher than the network type priority of the current network of the first data card, acquiring the remaining traffic of the first network;
  • the terminal device 10 satisfies a network switching trigger condition
  • the processing module 14 is specifically configured to:
  • the terminal device meets a network switching trigger condition
  • the processing module 13 is specifically configured to:
  • the terminal device 10 satisfies a network switching trigger condition
  • processing module 14 is used to:
  • the terminal device 10 satisfies a network switching trigger condition
  • the processing module 14 is specifically configured to:
  • the terminal device 10 satisfies a network switching trigger condition
  • the processing module 14 is specifically configured to:
  • the terminal device 10 satisfies a network switching trigger condition
  • the processing module 14 is specifically configured to:
  • a second network of the at least one second network that selects an optimal traffic plan is used as the target network.
  • the terminal device 10 satisfies a network switching trigger condition
  • the processing module 14 is specifically configured to:
  • the terminal device 10 satisfies a network switching trigger condition
  • the processing module 14 is specifically configured to:
  • the difference between the remaining traffic of the first network and the remaining traffic of the current network is greater than a preset traffic threshold, determining the first network as the target network.
  • the terminal device 10 satisfies a network switching trigger condition
  • the processing module 14 is specifically configured to:
  • a second network in the at least one second network having a signal strength greater than the signal strength threshold and satisfying an optimal traffic plan determination condition is used as the target network.
  • the detecting module detects the remaining traffic of the current network of the first data card
  • the terminal device 10 satisfies the network switching trigger condition when the preset remaining traffic threshold is lower than the preset threshold.
  • the processing module 14 is specifically configured to:
  • a second network in the at least one second network having a signal strength greater than the signal strength threshold and satisfying an optimal traffic plan determination condition is used as the target network.
  • the terminal device provided in this embodiment is used to perform the network switching method of the terminal in any of the embodiments shown in FIG. 3 to FIG. 10, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 13 is a schematic structural diagram of Embodiment 3 of a terminal device according to an embodiment of the present invention.
  • the terminal device 20 includes: a first data card 21 and a second data card 22, where the first data card 21 is The data card currently used by the terminal device 20 further includes:
  • the detecting module 23 is configured to detect whether the traffic used by the current network of the first data card exceeds a pre-configured usage traffic threshold
  • the processing module 24 is configured to: if the detecting module detects that the used traffic of the current network exceeds the usage traffic threshold, according to the used traffic, signal strength, and network type of each network of the first data card, Determining the used traffic, signal strength, and network type priority of each network of the second data card to determine a target network that needs to be switched;
  • the processing module 24 is also for switching to the target network.
  • processing module 24 is specifically configured to:
  • the obtained signal strength is greater than the preset signal strength threshold and has been A network whose traffic does not exceed the usage traffic threshold is used as the target network.
  • processing module 24 is specifically configured to:
  • the fourth network is used as the target network.
  • the terminal device provided in this embodiment is used to perform the network switching method of the terminal in any of the embodiments shown in FIG. 3 to FIG. 10, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 14 is a schematic structural diagram of Embodiment 4 of a terminal device according to an embodiment of the present invention.
  • the processing module 24 of the terminal device 20 includes:
  • a determining sub-module 241, configured to determine whether the target network belongs to the first data card
  • Processing submodule 242 for:
  • the mode is switched to the target network by means of intra-card network switching;
  • the determining sub-module 241 determines that the target network does not belong to the first data card, then the data service is switched to the second data card and accesses the target network.
  • the terminal device provided in this embodiment is used to perform the network switching method of the terminal in any of the embodiments shown in FIG. 3 to FIG. 10, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 15 is a schematic diagram of a usage architecture of a network switching method of a terminal according to an embodiment of the present invention.
  • a terminal device a base station 1, a base station 2, a base station 3, and a tariff server; wherein, referring to the foregoing embodiment, the terminal The device is provided with two data service cards, a data service card 1 and a data service card 2; the data service card 1 supports the 4G network, the 3G network and the 2G network provided by the operator 1, and the data service card 2 supports the 4G network provided by the operator 2 , 3G network and 2G network.
  • the base station 1 is capable of providing the network service of the operator 1; the base station 2 is capable of providing the network service of the operator 2; and the base station 3 is capable of providing the network services of the operator 1 and the operator 2.
  • the terminal includes: a network matching unit controlled by the processing module, a transceiver unit, and a traffic management unit; wherein the function of the transceiver unit can be implemented through a Radio Interface Layer (RIL) layer: the radio unit of the terminal searches through The nearby base station obtains the signal strength value of the network of each base station, the network type of the network of each base station, returns the information to the Android framework (Androd Framework) layer through the RIL layer, and stores the above network information list in the Android framework layer.
  • RIL Radio Interface Layer
  • the function of the network matching unit can be implemented by a multiple SIM card telephone management unit (MSimTelephony) in the framework layer and an intelligent matching unit in the framework layer, and the traffic management module is usually disposed at the application layer: the multi-SIM card telephone module matches the corresponding base station. Information, then select the appropriate data network to serve the terminal.
  • MSimTelephony SIM card telephone management unit
  • intelligent matching unit intelligent matching unit in the framework layer
  • the traffic management module is usually disposed at the application layer: the multi-SIM card telephone module matches the corresponding base station. Information, then select the appropriate data network to serve the terminal.
  • the RIL layer works under the Point to Point Protocol (PPP), Transmission Control Protocol/Internet Protocol (TCP/IP) protocol, and is responsible for reliable data transmission and AT (Attention). The transmission of commands and the resolution of response messages. Moreover, the RIL layer also supports short message service (Short Message Service, SMS for short), voice call (Voice Call) and other functions.
  • PPP Point to Point Protocol
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • SMS Short Message Service
  • VoIP Call Voice Call
  • the RIL layer is above the protocol stack of the wireless baseband system and under the Cell Core layer of Windows Mobile.
  • the Android operating system divides the RIL layer into two code spaces: one part is the RIL Daemon, which is responsible for sockets to communicate with the application framework.
  • the other part is the RIL daemon initialization (Vendor RIL), this part is responsible for communicating with the communication module of the mobile phone in two ways: mode one, the AT command channel directly communicating with the communication module of the mobile phone; mode two, for The data channel for transmitting packet data, and the data channel is used for the Internet access function of the mobile phone.
  • the traffic management unit is configured to interact with the operator's tariff server to obtain the remaining available traffic of the network.
  • the form of the traffic information may be not limited to the remaining available traffic of the network, or may be: the operator's package information, Current traffic usage information of the operator, etc.;
  • a network matching unit configured to determine an optimal network based on the foregoing parameters included in the network information list, and switch the service network to the optimal network.
  • the network matching unit may send the switching prompt to the output module of the terminal, such as a display module, a speaker, etc.; and display a switching prompt to the user through a user interface (User Interface, UI for short).
  • a user interface User Interface, UI for short.
  • the functions of the network matching unit and the traffic management unit can be implemented by the baseband processor of the terminal.
  • the function of the transceiver unit can be implemented by the radio unit of the mobile terminal.
  • FIG. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device is configured with at least two data service cards.
  • the terminal device includes: a network matching unit, a transceiver unit, and a traffic management list yuan;
  • the transceiver unit is configured to acquire a signal strength of the network
  • the traffic management unit is configured to acquire remaining network available traffic of a corresponding operator of the network
  • the network matching unit is configured to:
  • the network includes a current service network and at least one available network
  • the current service network is a network that currently serves the terminal;
  • the at least one available network is a network that the terminal can access;
  • the current serving network of the terminal is switched to the first network
  • the first network is one of the at least one usable network that satisfies a handover condition.
  • the terminal device obtains the signal strength of the network by using the transceiver module; the traffic management module acquires the remaining available traffic of the network of the corresponding operator of the network; and the network matching module according to the signal strength of the network, Determining the remaining available traffic of the network of the corresponding operator of the network and the network type of the network, selecting a target network whose network performance is better than the current network and having the remaining traffic, and then switching the network to the selected target network through the integrated network
  • the signal strength, the remaining available traffic of the network of the corresponding operator of the network, and the network type priority of the network, and other factors select a network that meets the switching condition to switch, thereby fully utilizing the network resources provided by the multi-card terminal, and improving The accuracy of the network selection.
  • FIG. 16 is a flowchart of a specific implementation of a network switching method of a terminal according to an embodiment of the present invention.
  • the terminal device further includes a UI according to the specific structure of the terminal device shown in FIG.
  • the terminal device of the present invention returns the base station information and signal strength change through the bottom RIL, and acquires the SIM card traffic information from the operator to perform the dual-card full network matching algorithm, and finally selects the most suitable data service in the current actual environment. Cards and networks, and intelligently switch and prompt users through the UI layer.
  • the specific matching process is:
  • New base station information is monitored.
  • the RIL of the terminal device monitors the change of the base station information, and acquires related base station information, where the base station information includes information such as an MCC, an MNC, or an LAC.
  • S12 Store MCC and MNC information.
  • the telephone management unit of the multi-card mobile phone that is, the processing module described above, stores the base station information.
  • S13 Compare the network type priority of the first network corresponding to the current network with the new base station. And initiate a comparison of network types, comparing network type priorities to ensure that the performance of the selected network is better than the current network.
  • S14 Instructing to perform network matching.
  • the management unit instructs the intelligent network matching unit to perform a network matching, that is, if the priority of the first network is lower than the current network, the matching process is ended.
  • S15 Indicating the signal strength of the current network and the first network.
  • the intelligent network matching unit instructs the MimTelephony module of the Framework layer, that is, the telephone management unit in the figure acquires the signal strength of each network and compares them.
  • S17 The signal strength of the first network is higher.
  • S18 Query the remaining traffic of the first network.
  • the network matching unit queries the traffic management unit for the remaining traffic of the first network and compares it with the current network.
  • the remaining traffic of the first network is more. Obtaining that the network type priority, the signal strength, and the remaining traffic of the first network meet the condition, determining that the first network is a target network that can be switched.
  • S21 Query whether the data card to which the first network belongs is the same as the current network. The query determines whether to perform intra-card network switching or inter-card network switching. If the query belongs to the same data card, the card network switching can be directly performed. If you are queried for a different data card, you need to switch the data card before switching the network.
  • S23 Network switching prompt. A switching prompt is displayed to the user through the UI.
  • FIG. 17 is a flowchart of another specific implementation of a network switching method of a terminal according to an embodiment of the present invention. As shown in FIG. 17, the terminal device further includes a UI according to the specific structure of the terminal device shown in FIG. The steps of the specific network switching matching process provided are:
  • the RIL layer of the terminal device monitors the signal strength corresponding to the current network, and acquires data such as the signal strength or the amount of change of the current network.
  • S33 Compare whether the signal strength value of the current network is lower than a preset signal strength threshold.
  • the RIL layer feeds the data back to the telephone management unit for comparison. If the signal strength of the current network is lower than the set threshold, the subsequent matching process is triggered.
  • S35 Instruct to query base station information in the locally stored base station information list.
  • S36 Acquire multiple network types whose priority is not lower than the second network of the current network.
  • the network whose network type priority, signal strength, and remaining traffic satisfy the condition is obtained as the target network that can be switched.
  • the query determines whether to perform intra-card network switching or inter-card network switching. If the query belongs to the same data card, the card network switching can be directly performed. If you are queried for a different data card, you need to switch the data card before switching the network.
  • S43 Network switching prompt. A switching prompt is displayed to the user through the UI.
  • FIG. 18 is a flowchart of still another specific implementation of a network switching method of a terminal according to an embodiment of the present invention.
  • the terminal device further includes a UI according to the specific structure of the terminal device shown in FIG.
  • the steps of the specific network switching matching process provided are:
  • the traffic management unit queries or detects that the current usage traffic reaches the set threshold, or when the remaining traffic is less than the set threshold, the traffic management unit feeds back the information to the telephone management unit to trigger a subsequent network handover matching process.
  • S53 Acquire a third network with multiple network types having a priority no lower than the current network.
  • S56 The optimal network signal strength is higher than the preset signal strength threshold.
  • the network matching unit instructs the telephone management unit to acquire the signal strength of each third network, and performs signal strength deletion, and selects a network with better signal strength from the third network, that is, the signal strength is higher than the set signal strength threshold or One or more fourth networks having a difference in signal strength from the current network that is greater than a set threshold.
  • S57 Acquire a fourth network in the third network that has a signal strength higher than a signal strength threshold.
  • the network traffic is matched, and the network with more remaining traffic or less used traffic is selected as the target network from the first network. If there is no such network, the matching process is abandoned and the network switching is not performed.
  • a network with a network type priority, signal strength, and remaining traffic satisfying the condition is obtained as a target network that can be switched.
  • S61 The data card to which the target network belongs is different from the current network.
  • the query determines whether to perform intra-card network switching or inter-card network switching. If the query belongs to the same data card, the card network switching can be directly performed. If you are queried for a different data card, you need to switch the data card before switching the network.
  • S63 Network switching prompt. A switching prompt is displayed to the user through the UI.
  • the technical solution in the above several embodiments is essentially modifying the framework layer MSimTelephony module (ie, the above-mentioned multi-SIM phone management unit), monitoring the signal strength change and the network base station information change onCellInfoChanged, and simultaneously through the mobile phone traffic management module.
  • the operator obtains dual card traffic information and listens for changes. Based on the monitoring of the above three kinds of information, when the data card strength of the data card being used is lower than the threshold or the base station information of the better network is found or the current data card traffic value is lower than the threshold, the dual-card full network matching algorithm is triggered, combining all Match the three kinds of information and finally complete the strategy of whether to switch the data card.
  • the embodiment of the present invention provides a network switching method for a terminal. After detecting that the network switching trigger condition is met, the terminal device considers the network type priority, the signal strength, and the network package traffic, and selects the most It is suitable for the target network of the data service in the current actual scenario, and intelligently switches to avoid the problem that the traffic exceeds the limit, and the network delay is high due to the lack of signal or the signal difference.
  • the intelligent switching scheme of the basic dual-card makes full use of the advantages of the dual-card dual-network mobile phone, and intelligently switches between the two cards at any time without user intervention, thereby maximizing the user experience.
  • FIG. 19 is a schematic structural diagram of an example of a terminal device according to an embodiment of the present invention.
  • the terminal device may be specifically implemented to include: a first data card processing module and a second data card processing module, and the first data
  • the card processing module is configured to access the first data card to the terminal device, and read and write data in the first data card
  • the same second data card processing module is configured to access the second data card and read and write the second data card
  • the data card processing module can be implemented by a reader/writer
  • the first data card is a data card currently used by the terminal device, and is used for controlling a processor and executing the executable instruction.
  • a hardware device that stores a memory of processor executable instructions; wherein
  • the processor is configured to: detect whether the network handover trigger condition is met; if the network handover trigger condition is met, determine, according to the network information parameter of the first data card and the network information parameter of the second data card, the target network that needs to be switched; Determining the target network.
  • the first data card processing module and the second data card processing device can be implemented by using a hardware interface circuit, for example, a plurality of Subscriber Identity Module (SIM) card readers that can be set in the mobile phone, and the SIM can be read out.
  • SIM Subscriber Identity Module
  • the terminal device provided in this embodiment is used to perform the network switching method of the terminal in any of the embodiments shown in FIG. 3 to FIG. 10, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 20 is a schematic structural diagram of still another example of a terminal device according to an embodiment of the present disclosure; as shown in FIG. 20, the terminal device may be specifically implemented to include: a first data card processing module and a second data card processing module, and the foregoing
  • the first data card processing module is configured to access the first data card to the terminal device, and read and write data in the first data card
  • the same second data card processing module is configured to access the second data.
  • the card reads and writes data of the second data card.
  • the data card processing module can be implemented by a reader/writer, and the first data card is a data card currently used by the terminal device, and is used to control executable a processor executing the instructions and a hardware device for storing a memory of the processor executable instructions;
  • the processor is configured to: detect whether the traffic used by the current network of the first data card exceeds a pre-configured usage traffic threshold; if detecting that the traffic used by the current network exceeds the usage traffic threshold, Determining the target network that needs to be switched, the used traffic, signal strength, and network type priority of each network of the first data card and the used traffic, signal strength, and network type priority of each network of the second data card Switch to the target network.
  • the first data card processing module and the second data card processing device can be implemented by a hardware interface circuit, for example, a plurality of SIM card readers that can be set in the mobile phone, and can read the phone book, the short message, and the SIM card. Other information, and can complete the modification of the phone book, thus backing up the phone book. It also has a crack function to complete the burning of a specific SIM card.
  • a hardware interface circuit for example, a plurality of SIM card readers that can be set in the mobile phone, and can read the phone book, the short message, and the SIM card. Other information, and can complete the modification of the phone book, thus backing up the phone book. It also has a crack function to complete the burning of a specific SIM card.
  • the terminal device provided in this embodiment is used to perform the network switching method of the terminal in any of the embodiments shown in FIG. 3 to FIG. 10, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 21 is a schematic structural diagram of a specific implementation of a terminal device according to the present invention.
  • the terminal device 50 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, and a fitness device.
  • a device such as a personal digital assistant that can perform data services through a data card.
  • the terminal device 50 further includes one or more of the following components.
  • the specific implementation may be selected according to actual conditions: a memory 55, a power component 56, and a multimedia component. 57, audio component 58, input/output (I/O) interface 59, sensor component 60, and communication component 61.
  • the data card is a peripheral device, which is not a component of the terminal device itself, and the service of each data card can be implemented by the processor 51, or can be used for each
  • the data card sets up different processors to implement its business.
  • the processor 51 is typically used to control the overall operation of the terminal device 50, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. In this scheme, it is not limited to including only one processor. In order to implement more complicated functions, one or more processors 51 may be included to execute instructions to perform all or part of the steps of the above method. Additionally, processor 51 may include a multimedia module to facilitate interaction between multimedia component 57 and multiple processors.
  • the memory 55 is used to store various types of data to support the operation at the terminal device 50.
  • Examples of such data include instructions for any application or method operating on the terminal device 50, ie, software and/or executed configuration information and program instructions, contact data, also including the technical solutions in the above method embodiments.
  • Memory 55 can be served by What type of volatile or non-volatile storage device or combination of them is implemented, such as static random access memory, electrically erasable programmable read only memory, erasable programmable read only memory, programmable read only memory , magnetic memory, flash memory, optical disk, read-only memory (English full name: read-only memory, abbreviation: ROM), hard disk, solid state hard disk, magnetic tape (English full name: magnetic tape), floppy disk (English full name: floppy disk).
  • static random access memory electrically erasable programmable read only memory, erasable programmable read only memory, programmable read only memory , magnetic memory, flash memory, optical disk, read-only memory (English full name: read-only memory, abbreviation: ROM), hard disk, solid state hard disk, magnetic tape (English full name: magnetic tape), floppy disk (English full name: floppy disk).
  • Power component 56 provides power to various components and modules of terminal device 50.
  • Power component 56 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal device 50.
  • the multimedia component 57 includes a screen between the terminal device 50 and the user that provides an output interface.
  • the screen may include a liquid crystal display (Liquid Crystal Display, abbreviated as LCD) and a touch panel. If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 57 includes a front camera and/or a rear camera.
  • the front camera and/or the rear camera can receive external multimedia data.
  • Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • Audio component 58 is used to output and/or input audio signals.
  • audio component 58 includes a microphone that is configured to receive an external audio signal when terminal device 50 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in memory 55 or transmitted via communication component 31.
  • audio component 58 also includes a speaker for outputting an audio signal.
  • the I/O interface 59 provides an interface between the processor 51 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 30 includes one or more sensors for providing terminal device 50 with a status assessment of various aspects.
  • the sensor assembly 30 can detect an open/closed state of the terminal device 50, a relative positioning of the components, for example, the component is a display and a keypad of the terminal device 50, and the sensor component 30 can also detect a change in position of components of the terminal device, The user is connected to the terminal device 50 The presence or absence of a touch, the orientation of the terminal device 50 or acceleration/deceleration, and temperature changes.
  • Sensor assembly 30 can include a proximity sensor for detecting the presence of nearby objects without any physical contact.
  • the sensor component 30 may further include a photo sensor, such as a complementary metal oxide semiconductor (Complementary Metal Oxide Semiconductor, CMOS for short) or a charge-coupled device (English name: Charge-coupled Device, CCD for short) image sensor. Used in imaging applications.
  • CMOS Complementary Metal Oxide Semiconductor
  • CCD Charge-coupled Device
  • the sensor assembly 814 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the communication component 61 is used for wired or wireless communication between the terminal device 50 and other devices. It is possible to access a wireless network based on communication standards such as WiFi, 2G, 3G or 4G, or a combination thereof.
  • the communication component 61 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 31 further includes a Near Field Communication (NFC) module to facilitate short-range communication.
  • NFC Near Field Communication
  • the NFC module can be implemented based on Radio Frequency IDentification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth technology, and other technologies.
  • the terminal device 50 may be configured by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), and field devices.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA Field Programmable Gate Array
  • controller a controller
  • microcontroller a microcontroller
  • microprocessor or other electronic component implementation for performing the network switching method of the terminal including the plurality of data cards
  • the terminal includes The first data card and the second data card are specifically used to execute:
  • the terminal determines, according to the network information parameter of the first data card and the network information parameter of the second data card, the target network that needs to be switched;
  • the detailed description of the process of selecting a target network in the embodiment of the method may be performed by controlling other components of the processor.
  • the processor may be a central processing unit (English name: Central Processing Unit, CPU for short), or other general-purpose processor, digital signal processor (English full name: Digital) Signal Processor, referred to as DSP)
  • DSP digital signal processor
  • the integrated circuit English name: Application Specific Integrated Circuit, ASIC for short.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Abstract

本发明提供一种终端的网络切换方法及终端设备,所述终端包括第一数据卡和第二数据卡,所述第一数据卡为所述终端当前使用的数据卡,该网络切换方法包括:检测是否满足网络切换触发条件;若满足网络切换触发条件,则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;切换到所述确定目标网络。通过综合考虑两个数据卡的每个网络的网络信息参数,确定要切换的目标网络并进行网络切换,有效提高网络切换的准确度。

Description

终端的网络切换方法及终端设备
本申请要求于2015年11月30日提交中国专利局、申请号为201510860288.4、发明名称为“终端的网络切换方法及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及无线通信技术领域,尤其涉及一种终端的网络切换方法及终端设备。
背景技术
目前,双卡或多卡终端已经广泛普及,但是由于多卡终端都是由各个芯片厂商各自提供的多卡支持,对于多卡终端没有统一的定义,多卡终端能够自动进行数据业务卡的切换方式通常为:首先由用户根据自身需求主动选择终端的某张客户识别模块(Subscriber Identity Module,简称:SIM)卡作为默认数据业务卡,之后随着数据业务的使用情况,终端系统通过监测该默认数据业务卡的流量状况,判断是否需要进行数据业务卡切换。当默认数据业务卡的流量剩余较少时,控制切换到另一个数据业务卡。
另外,在终端使用某一数据业务卡进行数据业务的过程中,根据网络类型优先级,在多卡终端的硬件支持的前提下,优先选择4G网络,当4G网络无信号时尝试连接3G网络,如果3G网络无信号时,尝试切换2G网络,即在用户选择了某一数据业务卡之后,根据网络情况选择合适的网络类型。
然而,上述的方式只是根据数据业务卡的剩余流量就进行卡间的网络切换,或者简单的根据网络状况进行卡内的网络切换,容易导致切换后的网络状况差或者剩余流量较少,网络切换的准确度较低。
发明内容
本发明实施例提供的终端的网络切换方法及终端设备,用于解决根据数据业务卡的剩余流量就进行卡间的网络切换,或者简单的根据网络状况进行卡内的网络切换,容易导致切换后的网络状况差或者剩余流量较少,网络切 换的准确度较低的问题。
本发明实施例第一方面终端的网络切换方法,所述终端包括第一数据卡和第二数据卡,所述第一数据卡为所述终端当前使用的数据卡,所述方法包括:
检测是否满足网络切换触发条件;
若满足网络切换触发条件,则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;
切换到所述确定目标网络。
其中,每个数据的网络信息参数包括了多种网络制式下的状态,例如:2G、3G、4G以及更高级的网络制式。
可选的,该网络信息参数包括该卡的网络的剩余流量、网络的信号强度以及网络类型优先级中的至少两个参数,也可以包括已使用流量,或者其他根据影响用户使用的参数,对此本发明不做限制。
本方案提供的终端的网络切换方法,提供了双卡终端的网络切换方案,针对三个或三个以上数据卡的终端,同样也可以采用该种方式,通过综合考虑每个数据卡的每种网络的网络信息参数,寻找到网络信息参数最合理有效的目标网络,完成网络切换,有效提高网络切换的准确度。
进一步地,所述切换到所述目标网络包括:
判断所述目标网络是否属于第一数据卡;
若属于,则通过卡内网络切换的方式换到所述目标网络;
若不属于,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。
在进行具体的网络切换的过程中,如果选择的目标网络跟当前的网路同在一个数据卡上,直接进行卡内网络制式的切换即可,如果在不同的数据卡上,则需要将业务切换到目标网的数据卡上,在进行网络制式的切换。
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
所述终端获取所述新的基站信息对应的第一网络的网络类型;
若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;
若所述终端确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则将所述第一网络确定为所述目标网络。
在本方案中,终端设备如果检测到新的基站信息,则触发网络切换的选择过程,需要判断该新的基站对应的第一网络的网络类型优先级以及信号强度,只有在该第一网络的优先级高于当前网络且信号强度比当前网络的信号强度时,才将该第一网络作为目标网络去实现切换,上述的方案提供了先判断网络类型优先级的方案,实际实现过程中,也可以先判断该第一网络的信号强度,后判断优先级,对此本发明不做限制,通过综合考虑网络类型优先级以及信号强度,保证切换后的网络性能优于当前网络。
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
所述终端获取所述新的基站信息对应的第一网络的网络类型;
若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的剩余流量;
若所述终端确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
本方案中,与上述类似的由终端设备检测到新的基站信息,则触发网络切换的选择过程,在选取目标网络的过程中,需要判断该新的基站对应的第一网络的网络类型优先级以及该第一网络的剩余流量或者已经使用的流量是否超限,只有在该第一网络的优先级高于当前网络且剩余流量较多时,才将该第一网络作为目标网络去实现切换,上述的方案提供了先判断网络类型优先级的方案,实际实现过程中,也可以先确定该第一网络的剩余流量,或者先确定第一网络的已使用流量,后判断优先级,对此本发明不做限制,通过综合考虑网络类型优先级以及剩余流量或已使用流量的情况,保证切换后的网络性能优于当前网络,并且不会出现流量不足产生费用,提高用户体验。
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测 到新的基站信息,则所述终端满足网络切换触发条件;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
所述终端获取所述新的基站信息对应的第一网络的信号强度;
若所述终端获取所述第一网络的信号强度与所述第一数据卡的当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量;
若所述终端确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
本方案中,与上述类似的依然由终端设备检测到新的基站信息,则触发网络切换的选择过程,在选取目标网络的过程中,只需要考虑新的基站信息对应的第一网络的信号强度以及该第一网络的剩余流量或者已经使用的流量是否超限,只有在该第一网络的信号强度高于当前网络且剩余流量较多时,才将该第一网络作为目标网络去实现切换,上述的方案提供了先判断信号强度的方案,实际实现过程中,也可以先确定该第一网络的剩余流量,或者先确定第一网络的已使用流量,后判断第一网络和当前网络的信号强度,对此本发明不做限制,通过综合考虑网络类型优先级以及网络的信号强度的情况,保证切换后的网络性能优于当前网络,提高用户体验和网络切换的准确度。
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
所述终端获取每个第二网络的剩余流量;
所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
在本方案中,触发网络切换的功能的条件的是检测到当前网络的信号强 度较差,例如:信号强度小于预设信号强度门限。为避免用户的数据业务或者通话质量受到影响,则可以根据其他的参数结合起来选择新的目标网络进行切换,具体实现中,可以从该终端设备中存储的多个基站信息中选择,这里的基站包括多种网络制式的站点,首先选择网络类型优先级高于或者跟当前网络相同的多个第二网络,然后分别检测每个第二网络的剩余流量是不是满足设定的条件,或者检测每个第二网络的已使用流量是否超过限制值,或者可以根据信号强度的排序,根据网络类型优先级以及流量使用情况选择合适的目标网络进行网络切换,可有效提供网络切换的准确度。实际实现中,可以先根据优先级来选择网络,也可以先考虑流量的使用情况,对此本发明不做限制。
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
所述终端从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;
所述终端获取每个第二网络的剩余流量;
所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
在本方案中,与上述方案类似的,依然是由当前网络的信号强度低于门限值触发网络切换动作,终端设备从存储的基站信息列表中选择信号强度大于门限值的多个第二网络,然后根据该些第二网络的流量使用情况(包括剩余流量或者已使用流量)或者根据网络类型优先级,选择流量套餐合理,或者信号强度和网络优先级高于当前网络的目标网络进行网络切换,有效提高网络切换的准确度,保证切换后的网络性能优于当前网络。
另外,在具体实现中,上述的剩余流量的判断,或者信号强度的对比,或者网络优先级的选择执行顺序不做限制,可以根据实际情况进行选择。
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测 到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
所述终端从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;
所述终端获取每个第二网络的信号强度;
所述终端根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。
与上述两个方案类似,在本方案中,依然由当前网络信号强度低于门限值来触发网络切换的动作,终端设备从存储的基站信息列表中,选择出剩余流量较多,即已使用的流量较少,网络流量比较合理的多个第二网络,然后根据每个第二网络的优先级或者信号强度,优先选择信号强度较强或者网络类型优先级的网络作为目标网络,完成网络切换,该切换后的网络性能优于当前网络,且在实现过程中对于先判断哪个参数,后判断哪个参数本发明不做限制。
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
所述终端获取每个第二网络的剩余流量;
所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
与上述几个方案不同的是,该方案中是由当前使用的网络制式下的剩余流量不足来触发网络切换,为避免超出流量套餐为用户带来不必要的费用,本方案终端设备从基站信息列表中获取网络优先级比当前网络高或者相同的 多个第二网络,然后根据每个第二网络的信号强度或者剩余流量即流量使用情况来选择目标网络,完成网络切换,在实现过程中,也可以优先考虑剩余流量或者网络信号强度,再考虑网络类型优先级的高低,可以根据实际情况进行设置,对此不做限制。
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
所述终端从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;
所述终端获取每个第二网络的剩余流量;
所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
与上述方案类似,该方案中同样的由剩余流量不足来触发网络切换动作,终端设备根据网络信号强度和每个网络的流量使用情况,或者根据网络信号强度和网络类型优先级,从基站信息列表中选择网络状态和剩余流量都比较好的目标网络完成网络切换,提高网络切换的准确度和用户体验。
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
所述终端从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;
所述终端获取每个第二网络的信号强度;
所述终端根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。
本方案中,也是用过剩余流量低于预设门限来作为网络切换的触发条件, 然后根据基站信息列表中存储的多个网络的信息,根据剩余流量的状况和信号强度,或者可以根据剩余流量的状况和网络类型优先级的,选择出性能较好的目标网络进行网络切换,综合考虑多个参数选择性能和剩余流量合理的目标网络,提高网络切换的准确度。
在上述的多种方式中,均是从各卡的每个网络的信号强度、每个网络剩余流量以及每个网络的网络类型优先级中的任意两个参数作为选择新的目标网络的,并且对于选择出的任意两个参数,在具体实现过程中判断的顺序不限制,只要能够选择出性能优于当前网络的目标网络即可。
在上述方案的基础上,下面提供几种根据各卡的每个网络的信号强度、每个网络剩余流量以及每个网络的网络类型优先级三种参数进行目标网络的选择过程的实现方式:
第一种,所述检测是否满足网络切换触发条件,包括:若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
所述终端获取所述新的基站信息对应的第一网络的网络类型;
若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;
若所述终端确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量和所述当前网络的剩余流量;
若所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
本方案中,在检测到新的基站信息的触发条件下,终端设备根据三个参数同时进行判断是否作为目标网络;上述提供的方案是依次判断网络类型优先级、信号强度以及流量使用情况的顺序进行的,实际上,在具体实现过程中,优先判断哪个参数并不做限制,即存在三种参数排列组合产生的六种实现方式,均可以实现上述目标网络的选择。
第二种,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述 终端满足网络切换触发条件;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
所述终端获取每个第二网络的剩余流量和信号强度;
所述终端将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。
与上述方案不同的是,在检测到当前网络信号强度低于预设信号强度门限的触发条件下,终端设备根据三个参数同时进行判断是否作为目标网络;上述提供的方案是依次判断网络类型优先级、流量使用情况以及信号强度的顺序进行的,实际上,在具体实现过程中,优先判断哪个参数并不做限制,即存在三种参数排列组合产生的六种实现方式,均可以实现上述目标网络的选择。
第三种,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
所述终端获取每个第二网络的剩余流量和信号强度;
所述终端将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。
本方案中,与上述方案不同的是,是由当前网络的剩余流量不足,触发网络切换动作,终端设备根据三个参数同时进行判断是否作为目标网络;上述提供的方案是依次判断网络类型优先级、流量使用情况以及信号强度的顺序进行的,实际上,在具体实现过程中,优先判断哪个参数并不做限制,即存在三种参数排列组合产生的六种实现方式,均可以实现上述目标网络的选择。
上述的几种实现方式提供的网络切换方法,不管通过什么样的触发条件触发了网络切换的动作,在选取目标网络的过程中,均需要综合考虑网络的网络类型优先级、信号强度以及流量使用情况,选择出性能优于当前网络,并且网络剩余流量足够的目标网络进行切换,该目标网络可以是第一数据卡的网络制式,也可以是其他安装在该终端设备中的数据卡的网络,例如:第二数据卡,通过该种方式,有效保证切换后的网络性能更好,也不会由于数据流量产生额外的费用,有效提高网络切换的准确度,并提高用户体验。
本发明实施例第二方面提供一种终端的网络切换方法,所述终端包括第一数据卡和第二数据卡,所述第一数据卡为所述终端当前使用的数据卡,所述方法包括:
检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值;
若所述当前网络已使用的流量超过所述使用流量阈值,则所述终端根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络;
切换到所述目标网络。
本方案提供一种具体的网络切换的实现方式,检测第一数据卡当前连接的网络已使用的流量是否超过限制,如果超过了限制,则确认需要进行网络切换,则根据每个数据卡的每种网络制式对应的已使用流量,信号强度和优先级,选择出合适的目标网络进行网络切换,综合考虑上述多种参数,提高网络切换精确度。
进一步的,所述终端根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络,包括:
所述终端从存储的基站信息列表中,根据各网络的网络类型优先级获取至少一个网络类型优先级不低于所述当前网络的第三网络;
按照网络类型优先级由高到低的顺序,所述终端根据所述当前网络的信号强度和每个第三网络的信号强度以及各网络的已使用流量,获取信号强度大于预设信号强度门限值且已使用流量未超过所述使用流量阈值的网络作为 所述目标网络。
进一步的,所述按照网络类型优先级由高到低的顺序,所述终端根据所述当前网络的信号强度和每个第三网络的信号强度以及各网络的已使用流量,获取信号强度大于预设信号强度门限值且已使用流量未超过所述使用流量阈值的网络作为所述目标网络,包括:
所述终端根据所述当前网络的信号强度和每个第三网络的信号强度,获取至少一个信号强度大于预设信号强度门限值的第四网络;
按照网络类型优先级由高到低的顺序,依次检测每个第四网络的已使用流量是否超过所述使用流量阈值;
若存在一个第四网络的已使用流量未超过所述使用流量阈值,则将该第四网络作为所述目标网络。
可选的,所述切换到所述目标网络包括:
判断所述目标网络是否属于第一数据卡;
若属于,则通过卡内网络切换的方式换到所述目标网络;
若不属于,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。
本方案提供的终端的网络切换方法,当发现当前使用的网络流量超过设置的阈值时,终端设备根据上述的方式发起一次智能匹配过程,查看存储的基站信息列表中保存的优先级高于或者与当前网络相同的多个第三网络,然后检测每个第三网络的信号强度,选出信号强度高于设置的信号强度门限或者设置阈值的网络,然后查询该些网络中的每个网络的流量使用情况,查找出按照网络类型优先级由高到低的顺序,依次从信号强度最好的网络开始查找,若存在使用流量为超过门限,其他性能较好的网络则作为目标网络,否则对下一网络进行判断,直至找到性能较好,并且剩余流量较多的目标网络完成切换,有效提高网络切换的准确度,提高用户体验。
本发明实施例第三方面提供一种终端设备,所述终端设备包括第一数据卡和第二数据卡,所述第一数据卡为所述终端设备当前使用的数据卡,所述终端设备包括:
检测模块,用于检测是否满足网络切换触发条件;
处理模块,用于若所述检测模块检测出满足网络切换触发条件,则根据 第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;
所述处理模块还用于切换到所述确定目标网络。
进一步地,所述处理模块包括:
判断子模块,用于判断所述目标网络是否属于第一数据卡;
网络切换子模块,用于:
若所述判断子模块判断出所述目标网络属于第一数据卡,则通过卡内网络切换的方式换到所述目标网络;
若所述判断子模块判断出所述目标网络不属于第一数据卡,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。
进一步地,所述处理模块获取的所述网络信息参数包括该卡的网络的剩余流量、网络的信号强度以及网络类型优先级中的至少两个参数。
可选的,若所述检测模块检测到新的基站信息,则所述终端设备满足网络切换触发条件;
则所述处理模块具体用于:
获取所述新的基站信息对应的第一网络的网络类型;
若判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;
若确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则将所述第一网络确定为所述目标网络。
可选的,若所述检测模块检测到新的基站信息,则所述终端设备满足网络切换触发条件;
则所述处理模块具体用于:
获取所述新的基站信息对应的第一网络的网络类型;
若判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的剩余流量;
若确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
可选的,若所述检测模块检测到新的基站信息,则所述终端设备满足网络切换触发条件;
则所述处理模块具体用于:
获取所述新的基站信息对应的第一网络的信号强度;
若获取所述第一网络的信号强度与所述第一数据卡的当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量;
若确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
可选的,若所述检测模块检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备满足网络切换触发条件;
则所述处理模块具体用于:
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
获取每个第二网络的剩余流量;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
可选的,若所述检测模块检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备满足网络切换触发条件;
则所述处理模块用于:
从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;
获取每个第二网络的剩余流量;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
可选的,若所述检测模块检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备满足网络切换触发条件;
则所述处理模块具体用于:
从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;
获取每个第二网络的信号强度;
根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。
可选的,若所述检测模块检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备满足网络切换触发条件;
则所述处理模块具体用于:
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
获取每个第二网络的剩余流量;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
可选的,若所述检测模块检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备满足网络切换触发条件;
则所述处理模块具体用于:
从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;
获取每个第二网络的剩余流量;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
可选的,若所述检测模块检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备满足网络切换触发条件;
则所述处理模块具体用于:
从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;
获取每个第二网络的信号强度;
根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。
可选的,若所述检测模块检测到新的基站信息,则所述终端设备满足网络切换触发条件;
则所述处理模块具体用于:
获取所述新的基站信息对应的第一网络的网络类型;
若判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;
若确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量和所述当前网络的剩余流量;
若所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
可选的,若所述检测模块检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备满足网络切换触发条件;
则所述处理模块具体用于:
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
获取每个第二网络的剩余流量和信号强度;
将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。
可选的,若所述检测模块检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备满足网络切换触发条件;
则所述处理模块具体用于:
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
获取每个第二网络的剩余流量和信号强度;
将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。
本发明实施例第四方面提供一种终端设备,所述终端设备包括第一数据卡和第二数据卡,所述第一数据卡为所述终端设备当前使用的数据卡,所述终端设备包括:
检测模块,用于检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值;
处理模块,用于若所述检测模块检测到所述当前网络已使用的流量超过所述使用流量阈值,则根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络;
所述处理模块还用于切换到所述目标网络。
进一步地,所述处理模块具体用于:
从存储的基站信息列表中,根据各网络的网络类型优先级获取至少一个网络类型优先级不低于所述当前网络的第三网络;
按照网络类型优先级由高到低的顺序,根据所述当前网络的信号强度和每个第三网络的信号强度以及各网络的已使用流量,获取信号强度大于预设信号强度门限值且已使用流量未超过所述使用流量阈值的网络作为所述目标网络。
进一步地,所述处理模块具体用于:
根据所述当前网络的信号强度和每个第三网络的信号强度,获取至少一个信号强度大于预设信号强度门限值的第四网络;
按照网络类型优先级由高到低的顺序,依次检测每个第四网络的已使用流量是否超过所述使用流量阈值;
若存在一个第四网络的已使用流量未超过所述使用流量阈值,则将该第四网络作为所述目标网络。
可选的,所述处理模块包括:
判断子模块,用于判断所述目标网络是否属于第一数据卡;
处理子模块,用于:
若所述判断子模块判断出所述目标网络属于第一数据卡,则通过卡内网络切换的方式换到所述目标网络;
若所述判断子模块判断出所述目标网络不属于第一数据卡,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。
本发明实施例第五方面提供一种终端设备,所述终端设备包括第一数据卡和第二数据卡,所述第一数据卡为所述终端设备当前使用的数据卡,所述终端设备还包括:用于控制可执行指令执行的处理器和用于存储处理器可执行指令的存储器;
所述处理器用于:
检测是否满足网络切换触发条件;
若满足网络切换触发条件,则根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;
切换到所述确定目标网络。
本发明实施例第六方面提供一种终端设备,所述终端设备包括第一数据卡和第二数据卡,所述第一数据卡为所述终端设备当前使用的数据卡,所述终端设备还包括:用于控制可执行指令执行的处理器和用于存储处理器可执行指令的存储器;
所述处理器用于:
检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值;
若检测到所述当前网络已使用的流量超过所述使用流量阈值,则根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络;
切换到所述目标网络。
本发明实施例提供的终端的网络切换方法及终端设备,终端设备在检测到满足网络切换触发条件之后,兼顾网络类型优先级,信号强度及网络套餐流量,选出最适合当前实际场景的数据业务的目标网络,并智能切换,避免出现流量超限断网,无信号导致无法上网或信号差导致网络延迟高的问题。基础双卡的智能切换方案,充分利用双卡双网络手机的优势,随时在两张卡中智能切换,无需用户干预,最大限度提升用户的使用体验。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种网络系统示意图;
图2为本发明实施例提供的终端设备的网络信息流程的示意图;
图3为本发明实施例提供的终端的网络切换方法实施例一的流程图;
图4为本发明实施例提供的终端的网络切换方法实施例二的流程图;
图5为本发明实施例提供的终端的网络切换方法实施例三的流程图;
图6为本发明实施例提供的终端的网络切换方法实施例四的流程图;
图7为本发明实施例提供的终端的网络切换方法实施例五的流程图;
图8为本发明实施例提供的终端的网络切换方法实施例六的流程图;
图9为本发明实施例提供的终端的网络切换方法实施例七的流程图;
图10为本发明实施例提供的终端的网络切换方法实施例八的流程图;
图11为本发明实施例提供的终端设备实施例一的结构示意图;
图12为本发明实施例提供的终端设备实施例二的结构示意图;
图13为本发明实施例提供的终端设备实施例三的结构示意图;
图14为本发明实施例提供的终端设备实施例四的结构示意图;
图15为本发明实施例提供的终端的网络切换方法的使用架构的示意图;
图16为本发明实施例提供的终端的网络切换方法的一具体实现流程图;
图17为本发明实施例提供的终端的网络切换方法的另一具体实现流程图;
图18为本发明实施例提供的终端的网络切换方法的又一具体实现流程图;
图19为本发明实施例提供的终端设备一实例的结构示意图;
图20为本发明实施例提供的终端设备又一实例的结构示意图;
图21为本发明终端设备的一种具体实现的结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1为本发明实施例提供的一种网络系统示意图,参照图1,该网络系 统中包括:基站1、基站2、基站3、终端(也可以称为终端设备);
其中,终端可以为智能手机、平板电脑等可以通过数据卡连接网络进行数据业务的设备。
终端设置有两个或者两个以上的数据卡(也可以称为数据业务卡),数据业务卡1和数据业务卡2;数据业务卡1支持运营商1提供的4G网络、3G网络和2G网络;数据业务卡2支持运营商2提供的4G网络、3G网络和2G网络。
基站1能够提供运营商1的网络服务;基站2能够提供运营商2的网络服务;基站3能够提供运营商1和运营商2的网络服务。
进一步地,对于4G网络、3G网络和2G网络,可以预先设置网络类型优先级,例如,2G网络的带宽低于3G网络的带宽;3G网络的带宽低于4G网络的带宽,因此,默认网络的网络类型优先级为:4G网络>3G网络>2G网络。网络的网络类型优先级可以预先通过基站通知终端,也可以预置在该终端内;可选的,也可以有用户自定义不同网络的优先级。
参照图1,该终端能够接收到基站1、基站2和基站3发射的信号,终端基于接收到的信号,生成基站信息列表,该列表包含所述至少一个可使用的网络的信号强度值、所述至少一个可使用的网络的网络类型优先级、所述当前服务网络的信号强度、所述当前服务网络的网络类型优先级。
其中,该基站信息列表中存储了每个可以连接到的基站的信息,可选的,该基站的信息可以包括移动电话国家代码(Mobile Country Code,简称:MCC)\移动设备网络代码(Mobile Network Code,简称:MNC)\位置区编码(location area code,简称:LAC);以及基站标识,可以根据该些信息获取当该基站对应的网络信号强度,以及网络类型等。
假设,终端使用数据业务卡1,并已接入基站1提供的3G网络,则该3G网络对应基站信息列表中的当前服务网络,而终端接收到基站2提供的网络和和基站3提供的网络,对应基站信息列表中的所述至少一个可使用的网络;
进一步的,终端还可以通过终端的流量管理模块,获取数据业务卡1的流量使用情况和数据业务卡2的流量使用情况。例如,获取数据业务卡1对应运营商的网络剩余可用流量和数据业务卡2对应运营商的网络剩余可用流 量;基于上文当前服务网络和可使用的网络的划分方式,基站信息列表还可以包括:所述至少一个可使用的网络对应运营商的网络剩余流量、所述当前服务网络对应运营商的网络剩余流量,该处的剩余流量指的是剩余的可用的流量,即在用户已经支付的流量包中还未使用的流量。
由于终端的移动性和网络资源的变化,终端需要对上述基站信息列表进行维护和更新,并基于基站信息列表包含的参数判断当前服务网络是否为最优网络,若存在能够为用户提供更高质量网络服务或者更满足用户资费需求的可使用的网络,则终端进行网络切换。
对于终端如何基于基站信息列表包含的参数判断当前服务网络是否为最优网络,存在多种可行的实现方式,下面对几种可行的实现方式进行说明:
方式一:终端监听网络变化,若接收到新的基站发送的信号,则更新上文基站信息列表;例如,终端接收到基站3发送的信号,则更新基站信息列表,更新后的基站信息列表包含:基站3提供的可使用的网络的信号强度值、基站3提供的可使用的网络的网络类型优先级、基站3提供的可使用的网络对应运营商的网络剩余可用流量;基站2提供的可使用的网络的信号强度值、基站2提供的可使用的网络的网络类型优先级、基站2提供的可使用的网络对应运营商的网络剩余可用流量;基站1提供的当前服务网络的信号强度值、基站1提供的当前服务网络的网络类型优先级、基站1提供的当前服务网络对应运营商的网络剩余可用流量。
进一步的,终端将基站3提供的可使用的网络的网络类型优先级与基站1提供的当前服务网络的网络类型优先级进行比较;结果为:基站3提供的运营商2的4G网络的网络类型优先级大于基站1提供的运营商1的3G网络的网络类型;则终端比较运营商2的网络剩余可用流量与运营商1的网络剩余可用流量。若运营商2的网络剩余可用流量大于或等于运营商1的网络剩余可用流量,则终端将网络切换至基站3提供的运营商2的4G网络。需要说明的,在切换至基站3提供的运营商2的4G网络时,终端首先将当前服务的数据业务卡切换从数据业务卡1至数据业务卡2,再进行网络的切换。
方式二:终端监听信号强度变化,若基站1提供的当前服务网络的信号强度值低于第一预置信号强度阈值,则终端在基站信息列表中查询网络类型优先级等于或大于基站1提供的当前服务网络的网络类型优先级的网络,例 如,基站2提供的4G网络的网络类型优先级高于基站1提供的3G网络。进一步的,终端比较基站2提供的4G网络的剩余可用流量与基站1提供的3G网络的剩余可用流量,若基站2提供的4G网络的剩余可用流量大于或等于基站1提供的3G网络的剩余可用流量,则终端将网络切换至基站2提供的4G网络。需要说明的,在切换至基站3提供的运营商2的4G网络时,终端首先将当前服务的数据业务卡切换从数据业务卡1至数据业务卡2,再进行网络的切换。
方式三:终端监听当前服务网络对应运营商的网络剩余可用流量,若该网络剩余可用流量低于第一预置流量阈值,则终端在基站信息列表中查询网络类型优先级等于或大于基站1提供的当前服务网络的网络类型优先级的网络,例如,基站2提供的4G网络的网络类型优先级高于基站1提供的3G网络。进一步的,终端比较基站2提供的4G网络的信号强度值与基站1提供的3G网络的信号强度值,若基站2提供的4G网络的信号强度值大于或等于基站1提供的3G网络的信号强度值,则终端将网络切换至基站2提供的4G网络。需要说明的,在切换至基站3提供的运营商2的4G网络时,终端首先将当前服务的数据业务卡切换从数据业务卡1至数据业务卡2,再进行网络的切换。
根据上述三种可行的实现方式可知,本发明实施例的方案通过综合考虑网络的网络类型优先级、网络的信号强度和网络对应运营商的流量信息,来实现多卡终端的网络切换。从而更加有效的将终端切换至能够为用户提供更高质量网络服务或者更满足用户资费需求的可使用的网络,从而提供多卡终端对网络资源的利用率。
图2为本发明实施例提供的终端设备的网络信息流程的示意图,如图2所示,该终端设备以手机为例,图中示出了一个典型的手机网络信息流程的示意图,手机网络硬件通过搜索附近基站信息,并将信息通过无线接口(Radio Interface Layer,简称:RIL)层返回到Androd Framework框架层,以储存基站及信号信息。用户在设置界面设置默认数据业务卡后,Framework层中的MsimTelephony(即图中的SIM框架接口)模块会匹配对应基站信息,然后选则合适的数据网络。其中RIL是系统平台手机与各厂商硬件的抽象层,MSimTelephony是各个芯片厂商对双卡手机提供的Android Framework框架 层接口。
图3为本发明实施例提供的终端的网络切换方法实施例一的流程图,如图3所示,基于上述图1和图2所示的网络环境,该方法的执行主体为终端,所述终端包括第一数据卡和第二数据卡,所述第一数据卡为所述终端当前使用的数据卡,下文中提及的当前网络为当下进行数据业务的网络,具体的,该终端的网络切换方法的步骤为:
S101:检测是否满足网络切换触发条件。
在本实施例中,该网络切换触发条件至少包括以下几种:
第一种,终端检测到新的基站信息;
第二种,终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限;
第三种,终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限。或者终端检测到所述第一数据卡的当前网络的已使用流量超出了预设的使用流量门限。
另外,还可以根据具体的应用情况设置该终端设备的网络切换条件,并与限于上述的方式。
S102:若满足网络切换触发条件,则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络。
在本实施例中,该终端设备中包括两个数据,则分别根据该两个数据卡的网络信息参数进行判断,若该终端设备中包括单个,或者三个或者三个以上的数据卡,则需要根据每个数据卡的网络信息参数选择合适的目标网络。
其中,每个数据卡的网络信息参数包括该卡的网络的剩余流量、网络的信号强度以及网络类型优先级中的至少两个参数。
S103:切换到所述确定目标网络。
在本实施例中,终端设备控制将数据业务进行切换,由当前网络切换至目标网络,具体实现中需要判断目标网络是否与当前网络属于同一个数据卡,例如:判断所述目标网络是否属于第一数据卡(当前网络属于第一数据卡);
若判断出该目标网络属于第一数据卡,则通过卡内网络切换的方式换到所述目标网络;
若判断出该目标网络不属于第一数据卡,则将数据业务切换至所述第二 数据卡上,并接入所述目标网络。
本实施例提供的终端的网络切换方法,提供了双卡终端的网络切换方案,针对三个或三个以上数据卡的终端,同样也可以采用该种方式,通过综合考虑每个数据卡的每种网络的网络信息参数,寻找到网络信息参数最合理有效的目标网络,完成网络切换,有效提高网络切换的准确度。
图4为本发明实施例提供的终端的网络切换方法实施例二的流程图,如图4所示,在上述实施例一的基础上,以终端检测到新的基站信息为触发条件,本实施例提供一种具体的实现方式,即若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;则上述实施例一中步骤S102中的所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,具体实现步骤包括:
S201:所述终端获取所述新的基站信息对应的第一网络的网络类型。
S202:若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度。
在本方案中,终端设备即所述终端检测到新的基站信息之后,判断该基站对应的第一网络的网络类型优先级是不是高于当前网络,或者是不是与该当前网络的优先级相同,如果是,则继续检测该第一网络的信号强度,否则放弃本次网络切换,待下次满足网络切换条件时,继续进行匹配。
S203:若所述终端确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则将所述第一网络确定为所述目标网络。
在本步骤中,判断第一网络的信号强度是不是比当前网络的信号强度高,判断方式可以直接对比信号强度值,也可以按照上述的方式判断其间的差值是不是大于预设的信号强度阈值,只有在判断该第一网络的优先级不低于当前网络,并且信号强度比当前网络高的时候,才将该第一网络作为目标网络,实现网络切换。
本方案具体实现中,也可以先判断第一网络的信号强度是不是高于当前网络,后判断两个网络的优先级的高低,本发明对于参数的对比和判断顺序不做限制。
本方案中新的基站信息可以是一个或者多个,如果检测到多个基站时候, 则对每个新的网络按照上述方式判断优先级以及信号强度,选择出合适的目标网络,实现网络切换。
本方案提供的终端的网络切换方法,终端设备如果检测到新的基站信息,则触发网络切换的选择过程,需要判断该新的基站对应的第一网络的网络类型优先级以及信号强度,只有在该第一网络的优先级高于当前网络且信号强度比当前网络的信号强度时,才将该第一网络作为目标网络去实现切换,通过综合考虑网络类型优先级以及信号强度,保证切换后的网络性能优于当前网络。
可选的若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件,则终端可以根据新的网络的信号强度,网络类型优先级,剩余流量(或者已使用流量等流量使用情况)中的至少两个网络信息参数来实现步骤S102中的终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络。除了上述图4所示的实施例的方案,还包括以下几种实现方式:
第一种实现方式:
终端获取所述新的基站信息对应的第一网络的网络类型;
若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的剩余流量;
若所述终端确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
该方案中,与上述类似的由终端设备检测到新的基站信息,则触发网络切换的选择过程,在选取目标网络的过程中,需要判断该新的基站对应的第一网络的网络类型优先级以及该第一网络的剩余流量或者已经使用的流量是否超限,只有在该第一网络的优先级高于当前网络且剩余流量较多时,才将该第一网络作为目标网络去实现切换,上述的方案提供了先判断网络类型优先级的方案,实际实现过程中,也可以先确定该第一网络的剩余流量,或者先确定第一网络的已使用流量,后判断优先级,对此本发明不做限制,通过综合考虑网络类型优先级以及剩余流量或已使用流量的情况,保证切换后的网络性能优于当前网络,并且不会出现流量不足产生费用,提高用户体验。
第二种实现方式:
所述终端获取所述新的基站信息对应的第一网络的信号强度;
若所述终端获取所述第一网络的信号强度与所述第一数据卡的当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量;
若所述终端确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
在该方案中,与上述类似的依然由终端设备检测到新的基站信息,则触发网络切换的选择过程,在选取目标网络的过程中,只需要考虑新的基站信息对应的第一网络的信号强度以及该第一网络的剩余流量或者已经使用的流量是否超限,只有在该第一网络的信号强度高于当前网络且剩余流量较多时,才将该第一网络作为目标网络去实现切换,上述的方案提供了先判断信号强度的方案,实际实现过程中,也可以先确定该第一网络的剩余流量,或者先确定第一网络的已使用流量,后判断第一网络和当前网络的信号强度,对此本发明不做限制,通过综合考虑网络类型优先级以及网络的信号强度的情况,保证切换后的网络性能优于当前网络,提高用户体验和网络切换的准确度。
图5为本发明实施例提供的终端的网络切换方法实施例三的流程图,如图5所示,在上述实施例一的基础上,以终端检测到当前网络的信号强度低于预设的信号强度门限触发网络切换,本实施例提供一种具体的实现方式,即若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;则上述实施例一中步骤S102中的所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,具体实现步骤包括:
S301:所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络。
在本实施例中,终端设备检测到当前的信号强度低于预设的信号强度门限时候,从本地存储基站信息列表中查找新的网络,该新的网络的网络类型优先级高于或者所述当前网络的网络类型优先级,或者与当前网络的网络类型优先级相同。
S302:所述终端获取每个第二网络的剩余流量。
S303:所述终端根据每个第二网络的剩余流量,根据预设的最优流量套 餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
在本实施例中,获取了优先级不低于当前网络的一个或多个第二网络之后,检测每个第二网络的剩余流量,或者已使用流量,选择出剩余流量高于预设的门限的网络,或者剩余流量最多的网络,或者已使用流量未超过设置的限制值的网络作为目标网络,进行网络切换。
在本实施例中,可以优先判断网络类型优先级,也可以先判断剩余流量,对此不做限制。
本实施例提供的终端的网络切换方法,触发网络切换的功能的条件的是检测到当前网络的信号强度较差,例如:信号强度小于预设信号强度门限。为避免用户的数据业务或者通话质量受到影响,则可以根据其他的参数结合起来选择新的目标网络进行切换,具体实现中,可以从该终端设备中存储的多个基站信息中选择,这里的基站包括多种网络制式的站点,首先选择网络类型优先级高于或者跟当前网络相同的多个第二网络,然后分别检测每个第二网络的剩余流量是不是满足设定的条件,或者检测每个第二网络的已使用流量是否超过限制值,或者可以根据信号强度的排序,根据网络类型优先级以及流量使用情况选择合适的目标网络进行网络切换,可有效提供网络切换的准确度。
可选的若所述终端检测到当前网络的信号强度低于预设信号强度门限,则所述终端满足网络切换触发条件,则终端可以根据新的网络的信号强度,网络类型优先级,剩余流量(或者已使用流量等流量使用情况)中的至少两个网络信息参数来实现步骤S102中的终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络。除了上述图5所示的实施例的方案,还包括以下几种实现方式:
第一种实现方式:
所述终端从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;
所述终端获取每个第二网络的剩余流量;
所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为 所述目标网络。
在本实现方式中,与上述方案类似的,依然是由当前网络的信号强度低于门限值触发网络切换动作,终端设备从存储的基站信息列表中选择信号强度大于门限值的多个第二网络,然后根据该些第二网络的流量使用情况(包括剩余流量或者已使用流量)或者根据网络类型优先级,选择流量套餐合理,或者信号强度和网络优先级高于当前网络的目标网络进行网络切换,有效提高网络切换的准确度,保证切换后的网络性能优于当前网络。
另外,在具体实现中,上述的剩余流量的判断,或者信号强度的对比,或者网络优先级的选择执行顺序不做限制,可以根据实际情况进行选择。
第二种实现方式:
所述终端从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;
所述终端获取每个第二网络的信号强度;
所述终端根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。
与上述两个方案类似,在本实现方式中,依然由当前网络信号强度低于门限值来触发网络切换的动作,终端设备从存储的基站信息列表中,选择出剩余流量较多,即已使用的流量较少,网络流量比较合理的多个第二网络,然后根据每个第二网络的优先级或者信号强度,优先选择信号强度较强或者网络类型优先级的网络作为目标网络,完成网络切换,该切换后的网络性能优于当前网络,且在实现过程中对于先判断哪个参数,后判断哪个参数本发明不做限制。
图6为本发明实施例提供的终端的网络切换方法实施例四的流程图,如图6所示,在上述实施例一的基础上,以终端检测到当前网络的剩余流量少于预设剩余流量门限,或者已使用流量超过预设的使用流量门限时触发网络切换,本实施例提供一种具体的实现方式,即若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;则上述实施例一中步骤S102中的所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,具体实现步骤包括:
S401:所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络。
与上述实施例二类似的,终端设备从本地存储的基站信息列表中,选择可以连接到的网络类型优先级高于或等于当前网络的网络类型优先级的一个或者多个第二网络。
S402:所述终端获取每个第二网络的剩余流量。
S403:所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
然后该终端设备从监测每个第二网络的已使用流量或者剩余流量,根据预设的最优流量套餐判定条件,从该些第二网络中选择出流量套餐最合理的一个作为目标网络,实现网络切换。
其中,该最优流量套餐判定条件可以包括:剩余流量最多,或者已使用流量最少等。
在本方案中,该方案中是由当前使用的网络制式下的剩余流量不足来触发网络切换,为避免超出流量套餐为用户带来不必要的费用,本方案终端设备从基站信息列表中获取网络优先级比当前网络高或者相同的多个第二网络,然后根据每个第二网络的信号强度或者剩余流量即流量使用情况来选择目标网络,完成网络切换,在实现过程中,也可以优先考虑剩余流量或者网络信号强度,再考虑网络类型优先级的高低,可以根据实际情况进行设置,对此不做限制。
可选的若所述终端检测到当前网络的剩余流量低于预设剩余流量门限,则所述终端满足网络切换触发条件,则终端可以根据新的网络的信号强度,网络类型优先级,剩余流量(或者已使用流量等流量使用情况)中的至少两个网络信息参数来实现步骤S102中的终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络。除了上述图5所示的实施例的方案,还包括以下几种实现方式:
第一种实现方式:
所述终端从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;
所述终端获取每个第二网络的剩余流量;
所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
可选的,也可以先根据剩余流量选择出满足最优流量套餐的多个网络,然后判断该些网络的信号强度,按照信号强度由高到低的顺序来选择合适的目标网络,进行网络切换。
与上述方案类似,该方案中同样的由剩余流量不足来触发网络切换动作,终端设备根据网络信号强度和每个网络的流量使用情况,或者根据网络信号强度和网络类型优先级,从基站信息列表中选择网络状态和剩余流量都比较好的目标网络完成网络切换,提高网络切换的准确度和用户体验。
第二种实现方式:
所述终端从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;
所述终端获取每个第二网络的信号强度;
所述终端根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。
本方案中,也是用过剩余流量低于预设门限来作为网络切换的触发条件,然后根据基站信息列表中存储的多个网络的信息,根据剩余流量的状况和信号强度,或者可以根据剩余流量的状况和网络类型优先级的,选择出性能较好的目标网络进行网络切换,综合考虑多个参数选择性能和剩余流量合理的目标网络,提高网络切换的准确度。
在上述的多种方式中,均是从各卡的每个网络的信号强度、每个网络剩余流量以及每个网络的网络类型优先级中的任意两个参数作为选择新的目标网络的,并且对于选择出的任意两个参数,在具体实现过程中判断的顺序不限制,只要能够选择出性能优于当前网络的目标网络即可。
在上述图3至图6示出的实施例中,均是采用在触发了网络切换动作之后,选择两种参数进行目标网络的选择,能够在一定程度上提高网络切换的准确度,优选的,终端设备根据各卡的每个网络的信号强度、每个网络剩余流量以及每个网络的网络类型优先级三种参数进行目标网络的选择一,以进 一步提高网络切换的准确度,提高用户体验。下面分别对每种实现方式进行说明。
图7为本发明实施例提供的终端的网络切换方法实施例五的流程图,如图7所示该方案的执行主体为终端设备,即上述图1和图2中的终端,例如:手机、平板电脑等可通过数据卡实现数据业务的设备,在如图3所示的实施例的基础上,当终端检测到新的基站信息,则确定终端满足网络切换触发条件,需要进行网络切换的匹配过程,则步骤102中的终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,具体是按步骤为:
S501:所述终端获取所述新的基站信息对应的第一网络的网络类型。
S502:若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度。
在本步骤中,终端检测到新的基站信息后,检测获取该新的基站对应的第一网络的网络类型,根据预先配置的网络类型优先级顺序或者默认的网络类型优先级,检测该第一网络的优先级是不是高于当前网络,或者与当前网络相同,如果该第一网络的网络类型优先级低于当前网络,则放弃本次切换过程,即保证不要切换至性能不好的网络。
在检测到优先级符合条件之后,获取该第一网络的信号强度,进一步对信号强度进行对比,保证切换后的网络的信号质量优于当前网络。
S503:若所述终端确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量和所述当前网络的剩余流量。
在本步骤中,如果检测到第一网络的信号强度低于当前网络的信号强度,则放弃本次网络切换过程。
在判断对信号强度进行对比的过程中,可以直接对比第一网络和当前网络的信号强度的大小,也可以判断其间的差值是否大于预设的信号强度阈值,在满足了信号强度的条件之后,最后检测第一网络的剩余流量,判断剩余流量是否能够满足要求。
S504:若所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
在本步骤中,若第一网络的流量不足则结束本次网络切换,避免用户因使用切换后的网络产生不必要的费用,判断第一网络的剩余流量是否满足条件的方式可以是:直接对比第一网络的剩余流量和当前网络的剩余流量,若第一网络的剩余流量比当前网络的剩余流量多,则满足;或者按照上述的判断第一网络的剩余流量与当前网络的剩余流量的差值是否大于设置的阈值;或者也可以直接检测已使用流量,判断以使用流量是否超过了预设的门限值,本发明对于具的判断方式不做限制。
结合上述描述和图1和图2所示的系统示意图,下面举一实例说明本方案,以手机为例。
1、当手机检测到基站信息有改变,将检查与当前网络类型的差异,并发起一次智能匹配过程,监听到基站信息变化,查看获取到的已连接网络类型A(相当于上述的当前网络),对比新增基站网络类型B(相当于上述的第一网络)的网络类型,进入下一步。
2、比较网络类型,根据预设的网络类型优先级,例如:4G>3G>2G,如果B优于A如A为3G,B为4G,则新增基站网络性能比A更优,进入步骤3,否则进入步骤4。
3、获取A与B网络信号的信号强度S,对比信号强度SA和SB,若SB-SA>阈值,进入步骤5,否则进入步骤4.
4、结束本次匹配过程,放弃本次网络切换过程。
5、查看A对应运营商的剩余网络流量TB,及B对应运营商的剩余网络流量TB,若TB-TA>阈值,进入步骤6,否则进入步骤4。
6、查询基站信息,查看A,B网络是否属于同一张卡,是则进入步骤7,否则进入步骤8。
7、直接进行单卡内的网络切换。
8、切换数据业务卡,并通过用户界面(User Interface,UI)向用户显示切换提示。
上述实例提供的首先判断网络类型的优先级、符合条件后在判断信号强度,最后检测网络对于的剩余流量,实际的实现中,对于上述三个参数的判断顺序本发明不做限制,可能根据具体的情况随机设置,即存在三种参数排列组合产生的六种实现方式,均可以实现上述目标网络的选择。
本实施例提供的终端的网络切换方法,在选取目标网络的过程中,均需要综合考虑网络的网络类型优先级、信号强度以及流量使用情况,选择出性能优于当前网络,并且网络剩余流量足够的目标网络进行切换,该目标网络可以是第一数据卡的网络制式,也可以是其他安装在该终端设备中的数据卡的网络,例如:第二数据卡,通过该种方式,有效保证切换后的网络性能更好,也不会由于数据流量产生额外的费用,有效提高网络切换的准确度,并提高用户体验。
图8为本发明实施例提供的终端的网络切换方法实施例六的流程图,如图8所示该方案的执行主体为终端设备,即上述图1和图2中的终端,例如:手机、平板电脑等可通过数据卡实现数据业务的设备,在如图3所示的实施例的基础上,当终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则确定终端满足网络切换触发条件,需要进行网络切换的匹配过程,则步骤102中的终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,具体是按步骤为:
S601:所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络。
在本步骤中,终端需要从存储的基站信息列表中选择一个或多个网络类型优先级不必当前网络低的网络作为备选,该基站信息列表中包括多个可以检测到的可连接的基站的参数信息。
由于终端的移动性和网络资源的变化,终端需要对上述基站信息列表进行维护和更新,并基于基站信息列表包含的参数判断当前服务网络是否为最优网络,若存在能够为用户提供更高质量网络服务或者更满足用户资费需求的可使用的网络,则终端进行网络切换的匹配过程。
若在该基站信息列表中未查询到优先级不第于当前网络的网络,则放弃本次网络切换的匹配过程。
S602:所述终端获取每个第二网络的剩余流量和信号强度。
S603:所述终端将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。
在本方案中,终端需要获取选择出来的网络的信号强度以及剩余流量,可以先判断信号强度是否高于当前网络,然后判断剩余流量是否满足最优流 量套餐条件的网络,也可以先判断剩余流量后检测信号强度。
结合上述描述和图1和图2所示的系统示意图,下面举一实例说明本方案,以手机为例。当手机检测到信号强度有改变,将检查当前信号强度是否低于阈值,并发起一次智能匹配过程。
1、监听到信号强度变化,查看信号强度是否低于阈值,是则进入步骤2,否则进入步骤3。
2、查看本地保存的所有基站信息列表,寻找与当前网络A的网络类型优先级同等或更优带宽的网络,有则进入步骤4,否则进入步骤3。
3、结束本次匹配过程。
4、查看符合条件的所有网络及当前网络的流量套餐,找出最优流量套餐比的网络B,若不是当前网络,则进入步骤5,否则进入步骤3。
5、查询基站信息,查看A,B网络是否属于同一张卡,是则进入步骤6,否则进入步骤7。
6、直接进行单卡网络切换。
7、切换数据业务卡,并通过用户界面(User Interface,UI)向用户显示切换提示。
与上述方案不同的是,在检测到当前网络信号强度低于预设信号强度门限的触发条件下,终端设备根据三个参数同时进行判断是否作为目标网络;上述提供的方案是依次判断网络类型优先级、流量使用情况以及信号强度的顺序进行的,实际上,在具体实现过程中,优先判断哪个参数并不做限制,即存在三种参数排列组合产生的六种实现方式,均可以实现上述目标网络的选择。
本实施例提供的终端的网络切换方法,在选取目标网络的过程中,均需要综合考虑网络的网络类型优先级、信号强度以及流量使用情况,选择出性能优于当前网络,并且网络剩余流量足够的目标网络进行切换,该目标网络可以是第一数据卡的网络制式,也可以是其他安装在该终端设备中的数据卡的网络,例如:第二数据卡,通过该种方式,有效保证切换后的网络性能更好,也不会由于数据流量产生额外的费用,有效提高网络切换的准确度,并提高用户体验。
图9为本发明实施例提供的终端的网络切换方法实施例七的流程图,如 图8所示该方案的执行主体为终端设备,即上述图1和图2中的终端,例如:手机、平板电脑等可通过数据卡实现数据业务的设备,在如图3所示的实施例的基础上,当终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限(可选的,这里也可以是终端检测到当前网络的已使用流量超过预设使用流量门限),则确定终端满足网络切换触发条件,需要进行网络切换的匹配过程,则步骤102中的终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,具体是按步骤为:
S701:所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络。
S702:所述终端获取每个第二网络的剩余流量和信号强度。
S703:所述终端将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。
具体实现方式与上述实施例类似,与上述方案不同的是,是由当前网络的剩余流量不足,触发网络切换动作,终端设备根据三个参数同时进行判断是否作为目标网络;上述提供的方案是依次判断网络类型优先级、流量使用情况以及信号强度的顺序进行的,实际上,在具体实现过程中,优先判断哪个参数并不做限制,即存在三种参数排列组合产生的六种实现方式,均可以实现上述目标网络的选择。
在图7至图9所示的几种方案中,当前网络A如果是第一数据卡中的2G网路,则按照上述任一实施例的方案,查找出满足上述条件的目标网络可能是:第一数据卡中的3G和4G网络,也可能是第二数据卡中的2G、3G和4G网络;当前网络A如果是第一数据卡中的3G网路,查找出满足上述条件的目标网络可能是:第一数据卡中的3G和4G网络,也可能是第二数据卡中的3G和4G网络;当前网络A如果是第一数据卡中的4G网路,查找出满足上述条件的目标网络可能是:第一数据卡中的4G网络,也可能是第二数据卡中的4G网络。
上述的几种实现方式提供的终端的网络切换方法,不管通过什么样的触发条件触发了网络切换的动作,在选取目标网络的过程中,均需要综合考虑网络的网络类型优先级、信号强度以及流量使用情况,选择出性能优于当前网络,并且网络剩余流量足够的目标网络进行切换,该目标网络可以是第一 数据卡的网络制式,也可以是其他安装在该终端设备中的数据卡的网络,例如:第二数据卡,通过该种方式,有效保证切换后的网络性能更好,有效提高网络切换的准确度,并且保证切换后的网络的剩余流量足够,不会由于数据流量产生额外的费用,进一步的提高用户体验。
图10为本发明实施例提供的终端的网络切换方法实施例八的流程图,如图10所示,本实施例中终端包括第一数据卡和第二数据卡,所述第一数据卡为所述终端当前使用的数据卡,若在终端中包括两个以上的数据卡,也可以参照该方式选择合适的目标网站进行切换。
本实施例提供一种在当前网络的剩余流量不足或者已使用流量超过限制的触发条件下,实现网络切换的详细步骤:
S801:检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值。
若所述当前网络已使用的流量超过所述使用流量阈值,则触发本次网络切换过程,则终端根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络,具体的实现方式如下步骤S802和S803。
S802:若所述当前网络已使用的流量超过所述使用流量阈值,所述终端从存储的基站信息列表中,根据各网络的网络类型优先级获取至少一个网络类型优先级不低于所述当前网络的第三网络。
S803:按照网络类型优先级由高到低的顺序,所述终端根据所述当前网络的信号强度和每个第三网络的信号强度以及各网络的已使用流量,获取信号强度大于预设信号强度门限值且已使用流量未超过所述使用流量阈值的网络作为所述目标网络。
在本实施例中,一种具体的实现方式为:
所述终端根据所述当前网络的信号强度和每个第三网络的信号强度,获取至少一个信号强度大于预设信号强度门限值的第四网络;按照网络类型优先级由高到低的顺序,依次检测每个第四网络的已使用流量是否超过所述使用流量阈值;若存在一个第四网络的已使用流量未超过所述使用流量阈值,则将该第四网络作为所述目标网络。
S804:切换到所述目标网络。
在本实施例中,所述切换到所述目标网络的具体实现方式为:首先判断所述目标网络是否属于第一数据卡;若属于,则通过卡内网络切换的方式换到所述目标网络;若不属于,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。
结合上述描述和图1和图2所示的系统示意图,下面举一实例说明本实施例的技术方案,同样的以手机为例。当发现当前网络流量超过阈值时,将发起一次智能匹配过程,具体的匹配过程为:
1、手机监听到当前网络的已使用流量超过是否超过预设的使用流量门限时,若是则进入步骤2。
2、查看手机本地中保存的所有基站信息列表,查询获取与现有网络同等或更优带宽的网络,若存在这样的网络则进入步骤4,若不存在则进入步骤3。
3、结束本次匹配过程。
4、查看符合条件的所有网络及当前网络的信号强度,若优选的网络的信号强度高于阈值或者高于当前网络A的信号强度,若存在这样的网络进入步骤5,否则进入步骤6。
5、查询该网络的已使用流量值,如果超过超过设置的使用流量限值,则进入步骤6,否则进入步骤7。
6、循环步骤4,按照网络类型优先级由高到低的顺序依次查找,找到信号强度高于阈值的网络B,如果有则进入步骤5,否则进入步骤3。
7、查询基站信息,查看A,B网络是否属于同一张卡,是则进入步骤8,否则进入步骤9。
8、直接进行单卡网络切换。
9、切换数据业务卡,并通过用户界面(User Interface,UI)向用户显示切换提示。
本方案提供的终端的网络切换方法,当发现当前使用的网络流量超过设置的阈值时,终端设备根据上述的方式发起一次智能匹配过程,查看存储的基站信息列表中保存的优先级高于或者与当前网络相同的多个第三网络,然后检测每个第三网络的信号强度,选出信号强度高于设置的信号强度门限或者设置阈值的网络,然后查询该些网络中的每个网络的流量使用情况,查找 出按照网络类型优先级由高到低的顺序,依次从信号强度最好的网络开始查找,若存在使用流量为超过门限,其他性能较好的网络则作为目标网络,否则对下一网络进行判断,直至找到性能较好,并且剩余流量较多的目标网络完成切换,有效提高网络切换的准确度,提高用户体验。
图11为本发明实施例提供的终端设备实施例一的结构示意图,如图11所示,该终端设备10中包括第一数据卡11和第二数据卡12,所述第一数据卡为所述终端设备10当前使用的数据卡,所述终端设备10还包括:
检测模块13,用于检测是否满足网络切换触发条件;
处理模块14,用于若所述检测模块检测出满足网络切换触发条件,则根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;
所述处理模块14还用于切换到所述确定目标网络。
本实施例提供的终端设备,用于执行图3至图10任一实施例所述的终端的网络切换方法,其实现原理和技术效果类似,在此不再赘述。
图12为本发明实施例提供的终端设备实施例二的结构示意图,如图12所示,该终端设备10的处理模块14包括:
判断子模块141,用于判断所述目标网络是否属于第一数据卡;
网络切换子模块142,用于:
若所述判断子模块141判断出所述目标网络属于第一数据卡,则通过卡内网络切换的方式换到所述目标网络;
若所述判断子模块141判断出所述目标网络不属于第一数据卡,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。
可选的,所述处理模块14获取的所述网络信息参数包括该卡的网络的剩余流量、网络的信号强度以及网络类型优先级中的至少两个参数。
可选的,若所述检测模块13检测到新的基站信息,则所述终端设备10满足网络切换触发条件;
则所述处理模块14具体用于:
获取所述新的基站信息对应的第一网络的网络类型;
若判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;
若确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则将所述第一网络确定为所述目标网络。
可选的,若所述检测模块13检测到新的基站信息,则所述终端设备10满足网络切换触发条件;
则所述处理模块14具体用于:
获取所述新的基站信息对应的第一网络的网络类型;
若判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的剩余流量;
若确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
可选的,若所述检测模块13检测到新的基站信息,则所述终端设备10满足网络切换触发条件;
则所述处理模块14具体用于:
获取所述新的基站信息对应的第一网络的信号强度;
若获取所述第一网络的信号强度与所述第一数据卡的当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量;
若确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备满足网络切换触发条件;
则所述处理模块13具体用于:
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
获取每个第二网络的剩余流量;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备10满足网络切换触发条件;
则所述处理模块14用于:
从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;
获取每个第二网络的剩余流量;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备10满足网络切换触发条件;
则所述处理模块14具体用于:
从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;
获取每个第二网络的信号强度;
根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备10满足网络切换触发条件;
则所述处理模块14具体用于:
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
获取每个第二网络的剩余流量;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备10满足网络切换触发条件;
则所述处理模块14具体用于:
从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;
获取每个第二网络的剩余流量;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从 所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备10满足网络切换触发条件;
则所述处理模块14具体用于:
从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;
获取每个第二网络的信号强度;
根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。
可选的,若所述检测模块13检测到新的基站信息,则所述终端设备10满足网络切换触发条件;
则所述处理模块14具体用于:
获取所述新的基站信息对应的第一网络的网络类型;
若判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;
若确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量和所述当前网络的剩余流量;
若所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备10满足网络切换触发条件;
则所述处理模块14具体用于:
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
获取每个第二网络的剩余流量和信号强度;
将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。
可选的,若所述检测模块检测到所述第一数据卡的当前网络的剩余流量 低于预设的剩余流量门限,则所述终端设备10满足网络切换触发条件;
则所述处理模块14具体用于:
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
获取每个第二网络的剩余流量和信号强度;
将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。
本实施例提供的终端设备,用于执行图3至图10任一实施例所述的终端的网络切换方法,其实现原理和技术效果类似,在此不再赘述。
图13为本发明实施例提供的终端设备实施例三的结构示意图,如图13所示,该终端设备20包括:第一数据卡21和第二数据卡22,所述第一数据卡21为所述终端设备20当前使用的数据卡,还包括:
检测模块23,用于检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值;
处理模块24,用于若所述检测模块检测到所述当前网络已使用的流量超过所述使用流量阈值,则根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络;
所述处理模块24还用于切换到所述目标网络。
进一步地,所述处理模块24具体用于:
从存储的基站信息列表中,根据各网络的网络类型优先级获取至少一个网络类型优先级不低于所述当前网络的第三网络;
按照网络类型优先级由高到低的顺序,根据所述当前网络的信号强度和每个第三网络的信号强度以及各网络的已使用流量,获取信号强度大于预设信号强度门限值且已使用流量未超过所述使用流量阈值的网络作为所述目标网络。
进一步地,所述处理模块24具体用于:
根据所述当前网络的信号强度和每个第三网络的信号强度,获取至少一个信号强度大于预设信号强度门限值的第四网络;
按照网络类型优先级由高到低的顺序,依次检测每个第四网络的已使用 流量是否超过所述使用流量阈值;
若存在一个第四网络的已使用流量未超过所述使用流量阈值,则将该第四网络作为所述目标网络。
本实施例提供的终端设备,用于执行图3至图10任一实施例所述的终端的网络切换方法,其实现原理和技术效果类似,在此不再赘述。
图14为本发明实施例提供的终端设备实施例四的结构示意图,如图14所示,该终端设备20的处理模块24包括:
判断子模块241,用于判断所述目标网络是否属于第一数据卡;
处理子模块242,用于:
若所述判断子模块241判断出所述目标网络属于第一数据卡,则通过卡内网络切换的方式换到所述目标网络;
若所述判断子模块241判断出所述目标网络不属于第一数据卡,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。
本实施例提供的终端设备,用于执行图3至图10任一实施例所述的终端的网络切换方法,其实现原理和技术效果类似,在此不再赘述。
结合上述的任一实施例的方法,下面通过终端设备的具体执行模块的细化以及与服务器、基站的交互来说明本发明的技术方案。
图15为本发明实施例提供的终端的网络切换方法的使用架构的示意图,如图15所示,终端设备、基站1、基站2、基站3和资费服务器;其中,参考前述的实施例,终端设备设置有两个数据业务卡,数据业务卡1和数据业务卡2;数据业务卡1支持运营商1提供的4G网络、3G网络和2G网络;数据业务卡2支持运营商2提供的4G网络、3G网络和2G网络。
基站1能够提供运营商1的网络服务;基站2能够提供运营商2的网络服务;基站3能够提供运营商1和运营商2的网络服务。
进一步的,该终端包括:处理模块控制的网络匹配单元、收发单元、流量管理单元;其中,收发单元的功能可以通过无线接口(Radio Interface Layer,简称:RIL)层实现:终端的射频单元通过搜索附近基站,获得每个基站的网络的信号强度值、每个基站的网络的网络类型,将这些信息通过RIL层返回到安卓框架(Androd Framework)层,并将上述网络信息列表储存在安卓框架层。
所述网络匹配单元的功能可以通过框架层中的多SIM卡电话管理单元(MSimTelephony)和框架层中的智能匹配单元实现,流量管理模块通常设置在应用层:多SIM卡电话模块会匹配对应基站信息,然后选择合适的数据网络为终端提供服务。
其中,RIL层工作在点对点协议(Point to Point Protocol,PPP)、传输控制协议/因特网互联协议(Transmission Control Protocol/Internet Protocol,TCP/IP)协议之下,负责数据的可靠传输、AT(Attention)命令的发送以及应答消息的解析。并且,RIL层还支持短信息服务(Short Message Service,简称:SMS)、语音呼叫(Voice Call)等功能。
具体的,对于操作系统为Windows Mobile的智能终端,其RIL层处于无线基带系统的协议栈之上,Windows Mobile的蜂窝核心(Cell Core)层之下。
对于操作系统为安卓的智能终端,安卓操作系统将RIL层分为两个代码空间:一个部分是RIL守护进程(RIL Daemon),其负责套接字(socket)与应用程序框架进行通信。另外一个部分是RIL守护进程初始化(Vendor RIL),这个部分负责向下通过两种方式与手机的通讯模块进行通信:方式一、直接与手机的通讯模块通信的AT指令通道;方式二、用于传输包数据的数据通道,数据通道用于手机的上网功能。
另外,流量管理单元,用于与运营商的资费服务器进行交互获取网络的剩余可用流量;可选的,流量信息的形式可以不限于网络的剩余可用流量,也可以为:运营商的套餐信息、运营商的当前流量使用信息等;
网络匹配单元,用于基于网络信息列表包含的上述参数确定最优网络,并将服务网络切换至该最优网络。
可选的,网络匹配单元在完成网络切换后,可以将切换提示发送给终端的输出模块,例如显示模块,扬声器等;通过用户界面(User Interface,简称UI)向用户显示切换提示。
需要说明的是,网络匹配单元以及流量管理单元的功能,可以通过终端的基带处理器实现。收发单元的功能可以通过移动终端的射频单元实现。
下面通过具体实施例,对上文所述终端进行说明,图3为本发明实施例提供的一种终端设备的结构示意图,所述终端设备设置有至少两个数据业务卡,参照图3,该终端设备包括:网络匹配单元、收发单元和流量管理单 元;
所述收发单元,用于获取网络的信号强度;
所述流量管理单元,用于获取网络的对应运营商的网络剩余可用流量;
所述网络匹配单元,用于:
根据所述网络的信号强度、所述网络的对应运营商的网络剩余可用流量和网络的网络类型优先级确定是否进行网络切换;所述网络包含当前服务网络和至少一个可使用的网络;
所述当前服务网络为当前为所述终端提供服务的网络;所述至少一个可使用的网络为所述终端能够接入的网络;
若确定进行网络切换,则将所述终端的当前服务网络切换为第一网络;
所述第一网络为满足切换条件的所述至少一个可使用的网络中的一个。
本发明实施例提供的终端设备,通过所述收发模块获取网络的信号强度;所述流量管理模块获取网络的对应运营商的网络剩余可用流量;所述网络匹配模块根据所述网络的信号强度、所述网络的对应运营商的网络剩余可用流量和网络的网络类型优先级,选择出网络性能优于当前网络,且剩余流量最优的目标网络,然后将网络切换至选择的目标网络通过综合网络的信号强度、所述网络的对应运营商的网络剩余可用流量和网络的网络类型优先级等多种因素,选择满足切换条件的网络进行切换,从而充分利用了多卡终端提供的网络资源,提高网络选择的准确性。
图16为本发明实施例提供的终端的网络切换方法的一具体实现流程图,如图16所示,在上述图15所示的终端设备的具体结构基础上,该终端设备还包括UI。本发明的终端设备通过底层RIL返回基站信息和信号强度变化,及从运营商获取SIM卡流量信息等三个维度进行双卡全网络匹配算法,并最终选出当前实际环境中最适合的数据业务卡及网络,并通过UI层智能切换及提示用户。
具体的匹配过程为:
S11:监测到新的基站信息。终端设备的RIL监测到基站信息发生变化,获取相关的基站信息,该基站信息包含MCC、MNC或者LAC等信息。
S12:存储MCC、MNC信息。多卡手机的电话管理单元,也就是上述处理模块将该些基站信息进行存储。
S13:对比当前网络与新的基站对应的第一网络的网络类型优先级。并发起对网络类型的对比,对比网络类型优先级确保选出的网络的性能优于当前网络。
S14:指示进行网络匹配。管理单元指示智能网络匹配单元进行一次网络匹配,即如果第一网络的优先级低于当前网络,则结束本次匹配过程。
S15:指示对比当前网络和第一网络的信号强度。该智能网络匹配单元指示Framework层MSimTelephony模块,即图中的电话管理单元获取各网络的信号强度,并进行对比。
S16:对比第一网络的信号强度和当前网络的信号强度。
S17:第一网络的信号强度更高。
S18:查询第一网络的剩余流量。网络匹配单元向流量管理单元查询第一网络的剩余流量,并与当前网络进行对比。
S19:将第一网络的剩余流量和当前网络的剩余流量进行对比。
S20:第一网络的剩余流量更多。得到该第一网络的网络类型优先级、信号强度和剩余流量均满足条件,则确定该第一网络为可以切换的目标网络。
S21:查询第一网络所属的数据卡是否与当前网络相同。查询确定进行卡内网络切换还是卡间网络切换。若查询到属于同一数据卡,则直接进行卡内网络切换即可。若查询到属于不同的数据卡,则需要先切换数据卡,然后再切换网络。
S22:切换数据卡。
S23:网络切换提示。通过UI向用户显示切换提示。
图17为本发明实施例提供的终端的网络切换方法的另一具体实现流程图,如图17所示,在上述图15所示的终端设备的具体结构基础上,该终端设备还包括UI。提供的具体的网络切换的匹配过程的步骤为:
S31:监测信号强度变化。终端设备的RIL层监测到当前网络对应的信号强度,并获取当前网络的信号强度或者变化量等数据。
S32:反馈信号强度变化量。
S33:对比当前网络的信号强度值是否低于预设信号强度门限。RIL层将该数据反馈给电话管理单元进行对比,如果当前网络的信号强度低于设定的门限值,则触发后续的匹配过程。
S34:指示进行网络匹配。
S35:指示查询本地存储的基站信息列表中的基站信息。
S36:获取多个网络类型优先级不低于当前网络的第二网络。
从本地存储的基站信息列表中获取多个优先级不低于当前网络的第二网络。
S37:指示进行网络匹配。
S38:查询每个第二网络的剩余流量。
S39:获取第二网络中流量套餐最合理的网络作为目标网络。
即从基站信息列表中,得到该网络类型优先级、信号强度和剩余流量均满足条件的网络作为可以切换的目标网络。
S40:查询目标网络所属的数据卡是否与当前网络相同。
S41:目标网络所属的数据卡与当前网络不相同。
查询确定进行卡内网络切换还是卡间网络切换。若查询到属于同一数据卡,则直接进行卡内网络切换即可。若查询到属于不同的数据卡,则需要先切换数据卡,然后再切换网络。
S42:切换数据卡。
S43:网络切换提示。通过UI向用户显示切换提示。
图18为本发明实施例提供的终端的网络切换方法的又一具体实现流程图,如图18所示,在上述图15所示的终端设备的具体结构基础上,该终端设备还包括UI。提供的具体的网络切换的匹配过程的步骤为:
S51:检测到当前使用流量到达限定值。
S52:反馈流量使用情况。
流量管理单元通过资费服务器查询或者检测到当前使用流量达到了设置的门限值,或者是剩余流量少于设定的阈值时候,向电话管理单元反馈该信息,触发后续网络切换匹配过程。
S53:获取多个网络类型优先级不低于当前网络的第三网络。
从本地存储的基站信息列表中获取多个优先级不低于当前网络的第三网络。
S54:指示进行网络匹配。
S55:查询各第三网络的信号强度。
S56:最优网络信号强度高于预设信号强度门限值。
网络匹配单元指示电话管理单元获取每个第三网络的信号强度,并进行信号强度的删选,从第三网络中选择出信号强度较好的网络,即信号强度高于设定信号强度门限或者与当前网络的信号强度差值大于设定阈值的一个或者多个第四网络。
S57:获取第三网络中信号强度高于信号强度门限值的第四网络。
S58:查询该些第四网络的剩余流量值。
S59:获取第四网络中剩余流量较多或者已使用流量未超过限定值的网络作为目标网络。
最后,进行网络流量的匹配,从第一网络中选择剩余流量较多或者已使用流量较少的网络作为目标网络,如果不存在这样的网络则放弃本次匹配过程,不进行网络切换。
若存在这样的网络,即得到一个网络类型优先级、信号强度和剩余流量均满足条件的网络作为可以切换的目标网络。
S60:查询目标网络所属的数据卡是否与当前网络相同。
S61:目标网络所属的数据卡与当前网络不相同。
查询确定进行卡内网络切换还是卡间网络切换。若查询到属于同一数据卡,则直接进行卡内网络切换即可。若查询到属于不同的数据卡,则需要先切换数据卡,然后再切换网络。
S62:切换数据卡。
S63:网络切换提示。通过UI向用户显示切换提示。
上述几个实施例中的技术方案,其实质是通过修改Framework层MSimTelephony模块(即上述的多SIM卡电话管理单元),监听信号强度变化及网络基站信息变化onCellInfoChanged,同时通过手机流量管理模块,从运营商获取双卡流量信息,并监听其变化。基于以上三种信息的监听,当正在使用的数据卡信号强度低于阈值或发现有更好网络的基站信息或当前数据卡流量值低于阈值,都将触发双卡全网络匹配算法,结合所有三种信息的匹配,并最终完成是否需要切换数据卡的策略。
本发明实施例提供终端的网络切换方法,终端设备在检测到满足网络切换触发条件之后,兼顾网络类型优先级,信号强度及网络套餐流量,选出最 适合当前实际场景的数据业务的目标网络,并智能切换,避免出现流量超限断网,无信号导致无法上网或信号差导致网络延迟高的问题。基础双卡的智能切换方案,充分利用双卡双网络手机的优势,随时在两张卡中智能切换,无需用户干预,最大限度提升用户的使用体验。
图19为本发明实施例提供的终端设备一实例的结构示意图;如图19所示,该终端设备可以被具体实现为:包括第一数据卡处理模块和第二数据卡处理模块,第一数据卡处理模块用于将第一数据卡接入终端设备,并且对于第一数据卡中的数据进行读写,同样的第二数据卡处理模块用于接入第二数据卡并读写该第二数据卡的数据,具体的实现中,数据卡处理模块可用读写器来实现,所述第一数据卡为所述终端设备当前使用的数据卡,用于控制可执行指令执行的处理器和用于存储处理器可执行指令的存储器的硬件设备;其中,
所述处理器用于:检测是否满足网络切换触发条件;若满足网络切换触发条件,则根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;切换到所述确定目标网络。
其中,第一数据卡处理模块和第二数据卡处理装置可通过硬件接口电路实现,例如:手机中可设置的多个客户识别模块(Subscriber Identity Module,SIM)卡读写器,能够读出SIM卡中的电话薄、短信、以及其他信息,并能完成电话薄的修改,从而备份电话薄。还具有破解功能,能够完成特定SIM卡的烧制。
本实施例提供的终端设备,用于执行图3至图10任一实施例所述的终端的网络切换方法,其实现原理和技术效果类似,在此不再赘述。
图20为本发明实施例提供的终端设备又一实例的结构示意图;如图20所示,该终端设备可以被具体实现为:包括第一数据卡处理模块和第二数据卡处理模块,与上述实施例类似,第一数据卡处理模块用于将第一数据卡接入终端设备,并且对于第一数据卡中的数据进行读写,同样的第二数据卡处理模块用于接入第二数据卡并读写该第二数据卡的数据,具体的实现中,数据卡处理模块可用读写器来实现,所述第一数据卡为所述终端设备当前使用的数据卡,用于控制可执行指令执行的处理器和用于存储处理器可执行指令的存储器的硬件设备;其中,
所述处理器用于:检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值;若检测到所述当前网络已使用的流量超过所述使用流量阈值,则根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络;切换到所述目标网络。
其中,第一数据卡处理模块和第二数据卡处理装置可通过硬件接口电路实现,例如:手机中可设置的多个SIM卡读写器,能够读出SIM卡中的电话薄、短信、以及其他信息,并能完成电话薄的修改,从而备份电话薄。还具有破解功能,能够完成特定SIM卡的烧制。
本实施例提供的终端设备,用于执行图3至图10任一实施例所述的终端的网络切换方法,其实现原理和技术效果类似,在此不再赘述。
图21为本发明终端设备的一种具体实现的结构示意图,如图21所示,该终端设备50可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,健身设备,个人数字助理等能够通过数据卡进行数据业务的设备。除了上述的处理器51、显示器52、发送器53和接收器54,该终端设备50还包括以下的一个或者多个组件,具体实现中可以根据实际情况选择:存储器55,电源组件56,多媒体组件57,音频组件58,输入/输出(I/O)的接口59,传感器组件60,以及通信组件61。
其中,可以安装两个或者两个以上的数据卡,该数据卡是外设的,本不是终端设备本身的部件,而每个数据卡的业务可以通过处理器51来实现,也可以为每个数据卡设置不同的处理器实现其业务。
即处理器51通常用于控制终端设备50的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。在该方案中并不限于只包括一个处理器,为了实现更复杂的功能,可以包括一个或多个处理器51来执行指令,以完成上述的方法的全部或部分步骤。此外,处理器51可以包括多媒体模块,以方便多媒体组件57和多个处理器之间的交互。
存储器55用于存储各种类型的数据以支持在终端设备50的操作。这些数据的示例包括用于在终端设备50上操作的任何应用程序或方法的指令,即也包括上述方法实施例中的技术方案的软件和/或执行的配置信息和程序指令,联系人数据,电话簿数据,消息,图片,视频等。存储器55可以由任 何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器,电可擦除可编程只读存储器,可擦除可编程只读存储器,可编程只读存储器,磁存储器,快闪存储器,光盘,只读存储器(英文全称:read-only memory,缩写:ROM)、硬盘、固态硬盘、磁带(英文全称:magnetic tape)、软盘(英文全称:floppy disk)。
电源组件56为终端设备50的各种组件和模块提供电力。电源组件56可以包括电源管理系统,一个或多个电源,及其他与为终端设备50生成、管理和分配电力相关联的组件。多媒体组件57包括在所述终端设备50和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(英文全称:Liquid Crystal Display,简称,LCD)和触摸面板。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件57包括一个前置摄像头和/或后置摄像头。当终端设备57处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件58用于为输出和/或输入音频信号。例如,音频组件58包括一个麦克风,当终端设备50处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器55或经由通信组件31发送。在一些实施例中,音频组件58还包括一个扬声器,用于输出音频信号。
I/O接口59为处理器51和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件30包括一个或多个传感器,用于为终端设备50提供各个方面的状态评估。例如,传感器组件30可以检测到终端设备50的打开/关闭状态,组件的相对定位,例如所述组件为终端设备50的显示器和小键盘,传感器组件30还可以检测终端设备的组件的位置改变,用户与终端设备50接 触的存在或不存在,终端设备50方位或加速/减速,以及温度变化。传感器组件30可以包括接近传感器,用来在没有任何的物理接触时检测附近物体的存在。传感器组件30还可以包括光传感器,如互补金属氧化物半导体(英文全称:Complementary Metal Oxide Semiconductor,简称:CMOS)或电荷耦合元件(英文全称:Charge-coupled Device,简称:CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件61用于终端设备50和其他设备之间有线或无线方式的通信。可以接入基于通信标准的无线网络,如WiFi,2G,3G或4G,或它们的组合。在一个示例性实施例中,通信组件61经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一种具体实现中,所述通信组件31还包括近场通信(Near Field Communication,NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(Radio Frequency IDentification,RFID)技术,红外数据协会(Infrared Data Association,IrDA)技术,超宽带(Ultra Wideband,UWB)技术,蓝牙技术和其他技术来实现。
进一步的,终端设备50可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(Programmable Logic Device,PLD)、现场可编程门阵列(Field Programmable Gate Array,FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的包括多个数据卡的终端的网络切换方法,例如该终端中包括第一数据卡和第二数据卡,则具体的用于执行:
检测是否满足网络切换触发条件;
若满足网络切换触发条件,则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;
切换到所述确定目标网络。
其中,详细的选择目标网络的过程参考方法实施例中的描述,可均通过处理器的控制其他的部件配合执行实现。
在上述终端设备的实施例中,应理解,该处理器可以是中央处理单元(英文全称:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文全称:Digital Signal Processor,简称:DSP)、专 用集成电路(英文全称:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (22)

  1. 一种终端的网络切换方法,所述终端包括第一数据卡和第二数据卡,所述第一数据卡为所述终端当前使用的数据卡,其特征在于,所述方法包括:
    检测是否满足网络切换触发条件;
    若满足网络切换触发条件,则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;
    切换到所述确定目标网络。
  2. 根据权利要求1所述的方法,其特征在于,所述切换到所述目标网络包括:
    判断所述目标网络是否属于第一数据卡;
    若属于,则通过卡内网络切换的方式换到所述目标网络;
    若不属于,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。
  3. 根据权利要求1或2所述的方法,其特征在于,所述网络信息参数包括该卡的网络的剩余流量、网络的信号强度以及网络类型优先级中的至少两个参数。
  4. 根据权利要求3所述的方法,其特征在于,所述检测是否满足网络切换触发条件,包括:若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;
    则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
    所述终端获取所述新的基站信息对应的第一网络的网络类型;
    若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;
    若所述终端确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则将所述第一网络确定为所述目标网络。
  5. 根据权利要求3所述的方法,其特征在于,所述检测是否满足网络切换触发条件,包括:若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;
    则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
    所述终端获取所述新的基站信息对应的第一网络的网络类型;
    若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的剩余流量;
    若所述终端确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
  6. 根据权利要求3所述的方法,其特征在于,所述检测是否满足网络切换触发条件,包括:若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;
    则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
    所述终端获取所述新的基站信息对应的第一网络的信号强度;
    若所述终端获取所述第一网络的信号强度与所述第一数据卡的当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量;
    若所述终端确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
  7. 根据权利要求3所述的方法,其特征在于,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;
    则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
    所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
    所述终端获取每个第二网络的剩余流量;
    所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
  8. 根据权利要求3所述的方法,其特征在于,所述检测是否满足网络 切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;
    则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
    所述终端从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;
    所述终端获取每个第二网络的剩余流量;
    所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
  9. 根据权利要求3所述的方法,其特征在于,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;
    则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
    所述终端从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;
    所述终端获取每个第二网络的信号强度;
    所述终端根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。
  10. 根据权利要求3所述的方法,其特征在于,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;
    则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
    所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
    所述终端获取每个第二网络的剩余流量;
    所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为 所述目标网络。
  11. 根据权利要求3所述的方法,其特征在于,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;
    则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
    所述终端从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;
    所述终端获取每个第二网络的剩余流量;
    所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。
  12. 根据权利要求3所述的方法,其特征在于,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;
    则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
    所述终端从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;
    所述终端获取每个第二网络的信号强度;
    所述终端根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。
  13. 根据权利要求3所述的方法,其特征在于,所述检测是否满足网络切换触发条件,包括:若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;
    则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
    所述终端获取所述新的基站信息对应的第一网络的网络类型;
    若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;
    若所述终端确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量和所述当前网络的剩余流量;
    若所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。
  14. 根据权利要求3所述的方法,其特征在于,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;
    则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
    所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
    所述终端获取每个第二网络的剩余流量和信号强度;
    所述终端将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。
  15. 根据权利要求3所述的方法,其特征在于,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;
    则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:
    所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;
    所述终端获取每个第二网络的剩余流量和信号强度;
    所述终端将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。
  16. 一种终端的网络切换方法,所述终端包括第一数据卡和第二数据卡,所述第一数据卡为所述终端当前使用的数据卡,其特征在于,所述方法包括:
    检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值;
    若所述当前网络已使用的流量超过所述使用流量阈值,则所述终端根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络;
    切换到所述目标网络。
  17. 根据权利要求16所述的方法,其特征在于,所述终端根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络,包括:
    所述终端从存储的基站信息列表中,根据各网络的网络类型优先级获取至少一个网络类型优先级不低于所述当前网络的第三网络;
    按照网络类型优先级由高到低的顺序,所述终端根据所述当前网络的信号强度和每个第三网络的信号强度以及各网络的已使用流量,获取信号强度大于预设信号强度门限值且已使用流量未超过所述使用流量阈值的网络作为所述目标网络。
  18. 根据权利要求17所述的方法,其特征在于,所述按照网络类型优先级由高到低的顺序,所述终端根据所述当前网络的信号强度和每个第三网络的信号强度以及各网络的已使用流量,获取信号强度大于预设信号强度门限值且已使用流量未超过所述使用流量阈值的网络作为所述目标网络,包括:
    所述终端根据所述当前网络的信号强度和每个第三网络的信号强度,获取至少一个信号强度大于预设信号强度门限值的第四网络;
    按照网络类型优先级由高到低的顺序,依次检测每个第四网络的已使用流量是否超过所述使用流量阈值;
    若存在一个第四网络的已使用流量未超过所述使用流量阈值,则将该第四网络作为所述目标网络。
  19. 根据权利要求16至18任一项所述的方法,其特征在于,所述切换到所述目标网络包括:
    判断所述目标网络是否属于第一数据卡;
    若属于,则通过卡内网络切换的方式换到所述目标网络;
    若不属于,则将数据业务切换至所述第二数据卡上,并接入所述目标网 络。
  20. 一种终端设备,所述终端设备包括第一数据卡和第二数据卡,所述第一数据卡为所述终端设备当前使用的数据卡,其特征在于,所述终端设备包括:
    检测模块,用于检测是否满足网络切换触发条件;
    处理模块,用于若所述检测模块检测出满足网络切换触发条件,则根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;
    所述处理模块还用于切换到所述确定目标网络。
  21. 根据权利要求20所述的终端设备,其特征在于,所述处理模块获取的所述网络信息参数包括该卡的网络的剩余流量、网络的信号强度以及网络类型优先级中的至少两个参数。
  22. 一种终端设备,所述终端设备包括第一数据卡和第二数据卡,所述第一数据卡为所述终端设备当前使用的数据卡,其特征在于,所述终端设备包括:
    检测模块,用于检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值;
    处理模块,用于若所述检测模块检测到所述当前网络已使用的流量超过所述使用流量阈值,则根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络;
    所述处理模块还用于切换到所述目标网络。
PCT/CN2016/108050 2015-11-30 2016-11-30 终端的网络切换方法及终端设备 WO2017092678A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510860288.4 2015-11-30
CN201510860288.4A CN106817731B (zh) 2015-11-30 2015-11-30 终端的网络切换方法及终端设备

Publications (1)

Publication Number Publication Date
WO2017092678A1 true WO2017092678A1 (zh) 2017-06-08

Family

ID=58796331

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/108050 WO2017092678A1 (zh) 2015-11-30 2016-11-30 终端的网络切换方法及终端设备

Country Status (2)

Country Link
CN (1) CN106817731B (zh)
WO (1) WO2017092678A1 (zh)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495939A (zh) * 2019-01-25 2019-03-19 努比亚技术有限公司 网络切换方法、装置、移动终端及计算机可读存储介质
CN111356096A (zh) * 2020-02-24 2020-06-30 维沃移动通信有限公司 一种信息发送方法及电子设备
CN111601287A (zh) * 2020-04-29 2020-08-28 维沃移动通信有限公司 网络切换方法、电子设备及存储介质
CN111885644A (zh) * 2020-06-16 2020-11-03 太原市高远时代科技有限公司 一种有线网络和无线网络自动切换的方法
CN112073999A (zh) * 2020-08-24 2020-12-11 浙江大华技术股份有限公司 通信终端、车载终端及其网络切换方法
CN112469092A (zh) * 2020-11-13 2021-03-09 深圳市广和通无线股份有限公司 多卡移动终端最佳网络选择方法、装置、计算机设备和存储介质
CN112566197A (zh) * 2020-11-25 2021-03-26 努比亚技术有限公司 一种网络切换控制方法、设备及计算机可读存储介质
CN112770368A (zh) * 2021-02-07 2021-05-07 北京小米移动软件有限公司 网络切换方法及装置、移动终端及存储介质
CN112997528A (zh) * 2018-12-29 2021-06-18 深圳市欢太科技有限公司 网络切换方法及相关设备
CN113163462A (zh) * 2021-02-23 2021-07-23 深圳市优克联新技术有限公司 蜂窝网络切换方法及装置
US20210289388A1 (en) * 2018-12-03 2021-09-16 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Network Offload Method and Relevant Device
CN113795018A (zh) * 2021-08-05 2021-12-14 维沃移动通信有限公司 Sim卡切换方法及装置
CN114666877A (zh) * 2022-02-14 2022-06-24 南京邮电大学 基于业务类型的移动边缘计算辅助基站动态休眠节能方法
CN115175272A (zh) * 2022-06-06 2022-10-11 烽火通信科技股份有限公司 一种基于家庭多wifi的无线终端连网方法和装置
CN115915105A (zh) * 2022-11-29 2023-04-04 优游宝科技(深圳)有限公司 一种基于智能算法的esim卡移动数据流量监测方法及系统
CN116056177A (zh) * 2022-08-10 2023-05-02 荣耀终端有限公司 一种网络制式切换方法及通信设备
CN117545038A (zh) * 2024-01-09 2024-02-09 广东世炬网络科技有限公司 基于终端移动位置的网络连接类型切换方法及装置

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277873B (zh) * 2017-06-16 2020-05-19 奇酷互联网络科技(深圳)有限公司 网络切换方法、装置、移动终端和计算机可读存储介质
CN107465821A (zh) * 2017-07-31 2017-12-12 北京小米移动软件有限公司 切换移动终端数据网络服务的方法和装置
CN107295594B (zh) * 2017-08-07 2019-01-11 Oppo广东移动通信有限公司 网络切换方法、装置及移动终端
CN108668328B (zh) * 2018-06-26 2021-07-06 维沃移动通信有限公司 一种网络切换方法及移动终端
CN108990077B (zh) * 2018-08-06 2022-05-03 广东电网有限责任公司 Sim卡信号检测方法、装置及计算机终端
CN108990044A (zh) * 2018-08-06 2018-12-11 广东电网有限责任公司 Sim卡通信检测方法及装置
CN109151954A (zh) * 2018-10-16 2019-01-04 奇酷互联网络科技(深圳)有限公司 移动终端及其双卡网络切换方法和存储介质
CN109548197A (zh) * 2018-11-22 2019-03-29 深圳市趣创科技有限公司 智能双卡数据流量切换方法、装置、终端及存储介质
CN109673032B (zh) * 2018-12-29 2021-04-20 深圳市天海世界卫星通信科技有限公司 网络切换方法、装置、计算机可读存储介质及系统
CN110366221B (zh) * 2019-07-09 2021-08-10 广东以诺通讯有限公司 一种双卡终端选择VoWiFi业务的方法和终端
CN110351706A (zh) * 2019-07-18 2019-10-18 深圳传音控股股份有限公司 通讯卡切换方法及移动终端
CN111800833B (zh) * 2019-08-06 2022-12-30 维沃移动通信有限公司 通信处理方法、装置、设备及介质
CN110572814A (zh) * 2019-08-14 2019-12-13 深圳市优克联新技术有限公司 多卡设备的选卡控制方法、装置、电子设备及存储介质
CN110611941A (zh) * 2019-08-23 2019-12-24 珠海格力电器股份有限公司 一种网络切换方法及装置
CN111526529B (zh) * 2020-04-30 2023-03-28 维沃移动通信有限公司 网络提示方法、装置和电子设备
CN111654852B (zh) * 2020-05-29 2022-11-08 Oppo广东移动通信有限公司 数据卡的切换方法、装置、终端及存储介质
CN113038556B (zh) * 2021-03-09 2022-12-16 中国联合网络通信集团有限公司 双卡双待终端接入网络的方法、双卡双待终端及存储介质
CN113784334A (zh) * 2021-09-14 2021-12-10 中国联合网络通信集团有限公司 卡切换方法及装置
CN114867075A (zh) * 2022-06-09 2022-08-05 西安紫光展锐科技有限公司 无线网络切换方法、装置、设备、存储介质及产品
CN115087060A (zh) * 2022-06-13 2022-09-20 多利购科技(广州)有限公司 一种智能购物车网络切换方法、系统、设备及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686912A (zh) * 2012-09-19 2014-03-26 三星电子株式会社 用于改变网络连接的电子装置和方法
CN104202773A (zh) * 2014-09-01 2014-12-10 深圳市中兴移动通信有限公司 基于网络流量的智能卡控制方法及装置
CN104754659A (zh) * 2013-12-30 2015-07-01 西安乾易企业管理咨询有限公司 一种网络智能切换的方法
CN104853340A (zh) * 2014-02-19 2015-08-19 联发科技股份有限公司 无线装置及用户识别模块选择方法
CN104902528A (zh) * 2015-04-28 2015-09-09 宇龙计算机通信科技(深圳)有限公司 一种双卡终端及其数据业务自动切换的方法和装置

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7039027B2 (en) * 2000-12-28 2006-05-02 Symbol Technologies, Inc. Automatic and seamless vertical roaming between wireless local area network (WLAN) and wireless wide area network (WWAN) while maintaining an active voice or streaming data connection: systems, methods and program products
CN101374295B (zh) * 2007-08-21 2012-11-07 华为技术有限公司 选择接入网络的方法和终端
CN102572833B (zh) * 2008-04-28 2016-08-10 华为技术有限公司 一种保持用户业务连续性的方法、系统及装置
US8175635B2 (en) * 2008-10-14 2012-05-08 Qualcomm Incorporated Methods and apparatus for system selection in a multimode wireless device
CN101668322B (zh) * 2009-09-17 2012-06-27 华为终端有限公司 终端的网络切换方法和终端设备
US8848660B2 (en) * 2011-03-22 2014-09-30 Amazon Technologies, Inc. Preferred PLMN list for faster service acquisition
US20140120859A1 (en) * 2012-10-25 2014-05-01 Broadcom Corporation Elevated Priority Call Reliability In Multiple SIM User Equipment
CN103619078A (zh) * 2013-11-22 2014-03-05 中国联合网络通信集团有限公司 一种通信处理方法及终端
CN104954564B (zh) * 2015-06-12 2018-07-27 小米科技有限责任公司 Sim卡切换方法、装置及终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686912A (zh) * 2012-09-19 2014-03-26 三星电子株式会社 用于改变网络连接的电子装置和方法
CN104754659A (zh) * 2013-12-30 2015-07-01 西安乾易企业管理咨询有限公司 一种网络智能切换的方法
CN104853340A (zh) * 2014-02-19 2015-08-19 联发科技股份有限公司 无线装置及用户识别模块选择方法
CN104202773A (zh) * 2014-09-01 2014-12-10 深圳市中兴移动通信有限公司 基于网络流量的智能卡控制方法及装置
CN104902528A (zh) * 2015-04-28 2015-09-09 宇龙计算机通信科技(深圳)有限公司 一种双卡终端及其数据业务自动切换的方法和装置

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210289388A1 (en) * 2018-12-03 2021-09-16 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Network Offload Method and Relevant Device
CN112997528B (zh) * 2018-12-29 2022-12-27 深圳市欢太科技有限公司 网络切换方法及相关设备
CN112997528A (zh) * 2018-12-29 2021-06-18 深圳市欢太科技有限公司 网络切换方法及相关设备
CN109495939A (zh) * 2019-01-25 2019-03-19 努比亚技术有限公司 网络切换方法、装置、移动终端及计算机可读存储介质
CN111356096A (zh) * 2020-02-24 2020-06-30 维沃移动通信有限公司 一种信息发送方法及电子设备
CN111601287A (zh) * 2020-04-29 2020-08-28 维沃移动通信有限公司 网络切换方法、电子设备及存储介质
CN111601287B (zh) * 2020-04-29 2023-08-08 维沃移动通信有限公司 网络切换方法、电子设备及存储介质
CN111885644A (zh) * 2020-06-16 2020-11-03 太原市高远时代科技有限公司 一种有线网络和无线网络自动切换的方法
CN112073999A (zh) * 2020-08-24 2020-12-11 浙江大华技术股份有限公司 通信终端、车载终端及其网络切换方法
CN112469092A (zh) * 2020-11-13 2021-03-09 深圳市广和通无线股份有限公司 多卡移动终端最佳网络选择方法、装置、计算机设备和存储介质
CN112566197A (zh) * 2020-11-25 2021-03-26 努比亚技术有限公司 一种网络切换控制方法、设备及计算机可读存储介质
CN112770368A (zh) * 2021-02-07 2021-05-07 北京小米移动软件有限公司 网络切换方法及装置、移动终端及存储介质
CN112770368B (zh) * 2021-02-07 2022-12-13 北京小米移动软件有限公司 网络切换方法及装置、移动终端及存储介质
CN113163462A (zh) * 2021-02-23 2021-07-23 深圳市优克联新技术有限公司 蜂窝网络切换方法及装置
CN113795018A (zh) * 2021-08-05 2021-12-14 维沃移动通信有限公司 Sim卡切换方法及装置
CN114666877A (zh) * 2022-02-14 2022-06-24 南京邮电大学 基于业务类型的移动边缘计算辅助基站动态休眠节能方法
CN114666877B (zh) * 2022-02-14 2024-04-16 南京邮电大学 基于业务类型的移动边缘计算辅助基站动态休眠节能方法
CN115175272B (zh) * 2022-06-06 2023-05-26 烽火通信科技股份有限公司 一种基于家庭多wifi的无线终端连网方法和装置
CN115175272A (zh) * 2022-06-06 2022-10-11 烽火通信科技股份有限公司 一种基于家庭多wifi的无线终端连网方法和装置
CN116056177A (zh) * 2022-08-10 2023-05-02 荣耀终端有限公司 一种网络制式切换方法及通信设备
CN116056177B (zh) * 2022-08-10 2023-11-17 荣耀终端有限公司 一种网络制式切换方法及通信设备
CN115915105A (zh) * 2022-11-29 2023-04-04 优游宝科技(深圳)有限公司 一种基于智能算法的esim卡移动数据流量监测方法及系统
CN115915105B (zh) * 2022-11-29 2023-07-04 优游宝科技(深圳)有限公司 一种基于智能算法的esim卡移动数据流量监测方法及系统
CN117545038A (zh) * 2024-01-09 2024-02-09 广东世炬网络科技有限公司 基于终端移动位置的网络连接类型切换方法及装置

Also Published As

Publication number Publication date
CN106817731B (zh) 2020-08-25
CN106817731A (zh) 2017-06-09

Similar Documents

Publication Publication Date Title
WO2017092678A1 (zh) 终端的网络切换方法及终端设备
US10314098B2 (en) Method and apparatus for connecting short-range wireless communication in terminal
US11343704B2 (en) Method and apparatus for assigning identifier, base station and user equipment
US20120178500A1 (en) Communication operating method, portable device including dual sim card and, network system supporting the same
CN111480350A (zh) 嵌入式sim卡的数据访问的方法和设备
US10237214B2 (en) Methods and devices for sharing media data between terminals
WO2020232712A1 (zh) 寻呼方法及装置
JP2016540470A (ja) 通信方法、通信装置、プログラム及び記録媒体
CN107094094B (zh) 应用程序的连网方法、装置及终端
EP3757738A1 (en) Method and device for page processing
KR102436552B1 (ko) 셀 타입 지시 방법, 장치 및 컴퓨터 판독 가능 저장 매체
WO2021035561A1 (zh) 过热处理方法及装置
US11197192B2 (en) Network connection management method, device and system
WO2021077301A1 (zh) 网络接入方法及装置、通信设备及存储介质
KR101756577B1 (ko) 액세스 제어 방법, 장치, 프로그램 및 컴퓨터 판독가능한 기록매체
US20230180101A1 (en) Communication control method and communication control apparatus
JP6901591B2 (ja) 基地局にアクセスするための方法および装置
CN106792570B (zh) 定位方法及装置
CN113170474B (zh) 资源配置方法、装置、终端设备、接入网设备及存储介质
CN112822670B (zh) 小区注册方法、装置、设备及存储介质
US10904797B2 (en) Communication method and device
KR101748384B1 (ko) 스마트 기기 액세스 제어 방법, 장치, 프로그램 및 컴퓨터 판독가능한 기록 매체
CN113891333B (zh) 网络的选择方法、选择装置、电子设备和存储介质
WO2024011528A1 (zh) 端口切换、端口切换指示方法和装置
WO2019019026A1 (zh) 传输数据的方法、装置和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16869988

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16869988

Country of ref document: EP

Kind code of ref document: A1