Terminal device network registration control method, device, terminal device and storage medium

By detecting the network registration status of terminal devices, dynamically adjusting the APN attempt mechanism, and using high-level or local configuration of APN for network registration, the network registration failure problem caused by APN errors is solved, and the network online rate and service satisfaction are improved.

CN115811783BActive Publication Date: 2024-12-20GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111070746.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-13
Publication Date
2024-12-20
Estimated Expiration
2041-09-13

AI Technical Summary

Technical Problem

The terminal device uses the wrong APN or does not use the APN when registering the network, resulting in the inability to successfully register the network, affecting the network online rate.

Method used

By detecting the current network registration status of the terminal device, if the registration fails or is successful and the APN issued by the base station is inconsistent with the high-level configuration APN, the network registration will be carried out using the high-level configuration APN or the local configuration APN mechanism, including empty APN and local pre-configured APN. Dynamic Adjust the APN trial mechanism to increase the online rate of the network.

Benefits of technology

The network online rate of terminal devices has been improved. By real-time detection of network registration status, priority is given to registering the network needs of users, meeting business needs, and registering the network through the APN issued by the base station when there is no need, reducing invalid signaling interaction and power consumption .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115811783B_ABST
    Figure CN115811783B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a terminal device network registration control method, device, terminal device and storage medium, the method comprising: when a network registration request is detected, detecting the current network registration status of the terminal device; if it is determined according to the current network registration status that the network registration of the terminal device fails or it is determined according to the current network registration status that the network registration of the terminal device succeeds and the APN sent by the base station is different from the high-level configuration APN, detecting whether there is a high-level configuration APN, the high-level configuration APN is user configured or system configured; if there is a high-level configuration APN, using the high-level configuration APN to attempt network registration; if there is no high-level configuration APN, using the local configuration APN mechanism to perform network registration; being able to detect the network registration status in real time, change the APN attempt mechanism during network registration, reasonably and dynamically configure the corresponding APN for network registration, and improve the terminal network online rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method and apparatus for controlling network registration of a terminal device, a terminal device, and a storage medium. Background Art

[0002] Access Point Name (APN) refers to a network access technology. It is a parameter that must be configured when accessing the Internet through a terminal device (mobile phone). It determines the access method and network type of the terminal device. Generally, for terminal users, many types of external networks can be accessed through APN, such as the Internet, Wireless Application Protocol (WAP) websites, corporate intranets, and industry-specific networks. Different access points have different access ranges and access methods, which are distinguished by APN.

[0003] When the terminal device registers on the network, if the wrong APN is used or no APN is used, it will fail to successfully register on the network or cannot use some services, affecting the network online rate of the terminal device. Summary of the invention

[0004] The embodiment of the present invention discloses a terminal device network registration control method, device, terminal device and storage medium, which are used to improve the network online rate of the terminal device.

[0005] A first aspect of an embodiment of the present invention discloses a terminal device network registration control method, which may include:

[0006] When a network registration request is detected, detecting a current network registration status of the terminal device;

[0007] If it is determined according to the current network registration situation that the network registration of the terminal device fails or if it is determined according to the current network registration situation that the network registration of the terminal device succeeds and the APN sent by the base station is different from the high-level configured APN, detecting whether the high-level configured APN exists, and the high-level configured APN is user configured or system configured;

[0008] If the high-level configured APN exists, attempt network registration using the high-level configured APN;

[0009] If the high-level configured APN does not exist, a local configured APN mechanism is used to register with the network. The local configured APN mechanism is to use the APN sent by the base station to try to register with the network.

[0010] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the adopting the local configuration APN mechanism to perform network registration includes:

[0011] Try network registration with an empty access point APN.

[0012] If registration using the empty APN fails, network registration is performed using a locally pre-configured APN, where the locally pre-configured APN is a historical APN that is saved by the terminal device and has successfully registered with the network.

[0013] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:

[0014] If the high-level configuration APN exists, detecting whether the high-level configuration APN has been used to attempt network registration and the registration has failed;

[0015] If the network has not been registered using the high-level configuration APN, executing the step of attempting network registration using the high-level configuration APN;

[0016] If the network has been registered using the high-level configured APN and the registration has failed, the step of registering the network using the local configured APN mechanism is performed.

[0017] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:

[0018] If the registration is successful using the high-level configured APN, or the registration is successful using the empty APN, or the registration is successful using the locally pre-configured APN, it is determined that the terminal device has completed network registration and the latest APN sent by the base station is saved.

[0019] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:

[0020] If registration fails using the high-level configured APN or registration fails using the locally pre-configured APN, detecting whether the number of failures is not less than a failure threshold;

[0021] If it is less than the failure threshold, wait for a preset time and execute the step of detecting the current network registration status of the terminal device when a network registration request is detected.

[0022] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:

[0023] If the number of failures is not less than the failure threshold, switch from the current network standard to another network standard, and attempt network registration under the other network standard.

[0024] A second aspect of an embodiment of the present invention discloses a terminal device network registration control device, which may include:

[0025] A detection module, configured to detect the current network registration status of the terminal device when a network registration request is detected;

[0026] The detection module is further configured to detect whether there is a high-level configured APN if the detection module determines that the network registration of the terminal device fails according to the current network registration situation or determines that the network registration of the terminal device succeeds according to the current network registration situation and the APN sent by the base station is different from the high-level configured APN, and the high-level configured APN is user configured or system configured;

[0027] A registration module, used to attempt network registration using the high-level configuration APN;

[0028] The registration module is further configured to use a local configuration APN mechanism to perform network registration if the high-level configuration APN does not exist. The local configuration APN mechanism is to use the APN sent by the base station to try to register the network.

[0029] As an optional implementation, in the second aspect of the embodiment of the present invention, the registration module is used to adopt the local configuration APN mechanism to perform network registration in the following manner:

[0030] Using an empty access point APN to attempt network registration; and if registration using the empty APN fails, using a local pre-configured APN to perform network registration, the local pre-configured APN being a historical APN that is saved by the terminal device and has successfully registered with the network.

[0031] As an optional implementation, in the second aspect of the embodiment of the present invention, the detection module is further used to, if the high-level configuration APN exists, detect whether the high-level configuration APN has been used to attempt network registration and the registration has failed;

[0032] The above-mentioned registration module is used to execute the step of attempting network registration by using the high-level configuration APN if the network has not been registered by using the high-level configuration APN;

[0033] The above registration module is used to execute the step of using the local configuration APN mechanism to register the network if the network has been registered using the high-level configuration APN and the registration failed.

[0034] As an optional implementation, in the second aspect of the embodiment of the present invention, the above-mentioned device also includes: a saving module.

[0035] Among them, the saving module is used to determine that the terminal device completes network registration and save the latest APN sent by the base station if the registration is successful using the high-level configured APN, or the registration is successful using the empty APN, or the registration is successful using the local pre-configured APN.

[0036] As an optional implementation, in the second aspect of the embodiment of the present invention, the above-mentioned detection module is also used to detect whether the number of failures is not less than a failure threshold if the APN registration fails using the high-level configuration or the local pre-configured APN registration fails; and if it is less than the failure threshold, wait for a preset time and execute the step of detecting the current network registration status of the terminal device when a network registration request is detected.

[0037] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the device further includes:

[0038] The switching module is used to switch from the current network standard to other network standards if the detection module detects that the number of failures is not less than the failure threshold, and trigger the registration module to perform network registration attempts under other network standards.

[0039] A third aspect of an embodiment of the present invention discloses a terminal device, which may include:

[0040] A memory storing executable program code;

[0041] a processor coupled to the memory;

[0042] The processor calls the executable program code stored in the memory to execute a terminal device network registration control method disclosed in the first aspect of an embodiment of the present invention.

[0043] A fourth aspect of an embodiment of the present invention discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods of the first aspect of the embodiment of the present invention.

[0044] A fifth aspect of an embodiment of the present invention discloses a computer program product. When the computer program product is run on a computer, the computer is enabled to execute part or all of the steps of any one of the methods of the first aspect.

[0045] A sixth aspect of an embodiment of the present invention discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes part or all of the steps of any one method of the first aspect.

[0046] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0047] In an embodiment of the present invention, when a network registration request is detected, the terminal device detects the current network registration status. If the network registration fails according to the current network registration status or the network registration is successful and the APN sent by the base station is different from the high-level configured APN, it is detected whether there is a high-level configured APN. If there is a high-level configured APN, the high-level configured APN is first used to try network registration. The high-level configured APN is user configured or system configured, so that the network required by the user can be registered first to meet the user's business needs. If there is no high-level configured APN, the local configured APN mechanism is used for network registration. The local configured APN mechanism is to use the APN sent by the base station to try to register the network, so that when the user does not have the required network, the network can be registered through the APN sent by the base station to achieve the terminal device network online. It can be seen that by implementing the embodiment of the present invention, the network registration status can be detected in real time, the APN attempt mechanism during network registration can be changed, and the corresponding APN can be reasonably and dynamically configured for network registration, thereby improving the terminal network online rate. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0049] Figure 1 A schematic diagram of a flow chart of a terminal device network registration control method disclosed in Embodiment 1 of the present invention;

[0050] Figure 2 This is a flow chart of a terminal device network registration control method disclosed in Embodiment 2 of the present invention;

[0051] Figure 3 This is a schematic diagram of the structure of the terminal device network registration control device disclosed in the first embodiment of the present invention;

[0052] Figure 4 This is a schematic diagram of the structure of a terminal device network registration control device disclosed in Embodiment 2 of the present invention;

[0053] Figure 5 A schematic diagram of the structure of a terminal device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] It should be noted that the terms "first", "second", "third" and "fourth" in the specification and claims of the present invention are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present invention and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0056] The embodiment of the present invention discloses a terminal device network registration control method, device, terminal device and storage medium, which are used to improve the terminal network online rate.

[0057] The technical solution of the present invention will be described in detail below through specific embodiments.

[0058] See also Figure 1 , Figure 1 Schematic diagram of the process of the terminal device network registration control method disclosed in the first embodiment of the present invention; Figure 1 As shown, the terminal device network registration control method may include:

[0059] 101. When a network registration request is detected, detect the current network registration status of the terminal device.

[0060] Among them, the executor of the embodiment of the present invention is a terminal device. When the terminal device detects a network registration request, it first detects the current network registration status, and then according to the current network registration status, it can understand whether the terminal device has successfully registered with the network. Specifically, the current network registration status clearly indicates whether the terminal device has successfully registered with the network.

[0061] Optionally, the network registration request may be issued when the terminal device is powered on, or generated when a service request is initiated.

[0062] 102. If it is determined according to the current network registration situation that the network registration of the terminal device has failed, or if it is determined according to the current network registration situation that the network registration of the terminal device has succeeded and the APN sent by the base station is different from the high-level configured APN, check whether there is a high-level configured APN, which is user configured or system configured; when there is a high-level configured APN, go to step 103; when there is no high-level configured APN, go to step 104.

[0063] It should be noted that APN actually refers to APN parameters, that is, a parameter configured to determine what type of network the terminal device accesses through which access method when surfing the Internet. There are APNs issued by base stations and APNs configured by users or systems.

[0064] When a network registration request is received, it can be determined whether the network registration has failed or succeeded according to the current network registration situation. The following describes the two situations in detail:

[0065] Case 1: Network registration failed.

[0066] When a network registration request is detected, the high-level configuration APN may not be detected (the user or system has not yet configured the APN at this time), and the local configuration APN mechanism is used to try to register the network. If the registration fails, it is determined that the network registration fails according to the current network registration situation mentioned in the embodiment of the present invention, and further detection will be made whether there is a high-level configuration APN. Alternatively, when a network registration request is detected, it is found that the high-level configuration APN has been used to attempt network registration, and the registration failed, then the terminal device network registration fails according to the current network registration situation.

[0067] Case 2: Registration successful.

[0068] When a network registration request is detected, the high-level configured APN may not be detected (the user or system has not yet configured the APN at this time), and the local configured APN mechanism is used to try to register the network. If the registration is successful, it is determined that the network registration of the terminal device is successful according to the current network registration situation mentioned in the embodiment of the present invention. Then, it is necessary to further determine whether the APN sent by the base station is different from the high-level configured APN, which also includes two situations:

[0069] Among them, when the local configuration APN mechanism is used to attempt network registration, the APN sent by the benchmark is used (which will be introduced in detail later), that is, there is an APN sent by the base station at this time. If there is no high-level configuration APN at this time, it is determined that the APN sent by the base station is different from the high-level configuration APN. At this point, it can be determined that the terminal device network registration is successful and the APN sent by the base station is different from the high-level configuration APN, and then further detection is performed to see if there is a high-level configuration APN (that is, whether the user or system has completed the configuration of the high-level configuration APN).

[0070] Alternatively, when attempting to register with the network using the locally configured APN mechanism, the APN sent by the baseline is used (which will be introduced in detail later), that is, there is an APN sent by the base station at this time. If there is also a high-level configured APN at this time, but the APN sent by the base station is different from the high-level configured APN, then it can be determined that the terminal device has successfully registered with the network and the APN sent by the base station is different from the high-level configured APN, and then the high-level configured APN can be further detected.

[0071] It should be noted that the high-level configuration APN is user configuration or system configuration, which can meet the user's needs for a specific network / specific service, which can be a private network. The APN sent by the base station is often for a public network.

[0072] 103. Use high-level configuration APN to attempt network registration.

[0073] As an optional implementation, when a high-level configuration APN exists, it is detected whether the high-level configuration APN has been used to attempt network registration and the registration has failed; if the high-level configuration APN has been used to attempt network registration and the registration has failed, the process goes to step 104 instead of step 103; when the high-level configuration APN has not been used to register the network, step 103 is executed; through this implementation, when a high-level configuration APN exists and network registration has not been attempted, the high-level configuration APN can be used to attempt network registration, so as to give priority to registering the network required by the user.

[0074] 104. Use a local APN configuration mechanism to register with the network. The local APN configuration mechanism uses the APN sent by the base station to try to register with the network.

[0075] In some optional implementations, the local configuration APN mechanism is used for network registration, including:

[0076] Try network registration with an empty access point APN.

[0077] If registration with an empty APN fails, the local pre-configured APN is used for network registration. The local pre-configured APN is a historical APN saved by the terminal device and successfully registered with the network.

[0078] It should be noted that empty APN actually refers to empty APN parameters. According to the 3GPP protocol requirements, at this time, the terminal device does not report any APN parameters to the base station. In this case, the base station core network side will send down a default APN to try to establish a network connection for the terminal device through this APN. The default APN used at this time can meet normal network service needs. This method can improve the success rate of network registration. It is especially suitable for scenarios where using APN1 in area A may successfully register the network and use the network normally, but using APN1 in area B may not successfully register the network. This allows the terminal device in area B to use an empty APN to report and apply for network registration, successfully register the network, and effectively improve the network online rate of the terminal device.

[0079] Furthermore, after the registration with an empty APN fails, the local pre-configured APN (also the operator's default APN) is used for network registration. The local pre-configured APN is a historical APN that is saved by the terminal device and has successfully registered with the network. It can be understood that after each base station sends an APN and the network can be successfully registered with the APN, the local pre-configured APN will be updated to ensure that the terminal device always saves the local pre-configured APN that has successfully registered with the network, which can solve the problem of the terminal device not being able to register with the network due to the lack of an APN.

[0080] Further, in combination with the above description, an empty APN is used to attempt network registration, that is, the default APN on the base station core network side is used for network registration. When the registration is successful, the network registration is completed, and the local preconfigured APN is updated according to the default APN, so that the terminal device can save the local preconfigured APN that has successfully registered with the network. This is beneficial for attempting network connection through the local preconfigured APN when there is no other APN, so as to improve the network online rate.

[0081] By implementing the above embodiment, when the terminal device detects a network registration request, it detects the current network registration status. If it is determined that the network registration fails according to the current network registration status or it is determined that the network registration succeeds according to the current network registration status and the APN sent by the base station is different from the high-level configured APN, it detects whether there is a high-level configured APN. If it is determined that there is a high-level configured APN, the high-level configured APN is first used to try network registration. The high-level configured APN is user configured or system configured, so that the network required by the user can be registered first to meet the user's business needs. If there is no high-level configured APN, the local configured APN mechanism is used for network registration. The local configured APN mechanism is to use the APN sent by the base station to try to register the network, so that when the user does not have the required network, the network can be registered through the APN sent by the base station to achieve the terminal device network online. It can be seen that by implementing the embodiment of the present invention, the network registration status can be detected in real time, the APN attempt mechanism during network registration can be changed, and the corresponding APN can be reasonably and dynamically configured for network registration, thereby improving the terminal network online rate.

[0082] See also Figure 2 , Figure 2 Schematic diagram of the process of the terminal device network registration control method disclosed in the second embodiment of the present invention; Figure 2 As shown, the terminal device network registration control method may include:

[0083] 201. Detect network registration request.

[0084] 202. Determine whether the network registration is successful based on the current network registration status of the terminal device; if the registration fails, go to step 203; if the registration is successful, go to step 209.

[0085] 203. Determine whether there is a high-level configuration APN. If there is a high-level configuration APN, go to step 204; if there is no high-level configuration APN, go to step 210.

[0086] If the registration fails, it is further determined whether there is a high-level configuration APN, so that the high-level configuration APN is preferentially used for network registration to meet the user's demand for a specific network.

[0087] 204. Check whether the network registration has been attempted using the high-level configuration APN and the registration has failed; if the network has been registered using the high-level configuration APN and the registration has failed, go to step 210; if the network has not been registered using the high-level configuration APN, go to step 205.

[0088] If the network has been registered using the high-level configuration APN and the registration failed, there is no need to further use the high-level configuration APN to attempt network registration. The local configuration APN mechanism can be used directly to attempt network registration to reduce invalid signaling interactions and avoid wasting power consumption.

[0089] It should be noted that if the APN is registered with the network using a high-level configuration and the registration is successful, the network registration of the terminal device is completed when the registration is successful, and no new network registration will be initiated.

[0090] It should also be noted that if the high-level configuration APN has been used and the registration failed, it means that the high-level configuration APN has been used to attempt network registration when the network registration request was detected last time, and the registration failed. In this case, the high-level configuration APN can be used without attempting network registration this time to reduce the power consumption of the terminal device and extend the usage time of the terminal device.

[0091] 205. Use high-level configuration APN to attempt network registration.

[0092] 206. Determine whether the network registration is successful; if successful, go to step 207; if unsuccessful, go to step 211.

[0093] 207. Save the APN sent by the base station.

[0094] If the registration is successful using the high-level configured APN or the network registration attempt is successful using the APN in the local configured APN mechanism (empty APN registration or local pre-configured APN registration), the network is considered to be registered normally, and the APN sent by the base station that successfully registered the network for the last time is saved as the local pre-configured APN, so that the optimal local pre-configured APN can be obtained the next time the local pre-configured APN is needed.

[0095] 208. Complete online registration.

[0096] It can be understood that after the terminal device completes the network registration, it can access the network corresponding to the APN of the successfully registered network to realize related services.

[0097] In the embodiment of the present invention, after completing the network registration, the terminal device will access the successfully registered network.

[0098] 209. Determine whether the APN sent by the base station is different from the APN configured by the high-level layer; if they are the same, go to steps 207-208; if they are different, go to step 203.

[0099] Among them, the APN sent by the base station is the APN used to successfully register the network. In the embodiment of the present invention, when a network registration request is detected, the local configuration APN mechanism can be used to attempt network registration. If the APN sent by the base station is the same as the high-level configuration APN, it means that the network required by the user happens to be the network corresponding to the APN sent by the base station. It can be considered that the network has been successfully registered and there is no need to re-initiate network registration, which can reduce signaling interaction and thus reduce the power consumption of the terminal device.

[0100] 210. Use the local configuration APN mechanism to register with the network.

[0101] After executing step 210 , go to step 206 .

[0102] 211. Check whether the number of failures is not less than the failure threshold; if it is less than the failure threshold, go to step 212; if it is not less than the failure threshold, go to step 213.

[0103] If step 205 fails to attempt network registration using a high-level configured APN, or fails to attempt network registration using a locally pre-configured APN, wait for a preset time (delay for a period of time), for example, the preset time is 10s, or re-initiate a new network registration attempt at another time, because sometimes the registration failure may be caused by the base station network, so a delay mechanism is added to retry confirmation to improve the success rate of the network connection.

[0104] It can be understood that a counter is used in the terminal device to count the number of failures. Each time a network registration attempt fails, the counter is increased by 1, and then the count value of the counter is read as the number of failures. If the number of failures is not less than (equal to or greater than) the failure threshold, the network standard is changed to make a network attempt, and the counter is reset to zero and then starts counting. For example, the failure threshold can be set to 5 times.

[0105] 212. Wait for a preset time and execute the step of detecting a network registration request.

[0106] After executing step 212, execute step 201.

[0107] As can be seen from the analysis in step 211, the preset time can be pre-set to reasonably retry the network registration.

[0108] 213. Switch from the current network standard to another network standard, and attempt network registration under the other network standard.

[0109] If multiple attempts to register the network using different APNs fail and the failure threshold is reached, the network will be switched to other network standards to try to register under other network standards to avoid abnormal network registration caused by some areas not supporting a certain network standard. The network standard is the type of network. The commonly used network standards for terminal devices (such as mobile phones) are GSM, CDMA, 3G, 4G, 5G, etc. Assuming that the current network standard is CDMA, other network standards can be GSM, 3G, 4G, or 5G, that is, other network standards are network standards that the terminal device can support except the current network standard.

[0110] By implementing the above embodiment, when a network registration request is detected, it is first determined whether the network registration is successful according to the current network registration situation; if the registration fails, when detecting whether there is a high-level configured APN, it is detected whether the high-level configured APN has attempted network registration and failed to register, if not, the high-level configured APN is used to register the network; if the registration failure is determined according to the current network registration situation, it is further determined whether the APN sent by the base station is different from the high-level configured APN, if they are the same, the APN is saved and the network registration is completed, if they are different, it is necessary to further detect whether there is a high-level configured APN; and if the high-level configured APN has been used to attempt to register the network and the registration has failed, the high-level configured APN is used to register the network. If the registration fails and the APN sent by the base station is different from the high-level configured APN, the local configured APN mechanism is used for network registration. If the high-level configured APN is used to attempt to register the network and the local configured APN mechanism fails, if the number of failures is less than the failure threshold, you can wait for a preset time before trying to register the network again. If the number of failures is not less than the failure threshold, switch to other network standards to try to register the network. It can be seen that by implementing the embodiments of the present invention, the network registration status can be detected in real time, so as to reasonably and dynamically configure the APN during network registration, so as to quickly and effectively register with the network successfully, thereby improving the network online rate of the terminal device.

[0111] See also Figure 3 , Figure 3 FIG. 1 is a schematic diagram of the structure of the terminal device network registration control device disclosed in the first embodiment of the present invention; Figure 3 As shown, the terminal device network registration control device may include:

[0112] The detection module 310 is used to detect the current network registration status of the terminal device when a network registration request is detected;

[0113] The detection module 310 is further configured to detect whether there is a high-level configured APN if the detection module determines that the network registration of the terminal device fails according to the current network registration situation or determines that the network registration of the terminal device succeeds according to the current network registration situation and the APN sent by the base station is different from the high-level configured APN, and the high-level configured APN is user configured or system configured;

[0114] The registration module 320 is used to attempt network registration using a high-level configuration APN.

[0115] The registration module 320 is further configured to use a local configuration APN mechanism to perform network registration if there is no high-level configuration APN. The local configuration APN mechanism is to use the APN sent by the base station to try to register the network.

[0116] By implementing the above device, it is possible to detect the network registration status in real time, change the APN attempt mechanism during network registration, reasonably and dynamically configure the corresponding APN for network registration, and improve the terminal network online rate.

[0117] As an optional implementation, the above registration module 320 is used to adopt the local configuration APN mechanism to perform network registration in the following manner:

[0118] Attempt network registration using an empty access point APN; and, if registration using an empty APN fails, register with the network using a local pre-configured APN, where the local pre-configured APN is a historical APN that is saved by the terminal device and has successfully registered with the network.

[0119] As an optional implementation, in the above device, the above detection module 310 is further used to, if the high-level configuration APN exists, detect whether the high-level configuration APN has been used to attempt network registration and the registration has failed;

[0120] The registration module 320 is used to execute the step of attempting network registration by using the high-level configuration APN if the network has not been registered by using the high-level configuration APN;

[0121] The registration module 320 is used to execute the step of registering with the network using the local configuration APN mechanism if the network has been registered using the high-level configuration APN and the registration has failed.

[0122] Through the above implementation, when a high-layer configuration APN exists and network registration has not been attempted, the high-layer configuration APN can be used to attempt to register a network, so as to preferentially register a network required by the user.

[0123] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a terminal device network registration control device disclosed in Embodiment 2 of the present invention; Figure 4The terminal equipment network registration control device shown is Figure 3 The terminal device network registration control device shown is optimized based on the Figure 4 The terminal device network registration control device shown also includes: a saving module 410.

[0124] The storage module 410 is used to determine that the terminal device completes network registration and save the latest APN sent by the base station if the registration is successful using the high-level configured APN, or the registration is successful using the empty APN, or the registration is successful using the local pre-configured APN.

[0125] By implementing the above embodiment, by saving the APN sent by the base station that successfully registered the network last time as the local pre-configured APN, the optimal local pre-configured APN can be obtained when the local pre-configured APN is needed next time.

[0126] As an optional implementation, further combining Figure 4 The above-mentioned detection module 310 is also used to detect whether the number of failures is not less than the failure threshold if the high-level configured APN registration fails or the local pre-configured APN registration fails; and if it is less than the failure threshold, wait for a preset time and execute the step of detecting the current network registration status of the terminal device when a network registration request is detected.

[0127] By implementing the above-mentioned implementation manner, it is possible to set a reasonable failure threshold to allow the network to make a reasonable number of network registration attempts under the corresponding network standard, which helps to quickly connect to the network and improve the network online rate of the terminal device. At the same time, it will not cause the terminal device to attempt network registration too many times under one network standard, which is conducive to controlling the power consumption of the terminal device and reducing power consumption.

[0128] Further integration Figure 4 , Figure 4 The terminal device network registration control device shown further includes:

[0129] The switching module 420 is used to switch from the current network standard to another network standard if the detection module 310 detects that the number of failures is not less than the failure threshold, and trigger the registration module 320 to perform a network registration attempt under another network standard.

[0130] If multiple attempts to register the network using different APNs fail and the failure threshold is reached, the network will be switched to other network standards to try to register the network under other network standards to avoid network registration abnormalities caused by some areas not supporting a certain network standard.

[0131] See also Figure 5 , Figure 5A schematic diagram of the structure of a terminal device disclosed in an embodiment of the present invention; Figure 5 The terminal equipment shown may include:

[0132] A memory 501 storing executable program codes;

[0133] a processor 502 coupled to the memory 501;

[0134] The processor 502 calls the executable program code stored in the memory 501 to execute Figure 1 to Figure 2 Partial steps or all steps of any terminal device network registration control method.

[0135] The embodiment of the present invention further discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute Figure 1 to Figure 2 A terminal device network registration control method is disclosed.

[0136] The embodiment of the present invention also discloses a computer program product, which, when executed on a computer, enables the computer to execute Figure 1 to Figure 2 Part or all of the steps of any disclosed method.

[0137] The embodiment of the present invention further discloses an application publishing platform, which is used to publish a computer program product, wherein when the computer program product is run on a computer, the computer executes Figure 1 to Figure 2 Part or all of the steps of any disclosed method.

[0138] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0139] The above is a detailed introduction to a terminal device network registration control method, device, terminal device and storage medium disclosed in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A terminal device network registration control method, characterized in that: include: When a network registration request is detected, detecting a current network registration status of the terminal device; If it is determined according to the current network registration situation that the network registration of the terminal device fails or if it is determined according to the current network registration situation that the network registration of the terminal device succeeds and the APN sent by the base station is different from the high-level configured APN, detecting whether the high-level configured APN exists, and the high-level configured APN is user configured or system configured; If the high-level configured APN exists, attempt network registration using the high-level configured APN; If the high-level configured APN does not exist, the local configured APN mechanism is used to register with the network, and the local configured APN mechanism is to use the APN sent by the base station to try to register with the network; If the high-level configured APN exists, attempting network registration using the high-level configured APN includes: If the high-level configuration APN exists and the network has not been registered using the high-level configuration APN, try to register with the network using the high-level configuration APN; The method further comprises: If the high-level configured APN exists, and the network registration has been attempted using the high-level configured APN and the registration has failed, the local configured APN mechanism is used to perform network registration.

2. The method according to claim 1, characterized in that The method of using the local configuration APN mechanism to perform network registration includes: Try network registration with an empty access point APN. If registration using the empty access point APN fails, network registration is performed using a locally pre-configured APN, where the locally pre-configured APN is a historical APN that is saved by the terminal device and has successfully registered with the network.

3. The method according to claim 2, characterized in that The method further comprises: If the high-level configuration APN exists, detecting whether the high-level configuration APN has been used to attempt network registration and the registration has failed; If the network has not been registered using the high-level configuration APN, executing the step of attempting network registration using the high-level configuration APN; If the network has been registered using the high-level configured APN and the registration has failed, the step of registering the network using the local configured APN mechanism is performed.

4. The method according to claim 3, characterized in that The method further comprises: If the registration is successful using the high-level configured APN, or the registration is successful using the empty APN, or the registration is successful using the locally pre-configured APN, it is determined that the terminal device has completed network registration and the latest APN sent by the base station is saved.

5. The method according to any one of claims 2 to 4, characterized in that: The method further comprises: If registration fails using the high-level configured APN or registration fails using the locally pre-configured APN, detecting whether the number of failures is not less than a failure threshold; If it is less than the failure threshold, wait for a preset time and execute the step of detecting the current network registration status of the terminal device when a network registration request is detected.

6. The method according to claim 5, characterized in that The method further comprises: If the number of failures is not less than the failure threshold, switch from the current network standard to another network standard, and attempt network registration under the other network standard.

7. A terminal device network registration control device, characterized in that: include: A detection module, configured to detect the current network registration status of the terminal device when a network registration request is detected; The detection module is further configured to detect whether there is a high-level configured APN if the detection module determines that the network registration of the terminal device fails according to the current network registration situation or determines that the network registration of the terminal device succeeds according to the current network registration situation and the APN sent by the base station is different from the high-level configured APN, and the high-level configured APN is user configured or system configured; A registration module, used to attempt network registration using the high-level configuration APN; The registration module is further configured to use a local configuration APN mechanism to perform network registration if the high-level configuration APN does not exist, and the local configuration APN mechanism is to use the APN sent by the base station to try to register the network; The registration module is further configured to, if the high-level configuration APN exists and the network has not been registered using the high-level configuration APN, attempt network registration using the high-level configuration APN; The registration module is further configured to use the local configuration APN mechanism to perform network registration if the high-level configuration APN exists and the network registration has been attempted using the high-level configuration APN and the registration has failed.

8. The device according to claim 7, characterized in that The registration module is used to register with the network using the local configuration APN mechanism in the following manner: Attempting network registration using an empty access point APN; and if registration using the empty access point APN fails, using a local pre-configured APN to register with the network, the local pre-configured APN being a historical APN that is saved by the terminal device and has successfully registered with the network.

9. A terminal device, characterized in that: include: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute a network registration control method for a terminal device as described in any one of claims 1-6.

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