CN116744403A - Network access method and electronic equipment - Google Patents

Network access method and electronic equipment Download PDF

Info

Publication number
CN116744403A
CN116744403A CN202211403132.XA CN202211403132A CN116744403A CN 116744403 A CN116744403 A CN 116744403A CN 202211403132 A CN202211403132 A CN 202211403132A CN 116744403 A CN116744403 A CN 116744403A
Authority
CN
China
Prior art keywords
retry
network
closing
time length
data network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211403132.XA
Other languages
Chinese (zh)
Inventor
许子昂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211403132.XA priority Critical patent/CN116744403A/en
Publication of CN116744403A publication Critical patent/CN116744403A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a network access method and electronic equipment, and relates to the technical field of communication. The network access method of the application comprises the following steps: responding to the operation of the user for accessing the network, and sending a data activation request to 5G network equipment; when activation failure information returned by the 5G network equipment is received, detecting whether the electronic equipment meets a preset closing condition according to the activation failure information; when the closing condition is met, closing the 5G mobile data network mode of the electronic equipment and determining the closing time length of the 5G mobile data network mode of the electronic equipment according to the back-off time length; and accessing the 4G mobile data network in the closing time period. By adopting the method in the application, the 5G mobile data network mode can be closed in time and the 4G mobile data network can be accessed under the condition that the electronic equipment is refused to be activated by the 5G network equipment, so that the electronic equipment can be ensured to normally access the data network and the user can be ensured to normally access the internet through the electronic equipment.

Description

Network access method and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network access method and an electronic device.
Background
The 5G network refers to a fifth generation network in the development of a mobile communication network, and the 5G network shows a more enhanced function in the practical application process compared with the previous four generation mobile network, and theoretically, the transmission speed can reach tens of GB (gigabytes) per second, which is hundreds of times that of the 4G mobile network.
However, when the mobile terminal initiates a data activation request to the 5GC (5G Core network) side, a problem of data activation failure may occur, which causes that the mobile terminal cannot normally access the network, and affects the user to access the internet through the mobile network.
Disclosure of Invention
In order to solve the technical problems, the application provides a network access method and electronic equipment, wherein the electronic equipment can close a 5G mobile data network mode in time under the condition that the electronic equipment is refused to be activated by 5G network equipment, so that the electronic equipment can access a 4G mobile data network within a period of closing the 5G mobile data network mode, the electronic equipment can be ensured to normally access the data network, and a user can be ensured to normally surf the internet through the electronic equipment.
In a first aspect, the present application provides a method for network access, applied to an electronic device, including: responding to the operation of the user for accessing the network, and sending a data activation request to 5G network equipment; when activation failure information returned by the 5G network equipment is received, detecting whether the electronic equipment meets a preset closing condition according to the activation failure information, wherein the activation failure information comprises a back-off time length; when the electronic equipment is determined to meet the closing condition, closing the 5G mobile data network mode of the electronic equipment and determining the closing time length of the 5G mobile data network mode of the electronic equipment according to the back-off time length; and accessing the 4G mobile data network in the closing time period.
Thus, the electronic device can be a mobile phone, a tablet computer, a bracelet and other devices. The electronic equipment responds to the operation of accessing the network of the user, sends a data activation request to the 5G network equipment, and when receiving activation failure information returned by the 5G network equipment, if the electronic equipment determines that the closing condition is met, the electronic equipment closes the 5G mobile data network mode and accesses the 4G mobile data network within the closing time, so that the electronic equipment accesses the data network within the closing time, and the user can use the electronic equipment to access the Internet. In this example, after the electronic device determines that the electronic device meets the closing condition, the 5G mobile data network mode is closed, so that the problem that the electronic device cannot access any data network due to the fact that the electronic device waits for the next data activation request in the rollback time period is avoided in time.
According to a first aspect, determining a closing duration for closing a 5G mobile data network mode of an electronic device according to a backoff duration includes: generating retry time length according to the back-off time length, wherein the retry time length is used for indicating interval time length for reinitiating a data activation request to the 5G network equipment; and determining the closing time length according to the retry time length. In this way, after receiving the backoff time, the electronic device can determine the time for re-requesting data activation according to the backoff time, so as to avoid the electronic device from continuously requesting data activation from the 5G network device, and meanwhile, based on the closing time determined by the retry time, the closing time is not a fixed value, but is changed according to the retry time, so that the flexibility of the time for the electronic device to close the 5G mobile data network mode is improved.
According to a first aspect, determining a closing duration from a retry duration includes: acquiring a time length matched with the retry time length; and determining the closing time length according to the acquired time length and the first corresponding relation, wherein the first corresponding relation is used for indicating the relation between the time length and the closing time length. In this way, each time period has a corresponding closing time period, and the closing time period can be rapidly determined by acquiring the time period matched with the retry time period, so that the speed of determining the closing time period is improved.
According to a first aspect, the time period comprises: the first, second, third and fourth time periods; acquiring a time period matched with the retry time period, including: when the retry duration is detected to be smaller than the first threshold value, determining that the first time period is matched with the retry duration; when the retry time period is detected to be greater than or equal to the first threshold value and less than the second threshold value, determining that the second time period is matched with the retry time period; when the retry time period is detected to be greater than or equal to the second threshold value and less than the third threshold value, determining that the third time period is matched with the retry time period; and when the retry time period is detected to be greater than or equal to the third threshold value, determining that the fourth time period is matched with the retry time period. In this way, through three preset thresholds, the duration in which the retry duration is located can be determined, and the retry duration has four durations and 4 closing durations, so that the problem that the closing duration is too long or too short can be avoided.
According to a first aspect, determining a closing duration from a retry duration includes: when the retry time length is detected to be smaller than or equal to the preset lower limit time length, the lower limit time length is taken as the closing time length; when the retry time length is detected to be longer than the lower limit time length and shorter than the preset upper limit time length, the retry time length is taken as the closing time length; when the retry time period is detected to be greater than or equal to the upper limit time period, the upper limit time period is taken as the closing time period. In this way, the retry time length is taken as the closing time length, so that the closing time lengths corresponding to different retry time lengths are different, and the flexibility of the closing time length is increased; meanwhile, as the 5G mobile data network mode of opening and closing the electronic equipment needs to consume the cost of the electronic equipment, the retry time length is compared with the lower limit time length, and the problem that the cost of the electronic equipment is increased due to the fact that the closing time length determined based on the retry time length is too short can be avoided; comparing the retry time length with the upper limit time length can also avoid the problem that the electronic equipment cannot access the 5G mobile data network for a long time due to the overlong time of closing the 5G mobile data network mode of the electronic equipment.
According to a first aspect, determining a closing duration from a retry duration includes: the retry duration is taken as the closing duration. In this way, the retry time length is taken as the closing time length, so that the closing time lengths corresponding to different retry time lengths are different, and the flexibility of the closing time length is increased.
According to a first aspect, detecting whether the electronic device meets a preset shutdown condition according to activation failure information includes: acquiring retry time according to the rollback time; detecting whether the retry period is greater than a fourth threshold; when the retry time is detected to be longer than a fourth threshold, detecting whether the network system of the electronic equipment is a 5G new air interface NR system; and when the network system of the electronic equipment is detected to belong to the 5G NR system, determining that the closing condition is met. Therefore, the expense of the electronic equipment is consumed when the 5G mobile data network mode of the electronic equipment is opened and closed, and when the retry time is too short, the 5G mobile data network mode of the electronic equipment does not need to be closed, so that the unnecessary expense of the electronic equipment is avoided; when the retry time is longer than the fourth threshold and is in the 5G NR mode, the closing condition is determined to be met, and the problem that the electronic equipment cannot normally use the data network due to the fact that the data network mode is closed in other network modes is avoided.
According to the first aspect, the fourth threshold value ranges from 10 seconds to 40 seconds.
According to a first aspect, detecting whether the electronic device meets a preset shutdown condition according to activation failure information includes: acquiring a failure cause value in the activation failure information; when the failure cause value is detected as the first cause value and the number of times the first cause value is detected to be received exceeds the number threshold, it is determined that the shutdown condition is satisfied. In this way, the electronic device can close the 5G mobile data network mode of the electronic device according to the specific failure cause value, so as to avoid the problem of frequently closing the 5G mobile data network mode of the electronic device.
According to a first aspect, turning off a 5G mobile data network mode of an electronic device, comprising: the first priority of the 5G mobile data network mode in the modem of the electronic device is adjusted to a second priority, wherein the second priority is lower than a third priority of the 4G mobile data network mode, and the third priority is lower than the first priority. In this way, since the data network with high priority is preferentially searched by the electronic device, the electronic device changes the priority of the 5G mobile data network mode to the second priority, so that the electronic device preferentially searches the 4G mobile data network, and the electronic device can access the 4G mobile data network preferentially.
According to a first aspect, turning off a 5G mobile data network mode of an electronic device, comprising: the modem of the electronic device is turned off to search for the functionality of the 5G mobile data network. Therefore, the electronic equipment directly closes the 5G mobile data network function of the electronic equipment, and the closing mode is simple.
According to a first aspect, detecting whether the activation failure information satisfies a preset shutdown condition includes: when the backoff is detected to be longer than 0, it is determined that the shutdown condition is satisfied. Thus, the electronic device can timely turn off the 5G mobile data network mode of the electronic device.
According to a first aspect, operations of a user's access network comprise: a power-on operation, an operation to turn on a mobile data network, or an operation to turn off a flight mode.
In a second aspect, the present application provides an electronic device comprising: a memory and a processor, the memory coupled to the processor; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the first aspect and a method of network access corresponding to any implementation manner of the first aspect.
Any implementation manner of the second aspect and the second aspect corresponds to any implementation manner of the first aspect and the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation manner of the second aspect may be referred to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which are not described herein.
In a third aspect, the present application provides a computer readable medium storing a computer program, which when executed on an electronic device, causes the electronic device to perform a method of network access according to any one of the implementations of the first aspect and the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a scenario in which a handset is connected to a 5G network, which is exemplarily shown;
FIG. 2 is an interaction diagram illustrating a 5G network device rejecting a data activation request of a handset;
fig. 3 is a schematic structural view of an exemplary illustrated electronic device;
FIG. 4 is a software architecture diagram of an exemplary electronic device;
FIG. 5 is a flow chart illustrating a method of network access;
FIG. 6 is a schematic diagram illustrating interaction of components in handset A with a 5G network device;
fig. 7 is a flow chart illustrating another method of network access;
fig. 8 is a schematic diagram of a scenario in which a handset is connected to a 4G network, which is illustrated as an example.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms first and second and the like in the description and in the claims of embodiments of the application, are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, the first target object and the second target object, etc., are used to distinguish between different target objects, and are not used to describe a particular order of target objects.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, the plurality of processing units refers to two or more processing units; the plurality of systems means two or more systems.
The 5G NR (New Radio, "New Radio/New air interface") is a New Radio access technology developed by the third generation partnership project (3rdgenerationpartnership project,3GPP) for 5G mobile communication networks, which is a global universal standard for air interfaces of 5G networks. Currently, the networking modes of the 5G system include 5G NSA (Non-stand alone networking) and 5G SA (independent networking). The 5G NSA networking mode needs to use a 4G base station and a 4G core network, uses 4G as an anchor point of a control plane, and meets the requirement that aggressive operators utilize the existing LTE network resources to realize rapid deployment of 5G NR. While SA networking is independent of 4G networks, a network needs to be rebuilt.
The network architecture of the 5G network includes a RAN (Radio Access Network ), a bearer network, and a core network. The device of the radio access network is typically an operator's base station (e.g., a gNB). The bearing network is used for bearing data and converging the data. The bearer network device may be a PTN (Packet Transport Network ), OTN (Optical Transport Network, optical transport network). The 5GC is used for processing and routing of data. The 5GC includes: AMF (Access and Mobility Management Function ), SMF (Session Management Function, session management function), UPF (user plane function), PCF (Policy Control function ), UDM (Unified Data Management, unified Data management), DN (Data Network)
A User Equipment (UE) sends a data activation request, i.e. a request to establish a PDU (Protocol Data Unit ) session, to a core network via a radio access network. A PDU session is a pathway between a user equipment and an external network for enabling data interaction with an external data network (DNN). The process of the user equipment requesting data activation from the 5GC may include:
1. the UE initiates a PDU session request to the SMF through the base station and the AMF.
2. After receiving the PDU session request, the SMF acquires the subscription data of the UE from the UDM.
3. After receiving the PDU session request, the SMF obtains policy rules for that type of user from the PCF.
4. After receiving the PDU session request, the SMF establishes a session with the UPF for user plane connection.
5. The SMF initiates a radio resource request to the base station.
6. After receiving the radio resource request, the base station sets corresponding radio resources and feeds back the setting to the SMF.
7. The SMF updates the UPF upon receiving the reply to establish a tunnel of the UPF to the base station.
Through the above steps, the UE obtains a tunnel from the UE to the UPF. During PDU session establishment, the corresponding user plane connection (UE to DN) will be activated.
The UE sends a data activation request to the 5G core network, and when the data activation request sent by the UE is not received correctly by the 5G network, or due to congestion or other network problems in the 5G network, the 5G network rejects the data activation request of the UE and returns activation failure information to the UE, where the activation failure information generally carries a backoff duration (i.e., a backoff time). The UE will not send a data activation request to the 5G network any more for the backoff period. That is, the UE does not request data activation from the 5G network for the backoff period, resulting in the UE not being able to use the network normally.
Fig. 1 is a schematic diagram of a scenario in which a handset is connected to a 5G network, which is shown as an example. As shown in fig. 1a, a data network switch 102 is displayed in a display interface 101, a user clicks the data network switch 102, and the mobile phone requests data activation from the 5G core network, that is, sends a data activation request to the 5G network device, in response to a clicking operation of the user. It should be noted that, before the user clicks the data network switch 102, the mobile phone has turned on the 5G mobile data network mode, and the status bar in fig. 1a shows a signal of 5G. The mobile phone requests data activation to the core network, the 5G core network detects a network problem when processing the data activation request, refuses the data activation request of the mobile phone, and returns activation failure information to the mobile phone, wherein the activation failure information comprises a rollback time (such as 8 minutes).
Fig. 2 is an interaction diagram illustrating that a 5G network device denies a data activation request of a handset.
In step 201, the handset sends a data activation request to the 5G network device through a modem processor (modem) in the handset. The 5G network devices in this example include devices in a 5G network architecture.
Step 202,5G the network device refuses the data activation request and returns activation failure information to the modem of handset a. The activation failure information includes a backoff duration.
In step 203, the modem of the mobile phone a generates a retry duration according to the backoff duration. The retry duration may be equal to the backoff duration or greater than the backoff duration. The retry time is used to indicate an interval time for the modem to resend the data activation request, for example, the backoff time is 8 minutes, and the generated retry time is 12 minutes according to the backoff time.
In step 204, the modem of the mobile phone a stops sending the data activation request to the 5G network device during the retry period. For example, the retry time period generated by the modem is 12 minutes, and the modem will send the data activation request to the 5G network device again after 12 minutes. The user opens the browser separately at 9 point 01, and the mobile phone browser responds to the website www.XXX.com input by the user, and connects the network corresponding to the website, and the mobile phone does not establish a PDU session and cannot open the web page because the data activation request of the mobile phone fails, as shown in fig. 1 b. The mobile phone interface 103 displays a connection timeout, and cannot open a web page.
In step 205, after the retry duration is reached, the modem of the mobile phone a sends a data activation request to the 5G network device. If the 5G network device refuses the data activation request sent by the mobile phone A again, the steps 201 to 205 are executed again, and if the 5G network device accepts the data activation request sent by the mobile phone A, a PDU session is established, and the data activation is completed.
As can be seen, when the 5G network device refuses the data activation request of the electronic device, the electronic device cannot access the mobile data network within the retry duration, which reduces the capability of the electronic device to access the data network.
The embodiment of the application provides a network access method, which is executed by electronic equipment, wherein the electronic equipment detects whether to close a 5G mobile data network mode of the electronic equipment or not and determines the closing time length of the 5G mobile data network mode of the electronic equipment through the back-off time length in activation failure information fed back by the 5G network equipment. The electronic equipment is accessed to the 4G mobile data network in the closing time period, and the 4G mobile data network is accessed in the period of closing the 5G mobile data network mode, so that the electronic equipment can use the data network, can access websites, and the network access function of the electronic equipment used by a user is improved.
Fig. 3 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application. It should be understood that fig. 3 illustrates electronic device 100 as just one example of an electronic device, and that electronic device 100 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 3 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a Modem processor (Modem), a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc.
In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
In some embodiments, the modem may send a data activation request to the 5G network device and receive activation failure information fed back by the 5G network device, where the activation failure information includes a backoff duration.
Fig. 4 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application.
The layered architecture of the electronic device 100 divides the software into several layers, each with a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into three layers, an application layer, an application framework layer and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 4, the application package may include video, music, map, WLAN, calendar, short message, gallery, call, navigation, bluetooth, camera, etc. applications.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 4, the application framework layer may include a telephony manager, a window manager, a resource manager, a notification manager, a content provider, a view system, and the like.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.). The telephony manager may also be configured to obtain a retry duration from the modem, and determine a duration to turn off the 5G mobile data network mode of the electronic device based on the retry duration. The telephony manager may also obtain the network system in which it is located from the modem.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
It will be appreciated that the layers and components contained in the layers in the software structure shown in fig. 4 do not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer layers than shown and may include more or fewer components per layer, as the application is not limited.
Fig. 5 is a flow chart illustrating a method of network access. The method is performed by an electronic device, which may be a device having a 5G mobile data network mode, such as a smart phone, a bracelet, a notebook, a tablet, etc. The electronic device in this example is exemplified by a mobile phone. The network access method comprises the following steps:
step 501: the electronic device sends a data activation request to the 5G network device in response to the operation of the user to access the network.
Specifically, the operation of the access network of the user may include: a power-on operation, an operation to turn off the flight mode, an operation to turn on the data mobile network, etc. For example, when the 5G mobile data network function of the mobile phone is turned on, the mobile phone is turned on in response to a startup operation of the user. The mobile phone starts searching for available mobile data networks through the modem in the mobile phone, and the modem can preferentially search for available 5G networks because the priority of the 5G mobile data network mode in the modem is higher than that of the 4G mobile data network mode. When the modem finds an available 5G network, then a data activation request is sent to the 5G network device, i.e. a PDU session is requested to be established.
In this example, the 5G SA networking mode is adopted, that is, the base station of the 4G mobile data network and the base station of the 5G mobile communication network are independent of each other and do not interfere with each other.
Step 502: and the electronic equipment detects whether the electronic equipment meets a preset closing condition according to the activation failure information. If the electronic device determines that the shutdown condition is satisfied, step 503 is performed.
Specifically, the 5G network device receives a data activation request sent by a modem in the mobile phone, and detects a current network state, such as detecting whether congestion exists. When the 5G network device detects a network abnormality, such as congestion, the 5G network device may reject the data activation request and return the activation failure information to the modem of the handset, where the activation failure information includes a backoff duration.
After the mobile phone acquires the activation failure information, whether the electronic equipment meets a preset closing condition can be detected according to the activation failure information.
In one example, the process of detecting whether the activation failure information meets the preset closing condition by the mobile phone may include: the modem of the mobile phone receives the activation failure information and can generate retry time; the modem of the mobile phone reports the retry time to the telephone manager, and the telephone manager detects whether the activation failure information meets the preset closing condition according to the retry time.
Optionally, the modem of the mobile phone may determine the retry duration according to the characteristics of the chip manufacturer and the received backoff duration. For example, the feedback back-off time length of the 5G network device is 12 minutes, and the modem determines that the retry time length is 12 minutes according to the characteristics of the chip manufacturer and the received back-off time length. Optionally, the retry time period may be the same as the backoff time period, or may be greater than the backoff time period.
The modem of the mobile phone can report the retry time to a telephone manager, and the telephone manager can detect whether the retry time is greater than a preset fourth threshold value, if so; the phone manager can acquire the network system of the mobile phone; the telephone manager judges whether the network system of the mobile phone is 5G NR system, if the telephone manager determines that the network system of the mobile phone is 5G NR system, the telephone manager determines that the preset closing condition is met. Wherein the fourth threshold may be less than or equal to 1 minute, for example, 50 seconds, 40 seconds, 30 seconds, 20 seconds, 10 seconds, 5 seconds, etc.
In another example, after the phone manager obtains the retry time period and the retry time period is greater than 0, it is determined that the electronic device satisfies the shutdown condition.
Optionally, after the modem of the mobile phone receives the backoff period, the modem may also detect whether the backoff period is greater than a fourth threshold and detect whether the current system is in a 5G NR system, and if the modem detects that the backoff period is greater than the fourth threshold and the mobile phone is in the 5G NR system, determine that the closing condition is satisfied. The modem may report the detection to the telephony manager.
Step 503: the electronic device turns off the 5G mobile data network mode of the electronic device.
Specifically, if the phone manager of the mobile phone determines that the electronic device meets the closing condition, the modem of the mobile phone may be instructed to close the 5G mobile data network mode of the mobile phone.
In one example, when the modem receives an instruction to turn off the 5G mobile data network mode, the priority of the 5G mobile data network mode in the modem may be reduced. Optionally, the priority of the 5G mobile data network mode in the modem of the mobile phone is a first priority; when the modem receives an instruction to turn off the 5G mobile data network mode, the modem changes the first priority of the 5G mobile data network mode to a second priority, which is lower than the first priority. The modem preferentially searches for a higher priority mobile data network mode. Optionally, the second priority may be lower than the third priority of the 4G mobile data network mode.
Alternatively, the modem may directly raise the priority of the 4G mobile data network mode so that the priority of the 4G mobile data network mode is higher than the priority of the 5G mobile data network mode. For example, the modem changes the third priority of the 4G mobile data network to a fourth priority, which is higher than the first priority.
When the priority of the 5G mobile data network mode is changed, the priority of the 5G mobile data network mode in the modem is lower than that of the 4G mobile data network mode, and the modem preferentially searches for the 4G mobile data network, so that the 5G mobile data network mode is closed.
In some embodiments, the modem may directly shut down the function of searching for the 5G mobile data network so that the modem no longer searches for the 5G mobile data network.
It will be appreciated that a timer or timer may be started when the modem turns off the 5G mobile data network mode of the handset, so that the 5G mobile data network mode of the electronic device is turned on when the timer/timer reaches the off duration. Alternatively, when the phone manager instructs the modem to turn off the 5G mobile data network mode of the mobile phone, a timer is started, and after the closing time is reached, the modem is instructed to turn on the 5G mobile data network mode of the mobile phone.
Step 504: and the electronic equipment determines the closing time length of the 5G mobile data network mode for closing the electronic equipment according to the back-off time length.
Specifically, the modem of the mobile phone can generate a retry time according to the rollback time, and report the retry time to the phone manager. And the telephone manager receives the retry time reported by the modem and can determine the closing time according to the retry time.
Optionally, the mobile phone stores different time periods and a first corresponding relation between each time period and the closing time period. There may be 2, 3, 4, etc. stored durations. In this example, 4 time periods are taken as an example, and the time periods include: a first time period, a second time period, a third time period, and a fourth time period. The first time period is a time period greater than a fourth threshold value and less than the first threshold value, and the second time period is a time period greater than or equal to the first threshold value and less than the second threshold value; the third time period is a time period greater than or equal to the second threshold value and less than the third threshold value; the fourth time period is a time period greater than or equal to the third threshold. The fourth threshold is less than the first threshold, the first threshold is less than the second threshold, and the second threshold is less than the third threshold. For example, the fourth threshold is 30 seconds, the first threshold is 2 minutes, the second threshold is 6 minutes, and the third threshold is 12 minutes.
The closing duration corresponding to the first period may be any value in the first period, for example, the first period is (30 s,2 min), and the closing duration corresponding to the first period may be 50s,60s,90s, etc. Similarly, the closing duration corresponding to the short second duration may also be any value in the second duration, for example, the second duration is [2min,6min ], and the closing duration corresponding to the second duration may be 3min,4min,5min, or the like. The closing time corresponding to the third time period may also be any value in the third time period, for example, the third time period is [6min,12min ], and the closing time corresponding to the third time period may be 6min,7min,8min, etc. The closing duration corresponding to the fourth time period may also be any value in the fourth time period, for example, the fourth time period is [12min, ++ ], and the closing time period corresponding to the fourth time period can be 12min,13min,14min,16min, etc.
Optionally, the closing duration corresponding to the first period may also be a first threshold, the closing duration corresponding to the second period may be a second threshold, the closing duration corresponding to the third period may be a third threshold, and the closing duration corresponding to the fourth period may be a duration greater than the third threshold. For example, the first period is (30 s,2 min), the first threshold is 2min, and the closing period corresponding to the first period is 2min. The second time period is 2min and 6 min), the first threshold value is 6min, and the closing time period corresponding to the second time period is 6min. The third time period is [6min,12min ], and the third threshold value is 12min; the closing time corresponding to the third time period is 12min. The fourth time period is [12min, + -infinity), the closing time period corresponding to the fourth time period may be a time period greater than the third threshold, and if the fourth time period corresponds to the closing time period of 16min.
The telephone manager can detect the time length matched with the retry time length, and can determine the closing time length of the electronic equipment for closing the 5G mobile data network mode according to the time length matched with the retry time length and the first corresponding relation. For example, the first time period is (30 s,2 min), the second time period is [2min,6min ], the third time period is [6min,12 min) and the fourth time period is [12min, ++ infinity A kind of electronic device. The telephone manager obtains the retry time length to be 150s, the telephone manager detects that the time length matched with the retry time length is a first time length, and the corresponding relation of the first time length indicates closing between the first time length and closing time length of 2min. And the telephone manager can determine that the current closing time is 2 minutes according to the first time period and the first corresponding relation.
It should be noted that, the correspondence between each time period and the closing time period is stored in the mobile phone, and the correspondence between the time period matched with the retry time period may be used as the first correspondence. For example, the phone manager obtains that the time period matched with the retry time period is a second time period, and the corresponding relationship of the second time period is the first corresponding relationship.
In some embodiments, the phone manager may take the retry duration as the off duration. For example, the retry time period is 8 minutes, and the telephony manager can determine that the shutdown time period is 8 minutes.
In some embodiments, a lower limit value (also referred to as a lower limit duration) and an upper limit value (also referred to as an upper limit duration) of the closing duration are also stored in the mobile phone, and when the phone manager detects that the retry duration is less than or equal to the lower limit value, the lower limit value is used as the closing duration; when the telephone manager detects that the retry time is greater than or equal to the upper limit value, the upper limit value is used as the closing time; when the telephone manager detects that the retry time period is longer than the lower limit value and smaller than the upper limit value, the retry time period is taken as the closing time period.
For example, the lower limit is 2 minutes and the upper limit is 12 minutes. The retry time reported by the modem of the mobile phone is 45 seconds, and when the phone manager detects that the retry time is less than the lower limit time, the closing time is determined to be 2 minutes. The retry time reported by the modem of the mobile phone is 30 minutes, and when the phone manager detects that the retry time is longer than the upper limit, the closing time is determined to be 12 minutes. The retry time reported by the modem of the mobile phone is 9 minutes, and when the phone manager detects that the retry time is longer than the lower limit time and shorter than the upper limit time, the closing time is 9 minutes.
In this example, setting the lower limit duration may avoid frequent opening and closing of the 5G mobile data network mode due to too short retry duration, which may increase the cost of the electronic device. The problem that the electronic equipment is too long in closing the 5G mobile data network mode due to too long retry time can be avoided by setting the upper limit time. In some scenarios, during the period when the electronic device is in the 5G mobile data network mode, if the electronic device is restarted by the user or the flight mode is turned off after a period of time is elapsed since the electronic device is turned on, the abnormal modem may be restored to be normal, and then the 5G mobile data network is accessed. Thus, setting the upper limit value of the mode of the electronic device to close the 5G mobile data network can reduce the duration that the electronic device cannot access the 5G mobile data network.
Step 505: the electronic device lets the 4G mobile data network for the duration of the shutdown.
Specifically, as the electronic equipment closes the 5G mobile data network mode, the modem in the mobile phone can search for available 4G mobile data networks and access the 4G mobile data networks, so that the mobile phone can use the data networks within the closing time length, and network disconnection is avoided. Optionally, after the phone manager detects that the duration of closing the 5G mobile data network reaches the closing duration, the modem of the mobile phone may be instructed to open the 5G mobile data network mode of the mobile phone. The modem of the handset may resend the request for data activation to the 5G network device.
Optionally, when the modem of the mobile phone receives the indication that the phone manager indicates to turn on the 5G mobile data network mode of the mobile phone, the priority of the 5G mobile data network mode in the modem may be restored to the original priority, such as updating from the second priority to the first priority, where the second priority is lower than the first priority.
Alternatively, after the modem of the handset receives an indication that the phone manager indicates to turn on the 5G mobile data network mode of the handset, the 5G mobile data network mode in the modem may be enabled.
In this example, if the 5G network device refuses the data activation request of the electronic device, the electronic device may receive activation failure information, where the activation failure information includes a backoff period, and when the electronic device satisfies to close the 5G mobile data network, the closing period is determined according to the backoff period, so that the electronic device may access the 4G mobile data network within the closing period, thereby avoiding that the electronic device is always in a state that cannot be connected to the network, and improving the capability of the electronic device to access the data network.
Fig. 6 is a schematic diagram illustrating interaction of components in a handset a with a 5G network device. As shown in fig. 6, the electronic device uses a mobile phone a as an example, and the network access method includes the following steps:
Step 601: the telephony manager instructs the modem to transmit a data activation request in response to an operation of the access network of the user.
Specifically, the operation of the access network of the user may include: a power-on operation, an operation to turn off the flight mode, an operation to turn on the data mobile network, etc. For example, when the 5G mobile data network function of the mobile phone is turned on, the mobile phone is turned on in response to a startup operation of a user, and when a phone manager of the mobile phone receives a startup instruction, a modem of the mobile phone is instructed to send a data activation request.
Step 602: the modem of the mobile phone A sends a data activation request to the 5G network device.
Specifically, the modem searches for a 5G mobile data network and sends a data activation request to a network device of the 5G mobile data network. The procedure of the data activation request can be understood as a procedure of establishing a PDU session. The procedure for establishing the PDU session will not be described in detail in this example.
Step 603: and the 5G network equipment returns activation failure information to the modem of the mobile phone A.
Specifically, if the 5G network device detects an anomaly, such as network congestion, disallowing the N1 mode, etc., the data activation request of the mobile phone may be rejected, and activation failure information may be returned to the mobile phone, where the activation failure information may include a backoff duration and a reason value of rejection, such as "#31 (Redirection to EPC required) needs to be redirected to EPC", "#27 (N1 mode not allowed) disallowing the N1 mode," etc.
Step 604: and the modem of the mobile phone A generates a retry time according to the back-off time.
Specifically, the modem of the mobile phone a may generate a retry duration according to the back-off duration and the characteristics of the chip manufacturer, where the retry duration may be greater than or equal to the back-off duration, and the retry duration is used to indicate an interval duration for reinitiating the data activation request to the 5G network device.
It should be noted that, the modem may also acquire the network system in which the current mobile phone is located, and report to the phone manager.
Step 605: the modem of the mobile phone A reports the retry time to the phone manager.
Step 606: the phone manager detects whether the retry duration is greater than the fourth threshold and in the 5G NR format, if so, then step 607 is executed, otherwise, the entire flow is ended.
Specifically, if the phone manager detects that the retry time period is longer than the fourth threshold, the phone manager may acquire the network system in which the mobile phone is located; detecting whether the network system of the mobile phone is 5G NR system, if the phone manager determines that the mobile phone is 5G NR system, determining to close the 5G mobile data network mode of the mobile phone, and determining the closing time length.
Step 607: the telephony manager instructs the modem to lower the priority of the 5G mobile data network mode.
Specifically, the indication information sent by the phone manager may further include information for instructing the modem to adjust the first priority of the 5G mobile data network mode to the second priority. The first priority is higher than the second priority, and the modem preferentially searches for a mobile data network mode with a higher priority. Optionally, the second priority is lower than the priority of the 4G mobile data network mode.
Step 608: the modem of handset a adjusts the first priority of the 5G mobile data network mode to the second priority.
Step 609: if the phone manager detects a retry time period greater than 12 minutes, it determines that the shutdown time period is 12 minutes.
In this example, the mobile phone stores an upper time limit (e.g., 2 min) and a lower time limit (e.g., 12 min), and when the phone manager detects that the retry time period is less than the lower time limit, it determines that the closing time period is 2min; when the telephone manager detects that the retry time period is longer than the lower limit time period and shorter than the upper limit time period, determining the closing time period to be the retry time period; when the phone manager detects that the retry time period is longer than the upper limit time period, it is determined that the closing time period is 12 mm. In this example, the retry time period longer than the upper limit time period will be described as an example.
Step 610: the modem of handset a searches for a 4G mobile data network and accesses the 4G mobile data network.
Specifically, after the modem of the handset a turns off the 5G mobile data network mode, the modem can search for nearby available 4G mobile data networks and access the available 4G mobile data networks.
Step 611: the telephony manager instructs the modem to resume the priority of the 5G mobile data network upon detecting that the duration of the shutdown has reached 12 minutes.
Specifically, the telephony manager may start a timer when instructing the modem to turn off the 5G mobile data network, and may instruct the modem to resume the priority of the 5G mobile data network mode when detecting that the duration reaches 12 minutes.
Step 612: the modem restores the priority of the 5G mobile data network mode to the first priority.
Step 613: the modem sends a data activation request to the 5G network device.
Since the modem turns back on the 5G mobile data network mode, the modem can resume searching for the 5G mobile network and resend the data activation request to the 5G network device.
Step 614: and the 5G network equipment returns activation success information to the modem of the mobile phone A.
In this example, if the abnormality in the modem of the mobile phone a returns to normal, or the 5G network returns to normal, the 5G network device will normally receive the data activation request sent by the modem of the mobile phone, and establish the PDU session. After the mobile phone obtains the tunnel between the mobile phone and the UPF, the connection between the corresponding mobile phone and the data network is activated, and the 5G network device can return activation success information to the modem of the mobile phone A.
In some embodiments, the mobile phone may determine whether the mobile phone meets the shutdown condition according to the cause value in the activation failure information, and the network access process may be as shown in fig. 7:
step 701: the mobile phone acquires the failure reason value in the activation failure information.
Specifically, the mobile phone responds to the operation of the user for accessing the network and sends a data activation request to the 5G network equipment. After receiving the data activation request, the 5G network device detects the current network device. When the 5G network device detects a network abnormality, such as congestion, the 5G network device may reject the data activation request and return the activation failure information to the modem of the mobile phone, where the activation failure information includes a backoff duration and a failure cause value. The failure cause value is used to indicate the cause of the activation failure, such as "#31, #27".
Step 702: and when the mobile phone detects that the failure cause value is the first cause value and the number of times of receiving the first cause value exceeds the number threshold, determining that the closing condition is met.
Specifically, the mobile phone may store different first cause values in advance, for example, "#31", "#27" may be stored as the first cause values. After the modem of the mobile phone receives the failure reason value, the failure reason value can be reported to the phone manager, the phone manager judges whether a first reason value which is the same as the received failure reason value exists, and if the phone manager determines that the first reason value exists, the phone manager detects whether the number of times of receiving the first reason value exceeds a number threshold. If yes, determining that a closing condition is met; and if the number of times of the received first cause value is detected to not exceed the number threshold, determining that the current mobile phone does not meet the closing condition.
For example, the mobile phone stores 3 first cause values, namely, a first cause value a (e.g., # 31), a first cause value B (e.g., # 27), and a first cause value C (e.g., # 22). The failure cause value contained in the activation failure information received by the modem of the mobile phone is "#31"; the modem of the mobile phone reports the failure cause value "#31" to the phone manager. The telephone manager detects that "#31" is matched with the stored first reason value A, and determines that the first reason value A is received; the phone manager detects that the number of times the first cause value a is reported by the modem is 4 (e.g., the number of times threshold is 3). The phone manager detects that the number of times of receiving the first cause value A is larger than a number threshold value, and determines that the mobile phone meets the closing condition.
Alternatively, the modem may determine whether the first cause value identical to the received failure cause value exists, and if the modem determines that the first cause value exists, it detects whether the number of times the first cause value is received exceeds a number threshold. If yes, determining that a closing condition is met; if the modem detects that the number of times of receiving the first cause value does not exceed the number threshold, determining that the current mobile phone does not meet the closing condition.
Step 703: the mobile phone detects whether the modem reports the retry time, if it is determined that the modem reports the retry time, step 704 is executed, and if the modem does not report the retry time, step 709 is executed.
Specifically, the modem of the mobile phone receives activation failure information, and if a back-off time exists in the activation failure information, a retry time is generated according to the back-off time, and the retry time is reported to the phone manager. If the activation failure information does not contain the back-off duration, the modem does not generate the retry duration, and the retry duration is not reported to the telephone manager.
If the phone manager detects that the modem does not receive the retry duration within the preset duration (e.g. 20 seconds), it determines that the modem does not report the retry duration, and then step 709 is executed.
Step 704: the mobile phone detects whether the retry time is less than 2 minutes, if yes, step 705 is executed; if it is determined to be greater than or equal to 2 minutes, step 706 is performed.
Step 705: the handset turns off the 5G mobile data network mode and determines the turn-off duration to be 2 minutes.
The procedure of turning off the 5G mobile data network mode in this step is similar to that in step 503, and reference may be made to the description related to step 503, and details are not repeated here.
It should be noted that, after the modem of the handset turns off the 5G mobile data network mode, step 710 may be performed.
Step 706: the mobile phone detects whether the retry time is greater than 12 minutes, and if it is determined that the retry time is greater than or equal to 12 minutes, step 707 is executed; if it is determined to be less than 12 minutes, step 708 is performed.
Step 707: the handset turns off the 5G mobile data network mode and determines the turn-off duration to be 12 minutes.
The procedure of turning off the 5G mobile data network mode in this step is similar to that in step 503, and reference may be made to the description related to step 503, and details are not repeated here.
It should be noted that, after the modem of the handset turns off the 5G mobile data network mode, step 710 may be performed.
Step 708: and the mobile phone closes the 5G mobile data network mode, and determines the closing time length to be the retry time length.
The procedure of turning off the 5G mobile data network mode in this step is similar to that in step 503, and reference may be made to the description related to step 503, and details are not repeated here.
It should be noted that, after the modem of the handset turns off the 5G mobile data network mode, step 710 may be performed.
Step 709: and the mobile phone closes the 5G mobile data network mode, wherein the closing time length is the time length corresponding to the first cause value.
Specifically, the phone manager of the mobile phone may store a duration corresponding to each first cause value, for example, a duration corresponding to "#31" is 3min. The phone manager of the mobile phone obtains the duration corresponding to the first cause value as the closing duration.
After the modem of the handset turns off the 5G mobile data network mode, step 710 may be performed.
Step 710: the handset attempts to access the 4G mobile data network.
The process of attempting to access the 4G mobile data network by the mobile phone is similar to the existing manner, and reference may be made to the process of attempting to access the 4G mobile data network by the existing mobile phone, which will not be described herein.
Step 711: the handset detects whether it has successfully accessed the 4G mobile data network, if so, step 712 is performed, otherwise step 713 is performed.
Step 712: the handset moves the data network 4G.
Step 713: the handset retries to connect to the 4G mobile data network until the maximum number of retries is reached.
Specifically, if the handset fails to reconnect the 4G mobile data network, the handset may retry at a preset interval until the maximum number of retries is reached.
In this example, the mobile phone judges whether the closing condition is met through the failure cause value in the activation failure information, after receiving the preset first cause value for many times, the closing condition that the electronic device closes the 5G mobile data network mode is determined, and the closing duration is determined based on the rollback duration, so that the closing duration changes along with the rollback duration, and the situation that the closing duration of the mobile phone is too long and the function of the data network of the mobile phone used by the user is affected is avoided.
Fig. 8 is a schematic diagram of a scenario in which a handset is connected to a 4G mobile data network after the handset is denied a data activation request by a 5G network device.
In one example, as shown in FIG. 8, a data network switch 802 is displayed in a display interface 801. The mobile phone responds to the operation of clicking the data network switch 802 by the user to request data activation from the 5G core network, and when the 5G core network processes the data activation request, the network problem is detected, the data activation request of the mobile phone is refused, and the mobile phone is requested to return activation failure information, wherein the activation failure information comprises a rollback time (such as 8 minutes). The modem of the mobile phone receives the back-off duration and generates a retry duration (e.g., the retry duration is 8 minutes). The modem of the mobile phone reports the retry time and the current network system to the telephone manager. And if the phone manager detects that the retry duration is greater than a fourth threshold (for example, 20 seconds) and the current mobile phone is in a 5G NR mode, determining that the mobile phone meets the requirement of closing a 5G mobile data network mode. The phone manager detects that the retry period is greater than the lower limit period (the lower limit period is 2 minutes) and less than the upper limit period (e.g., 12 minutes), then determines that the shutdown period is 8 minutes. The telephony manager instructs the modem to switch off the 5G mobile data network mode, search for available 4G mobile data networks, and access the 4G mobile data network. The duration of the handset access to the mobile communications network lasts for 8 minutes, as shown in fig. 8, the status bar of the display interface 801 indicates that the handset has access to the 4G mobile data network. When the telephone manager detects that the duration of closing the 5G mobile data network mode reaches 8 minutes, the modem is instructed to open the 5G mobile data network, the modem of the mobile phone will send a data activation request to the 5G network equipment again, and if the 5G network equipment detects that the network is normal, activation success information can be returned to the modem of the mobile phone.
It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The present application can be implemented in hardware or a combination of hardware and computer software, in conjunction with the example algorithm steps described in connection with the embodiments disclosed herein. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The present embodiment also provides a computer storage medium having stored therein computer instructions which, when executed on an electronic device, cause the electronic device to perform the above-described related method steps to implement the method of network access in the above-described embodiments. The storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The present embodiment also provides a computer program product which, when run on a computer, causes the computer to perform the above-mentioned related steps to implement the method of network access in the above-mentioned embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding methods provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding methods provided above, and will not be described herein.
Any of the various embodiments of the application, as well as any of the same embodiments, may be freely combined. Any combination of the above is within the scope of the application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (15)

1. A method of network access, applied to an electronic device, comprising:
responding to the operation of the user for accessing the network, and sending a data activation request to 5G network equipment;
when activation failure information returned by the 5G network equipment is received, detecting whether the electronic equipment meets a preset closing condition according to the activation failure information, wherein the activation failure information comprises a rollback time length;
when the electronic equipment is determined to meet the closing condition, closing a 5G mobile data network mode of the electronic equipment and determining closing time length of the 5G mobile data network mode of the electronic equipment according to the back-off time length;
and accessing the 4G mobile data network in the closing time period.
2. The method of claim 1, wherein the determining a closing duration to close the 5G mobile data network mode of the electronic device according to the backoff duration comprises:
generating retry time according to the rollback time, wherein the retry time is used for indicating interval time for reinitiating a data activation request to 5G network equipment;
and determining the closing time length according to the retry time length.
3. The method of claim 2, wherein said determining said closing duration from said retry duration comprises:
Acquiring a time length matched with the retry time length;
and determining the closing time length according to the acquired time length and a first corresponding relation, wherein the first corresponding relation is used for indicating the relation between the time length and the closing time length.
4. A method according to claim 3, wherein the time period comprises: the first, second, third and fourth time periods;
acquiring a time period matched with the retry time period, including:
when the retry duration is detected to be smaller than a first threshold value, determining that the first time period is matched with the retry duration;
when the retry time period is detected to be greater than or equal to the first threshold value and less than a second threshold value, determining that the second time period is matched with the retry time period;
when the retry time period is detected to be greater than or equal to the second threshold value and less than a third threshold value, determining that the third time period is matched with the retry time period;
and when the retry time period is detected to be greater than or equal to a third threshold value, determining that the fourth time period is matched with the retry time period.
5. The method of claim 2, wherein said determining said closing duration from said retry duration comprises:
When the retry time length is detected to be smaller than or equal to a preset lower limit time length, the lower limit time length is taken as the closing time length;
when the retry time length is detected to be longer than the lower limit time length and shorter than a preset upper limit time length, the retry time length is taken as the closing time length;
and when the retry time length is detected to be greater than or equal to the upper limit time length, taking the upper limit time length as the closing time length.
6. The method of claim 2, wherein said determining said closing duration from said retry duration comprises:
and taking the retry time length as the closing time length.
7. The method according to any one of claims 1 to 6, wherein the detecting whether the electronic device satisfies a preset shutdown condition according to the activation failure information includes:
acquiring retry time according to the rollback time;
detecting whether the retry duration is greater than a fourth threshold;
when the retry duration is detected to be greater than a fourth threshold, detecting whether the network system of the electronic equipment is a 5G new air interface NR system;
and when the network system of the electronic equipment is detected to belong to the 5G NR system, determining that a closing condition is met.
8. The method of claim 7, wherein the fourth threshold has a value in the range of 10 seconds to 40 seconds.
9. The method according to any one of claims 1 to 6, wherein the detecting whether the electronic device satisfies a preset shutdown condition according to the activation failure information includes:
acquiring a failure reason value in the activation failure information;
and when the failure cause value is detected to be a first cause value and the times of receiving the first cause value exceeds a times threshold, determining that the closing condition is met.
10. The method of claim 1, wherein the turning off the 5G mobile data network mode of the electronic device comprises:
and adjusting the first priority of the 5G mobile data network mode in the modem of the electronic equipment to be a second priority, wherein the second priority is lower than a third priority of the 4G mobile data network mode, and the third priority is lower than the first priority.
11. The method of claim 1, wherein the turning off the 5G mobile data network mode of the electronic device comprises:
and turning off the function of the modem of the electronic equipment for searching the 5G mobile data network.
12. The method of claim 1, wherein the detecting whether the activation failure information satisfies a preset shutdown condition comprises:
and when the rollback time is detected to be longer than 0, determining that the closing condition is met.
13. The method of claim 1, wherein the operation of the user's access network comprises: a power-on operation, an operation to turn on a mobile data network, or an operation to turn off a flight mode.
14. An electronic device, comprising:
a memory and a processor, the memory coupled with the processor;
the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the method of network access of any of claims 1-13.
15. A computer readable storage medium comprising a computer program, characterized in that the computer program, when run on an electronic device, causes the electronic device to perform the method of network access performed by the electronic device according to any of claims 1-13.
CN202211403132.XA 2022-11-10 2022-11-10 Network access method and electronic equipment Pending CN116744403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211403132.XA CN116744403A (en) 2022-11-10 2022-11-10 Network access method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211403132.XA CN116744403A (en) 2022-11-10 2022-11-10 Network access method and electronic equipment

Publications (1)

Publication Number Publication Date
CN116744403A true CN116744403A (en) 2023-09-12

Family

ID=87908568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211403132.XA Pending CN116744403A (en) 2022-11-10 2022-11-10 Network access method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116744403A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784406A (en) * 2021-08-24 2021-12-10 深圳市广和通无线股份有限公司 Call initiating method and electronic equipment
CN113810937A (en) * 2020-10-22 2021-12-17 荣耀终端有限公司 Method, device, storage medium and chip for processing network registration exception
CN113840295A (en) * 2021-09-26 2021-12-24 北京鲸鲮信息系统技术有限公司 Mobile data network establishing method and device, electronic equipment and storage medium
CN114268929A (en) * 2021-12-21 2022-04-01 展讯通信(天津)有限公司 Service activation method and related equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810937A (en) * 2020-10-22 2021-12-17 荣耀终端有限公司 Method, device, storage medium and chip for processing network registration exception
CN113784406A (en) * 2021-08-24 2021-12-10 深圳市广和通无线股份有限公司 Call initiating method and electronic equipment
CN113840295A (en) * 2021-09-26 2021-12-24 北京鲸鲮信息系统技术有限公司 Mobile data network establishing method and device, electronic equipment and storage medium
CN114268929A (en) * 2021-12-21 2022-04-01 展讯通信(天津)有限公司 Service activation method and related equipment

Similar Documents

Publication Publication Date Title
US20230247704A1 (en) Multi-access data connection in a mobile network
US10911922B2 (en) Quick pair
EP2437463B1 (en) Apparatus and method for providing service in service zone
EP2673968B1 (en) Dynamic binding of service on bearer
US11224027B2 (en) Cell registration method and device
CN112492704B (en) Session management method, device, terminal equipment and computer readable storage medium
US20210059000A1 (en) Bearer configuration method for rrc connection reestablishment, terminal, and network device
CN109819489B (en) Terminal calling method and terminal
CN110225462B (en) Method, system and device for preventing network congestion
EP4300922A1 (en) Native computing power service implementation method and apparatus, network device, and terminal
JP2020512734A (en) Communication method and communication device
US20230041176A1 (en) Paging response method, terminal, and network device
KR20210008415A (en) Access control method, message broadcast method, and related devices
CN115696484A (en) Network icon display method and terminal
CN107454660B (en) Network residing method and device after authentication failure
CN110611890B (en) Notification message control method and related device
CA2739027C (en) Method and system for prevention of applications from initiating data connection establishment
CN116744403A (en) Network access method and electronic equipment
US11503574B2 (en) Information interaction method and terminal
WO2020063230A1 (en) Signal transmission method, user equipment and network device
CN114079982B (en) Network transfer method, device and equipment
WO2023138525A1 (en) Network selection and access information transmission method and apparatus, network selection and access information obtaining method and apparatus, and related device
WO2023131286A1 (en) Resource control method and apparatus, terminal, network side device, and readable storage medium
CN116074954A (en) Access control method, device and terminal
WO2020133117A1 (en) Cell connection processing method and device, mobile terminal, and storage medium

Legal Events

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