User-set-up method and related apparatus

CN122554948APending Publication Date: 2026-08-11HANGZHOU HUACHENG SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-28
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0003]一些相关技术中,用户设备可选择的接入点信息来源比较单一,基本都是出厂预置的接入点信息,导致注网成功率低

Benefits of technology

[0010]The above solution, when a user device needs to register a network, reads an access point set from storage. This set includes several subsets of access points from different sources, each subset containing several access point entries. The solution then selects an access point from this set that matches the first identity identifier of the current identity module for network registration. Because the access point set is stored in storage and contains entries from multiple sources, when registration is needed, the selection can be made from multiple access point entries from several sources, rather than just a single source, thus improving the success rate of network registration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122554948A_ABST
    Figure CN122554948A_ABST
Patent Text Reader

Abstract

This application discloses a method and related apparatus for registering a user equipment (UE) with a network. The UE has at least one built-in identity module. The UE network registration method includes: when there is a network registration requirement, reading an access point set from storage space, the access point set including several subsets of access points from different sources, each subset including several access point information entries; selecting an access point from the access point set that matches the current identity module for network registration, where the current identity module is the identity module used by the UE. This approach can improve the network registration success rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a user equipment network registration method and related apparatus. Background Technology

[0002] When a user equipment (UE) needs to register a network, it will initiate a network connection request to the core network (cellular network). The request carries access point information (APN), which points to the target network to be connected to. The core network selects the corresponding gateway based on the access point information so that the UE can establish a network connection with the target network through the gateway.

[0003] In some related technologies, the sources of access point information that user equipment can choose from are relatively limited, and they are basically the access point information preset by the factory, resulting in a low network registration success rate. Summary of the Invention

[0004] This application provides a user equipment network registration method and related apparatus, which can improve the network registration success rate.

[0005] This application provides a method for registering a user equipment (UE) with a network. The UE has at least one built-in identity module, comprising: when there is a network registration requirement, reading an access point set from storage space, the access point set including several access point subsets from various sources, each access point subset including several access point information entries; selecting an access point information entry from the access point set that matches the current identity module for network registration, the current identity module being the identity module used by the UE.

[0006] This application provides a user equipment, including: at least one identity module, a reading module, and a selection module. The reading module is used to read an access point set from storage space when there is a network registration requirement. The access point set includes several access point subsets from different sources, and each access point subset includes several access point information entries. The selection module is used to select an access point information entry from the access point set that matches the current identity module for network registration. The current identity module is the identity module used by the user equipment.

[0007] This application provides a user equipment including a memory and a processor, the processor being configured to execute program instructions stored in the memory to implement the above-described method.

[0008] This application provides a computer-readable storage medium having program instructions stored thereon, which, when executed by a processor, implement the above-described method.

[0009] This application provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0010] The above solution, when a user device needs to register a network, reads an access point set from storage. This set includes several subsets of access points from different sources, each subset containing several access point entries. The solution then selects an access point from this set that matches the first identity identifier of the current identity module for network registration. Because the access point set is stored in storage and contains entries from multiple sources, when registration is needed, the selection can be made from multiple access point entries from several sources, rather than just a single source, thus improving the success rate of network registration.

[0011] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this application. Attached Figure Description

[0012] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.

[0013] Figure 1 This is a flowchart illustrating an embodiment of the user equipment network registration method provided in this application; Figure 2 This is a flowchart illustrating another embodiment of the user equipment network registration method provided in this application; Figure 3 This is a flowchart illustrating a specific example of the user equipment network registration method provided in this application; Figure 4 This is a schematic diagram of the structure of an embodiment of the user equipment provided in this application; Figure 5 This is a schematic diagram of another embodiment of the user equipment provided in this application; Figure 6 This is a schematic diagram of the structure of an embodiment of the computer-readable storage medium of this application. Detailed Implementation

[0014] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0015] In the following description, specific details such as particular system architectures, interfaces, and technologies are presented for illustrative purposes rather than for limiting purposes, in order to provide a thorough understanding of this application.

[0016] In this document, the term "and / or" merely describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, "many" in this document means two or more. Moreover, the term "at least one" in this document means any combination of at least two of any one or more of a plurality of elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C. Finally, the term "several" in this document means any integer equal to or greater than 0, such as 0, 1, 2, 3, 4, 5, ...

[0017] Introduction to relevant technical terms: APN (Access Point Name): A name used in mobile networks to identify different data service access points. It is a necessary configuration parameter for user equipment to access cellular data services.

[0018] MCC (Mobile Country Code): A three-digit code used to identify the country of origin of a mobile user.

[0019] MNC (Mobile Network Code): A two- or three-digit code used to identify the network of the mobile operator to which a mobile user belongs.

[0020] MVNO (Mobile Virtual Network Operator): An operator that does not own its own wireless access network infrastructure and provides services by leasing traditional operator networks.

[0021] GID (GroupIdentifier): Group identification data used for MVNO identification.

[0022] IMSI (International Mobile Subscriber Identity): A 15-digit numeric code used to uniquely identify mobile subscribers worldwide.

[0023] SPN (ServiceProviderName): The name of the service provider stored in the identity module.

[0024] ICCID (Integrated Circuit Card Identifier): A unique identification number for the identity module.

[0025] Bitmap: A sequence of bits represented using unsigned integers.

[0026] PDP Context (PacketDataProtocolContext): A context environment used in mobile communications to describe data connection parameters.

[0027] Figure 1 This is a flowchart illustrating an embodiment of the user equipment network registration method provided in this application. Figure 1 As shown, in this embodiment, the user equipment network registration method may include the following steps: S110: When there is a need for network registration, read the set of access points from the storage space.

[0028] An access point set includes several access point subsets from various sources, and each access point subset contains several access point information entries.

[0029] In this embodiment, the executing entity is a user equipment. The user equipment has at least one built-in identity module. The user equipment can be a 2G, 3G, 4G, 5G mobile phone or other communication device. The identity module can be, but is not limited to, a SIM card.

[0030] There is a need for network registration when user equipment is powered on, the identity module is changed, or the network connection of the same identity module is lost and needs to be reconnected.

[0031] The storage space is a non-volatile storage medium, such as flash memory or hard disk drive (HDD). Access point information includes secondary identity and access point name (APN).

[0032] In some embodiments, the source includes at least one of a static source and a dynamic source.

[0033] In some embodiments, static sources include factory-configured information. Here, factory-configured access point information refers to the access point information written by the manufacturer when the user equipment leaves the factory.

[0034] In some embodiments, the dynamic source includes at least one of user-defined sources and historical secondary connections.

[0035] The so-called user-defined access point information can include at least one of the following: access point information read from an SD card, obtained by scanning a QR code, or received via Bluetooth. For example, to manage user devices in batches, an enterprise might write access point information to an SD card, which then automatically loads the access point information when the user device inserts the SD card. Alternatively, a user device might scan a QR code containing access point information to obtain that information.

[0036] The so-called access point information for historical secondary connections refers to the access point information used by the current identity module for successful network registrations in the past. This information must include at least the access point information for the most recent connection. However, it may also include access point information from earlier connections, such as the access point information for the last five connections.

[0037] S120: Select an access point from the set of access points that matches the current identity module for network registration.

[0038] The current identity module is the identity module used by the user device.

[0039] The above solution, when a user device needs to register a network, reads an access point set from storage. This set includes several subsets of access points from different sources, each subset containing several access point entries. The solution then selects an access point from this set that matches the first identity identifier of the current identity module for network registration. Because the access point set is stored in storage and contains entries from multiple sources, when registration is needed, the selection can be made from multiple access point entries from several sources, rather than just a single source, thus improving the success rate of network registration.

[0040] The following is a further expansion of S120: In some embodiments, S120 includes: sequentially selecting each access point information in the access point set for network registration until the network registration is successful or the access point set has been traversed.

[0041] In some embodiments, each access point information entry includes a supported second identity identifier, and S120 includes S121-S122. S121: Determine the priority of at least some access point information based on the degree of matching between the supported second identity identifier and the first identity identifier. S122: In descending order of priority, attempt to register the network using each access point information entry in the at least some access point information until network registration is successful or all at least some access point information has been traversed.

[0042] The first identity identifier can be read from the current identity module. The first identity identifier includes at least the International Mobile Subscriber Identity (IMSI), which is composed of the Mobile Country Code (MCC) and the Mobile Network Code (MNC). For example, the first two digits of the IMSI are the MCC, and the third to fourth (5th) digits are the MNC.

[0043] The second identity identifier can be obtained by parsing the access point information. The second identity identifier supported by the access point information from each of the aforementioned sources includes at least the mobile country code and the mobile network code, while the second identity identifier supported by the access point information of the historical sub-connections includes the International Mobile Subscriber Identity (IMSI).

[0044] At least one of the first and second identity identifiers may also contain a virtual operator (MVNO) identifier. If the first identity identifier contains an MVNO identifier, it means that the operator to which the current identity module belongs is the MVNO indicated by the identifier. The MVNO identifier can be an Integrated Circuit Card Identifier (ICCID), MVNO type (mvno_type), MVNO match data (mvno_match_data), etc. The MVNO type can be a Group Identifier (GID), Service Provider Name (SPN), etc. If the second identity identifier contains an MVNO identifier, it means that the access point information supports the MVNO indicated by the identifier.

[0045] The factory-configured access point information may also include a factory flag and a priority flag in the second identity identifier. The factory flag identifies the standard identity module included with the user equipment at the factory. If the second identity identifier includes the factory flag, it means that the factory-configured access point information supports the standard identity module of the user equipment. The priority flag can be added by the manufacturer based on the access point information used by the identity module for network registration. That is, if the factory-configured access point information is the access point information commonly used for network registration by the identity module, the manufacturer adds a priority flag to its supported second identity identifier.

[0046] The degree of matching is divided into matching and non-matching. Matching can be further divided into exact matching and fuzzy matching. Exact matching refers to matching the International Mobile Subscriber Identity (IMSI). Fuzzy matching refers to matching at least the mobile country code and mobile network code.

[0047] Among them, the degree of matching is positively correlated with the priority.

[0048] The above scheme determines the priority of at least some access point information through priority rules, and then selects access point information based on priority rules. This ensures that higher-priority access point information is selected first for network registration attempts, and higher-priority access point information has a higher success rate, thus improving network registration efficiency. Furthermore, the priority rules and priority-based selection rules are not only clear but also reproducible for network registration in other identity modules and subsequent network registrations in the current identity module.

[0049] In some embodiments, a priority is determined for each level of matching access point information, and the priority of access point information with matching degree of exact match, fuzzy match, and no match decreases in that order.

[0050] In some embodiments, priority is determined only for access point information that is precisely matched or fuzzy matched, with the priority decreasing sequentially between precise and fuzzy matches. It is understood that only access point information that is precisely matched or fuzzy matched can successfully register a network; non-matching access point information cannot. Therefore, the priority of non-matching access point information is uncertain. When selecting access point information based on priority later, non-matching access point information will not be selected, thus avoiding invalid selections and improving selection efficiency.

[0051] In some embodiments, if exact matching access point information exists, then after determining the highest priority for exact matching access point information, priority is no longer determined for fuzzy matching or non-matching access point information. If no exact matching access point information exists, priority continues to be determined for fuzzy matching (or fuzzy matching and non-matching) access point information. It is understood that, generally, exact matching access point information can successfully register for the network, and priority is no longer determined for fuzzy matching or non-matching access point information. This avoids invalid priority determination, thereby reducing computational overhead and improving selection efficiency.

[0052] In some embodiments, the source includes at least one of historical secondary connections, user-defined connections, and factory presets. S121 includes S1211-S213.

[0053] S1211: Determine whether there is access point information with an exact match in the subset of access points for historical connections. If there is access point information with an exact match, proceed to S1212; if there is no access point information with an exact match, proceed to S1213.

[0054] S1212: Access point information with a matching degree of exact match is determined as the access point information with the highest priority.

[0055] S1213: Determine each piece of access point information in the user-defined access point subset as the second priority access point information, and / or, from the historical connection and the factory-preset access point subset, determine at least one of the access point information with a matching degree of fuzzy matching, namely the third priority, fourth priority, fifth priority, and sixth priority access point information.

[0056] The priority levels of the first, second, third, fourth, fifth, and sixth priorities decrease sequentially.

[0057] The above scheme, when it is determined that there is an exact match for access point information, assigns the highest priority (first priority) to the exact match access point information and does not determine the priority of other access point information; when it is determined that there is no exact match access point information, it assigns the second to sixth priorities to the fuzzy match access point information. Thus, it can maximize the network registration success rate while reducing computational overhead.

[0058] In some embodiments, S1211 includes: for each access point information in the access point subset of historical sub-connections, determining whether there is a second identity identifier supported by the access point information and a first identity identifier that matches the International Mobile Subscriber Identity (IMSI); in response to the existence of a match for the IMSI, determining that there is access point information with a matching degree of exact match, and determining the matching degree of the access point information matching the IMSI as an exact match; in response to the absence of a match for the IMSI, determining that there is no access point information with a matching degree of exact match.

[0059] The above scheme can achieve accurate matching of the subset of access points for historical sub-connections.

[0060] In some embodiments, S1213 includes: for each piece of access point information in the access point subset of historical sub-connections, determining whether there is a second identity identifier supported by the access point information and whether there is a match between the second identity identifier and the first identity identifier regarding the mobile country code and the mobile network code; in response to the existence of a match regarding the mobile country code and the mobile network code, determining the priority of the access point information as the fourth priority.

[0061] If there are multiple access point information entries with fourth priority, they can be further subdivided into sub-priorities according to the traversal order or the order in which they were determined to be fourth priority. For example, the sub-priority of access point information that is determined to be fourth priority first has a higher priority than the sub-priority of access point information that is determined to be fourth priority later. Other priorities are similar, and will not be elaborated further in this application.

[0062] The above scheme can achieve fuzzy matching and priority determination of access point subsets for historical secondary connections.

[0063] In some embodiments, S1213 includes S12131-S12134. S12131: For each piece of access point information in the factory-preset subset of access point information, determine whether the second identity identifier supported by the access point information matches the first identity identifier of one of three types: a first type, a second type, or a third type. S12132: In response to the existence of a first type match, determine the priority of the access point information as the third priority. S12133: In response to the existence of a second type match, determine the priority of the access point information as the fifth priority. S12134: In response to the existence of a third type match, determine the priority of the access point information as the sixth priority.

[0064] The first type of matching involves matching the mobile country code, mobile network code, and virtual operator logo; the second type of matching involves matching the mobile country code and mobile network code, and the second identity identifier includes a priority flag; and the third type of matching involves matching the mobile country code and mobile network code, and the second identity identifier does not include a priority flag.

[0065] The first type of matching can be further divided into matching regarding factory markings and mismatching regarding factory markings. Matching regarding factory markings means that the mobile country code, mobile network code, IC card identification code, and factory markings all match. Mismatching regarding factory markings means that the mobile country code, mobile network code, and IC card identification code match, but the factory markings do not match. The sub-priority of access point information with matching factory markings is higher than the sub-priority of access point information with mismatched factory markings.

[0066] The above solution can achieve fuzzy matching and priority determination of the factory-preset subset of access points.

[0067] In some embodiments, any two of the second, third, fourth, fifth, and sixth priorities determined above can be interchanged according to actual needs. For example, unlike S12131-S12134, in response to the existence of a second type of match, the priority of the access point information is determined to be the third priority; in response to the existence of a second type of match, the priority of the access point information is determined to be the third priority. That is, the third priority and the fifth priority are interchanged.

[0068] Understandably, in determining whether there are matches of the first, second, and third types, it is necessary to determine whether there are matches of the mobile country code and mobile network code.

[0069] In some embodiments, determining whether there is a match regarding the mobile country code and mobile network code includes: parsing the access point information file to obtain the mobile country code and mobile network code for each access point information in the factory-preset access point subset; and determining that there is a match regarding the mobile country code and mobile network code in response to a match between the parsed mobile country code and mobile network code and the first identity identifier.

[0070] In some embodiments, the file names of each access point information entry in the factory-preset access point subset include mobile country codes. Based on this, determining whether a match exists regarding the mobile country code and mobile network code includes: extracting the mobile country code from the file names of the access point information entries in the factory-preset access point subset; parsing the access point information file to obtain the mobile network code in response to whether the extracted mobile country code matches a first identity identifier; and determining that a match exists regarding the mobile country code and mobile network code in response to whether the parsed mobile network code matches the first identity identifier.

[0071] Specifically, whether the extracted mobile country code matches the first identity identifier means that the extracted mobile country code matches the mobile country code in the first identity identifier. Whether the parsed mobile network code matches the first identity identifier means that the parsed mobile network code matches the mobile network code in the first identity identifier.

[0072] Among these features, the file name for access point information can be set to a specific location, such as the mobile country code.

[0073] In some embodiments, access point information for different mobile country codes within the factory-configured subset of access points is stored in the same file, and the file name includes the mobile country code. For example, the file storing access point information for different mobile country codes is named "lte_APNs_**", where "**" represents the mobile country code.

[0074] In some embodiments, the access point information in the factory-configured access point subset is stored in different files, and the file name includes the mobile country code and a unique identifier for each access point information.

[0075] In some embodiments, a structure can be obtained by parsing the access point information file, a second identity identifier can be extracted from the structure, and a mobile network code can be extracted from the second identity identifier.

[0076] The above scheme sets the mobile country code in the file name of the access point information. During matching, the mobile country code is first matched based on the file name. If the mobile country code matches, the mobile network code is then matched based on the file itself. Since file parsing is only required for matching based on the file itself, invalid file parsing in cases of mobile country code mismatch is avoided, reducing computational overhead, improving selection efficiency, and thus improving network registration efficiency.

[0077] In some embodiments, S122 includes: traversing each access point information of each priority in descending order of priority, and attempting to register the network using the access point information traversed each time, until the network registration is successful or all access point information of each priority has been traversed.

[0078] In some embodiments, a logical bit table can be introduced to traverse the access point information for each priority level. Access point information for each priority level is filled into the corresponding logical bit range in the logical bit table according to priority order, where higher priority corresponds to lower logical bits in the corresponding logical bit range. The logical bit table is traversed in ascending order of logical bits, and the access point information (if any) of each traversed logical bit is used to attempt network registration until network registration is successful or all logical bits have been traversed.

[0079] In some embodiments, to improve the traversal speed of the logical bit table, a state bitmap can be introduced to represent the state of each logical bit in the logical bit table. Each logical bit has a corresponding state bit in the state bitmap. When a logical bit is filled with access point information or has not been traversed / selected, the corresponding state bit is of the optional type, representing the logical bit's state as optional. When a logical bit is not filled with access point information or has been traversed / selected, the corresponding state bit is of the non-optional type, representing the logical bit's state as non-optional. Thus, during the traversal process, the state bitmap clearly shows which logical bits do not need to be traversed (non-optional state) and which logical bits still need to be traversed (optional state), avoiding invalid traversal of non-optional logical bits, improving traversal speed, and thereby improving selection efficiency and network registration efficiency.

[0080] The following is an example of incorporating both a logical bit table and a state bit map: Figure 2 This is a flowchart illustrating another embodiment of the user equipment network registration method provided in this application. Figure 2 As shown, this embodiment includes S1221-S1223 before S122. Therefore, S122 includes S1224-S1226. Specifically: S1221: For each priority level, determine the corresponding logical bit range in the logical bit table.

[0081] The higher the priority, the lower the number of logical bits in the logical bit range.

[0082] The number of logical bits in the logical bit table is equal to the maximum number of access point information entries contained in the access point set. For example, if the access point set contains a maximum of 20 access point information entries, the logical bit table contains 20 logical bits (logical bits 0-19).

[0083] The logical bit table contains logical intervals corresponding to each priority level. The number of logical bits in each logical interval equals the number of access point information entries for that priority level. For example, if the first, second, and third priorities each have one access point information entry, then the logical bit intervals for the first, second, and third priorities are logical bit 0, logical bit 1, and logical bit 2, respectively. The fourth priority has n access point information entries, corresponding to logical bit intervals from logical bit 3 to 3+n. The fifth priority has m access point information entries, corresponding to logical bit intervals from logical bit 3+n+1 to 3+n+m. The sixth priority has p access point information entries, corresponding to logical bit intervals from logical bit 3+n+m+1 to 3+n+m+p, or logical bit intervals from logical bit 19 to 19-p.

[0084] S1222: Fill the access point information of each priority into different logical bits of the logical bit range.

[0085] In some embodiments, the access point information itself may be filled into logical bits.

[0086] In some embodiments, the file path of the access point information can be filled into the logical bits. The file path points to the location of the access point information file in the storage space. When attempting to register a network, the access point information itself in the storage space can be located through the file path.

[0087] S1223: Change the corresponding state bit in the state bit diagram of different logical bits in the logical bit range from non-selectable to selectable.

[0088] In the state bitmap (APN_select_bit), the number of state bits is greater than or equal to the number of logical bits in the logical bit table, and each logical bit has a corresponding state bit in the state bitmap. For example, the state bitmap contains 32 state bits, and the 20 logical bits in the logical bit table correspond one-to-one with the first 20 state bits. State bits are used to represent the state of a logical bit. When a state bit is of optional type, it means it is in an optional state; when a state bit is of non-optional type, it means it is in a non-optional state. The value of an optional state bit can be "1", and the value of a non-optional state bit can be "0". Of course, the values ​​of optional and non-optional state bits can also be interchanged.

[0089] Each logical bit's corresponding status bit is initially unselectable. After access point information is entered into the logical bit, the corresponding status bit changes from unselectable to selectable. For example, if the initial value of the status bit corresponding to a logical bit is "0", after priority is entered, the value of the corresponding status bit changes to "1". This ensures that the logical bit is selectable when access point information is entered, facilitating subsequent selection.

[0090] The state bitmap can be a single unsigned integer (e.g., 32 bits), multiple unsigned integers (e.g., more than 32 bits), or a byte array. With multiple unsigned integers or byte arrays, the state bitmap can represent the state of more access point information.

[0091] Understandably, using a state bitmap to represent the state of each logical bit in the logical bit table requires less memory and has low complexity for querying and updating the state of logical bits. For example, a bitmap of only 4 bytes can store the current state of 20 access point information entries, with a query and update time complexity of O(1).

[0092] S1224: Determine whether there are optional logical bits in the logical bit table.

[0093] Optional logical bits are logical bits whose corresponding status bits are optional.

[0094] If an optional logical bit is present, execute S1225; if no optional logical bit is present, terminate.

[0095] S1225: Determine the lowest logic bit from the optional logic bits, attempt to register the network using the access point information of the lowest logic bit, and modify the status bit corresponding to the lowest logic bit to a non-optional type.

[0096] If the lowest logical bit is filled with access point information but has already been selected, the corresponding status bit is modified to an optional type to indicate that the logical bit has become unselectable, thereby preventing the logical bit that has already been selected from being selected invalidally in the future.

[0097] S1226: Determine whether the network registration was successful.

[0098] If the registration is successful, the process ends; if the registration fails, the process returns to S1224.

[0099] The above solution, by introducing an associated logical bit table and a status bit map, can traverse the information of each access point at each priority level, and can fundamentally avoid invalid selections of logical bits that have not been filled in or have already been selected, quickly locate the lowest logical bit, and improve network registration efficiency.

[0100] In some embodiments, after S1225, the method further includes: updating the connection logic bit using the lowest logic bit; in response to successful network registration, adding the International Mobile Subscriber Identity (IMSI) contained in the first identity identifier to the second identity identifier supported by the access point information of the connection logic bit, and updating the access point subset of historical connections using the access point information of the connection logic bit.

[0101] In some embodiments, the access point subset of historical secondary connections follows a first-in, first-out (FIFO) principle. That is, the access point subset of historical secondary connections includes a maximum of a specified number of access point information entries. If adding a new access point entry causes the number of access point information entries in the historical secondary connection subset to exceed the specified number, the earliest access point information entry is deleted. Based on this, updating the access point subset of historical secondary connections using access point information with connection logic bits includes: determining whether access point information with connection logic bits already exists in the historical secondary connection subset; in response to the existence of access point information with connection logic bits, not performing an update operation; in response to the absence of access point information with connection logic bits, adding the access point information with connection logic bits as the access point information of the most recent connection to the historical secondary connection subset, and deleting the earliest access point information entry in the historical secondary connection subset.

[0102] In some embodiments, the access point information in the historical secondary connection access point subset is arranged sequentially according to the order in which the network was successfully registered and used, and the arrangement order determines the traversal order / priority determination order. The historical secondary connection access point subset follows the first-in-first-out principle, the first-insert principle, and the dynamic forward-shift principle. Based on this, updating the historical secondary connection access point subset using the access point information of the connection logical bit includes: determining whether the access point information of the connection logical bit already exists in the historical secondary connection access point subset; in response to the existence of the access point information of the connection logical bit, and the access point information of the connection logical bit is at the first position, no update operation is performed; in response to the existence of the access point information of the connection logical bit, but the access point information of the connection logical bit is not at the first position, the access point information of the connection logical bit is moved to the first position; in response to the absence of the access point information of the connection logical bit, the access point information of the connection logical bit is inserted as the new access point information at the first position, before the old access point information at the first position, and if the number of access point information in the historical access point subset exceeds a specified number, the access point information at the last position is deleted.

[0103] Before a least significant logical bit is selected, the connection bit (conn_No) is an invalid bit, as it is not part of the bit table. Each time a new least significant logical bit is selected, the connection bit is updated accordingly. For example, if the connection bit is -1 before a least significant logical bit is selected, and then "0" is selected, the connection bit is updated from -1 to 0; and if "0" is selected, the connection bit is updated from 0 to 1.

[0104] The above scheme, by connecting logical bits, enables dynamic tracking of the latest selected logical bit. This facilitates locating the logical bit used for successful network registration and dynamically updating the access point subset of historical connections using the access point information of the logical bit used for successful registration. This increases the probability that the current identity module will be prioritized for subsequent network registration needs, improving the efficiency of subsequent network registrations. Furthermore, adding the International Mobile Subscriber Identity (IMSI) included in the first identity identifier to the second identity identifier supported by the logical bit used for successful network registration allows the current identity module to quickly and accurately match the IMSI during subsequent network registrations, improving the registration speed.

[0105] In some embodiments, S120 includes: parsing the selected access point information to obtain a structure; extracting the PDP context from the structure; and attempting to register a network based on the PDP context.

[0106] In some embodiments, a subset of access points from historical secondary connections can be read from storage first. It can then be determined whether access point information of a first priority exists within this subset. If the first priority access point information exists, access point subsets from other sources are not read. If the first priority access point information does not exist, access point subsets from other sources are read, and other priorities are determined. This approach maximizes the network registration success rate while reducing unnecessary computational overhead.

[0107] In some embodiments, after S120, the process includes: reporting the access point information used for successful network registration to the access point information management server. For example, if the source of the access point information used for successful network registration is user-defined, it needs to be reported to the access point information management server. Conversely, if the source of the access point information used for successful network registration is factory-preset, it does not need to be reported to the access point information management server.

[0108] To facilitate understanding, the user equipment network registration method provided in this application will be explained below with a specific example.

[0109] 1. A set of access points pre-stored in flash memory.

[0110] The access point set includes at least one of the following: a user-defined access point subset, a historical access point subset (connected_APN file), and a factory-preset access point subset. User-defined access point information includes access point information received via QR code scanning or Bluetooth (tmp_custom_APN file) and access point information read from the SD card (sd_custom_APN file). The historical access point subset includes access point information from the last 5 connections. If the current SIM card has no historical connections, the historical access point subset is empty.

[0111] Access point information may include a secondary identity identifier, APN, etc. The secondary identity identifier in access point information from various sources includes MCC and MNC. The secondary identity identifier in access point information from historical connections may include IMSI. In some access point information, the secondary identity identifier may include the virtual operator identifier and factory. The virtual operator identifier includes ICCID, or mvno_type and mvno_match_data.

[0112] In this pre-configured set of access points, information on different access points supporting the same mobile country code is stored in the same file, and the file name includes the supported mobile country code. For example, the file supporting mobile country code 410 is named lte_APNs_410. An example of the data format for lte_APNs_410 is as follows: {"APNs": {"APN":[{"-MCC":"410","-MNC":"01","-APN":"Jazz"},{"-MCC":"410","-MNC":"01","-APN":"connect.mobilinkworld.com","-user":"Mobilink","-pwd":"Mobilink"},{" -MCC":"410","-MNC":"07","-APN":"Wap.warid","priority":1},{"-MCC":"410","-MN C":"310","-APN":"att.mvno","-mvno_type":"GID","-mvno_match_data":"2AC9"}]}} As shown in the example above, lte_APNs_410 contains four access point information entries. The first entry includes MCC, MNC, and APN; the second entry includes MCC, MNC, APN, and user; the third entry includes MCC, MNC, and APN; and the fourth entry includes MCC, MNC, APN, mvno_type, and mvno_match_data.

[0113] 2. Obtain the logic bit table and state bit map.

[0114] Figure 3 This is a flowchart illustrating a specific example of the user equipment network registration method provided in this application. For example... Figure 3 As shown, the process of obtaining the logic bit table and state bit map is as follows: (i) If the subset of access points for historical sub-connections is not empty, perform exact matching; otherwise, proceed to (ii) and (iii).

[0115] The process for exact matching is as follows: 1. Obtain the primary identity identifier of the current SIM card.

[0116] Read the first identity identifier from the current SIM card. The first identity identifier includes the International Mobile Subscriber Identity (IMSI).

[0117] 2. Read the set of access points for historical secondary connections from flash memory.

[0118] 3. Parse the access point subset of historical sub-connections to obtain the structure of access point information for each historical sub-connection.

[0119] 4. Extract the second identity identifier from the access point information structure of each historical sub-connection.

[0120] 5. From the extracted second identity identifiers, determine if there exists a second identity identifier whose IMSI matches the first identity identifier. If it exists, proceed to step 6. If it does not exist, perform a fuzzy match.

[0121] 6. Use the access point information that matches the IMSI with the first identity identifier as the access point information with the first priority, fill the access point information with the first priority logical bit in the logical bit table (such as logical bit 0), and modify the corresponding status bit in the status bit diagram (such as status bit 0) to optional type.

[0122] (ii) Determine each access point information in the user-defined access point subset as the second priority access point information, fill the second priority access point information into the logical bit corresponding to the second priority in the logical bit table (such as logical bit 1), and modify the corresponding state bit in the state bit diagram (such as state bit 1) to optional type.

[0123] (ii) Perform fuzzy matching.

[0124] 1. If the subset of access points for historical secondary connections is not empty, perform a fuzzy match on the subset of access points for historical secondary connections. Specifically: For each access point information in the access point subset of historical sub-connections, the access point information is parsed to obtain a structure, the second identity identifier is extracted from the structure, and it is determined whether there is a match between the second identity identifier and the first identity identifier regarding MCC and MNC; in response to the existence of a match regarding MCC and MNC, the priority of the access point information is determined to be the fourth priority.

[0125] Fill the access point information of the fourth priority into the logical bit table corresponding to the fourth priority (such as logical bit 3 to 3+n), and modify the corresponding state bit in the state bit diagram (such as state bit 3 to 3+n) to optional type.

[0126] 2. If the factory-preset subset of access points is not empty, perform fuzzy matching on the factory-preset subset of access points. Specifically: First, perform matching for MCC, MCC. Specifically: For each file in the factory-preset subset of access points, the MCC is extracted from the file name, and it is determined whether the MCC matches the first identity identifier. In response to a match with the first identity identifier, the corresponding structure is obtained by parsing each access point information entry in the file. The second identity identifier is extracted from each structure, and it is determined whether the MCC in each second identity identifier matches the second identity identifier. Below is an example of the structure (struct apn_info) for the fourth access point information entry in lte_APNs_410:

[0127] Secondly, for the pre-configured subset of access points, if there are matching MCCs, the system performs a matching based on the virtual operator identifier and priority, and determines the priority. Specifically: Determine whether the second identity identifier supported by the access point information matches the first identity identifier in one of the following three ways: first type, second type, or third type. The first type of match is a match about MCC, MNC, and virtual operator identifier (mvno_type, mvno_match_data); the second type of match is a match about MCC and MNC and the second identity identifier contains priority; the third type of match is a match about MCC and MNC and the second identity identifier does not contain priority.

[0128] In response to the existence of a first-type match, the access point information is determined to have a third priority. The access point information of the third priority is filled into the logical bit corresponding to the third priority in the logical bit table (e.g., logical bit 2), and the corresponding state bit in the state bit diagram (e.g., state bit 2) is modified to an optional type.

[0129] In response to the existence of a second type of match, the access point information is determined to have the fifth priority. The access point information of the fifth priority is filled into the logical bits corresponding to the fifth priority in the logical bit table (such as logical bits 3+n+1 to 3+n+m), and the corresponding state bits in the state bit diagram (such as state bits 3+n+1 to 3+n+m) are modified to optional type.

[0130] In response to the existence of a third type of match, the access point information is determined to have the sixth priority. The access point information of the sixth priority is filled into the logical bits corresponding to the sixth priority in the logical bit table (such as logical bits 3+n+m+1 to 3+n+m+p), and the corresponding state bits in the state bit diagram (such as state bits 3+n+m+1 to 3+n+m+p) are modified to optional type.

[0131] Table 1 below is an example of a logical bit table:

[0132] In Example 1 above, the logical bit table is filled with the access point information itself.

[0133] Example 2 of the logical bit table is shown in Table 2 below.

[0134]

[0135] In Example 2 above, the logical bit table is filled with the file path of the access point information.

[0136] If access point information with the highest priority exists, an example of a status bitmap would be 100000000000000000000. In this example, the status bitmap contains status bits 0-19, where only status bit 0 has a value of 1, indicating it is an optional type.

[0137] If there is no first-priority access point information, the example of the status bitmap is 01010110000000000000. In this example, the status bitmap contains status bits 0-19, where the values ​​of status bits 2, 4, and 6-7 are 1, indicating that they are optional.

[0138] 3. Select access point information to register the network.

[0139] 1. Determine if an optional logical bit exists in the logical bit table. An optional logical bit is a logical bit whose corresponding status bit is optional. If an optional logical bit exists, proceed to step 2.

[0140] 2. Determine the least significant logical bit from the available logical bits.

[0141] 3. Attempt to register a network using the access point information of the lowest logical bit, update the connection logical bit using the lowest logical bit, and modify the status bit corresponding to the lowest logical bit to an unselectable type.

[0142] 4. Determine if the registration was successful. If registration failed, return 1; if registration was successful, proceed to step 5.

[0143] 5. Add the IMSI from the first identity identifier to the second identity identifier contained in the access point information of the connection logical bit, add the access point information of the connection logical bit as the access point information of the most recent connection to the access point subset of the historical sub-connections, and delete the access point information that was added earliest in the access point subset of the historical sub-connections.

[0144] IV. Information Reporting.

[0145] The access point information for successful network registration is reported to the access point information management server.

[0146] Figure 4 This is a schematic diagram of the structure of an embodiment of the user equipment provided in this application. Figure 4 As shown, the user equipment includes at least one identity module (not shown), a reading module, and a selection module. The reading module is used to read an access point set from storage space when there is a network registration requirement. The access point set includes several access point subsets from different sources, and each access point subset includes several access point information entries. The selection module is used to select an access point from the access point set that matches the current identity module for network registration. The current identity module is the identity module used by the user equipment.

[0147] For further detailed descriptions of the user equipment, please refer to other embodiments, which will not be repeated here.

[0148] Figure 5 This is a schematic diagram of another embodiment of the user equipment provided in this application. Figure 5 As shown, user equipment 50 includes a memory 51 and a processor 52. The processor 52 is used to execute program instructions stored in the memory 51 to implement the steps in any of the above method embodiments. In a specific implementation scenario, user equipment 50 may include, but is not limited to, a microcomputer or a server. In addition, user equipment 50 may also include a laptop computer, tablet computer, or other carrier device, which is not limited here.

[0149] Specifically, processor 52 controls itself and memory 51 to implement the steps in any of the above method embodiments. Processor 52 may also be referred to as a CPU (Central Processing Unit). Processor 52 may be an integrated circuit chip with signal processing capabilities. Processor 52 may also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. A general-purpose processor may be a microprocessor or any conventional processor. Furthermore, processor 52 may be implemented using integrated circuit chips.

[0150] Please see Figure 6 , Figure 6 This is a schematic diagram of a computer-readable storage medium according to an embodiment of the present application. The computer-readable storage medium 60 stores program instructions 601 thereon, which, when executed by a processor, implement the steps in any of the above method embodiments.

[0151] This application also provides a computer program product comprising a computer program that, when executed by a processor, can implement the steps of the methods described in any of the foregoing embodiments. Specifically, the computer program product can be a software or program product containing a computer program, capable of running on a computing device or stored on any available medium.

[0152] In some embodiments, the functions or modules of the apparatus provided in this disclosure can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0153] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.

[0154] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. In another image location, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0155] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A user-set-up method for networking, characterized by, The user equipment has at least one built-in identity module, including: When there is a need for network registration, the access point set is read from the storage space. The access point set includes several access point subsets from various sources, and each access point subset includes several access point information entries. Select an access point from the set of access points that matches the current identity module for network registration. The current identity module is the identity module used by the user equipment.

2. The method according to claim 1, characterized in that, The current identity module has a first identity identifier, and each piece of access point information contains a supported second identity identifier. The step of selecting an access point from the access point set that matches the current identity module for network registration includes: Based on the degree of matching between the supported second identity and the first identity, the priority of at least some access point information is determined; In descending order of priority, network registration is attempted using each of the access point information entries in the at least partial access point information until network registration is successful or all of the at least partial access point information has been traversed.

3. The method of claim 2, wherein, The source includes at least one of historical secondary connections, user-defined, and factory presets. The second identity identifier supported by the access point information of each source includes at least the mobile country code and the mobile network code. The second identity identifier supported by the access point information of the historical secondary connection includes the International Mobile Subscriber Identity (IMSI). The step of determining the priority of at least some access point information based on the degree of matching between the supported second identity and the first identity includes: Determine whether there is access point information in the subset of access points of the historical sub-connections that has a matching degree of exact match, wherein the exact match is a match with respect to the International Mobile Subscriber Identity (IMSI); In response to the existence of access point information with a matching degree of exact match, the access point information with a matching degree of exact match is determined as the access point information with the first priority. In response to the absence of access point information with an exact match, each access point information in the user-defined access point subset is determined to be access point information with a second priority, and / or, from the historical connection and the factory-preset access point subset, at least one of the access point information with a fuzzy match, namely, a third priority, a fourth priority, a fifth priority, and a sixth priority, wherein the fuzzy match is at least a match regarding the mobile country code and the mobile network code; The priority levels of the first priority, second priority, third priority, fourth priority, fifth priority, and sixth priority decrease sequentially.

4. The method of claim 3, wherein, Determining whether there is access point information with a matching degree of exact match in the subset of access points of the historical sub-connections includes: For each access point information in the access point subset of the historical sub-connections, determine whether there is a match between the second identity identifier supported by the access point information and the first identity identifier regarding the International Mobile Subscriber Identity (IMSI). In response to the existence of a match for the International Mobile Subscriber Identity (IMSI), it is determined that there is access point information with a matching degree of exact match, and the matching degree of the access point information with respect to the IMSI is determined to be an exact match; In response to the absence of a match for the International Mobile Subscriber Identity (IMSI), it is determined that there is no access point information with a matching degree of exact match.

5. The method of claim 3, wherein, Determining at least one of the access point information with a matching degree of fuzzy matching, namely the third priority, fourth priority, fifth priority, and sixth priority, from the subset of historical secondary connections and factory-preset access points includes at least one of the following steps: For each piece of access point information in the subset of access points for the historical sub-connections, determine whether there is a match between the second identity identifier supported by the access point information and the first identity identifier regarding the mobile country code and the mobile network code; In response to the existence of a match regarding the mobile country code and the mobile network code, the priority of the access point information is determined to be the fourth priority; For each piece of access point information in the factory-preset access point subset, determine whether the second identity identifier supported by the access point information matches the first identity identifier in one of three ways: a first type of match, a second type of match, or a third type of match. The first type of match is a match about the mobile country code, the mobile network code, and the virtual operator identifier. The second type of match is a match about the mobile country code and the mobile network code, and the second identity identifier contains a priority identifier. The third type of match is a match about the mobile country code and the mobile network code, and the second identity identifier does not contain the priority identifier. In response to the existence of the first type of match, the priority of the access point information is determined to be the third priority; In response to the existence of a second type of match, the priority of the access point information is determined to be the fifth priority; In response to the existence of the third type of match, the priority of the access point information is determined to be the sixth priority.

6. The method of claim 5, wherein, The file names of each access point information entry in the factory-preset access point subset include the mobile country code; Determining whether there is a match for the mobile country code and the mobile network code includes: For each piece of access point information in the factory-preset subset of access points, the mobile country code is extracted from the file name of the access point information; In response to whether the extracted country code matches the first identity identifier, the access point information file is parsed to obtain the mobile network code; in response to whether the parsed mobile network code matches the first identity identifier, it is determined that there is a match between the country code and the mobile network code.

7. The method of claim 2, wherein, The method further includes: For each priority, the corresponding logical bit range in the logical bit table is determined, wherein the higher the priority, the lower the logical bit range. The access point information of each priority level is filled into different logical bits of the logical bit range; The state bits corresponding to the different logic bits of the aforementioned logic bit range in the state bit diagram are changed from non-selectable to selectable. The step of attempting to register a network using each entry of the access point information in the at least partial access point information in descending order of priority, until the network registration is successful or all of the at least partial access point information has been traversed, includes: Determine whether there are optional logical bits in the logical bit table, wherein the optional logical bit is the logical bit whose corresponding status bit is optional; In response to the existence of the optional logical bits, the lowest logical bit is determined from the optional logical bits, and the access point information of the lowest logical bit is used to attempt to register the network, and the status bit corresponding to the lowest logical bit is modified to a non-selectable type; In response to a network registration failure, repeat the above steps until the network registration is successful or the optional logical bit does not exist.

8. The method of claim 7, wherein, After attempting to register a network using the access point information of the least logical bit, the process further includes: Update the connection logic bits using the least significant logic bit; In response to successful network registration, the International Mobile Subscriber Identity (IMSI) contained in the first identity identifier is added to the second identity identifier supported by the access point information of the connection logical bit, and the access point subset of the historical sub-connections is updated using the access point information of the connection logical bit.

9. A user equipment, comprising: It includes a memory and a processor, the processor being configured to execute program instructions stored in the memory to implement the method of any one of claims 1 to 8.

10. A computer-readable storage medium / program product, characterized in that, It stores program instructions / computer programs that, when executed by a processor, implement the method of any one of claims 1 to 8.