Network access method, device, equipment, medium and program product
By generating SUCI in the terminal device, the problem that SIM cards that have not been written to SUCI cannot access the 5G network is solved, and normal initialization of SIM cards and 5G network services are realized.
Patent Information
- Application Number
- CN202510152475.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-11
- Publication Date
- 2025-05-13
AI Technical Summary
When SUCI is not written into the SIM card, it will cause the SIM card to fail to initialize, and the registration of access to the 5G network will not be possible, and the SIM card is set as an illegal card or an invalid SIM card.
In the terminal device, by obtaining the mobile network marking information, routing information and digital network number during the initialization of the SIM card, if it is confirmed that there is no SUCI in the SIM card, SUCI is generated based on these information and device identification information of the terminal device, and the SIM card is connected to the network based on the generated SUCI.
Ensure that SIM cards that are not written to SUCI can successfully access the 5G network, avoid the SIM cards being placed as illegal or invalid SIM cards, and enable them to perform 5G network services normally.
Smart Images

Figure CN119996994A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a network access method, device, equipment, medium and program product. Background Art
[0002] At present, when SUCI is not written in the SIM card, the SIM card initialization will fail, and the SIM card cannot be registered to access the 5G network. The SIM card will also be set as an illegal card or an invalid SIM card. Therefore, how to enable a SIM card without SUCI to access the 5G network is a problem that needs to be solved by those skilled in the art. Summary of the invention
[0003] In view of this, the purpose of this application is to provide a network access method, device, equipment, medium and program product to enable a SIM card without SUCI written to access the 5G network. The specific scheme is as follows:
[0004] In a first aspect, the present application provides a network access method, applied to a terminal device, comprising:
[0005] During the initialization process of the SIM card in the terminal device, obtaining mobile network identification information, routing information and digital network number from the SIM card;
[0006] If it is confirmed that there is no SUCI in the SIM card, generating the SUCI according to the mobile network tag information, the routing information, the digital network number and the device identification information of the terminal device;
[0007] The SIM card is enabled to access a network based on the SUCI.
[0008] Optionally, obtaining mobile network identification information, routing information and digital network number from the SIM card includes:
[0009] Read the mobile network identification information from the EFPLMNwAcT file of the SIM card;
[0010] Read the routing information from the EFRouting_Indicator file of the SIM card;
[0011] The digital network number is obtained by reading from the EFimsi file of the SIM card.
[0012] Optionally, confirming that there is no SUCI in the SIM card includes:
[0013] A SUCI read failure message returned by the SIM card is received; or a SUCI with all zero characters returned by the SIM card is received.
[0014] Optionally, generating the SUCI according to the mobile network tag information, the routing information, the digital network number, and the device identification information of the terminal device includes:
[0015] generating a target character according to the digital network number and the device identification information;
[0016] Using the target character as a new digital network number;
[0017] According to the SUCI composition structure, the SUCI is constructed using the mobile network identification information, the routing information, the new digital network number and the preset characters;
[0018] The preset characters are used to fill in the spaces in the SUCI composition structure except the space where the mobile network identification information is located, the space where the routing information is located, and the space where the new digital network number is located.
[0019] Optionally, generating a target character according to the digital network number and the device identification information includes:
[0020] The digital network number and the device identification information are encrypted using a preset encryption algorithm, and the obtained ciphertext is used as the target character.
[0021] Optionally, according to the SUCI composition structure, the SUCI is constructed by using the mobile network identification information, the routing information, the new digital network number and preset characters, including:
[0022] The mobile network tag information is filled into the position of the primary network identifier in the SUCI composition structure, the routing information is filled into the position of the routing indication identifier in the SUCI composition structure, the new digital network number is filled into the position of the solution output in the SUCI composition structure, and the preset character is filled into the empty position in the SUCI composition structure except the position of the primary network identifier, the position of the routing indication identifier and the position of the solution output, to obtain the SUCI.
[0023] Optionally, enabling the SIM card to access a network based on the SUCI includes:
[0024] Send a registration request carrying the SUCI to a network, so that the network completes the registration of the SIM card using the SUCI.
[0025] Optionally, it also includes:
[0026] Storing the SUCI in a non-volatile storage medium in the terminal device;
[0027] Correspondingly, if the terminal device is restarted, the SUCI is read from the non-volatile storage medium, and a registration request carrying the SUCI is sent to the network, so that the network completes the registration of the SIM card using the SUCI.
[0028] In a second aspect, the present application provides a network access device, applied to a terminal device, including:
[0029] An acquisition module, used to acquire mobile network identification information, routing information and digital network number from the SIM card during the initialization process of the SIM card in the terminal device;
[0030] a generating module, configured to generate the SUCI according to the mobile network tag information, the routing information, the digital network number and the device identification information of the terminal device if it is confirmed that the SUCI does not exist in the SIM card;
[0031] A network access module is used to enable the SIM card to access the network based on the SUCI.
[0032] In a third aspect, the present application provides an electronic device, including:
[0033] Memory for storing computer programs;
[0034] The processor is used to execute the computer program to implement the aforementioned disclosed network access method.
[0035] In a fourth aspect, the present application provides a non-volatile storage medium for storing a computer program, wherein the computer program implements the aforementioned disclosed network access method when executed by a processor.
[0036] In a fifth aspect, the present application provides a computer program product, including a computer program / instruction, which implements the steps of the aforementioned disclosed network access method when executed by a processor.
[0037] It can be seen from the above scheme that the present application provides a network access method, which is applied to a terminal device, including: during the initialization process of a SIM card in the terminal device, obtaining mobile network tag information, routing information and a digital network number from the SIM card; if it is confirmed that there is no SUCI in the SIM card, generating the SUCI according to the mobile network tag information, the routing information, the digital network number and the device identification information of the terminal device; and enabling the SIM card to access the network based on the SUCI.
[0038] It can be seen that, when confirming that there is no SUCI in the SIM card, the present application instantly generates SUCI according to the mobile network tag information, routing information, digital network number and device identification information of the terminal device obtained during the initialization process of the SIM card, and then enables the SIM card to access the network based on the generated SUCI, which can ensure that the SIM card successfully completes the entire initialization process, and the SIM card without SUCI will not be set as an illegal card or an invalid SIM card, so that the SIM card without SUCI can also access the 5G network and provide 5G network services normally.
[0039] Correspondingly, a network access device, equipment, medium and program product provided by the present application also have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0041] Figure 1 A flow chart of a network access method disclosed in this application;
[0042] Figure 2 A schematic diagram of the composition structure of a SUCI disclosed in this application;
[0043] Figure 3 A flowchart of another network access method disclosed in this application;
[0044] Figure 4 A schematic diagram of a network access device disclosed in this application;
[0045] Figure 5 A schematic diagram of an electronic device disclosed in this application;
[0046] Figure 6 A server structure diagram provided for this application;
[0047] Figure 7 A terminal structure diagram provided for this application. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other examples obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0049] At present, when SUCI is not written in the SIM card, the SIM card initialization will fail, and the SIM card cannot be registered to access the 5G network. The SIM card will also be set as an illegal card or an invalid SIM card. To this end, the present application provides a network access solution that enables a SIM card without SUCI to access the 5G network.
[0050] See also Figure 1 As shown, the embodiment of the present application discloses a network access method, which is applied to a terminal device, including:
[0051] S101. During the SIM card initialization process in the terminal device, mobile network identification information, routing information and digital network number are obtained from the SIM card.
[0052] In this embodiment, the terminal device can be any electronic device such as a mobile phone or a watch that can be plugged in or integrated with a SIM card. The SIM card generally stores mobile network identification information PLMN (Public Land Mobile Network), routing information RI (Routing Information), digital network number MSISDN (Mobile Station Integrated Services Digital Network Number, used to uniquely identify users in the mobile network) and SUCI (Subscription Concealed Identifier). The length of SUCI can vary because it consists of multiple components, and the lengths of these components may also be variable. The SUCI structure includes: SUPI type (1 digit, range 0~7), primary network identifier (may include MCC and MNC, or a variable length string NAI), routing indication identifier (1~4 decimal digits), protection scheme identifier (1 digit, range 0~15), primary network public key identifier (1 digit, range 0~255) and scheme output (variable length string or hexadecimal number) arranged in order from left to right.
[0053] In one implementation, obtaining mobile network identification information, routing information and digital network number from a SIM card includes: reading the mobile network identification information from the EFPLMNwAcT file of the SIM card; reading the routing information from the EFRouting_Indicator file of the SIM card; and reading the digital network number from the EFimsi file of the SIM card.
[0054] S102: If it is confirmed that there is no SUCI in the SIM card, generate SUCI according to the mobile network tag information, routing information, digital network number and device identification information of the terminal device.
[0055] In this example, the device identification information of the terminal device may be terminal MAC (Media Access Control Address, physical address), IMEI (International Mobile Equipment Identity, international mobile equipment identity) and other information.
[0056] It should be noted that after the SIM card is powered on, the terminal device interacts with the SIM card through APDU (Application Protocol Data Unit) to obtain information such as mobile network identification information, routing information, digital network number and SUCI from it. However, if there is no SUCI in the SIM card, then after the terminal device sends a command to obtain SUCI to the SIM card, the SIM card will return a SUCI read failure message or all 0 characters. Therefore, in one embodiment, confirming that there is no SUCI in the SIM card includes: receiving a SUCI read failure message returned by the SIM card; or receiving a SUCI with all 0 characters returned by the SIM card.
[0057] See also Figure 2 The SUCI composition structure shown in the figure, in this embodiment, the mobile network identification information is filled into the position where the primary network identifier in the SUCI composition structure is located (i.e. Figure 2 The routing information is filled into the location of the routing indication mark in the SUCI structure (i.e. Figure 2 The new digital network number is filled into the position of the solution output in the SUCI composition structure (i.e. Figure 2 The preset characters are filled into the empty positions in the SUCI structure except the position of the main network identifier, the position of the routing indication mark and the position of the solution output (i.e. Figure 2 Other positions except positions A, B, and C in the SUCI are obtained.
[0058] In one embodiment, generating SUCI according to mobile network tag information, routing information, digital network number and device identification information of terminal equipment includes: generating target characters according to the digital network number and device identification information; using the target characters as the new digital network number; constructing SUCI according to the SUCI composition structure using the mobile network tag information, routing information, the new digital network number and preset characters; wherein the preset characters are used to fill the empty positions in the SUCI composition structure except the position where the mobile network tag information is located, the position where the routing information is located and the position where the new digital network number is located. The preset characters can be 0 or other characters. It can be seen that constructing SUCI according to the SUCI composition structure using the mobile network tag information, routing information, the new digital network number and preset characters includes: filling the mobile network tag information into the position where the main network identifier is located in the SUCI composition structure, filling the routing information into the position where the routing indication mark is located in the SUCI composition structure, filling the new digital network number into the position where the scheme output is located in the SUCI composition structure, and filling the preset characters into the empty positions in the SUCI composition structure except the position where the main network identifier is located, the position where the routing indication mark is located and the position where the scheme output is located, to obtain SUCI.
[0059] The target character is generated according to the digital network number and the device identification information, including: encrypting the digital network number and the device identification information by using a preset encryption algorithm, and using the obtained ciphertext as the target character.
[0060] S103: Enable the SIM card to access the network based on the SUCI.
[0061] In one implementation, enabling the SIM card to access the network based on the SUCI includes: sending a registration request carrying the SUCI to the network, so that the network completes the registration of the SIM card using the SUCI.
[0062] In one embodiment, it further includes: storing SUCI in a non-volatile storage medium in the terminal device; accordingly, if the terminal device is restarted, SUCI is read from the non-volatile storage medium, and a registration request carrying SUCI is sent to the network, so that the network completes the registration of the SIM card using SUCI. Wherein, after the terminal device is restarted, based on the ICCID (Integrated Circuit Card Identifier) of the SIM card, if it is confirmed that the SIM card in itself has not been changed, SUCI is directly read from the non-volatile storage medium. If the terminal device is restarted, based on the ICCID of the SIM card, it is confirmed that the SIM card in itself has been changed, then SUCI is read from the SIM card, and the SUCI in the non-volatile storage medium is overwritten with the read SUCI; if there is no SUCI in the SIM card, SUCI is generated according to the method provided in this embodiment, and the SUCI in the non-volatile storage medium is overwritten with the generated SUCI. Wherein, ICCID is used to uniquely identify a SIM (Subscriber Identity Module) card or a USIM (Universal Subscriber Identity Module) card. ICCID is a globally unique identifier that is commonly used for identification and management between network operators and devices.
[0063] It can be seen that, in this embodiment, when it is confirmed that there is no SUCI in the SIM card, the SUCI is instantly generated according to the mobile network tag information, routing information, digital network number and device identification information of the terminal device obtained during the initialization process of the SIM card, and then the SIM card is connected to the network based on the generated SUCI, which can ensure that the SIM card successfully completes the entire initialization process, and the SIM card without SUCI will not be set as an illegal card or an invalid SIM card, so that the SIM card without SUCI can also access the 5G network and provide 5G network services normally.
[0064] See also Figure 3 After the UE (User Equipment) is powered on, the SIM card is powered on immediately. During the power-on initialization process of the SIM card, the UE obtains the SUCI, but finds that the data length of the EFsuci file in the SIM card is 0. Then the UE calculates the SUCI based on the PLMN, RI, and MSISN obtained during the initialization process, and then uses the calculated SUCI to register the SIM card with the network and subscribe to the service. The EFsuci file in the SIM card generally stores the SUCI, but there are also cases where it is not written. The specific method of calculating the SUCI can refer to the relevant introduction of the above embodiment, which will not be repeated here.
[0065] It can be seen that this embodiment optimizes the situation where there is no SUCI in the SIM card. For a SIM card without SUCI written in it, SUCI is generated inside the terminal so that the SIM card can normally access the Internet. In addition, the generated SUCI is stored inside the terminal, and each time the same SIM card is initialized, the SUCI stored in the UE is directly obtained, ensuring that the SIM card can be successfully initialized and normally register with the network.
[0066] A network access device provided in an embodiment of the present application is introduced below. The network access device described below can be referenced to other embodiments described in this document.
[0067] See also Figure 4 As shown, the embodiment of the present application discloses a network access device, which is applied to a terminal device, including:
[0068] The acquisition module 401 is used to acquire the mobile network identification information, routing information and digital network number from the SIM card during the SIM card initialization process in the terminal device;
[0069] A generating module 402, configured to generate a SUCI according to the mobile network tag information, the routing information, the digital network number and the device identification information of the terminal device if it is confirmed that the SUCI does not exist in the SIM card;
[0070] The network access module 403 is used to enable the SIM card to access the network based on the SUCI.
[0071] In one implementation, the acquisition module is specifically used to:
[0072] Read the mobile network identification information from the EFPLMNwAcT file of the SIM card;
[0073] Read the routing information from the EFRouting_Indicator file of the SIM card;
[0074] The digital network number is obtained by reading from the EFimsi file of the SIM card.
[0075] In one embodiment, the generation module is specifically used to:
[0076] Receive a SUCI read failure message from the SIM card; or receive a SUCI with all zero characters from the SIM card.
[0077] In one embodiment, the generation module is specifically used to:
[0078] Generate target characters according to the digital network number and device identification information;
[0079] Using the target character as the new digital network number;
[0080] According to the composition structure of SUCI, SUCI is constructed by using mobile network tag information, routing information, new digital network number and preset characters;
[0081] The preset characters are used to fill in the spaces in the SUCI composition structure except for the location of the mobile network identification information, the location of the routing information and the location of the new digital network number.
[0082] In one embodiment, the generation module is specifically used to:
[0083] The digital network number and device identification information are encrypted using a preset encryption algorithm, and the resulting ciphertext is used as the target character.
[0084] In one embodiment, the generation module is specifically used to:
[0085] The mobile network tag information is filled into the position of the main network identifier in the SUCI composition structure, the routing information is filled into the position of the routing indication mark in the SUCI composition structure, the new digital network number is filled into the position of the solution output in the SUCI composition structure, and the preset characters are filled into the empty positions in the SUCI composition structure except the position of the main network identifier, the position of the routing indication mark and the position of the solution output, to obtain the SUCI.
[0086] In one embodiment, the network access module is used to:
[0087] Send a registration request carrying SUCI to the network so that the network can complete the registration of the SIM card using SUCI.
[0088] In one embodiment, it further includes:
[0089] The storage module is used to store the SUCI in a non-volatile storage medium in the terminal device; accordingly, the acquisition module is also used to: if the terminal device is restarted, read the SUCI from the non-volatile storage medium, and execute the step of sending a registration request carrying the SUCI to the network, so that the network completes the registration of the SIM card using the SUCI.
[0090] Among them, for more specific working processes of each module and unit in this embodiment, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0091] It can be seen that this embodiment provides a network access device, which can generate SUCI for a SIM card without SUCI, so that the SIM card can access the network, and can ensure that the SIM card successfully completes the entire initialization process. The SIM card without SUCI will not be set as an illegal card or an invalid SIM card, so that the SIM card without SUCI can also access the 5G network and provide 5G network services normally.
[0092] An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below can be referenced to other embodiments described in this document.
[0093] See also Figure 5 As shown, the embodiment of the present application discloses an electronic device, including:
[0094] Memory 501, used for storing computer programs;
[0095] The processor 502 is used to execute the computer program to implement the method disclosed in any of the above embodiments.
[0096] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: during the initialization process of the SIM card in the terminal device, mobile network tag information, routing information, and digital network number are obtained from the SIM card; if it is confirmed that there is no SUCI in the SIM card, SUCI is generated according to the mobile network tag information, routing information, digital network number, and device identification information of the terminal device; and the SIM card is enabled to access the network based on the SUCI.
[0097] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: reading the mobile network identification information from the EFPLMNwAcT file of the SIM card; reading the routing information from the EFRouting_Indicator file of the SIM card; and reading the digital network number from the EFimsi file of the SIM card.
[0098] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: receiving a SUCI read failure message returned by the SIM card; or receiving a SUCI with all zero characters returned by the SIM card.
[0099] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: generating a target character according to the digital network number and the device identification information; using the target character as the new digital network number; constructing a SUCI according to the SUCI composition structure using the mobile network tag information, the routing information, the new digital network number and the preset character; wherein the preset character is used to fill in the empty positions in the SUCI composition structure except the position where the mobile network tag information is located, the position where the routing information is located and the position where the new digital network number is located.
[0100] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: the digital network number and device identification information are encrypted using a preset encryption algorithm, and the obtained ciphertext is used as the target character.
[0101] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: filling the mobile network mark information into the position of the primary network identifier in the SUCI composition structure, filling the routing information into the position of the routing indication identifier in the SUCI composition structure, filling the new digital network number into the position of the solution output in the SUCI composition structure, and filling the preset characters into the empty positions in the SUCI composition structure except the position of the primary network identifier, the position of the routing indication identifier, and the position of the solution output, to obtain the SUCI.
[0102] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: sending a registration request carrying SUCI to the network, so that the network completes the registration of the SIM card using SUCI.
[0103] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: storing the SUCI in a non-volatile storage medium in the terminal device; accordingly, if the terminal device is restarted, reading the SUCI from the non-volatile storage medium, and executing the step of sending a registration request carrying the SUCI to the network, so that the network completes the registration of the SIM card using the SUCI.
[0104] Furthermore, the present application also provides an electronic device. The electronic device can be Figure 6 The server shown can also be Figure 7 Terminal shown. Figure 6 and Figure 7 All of them are structural diagrams of electronic devices according to an exemplary embodiment, and the contents in the diagrams cannot be regarded as any limitation on the scope of use of the present application.
[0105] Figure 6 A schematic diagram of the structure of a server provided in an embodiment of the present application. The server may specifically include: at least one processor, at least one memory, a power supply, a communication interface, an input / output interface, and a communication bus. The memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the relevant steps in the network access disclosed in any of the aforementioned embodiments.
[0106] In this embodiment, the power supply is used to provide working voltage for each hardware device on the server; the communication interface can create a data transmission channel between the server and external devices, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0107] In addition, the memory as a carrier for resource storage can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon include operating system, computer programs and data, etc. The storage method can be temporary storage or permanent storage.
[0108] The operating system is used to manage and control the hardware devices and computer programs on the server to realize the operation and processing of the data in the memory by the processor, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to computer programs that can be used to complete the network access method disclosed in any of the above embodiments, the computer program can also further include computer programs that can be used to complete other specific tasks. In addition to data such as application update information, the data can also include data such as application developer information.
[0109] Figure 7 A schematic diagram of the structure of a terminal provided in an embodiment of the present application, the terminal may specifically include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer, etc.
[0110] Generally, the terminal in this embodiment includes: a processor and a memory.
[0111] Among them, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0112] The memory may include one or more computer non-volatile storage media, which may be non-transitory. The memory may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory is at least used to store the following computer program, wherein, after the computer program is loaded and executed by the processor, it can implement the relevant steps in the network access method performed by the terminal side disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory may also include an operating system and data, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, update information of the application.
[0113] In some embodiments, the terminal may also include a display screen, an input and output interface, a communication interface, a sensor, a power supply, and a communication bus.
[0114] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than those shown in the figure.
[0115] A non-volatile storage medium provided in an embodiment of the present application is introduced below. The non-volatile storage medium described below can be cross-referenced with other embodiments described herein.
[0116] A non-volatile storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the network access method disclosed in the above-mentioned embodiment. The non-volatile storage medium is a computer-readable non-volatile storage medium, which, as a carrier for storing resources, may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system, a computer program and data, etc., and the storage method may be temporary storage or permanent storage.
[0117] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps may be specifically implemented: during the initialization process of the SIM card in the terminal device, mobile network tag information, routing information, and digital network number are obtained from the SIM card; if it is confirmed that there is no SUCI in the SIM card, SUCI is generated according to the mobile network tag information, routing information, digital network number, and device identification information of the terminal device; and the SIM card is enabled to access the network based on the SUCI.
[0118] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps can be specifically implemented: reading the mobile network identification information from the EFPLMNwAcT file of the SIM card; reading the routing information from the EFRouting_Indicator file of the SIM card; and reading the digital network number from the EFimsi file of the SIM card.
[0119] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps may be specifically implemented: receiving a SUCI read failure message returned by the SIM card; or receiving a SUCI with all zero characters returned by the SIM card.
[0120] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps may be specifically implemented: generating a target character according to the digital network number and the device identification information; using the target character as the new digital network number; constructing a SUCI according to the SUCI composition structure using the mobile network tag information, the routing information, the new digital network number and the preset character; wherein the preset character is used to fill in the empty positions in the SUCI composition structure except the position where the mobile network tag information is located, the position where the routing information is located and the position where the new digital network number is located.
[0121] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps may be specifically implemented: encrypting the digital network number and device identification information using a preset encryption algorithm, and using the obtained ciphertext as the target character.
[0122] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps may be specifically implemented: filling the mobile network mark information into the position of the primary network identifier in the SUCI composition structure, filling the routing information into the position of the routing indication identifier in the SUCI composition structure, filling the new digital network number into the position of the solution output in the SUCI composition structure, and filling the preset characters into the empty positions in the SUCI composition structure except the position of the primary network identifier, the position of the routing indication identifier, and the position of the solution output, to obtain the SUCI.
[0123] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps may be specifically implemented: sending a registration request carrying SUCI to the network, so that the network completes the registration of the SIM card using SUCI.
[0124] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps may be specifically implemented: storing the SUCI in the non-volatile storage medium in the terminal device; accordingly, if the terminal device is restarted, reading the SUCI from the non-volatile storage medium, and executing the step of sending a registration request carrying the SUCI to the network, so that the network completes the registration of the SIM card using the SUCI.
[0125] A computer program product provided in an embodiment of the present application is introduced below. The computer program product described below can be cross-referenced with other embodiments described in this document.
[0126] A computer program product includes a computer program / instruction, which implements the steps of the aforementioned disclosed network access method when executed by a processor.
[0127] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0128] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of non-volatile storage medium known in the art.
[0129] Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A network access method, characterized in that: Applied to terminal equipment, including: During the initialization process of the SIM card in the terminal device, obtaining mobile network identification information, routing information and digital network number from the SIM card; If it is confirmed that there is no SUCI in the SIM card, generating the SUCI according to the mobile network tag information, the routing information, the digital network number and the device identification information of the terminal device; The SIM card is enabled to access a network based on the SUCI.
2. The method according to claim 1, characterized in that Obtaining mobile network identification information, routing information and digital network number from the SIM card, including: Read the mobile network identification information from the EFPLMNwAcT file of the SIM card; Read the routing information from the EFRouting_Indicator file of the SIM card; The digital network number is obtained by reading from the EFimsi file of the SIM card.
3. The method according to claim 1, characterized in that Confirming that there is no SUCI in the SIM card includes: A SUCI read failure message returned by the SIM card is received; or a SUCI with all zero characters returned by the SIM card is received.
4. The method according to claim 1, characterized in that Generating the SUCI according to the mobile network tag information, the routing information, the digital network number, and the device identification information of the terminal device includes: Generate a target character according to the digital network number and the device identification information; Using the target character as a new digital network number; According to the SUCI composition structure, the SUCI is constructed using the mobile network identification information, the routing information, the new digital network number and the preset characters; The preset characters are used to fill in the spaces in the SUCI composition structure except the space where the mobile network identification information is located, the space where the routing information is located, and the space where the new digital network number is located.
5. The method according to claim 4, characterized in that Generating a target character according to the digital network number and the device identification information includes: The digital network number and the device identification information are encrypted using a preset encryption algorithm, and the obtained ciphertext is used as the target character.
6. The method according to claim 4, characterized in that According to the SUCI composition structure, the SUCI is constructed by using the mobile network identification information, the routing information, the new digital network number and the preset characters, including: The mobile network tag information is filled into the position of the primary network identifier in the SUCI composition structure, the routing information is filled into the position of the routing indication identifier in the SUCI composition structure, the new digital network number is filled into the position of the solution output in the SUCI composition structure, and the preset character is filled into the empty position in the SUCI composition structure except the position of the primary network identifier, the position of the routing indication identifier and the position of the solution output, to obtain the SUCI.
7. The method according to claim 1, characterized in that Enabling the SIM card to access a network based on the SUCI includes: Send a registration request carrying the SUCI to a network, so that the network completes the registration of the SIM card using the SUCI.
8. The method according to any one of claims 1 to 7, characterized in that: Also includes: Storing the SUCI in a non-volatile storage medium in the terminal device; Correspondingly, if the terminal device is restarted, the SUCI is read from the non-volatile storage medium, and a registration request carrying the SUCI is sent to the network, so that the network completes the registration of the SIM card using the SUCI.
9. A network access device, characterized in that: Applied to terminal equipment, including: An acquisition module, used to acquire mobile network identification information, routing information and digital network number from the SIM card during the initialization process of the SIM card in the terminal device; a generating module, configured to generate the SUCI according to the mobile network tag information, the routing information, the digital network number and the device identification information of the terminal device if it is confirmed that the SUCI does not exist in the SIM card; A network access module is used to enable the SIM card to access the network based on the SUCI.
10. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the method according to any one of claims 1 to 8.
11. A non-volatile storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
12. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.