Dual-card switching method and device

By receiving dual-card switching requests, restoring and pre-syncing the configuration information of the user identification card, the problem of high dual-card switching delay is solved, fast switching and low power consumption are achieved, and user experience is improved.

CN119584102APending Publication Date: 2025-03-07SANECHIPS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311100162.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-28
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

In the prior art, the dual-card switching delay is high, resulting in a decline in user experience.

Method used

By receiving the dual-card switching request, the configuration information of the pre-saved second user identification card is restored and pre-synchronized operations are performed to complete the connection establishment between the user terminal and the base station.

Benefits of technology

It realizes rapid dual-stop switching, reduces device power consumption, improves battery life, and reduces card-cutting delay, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119584102A_ABST
    Figure CN119584102A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a dual-card switching method and device, and the method comprises the steps: receiving a dual-card switching request, recovering the configuration information of a second user identification card according to the pre-stored second configuration information, and carrying out the pre-synchronization operation of the second user identification card according to the recovered configuration information, therefore, connection establishment between the user terminal and the base station is completed. According to the embodiment of the invention, the problems of relatively high dual-card switching delay and reduced user experience in related technologies can be solved, the response speed of dual-card switching can be improved, the user experience is improved, and meanwhile, the poor cruising ability of equipment caused by simultaneous standby of the dual cards is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a dual-card switching method and device. Background Art

[0002] As communication needs continue to grow, more and more users need to use two SIM cards on the same device to achieve a more flexible, convenient and economical way of communication. There are also some smartphones on the market that support dual-SIM single-standby function, but the dual-SIM single-standby function of these products only supports 2G or 3G networks, but not 4G Long Term Evolution (LTE) or 5G New Radio (NR). In addition, these products usually have only one modem, so only one SIM card can be used for communication at the same time, and the other SIM card is in standby mode.

[0003] At present, there are some patent documents and research papers that explore the implementation methods and principles of LTE dual-SIM single standby technology, but these technologies have some defects and unresolved technical problems. For example, adding additional hardware circuits to the product leads to increased costs and increased design complexity; the product uses complex software algorithms to implement, which increases the processor burden and affects the performance and stability of the phone; the device maintains two LTE connections at the same time, which increases power consumption and affects the battery life of the device; using two transceiver antennas at the same time, there is signal interference, resulting in a decrease in data transmission rate; the dual-SIM switching process has a high delay, resulting in a decrease in user experience.

[0004] In summary, the dual-SIM single-standby technology for LTE networks or NR networks still needs to be improved in hardware design and software optimization to further enhance the user experience. Summary of the invention

[0005] The embodiments of the present application provide a dual-SIM switching method and device to at least solve the problem of high dual-SIM switching delay and reduced user experience in the related art.

[0006] According to one embodiment of the present application, a dual-card switching method is provided, which is applied to a user terminal, and the method includes: receiving a dual-card switching request, wherein the dual-card switching request is used to switch from a first user identification card to a second user identification card; restoring the configuration information of the second user identification card according to pre-saved second configuration information; and performing a pre-synchronization operation on the second user identification card according to the restored configuration information to complete the establishment of a connection between the user terminal and a base station.

[0007] According to another embodiment of the present application, a dual-card switching device is provided, which is located in a user terminal, and includes:

[0008] A receiving module, used for receiving a dual-card switching request, wherein the dual-card switching request is used for switching from a first user identification card to a second user identification card;

[0009] A recovery module, used to restore the configuration information of the second user identification card according to the pre-saved second configuration information;

[0010] The synchronization module is used to perform a pre-synchronization operation on the second user identification card according to the restored configuration information to complete the establishment of the connection between the user terminal and the base station.

[0011] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program executes the steps of any of the above method embodiments when executed by a processor.

[0012] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0013] Through the embodiments of the present application, the deactivated card information is saved during the dual-card switching, and the activation of the card to be activated is completed according to the previously saved information of the card to be activated. This can not only reduce the power consumption of the device and improve the battery life in the dual-card single standby mode, but also realize the rapid switching of the user identification card and reduce the card switching delay, thereby solving the problem of high dual-card switching delay and reduced user experience in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 is a hardware structure block diagram of the dual-card switching method of an embodiment of the present application;

[0015] Figure 2 is a flowchart of a dual-SIM card switching method according to an embodiment of the present application;

[0016] Figure 3 is a schematic diagram of a process of switching between dual SIM cards according to an embodiment of the present application;

[0017] Figure 4 is a structural schematic diagram of a dual-card switching system according to an embodiment of the present application;

[0018] Figure 5 is a schematic diagram of a workflow for deactivating a card information storage module according to an embodiment of the present application;

[0019] Figure 6 1 is a schematic diagram of the work flow of the card information recovery module to be activated according to an embodiment of the present application;

[0020] Figure 7It is a block diagram of a dual-card switching device according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0023] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 : is a hardware structure block diagram of the dual card switching method of the embodiment of the present application, such as Figure 1 As shown, the hardware board may include one or more ( Figure 1 Only one is shown in the figure) a processor 12 (the processor 12 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device) and a memory 14 for storing data, wherein the mobile terminal may also include a transmission device 16 for communication functions and an input and output device 18. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0024] The memory 14 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the dual-card switching method in the embodiment of the present application. The processor 12 executes various functional applications and the dual-card switching method by running the computer program stored in the memory 14, that is, the above method is implemented. The memory 14 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 14 may further include a memory remotely arranged relative to the processor 12, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0025] The transmission device 16 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider. In one example, the transmission device 16 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 16 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0026] In one embodiment of the present application, a dual-card switching method is provided. Figure 2 is a flow chart of a dual card switching method according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:

[0027] Step S202, receiving a dual-card switching request, wherein the dual-card switching request is used to switch from a first subscriber identification card to a second subscriber identification card;

[0028] Step S206, restoring the configuration information of the second subscriber identity card according to the pre-saved second configuration information;

[0029] Step S208: performing a pre-synchronization operation on the second subscriber identity card according to the restored configuration information to complete the establishment of a connection between the user terminal and the base station.

[0030] Through the above steps S202 to S208, fast switching of dual cards can be achieved, the deactivated card information is saved during dual card switching, and the activation of the card to be activated is completed according to the previously saved information of the card to be activated. This can not only reduce the power consumption of the device and improve the battery life in dual-card single standby, but also achieve fast switching of user identification cards and reduce card switching delay, thereby solving the problem of high dual card switching delay and reduced user experience in related technologies.

[0031] The embodiments of the present application can be applied in a 4G LTE network or a 5G NR network environment, and require specific mobile phone hardware, communication protocols, and software support in the environment, so as to achieve seamless switching and scheduling between two subscriber identity modules (Subscriber Identity Module, referred to as SIM), and provide more convenient communication and data transmission services.

[0032] In this embodiment, the first subscriber identification card and the second subscriber identification card may be a physical SIM card or an embedded subscriber identification card (Embedded-SIM, eSIM for short), or may be a virtual card or a cloud card.

[0033] In some embodiments, after step S202, the method further includes step S204, saving the configuration information of the first user identification card as first configuration information.

[0034] In some embodiments, after the configuration information of the first subscriber identification card is saved as first configuration information in step S204, the method further includes step S205 of deactivating (deactivating) the first subscriber identification card.

[0035] In this embodiment, step S205 may include the following steps:

[0036] Step S2052, notifying the uplink and downlink scheduling modules to stop data communication and release channel resources;

[0037] Step S2054, notifying the cell selection and reselection module to stop cell search and measurement;

[0038] Step S2056: setting the state of the first subscriber identification card to an interrupt state.

[0039] In some embodiments, before restoring the configuration information of the second user identification card according to the pre-saved second configuration information in step S206, the method further includes: saving the configuration information of the second user identification card as the second configuration information during the process of switching from the second user identification card to the first user identification card.

[0040] In some embodiments, the configuration information in step S204 and step S206 includes at least one of the following: user identification card status, time-frequency, frequency deviation, cell data, public configuration message, private configuration message, uplink timing advance (TimingAdvance, referred to as TA) value, cell radio network temporary identifier (Cell Radio-Network TemporaryIdentifier, referred to as C-RNTI) value, measurement configuration message, mask information of the measurement object, and measurement interval message.

[0041] In some embodiments, before restoring the configuration information of the second user identification card according to the pre-saved second configuration information in step S206, the method also includes: determining whether the second configuration information has been saved; if the judgment result is no, ending the dual-card switching process and sending the dual-card switching confirmation message to the protocol stack.

[0042] In this embodiment, if the second configuration information has not been saved completely, the dual-card switching confirmation message indicates that the dual-card switching has failed.

[0043] In this embodiment, step S206 may include the following steps:

[0044] Step S2062, if the judgment result is yes, obtain and report the target cell with the strongest signal strength through cell search, and match the physical cell identifier and frequency of the target cell in a preset cell database;

[0045] Step S2064: if the matching is successful, restore the configuration information of the second subscriber identity card in sequence according to the second configuration information.

[0046] In this embodiment, if the target cell matching in step S2062 fails, or the configuration information of the second subscriber identity card is not successfully restored in step S2064, the dual-card switching process is terminated, and a dual-card switching failure message is directly sent to the protocol stack.

[0047] In some embodiments, after receiving the dual-card switching request in step S202, the method further includes: obtaining the user identification card status of the first user identification card; obtaining the time frequency of the first user identification card through cell search; and modifying the residence indication and reconfiguration flag of the first user identification card to indicate the serving cell and whether to reconfigure.

[0048] In some embodiments, step S208 may include the following steps:

[0049] Step S2082, searching and detecting the base station according to the restored configuration information to obtain a synchronization parameter of the base station;

[0050] Step S2084, synchronizing the second subscriber identity card according to the synchronization parameter;

[0051] Step S2086: Send and receive a test signal through the second user identification card to complete the establishment of a connection between the user terminal and the base station.

[0052] In this embodiment, the synchronization parameters include time synchronization parameters and frequency synchronization parameters. Through pre-synchronization, a base station with the best signal can be selected to improve communication quality and rate.

[0053] In some embodiments, after step S2086, step S2088 is further included to adjust the carrier frequency deviation parameter, automatic gain control parameter and digital automatic gain control parameter of the second subscriber identification card according to the test signal so that the second subscriber identification card can successfully receive data.

[0054] In some embodiments, after step S208, the method further includes: switching a message channel from a first channel corresponding to the first user identification card to a second channel corresponding to the second user identification card.

[0055] In some embodiments, if the pre-synchronization operation in step S208 is successful, the dual card switching confirmation message indicates that the dual card switching is successful; otherwise, the dual card switching confirmation message indicates that the dual card switching is unsuccessful.

[0056] In some embodiments, the method further comprises at least one of the following:

[0057] When the connection establishment between the user terminal and the base station is completed, sending a dual-card switching success message to the protocol stack;

[0058] In case the pre-synchronization operation fails, sending a dual-card switching failure message to the protocol stack;

[0059] If the second configuration information has not been saved, sending a dual-card switching failure message to the protocol stack;

[0060] When the preset cell database fails to match the target cell, a dual-card switching failure message is sent to the protocol stack.

[0061] In some embodiments, after the dual-card switching process is completed, the method also includes: step S210, performing RRC connection reconstruction, cell reselection or data transmission and reception according to the dual-card switching confirmation message and the user identification card status of the second user identification card, wherein the dual-card switching confirmation message includes the dual-card switching success message and the dual-card switching failure message.

[0062] In some embodiments, step S210 may include the following situations:

[0063] Case 1: When the dual-card switching confirmation message is a dual-card switching failure message and the user identification card state is a connected state, RRC connection reconstruction is performed;

[0064] Case 2: When the dual-card switching confirmation message is a dual-card switching failure message and the user identification card is in an idle state, cell reselection is performed;

[0065] Case 3, when the dual-card switching confirmation message is a dual-card switching success message and the user identification card state is an idle state, RRC connection reestablishment is performed;

[0066] Case 4, when the dual-card switching confirmation message is a dual-card switching success message and the user identification card state is a connected state, determine whether the second user identification card needs authentication, and perform RRC connection reconstruction if the judgment is yes, and perform data sending and receiving if the judgment is no.

[0067] Through the embodiments of the present application, the full-function usage requirements of users while supporting 4G networks can be met, communication efficiency can be improved, costs can be reduced, and user experience can be improved.

[0068] Figure 3 is a schematic diagram of a process of switching between two cards according to an embodiment of the present application, such as Figure 3 As shown, physical cards and cloud cards are taken as examples.

[0069] In this embodiment, the physical card and the cloud card correspond to channel 1 and channel 2 respectively, and the physical card and the cloud card send and receive messages in their respective channels respectively.

[0070] In one embodiment, the cloud card is a card to be activated, and the physical card is a deactivated card. When the cloud card receives a card switching request message (Request, referred to as REQ) on channel 2, it first saves the physical card information, resets each module (Release, referred to as REL) after the saving is completed, and then uses the previously saved cloud card information to restore the cloud card information, and then performs a pre-synchronization operation, and finally replies to a card switching confirmation message (Confirm, referred to as CNF) on channel 1, and the channel number is switched from channel 2 to channel 1.

[0071] In another embodiment, the physical card is a card to be activated, and the cloud card is a deactivated card. When the physical card receives the card cutting request message REQ on channel 1, it first saves the cloud card information. After the saving is completed, each module is reset REL, and then the physical card information saved before is used to restore the physical card information, and then a pre-synchronization operation is performed. Finally, a card cutting confirmation message CNF is replied on channel 2, and the channel number is switched from channel 1 to channel 2.

[0072] In the embodiment of the present application, in the dual-SIM single standby mode, only one card is in the "activated" state, and the other card is in the "deactivated" state. As long as the deactivated card receives a card switching request message, it can immediately switch to the "activated" state, thereby realizing fast switching of the dual-SIM activation states and improving the user experience.

[0073] Figure 4 is a schematic diagram of the structure of a dual card switching system according to an embodiment of the present application, such as Figure 4 As shown, the dual card switching system may include the following structures:

[0074] The card information storage module 42 is deactivated, and the card information recovery module 44 is to be activated.

[0075] In this embodiment, by connecting and cooperating the deactivated card information storage module 42 and the to-be-activated card information recovery module 44, the booting and card cutting process of the first user identification card (SIM1) and the second user identification card (SIM2) can be implemented, reducing the dual-card switching delay.

[0076] In some embodiments, the deactivated card information storage module 42 is used to send a card switching request message when it is necessary to switch to SIM2 for residence after SIM1 is successfully powered on. After the physical layer receives the card switching request message, it saves the information of the deactivated card (currently SIM1).

[0077] In some embodiments, the stored information may include at least one of the following: current frequency offset, time offset, common configuration message, dedicated configuration message, uplink TA value, C-RNTI value and measurement configuration.

[0078] In some embodiments, the deactivated card information storage module 42 is further used to reset each module after the information is saved.

[0079] In this embodiment, the saved SIM1 information is used for the recovery process when switching back to the deactivated card (SIM1).

[0080] In some embodiments, the card information recovery module 44 is used to recover the information of the current card to be activated using the saved SIM2 information when the card information storage module 42 has saved the information of the current card to be activated (currently SIM2).

[0081] In this embodiment, the card information recovery module 44 to be activated is also used to perform a pre-synchronization operation after the information recovery is completed, and the physical layer replies a card switching confirmation message to the protocol stack. At this point, the switching and data synchronization between SIM1 and SIM2 are completed.

[0082] In this embodiment, the card switching confirmation message includes two situations: failure and success.

[0083] Figure 5 FIG. 1 is a schematic diagram of a workflow for deactivating a card information storage module according to an embodiment of the present application. Figure 5 As shown, the process may include the following steps:

[0084] Step S502, determining whether the current deactivated card is powered on;

[0085] Step S504, if the current deactivated card is turned on, save the deactivated card information;

[0086] Step S506: If the current deactivated card is turned off, the deactivated card information is not saved.

[0087] In this embodiment, step S502 can determine whether the current deactivated card is powered on according to the power on / off flag in the card information.

[0088] In some embodiments, the deactivated card information to be saved in step S504 may include any one or a combination of the following information: current card status (connected state, idle IDLE state, etc.), time deviation (obtained directly through cell search), frequency deviation, data of the cell, physical broadcast channel (PBCH for short) related information, public configuration message (modify the resident indication to 1, indicating that the cell in this message is the service cell), dedicated configuration message (change the reconfiguration flag to 0, indicating no reconfiguration), uplink TA value, C-RNTI value, measurement configuration message from the protocol stack to the physical layer, mask information of the measurement object configured by the protocol stack to the physical layer (start / stop neighboring area measurement of certain frequencies), and measurement interval (GAP) message configured by the protocol stack to the physical layer.

[0089] In some embodiments, after the deactivated card information is saved, the information saving completion flag in the card information can be set to TRUE, indicating that the current deactivated card information saving has been completed. When the card information is subsequently restored, it can be determined whether the card information has been saved based on the information saving completion flag.

[0090] In some embodiments, after the deactivated card information storage module completes steps S502 to S506, each module needs to be reset to deactivate the deactivated card, which may include: receiving a reset (Release) message command from the main control module, notifying the uplink and downlink scheduling modules to stop data reception and transmission, stop paging, release the dedicated channel and common channel configuration, and notifying the cell selection / reselection (Cell Selection / Reselection, CSR for short) module to stop cell search and measurement, and stop reporting measurement results. Set the state machine to leave IDLE (idle state / standby state) or connected state and enter LTE_INIT (interrupt state) state.

[0091] Figure 6 FIG. 1 is a schematic diagram of the work flow of the card information recovery module to be activated according to an embodiment of the present application. Figure 6 As shown, the process may include the following steps:

[0092] Step S601, judging whether to perform the card information recovery process to be activated according to the information saving completion flag in the card information, and if the judgment result is to perform the card information recovery process to be activated, restoring the saved card information in sequence;

[0093] Step S602, perform an initial search process and report the strongest cell;

[0094] Step S603, restoring the frequency deviation;

[0095] Step S604, restore the public configuration message;

[0096] Step S605, restore the uplink TA value and C-RNTI value;

[0097] Step S606, restoring the dedicated message;

[0098] Step S607, restoring the protocol stack to send a measurement configuration message to the physical layer;

[0099] Step S608, restoring the mask information of the measurement object configured by the protocol stack for the physical layer;

[0100] Step S609: The protocol stack is restored to configure the physical layer with a measurement GAP message.

[0101] In an exemplary embodiment, the card information recovery module to be activated sequentially recovers the saved information under the control of the main control module, and the main control module may be a tensor processing unit (TPU for short).

[0102] In some embodiments, in addition to judging based on the information saving completion flag, step S601 can also judge whether to perform the information recovery process for the card to be activated based on flags such as whether the master information block (MIB) message is decoded in the public message process, whether the designated cell report finds the cell, and whether the strongest cell report includes the original service cell.

[0103] In this embodiment, when the judgment result of step S601 is no, the physical layer replies to the protocol stack with a dual-card switching confirmation message (dual-card switching fails), and ends the card switching process, and the protocol stack performs a reconstruction process or a re-cell search process.

[0104] In this embodiment, when the judgment result of step S601 is yes, information recovery is performed in sequence. This application includes but is not limited to the information recovery process in steps S602 to S609, which can be set according to the LTE protocol or operator requirements.

[0105] In some embodiments, step S602 matches the physical cell identifier (PCI) and frequency of the cell to be activated in the cell database. If a match is found, the recovery process continues. If no match is found, the physical layer replies to the protocol stack with a dual-card switching confirmation message (dual-card switching failure) and ends the card switching process.

[0106] In some embodiments, step S603 may include: adjusting the frequency deviation of the cell where the current card to be activated is located by using the frequency point and frequency deviation value in the current card to be activated information stored in the deactivated card information storage module.

[0107] In some embodiments, step S604 may include: using the public configuration message in the current card to be activated information stored in the deactivated card information storage module to recover the public configuration message of the current card to be activated, decomposing the message and forwarding it to the uplink and downlink processing modules, and starting the subsequent corresponding processing. Before the public configuration message recovery process is performed, the LTE physical layer third layer main mode state is set to the ICS state (indicating that the physical layer has received the cell search or frequency scanning information), and after the public configuration message recovery process is completed, the next step is performed.

[0108] In some embodiments, step S605 may include: restoring the uplink TA value and C-RNTI value of the current card to be activated by using the uplink TA value and C-RNTI value in the current card to be activated information saved in the deactivated card information saving module, decomposing the message and forwarding it to the uplink and downlink processing modules, and starting subsequent corresponding processing.

[0109] In some embodiments, step S606 may include: recovering the dedicated message of the current card to be activated using the dedicated message in the current card to be activated information stored in the deactivated card information storage module, decomposing the message and forwarding it to the uplink and downlink processing modules, and starting subsequent corresponding processing.

[0110] In some embodiments, step S607 may include: restoring the measurement configuration message of the current card to be activated using the measurement configuration message in the current card to be activated information saved in the deactivated card information saving module, decomposing the message and forwarding it to the uplink and downlink processing module, and starting subsequent corresponding processing.

[0111] In some embodiments, step S608 may include: restoring the mask information of the measurement object of the current card to be activated using the mask information of the measurement object in the current card to be activated information saved in the deactivated card information saving module, decomposing and forwarding the message to the uplink and downlink processing modules, and starting subsequent corresponding processing.

[0112] In some embodiments, step S609 may include: recovering the measurement GAP message of the current card to be activated using the measurement GAP message in the current card to be activated information saved in the deactivated card information saving module, decomposing the message and forwarding it to the uplink and downlink processing modules, and starting subsequent corresponding processing.

[0113] In some embodiments, after completing the information recovery, the card information recovery module to be activated performs a pre-synchronization operation, including: waking up the physical layer and working for a period of time before receiving the real signal to adjust the carrier frequency offset (CFO), automatic gain control (AGC), digital automatic gain control (DAGC) and other parameters so that the reception can be correct. Finally, the message channel is switched, and the physical layer replies to the protocol stack with a card switching confirmation message.

[0114] In this embodiment, the card switching confirmation message includes two situations: failure and success:

[0115] If the card cutting confirmation message indicates that the card cutting fails, the reconstruction process will be carried out directly in the connected state. If the security has not been started before (determined by the protocol stack), it will directly return to the idle state; in the idle state, the physical layer reports the same-frequency measurement results, allowing the protocol stack to go through the process of reselecting the frequency scan to find a cell.

[0116] If the card switching confirmation message indicates that the card switching is successful, the SIM card authentication process will be reestablished if there is one in the connected state, otherwise data will be sent directly; the Radio Resource Control (RRC) connection will be reestablished in the idle state.

[0117] In some embodiments, the reestablishment process of LTE data transmission may include the following steps:

[0118] Step 1: User Equipment (UE) establishes a connection with a base station through an access process and selects the best cell;

[0119] Step 2: The UE and the base station establish an RRC connection;

[0120] Step 3: The UE sends data to the base station, and the base station receives and decodes the data.

[0121] Step 4: If an error occurs in data transmission, the UE requests retransmission through a hybrid automatic repeat request (HARQ).

[0122] Step 5: The base station processes the data and transmits it to the core network;

[0123] Step 6: The core network transmits the data to the target server or terminal device;

[0124] Step 7: After data transmission is completed, the UE and the base station release the RRC connection.

[0125] The embodiments of the present application can solve the problems of high dual-card switching delay and reduced user experience in the related art, increase the response speed of dual-card switching, improve user experience, and avoid poor device battery life caused by dual-card standby at the same time.

[0126] According to another aspect of the embodiments of the present application, a dual-card switching device is also provided.

[0127] Figure 7 is a block diagram of a dual card switching device according to an embodiment of the present application, such as Figure 7 As shown, the device comprises:

[0128] A receiving module 72 , a recovery module 76 and a synchronization module 78 .

[0129] A receiving module 72, configured to receive a dual-card switching request, wherein the dual-card switching request is used to switch from a first subscriber identification card to a second subscriber identification card;

[0130] A recovery module 76, configured to restore the configuration information of the second subscriber identity card according to the pre-saved second configuration information;

[0131] The synchronization module 78 is used to perform a pre-synchronization operation on the second subscriber identity card according to the restored configuration information to complete the establishment of the connection between the user terminal and the base station.

[0132] In some embodiments, the apparatus further includes: a saving module 74, configured to save the configuration information of the first user identification card as first configuration information.

[0133] In some embodiments, the device further includes: a deactivation module, used to notify the uplink and downlink scheduling module to stop data communication and release channel resources; notify the cell selection and reselection module to stop cell search and measurement; and set the state of the first user identification card to an interrupt state.

[0134] In some embodiments, the saving module 74 is further configured to save the configuration information of the second user identification card as the second configuration information during the process of switching from the second user identification card to the first user identification card.

[0135] In some embodiments, the configuration information includes at least one of the following: user identification card status, time frequency, frequency deviation, cell data, public configuration message, private configuration message, uplink timing advance TA value, cell radio network temporary identifier C-RNTI value, measurement configuration message, mask information of measurement object, and measurement interval message.

[0136] In some embodiments, the recovery module 76 further includes:

[0137] A judging unit, used to judge whether the second configuration information has been saved;

[0138] The confirmation unit is used to end the dual-card switching process and send the dual-card switching confirmation message to the protocol stack when the judgment result is no.

[0139] In some embodiments, the recovery module 76 further includes:

[0140] An initial search unit, configured to, if the judgment result is yes, obtain and report the target cell with the strongest signal strength through cell search, and match the physical cell identifier and frequency of the target cell in a preset cell database;

[0141] A restoring unit is used to restore the configuration information of the second user identification card in sequence according to the second configuration information when the matching is successful.

[0142] In some embodiments, the device further includes: an acquisition module for acquiring the user identification card status of the first user identification card; acquiring the time frequency of the first user identification card through cell search; and modifying the residence indication and reconfiguration flag of the first user identification card to indicate the serving cell and whether to reconfigure.

[0143] In some embodiments, the synchronization module 78 may include:

[0144] an adjustment unit, configured to wake up the physical layer to perform a data reception test on the second user identification card, and adjust a carrier frequency deviation parameter, an automatic gain control parameter, and a digital automatic gain control parameter of the second user identification card so that the second user identification card can successfully receive data;

[0145] A switching unit is used to switch a message channel from a first channel corresponding to the first user identification card to a second channel corresponding to the second user identification card.

[0146] In some embodiments, the device further includes a confirmation module, configured to perform RRC connection reestablishment, cell reselection, or data transmission and reception according to the dual-card switching confirmation message and the subscriber identity card status of the second subscriber identity card.

[0147] In some embodiments, the confirmation module is also used to perform RRC connection reconstruction when the dual-card switching confirmation message indicates that the dual-card switching has failed and the user identification card state is in a connected state; to perform cell reselection when the dual-card switching confirmation message indicates that the dual-card switching has failed and the user identification card state is in an idle state; to perform RRC connection reconstruction when the dual-card switching confirmation message indicates that the dual-card switching has been successful and the user identification card state is in an idle state; to determine whether the second user identification card needs authentication when the dual-card switching confirmation message indicates that the dual-card switching has been successful and the user identification card state is in a connected state, and to perform RRC connection reconstruction when the determination is yes, and to perform data transmission and reception when the determination is no.

[0148] The embodiments of the present application can solve the problems of high dual-card switching delay and reduced user experience in the related art, increase the response speed of dual-card switching, improve user experience, and avoid poor device battery life caused by dual-card standby at the same time.

[0149] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program executes the steps of any of the above method embodiments when executed by a processor.

[0150] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0151] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0152] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0153] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0154] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0155] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A dual-card switching method, applied to a user terminal, characterized in that: The method comprises: Receiving a dual-card switching request, wherein the dual-card switching request is used to switch from a first user identification card to a second user identification card; Restoring the configuration information of the second user identification card according to the pre-saved second configuration information; A pre-synchronization operation is performed on the second user identification card according to the restored configuration information to complete the establishment of a connection between the user terminal and the base station.

2. The method according to claim 1, characterized in that: After receiving the dual-card switching request, the method further includes: The configuration information of the first user identification card is saved as first configuration information.

3. The method according to claim 1, characterized in that After receiving the dual-card switching request, the method further includes: Notify the uplink and downlink scheduling modules to stop data communication and release channel resources; Notify the cell selection and reselection module to stop cell search and measurement; The state of the first subscriber identification card is set to an interrupt state.

4. The method according to claim 1, characterized in that: Before restoring the configuration information of the second subscriber identification card according to the pre-saved second configuration information, the method further includes: In the process of switching from the second subscriber identification card to the first subscriber identification card, the configuration information of the second subscriber identification card is saved as the second configuration information.

5. The method according to claim 1, characterized in that The configuration information includes at least one of the following: User identity card status, time-frequency, frequency offset, cell data, public configuration messages, private configuration messages, uplink timing advance TA value, cell radio network temporary identifier C-RNTI value, measurement configuration message, mask information of measurement object, and measurement interval message.

6. The method according to claim 1, characterized in that Before restoring the configuration information of the second subscriber identification card according to the pre-saved second configuration information, the method further includes: Determining whether the second configuration information has been saved; If the judgment result is no, the dual SIM card switching process ends.

7. The method according to claim 6, characterized in that Restoring the configuration information of the second user identification card according to the pre-saved second configuration information includes: If the judgment result is yes, obtain and report the target cell with the strongest signal strength through cell search, and match the physical cell identifier and frequency of the target cell in a preset cell database; In case of successful matching, the configuration information of the second subscriber identification card is restored in sequence according to the second configuration information.

8. The method according to claim 1, characterized in that After receiving the dual-card switching request, the method further includes: Acquire the user identification card status of the first user identification card; Acquire the time and frequency of the first user identification card by cell search; The resident indication and reconfiguration flag of the first user identification card are modified to indicate the serving cell and whether to reconfigure.

9. The method according to claim 1, characterized in that: Performing a pre-synchronization operation on the second user identification card according to the restored configuration information to complete the connection establishment between the user terminal and the base station, including: Searching and detecting the base station according to the restored configuration information to obtain a synchronization parameter of the base station; synchronizing the second subscriber identity card according to the synchronization parameter; The test signal is sent and received through the second user identification card to complete the connection establishment between the user terminal and the base station.

10. The method according to claim 9, characterized in that After sending and receiving the test signal through the second user identification card, the method further includes: The carrier frequency deviation parameter, automatic gain control parameter and digital automatic gain control parameter of the second subscriber identification card are adjusted according to the test signal.

11. The method according to claim 1, characterized in that: The method further comprises at least one of the following: When the connection establishment between the user terminal and the base station is completed, sending a dual-card switching success message to the protocol stack; In case the pre-synchronization operation fails, sending a dual-card switching failure message to the protocol stack; If the second configuration information has not been saved, sending a dual-card switching failure message to the protocol stack; When the preset cell database fails to match the target cell, a dual-card switching failure message is sent to the protocol stack.

12. The method according to claim 11, characterized in that The method further comprises: According to the dual-card switching confirmation message and the user identification card status of the second user identification card, RRC connection reconstruction, cell reselection or data transmission and reception are performed, wherein the dual-card switching confirmation message includes the dual-card switching success message and the dual-card switching failure message.

13. The method according to claim 12, characterized in that Performing RRC connection reestablishment, cell reselection, or data transmission and reception according to the dual-card switching confirmation message and the user identification card state of the second user identification card, including: When the dual-card switching confirmation message is a dual-card switching failure message and the user identification card state is a connected state, performing RRC connection reconstruction; When the dual-card switching confirmation message is a dual-card switching failure message and the user identification card is in an idle state, performing cell reselection; When the dual-card switching confirmation message is a dual-card switching success message and the user identification card state is an idle state, performing RRC connection reestablishment; When the dual-card switching confirmation message is a dual-card switching success message and the user identification card state is a connected state, determine whether the second user identification card needs authentication, and perform RRC connection reconstruction if the judgment is yes, and perform data transmission and reception if the judgment is no.

14. The method according to claim 1, characterized in that After performing a pre-synchronization operation on the second user identification card according to the restored configuration information to complete the establishment of a connection between the user terminal and the base station, the method further includes: The message channel is switched from a first channel corresponding to the first user identification card to a second channel corresponding to the second user identification card.

15. A dual-card switching device, located in a user terminal, characterized in that: The device comprises: A receiving module, used for receiving a dual-card switching request, wherein the dual-card switching request is used for switching from a first user identification card to a second user identification card; A recovery module, used to restore the configuration information of the second user identification card according to the pre-saved second configuration information; The synchronization module is used to perform a pre-synchronization operation on the second user identification card according to the restored configuration information to complete the establishment of the connection between the user terminal and the base station.

16. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program executes the method described in any one of claims 1 to 14 when executed by a processor.

17. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 14.