CN111417106A - Registration method and device of user identification card, storage medium and terminal - Google Patents

Registration method and device of user identification card, storage medium and terminal Download PDF

Info

Publication number
CN111417106A
CN111417106A CN202010218786.XA CN202010218786A CN111417106A CN 111417106 A CN111417106 A CN 111417106A CN 202010218786 A CN202010218786 A CN 202010218786A CN 111417106 A CN111417106 A CN 111417106A
Authority
CN
China
Prior art keywords
network
network system
registration information
registration
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010218786.XA
Other languages
Chinese (zh)
Other versions
CN111417106B (en
Inventor
倪金金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202010218786.XA priority Critical patent/CN111417106B/en
Publication of CN111417106A publication Critical patent/CN111417106A/en
Application granted granted Critical
Publication of CN111417106B publication Critical patent/CN111417106B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A registration method and device of a user identification card, a storage medium and a terminal are provided, wherein the method comprises the following steps: when detecting that a terminal accessed to a user identification card is started, reading a network system identifier registered last time from the user identification card; identifying a corresponding network type according to the obtained network type identifier; acquiring registration information corresponding to the identified network system from the user identification card; and executing a network registration process according to the acquired registration information. By the method, the efficiency of the terminal for starting and finding the network can be effectively improved.

Description

Registration method and device of user identification card, storage medium and terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for registering a subscriber identity module card, a storage medium, and a terminal.
Background
Currently, after a mobile terminal is powered on, a Subscriber Identity Module (SIM) card, which may refer to a Registered Public land mobile network (Registered Public L and mobile network (RP L MN) stored in a Universal Subscriber Identity Module (USIM), resides first according to a protocol specification, but for a multimode terminal supporting multiple network systems (2G, 3G, 4G, 5G, etc.), the mobile terminal needs to obtain a Radio Access Type (RAT) of RP L MN from the multiple network systems, and accurately obtain registration information of a latest successful registration.
In the prior art, after a mobile terminal is started, files corresponding to each network system in an SIM card or a USIM card are traversed, and corresponding registration information is read from the files for registration, so that the efficiency of starting and finding a network of the terminal is directly influenced.
Disclosure of Invention
The invention solves the technical problem of how to improve the efficiency of the terminal for starting and searching the network.
In order to solve the above technical problem, an embodiment of the present invention provides a method for registering a subscriber identity module card, where the method includes: when detecting that a terminal accessed to a user identification card is started, reading a network system identifier registered last time from the user identification card; identifying a corresponding network type according to the obtained network type identifier; acquiring registration information corresponding to the identified network system from the user identification card; and executing a network registration process in the network according to the acquired registration information.
Optionally, the network type identifier registered last time is stored in a registration information file of the subscriber identity module card.
Optionally, the user identification card has a plurality of registration information files, and after the network system identifier registered last time is read from the user identification card, the method further includes: when a plurality of network system identifications registered last time are stored in a plurality of registration information files, judging whether the plurality of network system identifications registered last time are consistent and effective; if the network system identifications registered last time are inconsistent or invalid, the read network system identification registered last time is considered invalid; and performing network selection registration according to a default mode of the terminal.
Optionally, after acquiring the registration information corresponding to the identified network system from the subscriber identity module, the method includes: detecting whether the acquired registration information is valid; and when the acquired registration information is invalid, acquiring the registration information again, and executing a network registration process in the network according to the acquired registration information again.
Optionally, after detecting whether the acquired registration information is valid, the method further includes: and when the acquired registration information is valid, continuing to execute the network registration process in the network according to the acquired registration information.
Optionally, the network type identifier registered last time is stored in a reserved bit of an update status field in the registration information file.
Optionally, the network type identifier registered last time occupies 4 bits.
Optionally, the bit corresponding to the network type identifier registered last time is non-all 1 or non-all 0.
Optionally, the method further includes: when the network registration is successful, storing the current registration information; and acquiring an identifier corresponding to the current network system, and storing the identifier corresponding to the current network system as the last registered network system identifier.
Optionally, the method further includes: when the network registration fails, clearing the current registration information; and acquiring an identifier corresponding to the current network system, and storing the identifier corresponding to the current network system as the last registered network system identifier.
Optionally, the storing, by the subscriber identity module card, an identifier corresponding to a current network standard as the identifier of the network standard registered last time includes: updating the network system identifier registered last time in the registration information file corresponding to the current network system to the identifier corresponding to the current network system; and updating the network system identifier registered last time in the registration information files corresponding to other network systems to an invalid value.
The embodiment of the invention also provides a registration device of the user identification card, which comprises: the identification reading module is used for reading the network system identification registered last time from the user identification card when the terminal accessed to the user identification card is detected to be started; the network system identification module is used for identifying the corresponding network system according to the acquired network system identifier; a registration information acquisition module for acquiring the registration information corresponding to the identified network system from the user identification card; and the network registration module is used for executing a network registration process in the network according to the acquired registration information.
An embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the data transmission methods described above.
The embodiment of the present invention further provides a terminal, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of any of the data transmission methods when executing the computer program.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a registration method of a user identification card, which comprises the following steps: when detecting that a terminal accessed to a user identification card is started, reading a network system identifier registered last time from the user identification card; identifying a corresponding network type according to the obtained network type identifier; acquiring registration information corresponding to the identified network system from the user identification card; and executing a network registration process in the network according to the acquired registration information. Compared with the prior art, in the scheme of the invention, after the user identification card is accessed to a certain terminal, the network system identification and the registration information of the networking registration are respectively stored in the user identification card, the network system registered before the user identification card is powered off can be accurately obtained after the user identification card is powered on every time, and the final registration information can be accurately obtained, thereby improving the efficiency of power-on and network searching. And the last networking network system and the registration information stored in the user identification card do not change along with the replacement of the terminal, so that the network system registered by the user identification card is accurately associated with the registration information.
Furthermore, the subscriber identity module card supporting multiple network systems may include multiple registration information files, and the multiple registration information files may store multiple network system identifiers registered last time. And when the network is registered last time, updating all the network system identifications which are registered last time and stored in the user identification as the network system identifications which are registered successfully. After the terminal accessed with the user identification card is started up again, reading a plurality of network system identifications registered last time, judging whether the read network system identifications are consistent and effective, if so, determining that the information is available, and searching for network registration by the terminal according to the corresponding network system; and if the obtained network system identification registered last time is inconsistent or invalid, the information is not used, and the terminal performs network selection registration according to a terminal default mode.
Further, the validity of the registration information is detected first, the detection mode may be any mode for detecting the registration information in the prior art, when the terminal detects that the acquired registration information is invalid, the terminal considers that the last registration in the corresponding network system fails, and the acquired registration information is not trusted, and then the terminal acquires the registration information again, and executes the network registration process.
Further, when the terminal registration fails, the terminal clears the registration information stored in the user identification card and stores the current network system of the registration, so that the next registration can still be performed under the network system, and the registration information acquired under other network systems before the registration failure is misused is avoided.
Drawings
Fig. 1 is a schematic flowchart of a registration method of a subscriber identity card according to an embodiment of the present invention;
fig. 2 is a partial flowchart of a method for registering a subscriber identity card according to an embodiment of the present invention;
fig. 3 is a partial protocol description diagram of EF _5G3GPP L OCI in the prior art;
fig. 4 is a schematic application diagram of a registration method of a subscriber identity card according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for registering a subscriber identity card according to an embodiment of the present invention.
Detailed Description
As background art, in the prior art, after a mobile terminal is powered on, files corresponding to each network system in an SIM card or a USIM card are traversed, and corresponding registration information is read from the files for registration, which directly affects the efficiency of powering on and searching for a network of the terminal, and the efficiency of powering on and searching for a network of the terminal is low. And because registration information of a plurality of systems may exist at the same time, there is a risk that the registration information which is successfully registered at the last time cannot be correctly used.
In order to solve the problem, in another conventional scheme, the terminal may store the network type registered before the terminal is powered off last time in a Memory inside the terminal, such as a Non-Volatile Random Access Memory (NVRAM or NV), however, if the USIM card is kept unchanged before and after the terminal is powered on, the RP L MN RAT that is the valid stored network type stored in the NV is valid, but if the inserted SIM card or USIM card is different from the SIM card or USIM card before the terminal is powered off, or the SIM card or USIM card is taken to another terminal and used and then inserted back, that is, the RP L MN RAT stored inside the terminal cannot accurately improve the power-on network finding efficiency.
This is because there are different files for 5G/4G and 2/3G in the USIM card to store the last registration information, and the RP L MN stored in the registration information of the USIM card corresponding to a different RAT may also be different, and if there is no information indicating the last registered RAT, it cannot be determined that the last registration information should be obtained from the card file corresponding to that RAT at all, i.e., the RP L MN with which the last registration is successful cannot be accurately obtained.
In order to solve the above problems in the prior art, an embodiment of the present invention provides a method for registering a subscriber identity card, where the method includes: when detecting that a terminal accessed to a user identification card is started, reading a network system identifier registered last time from the user identification card; identifying a corresponding network type according to the obtained network type identifier; acquiring registration information corresponding to the identified network system from the user identification card; and executing a network registration process in the network according to the acquired registration information.
By the scheme, the network system which is registered last time is directly acquired when the terminal is started, and the network is searched under the acquired network system, so that the starting network searching efficiency is improved.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
To solve the above technical problem, an embodiment of the present invention provides a method for registering a subscriber identity card, please refer to fig. 1, where the method includes the following steps:
step S101, when detecting that a terminal accessed to a user identification card is started, reading a network system identifier registered last time from the user identification card;
and the network system identifier registered last time is the identifier of the network system accessed by the terminal in the networking last time. The network standard is a type of network, such as a second generation, a third generation, a fourth generation, a fifth generation mobile communication technology (2G, 3G, 4G, 5G for short), and the like.
The subscriber identity card may refer to a SIM card or USIM card or other card with network finding, registering or networking functions.
After a terminal needing networking, such as a mobile phone accessing a subscriber identity module card (such as an SIM card or a USIM card), is turned off or disconnected, the terminal stores a network system of the last networking registration into the subscriber identity module card by using an identifier corresponding to the system, and the network system is used as a network system identifier of the last registration. When the terminal is started up again, the network system identification registered last time can be obtained from the user identification card, so that the terminal executes the process of networking registration under the network system. The terminal is powered on, including the situation that the terminal is powered on again under the condition that the power supply is turned off, and also including the situation that the terminal is restarted to be connected with the network after the network is disconnected.
Step S102, identifying a corresponding network type according to the acquired network type identification;
the network system which can be supported by the multi-mode mobile phone can be coded to obtain the identifier corresponding to each network system. And the terminal acquires the network system identification registered last time to identify the corresponding network system.
Step S103, acquiring registration information corresponding to the identified network system from the user identification card;
and step S104, executing a network registration process in the network according to the acquired registration information.
For example, the network system corresponding to the network system identifier registered last time is 5G, the registration information of 5G can be acquired for network finding registration, and the registration information of 5G can acquire information such as RP L MN from EF _5GS3GPP L OCI.
In the embodiment, after the subscriber identity module card is accessed to a terminal, the network system identifier and the registration information of the current networking registration are respectively stored in the subscriber identity module card, the network system registered before the last shutdown of the subscriber identity module card can be accurately acquired after each startup, and the final registration information can be accurately acquired, so that the startup network searching efficiency is improved. And the last networking network system and the registration information stored in the user identification card do not change along with the replacement of the terminal, so that the network system registered by the user identification card is accurately associated with the registration information.
Optionally, the network type identifier registered last time is stored in a registration information file of the subscriber identity module card.
When the user identification card successfully executes network registration under a certain network system, all the specific positions of the registration information file are stored in the card, and the current network system is also stored. In addition, the network system which is successfully registered at last can be stored in the user identification card by using a single file.
The registration Information File of the subscriber identity card may include a basic File (Elementary File (EF) in the SIM card or USIM card, where the basic File (EF) includes location Information (L location Information, i.e., EF _ L OCI), Packet Switched location Information (Packet Switched location Information, i.e., EF _ PS _ L OCI), EPS location Information (EPS (evolved Packet system), i.e., EF _ EPS L OCI, 5GS3GPP location Information, i.e., EF _5GS3GPP L OCI, and so on, and where 5GS, i.e., 5G, i.e., Fifth Generation mobile communication technology (File-Generation) system, third Generation Partnership Project (3rd Generation Partnership Project, 3 GPP).
The identification of each network system can be stored in these files, and in a non-limiting example, the last registered network system identification is defined as latest _ registered _ rate.
In an embodiment, the subscriber identity card has a plurality of registration information files, and in the registration method of the subscriber identity card shown in fig. 1, after reading the network system identifier registered last time from the subscriber identity card in step S102, the method may further include: when a plurality of network system identifications registered last time are stored in a plurality of registration information files, judging whether the plurality of network system identifications registered last time are consistent and effective; if the network system identifications registered last time are inconsistent or invalid, the read network system identification registered last time is considered invalid; and performing network selection registration according to a default mode of the terminal.
The user identification card supporting various network systems can contain a plurality of registration information files, and a plurality of network system identifications registered last time can be stored in the plurality of registration information files. And when the network is registered last time, updating all the network system identifications which are registered last time and stored in the user identification as the network system identifications which are registered successfully.
Optionally, the registration information files may correspond to the network systems one to one, and each registration information file may have a fixed position or a byte for storing the network system identifier registered last time.
After the terminal accessed with the user identification card is started up again, a plurality of network system identifications registered last time are read, and whether the read network system identifications are consistent and effective can be judged; if the information is consistent and valid, determining that the information is available, and searching for network registration by the terminal according to the corresponding network system; and if the obtained network system identification registered last time is inconsistent or invalid, the information is not used, and the terminal performs network selection registration according to a terminal default mode.
Referring to fig. 1, after acquiring the registration information corresponding to the identified network type from the subscriber identity card in step S103 in fig. 1, the method may further include the steps in fig. 2:
step S201, detecting whether the acquired registration information is valid;
step S202, when the acquired registration information is invalid, the registration information is acquired again, and a network registration process is executed in the network according to the acquired registration information.
After the terminal acquires the registration information through step S103, the validity of the registration information is detected, the detection mode may be any mode for detecting the registration information in the prior art, when the terminal detects that the acquired registration information is invalid, it is considered that the last registration in the network system corresponding to the latest _ registered _ rat fails, and the acquired registration information is not trusted, and the terminal acquires the registration information again and executes the network registration process.
In a non-limiting example, when the terminal is powered on, if the latest _ registered _ rates in the read registration information files are consistent and valid, but the registration information in the corresponding registration information file is invalid, the last registration is considered to be failed, and network selection and registration are performed according to the scene of the last registration failure, for example, the last registration is rejected by the network under 5G, the registration fails, the registration information in the 5G registration file is deleted in the user identification card, but the latest _ registered _ rates in the "update status" are all set to 5G, then after the terminal is powered on, the latest _ registered _ rates read are 5G, but no RP L MN and valid GUTI exist in the 5G registration information file, and the processing can be performed according to the last registration failure, so that the registration information corresponding to other systems (such as 4G/3G) is prevented from being mistakenly regarded as the registration information of the last registration success.
With reference to fig. 2, after detecting whether the acquired registration information is valid in step S201, the method may further include:
step S203, when the acquired registration information is valid, continuing to execute the network registration process in the network according to the acquired registration information.
If the terminal determines that the acquired registration information is valid according to the step S201, the terminal continues to execute step S104. Namely, the last registration is successful, and the terminal can directly perform network searching registration according to the acquired registration information.
Optionally, the network type identifier registered last time is stored in a reserved bit of an update status field in the registration information file.
Further, the network system identifier registered last time is stored in the registration information file corresponding to each network system, and the reserved bit of the state field is updated.
The current protocol specification codes for several documents in the current SIM or USIM card, EF _ L OCI, EF _ PS _ L OCI, EF _ EPS L OCI and EF _5GS3GPP L OCI are as follows:
EF _ L oci contains Temporary Mobile Subscriber Identity (TMSI), location Area Information (L mentioned Area Information, L AI), location update status (L update status), and so on, and can specifically look at the special requirements of protocol 5.2.5 when updating EF _ L oci.
For example, for a USIM card, EF _ L oci contains information as shown in table 1 below:
TABLE 1
Figure BDA0002425339790000091
EF _ PS L OCI contains Packet Temporary Mobile subscriber identity (P-TMSI), P-TMSI signature value, Routing Area Information (RAI), and Routing Area update status (RAI).
For example, for USIM cards, EF _ PS L OCI contains information see table 2 below:
TABLE 2
Bytes Description M/O Length
1to 4 P-TMSI M 4bytes
5to 7 P-TMSI signature value M 3bytes
8to13 RAI M 6bytes
14 Routing Area update status M 1byte
EF _ EPS L OCI contains Globally Unique Temporary Identifier (GUTI), last accessed registration Tracking area Identifier (L assisted registered Tracking area Identifier (L assisted registered TAI), and EPS update status (EPSupdate status).
For example, for USIM cards, EF _ EPS L OCI contains information see table 3 below:
TABLE 3
Bytes Description M/O Length
1 to 12 GUTI M 12bytes
13 to 17 Last visited registered TAI M 5bytes
18 EPS update status M 1byte
EF _5GS3GPP L OCI may contain information such as 5G Globally unique temporary Identifier (5G-GUTI), last accessed 5GS TAI (L last visited registered tracking Area Identity in 5GS) for 3GPP access (access),
The 5GS update status (update status) is accessible to 3GPP (access).
For example, for a USIM card, EF _ EPS L OCI contains information see table 4 below:
TABLE 4
Figure BDA0002425339790000101
Tables 1 to 4 are slightly different in encoding manner for storing USIM card registration location information, but fields for recording recently registered Public land Mobile (communication) networks (Public L and Mobile Network, abbreviated as P L MN) are provided therein, such as L AI field in EF L OCI, RAI field in EFPS L OCI, and L established registered TAI field in EFEPS L OCI and EF5GS3GPP L OCI, and all fields include a field for recording "update status", which is one byte, where bits 4 to 8 are currently Reserved states (Reserved), and byte bits of the Reserved states in the location information are referred to as Reserved bits in the present invention.
Optionally, the network type identifier registered last time occupies 4 bits.
That is, the above-mentioned "update status" fields include bits 4 to 8 corresponding to bytes, for example, the protocol description of "update status" fields in EF _5G3GPP L OCI is shown in fig. 3, fig. 3 is a partial protocol description diagram of EF _5G3GPP L OCI in the prior art, where bits 4 to bit8 (corresponding to 011 to 1115 bytes in fig. 3), the fields of "update status" in other files are similar, bits 4 to bit8 are reserved bits at present, and these 5 bytes can be used to record the network system registered last time.
In one non-limiting example, the bytes bite 4-bite 74 are used as defined in Table 5:
TABLE 5
Figure BDA0002425339790000111
Optionally, the bit corresponding to the network type identifier registered last time is non-all 1 or non-all 0.
In the prior art, the reserved bit may be defined as 0 or 1 by default, and the bit corresponding to the network type identifier registered last time is not all 1 or not all 0. For example, in table 5, when bits 7 to 4 are "0000" or "1111", network standard identifiers are not defined for them, so as to avoid collision with the default definition of reserved bits, which may cause recognition error.
The method comprises the following steps that through an example that a USIM card or a SIM card corresponding to the table 5 defines a network system identifier, the USIM card or the SIM card which does not use bit4 to bit7 and does not use bit4 to bit7 can be compatible with the inventory, so that the maximum 14 network systems can be recorded.
In one embodiment, the method further comprises: when the network registration is successful, acquiring current registration information; and acquiring an identifier corresponding to the current network system, and storing the identifier corresponding to the current network system as the last registered network system identifier.
When the terminal successfully registers in a certain network standard, all the stored registration information files (including but not limited to EF _ L OCI, EF _ PS L OCI, EF _ EPS L OCI and EF _5GS3GPP L OCI) in the subscriber identity card are updated to the identifier of the current network standard.
Optionally, after the terminal successfully registers in a certain network system, the latest _ registered _ rat in the registration information file corresponding to each network system may be updated to the identifier of the current network system.
Optionally, when the terminal fails to register in a certain network system, the latest _ registered _ rat in all the stored registration information files in the subscriber identity module card or the registration information files corresponding to each network system may also be updated to the identifier of the current network system.
In one embodiment, the method further comprises: when the network registration fails, clearing the current registration information; and acquiring an identifier corresponding to the current network system, and storing the identifier corresponding to the current network system as the last registered network system identifier.
When the terminal executes the flow in fig. 1 and fails to register, the terminal clears the registration information stored in the user identification card, and stores the identifier of the current network system registered this time as the identifier of the network system registered last time.
In one embodiment, the step of storing the identifier corresponding to the current network system as the identifier of the network system registered last time includes: updating the network system identifier registered last time in the registration information file corresponding to the current network system to the identifier corresponding to the current network system; and updating the network system identifier registered last time in the registration information files corresponding to other network systems to an invalid value.
For a subscriber identity module card supporting multiple network systems, the subscriber identity module card may include registration information files corresponding to the respective network systems, and each registration information file may store a last registered network identifier (latest _ registered _ rate). When network registration is executed, including both successful and failed registration situations, the identifier corresponding to the current network standard being registered may be stored in the registration information file of the network standard as the last registered network standard identifier (latest _ registered _ rat), and the last registered network standard identifier (latest _ registered _ rat) stored in the registration information file of other network standards may be updated to an invalid value.
The present invention further provides a non-limiting application example of the registration method of the subscriber identity card, please refer to fig. 4, the execution steps of the application example include:
step S401, detecting that the terminal is started; when the terminal with the USIM card detects the power-on, the process goes to step S402.
Step S402, reading a latest _ registered _ rat in the SIM card or the USIM card;
step S403, judging whether the latest _ registered _ rat is consistent and valid;
step S404, when the judgment result of the step S402 is positive, reading the registration information corresponding to the latest _ registered _ rat, and performing network selection registration;
step S405, when the judgment result of the step S402 is negative, network selection and registration are carried out according to a terminal default mode;
step S406, the registration is successful, and the residence is completed.
Referring to fig. 5, the present invention further provides a device for registering a subscriber identity card, which may include:
an identifier reading module 501, configured to read a network type identifier registered last time from a subscriber identity card when it is detected that a terminal accessing the subscriber identity card is powered on;
a network type identification module 502, configured to identify a corresponding network type according to the obtained network type identifier;
a registration information obtaining module 503, configured to obtain, from the subscriber identity module, registration information corresponding to the identified network type;
a network registration module 504, configured to execute a network registration procedure in the network according to the acquired registration information.
Optionally, the network type identifier registered last time is stored in a registration information file of the subscriber identity module card.
In one embodiment, the user identification card has a plurality of registration information files, and the registration device of the user identification card further includes:
the judging module is used for judging whether the network system identifications registered last time are consistent and effective when the network system identifications registered last time are stored in the registration information files;
the invalid identification recognition module is used for considering that the read network system identification which is registered last time is invalid if a plurality of network system identifications which are registered last time are inconsistent or invalid;
and the default registration module is used for carrying out network selection registration according to a terminal default mode.
In one embodiment, the registering means of the subscriber identity card further comprises:
the registration information detection module is used for detecting whether the acquired registration information is valid;
and the registration information reacquiring module is used for reacquiring the registration information when the acquired registration information is invalid and executing a network registration process in the network according to the reacquired registration information.
In one embodiment, the registering means of the subscriber identity card further comprises:
and the continuous execution module is used for continuously executing the network registration process in the network according to the acquired registration information when the acquired registration information is valid.
Optionally, the network type identifier registered last time is stored in a reserved bit of an update status field in the registration information file.
Optionally, the network type identifier registered last time occupies 4 bits.
Optionally, the bit corresponding to the network type identifier registered last time is non-all 1 or non-all 0.
In one embodiment, the registering means of the subscriber identity card further comprises:
the successful registration module is used for storing the current registration information when the network registration is successful;
and the registration information refreshing module is used for acquiring the identifier corresponding to the current network system and storing the identifier corresponding to the current network system as the last registered network system identifier.
In one embodiment, the registering means of the subscriber identity card further comprises:
the registration failure module is used for clearing the current registration information when the network registration fails;
and the network system updating module is used for acquiring the identifier corresponding to the current network system and storing the identifier corresponding to the current network system as the last registered network system identifier.
In one embodiment, the subscriber identity module card has a plurality of registration information files corresponding to the network systems, and the registration information refreshing module or the network system updating module is further configured to update a network system identifier registered last time in the registration information file corresponding to the current network system to an identifier corresponding to the current network system; and updating the network system identifier registered last time in the registration information files corresponding to other network systems to an invalid value.
For more details of the operation principle and the operation mode of the device for registering a subscriber identity card, reference may be made to the above description of the method for registering a subscriber identity card in fig. 1 to 3, and details are not repeated here.
Further, the embodiment of the present invention further discloses a storage medium, where a computer instruction is stored, and when the computer instruction runs, the technical solution of the registration method for the subscriber identity module card in the embodiments shown in fig. 1 to fig. 4 is executed. Preferably, the storage medium may include a computer-readable storage medium such as a non-volatile (non-volatile) memory or a non-transitory (non-transient) memory. The storage medium may include ROM, RAM, magnetic or optical disks, and the like.
Further, an embodiment of the present invention further discloses a terminal, which includes a memory and a processor, where the memory stores a computer instruction capable of running on the processor, and the processor executes the technical solution of the registration method for the subscriber identity card in the embodiments shown in fig. 1 to 4 when running the computer instruction. The terminal can refer to a mobile phone, a tablet computer, an intelligent watch and other terminals with network searching registration.
The technical scheme of the invention can be applied to 5G (5Generation) communication systems, 4G and 3G communication systems, and various future new communication systems such as 6G and 7G.
It should be understood that the term "and/or" herein is merely one type of association relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document indicates that the former and latter related objects are in an "or" relationship.
The "plurality" appearing in the embodiments of the present application means two or more.
The descriptions of the first, second, etc. appearing in the embodiments of the present application are only for illustrating and differentiating the objects, and do not represent the order or the particular limitation of the number of the devices in the embodiments of the present application, and do not constitute any limitation to the embodiments of the present application.
The term "connect" in the embodiments of the present application refers to various connection manners, such as direct connection or indirect connection, to implement communication between devices, which is not limited in this embodiment of the present application.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (14)

1. A method for registering a subscriber identity card, the method comprising:
when detecting that a terminal accessed to a user identification card is started, reading a network system identifier registered last time from the user identification card;
identifying a corresponding network type according to the obtained network type identifier;
acquiring registration information corresponding to the identified network system from the user identification card;
and executing a network registration process in the network according to the acquired registration information.
2. The method according to claim 1, wherein the network system identifier of the last registration is stored in a registration information file of the subscriber identity card.
3. The method according to claim 2, wherein the subscriber identity card has a plurality of registration information files, and after reading the network system identifier registered last time from the subscriber identity card, the method further comprises:
when a plurality of network system identifications registered last time are stored in a plurality of registration information files, judging whether the plurality of network system identifications registered last time are consistent and effective;
if the network system identifications registered last time are inconsistent or invalid, the read network system identification registered last time is considered invalid;
and performing network selection registration according to a default mode of the terminal.
4. The method as claimed in claim 2, wherein after acquiring the registration information corresponding to the identified network system from the subscriber identity card, the method comprises:
detecting whether the acquired registration information is valid;
and when the acquired registration information is invalid, acquiring the registration information again, and executing a network registration process in the network according to the acquired registration information again.
5. The method of claim 4, wherein after detecting whether the acquired registration information is valid, the method further comprises:
and when the acquired registration information is valid, continuing to execute the network registration process in the network according to the acquired registration information.
6. The method according to claim 2, wherein the network system identifier of the last registration is stored in a reserved bit of an update status field in the registration information file.
7. The method according to claim 6, wherein the last registered network type identifier occupies 4 bits.
8. The method according to claim 6, wherein bits corresponding to the network type identifier of the last registration are non-all 1 or non-all 0.
9. The method of claim 1, further comprising:
when the network registration is successful, storing the current registration information;
and acquiring an identifier corresponding to the current network system, and storing the identifier corresponding to the current network system as the last registered network system identifier.
10. The method of claim 1, further comprising:
when the network registration fails, clearing the current registration information;
and acquiring an identifier corresponding to the current network system, and storing the identifier corresponding to the current network system as the last registered network system identifier.
11. The method according to claim 9 or 10, wherein the subscriber identity card has registration information files corresponding to a plurality of network systems, and the storing the identifier corresponding to the current network system as the identifier of the last registered network system comprises:
updating the network system identifier registered last time in the registration information file corresponding to the current network system to the identifier corresponding to the current network system;
and updating the network system identifier registered last time in the registration information files corresponding to other network systems to an invalid value.
12. An apparatus for registering a subscriber identity card, the apparatus comprising:
the identification reading module is used for reading the network system identification registered last time from the user identification card when the terminal accessed to the user identification card is detected to be started;
the network system identification module is used for identifying the corresponding network system according to the acquired network system identifier;
a registration information acquisition module for acquiring the registration information corresponding to the identified network system from the user identification card;
and the network registration module is used for executing a network registration process in the network according to the acquired registration information.
13. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, realizing the steps of the method according to any of the claims 1 to 11.
14. A terminal comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1 to 11.
CN202010218786.XA 2020-03-25 2020-03-25 Registration method and device of user identification card, storage medium and terminal Active CN111417106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010218786.XA CN111417106B (en) 2020-03-25 2020-03-25 Registration method and device of user identification card, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010218786.XA CN111417106B (en) 2020-03-25 2020-03-25 Registration method and device of user identification card, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN111417106A true CN111417106A (en) 2020-07-14
CN111417106B CN111417106B (en) 2022-10-25

Family

ID=71494634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010218786.XA Active CN111417106B (en) 2020-03-25 2020-03-25 Registration method and device of user identification card, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN111417106B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235781A (en) * 2020-09-24 2021-01-15 紫光展锐(重庆)科技有限公司 Network registration method, equipment, device and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750698A (en) * 2005-09-19 2006-03-22 北京天碁科技有限公司 Quick selecting network registrated double mode or multiple mode terminal and method
CN101754186A (en) * 2009-12-10 2010-06-23 中兴通讯股份有限公司 Method and system for residing when mobile terminal is powered on
CN101997977A (en) * 2010-08-30 2011-03-30 北京道通天下信息科技有限责任公司 Method and device for enabling mobile terminal and smart card to be compatible with different network systems
CN103067595A (en) * 2012-12-31 2013-04-24 东莞宇龙通信科技有限公司 Method and mobile terminal of sending out prompt information according to user identification card
CN103796196A (en) * 2011-07-13 2014-05-14 华为终端有限公司 Method and device for access point autodial
CN104010291A (en) * 2013-02-26 2014-08-27 华为终端有限公司 Network registration method and apparatus, and mobile terminal
CN104105166A (en) * 2013-04-09 2014-10-15 中兴通讯股份有限公司 Automatic network searching method of mobile terminal, and mobile terminal
CN104837181A (en) * 2015-05-13 2015-08-12 小米科技有限责任公司 Network access method and device
CN105101171A (en) * 2014-05-16 2015-11-25 中兴通讯股份有限公司 Terminal network parameter configuration method, and terminal
CN106465237A (en) * 2014-09-29 2017-02-22 华为技术有限公司 Wireless communication method, processor and wireless terminal
US20170272936A1 (en) * 2014-12-09 2017-09-21 Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. Network Registration Method and Registration Device
CN107809763A (en) * 2017-09-26 2018-03-16 珠海市魅族科技有限公司 Reduce method and device, computer installation and the storage medium of mobile terminal power consumption

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750698A (en) * 2005-09-19 2006-03-22 北京天碁科技有限公司 Quick selecting network registrated double mode or multiple mode terminal and method
CN101754186A (en) * 2009-12-10 2010-06-23 中兴通讯股份有限公司 Method and system for residing when mobile terminal is powered on
CN101997977A (en) * 2010-08-30 2011-03-30 北京道通天下信息科技有限责任公司 Method and device for enabling mobile terminal and smart card to be compatible with different network systems
CN103796196A (en) * 2011-07-13 2014-05-14 华为终端有限公司 Method and device for access point autodial
CN103067595A (en) * 2012-12-31 2013-04-24 东莞宇龙通信科技有限公司 Method and mobile terminal of sending out prompt information according to user identification card
CN104010291A (en) * 2013-02-26 2014-08-27 华为终端有限公司 Network registration method and apparatus, and mobile terminal
CN104105166A (en) * 2013-04-09 2014-10-15 中兴通讯股份有限公司 Automatic network searching method of mobile terminal, and mobile terminal
CN105101171A (en) * 2014-05-16 2015-11-25 中兴通讯股份有限公司 Terminal network parameter configuration method, and terminal
CN106465237A (en) * 2014-09-29 2017-02-22 华为技术有限公司 Wireless communication method, processor and wireless terminal
US20170272936A1 (en) * 2014-12-09 2017-09-21 Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. Network Registration Method and Registration Device
CN104837181A (en) * 2015-05-13 2015-08-12 小米科技有限责任公司 Network access method and device
CN107809763A (en) * 2017-09-26 2018-03-16 珠海市魅族科技有限公司 Reduce method and device, computer installation and the storage medium of mobile terminal power consumption

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235781A (en) * 2020-09-24 2021-01-15 紫光展锐(重庆)科技有限公司 Network registration method, equipment, device and storage medium

Also Published As

Publication number Publication date
CN111417106B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN110769442B (en) Method and device for accessing router and Internet of things equipment
CN107911319B (en) Routing method of multiple security modules, NFC controller and NFC equipment
CN111510909A (en) Communication module configuration processing method and device, computer equipment and storage medium
CN110831077B (en) Mobile data service switching method, terminal and computer storage medium
US10009891B2 (en) Communication method, server and terminal
CN107295503A (en) Determine method, storage medium and the mobile terminal of mobile terminal access way
US20150350812A1 (en) Method and system for transferring address book based on bluetooth
CN103813439A (en) Method for terminal register and terminal
CN111417106B (en) Registration method and device of user identification card, storage medium and terminal
CN104010291A (en) Network registration method and apparatus, and mobile terminal
CN101399873B (en) Method, apparatus and communication terminal device for processing index information of phone book
WO2011127708A1 (en) Set-card separation mobile phone and method for realizing card initialization
EP3468261B1 (en) Control method and apparatus for smart card, terminal device, and smart card
CN113242542B (en) Network searching control method and device of mobile terminal and mobile terminal
CN105307238A (en) Mobile terminal and network selection method and device thereof
CN106793019B (en) Method and device for attaching APN (Access Point name) and mobile terminal
US20130122959A1 (en) Method and apparatus for identifying user card
CN105682217B (en) Network registration method, network registration device and terminal
CN107466087B (en) Network searching method and mobile terminal
CN109525698B (en) SIM card identification configuration method, storage medium and mobile phone
US10802714B2 (en) Optimizing access to universal integrated circuit card (UICC) files in a user equipment (UE)
WO2022247477A1 (en) Access method and apparatus, electronic device and computer-readable storage medium
EP3959906B1 (en) Apparatus and method for registering an apparatus with a long term evolution (lte) cellular network using a selected access technology
CN104684046A (en) A network searching method and terminal
CN110177173B (en) Switching method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant