SIM (Subscriber Identity Module) network access method and device, SIM card and storage medium

By monitoring the location status events and file update events of the SIM card, determining the network access status and switching the number when necessary, solving the problem of failure of switching the SIM card to connect to the network and improving the success rate of network access.

CN119629606APending Publication Date: 2025-03-14BEIJING HUAHONG INTEGRATED CIRCUIT DESIGN
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411750359.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

SIM cards with multiple numbers of one card are prone to failure when cutting numbers into the network, resulting in a low success rate of access.

Method used

By detecting location status events and file update events, determine the network access status identifier of the SIM card. When the current IMSI network access fails and the preset number cut trigger condition is met, the number cut is performed to the network; at the same time, when a network code prohibiting entry is detected, the number cut is also performed to the network.

Benefits of technology

The success rate of multi-number SIM cards has been improved, and the number failed status of the number is promptly known by monitoring multiple events, and the number is cut and accessed in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629606A_ABST
    Figure CN119629606A_ABST
Patent Text Reader

Abstract

The invention discloses a subscriber identity module (SIM) network access method and device, an SIM card and a storage medium. The method comprises the following steps: when at least one of a position state event and a first file updating event for an SIM card is detected, determining a network access state identifier of the SIM card; the first file is a file used for storing position information in the SIM card; when the network access state identifier indicates that the network access is failed based on the current IMSI in the SIM card and it is determined that a preset number switching trigger condition is met, performing number switching network access for the current IMSI; when a second file updating event for a second file in the SIM card is detected and it is determined that MCC and MNC included in the current IMSI belong to network codes for prohibiting network access, performing number switching network access for the current IMSI; the second file is a file used for storing the network access forbidding information in the SIM card. By adopting the method, the network access success rate of the multi-number SIM card can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method and device for accessing a user identification card (SIM) network, a SIM card and a storage medium. Background Art

[0002] With the rapid development of mobile communication technology and the increasing diversification of user needs, the SIM card technology of one card with multiple numbers, that is, a single SIM (Subscriber Identity Module) card supporting multiple phone numbers, came into being, aiming to provide users with more convenient and flexible communication services. This technology allows users to bind multiple phone numbers on one SIM card, and realize the functions of answering, making calls and accessing the Internet with data through simple switching operations. However, in actual applications, the SIM card with multiple numbers is prone to failure when switching numbers to access the network, that is, switching different numbers to connect to the network, resulting in a low success rate of switching numbers to access the network. Summary of the invention

[0003] The embodiments of the present application provide a method, device, SIM card and storage medium for network access using a user identification card (SIM), which can improve the network access success rate of multiple SIM cards.

[0004] In a first aspect, the present application provides a method for accessing a network using a user identification card (SIM), which is applied to a SIM card that supports at least two International Mobile Subscriber Identification Numbers (IMSIs). The method includes:

[0005] Determine the network access status identifier of the SIM card when at least one of a location status event and a first file update event for the SIM card is detected; the first file update event is an event that triggers an update of a first file, and the first file is a file in the SIM card for storing location information;

[0006] When the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that the preset number switching trigger condition is met, the number switching is performed for the current IMSI;

[0007] When a second file update event for a second file in the SIM card is detected and it is determined that the mobile country code (MCC) and the mobile network code (MNC) included in the current IMSI belong to a network code for prohibited network access, the current IMSI is switched to a network; the second file is a file in the SIM card used to store prohibited network access information.

[0008] In one of the embodiments, when the network access status identifier indicates that network access based on the current IMSI in the SIM card has failed and it is determined that a preset number switching trigger condition is met, number switching is performed for the current IMSI to access the network, including: when the network access status identifier indicates that network access based on the current IMSI in the SIM card has failed and it is determined that the current MCC corresponding to the current location is different from the previous MCC, based on the current MCC, a preset first list and a preset second list, determining a new IMSI corresponding to the current MCC; wherein the current MCC is determined based on at least one of a location status event and a first file update event, the previous MCC is the MCC corresponding to the location of the last network access attempt, the first list includes IMSIs corresponding to the indexes of multiple IMSIs, and the second list includes correspondences between the indexes of multiple MCCs and multiple IMSIs; and the new IMSI is used as the next attempted IMSI for network access processing.

[0009] In one of the embodiments, when the network access status identifier indicates that network access based on the current IMSI in the SIM card has failed and it is determined that a preset number switching trigger condition is met, number switching is performed for the current IMSI to access the network, including: when the network access status identifier indicates that network access based on the current IMSI in the SIM card has failed and it is determined that the first condition or the second condition is met, the category of the current IMSI is determined based on a preset first list; the first condition includes: the current MCC is the same as the previous MCC, and the reason for the network access failure includes that the network providing land mobile communication services belongs to a network prohibited from accessing the network; the second condition includes: the current MCC is the same as the previous MCC, and the reason for the network access failure includes that the current location area belongs to an area prohibited from accessing the network; wherein the current MCC is determined based on at least one of a location status event and a first file update event, the previous MCC is the MCC corresponding to the location of the last network access attempt, and the first list includes IMSIs corresponding to the indexes of multiple IMSIs respectively; when it is determined that the category of the current IMSI is a local IMSI, any roaming IMSI in the first list is used as the next IMSI to attempt to access the network for network access processing.

[0010] In one of the embodiments, the method further includes: when it is determined that the category of the current IMSI is a roaming IMSI and the current IMSI is the roaming IMSI corresponding to the current MCC, any roaming IMSI in the first list except the current IMSI is used as the next IMSI to attempt to access the network, and performing network access processing based on the next attempted IMSI.

[0011] In one of the embodiments, when at least one of a location status event and a first file update event for a SIM card is detected, determining a network access status identifier of a SIM card includes at least one of the following: when a location status event for a SIM card is detected, determining the network access status identifier of the SIM card based on the location status event; when a first file update event for a SIM card is detected, determining the network access status identifier of the SIM card based on the first file update event.

[0012] In one of the embodiments, the method further includes: determining the network access retry status of the current IMSI when the network access status identifier indicates that the network access based on the current IMSI in the SIM card has failed and it is determined that a preset delayed number switching condition is met; the preset delayed number switching condition includes that the network access failure cause corresponding to the current IMSI is that the location is not updated; when it is determined that the network access retry status is in retry waiting, determining the number of network access attempts corresponding to the current IMSI; when it is determined that the number of network access attempts is less than a preset number threshold, starting a retry timer; when it is determined based on the retry timer that the number switching restart condition is met, executing the step of switching the number to the network for the current IMSI.

[0013] In one of the embodiments, when a second file update event for a second file in a SIM card is detected and it is determined that a mobile country code MCC and a mobile network number MNC included in a current IMSI belong to a network code prohibited from accessing the network, a number switching and accessing the network is performed for the current IMSI, including: when a second file update event for a second file in a SIM card is detected and it is determined that a mobile country code MCC and a mobile network number MNC included in the current IMSI belong to a network code prohibited from accessing the network, a category of the current IMSI is determined based on a preset first list; the first list includes IMSIs corresponding to indexes of multiple IMSIs; when it is determined that the category of the current IMSI is a local IMSI, any roaming IMSI in the first list is used as the next IMSI to attempt to access the network for network access processing; when it is determined that the category of the current IMSI is a roaming IMSI and the current IMSI is the roaming IMSI corresponding to the current MCC, any roaming IMSI in the first list except the current IMSI is used as the next IMSI to attempt to access the network, and network access processing is performed based on the next attempted IMSI.

[0014] In a second aspect, the present application provides a user identification card SIM network access device, which is applied to a SIM card supporting at least two international mobile user identities IMSI, and the device includes:

[0015] A determination module, configured to determine the network access status identifier of the SIM card when at least one of a location status event and a first file update event for the SIM card is detected; the first file update event is an event that triggers an update of a first file, and the first file is a file in the SIM card for storing location information;

[0016] A processing module, configured to switch the number to the network for the current IMSI when the network access status indicator indicates that the network access based on the current IMSI in the SIM card fails and it is determined that the preset number switching trigger condition is met;

[0017] The processing module detects a second file update event for the second file in the SIM card and determines that the mobile country code MCC and the mobile network number MNC included in the current IMSI belong to the network code prohibited from accessing the network, and switches the number to access the network for the current IMSI; the second file is a file in the SIM card used to store prohibited network access information.

[0018] In a third aspect, the present application provides a SIM card, which supports at least two international mobile subscriber identities IMSI, including a processor and a memory, wherein the memory stores a computer program; when the processor executes the computer program, the following steps are implemented:

[0019] Determine the network access status identifier of the SIM card when at least one of a location status event and a first file update event for the SIM card is detected; the first file update event is an event that triggers an update of a first file, and the first file is a file in the SIM card for storing location information;

[0020] When the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that the preset number switching trigger condition is met, the number switching is performed for the current IMSI;

[0021] When a second file update event for the second file in the SIM card is detected and it is determined that the mobile country code MCC and the mobile network number MNC included in the current IMSI belong to a network code that is prohibited from accessing the network, the current IMSI is switched to access the network; the second file is a file in the SIM card used to store prohibited network access information.

[0022] In a fourth aspect, an embodiment of the present application provides a SIM card access system, the system comprising a terminal device and a SIM card supporting at least two international mobile subscriber identities IMSI; wherein the SIM card is connected to the terminal device, and the SIM card can be used to perform the following steps:

[0023] Determine the network access status identifier of the SIM card when at least one of a location status event and a first file update event for the SIM card is detected; the first file update event is an event that triggers an update of a first file, and the first file is a file in the SIM card for storing location information;

[0024] When the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that the preset number switching trigger condition is met, the number switching is performed for the current IMSI;

[0025] When a second file update event for the second file in the SIM card is detected and it is determined that the mobile country code MCC and the mobile network number MNC included in the current IMSI belong to a network code that is prohibited from accessing the network, the current IMSI is switched to access the network; the second file is a file in the SIM card used to store prohibited network access information.

[0026] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0027] Determine the network access status identifier of the SIM card when at least one of a location status event and a first file update event for the SIM card is detected; the first file update event is an event that triggers an update of a first file, and the first file is a file in the SIM card for storing location information;

[0028] When the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that the preset number switching trigger condition is met, the number switching is performed for the current IMSI;

[0029] When a second file update event for the second file in the SIM card is detected and it is determined that the mobile country code MCC and the mobile network number MNC included in the current IMSI belong to a network code that is prohibited from accessing the network, the current IMSI is switched to access the network; the second file is a file in the SIM card used to store prohibited network access information.

[0030] In a sixth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0031] Determine the network access status identifier of the SIM card when at least one of a location status event and a first file update event for the SIM card is detected; the first file update event is an event that triggers an update of a first file, and the first file is a file in the SIM card for storing location information;

[0032] When the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that the preset number switching trigger condition is met, the number switching is performed for the current IMSI;

[0033] When a second file update event for the second file in the SIM card is detected and it is determined that the mobile country code MCC and the mobile network number MNC included in the current IMSI belong to a network code that is prohibited from accessing the network, the current IMSI is switched to access the network; the second file is a file in the SIM card used to store prohibited network access information.

[0034] The above-mentioned user identification card SIM network access method, device, SIM card and storage medium are applied to a SIM card that supports at least two international mobile subscriber identities IMSI. The SIM card can determine whether network access based on the current IMSI has failed when at least one of the location status event and the first file update event is detected. When it is determined that network access based on the current IMSI has failed and the preset number switching trigger condition is met, the number switching network access is performed; when the second file update event is detected, it is determined whether the current MCC corresponding to the current location is prohibited. When the current MCC is prohibited, the number switching network access is performed. In this way, the SIM card can timely learn the network access failure status of the current number based on the monitored multiple events by monitoring multiple events at the same time, so as to timely switch the number to the network, thereby improving the network access success rate of multi-number SIM cards. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 It is a flowchart of a method for accessing a network using a user identification card SIM card provided in an embodiment of the present application;

[0037] Figure 2 This is a schematic diagram of a flow chart of number switching and network access provided by an embodiment of the present application;

[0038] Figure 3 This is another flowchart of switching numbers to access the network provided by an embodiment of the present application;

[0039] Figure 4 This is another schematic diagram of a flow chart of switching a number to access a network provided in an embodiment of the present application;

[0040] Figure 5 This is a schematic diagram of the overall process of switching numbers to access the network provided by an embodiment of the present application;

[0041] Figure 6 This is another schematic diagram of a flow chart of switching a number to access a network provided in an embodiment of the present application;

[0042] Figure 7 This is a schematic diagram of event management by a SIM card provided in an embodiment of the present application;

[0043] Figure 8 It is a structural schematic diagram of a user identification card SIM network access device provided in an embodiment of the present application;

[0044] Fig. 9 It is a structural schematic diagram of a SIM card provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] First, the SIM card mentioned in the embodiment of the present application is introduced.

[0047] In the present application, the SIM card is a SIM card that supports at least two IMSIs. Among them, IMSI is a mark to distinguish mobile users, which is stored in the SIM card and can be used to distinguish valid information of mobile users. IMSI is a 15-digit decimal number, and its structure is as follows: MCC+MNC+Mobile Subscriber Identification Number (MSIN). Among them, MCC occupies 3 digits; MNC consists of two or three digits, which are used to identify the mobile communication network to which the mobile user belongs; MSIN is used to identify mobile users in a mobile communication network. Optionally, the SIM card mentioned in this application may include but is not limited to a global SIM (Universal SIM, USIM) card, an embedded SIM (Embedded SIM, eSIM) card, etc., which are not limited here.

[0048] The following specific embodiments are used to describe in detail the method for accessing the network using a user identification card SIM card provided in the embodiments of the present application. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0049] See also Figure 1 , Figure 1 1 is a flow chart of a method for accessing a network using a user identification card SIM card provided in an embodiment of the present application. The method can be executed by a SIM card that supports at least two IMSIs. Figure 1As shown, the method may include but is not limited to the following steps:

[0050] S101: When at least one of a location status event and a first file update event for a SIM card is detected, determine a network access status identifier of the SIM card.

[0051] Among them, the first file update event is an event that triggers the update of the first file, and the first file is a file in the SIM card used to store location information. Optionally, the first file can be a 6F7E file, which is a file used to store the user's temporary identity, location area representation, the validity period of the temporary identity and the location update status. The network access status identifier is used to identify the status of the SIM card accessing the network, such as the status of the IMSI in the SIM card accessing the network. The location status event is an event that triggers an update for the location of the terminal device to which the SIM card is connected.

[0052] In an optional implementation, after step S101, the SIM card may also determine that the network access status identifier indicates successful network access based on the current IMSI in the SIM card when it is determined that the network access status identifier of the SIM card is consistent with a preset network access status identifier; and determine that the network access status identifier indicates failed network access based on the current IMSI in the SIM card when it is determined that the network access status identifier of the SIM card is inconsistent with the preset network access status identifier.

[0053] For example, assuming that the preset network access status identifier is 0 and the network access status identifier of the SIM card is 0, in this case, the SIM card can determine that the network access status identifier 0 is consistent with the preset network access status identifier. At this time, the SIM card can determine that the network access is successful based on the current IMSI.

[0054] For another example, assuming that the preset network access status identifier is 0 and the network access status identifier of the SIM card is 1, in this case, the SIM card can determine that the network access status identifier 1 is inconsistent with the preset network access status identifier 0. At this time, the SIM card can determine that the network access based on the current IMSI has failed.

[0055] In an optional implementation, the network access status identifier of the SIM card may be determined by the SIM card according to the lower three bits of the "Location update status" field in the location status event or the first file update event. In this case, after step S101, the SIM card may also determine whether the network access status identifier is 0 based on the lower three bits of the "Location update status" field. If it is 0, it indicates that the current IMSI in the SIM card has successfully accessed the network. If it is not 0, it indicates that the current IMSI in the SIM card has failed to access the network.

[0056] S102: When the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that a preset number switching trigger condition is met, perform number switching for the current IMSI.

[0057] Exemplarily, the SIM card can make a determination based on the network access status identifier to determine the network access status of the current IMSI according to the network access status identifier. When it is determined based on the network access status identifier that the current IMSI fails to access the network, the SIM card can determine whether the number switching trigger condition is met. In some embodiments, the SIM card can perform real-time or timed detection to determine whether the preset number switching trigger condition is met. For example, the SIM card can obtain the parameters required for the number switching trigger condition determination, and determine the detected parameters with the number switching trigger condition to determine whether the number switching trigger condition is met. When it is determined that the number switching trigger condition is met, it indicates that the current IMSI cannot access the network and needs to be switched to ensure the normal communication of the SIM card. The SIM card can trigger the number switching for the current IMSI. For example, the IMSIs supported by the SIM card include IMSI1, IMSI2 and IMSI3. The current IMSI is IMSI1 among the IMSIs supported by the SIM card. At this time, the SIM card can try to switch IMSI1 to IMSI2 or IMSI3 for network access.

[0058] In an optional implementation, the number switching triggering condition may be set based on a predefined setting rule, or may be set by a user based on historical statistical number switching network access conditions, which is not limited here.

[0059] In an optional implementation, the SIM card switches the number to the current IMSI for network access, and the IMSI for the next network access attempt may be determined according to the user's historical number switching data, and the network access process is performed based on the next IMSI for the next network access attempt; the IMSI for the next network access attempt may be determined according to a preset rule, and the network access process is performed based on the next IMSI for the next network access attempt; or the IMSI with the largest number of historical network access successes may be determined according to statistics of historical number switching, and the IMSI with the largest number of historical network access successes may be used as the IMSI for the next network access attempt, and the network access process is performed based on the next IMSI for the next network access attempt, etc.

[0060] S103: When a second file update event for a second file in the SIM card is detected and it is determined that the mobile country code MCC and the mobile network number MNC included in the current IMSI belong to a network code that prohibits network access, switch the number to access the network for the current IMSI.

[0061] The second file is a file in the SIM card for storing information on prohibited network access. Optionally, the second file may be a 6F7B file, which is a file for storing prohibited network numbers.

[0062] The current location may be the current location of the terminal device to which the SIM card is connected.

[0063] MCC is used to indicate the country of the mobile user (or system), and consists of three decimal digits. The current MCC is used to indicate the country of the current location of the terminal device connected to the SIM card.

[0064] Exemplarily, when the SIM card detects a second file update event for the second file in the SIM card and determines that the MCC and MNC included in the current IMSI belong to a network code that prohibits network access, the SIM card switches the number to the network for the current IMSI. It may be that when the SIM card detects a second file update event for the second file in the SIM card, the network status of the MCC and MNC included in the current IMSI is determined, and when it is determined that the current IMSI fails to access the network based on the network status of the MCC and MNC included in the current IMSI, the SIM card may switch the number to the network for the current IMSI; wherein the network status of the MCC and MNC included in the current IMSI may include that the MCC and MNC included in the current IMSI are prohibited from accessing the network (that is, the MCC and MNC included in the current IMSI belong to a network code that prohibits network access) or that the MCC and MNC included in the current IMSI are not prohibited from accessing the network (or the MCC and MNC included in the current IMSI belong to a network code that allows network access).

[0065] In the embodiment of the present application, a SIM card supporting at least two international mobile subscriber identities (IMSIs) can determine whether network access based on the current IMSI has failed when at least one of a location status event and a first file update event is detected, and switch the number to the network when it is determined that network access based on the current IMSI has failed and the preset number switching trigger condition is met; when a second file update event is detected, it is determined whether the MCC and MNC included in the current IMSI are prohibited, and switch the number to the network when the current MCC is prohibited. In this way, the SIM card can timely learn the network access failure status of the current number based on the monitored multiple events by monitoring multiple events at the same time, so as to switch the number to the network in time, thereby improving the network access success rate of multi-number SIM cards.

[0066] In an optional embodiment, Figure 1The preset number switching triggering conditions mentioned in the user identification card SIM access method shown include at least one of the following: the current MCC corresponding to the current location is different from the previous MCC, the first condition and the second condition; wherein the first condition includes that the current MCC is the same as the previous MCC, and the reason for the access failure includes that the network providing land mobile communication services belongs to a prohibited network (recorded as PLMN not allowed), and the second condition includes that the current MCC is the same as the previous MCC, and the reason for the access failure includes that the current location area belongs to a prohibited area (recorded as LocationArea not allowed). The following is described in the manner of implementation mode 1.1 and implementation mode 1.2. Figure 1 In other words, implementation 1.1 and implementation 1.2 describe in detail how to switch the number to the current IMSI when the network access status indicator of the SIM card indicates that the network access based on the current IMSI in the SIM card fails and the preset number switching trigger condition is determined to be met.

[0067] In implementation mode 1.1, the preset number switching trigger condition is satisfied that the current MCC corresponding to the current position is different from the previous MCC.

[0068] That is, when the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that the current MCC corresponding to the current location is different from the previous MCC, the SIM card can switch the number to the network for the current IMSI.

[0069] The current location may be the current location of the terminal device to which the SIM card is connected; the current MCC is used to indicate the country to which the current location of the terminal device to which the SIM card is connected belongs.

[0070] The last MCC is the MCC corresponding to the location of the last network access attempt, wherein the last network access attempt location refers to the location of the terminal device to which the SIM card is connected when the last network access attempt is made.

[0071] Combine the following Figure 2 , describes the process of switching the number to the network for the current IMSI when the network access status indicator of the SIM card indicates that the network access based on the current IMSI in the SIM card has failed and the current MCC corresponding to the current location is different from the previous MCC. Figure 2 , Figure 2 1 is a flow chart of a number switching network access process provided by an embodiment of the present application, and the method can be executed by a SIM card supporting at least one IMSI. Figure 2 As shown, the process of switching numbers to access the network may include but is not limited to the following steps:

[0072] S201. When the network access status indicator indicates that network access based on the current IMSI in the SIM card has failed and a current MCC corresponding to a current location is determined to be different from a previous MCC, a new IMSI corresponding to the current MCC is determined based on the current MCC, a preset first list, and a preset second list.

[0073] The current MCC is determined based on at least one of a location status event and a first file update event.

[0074] Optionally, before step S201, the SIM card may also determine the current MCC based on at least one of a location status event and a first file update event.

[0075] In an optional implementation, the location status event or the first file update event may carry the current MCC; the SIM card determines the current MCC based on at least one of the location status event and the first file update event. For example, the SIM card may obtain the current MCC from the location status event. For another example, when the first file update event is detected, the SIM card may obtain the current MCC from the first file update event.

[0076] The last MCC is the MCC corresponding to the location of the last network access attempt. The last network access attempt location refers to the location of the terminal device to which the SIM card is connected when the last network access attempt is made.

[0077] Optionally, before step S201, the SIM card may also obtain the last MCC from the storage space of the attempted MCC, wherein the storage space of the attempted MCC may be part of the storage space in the memory included in the SIM card.

[0078] The first list includes IMSIs corresponding to the indexes of multiple IMSIs. The first list is a list prefabricated in the SIM card. Optionally, the specific number of IMSIs in the first list can be set according to customer needs.

[0079] Exemplarily, the first list may be as shown in Table 1 below.

[0080] Table 1 First list

[0081]

[0082] Table 1 may also be referred to as a 1000 file. As shown in Table 1 above, the record number represents the index of the IMSI, the first 5 records are local IMSIs, and the last 10 records are roaming IMSIs. As can be seen from Table 1, the IMSI prefabricated in the SIM card includes at least one local IMSI and one roaming IMSI.

[0083] The second list includes the correspondence between the indexes of multiple MCCs and multiple IMSIs. The second list is a list prefabricated in the SIM card. Exemplarily, the second list may be as shown in Table 2 below.

[0084] Table 2 Second list

[0085]

[0086] As shown in Table 2 above, there are 254 record numbers, indicating that MCCs of 254 countries are supported. As can be seen from Table 2, the SIM card can determine the corresponding IMSI based on the value of the MCC in combination with Table 1.

[0087] In an optional implementation, the SIM card determines the new IMSI corresponding to the current MCC based on the current MCC, the preset first list and the preset second list, which may include: searching the preset second list based on the current MCC to obtain the new IMSI index corresponding to the current MCC; searching the preset first list based on the new IMSI index to obtain the new IMSI corresponding to the current MCC.

[0088] Exemplarily, taking the preset first list such as Table 1 above and the preset second list such as Table 2 above as examples, the SIM card can search Table 2 based on the current MCC. For example, if the current MCC is the MCC corresponding to record number 1 in Table 2, the SIM card can obtain the new IMSI index corresponding to the current MCC as the IMSI index corresponding to the MCC corresponding to record number 1 in Table 2 (for example, index 1). Afterwards, the SIM card can search Table 1 based on index 1 to obtain the new IMSI.

[0089] S202: Use the new IMSI as the next IMSI to be tried for network access.

[0090] In an optional implementation, the SIM card uses the new IMSI as the next attempted IMSI for network access, which may include: writing the new IMSI into a target file, which is a readable and writable file of the terminal device where the SIM card is located; executing a refresh instruction, which is used to instruct the terminal device to restart the SIM card so that the terminal device attempts to access the network using the new IMSI.

[0091] In an optional implementation, the SIM card may, when determining that the next IMSI attempting to access the network also fails to access the network, traverse other roaming IMSIs in the SIM card until all roaming IMSIs in the SIM card fail to access the network and the number of attempts for each roaming IMSI reaches the number of attempts threshold corresponding to the roaming IMSI, terminate the number switching process and wait for a new event to arrive.

[0092] In implementation mode 1.2, satisfying the preset number switching trigger condition is satisfying the first condition or satisfying the second condition.

[0093] That is, when the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that the first condition or the second condition is met, the SIM card can switch the number to the network for the current IMSI.

[0094] Combine the following Figure 3 , describes the process of switching the number to access the network for the current IMSI when the network access status of the SIM card indicates that the network access based on the current IMSI in the SIM card has failed and it is determined that the first condition or the second condition is met. Figure 3 , Figure 3 FIG. 1 is another flow chart of switching number access provided by an embodiment of the present application. The method can be executed by a SIM card that supports at least two IMSIs. Figure 3 As shown, the process of switching numbers to access the network may include but is not limited to the following steps:

[0095] S301: When the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that the first condition or the second condition is met, determine the category of the current IMSI based on a preset first list.

[0096] Among them, the first condition includes: the current MCC is the same as the previous MCC, and the reason for the network access failure includes that the network providing land mobile communication services is a network that is prohibited from access; the second condition includes: the current MCC is the same as the previous MCC, and the reason for the network access failure includes that the current location area belongs to an area prohibited from access; the current MCC is determined based on at least one of the location status event and the first file update event, the previous MCC is the MCC corresponding to the location of the last attempt to access the network, and the first list includes IMSIs corresponding to the indexes of multiple IMSIs.

[0097] Exemplarily, the first list may be as shown in Table 1 in the aforementioned implementation 1.1. The SIM card determines the category of the current IMSI based on the preset first list, and may determine whether the current IMSI is a local IMSI or a roaming IMSI based on the above Table 1.

[0098] Optionally, before step S301, the SIM card may also determine a reason for network access failure based on at least one of a location status event and a first file update event.

[0099] In an optional implementation, the location status event and the first file update event carry the cause of network access failure; the SIM card determines the cause of network access failure based on at least one of the location status event and the first file update event, which may include at least one of the following: obtaining the cause of network access failure from the location status event; obtaining the cause of network access failure from the first file update event.

[0100] Optionally, for the relevant description about the current MCC, the previous MCC and the first list, reference may be made to the relevant description in the aforementioned implementation 1.1, which will not be repeated here.

[0101] S302: When it is determined that the category of the current IMSI is a local IMSI, any roaming IMSI in the first list is used as the next IMSI to attempt to access the network and perform network access processing.

[0102] Exemplarily, assuming that the category of the current IMSI is a local IMSI, in this case, the SIM card may use the roaming IMSI1 in Table 1 as the next IMSI to attempt to access the network for network access processing.

[0103] In an optional implementation, the SIM card uses any roaming IMSI in the first list as the next IMSI to attempt to access the network for network access, which may include: writing any roaming IMSI into a target file, which is a readable and writable file of the terminal device where the SIM card is located; executing a refresh instruction, which is used to instruct the terminal device to restart the SIM card so that the terminal device uses the roaming IMSI to attempt to access the network.

[0104] S303: When it is determined that the category of the current IMSI is a roaming IMSI and the current IMSI is the roaming IMSI corresponding to the current MCC, any roaming IMSI in the first list except the current IMSI is used as the next IMSI to attempt to access the network, and network access processing is performed based on the next attempted IMSI.

[0105] In an optional implementation, the SIM card may, when determining that the next IMSI attempting to access the network also fails to access the network, traverse other roaming IMSIs in the SIM card until all roaming IMSIs in the SIM card fail to access the network and the number of attempts for each roaming IMSI reaches the number of attempts threshold corresponding to the roaming IMSI, terminate the number switching process and wait for a new event to arrive.

[0106] Optionally, when the SIM card executes step S302, it may not execute step S303; when the SIM card executes step S303, it may not execute step S302.

[0107] By adopting the above-mentioned implementation 1.1 and / or implementation 1.2, the SIM card can switch the number to the network for the current IMSI when the network access status mark indicates that the network access based on the current IMSI in the SIM card has failed and different number switching trigger conditions are determined. In this way, the SIM card can execute different number switching processes based on different conditions when it is known that the current number has failed to access the network, thereby further improving the network access success rate of multi-number SIM cards.

[0108] In an optional embodiment, Figure 1 In the illustrated method for accessing the network using a user identification card SIM, the SIM card may also use a delay number switching mechanism to perform delayed number switching processing when the network access status indicator indicates that network access based on the current IMSI in the SIM card has failed and it is determined that the preset delayed number switching conditions are met.

[0109] Combine the following Figure 4 , the process of delayed number switching processing using the SIM card number switching delay mechanism is explained. Figure 4 FIG. 1 is another flow chart of switching numbers to access the network provided in the embodiment of the present application. Figure 4 As shown, the process of switching numbers to access the network may include but is not limited to the following steps:

[0110] S401: When at least one of a location status event and a first file update event for a SIM card is detected, determine a network access status identifier of the SIM card.

[0111] The first file update event is an event that triggers an update of a first file, and the first file is a file in the SIM card for storing location information.

[0112] In an optional implementation, the SIM card may determine the network access status identifier of the SIM card when detecting at least one of a location status event and a first file update event for the SIM card. For example, the SIM card may determine the network access status identifier of the SIM card based on the location status event when detecting the location status event for the SIM card. For another example, the SIM card may determine the network access status identifier of the SIM card based on the first file update event when detecting the first file update event for the SIM card.

[0113] In an optional implementation, other related descriptions of step S401 can refer to the description of the aforementioned step S101, which will not be repeated here.

[0114] S402: When the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that a preset number switching trigger condition is met, perform number switching for the current IMSI.

[0115] In an optional implementation, the relevant description of step S402 can refer to the description of the aforementioned steps S101, S201 and S202, and S301 to S303, and will not be repeated here.

[0116] S403: When the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that a preset delayed number switching condition is met, determine the network access retry status of the current IMSI.

[0117] Among them, the preset delayed number switching condition includes that the reason for the network access failure corresponding to the current IMSI is that the location is not updated (recorded as the location status is "not updated").

[0118] S404: When it is determined that the network access retry state is in retry waiting, determine the number of network access attempts corresponding to the current IMSI.

[0119] S405: When it is determined that the number of network access attempts is less than a preset number threshold, start a retry timer.

[0120] The preset number threshold may be set based on historical experience.

[0121] The retry timer is a timer used to retry network access based on the current IMSI. The timing duration of the retry timer can be set based on a historical experience value.

[0122] Exemplarily, assuming that the preset number threshold is 5 times, and the number of network access attempts corresponding to the current IMSI is 3 times, in this case, the SIM card can determine that the number of network access attempts corresponding to the current IMSI is 3 times less than the preset number threshold of 5 times. At this time, the SIM card can start the retry timer.

[0123] S406: When it is determined based on the retry timer that the number switching restart condition is met, a step of switching the number to access the network for the current IMSI is executed.

[0124] In an optional implementation manner, the number switching restart condition includes expiration of a timing time of a retry timer.

[0125] Exemplarily, assuming that the timing duration of the retry timer is 10 seconds, the SIM card can execute the step of switching the number to the network for the current IMSI when the 10-second countdown ends.

[0126] It can be understood that, when the SIM card executes step S402, it is not necessary to execute steps S403 to S406; when the SIM card executes steps S403 to S406, it is not necessary to execute step S402.

[0127] According to the embodiment of the present application, on the one hand, the SIM card can determine whether the network access based on the current IMSI fails when at least one of the location status event and the first file update event is detected, and switch the number to the network when it is determined that the network access based on the current IMSI fails and the preset number switching trigger condition is met. In this way, the SIM card can timely learn the network access failure status of the current number based on the monitored multiple events by monitoring multiple events at the same time, so as to switch the number to the network in time, thereby improving the network access success rate of the multi-number SIM card. On the other hand, the SIM card can also determine the network access retry status of the current IMSI when it is determined that the network access based on the current IMSI fails and the preset delayed number switching condition is met; when it is determined that the network access retry status is in retry waiting and the number of network access attempts corresponding to the current IMSI is less than the preset number threshold, start the retry timer; when it is determined based on the retry timer that the number switching restart condition is met, perform the step of switching the number to the network for the current IMSI. In this way, by adopting the delayed number switching mechanism, frequent number switching caused by weak signal coverage in special environments (such as elevators) can be avoided.

[0128] Combine the following Figure 5 , the overall description of the process of switching the number to access the network performed by the SIM card mentioned in the embodiment of the present application when determining that the network access status identifier of the SIM card indicates that the network access based on the current IMSI in the SIM card fails. Please refer to Figure 5 , Figure 5 This is a schematic diagram of the overall process of switching numbers to access the network provided by the embodiment of the present application. Figure 5 As shown, the overall process of switching numbers to access the network may include but is not limited to the following steps:

[0129] S501: When at least one of a location status event and a first file update event for a SIM card is detected, determine a network access status identifier of the SIM card.

[0130] In an optional implementation, the relevant description of step S501 can refer to the description of the aforementioned steps S101 and S401, which will not be repeated here.

[0131] S502. When it is determined that the network access status indicator indicates that the current IMSI network access fails, determine whether the current MCC is the same as the previous MCC. If so, execute steps S503, S504, and S511; if not, execute steps S505 to S511.

[0132] In an optional implementation manner, the relevant description of the current MCC and the previous MCC can be found in the relevant description in the above implementation manner 1.1, which will not be repeated here.

[0133] S503: Determine a new IMSI corresponding to the current MCC based on the current MCC, the preset first list and the preset second list.

[0134] In an optional implementation, the related description of the first list and the second list can be found in the related description in the aforementioned implementation 1.1, which will not be repeated here.

[0135] S504: Use the new MCC as the next MCC to be tried.

[0136] S505. Determine whether the reason for the network access failure of the current IMSI is "not updated". If so, execute steps S506 to S511; if not, execute steps S508 to S511.

[0137] In an optional implementation manner, if the network access failure reason of the current IMSI is not "not updated", the network access failure reason may be "PLMN not allowed" or "Location Area not allowed".

[0138] S506: Determine whether the network access retry status is in retry waiting. If so, execute steps S507 to S511; if not, execute steps S508 to S511.

[0139] S507: Determine whether the number of network access attempts corresponding to the current IMSI is greater than or equal to a preset number threshold. If so, execute steps S508 to S511; if not, execute steps S512 and S513.

[0140] S508. Determine whether the category of the current IMSI is a local IMSI based on the preset first list. If so, execute steps S509 and S511; if not, execute steps S510 and S511.

[0141] It can be understood that, since the preset first list includes local IMSIs and roaming IMSIs, when it is determined based on the preset first list that the category of the current IMSI is not a local IMSI, the current IMSI is a roaming IMSI.

[0142] S509: Use any roaming IMSI in the first list as the next IMSI to attempt to access the network.

[0143] S510: Use any roaming IMSI in the first list except the current IMSI as the next IMSI to attempt to access the network.

[0144] S511. Write the next attempted MCC into the target file, and execute a refresh instruction to instruct the terminal device to restart the SIM card.

[0145] In an optional implementation, the SIM card may, when determining that the next IMSI attempting to access the network also fails to access the network, traverse other roaming IMSIs in the SIM card until all roaming IMSIs in the SIM card fail to access the network and the number of attempts for each roaming IMSI reaches the number of attempts threshold corresponding to the roaming IMSI, terminate the number switching process and wait for a new event to arrive.

[0146] S512: Start a retry timer.

[0147] S513: When the retry timer expires, the step of switching the number to access the network for the current IMSI is executed, and the number of network access attempts corresponding to the current IMSI is increased by 1.

[0148] In the embodiment of the present application, the SIM card can determine the network access status identifier of the SIM card when at least one of the location status event and the first file update event for the SIM card is detected. When it is determined that the network access status identifier of the SIM card indicates that the network access based on the current IMSI in the SIM card has failed, the steps described in the above steps S502 to S513 are executed. Thus, on the one hand, the network access success rate of multiple SIM cards can be improved. On the other hand, by adopting a delayed number switching mechanism, frequent number switching caused by weak signal coverage in special environments (such as elevators) can be avoided.

[0149] Combine the following Figure 6 ,right Figure 1 The specific process of step S103 in the method for accessing the network using a user identification card SIM is described. In other words, Figure 6 The invention describes in detail how the SIM card switches the number to the network for the current IMSI when detecting a second file update event for the second file in the SIM card and determining that the MCC and MNC included in the current IMSI belong to a network code that prohibits network access.

[0150] See also Figure 6 , Figure 6 FIG. 1 is another flow chart of switching numbers to access the network provided in the embodiment of the present application. Figure 4 As shown, the process of switching numbers to access the network may include but is not limited to the following steps:

[0151] S601: When a second file update event for a second file in a SIM card is detected and it is determined that the MCC and MNC included in the current IMSI belong to a network code that is prohibited from accessing the network, determine the category of the current IMSI based on a preset first list.

[0152] The first list includes IMSIs corresponding to the indexes of multiple IMSIs.

[0153] Optionally, for the relevant explanation about the first list, please refer to the relevant description in the aforementioned implementation 1.1, which will not be repeated here.

[0154] S602: When it is determined that the category of the current IMSI is a local IMSI, any roaming IMSI in the first list is used as the next IMSI to attempt to access the network and perform network access processing.

[0155] S603: When it is determined that the category of the current IMSI is a roaming IMSI and the current IMSI is the roaming IMSI corresponding to the current MCC, any roaming IMSI in the first list except the current IMSI is used as the next IMSI to attempt to access the network, and network access processing is performed based on the next attempted IMSI.

[0156] In an optional implementation, the relevant descriptions of steps S602 and S603 can refer to the descriptions of the aforementioned steps S302 and S303, respectively, and will not be repeated here.

[0157] It is understandable that when the SIM card executes step S602, it does not need to execute step S603; when the SIM card executes step S603, it does not need to execute step S602. In other words, the SIM card executes either step S602 or step S603.

[0158] With this implementation, the SIM card can further determine the category of the current IMSI when detecting the second file update event for the second file in the SIM card and determining that the MCC and MNC included in the current IMSI belong to the network code that prohibits network access. If the category of the current IMSI is a local IMSI, the next attempted IMSI is determined to be a roaming IMSI. If the category of the current IMSI is a roaming IMSI, the next attempted IMSI is determined to be another roaming IMSI among the multiple IMSIs prefabricated in the SIM card except the current IMSI. After that, the network access process is performed based on the next attempted IMSI. In this way, the network access success rate of multi-number SIM cards can be further improved.

[0159] In an optional embodiment, Figure 1 In the illustrated method for accessing the network using a user identification card SIM, before step S101, the device where the SIM card is located can register a first file update event, a second file update event, and a location status event when the device is powered on. Afterwards, the SIM card can monitor the first file update event, the second file update event, and the location status event to detect the network status, and switch the number for accessing the network for the current IMSI if the network access fails based on the current IMSI or the current MCC is prohibited from accessing the network.

[0160] The following takes the first file update event as 6E7E file update event and the second file update event as 6F7B file update event as an example. Figure 7 The events monitored and managed by the SIM card in the embodiments of the present application are described.

[0161] See also Figure 7 , Figure 7 FIG. 1 is a schematic diagram of a SIM card for event management provided in an embodiment of the present application. Figure 7 As shown, these include 6E7E file update event, 6F7B file update event, location status event, and retry timer expiration event.

[0162] like Figure 7 As shown, when the SIM card determines that the network access fails based on the 6E7E file update event, if it is further determined that the current MCC has changed or the network access is rejected, the number switching process is performed, otherwise the timer is started to perform the number switching delay process.

[0163] When the SIM card determines that network access has failed based on the location status event, if it further determines that the current MCC has changed or network access has been rejected, it will perform number switching processing, otherwise it will start the timer and perform number switching delay processing.

[0164] The SIM card may also perform number switching processing when it is determined based on the 6F7B file update event that the MCC and MNC included in the current IMSI are prohibited from accessing the network.

[0165] The SIM card can also execute number switching to access the network when the retry timer expires and it is determined that the number of network access attempts of the current IMSI is greater than a preset number threshold.

[0166] It should be understood that, although the steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. For example, the SIM card may first execute step S103, and then execute steps S101 and S102; or it may execute step S103 while executing steps S101 and S102. Unless otherwise specified herein, there is no strict order restriction for the execution of these steps, and these steps may be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0167] Based on the same inventive concept, the embodiment of the present application also provides a user identification card SIM network access device for implementing the user identification card SIM network access method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more user identification card SIM network access device embodiments provided below can refer to the limitations on the user identification card SIM network access method above, and will not be repeated here.

[0168] See also Figure 8 , Figure 8 Schematic diagram of the structure of a user identification card SIM network access device provided in an embodiment of the present application. Figure 8 As shown, the user identification card SIM network access device may include but is not limited to:

[0169] The determination module 801 is used to determine the network access status identifier of the SIM card when at least one of a location status event and a first file update event for the SIM card is detected; the first file update event is an event that triggers an update of a first file, and the first file is a file in the SIM card for storing location information;

[0170] The processing module 802 is used to switch the number to the network for the current IMSI when the network access status indicator indicates that the network access based on the current IMSI in the SIM card fails and it is determined that the preset number switching trigger condition is met;

[0171] The processing module 803 performs network switching for the current IMSI when a second file update event for the second file in the SIM card is detected and it is determined that the mobile country code MCC and the mobile network number MNC included in the current IMSI belong to a network code for prohibited network access; the second file is a file in the SIM card used to store prohibited network access information.

[0172] In one embodiment, when the processing module 802 is used to switch the number to the network for the current IMSI when the network access status identifier indicates that the network access based on the current IMSI in the SIM card has failed and it is determined that the preset number switching trigger condition is met, the processing module 802 is specifically used to: when the network access status identifier indicates that the network access based on the current IMSI in the SIM card has failed and it is determined that the current MCC corresponding to the current location is different from the previous MCC, determine a new IMSI corresponding to the current MCC based on the current MCC, a preset first list and a preset second list; wherein the current MCC is determined based on at least one of a location status event and a first file update event, the previous MCC is the MCC corresponding to the location of the last network access attempt, the first list includes IMSIs corresponding to the indexes of multiple IMSIs, and the second list includes correspondences between the indexes of multiple MCCs and multiple IMSIs; and the new IMSI is used as the next attempted IMSI for network access processing.

[0173] In one embodiment, when the network access status identifier indicates that the network access based on the current IMSI in the SIM card fails and it is determined that the preset number switching trigger condition is met, the processing module 802 is specifically used to: when the network access status identifier indicates that the network access based on the current IMSI in the SIM card fails and it is determined that the first condition or the second condition is met, determine the category of the current IMSI based on a preset first list; the first condition includes: the current MCC is the same as the previous MCC, and the reason for the network access failure includes that the network providing land mobile communication services belongs to a prohibited network; the second condition includes: the current MCC is the same as the previous MCC, and the reason for the network access failure includes that the current location area belongs to a prohibited area; wherein the current MCC is determined based on at least one of a location status event and a first file update event, the previous MCC is the MCC corresponding to the location of the last network access attempt, and the first list includes IMSIs corresponding to the indexes of multiple IMSIs respectively; when it is determined that the category of the current IMSI is a local IMSI, any roaming IMSI in the first list is used as the next IMSI to attempt network access for network access processing.

[0174] In one embodiment, the processing module 802 is further used to: when it is determined that the category of the current IMSI is a roaming IMSI and the current IMSI is the roaming IMSI corresponding to the current MCC, use any roaming IMSI in the first list except the current IMSI as the next IMSI to attempt to access the network, and perform network access processing based on the next attempted IMSI.

[0175] In one embodiment, the determination module 801, when used to determine the network access status identifier of the SIM card when at least one of a location status event and a first file update event for the SIM card is detected, specifically includes at least one of the following: when a location status event for the SIM card is detected, determining the network access status identifier of the SIM card based on the location status event; when a first file update event for the SIM card is detected, determining the network access status identifier of the SIM card based on the first file update event.

[0176] In one embodiment, the processing module 802 is also used to: determine the network access retry status of the current IMSI when the network access status identifier indicates that the network access based on the current IMSI in the SIM card has failed and it is determined that the preset delayed number switching condition is met; the preset delayed number switching condition includes that the network access failure reason corresponding to the current IMSI is that the location is not updated; when it is determined that the network access retry status is in retry waiting, determine the number of network access attempts corresponding to the current IMSI; when it is determined that the number of network access attempts is less than a preset number threshold, start the retry timer; when it is determined based on the retry timer that the number switching restart condition is met, execute the step of switching the number to the network for the current IMSI.

[0177] In one embodiment, the processing module 802 is used to, when a second file update event for a second file in a SIM card is detected and it is determined that the mobile country code MCC and the mobile network number MNC included in the current IMSI belong to a network code prohibited from accessing the network, perform number switching and network access for the current IMSI, specifically for: when a second file update event for a second file in a SIM card is detected and it is determined that the mobile country code MCC and the mobile network number MNC included in the current IMSI belong to a network code prohibited from accessing the network, determine the category of the current IMSI based on a preset first list; the first list includes IMSIs corresponding to the indexes of multiple IMSIs; when it is determined that the category of the current IMSI is a local IMSI, use any roaming IMSI in the first list as the next IMSI to attempt to access the network for network access processing; when it is determined that the category of the current IMSI is a roaming IMSI and the current IMSI is the roaming IMSI corresponding to the current MCC, use any roaming IMSI in the first list except the current IMSI as the next IMSI to attempt to access the network, and perform network access processing based on the next attempted IMSI.

[0178] Each module in the above-mentioned user identification card SIM access device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the terminal device in the form of hardware, or can be stored in the memory in the terminal device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0179] In an exemplary embodiment, the present application provides a SIM, whose internal structure diagram can be as follows: Fig. 9 As shown. The SIM card includes a processor and a memory. The processor is used to provide computing and control capabilities. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a method for accessing a user identification card SIM network is implemented.

[0180] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0181] In an exemplary embodiment, the present application provides a SIM, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0182] Determine the network access status identifier of the SIM card when at least one of a location status event and a first file update event for the SIM card is detected; the first file update event is an event that triggers an update of a first file, and the first file is a file in the SIM card for storing location information;

[0183] When the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that the preset number switching trigger condition is met, the number switching is performed for the current IMSI;

[0184] When a second file update event for the second file in the SIM card is detected and it is determined that the mobile country code MCC and the mobile network number MNC included in the current IMSI belong to a network code that is prohibited from accessing the network, the current IMSI is switched to access the network; the second file is a file in the SIM card used to store prohibited network access information.

[0185] In one embodiment, a processor executes a computer program to implement, when a network access status identifier indicates that network access based on a current IMSI in a SIM card has failed and it is determined that a preset number switching trigger condition is met, the following steps are specifically implemented: when the network access status identifier indicates that network access based on a current IMSI in a SIM card has failed and it is determined that a current MCC corresponding to a current location is different from a previous MCC, a new IMSI corresponding to the current MCC is determined based on the current MCC, a preset first list, and a preset second list; wherein the current MCC is determined based on at least one of a location status event and a first file update event, the previous MCC is the MCC corresponding to the location of the last network access attempt, the first list includes IMSIs corresponding to indexes of multiple IMSIs, respectively, and the second list includes correspondences between indexes of multiple MCCs and multiple IMSIs; and the new IMSI is used as the next attempted IMSI for network access processing.

[0186] In one embodiment, when the network access status identifier indicates that the network access based on the current IMSI in the SIM card has failed and it is determined that the preset number switching trigger condition is met, when the number switching network access is performed for the current IMSI, the following steps are specifically implemented: when the network access status identifier indicates that the network access based on the current IMSI in the SIM card has failed and it is determined that the first condition or the second condition is met, the category of the current IMSI is determined based on a preset first list; the first condition includes: the current MCC is the same as the previous MCC, and the reason for the network access failure includes that the network providing land mobile communication services belongs to a prohibited network access network; the second condition includes: the current MCC is the same as the previous MCC, and the reason for the network access failure includes that the current location area belongs to a prohibited network access area; wherein the current MCC is determined based on at least one of a location status event and a first file update event, the previous MCC is the MCC corresponding to the location of the last network access attempt, and the first list includes IMSIs corresponding to the indexes of multiple IMSIs respectively; when it is determined that the category of the current IMSI is a local IMSI, any roaming IMSI in the first list is used as the next IMSI to attempt network access for network access processing.

[0187] In one embodiment, the processor executes the computer program to further implement the following steps: when it is determined that the category of the current IMSI is a roaming IMSI, and the current IMSI is the roaming IMSI corresponding to the current MCC, any roaming IMSI in the first list except the current IMSI is used as the next IMSI to attempt to access the network, and network access processing is performed based on the next attempted IMSI.

[0188] In one embodiment, the processor executes a computer program to determine the network access status identifier of the SIM card when at least one of a location status event and a first file update event for the SIM card is detected, and specifically implements at least one of the following steps: when a location status event for the SIM card is detected, determining the network access status identifier of the SIM card based on the location status event; when a first file update event for the SIM card is detected, determining the network access status identifier of the SIM card based on the first file update event.

[0189] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the network access status identifier indicates that the network access based on the current IMSI in the SIM card has failed, and it is determined that the preset delayed number switching condition is met, the network access retry status of the current IMSI is determined; the preset delayed number switching condition includes that the network access failure cause corresponding to the current IMSI is that the location is not updated; when it is determined that the network access retry status is in retry waiting, the number of network access attempts corresponding to the current IMSI is determined; when it is determined that the number of network access attempts is less than a preset number threshold, the retry timer is started; when it is determined based on the retry timer that the number switching restart condition is met, the step of switching the number to the network for the current IMSI is executed.

[0190] In one embodiment, a processor executes a computer program to implement, when a second file update event for a second file in a SIM card is detected and it is determined that a mobile country code MCC and a mobile network number MNC included in the current IMSI belong to a network code prohibited from accessing the network, when switching the number to access the network for the current IMSI, the following steps are specifically implemented: when a second file update event for a second file in a SIM card is detected and it is determined that a mobile country code MCC and a mobile network number MNC included in the current IMSI belong to a network code prohibited from accessing the network, determining the category of the current IMSI based on a preset first list; the first list includes IMSIs corresponding to indexes of multiple IMSIs respectively; when it is determined that the category of the current IMSI is a local IMSI, taking any roaming IMSI in the first list as the next IMSI to attempt to access the network for network access processing; when it is determined that the category of the current IMSI is a roaming IMSI and the current IMSI is the roaming IMSI corresponding to the current MCC, taking any roaming IMSI in the first list except the current IMSI as the next IMSI to attempt to access the network, and performing network access processing based on the next attempted IMSI.

[0191] The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is run on a SIM card, the SIM card executes the SIM card network access method of any possible implementation manner described above. The specific implementation manner can be referred to the above description, and will not be repeated here.

[0192] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the SIM card reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the SIM card executes the SIM card network access method of any possible implementation method described above. The specific implementation method can be referred to the above description, which will not be repeated here.

[0193] The embodiment of the present application also provides a SIM card network access system, which includes a terminal device and a SIM card supporting at least two international mobile subscriber identities IMSI; wherein the SIM card and the terminal device are connected, and the SIM card can execute the SIM card network access method of any possible implementation method described above. The specific implementation method can be referred to the above description, which will not be repeated here.

[0194] It should be noted that the data involved in this application (including the first file update event, the second file update event, the location status event, the reason for the network access failure corresponding to the current IMSI, the current MCC, the previous MCC, the first list, the second list, etc.) 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 need to comply with relevant regulations.

[0195] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0196] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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.

[0197] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for accessing a network using a user identification card SIM, characterized in that: Applied to a SIM card supporting at least two International Mobile Subscriber Identity (IMSI), the method comprises: determining a network access status identifier of the SIM card when at least one of a location status event and a first file update event for the SIM card is detected; the first file update event is an event that triggers an update of a first file, and the first file is a file in the SIM card for storing location information; When the network access status indicator indicates that network access based on the current IMSI in the SIM card fails and it is determined that a preset number switching trigger condition is met, performing number switching for the current IMSI; When a second file update event for a second file in the SIM card is detected and it is determined that the mobile country code MCC and the mobile network number MNC included in the current IMSI belong to a network code that prohibits network access, the current IMSI is switched to a network; the second file is a file in the SIM card used to store prohibited network access information.

2. The method according to claim 1, characterized in that The method of switching the number of the current IMSI to access the network, when the network access status identifier indicates that the network access based on the current IMSI in the SIM card fails and it is determined that a preset number switching trigger condition is met, includes: When the network access status identifier indicates that network access based on the current IMSI in the SIM card has failed, and it is determined that the current MCC corresponding to the current location is different from the previous MCC, a new IMSI corresponding to the current MCC is determined based on the current MCC, a preset first list, and a preset second list; wherein the current MCC is determined based on at least one of the location status event and the first file update event, the previous MCC is the MCC corresponding to the location of the last network access attempt, the first list includes IMSIs corresponding to the indexes of multiple IMSIs, and the second list includes correspondences between the indexes of multiple MCCs and multiple IMSIs; and the new IMSI is used as the IMSI for the next attempted network access.

3. The method according to claim 1, characterized in that The method of switching the number of the current IMSI to access the network, when the network access status identifier indicates that the network access based on the current IMSI in the SIM card fails and it is determined that a preset number switching trigger condition is met, includes: When the network access status identifier indicates that network access based on the current IMSI in the SIM card fails, and it is determined that the first condition or the second condition is met, the category of the current IMSI is determined based on a preset first list; the first condition includes: the current MCC is the same as the previous MCC, and the reason for the network access failure includes that the network providing land mobile communication services belongs to a prohibited network; the second condition includes: the current MCC is the same as the previous MCC, and the reason for the network access failure includes that the current location area belongs to a prohibited area; wherein the current MCC is determined based on at least one of the location status event and the first file update event, the previous MCC is the MCC corresponding to the location of the last network access attempt, and the first list includes the IMSIs corresponding to the indexes of multiple IMSIs respectively; When it is determined that the category of the current IMSI is a local IMSI, any roaming IMSI in the first list is used as the next IMSI to attempt to access the network for network access processing.

4. The method according to claim 3, characterized in that The method further comprises: When it is determined that the category of the current IMSI is a roaming IMSI and the current IMSI is the roaming IMSI corresponding to the current MCC, any one of the roaming IMSIs in the first list except the current IMSI is used as the next IMSI for attempted network access, and network access processing is performed based on the next attempted IMSI.

5. The method according to claim 1, characterized in that The determining the network access status identifier of the SIM card when at least one of the location status event and the first file update event for the SIM card is detected includes at least one of the following: In the case where a location status event for the SIM card is detected, determining a network access status identifier of the SIM card based on the location status event; When a first file update event for the SIM card is detected, a network access status identifier of the SIM card is determined based on the first file update event.

6. The method according to claim 1, characterized in that The method further comprises: When the network access status identifier indicates that network access based on the current IMSI in the SIM card fails and it is determined that a preset delayed number switching condition is met, determining the network access retry state of the current IMSI; the preset delayed number switching condition includes that the network access failure cause corresponding to the current IMSI is that the location is not updated; When it is determined that the network access retry state is in retry waiting, determining the number of network access attempts corresponding to the current IMSI; When it is determined that the number of network access attempts is less than a preset number threshold, starting a retry timer; In a case where it is determined based on the retry timer that the number switching restart condition is met, the step of switching the number to access the network for the current IMSI is performed.

7. The method according to any one of claims 1 to 6, characterized in that: When a second file update event for a second file in the SIM card is detected and it is determined that a mobile country code MCC and a mobile network number MNC included in the current IMSI belong to a network code that prohibits network access, switching the number for the current IMSI to access the network includes: In the case where a second file update event for a second file in the SIM card is detected and it is determined that the mobile country code MCC and the mobile network number MNC included in the current IMSI belong to a network code that prohibits access to the network, determining the category of the current IMSI based on a preset first list; the first list includes IMSIs corresponding to the indexes of multiple IMSIs respectively; When it is determined that the category of the current IMSI is a local IMSI, any roaming IMSI in the first list is used as the next IMSI to attempt to access the network for network access processing; When it is determined that the category of the current IMSI is a roaming IMSI and the current IMSI is the roaming IMSI corresponding to the current MCC, any one of the roaming IMSIs in the first list except the current IMSI is used as the next IMSI to attempt to access the network, and network access processing is performed based on the next attempted IMSI.

8. A user identification card SIM network access device, characterized in that: Applicable to a SIM card supporting at least two International Mobile Subscriber Identity (IMSI) codes, the device comprising: a determination module, configured to determine the network access status identifier of the SIM card when at least one of a location status event and a first file update event for the SIM card is detected; the first file update event is an event that triggers an update of a first file, and the first file is a file in the SIM card for storing location information; a processing module, configured to switch the number to the network for the current IMSI if the network access status identifier indicates that the network access based on the current IMSI in the SIM card fails and it is determined that a preset number switching trigger condition is met; The processing module, when detecting a second file update event for a second file in the SIM card and determining that a mobile country code MCC and a mobile network number MNC included in the current IMSI belong to a network code prohibited from accessing the network, performs number switching and network access for the current IMSI; the second file is a file in the SIM card used to store prohibited network access information.

9. A SIM card, which supports at least two International Mobile Subscriber Identity (IMSI), characterized in that: include: A processor and a memory, wherein the memory stores a computer program; when the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • IMSI (International Mobile Subscriber Identity) data switching method, card application and SIM card

    CN120916218A