Network type switching method, electronic equipment and storage medium

By adjusting the adjustment instructions on the application processor side or storing the adjustment instructions at the RRC layer of modem, the problem of low success rate of switching network systems of electronic devices is solved and the user experience is improved.

CN119497176APending Publication Date: 2025-02-21HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311035904.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-16
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

In the prior art, the success rate of electronic devices during network switching is low, resulting in poor user experience.

Method used

The success rate of network switching is improved by adjusting the adjustment command method sent to the modem on the application processor (AP) side, or storing the adjustment command at the radio resource control (RRC) layer of the modem.

Benefits of technology

It improves the success rate of network switching and improves user experience, without adjusting the network modem adjustment process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119497176A_ABST
    Figure CN119497176A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of communication, in particular to a network type switching method, electronic equipment and a storage medium. The method can be applied to the use process of the electronic equipment by a user. The method comprises the following steps: adjusting a mode of sending an adjustment instruction to a modem by an application processor side of the electronic equipment; or, storing an adjustment instruction in a radio resource control layer in the modem; or sensing the mode of the adjustment flag bit of the non-access layer in the modem through the application processor; alternatively, the success rate of network type adjustment is improved in a manner that the application processor senses the execution result of the radio resource control layer in the modem.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a network standard switching method, an electronic device, and a storage medium. Background Art

[0002] With the continuous development of communication technology, it is becoming increasingly common to use electronic devices for network connection, and more and more electronic devices support multiple (mobile) network standards. When a user uses an electronic device, the processor of the electronic device will instruct the modem (modulator-demodulator, modem) to switch the network standard used by the electronic device so that the network standard used by the electronic device meets the network requirements of the electronic device or conforms to the network environment of the electronic device.

[0003] For example, in the related art, when an electronic device finds that the current network quality is poor and needs to switch the network standard, it will generate a network standard adjustment instruction. However, due to various reasons, the modem of the electronic device may not be able to successfully perform the network standard adjustment, which will cause the network standard switching of the electronic device to fail, resulting in a low success rate of network standard switching, which will affect the user experience. Summary of the invention

[0004] The embodiments of the present application provide a network standard switching method, an electronic device, and a storage medium, which can improve the success rate of network standard switching and enhance the user experience.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, a network standard switching method is provided, which can be applied to electronic devices such as mobile phones, tablet computers, and car computers; wherein the electronic device includes an application processor AP and a modem modem, the modem includes a non-access NAS layer and a radio resource control RRC layer, and the electronic device uses a first mobile network standard. The above method includes: the AP sends a first adjustment instruction to the NAS layer, so that the NAS layer sends the first adjustment instruction to the RRC layer; the first adjustment instruction is used to instruct the RRC layer to perform a network standard adjustment process. Afterwards, the AP determines that the RRC layer fails to perform the network standard adjustment process, and sends a second adjustment instruction to the NAS layer, and the second adjustment instruction is different from the first adjustment instruction. Next, the AP sends the first adjustment instruction to the NAS layer. The above network standard adjustment process may include: a process of establishing a connection with a cell, a registration process, an authentication process, etc., and the RRC layer executes the network standard adjustment process indicated by the first adjustment instruction, so that the network standard used by the electronic device is switched from the first mobile network standard to the second mobile network standard.

[0007] In the above method, after the AP determines that the RRC layer fails to perform the network standard adjustment process, the AP first sends the second adjustment instruction to the NAS layer, and then sends the first adjustment instruction to the NAS layer. In this way, after receiving the second adjustment instruction, the NAS layer will set the adjustment flag to correspond to the second adjustment instruction. That is to say, when the NAS layer receives the first adjustment instruction, the adjustment flag of the NAS layer corresponds to the second adjustment instruction and does not correspond to the first adjustment instruction. In this way, the first adjustment instruction sent by the AP can be sent to the RRC layer through the NAS layer. Based on this, after the AP determines that the network standard adjustment process fails to be performed, the RRC layer can send the second adjustment instruction to the NAS layer so that the adjustment flag in the NAS layer does not correspond to the first adjustment instruction. In this way, the first adjustment instruction sent by the AP to the modem again will not be intercepted by the NAS layer of the modem, so that the NAS layer can receive the first adjustment instruction again and perform the network standard adjustment process. The success rate of network standard switching can be improved. And, in this method, by adjusting the way in which the AP sends the adjustment instruction to the modem, the success rate of network standard switching can be improved without adjusting the process of the modem performing the network standard adjustment. That is to say, the process of performing network standard adjustment on the modem side in the related solution can be reused. It can be seen that in this implementation, only the network standard adjustment method deployed on the AP side can be modified, and the network standard adjustment method deployed on the modem side can be left unchanged; that is to say, the adjustment to the mobile phone is relatively small, and it will be more convenient and efficient to use.

[0008] In a possible design of the first aspect, the above-mentioned AP determines that the RRC layer fails to execute the network standard adjustment process, including: the AP obtains the network standard currently being used by the electronic device; if the network standard used by the electronic device is the above-mentioned first mobile network standard, it is determined that the RRC layer fails to execute the network standard adjustment process.

[0009] In this design, the AP determines the network standard currently being used by the electronic device by acquiring the network standard currently being used, so that the AP can quickly and accurately determine the result of the network standard adjustment performed by the RRC layer.

[0010] In a possible design of the first aspect, the AP obtaining the network standard currently used by the electronic device may include: after the AP sends the first adjustment instruction and a first preset time has passed, the AP obtains the network standard used by the electronic device. The first preset time may be 3 seconds, 5 seconds, etc.

[0011] In this design, considering that the RRC layer may take a certain amount of time to execute the network standard adjustment process, the AP can wait for a preset period of time to obtain the network standard currently used by the mobile phone. If the RRC layer takes a long time to execute the network standard adjustment process, and the network standard has not been adjusted for a long time, the AP can subsequently instruct the RRC layer to execute the network standard adjustment again, so that the RRC layer executes the network standard adjustment process again, which can enable the mobile phone's network standard to be switched in a timely manner, thereby improving the efficiency of network standard switching.

[0012] In a possible design of the first aspect, the method further includes: after the RRC layer executes the network standard adjustment process, generating an execution result of the network standard adjustment process, and the RRC layer sends the execution result to the AP through the NAS layer. The AP determines that the RRC layer fails to execute the network standard adjustment process, and may also include: if the AP receives an execution result including an execution failure, the AP determines that the RRC layer fails to execute the network standard adjustment process.

[0013] In this design, the execution result is generated by the RRC layer and sent to the AP, so that the AP can directly and accurately determine the result of the network standard adjustment performed by the RRC layer.

[0014] In a possible design of the first aspect, before the AP sends a first adjustment instruction to the NAS layer so that the NAS layer sends the first adjustment instruction to the RRC layer, the method also includes: the AP obtains an adjustment flag of the NAS layer, the adjustment flag corresponds to the adjustment instruction most recently received by the NAS layer, and the adjustment flag is used to enable the NAS layer to intercept the adjustment instruction corresponding to the adjustment flag. Next, if the adjustment flag corresponds to the first adjustment instruction, the AP sends a second adjustment instruction to the NAS layer. The above-mentioned AP sends the first adjustment instruction to the NAS layer so that the NAS layer sends the first adjustment instruction to the RRC layer, which may include: if the adjustment flag does not correspond to the first adjustment instruction, the AP sends the first adjustment instruction to the NAS layer so that the NAS layer sends the first adjustment instruction to the RRC layer.

[0015] In this design, the NAS layer opens the adjustment flag to the AP. Before sending the adjustment command, the AP first queries the adjustment flag of the NAS layer. And according to the adjustment flag, the AP adjusts the adjustment command sent to the NAS layer. In this way, it can reduce the situation where the adjustment command sent by the AP is intercepted by the NAS layer because of the adjustment flag and is not sent to the RRC layer. It can improve the success rate of network standard switching.

[0016] In a possible design of the first aspect, the first adjustment instruction is used to instruct the RRC layer to switch the first mobile network standard to other network standards, and the second adjustment instruction is used to instruct the RRC layer to switch other network standards to the first mobile network standard.

[0017] In a possible design of the first aspect, if the first adjustment instruction is to lower the priority of the new radio interface NR network standard, the second adjustment instruction is to restore the priority of the NR network standard; if the first adjustment instruction is to restore the priority of the NR network standard, the second adjustment instruction is to lower the priority of the NR network standard.

[0018] In a possible design of the first aspect, if the RRC layer successfully performs the network standard adjustment process, the electronic device uses the second mobile network standard, wherein the second mobile network standard is different from the first mobile network standard.

[0019] In the second aspect, another network standard switching method is provided, which can be applied to electronic devices such as mobile phones, tablet computers, and car computers; wherein the electronic device includes an application processor AP and a modem modem, the modem includes a non-access NAS layer and a radio resource control RRC layer, and the electronic device uses a first mobile network standard. The above method includes: the AP sends a first adjustment instruction to the NAS layer; wherein the first adjustment instruction is used to instruct the RRC layer to perform a network standard adjustment process. Afterwards, the NAS layer receives and sends the first adjustment instruction to the RRC layer. Next, after the RRC layer receives the first adjustment instruction sent by the NAS layer, it stores the first adjustment instruction and performs the network standard adjustment process based on the first adjustment instruction. Then, if the RRC layer determines that the execution of the network standard adjustment process has failed, the RRC layer re-executes the network standard adjustment process based on the stored first adjustment instruction.

[0020] In the above method, the RRC layer re-executes the network standard adjustment process based on the stored first adjustment instruction after the network standard adjustment fails. In this way, even if the RRC layer fails to execute the network standard adjustment process due to some factors. The RRC layer can also retry the network standard adjustment process based on the stored first adjustment instruction. It can be seen that in this way, by storing the first adjustment instruction in the RRC layer, the RRC layer can execute the network standard adjustment process again after the network standard adjustment process fails; in this way, the success rate of network standard switching can be improved, and the user experience can be improved. At the same time, in this method, by storing the adjustment instruction in the RRC layer in the modem, the success rate of network standard switching can be improved without adjusting the AP side. That is to say, the process of sending the adjustment instruction from the AP side to the modem in the related scheme can be reused. It can be seen that in this implementation method, only the network standard adjustment process deployed on the modem side, especially the network standard adjustment process deployed in the RRC layer of the modem, can be modified, and the network standard adjustment process deployed on the AP side can not be modified; that is to say, the adjustment of the mobile phone is relatively small, and it will be more convenient and efficient to use.

[0021] In a possible design of the second aspect, the RRC layer determines that the execution of the network standard adjustment process fails, which may include: if the cell to which the RRC layer is connected is a cell of the first network standard, then the RRC layer determines that the execution of the network standard adjustment process fails. In this way, the RRC layer can directly and accurately determine the result of executing the network standard adjustment process.

[0022] In a possible design of the second aspect, the method further includes: after the AP sends the first adjustment instruction and after a second preset time has passed, if the AP determines that the RRC layer has failed to perform the network standard adjustment process, the AP sends a second adjustment instruction to the NAS layer; the second adjustment instruction is different from the first adjustment instruction. Next, after sending the second adjustment instruction to the NAS layer, the AP sends the first adjustment instruction to the NAS layer.

[0023] In this design, it is considered that the adjustment instruction stored in the RRC layer may be lost, which will cause the RRC layer to be unable to re-execute the network standard adjustment process based on the stored first adjustment instruction. Therefore, after waiting for the second preset time, the AP can send the second adjustment instruction to the NAS layer, and then send the first adjustment instruction to the NAS layer; and send the first adjustment instruction to the RRC layer again. In this way, the situation where the first adjustment instruction stored in the RRC layer is lost can be alleviated. In this way, the success rate of network standard adjustment can be improved.

[0024] In a possible design of the second aspect, before the AP sends the first adjustment instruction to the NAS layer, the method further includes: the AP obtains an adjustment flag of the NAS layer, the adjustment flag corresponds to the adjustment instruction most recently received by the NAS layer, and the adjustment flag is used to enable the NAS layer to intercept the adjustment instruction corresponding to the adjustment flag. Next, if the adjustment flag corresponds to the first adjustment instruction, the AP sends a second adjustment instruction to the NAS layer; the second adjustment instruction includes an adjustment instruction different from the first adjustment instruction. And, the AP sends the first adjustment instruction to the NAS layer, including: if the adjustment flag does not correspond to the first adjustment instruction, the AP sends the first adjustment instruction to the NAS layer.

[0025] In a third aspect, a network standard switching method is provided, which can be applied to electronic devices such as mobile phones, tablet computers, and car computers; wherein the electronic device includes an application processor AP and a modem modem, the modem includes a non-access NAS layer and a radio resource control RRC layer, and the electronic device uses a first mobile network standard. The method includes: the AP obtains a first adjustment instruction, and the first adjustment instruction is used to instruct the RRC layer to perform a network standard adjustment process. Afterwards, the AP obtains an adjustment flag bit of the NAS layer, the adjustment flag bit corresponds to the adjustment instruction most recently received by the NAS layer, and the adjustment flag bit is used to enable the NAS layer to intercept the adjustment instruction corresponding to the adjustment flag bit. Next, if the adjustment flag bit corresponds to the first adjustment instruction, the AP sends a second adjustment instruction to the NAS layer, so that the NAS layer sets the adjustment flag bit to correspond to the second adjustment instruction; the second adjustment instruction is different from the first adjustment instruction. Then, the AP sends a first adjustment instruction to the NAS layer, so as to send the first adjustment instruction to the RRC layer through the NAS layer. Next, the RRC layer receives the first adjustment instruction and performs a network standard adjustment process based on the first adjustment instruction.

[0026] In the above method, the AP side senses the adjustment flag in the NAS layer, and before sending the first adjustment instruction, the adjustment flag in the NAS layer is set to be not corresponding to the adjustment instruction to be sent by the AP by sending the second adjustment instruction. In this way, the situation where the adjustment instruction sent by the AP is intercepted by the NAS layer and not sent to the RRC layer because of the adjustment flag can be reduced. Then, the success rate of network standard switching can be improved, and the user experience can be improved.

[0027] In a possible design of the third aspect, the AP obtains the adjustment flag bit of the NAS layer, including:

[0028] The AP sends a query command to the NAS layer. Next, if the query command sent by the AP is received, the NAS layer sends an adjustment flag to the AP. In this way, the AP side can directly and quickly perceive the adjustment flag of the NAS layer.

[0029] In a possible design of the third aspect, the AP obtains the adjustment flag of the NAS layer, including: the NAS layer writes the adjustment flag into a preset storage area. Thereafter, the AP reads the adjustment flag from the preset storage area. In this way, the AP layer can accurately perceive the adjustment flag of the NAS layer.

[0030] In a possible design of the third aspect, the RRC layer receiving the first adjustment instruction includes: the RRC layer receiving and storing the first adjustment instruction. And the method further includes: if the RRC layer fails to perform the network standard adjustment process based on the first adjustment instruction, the RRC layer re-executes the network standard adjustment process based on the stored first adjustment instruction.

[0031] In a possible design of the third aspect, the RRC layer receives the first adjustment instruction, which may include: the RRC layer receives and stores the first adjustment instruction. And the method also includes: if the RRC layer fails to execute the network standard adjustment process based on the first adjustment instruction, the RRC layer re-executes the network standard adjustment process based on the stored first adjustment instruction until the number of times the network standard adjustment process is executed is greater than or equal to the preset number of times or the network standard adjustment process is successfully executed. Next, the RRC layer generates an execution result of the network standard adjustment process. Then, the RRC layer sends the execution result to the AP through the NAS layer.

[0032] In a fourth aspect, a network standard switching method is provided, which can be applied to electronic devices such as mobile phones, tablet computers, and car computers; wherein the electronic device includes an application processor AP and a modem modem, the modem includes a non-access NAS layer and a radio resource control RRC layer, and the electronic device uses a first mobile network standard. The above method includes: the AP sends a first adjustment instruction to the NAS layer, and the first adjustment instruction is used to instruct the RRC layer to perform a network standard adjustment process. Next, the NAS layer receives and sends the first adjustment instruction to the RRC layer. Then, the RRC layer receives the first adjustment instruction sent by the NAS layer. Next, the RRC layer executes the network standard adjustment process based on the first adjustment instruction and generates an execution result of the network standard adjustment process. Thereafter, the RRC layer sends the execution result to the NAS layer. Then, the NAS layer receives and sends the execution result to the AP. Next, the AP receives the execution result. Then, if the AP receives an execution result including an execution failure, the AP sends the first adjustment instruction to the NAS layer.

[0033] In this implementation, the AP senses the result of the network standard adjustment performed by the RRC layer; if the RRC layer fails to perform the network standard adjustment process, the AP sends an adjustment instruction again, so that the RRC layer performs the network standard adjustment process again. In this way, by the AP sensing the result of the network standard adjustment performed by the RRC layer, the success rate of the network standard switching can be further improved, and the user experience can be improved.

[0034] In a possible design of the fourth aspect, the AP receives the execution result, including: the AP receives the execution result within a third preset time after sending the first adjustment instruction to the NAS layer. And the method further includes: if the AP does not receive the execution result within a third preset time (e.g., 3 seconds, 5 seconds, etc.) after sending the first adjustment instruction to the NAS layer, the AP sends the first adjustment instruction to the NAS layer.

[0035] In this design, if the RRC layer takes a long time to perform the network standard adjustment process, the network standard has not been adjusted for a long time. At this time, the AP can instruct the RRC layer to perform the network standard adjustment again, and adjust the network standard again to let the RRC layer perform the network standard adjustment process again, so that the network standard of the mobile phone can be switched in time, which can improve the efficiency of network standard switching. At the same time, it can further improve the success rate of network standard switching and improve the user experience.

[0036] In a possible design of the fourth aspect, if the AP receives an execution result including an execution failure, the AP sends a first adjustment instruction to the NAS layer, including: if the AP receives an execution result including an execution failure, after the AP sends a second adjustment instruction to the NAS layer, the AP sends the first adjustment instruction to the NAS layer; the second adjustment instruction is different from the first adjustment instruction.

[0037] In a possible design of the fourth aspect, the AP sends a first adjustment instruction to the NAS layer, and the first adjustment instruction is used to instruct the RRC layer to perform a network standard adjustment process, including: the AP obtains an adjustment flag of the NAS layer, and the adjustment flag corresponds to the adjustment instruction most recently received by the NAS layer, and the adjustment flag is used to enable the NAS layer to intercept the adjustment instruction corresponding to the adjustment flag. Next, if the adjustment flag corresponds to the first adjustment instruction, after the AP sends a second adjustment instruction to the NAS layer, the AP sends the first adjustment instruction to the NAS layer; the second adjustment instruction is different from the first adjustment instruction, and the first adjustment instruction is used to instruct the RRC layer to perform a network standard adjustment process.

[0038] In a possible design of the fourth aspect, the RRC layer receives a first adjustment instruction sent by the NAS layer, including: the RRC layer receives and stores the first adjustment instruction sent by the NAS layer. And, generating an execution result of the network standard adjustment process, including: if the RRC layer fails to execute the network standard adjustment process based on the first adjustment instruction, the RRC layer executes the network standard adjustment process based on the stored first adjustment instruction until the network standard adjustment process is successfully executed, or the number of times the network standard adjustment process is executed is greater than or equal to a preset number of times. Next, the RRC layer generates the execution result of the network standard adjustment process.

[0039] In a fifth aspect, the present application provides an electronic device, comprising: a memory, one or more processors, and a modem, wherein the memory is coupled to the processor, and the processor comprises at least one application processor; wherein the memory stores computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the processor, the electronic device executes the method described in the first aspect and any one of its designs; or, the electronic device executes the method described in the second aspect and any one of its designs; or, the electronic device executes the method described in the third aspect and any one of its designs; or, the electronic device executes the method described in the fourth aspect and any one of its designs.

[0040] In a sixth aspect, the present application provides a computer-readable storage medium, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the first aspect and any one of its designs; or, the electronic device executes the method described in the second aspect and any one of its designs; or, the electronic device executes the method described in the third aspect and any one of its designs; or, the electronic device executes the method described in the fourth aspect and any one of its designs.

[0041] In the seventh aspect, the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the method described in the first aspect and any one of its designs; or, the electronic device executes the method described in the second aspect and any one of its designs; or, the electronic device executes the method described in the third aspect and any one of its designs; or, the electronic device executes the method described in the fourth aspect and any one of its designs.

[0042] Among them, the technical effects brought about by any design method in the second to seventh aspects can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of a usage scenario provided for an embodiment of the present application;

[0044] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0045] Figure 3 A layered schematic diagram of a communication protocol of a modem provided in an embodiment of the present application;

[0046] Figure 4 A schematic diagram of a software structure of an electronic device provided in an embodiment of the present application;

[0047] Figure 5 A schematic diagram of a network standard switching method flow provided in an embodiment of the present application;

[0048] Figure 6 A schematic diagram of a network setting interface operation of an electronic device provided in an embodiment of the present application;

[0049] Figure 7 A schematic diagram of a flow chart of another network standard switching method provided in an embodiment of the present application;

[0050] Figure 8 A schematic diagram of another network standard switching method flow chart provided in an embodiment of the present application;

[0051] Fig. 9 A schematic diagram of a flow chart of another network standard switching method provided in an embodiment of the present application;

[0052] Fig.10 A schematic diagram of another network standard switching method flow chart provided in an embodiment of the present application;

[0053] Fig.11 A schematic diagram of a flow chart of another network standard switching method provided in an embodiment of the present application;

[0054] Fig.12 A schematic diagram of another network standard switching method flow chart provided in an embodiment of the present application;

[0055] Fig.13 A schematic diagram of a flow chart of another network standard switching method provided in an embodiment of the present application;

[0056] Fig.14 A schematic diagram of another network standard switching method flow chart provided in an embodiment of the present application;

[0057] Fig.15 A schematic diagram of a flow chart of another network standard switching method provided in an embodiment of the present application;

[0058] Fig.16A schematic diagram of another network standard switching method flow chart provided in an embodiment of the present application;

[0059] Fig.17 A flowchart of another network standard switching method provided in an embodiment of the present application;

[0060] Fig.18 A schematic diagram of another network standard switching method flow chart provided in an embodiment of the present application;

[0061] Fig.19 A schematic diagram of a flow chart of another network standard switching method provided in an embodiment of the present application;

[0062] Fig. 20 A schematic diagram of another structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0063] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the embodiments of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or its similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

[0064] Meanwhile, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.

[0065] With the continuous development of communication technology, it is becoming increasingly common to use electronic devices for network connection, and more and more electronic devices support multiple network standards. When a user uses an electronic device, the electronic device (e.g., the processor of the electronic device) will instruct a modem (modulator-demodulator, modem) to switch the network standard used by the electronic device, so that the network standard used by the electronic device meets the network requirements of the electronic device, or conforms to the network environment of the electronic device.

[0066] In some solutions, the electronic device may send a network standard adjustment instruction (hereinafter referred to as adjustment instruction) to the non-access layer of the modem, such as adjustment instruction A. Then, the non-access layer of the modem determines whether to send adjustment instruction A to the radio resource control layer.

[0067] It is understandable that the non-access layer of the modem will have a certain message interception mechanism to avoid passing duplicate messages to the wireless resource control layer and prevent the wireless resource control layer from receiving duplicate messages. For example, the non-access layer determines whether to send adjustment instruction A to the wireless resource control layer according to the adjustment flag. Among them, the adjustment flag corresponds to the adjustment instruction. In some schemes, the non-access layer will have a corresponding relationship between the adjustment flag and the adjustment instruction. Exemplarily, if the value of the adjustment flag is 0, the adjustment flag corresponds to the adjustment instruction of switching network standard A to network standard B; if the value of the adjustment flag is 1, the adjustment flag corresponds to the adjustment instruction of switching network standard A to network standard B. In other schemes, the adjustment flag can also be a summary of the adjustment instruction. If the adjustment flag is "network standard A, network standard B", the adjustment flag corresponds to the adjustment instruction of switching network standard A to network standard B; if the adjustment flag is "network standard B, network standard A", the adjustment flag corresponds to the adjustment instruction of switching network standard B to network standard A.

[0068] If the adjustment flag corresponds to adjustment instruction A, the non-access layer intercepts the adjustment instruction A and does not send the adjustment instruction A to the wireless resource control layer; if the adjustment flag does not correspond to adjustment instruction A, the non-access layer sends the adjustment instruction A to the wireless resource control layer and sets the adjustment flag to correspond to the adjustment instruction A.

[0069] Assuming that the adjustment flag does not correspond to the adjustment instruction A at this time, the non-access layer of the modem sends the adjustment instruction A to the radio resource control layer and sets the adjustment flag to correspond to the adjustment instruction A. Next, the radio resource control layer of the modem executes the network standard adjustment process corresponding to the adjustment instruction A.

[0070] However, when the wireless resource control layer executes adjustment instruction A, the wireless resource control layer may fail to execute the network standard adjustment process due to some factors (such as the wireless resource control layer is performing cell switching, the wireless resource control layer is establishing a connection with the cell, etc.). At this time, if the electronic device detects that the network standard has not been adjusted, the electronic device will resend adjustment instruction A. The adjustment instruction A will be intercepted in the non-access layer at the non-access layer of the modem because the adjustment flag bit corresponds to the adjustment instruction A, and the adjustment instruction A will not be sent to the wireless resource control layer. In other words, if the wireless resource layer does not receive the adjustment instruction A, it will not retry the network standard adjustment process.

[0071] And, in this solution, after receiving the adjustment instruction A, the radio resource control layer triggers the network standard adjustment process based on the adjustment instruction A; then, the adjustment instruction A is discarded by the radio resource control layer. In other words, if the radio resource control layer fails to perform the network standard adjustment process due to some factors, the radio resource control layer may not be able to retry the network standard adjustment process.

[0072] It is understandable that in the above process, when the electronic device sends the adjustment instruction A to the non-access layer of the modem for the first time, the modulation instruction A may correspond to the adjustment flag bit, causing the modem non-access layer to intercept the adjustment instruction A.

[0073] In summary, since the adjustment command will be intercepted by the non-access layer of the modem, the radio resource control layer of the modem will not receive the adjustment command, and the modem will not perform the network standard adjustment process. In addition, when the radio resource control layer of the modem performs the network standard adjustment, there are some factors that will cause the radio resource control layer to fail to perform the network standard adjustment. At the same time, after the radio resource control layer fails to perform the network standard adjustment process, it cannot be retried.

[0074] It can be seen that in the above scheme, the success rate of network mode switching is relatively low, which will affect the user experience.

[0075] In view of this, an embodiment of the present application provides a network standard switching method, which can improve the success rate of network standard adjustment by adjusting the application processor of the electronic device to send adjustment instructions to the modem; or by storing the adjustment instructions in the wireless resource control layer in the modem; or by the application processor sensing the adjustment flag of the non-access layer in the modem; or by the application processor sensing the execution result of the wireless resource control layer in the modem.

[0076] The network standard switching method provided in the embodiment of the present application can be applied to the process of users using electronic devices.

[0077] For example, see Figure 1 . During the daily use of the electronic device 100 by the user, the electronic device 100 can switch the network standard, such as switching network standard A to network standard B. Among them, network standard A can be the network standard currently used by the electronic device 100. For example, the user is using the electronic device 100 to perform activities with high bandwidth requirements (such as video conferencing, watching videos, etc.). If, at this time, the electronic device 100 finds that the bandwidth of network standard A is relatively low, the electronic device 100 will switch the network standard, switching network standard A to network standard B to meet the bandwidth requirements of video conferencing or watching videos. For another example, the user is using the electronic device 100 to perform activities with low latency requirements (such as playing online games, live broadcasting, etc.). If, at this time, the electronic device 100 finds that the latency of network standard A is relatively high, the electronic device 100 will switch the network standard, switching network standard A to network standard B to meet the low latency requirements of online games and live broadcasting.

[0078] It is understandable that the above-mentioned electronic devices can be mobile phones, tablet computers, wearable devices, smart screens, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA) and other electronic devices with multi-network access capabilities; they can also be smart watches, smart bracelets and other IoT devices with multi-network access capabilities, and they can also be vehicle-mounted devices such as vehicle-mounted computers and vehicle-mounted controllers with multi-network access capabilities. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.

[0079] It should be noted that the above-mentioned network standard A or network standard B can be a network standard corresponding to any of the following mobile communication technologies: the fifth generation mobile communication technology (5th generation, 5G), which can also be called new radio (newradio, NR); the fourth generation mobile communication technology (4th generation, 4G), the third generation mobile communication technology (3rd generation, 3G), etc. In addition, the above-mentioned network standard A or network standard B can also be a network standard corresponding to other communication technologies, such as the sixth generation mobile communication technology (6th generation, 6G) or future mobile communication technology, etc., and the embodiments of the present application do not specifically limit this.

[0080] Figure 2FIG. 1 is a schematic diagram of the structure of the electronic device 100 provided in an embodiment of the present application.

[0081] 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.

[0082] It is to be understood that the structure illustrated in the embodiment of the present application 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 split 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.

[0083] 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 memory, 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.

[0084] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0085] The processor 110 may also be provided with a memory for storing instructions and data. 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 cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0086] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0087] 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.

[0088] 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.

[0089] 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.

[0090] The modem processor may include a modulator and a demodulator. 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.

[0091] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0092] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The above wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The above-mentioned GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0093] 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.

[0094] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0095] The internal memory 121 may be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0096] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0097] Exemplarily, the electronic device can access the network provided by the network operator corresponding to the SIM in the SIM card interface 195 through the SIM card interface 195 and the antenna 1, the antenna 2, the mobile communication module 150, the modem processor and the baseband processor.

[0098] It should be noted that the above-mentioned modulation-demodulation processor may also be referred to as a modem 101 (modulation-demodulation, modem), and the modem 101 may be an independent device. In other words, the modem 101 may be independent of the processor 110. The modem 101 may also be provided in the same device as the mobile communication module 150 or other functional modules. The embodiment of the present application does not impose any restrictions on the product form and setting of the modem.

[0099] It should be noted that the modem 101 performs modulation and demodulation based on the protocol specified by the supported communication technology. The protocol specified by the communication technology in the embodiment of the present application can also be referred to as a communication protocol. The communication protocol stack is the sum of the communication protocols at each layer. For example, see Figure 3, the communication protocol stack of the modem 101 can be divided into a control plane and a user plane. Among them, the control plane is used to transmit control signaling, mainly including the non-access stratum (NAS) layer, the radio resource control (RRC) layer, the service data adaptation protocol (SDAP) layer, the packet data convergence protocol (PDCP) layer, the radio link control (RLC) layer, the media access control (MAC) layer and the physical (PHY) layer. The user plane is used to transmit data information, mainly including the SDAP layer, the PDCP layer, the RLC layer, the MAC layer and the PHY layer. It should be understood that under different communication technologies, the division method of the protocol layers of the control plane and the user plane can be different or the same. Among them, the RRC layer, the SDAP layer, the PDCP layer, the RLC layer, the MAC layer and the PHY layer all belong to the access stratum (AS) layer.

[0100] Exemplarily, the AP of the electronic device may send an adjustment instruction to the NAS layer of the modem. Then, the NAS layer sends the adjustment instruction to the RRC layer. Next, the RRC layer performs the process of network standard adjustment.

[0101] As another example, the user may input a network standard adjustment operation through the display screen 194 of the electronic device. Afterwards, the AP sends a network standard adjustment instruction to the NAS layer of the modem in response to the user's network standard adjustment operation. Next, the NAS layer sends the adjustment instruction to the RRC layer. Next, the RRC layer performs the process of network standard adjustment.

[0102] 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. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0103] Figure 4 A schematic diagram of the software structure of the electronic device 100 according to an embodiment of the present application.

[0104] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. The system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime ( Runtime) and system libraries, as well as the kernel layer.

[0105] The application layer can include a series of application packages.

[0106] like Figure 4 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0107] 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.

[0108] like Figure 4 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.

[0109] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0110] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0111] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0112] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0113] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0114] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. 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 notifications of applications 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 displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0115] Runtime includes core libraries and virtual machines. Runtime is responsible for the scheduling and management of the Android system.

[0116] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0117] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0118] 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.

[0119] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0120] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0121] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0122] A 2D graphics engine is a drawing engine for 2D drawings.

[0123] 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.

[0124] The kernel layer may further include: a modem driver.

[0125] Exemplarily, the electronic device can realize the mobile communication function of the electronic device (such as using 5G network, 4G network, etc.) through modem driver, modem, antenna 1, antenna 2, mobile communication module 150, modulation and demodulation processor and baseband processor.

[0126] The following will Figure 1 In the usage scenario shown, the electronic device 100 is a mobile phone, the network standard A is the NR network standard, and the network standard B is the 4G network standard. Taking switching the network standard A to the network standard B as an example, the technical solution provided in the embodiment of the present application is introduced.

[0127] In the embodiment of the present application, the success rate of network system adjustment can be improved by adjusting the way in which the AP sends adjustment instructions to the modem (hereinafter referred to as implementation method 1); or, by storing the adjustment instructions in the RRC layer in the modem (hereinafter referred to as implementation method 2); or, by the way in which the AP senses the adjustment flag of the NAS layer in the modem (hereinafter referred to as implementation method 3); or, by the way in which the AP senses the execution result of the RRC layer in the modem (hereinafter referred to as implementation method 4).

[0128] Implementation 1:

[0129] This implementation provides a network standard switching method, see Figure 5 , the method may include steps S501-S505.

[0130] In some embodiments, before step S510, the above network standard switching method may further include step S500.

[0131] S500. The mobile phone generates a first adjustment instruction.

[0132] After the mobile phone is plugged into a card (such as a SIM card or an eSIM card) and the phone is turned on and registered, the mobile phone can access and use the network provided by the network operator corresponding to the SIM card. During the use of the mobile phone, the mobile phone will generate a first adjustment instruction.

[0133] The first adjustment instruction is used to instruct the RRC layer of the modem to perform a network standard adjustment process to switch the network standard A of the mobile phone to the network standard B. For example, the NR network standard currently used by the mobile phone is switched to the 4G network standard. In other words, the first adjustment instruction may be an adjustment instruction to switch the NR network standard currently used by the mobile phone to the 4G network standard.

[0134] In some embodiments, the mobile phone may generate a first adjustment instruction in response to a trigger operation of the user.

[0135] For example, see Figure 6 , the user can click on a network standard option, such as the card 1 network standard option 601, in the mobile phone network setting interface 600. In response to the user clicking on the card 1 network standard option 601, the mobile phone displays a network standard option menu. Afterwards, in response to the user clicking on the "4G" network standard option 611 in the network standard option menu, the mobile phone generates a first adjustment instruction. The first adjustment instruction is used to instruct to switch the network standard of card 1 from the NR network standard to the 4G network standard.

[0136] In other embodiments, the mobile phone may also generate a first adjustment instruction based on the network quality of the mobile phone. The network quality may include: signal strength, network bandwidth, network delay, etc. Exemplarily, when the network quality of the mobile phone is relatively poor, the mobile phone will generate an adjustment instruction.

[0137] It is understandable that the mobile phone may generate the first adjustment instruction in other ways; or the mobile phone may receive the first adjustment instruction sent by other devices. Specifically, the design may be made according to the actual usage, and the embodiment of the present application does not impose any limitation on this.

[0138] S501. The application processor AP of the mobile phone sends the first adjustment instruction to the modem.

[0139] Exemplarily, the application processor AP of the mobile phone may send a first adjustment instruction to the NAS layer of the modem.

[0140] Afterwards, the NAS layer of the modem can determine whether to send the first adjustment instruction to the RRC layer based on the adjustment flag. If the adjustment flag does not correspond to the first adjustment instruction, the NAS layer sends the first adjustment instruction to the RRC layer and sets the adjustment flag to correspond to the first adjustment instruction; if the adjustment flag corresponds to the first adjustment instruction, the NAS layer does not send the first adjustment instruction to the RRC layer.

[0141] Next, in response to receiving the first adjustment instruction, the RRC layer executes the network standard adjustment process indicated by the first adjustment instruction. The network standard adjustment process may include: a connection establishment process with a base station, a registration process, an authentication process, etc. Specifically, the network standard adjustment process can be designed according to actual usage needs, and the embodiment of the present application does not impose any restrictions on this.

[0142] It is understandable that, during the process of the RRC layer performing the network standard adjustment, the network standard adjustment may fail due to some reasons. For example, during the process of the RRC layer performing the network standard adjustment, a cell switching indication is received.

[0143] In some embodiments, the mobile phone may have some message mechanisms, such as a synchronous message mechanism.

[0144] For example, the mobile phone adopts a synchronous message mechanism. After the AP sends the first adjustment instruction to the NAS layer, the NAS layer will send an instruction received message to the AP. In this way, the AP can perceive that the message channel between the AP and the NAS layer is unobstructed. For example, if the AP does not receive the instruction received message sent by the NAS layer within a certain period of time (such as 50 milliseconds, 70 milliseconds), the AP can resend the first adjustment instruction. In this way, the reliability of communication between the AP and the NAS layer can be ensured. Similarly, the NAS layer and the RRC layer can also have a synchronous message mechanism similar to the above to ensure the reliability of communication between the NAS layer and the RRC layer.

[0145] S502. The AP obtains the network standard currently used by the mobile phone (hereinafter referred to as the current network standard). Then, execute steps S503 and S504; or execute step S505.

[0146] Exemplarily, the AP can query the network standard currently used by the mobile phone through a preset interface (eg, a network standard query interface), so that the AP can accurately and quickly perceive the state of the RRC executing the network standard adjustment process.

[0147] In some embodiments, the AP may obtain the network standard currently used by the mobile phone based on a preset duration (e.g., a first preset duration). For example, after the AP sends a first adjustment instruction and the first preset duration has passed, the AP obtains the network standard used by the electronic device. The first preset duration may be 3 seconds, 5 seconds, and so on. Since the RRC layer will consume a certain amount of time to perform the network standard adjustment process, the AP may wait for a preset duration to obtain the network standard currently used by the mobile phone. If the RRC layer takes a long time to perform the network standard adjustment process, and the network standard has not been adjusted for a long time, the AP may subsequently instruct the RRC layer to perform the network standard adjustment again, so that the RRC layer performs the network standard adjustment process again, which can enable the network standard of the mobile phone to be switched in a timely manner, thereby improving the efficiency of network standard switching.

[0148] Exemplarily, when the time from when the AP sends the first adjustment instruction to the modem to the current time is greater than or equal to the first preset time (e.g., 3 seconds, 5 seconds), the above step S502 is triggered. It can be understood that the AP can determine whether the network standard adjustment on the mobile phone is successful by obtaining the network standard currently used by the mobile phone. In other words, the AP can determine whether the RRC layer of the modem successfully performs the network standard adjustment process through the current network standard.

[0149] For example, see Figure 7 , the above step S502 may include: steps S5021-S5023.

[0150] S5021.AP starts the timer.

[0151] Among them, the timing period of the timer can be the above-mentioned first preset duration.

[0152] S5022. In response to the timer reaching a preset timing period, the AP queries the current network standard.

[0153] Specifically, when the timer reaches a preset timing period or the timer times out, the timer triggers the AP to query the network standard currently used by the mobile phone through a preset interface.

[0154] S5023. If the current network standard is not the NR network standard, turn off the timer and execute step S505; if the current network standard is the NR network standard, execute steps S503 and S504.

[0155] In this way, the AP can periodically determine whether the network standard of the mobile phone has changed, that is, whether the adjustment of the network standard is successful.

[0156] After the above step S502, continue to execute step S503:

[0157] S503. If the current network standard is the same as network standard A, the AP sends a second adjustment instruction to the modem.

[0158] In some embodiments, the second adjustment instruction may include an adjustment instruction different from the first adjustment instruction, for example, an adjustment instruction for switching the 4G network standard to the NR network standard, an adjustment instruction for switching the 4G network standard to the 3G network standard, or an adjustment instruction for switching the NR network standard to the 3G network standard, etc.

[0159] In other embodiments, the second adjustment instruction may include an adjustment instruction opposite to the first adjustment instruction. For example, the first adjustment instruction is used to instruct the RRC layer to switch network standard A to network standard B, and the second adjustment instruction is used to instruct the RRC layer to switch network standard B to network standard A. Specifically, in the case where the first adjustment instruction is an adjustment instruction for switching from the NR network standard to the 4G network standard, the second adjustment instruction may be an adjustment instruction for switching from the 4G network standard to the NR network standard.

[0160] Among them, the network standard adjustment process indicated by the adjustment instruction will switch the original network standard to the target network standard. In other words, the adjustment instruction can be understood as an instruction to switch the original network standard to the target network standard. Then, the second adjustment instruction that is different from the first adjustment instruction can be understood as the original network standard indicated by the second adjustment instruction is different from the original network standard indicated by the first adjustment instruction; and / or, the target network standard indicated by the second adjustment instruction is different from the target network standard indicated by the first adjustment instruction. And, the second adjustment instruction is opposite to the first adjustment instruction (or opposite) and can be understood as the original network standard indicated by the second adjustment instruction is the target network standard indicated by the first adjustment instruction, and the target network standard indicated by the second adjustment instruction is the original network standard indicated by the first adjustment instruction.

[0161] In some embodiments, the network standards that can be used by electronic devices (such as mobile phones) will have priorities, and electronic devices generally use the network standards with the highest priority. Among them, the network standards that can be used by electronic devices can be understood as the network standards provided by the network operator corresponding to the SIM card inserted into the electronic device for use by the SIM card. Such as NR network standard, 4G network standard, 3G network standard, and so on. For example, the network standard with the highest current priority is the NR network standard, the network standard with a lower priority than the NR network standard is the 4G network standard, and the network standard currently used by the electronic device is the NR network standard; the above-mentioned first adjustment instruction may be an adjustment instruction to reduce the NR priority. The above-mentioned second adjustment instruction may be an adjustment instruction to restore the NR priority. Exemplarily, the application processor (AP) of the mobile phone may send a second adjustment instruction to the NAS layer of the modem.

[0162] Then, the NAS layer of the modem can send the second adjustment instruction to the RRC layer based on the adjustment flag. Since in the process of step S501, the NAS layer has set the adjustment flag to correspond to the first adjustment instruction. That is, when the NAS layer receives the second adjustment instruction, the adjustment flag of the NAS layer corresponds to the first adjustment instruction and does not correspond to the second adjustment instruction.

[0163] Next, the NAS layer sends the second adjustment instruction to the RRC layer, and sets the adjustment flag bit to correspond to the second adjustment instruction.

[0164] Afterwards, the RRC layer may execute the network standard adjustment process indicated by the second adjustment instruction based on the second adjustment instruction.

[0165] S504. The AP sends a first adjustment instruction to the modem.

[0166] Exemplarily, the AP may send a first adjustment instruction to the NAS layer of the modem.

[0167] Then, the NAS layer of the modem may send the first adjustment instruction to the RRC layer based on the adjustment flag.

[0168] Since in the process of step S503, the NAS layer has set the adjustment flag to correspond to the second adjustment instruction. That is, when the NAS layer receives the first adjustment instruction, the adjustment flag of the NAS layer corresponds to the second adjustment instruction and will not correspond to the first adjustment instruction. In this way, the first adjustment instruction sent by the AP can be sent to the RRC layer through the NAS layer. That is, in step S504, the first adjustment instruction sent by the AP will not be intercepted by the NAS layer and can be sent to the RRC layer.

[0169] Next, the NAS layer sends the first adjustment instruction to the RRC layer, and sets the adjustment flag bit to correspond to the first adjustment instruction.

[0170] Afterwards, the RRC layer may execute the network standard adjustment process indicated by the first adjustment instruction based on the first adjustment instruction.

[0171] It is understandable that if the AP finds that the current network standard is the same as network standard A, it can be known that the RRC layer of the modem has failed to perform the network standard adjustment process. In other words, the network standard used by the mobile phone has not been adjusted successfully. At this time, if the AP sends the first adjustment instruction to the modem again, since the adjustment flag corresponds to the first adjustment instruction; the first adjustment instruction will be intercepted by the NAS layer and will not be passed to the RRC layer. In other words, since the RRC layer will not receive the first adjustment instruction, the RRC will not perform the network standard adjustment process again.

[0172] Therefore, after the network standard adjustment process triggered in step S501 fails to execute, the RRC layer can send a second adjustment instruction to the NAS layer, so that the adjustment flag in the NAS layer does not correspond to the first adjustment instruction. In this way, the first adjustment instruction sent by the AP to the modem again will not be intercepted by the NAS layer, so that the NAS layer can receive the first adjustment instruction again and execute the network standard adjustment process. The success rate of network standard switching can be improved.

[0173] In other embodiments, after step S504, the process may return to step S502 to obtain the current network standard again; that is, steps S502, S503 and S504 may be executed in a loop until the network standard is adjusted successfully, that is, network standard A is switched to network standard B.

[0174] S505. If the current network standard is different from network standard A, the mobile phone uses network standard B.

[0175] Understandably, if the AP finds that the current network standard is different from network standard A, that is, the network standard adjustment on the mobile phone has been successful. The mobile phone will use network standard B, which is the 4G network. In this way, the mobile phone realizes the switching of network standards, switching network standard A with poor network quality to network standard B with better network quality, which can improve the user experience.

[0176] It can be understood that in this implementation, by adjusting the way in which the AP side sends adjustment instructions to the modem, the success rate of network standard switching can be improved, without adjusting the process of the modem performing network standard adjustment. In other words, the process of the modem side performing network standard adjustment in the relevant scheme can be reused. It can be seen that in this implementation, only the network standard adjustment method deployed on the AP side can be modified, and the network standard adjustment method deployed on the modem side can be left unchanged; that is, the adjustment to the mobile phone is relatively small, and it will be more convenient and efficient to use.

[0177] Implementation 2:

[0178] This implementation provides another network standard switching method, see Figure 8 , the method may include steps S801-S806.

[0179] It is understandable that before executing step S801, the mobile phone can be powered on by inserting a card to complete registration, and then the mobile phone generates a first adjustment instruction. Specifically, this process can refer to the description of step S500.

[0180] S801. The RRC layer of the modem receives a first adjustment instruction.

[0181] Exemplarily, the RRC layer may receive a first adjustment instruction sent by the AP to the RRC through the NAS layer.

[0182] S802. The RRC layer of the modem stores the first adjustment instruction.

[0183] In some embodiments, the RRC layer may store the first adjustment instruction in a cache of the mobile phone; or, the RRC layer may store the first adjustment instruction in a disk of the mobile phone.

[0184] Exemplarily, after running, the RRC layer may apply for some storage space from the mobile phone, such as applying for a certain size of ROM space through the system service of the mobile phone. After receiving the first adjustment instruction, the RRC layer may store the first adjustment instruction in the above ROM space.

[0185] As another example, after acquiring the first adjustment instruction, the RRC layer may store the first adjustment instruction in a local global code of the RRC layer.

[0186] Specifically, the manner in which the RRC layer stores the first adjustment instruction may be designed according to actual usage conditions, and the embodiments of the present application do not impose any limitation on this.

[0187] S803. The RRC layer executes the network standard adjustment process indicated by the first adjustment instruction based on the first adjustment instruction.

[0188] Specifically, the process of performing network standard adjustment at the RRC layer can be found in the above description, which will not be repeated here.

[0189] S804. The RRC layer obtains the current network standard. Then, execute step S805 or step S806.

[0190] In some embodiments, the RRC layer can determine the current network standard based on whether the cell to which the RRC layer is connected is a cell of the 4G network standard or a cell of the NR network standard.

[0191] S805. If the current network standard is the same as network standard A, the RRC layer performs a network standard adjustment process based on the stored first adjustment instruction. Thereafter, step S804 is executed.

[0192] It can be understood that if the current network standard is the same as network standard A; that is, the network standard adjustment process of the RRC layer fails; at this time, the RRC layer can execute the network standard adjustment process again based on the stored first adjustment instruction. Then, the RRC layer can execute the network standard adjustment process again based on the stored first adjustment instruction after the network standard adjustment fails. In this way, even if the RRC layer is affected by some factors, resulting in the failure of the execution of the network standard adjustment process. The RRC layer can also retry the network standard adjustment process based on the stored first adjustment instruction. It can be seen that in this way, by storing the first adjustment instruction in the RRC layer, the RRC layer can execute the network standard adjustment process again after the failure of the execution of the network standard adjustment process; in this way, the success rate of network standard switching can be improved, and the user experience can be improved.

[0193] S806. If the current network standard is different from network standard A, the RRC layer deletes the stored first adjustment instruction.

[0194] In this implementation, by storing the adjustment instructions in the RRC layer in the modem, the success rate of network standard switching can be improved without adjusting the AP side. In other words, the process of sending adjustment instructions from the AP side to the modem in the related scheme can be reused. It can be seen that in this implementation, only the network standard adjustment process deployed on the modem side, especially the network standard adjustment process deployed in the RRC layer of the modem, can be modified, and the network standard adjustment process deployed on the AP side can be left unchanged; that is, the adjustment to the mobile phone is relatively small, and it will be more convenient and efficient to use.

[0195] Implementation 3:

[0196] This implementation provides another network standard switching method, see Fig. 9 , the method may include steps S902-S904.

[0197] Optionally, before step S902, the network standard switching method may further include steps S900 and S901.

[0198] S900. Insert the card into the phone and turn it on to complete the registration.

[0199] Exemplarily, the mobile phone can read SIM card data in a SIM card inserted in a SIM card slot; after the mobile phone is turned on, the SIM card data is used to register with a network provided by a network operator corresponding to the SIM card.

[0200] As another example, the mobile phone can read the eSIM card data of the eSIM card; after the mobile phone is turned on, it registers with the network provided by the network operator corresponding to the eSIM card through the eSIM card data.

[0201] Specifically, the process of completing registration of the mobile phone card machine can be designed according to actual usage needs, and the embodiments of the present application do not impose any restrictions on this.

[0202] S901. The mobile phone generates a first adjustment instruction.

[0203] Specifically, this step may refer to the relevant description of the above step S500, which will not be repeated here.

[0204] S902. The mobile phone's application processor (AP) queries the adjustment flag of the NAS layer on the modem side. If the adjustment flag corresponds to the first adjustment instruction, then execute step S903 and then step S904; if the adjustment flag does not correspond to the first adjustment instruction, then execute step S904.

[0205] In some embodiments, the AP may query the adjustment flag by directly communicating with the NAS layer. For example, the AP may send an adjustment flag query instruction to the NAS layer to trigger the NAS layer to send the adjustment flag to the AP. Afterwards, the NAS layer sends the adjustment flag to the AP in response to receiving the adjustment flag query instruction. In this way, the AP can sense the adjustment flag of the NAS layer. Afterwards, after determining the adjustment flag, the AP may execute steps S903 and S904, or execute step S904.

[0206] In other embodiments, the AP may also query the adjustment flag by indirectly communicating with the NAS layer. For example, the NAS layer may store (write) the adjustment flag in a preset storage area. The preset storage area may be located in the cache of the mobile phone or in the disk of the mobile phone. Afterwards, the AP may read the adjustment flag in the preset storage area. In this way, the AP may sense the adjustment flag of the NAS layer. Afterwards, the AP may execute steps S903 and S904, or execute step S904 after determining the adjustment flag.

[0207] Considering that in some scenarios, the adjustment flag of the modem may be abnormal, in this implementation, before the AP sends an adjustment instruction to the NAS layer, it first obtains the adjustment flag of the NAS layer. And based on the adjustment flag, different adjustment instructions are selected to be sent. In this way, the situation caused by the abnormal adjustment flag can be alleviated, and the success rate of network standard switching can be improved.

[0208] S903. The AP sends a second adjustment instruction to the NAS layer.

[0209] It can be understood that if the adjustment flag bit corresponds to the first adjustment instruction, the NAS layer will intercept the first adjustment instruction after receiving the first adjustment instruction, and the NAS layer will not send the first adjustment instruction to the RRC layer. The NAS layer has a corresponding relationship between the adjustment flag bit and the adjustment instruction; or, the adjustment flag bit can be a summary of the adjustment instruction.

[0210] That is to say, the RRC layer will not receive the first adjustment instruction, and will not perform the network standard adjustment process. Based on this, the AP can send a second adjustment instruction to the NAS layer to trigger the NAS layer to modify the adjustment flag bit, and modify the adjustment flag bit to correspond to the second adjustment instruction. The second adjustment instruction is different from the first adjustment instruction, for example, the network standard after switching indicated by the second adjustment instruction is different from the network standard after switching of the first adjustment instruction standard, or the second adjustment instruction is an adjustment instruction that is opposite (or opposite) to the first adjustment instruction.

[0211] Then, after the AP sends the second adjustment instruction to the NAS layer, the adjustment flag of the NAS layer will not correspond to the first adjustment instruction. In this way, the first adjustment instruction subsequently sent by the AP to the NAS layer can be sent by the NAS layer to the RRC layer. Then, the RRC layer can execute the network standard adjustment process indicated by the first adjustment instruction.

[0212] S904. The AP sends a first adjustment instruction to the NAS layer.

[0213] Through the preceding steps, the adjustment flag of the NAS layer does not correspond to the first adjustment instruction at this time; then, the NAS layer will send the first adjustment instruction to the RRC layer to trigger the RRC layer to execute the network standard adjustment process.

[0214] In this implementation, the AP side senses the adjustment flag in the NAS layer, and before sending the first adjustment instruction, the adjustment flag in the NAS layer is set to be not corresponding to the adjustment instruction to be sent by the AP by sending the second adjustment instruction. In this way, the situation where the adjustment instruction sent by the AP is intercepted by the NAS layer and is not sent to the RRC layer because the adjustment flag is intercepted. Then, the success rate of network standard switching can be improved, and the user experience can be improved.

[0215] Implementation 4:

[0216] This implementation provides another network standard switching method, see Fig.10 , the method may include: steps S1002-S1007.

[0217] Optionally, before step S902, the network standard switching method may further include steps S1000 and S1001.

[0218] S1000. Insert the card into the phone and turn it on to complete the registration.

[0219] Specifically, this step may refer to the relevant description of the above step S900, which will not be repeated here.

[0220] S1001. The mobile phone generates a first adjustment instruction.

[0221] Specifically, this step may refer to the relevant description of the above step S500, which will not be repeated here.

[0222] S1002. The application processor (AP) of the mobile phone sends a first adjustment instruction to the NAS layer of the modem.

[0223] S1003. The NAS layer receives the first adjustment instruction, and sends the first adjustment instruction to the RRC layer.

[0224] In this embodiment, the NAS layer may not send the first adjustment instruction to the RRC layer based on the adjustment flag. That is, regardless of whether the adjustment flag of the NAS layer corresponds to the first adjustment instruction, the NAS layer sends the first adjustment instruction to the RRC layer. Even, the NAS layer may not have an adjustment flag.

[0225] S1004. The RRC layer executes the network standard adjustment process indicated by the first adjustment instruction. For example, the process of establishing a connection with a cell, the registration process, the authentication process, etc. Afterwards, the RRC layer can generate an execution result based on the cell connected to the RRC layer. The execution result includes execution success or execution failure. If the network standard of the cell connected to the RRC layer is the NR network standard, an execution result including execution failure is generated. If the network standard of the cell connected to the RRC layer is the 4G network standard, an execution result including execution failure is generated.

[0226] S1005. The RRC layer sends the execution result to the NAS layer.

[0227] S1006. The NAS layer receives the execution result and sends the execution result to the AP.

[0228] S1007. The AP determines the execution result. If the execution result is an execution failure, the AP returns to step S1002. If the execution result is an execution success, the network standard switching process ends.

[0229] In this way, the AP side can perceive the execution result of the network standard adjustment performed by the RRC layer; and based on the execution result of the network standard adjustment performed by the RRC layer, re-execute the network standard adjustment process; at the same time, in this embodiment, since the NAS layer will not judge whether to transmit the adjustment instruction to the RRC layer based on the adjustment flag bit; that is, the NAS layer will not intercept the adjustment instruction. The adjustment instruction sent by the AP will be sent to the RRC layer by the NAS layer, triggering the RRC layer to perform the network standard adjustment process. If the RRC layer fails to perform the network standard adjustment process, the adjustment instruction sent by the AP can be passed to the RRC layer through the NAS layer, and the network standard adjustment process will be executed again. In this way, by sensing the execution result of the network standard adjustment performed by the RRC layer through the AP, the success rate of network standard switching can be further improved, and the user experience can be improved.

[0230] In some embodiments, if the AP determines that the execution result is an execution failure, the AP may wait for a fourth preset time length (e.g., 2 seconds, 6 seconds, 8 seconds, etc.) and then return to execute step S1002. Considering that if the RRC layer fails to execute the network standard adjustment process; if at this time, the RRC layer executes the network standard adjustment process again, the RRC layer may fail again. Therefore, after the AP determines that the execution result is an execution failure, the AP waits for a period of time and then sends the first adjustment instruction to the RRC layer; the time period in which the RRC layer will not successfully execute the network standard adjustment process can be avoided as much as possible, which can further improve the success rate of network standard switching and improve the user experience.

[0231] In some embodiments, the above step S1007 may also include: if the AP side does not receive the execution result sent by the NAS layer within the third preset time (such as 3 seconds, 5 seconds, 6 seconds), then return to execute step S1002. It can be understood that if the RRC layer takes a long time to perform the network standard adjustment process, and the network standard has not been adjusted for a long time, then the AP can instruct the RRC layer to perform the network standard adjustment process again, adjust the network standard again, and let the RRC layer perform the network standard adjustment process again, so that the network standard of the mobile phone can be switched in time, which can improve the efficiency of network standard switching; at the same time, it can further improve the success rate of network standard switching, which can improve the user experience.

[0232] In some other embodiments of the present application, the above-mentioned multiple implementation methods can also be combined, which can further improve the success rate of network system adjustment and further enhance the user experience.

[0233] In some embodiments, the above implementation 1 may be combined with the above implementation 2. That is, the manner in which the AP side sends the adjustment instruction is adjusted, and the RRC layer on the modem side stores the adjustment instruction.

[0234] For example, see Fig.11 , Fig.11 Corresponding to a network standard switching method, the method may include:

[0235] Execute step S501 and steps S801-S804.

[0236] Afterwards, execute step S805 and then return to execute step S804.

[0237] Alternatively, execute step S806.

[0238] Next, execute step S502. Then, execute step S503 and step S504; or execute step S505.

[0239] After executing step S501, the AP side may wait for a second preset time length before executing step S502. The second preset time length may be 5 seconds, 8 seconds, 10 seconds, etc. In some embodiments, the second preset time length may be referred to as time interval A.

[0240] It can be understood that in this embodiment, since the RRC layer does not feed back the execution result to the AP side, that is, the AP needs to determine whether the network switching is successful through the network standard used by the mobile phone, so as to indirectly confirm whether the RRC layer executes the network standard adjustment process successfully. At the same time, considering that the RRC layer fails to store the first adjustment instruction, or the stored first adjustment instruction is lost; therefore, the AP side can execute step S502 after waiting for time interval A. For example, if the current network standard is still network standard A, the second adjustment instruction is sent first, and then the first adjustment instruction is sent; in this way, the RRC layer can receive and store the first adjustment instruction again, and then execute the network standard adjustment process.

[0241] It can be seen that in this embodiment, when the AP determines that the current network standard has not changed, that is, the current network standard is still network standard A, the AP instructs the modem to perform the network standard adjustment process again, which can alleviate the situation where the RRC layer fails to store the first adjustment instruction, or the situation where the stored first adjustment instruction is lost. In this way, the success rate of network standard switching can be improved.

[0242] In some embodiments, the above implementation mode 1 may be combined with the above implementation mode 3. That is, the AP side adjusts the way of sending the adjustment instruction, and senses the adjustment flag of the NAS layer on the modem side before sending the adjustment instruction.

[0243] For example, see Fig.12 , Fig.12 Corresponding to another network standard switching method, the method may include:

[0244] Execute steps S900-S902A.

[0245] Thereafter, steps S903A and S904A are executed, or step S904A is executed.

[0246] Next, execute step S502.

[0247] Then, execute steps S902B, S903B and S904B; or, execute steps S902B and S903B.

[0248] Then, execute step S505.

[0249] Among them, the above steps S902A and S902B can refer to the description of the above step S902; the above steps S903A and S903B can refer to the description of the above step S903; the above steps S904A and S904B can refer to the description of the above step S904.

[0250] It can be understood that in the embodiment of the present application, the AP obtains the adjustment flag in the NAS layer of the modem before sending the first adjustment instruction to the modem. And judges whether the NAS layer will intercept the first adjustment instruction to be sent by the AP based on the adjustment flag. For example, if the NAS layer intercepts the adjustment instruction to be sent by the AP, the AP first sends the second adjustment instruction to trigger the NAS to modify the adjustment flag. After that, the first adjustment instruction is sent to the NAS layer; in this way, the situation where the first adjustment instruction sent by the AP is intercepted by the NAS layer and not sent to the RRC layer can be alleviated. Thereby, the success rate of network switching can be further improved.

[0251] In some embodiments, the above implementation mode 1 may also be combined with the above implementation mode 4. That is, the AP side adjusts the manner of sending the adjustment instruction, and the RRC layer feeds back the execution result to the AP.

[0252] For example, see Fig.13 , Fig.13 Corresponding to another network standard switching method, the method may include:

[0253] Execute steps S1000-S1007.

[0254] If the execution result is successful, the network standard switching is completed.

[0255] If the execution result is execution failure, after executing step S503, steps S1002-S1007 are executed.

[0256] In this embodiment, the RRC layer feeds back the execution result to the AP, so that the AP can directly know the execution result of the RRC executing the network standard adjustment process based on the first adjustment instruction. If the RRC layer fails to execute the network standard adjustment process, the AP first sends the second adjustment instruction and then sends the first adjustment instruction; in this way, the first adjustment instruction sent by the AP can be prevented from being intercepted at the NAS layer and not being delivered to the RRC layer. The success rate of network standard switching can be further improved.

[0257] In some embodiments, the above implementation manner 2 may be combined with the above implementation manner 3. That is, the RRC layer of the modem stores the adjustment instruction, and the AP senses the adjustment flag bit of the NAS layer in the modem.

[0258] For example, see Fig.14 , Fig.14 Corresponding to a network standard switching method, the method may include:

[0259] Execute steps S900-S902.

[0260] Afterwards, execute steps S903 and S904, or execute step S904.

[0261] Next, execute steps S801-S804.

[0262] Then, execute step S805 or S806.

[0263] In this embodiment, the adjustment flag of the NAS layer is sensed by the AP, and before sending the first adjustment instruction, the adjustment flag is set to be not corresponding to the first adjustment instruction by sending the second adjustment instruction. In this way, the situation where the adjustment instruction sent by the AP is intercepted by the NAS layer and is not sent to the RRC layer because the adjustment flag is intercepted by the NAS layer can be reduced. At the same time, after the RRC layer receives the first adjustment instruction, the first adjustment instruction can also be stored; in this way, even if the RRC layer fails to execute the network standard adjustment process, the RRC layer can execute the network standard adjustment process again based on the stored first adjustment instruction. In this way, the success rate of network standard switching can be further improved.

[0264] In some embodiments, the above implementation manner 2 may also be combined with the above implementation manner 4. That is, the RRC layer in the modem stores the adjustment instruction, and the AP senses the execution result of the RRC layer in the modem.

[0265] For example, see Fig.15 , Fig.15 Corresponding to another network standard switching method, the method may include:

[0266] Execute steps S1000-S1002.

[0267] Afterwards, execute steps S801-S804.

[0268] Next, execute step S805 and return to execute step S804, or execute step S806.

[0269] In step S805, if the network standard adjustment process is executed successfully, an execution result including successful execution is generated and sent to the AP through steps S1005 and S1006.

[0270] After executing step S805 multiple times (eg, 3 times, 5 times), the RRC layer may generate an execution result including an execution failure, and send it to the AP through steps S1005 and S1006.

[0271] Then, execute step S1007.

[0272] In this way, the AP can directly perceive the execution result of the network standard adjustment process executed by the RRC layer, and re-issue the adjustment instruction based on the execution result. At the same time, since the first adjustment instruction is stored in the RRC layer, the RRC layer can independently execute the network standard adjustment process multiple times. As a result, the success rate of network standard switching can be further improved.

[0273] In some embodiments, the above implementation manner 3 may also be combined with the above implementation manner 4. That is, the RRC layer in the modem stores the adjustment instruction, and the AP senses the adjustment flag bit of the NAS layer in the modem.

[0274] For example, see Fig.16 , Fig.16 Corresponding to another network standard switching method, the method may include:

[0275] Execute steps S1000 and S1001.

[0276] Afterwards, execute step S902.

[0277] Next, execute steps S903 and S904, or execute S1002.

[0278] Then, execute steps S1003-S1007.

[0279] If the execution result is successful, the network standard switching is ended.

[0280] If the execution result is execution failure, return to execution step S902.

[0281] In this embodiment, by querying the adjustment flag of the NAS layer before sending the first adjustment instruction, the situation that the first adjustment instruction sent by the AP is intercepted at the NAS layer due to the adjustment flag can be alleviated; at the same time, since the AP can obtain whether the network standard adjustment process of the RRC layer is successfully executed based on the feedback of the RRC layer, it is more direct, efficient and accurate than judging whether the network standard adjustment of the RRC layer is successfully executed by the current network standard of the mobile phone. It can be seen that in this embodiment, by alleviating the situation that the first adjustment instruction is intercepted at the NAS layer, and enabling the AP to directly, efficiently and accurately obtain the execution result of the RRC layer, the success rate of network standard switching can be further improved.

[0282] In some embodiments, the above implementations 1, 2 and 3 may be combined. That is, the AP side sends the adjustment instruction in a manner that is adjusted; and the RRC layer on the modem side stores the adjustment instruction; and the AP senses the adjustment flag of the NAS layer in the modem.

[0283] For example, see Fig.17 , Fig.17 Corresponding to another network standard switching method, the method may include:

[0284] Execute steps S900-S902.

[0285] Afterwards, step S903 and step S904 are executed, or step S904 is executed.

[0286] Next, execute steps S801-S804.

[0287] If in step S804, the current network standard is the same as network standard A, then step S805 is executed and then the process returns to step S804; if in step S804, the current network standard is different from network standard A, then step S806 is executed.

[0288] After executing step S904, the AP side may wait for a time length A before executing step S502. The time length A may be 3 seconds, 4 seconds, 7 seconds, 10 seconds, etc.

[0289] Next, execute step S503 and step S504, or execute step S505.

[0290] It can be understood that in this embodiment, since the RRC layer does not feed back the execution result to the AP side, that is, the AP needs to determine whether the network switch is successful through the network standard used by the mobile phone, so as to indirectly confirm whether the RRC layer executes the network standard adjustment process successfully. At the same time, considering that the RRC layer fails to store the first adjustment instruction, or the stored first adjustment instruction is lost; therefore, the AP side can execute step S502 after waiting for time interval B. For example, if the current network standard is still network standard A, the second adjustment instruction is sent first, and then the first adjustment instruction is sent; in this way, the RRC layer can receive and store the first adjustment instruction again, and then execute the network standard adjustment process.

[0291] Meanwhile, in this embodiment, before sending the first adjustment instruction to the NAS layer, the AP first determines whether the NAS layer will intercept the first adjustment instruction, so as to alleviate the situation where the AP sends the first adjustment instruction to the NAS layer and the NAS layer intercepts it.

[0292] It can be seen that in this embodiment, when the AP determines that the current network standard has not changed, that is, the current network standard is still network standard A, the AP instructs the modem to perform the network standard adjustment process again, which can alleviate the situation where the RRC layer fails to store the first adjustment instruction, or the situation where the stored first adjustment instruction is lost. At the same time, by obtaining the adjustment flag bit, the AP can alleviate the situation where the NAS layer intercepts the first adjustment instruction. In this way, the success rate of network standard switching can be further improved.

[0293] In some embodiments, the above implementations 1, 2 and 4 may be combined. That is, the AP side sends the adjustment instruction in a manner; the RRC layer on the modem side stores the adjustment instruction; and the AP perceives the execution result of the RRC layer in the modem.

[0294] For example, see Fig.18 , Fig.18 Corresponding to another network standard switching method, the method may include:

[0295] Execute steps S1000-S1002.

[0296] Afterwards, execute steps S801-S804.

[0297] If in step S804, the current network standard is the same as network standard A, then step S805 is executed and then the process returns to step S804; if in step S804, the current network standard is different from network standard A, then step S806 is executed.

[0298] After executing step S805 multiple times (eg, 3 times, 5 times), the RRC layer may generate an execution result including an execution failure, and send it to the AP through steps S1005 and S1006.

[0299] Then, execute step S1007.

[0300] Wherein, in step S1007, if the execution result obtained by the AP is that the execution fails, the process returns to step S1002. If the execution result obtained by the AP is that the execution succeeds, the network standard switching process results.

[0301] In some embodiments, the above implementation 1, implementation 2, implementation 3 and implementation 4 may also be combined. That is, the method of sending the adjustment instruction on the AP side is adjusted; and the RRC layer on the modem side stores the adjustment instruction; and the AP perceives the execution result of the RRC layer in the modem; and the AP perceives the adjustment flag of the NAS layer in the modem.

[0302] For example, see Fig.19 , Fig.19 Corresponding to another network standard switching method, the method may include:

[0303] Execute steps S1000 and S1001.

[0304] Next, execute step S902.

[0305] Then, steps S903 and S904 are executed, or S904 is executed.

[0306] Afterwards, execute step S1003.

[0307] Then, execute steps S802-S804.

[0308] Next, after executing step S805, return to execute step S804; or, execute step S806.

[0309] Then, execute steps S1005-S1007.

[0310] In step S1007, if the execution result is execution failure, the process returns to step S1002, and if the execution result is execution success, the network standard switching process ends.

[0311] It should be noted that the network standard switching method provided in the embodiment of the present application can also adopt other combinations of the above-mentioned implementation method 1, implementation method 2, implementation method 3 or implementation method 4, which are not listed one by one here.

[0312] It is understandable that the technical solution provided in the embodiment of the present application can be applied not only to the process of interaction between the NAS layer and the RRC layer of the AP and the modem, but also to the process of interaction between other layers in the electronic device. The embodiment of the present application does not impose any limitation on this.

[0313] It is understandable that in order to implement the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.

[0314] In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0315] The present application also provides an electronic device, such as Fig. 20 As shown, the electronic device may include one or more processors 2001 , a memory 2002 and a communication interface 2003 .

[0316] The memory 2002 and the communication interface 2003 are coupled to the processor 2001. For example, the memory 2002, the communication interface 2003 and the processor 2001 may be coupled together via a bus 2004.

[0317] The communication interface 2003 is used for data transmission with other devices. The memory 2002 stores computer program codes. The computer program codes include computer instructions. When the computer instructions are executed by the processor 2001, the electronic device performs the device authentication in the embodiment of the present application.

[0318] Among them, the processor 2001 can be a processor or a controller, for example, it can be a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the present disclosure. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, and the like.

[0319] The bus 2004 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus 2004 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 20Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0320] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program code is stored. When the processor executes the computer program code, the electronic device executes the relevant method steps in the method embodiment.

[0321] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the relevant method steps in the above method embodiment.

[0322] Among them, the electronic device, computer-readable storage medium or computer program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0323] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0324] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0325] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0326] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0327] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0328] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A network standard switching method, characterized in that: The method is applied to an electronic device, the electronic device includes an application processor AP and a modem, the modem includes a non-access NAS layer and a radio resource control RRC layer, the electronic device uses a first mobile network standard, and the method includes: The AP sends a first adjustment instruction to the NAS layer, so that the NAS layer sends the first adjustment instruction to the RRC layer; the first adjustment instruction is used to instruct the RRC layer to perform a network standard adjustment process; The AP determines that the RRC layer fails to execute the network standard adjustment process, and sends a second adjustment instruction to the NAS layer, where the second adjustment instruction is different from the first adjustment instruction; The AP sends the first adjustment instruction to the NAS layer.

2. The method according to claim 1, characterized in that The AP determines that the RRC layer fails to perform the network standard adjustment process, including: The AP obtains the network standard used by the electronic device; if the network standard used by the electronic device is the first mobile network standard, it is determined that the RRC layer fails to perform the network standard adjustment process.

3. The method according to claim 2, characterized in that The AP obtains the network standard used by the electronic device, including: After the AP sends the first adjustment instruction and a first preset time has passed, the AP obtains the network standard used by the electronic device.

4. The method according to claim 1, characterized in that: The method further comprises: After executing the network standard adjustment process, the RRC layer generates an execution result of the network standard adjustment process, and the RRC layer sends the execution result to the AP through the NAS layer; The AP determines that the RRC layer fails to perform the network standard adjustment process, including: If the AP receives an execution result including an execution failure, the AP determines that the RRC layer fails to execute the network standard adjustment process.

5. The method according to any one of claims 1 to 4, characterized in that Before the AP sends a first adjustment instruction to the NAS layer so that the NAS layer sends the first adjustment instruction to the RRC layer, the method further includes: The AP acquires an adjustment flag of the NAS layer, where the adjustment flag corresponds to an adjustment instruction most recently received by the NAS layer, and the adjustment flag is used to enable the NAS layer to intercept the adjustment instruction corresponding to the adjustment flag; If the adjustment flag corresponds to the first adjustment instruction, the AP sends the second adjustment instruction to the NAS layer; The AP sending a first adjustment instruction to the NAS layer, so that the NAS layer sends the first adjustment instruction to the RRC layer, includes: If the adjustment flag does not correspond to the first adjustment instruction, the AP sends the first adjustment instruction to the NAS layer, so that the NAS layer sends the first adjustment instruction to the RRC layer.

6. The method according to any one of claims 1 to 5, characterized in that The first adjustment instruction is used to instruct the RRC layer to switch the first mobile network standard to other network standards, and the second adjustment instruction is used to instruct the RRC layer to switch the other network standards to the first mobile network standard.

7. The method according to any one of claims 1 to 6, characterized in that If the first adjustment instruction is to lower the priority of the new radio interface NR network standard, the second adjustment instruction is to restore the priority of the NR network standard; if the first adjustment instruction is to restore the priority of the NR network standard, the second adjustment instruction is to lower the priority of the NR network standard.

8. A network standard switching method, characterized in that: The method is applied to an electronic device, the electronic device includes an application processor AP and a modem, the modem includes a non-access NAS layer and a radio resource control RRC layer, the electronic device uses a first mobile network standard, and the method includes: The AP sends a first adjustment instruction to the NAS layer; the first adjustment instruction is used to instruct the RRC layer to perform a network standard adjustment process; The NAS layer receives and sends the first adjustment instruction to the RRC layer; After receiving the first adjustment instruction sent by the NAS layer, the RRC layer stores the first adjustment instruction, and performs the network standard adjustment process based on the first adjustment instruction; If the RRC layer determines that the execution of the network standard adjustment process fails, the RRC layer re-executes the network standard adjustment process based on the stored first adjustment instruction.

9. The method according to claim 8, characterized in that The RRC layer determines that the network standard adjustment process fails, including: If the cell to which the RRC layer is connected is a cell of the first mobile network standard, the RRC layer determines that execution of the network standard adjustment process has failed.

10. The method according to claim 8 or 9, characterized in that: The method further comprises: After the AP sends the first adjustment instruction and a second preset time has passed, if the AP determines that the RRC layer fails to perform the network standard adjustment process, the AP sends a second adjustment instruction to the NAS layer; the second adjustment instruction is different from the first adjustment instruction; After sending the second adjustment instruction to the NAS layer, the AP sends the first adjustment instruction to the NAS layer.

11. The method according to any one of claims 8 to 10, characterized in that: Before the AP sends the first adjustment instruction to the NAS layer, the method further includes: The AP acquires an adjustment flag of the NAS layer, where the adjustment flag corresponds to an adjustment instruction most recently received by the NAS layer, and the adjustment flag is used to enable the NAS layer to intercept the adjustment instruction corresponding to the adjustment flag; If the adjustment flag corresponds to the first adjustment instruction, the AP sends a second adjustment instruction to the NAS layer; the second adjustment instruction includes an adjustment instruction different from the first adjustment instruction; The AP sends a first adjustment instruction to the NAS layer, including: If the adjustment flag is not located at a position corresponding to the first adjustment instruction, the AP sends the first adjustment instruction to the NAS layer.

12. A network standard switching method, characterized in that: The method is applied to an electronic device, the electronic device includes an application processor AP and a modem, the modem includes a non-access NAS layer and a radio resource control RRC layer, the electronic device uses a first mobile network standard, and the method includes: The AP obtains a first adjustment instruction, where the first adjustment instruction is used to instruct the RRC layer to perform a network standard adjustment process; The AP acquires an adjustment flag of the NAS layer, where the adjustment flag corresponds to an adjustment instruction most recently received by the NAS layer, and the adjustment flag is used to enable the NAS layer to intercept the adjustment instruction corresponding to the adjustment flag; If the adjustment flag corresponds to the first adjustment instruction, the AP sends a second adjustment instruction to the NAS layer, so that the NAS layer sets the adjustment flag to correspond to the second adjustment instruction; the second adjustment instruction is different from the first adjustment instruction; The AP sends a first adjustment instruction to the NAS layer, so as to send the first adjustment instruction to the RRC layer through the NAS layer; The RRC layer receives the first adjustment instruction and performs a network standard adjustment process based on the first adjustment instruction.

13. The method according to claim 12, characterized in that The AP obtains the adjustment flag of the NAS layer, including: The AP sends a query instruction to the NAS layer; If the query instruction sent by the AP is received, the NAS layer sends the adjustment flag to the AP; or, The NAS layer writes the adjustment flag into a preset storage area; The AP reads the adjustment flag from the preset storage area.

14. The method according to claim 12 or 13, characterized in that The RRC layer receiving the first adjustment instruction includes: The RRC layer receives and stores the first adjustment instruction; The method further comprises: If the RRC layer fails to execute the network standard adjustment process based on the first adjustment instruction, the RRC layer re-executes the network standard adjustment process based on the stored first adjustment instruction.

15. The method according to claim 12 or 13, characterized in that The RRC layer receiving the first adjustment instruction includes: The RRC layer receives and stores the first adjustment instruction; The method further comprises: If the RRC layer fails to execute the network standard adjustment process based on the first adjustment instruction, the RRC layer re-executes the network standard adjustment process based on the stored first adjustment instruction until the number of times the network standard adjustment process is executed is greater than or equal to a preset number of times, or the network standard adjustment process is successfully executed; The RRC layer generates an execution result of the network standard adjustment process; The RRC layer sends the execution result to the AP through the NAS layer.

16. A network standard switching method, characterized in that: The method is applied to an electronic device, the electronic device includes an application processor AP and a modem, the modem includes a non-access NAS layer and a radio resource control RRC layer, the electronic device uses a first mobile network standard, and the method includes: The AP sends a first adjustment instruction to the NAS layer, where the first adjustment instruction is used to instruct the RRC layer to perform a network standard adjustment process; The NAS layer receives and sends the first adjustment instruction to the RRC layer; The RRC layer receives the first adjustment instruction sent by the NAS layer; The RRC layer performs the network standard adjustment process based on the first adjustment instruction, and generates an execution result of the network standard adjustment process; The RRC layer sends the execution result to the NAS layer; The NAS layer receives and sends the execution result to the AP; The AP receives the execution result; If the AP receives an execution result including an execution failure, the AP sends a first adjustment instruction to the NAS layer.

17. The method according to claim 16, characterized in that: The AP receiving the execution result includes: The AP receives the execution result within a third preset time period after sending the first adjustment instruction to the NAS layer; The method further comprises: If the AP does not receive the execution result within a third preset time period after sending the first adjustment instruction to the NAS layer, the AP sends the first adjustment instruction to the NAS layer.

18. The method according to claim 16 or 17, characterized in that If the AP receives an execution result including an execution failure, the AP sends a first adjustment instruction to the NAS layer, including: If the AP receives an execution result including an execution failure, after the AP sends a second adjustment instruction to the NAS layer, the AP sends the first adjustment instruction to the NAS layer; the second adjustment instruction is different from the first adjustment instruction.

19. The method according to any one of claims 16 to 18, characterized in that: The AP sends a first adjustment instruction to the NAS layer, where the first adjustment instruction is used to instruct the RRC layer to perform a network standard adjustment process, including: The AP acquires an adjustment flag of the NAS layer, where the adjustment flag corresponds to an adjustment instruction most recently received by the NAS layer, and the adjustment flag is used to enable the NAS layer to intercept the adjustment instruction corresponding to the adjustment flag; If the adjustment flag corresponds to the first adjustment instruction, after the AP sends the second adjustment instruction to the NAS layer, the AP sends the first adjustment instruction to the NAS layer; the second adjustment instruction is different from the first adjustment instruction, and the first adjustment instruction is used to instruct the RRC layer to perform a network standard adjustment process.

20. The method according to any one of claims 16 to 19, characterized in that The RRC layer receiving the first adjustment instruction sent by the NAS layer includes: The RRC layer receives and stores the first adjustment instruction sent by the NAS layer; The generating the execution result of the network standard adjustment process includes: If the RRC layer fails to perform the network standard adjustment process based on the first adjustment instruction, the RRC layer performs the network standard adjustment process based on the stored first adjustment instruction until the number of times the network standard adjustment process is performed is greater than or equal to a preset number of times, or the network standard adjustment process is successfully performed; The RRC layer generates an execution result of the network standard adjustment process.

21. An electronic device, characterized in that: The electronic device includes a memory, one or more processors, and a modem, wherein the memory is coupled to the processor, and the processor includes at least one application processor; wherein computer program code is stored in the memory, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1 to 7; or, the electronic device executes the method as described in any one of claims 8 to 11; or, the electronic device executes the method as described in any one of claims 12 to 15; or, the electronic device executes the method as described in any one of claims 16 to 20.

22. A computer-readable storage medium, characterized in that: Comprising computer instructions, when the computer instructions are executed on an electronic device, the electronic device executes the method as described in any one of claims 1-7; or, the electronic device executes the method as described in any one of claims 8-11; or, the electronic device executes the method as described in any one of claims 12-15; or, the electronic device executes the method as described in any one of claims 16-20.