Network access method and device, equipment and storage medium

By counting the cumulative number of target messages, whether to re-access or prohibit access to the first network, the problem of failure of user equipment to attach or update failure in the network environment is solved, and the success rate and user experience of network access are improved.

CN120034935APending Publication Date: 2025-05-23BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311576487.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-23
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

When the user equipment is turned on, off the network or tracking area changes in the network environment, it often fails to attach or update, resulting in users being unable to access the Internet and affecting the user experience.

Method used

By counting the cumulative number of times the target message, if the cumulative number of times is within the preset threshold range, the first network is re-connected; if the cumulative number of times is not within the threshold range, the access to the first network is prohibited.

Benefits of technology

The success rate of accessing the first network is improved, and the situation where access to the first network is not possible due to temporary network problems is reduced, thereby improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120034935A_ABST
    Figure CN120034935A_ABST
Patent Text Reader

Abstract

The invention relates to a network access method and device, equipment and a storage medium, and the method comprises the steps: determining whether an access failure notification message is a target message or not in response to a first network access failure; in response to the fact that the notification message is the target message, determining the cumulative number of times that the notification message corresponding to the failure of accessing the first network is the target message; and re-accessing the first network in response to the fact that the accumulated number of times is within a preset number of times threshold range. Through the method, the probability of accessing the first network can be improved, and the situation that the first network cannot be accessed due to a temporary network problem is reduced, so that the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network technology, and in particular to a network access method and apparatus, device, and storage medium. Background Art

[0002] User Equipment (UE) in a network environment usually initiates an Attach process or Tracking Area Update (TAU) process to the network due to power-on, disconnection or change of Tracking Area (TA). However, due to the complex network environment, attachment failure or update failure often occurs, resulting in the user being unable to access the Internet in the Radio Access Technology (RAT) and having to search for networks in other RATs, which greatly affects the user experience. Therefore, how to improve the success rate of network access has become an urgent problem to be solved. Summary of the invention

[0003] The present invention provides a network access method, device, equipment, and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a network access method is provided, the method comprising:

[0005] In response to a failure to access the first network, determining whether a notification message of the access failure is a target message;

[0006] In response to the notification message being the target message, determining a cumulative number of times that the notification message corresponding to the failure to access the first network is the target message;

[0007] In response to the accumulated number of times being within a preset number threshold range, re-accessing the first network.

[0008] In some embodiments, in response to the accumulated number of times being within a preset number threshold range, re-accessing the first network includes:

[0009] In response to the accumulated number of times being within a preset number threshold range, re-accessing the first network within a first preset time period.

[0010] In some embodiments, the method further comprises:

[0011] In response to successfully accessing the first network, the accumulated number of notification messages corresponding to failures in accessing the first network being the target message is cleared to zero.

[0012] In some embodiments, the method further comprises:

[0013] In response to the notification message not being the target message, accessing a second network; wherein the network quality of the second network is lower than the network quality of the first network.

[0014] In some embodiments, the method further comprises:

[0015] In response to the accumulated number of times not being within the preset number threshold range, access to the first network is prohibited.

[0016] In some embodiments, in response to the accumulated number of times not being within the preset number threshold, prohibiting access to the first network includes:

[0017] In response to the accumulated number of times not being within the preset number threshold, marking the tracking area TA currently requesting to join the first network as a disabled tracking area;

[0018] Based on the identifier of the forbidden tracking area, access to the first network is prohibited.

[0019] In some embodiments, the method further comprises:

[0020] In response to detecting an instruction to clear the disable flag of the tracking area, re-accessing the first network.

[0021] In some embodiments, in response to detecting an instruction to clear a disable flag of the tracking area, re-accessing the first network includes:

[0022] In response to detecting the restart instruction, re-accessing the first network; or,

[0023] In response to detecting that the subscriber identity module SIM card is reset, re-accessing the first network; or,

[0024] In response to detecting that the duration for which the tracking area is identified as a disabled tracking area is greater than a second preset duration, re-accessing the first network.

[0025] According to a second aspect of an embodiment of the present disclosure, a network access device is provided, the device comprising:

[0026] A first determination module, configured to determine whether a notification message of access failure is a target message in response to a failure to access the first network;

[0027] A second determination module is configured to determine, in response to the notification message being the target message, a cumulative number of times that the notification message corresponding to the failure to access the first network is the target message;

[0028] The first access module is configured to re-access the first network in response to the accumulated number of times being within a preset number threshold range.

[0029] In some embodiments, the access module is further configured to re-access the first network within a first preset time period in response to the accumulated number of times being within a preset number threshold range.

[0030] In some embodiments, the apparatus further comprises:

[0031] The clearing module is configured to clear the cumulative number of times that the notification message corresponding to the failure to access the first network is the target message in response to the successful access to the first network.

[0032] In some embodiments, the apparatus further comprises:

[0033] The second access module is configured to access a second network in response to the notification message not being the target message; wherein the network quality of the second network is lower than the network quality of the first network.

[0034] In some embodiments, the apparatus further comprises:

[0035] The access prohibition module is configured to prohibit access to the first network in response to the accumulated number of times being not within the preset number threshold range.

[0036] In some embodiments, the access prohibition module is further configured to identify the tracking area TA currently requesting to join the first network as a disabled tracking area if the accumulated number of times is not within the preset number threshold; and prohibit access to the first network based on the identification of the disabled tracking area.

[0037] In some embodiments, the apparatus further comprises:

[0038] The third access module is configured to re-access the first network in response to detecting an instruction to clear the disable flag of the tracking area.

[0039] In some embodiments, the third access module is further configured to re-access the first network in response to detecting a restart instruction; or, re-access the first network in response to detecting an instruction that the user identity module SIM card is reset; or, re-access the first network in response to detecting that the duration for which the tracking area is identified as a disabled tracking area is greater than a second preset duration.

[0040] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:

[0041] processor;

[0042] a memory for storing processor-executable instructions;

[0043] Among them, the processor is configured to execute the network access method described in the first aspect above.

[0044] According to a fourth aspect of the embodiments of the present disclosure, there is provided a storage medium, including:

[0045] When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the network access method described in the first aspect above.

[0046] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0047] In the embodiments of the present disclosure, by counting the cumulative number of target messages and re-accessing the first network according to the cumulative number, rather than directly marking the Public Land Mobile Network (PLMN) as a disabled PLMN to disable the TA and prevent the user from accessing the first network after receiving the target message. Therefore, through the method of the embodiments of the present disclosure, the probability of accessing the first network can be increased, and the situation of being unable to access the first network due to temporary network problems can be reduced, thereby improving the user experience. It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0049] Figure 1 It is a schematic diagram of the interaction principle of a network access method in the related art.

[0050] Figure 2 It is a flowchart of a network access method shown in the embodiments of the present disclosure.

[0051] Figure 3 It is a flow example diagram of a network access method in the embodiments of the present disclosure.

[0052] Figure 4 It is an example diagram of a network access device in the embodiments of the present disclosure.

[0053] Figure 5 It is a block diagram of an electronic device shown in the embodiments of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0054] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0055] There is a network access method in the related art. Figure 1 It is a schematic diagram of the interaction principle of a network access method in the related technology, such as Figure 1 As shown, when the terminal initiates an attachment request or a tracking area update request to the network, the network will feedback the request result to the terminal. When the attachment request or the tracking area update request is rejected, and the rejection reason is that there is no suitable cell in the tracking area, the terminal adds the current tracking area TA1 to the prohibited list and cancels or restricts the service status in the mobility management module (EPS Mobility Management, EMM), so that the user cannot access the Internet. When the terminal is rejected by the network, it will still initiate an attachment request or a tracking area update request to the network, but because TA1 is added to the prohibited list, the message (SIB1 message) fed back by the network to the terminal is still a rejection message, and the terminal will not be able to join the current radio access technology (Radio Access Technology, RAT) network, and can only choose other RAT networks; or when the terminal moves to another tracking area TA2 that is not added to the prohibited list, the terminal can complete network access in TA2 and perform business processing on the Global System for Mobile Communication (GSM) / GSM Enhanced Data Rate for GSM Evolution (EDGE) radio access network (GSM EDGE Radio Access Network, GERAN), the Universal Mobile Telecommunications System (UMTS) terrestrial radio access network (UMTS Terrestrial Radio Access Network, UTRAN) or the New Radio-Radio Access Network (NR-RAN).

[0056] In the above scheme, as long as the terminal receives network feedback indicating that the rejection reason is that there is no suitable cell in the tracking area, the current tracking area will be added to the prohibited list. The user will not be able to access the Internet on the current RAT and can only search for other RAT networks, which increases the network search and access time and makes it easy to register on a network with poor quality, affecting the user's Internet experience.

[0057] In this regard, the present disclosure provides a network access method. Figure 2 A flow chart of a network access method shown in an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the following steps are included:

[0058] S11. In response to a failure to access the first network, determining whether a notification message of the access failure is a target message;

[0059] S12. In response to the notification message being the target message, determining a cumulative number of times that the notification message corresponding to the failure to access the first network is the target message;

[0060] S13: In response to the accumulated number of times being within a preset number threshold range, re-accessing the first network.

[0061] In the embodiments of the present disclosure, the network access method can be applied to electronic devices such as user equipment (UE), mobile devices, user terminals, mobile phones, tablet computers, personal digital assistants (PDAs), handheld devices, computing devices, vehicle-mounted devices, and wearable devices.

[0062] In an embodiment of the present disclosure, an electronic device initiates an access request to a first network, wherein the access request includes initiating an attachment process, initiating a tracking area update process, etc. The first network includes a network with a faster speed, higher stability, and better quality, such as a 5G network and a 4G network. After receiving the request, the first network feeds back the request result to the electronic device, and the request result includes successful access to the first network or failed access to the first network, and may also include a notification message of access failure.

[0063] In step S11, in response to failure to access the first network, the electronic device determines whether the notification message of the access failure is a target message, wherein the notification message of the access failure is the rejection reason fed back by the first network, including illegal terminal, public land mobile communication network not allowed, tracking area not allowed, network congestion, roaming not allowed in the tracking area, unauthorized closed subscriber group (CSG), no suitable cell in the tracking area, etc.; the target message includes rejection reasons such as tracking area not allowed, roaming not allowed in the tracking area, and no suitable cell in the tracking area.

[0064] In step S12, after the electronic device determines that the notification message is the target message, it determines that the notification message corresponding to the failure to access the first network is the cumulative number of target messages. In some embodiments, a corresponding counter can be set in the electronic device or the mobility management module (EPS Mobility Management, EMM) of the non-access stratum (NonAccess Stratum, NAS) according to the subscriber identity module (Subscriber Identity Module, SIM) or embedded SIM (Embedded-SIM, eSIM). Each time the target message is received, the counter is increased by 1, and the cumulative number of target messages is determined by the counter; in other embodiments, the cumulative number of target messages can be directly stored in the memory of the SIM card or the eSIM card, and the cumulative number of target messages is determined by the memory.

[0065] In step S13, in response to the cumulative number of times being within a preset number threshold, the electronic device re-accesses the first network, wherein the preset number threshold may be an empirical value, and when the cumulative number of target messages is within the preset number threshold, the electronic device will re-initiate an access request to the first network.

[0066] In the disclosed embodiment, when the electronic device fails to access the first network and the notification message fed back by the first network is a target message, the failure to access the first network may be due to a short-term network failure (temporary problem). At this time, re-initiating an access request to the first network can improve the success rate of accessing the first network; and when the electronic device fails to access the first network and the notification message fed back by the first network is not a target message, the failure to access the first network may be due to problems of the electronic device itself or non-temporary problems of the network environment. At this time, even if the access request is re-initiated to the first network, the first network cannot be successfully accessed. However, it should be noted that the reason for the failure to access the first network and the notification message being the target message may also be a problem of the electronic device itself or a non-temporary problem of the network environment.

[0067] In the embodiment of the present disclosure, when the cumulative number of times is within the preset number threshold range, re-initiating an access request to the first network can improve the success rate of accessing the first network, but when the cumulative number of times is not within the preset number threshold range, it means that access requests have been initiated to the first network multiple times but have all been rejected. At this time, the rejection may not be due to a temporary network problem, but may be due to a non-temporary problem of the electronic device itself or the network environment. Therefore, there is no need to initiate an access request to the first network again.

[0068] It can be understood that the embodiments of the present disclosure count the cumulative number of target messages and re-access the first network according to the cumulative number, rather than directly marking the PLMN as a disabled PLMN to disable TA after receiving the target message, thereby preventing the user from accessing the first network. Therefore, the method of the embodiments of the present disclosure can increase the probability of accessing the first network and reduce the situation where the first network cannot be accessed due to temporary network problems, thereby improving the user experience.

[0069] In some embodiments, in response to the accumulated number of times being within a preset number threshold range, re-accessing the first network includes:

[0070] In response to the accumulated number of times being within a preset number threshold range, re-accessing the first network within a first preset time period.

[0071] In the embodiment of the present disclosure, in response to the cumulative number of times being within the preset number threshold range, the first network is re-accessed within a first preset time period, wherein the first preset time period may be an empirical value. As mentioned above, the reason why the received notification message is a target message may be a temporary network problem, and usually a temporary network problem does not exist for a long time. Therefore, the embodiment of the present disclosure limits the re-access to the first network within the first preset time period, which enables the electronic device to quickly re-access the first network, thereby improving the user experience.

[0072] In some embodiments, the method further comprises:

[0073] In response to successfully accessing the first network, the accumulated number of notification messages corresponding to failures in accessing the first network being the target message is cleared to zero.

[0074] In an embodiment of the present disclosure, in response to successfully accessing the first network, the notification message corresponding to the failure to access the first network is cleared as the cumulative number of target messages. In some embodiments, the counters corresponding to the SIM card and the eSIM card may be set to zero; in other embodiments, the memory storing the cumulative number of target messages may be cleared.

[0075] In the embodiment of the present disclosure, re-access to the first network is allowed only when the cumulative number of target messages is within the preset number threshold, and if the cumulative number of target messages is not cleared after the first network is successfully accessed, the cumulative number of target messages may accumulate the counting results of multiple access rounds, and the cumulative number is more likely to exceed the preset number threshold, so that in the subsequent rounds of re-access, it is no longer possible to re-access the first network according to the cumulative number. Therefore, the method of the embodiment of the present disclosure can improve the success rate of accessing the first network, and is highly intelligent.

[0076] In some embodiments, the method further comprises:

[0077] In response to the notification message not being the target message, accessing a second network; wherein the network quality of the second network is lower than the network quality of the first network.

[0078] In an embodiment of the present disclosure, in response to a notification message not being a target message, the electronic device will access a second network whose network quality is lower than that of the first network, wherein the network quality includes network performance such as network operation speed, network signal strength, and network stability, for example, the first network is a 4G / 5G network, and the second network may be a 3G network or a 2G network; the first network is a 3G network, and the second network may be a 2G network. In some embodiments, the electronic device will access the second network according to the 3rd Generation Partnership Project (3GPP) protocol, wherein 3GPP is mainly to formulate specifications for the third generation technology based on the GSM core network and the Universal Terrestrial Radio Access (UTRA) as the wireless interface.

[0079] In the embodiment of the present disclosure, as mentioned above, when the notification message received by the electronic device is not a target message, access to the first network may fail due to a non-temporary problem with the first network. Therefore, in the embodiment of the present disclosure, the electronic device accesses the second network when the notification message is not a target message, so that the user of the electronic device can still use the network, which is highly intelligent.

[0080] In some embodiments, the method further comprises:

[0081] In response to the accumulated number of times not being within the preset number threshold range, access to the first network is prohibited.

[0082] In the embodiment of the present disclosure, in response to the cumulative number of times not being within the preset number threshold range, that is, the cumulative number of times exceeds the preset number threshold, access to the first network is prohibited. As mentioned above, when the cumulative number of times is not within the preset number threshold range, it means that multiple access requests have been initiated to the first network, but all have been rejected. At this time, the rejection may not be due to a temporary network problem, so there is no need to initiate an access request to the first network again. It should be noted that in the embodiment of the present disclosure, the electronic device is prohibited from accessing the first network, but can access a second network whose network quality is lower than that of the first network according to the needs of the user.

[0083] In the embodiment of the present disclosure, prohibiting access to the first network may be that the electronic device identifies the first network as a prohibited access network; it may also be that the electronic device identifies a tracking area or a cell accessing the first network as a prohibited tracking area or a prohibited cell.

[0084] In the disclosed embodiment, it is possible to re-access or prohibit access to the first network according to the accumulated number of target messages, which is highly intelligent and the solution is simple and effective.

[0085] In some embodiments, in response to the accumulated number of times not being within the preset number threshold, prohibiting access to the first network includes:

[0086] In response to the accumulated number of times not being within the preset number threshold, marking the tracking area TA currently requesting to join the first network as a disabled tracking area;

[0087] Based on the identifier of the forbidden tracking area, access to the first network is prohibited.

[0088] In the embodiment of the present disclosure, in response to the cumulative number of times not being within the preset number threshold range, the electronic device identifies the tracking area TA currently requested to join the first network as a disabled tracking area, wherein TA is a new concept established by the Long Term Evolution (LTE) / System Architecture Evolution (SAE) system for UE location management, and is defined as a free movement area where the UE does not need to update the location service. A cell is an area that provides wireless communication services to users and is the basic component unit of a wireless network, and TA is a cell-level configuration. Multiple cells can be configured with the same TA, and a cell can only belong to one TA. In the embodiment of the present disclosure, the electronic device identifies TA as a disabled tracking area, which may be to add TA to a disabled TA list, wherein when TA is in the disabled TA list, the corresponding PLMN is also added to the disabled PLMN list, so that the first network cannot be accessed; it may also be to independently set an unavailable mark for the tracking area TA, and when the electronic device is in an unavailable tracking area, it will not be able to access the first network.

[0089] The disclosed embodiment can prevent an electronic device from initiating an access request to a first network when the electronic device is located in a disabled tracking area according to an identifier of the disabled tracking area, thereby reducing invalid requests and saving power consumption of the electronic device.

[0090] In some embodiments, the method further comprises:

[0091] In response to detecting an instruction to clear the disable flag of the tracking area, re-accessing the first network.

[0092] In the disclosed embodiment, the electronic device can re-access the first network in response to detecting an instruction to clear the disable flag of the tracking area, which can reduce problems such as the inability to use the first network due to long-term disablement, and support reconnection after clearing, which can improve the experience.

[0093] In some embodiments, in response to detecting an instruction to clear a disable flag of the tracking area, re-accessing the first network includes:

[0094] In response to detecting the restart instruction, re-accessing the first network; or,

[0095] In response to detecting that the subscriber identity module SIM card is reset, re-accessing the first network; or,

[0096] In response to detecting that the duration for which the tracking area is identified as a disabled tracking area is greater than a second preset duration, re-accessing the first network.

[0097] In the embodiment of the present disclosure, as mentioned above, the inability to access the first network may be caused by a fault of the electronic device itself, and after the electronic device is restarted or the SIM card is reset, the fault of the electronic device itself may be cleared, and thus the embodiment of the present disclosure can allow re-access to the first network after detecting a restart instruction or an instruction to reset the SIM card; in addition, as mentioned above, the inability to access the first network may also be caused by a non-temporary network failure, and the network usually has troubleshooting measures, and thus the embodiment of the present disclosure allows re-access to the first network after the tracking area is marked as a disabled tracking area for a period longer than a second preset period; wherein the second preset period may be 12 to 24 hours, and the network can usually be repaired within this period.

[0098] It should be noted that in the embodiment of the present disclosure, after the electronic device detects a restart instruction, a SIM card reset instruction, or the duration of the tracking area mark as a disabled tracking area is greater than the second preset duration, the disable mark of the tracking area can be cleared to enable the electronic device to reconnect to the first network.

[0099] It can be understood that in the embodiment of the present disclosure, after detecting a restart instruction, a SIM card reset instruction, or a tracking area marked as a disabled tracking area for a period longer than a second preset period, reconnection to the first network is allowed, which is highly intelligent.

[0100] Figure 3 FIG. 1 is a flowchart of a network access method according to an embodiment of the present disclosure. Figure 3 As shown, the following steps are included:

[0101] S21. The phone is just turned on or the 4 / 5G connection is disconnected and the counter is reset to zero.

[0102] In the embodiment of the present disclosure, a mobile phone is used as an electronic device, and the counter counts the cumulative number of target messages as an example. The mobile phone is just turned on, which means that the mobile phone is restarted after being turned off, and the mobile phone is not connected to the network when it is just turned on; the 4 / 5G connection is disconnected, which means that the connection to the 4 / 5G network was successful before, but the mobile phone may be disconnected from the network due to network instability or the mobile phone is moved to an area without service area, or the network connection is disconnected due to the removal of the mobile phone SIM card, and the mobile phone needs to connect to the network at this time; in the embodiment of the present disclosure, in both cases, the counter is reset to zero and step S22 is performed. It should be noted that in the embodiment of the present disclosure, when the tracking area prohibition list is cleared periodically, the mobile phone will also reset the counter to zero, where the period is, for example, a value between 12-24 hours, that is, in the embodiment of the present disclosure, when the time after the tracking area is added to the prohibition list is greater than the second preset time, the electronic device will also reset the cumulative number of times to zero, so that the electronic device can re-access the first network.

[0103] S22: Initiate the attachment process.

[0104] In the embodiment of the present disclosure, since the mobile phone needs to connect to the network in the above steps, the mobile phone will initiate an attachment process after detecting the need for networking, that is, initiate a network access request to the first network of the embodiment of the present disclosure, wherein the network access request includes initiating an attachment process or a tracking area update process, etc.

[0105] S23: Is the connection successful? If so, go to step S24; if not, go to step S26.

[0106] In the embodiment of the present disclosure, after the first network receives the access request sent by the electronic device, it will feedback the request result to the electronic device. A successful connection indicates that the access to the first network is successful, and the first network feedbacks the request result of the successful access to the first network, and executes step S24; an unsuccessful connection indicates that the access to the first network fails, and the first network feedbacks the request result of the failed access to the first network to the electronic device, and carries a notification message of the failed access in the request result, or sends a notification message of the failed access to the electronic device again, and executes step S26.

[0107] S24, network registration is successful.

[0108] In the embodiment of the present disclosure, if the connection is successful, it means that the first network agrees to allow the electronic device to access, that is, the network registration is completed, and the electronic device can perform service processing based on the first network.

[0109] S25. Set the counter to zero.

[0110] In the embodiment of the present disclosure, in response to successful access to the first network, that is, successful network registration, setting the counter to zero is equivalent to clearing the accumulated number of target messages to zero.

[0111] S26: Whether the rejection reason is that there is no suitable cell in the tracking area, if so, execute step S27; if not, execute step S30.

[0112] In the embodiment of the present disclosure, the reason for rejection is a notification message of access failure, and the reason for rejection is that there is no suitable cell in the tracking area as the target message. If the reason for access failure fed back by the first network received by the electronic device is that there is no suitable cell in the tracking area, that is, when the received notification message is a target message, step S27 is executed; if the reason for access failure fed back by the first network received by the electronic device is not that there is no suitable cell in the tracking area, that is, when the received notification message is not a target message, step S30 is executed.

[0113] S27, the counter increases by one.

[0114] In the disclosed embodiment, a counter is used to count the cumulative number of target messages. Therefore, when the rejection reason is that there is no suitable cell in the tracking area, that is, after receiving the target message, the counter needs to be increased by one.

[0115] S28: Check if the counter is over the limit. If so, go to step S29; if not, go to step S31.

[0116] In the embodiment of the present disclosure, after receiving a message indicating that the reason for rejection is that there is no suitable cell in the tracking area and incrementing the counter by one, that is, after determining the cumulative number of target messages, it is necessary to determine whether the counter exceeds the limit, wherein the limit is equivalent to a preset number threshold. If the counter exceeds the limit after incrementing by one, that is, the cumulative number of target messages is not within the preset number threshold, step S29 is executed; if the counter does not exceed the limit after incrementing by one, that is, the cumulative number of target messages is within the preset number threshold, step S31 is executed.

[0117] S29. The tracking area is added to the prohibited list.

[0118] In the disclosed embodiment, when the counter exceeds the limit, the electronic device adds the current tracking area to a prohibited list. Adding the tracking area to the prohibited list is equivalent to marking the tracking area TA as a disabled tracking area. The electronic device cannot access the first network. At this time, it returns to step S21 and re-accesses the first network. It should be noted that the reason for re-accessing the first network is that the prohibited list is cleared, and the timing of clearing the prohibited list includes shutting down the application terminal (electronic device), removing the SIM card of the terminal (electronic device), or waiting for the tracking area prohibited list to be cleared periodically; if the prohibited list is not cleared, a second network with a network quality lower than that of the first network can be searched according to user needs, or the first network can be re-accessed after the tracking area prohibited list is cleared.

[0119] S30: Execute 3GPP process.

[0120] In the disclosed embodiment, when the rejection reason received by the electronic device is not that there is no suitable cell in the tracking area, that is, when the received notification message is not a target message, the 3GPP process will be executed, which is equivalent to accessing a second network whose network quality is lower than that of the first network.

[0121] S31. Wait for ten seconds.

[0122] In the disclosed embodiment, ten seconds is equivalent to the first preset time length. If the counter is not exceeded, the electronic device waits for ten seconds and then re-initiates the attachment process, that is, step S22 is re-executed within ten seconds, which is equivalent to the cumulative number of target messages being within the preset number threshold range, and re-accessing the first network within the first preset time length.

[0123] The disclosed embodiment determines whether to re-initiate the attachment process by judging whether the counter that counts the cumulative number of rejection reasons received due to no suitable cells in the tracking area exceeds the limit, thereby increasing the probability of accessing the network and reducing the situation where the network cannot be accessed due to temporary network problems, thereby improving the user experience.

[0124] It should be noted that in the above method of the specific implementation mode, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0125] Figure 4 is an example diagram of a network access device in an embodiment of the present disclosure, referring to Figure 4 , the device comprises:

[0126] A first determination module 101 is configured to determine, in response to a failure to access the first network, whether a notification message of the access failure is a target message;

[0127] A second determining module 102 is configured to determine, in response to the notification message being the target message, a cumulative number of times that the notification message corresponding to the failure to access the first network is the target message;

[0128] The first access module 103 is configured to re-access the first network in response to the accumulated number of times being within a preset number threshold range.

[0129] In some embodiments, the first access module 103 is further configured to re-access the first network within a first preset time period in response to the accumulated number of times being within a preset number threshold range.

[0130] In some embodiments, the apparatus further comprises:

[0131] The clearing module 104 is configured to clear the cumulative number of times that the notification message corresponding to the failure to access the first network is the target message in response to the success of accessing the first network.

[0132] In some embodiments, the apparatus further comprises:

[0133] The second access module 105 is configured to access a second network in response to the notification message not being the target message; wherein the network quality of the second network is lower than the network quality of the first network.

[0134] In some embodiments, the apparatus further comprises:

[0135] The access prohibition module 106 is configured to prohibit access to the first network in response to the accumulated number of times being not within the preset number threshold range.

[0136] In some embodiments, the access prohibition module 106 is further configured to identify the tracking area TA currently requesting to join the first network as a disabled tracking area in response to the cumulative number of times not being within the preset number threshold range; and prohibit access to the first network based on the identification of the disabled tracking area.

[0137] In some embodiments, the apparatus further comprises:

[0138] The third access module 107 is configured to re-access the first network in response to detecting an instruction to clear the disable flag of the tracking area.

[0139] In some embodiments, the third access module 107 is also configured to re-access the first network in response to detecting a restart instruction; or, re-access the first network in response to detecting an instruction that the user identity module SIM card is reset; or, re-access the first network in response to detecting that the duration of identifying the tracking area as a disabled tracking area is greater than a second preset duration.

[0140] about Figure 4 The specific manner in which each module performs operations in the device in the illustrated embodiment has been described in detail in the embodiment of the method, and will not be elaborated on here.

[0141] Figure 5 8 is a block diagram of an electronic device 800 shown in an embodiment of the present disclosure. For example, the electronic device 800 may be a mobile phone, a mobile computer, a smart phone, etc.

[0142] Reference Figure 5, the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0143] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0144] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0145] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0146] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0147] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0148] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0149] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0150] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0151] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0152] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0153] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the aforementioned network access method.

[0154] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims above.

[0155] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A network access method, It is characterized in that The method comprises: In response to a failure to access the first network, determining whether a notification message of the access failure is a target message; In response to the notification message being the target message, determining a cumulative number of times that the notification message corresponding to the failure to access the first network is the target message; In response to the accumulated number of times being within a preset number threshold range, re-accessing the first network.

2. The method according to claim 1, It is characterized in that In response to the accumulated number of times being within a preset number threshold, re-accessing the first network includes: In response to the accumulated number of times being within a preset number threshold range, re-accessing the first network within a first preset time period.

3. The method according to claim 1, It is characterized in that The method further comprises: In response to successfully accessing the first network, the accumulated number of notification messages corresponding to failures in accessing the first network being the target message is cleared to zero.

4. The method according to claim 1, It is characterized in that The method further comprises: In response to the notification message not being the target message, accessing a second network; wherein the network quality of the second network is lower than the network quality of the first network.

5. The method according to claim 1, It is characterized in that The method further comprises: In response to the accumulated number of times not being within the preset number threshold range, access to the first network is prohibited.

6. The method according to claim 5, It is characterized in that In response to the accumulated number of times not being within the preset number threshold, prohibiting access to the first network includes: In response to the accumulated number of times not being within the preset number threshold, marking the tracking area TA currently requesting to join the first network as a disabled tracking area; Based on the identifier of the forbidden tracking area, access to the first network is prohibited.

7. The method according to claim 6, It is characterized in that The method further comprises: In response to detecting an instruction to clear the disable flag of the tracking area, re-accessing the first network.

8. The method according to claim 7, It is characterized in that The step of re-accessing the first network in response to detecting an instruction to clear a disable flag of the tracking area comprises: In response to detecting the restart instruction, re-accessing the first network; or, In response to detecting that the subscriber identity module SIM card is reset, re-accessing the first network; or, In response to detecting that the duration for which the tracking area is identified as a disabled tracking area is greater than a second preset duration, re-accessing the first network.

9. A network access device, It is characterized in that The device comprises: A first determination module, configured to determine whether a notification message of access failure is a target message in response to a failure to access the first network; A second determination module is configured to determine, in response to the notification message being the target message, a cumulative number of times that the notification message corresponding to the failure to access the first network is the target message; The first access module is configured to re-access the first network in response to the accumulated number of times being within a preset number threshold range.

10. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the network access method according to any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium, It is characterized in that When the instructions in the storage medium are executed by a processor in an electronic device, the electronic device is enabled to execute the network access method according to any one of claims 1 to 8.