A network switching method and related equipment
By detecting and switching the terminal's radio frequency path and frequency band, the uplink data problem caused by anomalies after network switching was resolved, ensuring communication capability and stability while reducing power consumption.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-05-15
- Publication Date
- 2026-07-31
AI Technical Summary
When the terminal experiences network anomalies after a network switch, it becomes unable to send uplink data normally, affecting basic communication capabilities.
By detecting abnormal transmit power and communication in the terminal's current RF path, the system switches to the target RF path or frequency band to avoid abnormal networks. This includes switching between RF paths and frequency bands. If necessary, the terminal is restarted or abnormal frequency bands are recorded to avoid frequent switching.
To ensure the normal transmission of uplink data, safeguard the basic communication capabilities of the terminal, reduce power consumption, and improve the accuracy and stability of network switching.
Smart Images

Figure CN121013140B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a network switching method and related equipment. Background Technology
[0002] When a terminal switches networks, if the new network experiences problems, the terminal may be unable to send uplink data normally, resulting in a deterioration of the terminal's basic communication capabilities and affecting the user experience. Summary of the Invention
[0003] This application provides a network switching method and related equipment, which helps to ensure the basic communication capabilities of the terminal.
[0004] Firstly, this application provides a network switching method applied to a terminal, comprising:
[0005] When the terminal's current network switches from a wireless network to a cellular network, the system detects whether there is an abnormal transmission power in the first radio frequency path currently used by the terminal to send uplink data.
[0006] When the first radio frequency path has an abnormal transmission power, the radio frequency path currently used by the terminal to send uplink data will be switched to the target radio frequency path.
[0007] Detect whether there is an abnormal transmission power in the target radio frequency path and whether there is a communication abnormality in the terminal;
[0008] When the target radio frequency path has abnormal transmission power or the terminal has a communication abnormality, the terminal's current network is switched from a cellular network to a wireless network.
[0009] Using the above method, after the terminal's current network is switched from a wireless network to a cellular network, the quality of the cellular network can be judged by detecting abnormal transmission power of the radio frequency path and abnormal communication of the terminal. When the first radio frequency path currently used by the terminal to send uplink data has abnormal transmission power, an attempt can be made to handle the abnormality by switching the radio frequency path. The switch target radio frequency path is then checked for abnormal transmission power and abnormal communication of the terminal. If the switch target radio frequency path has abnormal transmission power or abnormal communication of the terminal, it can be determined that the cellular network is abnormal and that the abnormality cannot be eliminated by switching the radio frequency path, causing the terminal to be unable to send uplink data normally. At this time, the terminal's current network can be switched from a cellular network to a wireless network. This can prevent the terminal from sending uplink data under abnormal cellular network conditions, help ensure normal uplink data transmission, and thus ensure the terminal's basic communication capabilities.
[0010] In conjunction with the first aspect, in one possible implementation, the communication anomaly includes at least one of the following:
[0011] The uplink bit error rate is greater than or equal to the first threshold;
[0012] The number of random access failures is greater than or equal to the number of the first failure.
[0013] Network connection failed.
[0014] Through the above implementation methods, the relationship between the uplink bit error rate and a first threshold can be used to determine whether the terminal's uplink bit error rate is abnormal, thereby determining whether the terminal has a communication anomaly. Alternatively, the relationship between the number of random access failures and the first access failure can be used to determine whether the terminal's random access situation is abnormal, thereby determining whether the terminal has a communication anomaly. Furthermore, whether the terminal has failed to register on the network can be used to determine whether the terminal's network connection situation is abnormal, thereby determining whether the terminal has a communication anomaly. Using one or more of the following—uplink bit error rate, random access situation, and network connection situation—to determine the terminal's communication status can more accurately reflect whether the terminal has a communication anomaly.
[0015] In conjunction with the first aspect, in one possible implementation, the target radio frequency path is a second radio frequency path operating in a first frequency band, where the first frequency band is the current operating frequency band of the terminal;
[0016] The step of switching the radio frequency path currently used by the terminal for transmitting uplink data to the target radio frequency path includes:
[0017] The second radio frequency path is determined from the available radio frequency paths in the first frequency band, and the radio frequency path currently used by the terminal to transmit uplink data is switched from the first radio frequency path to the second radio frequency path.
[0018] Through the above implementation method, when the first radio frequency path operating in the first frequency band is detected to have abnormal transmission power, the terminal can switch the radio frequency path without switching the operating frequency band. Specifically, the radio frequency path currently used to transmit uplink data can be switched from the first radio frequency path operating in the first frequency band to the second radio frequency path operating in the first frequency band. In this way, the abnormal radio frequency path can be switched to avoid continuing to use the abnormal radio frequency path to transmit uplink data, thereby realizing abnormal handling.
[0019] In conjunction with the first aspect, in one possible implementation, the target radio frequency path is a third radio frequency path operating in a second frequency band, the second frequency band being different from the first frequency band, the first frequency band being the current operating frequency band of the terminal;
[0020] The step of switching the radio frequency path currently used by the terminal for transmitting uplink data to the target radio frequency path includes:
[0021] The third radio frequency path is determined from the available radio frequency paths in the second frequency band, and the radio frequency path currently used by the terminal to transmit uplink data is switched from the first radio frequency path to the third radio frequency path.
[0022] Through the above implementation method, when the first radio frequency path operating in the first frequency band is detected to have abnormal transmission power, the terminal can switch the radio frequency path while switching the operating frequency band. Specifically, the radio frequency path currently used to transmit uplink data can be switched from the first radio frequency path operating in the first frequency band to the third radio frequency path operating in the second frequency band. In this way, the abnormal radio frequency path can be avoided from continuing to transmit uplink data by switching the frequency band, thereby realizing abnormal handling.
[0023] In conjunction with the first aspect, in one possible implementation, the target radio frequency path is a third radio frequency path operating in a second frequency band, the second frequency band being different from the first frequency band, the first frequency band being the current operating frequency band of the terminal;
[0024] The step of switching the radio frequency path currently used by the terminal for transmitting uplink data to the target radio frequency path includes:
[0025] The second radio frequency path is determined from the available radio frequency paths in the first frequency band, and the radio frequency path currently used by the terminal to transmit uplink data is switched from the first radio frequency path to the second radio frequency path;
[0026] Detect whether there is an abnormal transmission power in the second radio frequency path and whether there is a communication abnormality in the terminal;
[0027] When the second radio frequency path has an abnormal transmission power or the terminal has a communication abnormality, the third radio frequency path is determined from the available radio frequency paths in the second frequency band, and the radio frequency path currently used by the terminal to send uplink data is switched from the second radio frequency path to the third radio frequency path.
[0028] Through the above implementation method, when the first radio frequency path operating in the first frequency band is detected to have abnormal transmission power, the radio frequency path currently used by the terminal to transmit uplink data can be switched from the first radio frequency path operating in the first frequency band to the second radio frequency path operating in the first frequency band. When the second radio frequency path operating in the first frequency band is detected to have abnormal transmission power or the terminal is detected to have a communication abnormality, the radio frequency path currently used by the terminal to transmit uplink data can be switched from the second radio frequency path operating in the first frequency band to the third radio frequency path operating in the second frequency band. In this way, the combination of radio frequency path switching and frequency band switching can avoid continuing to use the abnormal radio frequency path to transmit uplink data, thereby realizing abnormality handling.
[0029] In conjunction with the first aspect, in one possible implementation, the method further includes:
[0030] When the second radio frequency path has abnormal transmission power or the terminal has abnormal communication, the first frequency band is determined to be an abnormal frequency band, and / or the system of the first frequency band is determined to be an abnormal system.
[0031] Through the above implementation, when there is an abnormal transmission power in the second radio frequency path or a communication abnormality in the terminal, it indicates that the failure to handle the abnormality when switching the radio frequency path in the first frequency band is not successful. At this time, it can be determined that the first frequency band is abnormal, and the first frequency band is identified as an abnormal frequency band or the standard of the first frequency band is identified as an abnormal standard, thereby triggering the terminal to initiate network registration behavior in other frequency bands or other standards to achieve abnormal handling.
[0032] In conjunction with the first aspect, in one possible implementation, the second frequency band being different from the first frequency band includes: the second frequency band being different from the first frequency band in terms of frequency band, and / or the second frequency band being different from the first frequency band in terms of standard.
[0033] Through the above implementation methods, the second frequency band can have the same system as the first frequency band but a different frequency band, or the second frequency band can have a different system than the first frequency band. Thus, anomaly handling can be achieved by switching between frequency bands of the same or different systems.
[0034] In conjunction with the first aspect, in one possible implementation, the method further includes:
[0035] When the target radio frequency path has an abnormal transmission power or the terminal has a communication abnormality, the terminal is triggered to restart.
[0036] Through the above implementation method, when the abnormality cannot be eliminated by switching the radio frequency path, the terminal can be restarted. In this way, restarting the terminal can help restore the abnormal radio frequency path and / or abnormal frequency band to normal, thereby realizing the abnormality handling.
[0037] In conjunction with the first aspect, in one possible implementation, the abnormal transmission power includes:
[0038] The number of times the difference between the actual transmission power and the expected transmission power is greater than or equal to the second threshold within the first time period, greater than or equal to the second threshold; and / or,
[0039] The number of times the difference between the actual transmission power and the expected transmission power is continuously greater than or equal to the second threshold within the second time period, and the number of times it is greater than or equal to the third threshold.
[0040] Through the above implementation method, if the difference between the actual transmission power and the expected transmission power is greater than or equal to the second threshold, the power index can be considered abnormal. When the number of abnormal power indexes and / or the number of consecutive abnormal power indexes reach a certain number, the power index can be considered to be continuously abnormal. This can be used as a condition to determine that there is an abnormal transmission power in the radio frequency path, which can improve the accuracy of abnormal transmission power detection.
[0041] In conjunction with the first aspect, in one possible implementation, switching the terminal's current network from a cellular network to a wireless network includes:
[0042] If the interval between the current time and the time of the last network switch of the terminal is greater than or equal to the hysteresis time, the current network of the terminal is switched from cellular network to wireless network.
[0043] The above implementation introduces a hysteresis time. When the target radio frequency path is detected as abnormal, the terminal will switch from the cellular network to the wireless network only if the interval between the current time and the time of the last network switch of the terminal is greater than or equal to the hysteresis time. This can avoid frequent switching between cellular and wireless networks and reduce terminal power consumption.
[0044] In conjunction with the first aspect, in one possible implementation, the hysteresis time takes effect when the number of network handovers performed by the terminal is greater than or equal to the fourth number.
[0045] The above implementation method introduces a hysteresis time effect time. The hysteresis time only takes effect when the number of network handovers of the terminal is greater than or equal to the third number, or when the terminal frequently performs network handovers. This can reduce the impact of the hysteresis time on the network handovers required by the terminal normally.
[0046] In conjunction with the first aspect, in one possible implementation, the hysteresis time expires after a third duration from the time of its activation.
[0047] The above implementation method introduces a duration for which the hysteresis time is active. After the duration expires, the hysteresis time becomes invalid, which reduces the impact of the hysteresis time on the network switching required for normal operation of the terminal.
[0048] In conjunction with the first aspect, in one possible implementation, the method further includes:
[0049] When there is no abnormal transmission power in the target radio frequency path and no communication abnormality in the terminal, the target radio frequency path is used to continue sending uplink data.
[0050] Through the above implementation method, when there is no abnormal transmission power in the target radio frequency path and no communication abnormality in the terminal, it indicates that the abnormality handling has been successfully achieved through radio frequency path switching. As a result, the terminal can continue to use the target radio frequency path to send uplink data, thus ensuring the normal transmission of uplink data and protecting the basic communication capabilities of the terminal.
[0051] In conjunction with the first aspect, in one possible implementation, the method further includes:
[0052] Record abnormal frequency bands, including the frequency band corresponding to the first radio frequency path and the frequency band corresponding to the target radio frequency path;
[0053] When the available frequency band of the cellular network belongs to the abnormal frequency band, the terminal's current network will not be switched from the wireless network to the cellular network.
[0054] Through the above implementation method, the frequency band corresponding to the detected abnormal radio frequency path is recorded as an abnormal frequency band, and the abnormal frequency band is used as a factor to consider when switching networks. For example, when the available frequency band of the cellular network is an abnormal frequency band, the terminal's current network is not switched from the wireless network to the cellular network. This can avoid the terminal switching to the abnormal frequency band and help ensure the terminal's basic communication capabilities.
[0055] In conjunction with the first aspect, in one possible implementation, the method further includes:
[0056] When a terminal switches its current network from a wireless network to a cellular network, the terminal's current network will be switched from a cellular network to a wireless network if at least one of the following conditions is met:
[0057] The uplink bit error rate is greater than or equal to the first threshold;
[0058] The number of random access failures is greater than or equal to the number of the first failure.
[0059] Network access failed;
[0060] The scheduled resources are less than or equal to the third threshold.
[0061] Through the above implementation, after the terminal's current network is switched to a cellular network, if the terminal's uplink bit error rate is greater than or equal to the first threshold, or the terminal's random access count is greater than or equal to the first count, or the terminal fails to register on the network, or the scheduling resources are less than or equal to the third threshold, it can be determined that the cellular network is abnormal. And handling the abnormality under the cellular network may take a long time. At this time, the terminal's current network can be switched from the cellular network to the wireless network, so that the terminal can disconnect from the abnormal cellular network in time, which helps to restore network quality as soon as possible.
[0062] In a second aspect, this application provides a terminal including one or more processors and one or more memories; wherein the one or more memories are coupled to one or more processors, and the one or more memories are used to store computer programs or instructions, which, when executed by the one or more processors, cause the terminal to perform the methods described in the first aspect and any possible implementation thereof.
[0063] Thirdly, this application provides a chip system applied to a terminal. The chip system includes one or more processors, which, when executing computer programs or instructions, cause the terminal to perform the methods described in the first aspect and any possible implementation thereof. The chip system may be a modem or a system-on-chip (SoC) integrating an application processor (AP) and a modem.
[0064] Fourthly, this application provides a computer-readable storage medium storing a computer program or instructions that, when executed on a terminal, cause the terminal to perform the methods described in the first aspect and any possible implementation thereof.
[0065] Fifthly, this application provides a computer program product comprising a computer program or instructions that, when executed on a terminal, cause the terminal to perform the methods described in the first aspect and any possible implementation thereof.
[0066] Understandably, the terminal provided in the second aspect, the chip system provided in the third aspect, the computer storage medium provided in the fourth aspect, and the computer program product provided in the fifth aspect are all used to execute the method provided in this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here. Attached Figure Description
[0067] Figure 1 This is a flowchart illustrating a network switching method provided in an embodiment of this application;
[0068] Figure 2 This is a flowchart illustrating another network switching method provided in an embodiment of this application;
[0069] Figure 3 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0070] Figure 4This is a schematic diagram of an application scenario provided by an embodiment of this application;
[0071] Figure 5 This is a schematic diagram of the software structure of a terminal provided in an embodiment of this application. Detailed Implementation
[0072] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0073] In this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Rather, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0074] The terms "first," "second," etc., used in this application are used to distinguish different objects, not to describe a specific order, and "first," "second," etc., do not necessarily imply a difference. Furthermore, the terms "comprising," "including," and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0075] The term "embodiment" as used in this application means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various locations throughout the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that, unless otherwise specified or logically conflicting, the terminology and / or descriptions between the various embodiments of this application are consistent and can be mutually referenced, and technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
[0076] It should be understood that in this application, "at least one" means one or more, and "more than one" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0077] In this application, the term "when" can be interpreted as meaning "if..." or "after..." or "in response to determining..." or "in response to detecting...". Similarly, the phrases "when determining..." or "if (the stated condition or event) is detected" can be interpreted as meaning "if determining..." or "in response to determining..." or "when (the stated condition or event) is detected" or "in response to detecting (the stated condition or event)".
[0078] When a terminal switches networks, if the new network experiences problems, the terminal may be unable to send uplink data normally, resulting in a deterioration of the terminal's basic communication capabilities and affecting the user experience.
[0079] In view of this, this application provides a network switching method that can automatically handle abnormalities when network problems occur after terminal switching, so as to ensure that the terminal can send uplink data normally and thus protect the basic communication capabilities of the terminal.
[0080] The network switching method provided in the embodiments of this application is described below.
[0081] Please see Figure 1 , Figure 1 This is a flowchart illustrating a network handover method provided in an embodiment of this application. This network handover method can be applied to terminals, such as... Figure 1 As shown, the network switching method may include, but is not limited to, the following steps S101 to S104.
[0082] S101, when the terminal's current network switches from wireless network to cellular network, detect whether there is an abnormal transmission power in the first radio frequency path currently used by the terminal to send uplink data.
[0083] In one possible implementation, when the terminal's current network is a wireless fidelity (Wi-Fi), the terminal can detect the quality of the wireless network, such as whether the wireless network is abnormal (or malfunctioning). Optionally, when the wireless network is detected as abnormal, the terminal can automatically trigger network switching, switching the current network from a wireless network to a cellular network.
[0084] In another possible implementation, the end user can perform a network switching operation according to the actual situation or needs, so that the terminal's current network is switched from wireless network to cellular network.
[0085] For example, the cellular network can be a fifth-generation (5G) network or a fourth-generation (4G) network, such as a new radio (NR) network or a long-term evolution (LTE) network.
[0086] After the terminal switches from its current network to a cellular network, it can detect whether there is an abnormal transmission power in the radio frequency path (denoted as the first radio frequency path) currently used to transmit uplink data (or uplink signals, referred to as uplink data in this document). It can be understood that the terminal transmits uplink data while operating in a specific frequency band. The terminal's current operating frequency band is denoted as the first frequency band, and thus the first radio frequency path specifically refers to the first radio frequency path operating in the first frequency band. In other words, the terminal is currently using the first radio frequency path operating in the first frequency band to transmit uplink data.
[0087] During the process of the terminal transmitting uplink data through the first radio frequency path operating in the first frequency band, the terminal can periodically or non-periodically detect whether there is an abnormal transmission power in the first radio frequency path operating in the first frequency band. For example, the terminal can perform a detection on the first radio frequency path operating in the first frequency band at regular intervals, specifically detecting whether there is an abnormal transmission power in the first radio frequency path operating in the first frequency band within a certain period of time (or a certain duration).
[0088] In one possible implementation, detecting whether the first radio frequency path operating in the first frequency band has abnormal transmission power can specifically include: acquiring N power index values of the first radio frequency path operating in the first frequency band within a preset time period, the power index values being used to indicate whether the power index is abnormal, where N is an integer greater than or equal to 2; when the N power index values meet preset conditions, it is determined that the first radio frequency path operating in the first frequency band has abnormal transmission power.
[0089] Among them, power indicators refer to indicators used to reflect whether there is an abnormality in transmission power. The status of power indicators can include both normal and abnormal states. The power indicator value can be understood as the status value of the power indicator, used to indicate whether the power indicator is in a normal or abnormal state, that is, to indicate whether the power indicator is abnormal. Different power indicator values can indicate different power indicator states. For example, a power indicator value of C1 indicates that the power indicator is normal, while a power indicator value of C2 indicates that the power indicator is abnormal.
[0090] Optionally, a normal power index means that the difference between the actual transmitted power and the expected transmitted power (for simplicity, denoted as the power difference) is less than a preset threshold (for distinction, denoted as the second threshold). An abnormal power index means that the power difference is greater than or equal to the second threshold. The second threshold can be understood as the maximum power difference of the first radio frequency path operating in the first frequency band under normal conditions. In other words, the power index value indicates the relationship between the power difference and the second threshold. When the power index value indicates that the power difference is less than the second threshold, the power difference is considered to be within the normal range, thus the power index can be determined to be normal. Conversely, when the power index value indicates that the power difference is greater than or equal to the second threshold, the power difference is considered to be outside the normal range, thus the power index can be determined to be abnormal.
[0091] It should be understood that in some possible examples, a normal power index can also mean that the power difference is less than or equal to the second threshold, and an abnormal power index can also mean that the power difference is greater than the second threshold.
[0092] It should be noted that the preset duration and the second threshold mentioned above can be set according to actual conditions or needs, and this application embodiment does not limit this.
[0093] In one possible implementation, the terminal can directly obtain the power index detection result (i.e., power index value) of the first radio frequency path operating in the first frequency band from the modem information. In another possible implementation, the terminal can detect the power index of the first radio frequency path operating in the first frequency band in real time, thereby obtaining the power index value.
[0094] Considering the possibility of false detection in a single power index detection result, this application embodiment determines whether there is an abnormal transmission power in the first radio frequency path operating in the first frequency band based on multiple (denoted as N times) power index detection results (i.e., N power index values within a preset time period). This helps to reduce the probability of false detection and improve the accuracy of transmission power abnormality detection.
[0095] The preset conditions can be understood as the conditions that the N power index values must meet to represent an abnormal transmission power. When the N power index values meet the preset conditions, that is, when the N power index values represent an abnormal transmission power, it can be determined that the first radio frequency path operating in the first frequency band has an abnormal transmission power. Optionally, when the N power index values do not meet the preset conditions, that is, when the N power index values cannot represent an abnormal transmission power, it can be determined that the first radio frequency path operating in the first frequency band does not have an abnormal transmission power.
[0096] In one possible implementation, the N power index values satisfy a preset condition, which specifically may include: among the N power index values, M power index values indicate abnormal power performance. Here, M is a positive integer less than or equal to N.
[0097] Among N power index values, there may be power index values indicating abnormal power (for simplicity, denoted as abnormal power index values), and there may also be power index values indicating normal power (for simplicity, denoted as normal power index values). When there are M abnormal power index values among the N power index values, it can be determined that the N power index values meet a preset condition, that is, the N power index values represent abnormal transmission power, and thus it can be determined that the first radio frequency path operating in the first frequency band has abnormal transmission power. Here, the number M of abnormal power index values can also be understood as the number of times the power index is detected as abnormal within a preset time period, that is, the number of times the power difference is greater than or equal to the second threshold within the preset time period.
[0098] In one possible example, M is greater than or equal to a first quantity. The first quantity can be understood as the minimum number of abnormal power index values required for the N power index values to characterize the abnormal transmission power. When the number M of abnormal power index values among the N power index values is greater than or equal to the first quantity, the power index can be considered to be continuously abnormal, thereby determining that there is an abnormal transmission power in the first radio frequency path operating in the first frequency band.
[0099] In another possible example, the ratio of M to N is greater than or equal to a first ratio. The first ratio can be understood as the minimum ratio of the number of abnormal power index values required to characterize the abnormal transmission power among the N power index values to N. When the ratio of the number of abnormal power index values M to N among the N power index values is greater than or equal to the first ratio, the power index can be considered to be continuously abnormal, thereby determining that there is an abnormal transmission power in the first radio frequency path operating in the first frequency band.
[0100] Through the above implementation method, the terminal can determine the number M of abnormal power index values among N power index values. When M is greater than or equal to a first number, or when the ratio of M to N is greater than or equal to a first ratio, the power index can be considered to be continuously abnormal. This can be used as a condition to determine that there is an abnormal transmission power in the first radio frequency path operating in the first frequency band, which can improve the accuracy of abnormal transmission power detection.
[0101] It should be understood that in other possible examples, M could be greater than the first quantity, or the ratio of M to N could be greater than the first ratio.
[0102] In another possible implementation, the N power index values meet a preset condition, which specifically may include: among the N power index values, K consecutive power index values indicate an abnormal power index. Here, K is a positive integer less than or equal to N.
[0103] Among N power index values, there may be abnormal power index values and normal power index values. These N power index values can be arranged in chronological order. When there are K consecutive abnormal power index values among these N power index values, it can be determined that the N power index values meet a preset condition, that is, these N power index values represent abnormal transmission power, and thus it can be determined that the first radio frequency path operating in the first frequency band has abnormal transmission power. Here, the number K of consecutive abnormal power index values can also be understood as the number of times the power index is continuously detected as abnormal within a preset time period, that is, the number of times the power difference is continuously greater than or equal to the second threshold within the preset time period.
[0104] In one possible example, K is greater than or equal to the second quantity. The second quantity can be understood as the minimum consecutive number of abnormal power index values required for the N power index values to characterize the abnormal transmission power. When the consecutive number M of abnormal power index values among the N power index values is greater than or equal to the second quantity, the power index can be considered to be continuously abnormal, thereby determining that there is an abnormal transmission power in the first radio frequency path operating in the first frequency band.
[0105] In another possible example, the ratio of K to N is greater than or equal to a second ratio. The second ratio can be understood as the minimum ratio of the number of consecutive abnormal power index values required to characterize the transmit power anomaly among the N power index values to N. When the ratio of the number of consecutive abnormal power index values K among the N power index values to N is greater than or equal to the second ratio, the power index can be considered to be continuously abnormal, thereby determining that there is a transmit power anomaly in the first radio frequency path operating in the first frequency band.
[0106] Through the above implementation method, the terminal can determine the number K of consecutive abnormal power index values among N power index values. When K is greater than or equal to the second number, or the ratio of K to N is greater than or equal to the second ratio, the power index can be considered to be continuously abnormal. This can be used as a condition to determine that there is an abnormal transmission power in the first radio frequency path operating in the first frequency band, which can improve the accuracy of abnormal transmission power detection.
[0107] It should be understood that in other possible examples, K could be greater than the second quantity, or the ratio of K to N could be greater than the second ratio.
[0108] It should be noted that the first quantity, first ratio, second quantity, and second ratio mentioned above can all be set according to actual circumstances or needs, and this application embodiment does not limit this. The second quantity can be the same as or different from the first quantity, and the second ratio can be the same as or different from the first ratio. Optionally, the second quantity is less than or equal to the first quantity, and the second ratio is less than or equal to the first ratio.
[0109] S102, when there is an abnormal transmission power in the first radio frequency path, the radio frequency path currently used by the terminal to transmit uplink data is switched to the target radio frequency path.
[0110] When an abnormal transmit power is detected in the first radio frequency path operating in the first frequency band, it can be determined that the first radio frequency path operating in the first frequency band is abnormal. At this time, an attempt can be made to handle the abnormality by switching radio frequency paths. The target radio frequency path refers to the radio frequency path after switching. That is to say, when an abnormal transmit power is detected in the first radio frequency path operating in the first frequency band, the terminal can switch the radio frequency path currently used to transmit uplink data to the target radio frequency path, thereby using the target radio frequency path to transmit uplink data.
[0111] In one possible implementation, the target radio frequency path is a second radio frequency path operating in a first frequency band, where the first frequency band is the terminal's current operating frequency band, and the second radio frequency path is different from the first radio frequency path. Switching the radio frequency path currently used by the terminal for transmitting uplink data to the target radio frequency path may specifically include: determining the second radio frequency path from the available radio frequency paths in the first frequency band, and switching the radio frequency path currently used by the terminal for transmitting uplink data from the first radio frequency path to the second radio frequency path.
[0112] When an abnormal transmission power is detected in the first radio frequency path operating in the first frequency band, the terminal can switch radio frequency paths without switching the operating frequency band, that is, switch to other radio frequency paths (referred to as the second radio frequency path) in the same operating frequency band (i.e., the first frequency band).
[0113] Specifically, any available radio frequency (RF) path can be selected from the list of available RF paths in the first frequency band as the second RF path. Then, the RF path currently used by the terminal to transmit uplink data is switched from the first RF path to the second RF path, thus using the second RF path to transmit uplink data. It can be understood that this second RF path specifically refers to the second RF path operating in the first frequency band; that is, after the terminal switches the RF path, it uses the second RF path operating in the first frequency band to transmit uplink data.
[0114] Through the above implementation method, when the first radio frequency path operating in the first frequency band is detected to have abnormal transmission power, the terminal can switch the radio frequency path without switching the operating frequency band. Specifically, the radio frequency path currently used to transmit uplink data can be switched from the first radio frequency path operating in the first frequency band to the second radio frequency path operating in the first frequency band. In this way, the abnormal radio frequency path can be switched to avoid continuing to use the abnormal radio frequency path to transmit uplink data, thereby realizing abnormal handling.
[0115] In another possible implementation, the target radio frequency path is a third radio frequency path operating in the second frequency band, which is different from the first frequency band, which is the current operating frequency band of the terminal. Switching the radio frequency path currently used by the terminal to transmit uplink data to the target radio frequency path can specifically include: determining the third radio frequency path from the available radio frequency paths in the second frequency band, and switching the radio frequency path currently used by the terminal to transmit uplink data from the first radio frequency path to the third radio frequency path.
[0116] When the first radio frequency path operating in the first frequency band is detected to have abnormal transmission power, the terminal can switch radio frequency paths while switching operating frequency bands, that is, switch to a radio frequency path (referred to as the second frequency band) under a different frequency band than the first frequency band (referred to as the third radio frequency path).
[0117] In one possible example, the second frequency band is different from the first frequency band. Specifically, the second frequency band and the first frequency band may have the same standard but different frequency bands. For example, both the second frequency band and the first frequency band are frequency bands under the NR network standard, but the frequency bands of the second frequency band and the first frequency band are different.
[0118] In another possible example, the second frequency band differs from the first frequency band, specifically in that the second frequency band and the first frequency band have different network standards. For example, the second frequency band is a frequency band under the NR network standard, while the second frequency band is a frequency band under the LTE network standard.
[0119] Specifically, when the terminal switches its current operating frequency band from the first frequency band to the second frequency band, it can arbitrarily select an available radio frequency path from the list of available radio frequency paths in the second frequency band as the third radio frequency path. Then, the terminal switches the radio frequency path currently used to transmit uplink data from the first radio frequency path to the third radio frequency path, thus using the third radio frequency path to transmit uplink data. It can be understood that this third radio frequency path specifically refers to the third radio frequency path operating in the second frequency band; that is, after the terminal switches the radio frequency path, it uses the third radio frequency path operating in the second frequency band to transmit uplink data.
[0120] It should be noted that if the first radio frequency path is detected as abnormal while operating in the first frequency band, the cause of the abnormality may be related to the first radio frequency path itself or to the first frequency band. In some possible cases, when the terminal's current operating frequency band is switched from the first frequency band to the second frequency band, the first radio frequency path may function normally while operating in the second frequency band. Therefore, if an abnormal transmit power is detected in the first radio frequency path operating in the first frequency band, the radio frequency path currently used by the terminal for transmitting uplink data can be switched from the first radio frequency path operating in the first frequency band to the first radio frequency path operating in the second frequency band. In other words, the aforementioned target radio frequency path can also be the first radio frequency path operating in the second frequency band. It can also be understood that the aforementioned third radio frequency path can be the same as or different from the first radio frequency path.
[0121] Through the above implementation method, when the first radio frequency path operating in the first frequency band is detected to have abnormal transmission power, the terminal can switch the radio frequency path while switching the operating frequency band. Specifically, the radio frequency path currently used to transmit uplink data can be switched from the first radio frequency path operating in the first frequency band to the third radio frequency path operating in the second frequency band. In this way, the abnormal radio frequency path can be avoided from continuing to transmit uplink data by switching the frequency band, thereby realizing abnormal handling.
[0122] In another possible implementation, the target radio frequency path is a third radio frequency path operating in the second frequency band, which is different from the first frequency band, which is the terminal's current operating frequency band. Switching the radio frequency path currently used by the terminal for transmitting uplink data to the target radio frequency path can specifically include: determining a second radio frequency path from the available radio frequency paths in the first frequency band, the second radio frequency path being different from the first radio frequency path, and switching the terminal's current radio frequency path for transmitting uplink data from the first radio frequency path to the second radio frequency path; detecting whether there is an abnormal transmission power in the second radio frequency path and whether there is a communication abnormality in the terminal; when there is an abnormal transmission power in the second radio frequency path or a communication abnormality in the terminal, determining a third radio frequency path from the available radio frequency paths in the second frequency band, and switching the terminal's current radio frequency path for transmitting uplink data from the second radio frequency path to the third radio frequency path.
[0123] When an abnormal transmit power is detected in the first radio frequency path operating in the first frequency band, the radio frequency path can be switched without switching the operating frequency band. That is, it can be switched to another radio frequency path (denoted as the second radio frequency path) within the same operating frequency band (i.e., the first frequency band). In other words, the radio frequency path currently used by the terminal to transmit uplink data is switched from the first radio frequency path operating in the first frequency band to the second radio frequency path operating in the first frequency band. For a detailed description of radio frequency path switching within the same frequency band, please refer to the previous embodiment, which will not be repeated here.
[0124] During the process of the terminal transmitting uplink data through the second radio frequency path operating in the first frequency band, the terminal can periodically or non-periodically detect whether there are abnormal transmission power in the second radio frequency path operating in the first frequency band and whether there are communication abnormalities in the terminal. For example, the terminal can perform a detection on the second radio frequency path operating in the first frequency band and the communication status at regular intervals. Specifically, it can detect whether there are abnormal transmission power in the second radio frequency path operating in the first frequency band within a certain period of time (or a certain duration), and detect whether there are communication abnormalities in the terminal within a certain period of time (or a certain duration). For a detailed description of the abnormal transmission power detection, please refer to the previous embodiment, which will not be repeated here.
[0125] In one possible implementation, communication anomalies may include at least one of the following: uplink bit error rate greater than or equal to a first threshold; number of random access failures greater than or equal to the first failure; network access failure.
[0126] The first threshold can be understood as the maximum uplink bit error rate of the terminal under normal communication conditions. When the uplink bit error rate of the terminal is greater than or equal to the first threshold, it can be considered that the uplink bit error rate of the terminal exceeds the normal range, that is, the uplink bit error rate of the terminal is abnormal, and thus it is determined that the terminal has a communication anomaly.
[0127] Specifically, during the process of the terminal transmitting uplink data through the second radio frequency path operating in the first frequency band, the terminal can calculate the uplink bit error rate within a certain period of time. If the uplink bit error rate is greater than or equal to the first threshold within that period of time, the uplink bit error rate of the terminal can be considered abnormal, thereby determining that the terminal has a communication abnormality.
[0128] The first count can be understood as the maximum number of random access failures a terminal can experience under normal communication conditions. When the number of random access failures a terminal experiences is greater than or equal to the first count, it can be considered that the number of random access failures exceeds the normal range, indicating an abnormality in the terminal's random access behavior and thus a communication anomaly.
[0129] Specifically, during the process of the terminal transmitting uplink data through the second radio frequency path operating in the first frequency band, the terminal can detect random access within a certain period of time. If the number of random access failures within this period of time is greater than or equal to the first failure, the terminal's random access situation can be considered abnormal, thereby determining that the terminal has a communication anomaly.
[0130] Network registration failure can be understood as the terminal having difficulty or being unable to connect to the network. For example, this network could be a 5G network or a 4G network, such as an NR network or an LTE network. When a terminal fails to register on the network, it can be considered that the terminal's network connection is abnormal, thus indicating a communication anomaly.
[0131] Specifically, during the process of the terminal transmitting uplink data through the second radio frequency path operating in the first frequency band, the terminal can detect the network connection status within a certain period of time. If a network access failure occurs within this period of time, such as a random access failure or the terminal does not display a network identifier (e.g., a 5G or 4G identifier), it can be considered that the terminal's network connection status is abnormal, thereby determining that the terminal has a communication abnormality.
[0132] Through the above implementation methods, the relationship between the uplink bit error rate and a first threshold can be used to determine whether the terminal's uplink bit error rate is abnormal, thereby determining whether the terminal has a communication anomaly. Alternatively, the relationship between the number of random access failures and the first access failure can be used to determine whether the terminal's random access situation is abnormal, thereby determining whether the terminal has a communication anomaly. Furthermore, whether the terminal has failed to register on the network can be used to determine whether the terminal's network connection situation is abnormal, thereby determining whether the terminal has a communication anomaly. Using one or more of the following—uplink bit error rate, random access situation, and network connection situation—to determine the terminal's communication status can more accurately reflect whether the terminal has a communication anomaly.
[0133] It should be understood that in other possible implementations, communication anomalies may also include at least one of the following: uplink bit error rate greater than or equal to a first threshold; number of random access failures greater than the first failure; network access failure. Alternatively, communication anomalies may also include at least one of the following: uplink bit error rate greater than a first threshold; number of random access failures greater than or equal to the first failure; network access failure. Alternatively, communication anomalies may also include at least one of the following: uplink bit error rate greater than a first threshold; number of random access failures greater than the first failure; network access failure.
[0134] It should be noted that the first threshold and the first number mentioned above can be set according to actual conditions or needs, and this application embodiment does not limit them.
[0135] In one possible scenario, if the second radio frequency path operating in the first frequency band does not exhibit any abnormal transmission power and the terminal does not experience any communication abnormalities, then the second radio frequency path operating in the first frequency band can be determined to be normal. Therefore, the terminal can continue to use the second radio frequency path operating in the first frequency band to transmit uplink data.
[0136] In another possible scenario, if the second radio frequency path operating in the first frequency band has abnormal transmission power or the terminal does not have communication abnormalities, it can be determined that the second radio frequency path operating in the first frequency band is also abnormal.
[0137] Optionally, when detecting whether there is an abnormal transmission power in the second radio frequency path operating in the first frequency band and whether there is a communication abnormality in the terminal, the detection of an abnormal transmission power in the second radio frequency path operating in the first frequency band can be prioritized. If no abnormal transmission power is detected in the second radio frequency path operating in the first frequency band, then the detection of a communication abnormality in the terminal is performed. If a communication abnormality is detected in the terminal, then the second radio frequency path operating in the first frequency band can be determined to be abnormal. Conversely, if an abnormal transmission power is detected in the second radio frequency path operating in the first frequency band, then the second radio frequency path operating in the first frequency band can be determined to be abnormal, and there is no need to further detect a communication abnormality in the terminal, thereby reducing terminal power consumption.
[0138] When both the first radio frequency path and the second radio frequency path operating in the first frequency band are detected as abnormal, the first frequency band can be determined to be abnormal. Therefore, an attempt can be made to handle the anomaly by switching frequency bands. For example, the first frequency band can be determined to be an abnormal band, or it can be added to the disabled band list, causing the terminal to trigger a radio link failure (RLF) and initiate network access behavior on other frequency bands. As another example, the standard of the first frequency band can be determined to be an abnormal standard, or its standard can be added to the disabled list, causing the terminal to trigger an RLF and initiate network access behavior on other standards.
[0139] Specifically, when the terminal's current operating frequency band is switched from the first frequency band to the second frequency band, any available radio frequency path can be selected from the list of available radio frequency paths in the second frequency band as the third radio frequency path. Then, the radio frequency path currently used by the terminal to transmit uplink data is switched from the second radio frequency path operating in the first frequency band to the third radio frequency path operating in the second frequency band.
[0140] It should be noted that if the first / second RF path is detected as abnormal while operating in the first frequency band, the cause of the abnormality may be related to the first / second RF path itself or to the first frequency band. In some possible cases, when the terminal's current operating frequency band is switched from the first to the second frequency band, the first / second RF path may function normally while operating in the second frequency band. Therefore, when the first and second RF paths operating in the first frequency band are detected as abnormal, the RF path currently used by the terminal for transmitting uplink data can be switched to the first / second RF path operating in the second frequency band. In other words, the aforementioned target RF path can also be the first / second RF path operating in the second frequency band. It can also be understood that the aforementioned third RF path can be the same as or different from the first / second RF path.
[0141] Through the above implementation method, when the first radio frequency path operating in the first frequency band is detected to have abnormal transmission power, the radio frequency path currently used by the terminal to transmit uplink data can be switched from the first radio frequency path operating in the first frequency band to the second radio frequency path operating in the first frequency band. When the second radio frequency path operating in the first frequency band is detected to have abnormal transmission power or the terminal is detected to have a communication abnormality, the radio frequency path currently used by the terminal to transmit uplink data can be switched from the second radio frequency path operating in the first frequency band to the third radio frequency path operating in the second frequency band. In this way, the combination of radio frequency path switching and frequency band switching can avoid continuing to use the abnormal radio frequency path to transmit uplink data, thereby realizing abnormality handling.
[0142] S103, detect whether there is abnormal transmission power in the target radio frequency path and whether there is abnormal communication in the terminal.
[0143] After switching to the target radio frequency path, the terminal transmits uplink data through the target radio frequency path. During the transmission of uplink data through the target radio frequency path, the terminal can periodically or non-periodically detect whether there are any abnormal transmission power in the target radio frequency path and whether there are any communication abnormalities in the terminal. For a detailed description of the target radio frequency path, transmission power abnormality detection, and communication abnormality detection, please refer to the previous embodiments, which will not be repeated here.
[0144] S104: When there is an abnormal transmission power in the target radio frequency path or a communication abnormality in the terminal, the terminal's current network is switched from a cellular network to a wireless network.
[0145] In one possible scenario, the target RF path may exhibit abnormal transmission power or a communication anomaly at the terminal; in this case, the target RF path can be determined to be abnormal as well. It should be noted that there can be one or more target RF paths. When there are multiple target RF paths, one can be switched to first. If that target RF path is detected as normal, it can continue to be used to transmit uplink data. If that target RF path is detected as abnormal, the process can continue to switch to the next target RF path, and so on. When multiple target RF paths are detected as abnormal, the target RF path is determined to be abnormal as well.
[0146] When the target radio frequency path is detected as abnormal, combined with the previous detection of the first radio frequency path as abnormal, it can be determined that the cellular network currently connected to the terminal is abnormal. Furthermore, switching radio frequency paths (including switching within the same operating frequency band and / or switching between different operating frequency bands) cannot eliminate the cellular network abnormality, causing the terminal to be unable to transmit uplink data normally. In this case, the terminal's current network can be switched from a cellular network to a wireless network to avoid the terminal transmitting uplink data under abnormal cellular network conditions.
[0147] Through the above embodiments, after the terminal's current network is switched from a wireless network to a cellular network, the quality of the cellular network can be determined by detecting abnormal transmission power of the radio frequency path and abnormal communication of the terminal. When the first radio frequency path currently used by the terminal to send uplink data has an abnormal transmission power, an attempt can be made to handle the abnormality by switching the radio frequency path. The switch can then detect whether the target radio frequency path after the switch has an abnormal transmission power or whether the terminal has a communication abnormality. If the target radio frequency path after the switch has an abnormal transmission power or the terminal has a communication abnormality, it can be determined that the cellular network is abnormal and that the abnormality cannot be eliminated by switching the radio frequency path, causing the terminal to be unable to send uplink data normally. At this time, the terminal's current network can be switched from a cellular network to a wireless network. This can prevent the terminal from sending uplink data under an abnormal cellular network, which helps to ensure the normal transmission of uplink data and thus ensures the basic communication capabilities of the terminal.
[0148] In one possible implementation, switching the terminal's current network from a cellular network to a wireless network may specifically include: switching the terminal's current network from a cellular network to a wireless network when the interval between the current time and the time of the terminal's last network switch is greater than or equal to the hysteresis time.
[0149] Here, "current time" refers to the time after the terminal switches to the target radio frequency path and detects an abnormality in the target radio frequency path's transmission power or a communication anomaly in the terminal; it can also be understood as the time it takes for the terminal to attempt a network handover. Hysteresis time can be understood as the minimum time interval required for two consecutive network handovers to occur.
[0150] When the interval between the current time and the time of the terminal's last network handover is greater than or equal to the hysteresis time, the time interval between the current time and the time of the terminal's last network handover is considered to meet the requirements, and the terminal can switch the current network from cellular network to wireless network. When the interval between the current time and the time of the terminal's last network handover is less than the hysteresis time, the time interval between the current time and the time of the terminal's last network handover is considered to not meet the requirements, and the terminal can choose not to perform a network handover this time.
[0151] The above implementation introduces a hysteresis time. When the target radio frequency path is detected as abnormal, the terminal will switch from the cellular network to the wireless network only if the interval between the current time and the time of the last network switch of the terminal is greater than or equal to the hysteresis time. This can avoid frequent switching between cellular and wireless networks and reduce terminal power consumption.
[0152] It should be understood that in other possible implementations, the terminal may switch its current network from cellular to wireless when the interval between the current time and the time of the terminal's last network handover is greater than the hysteresis time. When the interval between the current time and the time of the terminal's last network handover is less than or equal to the hysteresis time, the terminal does not perform a network handover. The hysteresis time can be set according to actual conditions or requirements, and this application embodiment does not limit it in this regard.
[0153] In one possible implementation, the hysteresis time takes effect when the number of network handovers performed by the terminal is greater than or equal to a third number.
[0154] The third quantity can be understood as the minimum number of network handovers required for the hysteresis time to take effect. When the number of network handovers by the terminal is less than the third quantity, or in other words, before the number of network handovers by the terminal reaches the third quantity, the hysteresis time does not take effect. Therefore, when the target radio frequency path is detected as abnormal, the terminal does not need to consider the hysteresis time and can immediately switch the current network from cellular network to wireless network.
[0155] When the number of network handovers by the terminal reaches the third threshold, it can be considered that the terminal is frequently switching networks, and at this time, the hysteresis time takes effect. After the hysteresis time takes effect, when the target radio frequency path is detected as abnormal, the terminal first determines whether the interval between the current time and the time of the terminal's last network handover is greater than or equal to the hysteresis time. If the interval between the current time and the time of the terminal's last network handover is greater than or equal to the hysteresis time, the terminal switches the current network from cellular network to wireless network.
[0156] Specifically, the terminal can record the number of network handovers within a certain period of time. When the number of network handovers by the terminal within that period of time reaches a third number, the hysteresis time takes effect.
[0157] The above implementation method introduces a hysteresis time effect time. The hysteresis time only takes effect when the number of network handovers of the terminal is greater than or equal to the third number, or when the terminal frequently performs network handovers. This can reduce the impact of the hysteresis time on the network handovers required by the terminal normally.
[0158] It should be understood that in other possible implementations, the hysteresis time may also take effect when the number of network handovers at the terminal exceeds a third quantity. The third quantity can be set according to actual conditions or requirements, and this application embodiment does not limit it in this regard.
[0159] In one possible implementation, the hysteresis time expires after a third duration from the time it takes effect.
[0160] The third duration can be understood as the effective duration of the hysteresis time. That is, the hysteresis time is effective for the first three durations after it takes effect, and then expires. After the hysteresis time expires, the terminal can disregard the hysteresis time when switching networks. For example, in the case of hysteresis time failure, when the target radio frequency path is detected as abnormal, the terminal can immediately switch from the cellular network to the wireless network.
[0161] The above implementation method introduces a duration for which the hysteresis time is active. After the duration expires, the hysteresis time becomes invalid, which reduces the impact of the hysteresis time on the network switching required for normal operation of the terminal.
[0162] In one possible implementation, when the target radio frequency path is detected as abnormal, the method may further include: recording the abnormal frequency band, which includes the frequency band corresponding to the first radio frequency path and the frequency band corresponding to the target radio frequency path; and not switching the terminal's current network from the wireless network to the cellular network when the available frequency band of the cellular network belongs to the abnormal frequency band.
[0163] The target radio frequency path is detected as abnormal, and the frequency band corresponding to the target radio frequency path can be recorded as an abnormal frequency band. Combined with the fact that the first radio frequency path was also detected as abnormal, the frequency band corresponding to the first radio frequency path can also be recorded as an abnormal frequency band. Subsequently, when the terminal needs to switch its current network from a wireless network to a cellular network, the terminal first determines whether the available frequency bands of the cellular network belong to the abnormal frequency bands. If the available frequency bands of the cellular network belong to the abnormal frequency bands, the terminal will not switch the current network from a wireless network to a cellular network.
[0164] Through the above implementation method, the frequency band corresponding to the detected abnormal radio frequency path is recorded as an abnormal frequency band, and the abnormal frequency band is used as a factor to consider when switching networks. For example, when the available frequency band of the cellular network is an abnormal frequency band, the terminal's current network is not switched from the wireless network to the cellular network. This can avoid the terminal switching to the abnormal frequency band and help ensure the terminal's basic communication capabilities.
[0165] In one possible implementation, a terminal restart can be triggered when the target radio frequency path is detected as abnormal. Restarting the terminal helps eliminate the communication anomaly, and after the terminal is restarted, the abnormal radio frequency path and / or abnormal frequency band may return to normal.
[0166] Through the above implementation method, when the abnormality cannot be eliminated by switching the radio frequency path, the terminal can be restarted. In this way, restarting the terminal can help restore the abnormal radio frequency path and / or abnormal frequency band to normal, thereby realizing the abnormality handling.
[0167] In another possible scenario, if there is no abnormality in the transmission power of the target radio frequency path and no abnormality in the communication of the terminal, then the target radio frequency path can be determined to be normal.
[0168] In one possible implementation, when there is no abnormal transmission power in the target radio frequency path and no communication abnormality in the terminal, the terminal can continue to use the target radio frequency path to send uplink data.
[0169] Through the above implementation method, when there is no abnormal transmission power in the target radio frequency path and no communication abnormality in the terminal, it indicates that the abnormality handling has been successfully achieved through radio frequency path switching. As a result, the terminal can continue to use the target radio frequency path to send uplink data, thus ensuring the normal transmission of uplink data and protecting the basic communication capabilities of the terminal.
[0170] In one possible implementation, when the terminal's current network switches from a wireless network to a cellular network, the terminal's current network is switched from a cellular network to a wireless network if at least one of the following conditions is met: the uplink bit error rate is greater than or equal to a first threshold; the number of random access failures is greater than or equal to the first number; the network registration fails; or the scheduling resources are less than or equal to a third threshold.
[0171] Specifically, when the uplink bit error rate of the terminal is greater than or equal to the first threshold, or the number of random access failures of the terminal is greater than or equal to the first failure, or the terminal fails to register on the network, it can be determined that the terminal has a communication abnormality or the cellular network currently connected to the terminal is abnormal. For a detailed description of the uplink bit error rate being greater than or equal to the first threshold, the number of random access failures being greater than or equal to the first failure, and the network registration failure, please refer to the previous embodiment, which will not be repeated here.
[0172] Scheduling resources can include uplink scheduling resources and / or downlink scheduling resources. For example, scheduling resources can be time-frequency resources. The third threshold can be understood as the minimum scheduling resources required for normal communication services. When the scheduling resources are less than or equal to the third threshold, it can be considered that the scheduling resources do not meet the service requirements, thereby determining that the cellular network currently connected to the terminal is abnormal.
[0173] Specifically, after the terminal switches from its current network to a cellular network, the terminal can receive scheduling resources from the cellular network. If the scheduling resources are less than or equal to a third threshold within a certain period of time, it can be considered that the scheduling resources do not meet the service requirements, thereby determining that the cellular network currently connected to the terminal is abnormal.
[0174] It should be understood that in other possible implementations, when the scheduling resources are less than a third threshold, it can be determined that the scheduling resources do not meet the service requirements, thereby determining that the cellular network currently connected to the terminal is abnormal. The third threshold can be set according to actual conditions or needs, and this application embodiment does not limit it in this regard.
[0175] If the above-mentioned abnormal situation occurs after the terminal's current network is switched to a cellular network, considering that it may take a long time to handle the abnormal situation under the cellular network, you can choose not to handle the abnormal situation under the cellular network, but instead switch the terminal's current network from the cellular network to the wireless network.
[0176] Through the above implementation, after the terminal's current network is switched to a cellular network, if the terminal's uplink bit error rate is greater than or equal to the first threshold, or the terminal's random access count is greater than or equal to the first count, or the terminal fails to register on the network, or the scheduling resources are less than or equal to the third threshold, it can be determined that the cellular network is abnormal. And handling the abnormality under the cellular network may take a long time. At this time, the terminal's current network can be switched from the cellular network to the wireless network, so that the terminal can disconnect from the abnormal cellular network in time, which helps to restore network quality as soon as possible.
[0177] Please see Figure 2 , Figure 2 This is a flowchart illustrating another network switching method provided in an embodiment of this application. This network switching method can be applied to terminals, such as... Figure 2 As shown, the network switching method may include, but is not limited to, the following steps S201 to S210.
[0178] S201, after the terminal switches the current network from wireless network to cellular network, the terminal uses the first radio frequency path operating in the first frequency band to send uplink data.
[0179] S202, detect whether there is an abnormal transmission power in the first radio frequency path operating in the first frequency band. If yes, proceed to step S203; otherwise, proceed to step S209.
[0180] S203, switch the RF path currently used by the terminal to transmit uplink data from the first RF path operating in the first frequency band to the second RF path operating in the first frequency band.
[0181] S204, the terminal uses the second radio frequency path operating in the first frequency band to transmit uplink data.
[0182] S205, check if the following situation occurs: the second radio frequency path operating in the first frequency band has abnormal transmission power or the terminal has abnormal communication. If yes, proceed to step S206; otherwise, continue to use the second radio frequency path operating in the first frequency band to send uplink data.
[0183] S206, switch the current radio frequency path used by the terminal to transmit uplink data from the second radio frequency path operating in the first frequency band to the third radio frequency path operating in the second frequency band.
[0184] S207, the terminal uses a third radio frequency path operating in the second frequency band to transmit uplink data.
[0185] S208, check if the following situation occurs: the third radio frequency path operating in the second frequency band has abnormal transmission power or the terminal has abnormal communication. If yes, proceed to step S210; otherwise, continue to use the third radio frequency path operating in the second frequency band to send uplink data.
[0186] S209, detect whether the following situation occurs: the terminal has a communication abnormality or the cellular network currently connected to the terminal is abnormal. If yes, proceed to step S210; otherwise, continue to use the first radio frequency path operating in the first frequency band to send uplink data.
[0187] S210, switch the terminal's current network from wireless network to cellular network, or trigger the terminal to restart.
[0188] For the content not specifically described in steps S201 to S210 above, please refer to the relevant descriptions in the previous embodiments, which will not be repeated here.
[0189] Through the above embodiments, when the terminal's current network switches from a wireless network to a cellular network, if there is an abnormal transmission power in the radio frequency path currently used by the terminal to send uplink data, or if the terminal has a communication abnormality, or if the cellular network currently connected to the terminal is abnormal, the abnormality can be handled by switching the radio frequency path / frequency band / network / terminal restart. This helps to ensure that the terminal can send uplink data normally, thereby ensuring the terminal's basic communication capabilities.
[0190] In some possible embodiments, for an abnormal RF path, the number of times the abnormal RF path is detected as abnormal can be recorded (for simplicity, this is referred to as the abnormality count). When the abnormality count reaches a certain number, uplink data transmission using the abnormal RF path is prohibited. Optionally, a counter can be used to record the abnormality count of the abnormal RF path. The following description uses the abnormality detection of a first RF path operating in the first frequency band as an example.
[0191] During the transmission of uplink data by the terminal through the first radio frequency path operating in the first frequency band, if the first radio frequency path operating in the first frequency band is detected as abnormal, the counter is incremented, and the abnormality is handled by switching the radio frequency path / frequency band / restarting the terminal. When the terminal's current operating frequency band is switched from the first frequency band to another frequency band and then switched back to the first frequency band, or when the terminal is restarted, the first radio frequency path operating in the first frequency band may return to normal, thus allowing a switchback to the first radio frequency path operating in the first frequency band.
[0192] When switching back to the first radio frequency path operating in the first frequency band, if the first radio frequency path operating in the first frequency band is detected as normal, the counter is reset to zero. At this point, it can be considered that the first radio frequency path operating in the first frequency band has returned to normal, and the terminal can continue to use the first radio frequency path operating in the first frequency band to transmit uplink data. If the first radio frequency path operating in the first frequency band is still detected as abnormal, the counter is incremented by one. At this point, it can be considered that the first radio frequency path operating in the first frequency band has not returned to normal, and the above abnormality handling can be repeated. When the counter reaches a preset number of times, it can be considered that the first radio frequency path operating in the first frequency band is continuously abnormal, and the terminal can prohibit the use of the first radio frequency path operating in the first frequency band to transmit uplink data.
[0193] The aforementioned prohibition can be permanent, meaning the terminal will no longer use the first radio frequency path operating in the first frequency band to transmit uplink data. Alternatively, the prohibition can be temporary, meaning the terminal is prohibited from using the first radio frequency path operating in the first frequency band to transmit uplink data for a period of time, after which the terminal is permitted to use the first radio frequency path operating in the first frequency band to transmit uplink data.
[0194] The apparatus involved in the embodiments of this application is described below.
[0195] Please see Figure 3 , Figure 3 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. The electronic device 100 corresponds to the terminal in the preceding method embodiment and is used to execute the network switching method provided in the preceding method embodiment.
[0196] like Figure 3 As shown, 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, a headphone jack 170D, a sensor module 180, buttons 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, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity 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.
[0197] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0198] Processor 110 may include one or more processing units, such as: application processor (AP), modem, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0199] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0200] In some embodiments, processor 110 may include one or more interfaces.
[0201] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0202] 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 one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0203] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.
[0204] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates 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 processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194.
[0205] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0206] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with networks and other devices through wireless communication technology.
[0207] Electronic device 100 may include at least two radio frequency (RF) paths, which may be provided by a single RF chip, or each of the at least two RF paths may be provided by a separate RF chip. Electronic devices (e.g., mobile phones) typically contain multiple RF chips, each of which may include at least one RF path. An RF path may include at least one of the following components: a power amplifier (PA), an antenna switch module (ASM), a coupler (CPL), a low noise amplifier (LNA), and a filter, etc. The RF path can be used to perform pre-transmission correlation processing (such as power amplification, filtering, etc.) on signals from the modem before transmitting them through the antenna, and to perform correlation processing on signals received by the antenna before transmitting them to the modem.
[0208] Please see Figure 4 , Figure 4This is a schematic diagram of an application scenario provided by an embodiment of this application. The application scenario involves a modem and two radio frequency (RF) paths (denoted as RF path A and RF path B, respectively). The two RF paths can be considered as part of a mobile communication module. Each RF path can correspond to at least one antenna; for example, RF path A corresponds to two antennas (denoted as antenna a1 and antenna a2, respectively), and RF path B corresponds to two antennas (denoted as antenna b1 and antenna b2, respectively).
[0209] When the electronic device is operating in the first frequency band, assuming the modem is currently using RF path A to transmit uplink data (for example, specifically using antenna a1), if RF path A operating in the first frequency band is detected as abnormal: when the electronic device switches RF paths in the first frequency band, it can switch to other normal RF paths besides RF path A, such as RF path B. That is, it is allowed to switch to any one or at least one of antennas b1 and b2 to transmit uplink data. At this time, it is also possible to prohibit switching to other antennas of RF path A, such as antenna a2, to transmit uplink data. When the electronic device switches its operating frequency band from the first frequency band to the second frequency band, when the electronic device switches RF paths in the second frequency band, it can switch to either RF path A or RF path B. That is, it is allowed to switch to any one or at least one of antennas a1, a2, b1, and b2 to transmit uplink data.
[0210] Please see Figure 5 , Figure 5 This is a schematic diagram of the software structure of a terminal provided in an embodiment of this application.
[0211] The software architecture adopts a layered architecture, dividing the software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. Taking the Android system, which runs on an application processing unit (AP), as an example, in some embodiments, the Android system is divided into five layers, from top to bottom: the application layer, the application framework layer (Framework), the Android runtime and system libraries, the hardware abstraction layer (HAL), and the system kernel layer (Kernel).
[0212] The application layer can include a series of application packages. These packages may include applications (apps) such as camera, gallery, calendar, call, map, wireless local area networks (WLAN), Bluetooth, music, video, and SMS. The application layer may also include a system UI, which displays the electronic device's interface, such as the signal icon corresponding to the SIM card or the call interface. The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes predefined functions. For example, it may include a window manager, content provider, view system, telephony manager, resource manager, and notification manager. The telephony manager provides the terminal's call functionality, such as call status management (including connection and disconnection). The application framework layer may also include a radio interface layer (RIL), through which the modem can interact with the telephony.
[0213] A modem may include a non-access stratum (NAS) layer, a radio resource control (RRC) layer, a packet data convergence protocol (PDCP) layer, a radio link control (RLC) layer, a medium access control (MAC) layer, and a physical (PHY) layer. Each of these layers can be a software module. The modem interacts with the base station via an antenna.
[0214] This application also provides a terminal, which includes one or more processors and one or more memories. The one or more memories are coupled to the one or more processors. The one or more memories are used to store computer programs or instructions, which, when executed by the one or more processors, cause the terminal to perform the methods described in the above method embodiments.
[0215] This application also provides a chip system that can be applied to a terminal. The chip system includes one or more processors, which, when executing computer programs or instructions, cause the terminal to perform the methods described in the above method embodiments.
[0216] In one possible design, the chip system also includes one or more memories for storing program instructions and data, which may be located inside or outside the processor.
[0217] The chip system can consist of chips or include chips and other discrete components.
[0218] The processor in this chip system can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0219] The memory in this chip system can be integrated with the processor or set up separately from the processor; this application embodiment does not limit this. For example, the memory can be a non-transient processor, such as read-only memory (ROM), which can be integrated with the processor on the same chip or set up separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.
[0220] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), an application processor (AP), a modem, a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0221] This application also provides a computer-readable storage medium storing a computer program or instructions that, when executed on a terminal, cause the terminal to perform the methods described in the above method embodiments.
[0222] This application also provides a computer program product, which includes a computer program or instructions that, when run on a terminal, cause the terminal to execute the methods described in the above method embodiments.
[0223] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A network handover method, characterized by, The method includes: When the terminal's current network switches from a wireless network to a cellular network, the system detects whether there is an abnormal transmission power in the first radio frequency path currently used by the terminal to send uplink data; the first radio frequency path operates in a first frequency band, which is the terminal's current operating frequency band. When the first radio frequency path has an abnormal transmission power, the radio frequency path currently used by the terminal to transmit uplink data is switched to the target radio frequency path; the target radio frequency path operates in the first frequency band or the second frequency band, the second frequency band being different from the first frequency band; Detect whether there is an abnormal transmission power in the target radio frequency path and whether there is a communication abnormality in the terminal; When the target radio frequency path has abnormal transmission power or the terminal has a communication abnormality, the terminal's current network is switched from a cellular network to a wireless network.
2. The method of claim 1, wherein, The communication anomaly includes at least one of the following: The uplink bit error rate is greater than or equal to the first threshold; The number of random access failures is greater than or equal to the number of the first failure. Network connection failed.
3. The method according to claim 1 or 2, characterized in that, The target radio frequency path is a second radio frequency path operating in the first frequency band; The step of switching the radio frequency path currently used by the terminal for transmitting uplink data to the target radio frequency path includes: The second radio frequency path is determined from the available radio frequency paths in the first frequency band, and the radio frequency path currently used by the terminal to transmit uplink data is switched from the first radio frequency path to the second radio frequency path.
4. The method according to claim 1 or 2, characterized in that, The target radio frequency path is a third radio frequency path operating in the second frequency band; The step of switching the radio frequency path currently used by the terminal for transmitting uplink data to the target radio frequency path includes: The third radio frequency path is determined from the available radio frequency paths in the second frequency band, and the radio frequency path currently used by the terminal to transmit uplink data is switched from the first radio frequency path to the third radio frequency path.
5. The method according to claim 1 or 2, characterized in that, The target radio frequency path is a third radio frequency path operating in the second frequency band; The step of switching the radio frequency path currently used by the terminal for transmitting uplink data to the target radio frequency path includes: Determine a second radio frequency path from the available radio frequency paths in the first frequency band, and switch the radio frequency path currently used by the terminal to transmit uplink data from the first radio frequency path to the second radio frequency path; Detect whether there is an abnormal transmission power in the second radio frequency path and whether there is a communication abnormality in the terminal; When the second radio frequency path has an abnormal transmission power or the terminal has a communication abnormality, the third radio frequency path is determined from the available radio frequency paths in the second frequency band, and the radio frequency path currently used by the terminal to send uplink data is switched from the second radio frequency path to the third radio frequency path.
6. The method according to claim 5, characterized in that, Also includes: When the second radio frequency path has abnormal transmission power or the terminal has abnormal communication, the first frequency band is determined to be an abnormal frequency band, and / or the system of the first frequency band is determined to be an abnormal system.
7. The method according to claim 1 or 2, characterized in that, The second frequency band is different from the first frequency band in that: the second frequency band is different from the first frequency band, and / or the second frequency band is different from the first frequency band in terms of system.
8. The method according to claim 1 or 2, characterized in that, Also includes: When the target radio frequency path has an abnormal transmission power or the terminal has a communication abnormality, the terminal is triggered to restart.
9. The method according to claim 1 or 2, characterized in that, The abnormal transmission power includes: The number of times the difference between the actual transmission power and the expected transmission power is greater than or equal to the second threshold within the first time period, greater than or equal to the second threshold; and / or, The number of times the difference between the actual transmission power and the expected transmission power is continuously greater than or equal to the second threshold within the second time period, and the number of times it is greater than or equal to the third threshold.
10. The method according to claim 1 or 2, characterized in that, The step of switching the terminal's current network from a cellular network to a wireless network includes: If the interval between the current time and the time of the last network switch of the terminal is greater than or equal to the hysteresis time, the current network of the terminal is switched from cellular network to wireless network.
11. The method according to claim 10, characterized in that, The hysteresis time takes effect when the number of network handovers performed by the terminal is greater than or equal to the fourth time, and / or the hysteresis time expires after a third duration from the time it takes effect.
12. The method according to claim 1 or 2, characterized in that, Also includes: When there is no abnormal transmission power in the target radio frequency path and no communication abnormality in the terminal, the target radio frequency path is used to continue sending uplink data.
13. The method according to claim 1 or 2, characterized in that, Also includes: Record abnormal frequency bands, including the frequency band corresponding to the first radio frequency path and the frequency band corresponding to the target radio frequency path; When the available frequency band of the cellular network belongs to the abnormal frequency band, the terminal's current network will not be switched from the wireless network to the cellular network.
14. The method according to claim 1 or 2, characterized in that, Also includes: When a terminal switches its current network from a wireless network to a cellular network, the terminal's current network will be switched from a cellular network to a wireless network if at least one of the following conditions is met: The uplink bit error rate is greater than or equal to the first threshold; The number of random access failures is greater than or equal to the number of the first failure. Network access failed; The scheduled resources are less than or equal to the third threshold.
15. A terminal, characterized in that, It includes one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer programs or instructions that, when executed by the one or more processors, cause the terminal to perform the method as described in any one of claims 1 to 14.
16. A chip system applied to a terminal, characterized in that, The chip system includes one or more processors, which, when executing a computer program or instructions, cause the terminal to perform the method as described in any one of claims 1 to 14.