Method for rapidly switching sim card
By simplifying and optimizing the SIM card switching process, including cache authentication parameters and extending timers, the problem of long time and network fluctuations when switching SIM cards frequently in dual-card single standby devices is solved, improving the efficiency of equipment usage and reducing the burden on base stations .
Patent Information
- Application Number
- CN202411501966.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-01-03
AI Technical Summary
In dual-stop devices, a complete handshake process is required when switching SIM cards frequently, resulting in a long switching time, affecting usage efficiency and increasing the burden on the base station, causing network fluctuations.
Through module initialization, network search, attachment request, authentication, cache authentication parameters, establishing bearer, recording network, data transmission and configuration periodic location updates, simplifying and optimizing the SIM card switching process, skipping unnecessary steps, and cache authentication Parameters to shorten the reauthentication time and set a longer timer to reduce the frequency of position updates.
It significantly shortens the SIM card switching time, improves the efficiency of equipment usage, reduces the impact on the base station, and reduces network fluctuations.
Smart Images

Figure CN119255342A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of mobile communications, and in particular relates to a method for quickly switching SIM cards. Background Art
[0002] At present, on dual-SIM single-standby devices, the general handshake process for SIM card switching is as follows: 1. Module initialization; 2. Network search; 3. Attachment request; 4. Identity verification; 5. Establish bearer and complete attachment; 6. Data transmission; The above is the handshake process for establishing a network connection between a standard communication device and a base station; However, for dual-SIM single-standby devices, sometimes specific scenarios require frequent switching of SIM cards at a certain moment; that is, when the same module establishes a network connection with the same base station, all the above processes need to be completed each time. This process not only greatly increases the time for module switching SIM, affecting the use efficiency. It will also increase the burden on the base station and cause network fluctuations. The purpose of the present invention is to provide a method for quick connection after switching the SIM card to improve the use efficiency of the device. Summary of the invention
[0003] The object of the present invention is to provide a method for quickly switching SIM cards to solve the problems raised in the above background technology.
[0004] In order to achieve the above object, the present invention provides the following technical solution: a method for quickly switching SIM cards, the method steps of quickly switching SIM cards are as follows:
[0005] The first step is module initialization: the module is initialized when the SIM card switch is triggered;
[0006] Step 2: Network search: After initialization, the module starts searching for available mobile networks;
[0007] Step 3: Attachment request: After selecting a base station, the device module will send an attachment request to the base station to request to establish a connection with the network;
[0008] Step 4: Identity verification: After receiving the attachment request, the base station will perform identity verification. After successful identity verification, the base station will authorize the device to access the network.
[0009] Step 5: Cache authentication parameters and add new authentication methods; cache authentication parameters after the identity authentication between the device module and the base station is passed, add new TMSI and AKA authentication methods, and shorten the time for re-authentication after card switching. TMSI (Mobile Subscriber Identity), Authentication and Key Agreement (AKA), because the identity authentication process between the device module and the base station is complex and time-consuming, caching parameters can shorten the time for re-authentication after card switching.
[0010] Step 6: Establish a bearer and complete attachment: After identity authentication is passed, a communication bearer will be established between the base station and the device module to support data transmission; after the communication bearer is successfully established, the device module is considered to be attached to the network and data transmission is carried out.
[0011] Step 7: Record and cache the network: record and cache the network that has been connected. If the network is stable, it will be selected first when reconnecting next time, thus skipping the time of searching for the network.
[0012] Step 8: Data transmission: After the attachment is completed, the device module can start data transmission with the base station;
[0013] Step 9. Configure periodic location updates and set a longer timer: Set the timer longer to reduce the frequency of device module location updates, so that the base station network can retain the module's location information for a longer period of time; after the card is disconnected, the base station will still retain the relevant information of the device module.
[0014] Preferably, the module initialization includes loading of hardware configuration, preparation of software environment and activation of communication module, so as to ensure that the module is in a state of executing communication tasks.
[0015] Preferably, the network search includes scanning signals emitted by surrounding base stations, evaluating signal strength and quality, and selecting a base station for connection;
[0016] Preferably, the attachment request contains key data of device information and SIM card information for subsequent authentication and configuration by the base station.
[0017] Preferably, the identity verification includes checking the IMSI (International Mobile Subscriber Identity) in the SIM card and security credentials to ensure that the request comes from a legitimate user and device.
[0018] Preferably, establishing the bearer includes configuring parameters for data transmission, the parameters including IP address allocation and Quality of Service (QoS) settings.
[0019] Preferably, the data transmission includes communication activities such as voice calls, text message sending and receiving, and Internet access.
[0020] Preferably, the timer is used to control the time for the module to perform a location update when there is no activity.
[0021] The beneficial effects of the present invention are as follows:
[0022] The present invention is mainly used in various dual-SIM single-standby device types such as Android smart devices, Linux traditional devices, and single-chip simple devices, and in scenarios where frequent switching of SIM cards is required. The present invention aims to optimize the network connection efficiency of dual-SIM single-standby devices when frequently switching SIM cards in specific scenarios. In view of the current technology, each switch requires the complete execution of module initialization, network search, attachment request, identity authentication, bearer establishment, and a full set of handshake processes until the attachment and subsequent data transmission are completed, resulting in a long SIM card switching time, low equipment utilization efficiency, and increased base station burden causing network fluctuations. The core goal of the present invention is to provide a fast connection method, so that when switching SIM cards between the same module and the base station, some unnecessary connection steps can be skipped or simplified, thereby accelerating the switching process, significantly improving the utilization efficiency of the device and reducing the impact on the base station. The time for reconnecting with the base station is greatly shortened. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a handshake flow chart for the first registration of the present invention;
[0024] Figure 2 This is a diagram of switching SIM cards and reconnecting the device according to the present invention;
[0025] Figure 3 This is a common network connection flow chart of the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] like Figure 1-Figure 3 As shown, an embodiment of the present invention provides a method for quickly switching SIM cards, and the method steps for quickly switching SIM cards are as follows:
[0028] The first step is module initialization: the module is initialized when the SIM card switch is triggered;
[0029] Step 2: Network search: After initialization, the module starts searching for available mobile networks;
[0030] Step 3: Attachment request: After selecting a base station, the device module will send an attachment request to the base station to request to establish a connection with the network;
[0031] Step 4: Identity verification: After receiving the attachment request, the base station will perform identity verification. After successful identity verification, the base station will authorize the device to access the network.
[0032] Step 5: Cache authentication parameters and add new authentication methods; cache authentication parameters after the identity authentication between the device module and the base station is passed, add new TMSI and AKA authentication methods, and shorten the time for re-authentication after card switching. TMSI (Mobile Subscriber Identity), Authentication and Key Agreement (AKA), because the identity authentication process between the device module and the base station is complex and time-consuming, caching parameters can shorten the time for re-authentication after card switching.
[0033] Step 6: Establish a bearer and complete attachment: After identity authentication is passed, a communication bearer will be established between the base station and the device module to support data transmission; after the communication bearer is successfully established, the device module is considered to be attached to the network and data transmission is carried out.
[0034] Step 7: Record and cache the network: record and cache the network that has been connected. If the network is stable, it will be selected first when reconnecting next time, thus skipping the time of searching for the network.
[0035] Step 8: Data transmission: After the attachment is completed, the device module can start data transmission with the base station;
[0036] Step 9. Configure periodic location updates and set a longer timer: Set the timer longer to reduce the frequency of device module location updates, so that the base station network can retain the module's location information for a longer period of time; after the card is disconnected, the base station will still retain the relevant information of the device module.
[0037] The module initialization includes loading of hardware configuration, preparation of software environment and activation of communication module, so as to ensure that the module is in a state of executing communication tasks.
[0038] Wherein, the network search includes scanning signals emitted by surrounding base stations, evaluating signal strength and quality, and selecting a base station for connection;
[0039] The attachment request includes key data of device information and SIM card information for subsequent authentication and configuration by the base station.
[0040] The identity verification includes checking the IMSI (International Mobile Subscriber Identity) and security credentials in the SIM card to ensure that the request comes from a legitimate user and device.
[0041] The establishment of the bearer includes configuring parameters for data transmission, and the parameters include IP address allocation and Quality of Service (QoS) settings.
[0042] The data transmission includes communication activities such as voice calls, text message sending and receiving, and Internet access.
[0043] The timer is used to control the time for the module to perform a location update when there is no activity.
[0044] SIM card switching code:
[0045]
[0046]
[0047]
[0048]
[0049] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0050] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for quickly switching SIM cards, characterized in that: The method steps for fast switching of the SIM card are as follows: The first step is module initialization: the module is initialized when the SIM card switch is triggered; Step 2: Network search: After initialization, the module starts searching for available mobile networks; Step 3: Attachment request: After selecting a base station, the device module will send an attachment request to the base station to request to establish a connection with the network; Step 4: Identity verification: After receiving the attachment request, the base station will perform identity verification. After successful identity verification, the base station will authorize the device to access the network. Step 5: Cache authentication parameters and add new authentication methods. After the identity authentication between the device module and the base station is passed, cache authentication parameters, add new TMSI and AKA authentication methods, and shorten the time for re-authentication after card switching. Step 6: Establish a bearer and complete attachment: After identity authentication is passed, a communication bearer will be established between the base station and the device module to support data transmission; After the communication bearer is successfully established, the device module is considered to be attached to the network and data transmission is carried out; Step 7: Record and cache the network: record and cache the network that has been connected. If the network is stable, it will be selected first when reconnecting next time, thus skipping the time of searching for the network. Step 8: Data transmission: After the attachment is completed, the device module can start data transmission with the base station; Step 9. Configure periodic location updates and set a longer timer: Set the timer longer to reduce the frequency of device module location updates, so that the base station network can retain the module's location information for a longer period of time; after the card is disconnected, the base station will still retain the relevant information of the device module.
2. A method for quickly switching SIM cards according to claim 1, characterized in that: The module initialization includes loading of hardware configuration, preparation of software environment and activation of communication module, ensuring that the module is in a state of executing communication tasks.
3. A method for quickly switching SIM cards according to claim 1, characterized in that: The network search includes scanning signals from surrounding base stations, evaluating signal strength and quality, and selecting a base station for connection.
4. A method for quickly switching SIM cards according to claim 1, characterized in that: The attachment request contains key data of device information and SIM card information for subsequent authentication and configuration by the base station.
5. A method for quickly switching SIM cards according to claim 1, characterized in that: The authentication includes checking the IMSI and security credentials in the SIM card to ensure that the request comes from a legitimate user and device.
6. A method for quickly switching SIM cards according to claim 1, characterized in that: The establishment of the bearer includes configuring parameters for data transmission, and the parameters include IP address allocation and Quality of Service (QoS) settings.
7. A method for quickly switching SIM cards according to claim 1, characterized in that: The data transmission includes communication activities such as voice calls, text message sending and receiving, and Internet access.
8. A method for quickly switching SIM cards according to claim 1, characterized in that: The timer is used to control the time for the module to perform a location update when there is no activity.
