




















技术领域technical field
本发明涉及无线通信技术领域,尤其涉及一种终端的网络切换方法及终端设备。The present invention relates to the technical field of wireless communication, and in particular, to a network switching method of a terminal and a terminal device.
背景技术Background technique
目前,双卡或多卡终端已经广泛普及,但是由于多卡终端都是由各个芯片厂商各自提供的多卡支持,对于多卡终端没有统一的定义,多卡终端能够自动进行数据业务卡的切换方式通常为:首先由用户根据自身需求主动选择终端的某张客户识别模块(Subscriber Identity Module,简称:SIM)卡作为默认数据业务卡,之后随着数据业务的使用情况,终端系统通过监测该默认数据业务卡的流量状况,判断是否需要进行数据业务卡切换。当默认数据业务卡的流量剩余较少时,控制切换到另一个数据业务卡。At present, dual-card or multi-card terminals have been widely popularized, but since multi-card terminals are supported by multi-card provided by each chip manufacturer, there is no unified definition for multi-card terminals, and multi-card terminals can automatically switch data service cards. The method is usually as follows: first, the user actively selects a certain Subscriber Identity Module (SIM) card of the terminal as the default data service card according to his own needs, and then the terminal system monitors the default data service according to the usage of the data service. The traffic status of the data service card is used to determine whether it is necessary to switch the data service card. When the remaining traffic of the default data service card is less, the control switches to another data service card.
另外,在终端使用某一数据业务卡进行数据业务的过程中,根据网络类型优先级,在多卡终端的硬件支持的前提下,优先选择4G网络,当4G网络无信号时尝试连接3G网络,如果3G网络无信号时,尝试切换2G网络,即在用户选择了某一数据业务卡之后,根据网络情况选择合适的网络类型。In addition, when the terminal uses a data service card for data service, according to the priority of the network type, on the premise of the hardware support of the multi-card terminal, the 4G network is preferentially selected, and when the 4G network has no signal, it tries to connect to the 3G network. If the 3G network has no signal, try to switch the 2G network, that is, after the user selects a data service card, select the appropriate network type according to the network situation.
然而,上述的方式只是根据数据业务卡的剩余流量就进行卡间的网络切换,或者简单的根据网络状况进行卡内的网络切换,容易导致切换后的网络状况差或者剩余流量较少,网络切换的准确度较低。However, the above method only performs network switching between cards according to the remaining traffic of the data service card, or simply performs network switching within the card according to the network conditions, which may easily lead to poor network conditions or less remaining traffic after switching, and network switching of lower accuracy.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供的终端的网络切换方法及终端设备,用于解决根据数据业务卡的剩余流量就进行卡间的网络切换,或者简单的根据网络状况进行卡内的网络切换,容易导致切换后的网络状况差或者剩余流量较少,网络切换的准确度较低的问题。The terminal network switching method and terminal device provided by the embodiments of the present invention are used to solve the problem of performing network switching between cards according to the remaining traffic of data service cards, or simply performing network switching within cards according to network conditions, which is easy to cause after switching. The network condition is poor or the remaining traffic is less, and the accuracy of network switching is low.
本发明实施例第一方面终端的网络切换方法,所述终端包括第一数据卡和第二数据卡,所述第一数据卡为所述终端当前使用的数据卡,所述方法包括:A network switching method for a terminal according to the first aspect of the embodiments of the present invention, the terminal includes a first data card and a second data card, the first data card is the data card currently used by the terminal, and the method includes:
检测是否满足网络切换触发条件;Detect whether the network switching trigger conditions are met;
若满足网络切换触发条件,则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;If the network switching trigger condition is met, the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card;
切换到所述确定目标网络。Switch to the determined target network.
其中,每个数据的网络信息参数包括了多种网络制式下的状态,例如:2G、3G、4G以及更高级的网络制式。Among them, the network information parameter of each data includes the status under various network standards, such as: 2G, 3G, 4G and more advanced network standards.
可选的,该网络信息参数包括该卡的网络的剩余流量、网络的信号强度以及网络类型优先级中的至少两个参数,也可以包括已使用流量,或者其他根据影响用户使用的参数,对此本发明不做限制。Optionally, the network information parameter includes at least two parameters among the remaining network traffic of the card, the signal strength of the network, and the network type priority, and may also include the used traffic, or other parameters that affect user usage. This invention is not limited.
本方案提供的终端的网络切换方法,提供了双卡终端的网络切换方案,针对三个或三个以上数据卡的终端,同样也可以采用该种方式,通过综合考虑每个数据卡的每种网络的网络信息参数,寻找到网络信息参数最合理有效的目标网络,完成网络切换,有效提高网络切换的准确度。The network switching method for terminals provided by this solution provides a network switching solution for dual-card terminals. For terminals with three or more data cards, this method can also be used. By comprehensively considering each type of data card Network information parameters of the network, find the most reasonable and effective target network with network information parameters, complete network switching, and effectively improve the accuracy of network switching.
进一步地,所述切换到所述目标网络包括:Further, the switching to the target network includes:
判断所述目标网络是否属于第一数据卡;judging whether the target network belongs to the first data card;
若属于,则通过卡内网络切换的方式换到所述目标网络;If it belongs, switch to the target network by means of network switching in the card;
若不属于,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。If not, switch the data service to the second data card and access the target network.
在进行具体的网络切换的过程中,如果选择的目标网络跟当前的网路同在一个数据卡上,直接进行卡内网络制式的切换即可,如果在不同的数据卡上,则需要将业务切换到目标网的数据卡上,在进行网络制式的切换。In the process of specific network switching, if the selected target network and the current network are on the same data card, the network format switching in the card can be performed directly. If it is on a different data card, the service needs to be Switch to the data card of the target network, and switch the network standard.
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;Optionally, the detecting whether a network handover trigger condition is met includes: if the terminal detects new base station information, the terminal meets the network handover trigger condition;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:Then the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, including:
所述终端获取所述新的基站信息对应的第一网络的网络类型;acquiring, by the terminal, the network type of the first network corresponding to the new base station information;
若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;If 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, obtain the signal strength of the first network;
若所述终端确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则将所述第一网络确定为所述目标网络。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, the terminal determines the first network as the target network.
在本方案中,终端设备如果检测到新的基站信息,则触发网络切换的选择过程,需要判断该新的基站对应的第一网络的网络类型优先级以及信号强度,只有在该第一网络的优先级高于当前网络且信号强度比当前网络的信号强度时,才将该第一网络作为目标网络去实现切换,上述的方案提供了先判断网络类型优先级的方案,实际实现过程中,也可以先判断该第一网络的信号强度,后判断优先级,对此本发明不做限制,通过综合考虑网络类型优先级以及信号强度,保证切换后的网络性能优于当前网络。In this solution, if the terminal device detects new base station information, it triggers the selection process of network handover, and needs to judge the network type priority and signal strength of the first network corresponding to the new base station. When the priority is higher than the current network and the signal strength is higher than that of the current network, the first network is used as the target network to implement the handover. The above solution provides a solution to first determine the priority of the network type. The signal strength of the first network can be judged first, and then the priority is judged, which is not limited by the present invention. By comprehensively considering the network type priority and signal strength, it is ensured that the network performance after switching is better than the current network.
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;Optionally, the detecting whether a network handover trigger condition is met includes: if the terminal detects new base station information, the terminal meets the network handover trigger condition;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:Then the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, including:
所述终端获取所述新的基站信息对应的第一网络的网络类型;acquiring, by the terminal, the network type of the first network corresponding to the new base station information;
若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的剩余流量;If 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, obtain the remaining traffic of the first network;
若所述终端确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。If the terminal determines that 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, the terminal determines the first network as the target network.
本方案中,与上述类似的由终端设备检测到新的基站信息,则触发网络切换的选择过程,在选取目标网络的过程中,需要判断该新的基站对应的第一网络的网络类型优先级以及该第一网络的剩余流量或者已经使用的流量是否超限,只有在该第一网络的优先级高于当前网络且剩余流量较多时,才将该第一网络作为目标网络去实现切换,上述的方案提供了先判断网络类型优先级的方案,实际实现过程中,也可以先确定该第一网络的剩余流量,或者先确定第一网络的已使用流量,后判断优先级,对此本发明不做限制,通过综合考虑网络类型优先级以及剩余流量或已使用流量的情况,保证切换后的网络性能优于当前网络,并且不会出现流量不足产生费用,提高用户体验。In this solution, similar to the above, when new base station information is detected by the terminal device, the selection process of network handover is triggered. In the process of selecting the target network, it is necessary to judge the network type priority of the first network corresponding to the new base station. And whether the remaining traffic of the first network or the traffic that has been used exceeds the limit, only when the priority 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 achieve switching, the above-mentioned The scheme provided by the method provides a scheme of first judging the priority of the network type. In the actual implementation process, the remaining traffic of the first network can also be determined first, or the used traffic of the first network can be determined first, and then the priority can be determined. There is no restriction. By comprehensively considering the network type priority and the remaining traffic or used traffic, it is guaranteed that the network performance after the switch is better than the current network, and there will be no shortage of traffic to generate fees, improving user experience.
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;Optionally, the detecting whether a network handover trigger condition is met includes: if the terminal detects new base station information, the terminal meets the network handover trigger condition;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:Then the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, including:
所述终端获取所述新的基站信息对应的第一网络的信号强度;acquiring, by the terminal, the signal strength of the first network corresponding to the new base station information;
若所述终端获取所述第一网络的信号强度与所述第一数据卡的当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量;If the difference between the signal strength of the first network acquired by the terminal and the signal strength of the current network of the first data card is greater than a preset signal strength threshold, the terminal acquires the remaining traffic of the first network;
若所述终端确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。If the terminal determines that 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, the terminal determines the first network as the target network.
本方案中,与上述类似的依然由终端设备检测到新的基站信息,则触发网络切换的选择过程,在选取目标网络的过程中,只需要考虑新的基站信息对应的第一网络的信号强度以及该第一网络的剩余流量或者已经使用的流量是否超限,只有在该第一网络的信号强度高于当前网络且剩余流量较多时,才将该第一网络作为目标网络去实现切换,上述的方案提供了先判断信号强度的方案,实际实现过程中,也可以先确定该第一网络的剩余流量,或者先确定第一网络的已使用流量,后判断第一网络和当前网络的信号强度,对此本发明不做限制,通过综合考虑网络类型优先级以及网络的信号强度的情况,保证切换后的网络性能优于当前网络,提高用户体验和网络切换的准确度。In this solution, similar to the above, if new base station information is still detected by the terminal device, the selection process of network handover is triggered. In 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 traffic that has been used exceeds the limit, 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 switching, the above-mentioned The solution provides a solution of judging the signal strength first. In the actual implementation process, the remaining traffic of the first network can also be determined first, or the used traffic of the first network can be determined first, and then the signal strength of the first network and the current network can be determined. , the present invention does not limit this. By comprehensively considering the network type priority and the signal strength of the network, it is ensured that the network performance after handover is better than the current network, and the user experience and the accuracy of network handover are improved.
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;Optionally, the detecting whether a 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 network switching. Triggering conditions;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:Then the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, including:
所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;The terminal acquires at least one second network whose network type priority is not lower than the current network from the stored base station information list;
所述终端获取每个第二网络的剩余流量;obtaining, by the terminal, the remaining traffic of each second network;
所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。The terminal selects a second network with an optimal flow package from the at least one second network as the target network according to the remaining flow of each second network and according to preset optimal flow package determination conditions.
在本方案中,触发网络切换的功能的条件的是检测到当前网络的信号强度较差,例如:信号强度小于预设信号强度门限。为避免用户的数据业务或者通话质量受到影响,则可以根据其他的参数结合起来选择新的目标网络进行切换,具体实现中,可以从该终端设备中存储的多个基站信息中选择,这里的基站包括多种网络制式的站点,首先选择网络类型优先级高于或者跟当前网络相同的多个第二网络,然后分别检测每个第二网络的剩余流量是不是满足设定的条件,或者检测每个第二网络的已使用流量是否超过限制值,或者可以根据信号强度的排序,根据网络类型优先级以及流量使用情况选择合适的目标网络进行网络切换,可有效提供网络切换的准确度。实际实现中,可以先根据优先级来选择网络,也可以先考虑流量的使用情况,对此本发明不做限制。In this solution, the condition for triggering the function of network switching is to detect that the signal strength of the current network is poor, for example, the signal strength is less than a preset signal strength threshold. In order to prevent the user's data service or call quality from being affected, a new target network can be selected for handover according to other parameters. For sites with multiple network standards, first select multiple second networks with a higher priority or the same network type as the current network, and then check whether the remaining traffic of each second network meets the set conditions, or check whether each Whether the used traffic of the second network exceeds the limit value, or according to the sorting of signal strength, network type priority and traffic usage, the appropriate target network can be selected for network switching, which can effectively improve the accuracy of network switching. In actual implementation, the network may be selected according to the priority first, or the usage of the traffic may be considered first, which is not limited by the present invention.
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;Optionally, the detecting whether a 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 network switching. Triggering conditions;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:Then the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, including:
所述终端从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;The terminal acquires at least one second network whose signal strength is greater than the signal strength threshold from the stored base station information list;
所述终端获取每个第二网络的剩余流量;obtaining, by the terminal, the remaining traffic of each second network;
所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。The terminal selects a second network with an optimal flow package from the at least one second network as the target network according to the remaining flow of each second network and according to preset optimal flow package determination conditions.
在本方案中,与上述方案类似的,依然是由当前网络的信号强度低于门限值触发网络切换动作,终端设备从存储的基站信息列表中选择信号强度大于门限值的多个第二网络,然后根据该些第二网络的流量使用情况(包括剩余流量或者已使用流量)或者根据网络类型优先级,选择流量套餐合理,或者信号强度和网络优先级高于当前网络的目标网络进行网络切换,有效提高网络切换的准确度,保证切换后的网络性能优于当前网络。In this solution, similar to the above solution, the network switching action is still triggered by the signal strength of the current network being lower than the threshold value, and the terminal device selects a plurality of second nodes whose signal strength is greater than the threshold value from the stored base station information list. network, and then select a reasonable data package according to the traffic usage of these second networks (including remaining traffic or used traffic) or according to the network type priority, or the target network whose signal strength and network priority are higher than the current network. Handover, effectively improve the accuracy of network handover, and ensure that the network performance after handover is better than the current network.
另外,在具体实现中,上述的剩余流量的判断,或者信号强度的对比,或者网络优先级的选择执行顺序不做限制,可以根据实际情况进行选择。In addition, in the specific implementation, the judgment of the remaining traffic, the comparison of the signal strength, or the selection and execution order of the network priority are not limited, and can be selected according to the actual situation.
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;Optionally, the detecting whether a 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 network switching. Triggering conditions;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:Then the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, including:
所述终端从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;The terminal obtains, from the stored base station information list, at least one second network whose remaining traffic is greater than a preset remaining traffic threshold;
所述终端获取每个第二网络的信号强度;obtaining, by the terminal, the signal strength of each second network;
所述终端根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。The terminal selects, from the at least one second network, one second network with the best signal strength as the target network according to the signal strength of each second network.
与上述两个方案类似,在本方案中,依然由当前网络信号强度低于门限值来触发网络切换的动作,终端设备从存储的基站信息列表中,选择出剩余流量较多,即已使用的流量较少,网络流量比较合理的多个第二网络,然后根据每个第二网络的优先级或者信号强度,优先选择信号强度较强或者网络类型优先级的网络作为目标网络,完成网络切换,该切换后的网络性能优于当前网络,且在实现过程中对于先判断哪个参数,后判断哪个参数本发明不做限制。Similar to the above two schemes, in this scheme, the network handover action is still triggered by the current network signal strength lower than the threshold value. There are multiple second networks with less traffic and more reasonable network traffic. Then, according to the priority or signal strength of each second network, the network with stronger signal strength or network type priority is preferentially selected as the target network to complete network switching. , the network performance after the handover is better than the current network, and the present invention does not limit which parameter is judged first and which parameter is judged later in the implementation process.
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;Optionally, the detecting whether a network switching trigger condition is met includes: if the terminal detects that the current network residual traffic of the first data card is lower than a preset residual traffic threshold, the terminal satisfies network switching. Triggering conditions;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:Then the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, including:
所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;The terminal acquires at least one second network whose network type priority is not lower than the current network from the stored base station information list;
所述终端获取每个第二网络的剩余流量;obtaining, by the terminal, the remaining traffic of each second network;
所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。The terminal selects a second network with an optimal flow package from the at least one second network as the target network according to the remaining flow of each second network and according to preset optimal flow package determination conditions.
与上述几个方案不同的是,该方案中是由当前使用的网络制式下的剩余流量不足来触发网络切换,为避免超出流量套餐为用户带来不必要的费用,本方案终端设备从基站信息列表中获取网络优先级比当前网络高或者相同的多个第二网络,然后根据每个第二网络的信号强度或者剩余流量即流量使用情况来选择目标网络,完成网络切换,在实现过程中,也可以优先考虑剩余流量或者网络信号强度,再考虑网络类型优先级的高低,可以根据实际情况进行设置,对此不做限制。Different from the above-mentioned schemes, in this scheme, the network switching is triggered by insufficient remaining traffic under the currently used network standard. Obtain multiple second networks with higher or the same network priority than the current network in the list, and then select the target network according to the signal strength of each second network or the remaining traffic, that is, the traffic usage, and complete the network switching. During the implementation process, You can also give priority to the remaining traffic or network signal strength, and then consider the priority of the network type, which can be set according to the actual situation, and there is no restriction on this.
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;Optionally, the detecting whether a network switching trigger condition is met includes: if the terminal detects that the current network residual traffic of the first data card is lower than a preset residual traffic threshold, the terminal satisfies network switching. Triggering conditions;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:Then the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, including:
所述终端从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;The terminal acquires at least one second network whose signal strength is greater than the signal strength threshold from the stored base station information list;
所述终端获取每个第二网络的剩余流量;obtaining, by the terminal, the remaining traffic of each second network;
所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。The terminal selects a second network with an optimal flow package from the at least one second network as the target network according to the remaining flow of each second network and according to preset optimal flow package determination conditions.
与上述方案类似,该方案中同样的由剩余流量不足来触发网络切换动作,终端设备根据网络信号强度和每个网络的流量使用情况,或者根据网络信号强度和网络类型优先级,从基站信息列表中选择网络状态和剩余流量都比较好的目标网络完成网络切换,提高网络切换的准确度和用户体验。Similar to the above scheme, in this scheme, the network switching action is also triggered by insufficient remaining traffic. The terminal device selects the information from 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 network type priority. Select the target network with better network status and remaining traffic to complete network switching, improve the accuracy of network switching and user experience.
可选的,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;Optionally, the detecting whether a network switching trigger condition is met includes: if the terminal detects that the current network residual traffic of the first data card is lower than a preset residual traffic threshold, the terminal satisfies network switching. Triggering conditions;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:Then the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, including:
所述终端从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;The terminal obtains, from the stored base station information list, at least one second network whose remaining traffic is greater than a preset remaining traffic threshold;
所述终端获取每个第二网络的信号强度;obtaining, by the terminal, the signal strength of each second network;
所述终端根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。The terminal selects, from the at least one second network, one second network with the best signal strength as the target network according to the signal strength of each second network.
本方案中,也是用过剩余流量低于预设门限来作为网络切换的触发条件,然后根据基站信息列表中存储的多个网络的信息,根据剩余流量的状况和信号强度,或者可以根据剩余流量的状况和网络类型优先级的,选择出性能较好的目标网络进行网络切换,综合考虑多个参数选择性能和剩余流量合理的目标网络,提高网络切换的准确度。In this solution, the remaining traffic below the preset threshold is also used as the trigger condition for network handover, 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 According to the status and network type priority, the target network with better performance is selected for network handover, and the target network with reasonable performance and remaining traffic is selected comprehensively considering multiple parameters, so as to improve the accuracy of network handover.
在上述的多种方式中,均是从各卡的每个网络的信号强度、每个网络剩余流量以及每个网络的网络类型优先级中的任意两个参数作为选择新的目标网络的,并且对于选择出的任意两个参数,在具体实现过程中判断的顺序不限制,只要能够选择出性能优于当前网络的目标网络即可。In the above-mentioned various manners, the new target network is selected from any two parameters of the signal strength of each network of each card, the remaining traffic of each network, and the network type priority of each network, and For any two parameters selected, the order of judgment in the specific implementation process is not limited, as long as a target network with better performance than the current network can be selected.
在上述方案的基础上,下面提供几种根据各卡的每个网络的信号强度、每个网络剩余流量以及每个网络的网络类型优先级三种参数进行目标网络的选择过程的实现方式:On the basis of the above solutions, the following provides several implementation methods for the selection process of the target network according to the three parameters of the signal strength of each network of each card, the remaining traffic of each network, and the network type priority of each network:
第一种,所述检测是否满足网络切换触发条件,包括:若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;First, the detecting whether a network handover trigger condition is met includes: if the terminal detects new base station information, the terminal meets the network handover trigger condition;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:Then the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, including:
所述终端获取所述新的基站信息对应的第一网络的网络类型;acquiring, by the terminal, the network type of the first network corresponding to the new base station information;
若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;If 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, obtain the signal strength of the first network;
若所述终端确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量和所述当前网络的剩余流量;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, obtain the remaining traffic of the first network and the remaining traffic of the current network flow;
若所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。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, the first network is determined as the target network.
本方案中,在检测到新的基站信息的触发条件下,终端设备根据三个参数同时进行判断是否作为目标网络;上述提供的方案是依次判断网络类型优先级、信号强度以及流量使用情况的顺序进行的,实际上,在具体实现过程中,优先判断哪个参数并不做限制,即存在三种参数排列组合产生的六种实现方式,均可以实现上述目标网络的选择。In this scheme, under the triggering condition of detecting new base station information, the terminal device simultaneously judges whether it is a target network according to three parameters; the above-mentioned scheme is to judge the order of network type priority, signal strength and traffic usage in turn In fact, in the specific implementation process, there is no restriction on which parameter is preferentially judged, that is, there are six implementation modes generated by the arrangement and combination of three parameters, all of which can realize the selection of the above-mentioned target network.
第二种,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;Second, the detecting whether a 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 switching Triggering conditions;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:Then the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, including:
所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;The terminal acquires at least one second network whose network type priority is not lower than the current network from the stored base station information list;
所述终端获取每个第二网络的剩余流量和信号强度;obtaining, by the terminal, the remaining traffic and signal strength of each second network;
所述终端将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。The terminal uses at least one second network whose signal strength is greater than the signal strength threshold and satisfies the optimal traffic package judgment condition as the target network.
与上述方案不同的是,在检测到当前网络信号强度低于预设信号强度门限的触发条件下,终端设备根据三个参数同时进行判断是否作为目标网络;上述提供的方案是依次判断网络类型优先级、流量使用情况以及信号强度的顺序进行的,实际上,在具体实现过程中,优先判断哪个参数并不做限制,即存在三种参数排列组合产生的六种实现方式,均可以实现上述目标网络的选择。Different from the above scheme, under the trigger condition that the current network signal strength is lower than the preset signal strength threshold, the terminal device simultaneously judges whether it is a target network according to three parameters; the scheme provided above is to judge the network type in turn as priority. In fact, in the specific implementation process, which parameter is prioritized is not limited, that is, there are six implementation methods generated by the arrangement and combination of three parameters, all of which can achieve the above goals. choice of network.
第三种,所述检测是否满足网络切换触发条件,包括:若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;Third, the detecting whether a network switching triggering condition is met includes: if the terminal detects that the current network residual traffic of the first data card is lower than a preset residual traffic threshold, the terminal satisfies the network switching Triggering conditions;
则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,包括:Then the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, including:
所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;The terminal acquires at least one second network whose network type priority is not lower than the current network from the stored base station information list;
所述终端获取每个第二网络的剩余流量和信号强度;obtaining, by the terminal, the remaining traffic and signal strength of each second network;
所述终端将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。The terminal uses at least one second network whose signal strength is greater than the signal strength threshold and satisfies the optimal traffic package judgment condition as the target network.
本方案中,与上述方案不同的是,是由当前网络的剩余流量不足,触发网络切换动作,终端设备根据三个参数同时进行判断是否作为目标网络;上述提供的方案是依次判断网络类型优先级、流量使用情况以及信号强度的顺序进行的,实际上,在具体实现过程中,优先判断哪个参数并不做限制,即存在三种参数排列组合产生的六种实现方式,均可以实现上述目标网络的选择。In this scheme, the difference from the above scheme is that the network switching action is triggered by the insufficient remaining traffic of the current network, and the terminal device simultaneously judges whether it is the target network according to the three parameters; the scheme provided above is to judge the network type priority in turn , traffic usage and signal strength. In fact, in the specific implementation process, there is no restriction on which parameter is prioritized, that is, there are six implementation methods generated by the arrangement and combination of three parameters, all of which can achieve the above target network. s Choice.
上述的几种实现方式提供的网络切换方法,不管通过什么样的触发条件触发了网络切换的动作,在选取目标网络的过程中,均需要综合考虑网络的网络类型优先级、信号强度以及流量使用情况,选择出性能优于当前网络,并且网络剩余流量足够的目标网络进行切换,该目标网络可以是第一数据卡的网络制式,也可以是其他安装在该终端设备中的数据卡的网络,例如:第二数据卡,通过该种方式,有效保证切换后的网络性能更好,也不会由于数据流量产生额外的费用,有效提高网络切换的准确度,并提高用户体验。The network switching methods provided by the above implementations, no matter what trigger conditions trigger the network switching action, in the process of selecting the target network, the network type priority, signal strength and traffic usage of the network need to be comprehensively considered. In this case, select a target network with better performance than the current network and sufficient residual network traffic for switching. The target network can be the network standard of the first data card or the network of other data cards installed in the terminal device. For example, the second data card, in this way, can effectively ensure better network performance after switching, and will not generate additional costs due to data traffic, effectively improve the accuracy of network switching, and improve user experience.
本发明实施例第二方面提供一种终端的网络切换方法,所述终端包括第一数据卡和第二数据卡,所述第一数据卡为所述终端当前使用的数据卡,所述方法包括:A second aspect of the embodiments of the present invention provides a network switching method for 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 :
检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值;Detecting whether the current network traffic used by the first data card exceeds a pre-configured usage traffic threshold;
若所述当前网络已使用的流量超过所述使用流量阈值,则所述终端根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络;If the used traffic of the current network exceeds the used traffic threshold, the terminal will determine the used traffic, signal strength and network type priority of each network of the first data card and the second data card according to the used traffic of each network. The used traffic, signal strength and network type priority of each network to determine the target network to be switched;
切换到所述目标网络。Switch to the target network.
本方案提供一种具体的网络切换的实现方式,检测第一数据卡当前连接的网络已使用的流量是否超过限制,如果超过了限制,则确认需要进行网络切换,则根据每个数据卡的每种网络制式对应的已使用流量,信号强度和优先级,选择出合适的目标网络进行网络切换,综合考虑上述多种参数,提高网络切换精确度。This solution provides a specific implementation method of network switching, which detects whether the traffic used by the network currently connected to the first data card exceeds the limit, and if it exceeds the limit, it is confirmed that network switching is required. According to the used traffic, signal strength and priority corresponding to each network standard, an appropriate target network is selected for network switching, and the above parameters are comprehensively considered to improve the accuracy of network switching.
进一步的,所述终端根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络,包括:Further, the terminal is based on 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. , determine the target network to be switched, including:
所述终端从存储的基站信息列表中,根据各网络的网络类型优先级获取至少一个网络类型优先级不低于所述当前网络的第三网络;The terminal acquires 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 from the stored base station information list;
按照网络类型优先级由高到低的顺序,所述终端根据所述当前网络的信号强度和每个第三网络的信号强度以及各网络的已使用流量,获取信号强度大于预设信号强度门限值且已使用流量未超过所述使用流量阈值的网络作为所述目标网络。In order of network type priority from high to low, the terminal obtains that the signal strength is 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 value and a network whose used traffic does not exceed the used traffic threshold is the target network.
进一步的,所述按照网络类型优先级由高到低的顺序,所述终端根据所述当前网络的信号强度和每个第三网络的信号强度以及各网络的已使用流量,获取信号强度大于预设信号强度门限值且已使用流量未超过所述使用流量阈值的网络作为所述目标网络,包括:Further, according to the order of network type priority from high to low, the terminal obtains that the signal strength is greater than the predetermined 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. Set the signal strength threshold value and the network whose used traffic does not exceed the used traffic threshold as the target network, including:
所述终端根据所述当前网络的信号强度和每个第三网络的信号强度,获取至少一个信号强度大于预设信号强度门限值的第四网络;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 network type priority from high to low, sequentially detect whether the used traffic of each fourth network exceeds the used traffic threshold;
若存在一个第四网络的已使用流量未超过所述使用流量阈值,则将该第四网络作为所述目标网络。If there is a fourth network whose used traffic does not exceed the used traffic threshold, the fourth network is used as the target network.
可选的,所述切换到所述目标网络包括:Optionally, the switching to the target network includes:
判断所述目标网络是否属于第一数据卡;judging whether the target network belongs to the first data card;
若属于,则通过卡内网络切换的方式换到所述目标网络;If it belongs, switch to the target network by means of network switching in the card;
若不属于,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。If not, switch the data service to the second data card and access the target network.
本方案提供的终端的网络切换方法,当发现当前使用的网络流量超过设置的阈值时,终端设备根据上述的方式发起一次智能匹配过程,查看存储的基站信息列表中保存的优先级高于或者与当前网络相同的多个第三网络,然后检测每个第三网络的信号强度,选出信号强度高于设置的信号强度门限或者设置阈值的网络,然后查询该些网络中的每个网络的流量使用情况,查找出按照网络类型优先级由高到低的顺序,依次从信号强度最好的网络开始查找,若存在使用流量为超过门限,其他性能较好的网络则作为目标网络,否则对下一网络进行判断,直至找到性能较好,并且剩余流量较多的目标网络完成切换,有效提高网络切换的准确度,提高用户体验。In the network switching method of the terminal provided by this solution, when it is found that the currently used network traffic exceeds the set threshold, the terminal device initiates an intelligent matching process according to the above method, and checks that the priority stored in the stored base station information list is higher than or equal to Multiple third networks with the same current network, then detect the signal strength of each third network, select the network whose signal strength is higher than the set signal strength threshold or set threshold, and then query the traffic of each of these networks In the usage situation, find out the network type in descending order of priority, starting from the network with the best signal strength in turn. If there is a traffic flow exceeding the threshold, other networks with better performance will be used as the target network, otherwise, the next A network performs judgment until a target network with better performance and more remaining traffic is found to complete the handover, which effectively improves the accuracy of network handover and improves 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, the first data card is a data card currently used by the terminal device, and the terminal device includes :
检测模块,用于检测是否满足网络切换触发条件;The detection module is used to detect whether the network switching trigger condition is met;
处理模块,用于若所述检测模块检测出满足网络切换触发条件,则根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;a processing module, configured 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 if the detection module detects that the network switching trigger condition is met;
所述处理模块还用于切换到所述确定目标网络。The processing module is further configured to switch to the determined target network.
进一步地,所述处理模块包括:Further, the processing module includes:
判断子模块,用于判断所述目标网络是否属于第一数据卡;a judging submodule for judging whether the target network belongs to the first data card;
网络切换子模块,用于:Network switching submodule for:
若所述判断子模块判断出所述目标网络属于第一数据卡,则通过卡内网络切换的方式换到所述目标网络;If the judging sub-module judges that the target network belongs to the first data card, switch to the target network by means of network switching in the card;
若所述判断子模块判断出所述目标网络不属于第一数据卡,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。If the judging sub-module judges that the target network does not belong to the first data card, it switches the data service to the second data card and accesses the target network.
进一步地,所述处理模块获取的所述网络信息参数包括该卡的网络的剩余流量、网络的信号强度以及网络类型优先级中的至少两个参数。Further, the network information parameters obtained by the processing module include at least two parameters among the remaining network traffic of the card, the signal strength of the network, and the network type priority.
可选的,若所述检测模块检测到新的基站信息,则所述终端设备满足网络切换触发条件;Optionally, if the detection module detects new base station information, the terminal device satisfies a network handover trigger condition;
则所述处理模块具体用于:Then the processing module is specifically used for:
获取所述新的基站信息对应的第一网络的网络类型;acquiring the network type of the first network corresponding to the new base station information;
若判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;If it is determined 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;
若确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则将所述第一网络确定为所述目标网络。If it is determined 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, the first network is determined as the target network.
可选的,若所述检测模块检测到新的基站信息,则所述终端设备满足网络切换触发条件;Optionally, if the detection module detects new base station information, the terminal device satisfies a network handover trigger condition;
则所述处理模块具体用于:Then the processing module is specifically used for:
获取所述新的基站信息对应的第一网络的网络类型;acquiring the network type of the first network corresponding to the new base station information;
若判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的剩余流量;If it is determined 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, obtaining the remaining traffic of the first network;
若确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。If it is determined that 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, the first network is determined as the target network.
可选的,若所述检测模块检测到新的基站信息,则所述终端设备满足网络切换触发条件;Optionally, if the detection module detects new base station information, the terminal device satisfies a network handover trigger condition;
则所述处理模块具体用于:Then the processing module is specifically used for:
获取所述新的基站信息对应的第一网络的信号强度;acquiring the signal strength of the first network corresponding to the new base station information;
若获取所述第一网络的信号强度与所述第一数据卡的当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量;If the difference between the acquired signal strength of the first network and the signal strength of the current network of the first data card is greater than a preset signal strength threshold, acquire the remaining traffic of the first network;
若确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。If it is determined that 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, the first network is determined as the target network.
可选的,若所述检测模块检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备满足网络切换触发条件;Optionally, if the detection module detects that the signal strength of the current network of the first data card is lower than a preset signal strength threshold, the terminal device satisfies the network switching trigger condition;
则所述处理模块具体用于:Then the processing module is specifically used for:
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;From the stored base station information list, obtain at least one second network whose network type priority is not lower than the current network;
获取每个第二网络的剩余流量;Get the remaining traffic of each second network;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。According to the remaining traffic of each second network, and according to preset optimal traffic package determination conditions, a second network with an optimal traffic package is selected from the at least one second network as the target network.
可选的,若所述检测模块检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备满足网络切换触发条件;Optionally, if the detection module detects that the signal strength of the current network of the first data card is lower than a preset signal strength threshold, the terminal device satisfies the network switching trigger condition;
则所述处理模块用于:Then the processing module is used to:
从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;From the stored base station information list, obtain at least one second network whose signal strength is greater than the signal strength threshold;
获取每个第二网络的剩余流量;Get the remaining traffic of each second network;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。According to the remaining traffic of each second network, and according to preset optimal traffic package determination conditions, a second network with an optimal traffic package is selected from the at least one second network as the target network.
可选的,若所述检测模块检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备满足网络切换触发条件;Optionally, if the detection module detects that the signal strength of the current network of the first data card is lower than a preset signal strength threshold, the terminal device satisfies the network switching trigger condition;
则所述处理模块具体用于:Then the processing module is specifically used for:
从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;From the stored base station information list, obtain at least one second network whose residual traffic is greater than a preset residual traffic threshold;
获取每个第二网络的信号强度;Get the signal strength of each second network;
根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。According to the signal strength of each second network, one second network with the best signal strength is selected from the at least one second network as the target network.
可选的,若所述检测模块检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备满足网络切换触发条件;Optionally, if the detection module detects that the current network residual traffic of the first data card is lower than a preset residual traffic threshold, the terminal device satisfies the network switching trigger condition;
则所述处理模块具体用于:Then the processing module is specifically used for:
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;From the stored base station information list, obtain at least one second network whose network type priority is not lower than the current network;
获取每个第二网络的剩余流量;Get the remaining traffic of each second network;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。According to the remaining traffic of each second network, and according to preset optimal traffic package determination conditions, a second network with an optimal traffic package is selected from the at least one second network as the target network.
可选的,若所述检测模块检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备满足网络切换触发条件;Optionally, if the detection module detects that the current network residual traffic of the first data card is lower than a preset residual traffic threshold, the terminal device satisfies the network switching trigger condition;
则所述处理模块具体用于:Then the processing module is specifically used for:
从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;From the stored base station information list, obtain at least one second network whose signal strength is greater than the signal strength threshold;
获取每个第二网络的剩余流量;Get the remaining traffic of each second network;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。According to the remaining traffic of each second network, and according to preset optimal traffic package determination conditions, a second network with an optimal traffic package is selected from the at least one second network as the target network.
可选的,若所述检测模块检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备满足网络切换触发条件;Optionally, if the detection module detects that the current network residual traffic of the first data card is lower than a preset residual traffic threshold, the terminal device satisfies the network switching trigger condition;
则所述处理模块具体用于:Then the processing module is specifically used for:
从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;From the stored base station information list, obtain at least one second network whose residual traffic is greater than a preset residual traffic threshold;
获取每个第二网络的信号强度;Get the signal strength of each second network;
根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。According to the signal strength of each second network, one second network with the best signal strength is selected from the at least one second network as the target network.
可选的,若所述检测模块检测到新的基站信息,则所述终端设备满足网络切换触发条件;Optionally, if the detection module detects new base station information, the terminal device satisfies a network handover trigger condition;
则所述处理模块具体用于:Then the processing module is specifically used for:
获取所述新的基站信息对应的第一网络的网络类型;acquiring the network type of the first network corresponding to the new base station information;
若判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;If it is determined 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;
若确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量和所述当前网络的剩余流量;If it is determined 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 remaining traffic of the current network;
若所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。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, the first network is determined as the target network.
可选的,若所述检测模块检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备满足网络切换触发条件;Optionally, if the detection module detects that the signal strength of the current network of the first data card is lower than a preset signal strength threshold, the terminal device satisfies the network switching trigger condition;
则所述处理模块具体用于:Then the processing module is specifically used for:
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;From the stored base station information list, obtain at least one second network whose network type priority is not lower than the current network;
获取每个第二网络的剩余流量和信号强度;Obtain the remaining traffic and signal strength of each second network;
将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。A second network whose signal strength is greater than the signal strength threshold in at least one second network and satisfies the judgment condition of the optimal data package is used as the target network.
可选的,若所述检测模块检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备满足网络切换触发条件;Optionally, if the detection module detects that the current network residual traffic of the first data card is lower than a preset residual traffic threshold, the terminal device satisfies the network switching trigger condition;
则所述处理模块具体用于:Then the processing module is specifically used for:
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;From the stored base station information list, obtain at least one second network whose network type priority is not lower than the current network;
获取每个第二网络的剩余流量和信号强度;Obtain the remaining traffic and signal strength of each second network;
将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。A second network whose signal strength is greater than the signal strength threshold in at least one second network and satisfies the judgment condition of the optimal data package 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, the first data card is a data card currently used by the terminal device, and the terminal device includes :
检测模块,用于检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值;a detection module, configured to detect whether the traffic used by the current network of the first data card exceeds a preconfigured usage traffic threshold;
处理模块,用于若所述检测模块检测到所述当前网络已使用的流量超过所述使用流量阈值,则根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络;A processing module, configured to, if the detection module detects that the traffic used by the current network exceeds the used traffic threshold, then 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;
所述处理模块还用于切换到所述目标网络。The processing module is further configured to switch to the target network.
进一步地,所述处理模块具体用于:Further, the processing module is specifically used for:
从存储的基站信息列表中,根据各网络的网络类型优先级获取至少一个网络类型优先级不低于所述当前网络的第三网络;From the stored base station information list, obtain 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;
按照网络类型优先级由高到低的顺序,根据所述当前网络的信号强度和每个第三网络的信号强度以及各网络的已使用流量,获取信号强度大于预设信号强度门限值且已使用流量未超过所述使用流量阈值的网络作为所述目标网络。According to the order of network type priority from high to low, according to the signal strength of the current network, the signal strength of each third network, and the used traffic of each network, it is obtained that the signal strength is greater than the preset signal strength threshold and has been A network whose traffic does not exceed the used traffic threshold is used as the target network.
进一步地,所述处理模块具体用于:Further, the processing module is specifically used for:
根据所述当前网络的信号强度和每个第三网络的信号强度,获取至少一个信号强度大于预设信号强度门限值的第四网络;According to the signal strength of the current network and the signal strength of each third network, acquiring at least one fourth network whose signal strength is greater than a preset signal strength threshold;
按照网络类型优先级由高到低的顺序,依次检测每个第四网络的已使用流量是否超过所述使用流量阈值;According to the order of network type priority from high to low, sequentially detect whether the used traffic of each fourth network exceeds the used traffic threshold;
若存在一个第四网络的已使用流量未超过所述使用流量阈值,则将该第四网络作为所述目标网络。If there is a fourth network whose used traffic does not exceed the used traffic threshold, the fourth network is used as the target network.
可选的,所述处理模块包括:Optionally, the processing module includes:
判断子模块,用于判断所述目标网络是否属于第一数据卡;a judging submodule for judging whether the target network belongs to the first data card;
处理子模块,用于:Handle submodules for:
若所述判断子模块判断出所述目标网络属于第一数据卡,则通过卡内网络切换的方式换到所述目标网络;If the judging sub-module judges that the target network belongs to the first data card, switch to the target network by means of network switching in the card;
若所述判断子模块判断出所述目标网络不属于第一数据卡,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。If the judging sub-module judges that the target network does not belong to the first data card, it switches the data service to the second data card and accesses the target network.
本发明实施例第五方面提供一种终端设备,所述终端设备包括第一数据卡和第二数据卡,所述第一数据卡为所述终端设备当前使用的数据卡,所述终端设备还包括:用于控制可执行指令执行的处理器和用于存储处理器可执行指令的存储器;A fifth aspect of the embodiments of the present invention provides a terminal device, the terminal device includes a first data card and a second data card, the first data card is a data card currently used by the terminal device, and the terminal device further Including: a processor for controlling the execution of executable instructions and a memory for storing the executable instructions of the processor;
所述处理器用于:The processor is used to:
检测是否满足网络切换触发条件;Detect whether the network switching trigger conditions are met;
若满足网络切换触发条件,则根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;If the network switching trigger condition is met, the target network to be switched is determined according to the network information parameters of the first data card and the network information parameters of the second data card;
切换到所述确定目标网络。Switch to the determined target network.
本发明实施例第六方面提供一种终端设备,所述终端设备包括第一数据卡和第二数据卡,所述第一数据卡为所述终端设备当前使用的数据卡,所述终端设备还包括:用于控制可执行指令执行的处理器和用于存储处理器可执行指令的存储器;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, the first data card is a data card currently used by the terminal device, and the terminal device further Including: a processor for controlling the execution of executable instructions and a memory for storing the executable instructions of the processor;
所述处理器用于:The processor is used to:
检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值;Detecting whether the current network traffic used by the first data card exceeds a pre-configured usage traffic threshold;
若检测到所述当前网络已使用的流量超过所述使用流量阈值,则根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络;If it is detected that the used traffic of the current network exceeds the used traffic threshold value, the used traffic, signal strength and network type priority of each network of the first data card and each network of the second data card The used traffic, signal strength and network type priority of the network determine the target network that needs to be switched;
切换到所述目标网络。Switch to the target network.
本发明实施例提供的终端的网络切换方法及终端设备,终端设备在检测到满足网络切换触发条件之后,兼顾网络类型优先级,信号强度及网络套餐流量,选出最适合当前实际场景的数据业务的目标网络,并智能切换,避免出现流量超限断网,无信号导致无法上网或信号差导致网络延迟高的问题。基础双卡的智能切换方案,充分利用双卡双网络手机的优势,随时在两张卡中智能切换,无需用户干预,最大限度提升用户的使用体验。According to the network switching method and terminal device of a terminal provided by the embodiments of the present invention, after detecting that the network switching trigger condition is satisfied, the terminal device takes into account network type priority, signal strength and network package traffic, and selects the data service that is most suitable for the current actual scene The target network, and intelligently switch to avoid the problem of excessive traffic and disconnection, no signal leading to inability to access the Internet, or poor signal leading to high network latency. The basic dual-card smart switching solution makes full use of the advantages of dual-card dual-network mobile phones, and intelligently switches between the two cards at any time without user intervention, maximizing the user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本发明实施例提供的一种网络系统示意图;1 is a schematic diagram of a network system according to an embodiment of the present invention;
图2为本发明实施例提供的终端设备的网络信息流程的示意图;2 is a schematic diagram of a network information flow of a terminal device according to an embodiment of the present invention;
图3为本发明实施例提供的终端的网络切换方法实施例一的流程图;FIG. 3 is a flowchart of Embodiment 1 of a network switching method for a terminal according to an embodiment of the present invention;
图4为本发明实施例提供的终端的网络切换方法实施例二的流程图;4 is a flowchart of Embodiment 2 of a method for network switching of a terminal according to an embodiment of the present invention;
图5为本发明实施例提供的终端的网络切换方法实施例三的流程图;5 is a flowchart of Embodiment 3 of a method for network switching of a terminal according to an embodiment of the present invention;
图6为本发明实施例提供的终端的网络切换方法实施例四的流程图;FIG. 6 is a flowchart of Embodiment 4 of a method for network switching of a terminal according to an embodiment of the present invention;
图7为本发明实施例提供的终端的网络切换方法实施例五的流程图;FIG. 7 is a flowchart of Embodiment 5 of a network switching method for a terminal according to an embodiment of the present invention;
图8为本发明实施例提供的终端的网络切换方法实施例六的流程图;FIG. 8 is a flowchart of Embodiment 6 of a network switching method for a terminal according to an embodiment of the present invention;
图9为本发明实施例提供的终端的网络切换方法实施例七的流程图;FIG. 9 is a flowchart of Embodiment 7 of a method for network switching of a terminal according to an embodiment of the present invention;
图10为本发明实施例提供的终端的网络切换方法实施例八的流程图;FIG. 10 is a flowchart of Embodiment 8 of a network switching method for a terminal according to an embodiment of the present invention;
图11为本发明实施例提供的终端设备实施例一的结构示意图;FIG. 11 is a schematic structural diagram of Embodiment 1 of a terminal device according to an embodiment of the present invention;
图12为本发明实施例提供的终端设备实施例二的结构示意图;FIG. 12 is a schematic structural diagram of Embodiment 2 of a terminal device according to an embodiment of the present invention;
图13为本发明实施例提供的终端设备实施例三的结构示意图;FIG. 13 is a schematic structural diagram of Embodiment 3 of a terminal device according to an embodiment of the present invention;
图14为本发明实施例提供的终端设备实施例四的结构示意图;FIG. 14 is a schematic structural diagram of Embodiment 4 of a terminal device according to an embodiment of the present invention;
图15为本发明实施例提供的终端的网络切换方法的使用架构的示意图;15 is a schematic diagram of a usage architecture of a method for network switching of a terminal according to an embodiment of the present invention;
图16为本发明实施例提供的终端的网络切换方法的一具体实现流程图;16 is a specific implementation flowchart of a method for network switching of a terminal provided by an embodiment of the present invention;
图17为本发明实施例提供的终端的网络切换方法的另一具体实现流程图;FIG. 17 is a flowchart of another specific implementation of a method for network switching of a terminal according to an embodiment of the present invention;
图18为本发明实施例提供的终端的网络切换方法的又一具体实现流程图;FIG. 18 is a flowchart of another specific implementation of a method for network switching of a terminal provided by an embodiment of the present invention;
图19为本发明实施例提供的终端设备一实例的结构示意图;19 is a schematic structural diagram of an example of a terminal device provided by an embodiment of the present invention;
图20为本发明实施例提供的终端设备又一实例的结构示意图;20 is a schematic structural diagram of another example of a terminal device provided by an embodiment of the present invention;
图21为本发明终端设备的一种具体实现的结构示意图。FIG. 21 is a schematic structural diagram of a specific implementation of a terminal device of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
图1为本发明实施例提供的一种网络系统示意图,参照图1,该网络系统中包括:基站1、基站2、基站3、终端(也可以称为终端设备);FIG. 1 is a schematic diagram of a network system according to an embodiment of the present invention. Referring to FIG. 1 , the network system includes: a base station 1, a base station 2, a base station 3, and a terminal (also referred to as a terminal device);
其中,终端可以为智能手机、平板电脑等可以通过数据卡连接网络进行数据业务的设备。The terminal may be a device such as a smart phone, a tablet computer, etc., which can be connected to a network through a data card to perform data services.
终端设置有两个或者两个以上的数据卡(也可以称为数据业务卡),数据业务卡1和数据业务卡2;数据业务卡1支持运营商1提供的4G网络、3G网络和2G网络;数据业务卡2支持运营商2提供的4G网络、3G网络和2G网络。The terminal is provided with two or more data cards (also called data service cards), data service card 1 and data service card 2; data service card 1 supports 4G network, 3G network and 2G network provided by operator 1 ; Data service card 2 supports 4G network, 3G network and 2G network provided by operator 2.
基站1能够提供运营商1的网络服务;基站2能够提供运营商2的网络服务;基站3能够提供运营商1和运营商2的网络服务。Base station 1 can provide network services of operator 1; base station 2 can provide network services of operator 2; base station 3 can provide network services of operators 1 and 2.
进一步地,对于4G网络、3G网络和2G网络,可以预先设置网络类型优先级,例如,2G网络的带宽低于3G网络的带宽;3G网络的带宽低于4G网络的带宽,因此,默认网络的网络类型优先级为:4G网络>3G网络>2G网络。网络的网络类型优先级可以预先通过基站通知终端,也可以预置在该终端内;可选的,也可以有用户自定义不同网络的优先级。Further, for the 4G network, 3G network and 2G network, the network type priority can be preset, for example, the bandwidth of the 2G network is lower than that of the 3G network; the bandwidth of the 3G network is lower than the bandwidth of the 4G network, therefore, the default network The network type priority is: 4G network>3G network>2G network. The network type priority of the network can be notified to the terminal through the base station in advance, or can be preset in the terminal; optionally, the priority of different networks can also be customized by the user.
参照图1,该终端能够接收到基站1、基站2和基站3发射的信号,终端基于接收到的信号,生成基站信息列表,该列表包含所述至少一个可使用的网络的信号强度值、所述至少一个可使用的网络的网络类型优先级、所述当前服务网络的信号强度、所述当前服务网络的网络类型优先级。Referring to FIG. 1 , the terminal can receive signals transmitted by base station 1, base station 2 and base station 3, and the terminal generates a base station information list based on the received signals, the list including the signal strength value of the at least one available network, all The network type priority of the at least one available network, the signal strength of the current serving network, and the network type priority of the current serving network.
其中,该基站信息列表中存储了每个可以连接到的基站的信息,可选的,该基站的信息可以包括移动电话国家代码(Mobile Country Code,简称:MCC)\移动设备网络代码(Mobile Network Code,简称:MNC)\位置区编码(location area code,简称:LAC);以及基站标识,可以根据该些信息获取当该基站对应的网络信号强度,以及网络类型等。The base station information list stores information about each base station that can be connected to. Optionally, the base station information may include a mobile phone country code (Mobile Country Code, MCC for short) \ mobile device network code (Mobile Network Code Code, abbreviation: MNC)\location area code (location area code, abbreviation: LAC); and base station identifier, the network signal strength and network type corresponding to the base station can be obtained according to the information.
假设,终端使用数据业务卡1,并已接入基站1提供的3G网络,则该3G网络对应基站信息列表中的当前服务网络,而终端接收到基站2提供的网络和和基站3提供的网络,对应基站信息列表中的所述至少一个可使用的网络;Assuming that the terminal uses the data service card 1 and has access to the 3G network provided by the base station 1, 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. , corresponding to the at least one available network in the base station information list;
进一步的,终端还可以通过终端的流量管理模块,获取数据业务卡1的流量使用情况和数据业务卡2的流量使用情况。例如,获取数据业务卡1对应运营商的网络剩余可用流量和数据业务卡2对应运营商的网络剩余可用流量;基于上文当前服务网络和可使用的网络的划分方式,基站信息列表还可以包括:所述至少一个可使用的网络对应运营商的网络剩余流量、所述当前服务网络对应运营商的网络剩余流量,该处的剩余流量指的是剩余的可用的流量,即在用户已经支付的流量包中还未使用的流量。Further, the terminal can also 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. For example, obtain the remaining available network traffic of the operator corresponding to the data service card 1 and the remaining available network traffic of the operator corresponding to the data service card 2; : the remaining network traffic of the operator corresponding to the at least one usable network, and the remaining network traffic of the operator corresponding to the current serving network, where the remaining traffic refers to the remaining available traffic, that is, after the user has paid Traffic that has not been used in a traffic packet.
由于终端的移动性和网络资源的变化,终端需要对上述基站信息列表进行维护和更新,并基于基站信息列表包含的参数判断当前服务网络是否为最优网络,若存在能够为用户提供更高质量网络服务或者更满足用户资费需求的可使用的网络,则终端进行网络切换。Due to the mobility of the terminal and changes in network resources, the terminal needs to maintain and update the above-mentioned base station information list, and judge whether the current serving network is the optimal network based on the parameters contained in the base station information list. If a network service is available or an available network that better meets the user's tariff requirements, the terminal performs network switching.
对于终端如何基于基站信息列表包含的参数判断当前服务网络是否为最优网络,存在多种可行的实现方式,下面对几种可行的实现方式进行说明:There are many feasible implementations for how the terminal determines whether the current serving network is the optimal network based on the parameters included in the base station information list. The following describes several feasible implementations:
方式一:终端监听网络变化,若接收到新的基站发送的信号,则更新上文基站信息列表;例如,终端接收到基站3发送的信号,则更新基站信息列表,更新后的基站信息列表包含:基站3提供的可使用的网络的信号强度值、基站3提供的可使用的网络的网络类型优先级、基站3提供的可使用的网络对应运营商的网络剩余可用流量;基站2提供的可使用的网络的信号强度值、基站2提供的可使用的网络的网络类型优先级、基站2提供的可使用的网络对应运营商的网络剩余可用流量;基站1提供的当前服务网络的信号强度值、基站1提供的当前服务网络的网络类型优先级、基站1提供的当前服务网络对应运营商的网络剩余可用流量。Mode 1: The terminal monitors network changes, and if it receives a signal sent by a new base station, it updates the base station information list above; for example, when the terminal receives a signal sent by base station 3, it updates the base station information list, and the updated base station information list contains : the signal strength value of the usable network provided by the base station 3, the network type priority of the usable network provided by the base station 3, the remaining available network traffic of the operator corresponding to the usable network provided by the base station 3; the usable network provided by the base station 2 The signal strength value of the network used, the network type priority of the available network provided by the base station 2, the remaining available network traffic of the operator corresponding to the available network provided by the base station 2; the signal strength value of the current service network provided by the base station 1 , the network type priority of the current service network provided by the base station 1, and the remaining available network traffic of the operator corresponding to the current service network provided by the base station 1.
进一步的,终端将基站3提供的可使用的网络的网络类型优先级与基站1提供的当前服务网络的网络类型优先级进行比较;结果为:基站3提供的运营商2的4G网络的网络类型优先级大于基站1提供的运营商1的3G网络的网络类型;则终端比较运营商2的网络剩余可用流量与运营商1的网络剩余可用流量。若运营商2的网络剩余可用流量大于或等于运营商1的网络剩余可用流量,则终端将网络切换至基站3提供的运营商2的4G网络。需要说明的,在切换至基站3提供的运营商2的4G网络时,终端首先将当前服务的数据业务卡切换从数据业务卡1至数据业务卡2,再进行网络的切换。Further, 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 service 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 operator 1 provided by the base station 1; then 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 network traffic of operator 2 is greater than or equal to the remaining available network traffic of operator 1, the terminal switches the network to the 4G network of operator 2 provided by base station 3. It should be noted that when switching to the 4G network of operator 2 provided by base station 3, the terminal first switches the currently serving data service card from data service card 1 to data service card 2, and then performs network switching.
方式二:终端监听信号强度变化,若基站1提供的当前服务网络的信号强度值低于第一预置信号强度阈值,则终端在基站信息列表中查询网络类型优先级等于或大于基站1提供的当前服务网络的网络类型优先级的网络,例如,基站2提供的4G网络的网络类型优先级高于基站1提供的3G网络。进一步的,终端比较基站2提供的4G网络的剩余可用流量与基站1提供的3G网络的剩余可用流量,若基站2提供的4G网络的剩余可用流量大于或等于基站1提供的3G网络的剩余可用流量,则终端将网络切换至基站2提供的4G网络。需要说明的,在切换至基站3提供的运营商2的4G网络时,终端首先将当前服务的数据业务卡切换从数据业务卡1至数据业务卡2,再进行网络的切换。Method 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 will query the base station information list. The priority of the network type is equal to or greater than that provided by the base station 1. The network with the network type priority of the current serving network, for example, the network type priority of the 4G network provided by the base station 2 is higher than that of 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, if the remaining available traffic of the 4G network provided by the base station 2 is greater than or equal to the remaining available traffic of the 3G network provided by the base station 1 traffic, 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 operator 2 provided by base station 3, the terminal first switches the currently serving data service card from data service card 1 to data service card 2, and then performs network switching.
方式三:终端监听当前服务网络对应运营商的网络剩余可用流量,若该网络剩余可用流量低于第一预置流量阈值,则终端在基站信息列表中查询网络类型优先级等于或大于基站1提供的当前服务网络的网络类型优先级的网络,例如,基站2提供的4G网络的网络类型优先级高于基站1提供的3G网络。进一步的,终端比较基站2提供的4G网络的信号强度值与基站1提供的3G网络的信号强度值,若基站2提供的4G网络的信号强度值大于或等于基站1提供的3G网络的信号强度值,则终端将网络切换至基站2提供的4G网络。需要说明的,在切换至基站3提供的运营商2的4G网络时,终端首先将当前服务的数据业务卡切换从数据业务卡1至数据业务卡2,再进行网络的切换。Method 3: The terminal monitors the remaining available network traffic of the operator corresponding to the current service network. If the remaining available network traffic is lower than the first preset traffic threshold, the terminal searches the base station information list for a network type priority equal to or greater than that provided by base station 1. The network type priority of the current serving network, for example, the network type priority of the 4G network provided by the base station 2 is higher than that of the 3G network provided by the base station 1. Further, 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. 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 value, 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 operator 2 provided by base station 3, the terminal first switches the currently serving data service card from data service card 1 to data service card 2, and then performs network switching.
根据上述三种可行的实现方式可知,本发明实施例的方案通过综合考虑网络的网络类型优先级、网络的信号强度和网络对应运营商的流量信息,来实现多卡终端的网络切换。从而更加有效的将终端切换至能够为用户提供更高质量网络服务或者更满足用户资费需求的可使用的网络,从而提供多卡终端对网络资源的利用率。According to the above three feasible implementation manners, the solution of the embodiment of the present invention realizes network switching of multi-card terminals 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. In this way, the terminal can be switched to an available network that can provide users with higher quality network services or better meet the user's tariff requirements, thereby improving the utilization rate of network resources by multi-card terminals.
图2为本发明实施例提供的终端设备的网络信息流程的示意图,如图2所示,该终端设备以手机为例,图中示出了一个典型的手机网络信息流程的示意图,手机网络硬件通过搜索附近基站信息,并将信息通过无线接口(Radio Interface Layer,简称:RIL)层返回到Androd Framework框架层,以储存基站及信号信息。用户在设置界面设置默认数据业务卡后,Framework层中的MsimTelephony(即图中的SIM框架接口)模块会匹配对应基站信息,然后选则合适的数据网络。其中RIL是系统平台手机与各厂商硬件的抽象层,MSimTelephony是各个芯片厂商对双卡手机提供的Android Framework框架层接口。FIG. 2 is a schematic diagram of a network information flow of a terminal device provided by an embodiment of the present invention. As shown in FIG. 2 , the terminal device takes a mobile phone as an example, and the figure shows a schematic diagram of a typical mobile phone network information flow. The mobile phone network hardware By searching for information about nearby base stations, and returning the information to the Androd Framework layer through the Radio Interface Layer (RIL) layer, the base station and signal information are stored. After the user sets the default data service card on the setting interface, the MsimTelephony (ie the SIM framework interface in the figure) module in the Framework layer will match the corresponding base station information, and then select the appropriate data network. Among them, RIL is the abstraction layer between the system platform mobile phone and the hardware of each manufacturer, and MSimTelephony is the Android Framework framework layer interface provided by each chip manufacturer for dual-card mobile phones.
图3为本发明实施例提供的终端的网络切换方法实施例一的流程图,如图3所示,基于上述图1和图2所示的网络环境,该方法的执行主体为终端,所述终端包括第一数据卡和第二数据卡,所述第一数据卡为所述终端当前使用的数据卡,下文中提及的当前网络为当下进行数据业务的网络,具体的,该终端的网络切换方法的步骤为:FIG. 3 is a flowchart of Embodiment 1 of a network switching method for a terminal according to an embodiment of the present invention. As shown in FIG. 3 , based on the network environment shown in FIG. 1 and FIG. The terminal includes a first data card and a second data card, the first data card is the data card currently used by the terminal, and the current network mentioned below is the network currently performing data services, specifically, the network of the terminal The steps to switch methods are:
S101:检测是否满足网络切换触发条件。S101: Detect whether a network handover trigger condition is satisfied.
在本实施例中,该网络切换触发条件至少包括以下几种:In this embodiment, the network handover triggering conditions include at least the following:
第一种,终端检测到新的基站信息;First, the terminal detects new base station information;
第二种,终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限;Second, the terminal detects that the signal strength of the current network of the first data card is lower than a preset signal strength threshold;
第三种,终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限。或者终端检测到所述第一数据卡的当前网络的已使用流量超出了预设的使用流量门限。In the third type, the terminal detects that the current network residual traffic of the first data card is lower than a preset residual traffic threshold. Or the terminal detects that the used traffic of the current network of the first data card exceeds a preset used traffic threshold.
另外,还可以根据具体的应用情况设置该终端设备的网络切换条件,并与限于上述的方式。In addition, the network switching condition of the terminal device can also be set according to the specific application situation, and is limited to the above-mentioned manner.
S102:若满足网络切换触发条件,则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络。S102: If the network switching trigger condition is satisfied, the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card.
在本实施例中,该终端设备中包括两个数据,则分别根据该两个数据卡的网络信息参数进行判断,若该终端设备中包括单个,或者三个或者三个以上的数据卡,则需要根据每个数据卡的网络信息参数选择合适的目标网络。In this embodiment, if the terminal device includes two data cards, the judgment is made according to the network information parameters of the two data cards respectively. If the terminal device includes a single data card, or three or more data cards, then The appropriate target network needs to be selected according to the network information parameters of each data card.
其中,每个数据卡的网络信息参数包括该卡的网络的剩余流量、网络的信号强度以及网络类型优先级中的至少两个参数。Wherein, the network information parameters of each data card include at least two parameters among the remaining traffic of the network of the card, the signal strength of the network, and the priority of the network type.
S103:切换到所述确定目标网络。S103: Switch to the determined target network.
在本实施例中,终端设备控制将数据业务进行切换,由当前网络切换至目标网络,具体实现中需要判断目标网络是否与当前网络属于同一个数据卡,例如:判断所述目标网络是否属于第一数据卡(当前网络属于第一数据卡);In this embodiment, the terminal device controls the switching of data services from the current network to the target network. In the specific implementation, it is necessary to determine whether the target network and the current network belong to the same data card, for example: to determine whether the target network belongs to the first network. a data card (the current network belongs to the first data card);
若判断出该目标网络属于第一数据卡,则通过卡内网络切换的方式换到所述目标网络;If it is determined that the target network belongs to the first data card, switching to the target network by means of network switching in the card;
若判断出该目标网络不属于第一数据卡,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。If it is determined that the target network does not belong to the first data card, the data service is switched to the second data card, and the target network is accessed.
本实施例提供的终端的网络切换方法,提供了双卡终端的网络切换方案,针对三个或三个以上数据卡的终端,同样也可以采用该种方式,通过综合考虑每个数据卡的每种网络的网络信息参数,寻找到网络信息参数最合理有效的目标网络,完成网络切换,有效提高网络切换的准确度。The network switching method for terminals provided in this embodiment provides a network switching solution for dual-card terminals. For terminals with three or more data cards, this method can also be used. The network information parameters of various networks are used to find the most reasonable and effective target network with network information parameters, complete network handover, and effectively improve the accuracy of network handover.
图4为本发明实施例提供的终端的网络切换方法实施例二的流程图,如图4所示,在上述实施例一的基础上,以终端检测到新的基站信息为触发条件,本实施例提供一种具体的实现方式,即若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件;则上述实施例一中步骤S102中的所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,具体实现步骤包括:FIG. 4 is a flowchart of Embodiment 2 of a method for network handover of a terminal according to an embodiment of the present invention. As shown in FIG. 4 , on the basis of Embodiment 1 above, the terminal detects new base station information as a trigger condition. The example provides a specific implementation manner, that is, if the terminal detects new base station information, the terminal satisfies the network handover trigger condition; then the terminal in step S102 in the first embodiment above The network information parameters and the network information parameters of the second data card determine the target network to be switched, and the specific implementation steps include:
S201:所述终端获取所述新的基站信息对应的第一网络的网络类型。S201: The terminal acquires the network type of the first network corresponding to the new base station information.
S202:若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度。S202: If 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, obtain the signal strength of the first network.
在本方案中,终端设备即所述终端检测到新的基站信息之后,判断该基站对应的第一网络的网络类型优先级是不是高于当前网络,或者是不是与该当前网络的优先级相同,如果是,则继续检测该第一网络的信号强度,否则放弃本次网络切换,待下次满足网络切换条件时,继续进行匹配。In this solution, after the terminal device, that is, the terminal, detects the new base station information, it determines whether the network type priority of the first network corresponding to the base station is higher than that of the current network, or whether it is the same as the priority of the current network. , if yes, continue to detect the signal strength of the first network, otherwise give up this network handover, and continue to perform matching when the network handover conditions are met next time.
S203:若所述终端确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则将所述第一网络确定为所述目标网络。S203: 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, determine the first network as the target network.
在本步骤中,判断第一网络的信号强度是不是比当前网络的信号强度高,判断方式可以直接对比信号强度值,也可以按照上述的方式判断其间的差值是不是大于预设的信号强度阈值,只有在判断该第一网络的优先级不低于当前网络,并且信号强度比当前网络高的时候,才将该第一网络作为目标网络,实现网络切换。In this step, it is judged whether the signal strength of the first network is higher than the signal strength of the current network. The judgment method can be directly compared with the signal strength value, or it can be judged whether the difference between them is greater than the preset signal strength according to the above method. Threshold, only when it is judged that the priority of the first network is not lower than the current network and the signal strength is higher than the current network, the first network is used as the target network to implement network switching.
本方案具体实现中,也可以先判断第一网络的信号强度是不是高于当前网络,后判断两个网络的优先级的高低,本发明对于参数的对比和判断顺序不做限制。In the specific implementation of this solution, it is also possible to first judge whether the signal strength of the first network is higher than the current network, and then judge the priority of the two networks. The present invention does not limit the comparison of parameters and the judgment order.
本方案中新的基站信息可以是一个或者多个,如果检测到多个基站时候,则对每个新的网络按照上述方式判断优先级以及信号强度,选择出合适的目标网络,实现网络切换。In this solution, the new base station information can be one or more. If multiple base stations are detected, the priority and signal strength of each new network are determined according to the above method, and an appropriate target network is selected to realize network switching.
本方案提供的终端的网络切换方法,终端设备如果检测到新的基站信息,则触发网络切换的选择过程,需要判断该新的基站对应的第一网络的网络类型优先级以及信号强度,只有在该第一网络的优先级高于当前网络且信号强度比当前网络的信号强度时,才将该第一网络作为目标网络去实现切换,通过综合考虑网络类型优先级以及信号强度,保证切换后的网络性能优于当前网络。In the network handover method of the terminal provided by this solution, if the terminal device detects new base station information, it will trigger the selection process of network handover. It needs to judge the network type priority and signal strength of the first network corresponding to the new base station. When the priority of the first network is higher than that of the current network and the signal strength is higher than that of the current network, the first network is used as the target network to implement the handover. The network performance is better than the current network.
可选的若所述终端检测到新的基站信息,则所述终端满足网络切换触发条件,则终端可以根据新的网络的信号强度,网络类型优先级,剩余流量(或者已使用流量等流量使用情况)中的至少两个网络信息参数来实现步骤S102中的终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络。除了上述图4所示的实施例的方案,还包括以下几种实现方式:Optionally, if the terminal detects the new base station information, the terminal meets the network handover triggering conditions, and the terminal can use the signal strength of the new network, the priority of the network type, the remaining traffic (or the used traffic, etc.) The terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card in step S102. In addition to the solution of the embodiment shown in FIG. 4, the following implementations are also included:
第一种实现方式:The first implementation method:
终端获取所述新的基站信息对应的第一网络的网络类型;The terminal acquires the network type of the first network corresponding to the new base station information;
若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的剩余流量;If 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, obtain the remaining traffic of the first network;
若所述终端确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。If the terminal determines that 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, the terminal determines the first network as the target network.
该方案中,与上述类似的由终端设备检测到新的基站信息,则触发网络切换的选择过程,在选取目标网络的过程中,需要判断该新的基站对应的第一网络的网络类型优先级以及该第一网络的剩余流量或者已经使用的流量是否超限,只有在该第一网络的优先级高于当前网络且剩余流量较多时,才将该第一网络作为目标网络去实现切换,上述的方案提供了先判断网络类型优先级的方案,实际实现过程中,也可以先确定该第一网络的剩余流量,或者先确定第一网络的已使用流量,后判断优先级,对此本发明不做限制,通过综合考虑网络类型优先级以及剩余流量或已使用流量的情况,保证切换后的网络性能优于当前网络,并且不会出现流量不足产生费用,提高用户体验。In this solution, similar to the above, when new base station information is detected by the terminal device, the selection process of network handover is triggered. In the process of selecting the target network, it is necessary to judge the network type priority of the first network corresponding to the new base station. And whether the remaining traffic of the first network or the traffic that has been used exceeds the limit, only when the priority 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 achieve switching, the above-mentioned The scheme provided by the method provides a scheme of first judging the priority of the network type. In the actual implementation process, the remaining traffic of the first network can also be determined first, or the used traffic of the first network can be determined first, and then the priority can be determined. There is no restriction. By comprehensively considering the network type priority and the remaining traffic or used traffic, it is guaranteed that the network performance after the switch is better than the current network, and there will be no shortage of traffic to generate fees, improving user experience.
第二种实现方式:The second way to implement:
所述终端获取所述新的基站信息对应的第一网络的信号强度;acquiring, by the terminal, the signal strength of the first network corresponding to the new base station information;
若所述终端获取所述第一网络的信号强度与所述第一数据卡的当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量;If the difference between the signal strength of the first network acquired by the terminal and the signal strength of the current network of the first data card is greater than a preset signal strength threshold, the terminal acquires the remaining traffic of the first network;
若所述终端确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。If the terminal determines that 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, the terminal determines the first network as the target network.
在该方案中,与上述类似的依然由终端设备检测到新的基站信息,则触发网络切换的选择过程,在选取目标网络的过程中,只需要考虑新的基站信息对应的第一网络的信号强度以及该第一网络的剩余流量或者已经使用的流量是否超限,只有在该第一网络的信号强度高于当前网络且剩余流量较多时,才将该第一网络作为目标网络去实现切换,上述的方案提供了先判断信号强度的方案,实际实现过程中,也可以先确定该第一网络的剩余流量,或者先确定第一网络的已使用流量,后判断第一网络和当前网络的信号强度,对此本发明不做限制,通过综合考虑网络类型优先级以及网络的信号强度的情况,保证切换后的网络性能优于当前网络,提高用户体验和网络切换的准确度。In this solution, similar to the above, the terminal device still detects the new base station information, and triggers the selection process of network handover. In the process of selecting the target network, only the signal of the first network corresponding to the new base station information needs to be considered. strength and whether the remaining traffic of the first network or the traffic that has been used exceeds the limit. 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 achieve handover, The above solution provides a solution of first judging the signal strength. In the actual implementation process, the remaining traffic of the first network can also be determined first, or the used traffic of the first network can be determined first, and then the signals of the first network and the current network can be determined. The present invention does not limit the strength of the network. By comprehensively considering the network type priority and the signal strength of the network, it is ensured that the network performance after handover is better than the current network, and the user experience and the accuracy of network handover are improved.
图5为本发明实施例提供的终端的网络切换方法实施例三的流程图,如图5所示,在上述实施例一的基础上,以终端检测到当前网络的信号强度低于预设的信号强度门限触发网络切换,本实施例提供一种具体的实现方式,即若所述终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端满足网络切换触发条件;则上述实施例一中步骤S102中的所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,具体实现步骤包括:FIG. 5 is a flowchart of Embodiment 3 of a network switching method for a terminal according to an embodiment of the present invention. As shown in FIG. 5 , on the basis of the foregoing Embodiment 1, the signal strength of the current network detected by the terminal is lower than a preset value. The signal strength threshold triggers network switching. This 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 the preset signal strength threshold, the terminal The network switching trigger condition is met; then the terminal in step S102 in the first embodiment above determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, and the specific implementation steps include:
S301:所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络。S301: 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.
在本实施例中,终端设备检测到当前的信号强度低于预设的信号强度门限时候,从本地存储基站信息列表中查找新的网络,该新的网络的网络类型优先级高于或者所述当前网络的网络类型优先级,或者与当前网络的网络类型优先级相同。In this embodiment, when the terminal device detects that the current signal strength is lower than the preset signal strength threshold, it searches for a new network from the locally stored base station information list, and the network type priority of the new network is higher than or above The network type priority of the current network, or the same as the network type priority of the current network.
S302:所述终端获取每个第二网络的剩余流量。S302: The terminal acquires the remaining traffic of each second network.
S303:所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。S303: The terminal selects, from the at least one second network, a second network with an optimal flow package as the target according to the remaining flow of each second network and according to preset optimal flow package determination conditions network.
在本实施例中,获取了优先级不低于当前网络的一个或多个第二网络之后,检测每个第二网络的剩余流量,或者已使用流量,选择出剩余流量高于预设的门限的网络,或者剩余流量最多的网络,或者已使用流量未超过设置的限制值的网络作为目标网络,进行网络切换。In this embodiment, after obtaining one or more second networks whose priorities are not lower than the current network, the remaining traffic of each second network, or the used traffic, is detected, and the remaining traffic is selected to be higher than a preset threshold network, or the network with the most remaining traffic, or the network whose traffic does not exceed the set limit value has been used as the target network to perform network switching.
在本实施例中,可以优先判断网络类型优先级,也可以先判断剩余流量,对此不做限制。In this embodiment, the priority of the network type may be determined first, and the remaining traffic may also be determined first, which is not limited.
本实施例提供的终端的网络切换方法,触发网络切换的功能的条件的是检测到当前网络的信号强度较差,例如:信号强度小于预设信号强度门限。为避免用户的数据业务或者通话质量受到影响,则可以根据其他的参数结合起来选择新的目标网络进行切换,具体实现中,可以从该终端设备中存储的多个基站信息中选择,这里的基站包括多种网络制式的站点,首先选择网络类型优先级高于或者跟当前网络相同的多个第二网络,然后分别检测每个第二网络的剩余流量是不是满足设定的条件,或者检测每个第二网络的已使用流量是否超过限制值,或者可以根据信号强度的排序,根据网络类型优先级以及流量使用情况选择合适的目标网络进行网络切换,可有效提供网络切换的准确度。In the network switching method of the terminal provided in this embodiment, the condition for triggering the function of network switching is to detect that the signal strength of the current network is poor, for example, the signal strength is less than a preset signal strength threshold. In order to prevent the user's data service or call quality from being affected, a new target network can be selected for handover according to other parameters. For sites with multiple network standards, first select multiple second networks with a higher priority or the same network type as the current network, and then check whether the remaining traffic of each second network meets the set conditions, or check whether each Whether the used traffic of the second network exceeds the limit value, or according to the sorting of signal strength, network type priority and traffic usage, the appropriate target network can be selected for network switching, which can effectively improve the accuracy of network switching.
可选的若所述终端检测到当前网络的信号强度低于预设信号强度门限,则所述终端满足网络切换触发条件,则终端可以根据新的网络的信号强度,网络类型优先级,剩余流量(或者已使用流量等流量使用情况)中的至少两个网络信息参数来实现步骤S102中的终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络。除了上述图5所示的实施例的方案,还包括以下几种实现方式:Optionally, if the terminal detects that the signal strength of the current network is lower than the preset signal strength threshold, and the terminal satisfies the network handover trigger condition, the terminal can determine the signal strength of the new network, the priority of the network type, and the remaining traffic according to the signal strength of the new network. At least two network information parameters in (or traffic usage conditions such as traffic have been used) to implement step S102. The terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card. In addition to the solution of the embodiment shown in FIG. 5, the following implementations are also included:
第一种实现方式:The first implementation method:
所述终端从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;The terminal acquires at least one second network whose signal strength is greater than the signal strength threshold from the stored base station information list;
所述终端获取每个第二网络的剩余流量;obtaining, by the terminal, the remaining traffic of each second network;
所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。The terminal selects a second network with an optimal flow package from the at least one second network as the target network according to the remaining flow of each second network and according to preset optimal flow package determination conditions.
在本实现方式中,与上述方案类似的,依然是由当前网络的信号强度低于门限值触发网络切换动作,终端设备从存储的基站信息列表中选择信号强度大于门限值的多个第二网络,然后根据该些第二网络的流量使用情况(包括剩余流量或者已使用流量)或者根据网络类型优先级,选择流量套餐合理,或者信号强度和网络优先级高于当前网络的目标网络进行网络切换,有效提高网络切换的准确度,保证切换后的网络性能优于当前网络。In this implementation manner, similar to the above solution, the network handover action is still triggered when the signal strength of the current network is lower than the threshold value, and the terminal device selects from the stored base station information list a plurality of firsts whose signal strength is greater than the threshold value. Second network, and then according to the traffic usage of these second networks (including remaining traffic or used traffic) or according to the network type priority, select a reasonable traffic package, or the signal strength and network priority are higher than the target network of the current network. Network switching can effectively improve the accuracy of network switching and ensure that the network performance after switching is better than the current network.
另外,在具体实现中,上述的剩余流量的判断,或者信号强度的对比,或者网络优先级的选择执行顺序不做限制,可以根据实际情况进行选择。In addition, in the specific implementation, the judgment of the remaining traffic, the comparison of the signal strength, or the selection and execution order of the network priority are not limited, and can be selected according to the actual situation.
第二种实现方式:The second way to implement:
所述终端从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;The terminal obtains, from the stored base station information list, at least one second network whose remaining traffic is greater than a preset remaining traffic threshold;
所述终端获取每个第二网络的信号强度;obtaining, by the terminal, the signal strength of each second network;
所述终端根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。The terminal selects, from the at least one second network, one second network with the best signal strength as the target network according to the signal strength of each second network.
与上述两个方案类似,在本实现方式中,依然由当前网络信号强度低于门限值来触发网络切换的动作,终端设备从存储的基站信息列表中,选择出剩余流量较多,即已使用的流量较少,网络流量比较合理的多个第二网络,然后根据每个第二网络的优先级或者信号强度,优先选择信号强度较强或者网络类型优先级的网络作为目标网络,完成网络切换,该切换后的网络性能优于当前网络,且在实现过程中对于先判断哪个参数,后判断哪个参数本发明不做限制。Similar to the above two solutions, in this implementation manner, the network handover action is still triggered by the current network signal strength lower than the threshold value, and the terminal device selects from the stored base station information list that there is more remaining traffic, that is, it has been Use multiple second networks with less traffic and reasonable network traffic, and then select 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 to complete the network. handover, the network performance after the handover is better than the current network, and the present invention does not limit which parameter is judged first and which parameter is judged later in the implementation process.
图6为本发明实施例提供的终端的网络切换方法实施例四的流程图,如图6所示,在上述实施例一的基础上,以终端检测到当前网络的剩余流量少于预设剩余流量门限,或者已使用流量超过预设的使用流量门限时触发网络切换,本实施例提供一种具体的实现方式,即若所述终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端满足网络切换触发条件;则上述实施例一中步骤S102中的所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,具体实现步骤包括:FIG. 6 is a flowchart of Embodiment 4 of a network switching method for a terminal according to an embodiment of the present invention. As shown in FIG. 6 , on the basis of Embodiment 1 above, the terminal detects that the remaining traffic of the current network is less than the preset remaining traffic. The traffic threshold, or the network switching is triggered when the used traffic exceeds the preset used traffic threshold. This embodiment provides a specific implementation method, that is, if the terminal detects that the remaining traffic of the current network of the first data card is low is within the preset remaining traffic threshold, the terminal satisfies the network handover triggering condition; then the terminal in step S102 in the first embodiment above determines 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:
S401:所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络。S401: 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.
与上述实施例二类似的,终端设备从本地存储的基站信息列表中,选择可以连接到的网络类型优先级高于或等于当前网络的网络类型优先级的一个或者多个第二网络。Similar to Embodiment 2 above, the terminal device selects one or more second networks that can connect to a network type priority higher than or equal to the network type priority of the current network from the locally stored base station information list.
S402:所述终端获取每个第二网络的剩余流量。S402: The terminal acquires the remaining traffic of each second network.
S403:所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。S403: The terminal selects, from the at least one second network, a second network with an optimal flow package as the target according to the remaining flow of each second network and according to preset optimal flow package determination conditions network.
然后该终端设备从监测每个第二网络的已使用流量或者剩余流量,根据预设的最优流量套餐判定条件,从该些第二网络中选择出流量套餐最合理的一个作为目标网络,实现网络切换。Then, the terminal device monitors the used traffic or remaining traffic of each second network, and selects the most reasonable traffic package from the second networks as the target network according to the preset optimal traffic package determination conditions, so as to realize network switch.
其中,该最优流量套餐判定条件可以包括:剩余流量最多,或者已使用流量最少等。Wherein, the condition for determining the optimal traffic package may include: the remaining traffic is the most, or the used traffic is the least, and the like.
在本方案中,该方案中是由当前使用的网络制式下的剩余流量不足来触发网络切换,为避免超出流量套餐为用户带来不必要的费用,本方案终端设备从基站信息列表中获取网络优先级比当前网络高或者相同的多个第二网络,然后根据每个第二网络的信号强度或者剩余流量即流量使用情况来选择目标网络,完成网络切换,在实现过程中,也可以优先考虑剩余流量或者网络信号强度,再考虑网络类型优先级的高低,可以根据实际情况进行设置,对此不做限制。In this solution, the network switching is triggered by insufficient remaining traffic under the currently used network standard. In order to avoid unnecessary costs for users due to exceeding the traffic plan, the terminal device in this solution obtains the network from the base station information list. Multiple second networks with a higher priority or the same priority than the current network, and then select the target network according to the signal strength of each second network or the remaining traffic, that is, the traffic usage, to complete the network switch. In the implementation process, you can also give priority to The remaining traffic or network signal strength, and then considering the priority of the network type, can be set according to the actual situation, and there is no restriction on this.
可选的若所述终端检测到当前网络的剩余流量低于预设剩余流量门限,则所述终端满足网络切换触发条件,则终端可以根据新的网络的信号强度,网络类型优先级,剩余流量(或者已使用流量等流量使用情况)中的至少两个网络信息参数来实现步骤S102中的终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络。除了上述图5所示的实施例的方案,还包括以下几种实现方式:Optionally, if the terminal detects that the remaining traffic of the current network is lower than the preset remaining traffic threshold, and the terminal satisfies the network handover trigger condition, the terminal can determine the remaining traffic according to the signal strength of the new network, the priority of the network type, and the remaining traffic. At least two network information parameters in (or traffic usage conditions such as traffic have been used) to implement step S102. The terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card. In addition to the solution of the embodiment shown in FIG. 5, the following implementations are also included:
第一种实现方式:The first implementation method:
所述终端从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;The terminal acquires at least one second network whose signal strength is greater than the signal strength threshold from the stored base station information list;
所述终端获取每个第二网络的剩余流量;obtaining, by the terminal, the remaining traffic of each second network;
所述终端根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。The terminal selects a second network with an optimal flow package from the at least one second network as the target network according to the remaining flow of each second network and according to preset optimal flow package determination conditions.
可选的,也可以先根据剩余流量选择出满足最优流量套餐的多个网络,然后判断该些网络的信号强度,按照信号强度由高到低的顺序来选择合适的目标网络,进行网络切换。Optionally, you can first select multiple networks that satisfy the optimal traffic package according to the remaining traffic, then judge the signal strength of these networks, select the appropriate target network in the order of signal strength from high to low, and perform network switching. .
与上述方案类似,该方案中同样的由剩余流量不足来触发网络切换动作,终端设备根据网络信号强度和每个网络的流量使用情况,或者根据网络信号强度和网络类型优先级,从基站信息列表中选择网络状态和剩余流量都比较好的目标网络完成网络切换,提高网络切换的准确度和用户体验。Similar to the above scheme, in this scheme, the network switching action is also triggered by insufficient remaining traffic. The terminal device selects the information from 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 network type priority. Select the target network with better network status and remaining traffic to complete network switching, improve the accuracy of network switching and user experience.
第二种实现方式:The second way to implement:
所述终端从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;The terminal obtains, from the stored base station information list, at least one second network whose remaining traffic is greater than a preset remaining traffic threshold;
所述终端获取每个第二网络的信号强度;obtaining, by the terminal, the signal strength of each second network;
所述终端根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。The terminal selects, from the at least one second network, one second network with the best signal strength as the target network according to the signal strength of each second network.
本方案中,也是用过剩余流量低于预设门限来作为网络切换的触发条件,然后根据基站信息列表中存储的多个网络的信息,根据剩余流量的状况和信号强度,或者可以根据剩余流量的状况和网络类型优先级的,选择出性能较好的目标网络进行网络切换,综合考虑多个参数选择性能和剩余流量合理的目标网络,提高网络切换的准确度。In this solution, the remaining traffic below the preset threshold is also used as the trigger condition for network handover, 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 According to the status and network type priority, the target network with better performance is selected for network handover, and the target network with reasonable performance and remaining traffic is selected comprehensively considering multiple parameters, so as to improve the accuracy of network handover.
在上述的多种方式中,均是从各卡的每个网络的信号强度、每个网络剩余流量以及每个网络的网络类型优先级中的任意两个参数作为选择新的目标网络的,并且对于选择出的任意两个参数,在具体实现过程中判断的顺序不限制,只要能够选择出性能优于当前网络的目标网络即可。In the above-mentioned various manners, the new target network is selected from any two parameters of the signal strength of each network of each card, the remaining traffic of each network, and the network type priority of each network, and For any two parameters selected, the order of judgment in the specific implementation process is not limited, as long as a target network with better performance than the current network can be selected.
在上述图3至图6示出的实施例中,均是采用在触发了网络切换动作之后,选择两种参数进行目标网络的选择,能够在一定程度上提高网络切换的准确度,优选的,终端设备根据各卡的每个网络的信号强度、每个网络剩余流量以及每个网络的网络类型优先级三种参数进行目标网络的选择一,以进一步提高网络切换的准确度,提高用户体验。下面分别对每种实现方式进行说明。In the above-mentioned embodiments shown in FIGS. 3 to 6 , after the network switching action is triggered, two parameters are selected to select the target network, which can improve the accuracy of network switching to a certain extent. Preferably, The terminal device selects the target network according to the three parameters of the signal strength of each network of each card, the remaining traffic of each network and the network type priority of each network, so as to further improve the accuracy of network switching and improve user experience. Each implementation is described below.
图7为本发明实施例提供的终端的网络切换方法实施例五的流程图,如图7所示该方案的执行主体为终端设备,即上述图1和图2中的终端,例如:手机、平板电脑等可通过数据卡实现数据业务的设备,在如图3所示的实施例的基础上,当终端检测到新的基站信息,则确定终端满足网络切换触发条件,需要进行网络切换的匹配过程,则步骤102中的终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,具体是按步骤为:FIG. 7 is a flowchart of Embodiment 5 of a network switching method for a terminal provided by an embodiment of the present invention. As shown in FIG. 7 , the execution subject of the solution is a terminal device, that is, the terminal in the above-mentioned FIG. 1 and FIG. 2 , such as a mobile phone, Tablet PCs and other devices that can implement data services through data cards, on the basis of the embodiment shown in Figure 3, when the terminal detects new base station information, it is determined that the terminal meets the network handover triggering conditions, and network handover matching is required process, the terminal in step 102 determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card, and the specific steps are as follows:
S501:所述终端获取所述新的基站信息对应的第一网络的网络类型。S501: The terminal acquires the network type of the first network corresponding to the new base station information.
S502:若所述终端判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度。S502: If 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, obtain the signal strength of the first network.
在本步骤中,终端检测到新的基站信息后,检测获取该新的基站对应的第一网络的网络类型,根据预先配置的网络类型优先级顺序或者默认的网络类型优先级,检测该第一网络的优先级是不是高于当前网络,或者与当前网络相同,如果该第一网络的网络类型优先级低于当前网络,则放弃本次切换过程,即保证不要切换至性能不好的网络。In this step, after detecting the new base station information, the terminal detects and obtains the network type of the first network corresponding to the new base station, and detects the first network type according to the pre-configured priority order of network types 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 priority of the first network is lower than the current network, the handover process is abandoned, that is, it is guaranteed not to switch to a network with poor performance.
在检测到优先级符合条件之后,获取该第一网络的信号强度,进一步对信号强度进行对比,保证切换后的网络的信号质量优于当前网络。After it is detected that the priority meets the conditions, 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 that of the current network.
S503:若所述终端确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量和所述当前网络的剩余流量。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, obtain the remaining traffic of the first network and the current network remaining flow.
在本步骤中,如果检测到第一网络的信号强度低于当前网络的信号强度,则放弃本次网络切换过程。In this step, if it is detected that the signal strength of the first network is lower than that of the current network, the current network switching process is abandoned.
在判断对信号强度进行对比的过程中,可以直接对比第一网络和当前网络的信号强度的大小,也可以判断其间的差值是否大于预设的信号强度阈值,在满足了信号强度的条件之后,最后检测第一网络的剩余流量,判断剩余流量是否能够满足要求。In the process of judging and comparing the signal strengths, the magnitudes of the signal strengths of the first network and the current network can be directly compared, and it can also be judged whether the difference between them is greater than a preset signal strength threshold, after the signal strength conditions are met. , and finally detect the remaining traffic of the first network, and determine whether the remaining traffic can meet the requirements.
S504:若所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。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, determine the first network as the target network.
在本步骤中,若第一网络的流量不足则结束本次网络切换,避免用户因使用切换后的网络产生不必要的费用,判断第一网络的剩余流量是否满足条件的方式可以是:直接对比第一网络的剩余流量和当前网络的剩余流量,若第一网络的剩余流量比当前网络的剩余流量多,则满足;或者按照上述的判断第一网络的剩余流量与当前网络的剩余流量的差值是否大于设置的阈值;或者也可以直接检测已使用流量,判断以使用流量是否超过了预设的门限值,本发明对于具的判断方式不做限制。In this step, if the traffic of the first network is insufficient, the network switching is terminated, so as to avoid unnecessary charges incurred by the user due to the use of the switched network, and the method of judging whether the remaining traffic of the first network meets the conditions may be: direct comparison The residual traffic of the first network and the residual traffic of the current network, if the residual traffic of the first network is more than the residual traffic of the current network, it is satisfied; or the difference between the residual traffic of the first network and the residual traffic of the current network is judged as described above. Whether the value is greater than the set threshold; or the used flow can also be directly detected to judge whether the used flow exceeds the preset threshold value, and the present invention does not limit the judgment method of the device.
结合上述描述和图1和图2所示的系统示意图,下面举一实例说明本方案,以手机为例。In combination with the above description and the schematic diagrams of the system shown in FIG. 1 and FIG. 2 , an example is given below to illustrate the solution, taking a mobile phone as an example.
1、当手机检测到基站信息有改变,将检查与当前网络类型的差异,并发起一次智能匹配过程,监听到基站信息变化,查看获取到的已连接网络类型A(相当于上述的当前网络),对比新增基站网络类型B(相当于上述的第一网络)的网络类型,进入下一步。1. 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, monitor the change of the base station information, and check the obtained connected network type A (equivalent to the above-mentioned current network) , compare the network type of the newly added base station network type B (equivalent to the above-mentioned first network), and go to the next step.
2、比较网络类型,根据预设的网络类型优先级,例如:4G>3G>2G,如果B优于A如A为3G,B为4G,则新增基站网络性能比A更优,进入步骤3,否则进入步骤4。2. Compare the network types, according to the preset network type priority, for example: 4G>3G>2G, if B is better than A, such as A is 3G, B is 4G, then the network performance of the newly added base station is better than A, go to the step 3, otherwise go to step 4.
3、获取A与B网络信号的信号强度S,对比信号强度SA和SB,若SB-SA>阈值,进入步骤5,否则进入步骤4.3. Obtain the signal strength S of the A and B network signals, compare the signal strength SA and SB, if SB-SA>threshold, go to step 5, otherwise go to step 4.
4、结束本次匹配过程,放弃本次网络切换过程。4. End the matching process and abandon the network switching process.
5、查看A对应运营商的剩余网络流量TB,及B对应运营商的剩余网络流量TB,若TB-TA>阈值,进入步骤6,否则进入步骤4。5. Check the remaining network traffic TB corresponding to operator A and the remaining network traffic TB corresponding to operator B, if TB-TA>threshold, go to step 6, otherwise go to step 4.
6、查询基站信息,查看A,B网络是否属于同一张卡,是则进入步骤7,否则进入步骤8。6. Query the base station information to check whether A and B networks belong to the same card, if yes, go to step 7, otherwise go to step 8.
7、直接进行单卡内的网络切换。7. Direct network switching within a single card.
8、切换数据业务卡,并通过用户界面(User Interface,UI)向用户显示切换提示。8. Switch the data service card, and display a switching prompt to the user through a user interface (User Interface, UI).
上述实例提供的首先判断网络类型的优先级、符合条件后在判断信号强度,最后检测网络对于的剩余流量,实际的实现中,对于上述三个参数的判断顺序本发明不做限制,可能根据具体的情况随机设置,即存在三种参数排列组合产生的六种实现方式,均可以实现上述目标网络的选择。The above example provides that the priority of the network type is first judged, the signal strength is judged after meeting the conditions, and the remaining traffic of the network is finally detected. In actual implementation, the judgment order of the above three parameters is not limited in the present invention, and may The situation is set randomly, that is, there are six implementations generated by the arrangement and combination of three parameters, all of which can realize the selection of the above target network.
本实施例提供的终端的网络切换方法,在选取目标网络的过程中,均需要综合考虑网络的网络类型优先级、信号强度以及流量使用情况,选择出性能优于当前网络,并且网络剩余流量足够的目标网络进行切换,该目标网络可以是第一数据卡的网络制式,也可以是其他安装在该终端设备中的数据卡的网络,例如:第二数据卡,通过该种方式,有效保证切换后的网络性能更好,也不会由于数据流量产生额外的费用,有效提高网络切换的准确度,并提高用户体验。In the network switching method of the terminal provided by this embodiment, 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, and select a network whose performance is better than the current network and the remaining network traffic is sufficient. The target network is switched, the target network can be the network standard of the first data card, or it can be the network of other data cards installed in the terminal device, such as the second data card, in this way, the switching is effectively guaranteed. The later network performance is better, and no additional costs are incurred due to data traffic, which effectively improves the accuracy of network switching and improves user experience.
图8为本发明实施例提供的终端的网络切换方法实施例六的流程图,如图8所示该方案的执行主体为终端设备,即上述图1和图2中的终端,例如:手机、平板电脑等可通过数据卡实现数据业务的设备,在如图3所示的实施例的基础上,当终端检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则确定终端满足网络切换触发条件,需要进行网络切换的匹配过程,则步骤102中的终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,具体是按步骤为:FIG. 8 is a flowchart of Embodiment 6 of a network switching method for a terminal provided by an embodiment of the present invention. As shown in FIG. 8 , the execution subject of the solution is a terminal device, that is, the terminal in the above-mentioned FIG. 1 and FIG. 2 , such as a mobile phone, A device that can implement data services through a data card, such as a tablet computer, on the basis of the embodiment shown in FIG. 3 , when the terminal detects that the signal strength of the current network of the first data card is lower than the preset signal strength threshold , then it is determined that the terminal satisfies the network handover trigger condition and needs to perform the matching process of network handover, then the terminal in step 102 determines the target network to be handed over according to the network information parameters of the first data card and the network information parameters of the second data card. The steps are:
S601:所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络。S601: The terminal obtains, from the stored base station information list, at least one second network whose network type priority is not lower than that of the current network.
在本步骤中,终端需要从存储的基站信息列表中选择一个或多个网络类型优先级不必当前网络低的网络作为备选,该基站信息列表中包括多个可以检测到的可连接的基站的参数信息。In this step, the terminal needs to select one or more networks whose network type priority is not necessarily lower than the current network from the stored base station information list as an alternative, and the base station information list includes multiple detectable and connectable base stations. Parameter information.
由于终端的移动性和网络资源的变化,终端需要对上述基站信息列表进行维护和更新,并基于基站信息列表包含的参数判断当前服务网络是否为最优网络,若存在能够为用户提供更高质量网络服务或者更满足用户资费需求的可使用的网络,则终端进行网络切换的匹配过程。Due to the mobility of the terminal and changes in network resources, the terminal needs to maintain and update the above-mentioned base station information list, and judge whether the current serving network is the optimal network based on the parameters contained in the base station information list. If the network service or an available network that better meets the user's tariff requirements, the terminal performs the matching process of network switching.
若在该基站信息列表中未查询到优先级不第于当前网络的网络,则放弃本次网络切换的匹配过程。If no network whose priority is not lower than the current network is found in the base station information list, the matching process of this network handover is abandoned.
S602:所述终端获取每个第二网络的剩余流量和信号强度。S602: The terminal acquires the remaining traffic and signal strength of each second network.
S603:所述终端将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。S603: The terminal uses at least one second network in the second network whose signal strength is greater than the signal strength threshold and satisfies the optimal traffic package judgment condition as the target network.
在本方案中,终端需要获取选择出来的网络的信号强度以及剩余流量,可以先判断信号强度是否高于当前网络,然后判断剩余流量是否满足最优流量套餐条件的网络,也可以先判断剩余流量后检测信号强度。In this solution, the terminal needs to obtain the signal strength and remaining traffic of the selected network. It can first determine whether the signal strength is higher than the current network, and then determine whether the remaining traffic meets the network with the optimal traffic package conditions, or it can first determine the remaining traffic. Then check the signal strength.
结合上述描述和图1和图2所示的系统示意图,下面举一实例说明本方案,以手机为例。当手机检测到信号强度有改变,将检查当前信号强度是否低于阈值,并发起一次智能匹配过程。In combination with the above description and the schematic diagrams of the system shown in FIG. 1 and FIG. 2 , an example is given below to illustrate the solution, taking a mobile phone as an example. When the mobile phone detects that the signal strength has changed, it will check whether the current signal strength is lower than the threshold and initiate a smart matching process.
1、监听到信号强度变化,查看信号强度是否低于阈值,是则进入步骤2,否则进入步骤3。1. Monitor the signal strength change, check whether the signal strength is lower than the threshold, if yes, go to step 2, otherwise go to step 3.
2、查看本地保存的所有基站信息列表,寻找与当前网络A的网络类型优先级同等或更优带宽的网络,有则进入步骤4,否则进入步骤3。2. Check the list of all the base station information saved locally, and find a network with the same or better bandwidth as the network type priority of the current network A. If yes, go to step 4, otherwise go to step 3.
3、结束本次匹配过程。3. End the matching process.
4、查看符合条件的所有网络及当前网络的流量套餐,找出最优流量套餐比的网络B,若不是当前网络,则进入步骤5,否则进入步骤3。4. Check the traffic 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.
5、查询基站信息,查看A,B网络是否属于同一张卡,是则进入步骤6,否则进入步骤7。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.
6、直接进行单卡网络切换。6. Directly perform single-card network switching.
7、切换数据业务卡,并通过用户界面(User Interface,UI)向用户显示切换提示。7. Switch the data service card, and display a switching prompt to the user through a user interface (User Interface, UI).
与上述方案不同的是,在检测到当前网络信号强度低于预设信号强度门限的触发条件下,终端设备根据三个参数同时进行判断是否作为目标网络;上述提供的方案是依次判断网络类型优先级、流量使用情况以及信号强度的顺序进行的,实际上,在具体实现过程中,优先判断哪个参数并不做限制,即存在三种参数排列组合产生的六种实现方式,均可以实现上述目标网络的选择。Different from the above scheme, under the trigger condition that the current network signal strength is lower than the preset signal strength threshold, the terminal device simultaneously judges whether it is a target network according to three parameters; the scheme provided above is to judge the network type in turn as priority. In fact, in the specific implementation process, which parameter is prioritized is not limited, that is, there are six implementation methods generated by the arrangement and combination of three parameters, all of which can achieve the above goals. choice of network.
本实施例提供的终端的网络切换方法,在选取目标网络的过程中,均需要综合考虑网络的网络类型优先级、信号强度以及流量使用情况,选择出性能优于当前网络,并且网络剩余流量足够的目标网络进行切换,该目标网络可以是第一数据卡的网络制式,也可以是其他安装在该终端设备中的数据卡的网络,例如:第二数据卡,通过该种方式,有效保证切换后的网络性能更好,也不会由于数据流量产生额外的费用,有效提高网络切换的准确度,并提高用户体验。In the network switching method of the terminal provided by this embodiment, 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, and select a network whose performance is better than the current network and the remaining network traffic is sufficient. The target network is switched, the target network can be the network standard of the first data card, or it can be the network of other data cards installed in the terminal device, such as the second data card, in this way, the switching is effectively guaranteed. The later network performance is better, and no additional costs are incurred due to data traffic, which effectively improves the accuracy of network switching and improves user experience.
图9为本发明实施例提供的终端的网络切换方法实施例七的流程图,如图8所示该方案的执行主体为终端设备,即上述图1和图2中的终端,例如:手机、平板电脑等可通过数据卡实现数据业务的设备,在如图3所示的实施例的基础上,当终端检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限(可选的,这里也可以是终端检测到当前网络的已使用流量超过预设使用流量门限),则确定终端满足网络切换触发条件,需要进行网络切换的匹配过程,则步骤102中的终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络,具体是按步骤为:FIG. 9 is a flowchart of Embodiment 7 of a method for network switching of a terminal provided by an embodiment of the present invention. As shown in FIG. 8 , the execution subject of the solution is a terminal device, that is, the terminal in the above-mentioned FIG. 1 and FIG. 2 , such as a mobile phone, A device that can implement data services through a data card, such as a tablet computer, on the basis of the embodiment shown in FIG. 3 , when the terminal detects that the current network residual traffic of the first data card is lower than the preset residual traffic threshold (Optionally, it can also be that the terminal detects that the used traffic of the current network exceeds the preset used traffic threshold), then it is determined that the terminal satisfies the network handover trigger condition and needs to perform the matching process of network handover, then the terminal in step 102 according to The network information parameters of the first data card and the network information parameters of the second data card determine the target network to be switched, and the specific steps are as follows:
S701:所述终端从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络。S701: The terminal obtains, from the stored base station information list, at least one second network whose network type priority is not lower than that of the current network.
S702:所述终端获取每个第二网络的剩余流量和信号强度。S702: The terminal acquires the remaining traffic and signal strength of each second network.
S703:所述终端将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。S703: The terminal uses at least one second network in the second network whose signal strength is greater than the signal strength threshold and satisfies the optimal traffic package judgment condition as the target network.
具体实现方式与上述实施例类似,与上述方案不同的是,是由当前网络的剩余流量不足,触发网络切换动作,终端设备根据三个参数同时进行判断是否作为目标网络;上述提供的方案是依次判断网络类型优先级、流量使用情况以及信号强度的顺序进行的,实际上,在具体实现过程中,优先判断哪个参数并不做限制,即存在三种参数排列组合产生的六种实现方式,均可以实现上述目标网络的选择。The specific implementation method is similar to the above-mentioned embodiment, and the difference from the above-mentioned scheme is that the network switching action is triggered by the insufficient remaining traffic of the current network, and the terminal device simultaneously judges whether it is the target network according to the three parameters; The order of judging network type priority, traffic usage and signal strength is carried out. In fact, in the specific implementation process, which parameter is judged first is not limited, that is, there are six implementation methods generated by the arrangement and combination of three parameters. The selection of the target network described above can be achieved.
在图7至图9所示的几种方案中,当前网络A如果是第一数据卡中的2G网路,则按照上述任一实施例的方案,查找出满足上述条件的目标网络可能是:第一数据卡中的3G和4G网络,也可能是第二数据卡中的2G、3G和4G网络;当前网络A如果是第一数据卡中的3G网路,查找出满足上述条件的目标网络可能是:第一数据卡中的3G和4G网络,也可能是第二数据卡中的3G和4G网络;当前网络A如果是第一数据卡中的4G网路,查找出满足上述条件的目标网络可能是:第一数据卡中的4G网络,也可能是第二数据卡中的4G网络。In the several schemes shown in FIGS. 7 to 9 , if the current network A is a 2G network in the first data card, according to the scheme of any of the above embodiments, the target network that satisfies the above conditions may be found: The 3G and 4G networks in the first data card may also be 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 out 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 meets the above conditions The network may be: the 4G network in the first data card, or the 4G network in the second data card.
上述的几种实现方式提供的终端的网络切换方法,不管通过什么样的触发条件触发了网络切换的动作,在选取目标网络的过程中,均需要综合考虑网络的网络类型优先级、信号强度以及流量使用情况,选择出性能优于当前网络,并且网络剩余流量足够的目标网络进行切换,该目标网络可以是第一数据卡的网络制式,也可以是其他安装在该终端设备中的数据卡的网络,例如:第二数据卡,通过该种方式,有效保证切换后的网络性能更好,有效提高网络切换的准确度,并且保证切换后的网络的剩余流量足够,不会由于数据流量产生额外的费用,进一步的提高用户体验。In the network switching method of the terminal provided by the above several implementations, no matter what trigger condition triggers 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, select the target network with better performance than the current network and enough remaining network traffic for switching. The target network can be the network standard of the first data card, or the data card installed in the terminal device. The network, for example: the second data card, in this way, it can effectively ensure that the network performance after switching is better, effectively improve the accuracy of network switching, and ensure that the remaining traffic of the network after switching is sufficient, and no additional traffic will be generated due to data traffic. cost to further improve the user experience.
图10为本发明实施例提供的终端的网络切换方法实施例八的流程图,如图10所示,本实施例中终端包括第一数据卡和第二数据卡,所述第一数据卡为所述终端当前使用的数据卡,若在终端中包括两个以上的数据卡,也可以参照该方式选择合适的目标网站进行切换。FIG. 10 is a flowchart of Embodiment 8 of a network switching method for a terminal according to an embodiment of the present invention. As shown in FIG. 10 , in this embodiment, the terminal includes a first data card and a second data card, and the first data card is If the data card currently used by the terminal includes more than two data cards in the terminal, a suitable target website can also be selected and switched by referring to this method.
本实施例提供一种在当前网络的剩余流量不足或者已使用流量超过限制的触发条件下,实现网络切换的详细步骤:This embodiment provides a detailed step for implementing network switching under the trigger condition that the remaining traffic of the current network is insufficient or the used traffic exceeds the limit:
S801:检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值。S801: Detect whether the current network traffic used by the first data card exceeds a preconfigured used traffic threshold.
若所述当前网络已使用的流量超过所述使用流量阈值,则触发本次网络切换过程,则终端根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络,具体的实现方式如下步骤S802和S803。If the traffic used by the current network exceeds the used traffic threshold, the current network switching process is triggered, and the terminal is based on the used traffic, signal strength, network type priority and all network types of the first data card. The used traffic, signal strength and network type priority of each network of the second data card are used to determine the target network to be switched. The specific implementation is as follows in steps S802 and S803.
S802:若所述当前网络已使用的流量超过所述使用流量阈值,所述终端从存储的基站信息列表中,根据各网络的网络类型优先级获取至少一个网络类型优先级不低于所述当前网络的第三网络。S802: If the traffic used by the current network exceeds the used traffic threshold, the terminal obtains, from the stored base station information list, at least one network type priority not lower than the current network type priority according to the network type priority of each network The third network of networks.
S803:按照网络类型优先级由高到低的顺序,所述终端根据所述当前网络的信号强度和每个第三网络的信号强度以及各网络的已使用流量,获取信号强度大于预设信号强度门限值且已使用流量未超过所述使用流量阈值的网络作为所述目标网络。S803: According to the order of network type priority from high to low, the terminal obtains that the signal strength is greater than the 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 The network with the threshold value and the used traffic does not exceed the used traffic threshold is used as the target network.
在本实施例中,一种具体的实现方式为:In this embodiment, a specific implementation manner is:
所述终端根据所述当前网络的信号强度和每个第三网络的信号强度,获取至少一个信号强度大于预设信号强度门限值的第四网络;按照网络类型优先级由高到低的顺序,依次检测每个第四网络的已使用流量是否超过所述使用流量阈值;若存在一个第四网络的已使用流量未超过所述使用流量阈值,则将该第四网络作为所述目标网络。According to the signal strength of the current network and the signal strength of each third network, the terminal obtains at least one fourth network whose signal strength is greater than the preset signal strength threshold; according to the order of network type priority from high to low , and sequentially detect whether the used traffic of each fourth network exceeds the used traffic threshold; if there is a fourth network whose used traffic does not exceed the used traffic threshold, the fourth network is used as the target network.
S804:切换到所述目标网络。S804: Switch to the target network.
在本实施例中,所述切换到所述目标网络的具体实现方式为:首先判断所述目标网络是否属于第一数据卡;若属于,则通过卡内网络切换的方式换到所述目标网络;若不属于,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。In this embodiment, the specific implementation method of switching to the target network is: first determine whether the target network belongs to the first data card; if so, switch to the target network by means of network switching in the card ; If not, switch the data service to the second data card and access the target network.
结合上述描述和图1和图2所示的系统示意图,下面举一实例说明本实施例的技术方案,同样的以手机为例。当发现当前网络流量超过阈值时,将发起一次智能匹配过程,具体的匹配过程为:In combination with the above description and the schematic diagrams of the system shown in FIG. 1 and FIG. 2 , an example is given below to illustrate the technical solution of this embodiment, and a mobile phone is also used as an example. When it is found that the current network traffic exceeds the threshold, an intelligent matching process will be initiated. The specific matching process is as follows:
1、手机监听到当前网络的已使用流量超过是否超过预设的使用流量门限时,若是则进入步骤2。1. When the mobile phone monitors whether the used traffic of the current network exceeds the preset used traffic threshold, if so, go to step 2.
2、查看手机本地中保存的所有基站信息列表,查询获取与现有网络同等或更优带宽的网络,若存在这样的网络则进入步骤4,若不存在则进入步骤3。2. Check the list of all base station information stored locally in the mobile phone, and query to obtain a 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.
3、结束本次匹配过程。3. End the matching process.
4、查看符合条件的所有网络及当前网络的信号强度,若优选的网络的信号强度高于阈值或者高于当前网络A的信号强度,若存在这样的网络进入步骤5,否则进入步骤6。4. Check the signal strength of all qualified networks 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.
5、查询该网络的已使用流量值,如果超过超过设置的使用流量限值,则进入步骤6,否则进入步骤7。5. Query the used traffic value of the network. If it exceeds the set usage traffic limit, go to step 6; otherwise, go to step 7.
6、循环步骤4,按照网络类型优先级由高到低的顺序依次查找,找到信号强度高于阈值的网络B,如果有则进入步骤5,否则进入步骤3。6. Repeat step 4, search in order of network type priority from high to low, find the network B whose signal strength is higher than the threshold, if there is, go to step 5, otherwise go to step 3.
7、查询基站信息,查看A,B网络是否属于同一张卡,是则进入步骤8,否则进入步骤9。7. Query the base station information, check whether the A and B networks belong to the same card, if yes, go to step 8, otherwise go to step 9.
8、直接进行单卡网络切换。8. Directly perform single-card network switching.
9、切换数据业务卡,并通过用户界面(User Interface,UI)向用户显示切换提示。9. Switch the data service card, and display a switching prompt to the user through a user interface (User Interface, UI).
本方案提供的终端的网络切换方法,当发现当前使用的网络流量超过设置的阈值时,终端设备根据上述的方式发起一次智能匹配过程,查看存储的基站信息列表中保存的优先级高于或者与当前网络相同的多个第三网络,然后检测每个第三网络的信号强度,选出信号强度高于设置的信号强度门限或者设置阈值的网络,然后查询该些网络中的每个网络的流量使用情况,查找出按照网络类型优先级由高到低的顺序,依次从信号强度最好的网络开始查找,若存在使用流量为超过门限,其他性能较好的网络则作为目标网络,否则对下一网络进行判断,直至找到性能较好,并且剩余流量较多的目标网络完成切换,有效提高网络切换的准确度,提高用户体验。In the network switching method of the terminal provided by this solution, when it is found that the currently used network traffic exceeds the set threshold, the terminal device initiates an intelligent matching process according to the above method, and checks that the priority stored in the stored base station information list is higher than or equal to Multiple third networks with the same current network, then detect the signal strength of each third network, select the network whose signal strength is higher than the set signal strength threshold or set threshold, and then query the traffic of each of these networks In the usage situation, find out the network type in descending order of priority, starting from the network with the best signal strength in turn. If there is a traffic flow exceeding the threshold, other networks with better performance will be used as the target network, otherwise, the next A network performs judgment until a target network with better performance and more remaining traffic is found to complete the handover, which effectively improves the accuracy of network handover and improves user experience.
图11为本发明实施例提供的终端设备实施例一的结构示意图,如图11所示,该终端设备10中包括第一数据卡11和第二数据卡12,所述第一数据卡为所述终端设备10当前使用的数据卡,所述终端设备10还包括:FIG. 11 is a schematic structural diagram of Embodiment 1 of a terminal device according to an embodiment of the present invention. As shown in FIG. 11 , the
检测模块13,用于检测是否满足网络切换触发条件;The
处理模块14,用于若所述检测模块检测出满足网络切换触发条件,则根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;The
所述处理模块14还用于切换到所述确定目标网络。The
本实施例提供的终端设备,用于执行图3至图10任一实施例所述的终端的网络切换方法,其实现原理和技术效果类似,在此不再赘述。The terminal device provided in this embodiment is configured to execute the network switching method of the terminal described in any of the embodiments in FIG. 3 to FIG. 10 , and its implementation principle and technical effect are similar, and details are not repeated here.
图12为本发明实施例提供的终端设备实施例二的结构示意图,如图12所示,该终端设备10的处理模块14包括:FIG. 12 is a schematic structural diagram of Embodiment 2 of a terminal device according to an embodiment of the present invention. As shown in FIG. 12 , the
判断子模块141,用于判断所述目标网络是否属于第一数据卡;Judging sub-module 141, for judging whether the target network belongs to the first data card;
网络切换子模块142,用于:The network switching sub-module 142 is used for:
若所述判断子模块141判断出所述目标网络属于第一数据卡,则通过卡内网络切换的方式换到所述目标网络;If the judging sub-module 141 judges that the target network belongs to the first data card, it will switch to the target network by means of network switching in the card;
若所述判断子模块141判断出所述目标网络不属于第一数据卡,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。If the judging sub-module 141 judges that the target network does not belong to the first data card, it switches the data service to the second data card and accesses the target network.
可选的,所述处理模块14获取的所述网络信息参数包括该卡的网络的剩余流量、网络的信号强度以及网络类型优先级中的至少两个参数。Optionally, the network information parameter acquired by the
可选的,若所述检测模块13检测到新的基站信息,则所述终端设备10满足网络切换触发条件;Optionally, if the
则所述处理模块14具体用于:Then the
获取所述新的基站信息对应的第一网络的网络类型;acquiring the network type of the first network corresponding to the new base station information;
若判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;If it is determined 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;
若确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则将所述第一网络确定为所述目标网络。If it is determined 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, the first network is determined as the target network.
可选的,若所述检测模块13检测到新的基站信息,则所述终端设备10满足网络切换触发条件;Optionally, if the
则所述处理模块14具体用于:Then the
获取所述新的基站信息对应的第一网络的网络类型;acquiring the network type of the first network corresponding to the new base station information;
若判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的剩余流量;If it is determined 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, obtaining the remaining traffic of the first network;
若确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。If it is determined that 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, the first network is determined as the target network.
可选的,若所述检测模块13检测到新的基站信息,则所述终端设备10满足网络切换触发条件;Optionally, if the
则所述处理模块14具体用于:Then the
获取所述新的基站信息对应的第一网络的信号强度;acquiring the signal strength of the first network corresponding to the new base station information;
若获取所述第一网络的信号强度与所述第一数据卡的当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量;If the difference between the acquired signal strength of the first network and the signal strength of the current network of the first data card is greater than a preset signal strength threshold, acquire the remaining traffic of the first network;
若确定出所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。If it is determined that 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, the first network is determined as the target network.
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备满足网络切换触发条件;Optionally, if the
则所述处理模块13具体用于:Then the
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;From the stored base station information list, obtain at least one second network whose network type priority is not lower than the current network;
获取每个第二网络的剩余流量;Get the remaining traffic of each second network;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。According to the remaining traffic of each second network, and according to preset optimal traffic package determination conditions, a second network with an optimal traffic package is selected from the at least one second network as the target network.
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备10满足网络切换触发条件;Optionally, if the
则所述处理模块14用于:Then the
从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;From the stored base station information list, obtain at least one second network whose signal strength is greater than the signal strength threshold;
获取每个第二网络的剩余流量;Get the remaining traffic of each second network;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。According to the remaining traffic of each second network, and according to preset optimal traffic package determination conditions, a second network with an optimal traffic package is selected from the at least one second network as the target network.
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备10满足网络切换触发条件;Optionally, if the
则所述处理模块14具体用于:Then the
从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;From the stored base station information list, obtain at least one second network whose residual traffic is greater than a preset residual traffic threshold;
获取每个第二网络的信号强度;Get the signal strength of each second network;
根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。According to the signal strength of each second network, one second network with the best signal strength is selected from the at least one second network as the target network.
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备10满足网络切换触发条件;Optionally, if the
则所述处理模块14具体用于:Then the
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;From the stored base station information list, obtain at least one second network whose network type priority is not lower than the current network;
获取每个第二网络的剩余流量;Get the remaining traffic of each second network;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。According to the remaining traffic of each second network, and according to preset optimal traffic package determination conditions, a second network with an optimal traffic package is selected from the at least one second network as the target network.
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备10满足网络切换触发条件;Optionally, if the
则所述处理模块14具体用于:Then the
从存储的基站信息列表中,获取至少一个信号强度大于所述信号强度门限的第二网络;From the stored base station information list, obtain at least one second network whose signal strength is greater than the signal strength threshold;
获取每个第二网络的剩余流量;Get the remaining traffic of each second network;
根据每个第二网络的剩余流量,根据预设的最优流量套餐判定条件,从所述至少一个第二网络中选择出最优流量套餐的一个第二网络作为所述目标网络。According to the remaining traffic of each second network, and according to preset optimal traffic package determination conditions, a second network with an optimal traffic package is selected from the at least one second network as the target network.
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备10满足网络切换触发条件;Optionally, if the
则所述处理模块14具体用于:Then the
从存储的基站信息列表中,获取至少一个剩余流量大于预设剩余流量门限的第二网络;From the stored base station information list, obtain at least one second network whose residual traffic is greater than a preset residual traffic threshold;
获取每个第二网络的信号强度;Get the signal strength of each second network;
根据每个第二网络的信号强度,从所述至少一个第二网络中选择出信号强度最优的一个第二网络作为所述目标网络。According to the signal strength of each second network, one second network with the best signal strength is selected from the at least one second network as the target network.
可选的,若所述检测模块13检测到新的基站信息,则所述终端设备10满足网络切换触发条件;Optionally, if the
则所述处理模块14具体用于:Then the
获取所述新的基站信息对应的第一网络的网络类型;acquiring the network type of the first network corresponding to the new base station information;
若判断出所述第一网络的网络类型优先级高于所述第一数据卡的当前网络的网络类型优先级,则获取所述第一网络的信号强度;If it is determined 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;
若确定出所述第一网络的信号强度与所述当前网络的信号强度的差值大于预设的信号强度阈值,则获取所述第一网络的剩余流量和所述当前网络的剩余流量;If it is determined 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 remaining traffic of the current network;
若所述第一网络的剩余流量与所述当前网络的剩余流量的差值大于预设的流量阈值,则将所述第一网络确定为所述目标网络。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, the first network is determined as the target network.
可选的,若所述检测模块13检测到所述第一数据卡的当前网络的信号强度低于预设的信号强度门限,则所述终端设备10满足网络切换触发条件;Optionally, if the
则所述处理模块14具体用于:Then the
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;From the stored base station information list, obtain at least one second network whose network type priority is not lower than the current network;
获取每个第二网络的剩余流量和信号强度;Obtain the remaining traffic and signal strength of each second network;
将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。A second network whose signal strength is greater than the signal strength threshold in at least one second network and satisfies the judgment condition of the optimal data package is used as the target network.
可选的,若所述检测模块检测到所述第一数据卡的当前网络的剩余流量低于预设的剩余流量门限,则所述终端设备10满足网络切换触发条件;Optionally, if the detection module detects that the current network residual traffic of the first data card is lower than a preset residual traffic threshold, the
则所述处理模块14具体用于:Then the
从存储的基站信息列表中,获取至少一个网络类型优先级不低于所述当前网络的第二网络;From the stored base station information list, obtain at least one second network whose network type priority is not lower than the current network;
获取每个第二网络的剩余流量和信号强度;Obtain the remaining traffic and signal strength of each second network;
将至少一个第二网络中信号强度大于所述信号强度门限、且满足最优流量套餐判断条件的第二网络作为所述目标网络。A second network whose signal strength is greater than the signal strength threshold in at least one second network and satisfies the judgment condition of the optimal data package is used as the target network.
本实施例提供的终端设备,用于执行图3至图10任一实施例所述的终端的网络切换方法,其实现原理和技术效果类似,在此不再赘述。The terminal device provided in this embodiment is configured to execute the network switching method of the terminal described in any of the embodiments in FIG. 3 to FIG. 10 , and its implementation principle and technical effect are similar, and details are not repeated here.
图13为本发明实施例提供的终端设备实施例三的结构示意图,如图13所示,该终端设备20包括:第一数据卡21和第二数据卡22,所述第一数据卡21为所述终端设备20当前使用的数据卡,还包括:FIG. 13 is a schematic structural diagram of Embodiment 3 of a terminal device according to an embodiment of the present invention. As shown in FIG. 13 , the
检测模块23,用于检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值;A
处理模块24,用于若所述检测模块检测到所述当前网络已使用的流量超过所述使用流量阈值,则根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络;The
所述处理模块24还用于切换到所述目标网络。The
进一步地,所述处理模块24具体用于:Further, the
从存储的基站信息列表中,根据各网络的网络类型优先级获取至少一个网络类型优先级不低于所述当前网络的第三网络;From the stored base station information list, obtain 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;
按照网络类型优先级由高到低的顺序,根据所述当前网络的信号强度和每个第三网络的信号强度以及各网络的已使用流量,获取信号强度大于预设信号强度门限值且已使用流量未超过所述使用流量阈值的网络作为所述目标网络。According to the order of network type priority from high to low, according to the signal strength of the current network, the signal strength of each third network, and the used traffic of each network, it is obtained that the signal strength is greater than the preset signal strength threshold and has been A network whose traffic does not exceed the used traffic threshold is used as the target network.
进一步地,所述处理模块24具体用于:Further, the
根据所述当前网络的信号强度和每个第三网络的信号强度,获取至少一个信号强度大于预设信号强度门限值的第四网络;According to the signal strength of the current network and the signal strength of each third network, acquiring at least one fourth network whose signal strength is greater than a preset signal strength threshold;
按照网络类型优先级由高到低的顺序,依次检测每个第四网络的已使用流量是否超过所述使用流量阈值;According to the order of network type priority from high to low, sequentially detect whether the used traffic of each fourth network exceeds the used traffic threshold;
若存在一个第四网络的已使用流量未超过所述使用流量阈值,则将该第四网络作为所述目标网络。If there is a fourth network whose used traffic does not exceed the used traffic threshold, the fourth network is used as the target network.
本实施例提供的终端设备,用于执行图3至图10任一实施例所述的终端的网络切换方法,其实现原理和技术效果类似,在此不再赘述。The terminal device provided in this embodiment is configured to execute the network switching method of the terminal described in any of the embodiments in FIG. 3 to FIG. 10 , and its implementation principle and technical effect are similar, and details are not repeated here.
图14为本发明实施例提供的终端设备实施例四的结构示意图,如图14所示,该终端设备20的处理模块24包括:FIG. 14 is a schematic structural diagram of Embodiment 4 of a terminal device according to an embodiment of the present invention. As shown in FIG. 14 , the
判断子模块241,用于判断所述目标网络是否属于第一数据卡;Judging sub-module 241, for judging whether the target network belongs to the first data card;
处理子模块242,用于:Processing sub-module 242 for:
若所述判断子模块241判断出所述目标网络属于第一数据卡,则通过卡内网络切换的方式换到所述目标网络;If the judging sub-module 241 judges that the target network belongs to the first data card, then switch to the target network by means of network switching in the card;
若所述判断子模块241判断出所述目标网络不属于第一数据卡,则将数据业务切换至所述第二数据卡上,并接入所述目标网络。If the judging sub-module 241 judges that the target network does not belong to the first data card, it switches the data service to the second data card and accesses the target network.
本实施例提供的终端设备,用于执行图3至图10任一实施例所述的终端的网络切换方法,其实现原理和技术效果类似,在此不再赘述。The terminal device provided in this embodiment is configured to execute the network switching method of the terminal described in any of the embodiments in FIG. 3 to FIG. 10 , and its implementation principle and technical effect are similar, and details are not repeated here.
结合上述的任一实施例的方法,下面通过终端设备的具体执行模块的细化以及与服务器、基站的交互来说明本发明的技术方案。Combining with the method of any of the above embodiments, the technical solution of the present invention is described below through the refinement of the specific execution module of the terminal device and the interaction with the server and the base station.
图15为本发明实施例提供的终端的网络切换方法的使用架构的示意图,如图15所示,终端设备、基站1、基站2、基站3和资费服务器;其中,参考前述的实施例,终端设备设置有两个数据业务卡,数据业务卡1和数据业务卡2;数据业务卡1支持运营商1提供的4G网络、3G网络和2G网络;数据业务卡2支持运营商2提供的4G网络、3G网络和2G网络。FIG. 15 is a schematic diagram of a usage architecture of a method for network handover of a terminal according to an embodiment of the present invention. As shown in FIG. 15 , a terminal device, base station 1, base station 2, base station 3, and a tariff server; The device is provided with two data service cards, data service card 1 and data service card 2; data service card 1 supports 4G network, 3G network and 2G network provided by operator 1; data service card 2 supports 4G network provided by operator 2 , 3G network and 2G network.
基站1能够提供运营商1的网络服务;基站2能够提供运营商2的网络服务;基站3能够提供运营商1和运营商2的网络服务。Base station 1 can provide network services of operator 1; base station 2 can provide network services of operator 2; base station 3 can provide network services of operators 1 and 2.
进一步的,该终端包括:处理模块控制的网络匹配单元、收发单元、流量管理单元;其中,收发单元的功能可以通过无线接口(Radio Interface Layer,简称:RIL)层实现:终端的射频单元通过搜索附近基站,获得每个基站的网络的信号强度值、每个基站的网络的网络类型,将这些信息通过RIL层返回到安卓框架(Androd Framework)层,并将上述网络信息列表储存在安卓框架层。Further, the terminal includes: a network matching unit, a transceiver unit, and a traffic management unit controlled by the processing module; wherein, the function of the transceiver unit can be realized through a radio interface (Radio Interface Layer, RIL for short) layer: the radio frequency unit of the terminal searches for Nearby base stations, obtain the signal strength value of the network of each base station and the network type of the network of each base station, return this information to the Android framework layer through the RIL layer, and store the above network information list in the Android framework layer. .
所述网络匹配单元的功能可以通过框架层中的多SIM卡电话管理单元(MSimTelephony)和框架层中的智能匹配单元实现,流量管理模块通常设置在应用层:多SIM卡电话模块会匹配对应基站信息,然后选择合适的数据网络为终端提供服务。The function of the network matching unit can be realized by the multi-SIM card telephony management unit (MSimTelephony) in the framework layer and the intelligent matching unit in the framework layer, and the traffic management module is usually arranged in the application layer: the multi-SIM card telephony module will match the corresponding base station. information, and then select the appropriate data network to serve the terminal.
其中,RIL层工作在点对点协议(Point to Point Protocol,PPP)、传输控制协议/因特网互联协议(Transmission Control Protocol/Internet Protocol,TCP/IP)协议之下,负责数据的可靠传输、AT(Attention)命令的发送以及应答消息的解析。并且,RIL层还支持短信息服务(Short Message Service,简称:SMS)、语音呼叫(Voice Call)等功能。Among them, 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, AT (Attention) Sending of commands and parsing of response messages. In addition, the RIL layer also supports functions such as Short Message Service (Short Message Service, SMS for short) and Voice Call.
具体的,对于操作系统为Windows Mobile的智能终端,其RIL层处于无线基带系统的协议栈之上,Windows Mobile的蜂窝核心(Cell Core)层之下。Specifically, for an intelligent terminal whose operating system is Windows Mobile, its RIL layer is above the protocol stack of the wireless baseband system and below the cellular core (Cell Core) layer of Windows Mobile.
对于操作系统为安卓的智能终端,安卓操作系统将RIL层分为两个代码空间:一个部分是RIL守护进程(RIL Daemon),其负责套接字(socket)与应用程序框架进行通信。另外一个部分是RIL守护进程初始化(Vendor RIL),这个部分负责向下通过两种方式与手机的通讯模块进行通信:方式一、直接与手机的通讯模块通信的AT指令通道;方式二、用于传输包数据的数据通道,数据通道用于手机的上网功能。For a smart terminal whose operating system is Android, the Android operating system divides the RIL layer into two code spaces: one part is the RIL Daemon, which is responsible for the socket communication with the application framework. The other part is the RIL daemon initialization (Vendor RIL), which is responsible for communicating with the communication module of the mobile phone in two ways: way 1, the AT command channel that communicates directly with the communication module of the mobile phone; way 2, used for The data channel for transmitting packet data, the data channel is used for the Internet access function of the mobile phone.
另外,流量管理单元,用于与运营商的资费服务器进行交互获取网络的剩余可用流量;可选的,流量信息的形式可以不限于网络的剩余可用流量,也可以为:运营商的套餐信息、运营商的当前流量使用信息等;In addition, the traffic management unit is used to interact with the operator's tariff server to obtain the remaining available traffic of the network; optionally, the form of the traffic information may not be limited to the remaining available traffic of the network, and may also be: the operator's package information, Operator's current traffic usage information, etc.;
网络匹配单元,用于基于网络信息列表包含的上述参数确定最优网络,并将服务网络切换至该最优网络。A network matching unit, configured to determine an optimal network based on the above-mentioned parameters included in the network information list, and switch the serving network to the optimal network.
可选的,网络匹配单元在完成网络切换后,可以将切换提示发送给终端的输出模块,例如显示模块,扬声器等;通过用户界面(User Interface,简称UI)向用户显示切换提示。Optionally, after completing the network switching, the network matching unit may send a switching prompt to an output module of the terminal, such as a display module, a speaker, etc.; and display the switching prompt to the user through a user interface (UI for short).
需要说明的是,网络匹配单元以及流量管理单元的功能,可以通过终端的基带处理器实现。收发单元的功能可以通过移动终端的射频单元实现。It should be noted that the functions of the network matching unit and the traffic management unit may be implemented by the baseband processor of the terminal. The function of the transceiver unit can be realized by the radio frequency unit of the mobile terminal.
下面通过具体实施例,对上文所述终端进行说明,图3为本发明实施例提供的一种终端设备的结构示意图,所述终端设备设置有至少两个数据业务卡,参照图3,该终端设备包括:网络匹配单元、收发单元和流量管理单元;The terminal described above will be described below through specific embodiments. FIG. 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present invention. The terminal device is provided with at least two data service cards. Referring to FIG. The terminal equipment includes: a network matching unit, a transceiver unit and a traffic management unit;
所述收发单元,用于获取网络的信号强度;the transceiver unit, used to obtain the signal strength of the network;
所述流量管理单元,用于获取网络的对应运营商的网络剩余可用流量;The traffic management unit is used to obtain the remaining available traffic of the network corresponding to the operator of the network;
所述网络匹配单元,用于:The network matching unit is used for:
根据所述网络的信号强度、所述网络的对应运营商的网络剩余可用流量和网络的网络类型优先级确定是否进行网络切换;所述网络包含当前服务网络和至少一个可使用的网络;Whether to perform network handover is determined according to the signal strength of the network, the remaining available network traffic of the corresponding operator of the network, and the network type priority of the network; the network includes the current serving network and at least one usable network;
所述当前服务网络为当前为所述终端提供服务的网络;所述至少一个可使用的网络为所述终端能够接入的网络;The current serving network is a network that currently provides services for the terminal; the at least one available network is a network that the terminal can access;
若确定进行网络切换,则将所述终端的当前服务网络切换为第一网络;If it is determined to perform network switching, switching the current serving network of the terminal to the first network;
所述第一网络为满足切换条件的所述至少一个可使用的网络中的一个。The first network is one of the at least one usable network that satisfies the handover condition.
本发明实施例提供的终端设备,通过所述收发模块获取网络的信号强度;所述流量管理模块获取网络的对应运营商的网络剩余可用流量;所述网络匹配模块根据所述网络的信号强度、所述网络的对应运营商的网络剩余可用流量和网络的网络类型优先级,选择出网络性能优于当前网络,且剩余流量最优的目标网络,然后将网络切换至选择的目标网络通过综合网络的信号强度、所述网络的对应运营商的网络剩余可用流量和网络的网络类型优先级等多种因素,选择满足切换条件的网络进行切换,从而充分利用了多卡终端提供的网络资源,提高网络选择的准确性。The terminal device provided by the embodiment of the present invention obtains the signal strength of the network through the transceiver module; the traffic management module obtains the remaining available network traffic of the corresponding operator of the network; the network matching module obtains the network signal strength, The network corresponding to the operator's network remaining available traffic and the network type priority of the network, select the target network whose network performance is better than the current network, and the remaining traffic is optimal, and then switch the network to the selected target network through the integrated network. The signal strength of the network, the network remaining available traffic of the corresponding operator of the network, the network type priority of the network and other factors, select the network that meets the switching conditions for switching, so as to make full use of the network resources provided by the multi-card terminal, improve The accuracy of network selection.
图16为本发明实施例提供的终端的网络切换方法的一具体实现流程图,如图16所示,在上述图15所示的终端设备的具体结构基础上,该终端设备还包括UI。本发明的终端设备通过底层RIL返回基站信息和信号强度变化,及从运营商获取SIM卡流量信息等三个维度进行双卡全网络匹配算法,并最终选出当前实际环境中最适合的数据业务卡及网络,并通过UI层智能切换及提示用户。FIG. 16 is a specific implementation flowchart of a method for network switching of a terminal according to an embodiment of the present invention. As shown in FIG. 16 , based on the specific structure of the terminal device shown in FIG. 15 above, the terminal device further includes a UI. The terminal device of the present invention returns the base station information and signal strength changes through the underlying RIL, and obtains the SIM card traffic information from the operator to perform a dual-card full-network matching algorithm, and finally selects the most suitable data service in the current actual environment. card and network, and intelligently switch and prompt users through the UI layer.
具体的匹配过程为:The specific matching process is as follows:
S11:监测到新的基站信息。终端设备的RIL监测到基站信息发生变化,获取相关的基站信息,该基站信息包含MCC、MNC或者LAC等信息。S11: New base station information is monitored. The RIL of the terminal device detects that the base station information changes, and obtains relevant base station information, where the base station information includes information such as MCC, MNC, or LAC.
S12:存储MCC、MNC信息。多卡手机的电话管理单元,也就是上述处理模块将该些基站信息进行存储。S12: Store MCC and MNC information. The telephone management unit of the multi-card mobile phone, that is, the above processing module, stores the base station information.
S13:对比当前网络与新的基站对应的第一网络的网络类型优先级。并发起对网络类型的对比,对比网络类型优先级确保选出的网络的性能优于当前网络。S13: Compare the network type priority of the current network and the first network corresponding to the new base station. And initiate a comparison of network types, and compare network type priorities to ensure that the performance of the selected network is better than the current network.
S14:指示进行网络匹配。管理单元指示智能网络匹配单元进行一次网络匹配,即如果第一网络的优先级低于当前网络,则结束本次匹配过程。S14: Instruct 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 current matching process is ended.
S15:指示对比当前网络和第一网络的信号强度。该智能网络匹配单元指示Framework层MSimTelephony模块,即图中的电话管理单元获取各网络的信号强度,并进行对比。S15: Instruct to compare the signal strength of the current network and the first network. The intelligent network matching unit instructs the MSimTelephony module of the Framework layer, that is, the telephone management unit in the figure acquires the signal strengths of each network and compares them.
S16:对比第一网络的信号强度和当前网络的信号强度。S16: Compare the signal strength of the first network with the signal strength of the current network.
S17:第一网络的信号强度更高。S17: The signal strength of the first network is higher.
S18:查询第一网络的剩余流量。网络匹配单元向流量管理单元查询第一网络的剩余流量,并与当前网络进行对比。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.
S19:将第一网络的剩余流量和当前网络的剩余流量进行对比。S19: Compare the remaining traffic of the first network with the remaining traffic of the current network.
S20:第一网络的剩余流量更多。得到该第一网络的网络类型优先级、信号强度和剩余流量均满足条件,则确定该第一网络为可以切换的目标网络。S20: The remaining traffic of the first network is more. It is obtained that the network type priority, signal strength and remaining traffic of the first network all meet the conditions, and the first network is determined as a target network that can be switched.
S21:查询第一网络所属的数据卡是否与当前网络相同。查询确定进行卡内网络切换还是卡间网络切换。若查询到属于同一数据卡,则直接进行卡内网络切换即可。若查询到属于不同的数据卡,则需要先切换数据卡,然后再切换网络。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 it is found that it belongs to the same data card, the network switch in the card can be performed directly. If a different data card is found, you need to switch the data card first, and then switch the network.
S22:切换数据卡。S22: Switch the data card.
S23:网络切换提示。通过UI向用户显示切换提示。S23: Network switching prompt. Display a toggle prompt to the user via the UI.
图17为本发明实施例提供的终端的网络切换方法的另一具体实现流程图,如图17所示,在上述图15所示的终端设备的具体结构基础上,该终端设备还包括UI。提供的具体的网络切换的匹配过程的步骤为:FIG. 17 is another specific implementation flowchart of the method for network switching of a terminal provided by an embodiment of the present invention. As shown in FIG. 17 , based on the specific structure of the terminal device shown in FIG. 15 above, the terminal device further includes a UI. The steps of the provided specific network handover matching process are:
S31:监测信号强度变化。终端设备的RIL层监测到当前网络对应的信号强度,并获取当前网络的信号强度或者变化量等数据。S31: Monitor signal strength changes. The RIL layer of the terminal device monitors the signal strength corresponding to the current network, and obtains data such as the signal strength or variation of the current network.
S32:反馈信号强度变化量。S32: Feedback signal strength variation.
S33:对比当前网络的信号强度值是否低于预设信号强度门限。RIL层将该数据反馈给电话管理单元进行对比,如果当前网络的信号强度低于设定的门限值,则触发后续的匹配过程。S33: Compare whether the signal strength value of the current network is lower than a preset signal strength threshold. The RIL layer feeds back the data to the phone management unit for comparison, and if the signal strength of the current network is lower than the set threshold, the subsequent matching process is triggered.
S34:指示进行网络匹配。S34: Instruct to perform network matching.
S35:指示查询本地存储的基站信息列表中的基站信息。S35: Instruct to query the base station information in the locally stored base station information list.
S36:获取多个网络类型优先级不低于当前网络的第二网络。S36: Acquire multiple second networks whose network type priorities are not lower than the current network.
从本地存储的基站信息列表中获取多个优先级不低于当前网络的第二网络。Acquire multiple second networks whose priorities are not lower than the current network from the locally stored base station information list.
S37:指示进行网络匹配。S37: Instruct to perform network matching.
S38:查询每个第二网络的剩余流量。S38: Query the remaining traffic of each second network.
S39:获取第二网络中流量套餐最合理的网络作为目标网络。S39: Obtain the network with the most reasonable data package in the second network as the target network.
即从基站信息列表中,得到该网络类型优先级、信号强度和剩余流量均满足条件的网络作为可以切换的目标网络。That is, from the base station information list, a network that satisfies the conditions of the network type priority, signal strength and remaining traffic is obtained as a target network that can be switched.
S40:查询目标网络所属的数据卡是否与当前网络相同。S40: Query whether the data card to which the target network belongs is the same as the current network.
S41:目标网络所属的数据卡与当前网络不相同。S41: 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 it is found that it belongs to the same data card, the network switch in the card can be performed directly. If a different data card is found, you need to switch the data card first, and then switch the network.
S42:切换数据卡。S42: Switch the data card.
S43:网络切换提示。通过UI向用户显示切换提示。S43: Network switching prompt. Display a toggle prompt to the user via the UI.
图18为本发明实施例提供的终端的网络切换方法的又一具体实现流程图,如图18所示,在上述图15所示的终端设备的具体结构基础上,该终端设备还包括UI。提供的具体的网络切换的匹配过程的步骤为:FIG. 18 is another specific implementation flowchart of the method for network switching of a terminal provided by an embodiment of the present invention. As shown in FIG. 18 , based on the specific structure of the terminal device shown in FIG. 15 , the terminal device further includes a UI. The steps of the provided specific network handover matching process are:
S51:检测到当前使用流量到达限定值。S51: It is detected that the current usage flow reaches the limit value.
S52:反馈流量使用情况。S52: Feedback traffic usage.
流量管理单元通过资费服务器查询或者检测到当前使用流量达到了设置的门限值,或者是剩余流量少于设定的阈值时候,向电话管理单元反馈该信息,触发后续网络切换匹配过程。The traffic management unit inquires through the tariff server or detects that the currently used traffic reaches the set threshold value, or when the remaining traffic is less than the set threshold value, and feeds back the information to the phone management unit to trigger the subsequent network switching matching process.
S53:获取多个网络类型优先级不低于当前网络的第三网络。S53: Obtain multiple third networks whose network type priorities are not lower than the current network.
从本地存储的基站信息列表中获取多个优先级不低于当前网络的第三网络。A plurality of third networks whose priorities are not lower than the current network are acquired from the locally stored base station information list.
S54:指示进行网络匹配。S54: Instruct to perform network matching.
S55:查询各第三网络的信号强度。S55: Query the signal strength of each third network.
S56:最优网络信号强度高于预设信号强度门限值。S56: The optimal network signal strength is higher than the preset signal strength threshold.
网络匹配单元指示电话管理单元获取每个第三网络的信号强度,并进行信号强度的删选,从第三网络中选择出信号强度较好的网络,即信号强度高于设定信号强度门限或者与当前网络的信号强度差值大于设定阈值的一个或者多个第四网络。The network matching unit instructs the telephone management unit to obtain the signal strength of each third network, and deletes the signal strength, 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 whose signal strength difference from the current network is greater than a set threshold.
S57:获取第三网络中信号强度高于信号强度门限值的第四网络。S57: Acquire a fourth network whose signal strength is higher than the signal strength threshold value in the third network.
S58:查询该些第四网络的剩余流量值。S58: Query the remaining traffic values of the fourth networks.
S59:获取第四网络中剩余流量较多或者已使用流量未超过限定值的网络作为目标网络。S59: Acquire a network in the fourth network with more remaining traffic or a network whose used traffic does not exceed a limit value as a target network.
最后,进行网络流量的匹配,从第一网络中选择剩余流量较多或者已使用流量较少的网络作为目标网络,如果不存在这样的网络则放弃本次匹配过程,不进行网络切换。Finally, network traffic is matched, and a network with more remaining traffic or less used traffic is selected from the first network as the target network. If there is no such network, the matching process is abandoned and network switching is not performed.
若存在这样的网络,即得到一个网络类型优先级、信号强度和剩余流量均满足条件的网络作为可以切换的目标网络。If such a network exists, a network that satisfies the network type priority, signal strength and remaining traffic conditions is obtained as a target network that can be switched.
S60:查询目标网络所属的数据卡是否与当前网络相同。S60: Query whether the data card to which the target network belongs is the same as the current network.
S61:目标网络所属的数据卡与当前网络不相同。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 it is found that it belongs to the same data card, the network switch in the card can be performed directly. If a different data card is found, you need to switch the data card first, and then switch the network.
S62:切换数据卡。S62: Switch the data card.
S63:网络切换提示。通过UI向用户显示切换提示。S63: Network switching prompt. Display a toggle prompt to the user via the UI.
上述几个实施例中的技术方案,其实质是通过修改Framework层MSimTelephony模块(即上述的多SIM卡电话管理单元),监听信号强度变化及网络基站信息变化onCellInfoChanged,同时通过手机流量管理模块,从运营商获取双卡流量信息,并监听其变化。基于以上三种信息的监听,当正在使用的数据卡信号强度低于阈值或发现有更好网络的基站信息或当前数据卡流量值低于阈值,都将触发双卡全网络匹配算法,结合所有三种信息的匹配,并最终完成是否需要切换数据卡的策略。The technical solutions in the above-mentioned embodiments are essentially by modifying the Framework layer MSimTelephony module (that is, the above-mentioned multi-SIM card telephone management unit), monitoring the signal strength change and the network base station information change onCellInfoChanged, and simultaneously through the mobile phone traffic management module, from the mobile phone traffic management module. The operator obtains dual-SIM traffic information and monitors its changes. Based on the monitoring of the above three kinds of information, when the signal strength of the data card in use is lower than the threshold, or the base station information with a better network is found, or the current data card traffic value is lower than the threshold, the dual-card full-network matching algorithm will be triggered, combining all The three kinds of information are matched, and finally the strategy of whether to switch the data card is completed.
本发明实施例提供终端的网络切换方法,终端设备在检测到满足网络切换触发条件之后,兼顾网络类型优先级,信号强度及网络套餐流量,选出最适合当前实际场景的数据业务的目标网络,并智能切换,避免出现流量超限断网,无信号导致无法上网或信号差导致网络延迟高的问题。基础双卡的智能切换方案,充分利用双卡双网络手机的优势,随时在两张卡中智能切换,无需用户干预,最大限度提升用户的使用体验。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 selects the target network that is most suitable for the data service of the current actual scene, taking into account the network type priority, signal strength and network package traffic. And intelligent switching, to avoid the problem of network interruption due to traffic exceeding the limit, no signal leading to inability to access the Internet, or poor signal leading to high network delay. The basic dual-card smart switching solution makes full use of the advantages of dual-card dual-network mobile phones, and intelligently switches between the two cards at any time without user intervention, maximizing the user experience.
图19为本发明实施例提供的终端设备一实例的结构示意图;如图19所示,该终端设备可以被具体实现为:包括第一数据卡处理模块和第二数据卡处理模块,第一数据卡处理模块用于将第一数据卡接入终端设备,并且对于第一数据卡中的数据进行读写,同样的第二数据卡处理模块用于接入第二数据卡并读写该第二数据卡的数据,具体的实现中,数据卡处理模块可用读写器来实现,所述第一数据卡为所述终端设备当前使用的数据卡,用于控制可执行指令执行的处理器和用于存储处理器可执行指令的存储器的硬件设备;其中,FIG. 19 is a schematic structural diagram of an example of a terminal device provided by an embodiment of the present invention; as shown in FIG. 19 , the terminal device may be specifically implemented as: including a first data card processing module and a second data card processing module, the first data card processing module The card processing module is used to connect the first data card to the terminal device, and to read and write the data in the first data card. The same second data card processing module is used to access the second data card and read and write the second data card. The data of the data card, in the specific implementation, the data card processing module can be realized by a reader, the first data card is the data card currently used by the terminal device, the processor used to control the execution of executable instructions and the user interface. A hardware device in a memory that stores processor-executable instructions; wherein,
所述处理器用于:检测是否满足网络切换触发条件;若满足网络切换触发条件,则根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;切换到所述确定目标网络。The processor is used to: detect whether the network switching trigger condition is met; if the network switching trigger condition is met, determine the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card; Describe the target network.
其中,第一数据卡处理模块和第二数据卡处理装置可通过硬件接口电路实现,例如:手机中可设置的多个客户识别模块(Subscriber Identity Module,SIM)卡读写器,能够读出SIM卡中的电话薄、短信、以及其他信息,并能完成电话薄的修改,从而备份电话薄。还具有破解功能,能够完成特定SIM卡的烧制。Wherein, the first data card processing module and the second data card processing device can be realized by a hardware interface circuit, for example: a plurality of Subscriber Identity Module (SIM) card readers that can be set in the mobile phone can read the SIM The phone book, short messages, and other information in the card can be modified, and the phone book can be backed up. It also has a cracking function, which can complete the burning of a specific SIM card.
本实施例提供的终端设备,用于执行图3至图10任一实施例所述的终端的网络切换方法,其实现原理和技术效果类似,在此不再赘述。The terminal device provided in this embodiment is configured to execute the network switching method of the terminal described in any of the embodiments in FIG. 3 to FIG. 10 , and its implementation principle and technical effect are similar, and details are not repeated here.
图20为本发明实施例提供的终端设备又一实例的结构示意图;如图20所示,该终端设备可以被具体实现为:包括第一数据卡处理模块和第二数据卡处理模块,与上述实施例类似,第一数据卡处理模块用于将第一数据卡接入终端设备,并且对于第一数据卡中的数据进行读写,同样的第二数据卡处理模块用于接入第二数据卡并读写该第二数据卡的数据,具体的实现中,数据卡处理模块可用读写器来实现,所述第一数据卡为所述终端设备当前使用的数据卡,用于控制可执行指令执行的处理器和用于存储处理器可执行指令的存储器的硬件设备;其中,FIG. 20 is a schematic structural diagram of another example of a terminal device provided by an embodiment of the present invention; as shown in FIG. 20 , the terminal device may be specifically implemented as: including a first data card processing module and a second data card processing module, which are the same as the above-mentioned The embodiment is similar, the first data card processing module is used to connect the first data card to the terminal device, and read and write data in the first data card, and the same second data card processing module is used to access the second data card and read and write the data of the second data card, in the specific implementation, the data card processing module can be realized by a reader, the first data card is the data card currently used by the terminal device, and is used to control executable A processor for execution of instructions and a hardware device for storing a memory for processor-executable instructions; wherein,
所述处理器用于:检测是所述第一数据卡的当前网络已使用的流量是否超过预先配置的使用流量阈值;若检测到所述当前网络已使用的流量超过所述使用流量阈值,则根据所述第一数据卡的各网络的已使用流量、信号强度以及网络类型优先级和所述第二数据卡的各网络的已使用流量、信号强度以及网络类型优先级,确定需要切换的目标网络;切换到所述目标网络。The processor is configured to: detect whether the traffic used by the current network of the first data card exceeds a preconfigured traffic threshold; if it is detected that the traffic used by the current network exceeds the traffic threshold, 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, determine the target network to be switched ; switch to the target network.
其中,第一数据卡处理模块和第二数据卡处理装置可通过硬件接口电路实现,例如:手机中可设置的多个SIM卡读写器,能够读出SIM卡中的电话薄、短信、以及其他信息,并能完成电话薄的修改,从而备份电话薄。还具有破解功能,能够完成特定SIM卡的烧制。Wherein, the first data card processing module and the second data card processing device can be realized by hardware interface circuit, for example: a plurality of SIM card readers can be set in the mobile phone, which can read the phone book, short messages, and Other information, and can complete the modification of the phone book, thus backing up the phone book. It also has a cracking function, which can complete the burning of a specific SIM card.
本实施例提供的终端设备,用于执行图3至图10任一实施例所述的终端的网络切换方法,其实现原理和技术效果类似,在此不再赘述。The terminal device provided in this embodiment is configured to execute the network switching method of the terminal described in any of the embodiments in FIG. 3 to FIG. 10 , and its implementation principle and technical effect are similar, and details are not repeated here.
图21为本发明终端设备的一种具体实现的结构示意图,如图21所示,该终端设备50可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,健身设备,个人数字助理等能够通过数据卡进行数据业务的设备。除了上述的处理器51、显示器52、发送器53和接收器54,该终端设备50还包括以下的一个或者多个组件,具体实现中可以根据实际情况选择:存储器55,电源组件56,多媒体组件57,音频组件58,输入/输出(I/O)的接口59,传感器组件60,以及通信组件61。FIG. 21 is a schematic structural diagram of a specific implementation of the terminal device of the present invention. As shown in FIG. 21 , the
其中,可以安装两个或者两个以上的数据卡,该数据卡是外设的,本不是终端设备本身的部件,而每个数据卡的业务可以通过处理器51来实现,也可以为每个数据卡设置不同的处理器实现其业务。Among them, two or more data cards can be installed, and the data cards are peripherals, not part of the terminal device itself, and the services of each data card can be implemented by the processor 51, or can be used for each data card. Data cards set up different processors to implement their business.
即处理器51通常用于控制终端设备50的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。在该方案中并不限于只包括一个处理器,为了实现更复杂的功能,可以包括一个或多个处理器51来执行指令,以完成上述的方法的全部或部分步骤。此外,处理器51可以包括多媒体模块,以方便多媒体组件57和多个处理器之间的交互。That is, the processor 51 is typically used to control the overall operations of the
存储器55用于存储各种类型的数据以支持在终端设备50的操作。这些数据的示例包括用于在终端设备50上操作的任何应用程序或方法的指令,即也包括上述方法实施例中的技术方案的软件和/或执行的配置信息和程序指令,联系人数据,电话簿数据,消息,图片,视频等。存储器55可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器,电可擦除可编程只读存储器,可擦除可编程只读存储器,可编程只读存储器,磁存储器,快闪存储器,光盘,只读存储器(英文全称:read-only memory,缩写:ROM)、硬盘、固态硬盘、磁带(英文全称:magnetic tape)、软盘(英文全称:floppy disk)。The
电源组件56为终端设备50的各种组件和模块提供电力。电源组件56可以包括电源管理系统,一个或多个电源,及其他与为终端设备50生成、管理和分配电力相关联的组件。多媒体组件57包括在所述终端设备50和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(英文全称:Liquid Crystal Display,简称,LCD)和触摸面板。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件57包括一个前置摄像头和/或后置摄像头。当终端设备57处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Power supply assembly 56 provides power to the various components and modules of
音频组件58用于为输出和/或输入音频信号。例如,音频组件58包括一个麦克风,当终端设备50处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器55或经由通信组件31发送。在一些实施例中,音频组件58还包括一个扬声器,用于输出音频信号。Audio component 58 is used to output and/or input audio signals. For example, the audio component 58 includes a microphone that is configured to receive external audio signals when the
I/O接口59为处理器51和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 59 provides an interface between the processor 51 and a peripheral interface module, and the above-mentioned peripheral interface module can be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
传感器组件30包括一个或多个传感器,用于为终端设备50提供各个方面的状态评估。例如,传感器组件30可以检测到终端设备50的打开/关闭状态,组件的相对定位,例如所述组件为终端设备50的显示器和小键盘,传感器组件30还可以检测终端设备的组件的位置改变,用户与终端设备50接触的存在或不存在,终端设备50方位或加速/减速,以及温度变化。传感器组件30可以包括接近传感器,用来在没有任何的物理接触时检测附近物体的存在。传感器组件30还可以包括光传感器,如互补金属氧化物半导体(英文全称:Complementary Metal Oxide Semiconductor,简称:CMOS)或电荷耦合元件(英文全称:Charge-coupled Device,简称:CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor assembly 30 includes one or more sensors for providing various aspects of the status assessment for the
通信组件61用于终端设备50和其他设备之间有线或无线方式的通信。可以接入基于通信标准的无线网络,如WiFi,2G,3G或4G,或它们的组合。在一个示例性实施例中,通信组件61经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一种具体实现中,所述通信组件31还包括近场通信(Near Field Communication,NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(Radio Frequency IDentification,RFID)技术,红外数据协会(Infrared Data Association,IrDA)技术,超宽带(Ultra Wideband,UWB)技术,蓝牙技术和其他技术来实现。The communication component 61 is used for wired or wireless communication between the
进一步的,终端设备50可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(Programmable Logic Device,PLD)、现场可编程门阵列(Field Programmable Gate Array,FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的包括多个数据卡的终端的网络切换方法,例如该终端中包括第一数据卡和第二数据卡,则具体的用于执行:Further, the
检测是否满足网络切换触发条件;Detect whether the network switching trigger conditions are met;
若满足网络切换触发条件,则所述终端根据第一数据卡的网络信息参数和第二数据卡的网络信息参数确定需要切换的目标网络;If the network switching trigger condition is met, the terminal determines the target network to be switched according to the network information parameters of the first data card and the network information parameters of the second data card;
切换到所述确定目标网络。Switch to the determined target network.
其中,详细的选择目标网络的过程参考方法实施例中的描述,可均通过处理器的控制其他的部件配合执行实现。The detailed process of selecting the target network refers to the description in the method embodiment, which can be implemented through the cooperation of other components controlled by the processor.
在上述终端设备的实施例中,应理解,该处理器可以是中央处理单元(英文全称:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文全称:Digital Signal Processor,简称:DSP)、专用集成电路(英文全称:ApplicationSpecific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the above embodiments of the terminal device, it should be understood that the processor may be a central processing unit (full name in English: Central Processing Unit, abbreviated as: CPU), or other general-purpose processors, digital signal processors (full name in English: Digital signal processor) Signal Processor, abbreviation: DSP), application specific integrated circuit (English full name: Application Specific Integrated Circuit, abbreviation: ASIC) and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510860288.4ACN106817731B (en) | 2015-11-30 | 2015-11-30 | Terminal network switching method and terminal device |
| PCT/CN2016/108050WO2017092678A1 (en) | 2015-11-30 | 2016-11-30 | Network switching method for terminal, and terminal device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510860288.4ACN106817731B (en) | 2015-11-30 | 2015-11-30 | Terminal network switching method and terminal device |
| Publication Number | Publication Date |
|---|---|
| CN106817731A CN106817731A (en) | 2017-06-09 |
| CN106817731Btrue CN106817731B (en) | 2020-08-25 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510860288.4AActiveCN106817731B (en) | 2015-11-30 | 2015-11-30 | Terminal network switching method and terminal device |
| Country | Link |
|---|---|
| CN (1) | CN106817731B (en) |
| WO (1) | WO2017092678A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107277873B (en)* | 2017-06-16 | 2020-05-19 | 奇酷互联网络科技(深圳)有限公司 | Network switching method, device, mobile terminal and computer readable storage medium |
| CN107465821A (en)* | 2017-07-31 | 2017-12-12 | 北京小米移动软件有限公司 | Switch the method and apparatus of mobile terminal data network service |
| CN107295594B (en)* | 2017-08-07 | 2019-01-11 | Oppo广东移动通信有限公司 | Network switching method and device and mobile terminal |
| CN108668328B (en)* | 2018-06-26 | 2021-07-06 | 维沃移动通信有限公司 | A kind of network switching method and mobile terminal |
| CN108990077B (en)* | 2018-08-06 | 2022-05-03 | 广东电网有限责任公司 | SIM card signal detection method and device and computer terminal |
| CN108990044A (en)* | 2018-08-06 | 2018-12-11 | 广东电网有限责任公司 | SIM card communication check method and device |
| CN109151954A (en)* | 2018-10-16 | 2019-01-04 | 奇酷互联网络科技(深圳)有限公司 | Mobile terminal and its double card method for switching network and storage medium |
| CN109548197A (en)* | 2018-11-22 | 2019-03-29 | 深圳市趣创科技有限公司 | Intelligent double card data traffic switching method, device, terminal and storage medium |
| CN109451537B (en)* | 2018-12-03 | 2021-01-29 | Oppo广东移动通信有限公司 | Network distribution method and related equipment |
| WO2020133433A1 (en)* | 2018-12-29 | 2020-07-02 | 深圳市欢太科技有限公司 | Network switching method and related apparatus |
| CN109673032B (en)* | 2018-12-29 | 2021-04-20 | 深圳市天海世界卫星通信科技有限公司 | Network switching method, device, computer readable storage medium and system |
| CN109495939A (en)* | 2019-01-25 | 2019-03-19 | 努比亚技术有限公司 | Method for switching network, device, mobile terminal and computer readable storage medium |
| CN110366221B (en)* | 2019-07-09 | 2021-08-10 | 广东以诺通讯有限公司 | Method for selecting VoWiFi service by dual-card terminal and terminal |
| CN110351706A (en)* | 2019-07-18 | 2019-10-18 | 深圳传音控股股份有限公司 | Address card switching method and mobile terminal |
| CN111800833B (en) | 2019-08-06 | 2022-12-30 | 维沃移动通信有限公司 | Communication processing method, device, equipment and medium |
| CN110572814A (en)* | 2019-08-14 | 2019-12-13 | 深圳市优克联新技术有限公司 | Card selection control method, device, electronic device and storage medium for multi-card equipment |
| CN110611941A (en)* | 2019-08-23 | 2019-12-24 | 珠海格力电器股份有限公司 | Network switching method and device |
| CN111356096B (en)* | 2020-02-24 | 2022-10-28 | 维沃移动通信有限公司 | A kind of information sending method and electronic device |
| CN111601287B (en)* | 2020-04-29 | 2023-08-08 | 维沃移动通信有限公司 | Network switching method, electronic equipment and storage medium |
| CN111526529B (en)* | 2020-04-30 | 2023-03-28 | 维沃移动通信有限公司 | Network prompting method and device and electronic equipment |
| CN111654852B (en)* | 2020-05-29 | 2022-11-08 | Oppo广东移动通信有限公司 | Data card switching method, device, terminal and storage medium |
| CN111885644B (en)* | 2020-06-16 | 2022-09-30 | 太原市高远时代科技有限公司 | Automatic switching method for wired network and wireless network |
| CN112073999B (en)* | 2020-08-24 | 2023-09-29 | 浙江大华技术股份有限公司 | Communication terminal, vehicle-mounted terminal and network switching method thereof |
| CN112469092A (en)* | 2020-11-13 | 2021-03-09 | 深圳市广和通无线股份有限公司 | Multi-card mobile terminal optimal network selection method and device, computer equipment and storage medium |
| CN112566197B (en)* | 2020-11-25 | 2022-11-08 | 深圳市中讯天成科技有限公司 | Network switching control method, equipment and computer readable storage medium |
| CN112770368B (en)* | 2021-02-07 | 2022-12-13 | 北京小米移动软件有限公司 | Network switching method and device, mobile terminal and storage medium |
| CN113163462B (en)* | 2021-02-23 | 2022-11-25 | 深圳市优克联新技术有限公司 | Cellular network switching method and device |
| CN113038556B (en)* | 2021-03-09 | 2022-12-16 | 中国联合网络通信集团有限公司 | Method for dual-card dual-standby terminal to access network, dual-card dual-standby terminal and storage medium |
| CN113795018B (en)* | 2021-08-05 | 2024-07-19 | 维沃移动通信有限公司 | SIM card switching method and device |
| CN113784334A (en)* | 2021-09-14 | 2021-12-10 | 中国联合网络通信集团有限公司 | Card switching method and device |
| CN116419370A (en)* | 2022-01-05 | 2023-07-11 | 荣耀终端有限公司 | Network management method, medium, program product and electronic device |
| CN114666877B (en)* | 2022-02-14 | 2024-04-16 | 南京邮电大学 | A dynamic dormancy energy-saving method for base stations assisted by mobile edge computing based on service types |
| CN115175272B (en)* | 2022-06-06 | 2023-05-26 | 烽火通信科技股份有限公司 | Wireless terminal networking method and device based on family multi-WIFI |
| CN114867075B (en)* | 2022-06-09 | 2024-06-07 | 西安紫光展锐科技有限公司 | Wireless network switching method, device, equipment, storage medium and product |
| CN115087060B (en)* | 2022-06-13 | 2024-11-29 | 多利购科技(广州)有限公司 | Intelligent shopping cart network switching method, system, equipment and medium |
| CN115412982A (en)* | 2022-08-01 | 2022-11-29 | 山东浪潮智慧医疗科技有限公司 | Signal switching system and method based on wifi signal and lte signal |
| CN116056177B (en)* | 2022-08-10 | 2023-11-17 | 荣耀终端有限公司 | Network type switching method and communication equipment |
| CN115915105B (en)* | 2022-11-29 | 2023-07-04 | 优游宝科技(深圳)有限公司 | Method and system for monitoring mobile data flow of esim card based on intelligent algorithm |
| CN117545038B (en)* | 2024-01-09 | 2024-05-31 | 广东世炬网络科技股份有限公司 | Network connection type switching method and device based on mobile position of terminal |
| CN118102351B (en)* | 2024-04-18 | 2024-07-09 | 深圳市迅优电子科技有限公司 | Mobile signal enhancement method and system based on multi-parameter dynamic adjustment strategy |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009132524A1 (en)* | 2008-04-28 | 2009-11-05 | 华为技术有限公司 | A method, system and device for keeping continuity of user's service |
| 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 (en)* | 2007-08-21 | 2012-11-07 | 华为技术有限公司 | Method and terminal for selecting access network |
| US8175635B2 (en)* | 2008-10-14 | 2012-05-08 | Qualcomm Incorporated | Methods and apparatus for system selection in a multimode wireless device |
| CN101668322B (en)* | 2009-09-17 | 2012-06-27 | 华为终端有限公司 | Network switching method of terminal and terminal equipment |
| US8848660B2 (en)* | 2011-03-22 | 2014-09-30 | Amazon Technologies, Inc. | Preferred PLMN list for faster service acquisition |
| KR101933464B1 (en)* | 2012-09-19 | 2018-12-28 | 삼성전자주식회사 | Apparatas and method for changing a connection state of network in an electronic device |
| US20140120859A1 (en)* | 2012-10-25 | 2014-05-01 | Broadcom Corporation | Elevated Priority Call Reliability In Multiple SIM User Equipment |
| CN103619078A (en)* | 2013-11-22 | 2014-03-05 | 中国联合网络通信集团有限公司 | Communication processing method and terminal |
| CN104754659A (en)* | 2013-12-30 | 2015-07-01 | 西安乾易企业管理咨询有限公司 | Intelligent network switching method |
| US9648491B2 (en)* | 2014-02-19 | 2017-05-09 | Mediatek Inc. | Method of selecting an active SIM from multiple SIMs and a wireless device utilizing the same |
| CN104202773B (en)* | 2014-09-01 | 2018-07-13 | 努比亚技术有限公司 | Smart card control method and device based on network flow |
| CN104902528B (en)* | 2015-04-28 | 2018-10-26 | 宇龙计算机通信科技(深圳)有限公司 | The method and apparatus that a kind of double-terminal and its data service are automatically switched |
| CN104954564B (en)* | 2015-06-12 | 2018-07-27 | 小米科技有限责任公司 | SIM card switching method, device and terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009132524A1 (en)* | 2008-04-28 | 2009-11-05 | 华为技术有限公司 | A method, system and device for keeping continuity of user's service |
| Publication number | Publication date |
|---|---|
| WO2017092678A1 (en) | 2017-06-08 |
| CN106817731A (en) | 2017-06-09 |
| Publication | Publication Date | Title |
|---|---|---|
| CN106817731B (en) | Terminal network switching method and terminal device | |
| CN107071799B (en) | Network slice configuration method and device, radio access network RAN node and terminal | |
| US9591675B2 (en) | Method and apparatus for connecting short-range wireless communication in terminal | |
| EP3110188B1 (en) | Method and device for accessing operator network | |
| CN112514472B (en) | Information transmission method and device and storage medium | |
| CN110313201B (en) | Paging method and device | |
| EP3863330B1 (en) | Network switching to a target wireless access network capable of establishing a connection with an ims network | |
| CN107466457B (en) | Method, apparatus, base station and user equipment for reducing user equipment temperature | |
| CN110337825B (en) | Service switching method and device | |
| CN113348697B (en) | Wireless communication method, device and system | |
| CN107465821A (en) | Switch the method and apparatus of mobile terminal data network service | |
| US11197192B2 (en) | Network connection management method, device and system | |
| CN113678524B (en) | Information transmission, paging limiting method and device, communication device and storage medium | |
| KR102436552B1 (en) | Cell type indication method, apparatus and computer readable storage medium | |
| US20230180101A1 (en) | Communication control method and communication control apparatus | |
| CN110651500B (en) | Cell selection method and device, communication device and storage medium | |
| CN104853401A (en) | Method and device for controlling access | |
| CN110637502A (en) | Data processing method and apparatus, electronic device and computer-readable storage medium | |
| CN108616656A (en) | Using the control method of networking, device, terminal and computer readable storage medium | |
| CN108632939A (en) | Paging method, device and computer readable storage medium | |
| CN108207019B (en) | Method and device for registering network | |
| CN112492665B (en) | Random access method and device, PLMN (public land mobile network) identifier sending method and device | |
| CN112616167B (en) | Switching method and device | |
| CN109565710B (en) | Method, device and system for transmitting data | |
| WO2022198417A1 (en) | Information sending method and apparatus, and information receiving method and apparatus |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | Address after:523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Applicant after:HUAWEI DEVICE Co.,Ltd. Address before:523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Applicant before:Huawei terminal (Dongguan) Co.,Ltd. | |
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | Effective date of registration:20210427 Address after:Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after:Honor Device Co.,Ltd. Address before:Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop Patentee before:HUAWEI DEVICE Co.,Ltd. | |
| TR01 | Transfer of patent right | ||
| CP03 | Change of name, title or address | Address after:Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after:Honor Terminal Co.,Ltd. Country or region after:China Address before:3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before:Honor Device Co.,Ltd. Country or region before:China | |
| CP03 | Change of name, title or address |