Data service switching method, device and terminal
By employing a switching strategy in dual-SIM terminals to automatically trigger identification card switching, the problem of low data card switching efficiency in dual-SIM terminals is solved, achieving efficient, stable, and optimized communication quality for data services.
Patent Information
- Application Number
- CN202511469585.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-14
- Publication Date
- 2025-11-14
AI Technical Summary
In existing technologies, dual-SIM terminals are inefficient when switching data cards, requiring users to operate manually and the switched card may not be able to provide high-quality data services, thus affecting the user experience.
A data service switching method is provided, which determines the terminal's switching strategy, including a first strategy (abnormal state recovery), a second strategy (failure to recover within the connection state abnormal recovery time limit), and a third strategy (signal quality and card priority), and automatically triggers the switching of the identification card to ensure the continuity and quality of data services.
It improves the efficiency of data service switching, ensures the smoothness and continuity of data services, optimizes communication quality, eliminates the need for users to manually switch again, and enhances the user experience.
Smart Images

Figure CN120957199A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless communication technology, and in particular to a data service switching method, apparatus, terminal, base station, computer-readable storage medium, and computer program product. Background Technology
[0002] With the development of computer technology and the continuous improvement of terminal performance, users can handle daily tasks using dual-SIM terminals. Of the two Subscriber Identity Module (SIM) cards in a dual-SIM terminal, one SIM card is primarily used for voice services, and the other for data services. Only one SIM card can be designated as the data card at a time. When both SIM cards support data services, switching the other card to handle data services often requires the user to perform a manual switching operation.
[0003] To improve the efficiency of data card switching, the automatic switching scheme for dual-SIM terminals in related technologies mainly switches the data card according to the specific scenario in which the user uses the dual-SIM terminal. For example, it determines which user identification card to use as the data card and execute data services based on the time the user uses the terminal or the software application opened.
[0004] However, the user identification card obtained by the above switching method may not be able to provide high-quality data services, requiring the user to manually switch again, which results in low switching efficiency. Summary of the Invention
[0005] Therefore, it is necessary to provide a data service switching method, device, terminal, base station, computer-readable storage medium, and computer program product to address the aforementioned technical problems.
[0006] Firstly, this application provides a data service switching method, including:
[0007] Determine the handover strategy corresponding to the terminal; the multiple user identification cards in the terminal include a first identification card as the primary card and a second identification card as the secondary card;
[0008] Based on the handover strategy including the first strategy and the fact that the first cell corresponding to the first identification card is in an abnormal state, the second identification card is switched to the primary card according to the data link recovery result of the first identification card;
[0009] Based on the switching strategy, including the second strategy and the failure of the data link corresponding to the first identification card in the connected state to recover within the abnormal recovery time limit, the second identification card is switched to the main card;
[0010] Based on the switching strategy, including the third strategy, and the fact that the signal quality corresponding to the first identification card meets the switching conditions, the second identification card is switched to the main card according to the respective priorities of the first identification card and the second identification card.
[0011] Data services are performed by switching the second identification card to the primary card.
[0012] In one embodiment, switching the second identification card to the primary card based on the data link recovery result of the first identification card includes:
[0013] Search for available cells of the first identification card within a predetermined search time;
[0014] In response to the discovery of an available third cell within the search time, if the first identification card successfully camps on the third cell, the second identification card is switched to the primary card;
[0015] In response to the failure to find an available cell within the search time, the second identification card is switched to the primary card.
[0016] In one embodiment, searching for available cells of the first identification card within a predetermined search time includes:
[0017] Within a predetermined search time, in response to the current signal of the first cell where the first identification card is registered meeting a preset signal condition, the first cell is identified as an available third cell; and / or,
[0018] Within a predetermined search time, in response to the discovery of other cells where the first identification card can camp, the other cells that can camp are identified as third available cells.
[0019] In one embodiment, the step of switching the second identification card to the primary card based on the switching strategy, including a second strategy and the failure of the data link corresponding to the first identification card in the connected state to recover within the abnormal recovery time limit, includes:
[0020] Based on the switching strategy, including the second strategy, and the fact that the first identification card is in a connected state, the network quality information of the data link corresponding to the first identification card is obtained.
[0021] Based on the network quality information anomaly, if the preset first anomaly recovery time limit is greater than a preset threshold, an updated second anomaly recovery time limit is obtained; the second anomaly recovery time limit does not exceed the preset threshold.
[0022] If the data link corresponding to the first identification card fails to recover within the second abnormal recovery time limit, the second identification card will be switched to the main card.
[0023] In one embodiment, the step of switching the second identification card to the primary card based on the failure of the data link recovery corresponding to the first identification card within the second abnormal recovery time limit includes:
[0024] Based on the historical network information corresponding to the first identification card, the data link of the first identification card is restored within the second anomaly recovery time limit;
[0025] In response to the failure of data link recovery corresponding to the first identification card, the stationing status corresponding to the second identification card is obtained, and an available cell corresponding to the first identification card is searched according to a preset frequency range;
[0026] In response to the normal dwell status and the failure of the available cell search, the second identification card is switched to the primary card.
[0027] In one embodiment, the step of switching the second identification card to the primary card according to the respective priorities of the first identification card and the second identification card includes:
[0028] Obtain the strategy configuration information corresponding to the third strategy;
[0029] In response to the policy configuration information including card priority information, and based on the card priority information, determining that the priority of the first identification card is lower than the priority of the second identification card, the second identification card is switched to the primary card.
[0030] In one embodiment, the step of switching the second identification card to the primary card according to the respective priorities of the first identification card and the second identification card further includes:
[0031] In response to the policy configuration information, which also includes a signal strength threshold, the priority of the first identification card and the priority of the second identification card are determined based on the card priority information.
[0032] Based on the different priorities of the first identification card and the second identification card, the signal strength of the first cell of the first cell corresponding to the first identification card and the signal strength of the second cell of the second cell corresponding to the second identification card are obtained.
[0033] In response to the signal strength of the first cell being less than a first signal strength threshold and the signal strength of the second cell being greater than a second signal strength threshold, the second identification card is switched to the primary card; the first signal strength threshold includes the signal strength threshold when performing data services through the first identification card, and the second signal strength threshold includes the signal strength threshold when performing the data services through the second identification card.
[0034] In one embodiment, the step of switching the second identification card to the primary card according to the respective priorities of the first identification card and the second identification card further includes:
[0035] Based on the fact that the priority of the first identification card and the priority of the second identification card are the same, the first signal strength corresponding to the first identification card and the second signal strength corresponding to the second identification card are obtained; the first signal strength is determined according to the signal strength of the first cell and the signal hysteresis parameter of the first identification card, and the second signal strength is determined according to the signal strength of the second cell and the signal hysteresis parameter of the second identification card.
[0036] In response to the relative difference between the first signal strength and the second signal strength reaching a third signal strength threshold, the second identification card is switched to the main card.
[0037] Secondly, this application also provides a data service switching device, comprising:
[0038] The handover strategy determination module is used to determine the handover strategy corresponding to the terminal; the multiple user identification cards in the terminal include a first identification card as the primary card and a second identification card as the secondary card;
[0039] The first handover module is used to switch the second identification card to the primary card based on the handover strategy, including the first strategy and the fact that the first cell corresponding to the first identification card is in an abnormal state, and according to the data link recovery result of the first identification card.
[0040] The second switching module is used to switch the second identification card to the main card based on the switching strategy, including the second strategy and the failure of the data link corresponding to the first identification card in the connected state to recover within the abnormal recovery time limit.
[0041] The third switching module is used to switch the second identification card to the main card based on the switching strategy, including the third strategy, according to the respective priorities of the first identification card and the second identification card.
[0042] The data service execution module is used to execute data services by switching the second identification card to the main card.
[0043] Thirdly, this application also provides a terminal, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the data service switching method as described in any of the preceding claims.
[0044] Fourthly, this application also provides a base station, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement a data transmission method with a terminal, wherein the terminal includes the terminal described above.
[0045] Fifthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the data service switching method as described in any of the preceding claims.
[0046] Sixthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the data service switching method as described in any of the preceding claims.
[0047] The aforementioned data service handover method, apparatus, terminal, base station, computer-readable storage medium, and computer program product can determine the handover strategy corresponding to the terminal. The terminal contains multiple user identification cards, including a first identification card as the primary card and a second identification card as the secondary card. Based on the handover strategy, including the first strategy and the fact that the first cell corresponding to the first identification card is in an abnormal state, the second identification card is switched to the primary card based on the data link recovery result of the first identification card. Based on the handover strategy, including the second strategy and the fact that the data link corresponding to the first identification card, which is in a connected state, fails to recover within the abnormal recovery time limit, the second identification card is switched to the primary card. Based on the handover strategy, including the third strategy and the fact that the signal quality corresponding to the first identification card meets the handover conditions, the second identification card is switched to the primary card according to the respective priorities of the first and second identification cards. Data services can then be performed through the second identification card, which has been switched to the primary card. In this embodiment, by automatically triggering the switching of the second identification card (serving as the secondary card) to the primary card when the communication of the first identification card (serving as the primary card) fails, based on various switching strategies, the data service switching efficiency when the user identification card malfunctions can be effectively improved. Firstly, the first strategy allows for selecting the switching timing of the second identification card based on the data link recovery result when the first identification card is unusable due to an anomaly in the first cell, helping to ensure smooth data services. Secondly, the second strategy promptly triggers the second identification card switchover when the data link recovery of the first identification card in the connected state fails due to exceeding limits, ensuring service continuity. Thirdly, the third strategy, combining signal quality and card priority switching, triggers the second identification card switchover, automatically switching to the second identification card when the network connection performance of the first identification card is poor, seeking better network connection performance and helping to optimize communication quality in a timely manner. Therefore, after the user identification card switchover, a better network data transmission effect can be obtained, eliminating the need for the user to trigger the user identification card switchover again and optimizing data service processing quality, effectively improving the data service switching efficiency. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 This is an application environment diagram of a data service switching method in one embodiment;
[0050] Figure 2 This is a flowchart illustrating a data service switching method in one embodiment;
[0051] Figure 3 This is a schematic diagram of a data service switching framework in one embodiment;
[0052] Figure 4 This is a flowchart illustrating a step of switching the primary card based on the data link recovery result in one embodiment;
[0053] Figure 5 This is a flowchart illustrating a method for switching data services using a first strategy in one embodiment.
[0054] Figure 6 This is a flowchart illustrating a method for switching data services using a second strategy in one embodiment.
[0055] Figure 7 This is a flowchart illustrating a method for switching data services using a third strategy in one embodiment.
[0056] Figure 8 This is a structural block diagram of a data service switching device in one embodiment;
[0057] Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0058] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0059] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various objects, but these objects are not limited by these terms. These terms are only used to distinguish the first object from the second object. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the solutions, or any combination of multiple solutions.
[0060] With the development of computer technology and the continuous improvement of terminal device performance, users can handle daily tasks through dual-SIM terminals. Dual-SIM terminals can be configured with two user identification cards. Dual-SIM terminals can include dual-SIM single-pass mode and dual-SIM dual-pass mode. Dual-SIM single-pass mode is distinguished by the radio frequency capabilities of the dual-SIM terminal. At any given time, only one user identification card can be in service status or linked state for sending and receiving signaling. That is, only one user identification card can be in voice connection state or data service connection state, while the other card must be in standby state. Both cards cannot be in linked state simultaneously, and only one user identification card can perform voice or data services at any given time. Dual-SIM dual-pass mode, also distinguished by the radio frequency capabilities of the dual-SIM terminal, allows both cards to perform service signaling concurrently at the same time. That is, while one card is performing data service, the other card can perform functions such as making calls and sending text messages, without interference.
[0061] With the development of internet technology, users often place greater emphasis on data service needs. However, in practical applications, a dual-SIM terminal can only designate one SIM card as the data card at a time. When both SIM cards support data services, switching the other card to handle data services often requires manual switching by the user. For example, a user can pre-designate the primary and secondary SIM cards in a dual-SIM terminal. The primary SIM card refers to the SIM card where the data card is located in the dual-SIM system, i.e., the SIM card currently used for data services. The secondary SIM card refers to the SIM card that is not the data card. When the primary SIM card is performing data services and needs to switch to the other SIM card due to various anomalies, this switching often requires manual intervention from higher management.
[0062] This data service switching method often leads to significant data transmission delays or packet loss. For example, if the primary SIM card suddenly fails to meet expectations due to network conditions or speed, the user may need to manually switch to another SIM card. Sometimes, it may even require both SIM cards to re-enter the network simultaneously to activate the data service of the other SIM card. This back-and-forth switching takes a long time, results in a poor user experience, and can cause serious problems in certain usage scenarios.
[0063] To improve the efficiency of data card switching, the automatic switching scheme for dual-SIM terminals in related technologies mainly switches the data card according to the specific scenario in which the user uses the dual-SIM terminal. For example, it determines which user identification card to use as the data card and execute data services based on the time the user uses the terminal or the software application opened.
[0064] However, the user identification card obtained by the above switching method may not be able to provide high-quality data services, requiring the user to manually switch again, which results in low switching efficiency.
[0065] In response, this application provides a data service switching method, apparatus, terminal, base station, readable storage medium, and program product, which can effectively improve the data service switching efficiency of multi-user identification card terminals.
[0066] The data service switching method provided in this application embodiment can be applied to, for example, Figure 1 The application environment shown can include terminals and base stations, where the terminals and / or base stations may be equipped with chips. The data service switching method provided in this application can be executed through the chips. Furthermore, this method can also be applied to chip modules, virtual devices, and storage media. For example, a virtual device may include a chip, and the various modules within the virtual device may include software and / or hardware.
[0067] In this embodiment, as Figure 2 As shown, it may include the following steps:
[0068] S201, determine the handover strategy corresponding to the terminal; the multiple user identification cards in the terminal include a first identification card as the primary card and a second identification card as the secondary card.
[0069] The switching strategy can be understood as a set of rules pre-set by the terminal and / or configured by the user to trigger the switching between the primary and secondary SIM cards. In this embodiment, the switching strategy may include one or more of a first strategy, a second strategy, and a third strategy, with different strategies corresponding to different switching trigger conditions. In some examples, various switching strategies can be combined arbitrarily. For example, switching strategies can be activated in an additive manner according to the user's wishes, or a single switching strategy can be enabled for data service switching.
[0070] In this step, the current switching policy set by the terminal for the user identification card can be determined. The terminal can provide multiple user identification cards, such as two or more user identification cards. Among these multiple user identification cards, one or more first identification cards serve as primary cards, and one or more second identification cards serve as secondary cards. In some embodiments, the primary or secondary card role can be manually specified by the user, or it can be automatically assigned by the terminal in advance based on the signal strength and data plan type of each user identification card.
[0071] This embodiment provides various switching strategies, allowing for flexible triggering of the second identification card based on different network conditions of the first identification card. Specifically, overall, this embodiment can be as follows: Figure 3 As shown, one or more network status information of the primary and secondary cards can be obtained, such as registration information, data rate, and link quality information. If the network status information of the secondary card meets the preset conditions according to the corresponding criteria, the secondary card can be switched to a data link card and converted into a primary card, and the original primary card becomes a secondary card. This realizes the automatic and flexible data card switching function and improves the user experience.
[0072] S202, based on the handover strategy including the first strategy and the fact that the first cell corresponding to the first identification card is in an abnormal state, the second identification card is switched to the main card according to the data link recovery result of the first identification card.
[0073] The first strategy can be understood as a strategy that uses the anomaly of the cell corresponding to the first identification card as a trigger condition, and determines whether to trigger the second identification card to perform a handover based on the data link recovery status of the first identification card. In one example, the first strategy can be called a coverage guarantee strategy. The data link recovery result can be understood as the result obtained by the terminal device after attempting to restore the data link of the first identification card, which can include either successful restoration or restoration failure. In some optional embodiments, the data link recovery attempt can include one or more operations such as cell reselection, network reattachment, or handover to a neighboring cell.
[0074] Specifically, in response to a handover strategy including the first strategy, the terminal can monitor the status of the first cell corresponding to the first identification card, where the first cell is the mobile communication cell currently accessed by the first identification card (which can be determined by the geographical area covered by the base station, and in some examples may have a unique cell identifier). In response to detecting that the first cell is in an abnormal state, and determining that the first identification card cannot provide normal service at this time, the terminal can promptly initiate a recovery attempt on the data link of the first identification card, and determine the timing for triggering the second identification card to switch to the primary card based on the data link recovery result. When this timing arrives, the second identification card is promptly switched from the secondary card to the primary card, and correspondingly, the first identification card can be switched from the primary card to the secondary card. In some embodiments, the abnormal state of the first cell may include one or more of the following: cell signal interruption, cell congestion, and cell failure.
[0075] In this step, in response to the handover strategy including the first strategy and the first cell corresponding to the first identification card being in an abnormal state, the second identification card is switched to the primary card based on the data link recovery result of the first identification card. This enables the second identification card, which is the secondary card (or backup card), to take over as the data connection card when the primary identification card cannot provide normal service due to the abnormality of the first cell. This achieves automatic switching of the first identification card to other user identification cards that can use the data network normally, i.e., the second user identification card, in the absence of network, thus realizing rapid data recovery in the absence of network.
[0076] S203, based on the switching strategy including the second strategy and the failure of the data link corresponding to the first identification card in the connected state to recover within the abnormal recovery time limit, the second identification card is switched to the main card.
[0077] Specifically, the second strategy can be understood as a switching strategy triggered by a data link anomaly occurring when the first identification card is in a connected state, and failure to recover within a preset time limit. In one example, the second strategy can be called a fast reconstruction strategy. The connected state refers to the state where the first identification card maintains a stable signaling and data connection with the network side (such as a base station or core network). In some examples, this state occurs when the terminal performs data services (such as video playback or file download). A data link anomaly can be understood as one or more situations where data transmission is interrupted while the first identification card is in a connected state (such as interruption after video stuttering), or the transmission rate is lower than the minimum service requirement. For example, the presence of a data link anomaly can be determined through one or more methods, such as the TCP connection status detected by the terminal and data throughput.
[0078] In practical applications, when the terminal determines that the switching strategy includes the second strategy, it can monitor the connection status and data link status of the first identification card in real time. If the wireless signal received by the first identification card changes or the data link quality deteriorates while the first identification card is in a connected state (for example, it remains in a connected state for X minutes), it can trigger the switching of the second identification card to the primary card and the switching of the first identification card to the secondary card based on the recovery status of the data link within the abnormal recovery time limit of the first identification card.
[0079] Specifically, in response to the handover strategy, including the second strategy, and when the data link of the first identification card is in a connected state, the terminal can start a recovery timer, for example, by starting the abnormal recovery timer T310, and initiate a data link recovery attempt accordingly. If the recovery is successful within the abnormal recovery time limit, the first identification card can continue to perform data services. If the recovery fails within the abnormal recovery time limit, i.e., the recovery expires, a handover is triggered, and the second identification card is switched to the primary card.
[0080] S204, based on the switching strategy including the third strategy and the fact that the signal quality corresponding to the first identification card meets the switching conditions, the second identification card is switched to the main card according to the respective priorities of the first and second identification cards.
[0081] The third strategy can be understood as a handover strategy where the signal quality corresponding to the first identification card meets the handover conditions, and the priority comparison result of the first and second identification cards is the main trigger condition. In one embodiment, the third strategy can also be called a high-level strong cell signal strategy. The priorities of the first and second identification cards can be Radio Access Technology (RAT) priorities, which characterize the priority of the first and second identification cards in accessing the wireless network. In some embodiments, the RAT priority is determined based on the capabilities of the first and second identification cards and / or the network deployment environment. For example, the RAT priority can be determined based on one or more factors such as network stability, package cost, and service requirements.
[0082] In practice, when the switching strategy includes the third strategy, the signal quality corresponding to the first identification card can be monitored. In response to the signal quality of the first identification card meeting the switching conditions, the priorities of the first and second identification cards can be obtained, and the second identification card can be switched to the primary card and the first identification card to the secondary card based on the priority.
[0083] In some embodiments, if the determination condition for switching between primary and secondary cards is the respective priorities of the first and second identification cards, then if the priority of the second identification card is higher than that of the first identification card, the primary / secondary card switch can be triggered, and the second identification card can be switched to the primary card. If the priority of the second identification card is lower than or equal to that of the first identification card, the primary card role of the first identification card can be maintained. In other embodiments, if the determination condition for switching between primary and secondary cards includes other information besides the respective priorities of the first and second identification cards, then this other information can be further combined to switch the second identification card to the primary card when the condition is met.
[0084] S205 performs data services by switching to the second identification card of the main card.
[0085] In this embodiment, after switching the second identification card to the primary card and the first identification card to the secondary card through steps S102, S103, and / or S104, data services can be performed through the second identification card, which is now the primary card. Performing data services can be understood as the second identification card accessing the corresponding serving cell and communication network, establishing a data link with the relevant base station, and then replacing the first identification card to perform one or more data services of the terminal. For example, this may include one or more of the following: internet access, application data interaction, data upload / download for IoT devices, voice calls, etc.
[0086] In this embodiment, a handover strategy corresponding to the terminal can be determined. The terminal contains multiple user identification cards, including a first identification card as the primary card and a second identification card as the secondary card. Based on the handover strategy including the first strategy and the fact that the first cell corresponding to the first identification card is in an abnormal state, the second identification card is switched to the primary card according to the data link recovery result of the first identification card. Based on the handover strategy including the second strategy and the fact that the data link corresponding to the first identification card, which is in a connected state, fails to recover within the abnormal recovery time limit, the second identification card is switched to the primary card. Based on the handover strategy including the third strategy and the fact that the signal quality corresponding to the first identification card meets the handover conditions, the second identification card is switched to the primary card according to the respective priorities of the first and second identification cards. Data services can then be performed through the second identification card, which has been switched to the primary card. In this embodiment, by automatically triggering the switching of the second identification card (serving as the secondary card) to the primary card when the communication of the first identification card (serving as the primary card) fails, based on various switching strategies, the data service switching efficiency when the user identification card malfunctions can be effectively improved. Firstly, the first strategy allows for selecting the switching timing of the second identification card based on the data link recovery result when the first identification card is unusable due to an anomaly in the first cell, helping to ensure smooth data services. Secondly, the second strategy promptly triggers the second identification card switchover when the data link recovery of the first identification card in the connected state fails due to exceeding limits, ensuring service continuity. Thirdly, the third strategy, combining signal quality and card priority switching, triggers the second identification card switchover, automatically switching to the second identification card when the network connection performance of the first identification card is poor, seeking better network connection performance and helping to optimize communication quality in a timely manner. Therefore, after the user identification card switchover, a better network data transmission effect can be obtained, eliminating the need for the user to trigger the user identification card switchover again and optimizing data service processing quality, effectively improving the data service switching efficiency.
[0087] In one embodiment, such as Figure 4 As shown, in step S102, based on the data link recovery result of the first identification card, the second identification card is switched to the main card, which may include the following steps:
[0088] S401, within a predetermined search time, searches for available cells of the first identification card.
[0089] The search time can be a preset time length for the terminal to search for cells accessible by the first identification card, based on the actual application scenario. In some embodiments, the search time can be determined according to the urgency of network handover and the priority of the user's current data services. An available cell can refer to a serving cell that meets the communication signal strength and / or signal quality requirements and supports access by the first identification card.
[0090] In this embodiment, when the first cell corresponding to the first identification card is in an abnormal state, such as when the signal of the first cell is weak and does not meet the S criterion (i.e., the signal strength and / or signal quality is unqualified), it may cause the first identification card to enter an idle / inactive state. At this time, the T_SEARCHING_TIMER timer can be started to search for available cells for the first identification card to camp on within a predetermined search time.
[0091] In some embodiments, the cell search function of the first identification card can be activated. Within a preset search time, the card can determine whether there are available cells that the first identification card can access by scanning the corresponding frequency band (such as the authorized frequency band of the operator to which the first identification card belongs) or parsing cell broadcast information.
[0092] S402, in response to the discovery of an available third cell within the search time, if the first identification card successfully camps on the third cell, the second identification card is switched to the primary card.
[0093] Specifically, if the terminal finds an available third cell within a preset search time, it can control the first identification card to continue to reside in the third cell, thereby keeping the current first identification card in a service-available state before further performing a primary card switching operation, setting the second identification card as the new primary card, and switching the first identification card to the secondary card.
[0094] S403, in response to the failure to find available cells within the search time, switches the second identification card to the main card.
[0095] If the terminal fails to find an available cell for the first identification card within the preset search time, it can be assumed that the network outage of the first identification card cannot be mitigated. To avoid prolonged data service unavailability, the first identification card's residency process can be skipped, and the primary card handover mechanism can be directly triggered to set the second identification card as the primary card, enabling the second identification card to quickly access its operator's cell. For example, if the first cell corresponding to the first identification card is abnormal, Radio Resource Control (RRC) can proactively report the unavailability of the first cell, triggering higher-layer data services to perform a handover to the second identification card.
[0096] In this embodiment, by searching for an available third cell within the search time and switching the second identification card to the primary card only after the first identification card successfully camps on the third cell, the second identification card can rely on the network of the first identification card as a backup after switching to the primary card, reducing the risk of communication interruption caused by single-card network failure. When the first identification card cannot find an available cell within the search time, the second identification card is directly switched to the primary card, avoiding an increase in service interruption time due to waiting for invalid searches. This process ensures communication reliability and improves the efficiency of primary card switching, and can be applied to scenarios such as unstable network coverage or cross-border roaming.
[0097] In one embodiment, step S401, searching for available cells of the first identification card within a predetermined search time, may include the following steps:
[0098] Within a predetermined search time, in response to the current signal of the first cell where the first identification card is camped meeting a preset signal condition, the first cell is identified as a usable third cell; and / or, within a predetermined search time, in response to the discovery of other cells where the first identification card can camp, the other cells that can camp are identified as usable third cells.
[0099] In practice, it can determine whether the signal of the first cell where the first identification card was previously stationed has been restored within the search time, or it can search for other neighboring cells where it can be stationed.
[0100] Specifically, it can monitor whether the current signal of the first cell meets preset signal conditions, for example, it can determine whether the current signal of the first cell meets the S criterion. In response to determining that the current signal of the first cell meets the preset signal conditions, the previously camped first cell can be identified as a usable third cell.
[0101] Of course, a search can also be performed based on historical residency records to determine if there are other nearby cells where the card can reside. Upon finding other cells where the first identification card can reside, these cells can be identified as usable third cells.
[0102] In this embodiment, by determining the available third cell according to different scenarios within a preset search time, an available cell can be quickly determined for the first identification card when the signal of the cell where the first identification card is stationed is poor or there is no available cell.
[0103] To better understand the above embodiments, the following is in conjunction with the appendix. Figure 5 An exemplary description of the primary card switching process for the first strategy is provided.
[0104] Specifically, such as Figure 5 As shown in this example, the data cards that the terminal can provide include a first identification card and a second identification card. The first identification card can be in an idle state or an inactive state. While the first identification card is in the above state, the terminal can obtain the current state of the second identification card at any time, thereby enabling real-time monitoring and management of the states of the two identification cards.
[0105] In practical applications, there may be situations where the first identification card in the terminal data card fails to meet the S criterion due to poor cell signal quality in its area. According to relevant communication protocols, when the first identification card fails to meet the S criterion, a network search timer can be started to initiate a link recovery process to attempt to re-establish a stable network connection. During this link recovery period, user plane data corresponding to the first identification card will be suspended from transmission, and its data services will be temporarily unavailable until the link recovery process is completed or subsequent processing steps are initiated.
[0106] During link recovery after the network search timer is started, if the actual search time exceeds the preset search time (i.e., the network search timer expires), and the first identification card fails to find a suitable available cell through historical searches, the terminal's lower-level module can inform the higher-level module that the first cell is currently unavailable before the terminal performs frequency scanning and network search operations. This information will trigger the higher-level module to obtain the network dwell status of the second identification card and initiate the card switching process if the dwell status is normal, thereby restoring normal data service operation by switching identification cards. Additionally, within the search time corresponding to the network search timer, it can also search for the existence of déjà vu neighboring cells (i.e., other available cells). If found, the timer is stopped, and the first identification card is restored to its network dwell status.
[0107] After the first identification card successfully camps on an available third cell, the terminal's modem can obtain the specific status of the second identification card. If the modem detects that the second identification card is currently camped on a 4G or 5G network and its camping status is normal (e.g., the signal strength meets the communication requirements, the network registration status is valid, etc.), it can trigger the operation of switching data cards.
[0108] During the data card switching process, the terminal will activate the data link corresponding to the second identification card to complete the data transmission path switch. After the data link of the second identification card is activated, all subsequent data stream transmission tasks generated by higher-level applications will be transmitted through the second identification card, thereby realizing the recovery of user plane data and ensuring that data services can be carried out continuously and stably.
[0109] In one embodiment, step S103, based on the switching strategy including the second strategy and the failure of the data link corresponding to the first identification card in the connected state to recover within the abnormal recovery time limit, switching the second identification card to the main card may include the following steps:
[0110] S1031, based on the handover strategy including the second strategy and the fact that the first identification card is in a connected state, obtain the network quality information of the data link corresponding to the first identification card.
[0111] In a specific implementation, the first identification card can be in a connected state. This means that the first identification card has successfully established a radio resource control (RRC) connection with the base station and the data link is in a normal data transmission state, through which the terminal can send or receive data packets.
[0112] In response to a handover strategy including a second strategy and the first identification card being in a connected state, network quality monitoring can be performed on the data link corresponding to the first identification card to obtain network quality information. The data link corresponding to the first identification card can be the data link between the first identification card and the base station. The network quality information can be parameters characterizing the transmission performance of the data link corresponding to the first identification card. In some examples, the network quality information may include, but is not limited to, one or more of the following: signal strength, signal quality, packet loss rate, latency, and data throughput.
[0113] S1032, based on network quality information anomalies, if the pre-set first anomaly recovery time limit is greater than a preset threshold, obtain the updated second anomaly recovery time limit; the second anomaly recovery time limit does not exceed the preset threshold.
[0114] In response to the detected network quality information being abnormal, a pre-set first abnormal recovery time limit can be obtained. For example, an abnormal recovery timer T310 can be started, and the first abnormal recovery time limit can be obtained according to the corresponding abnormal recovery time limit of the timer. The abnormal recovery timer T310 is a timer used by the terminal to wait for the base station to restore the connection after detecting a radio link failure (RLF). Within the time limit corresponding to the timer, it can continuously attempt to reconnect to the current base station.
[0115] Then, it can be determined whether the preset first anomaly recovery time limit is greater than a preset threshold. If the first anomaly recovery time limit is greater than the preset threshold, it can be reduced, and a second anomaly recovery time limit is determined based on the reduction result, wherein the second anomaly recovery time limit does not exceed the preset threshold. In some embodiments, the second anomaly recovery time limit can be flexibly set using non-volatile memory (NV).
[0116] S1033, based on the failure of the data link corresponding to the first identification card to recover within the second abnormal recovery time limit, the second identification card is switched to the main card.
[0117] Furthermore, within the second anomaly recovery time limit, an attempt can be made to restore the data link corresponding to the first identification card, and in response to the failure of the data link corresponding to the first identification card to be restored within the second anomaly recovery time limit, the second identification card can be switched to the main card.
[0118] In this embodiment, by identifying an anomaly in the network quality information of the data link corresponding to the first identification card in the connected state, and obtaining a second anomaly recovery time not exceeding the preset threshold when the preset first anomaly recovery time is greater than the preset threshold, the waiting time for link anomaly recovery can be shortened. This allows users to quickly switch data cards when their identification cards malfunction, keeping the waiting time within an acceptable range and effectively improving the continuity of data services.
[0119] In one embodiment, S1033, based on the failure of data link recovery for the first identification card within the second abnormal recovery time limit, switches the second identification card to the primary card, which may include the following steps:
[0120] Based on the historical network information corresponding to the first identification card, the data link of the first identification card is restored within the second anomaly recovery time limit; in response to the failure of the data link restoration corresponding to the first identification card, the camping status corresponding to the second identification card is obtained, and the available cells corresponding to the first identification card are searched according to the preset frequency point range; in response to the normal camping status and the failure of the available cell search, the second identification card is switched to the main card.
[0121] Specifically, when restoring the data link to the first identification card, the historical network information corresponding to the first identification card can be obtained first. This historical network information can be network-related data recorded by the terminal during the first identification card's normal network connection process, including but not limited to one or more of the following: the identifier of the historically camped cell, the frequency information corresponding to the historically camped cell, and network access point parameters. Then, a network search can be performed based on the historical network information corresponding to the first identification card, and the data link can be restored to the first identification card within the second anomaly recovery time limit.
[0122] In response to the inability to restore the data link for the first identification card based on historical network information, a frequency scanning and network search can be triggered on the first identification card. Since frequency scanning and network search may take a considerable amount of time, this embodiment can first notify the higher-layer application of the unavailability status information of the first cell where the first identification card is currently located, triggering the higher-layer application to obtain the camping status corresponding to the second identification card, and search for available cells corresponding to the first identification card according to a preset frequency range. Then, in response to the failure to search for available cells according to the preset frequency range, and the normal camping status of the second identification card, the second identification card can be switched to the primary card in a timely manner. For example, to ensure the synchronization between the connected UE and the network, when it is determined that the frequency scanning and network search method cannot rebuild the data link, the first identification card will be promptly (e.g., immediately) put into an idle state, and the second identification card with a normal camping status will be switched to the primary card. This avoids the problem of the original primary card continuing to perform frequency scanning and network search in an idle state, which would lead to slow data link recovery, allowing data services to be restored in a short time.
[0123] In this embodiment, on the one hand, by utilizing historical network information to restore the link, the blindness of link restoration can be reduced, the restoration efficiency can be improved, and unnecessary primary card switching can be avoided; on the other hand, by obtaining the dwell status of the second identification card before scanning the frequency to find the network, the second identification card can be switched to the primary card in a timely and proactive manner if the frequency scanning to find the network fails, avoiding the problem of slow data link restoration caused by frequency scanning to find the network, so that data services can be restored in a short time and the user experience can be improved.
[0124] To better understand the above embodiments, the following is in conjunction with the appendix. Figure 6 An exemplary description of the primary card switching process for the second strategy is provided.
[0125] like Figure 6 As shown, in this embodiment, the terminal is equipped with a first identification card and a second identification card, wherein the second identification card can be used as a backup card. During normal operation of the terminal, the data card uses the first identification card and the first identification card is in a connected state. At the same time, the terminal can obtain the current status of the second identification card at any time to ensure that it can perform corresponding operations based on the status of the second identification card when needed.
[0126] During data transmission while the first identification card is in connected state, if the terminal detects an anomaly in the wireless link, such as a wireless link failure (RLF), it can initiate the corresponding processing procedure. Specifically, the terminal can first determine whether the current timer limit used to assess link recovery (i.e., the first anomaly recovery time limit) is less than a preset value X. If the timer limit is less than X, no adjustment is needed, and the current timer limit can continue to be used. If the timer limit is greater than or equal to X, the timer limit is revised to the preset value X. After completing the timer limit determination and revision, the terminal starts the timer and assesses whether it can continuously receive N311 synchronization indications during the timer's operation to determine the likelihood of data link recovery for the first identification card. If it is determined that the first identification card can successfully recover the data link, the current first identification card remains unchanged, waiting for the successful establishment of the random access channel (RACH) during the subsequent connection reconstruction process. After the RCH is successfully established, data transmission continues through the first identification card.
[0127] If it is determined that the data link of the first identification card cannot be restored, the terminal can initiate a connection reconstruction cell selection process. During this process, user plane data will be paused and transmission will be temporarily suspended. After initiating the connection reconstruction cell selection process for the first identification card, the terminal can perform a network search based on historical network information and determine whether a suitable available cell has been found during the historical network search. If no suitable cell has been found during the historical network search, the terminal will further obtain the installation status of the second identification card and start frequency scanning to find a network.
[0128] If the second identification card is in a normal residing state at this time, and the first identification card fails to scan for a network and enters an idle state, a primary card switch operation is triggered, switching the current primary card from the first identification card to the second identification card. After the second identification card switch is completed, user plane data transmission resumes. After switching the primary card to the second identification card, the corresponding data protocol data unit (PDU) link of the second identification card can also be activated to ensure that the second identification card can normally carry data transmission services.
[0129] In one embodiment, step S104, switching the second identification card to the primary card according to the respective priorities of the first and second identification cards, may include the following steps:
[0130] S1041, Obtain the policy configuration information corresponding to the third policy.
[0131] The policy configuration information can be used to set the specific method for switching the primary card based on priority information. In some embodiments, the policy configuration information may include card priority information.
[0132] S1042, in response to the policy configuration information including card priority information, and based on the card priority information, determining that the priority of the first identification card is lower than the priority of the second identification card, the second identification card is switched to the main card.
[0133] If the policy configuration information is card priority information, the priority of the first identification card and the second identification card can be determined according to the card priority information. If the priority of the first identification card is lower than that of the second identification card, the second identification card will be switched to the main card.
[0134] In some examples, card priority information is also called RAT priority information. The priority of the first identification card can be the priority result obtained by the first identification card according to the RAT priority mapping set in advance by the system; the priority of the second identification card can be the priority result obtained by the second identification card according to the RAT priority set in advance by the system.
[0135] In this embodiment, by first obtaining the policy configuration information corresponding to the third policy, and then judging the priority based on the card priority information in the policy configuration information and completing the primary card switching, the user can realize intelligent and scenario-based switching of the primary card, effectively solving the problem that traditional terminals require users to manually switch the primary card and the operation is cumbersome, and improving the convenience of users using multi-card terminals.
[0136] In one embodiment, step S104, which switches the second identification card to the main card according to the respective priorities of the first and second identification cards, may further include the following steps:
[0137] S1043, in response to the policy configuration information, a signal strength threshold is also included, and the priority of the first identification card and the priority of the second identification card are determined according to the card priority information.
[0138] In practice, the policy configuration information may include card priority information and signal strength threshold. The signal strength threshold in the policy configuration information may also be called strong cell signal, which can be used to help determine whether the signal strength of the serving cell is sufficient.
[0139] In this embodiment, when the policy configuration information also includes a signal strength threshold, the decision to switch the second identification card to the primary card can be made by combining the card priority information and the signal strength threshold simultaneously. Specifically, the priority of the first identification card and the priority of the second identification card can be determined first based on the card priority information.
[0140] S1044, based on the different priorities of the first identification card and the second identification card, obtain the first cell signal strength of the first cell corresponding to the first identification card and the second cell signal strength of the second cell corresponding to the second identification card.
[0141] When the priorities of the first identification card and the second identification card are determined to be different based on card priority information (e.g., the first identification card has a higher priority than the second identification card, or vice versa), directly comparing the signal strengths of the first and second identification cards may not yield reliable results. In this case, a relative comparison of the signal strengths of the first and second identification cards can be performed. Specifically, in this step, when the priorities are different, the signal strength of the first cell corresponding to the first identification card and the signal strength of the second cell corresponding to the second identification card can be obtained. In some embodiments, the data handover scenario between NR and LTE can be switched based on the signal strengths of the first and second cells.
[0142] S1045, in response to the signal strength of the first cell being less than a first signal strength threshold and the signal strength of the second cell being greater than a second signal strength threshold, the second identification card is switched to the main card; the first signal strength threshold includes the signal strength threshold when performing data services through the first identification card, and the second signal strength threshold includes the signal strength threshold when performing the data services through the second identification card.
[0143] Then, based on the fact that the signal strength of the first cell is less than the first signal strength threshold and the signal strength of the second cell is greater than the second signal strength threshold, it can be assumed that the signal strength of the first identification card is relatively higher, and the second identification card can be switched to the main card.
[0144] In some embodiments, the first signal strength threshold includes a signal strength threshold when performing data services through the first identification card, such as the absolute threshold of the lowest signal strength of the serving cell associated with the data service bearer of the first identification card; the second signal strength threshold includes a signal strength threshold when performing data services through the second identification card, such as the absolute threshold of the lowest signal strength of the cell associated with the data service bearer of the second identification card.
[0145] In this embodiment, intelligent master card handover of multiple user identification cards is realized by combining the card priority of the user identification card and the cell signal strength of the cell corresponding to the user identification card. By comparing the cell signal strength of each user identification card with the cell signal strength threshold of the cell based on the different priorities of the first and second identification cards, the handover of the second identification card can be accurately triggered according to the relative comparison result, ensuring that the handover decision takes into account both priority and actual signal quality, thereby improving communication stability and user experience.
[0146] In one embodiment, switching the second identification card to the primary card according to the respective priorities of the first and second identification cards further includes:
[0147] Based on the fact that the first identification card has the same priority as the second identification card, the first signal strength corresponding to the first identification card and the second signal strength corresponding to the second identification card are obtained; in response to the relative difference between the first signal strength and the second signal strength reaching a third signal strength threshold, the second identification card is switched to the main card.
[0148] The first signal strength can be determined based on the signal strength of the first cell and the signal hysteresis parameter of the first identification card. The second signal strength can be determined based on the signal strength of the second cell and the signal hysteresis parameter of the second identification card. For example, the first signal strength can be determined by summing the signal strength of the first cell and the signal hysteresis parameter of the first identification card, and the second signal strength can be determined by summing the signal strength of the second cell and the signal hysteresis parameter of the second identification card. The signal hysteresis parameter of the first identification card can be the reselection hysteresis coefficient carried by the first identification card in the network setting system message, and the signal hysteresis parameter of the second identification card can be the reselection hysteresis coefficient carried by the second identification card in the network setting system message.
[0149] When the priorities of the first identification card and the second identification card are the same, the signal strength corresponding to the first identification card and the signal strength corresponding to the second identification card can be directly compared. In this embodiment, when both have the same priority, the first signal strength and the second signal strength can be obtained, and then the relative difference between the first signal strength and the second signal strength can be determined. In some embodiments, the relative difference can be determined based on the difference between the first signal strength and the second signal strength or the absolute value of the difference.
[0150] Furthermore, when the relative difference reaches the third signal strength threshold, the second identification card can be switched to the main card. The third signal strength threshold is also called the relative threshold. For example, when the relative difference is the absolute value of the difference, the second identification card can be switched to the main card if the absolute value is greater than the minimum difference (i.e., the relative threshold).
[0151] In this embodiment, by directly comparing the first signal strength corresponding to the first identification card and the second signal strength corresponding to the second identification card when the user identification cards have the same priority, adaptive primary card switching can be quickly and accurately realized according to the signal conditions of each user identification card. This ensures that the terminal always prioritizes the identification card with the better signal strength to carry data services, significantly improving data transmission rate and communication connection stability.
[0152] To better understand the above embodiments, the following is in conjunction with the appendix. Figure 7 An exemplary description of the primary card switching process for the third strategy is provided.
[0153] In this embodiment, the terminal supports normal data retention of dual SIM cards in the service network. The terminal device's control module has the ability to acquire the dual SIM card retention status in real time, and the relevant SIM card switching criteria (including criterion 1 and criterion 2) for dual SIM card switching have been pre-configured, providing the foundation for subsequent dual SIM card switching control.
[0154] Specifically, after the dual-SIM control module receives the cell information corresponding to the first and second identification cards, the terminal device will first confirm whether the judgment conditions (criteria 1 and criterion 2) related to dual-SIM handover have been configured normally. Under the premise that the judgment conditions are configured normally, the corresponding operation process will be executed according to the preset different conditions.
[0155] First, it can be determined whether the first identification card meets criterion 1. Specifically, the terminal can continuously perform the judgment of criterion 1 on the first identification card, which serves as the primary card, to monitor the signal status of the serving cell of the data card in real time. When the first identification card is normally camped, after receiving the measurement results of the first cell corresponding to the first identification card, the terminal can determine whether the reference signal received power value of the first cell meets the evaluation conditions of criterion 1.
[0156] In one embodiment, the evaluation logic of Criterion 1 is as follows: If the signal strength of the serving cell (i.e., the first cell) of the first identification card is greater than or equal to a preset threshold, the terminal keeps the first identification card as the primary card. At this time, if Timer 1 (denoted as CRITERIA1 timer) used for Criterion 1 evaluation is running, the timer is stopped. If the signal strength of the serving cell of the first identification card is less than the preset threshold, the timer is started if Timer 1 is not started. The duration of the timer can be a length preset in NV. In some embodiments, the preset threshold is a self-defined threshold that can be used to determine whether to initiate a data connection handover. In actual configuration, it can be set with reference to the inter-frequency test threshold contained in the system message broadcast by the network. In some embodiments, during the evaluation process of Criterion 1, if Timer 1 has been started but has not yet timed out, and the terminal is in an idle or inactive state, the terminal can immediately stop the evaluation process of Criterion 1 to ensure the accuracy of signal judgment during terminal state switching.
[0157] If Timer 1 has been started and runs normally until timeout, the terminal will enter the judgment stage of SIM card switching evaluation criterion 2; if Timer 1 has not been started, it can be determined that the signal strength of the serving cell of the first identification card does not meet the conditions of criterion 1, and the terminal will not perform any processing.
[0158] If the signal strength of the serving cell of the first identification card does not meet the conditions of criterion 1 after timer 1 has been started, the timer is stopped, and a new round of criterion 1 judgment is restarted after the next serving cell measurement result is reported.
[0159] The evaluation of Criterion 2 is based on the condition that Criterion 1 is met (i.e., Timer 1 has timed out, denoted as T_CRITERIA1_EXP). Its core is that if Criterion 1 determines that the signal of the first identification card is continuously poor, it can further determine whether the second identification card meets the card-switching conditions to ensure communication quality after the switch. The evaluation of Criterion 2 includes two core judgment logics (i.e., Criterion 2-1 and Criterion 2-2). The execution of these two logics is associated with Timer 2 (denoted as CRITERIA2timer) used for Criterion 2 evaluation. The duration of this timer can also be configured in NV and can be flexibly adjusted.
[0160] Specifically, the first judgment logic (criterion 2-1) is based on RAT priority. Specifically, if the terminal's NV is configured with RAT priority card switching information, the terminal will compare the RAT priorities of the first identification card and the second identification card. If the priority of the first identification card is lower than that of the second identification card, then timer 2 will be started if it is not started; if the priority of the first identification card is not lower than that of the second identification card, then the started timer 2 will be stopped (if timer 2 is not started, no operation will be performed), and the next evaluation cycle of criterion 2 will begin (i.e., the judgment will be re-evaluated after the next measurement result).
[0161] The second judgment logic (criterion 2-2) is based on signal strength comparison and can be divided into two scenarios based on whether the RAT priorities of the first and second identification cards are the same. In the scenario where the RAT priorities of the first and second identification cards are the same, the terminal can calculate the sum of the signal strengths of both cards and their respective signal hysteresis parameters to obtain the first and second signal strengths. It then determines whether the difference between the calculated first and second signal strengths is less than a preset difference threshold. If not, timer 2 can be started.
[0162] In scenarios where the RAT priorities of the first and second identification cards differ, the terminal determines whether the signal strength of the first cell is less than a first signal strength threshold and whether the signal strength of the second cell is greater than a second signal strength threshold. The first and second signal strength thresholds can be preset in the NV (Network Node) to ensure data carrying capacity under different RATs. If either of the corresponding judgment conditions in the above two scenarios is met, the timer 2 is started if it is not already started. If none of the conditions are met, the started timer 2 is stopped, and the next evaluation cycle of criterion 2 begins.
[0163] When timer 2 times out, the terminal's wireless control module (i.e., access control plane) can notify the application processor layer to make a card switching decision through an internal message. Specifically, it can switch the first identification card to the secondary card and the second identification card to the new primary card, thereby completing a seamless switch of data connection and ensuring the continuity of data communication of the terminal.
[0164] It should be emphasized that the data service switching method provided in one or more embodiments of this application can also be executed by one or more of the following devices: a chip, a chip module, or a data service switching device, wherein the data service switching device may be, for example, a chip or a chip module. Regarding the various module units included in the devices and products described in the above embodiments, they may be software module units, hardware module units, or a combination of both. For example, for devices and products applied to or integrated into a chip, all of their included module units may be implemented using hardware methods such as circuits, or at least some module units may be implemented using software programs running on a processor integrated within the chip, while the remaining (if any) module units may be implemented using hardware methods such as circuits; for devices and products applied to or integrated into a chip module, all of their included module units may be implemented using hardware methods such as circuits, and different module units may be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some module units may be implemented using hardware methods such as circuits. The components can be implemented using software programs that run on the processor integrated within the chip module. The remaining (if any) component units can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into the terminal, each component can be implemented using hardware methods such as circuits. Different component units can be located in the same component (e.g., chip, circuit module, etc.) or in different components within the terminal. Alternatively, at least some component units can be implemented using software programs that run on the processor integrated within the terminal. The remaining (if any) component units can be implemented using hardware methods such as circuits.
[0165] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0166] Based on the same inventive concept, this application also provides a data service switching apparatus for implementing the data service switching method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more data service switching apparatus embodiments provided below can be found in the limitations of the data service switching method described above, and will not be repeated here.
[0167] In one exemplary embodiment, such as Figure 8 As shown, a data service switching device is provided, comprising:
[0168] The handover strategy determination module 801 is used to determine the handover strategy corresponding to the terminal; the multiple user identification cards in the terminal include a first identification card as the primary card and a second identification card as the secondary card;
[0169] The first handover module 802 is used to switch the second identification card to the primary card based on the handover strategy, including the first strategy and the fact that the first cell corresponding to the first identification card is in an abnormal state, and according to the data link recovery result of the first identification card.
[0170] The second switching module 803 is used to switch the second identification card to the main card based on the switching strategy, including the second strategy and the failure of the data link corresponding to the first identification card in the connected state to recover within the abnormal recovery time limit.
[0171] The third switching module 804 is used to switch the second identification card to the main card based on the switching strategy, including the third strategy, according to the respective priorities of the first identification card and the second identification card.
[0172] The data service execution module 805 is used to execute data services by switching the second identification card to the main card.
[0173] In one embodiment, the first switching module 802 is configured to:
[0174] Search for available cells of the first identification card within a predetermined search time;
[0175] In response to the discovery of an available third cell within the search time, if the first identification card successfully camps on the third cell, the second identification card is switched to the primary card;
[0176] In response to the failure to find an available cell within the search time, the second identification card is switched to the primary card.
[0177] In one embodiment, the first switching module 802 is configured to:
[0178] Within a predetermined search time, in response to the current signal of the first cell where the first identification card is registered meeting a preset signal condition, the first cell is identified as an available third cell; and / or,
[0179] Within a predetermined search time, in response to the discovery of other cells where the first identification card can camp, the other cells that can camp are identified as third available cells.
[0180] In one embodiment, the second switching module 803 is configured to:
[0181] Based on the switching strategy, including the second strategy, and the fact that the first identification card is in a connected state, the network quality information of the data link corresponding to the first identification card is obtained.
[0182] Based on the network quality information anomaly, if the preset first anomaly recovery time limit is greater than a preset threshold, an updated second anomaly recovery time limit is obtained; the second anomaly recovery time limit does not exceed the preset threshold.
[0183] If the data link corresponding to the first identification card fails to recover within the second abnormal recovery time limit, the second identification card will be switched to the main card.
[0184] In one embodiment, the second switching module 803 is configured to:
[0185] Based on the historical network information corresponding to the first identification card, the data link of the first identification card is restored within the second anomaly recovery time limit;
[0186] In response to the failure of data link recovery corresponding to the first identification card, the stationing status corresponding to the second identification card is obtained, and an available cell corresponding to the first identification card is searched according to a preset frequency range;
[0187] In response to the normal dwell status and the failure of the available cell search, the second identification card is switched to the primary card.
[0188] In one embodiment, the third switching module 804 is configured to:
[0189] Obtain the strategy configuration information corresponding to the third strategy;
[0190] In response to the policy configuration information including card priority information, and based on the card priority information, determining that the priority of the first identification card is lower than the priority of the second identification card, the second identification card is switched to the primary card.
[0191] In one embodiment, the third switching module 804 is further configured to:
[0192] In response to the policy configuration information, which also includes a signal strength threshold, the priority of the first identification card and the priority of the second identification card are determined based on the card priority information.
[0193] Based on the different priorities of the first identification card and the second identification card, the signal strength of the first cell of the first cell corresponding to the first identification card and the signal strength of the second cell of the second cell corresponding to the second identification card are obtained.
[0194] In response to the signal strength of the first cell being less than a first signal strength threshold and the signal strength of the second cell being greater than a second signal strength threshold, the second identification card is switched to the primary card; the first signal strength threshold includes the signal strength threshold when performing data services through the first identification card, and the second signal strength threshold includes the signal strength threshold when performing the data services through the second identification card.
[0195] In one embodiment, the third switching module 804 is further configured to:
[0196] Based on the fact that the priority of the first identification card and the priority of the second identification card are the same, the first signal strength corresponding to the first identification card and the second signal strength corresponding to the second identification card are obtained; the first signal strength is determined according to the signal strength of the first cell and the signal hysteresis parameter of the first identification card, and the second signal strength is determined according to the signal strength of the second cell and the signal hysteresis parameter of the second identification card.
[0197] In response to the relative difference between the first signal strength and the second signal strength reaching a third signal strength threshold, the second identification card is switched to the main card.
[0198] Each module in the aforementioned data service switching device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0199] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 9 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a data service switching method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0200] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0201] In one embodiment, a terminal is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0202] In one embodiment, a base station is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement a data transmission method with a terminal, the terminal including the terminal described above.
[0203] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0204] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0205] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0206] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0207] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0208] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A data service switching method, characterized in that, The method includes: Determine the handover strategy corresponding to the terminal; the multiple user identification cards in the terminal include a first identification card as the primary card and a second identification card as the secondary card; Based on the handover strategy including the first strategy and the fact that the first cell corresponding to the first identification card is in an abnormal state, the second identification card is switched to the primary card according to the data link recovery result of the first identification card; Based on the switching strategy, including the second strategy and the failure of the data link corresponding to the first identification card in the connected state to recover within the abnormal recovery time limit, the second identification card is switched to the main card; Based on the switching strategy, including the third strategy, and the fact that the signal quality corresponding to the first identification card meets the switching conditions, the second identification card is switched to the main card according to the respective priorities of the first identification card and the second identification card. Data services are performed by switching the second identification card to the primary card.
2. The method according to claim 1, characterized in that, The step of switching the second identification card to the primary card based on the data link recovery result of the first identification card includes: Search for available cells of the first identification card within a predetermined search time; In response to the discovery of an available third cell within the search time, if the first identification card successfully camps on the third cell, the second identification card is switched to the primary card; In response to the failure to find an available cell within the search time, the second identification card is switched to the primary card.
3. The method according to claim 2, characterized in that, The step of searching for available cells of the first identification card within a predetermined search time includes: Within a predetermined search time, in response to the current signal of the first cell where the first identification card is registered meeting a preset signal condition, the first cell is identified as an available third cell; and / or, Within a predetermined search time, in response to the discovery of other cells where the first identification card can camp, the other cells that can camp are identified as third available cells.
4. The method according to claim 1, characterized in that, The step of switching the second identification card to the primary card based on the switching strategy, including the second strategy and the failure of the data link corresponding to the first identification card in the connected state to recover within the abnormal recovery time limit, includes: Based on the switching strategy, including the second strategy, and the fact that the first identification card is in a connected state, the network quality information of the data link corresponding to the first identification card is obtained. Based on the network quality information anomaly, if the preset first anomaly recovery time limit is greater than a preset threshold, an updated second anomaly recovery time limit is obtained; the second anomaly recovery time limit does not exceed the preset threshold. If the data link corresponding to the first identification card fails to recover within the second abnormal recovery time limit, the second identification card will be switched to the main card.
5. The method according to claim 4, characterized in that, The step of switching the second identification card to the primary card based on the failure of the data link recovery corresponding to the first identification card within the second abnormal recovery time limit includes: Based on the historical network information corresponding to the first identification card, the data link of the first identification card is restored within the second anomaly recovery time limit; In response to the failure of data link recovery corresponding to the first identification card, the stationing status corresponding to the second identification card is obtained, and an available cell corresponding to the first identification card is searched according to a preset frequency range; In response to the normal dwell status and the failure of the available cell search, the second identification card is switched to the primary card.
6. The method according to claim 1, characterized in that, The step of switching the second identification card to the primary card according to the respective priorities of the first identification card and the second identification card includes: Obtain the strategy configuration information corresponding to the third strategy; In response to the policy configuration information including card priority information, and based on the card priority information, determining that the priority of the first identification card is lower than the priority of the second identification card, the second identification card is switched to the primary card.
7. The method according to claim 6, characterized in that, The step of switching the second identification card to the primary card according to the respective priorities of the first identification card and the second identification card further includes: In response to the policy configuration information, which also includes a signal strength threshold, the priority of the first identification card and the priority of the second identification card are determined based on the card priority information. Based on the different priorities of the first identification card and the second identification card, the signal strength of the first cell of the first cell corresponding to the first identification card and the signal strength of the second cell of the second cell corresponding to the second identification card are obtained. In response to the signal strength of the first cell being less than a first signal strength threshold and the signal strength of the second cell being greater than a second signal strength threshold, the second identification card is switched to the primary card; the first signal strength threshold includes the signal strength threshold when performing data services through the first identification card, and the second signal strength threshold includes the signal strength threshold when performing the data services through the second identification card.
8. The method according to claim 7, characterized in that, The step of switching the second identification card to the primary card according to the respective priorities of the first identification card and the second identification card further includes: Based on the fact that the priority of the first identification card and the priority of the second identification card are the same, the first signal strength corresponding to the first identification card and the second signal strength corresponding to the second identification card are obtained; the first signal strength is determined according to the signal strength of the first cell and the signal hysteresis parameter of the first identification card, and the second signal strength is determined according to the signal strength of the second cell and the signal hysteresis parameter of the second identification card. In response to the relative difference between the first signal strength and the second signal strength reaching a third signal strength threshold, the second identification card is switched to the main card.
9. A data service switching device, characterized in that, The device includes: The handover strategy determination module is used to determine the handover strategy corresponding to the terminal; the multiple user identification cards in the terminal include a first identification card as the primary card and a second identification card as the secondary card; The first handover module is used to switch the second identification card to the primary card based on the handover strategy, including the first strategy and the fact that the first cell corresponding to the first identification card is in an abnormal state, and according to the data link recovery result of the first identification card. The second switching module is used to switch the second identification card to the main card based on the switching strategy, including the second strategy and the failure of the data link corresponding to the first identification card in the connected state to recover within the abnormal recovery time limit. The third switching module is used to switch the second identification card to the main card based on the switching strategy, including the third strategy, according to the respective priorities of the first identification card and the second identification card. The data service execution module is used to execute data services by switching the second identification card to the main card.
10. A terminal comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.