Communication method, electronic equipment and readable medium
By disabling the 5G SA NR standard in the user equipment and switching to 4G LTE standard registration, the service disabling problem caused by failure of 5G authentication is solved, and the normal use of user equipment and the improvement of user experience is achieved.
Patent Information
- Application Number
- CN202411625239.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-26
- Publication Date
- 2025-04-01
AI Technical Summary
During the use of 5G services, the user's equipment is disabled due to the failure of authentication, and the user cannot use the equipment normally. Moreover, due to frequent card rescue cycles, the device function is frequently disabled, reducing the user experience.
By implementing a communication method in the user equipment, the SA NR standard of the 5G network standard is disabled. When the authentication rejection message carries a preset error code and the number of times reaches the threshold, the SA NR standard is disabled and a registration request is sent to the 4G core network based on the 4G LTE standard until the authentication is successful or the disable time ends.
In the case of abnormal 5G authentication and cannot be repaired, by disabling the 5G network standard, the user equipment can still successfully register based on the 4G network, ensuring the normal use of data, voice and other functions of the user, avoiding frequent disabling of device functions, and improving user experience.
Smart Images

Figure CN119743824A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202311274574.3, and the original application date is September 26, 2023. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The present application relates to the field of mobile communication technology, and in particular to a communication method, an electronic device and a readable medium. Background Art
[0003] With the development of wireless communication technology, wireless communication networks are gradually evolving towards the fifth generation mobile communication technology (5G). When a user uses a user equipment (UE) to use 5G services, the base station will authenticate the authority of the terminal equipment to use the 5G services to determine whether the user can use the corresponding 5G services with the terminal equipment.
[0004] In the related art, when a user uses a UE to use 5G services, the UE will send a registration request to the core network (network, NW). After receiving the registration request from the UE, the NW starts the authentication process with the UE. In some cases, when the UE detects some error codes that fail the authentication, it will be considered that the authentication is unsuccessful due to abnormal network status. Therefore, the UE will repeatedly attempt to register. During this process, the UE's data, voice and other services will be disabled, causing the user to be unable to use the UE normally. Summary of the invention
[0005] The purpose of this application is to provide a communication method, an electronic device and a readable medium.
[0006] In a first aspect, an embodiment of the present application provides a communication method for a user device, comprising: sending a registration request to a first core network of a first network standard, the registration request being used to instruct the first core network to authenticate the user device; receiving a first authentication rejection message sent by the first core network, and determining that the received first authentication rejection message satisfies a first network switching condition, the first network switching condition comprising that the number of times a first authentication rejection message containing a first type of error type information is received is greater than a number threshold; disabling the first network standard, and sending a registration request to the second core network based on the second network standard, wherein the first network standard is higher than the second network standard, and the first network standard is a 5G network standard.
[0007] That is, in an embodiment of the present application, the first core network is a 5G core network. The UE can send a registration request to the 5G core network to trigger the 5G core network's authentication process for the UE. When the received first authentication rejection message meets the first network switching condition, the 5G network standard can be disabled so that the UE can register based on a lower standard.
[0008] Through a communication method of the present application, even if there is an abnormality in the authentication corresponding to the first network standard in the user equipment, and the above-mentioned abnormality cannot be repaired temporarily, the wireless network can still be successfully registered based on other standards, so that the user can use data, voice and other functions normally, ensuring the normal use of the equipment.
[0009] In a possible implementation of the first aspect above, disabling the first network standard and sending a registration request to the second core network based on the second network standard includes: determining a disabling duration for disabling the first network standard; disabling the first network standard and sending a registration request to the second core network based on the second network standard; corresponding to disabling the first network standard for reaching the disabling duration, unblocking the first network standard and sending a registration request to the first core network based on the first network standard.
[0010] That is, in the embodiment of the present application, the first network standard may be the SANR standard corresponding to 5G, and the second network standard may be the 4G LTE standard corresponding to 4G. Since the UE performs the network search and registration process based on the high standard priority strategy, and the first network standard is higher than the second network standard, after disabling the first network standard, the UE can automatically send a registration request based on the second network standard.
[0011] In a possible implementation of the first aspect above, determining the disabling duration for disabling the first network standard includes: determining the number of disabling times for disabling the first network standard, each disabling number corresponding to a preset duration; and determining the preset duration corresponding to the number of disabling times as the disabling duration.
[0012] That is, in the embodiment of the present application, the disabling time is determined according to the number of disabling times. According to some embodiments, the disabling time may increase as the number of disabling times increases. According to other embodiments, the disabling time may also be a cyclic array that cycles as the number of disabling times increases. For example, the disabling time when the SANR standard is disabled for the first time is 12 minutes; the disabling time when the SANR standard is disabled for the second time is 2 hours; the disabling time when the SANR standard is disabled for the third time is 8 hours; the disabling time when the SA NR standard is disabled for the fourth time is 24 hours; the disabling time when the SA NR standard is disabled for the fifth time is 12 minutes, and so on.
[0013] In a possible implementation of the first aspect above, the method further includes: in response to a network recovery operation of the user based on the user equipment, unbanning the first network standard, and sending a registration request to the first core network based on the first network standard.
[0014] That is, in the embodiment of the present application, the network recovery operation performed by the user on the USIM or software in the user equipment can trigger the lifting of the ban on the first network standard.
[0015] In a possible implementation of the first aspect above, a method for determining that the first authentication rejection message contains the first type of error type information includes: when the first authentication rejection message includes a preset error identifier (or error code), determining that the first authentication rejection message contains the first type of error type information.
[0016] That is, in the embodiment of the present application, the first authentication rejection message carries error codes, and the UE can detect these error codes and determine the error types corresponding to the error codes.
[0017] In a possible implementation of the first aspect above, the preset error identifier includes at least one of #20, #21, #26, and #70; the error cause corresponding to #20 is that the MAC address is invalid; the error cause corresponding to #21 is that non-5G authentication is unacceptable; the error cause corresponding to #26 is that the 5G authentication parameters are occupied; the error cause corresponding to #70 is that the user device fails to synchronize with the first core network.
[0018] That is, in the embodiment of the present application, the error identifier may include multiple error codes specified by the protocol, and the error cause corresponding to each error code may be caused by a network abnormality or a USIM abnormality.
[0019] In a possible implementation of the first aspect above, the network recovery operation includes at least one of turning on or off the flight mode, pulling out or replacing the user identification card, and turning on or off the 5G switch.
[0020] That is, in the embodiment of the present application, the user can restore the SA switch, that is, release the disabling of the SA NR standard, by turning on or off the flight mode, pulling out or replacing the user identification card, or turning on or off the 5G switch. Among them, the user identification card is the USIM.
[0021] In a possible implementation of the first aspect above, after disabling the first network standard and sending a registration request to the second core network based on the second network standard, the method also includes: receiving a second authentication rejection message sent by the second core network, and determining that the received second authentication rejection message satisfies a second network switching condition, the second network switching condition including that the error type information contained in the received second authentication rejection message is different from the error type information contained in the received first authentication rejection message; unbanning the first network standard, and sending a registration request to the first core network based on the first network standard.
[0022] That is, in an embodiment of the present application, if the rejection reason value (i.e., error code) changes, the SA switch can be restored and the registration request can be resent based on 5G.
[0023] In a possible implementation of the first aspect above, the second network standard is a 4G network standard.
[0024] That is, in the embodiment of the present application, the second core network may be a 4G core network.
[0025] In a second aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device, and a processor for executing instructions of the communication method of the first aspect.
[0026] In a third aspect, an embodiment of the present application provides a readable medium having instructions stored thereon, and when the instructions are executed on an electronic device, the electronic device executes the communication method of the first aspect.
[0027] In a fourth aspect, an embodiment of the present application provides a computer program product, comprising: a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium contains a computer program code for executing the communication method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 According to the present application, a schematic diagram of a 5G network architecture is shown;
[0030] Figure 2 According to the present application, a schematic diagram of a UE registration scenario is shown;
[0031] Figure 3 A schematic diagram of a flow chart of a first communication method is shown according to an embodiment of the present application;
[0032] Figure 4 A schematic diagram of a flow chart of a second communication method is shown according to an embodiment of the present application;
[0033] Figure 5 A schematic diagram of a flow chart of a third communication method is shown according to an embodiment of the present application;
[0034] Figure 6 A communication architecture diagram of an electronic device 100 is shown according to an embodiment of the present application;
[0035] Figure 7 According to an embodiment of the present application, a hardware framework schematic diagram of an electronic device 100 is shown;
[0036] Figure 8 According to an embodiment of the present application, a software structure block diagram of an electronic device 100 is shown. DETAILED DESCRIPTION
[0037] The technical solutions in the embodiments of the present application will be described clearly and in detail below with reference to the accompanying drawings.
[0038] In the field of mobile communications, after the UE is powered on, it will perform initialization, network search, registration and other processes in sequence. After receiving the registration request initiated by the UE, the NW starts to execute the authentication process for the UE. It can be understood that the UE can include a Universal Subscriber Identity Module (USIM), which is used to store information such as identity information, keys, etc.
[0039] It can be understood that authentication is identity verification, or identifying the network authority of the UE. The authentication process for the UE mentioned above is to authenticate the identity of the UE attempting to access the network and verify whether it has the authority to access or operate related data based on the mobile communication network. If the authentication fails during the registration process, the UE will receive an authentication rejection message. It can be understood that there are many errors that lead to 5G authentication failure. For example, temporary network failures or abnormal loading of USIM data may cause the MAC address verification to fail, resulting in the lack of necessary information in the authentication process, resulting in authentication failure. For example, USIM wear leads to the lack of 5G authentication parameters, resulting in authentication failure, and so on.
[0040] Please refer to Figure 1 , the 5G network architecture may include a device 11, a base station 12, and a core network 13. In some optional embodiments, the device 11 may send a registration request to the core network 13 through the base station 12. After receiving the registration request, the core network 13 may start an authentication process with the device 11. It can be understood that if the core network 13 identifies that the device 11 has network access rights, the core network 13 will feedback an authentication reply message to the device 11, otherwise it will send an authentication rejection message to the device 11. That is, the device 11 is notified of authentication failure and registration failure.
[0041] According to some embodiments, please refer to Figure 2, when the UE turns on the 5G switch, the UE accesses the NW in the StandAlone (SA) NR mode, and the corresponding authentication method is 5G authentication. After the UE searches the network and sends a 5G registration request to the NW, the NW will perform the 5G authentication process for the UE. If the NW fails to authenticate the UE, the NW will return an authentication rejection message to the UE. Among them, the authentication rejection message carries an error code.
[0042] The UE receives the authentication rejection message and detects some error codes, such as error codes #20 and #21. The error type corresponding to #20 may be MAC address verification failure (MAC code failure), and the error type corresponding to #21 may be non-5G authentification unacceptable (Non-5G authentification unacceptable). The UE will consider that the reason for the authentication error is caused by network factors. Therefore, the UE will disable the circuit switch (Circuit Switch, CS) and packet switch (Packet Switch, PS) and start a card rescue process, such as reference Figure 2 , the regular subscriber identity module (REG SIM) module of the UE will start the recovery timer to reset the card, that is, resend the registration request to the NW after the recovery timer expires, so that the UE retries registration on the NR. After four re-registration failures, the single card rescue process ends.
[0043] However, the above error codes are not necessarily caused by network factors, but may also include other unrepairable causes, such as the SIM card is an old card (standard card, not MicroSIM card), the SIM card pin is damaged, and so on. If the error has not been fixed, the UE needs to search the network and register again after the single card rescue process is completed. Among them, during the network search process, the UE still searches the network in a high-standard priority mode, that is, the SA mode is prioritized. In other words, the UE's re-registration will still trigger the 5G authentication process. If the 5G authentication fails again, the card rescue process needs to be started again, causing the UE to fall into an infinite card rescue loop.
[0044] It should be noted that in the above card rescue process, the UE's voice, data and other services are disabled. According to the communication protocol, after the UE receives the authentication rejection message, the USIM state is set to SYS_SIM_STATE_CS_PS_INVALID, that is, the CS domain and PS domain are disabled. Since the CS domain carries voice and fax services in the network, and the PS domain carries data services in the network, disabling the CS domain and PS domain is equivalent to disabling the UE's voice, fax and data services.
[0045] In the above embodiment, if the UE fails to authenticate during the 5G-based registration process and detects a specific error code, the UE will consider the error to be caused by a network anomaly and repeatedly request registration from the NW until the authentication is successful. During this process, the UE's data, voice and other functions are disabled, resulting in the user being unable to use the phone normally, reducing the user experience. Specifically, if the authentication is successful, the UE will receive an authentication reply message, otherwise, it will receive an authentication rejection message. Before the UE receives the authentication reply message sent by the RW, the UE will be in a card rescue loop, that is, receiving an authentication rejection message and retrying registration. These two steps are repeated. In some cases, the cause of the 5G authentication failure may not be repaired. For example, if the USIM is an old 4G account card and some 5G authentication key data is missing, the UE using the card will never be able to authenticate successfully before replacing it with a new card, resulting in the user being unable to use the UE's data function normally.
[0046] In order to solve the above problems, an embodiment of the present application proposes a communication method, when the UE requests registration from the NW based on 5G and receives an authentication rejection message, when the authentication rejection message carries a preset error code and the number of registration requests meets the preset number, the SA NR standard corresponding to the 5G network is disabled for a preset period of time, so that the next network search of the UE can be performed based on other low standards except the SA NR standard. For example, other low standards may be the fourth generation mobile communication technology (4th Generation Mobile Commu-nication Technology, 4G) long term evolution (Long Term Evolution, LTE) standard. In this way, even if the UE cannot be successfully authenticated due to an uncorrected authentication error, by disabling the SANR standard, the UE can still be successfully registered based on other wireless networks such as the 4G network within the disabled time of the SANR standard, so that the user can normally use the UE's data, voice and other functions. It can be understood that after the end of each disabled time, the UE can initiate registration again based on 5G.
[0047] In some optional embodiments, when the number of authentication failures reaches a preset number, the SANR system can be disabled, wherein the disabling duration is determined according to the number of disabling times. For example, the disabling duration is 12 minutes when the SANR system is disabled for the first time; the disabling duration is 2 hours when the SANR system is disabled for the second time; the disabling duration is 8 hours when the SANR system is disabled for the third time; and the disabling duration is 24 hours when the SANR system is disabled for the fourth time. It can be understood that after the disabling duration of each disabling period ends, the UE can initiate registration based on 5G again. If the number of retry failures meets the preset number of conditions, the next disabling period will be entered. Increasing the disabling duration as the number of disabling times increases can prevent the UE functions from being frequently disabled due to the UE frequently retrying to register, thereby increasing the time that the user can use the device normally.
[0048] In some optional embodiments, after the SANR standard corresponding to 5G is disabled, if the user performs the following operations, the SA switch can be restored: unplug the USIM, turn on the flight mode, turn on the phone, switch the USIM, turn the 5G switch on and off, and the rejection reason value changes. For example, if the user fails to register the 5G network through USIM1 and causes SA to be disabled, the user can manually switch the USIM and switch the current card from USIM1 to USIM2 to try whether it can be successfully registered through USIM2. In this way, even if the 5G NR standard is disabled, the user can still retry to register the 5G network through manual operation to provide multiple recovery paths.
[0049] Combine the following Figure 3 An exemplary process of a communication method provided in an embodiment of the present application is introduced. A communication method in an embodiment of the present application is applied to a UE. Among them, a USIM is embedded in the UE, and the UE may include an electronic device 100 of the type of a smart phone, a desktop computer, a tablet computer, a laptop computer, a smart speaker, a digital assistant, an augmented reality (AR) / virtual reality (VR) device, a smart wearable device, etc. Optionally, the operating system running on the electronic device 100 may include but is not limited to an Android system, an IOS system, Linux, Windows, etc.
[0050] Figure 3 According to an embodiment of the present application, a flow chart of a communication method is shown. According to some embodiments, the method may be executed by a UE. Figure 3 As shown in the figure, the method provided by the embodiment of the present application includes:
[0051] S101: Send a registration request to a NW based on a first network standard.
[0052] It can be understood that the first network standard can be a SANR standard corresponding to the 5G network. Specifically, when the UE turns on the 5G switch, the UE can send a registration request to the NW to access the NW through the NR under the SANR standard.
[0053] It can be understood that the registration request is used to instruct the NW to authenticate the user equipment.
[0054] According to some embodiments, the registration request may include a 5G identifier and a terminal identity identifier, so that the NW selects an authentication method based on the 5G identifier and the terminal identity identifier.
[0055] The NW may determine whether the authentication is successful or failed based on the corresponding authentication method, and send an authentication reply message to the UE when the authentication is successful, or send an authentication rejection message to the UE when the authentication fails.
[0056] It is understandable that the first network standard may also be other network standards, such as a network standard corresponding to a 4G network, etc. This application does not make any limitation here.
[0057] S102: receiving an authentication rejection message corresponding to the authentication sent by the NW.
[0058] It can be understood that when the UE receives the authentication reply message sent by the NW, it means that the UE is successfully registered; and when the UE receives the authentication rejection message, it means that the authentication fails during the registration process.
[0059] S103: Determine whether the number of times the authentication rejection message is received meets the preset number condition; if so, go to step S104; if not, go to step S101.
[0060] In step S103, if the number of times the authentication rejection message is received does not meet the preset number condition, step S101 can be repeated until the number of times the authentication rejection message is received meets the preset number condition. Optionally, if an authentication reply message corresponding to the authentication sent by the NW is received after executing step S101, steps S102-S103 are not executed.
[0061] According to some embodiments, the preset number condition may be that the number reaches 2. The present application does not limit the preset number condition, and in some other optional implementations, the preset number condition may also be that the number reaches other values.
[0062] As an example, the error type corresponding to the authentication rejection message may be limited to one of a plurality of preset types. Step S102 may include determining a process for receiving the authentication rejection message. Figure 4 An exemplary process of determining the authentication rejection message in step S102 is further described. Figure 4 As shown, the exemplary process of step S102 may include:
[0063] S1021: Receive an authentication rejection message corresponding to the authentication sent by the NW.
[0064] It can be understood that the UE receiving the authentication rejection message indicates that the authentication failed during the registration process. Different authentication failure reasons correspond to different error codes. The authentication rejection message carries the error code, and the error type corresponding to the authentication rejection message can be determined based on the error code.
[0065] S1022: When the error type corresponding to the authentication rejection message belongs to a preset type, increase the number of times the authentication rejection message is received.
[0066] According to some embodiments, each preset type may correspond to an error code, and the error code may include #20, #21, #26, and #70. Among them, the type corresponding to #20 may be MAC address verification failure (MAC code failure), the type corresponding to #21 may be non-5G authentication unacceptable (Non-5G authentification unacceptable), the type corresponding to #26 may be ngKSI parameter occupied (ngKSI already in use), and the type corresponding to #70 may be terminal and NW synchronization failure (SQN failure).
[0067] For example, when the MAC address is invalid, the error code is #20. According to some embodiments, the error may be caused by abnormal data loading after dual-card switching, or by a temporary network failure. For example, when the USIM is an old card, that is, not a MicroSIM card, some 5G authentication-related parameters are missing, and the error code is #21. For example, when the key set identifier (NASkey set identifier, ngKSI) parameter in the UE is occupied, the error code is #26. According to some embodiments, the error may be caused by damage to the pin of the USIM in the UE.
[0068] In step S1022, whether the authentication rejection message belongs to a preset type can be determined based on the error code carried by the authentication rejection message. For example, if the authentication rejection message carries the error code #21, it is determined that the authentication rejection message belongs to the preset type.
[0069] It can be understood that when any of the above preset types of errors occurs, the NW will send an authentication rejection message to the UE, and the authentication rejection message carries error code information.
[0070] It can be understood that if the authentication rejection message belongs to a preset type, the counter used to count the number of times the authentication rejection message is received can accumulate the number of times. For example, when the authentication rejection message is received for the first time and it is determined that the error type corresponding to the authentication rejection message is the preset type, the number of times is accumulated to 1. If the authentication rejection message corresponding to the preset type is received again, the number of times is increased by 1, that is, the number of times is accumulated to 2, and so on.
[0071] S104: Send a registration request to the core network based on the second network standard.
[0072] Among them, the core network can be a second core network corresponding to the second network standard.
[0073] It can be understood that, corresponding to the number of times the authentication rejection message is received meeting the preset number condition, the first network standard of the UE can be disabled, so that the UE sends a registration request to the second core network corresponding to the second network standard based on the second network standard. It can be understood that the second network standard in the embodiment of the present application is lower than the first network standard. For example, when the first network standard is the network standard corresponding to 5G, the second network standard can be the network standard corresponding to 4G, or it can be the network standard corresponding to 3G, 2G, etc. When the first network standard is the network standard corresponding to 4G, the second network standard can be the network standard corresponding to 3G, or it can be the network standard corresponding to 2G, and the present application does not limit it here.
[0074] Optionally, the first network standard is a network standard corresponding to 5G, that is, disabling the first network standard means prohibiting the UE from searching for a network based on the standard corresponding to 5G, which is equivalent to prohibiting the UE from registering for the 5G network. It can be understood that searching for a network based on standards other than the first network standard, that is, automatically registering other wireless networks except the 5G network, for example, in an embodiment where the second network standard is 4G LTE, the UE can register for the 4G network, so that the user can use the UE's 4G Internet access function normally.
[0075] The disabling of the first network standard may be for a limited period of time.
[0076] According to some embodiments, the duration of disabling the first network standard can be determined according to the number of times the standard is disabled. Optionally, the first time the SANR standard is disabled, the duration of disabling is 12 minutes; the second time the SANR standard is disabled, the duration of disabling is 2 hours; the third time the SA NR standard is disabled, the duration of disabling is 8 hours; the fourth time the SA NR standard is disabled, the duration of disabling is 24 hours. The embodiments of the present application do not limit the specific duration of each disablement.
[0077] According to some embodiments, the disabling time length may increase with the increase of the number of disabling times. For example, in the above embodiment, the disabling time length of the fifth disabling of the SA NR system may be longer than 24 hours.
[0078] According to some other embodiments, the disabling time may also be a cyclic array. For example, in the above embodiment, the disabling time of the SA NR system is returned to 12 minutes for the fifth time, and to 2 hours for the sixth time, and so on.
[0079] It can be understood that after the disabling duration of each disabling ends, the UE can initiate registration again based on the first network standard, that is, restart execution from step S101. If step S103 is executed again, the next disabling will be entered and the next disabling will be executed according to the corresponding duration of the next disabling.
[0080] The user can manually unblock the disablement by performing some preset operations. In some optional embodiments, after the SANR standard corresponding to 5G is disabled, the SA switch can be restored if the user performs the following operations, including: unplugging USIM, turning on flight mode, turning on the power, switching USIM, turning 5G switch on and off, and changing the rejection reason value. For example, if the user fails to register the 5G network through USIM1 and causes SA to be disabled, the user can manually switch USIM, switch the current card from USIM1 to USIM2 to restore the SA switch, and try whether the registration can be successful through USIM2; for example, if the user switches the flight mode, the SA switch can also be restored. In this way, the user can retry registering the 5G network at any time through manual operation.
[0081] It can be understood that the rejection reason value is the error code, that is, if an authentication rejection message carrying a new error code is received, indicating that the rejection reason value has changed, the SA switch is restored. In this embodiment, after step S104, the method also includes: receiving a second authentication rejection message sent by the second core network, and determining that the received second authentication rejection message meets the second network switching condition, the second network switching condition includes that the error type information contained in the received second authentication rejection message is different from the error type information contained in the received first authentication rejection message; unbanning the first network standard, and sending a registration request to the first core network based on the first network standard. Since the change in the error cause may indicate a change in the network environment or device status, the SA switch can be restored at this time to retry the high-standard network search and registration, such as retrying to register for the 5G network.
[0082] According to some embodiments, if the user equipment receives an authentication rejection message after sending a registration request to the core network based on the second network standard, and detects that the error code carried in the authentication rejection message is different from the error code received last time, the SA switch can be restored and the registration request can be sent to the core network again based on the first network standard.
[0083] The following is based on Figure 5 The method of the present application is further described. Figure 5 The diagram includes:
[0084] S201: Send an SA registration request.
[0085] In step S201, the UE may send a registration request to the 5G NW based on the SA NR standard.
[0086] S202: Receive an authentication rejection message carrying error code #21.
[0087] In step S202, the UE receives an authentication rejection message fed back by the 5G NW, which carries error code #21.
[0088] It can be understood that #21 corresponds to the error cause: Non-5G authentificationunacceptable.
[0089] S203: Report the registration failure information (ID: 2) to the AP via QMI.
[0090] According to some embodiments, the registration failure information includes an error code and a card identifier, such as #21 and ID: 2. #21 can be parsed from the authentication rejection message, #21 indicates that the error type is the error type corresponding to the error code #21, and ID: 2 indicates that the USIM that failed to register is USIM2, that is, the card that failed to register is the second card in the dual card.
[0091] It can be understood that the registration failure information can be reported to the wireless access (AP) module through the QMI channel, so that the corresponding module in the AP executes the subsequent steps S204-S207 according to the registration failure information.
[0092] According to some embodiments, reference Figure 6 , UE includes a modem and an AP, wherein the inter-process communication functional interface (QMI) is a data transmission channel connecting the AP and the Modem. It can be understood that the Modem can communicate with the NR and the NW, and the QMI can pass the Modem information to the AP. For example, after the Modem receives the authentication rejection message sent by the NW, it can parse the authentication rejection message and pass the registration failure information obtained after the parsing to the upper-layer AP through the QMI. Specifically, it can be uploaded to the multi-mode module in the non-access stratum (NAS) layer in the AP. It can be understood that the NAS layer is used for network search, authentication, and initiating registration.
[0093] S204: Determine whether the registration rejection reason is a preset reason. If yes, go to step S205, otherwise, do not perform the disabling operation.
[0094] It can be understood that each preset reason can correspond to an error code, and the rejection reason can be determined based on the error code. For example, the error code may include #20, #21, #26, and #70. Among them, the type corresponding to #20 can be MAC address verification failure (MAC code failure), the type corresponding to #21 can be non-5G authentication unacceptable (Non-5Gauthentification unacceptable), the type corresponding to #26 can be ngKSI parameter occupied (ngKSIalready in use), and the type corresponding to #71 can be terminal and NW synchronization failure (SQN failure). For example, if the registration failure message includes error code #21, it is determined that the registration rejection reason is a preset reason.
[0095] S205: The authentication failure count is increased by one.
[0096] It can be understood that the authentication failure count is 0 in the initial state, and each time step S205 is triggered, the authentication failure count is increased by one.
[0097] S206: Determine whether the authentication failure count is ≥ 2. If so, go to step S207, otherwise, do not perform the disabling operation, and go to step S201.
[0098] According to some embodiments, if the authentication failure count is 0 or 1, no disabling operation is performed and the process goes to step S201.
[0099] It should be noted that the present application does not limit the threshold in step S206. In other optional embodiments, the threshold may also be a value other than 2.
[0100] S207: Disable SA7 for 20 seconds.
[0101] It should be noted that disabling SA for 720 seconds is only an example. Different disabling durations may be implemented according to different disabling times. For example, the disabling duration may be increased according to the disabling times. For another example, the disabling times may be in a circular array. For example, starting from the first disabling, the disabling durations are: 720s, 7200s, 28800s, 86400s, 720s, 7200s, and so on.
[0102] Through a communication method of the present application, even if there is an abnormality in the authentication parameters corresponding to the first network standard in the user device, the wireless network can still be successfully registered based on other standards, so that the user can use data, voice and other functions normally, ensuring the normal use of the device. In addition, the present application scheme increases the disabling time as the number of disabling times increases, which can prevent the device functions from being frequently disabled, thereby increasing the time the user can use the device normally. During the disabling process, the user can also manually unlock the switch of the first network standard at any time, which is convenient for the user to manually retry.
[0103] Figure 7 A schematic diagram of the hardware structure of the electronic device 100 is shown.
[0104] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0105] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0106] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0107] A memory may also be provided in the processor 110 for storing instructions and data corresponding to a communication method provided in an embodiment of the present application. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
[0108] In some embodiments, the processor 110 of the electronic device 100 calls the program instructions stored in the memory to execute the communication method mentioned in the present application according to the obtained program instructions, for example: sending a registration request to the NW based on the first network standard, the first registration request is used to instruct the NW to authenticate the user equipment; receiving an authentication rejection message corresponding to the authentication sent by the NW, repeating the steps: sending a registration request to the NW based on the first network standard until an authentication reply message corresponding to the authentication sent by the NW is received or the number of received authentication rejection messages reaches a preset number; corresponding to the number of times the authentication rejection message is received, disabling the first network standard.
[0109] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0110] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0111] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0112] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0113] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0114] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0115] The USIM interface 195 is used to connect the USIM. The USIM can be connected to and separated from the electronic device 100 by inserting it into the USIM interface 195 or pulling it out from the USIM interface 195. The electronic device 100 can support 1 or N USIM interfaces, where N is a positive integer greater than 1. The USIM interface 195 can support Nano USIM, Micro USIM, USIM, etc. Multiple cards can be inserted into the same USIM interface 195 at the same time. The types of multiple cards can be the same or different. The USIM interface 195 can also be compatible with different types of USIMs. The USIM interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the USIM to realize functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded USIM. The USIM can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0116] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.
[0117] Figure 8 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
[0118] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0119] The application layer can include a series of application packages. Figure 8 As shown, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, dual SIM and mobile network. Among them, users can replace USIM, switch wireless network, switch 5G, etc. through dual SIM and mobile network.
[0120] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0121] like Figure 8 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0122] In some embodiments, the notification manager is used to notify that the 5G function is disabled, to provide message reminders, etc. The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, the mobile device vibrates, the indicator light flashes, etc.
[0123] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0124] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0125] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0126] Accordingly, an embodiment of the present application provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device, and a processor for executing instructions of the above-mentioned communication method.
[0127] Accordingly, an embodiment of the present application provides a readable medium, on which instructions are stored, and when the instructions are executed on an electronic device, the electronic device executes the above-mentioned communication method.
[0128] This specification provides method or process operation steps as shown in the embodiments or flow charts, but more or fewer operation steps may be included based on conventional or non-creative work. The order of steps listed in the embodiments is only one of many execution orders and does not represent the only execution order. In actual execution, the method or process shown in the embodiments or drawings may be executed in sequence or in parallel (for example, in a parallel controller or multi-threaded processing environment).
[0129] The various embodiments disclosed in the present application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application may be implemented as a computer program or program code executed on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0130] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0131] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0132] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.
[0133] As used herein, the term "module" may refer to, be part of, or include: a memory (shared, dedicated, or group) for running one or more software or firmware programs, an application-specific integrated circuit (ASIC), an electronic circuit and / or processor (shared, dedicated, or group), a combinational logic circuit, and / or other suitable components that provide the described functionality.
[0134] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order is not required. Instead, in some embodiments, these features may be described in a manner and / or order different from that shown in the illustrative drawings. In addition, the structural or method features included in a specific figure do not mean that all embodiments need to include such features. In some embodiments, these features may not be included, or these features may be combined with other features.
[0135] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the use of the technical solution of the present application is not limited to the various applications mentioned in the embodiments of the present patent. Various structures and variations can be easily implemented with reference to the technical solution of the present application to achieve the various beneficial effects mentioned herein. Various changes made within the knowledge of ordinary technicians in the field without departing from the purpose of the present application should all fall within the scope of the patent application.
Claims
1. A communication method, characterized in that: For user equipment, including: Sending a registration request to a first core network of a first network standard, where the registration request is used to instruct the first core network to authenticate the user equipment; Receiving a first authentication rejection message sent by the first core network; When the received first authentication rejection message meets the first network switching condition, sending a registration request to the second core network based on the second network standard, wherein the first network standard is higher than the second network standard, and the first network standard is a 5G network standard; Receiving a second authentication rejection message sent by the second core network; When the received second authentication rejection message meets the second network switching condition, a registration request is sent to the first core network based on the first network standard.
2. The method according to claim 1, characterized in that The first network switching condition includes that the number of times the first authentication rejection message including the first type of error type information is received is greater than a number threshold.
3. The method according to claim 2, characterized in that The manner of determining that the first authentication rejection message includes the first type of error type information includes: When the first authentication rejection message includes a preset error identifier, it is determined that the first authentication rejection message includes error type information of the first type.
4. The method according to claim 3, characterized in that: The preset error identifier includes at least one of #20, #21, #26, and #70; The error reason corresponding to #20 is that the MAC address is invalid; The error reason corresponding to #21 is that non-5G authentication is unacceptable; The error reason corresponding to #26 is that the 5G authentication parameters are occupied; The error reason corresponding to #70 is the failure of synchronization between the user equipment and the first core network.
5. The method according to claim 1, characterized in that The second network switching condition includes that error type information included in the received second authentication rejection message is different from error type information included in the received first authentication rejection message.
6. The method according to claim 1, characterized in that Before sending the registration request to the second core network based on the second network standard, the method further includes: Disable the first network standard.
7. The method according to claim 6, characterized in that The disabling the first network standard includes: Determine a disabling duration for disabling the first network standard; Disabling the first network standard; After sending the registration request to the second core network based on the second network standard, the method further includes: Corresponding to disabling the first network standard for the disabling time period, unbanning the first network standard, and sending a registration request to the first core network based on the first network standard.
8. The method according to claim 7, characterized in that The determining a disabling duration of disabling the first network standard includes: Determine the number of times the first network standard is disabled, each number of times corresponding to a preset duration; The preset duration corresponding to the number of prohibition times is determined as the prohibition duration.
9. The method according to claim 1, characterized in that: Before sending the registration request to the first core network based on the first network standard, the method further includes: The first network standard is unbanned.
10. The method according to claim 9, characterized in that The lifting of the ban on the first network standard includes: In response to a network recovery operation performed by the user based on the user equipment, the first network standard is unbanned.
11. The method according to claim 10, characterized in that The network recovery operation includes at least one of turning on or off the airplane mode, pulling out or replacing the user identification card, and turning on or off the 5G switch.
12. The method according to any one of claims 1 to 11, characterized in that: The second network standard is the 4G network standard.
13. An electronic device, characterized in that: include: a memory for storing instructions to be executed by one or more processors of the electronic device, and A processor, configured to execute instructions of the communication method according to any one of claims 1 to 12.
14. A readable medium, characterized in that The readable medium stores instructions, and when the instructions are executed on the electronic device, the electronic device executes the communication method according to any one of claims 1 to 12.