Network registration method and device, terminal and storage medium
By dynamically capturing the network status and registering on the 4G/3G/2G network after 5G network registration fails, the problem of 5G registration anomalies is resolved, achieving more efficient network registration and business continuity.
Patent Information
- Application Number
- CN202510784072.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-11
- Publication Date
- 2025-09-16
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In an environment where multiple generations of networks coexist, 5G registration anomalies often occur when user devices switch SIM cards between 4G and 5G devices, resulting in users being unable to obtain 5G services in a timely manner and affecting usage efficiency.
By responding to the rejection response of the first-standard network, registering the second-standard network, and actively obtaining the network status information of the first-standard network through the second-standard network, dynamically capturing its ready time, and promptly initiating the registration request again.
It improves the registration success rate of the first-standard network, avoids service interruption, reduces the signaling load on the network side, optimizes the collaborative efficiency between the terminal and the network, and improves the efficiency of human-computer interaction.
Smart Images

Figure CN120659140A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a method, device, terminal, and storage medium for registering a network. Background Art
[0002] With the rapid development of 5G communication technology, more and more operators have deployed 5G networks. Currently, 5G network deployment is still in its early stages and will need to coexist with 4G, 3G, and 2G networks for a long time. This has led to frequent compatibility issues with multi-generational networks. For example, when users switch SIM (Subscriber Identity Module) cards between 4G and 5G devices, 5G registration anomalies are common, significantly impacting the user experience and becoming a problem that needs to be addressed.
[0003] Currently, to address this issue, a timer is typically set on the phone. This timer triggers the phone to initiate 5G registration at regular intervals. However, if the timer hasn't expired when the 5G network returns to normal, the phone won't initiate 5G registration. This prevents the phone from accessing 5G services in a timely manner, impacting user access to 5G network services and reducing user-computer interaction efficiency. Summary of the Invention
[0004] The embodiments of the present application provide a method, apparatus, terminal, and storage medium for network registration. Compared to existing solutions that rely on a passive waiting mode of periodic synchronization, this method can dynamically capture the readiness timing of a first-standard network, allowing a terminal to register with the first-standard network in a timely manner, thereby improving the registration success rate of the first-standard network. The technical solution is as follows:
[0005] According to one aspect of an embodiment of the present application, a method for registering a network is provided, the method being used by a terminal, the method comprising:
[0006] In response to receiving a rejection response when registering the first-standard network, registering the second-standard network, the rejection response is used to indicate that the terminal is not allowed to register the first-standard network, and the first-standard network is evolved from the second-standard network;
[0007] Acquire network status information of the first-standard network through the second-standard network, where the network status information is used to indicate the network status of the first-standard network;
[0008] When the network status information indicates that the network status of the first-standard network is available, a request for registering with the first-standard network is initiated again.
[0009] According to another aspect of an embodiment of the present application, a device for registering a network is provided, the device including:
[0010] a registration module, configured to register a second-standard network in response to receiving a rejection response when registering the first-standard network, wherein the rejection response is used to indicate that the terminal is not allowed to register the first-standard network, and the first-standard network is evolved from the second-standard network;
[0011] an acquisition module, configured to acquire network status information of the first-standard network through the second-standard network, wherein the network status information is used to indicate the network status of the first-standard network;
[0012] The request module is configured to initiate a request for registering with the first-standard network again when the network status information indicates that the network status of the second-standard network is available.
[0013] In some embodiments, the acquisition module is used to subscribe to the status change event of the first-standard network through the second-standard network when registering the second-standard network; receive the network status information of the first-standard network forwarded by the second-standard network, and the network status information is sent by the first-standard network to the second-standard network based on the status change event, and the status change event is an event in which the network status of the first-standard network changes; or, after registering the second-standard network, subscribe to the status change event of the first-standard network through the second-standard network; receive the network status information of the first-standard network forwarded by the second-standard network, and the network status information is sent by the first-standard network to the second-standard network based on the status change event.
[0014] In some embodiments, the acquisition module is used to send an attachment request message to the second-standard network when registering the second-standard network, and the attachment request message includes a first field. When the value of the first field is a first value, it indicates that the second-standard network subscribes to the status change event of the first-standard network; when the value of the target field is a second value, it indicates that the second-standard network does not subscribe to the status change event of the first-standard network.
[0015] In some embodiments, the acquisition module is configured to send a network subscription request to the second-standard network after registering the second-standard network, wherein the network subscription request is configured to request the second-standard network to subscribe to the state change event of the first-standard network.
[0016] In some embodiments, the acquisition module is used to send the network subscription request to the second-standard network after registering the second-standard network and when the network subscription conditions are met, the network subscription conditions include at least one of fluctuations in the second-standard network and the need to use the first-standard network.
[0017] In some embodiments, the acquisition module is used to send a data acquisition request carrying a second field through the second network in response to a data acquisition operation after registering with the second network. When the value of the second field is a third value, it indicates that the second network subscribes to the status change event of the first network. When the value of the second field is a fourth value, it indicates that the second network does not subscribe to the status change event of the first network. The data acquisition request is used to obtain the data indicated by the data acquisition operation.
[0018] In some embodiments, the network status information includes a detach type value and an EMM cause value, the detach type value is used to indicate whether the terminal re-registers the first-standard network, and the EMM cause value is used to indicate whether the network status of the first-standard network is available;
[0019] The acquisition module is configured to acquire a detach request message returned by the second-standard network; and extract a value of the detach type and a value of the EMM cause from the detach request message.
[0020] The request module is configured to re-initiate a request to register with the first-standard network when the value of the detachment type indicates re-registration and the value of the EMM cause indicates that the network status of the first-standard network is available.
[0021] In some embodiments, the acquisition module is further configured to, in response to switching from the second-standard network to a third-standard network, acquire network status information of the first-standard network through the third-standard network, where the first-standard network is evolved from the third-standard network.
[0022] In some embodiments, the first-standard network is a 5G network, and the second-standard network is any one of a 4G network, a 3G network, and a 2G network.
[0023] In some embodiments, the first-standard network is a 5G network, and the rejection response is used to indicate that the terminal is not allowed to access the 5G network through the N1 mode.
[0024] According to another aspect of an embodiment of the present application, a terminal is provided, comprising a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the method for registering a network as described in the above aspect.
[0025] According to another aspect of an embodiment of the present application, a chip is provided, which includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal, it is used to implement the method for registering a network as described in the above aspect.
[0026] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the storage medium stores at least one program code, and the at least one program code is configured to be executed by a processor to implement the method for registering a network as described in the above aspect.
[0027] According to another aspect of an embodiment of the present application, a computer program product is provided. The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the method for registering a network described in the above aspect.
[0028] The embodiment of the present application provides a network registration solution. Compared with the existing solution that relies on a passive waiting mode of periodic synchronization, it can dynamically capture the readiness timing of the first-standard network, so that the terminal can register with the first-standard network in a timely manner, thereby improving the registration success rate of the first-standard network. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0030] Figure 1 This is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0031] Figure 2 This is a flowchart of a method for registering a network provided by an embodiment of the present application;
[0032] Figure 3 is a flowchart of another method for registering a network provided by an embodiment of the present application;
[0033] Figure 4 is a flowchart of another method for registering a network provided by an embodiment of the present application;
[0034] Figure 5This is a schematic diagram of the structure of a device for registering a network provided in an embodiment of the present application;
[0035] Figure 6 It is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0037] As used herein, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates an "or" relationship between the associated objects.
[0038] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0039] Figure 1 This is a schematic diagram of an implementation environment provided by an embodiment of the present application. Figure 1 , the implementation environment includes a terminal 101 and a network device 102.
[0040] In some embodiments, the terminal 101 may be a smart phone, a laptop computer, a tablet computer, or other types of terminals.
[0041] In some embodiments, the network device 102 is a device that provides wireless communication services to the terminal 101. The network device 102 may include various forms of macro base stations, micro base stations, relay stations, access points, and the like. In systems using different wireless access technologies, the names of devices with base station functions may be different. For example, in a 5G wireless air interface technology (New Radio, NR) system, it is called a 5G base station (gNodeB or gNB). With the evolution of communication technology, the name "base station" may change. For the convenience of description, in the embodiments of the present application, the above-mentioned devices that provide wireless communication services to the terminal 101 are collectively referred to as network devices 102.
[0042] Figure 2 This is a flow chart of a method for registering a network provided by an embodiment of the present application. The method is executed by a terminal, see Figure 2 , the method comprising:
[0043] 201. In response to receiving a rejection response when registering a first-standard network, register a second-standard network.
[0044] In an embodiment of the present application, when a terminal (such as a mobile phone) attempts to connect to a network, it will undergo a series of interactions with the network to complete operations such as identity authentication and obtaining network configuration information. This process is the network registration process. If the terminal registration fails, a rejection response will be received. For ease of description, the network on which the terminal registration fails is referred to as the first-standard network, and the rejection response is used to indicate that the terminal is not allowed to register with the first-standard network. Correspondingly, the network on which the terminal registers again after failing to register with the first-standard network is referred to as the second-standard network. The first-standard network is evolved from the second-standard network.
[0045] 202. Obtain network status information of the first-standard network through the second-standard network, where the network status information is used to indicate the network status of the first-standard network.
[0046] In the embodiment of the present application, since the terminal is rejected when requesting to access the first-standard network, the terminal can indirectly obtain the network status of the first-standard network through the second-standard network.
[0047] For example, under the NSA (non-standalone networking) architecture, the 4G base station will query the status of the 5G base station through the X2 interface and feedback to the terminal to support dynamic switching or energy-saving control.
[0048] 203. When the network status information indicates that the network status of the first-standard network is available, initiate a request to register with the first-standard network again.
[0049] In an embodiment of the present application, when the network status information returned by the second-standard network to the terminal indicates that the network status of the first-standard network is in an available state, it indicates that the conditions for re-registering with the first-standard network are met. The fact that the network status of the first-standard network is in an available state indicates that the first-standard network is capable of providing services to the terminal under the current environment, for example, the base station signal strength is sufficient, the network resources are sufficient, and the SIM card permissions of the device allow access to the first-standard network.
[0050] The embodiment of the present application provides a solution for network registration. By registering for a second-standard network in response to a rejection of registration for a first-standard network, the user is ensured to maintain basic communication functions through traditional cellular networks such as the second-standard network while waiting for the first-standard network to recover, thereby avoiding service interruption caused by failure to register for the first-standard network and ensuring business continuity. By actively subscribing to the status of the first-standard network through the second-standard network, compared with the passive waiting mode that relies on periodic synchronization in the existing solution, the readiness time of the first-standard network can be dynamically captured, significantly shortening the user waiting time, avoiding multiple invalid signaling interactions caused by state asynchrony in the traditional solution, improving the registration success rate of the first-standard network, and reducing the signaling load on the network side, optimizing the collaborative efficiency between the terminal and the network, and improving the efficiency of human-computer interaction.
[0051] Figure 2 This is the basic process of the registration network solution provided by this application. The following is a further explanation of the registration network solution. Figure 3 As shown, Figure 3 This is a flowchart of another method for registering a network provided by an embodiment of the present application, which is described by taking the first standard network as a 5G network and the second standard network as a traditional cellular network as an example. The method is executed by the terminal, such as Figure 3 , the method comprising:
[0052] 301. In response to receiving a rejection response when registering a first-standard network, the terminal registers a second-standard network.
[0053] In the embodiment of the present application, when a terminal (such as a mobile phone) attempts to connect to a 5G network, it will perform a series of interactions with the network to complete operations such as identity authentication and obtaining network configuration information. This process is the 5G network registration process. Only after successful registration can the terminal normally use the services provided by the 5G network.
[0054] When a terminal initiates a registration request to a 5G network, if the network cannot satisfy the terminal's registration request for some reason, it will return a rejection response to the terminal. This rejection response is used to indicate that the terminal is not allowed to register with the 5G network. In other words, the rejection response is a signal from the network to inform the device that the registration has failed.
[0055] In some embodiments, the rejection response is used to indicate that the terminal is not allowed to access the 5G network through the N1 mode.
[0056] N1 mode refers to the non-standalone (NSA) mode in 5G networks. In this mode, the 5G Radio Access Network (NR) relies on the existing 4G LTE EPC (Electronic Public Key Communication) for core functions such as control signaling and user authentication. If the network returns a "reject#27N1 mode not allowed" message to the terminal, it indicates that N1 mode is not permitted.
[0057] The reason for not allowing the N1 mode may be either of the following two reasons, or other reasons.
[0058] Reason 1: SIM card configuration issue. For example, the SIM card may not support the 5G SA network, or the operator has not yet included the SIM card in the list of available devices for the 5G core network, resulting in the device being unable to register with the 5G network in N1 mode.
[0059] Cause 2: Operator policy restrictions. For example, based on network planning, resource allocation, or other reasons, the operator has set access restrictions on specific terminals or SIM cards, prohibiting them from using N1 mode.
[0060] The following describes a traditional cellular network, also known as a second-standard network.
[0061] In the embodiments of this application, traditional cellular networks refer to cellular mobile communication networks before 5G, including 2G networks, 3G networks, and 4G networks. These networks differ from 5G networks in terms of technical architecture, transmission capabilities, and service characteristics. Among them, 2G networks mainly provide basic voice calls and text messaging services; 3G networks achieve high-speed data transmission compared to 2G networks, enabling the development of mobile Internet applications; and 4G networks further improve data transmission speeds and bandwidth, supporting applications with high bandwidth requirements such as high-definition video and online games.
[0062] When a terminal receives a rejection response indicating that the 5G network does not allow N1 mode, it can attempt to register with a traditional cellular network to continue using mobile communication network services. This ensures that the terminal can at least use basic communication functions provided by 4G, 3G, or 2G networks, such as voice calls, text messages, and lower-speed data transmission, and avoids completely losing network connectivity due to being unable to register with the 5G network.
[0063] The embodiment of the present application does not limit the manner in which the terminal registers with the traditional cellular network.
[0064] 302. The terminal subscribes to a state change event of the first-standard network through the second-standard network.
[0065] In the embodiment of the present application, taking the second standard network as a 4G network as an example, after the terminal successfully registers with the 4G network, it can subscribe to the 5G network status change event from the 4G network. The status change event is an event in which the network status of the first standard network changes. Subscription refers to the process in which the terminal requests and obtains information about the 5G network status from the core network using the relevant mechanisms and channels of the 4G network.
[0066] Optionally, the terminal and the 4G network follow specific communication protocols, such as the LTE protocol in the 4G network. Using these protocols, the terminal sends specific instructions or messages to the 4G network, indicating that it wishes to obtain 5G network status information. Upon receiving the request, the 4G network collects and organizes relevant 5G network status data based on the terminal's permissions and the actual conditions of the 4G network. The data is then returned to the terminal in the format and process specified by the protocol, enabling the terminal to obtain the 5G network status.
[0067] It should be noted that the timing for the terminal to subscribe to the status change event of the 5G network through the 4G network can be when registering the second-standard network or after registering the second-standard network. By subscribing to the status change event of the first-standard network when registering the second-standard network, on the one hand, the registration and subscription are merged into one signaling process, reducing the additional signaling interaction required for subsequent independent subscriptions, which can reduce the overall signaling overhead; on the other hand, such processing has high immediacy and is suitable for scenarios with high real-time requirements. By subscribing to the status change event of the first-standard network after registering the second-standard network, on the one hand, the terminal can dynamically trigger the subscription according to actual needs to avoid unnecessary network resource occupation; on the other hand, decentralized subscription can prevent a large number of terminals from initiating subscription requests at the time of registration, which may cause a core network signaling storm.
[0068] In some embodiments, if the terminal subscribes to the status change event of the first-standard network through the second-standard network when registering the second-standard network, the terminal can send an attachment request message to the second-standard network when registering the second-standard network. The attachment request message includes a first field. When the value of the first field is a first value, it indicates that the second-standard network subscribes to the status change event of the first-standard network. When the value of the target field is a second value, it indicates that the second-standard network does not subscribe to the status change event of the first-standard network.
[0069] For example, when a terminal registers for a 4G network, a new field, is_5G_available, is added to the ATTACH REQUEST message. This field is used to request the availability of the 5G network. Optionally, the first value is 1 and the second value is 0. A value of 1 for this field indicates that the terminal is subscribing to 5G network status change events, while a value of 0 indicates that the terminal is not subscribing to 5G network status change events. See Table 1 for an exemplary illustration of an Attach Request message.
[0070] Table 1
[0071]
[0072] In some embodiments, if the terminal subscribes to the status change event of the first-standard network through the second-standard network after registering the second-standard network, the terminal can send a network subscription request to the second-standard network after registering the second-standard network. The network subscription request is used to request the second-standard network to subscribe to the status change event of the first-standard network.
[0073] Among them, the network subscription request can be a message in a specific format, which includes the relevant identifier of the terminal, the type of subscription request (here, subscribing to the state change event of the 5G network), and some other parameters and instructions. The terminal can send this message to the relevant entity on the network side, such as a base station or a control node of the core network, through the signaling channel between the terminal and the second standard network. The embodiment of the present application does not limit the specific format of the network subscription request.
[0074] It should be noted that the purpose of the network subscription request is to instruct the second-standard network to obtain the network status of the 5G network for the terminal. In other words, the terminal hopes that the second-standard network can collect and return relevant status information of the 5G network to the terminal regularly or under specific conditions. Accordingly, after receiving the network subscription request of the terminal, the second-standard network will perform corresponding processing based on the content of the network subscription request and the actual situation of the second-standard network. Optionally, the second-standard network will use its own monitoring mechanism and information collection channels to obtain the status information of the 5G network. This information may include the signal strength of the 5G base station, the load of the 5G network, whether a specific 5G frequency band is supported, whether the terminal has the right to access the 5G network, etc. It is not limited to subscribing to the status change event of the 5G network.
[0075] In some embodiments, after registering with the second-standard network, the terminal needs to meet network subscription conditions before sending a network subscription request to the second-standard network. The network subscription conditions may include at least one of fluctuations in the second-standard network and the need to use the first-standard network, i.e., the 5G network.
[0076] In some embodiments, after registering with the second-standard network, the terminal may also subscribe to status change events of the first-standard network when requesting data through the second-standard network. Accordingly, after registering with the second-standard network, in response to a data acquisition operation, the terminal sends a data acquisition request carrying a second field through the second-standard network. When the value of the second field is a third value, it indicates that the second-standard network subscribes to status change events of the first-standard network. When the value of the second field is a fourth value, it indicates that the second-standard network does not subscribe to status change events of the first-standard network. The data acquisition request is used to obtain the data indicated by the data acquisition operation.
[0077] The data acquisition operation may be triggered by a user operation, such as the user opening an application that needs to acquire data through the network, or the terminal system or other program generating the data acquisition operation during operation to acquire certain necessary data.
[0078] After receiving the data acquisition operation, the terminal may send a data acquisition request via the connected second-standard network, wherein the data acquisition request includes a second field. The second field may be the same as the first field, and will not be described in detail here.
[0079] 303. The terminal receives network status information of the first-standard network forwarded by the second-standard network.
[0080] In this embodiment of the present application, network status information is sent from the 5G network (the first standard network) to the second standard network based on a status change event. After the terminal subscribes to the 5G network status change event through the second standard network, the obtained network status information can guide the terminal to select and switch between different networks.
[0081] For example, when the terminal supports both 4G and 5G networks, the terminal can determine which network is more suitable for data transmission or business processing based on the acquired network status data.
[0082] In some embodiments, the network status information includes a detach type value and an EMM cause value. The detach type value indicates whether the terminal re-registers with the first-standard network, and the EMM cause value indicates whether the network status of the first-standard network is available. The terminal may obtain a detach request message returned by the second-standard network and extract the detach type value and the EMM cause value from the detach request message.
[0083] For example, the 4G network notifies the terminal to re-register with the 5G network through a DETACH REQUEST message. The value of the Detach type in the DETACH REQUEST message is 0 0 1, indicating that re-attach is required, that is, the terminal re-registers with the 5G network. The DETACH REQUEST message also adds an EMM cause value. If the EMM cause value is 01111111, it means that the network status of the 5G network is available.
[0084] 304. When the network status information indicates that the network status of the first-standard network is available, the terminal again initiates a request to register with the first-standard network.
[0085] In an embodiment of the present application, when the value of the detachment type indicates re-registration and the value of the EMM reason indicates that the network status of the first-standard network is in an available state, the terminal initiates a request to register with the first-standard network again. That is, when the terminal receives the network status information returned by the second-standard network, indicating that the 5G network is in an available state, the condition for initiating the 5G registration request again is met. Among them, when the network status of the 5G network is in an available state, it indicates that the 5G network has the ability to provide services to the terminal in the current environment, such as sufficient 5G base station signal strength, sufficient network resources, and the device's SIM card permissions allow access to the 5G network. After confirming that the 5G network is available, the terminal can immediately send a registration request to the 5G network. The registration request contains the terminal's identity information, capability information, and other relevant parameters so that the 5G network can authenticate and authorize the terminal and allocate corresponding resources to the terminal. If the 5G network receives the terminal's registration request, authenticates and authorizes the terminal, and allocates corresponding resources to the device, the terminal is successfully registered with the 5G network.
[0086] It should be noted that the above embodiment uses the example of obtaining network status information of a first-standard network through a second-standard network. Optionally, if the terminal switches from the second-standard network to a third-standard network, the terminal can obtain network status information of the first-standard network through the third-standard network. The first-standard network is evolved from the third-standard network. For example, the third-standard network is a 3G network, the second-standard network is a 4G network, and the first-standard network is a 5G network. Alternatively, the third-standard network is a 4G network, the second-standard network is a 3G network, and the first-standard network is a 5G network.
[0087] The embodiment of the present application provides a method for registering a network, which registers for a second-standard network in response to a rejection of registration for a first-standard network, ensuring that users can still maintain basic communication functions through traditional cellular networks such as the second-standard network while waiting for the first-standard network to recover, avoiding service interruption caused by failure to register for the first-standard network, and ensuring business continuity. By actively subscribing to the status of the first-standard network through the second-standard network, compared with the passive waiting mode that relies on periodic synchronization in the existing solution, the readiness time of the first-standard network can be dynamically captured, significantly shortening the user waiting time, avoiding multiple invalid signaling interactions caused by state asynchrony in the traditional solution, and improving the registration success rate of the first-standard network. At the same time, it also reduces the signaling load on the network side, optimizes the collaborative efficiency between the terminal and the network, and improves the efficiency of human-computer interaction.
[0088] To make the method of registering a network provided by this application easier to understand, see Figure 4 As shown, Figure 4 This is a flowchart of another method for registering a network provided by an embodiment of the present application, which is described by taking registering a 5G network as an example. Figure 4 As shown, the following steps are included:
[0089] 401. The terminal initiates 5G network registration.
[0090] In the embodiment of the present application, when the terminal is restarted or the SIM card is reinserted, 5G network registration will be initiated.
[0091] 402. The terminal determines whether the 5G network rejects the N1 mode. If rejected, proceed to 403. If not rejected, proceed to 408.
[0092] In an embodiment of the present application, if a SIM card is inserted into a terminal that only supports 4G networks for a long time, after the SIM card is reinserted into a terminal that supports 5G networks, the terminal initiates 5G network registration, and the 5G network returns reject#27N1 modenot Allowed to the terminal, indicating that the terminal is not allowed to access the 5G network through the N1 mode. Alternatively, if a SIM card that has been registered for a 5G network is reinserted into a terminal that only supports 4G networks for a period of time, such as 24 hours, the SIM card will lose the ability to access the 5G network. If it is inserted into a terminal that supports 5G networks again, the terminal will initiate 5G network registration. The 5G network returns reject#27N1 mode not Allowed to the terminal, indicating that the terminal is not allowed to access the 5G network through the N1 mode.
[0093] 403. The terminal initiates 4G / 3G / 2G registration and successfully registers 4G / 3G / 2G.
[0094] In the embodiment of the present application, when the terminal receives a rejection response indicating that the 5G network does not allow the N1 mode, in order to continue to use the services of the mobile communication network, the terminal can attempt to register with the 4G network, 3G network, or 2G network. In this way, the terminal can at least use the basic communication functions provided by the 4G, 3G, or 2G network, such as voice calls, text messages, and lower-speed data transmission, to avoid completely losing network connection due to failure to register with the 5G network.
[0095] 404. The terminal initiates a request to subscribe to whether the 5G network status is available in the 4G / 3G / 2G network.
[0096] In the embodiment of the present application, taking the terminal registering with the 4G network as an example, after the terminal successfully registers with the 4G network, it can subscribe to the 5G network status change event from the 4G network. The status change event is an event in which the network status of the 5G network changes. Subscription refers to the process by which the terminal requests and obtains information about the 5G network status from the core network using the relevant mechanisms and channels of the 4G network.
[0097] The timing for the terminal to subscribe to the state change event of the 5G network through the 4G network can be when registering the 4G network or after registering the 4G network.
[0098] In some embodiments, if the terminal subscribes to the status change event of the 5G network through the 4G network when registering the 4G network, the terminal can send an attachment request message to the 4G network when registering the 4G network. The attachment request message includes a first field. When the value of the first field is a first value, it indicates that the 4G network subscribes to the status change event of the 5G network. When the value of the target field is a second value, it indicates that the 4G network does not subscribe to the status change event of the 5G network.
[0099] For example, when a terminal registers for a 4G network, a new field, is_5G_available, is added to the ATTACH REQUEST message. This field is used to request the availability of the 5G network. Optionally, the first value is 1 and the second value is 0. A value of 1 for this field indicates that the terminal is subscribing to 5G network status change events, while a value of 0 for this field indicates that the terminal is not subscribing to 5G network status change events. See Table 1 above for an example of an attach request message.
[0100] In some embodiments, if the terminal subscribes to the status change event of the 5G network through the 4G network after registering the 4G network, the terminal can send a network subscription request to the 4G network after registering the 4G network. The network subscription request is used to request the 4G network to subscribe to the status change event of the 5G network.
[0101] Among them, the network subscription request can be a message in a specific format, which includes the relevant identification of the terminal, the type of subscription request (here, subscribing to the state change event of the 5G network), and some other parameters and instructions. The terminal can send this message to the relevant entity on the network side, such as a base station or a control node of the core network, through the signaling channel between the terminal and the 4G network. The embodiment of the present application does not limit the specific format of the network subscription request.
[0102] It should be noted that the purpose of the network subscription request is to instruct the 4G network to obtain the network status of the 5G network for the terminal. In other words, the terminal hopes that the 4G network can collect and return relevant status information of the 5G network to the terminal regularly or under specific conditions. Accordingly, after receiving the network subscription request from the terminal, the 4G network will perform corresponding processing based on the content of the network subscription request and the actual situation of the 4G network. Optionally, the 4G network will use its own monitoring mechanism and information collection channels to obtain the status information of the 5G network. This information may include the signal strength of the 5G base station, the load of the 5G network, whether a specific 5G frequency band is supported, whether the terminal has the right to access the 5G network, etc. It is not limited to subscribing to the status change events of the 5G network.
[0103] In some embodiments, after registering with the 4G network, the terminal needs to meet the network subscription conditions before sending a network subscription request to the 4G network. The network subscription conditions may include at least one of fluctuations in the 4G network and the need to use the 5G network.
[0104] In some embodiments, after registering with the 4G network, the terminal may also subscribe to the state change events of the 5G network when requesting data through the 4G network. Accordingly, after registering with the 4G network, the terminal, in response to a data acquisition operation, sends a data acquisition request carrying a second field through the 4G network. When the value of the second field is a third value, it indicates that the 4G network subscribes to the state change events of the 5G network. When the value of the second field is a fourth value, it indicates that the 4G network does not subscribe to the state change events of the 5G network. The data acquisition request is used to obtain the data indicated by the data acquisition operation.
[0105] The data acquisition operation may be triggered by a user operation, such as the user opening an application that needs to acquire data through the network, or the terminal system or other program generating the data acquisition operation during operation to acquire certain necessary data.
[0106] After receiving the data acquisition operation, the terminal can send a data acquisition request through the connected 4G network, and the data acquisition request includes a second field. The second field can be the same as the first field, and will not be repeated here.
[0107] 405. Determine whether the 5G network has returned to normal. If so, proceed to 406.
[0108] In an embodiment of the present application, after the 5G network returns to normal, the 4G network can be notified through a state change event to execute the following step 406.
[0109] 406. If the 5G network can be used normally, the 5G network notifies the terminal through the 4G / 3G / 2G network.
[0110] In an embodiment of the present application, if the 5G network can be used normally, the 5G network will send network status information to the above-mentioned 4G network. The network status information includes a detachment type value and an EMM reason value. The detachment type value is used to indicate whether the terminal re-registers with the first-standard network, and the EMM reason value is used to indicate whether the network status of the first-standard network is available. The 4G network can forward the network status information to the terminal.
[0111] For example, the 4G network notifies the terminal to re-register with the 5G network through a DETACH REQUEST message. The value of the Detach type in the DETACH REQUEST message is 0 0 1, indicating that re-attach is required, that is, the terminal re-registers with the 5G network. The DETACH REQUEST message also adds an EMM cause value. If the EMM cause value is 01111111, it means that the network status of the 5G network is available.
[0112] 407. After receiving the response indicating that the 5G network is available, the terminal immediately initiates a request for 5G network registration.
[0113] In an embodiment of the present application, the terminal can immediately send a registration request to the 5G network after confirming that the 5G network is available. The registration request includes the terminal's identity information, capability information and other relevant parameters so that the 5G network can authenticate and authorize the terminal and allocate corresponding resources to the terminal.
[0114] 408. The 5G network accepts the terminal's registration request, and the terminal successfully registers on the 5G network.
[0115] In an embodiment of the present application, if the 5G network receives the registration request from the terminal, authenticates and authorizes the terminal, and allocates corresponding resources to the device, the terminal is successfully registered with the 5G network.
[0116] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0117] Figure 5 This is a schematic diagram of the structure of a device for registering a network provided in an embodiment of the present application. Figure 5 The device includes: a registration module 501, an acquisition module 502 and a request module 503.
[0118] A registration module 501 is configured to register a second-standard network in response to receiving a rejection response when registering the first-standard network, where the rejection response indicates that the terminal is not allowed to register the first-standard network, and the first-standard network is evolved from the second-standard network;
[0119] An acquisition module 502 is configured to acquire network status information of a first-standard network through a second-standard network, where the network status information indicates a network status of the first-standard network.
[0120] The request module 503 is configured to initiate a request for registering with the first-standard network again when the network status information indicates that the network status of the second-standard network is available.
[0121] In some embodiments, the acquisition module 502 is used to subscribe to the status change event of the first-standard network through the second-standard network when registering the second-standard network; receive the network status information of the first-standard network forwarded by the second-standard network, and the network status information is sent by the first-standard network to the second-standard network based on the status change event, and the status change event is an event in which the network status of the first-standard network changes; or, after registering the second-standard network, subscribe to the status change event of the first-standard network through the second-standard network; receive the network status information of the first-standard network forwarded by the second-standard network, and the network status information is sent by the first-standard network to the second-standard network based on the status change event.
[0122] In some embodiments, the acquisition module 502 is used to send an attachment request message to the second-standard network when registering the second-standard network. The attachment request message includes a first field. When the value of the first field is a first value, it indicates that the second-standard network subscribes to the status change event of the first-standard network. When the value of the target field is a second value, it indicates that the second-standard network does not subscribe to the status change event of the first-standard network.
[0123] In some embodiments, the acquisition module 502 is configured to send a network subscription request to the second-standard network after registering the second-standard network, where the network subscription request is used to request the second-standard network to subscribe to the state change event of the first-standard network.
[0124] In some embodiments, the acquisition module 502 is used to send a network subscription request to the second-standard network after registering the second-standard network and when the network subscription conditions are met. The network subscription conditions include at least one of fluctuations in the second-standard network and the need to use the first-standard network.
[0125] In some embodiments, the acquisition module 502 is used to send a data acquisition request carrying a second field through the second network in response to a data acquisition operation after registering with the second network. When the value of the second field is a third value, it indicates that the second network subscribes to the status change event of the first network. When the value of the second field is a fourth value, it indicates that the second network does not subscribe to the status change event of the first network. The data acquisition request is used to obtain the data indicated by the data acquisition operation.
[0126] In some embodiments, the network status information includes a detach type value and an EMM cause value, the detach type value is used to indicate whether the terminal re-registers the first-standard network, and the EMM cause value is used to indicate whether the network status of the first-standard network is available;
[0127] The acquisition module 502 is configured to acquire a detach request message returned by the second-standard network; and extract a detach type value and an EMM cause value from the detach request message.
[0128] The request module 503 is configured to re-initiate a request to register with the first-standard network when the value of the detachment type indicates re-registration and the value of the EMM cause indicates that the network status of the first-standard network is available.
[0129] In some embodiments, the acquisition module 502 is further configured to acquire network status information of the first-standard network through the third-standard network in response to switching from the second-standard network to the third-standard network, where the first-standard network is evolved from the third-standard network.
[0130] In some embodiments, the first-standard network is a 5G network, and the second-standard network is any one of a 4G network, a 3G network, and a 2G network.
[0131] In some embodiments, the first-standard network is a 5G network, and the rejection response is used to indicate that the terminal is not allowed to access the 5G network through the N1 mode.
[0132] The present application provides a device for registering a network. By registering a second-standard network in response to a rejection of registration on a first-standard network, the device ensures that users can maintain basic communication functions through traditional cellular networks such as the second-standard network while waiting for the first-standard network to recover, thereby avoiding service interruption caused by failure to register on the first-standard network and ensuring business continuity. By actively subscribing to the status of the first-standard network through the second-standard network, compared with the passive waiting mode that relies on periodic synchronization in the existing solution, the device can dynamically capture the readiness time of the first-standard network, significantly shorten the user waiting time, avoid multiple invalid signaling interactions caused by state asynchrony in the traditional solution, improve the registration success rate of the first-standard network, and reduce the signaling load on the network side. This optimizes the collaborative efficiency between the terminal and the network and improves the efficiency of human-computer interaction.
[0133] It should be noted that the network registration apparatus provided in the above embodiments, when implementing its functions, is merely illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal can be divided into different functional modules to complete all or part of the functions described above. In addition, the network registration apparatus provided in the above embodiments and the network registration method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0134] An embodiment of the present application provides a terminal, which includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the method of registering a network as provided in the above-mentioned various method embodiments.
[0135] See also Figure 6 , Figure 6 FIG. 6 is a schematic diagram of a terminal 600 according to an exemplary embodiment of the present application. The terminal 600 may further include one or more of the following components: a processor 601 , a memory 602 , and a display screen 603 .
[0136] The processor 601 uses various interfaces and lines to connect the various parts of the entire terminal 600, and executes various functions and processes data of the terminal 600 by running or executing instructions, programs, code sets or instruction sets stored in the memory 602, and calling data stored in the memory 602. Optionally, the processor 601 can be implemented in the form of at least one hardware of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 601 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen 603; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to handle wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor 601, but may be implemented separately through a computer program product.
[0137] The memory 602 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 602 includes a non-transitory computer-readable storage medium. The memory 602 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the terminal 600 (such as audio data, a phone book), etc.
[0138] The display screen 603 is a display component for displaying a user interface. Optionally, the display screen 603 is a display screen with a touch function, through which the user can use any suitable object such as a finger, a touch pen, etc. to perform touch operations on the display screen 603.
[0139] Display screen 603 is typically provided on the front panel of terminal 600. Display screen 603 can be designed as a full screen, a curved screen, a special-shaped screen, a double-sided screen, or a foldable screen. Display screen 603 can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which are not limited in this embodiment.
[0140] In addition, those skilled in the art will appreciate that the structure of terminal 600 shown in the above figures does not limit terminal 600. Terminal 600 may include more or fewer components than shown, or may combine certain components, or arrange components differently. For example, terminal 600 may also include a WiFi module, an audio acquisition device, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a Bluetooth module, a power supply, and other components, which will not be described in detail here.
[0141] The present application also provides a computer-readable storage medium, which stores at least one program code. The at least one program code is loaded and executed by the processor to implement the network registration method shown in the above embodiments.
[0142] The present application also provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal, it is used to implement the method for registering a network as shown in the above embodiments.
[0143] The present application also provides a computer program product, which stores at least one program code, and the at least one program code is used to be executed by a processor to implement the method for registering a network as shown in the above embodiments.
[0144] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0145] Those skilled in the art will appreciate that all or part of the steps in the network registration method of the above-described embodiment can be performed by hardware, or by a program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk. The foregoing description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A method for registering a network, characterized in that: The method is used in a terminal, and includes: In response to receiving a rejection response when registering the first-standard network, registering the second-standard network, the rejection response is used to indicate that the terminal is not allowed to register the first-standard network, and the first-standard network is evolved from the second-standard network; Acquire network status information of the first-standard network through the second-standard network, where the network status information is used to indicate the network status of the first-standard network; When the network status information indicates that the network status of the first-standard network is available, a request for registering with the first-standard network is initiated again.
2. The method according to claim 1, characterized in that The acquiring the network status information of the first-standard network through the second-standard network includes: When registering the second-standard network, subscribing to a state change event of the first-standard network through the second-standard network; receiving network state information of the first-standard network forwarded by the second-standard network, the network state information being sent by the first-standard network to the second-standard network based on the state change event, the state change event being an event in which the network state of the first-standard network changes; or, After registering the second-standard network, subscribe to the status change event of the first-standard network through the second-standard network; receive the network status information of the first-standard network forwarded by the second-standard network, and the network status information is sent by the first-standard network to the second-standard network based on the status change event.
3. The method according to claim 2, characterized in that The subscribing to the state change event of the first-standard network through the second-standard network when registering the second-standard network includes: When registering the second-standard network, an attachment request message is sent to the second-standard network, where the attachment request message includes a first field. When the value of the first field is a first value, it indicates that the second-standard network subscribes to the status change event of the first-standard network. When the value of the target field is a second value, it indicates that the second-standard network does not subscribe to the status change event of the first-standard network.
4. The method according to claim 2, characterized in that After registering the second-standard network, subscribing to the state change event of the first-standard network through the second-standard network includes: After registering the second-standard network, a network subscription request is sent to the second-standard network, where the network subscription request is used to request the second-standard network to subscribe to the state change event of the first-standard network.
5. The method according to claim 4, characterized in that After registering the second-standard network, sending a network subscription request to the second-standard network includes: After registering the second-standard network, if a network subscription condition is met, sending the network subscription request to the second-standard network, the network subscription condition including at least one of fluctuation of the second-standard network and demand for using the first-standard network.
6. The method according to claim 2, characterized in that After registering the second-standard network, subscribing to the state change event of the first-standard network through the second-standard network includes: After registering with the second-standard network, in response to a data acquisition operation, a data acquisition request carrying a second field is sent through the second-standard network. When the value of the second field is a third value, it indicates that the second-standard network subscribes to the status change event of the first-standard network. When the value of the second field is a fourth value, it indicates that the second-standard network does not subscribe to the status change event of the first-standard network. The data acquisition request is used to obtain the data indicated by the data acquisition operation.
7. The method according to any one of claims 1 to 6, characterized in that The network status information includes a detach type value and an EMM cause value, wherein the detach type value is used to indicate whether the terminal re-registers with the first-standard network, and the EMM cause value is used to indicate whether the network status of the first-standard network is available; The acquiring the network status information of the first-standard network through the second-standard network includes: Obtaining a detach request message returned by the second-standard network; extracting a value of the detach type and a value of the EMM cause from the detach request message; The re-initiating a request to register with the first-standard network when the network status information indicates that the network status of the first-standard network is an available state includes: When the value of the detachment type indicates re-registration and the value of the EMM cause indicates that the network status of the first-standard network is available, a request for registering with the first-standard network is initiated again.
8. The method according to any one of claims 1 to 6, characterized in that The method further comprises: In response to switching from the second-standard network to the third-standard network, network status information of the first-standard network is obtained through the third-standard network, and the first-standard network is evolved from the third-standard network.
9. The method according to any one of claims 1 to 6, characterized in that The first-standard network is a 5G network, and the second-standard network is any one of a 4G network, a 3G network, and a 2G network.
10. The method according to any one of claims 1 to 6, characterized in that The first-standard network is a 5G network, and the rejection response is used to indicate that the terminal is not allowed to access the 5G network through the N1 mode.
11. A device for registering a network, characterized in that: Configured in a terminal, the device includes: a registration module, configured to register a second-standard network in response to receiving a rejection response when registering the first-standard network, wherein the rejection response is used to indicate that the terminal is not allowed to register the first-standard network, and the first-standard network is evolved from the second-standard network; an acquisition module, configured to acquire network status information of the first-standard network through the second-standard network, wherein the network status information is used to indicate the network status of the first-standard network; The request module is configured to initiate a request for registering with the first-standard network again when the network status information indicates that the network status of the second-standard network is available.
12. A terminal, characterized in that: The terminal includes a processor and a memory; the memory stores at least one program code, and the at least one program code is configured to be executed by the processor to implement the method for registering a network according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that The storage medium stores at least one program code, and the at least one program code is configured to be executed by a processor to implement the method for registering a network according to any one of claims 1 to 10.
14. A chip, characterized in that: The chip includes a programmable logic circuit and / or program instructions, and when the chip runs on the terminal, is used to implement the method for registering a network according to any one of claims 1 to 10.
15. A computer program product comprising a computer program, characterized in that The computer program product stores at least one program code, and the at least one program code is configured to be executed by a processor to implement the method for registering a network according to any one of claims 1 to 10.