CN113225726A - Terminal-based switching method and device, terminal and storage medium - Google Patents

Terminal-based switching method and device, terminal and storage medium Download PDF

Info

Publication number
CN113225726A
CN113225726A CN202110302482.6A CN202110302482A CN113225726A CN 113225726 A CN113225726 A CN 113225726A CN 202110302482 A CN202110302482 A CN 202110302482A CN 113225726 A CN113225726 A CN 113225726A
Authority
CN
China
Prior art keywords
card
current
network
network attribute
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110302482.6A
Other languages
Chinese (zh)
Other versions
CN113225726B (en
Inventor
王佳煜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wingtech Communication Co Ltd
Original Assignee
Wingtech Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wingtech Communication Co Ltd filed Critical Wingtech Communication Co Ltd
Priority to CN202110302482.6A priority Critical patent/CN113225726B/en
Publication of CN113225726A publication Critical patent/CN113225726A/en
Application granted granted Critical
Publication of CN113225726B publication Critical patent/CN113225726B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0072Transmission or use of information for re-establishing the radio link of resource information of target access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • H04W36/36Reselection control by user or terminal equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to the technical field of communication, and provides a switching method, a switching device, a terminal and a storage medium based on the terminal, wherein the terminal supports installation of a main card and at least one auxiliary card, and the method comprises the following steps: acquiring the first service resource surplus of the current auxiliary card; if the first service resource residual quantity is larger than or equal to a first threshold value, respectively acquiring a first network attribute characteristic of the current auxiliary card and a second network attribute characteristic of the current main card within preset time; the first network attribute characteristic or the second network attribute characteristic is used for representing the quality of a network signal; and determining whether to execute the switching between the current secondary card and the current primary card according to the first network attribute characteristic and the second network attribute characteristic. By adopting the method, the effect of dynamically switching the main card and the auxiliary card according to the residual quantity of the service resources and the quality of the network signals in different network environments is realized, the effective utilization of the auxiliary card resources is realized, and the power loss of the terminal is reduced.

Description

Terminal-based switching method and device, terminal and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a terminal-based handover method, apparatus, terminal, and storage medium.
Background
As the functions of the mobile terminal improve, at least two phone cards may be simultaneously inserted into the mobile terminal, and such terminals may be collectively referred to as multi-card terminals.
Taking a dual-card terminal as an example, if a terminal demodulator (modem) supports dual radio frequencies and dual protocol stacks, the terminal can support dual cards to perform service transmission simultaneously, but considering the problems of terminal cost and power consumption, the current dual-card terminal is basically implemented based on a single radio frequency system, and in this case, a user needs to set one of the cards as a master card to undertake a major network service. For example, a user sets one of the cards as a main card for providing a mobile data service and the other card for providing a voice service. Of course, for the voice service, the user may not manually set the service, and the terminal may select one of the cards as the main card by default by recognizing the installation positions of the two cards.
After the main card is set, a user can only use the corresponding main card to make a call or surf the internet in the process of using the multi-card terminal, and if the network signal quality of the main card is poor, the existing scheme cannot effectively and dynamically utilize the resources of the auxiliary card on one hand, and on the other hand, the power consumption of the terminal is high.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a terminal-based handover method, apparatus, terminal, and storage medium.
The embodiment of the application provides a switching method based on a terminal, wherein the terminal supports installation of a main card and at least one auxiliary card, and the method comprises the following steps:
acquiring the first service resource surplus of the current auxiliary card;
if the first service resource residual quantity is greater than or equal to a first threshold value, respectively acquiring a first network attribute characteristic of the current auxiliary card and a second network attribute characteristic of the current main card within preset time; wherein the first network attribute characteristic or the second network attribute characteristic is used for characterizing network signal quality;
and determining whether to execute switching between the current auxiliary card and the current main card according to the first network attribute characteristic and the second network attribute characteristic.
In one embodiment, the determining whether to perform the switching between the current secondary card and the current primary card according to the first network attribute characteristic and the second network attribute characteristic includes:
and if the second network attribute characteristic is smaller than a second characteristic threshold value and the first network attribute characteristic is larger than or equal to a first characteristic threshold value, executing switching between the current auxiliary card and the current main card.
In one embodiment, the determining whether to perform the switching between the current secondary card and the current primary card according to the first network attribute characteristic and the second network attribute characteristic includes:
if the second network attribute characteristic is greater than or equal to the second characteristic threshold value, continuing to use the service resource in the current main card as the current use resource of the user; alternatively, the first and second electrodes may be,
and if the second network attribute characteristic is smaller than the second characteristic threshold value and the first network attribute characteristic is smaller than the first characteristic threshold value, continuing to use the service resource in the current main card as the current used resource of the user.
In one embodiment, the method further comprises:
acquiring the second service resource surplus of the current main card;
if the first service resource residual quantity is smaller than the first threshold value and the second service resource residual quantity is smaller than a second threshold value, switching the initially set main card into a new current main card; alternatively, the first and second electrodes may be,
and if the first service resource residual quantity is smaller than the first threshold value and the second service resource residual quantity is larger than or equal to the second threshold value, continuing to use the service resource in the current main card as the current used resource of the user.
In one embodiment, the method further comprises:
determining the current business behavior of a user according to the currently running application program process; wherein the current business behavior comprises a mobile data business behavior or a voice business behavior;
correspondingly, the first remaining amount of service resources includes a remaining data flow or a remaining call duration.
In one embodiment, if it is determined that the current business behavior of the user is the mobile data business behavior, the method further comprises:
determining the network type of the current auxiliary card within the preset time;
correspondingly, the determining whether to perform the switching between the current secondary card and the current primary card according to the first network attribute feature and the second network attribute feature includes:
and determining whether to execute switching between the current auxiliary card and the current main card according to the first network attribute characteristic, the second network attribute characteristic and the network type.
In one embodiment, the determining whether to perform switching between the current secondary card and the current primary card according to the first network attribute feature, the second network attribute feature, and the network type includes:
and if the second network attribute feature is smaller than a second feature threshold, the network type belongs to a preset type, and the first network attribute feature is larger than or equal to a first feature threshold, executing switching between the current auxiliary card and the current main card.
The embodiment of the present application further provides a switching device based on a terminal, where the terminal supports installation of one main card and at least one auxiliary card, and the device includes:
the first service resource surplus obtaining module is used for obtaining the first service resource surplus of the current auxiliary card;
a network attribute feature obtaining module, configured to, if the remaining amount of the first service resource is greater than or equal to a first threshold, respectively obtain a first network attribute feature of the current secondary card and a second network attribute feature of the current primary card within a preset time; wherein the first network attribute characteristic or the second network attribute characteristic is used for characterizing network signal quality;
and the first switching module is used for determining whether to execute the switching between the current auxiliary card and the current main card according to the first network attribute characteristic and the second network attribute characteristic.
The embodiment of the present application further provides a terminal, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the terminal-based handover method provided in any embodiment of the present application when executing the computer program.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the terminal-based handover method provided in any embodiment of the present application is implemented.
According to the switching method, the switching device, the switching terminal and the switching storage medium, when a user determines that the first service resource surplus of the current auxiliary card is larger than or equal to a first threshold value in the terminal using process, namely the service resource surplus of the current auxiliary card is sufficient, the quality of network signal quality of the current main card and the current auxiliary card is determined according to the network attribute characteristics of the current main card and the current auxiliary card, and whether switching between the main card and the auxiliary card is performed is further determined, so that the effect of dynamically switching the main card and the auxiliary card according to the service resource surplus and the network signal quality in different network environments is achieved; the new main card after switching can not only provide sufficient service resources for the user without causing the expense loss of the user, but also provide better network service for the user, thereby realizing the effective utilization of the resources of the auxiliary card; in addition, the dynamic switching of the main card and the auxiliary card ensures that better network service can be maintained in the terminal, the problem that the network service is influenced by poor network signal quality so that the power consumption of the terminal is faster is solved, and the electric quantity loss of the terminal is reduced; in addition, the stability of the network signal quality of the current main card and the current auxiliary card is determined by continuously monitoring the current main card and the current auxiliary card, so that the accuracy of the switching time of the current main card and the current auxiliary card is ensured, and unnecessary switching operation is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a terminal-based handover method in an embodiment;
fig. 2 is a schematic flow chart of a terminal-based handover method in another embodiment;
fig. 3 is a schematic flowchart of a terminal-based handover method in another embodiment;
FIG. 4 is a block diagram of a terminal-based switching device in one embodiment;
fig. 5 is an internal structural view of a terminal in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. The embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In one embodiment, as shown in fig. 1, a terminal-based switching method is provided, which may be implemented by a terminal-based switching device, which may be implemented by software and/or hardware, and may be integrated in any terminal that supports installation of multiple user cards (e.g., including a main card and at least one sub card), such as a smart phone, a tablet computer, and the like, where the user cards include a Subscriber Identity Module (SIM) card and a traffic card (or referred to as a mobile data card).
In the embodiment of the present disclosure, no matter what type of service is, for example, a voice service or a mobile data service, the current primary card refers to a user card that provides a network service for a user during a process in which the user uses the terminal at a current stage, and the current secondary card includes any user card except the current primary card in the terminal. Moreover, based on the technical scheme of the embodiment of the present disclosure, the roles of the current primary card and the current secondary card are continuously and dynamically changed according to the change of the network environment. That is, the technical scheme of the embodiment of the present disclosure may be executed in real time during the process of using the terminal by the user, including monitoring the remaining amount of the service resources of the current primary card and the current secondary card and the quality of the network signals of the current primary card and the current secondary card in real time, so as to accurately determine the switching time of the current primary card and the current secondary card, achieve the effect of providing better network service for the user persistence, solve the problem of fast terminal power loss caused by the fact that the terminal primary card bears the service in a weak signal environment, and avoid influencing the internet surfing or conversation experience of the user when the terminal primary card is in a weak signal environment.
As shown in fig. 1, the terminal-based handover method may include:
step 101, obtaining the first service resource surplus of the current secondary card.
The first remaining amount of the service resource refers to a remaining service resource available to the user in the secondary card based on a service type currently used by the user, for example, for a voice service, the first remaining amount of the service resource includes a remaining call duration (or called a remaining call minute number), and for a mobile data service, the first remaining amount of the service resource includes a remaining data traffic. The terminal may determine the remaining amount of the first service resource in real time by monitoring the service resource usage of the current secondary card, for example, the terminal may determine the remaining amount of the first service resource by monitoring the total monthly available data traffic or the total available call duration of the current secondary card and the real-time resource consumption of the current secondary card.
102, if the first service resource residual quantity is greater than or equal to a first threshold value, respectively acquiring a first network attribute characteristic of a current auxiliary card and a second network attribute characteristic of a current main card within preset time; wherein the first network attribute characteristic or the second network attribute characteristic is used for characterizing the network signal quality.
The first threshold value can be flexibly set according to actual requirements. If the first service resource remaining amount is greater than or equal to the first threshold, that is, the remaining resource amount of the current secondary card is sufficient, it can be ensured that no extra cost is generated when the secondary card is used to provide network service for the user. And respectively acquiring the network attribute characteristics of the current auxiliary card and the current main card within preset time, namely continuously monitoring the network attribute characteristics of the current auxiliary card and the current main card within the preset time. Through continuous monitoring, the stability of the network signal quality of the current main card and the current auxiliary card can be determined, the accuracy of the switching time of the current main card and the current auxiliary card is ensured, and unnecessary switching operation is reduced. The value of the preset time can also be flexibly set, for example, the preset time can be set to 5 minutes.
In one embodiment, the obtaining a first network attribute feature of the current secondary card and a second network attribute feature of the current primary card respectively includes:
respectively acquiring a first network attribute characteristic of a current auxiliary card and a second network attribute characteristic of a current main card through a demodulator in a terminal; wherein the first network attribute characteristic or the second network attribute characteristic each comprises at least one of a network signal strength and a network signal to noise ratio.
The demodulator in the terminal has a function of acquiring cell information corresponding to the current primary card or the current secondary card, where the cell information may include, but is not limited to, Radio Access Technology (RAT), network signal strength, network signal to noise ratio, and the like, which are occupied by the current primary card or the current secondary card in real time.
And 103, determining whether to execute the switching between the current auxiliary card and the current main card according to the first network attribute characteristic and the second network attribute characteristic.
And determining the quality of the network signal of the current main card and the current auxiliary card according to the network attribute characteristics of the current main card and the current auxiliary card, and further determining whether to perform dynamic switching between the main card and the auxiliary card.
For example, if the current primary card is a mobile phone card provided by an operator a, the current secondary card is a mobile phone card provided by an operator B, and if the remaining amount of service resources on the current secondary card is sufficient, the network signal quality of the current primary card is poor, and the network signal quality of the current secondary card is good, the terminal may set the mobile phone card provided by the operator B as a new primary card and set the mobile phone card provided by the operator a as a new secondary card, thereby implementing switching between the current primary card and the current secondary card, and then the user may use the mobile phone card provided by the operator B to surf the internet or make a call.
In one embodiment, determining whether to perform a handover between the current secondary card and the current primary card according to the first network attribute characteristic and the second network attribute characteristic includes: if the second network attribute feature is smaller than the second feature threshold and the first network attribute feature is greater than or equal to the first feature threshold, the switching between the current secondary card and the current primary card is executed, that is, the service resource in the new primary card after the switching can be used as the current used resource of the user.
Specifically, if the second network attribute feature is smaller than the second feature threshold, it indicates that the network signal quality of the current primary card is poor, and the first network attribute feature is greater than or equal to the first feature threshold, which indicates that the network signal quality of the current secondary card is good, the current secondary card may be switched to a new primary card, and the current primary card may be switched to a new secondary card. Then, based on the new main card after switching, a mobile data service with better internet access quality is provided for the user, or a voice service with better conversation quality is provided for the user, so that the effective utilization of the current auxiliary card resource is realized, and the problem of faster terminal power loss caused by the fact that the current main card of the terminal is in the service bearing service under the weak signal environment is solved.
For the current master card, the second characteristic threshold corresponding to the network signal strength comprises a second strength threshold (or referred to as a weak signal threshold), and the second characteristic threshold corresponding to the network signal to noise ratio comprises a second signal to noise ratio threshold (or referred to as an interference threshold); for the current secondary card, the first characteristic threshold corresponding to the network signal strength comprises a first strength threshold, and the first characteristic threshold corresponding to the network signal-to-noise ratio comprises a first signal-to-noise ratio threshold. The value of each threshold can be flexibly set, and the embodiment of the disclosure is not particularly limited. And, if the current primary card and the current secondary card belong to different network systems, the second characteristic threshold and the first characteristic threshold may be set to different values according to different network systems, respectively.
The second network attribute feature is considered to be less than the second feature threshold if at least one of the second network attribute features of the current master card is less than the corresponding threshold, i.e., illustratively, the second network attribute feature is considered to be less than the second feature threshold if the network signal strength in the second network attribute feature is less than the second strength threshold, or if the network signal to noise ratio in the second network attribute feature is less than the second signal to noise ratio threshold, or if both the network signal strength and the network signal to noise ratio in the second network attribute feature are less than the respective corresponding thresholds. And if each attribute feature in the first network attribute features of the current secondary card is greater than or equal to the corresponding threshold, the first network attribute features are considered to be greater than or equal to the first feature threshold, so that the accuracy of determining the network signal quality can be ensured.
In one embodiment, determining whether to perform a handover between the current secondary card and the current primary card according to the first network attribute characteristic and the second network attribute characteristic includes:
if the second network attribute characteristic is greater than or equal to the second characteristic threshold value, the service resource in the current main card is continuously used as the current used resource of the user, namely the switching between the current auxiliary card and the current main card is not executed; or, if the second network attribute characteristic is smaller than the second characteristic threshold and the first network attribute characteristic is smaller than the first characteristic threshold, the service resource in the current main card is continuously used as the current used resource of the user, that is, the switching between the current auxiliary card and the current main card is not executed.
Specifically, if the second network attribute characteristic is greater than or equal to the second characteristic threshold, it indicates that the network signal quality of the current primary card is better, and even if the current secondary card can provide sufficient service resources, the switching of the primary and secondary cards is not performed, or when it is determined that the network signal quality of both the current primary card and the current secondary card is poor, the switching of the primary and secondary cards is not performed, because the network service quality is not improved even if the primary and secondary cards are switched, thereby reducing unnecessary switching operations.
For example, if each of the second network attribute features of the current master card is greater than or equal to the corresponding threshold, the second network attribute feature may be considered to be greater than or equal to the second feature threshold; and if at least one of the first network attribute characteristics of the current secondary card is smaller than the corresponding threshold value, the first network attribute characteristics are considered to be smaller than the first characteristic threshold value.
According to the technical scheme of the embodiment of the disclosure, in the process of using the terminal by a user, when the first service resource residual quantity of the current auxiliary card is determined to be greater than or equal to a first threshold value, namely the service resource residual quantity of the current auxiliary card is relatively sufficient, the quality of the network signal quality of the current main card and the current auxiliary card is determined according to the network attribute characteristics of the current main card and the current auxiliary card, and then whether the switching between the main card and the auxiliary card is carried out is determined, so that the effect of dynamically switching the main card and the auxiliary card according to the service resource residual quantity and the network signal quality in different network environments is realized; the new main card after switching can not only provide sufficient service resources for the user without causing the expense loss of the user, but also provide better network service for the user, thereby realizing the effective utilization of the resources of the auxiliary card; in addition, the dynamic switching of the main card and the auxiliary card ensures that better network service can be maintained in the terminal, the problem that the power loss of the terminal is faster due to the influence of poor network signal quality on the network service is solved, and the power loss of the terminal is reduced; in addition, the stability of the network signal quality of the current main card and the current auxiliary card is determined by continuously monitoring the current main card and the current auxiliary card, so that the accuracy of the switching time of the current main card and the current auxiliary card is ensured, and unnecessary switching operation is reduced.
In one embodiment, the terminal-based handover method further includes: after acquiring the first service resource surplus of the current auxiliary card, continuously acquiring the second service resource surplus of the current main card; the second service resource residual amount is equal to the first service resource residual amount, and means that based on the service type currently used by the user, the remaining service resources available for the user in the current master card, for example, the second service resource residual amount includes the remaining data traffic or the remaining call duration; the terminal can also determine the residual amount of the second service resource in real time by monitoring the service resource use condition of the current main card; and, for the same service type, the second service resource and the first service resource are service resources of the same type, for example, both are data traffic or both are call duration, etc.
If the first service resource residual quantity is smaller than a first threshold value and the second service resource residual quantity is smaller than a second threshold value, switching the initially set main card into a new current main card; or, if the first service resource remaining amount is less than the first threshold and the second service resource remaining amount is greater than or equal to the second threshold, the service resource in the current main card is continuously used as the current used resource of the user, that is, the switching between the current auxiliary card and the current main card is not executed.
Specifically, if the first remaining amount of the service resource is less than the first threshold and the second remaining amount of the service resource is less than the second threshold, it indicates that the remaining amounts of the current secondary card and the current primary card are both small, and if the switching of the primary card and the secondary card is continued, there is a case where an extra fee is generated by using the primary card that is not initially set, which brings a certain consumption loss to the user.
It should be noted that, in the present solution, based on different network environments, that is, changes in network signal quality of the user card, the primary card and the secondary card may be in continuous role switching to ensure that a better network service is provided for the user, and therefore, the current primary card or the current secondary card cannot determine whether the primary card is the primary card initially set, and therefore, when the remaining amount of the service resources of the current primary card and the current secondary card is small, the terminal may switch the primary card initially set to a new primary card according to the recorded primary card information initially set, such as a card identifier or a card number used for uniquely marking the user. The initially set main card may refer to a main card manually set by a user in advance, or may be a main card automatically identified by the terminal according to the installation position of the user card.
If the residual quantity of the service resources of the current auxiliary card is less and the residual quantity of the service resources of the current main card is more, the current main card is continuously used for providing network service for the user, and additional consumption on the current auxiliary card is avoided.
In an embodiment, as shown in fig. 2, a handover method based on a terminal is provided, and based on the above technical solution, further optimization and expansion are performed, and reference may be made to the description of the above embodiment for the same steps in fig. 2 as in fig. 1.
As shown in fig. 2, the terminal-based handover method includes:
step 201, determining the current business behavior of a user according to the currently running application program process; wherein the current business behavior comprises a mobile data business behavior or a voice business behavior.
In the embodiment of the disclosure, the terminal may determine whether the service behavior of the user changes by monitoring the currently running application program process in real time, determine the current service behavior of the user in real time, and then determine whether to execute the switching between the primary card and the secondary card based on the remaining amount of the service resources of the current secondary card and the current primary card and the quality of the network signals of the current primary card and the current secondary card.
For example, if the terminal monitors that the currently running application program process is a dialing application program process, it may be determined that the current service behavior of the user is a voice service behavior, that is, the user has a demand for making a call; if the terminal monitors that the currently running application program process is a browser application program process, or an online audio and video player application program process, or an online game application program process, or a navigation application program process, or an instant messaging application program process, or other application program processes needing to consume data traffic, it can be determined that the current business behavior of the user is a mobile data business behavior, that is, the user has a demand for surfing the internet. Correspondingly, the remaining amount of the first service resource includes the remaining data traffic or the remaining call duration.
If the current business behavior of the user is the mobile data business behavior, step 205 and 208 are executed; if the current business behavior of the user is a voice business behavior, step 202 and step 204 are executed.
Step 202, obtaining the remaining call duration of the current secondary card.
Step 203, if the remaining call duration is greater than or equal to the first duration threshold, respectively acquiring a first network attribute feature of the current secondary card and a second network attribute feature of the current primary card within a preset time.
Wherein the first network attribute characteristic or the second network attribute characteristic is used for characterizing the network signal quality.
And step 204, determining whether to execute the switching between the current auxiliary card and the current main card according to the first network attribute characteristic and the second network attribute characteristic.
After the current main card and the current auxiliary card are switched, a voice service with better conversation quality can be provided for the user based on the new main card after switching, for example, the user uses the new main card to make a call.
Step 205, obtaining the remaining data traffic of the current secondary card.
In step 206, if the remaining data traffic is greater than or equal to the first traffic threshold, the first network attribute feature of the current secondary card and the second network attribute feature of the current primary card are respectively obtained within a preset time.
Wherein the first network attribute characteristic or the second network attribute characteristic is used for characterizing the network signal quality.
Step 207, determining the network type of the current secondary card within the preset time.
The network type is used to indicate the mobile network type of the current secondary card, and may be, for example, 2G, 3G, 4G, or 5G. Specifically, the terminal may obtain the network type of the current secondary card by monitoring cell information reported in the demodulator.
And step 208, determining whether to execute switching between the current auxiliary card and the current main card according to the first network attribute characteristic, the second network attribute characteristic and the network type.
The network type of the current auxiliary card is directly related to the network data transmission efficiency when the user surfs the internet, and the internet surfing experience of the user is directly influenced. Aiming at the mobile data service behavior of a user, the switching time of the current main card and the current auxiliary card is determined according to the first network attribute characteristic, the second network attribute characteristic and the network system type, the determination accuracy of the switching time is ensured, invalid main card and auxiliary card switching operation can be effectively reduced, for example, if the network speed of the user accessing the internet is poor and network signals are unstable when the current auxiliary card is determined to provide network service according to the network system type of the current auxiliary card, the switching between the current main card and the current auxiliary card can not be executed.
In one embodiment, determining whether to perform switching between the current secondary card and the current primary card according to the first network attribute feature, the second network attribute feature and the network type includes:
and if the second network attribute feature is smaller than the second feature threshold, the network type belongs to the preset type, and the first network attribute feature is larger than or equal to the first feature threshold, executing switching between the current auxiliary card and the current main card.
The preset type of the network type may refer to a specific network type in which the network data transmission efficiency exceeds a transmission threshold (a value may be adaptively set), for example, a 4G or 5G mobile network. Under the preset type of the network system, the mobile network quality of the current secondary card is considered to be better, for example, the network signal transmission speed is higher, the network signal is more stable, and the like, so that the current card using requirements of a user can be better met. After the current main card and the current auxiliary card are switched, a mobile data service with better internet surfing quality can be provided for the user based on the new main card after switching, for example, the user uses the new main card to surf the internet and the like
If the network type of the current auxiliary card in the preset time is determined not to belong to the preset type, the service resource in the current main card is continuously used as the current used resource of the user, namely the current main card is kept, and the switching operation of the current main card and the current auxiliary card is not executed.
According to the technical scheme of the embodiment of the disclosure, the terminal can determine the current business behavior of the user by monitoring the current running application program process in real time, so that the judgment process of the switching time of the main card and the auxiliary card under each business behavior is executed, the determination effectiveness and the accuracy of the current switching time of the main card and the auxiliary card are ensured, the current auxiliary card resource is fully utilized, and better network service is continuously provided for the user, such as fast internet surfing speed or good conversation quality; meanwhile, the dynamic switching of the main card and the auxiliary card reduces the condition that the main card of the terminal bears business service in a weak signal environment, reduces the power consumption of the terminal and saves the electric quantity of the terminal.
In one embodiment, as shown in fig. 3, a terminal-based handover method is provided for further illustrating the embodiments of the present disclosure, and the terminal-based handover method includes:
step 301, determining the current business behavior of the user according to the currently running application program process. If the current business behavior of the user is the voice business behavior, executing step 302-step 309; if the user's current business behavior is a mobile data business behavior, steps 310-318 are performed.
Step 302, voice service behavior.
Step 303, whether the remaining call duration of the current secondary card is smaller than the first duration threshold.
For example, the first time threshold may be set to 30 minutes, and it is determined whether the remaining call time of the current secondary card is less than 30 minutes. If so, that is, the remaining call duration of the current secondary card is less, then step 308 is executed to continuously determine whether the remaining call duration of the current primary card is less than a second duration threshold; if not, that is, the remaining call duration of the current secondary card is more, step 304 is executed.
Step 304, determining whether the second network attribute feature of the current master card is smaller than a second feature threshold value within a preset time.
The second network attribute feature includes at least one of a network signal strength and a network signal to noise ratio, the second feature threshold corresponding to the network signal strength includes a second strength threshold (or referred to as a weak signal threshold), and the second feature threshold corresponding to the network signal to noise ratio includes a second signal to noise ratio threshold (or referred to as an interference threshold). The preset time may be set to 5 minutes, for example, and the determining whether the second network attribute characteristic of the current master card is smaller than the second characteristic threshold value within the preset time includes: and determining whether the network signal strength of the current main card is continuously less than a second strength threshold value within 5 minutes (for example, the network signal strength can be set to be LTE/NR: -110dbm), and/or whether the network signal-to-noise ratio of the current main card is continuously less than a second signal-to-noise ratio threshold value (for example, the network signal strength can be set to be LTE/NR: 3db), if at least one of the foregoing determination results is yes, namely, the network signal quality of the current main card is determined to be poor, executing step 305, continuing to determine the network signal quality of the current secondary card, otherwise, executing step 307.
Step 305, determining whether the first network attribute feature of the current secondary card in the preset time is smaller than a first feature threshold.
The first network attribute feature comprises at least one of network signal strength and network signal to noise ratio, the first feature threshold corresponding to the network signal strength comprises a first strength threshold, and the first feature threshold corresponding to the network signal to noise ratio comprises a first signal to noise ratio threshold. The preset time may be set to 5 minutes, for example, and the determining whether the first network attribute characteristic of the current secondary card within the preset time is less than the first characteristic threshold includes: and determining whether the network signal strength of the current secondary card is continuously less than a first strength threshold value within 5 minutes (for example, the network signal strength can be set to be LTE/NR: -110dbm), and/or whether the network signal-to-noise ratio of the current secondary card is continuously less than a first signal-to-noise ratio threshold value (for example, the network signal-to-noise ratio can be set to be LTE/NR: 3db), if at least one of the judgment results is yes, namely the network signal quality of the current secondary card is determined to be poor, executing a step 307, and otherwise executing a step 306.
Step 306, select the secondary card as the primary card. That is, switching between the current main card and the current sub card is performed so that the user makes a call using the new main card after the switching.
Step 307, the current master card is retained. Namely, the switching between the current main card and the current auxiliary card is not executed, and the user continues to use the current main card to make a call.
And 308, whether the remaining call time of the current main card is smaller than a second time threshold value or not.
For example, the second duration threshold may be set to 30 minutes, and it is determined whether the remaining call duration of the current master card is less than 30 minutes. If so, that is, the remaining call duration of the current main card is small, step 309 is executed, and at this time, the remaining call durations of the current main card and the current auxiliary card are small, and the main card is switched to the initially set main card, that is, the main card with the initially default setting is used for voice service behavior consumption; if not, that is, the remaining call duration of the current main card is longer, and the remaining call duration of the current auxiliary card is shorter, step 307 is executed, the current main card is kept, and the user continues to use the current main card to make a call.
Step 309, switch to the initially configured master card. The master card is a master card for providing a network service set by default for a voice service.
Step 310, mobile data traffic behavior. Such as using applications that need to consume mobile data traffic, and the like, such as specifically watching online video, navigating location, experiencing online games, searching online, chatting with instant messenger, and the like.
And 311, whether the residual data flow of the current secondary card is smaller than a first flow threshold value or not.
For example, the first traffic threshold may be set to 20Mbps, and it is determined whether the remaining data traffic of the current secondary card is less than 20 Mbps. If so, that is, the remaining data traffic of the current secondary card is less, then step 317 is executed to continuously determine whether the remaining data traffic of the current primary card is less than the second traffic threshold; if not, that is, the remaining data traffic of the current secondary card is more, step 312 is executed.
Step 312, determine whether the second network attribute characteristic of the current master card within the preset time is smaller than a second characteristic threshold.
Step 312 and step 304 belong to the same operation, and reference may be made to the above description. If yes, i.e. the network signal quality of the current master card is poor, step 313 is performed, and if no, step 316 is performed.
Step 313, in the preset time, determining whether the network type of the current secondary card belongs to a preset type.
The preset type may include, for example, a 4G or 5G mobile network, and under the preset type, the mobile network quality of the current secondary card is considered to be better, for example, the network signal transmission speed is faster, the network signal is more stable, and the like, so that the current card using requirements of the user can be better met. If so, step 314 is performed, and if not, step 316 is performed,
step 314, determining whether the first network attribute feature of the current secondary card is smaller than a first feature threshold value within a preset time.
Step 314 and step 305 belong to the same operation, and reference may be made to the above description. If yes, i.e. the network signal quality of the current secondary card is also poor, step 316 is executed, and if no, step 315 is executed.
Step 315, select the secondary card as the primary card. I.e., performing a switch between the current main card and the current sub-card, the user can surf the web using the new main card after the switch.
Step 316, the current master card is retained. I.e. no switching between the current main card and the current secondary card is performed, the user can continue to surf the web using the current main card.
In step 317, whether the remaining data traffic of the current master card is less than the second traffic threshold is determined.
For example, the second traffic threshold may be set to 20Mbps, and it is determined whether the remaining data traffic of the current master card is less than 20 Mbps. If so, that is, the remaining data traffic of the current primary card is also small, step 318 is executed, and at this time, the remaining data traffic of the current primary card and the current secondary card is small, and the primary card is switched to the primary card set initially, that is, the primary card set initially by default is used for internet access consumption; if not, that is, the remaining data traffic of the current main card is more, and the remaining data traffic of the current auxiliary card is less, step 316 is executed to keep the current main card, and the user continues to use the current main card to surf the internet.
And step 318, switching to the initially set main card. The master card is a master card for providing network services, which is set by default for the mobile data service.
It should be noted that, each threshold mentioned in the embodiment of the present disclosure may be flexibly valued according to a requirement, and each threshold set for the current secondary card and each threshold set for the current primary card may be the same value or different values, and the embodiment of the present disclosure is not limited specifically. For example, the first flow threshold and the second flow threshold, the first duration threshold and the second duration threshold, or the first characteristic threshold and the second characteristic threshold may be respectively set to the same value or may be set to different values.
In the embodiment of the disclosure, whether the current service behavior of a user belongs to a voice service behavior or a mobile data service behavior is determined by monitoring the application program process currently running by a terminal, for each service behavior, firstly, the service resource residual amount of the current secondary card is judged, and under the condition that the service resource residual amount of the current secondary card is more, the conditions that the network signal quality of the current primary card is poor and the network signal quality of the current secondary card is better are determined, and switching between the current primary card and the current secondary card is executed, so that the new primary card after switching can provide sufficient service resources for the user, the expense loss of the user cannot be caused, better network service can be provided for the user, the phenomenon of slow internet access or poor call quality is improved, and the electric quantity loss of the terminal is reduced; when the service resource surplus of the current auxiliary card is less and the service resource surplus of the current main card is more, the current main card is continuously kept, the service resource in the current main card is continuously used as the current used resource of the user, and unnecessary card switching operation is reduced; and under the condition that the residual quantity of the service resources of the current auxiliary card and the current main card is less, switching to the initially set main card to ensure that the subsequent expense consumption meets the consumption requirement set by the user.
It should be understood that although the various steps in the flow charts of fig. 1-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a terminal-based switching apparatus 400, comprising: a first service resource surplus obtaining module 401, a network attribute feature obtaining module 402, and a first switching module 403, where:
a first service resource surplus obtaining module 401, configured to obtain a first service resource surplus of a current secondary card;
a network attribute feature obtaining module 402, configured to, if the remaining amount of the first service resource is greater than or equal to a first threshold, respectively obtain a first network attribute feature of the current secondary card and a second network attribute feature of the current primary card within a preset time; the first network attribute characteristic or the second network attribute characteristic is used for representing the quality of a network signal;
a first switching module 403, configured to determine whether to perform a switching between the current secondary card and the current primary card according to the first network attribute characteristic and the second network attribute characteristic.
In one embodiment, the first switching module 403 includes:
and the first switching unit is used for executing switching between the current auxiliary card and the current main card if the second network attribute characteristic is smaller than a second characteristic threshold value and the first network attribute characteristic is larger than or equal to a first characteristic threshold value.
In one embodiment, the first switching module 403 includes:
the first holding unit is used for continuing to use the service resource in the current main card as the current use resource of the user if the second network attribute characteristic is larger than or equal to a second characteristic threshold value; alternatively, the first and second electrodes may be,
and the second holding unit is used for continuing to use the service resource in the current main card as the current used resource of the user if the second network attribute characteristic is smaller than the second characteristic threshold value and the first network attribute characteristic is smaller than the first characteristic threshold value.
In one embodiment, the terminal-based switching device 400 further comprises:
the second service resource surplus obtaining module is used for obtaining the second service resource surplus of the current main card;
the second switching module is used for switching the initially set main card into a new current main card if the first service resource residual quantity is smaller than a first threshold value and the second service resource residual quantity is smaller than a second threshold value; alternatively, the first and second electrodes may be,
and the maintaining module is used for continuing to use the service resource in the current main card as the current use resource of the user if the first service resource residual quantity is smaller than the first threshold value and the second service resource residual quantity is larger than or equal to the second threshold value.
In one embodiment, the terminal-based switching device 400 further comprises:
the service behavior determining module is used for determining the current service behavior of the user according to the currently running application program process; the current business behavior comprises a mobile data business behavior or a voice business behavior;
correspondingly, the remaining amount of the first service resource includes the remaining data traffic or the remaining call duration.
In one embodiment, if it is determined that the current traffic behavior of the user is a mobile data traffic behavior, the terminal-based switching arrangement 400 further comprises:
the network system type determining module is used for determining the network system type of the current auxiliary card within preset time;
correspondingly, the first switching module 403 is specifically configured to:
and determining whether to execute the switching between the current auxiliary card and the current main card according to the first network attribute characteristic, the second network attribute characteristic and the network type.
In one embodiment, the first switching module 403 includes:
and the second switching unit is used for executing switching between the current auxiliary card and the current main card if the second network attribute characteristic is smaller than a second characteristic threshold value, the network type belongs to a preset type, and the first network attribute characteristic is larger than or equal to a first characteristic threshold value.
According to the technical scheme of the embodiment of the disclosure, in the process of using the terminal by a user, when the first service resource residual quantity of the current auxiliary card is determined to be greater than or equal to a first threshold value, namely the service resource residual quantity of the current auxiliary card is relatively sufficient, the quality of the network signal quality of the current main card and the current auxiliary card is determined according to the network attribute characteristics of the current main card and the current auxiliary card, and then whether the switching between the main card and the auxiliary card is carried out is determined, so that the effect of dynamically switching the main card and the auxiliary card according to the service resource residual quantity and the network signal quality in different network environments is realized; the new main card after switching can not only provide sufficient service resources for the user without causing the expense loss of the user, but also provide better network service for the user, thereby realizing the effective utilization of the resources of the auxiliary card; in addition, due to the dynamic switching of the main card and the auxiliary card, better network service can be maintained in the terminal, the problem that the power consumption of the terminal is faster due to the influence of poor network signal quality on the network service is solved, and the power consumption of the terminal is reduced; in addition, the stability of the network signal quality of the current main card and the current auxiliary card is determined by continuously monitoring the current main card and the current auxiliary card, so that the accuracy of the switching time of the current main card and the current auxiliary card is ensured, and unnecessary switching operation is reduced.
For specific limitations of the terminal-based handover apparatus, reference may be made to the above limitations of the terminal-based handover method, which are not described herein again. The respective modules in the above terminal-based switching apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the terminal, and can also be stored in a memory in the computer equipment in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a terminal is provided, an internal structure of which may be as shown in fig. 5. The terminal comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the terminal is configured to provide computing and control capabilities. The memory of the terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the terminal is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, Near Field Communication (NFC) or other technologies. The computer program is executed by a processor to implement a terminal based handover method. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen, and the input device of the terminal can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the terminal, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the terminal to which the present application is applied, and that a particular terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the terminal-based switching device provided by the present application can be implemented in the form of a computer program, which can be run on the terminal as shown in fig. 5. The memory of the terminal may store various program modules constituting the terminal-based switching apparatus, such as a first service resource surplus acquiring module 401, a network attribute feature acquiring module 402 and a first switching module 403 shown in fig. 4. The computer program constituted by the respective program modules causes the processor to execute the steps in the terminal-based handover method of the respective embodiments of the present application described in the present specification.
For example, the terminal shown in fig. 5 may perform acquiring the first remaining amount of service resources of the current secondary card through the first remaining amount of service resources acquiring module in the terminal-based switching apparatus shown in fig. 4; the terminal can execute the steps that if the first service resource residual quantity is larger than or equal to a first threshold value, a first network attribute feature of a current auxiliary card and a second network attribute feature of a current main card are respectively obtained within preset time through a network attribute feature obtaining module; the terminal can execute the switching between the current auxiliary card and the current main card according to the first network attribute characteristic and the second network attribute characteristic through the first switching module.
In one embodiment, there is provided a terminal comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: acquiring the first service resource surplus of the current auxiliary card; if the first service resource residual quantity is larger than or equal to a first threshold value, respectively acquiring a first network attribute characteristic of the current auxiliary card and a second network attribute characteristic of the current main card within preset time; the first network attribute characteristic or the second network attribute characteristic is used for representing the quality of a network signal; and determining whether to execute the switching between the current secondary card and the current primary card according to the first network attribute characteristic and the second network attribute characteristic.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and if the second network attribute characteristic is smaller than the second characteristic threshold value and the first network attribute characteristic is larger than or equal to the first characteristic threshold value, executing the switching between the current secondary card and the current primary card.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the second network attribute characteristic is greater than or equal to the second characteristic threshold value, the service resource in the current main card is continuously used as the current use resource of the user; or if the second network attribute characteristic is smaller than the second characteristic threshold value and the first network attribute characteristic is smaller than the first characteristic threshold value, continuing the service resource in the current main card as the current use resource of the user.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring the second service resource surplus of the current main card; if the first service resource residual quantity is smaller than a first threshold value and the second service resource residual quantity is smaller than a second threshold value, switching the initially set main card into a new current main card; or if the first service resource residual quantity is less than the first threshold value and the second service resource residual quantity is greater than or equal to the second threshold value, the service resource in the current main card is continuously used as the current use resource of the user.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the current business behavior of a user according to the currently running application program process; the current business behavior comprises a mobile data business behavior or a voice business behavior; correspondingly, the remaining amount of the first service resource includes the remaining data traffic or the remaining call duration.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the network type of the current auxiliary card within a preset time;
correspondingly, the processor executes the computer program to realize the following steps: and determining whether to execute the switching between the current auxiliary card and the current main card according to the first network attribute characteristic, the second network attribute characteristic and the network type.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and if the second network attribute feature is smaller than the second feature threshold, the network type belongs to the preset type, and the first network attribute feature is larger than or equal to the first feature threshold, executing switching between the current auxiliary card and the current main card.
According to the technical scheme of the embodiment of the disclosure, in the process of using the terminal by a user, when the first service resource residual quantity of the current auxiliary card is determined to be greater than or equal to a first threshold value, namely the service resource residual quantity of the current auxiliary card is relatively sufficient, the quality of the network signal quality of the current main card and the current auxiliary card is determined according to the network attribute characteristics of the current main card and the current auxiliary card, and then whether the switching between the main card and the auxiliary card is carried out is determined, so that the effect of dynamically switching the main card and the auxiliary card according to the service resource residual quantity and the network signal quality in different network environments is realized; the new main card after switching can not only provide sufficient service resources for the user without causing the expense loss of the user, but also provide better network service for the user, thereby realizing the effective utilization of the resources of the auxiliary card; in addition, the dynamic switching of the main card and the auxiliary card ensures that better network service can be maintained in the terminal, the problem that the power loss of the terminal is faster due to the influence of poor network signal quality on the network service is solved, and the power loss of the terminal is reduced; in addition, the stability of the network signal quality of the current main card and the current auxiliary card is determined by continuously monitoring the current main card and the current auxiliary card, so that the accuracy of the switching time of the current main card and the current auxiliary card is ensured, and unnecessary switching operation is reduced.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring the first service resource surplus of the current auxiliary card; if the first service resource residual quantity is larger than or equal to a first threshold value, respectively acquiring a first network attribute characteristic of the current auxiliary card and a second network attribute characteristic of the current main card within preset time; the first network attribute characteristic or the second network attribute characteristic is used for representing the quality of a network signal; and determining whether to execute the switching between the current secondary card and the current primary card according to the first network attribute characteristic and the second network attribute characteristic.
In one embodiment, the computer program when executed by the processor further performs the steps of: and if the second network attribute characteristic is smaller than the second characteristic threshold value and the first network attribute characteristic is larger than or equal to the first characteristic threshold value, executing the switching between the current secondary card and the current primary card.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the second network attribute characteristic is greater than or equal to the second characteristic threshold value, the service resource in the current main card is continuously used as the current use resource of the user; or if the second network attribute characteristic is smaller than the second characteristic threshold value and the first network attribute characteristic is smaller than the first characteristic threshold value, continuing the service resource in the current main card as the current use resource of the user.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring the second service resource surplus of the current main card; if the first service resource residual quantity is smaller than a first threshold value and the second service resource residual quantity is smaller than a second threshold value, switching the initially set main card into a new current main card; or if the first service resource residual quantity is less than the first threshold value and the second service resource residual quantity is greater than or equal to the second threshold value, the service resource in the current main card is continuously used as the current use resource of the user.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining the current business behavior of a user according to the currently running application program process; the current business behavior comprises a mobile data business behavior or a voice business behavior; correspondingly, the remaining amount of the first service resource includes the remaining data traffic or the remaining call duration.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining the network type of the current auxiliary card within a preset time;
accordingly, the computer program when executed by the processor further performs the steps of: and determining whether to execute the switching between the current auxiliary card and the current main card according to the first network attribute characteristic, the second network attribute characteristic and the network type.
In one embodiment, the computer program when executed by the processor further performs the steps of: and if the second network attribute feature is smaller than the second feature threshold, the network type belongs to the preset type, and the first network attribute feature is larger than or equal to the first feature threshold, executing switching between the current auxiliary card and the current main card.
According to the technical scheme of the embodiment of the disclosure, in the process of using the terminal by a user, when the first service resource residual quantity of the current auxiliary card is determined to be greater than or equal to a first threshold value, namely the service resource residual quantity of the current auxiliary card is relatively sufficient, the quality of the network signal quality of the current main card and the current auxiliary card is determined according to the network attribute characteristics of the current main card and the current auxiliary card, and then whether the switching between the main card and the auxiliary card is carried out is determined, so that the effect of dynamically switching the main card and the auxiliary card according to the service resource residual quantity and the network signal quality in different network environments is realized; the new main card after switching can not only provide sufficient service resources for the user without causing the expense loss of the user, but also provide better network service for the user, thereby realizing the effective utilization of the resources of the auxiliary card; and the dynamic switching of the main card and the auxiliary card ensures that better network service can be maintained in the terminal, the problem of faster terminal power loss caused by the influence of poor network signal quality on the network service is solved, and the power loss of the terminal is reduced.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM is available in many forms, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), and the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A switching method based on a terminal, wherein the terminal supports installation of a main card and at least one auxiliary card, the method comprising:
acquiring the first service resource surplus of the current auxiliary card;
if the first service resource residual quantity is greater than or equal to a first threshold value, respectively acquiring a first network attribute characteristic of the current auxiliary card and a second network attribute characteristic of the current main card within preset time; wherein the first network attribute characteristic or the second network attribute characteristic is used for characterizing network signal quality;
and determining whether to execute switching between the current auxiliary card and the current main card according to the first network attribute characteristic and the second network attribute characteristic.
2. The method of claim 1, wherein determining whether to perform the switch between the current secondary card and the current primary card based on the first network attribute characteristic and the second network attribute characteristic comprises:
and if the second network attribute characteristic is smaller than a second characteristic threshold value and the first network attribute characteristic is larger than or equal to a first characteristic threshold value, executing switching between the current auxiliary card and the current main card.
3. The method of claim 1, wherein determining whether to perform the switch between the current secondary card and the current primary card based on the first network attribute characteristic and the second network attribute characteristic comprises:
if the second network attribute characteristic is greater than or equal to the second characteristic threshold value, continuing to use the service resource in the current main card as the current use resource of the user; alternatively, the first and second electrodes may be,
and if the second network attribute characteristic is smaller than the second characteristic threshold value and the first network attribute characteristic is smaller than the first characteristic threshold value, continuing to use the service resource in the current main card as the current used resource of the user.
4. The method of claim 1, further comprising:
acquiring the second service resource surplus of the current main card;
if the first service resource residual quantity is smaller than the first threshold value and the second service resource residual quantity is smaller than a second threshold value, switching the initially set main card into a new current main card; alternatively, the first and second electrodes may be,
and if the first service resource residual quantity is smaller than the first threshold value and the second service resource residual quantity is larger than or equal to the second threshold value, continuing to use the service resource in the current main card as the current used resource of the user.
5. The method according to any one of claims 1-4, further comprising:
determining the current business behavior of a user according to the currently running application program process; wherein the current business behavior comprises a mobile data business behavior or a voice business behavior.
6. The method of claim 5, wherein if it is determined that the current business behavior of the user is the mobile data business behavior, the method further comprises:
determining the network type of the current auxiliary card within the preset time;
correspondingly, the determining whether to perform the switching between the current secondary card and the current primary card according to the first network attribute feature and the second network attribute feature includes:
and determining whether to execute switching between the current auxiliary card and the current main card according to the first network attribute characteristic, the second network attribute characteristic and the network type.
7. The method as claimed in claim 6, wherein said determining whether to perform the switching between the current secondary card and the current primary card according to the first network attribute feature, the second network attribute feature and the network standard type comprises:
and if the second network attribute feature is smaller than a second feature threshold, the network type belongs to a preset type, and the first network attribute feature is larger than or equal to a first feature threshold, executing switching between the current auxiliary card and the current main card.
8. A switching device based on a multi-card terminal, wherein the terminal supports installation of a main card and at least one sub-card, the device comprising:
the first service resource surplus obtaining module is used for obtaining the first service resource surplus of the current auxiliary card;
a network attribute feature obtaining module, configured to, if the remaining amount of the first service resource is greater than or equal to a first threshold, respectively obtain a first network attribute feature of the current secondary card and a second network attribute feature of the current primary card within a preset time; wherein the first network attribute characteristic or the second network attribute characteristic is used for characterizing network signal quality;
and the first switching module is used for determining whether to execute the switching between the current auxiliary card and the current main card according to the first network attribute characteristic and the second network attribute characteristic.
9. A terminal comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the terminal based handover method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the terminal-based handover method according to any one of claims 1 to 7.
CN202110302482.6A 2021-03-22 2021-03-22 Terminal-based switching method and device, terminal and storage medium Active CN113225726B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110302482.6A CN113225726B (en) 2021-03-22 2021-03-22 Terminal-based switching method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110302482.6A CN113225726B (en) 2021-03-22 2021-03-22 Terminal-based switching method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113225726A true CN113225726A (en) 2021-08-06
CN113225726B CN113225726B (en) 2023-05-16

Family

ID=77084230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110302482.6A Active CN113225726B (en) 2021-03-22 2021-03-22 Terminal-based switching method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113225726B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113613239A (en) * 2021-08-09 2021-11-05 中国电信股份有限公司 Network mode switching method, network mode switching device, medium, and electronic device
CN115915105A (en) * 2022-11-29 2023-04-04 优游宝科技(深圳)有限公司 Intelligent algorithm-based esim card mobile data flow monitoring method and system

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954564A (en) * 2015-06-12 2015-09-30 小米科技有限责任公司 Method and device for switching SIM (Subscriber Identity Module) cards as well as terminal
CN105357362A (en) * 2015-08-03 2016-02-24 努比亚技术有限公司 Mobile terminal control method and device
CN105451216A (en) * 2015-12-01 2016-03-30 中国联合网络通信集团有限公司 Multimode dual-card terminal SIM card switching method and multimode dual-card terminal device
CN105554831A (en) * 2016-01-28 2016-05-04 努比亚技术有限公司 Network switching device and method
CN105792299A (en) * 2016-05-20 2016-07-20 广东欧珀移动通信有限公司 Optimum usage method for 3G network, optimum usage device and mobile terminal
CN105933944A (en) * 2016-05-20 2016-09-07 广东欧珀移动通信有限公司 4G network optimum usage method and device and mobile terminal
CN108966292A (en) * 2017-05-17 2018-12-07 中兴通讯股份有限公司 A kind of data traffic management device and method
CN109495875A (en) * 2019-01-11 2019-03-19 Oppo广东移动通信有限公司 SIM card selection method, device, electronic equipment and storage medium
CN109548197A (en) * 2018-11-22 2019-03-29 深圳市趣创科技有限公司 Intelligent double card data traffic switching method, device, terminal and storage medium
CN109587747A (en) * 2018-10-26 2019-04-05 努比亚技术有限公司 SIM card method for handover control, terminal and computer storage medium
CN110072263A (en) * 2019-03-26 2019-07-30 华为技术有限公司 A kind of method and electronic equipment switching card of surfing Internet
CN110611941A (en) * 2019-08-23 2019-12-24 珠海格力电器股份有限公司 Network switching method and device
CN111132132A (en) * 2019-12-26 2020-05-08 珠海格力电器股份有限公司 Traffic management method and device and terminal equipment
CN111654852A (en) * 2020-05-29 2020-09-11 Oppo广东移动通信有限公司 Data card switching method and device, terminal and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954564A (en) * 2015-06-12 2015-09-30 小米科技有限责任公司 Method and device for switching SIM (Subscriber Identity Module) cards as well as terminal
CN105357362A (en) * 2015-08-03 2016-02-24 努比亚技术有限公司 Mobile terminal control method and device
CN105451216A (en) * 2015-12-01 2016-03-30 中国联合网络通信集团有限公司 Multimode dual-card terminal SIM card switching method and multimode dual-card terminal device
CN105554831A (en) * 2016-01-28 2016-05-04 努比亚技术有限公司 Network switching device and method
CN105792299A (en) * 2016-05-20 2016-07-20 广东欧珀移动通信有限公司 Optimum usage method for 3G network, optimum usage device and mobile terminal
CN105933944A (en) * 2016-05-20 2016-09-07 广东欧珀移动通信有限公司 4G network optimum usage method and device and mobile terminal
CN108966292A (en) * 2017-05-17 2018-12-07 中兴通讯股份有限公司 A kind of data traffic management device and method
CN109587747A (en) * 2018-10-26 2019-04-05 努比亚技术有限公司 SIM card method for handover control, terminal and computer storage medium
CN109548197A (en) * 2018-11-22 2019-03-29 深圳市趣创科技有限公司 Intelligent double card data traffic switching method, device, terminal and storage medium
CN109495875A (en) * 2019-01-11 2019-03-19 Oppo广东移动通信有限公司 SIM card selection method, device, electronic equipment and storage medium
CN110072263A (en) * 2019-03-26 2019-07-30 华为技术有限公司 A kind of method and electronic equipment switching card of surfing Internet
CN110611941A (en) * 2019-08-23 2019-12-24 珠海格力电器股份有限公司 Network switching method and device
CN111132132A (en) * 2019-12-26 2020-05-08 珠海格力电器股份有限公司 Traffic management method and device and terminal equipment
CN111654852A (en) * 2020-05-29 2020-09-11 Oppo广东移动通信有限公司 Data card switching method and device, terminal and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113613239A (en) * 2021-08-09 2021-11-05 中国电信股份有限公司 Network mode switching method, network mode switching device, medium, and electronic device
CN115915105A (en) * 2022-11-29 2023-04-04 优游宝科技(深圳)有限公司 Intelligent algorithm-based esim card mobile data flow monitoring method and system
CN115915105B (en) * 2022-11-29 2023-07-04 优游宝科技(深圳)有限公司 Method and system for monitoring mobile data flow of esim card based on intelligent algorithm

Also Published As

Publication number Publication date
CN113225726B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
US8527006B2 (en) Processing system, wireless device and method
WO2021047390A1 (en) Method for reducing power consumption and mobile terminal
CN109246775A (en) Residence reselecting and relevant device
CN106922039B (en) Heartbeat message sending method and device
CN111343682B (en) Network switching method, device, storage medium and terminal
CN112119649A (en) Method and terminal equipment for receiving signals
CN109495875B (en) SIM card selection method and device, electronic equipment and storage medium
CN107547745B (en) Resource allocation method and related product
CN113225726B (en) Terminal-based switching method and device, terminal and storage medium
CN111182602A (en) SIM card switching method of mobile terminal, mobile terminal and computer storage medium
CN107659987B (en) Method for adjusting terminal transmitting power, mobile terminal and storage device
US20190306851A1 (en) Operation mode switching method and user equipment
KR20180088880A (en) Use network-supported protocols to improve network utilization
CN109195197A (en) Dual-card dual-standby terminal network selecting method, device, terminal device and storage medium
CN107484236A (en) Wi-Fi hotspot scan control method, mobile terminal and storage medium
EP3258617B1 (en) Antenna configuration method and terminal
CN107734496B (en) Network searching control method and device of mobile terminal and mobile terminal
CN110677890B (en) Multi-card multi-4G mobile terminal and network reselection method thereof
CN113873564A (en) Energy-saving method and device based on communication prediction
CN104378806B (en) Information processing method and terminal device
CN113099509B (en) Service selection method, device, terminal and storage medium
US9049580B2 (en) QUALCOMM chat mobile terminal update and authentication method and mobile terminal
CN114125739B (en) Network switching method and device, electronic equipment and storage medium
CN112566262B (en) Data processing method and device, communication equipment and storage medium
CN112866983B (en) Control method, control device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant