Redirection control method, terminal device, and storage medium

By setting suppression parameters in the terminal device, redirection failures are suppressed based on application latency sensitivity, thus solving the data communication lag problem caused by frequent switching of the terminal device during network redirection and achieving more stable data transmission.

CN119183174BActive Publication Date: 2026-06-09HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2023-06-21
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

Frequent switching of terminal devices when network redirection fails causes data communication service interruptions, which cannot be effectively resolved by existing technologies.

Method used

By pre-setting suppression parameters in the terminal device, different suppression conditions and durations can be set according to the application's sensitivity to latency, thus suppressing redirection failures and avoiding frequent network switching.

Benefits of technology

It improves the stability of data communication services, reduces lag issues caused by network redirection failures, and ensures the continuity of data communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119183174B_ABST
    Figure CN119183174B_ABST
Patent Text Reader

Abstract

The application relates to the communication field and provides a redirection control method, a terminal device and a storage medium. When a terminal device runs a first application, if the number of times of failure of redirection of the terminal device from a first network to a second network reaches a first threshold value, the redirection of the terminal device from the first network to the second network is inhibited within a first inhibition time length. When the terminal device runs a second application, if the number of times of failure of redirection of the terminal device from the first network to the second network reaches a second threshold value, the redirection of the terminal device from the first network to the second network is inhibited within a second inhibition time length. According to the type of the application run by the terminal device, different inhibition conditions can be determined, and the redirection failure of the terminal device is inhibited according to the inhibition condition corresponding to the application, so that the terminal device is prevented from being frequently redirected from the first network to the second network when the application is run, and the problem of data service lag caused by frequent network switching is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication, and more specifically, to a redirection control method, a terminal device, and a storage medium. Background Technology

[0002] In the field of communications, terminal devices are redirected according to network configuration. For example, after a terminal device turns on a 5G (5th Generation mobile networks) network, it is redirected from a 4G (4th Generation Mobile Communication Technology) Long Term Evolution (LTE) cell to a 5G Standalone (SA) cell for data communication. If there are access problems in the SA cell (e.g., weak signal or authentication errors), the terminal device's redirection will fail. However, since network devices (such as base stations) cannot detect redirection failures, they will issue redirection notifications based on reports uploaded by the terminal device, leading to frequent redirection failures and causing lag in user data communication services. Summary of the Invention

[0003] In view of the above, it is necessary to provide a redirection control method, a terminal device, and a storage medium to solve the technical problem of data communication service lag caused by frequent redirection failures of the terminal device.

[0004] In a first aspect, embodiments of this application provide a redirection control method, the method comprising: a terminal device accessing a first network; when the terminal device is running a first application, if the number of redirection failures from the first network to the second network detected reaches a first threshold, suppressing the terminal device from redirecting to the second network for a first suppression duration; when the terminal device is running a second application, if the number of redirection failures from the first network to the second network detected reaches a second threshold, suppressing the terminal device from redirecting to the second network for a second suppression duration; wherein the first application is more sensitive to latency than the second application, the first suppression duration is longer than the second suppression duration, and the first threshold and the second threshold are the same or different. The above scheme can determine different suppression conditions based on the application's time sensitivity, and suppress redirection failures of the terminal device based on the suppression conditions of the applications running on the terminal device, thereby avoiding frequent redirection from the first network to the second network when the terminal device is running applications, and avoiding data service lag caused by frequent network switching. In addition, by setting the corresponding suppression conditions and suppression duration for the application based on its sensitivity to latency, it is possible to more accurately assess whether to perform redirection suppression on the terminal device, thereby ensuring the stable operation of the terminal device's current data communication services.

[0005] In one embodiment of this application, if a redirection failure of the terminal device from the first network to the second network is detected, the method further includes: if it is determined that the redirection failure belongs to a preset type, recording the number of redirection failures; if it is determined that the redirection failure does not belong to the preset type, continuing to detect redirection failures of the terminal device from the first network to the second network. In the above scheme, the terminal device records redirection failures of the preset type, which can suppress redirection failures of the preset type.

[0006] In one embodiment of this application, when the terminal device is running a first application, the method further includes: determining that the foreground application of the terminal device is the first application, and determining the suppression condition and first suppression duration of the first application based on the application information of the first application, wherein the suppression condition of the first application is that the number of redirection failures of the terminal device reaches a first threshold; when the terminal device is running a second application, the method further includes: determining that the foreground application of the terminal device is the second application, and determining the suppression condition and second suppression duration of the second application based on the application information of the second application, wherein the suppression condition of the second application is that the number of redirection failures of the terminal device reaches a second threshold. The above technical solution can use the suppression condition of the foreground application as the basis for judging the redirection suppression of the terminal device, and perform redirection suppression on the terminal device when the number of redirection failures of the terminal device reaches a threshold, thereby avoiding the problem of data communication service lag caused by the terminal device frequently switching between the first network and the second network, and improving network communication stability.

[0007] In one embodiment of this application, determining the suppression conditions and first suppression duration of the first application based on the application information of the first application includes: querying preset suppression parameters based on the application information of the first application to determine the suppression conditions and first suppression duration of the first application; determining the suppression conditions and second suppression duration of the second application based on the application information of the second application includes: querying preset suppression parameters based on the application information of the second application to determine the suppression conditions and second suppression duration of the second application. The above technical solution determines the suppression conditions and suppression duration of the terminal device by querying preset suppression parameters based on the application running on the terminal device, and performs redirection suppression on the terminal device based on the determined suppression conditions and suppression duration.

[0008] In one embodiment of this application, the method further includes: if the number of redirection failures of the terminal device from the first network to the second network is not detected to have reached a first threshold, continuing to detect new redirection failures of the terminal device from the first network to the second network; if it is determined that the new redirection failure belongs to a preset type, recording the number of redirection failures; obtaining the application information of the foreground application of the terminal device to refresh the foreground application; if the foreground application is the first application and the number of redirection failures of the terminal device reaches the first threshold, suppressing the redirection of the terminal device from the first network to the second network within a first suppression duration. The above technical solution obtains the application information of the foreground application of the terminal device to refresh the foreground application; if the foreground application is the first application and the number of redirection failures of the terminal device reaches the first threshold, it suppresses the redirection of the terminal device from the first network to the second network within a first suppression duration, thus ensuring that the terminal device always suppresses redirection of the terminal device according to the suppression conditions of the currently running foreground application.

[0009] In one embodiment of this application, after obtaining the application information of the foreground application of the terminal device to refresh the foreground application, the method further includes: if the foreground application is a second application, determining the suppression condition and the second suppression duration of the second application, wherein the suppression condition of the second application is that the number of redirection failures of the terminal device reaches a second threshold; determining whether the redirection failures of the terminal device reach the suppression condition of the second application; if the redirection failures of the terminal device reach the suppression condition of the second application, suppressing the redirection of the terminal device from the first network to the second network within the second suppression duration; if the redirection failures of the terminal device do not reach the suppression condition of the second application, continuing to detect new redirection failures of the terminal device from the first network to the second network. In the above technical solution, if the foreground application is a second application, the suppression condition and the second suppression duration of the second application are determined, and the redirection of the terminal device from the first network to the second network is suppressed within the second suppression duration when the redirection failures of the terminal device reach the suppression condition of the second application, thus ensuring that even after the foreground application of the terminal device is switched, the redirection of the terminal device can still be suppressed according to the suppression condition of the switched foreground application.

[0010] In one embodiment of this application, suppressing the redirection of a terminal device from a first network to a second network during a first suppression period includes: disabling the terminal device's access to the second network during the first suppression period; suppressing the redirection of a terminal device from the first network to the second network during a second suppression period includes: disabling the terminal device's access to the second network during the second suppression period. In the above technical solution, after disabling the terminal device's access to the second network during the suppression period, the terminal device does not perform a search for the second network, and the terminal device does not report to the first network after residing on the first network.

[0011] In one embodiment of this application, suppressing the redirection of a terminal device from a first network to a second network during a first suppression period includes: reducing the priority of accessing the second network during the first suppression period, such that the priority of accessing the first network is higher than the priority of accessing the second network; and suppressing the redirection of a terminal device from the first network to the second network during a second suppression period includes: further reducing the priority of accessing the second network during the second suppression period, such that the priority of accessing the first network is higher than the priority of accessing the second network. In the above technical solution, by reducing the priority of accessing the second network during the suppression period, making the priority of accessing the first network higher than the priority of accessing the second network, the terminal device can remain in the first network during the suppression period.

[0012] In one embodiment of this application, the method further includes: when the terminal device is running a first application, if the duration of suppressing the redirection of the terminal device from the first network to the second network reaches a first suppression duration, then exiting the redirection suppression of the terminal device; when the terminal device is running a second application, if the duration of suppressing the redirection of the terminal device from the first network to the second network reaches a second suppression duration, then exiting the redirection suppression of the terminal device. In the above technical solution, after the suppression duration for the terminal device to redirect from the first network to the second network is reached, the function of the terminal device accessing the second network is restored, enabling the terminal device to redirect from the residing first network to the second network.

[0013] In one embodiment of this application, after exiting the redirection suppression of the terminal device, the method further includes: when the terminal device is running a first application, if the number of redirection failures detected within a first aging period reaches a first threshold, the terminal device is suppressed from redirecting from the first network to the second network according to a third suppression period; when the duration of suppressing the terminal device from redirecting from the first network to the second network reaches the third suppression period, the redirection suppression of the terminal device is exited; when the terminal device is running a second application, if the number of redirection failures detected within a second aging period reaches a second threshold, the terminal device is suppressed from redirecting from the first network to the second network according to a fourth suppression period; when the duration of suppressing the terminal device from redirecting from the first network to the second network reaches the fourth suppression period, the redirection suppression of the terminal device is exited; wherein, the third suppression period is longer than the first suppression period, and the fourth suppression period is longer than the second suppression period. In the above technical solution, if the terminal device fails to redirect again and reaches the suppression condition again within the aging period after exiting the redirection suppression, the terminal device will be subject to a longer suppression period of redirection suppression to increase the suppression of the terminal device's redirection and thus improve the stability of network communication.

[0014] In one embodiment of this application, exiting the redirection suppression of the terminal device includes: restoring the terminal device's ability to access the second network; or, increasing the priority of accessing the second network so that the priority of accessing the second network is higher than the priority of accessing the first network. In the above technical solution, after the suppression period for redirecting the terminal device from the first network to the second network has elapsed, the terminal device is enabled to redirect from the residing first network to the second network by restoring its ability to access the second network; or by increasing the priority of accessing the second network so that the priority of accessing the second network is higher than the priority of accessing the first network.

[0015] In one embodiment of this application, after exiting redirection suppression of the terminal device, the method further includes: clearing the recorded number of redirection failures. The above technical solution, by clearing the recorded number of redirection failures, facilitates the terminal device to re-record redirection failures and, based on the re-recorded redirection failures, determines again whether the terminal device needs to perform redirection suppression.

[0016] In one embodiment of this application, the method further includes: loading suppression parameters when the terminal device boots up. The suppression parameters include a correspondence between different application information, suppression conditions, and suppression durations. The suppression conditions include a threshold number of redirection failures for the terminal device. The above technical solution loads suppression parameters when the terminal device boots up, and the loaded suppression parameters can be invoked by the terminal device.

[0017] Secondly, embodiments of this application provide an electronic device, including a processor and a memory; wherein the processor is connected to the memory; the memory is used to store program instructions; and the processor is used to read the program instructions stored in the memory to implement the above-mentioned redirection control method.

[0018] Thirdly, embodiments of this application provide a computer-readable storage medium storing program instructions that, when executed by a processor, perform the aforementioned redirection control method.

[0019] Furthermore, the technical effects brought about by the second and third aspects can be found in the descriptions of the methods in the above-mentioned method section, and will not be repeated here. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram illustrating an application scenario of the redirection control method in one embodiment of this application.

[0022] Figure 2 This is a flowchart of a redirection control method in one embodiment of this application.

[0023] Figure 3 This is a schematic diagram of the suppression parameter table in one embodiment of this application.

[0024] Figure 4 This is a schematic diagram illustrating the function of disabling terminal device access to the second network in one embodiment of this application.

[0025] Figure 5 This is a flowchart of a redirection control method in another embodiment of this application.

[0026] Figure 6 This is a schematic diagram of the suppression parameter table in another embodiment of this application.

[0027] Figure 7 This is a schematic diagram of the suppression parameter table in another embodiment of this application.

[0028] Figure 8 This is a flowchart of a redirection control method in another embodiment of this application.

[0029] Figure 9 This is a flowchart of a redirection control method in one embodiment of this application.

[0030] Figure 10 This is a schematic diagram of the suppression parameter table in another embodiment of this application.

[0031] Figure 11 This is a flowchart of a redirection control method in one embodiment of this application.

[0032] Figure 12 This is a schematic diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0033] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terminology used in this application's specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It should be understood that, unless otherwise stated, " / " in this application means "or". For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. "At least one" refers to one or more. "More than one" refers to two or more. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, and a, b, and c (seven cases).

[0035] In the telecommunications field, after a mobile phone or other terminal device is powered on and registered on the network, if the phone supports 5G networks and there is a 5G base station nearby, it may be redirected from a 4G LTE cell to a 5G SA cell for data communication services to obtain a better data transmission experience. However, due to insufficient signal coverage or signal interference in the SA cell, the phone may fail to connect to 5G. After this failure, the phone will continue searching for other cells on the 5G network. If that fails, the phone will return to the 4G network corresponding to the 4G LTE cell. This redirection process lasts for several seconds, causing an interruption to the phone's data communication services. This affects the normal operation of services such as data transmission and incoming calls, resulting in a poor user experience.

[0036] To address the aforementioned problems, this application proposes a redirection control method. This method is applied in a terminal device. (Reference) Figure 1 The diagram illustrates an application scenario of the redirection control method in one embodiment of this application. Terminal device 10 can be redirected from its current location in the first network 20 to the second network 30. This method can formulate a redirection suppression strategy based on the reason for redirection failure during the process of redirecting terminal device 10 from the first network 20 to the second network 30, and suppress redirection of terminal device 10 according to the redirection suppression strategy. Because terminal device 10 performs redirection suppression, it will not report a measurement notification to the first network 20 when redirection fails. Since no measurement notification is received, network devices (such as base stations) in the first network 20 will not send a redirection notification to terminal device 10, thereby preventing frequent redirection and avoiding the impact on user data communication services caused by redirection failures. Redirection suppression in this application means that when terminal device 10 is residing in the first network 20, it will not switch from the first network 20 to other networks (such as the second network 30) for data communication services.

[0037] Figure 1 Taking a mobile phone as an example for terminal device 10, an LTE network as an example for the first network 20, and an SA network as an example for the second network 30, this application illustrates the application scenario of the redirection control method. This application does not limit the types of terminal device 10, the first network 20, and the second network 30. For example, in other embodiments of this application, terminal device 10 can also be a tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device, and / or smart city device, etc. In other embodiments, the first network 20 can also be a 5G network, and the second network 30 can also be a 6G network.

[0038] refer to Figure 2 The diagram shown is a flowchart of a redirection control method according to an embodiment of this application. The method disclosed in this application, or the method shown in the flowchart, includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchanged, and some steps can be deleted. Some embodiments will be described below with reference to the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other. The redirection control method is applied to a terminal device and includes the following steps.

[0039] Step S201: Preset suppression parameters. These suppression parameters include at least the suppression conditions and suppression durations corresponding to different applications.

[0040] In one embodiment of this application, the suppression parameters are pre-set in the terminal device 10 before it leaves the factory. The terminal device 10 loads the suppression parameters during startup, and the loaded suppression parameters can be invoked by the terminal device 10. It should be noted that step S201 is an optional step. In other embodiments, the suppression parameters may not be pre-set in the terminal device 10; the terminal device 10 can obtain the suppression parameters from a server communicatively connected to the terminal device 10 and invoke them.

[0041] Terminal device 10 can preset the suppression conditions and suppression duration for each application. In order to facilitate the management of the correspondence between different applications and suppression parameters, in one embodiment, a suppression parameter table can be preset.

[0042] refer to Figure 3 The diagram shown is a schematic of a suppression parameter table in one embodiment of this application. The suppression parameter table includes multiple applications, each of which can correspond to at least one suppression condition and suppression duration. The application in the suppression parameter table can be represented as the application name, application tag, or application identifier. The application tag or identifier can be a string composed of numbers or letters used to distinguish applications. The suppression condition indicates that when the number of redirection failures of the terminal device 10 reaches a preset failure number within a preset time, the terminal device 10 is triggered to suppress redirection. The preset time and preset failure number in the suppression condition can be set according to user needs, different application types, or specific attributes. For example, the suppression condition for an application can be set to the number of redirection failures reaching 3 times in 1 minute. If the application currently running on the terminal device 10 reaches the above suppression condition, it is determined that redirection of the terminal device 10 needs to be suppressed to avoid affecting the stable operation of the data communication service of the terminal device 10. Since each application has different requirements for the stable operation of the data communication service, different suppression conditions and suppression durations can be set for different types of applications.

[0043] In one embodiment of this application, the suppression conditions and suppression duration in the above suppression parameters are related to the application's sensitivity to latency. The application's sensitivity to latency can be expressed as the number of times the application stutters during the redirection process of the terminal device 10. The more times the application stutters during the redirection process of the terminal device 10, the more sensitive the application is to latency. For example, combined with... Figure 3 The suppression parameter table shown can sort applications according to their latency sensitivity, prioritizing applications with high latency sensitivity (such as...). Figure 3 Application A) Set the first suppression condition and the first suppression duration for applications with low sensitivity to latency (such as...). Figure 3 Application B) sets a second suppression condition and a second suppression duration. The preset time of the first suppression condition is less than the preset time of the second suppression condition, or the preset number of failures for the first suppression condition is less than the preset number of failures for the second suppression condition. For example, the suppression condition for applications with high latency sensitivity is two redirection failures within one minute, while the suppression condition for applications with low latency sensitivity is two redirection failures within two minutes; or the suppression condition for applications with high latency sensitivity is two redirection failures within one minute, while the suppression condition for applications with low latency sensitivity is three redirection failures within one minute. In one embodiment of this application, applications sensitive to latency can be recorded and stored in a whitelist within the suppression parameter table.

[0044] The suppression duration refers to the duration for which redirection of terminal device 10 is suppressed. In one embodiment of this application, the first suppression duration is longer than the second suppression duration. For example, the first suppression duration is set to 10 minutes for applications with high latency sensitivity, such as instant messaging applications, video call applications, and game applications. The second suppression duration is set to 5 minutes for applications with low latency sensitivity, such as weather applications, novel reading applications, and news applications. In this embodiment of the application, setting different suppression conditions and suppression durations based on the application's latency sensitivity can ensure the stable operation of data communication services for different applications. Setting a longer suppression duration for applications with high latency sensitivity can ensure that data lag caused by frequent redirection of terminal device 10 is eliminated. Since applications with low latency sensitivity are not sensitive to data latency, data lag will not occur or will occur very little when terminal device 10 redirects, so a shorter suppression duration can be set for applications with low latency sensitivity.

[0045] In one embodiment of this application, the suppression parameter table also includes a general application, as well as the suppression conditions and suppression duration of the general application. The general application may include a collection of other applications in the terminal device 10 besides those included or specified in the suppression parameter table. For example, in conjunction with... Figure 3 As shown, Application A and Application B are preset applications in the suppression parameter table. Other applications in terminal device 10 besides Application A and Application B can be identified as general applications; for example, Application C or Application D can be classified as a general application. In one embodiment of this application, the suppression condition for a general application can be that the number of redirection failures reaches 3 times per minute, and the suppression duration for the general application is 5 minutes. The preset time and preset number of failures in the suppression condition corresponding to the general application can be between the suppression conditions for applications with high latency sensitivity and those with low latency sensitivity. The suppression duration corresponding to the general application can be between the suppression duration for applications with high latency sensitivity and those with low latency sensitivity.

[0046] Step S202: Connect to the first network.

[0047] In one embodiment of this application, after powering on, the terminal device 10 registers with the first network 20 in the cell where it is located. The first network 20 may be an LTE network. For example, after powering on, the terminal device 10 registers with the LTE network of the LTE cell where it is located to enable data communication services. In another embodiment of this application, when the terminal device 10 moves to the coverage area of ​​the base station of the first network 20, it connects to the first network 20.

[0048] Step S203: Detect the failure of the terminal device to redirect from the first network to the second network.

[0049] In one embodiment of this application, if the terminal device 10 supports the second network 30, after the terminal device 10 connects to the first network 20, the network device of the first network 20 sends a 5G signal measurement notification to the terminal device 10. In one embodiment of this application, the second network 30 is an SA network. The terminal device 10 measures the 5G signal according to the measurement notification; for example, the terminal device 10 will perform a measurement when it receives a 5G signal from the second network 30 according to the measurement notification. When the measured power of the 5G signal meets a preset threshold power, the terminal device 10 reports a measurement report to the first network 20.

[0050] In one embodiment, the measurement report includes a B1 measurement. In a 5G network, the B1 measurement can be performed by the terminal device 10 to measure and evaluate the signal strength of neighboring cells, and to determine whether a handover to that cell is necessary based on the measurement results. The B1 measurement can include the power of the 5G signal. The B1 measurement can be used to determine connection quality to ensure that users have a better communication experience. After receiving the B1 measurement sent by the terminal device 10, the network device of the first network 20 can send a redirection notification to the terminal device 10. For example, when the power of the 5G signal in the B1 measurement reaches a preset threshold power, the network device of the first network 20 sends a redirection notification to the terminal device 10 to redirect to the second network 30. The preset threshold power can be set according to user needs. The terminal device 10 is redirected from the first network 20 to the second network 30 according to the redirection notification.

[0051] If the second network 30 has access problems (e.g., weak signal or authentication error), the terminal device 10 cannot access the second network 30. During the process of redirecting the terminal device 10 from the first network 20 to the second network 30, the terminal device 10 sends first registration information to the network device of the second network 30. If the terminal device 10 does not receive a response from the network device of the second network 30, it is determined that the terminal device 10 has experienced a redirection failure from the first network 20 to the second network 30, and the reason for the redirection failure is determined to be a failure to search for a network frequency point. The reason for the redirection failure is used to indicate the type of redirection failure. In another embodiment of this application, when the terminal device 10 sends the first registration information to the network device of the second network 30, if the terminal device 10 does not receive a preset response from the network device of the second network 30 regarding the first registration information, it is determined that the terminal device 10 has experienced a redirection failure from the first network 20 to the second network 30, and the reason for the redirection failure is determined to be a failure to access the network based on the searched network frequency point. In one embodiment of this application, the preset response information is the information that the network device of the second network 30 replies to the terminal device when it determines that the terminal device 10 accesses the second network 30 through the network frequency point.

[0052] Step S204: Determine whether the redirection failure belongs to a preset type.

[0053] In one embodiment of this application, each time a redirection failure is detected, the terminal device 10 determines whether the detected redirection failure belongs to a preset type.

[0054] In one embodiment of this application, multiple types or conditions can be preset to determine whether the redirection failure of terminal device 10 belongs to a preset type of target redirection failure. In one embodiment of this application, the preset types of redirection failure include: failure of terminal device 10 to access the network based on the searched network frequency. If the redirection failure of terminal device 10 belongs to the failure of terminal device 10 to access the network based on the searched network frequency, then the redirection failure of terminal device 10 is determined to be a target redirection failure, and the redirection failure belongs to the preset type.

[0055] In one embodiment, based on the reason for the redirection failure, different redirection failures correspond to different reason values. The terminal device 10 determines whether the reason value for the redirection failure is the same as the reason value for the target redirection failure. If the reason value for the redirection failure is the same as the reason value for the target redirection failure, the terminal device 10 determines that the redirection failure belongs to a preset type. If the reason value for the redirection failure is not the same as the reason value for the target redirection failure, the terminal device 10 determines that the redirection failure does not belong to a preset type.

[0056] For example, if the reason value for redirection failure corresponding to the failure of terminal device 10 to search for a network frequency point is 01, and the reason value for redirection failure corresponding to the failure of accessing the network based on the searched network frequency point is 02, where the reason value 02 corresponds to the target redirection failure. If the reason for the redirection failure of terminal device 10 is that terminal device 10 failed to search for a network frequency point, then terminal device 10 compares the aforementioned reason value for redirection failure (which is 01 at this time) with the reason value for the target redirection failure (which is 02). If the comparison results are inconsistent, it is determined that the redirection failure does not belong to the preset type. In one embodiment of this application, if it is determined that the redirection failure belongs to the preset type, step S205 is executed; otherwise, if it is determined that the redirection failure does not belong to the preset type, step S203 is executed.

[0057] Step S205: Record redirection failed.

[0058] In one embodiment of this application, when a redirection failure falls into a preset type, the terminal device 10 records the redirection failure. Recording the redirection failure includes recording the time of occurrence and the number of times the redirection failure occurred. In this embodiment, the terminal device 10 records redirection failures of a preset type to suppress such redirection failures.

[0059] Step S206: Obtain application information of the foreground application of the terminal device.

[0060] In one embodiment of this application, terminal device 10 obtains application information corresponding to the application running on terminal device 10, such as application information of the foreground application. Since the foreground application is the application currently running on terminal device 10, the redirection behavior of terminal device 10 will affect the data communication service of the foreground application. Therefore, when a redirection failure occurs, it is necessary to determine the corresponding suppression condition based on the foreground application, so as to evaluate whether to suppress the redirection behavior of terminal device 10 based on the determined suppression condition, thereby ensuring the stable operation of the data communication service of terminal device 10.

[0061] In one embodiment of this application, the application information of the foreground application includes the name, application tag, or application identifier of the application currently running on the terminal device 10. For example, when the foreground application is a game application, the application information of the foreground application can be the name of the game application. The specific implementation details of each step will be explained below using a game application as an example.

[0062] Step S207: Based on the application information of the foreground application, determine whether the foreground application corresponds to the preset suppression parameters.

[0063] In one embodiment of this application, the terminal device 10 can search for preset suppression parameters (e.g., such as...) based on the application information of the game application. Figure 3 The terminal device 10 uses the suppression parameter table shown to determine whether there is an application in the suppression parameters that matches the application information of the game application. If the terminal device 10 searches for the suppression parameters based on the name, tag, or application identifier of the game application, and if it determines that there is an application in the suppression parameters that matches the name, tag, or identifier of the game application, the terminal device 10 determines that there is an application in the suppression parameters that matches the application information of the game application; if it determines that there is no application in the suppression parameters that matches the name, tag, or identifier of the game application, the terminal device 10 determines that there is no application in the suppression parameters that matches the application information of the game application.

[0064] In one embodiment of this application, if there is an application in the suppression parameters that matches the application information of the game application, step S208 is executed; otherwise, if there is no application in the suppression parameters that matches the application information of the game application, step S209 is executed.

[0065] Step S208: Determine the suppression conditions and suppression duration corresponding to the foreground application. After step S208 is completed, proceed to step S210.

[0066] In one embodiment of this application, if the suppression parameters contain an application that matches the application information of a game application, the terminal device 10 determines the suppression condition and suppression duration corresponding to the game application from the suppression parameters. For example, the terminal device 10 determines from the suppression parameters that the suppression condition corresponding to the game application is "the number of redirection failures reaches 2 within 1 minute", and the suppression duration is 5 minutes. The terminal device 10 determines whether to suppress redirection based on the above suppression condition.

[0067] In one embodiment of this application, step S206 can be replaced by: obtaining application information of the background application of the terminal device. Correspondingly, step S206 is replaced by: determining whether the foreground application corresponds to preset suppression parameters based on the application information of the foreground application. Step S208 can be replaced by: determining the suppression conditions and suppression duration corresponding to the background application. After determining the corresponding suppression conditions based on the background application, the above scheme further evaluates whether to suppress the redirection behavior of the terminal device 10 based on the determined suppression conditions, thereby ensuring the stable operation of the data communication services of the background application.

[0068] Step S209: Determine the suppression conditions and suppression duration for the general application. After step S209 is completed, proceed to step S210.

[0069] In one embodiment of this application, if the application information of the game application is not in the suppression parameters, the terminal device 10 uses the suppression conditions of the general application as the suppression conditions corresponding to the application information of the game application, and uses the suppression duration of the general application as the suppression duration corresponding to the application information of the game application. Based on the suppression conditions and suppression duration of the general application, it evaluates whether to perform redirection suppression on the game application of the terminal device 10, thus ensuring the integrity and smoothness of the execution of the redirection control method.

[0070] In one embodiment of this application, step S209 can be replaced by: the terminal device not performing redirection suppression. That is, when it is determined that there is no application in the suppression parameters that matches the application information of the foreground application, the terminal device 10 does not perform redirection suppression.

[0071] Step S210: Determine whether the redirection failure of the terminal device meets the suppression condition.

[0072] In one embodiment of this application, the terminal device 10 can determine whether the redirection failure of the terminal device 10 has reached the suppression condition based on the number of redirection failures and the occurrence time recorded in step S205. For example, if the terminal device 10 determines that the terminal device 10 has reached the suppression condition of "the number of redirection failures within 1 minute reaches 2 times" based on the recorded number of redirection failures and the occurrence time, then the redirection failure is determined to have reached the suppression condition. If the redirection failure reaches the suppression condition, then step S211 is executed. If the terminal device 10 determines that the terminal device 10 has experienced 1 redirection failure within 1 minute based on the recorded number of redirection failures and the occurrence time, and has not reached the suppression condition of "the number of redirection failures within 1 minute reaches 2 times", then the process returns to step S203 to continue detecting new redirection failures of the terminal device 10 from the first network 20 to the second network 30. In step S204, if it is determined that the new redirection failure belongs to a preset type, step S205 is executed to continue recording the occurrence time of the new redirection failure and the occurrence number of all redirection failures. After completing step S205, proceed to step S206 to continue obtaining application information of the foreground application of the terminal device 10 in order to refresh the foreground application.

[0073] If the refreshed foreground application is still a game application, skip steps S207-S209 and proceed to step S210. Determine whether the terminal device's redirection failures meet the suppression conditions for game applications based on the occurrence time of the new redirection device and the total number of redirection failures. If the terminal device 10 meets the suppression condition of "two redirection failures within one minute" based on the occurrence time of the new redirection device and the total number of redirection failures, proceed to step S211. Otherwise, if the terminal device 10 meets the suppression condition of "two redirection failures within one minute" based on the occurrence time of the new redirection device and the total number of redirection failures, return to step S203.

[0074] If the refreshed foreground application is not a game application, but another application, such as a news application, then step S207 is executed to continue determining whether the news application corresponds to the preset suppression parameters based on the application information of the news application. If there is an application in the suppression parameters that matches the application information of the news application, step S208 is executed to determine the suppression condition and suppression duration corresponding to the news application. For example, the latency sensitivity of the news application is less than that of the game application, and the terminal device 10 determines from the suppression parameters that the suppression condition corresponding to the news application is "the number of redirection failures reaches 3 within 2 minutes", and the suppression duration corresponding to the news application is 10 minutes. If there is no application in the suppression parameters that matches the application information of the news application, step S209 is executed to determine the suppression condition and suppression duration of the general application. After executing step S208 or step S209, step S210 is executed to determine whether the redirection failure of the terminal device 10 meets the suppression condition of the news application. If it is determined that the terminal device 10 meets the suppression condition of "the number of redirection failures reaches 3 within 2 minutes", then step S211 is executed. Step S211: Based on the suppression duration, suppress the terminal device from being redirected from the first network to the second network.

[0075] In one embodiment of this application, if the foreground application is a game application, the terminal device 10 suppresses its redirection from the first network 20 to the second network 30 according to the suppression duration of the game application. If the foreground application is a news application, the terminal device 10 suppresses its redirection from the first network 20 to the second network 30 according to the suppression duration of the news application. In one embodiment of this application, suppressing the redirection of the terminal device 10 from the first network 20 to the second network 30 according to the suppression duration includes: disabling the terminal device 10's access to the second network 30 within the suppression duration. In one embodiment of this application, after disabling the terminal device 10's access to the second network 30 within the suppression duration, the terminal device 10 does not search for the second network 30, and the terminal device 10 does not report to the first network 20 after residing on the first network 20. (See reference...) Figure 4 As shown, taking the second network 30 as a 5G network and the first network 20 as an LTE network as an example, when the redirection failure is determined to meet the suppression condition, the terminal device 10 generates a 5G network shutdown instruction by turning off the 5G network switch within the suppression time. The terminal device 10 sends the second registration information to the LTE network according to the 5G network shutdown instruction to indicate that the terminal device 10 has disabled the function of accessing the 5G network.

[0076] In one embodiment of this application, suppressing the redirection of terminal device 10 from the first network 20 to the second network 30 according to the suppression duration includes: lowering the priority of accessing the second network 30 so that the priority of accessing the first network 20 is higher than the priority of accessing the second network 30; and not reporting the B1 measurement configured by the first network 20 for the second network 30 to the first network 20 when the terminal device 10 is stationed in the first network 20.

[0077] In one embodiment of this application, suppressing the redirection of terminal device 10 from the first network 20 to the second network 30 according to the suppression duration includes: determining the suppression method based on the type of redirection failure of terminal device 10; and suppressing the redirection of terminal device 10 from the first network 20 to the second network 30 according to the suppression duration and the suppression method. Specifically, if it is determined that the type of redirection failure of terminal device 10 is a failure when searching for network frequency points, then the suppression method of terminal device 10 is determined to be to disable the function of terminal device 10 accessing the second network 30. If it is determined that the type of redirection failure of terminal device 10 is a failure when accessing the network based on the searched network frequency points, then the suppression method of terminal device 10 is determined to be: lowering the priority of accessing the second network 30, so that the priority of accessing the first network 20 is higher than the priority of accessing the second network 30; and not reporting the B1 measurement configured by the first network 20 for the second network 30 to the first network 20 when the terminal device 10 is stationed in the first network 20.

[0078] In this application, during the process of terminal device 10 being redirected from the first network 20 to the second network 30, if it is determined that the type of redirection failure of terminal device 10 is a failure when searching for the network frequency point of the second network 30, it indicates that there is no base station near terminal device 10 that includes the second network 30 or the connection signal of the base station that includes the second network 30 is very weak. Terminal device 10 temporarily loses the ability to access the second network 30 by disabling the function of accessing the second network 30, does not search for the second network 30, and does not report B1 measurement when terminal device 10 accesses the first network 20, thereby completely suppressing the ability of terminal device 10 to be redirected from the first network 20 to the second network 30, thus improving the suppression capability of terminal device 10 when searching for the network frequency point of the second network 30. In this application, during the process of redirecting terminal device 10 from the first network 20 to the second network 30, if it is determined that the redirection failure of terminal device 10 is a failure to access the network based on the searched network frequency, it indicates that there is a base station near terminal device 10, including the second network 30, but the connection signal of the base station of the second network 30 is weak, making it impossible for terminal device 10 to stably access the second network 30. By lowering the priority of accessing the second network 30, terminal device 10 makes the priority of accessing the first network 20 higher than the priority of accessing the second network 30, thereby preserving the ability of terminal device 10 to access the second network 30 during redirection suppression. In this embodiment, when the redirection failure of terminal device 10 reaches the suppression condition, the redirection of terminal device 10 from the first network 20 to the second network 30 is suppressed according to the suppression duration. This can avoid frequent redirection of terminal device 10 in a short period of time, thus avoiding the problem of data communication service interruption caused by frequent access switching between the first network 20 and the second network 30, thereby improving network communication stability.

[0079] Step S212: When the duration of the suppression of the terminal device being redirected from the first network to the second network reaches the suppression duration, the redirection suppression of the terminal device is terminated.

[0080] In one embodiment of this application, after the suppression period for redirecting terminal device 10 from the first network 20 to the second network 30 has elapsed, the function of terminal device 10 accessing the second network 30 is restored, enabling terminal device 10 to redirect from the first network 20 to the second network 30. For example, after determining that the suppression period for redirecting terminal device 10 from the first network 20 to the second network 30 has elapsed, terminal device 10 turns on the 5G network switch, generating a command to enable the 5G network. Based on the command to enable the 5G network, terminal device 10 sends third registration information to the first network 20 to indicate that terminal device 10 has enabled the function of accessing the second network 30.

[0081] In another embodiment of this application, after the suppression time for the terminal device 10 to be redirected from the first network 20 to the second network 30 reaches the suppression duration, the priority of the second network 30 is restored, so that the priority of accessing the first network 20 is lower than the priority of accessing the second network 30; and when the terminal device 10 is camped on the first network 20, it reports the B1 measurement configured by the first network 20 for the second network 30 to the first network 20, so that the network device of the first network 20 can send a redirection notification to the terminal device 10 according to the B1 measurement, so that the terminal device 10 is redirected from the first network 20 to the second network 30 according to the redirection notification sent by the first network 20.

[0082] In one embodiment of this application, exiting redirection suppression on the terminal device further includes: clearing the recorded occurrence time and number of redirection failures. This embodiment allows the terminal device 10 to re-record redirection failures by clearing the recorded occurrence time and number of redirection failures, and to determine again whether redirection suppression is necessary based on the re-recorded redirection failures.

[0083] In the embodiments of this application, when the duration of the suppression of the terminal device 10 being redirected from the first network 20 to the second network 30 reaches the suppression duration, the suppression of the terminal device 10 is lifted, which enables the terminal device 10 to access the second network 30 with a higher data transmission rate for communication, thereby improving the quality of data communication services.

[0084] In the embodiments of this application, suppression parameters can be preset in advance. The suppression parameters for the application can be set, and the suppression parameters can be found based on the application information of the foreground application to determine the suppression conditions and suppression duration corresponding to the foreground application. When the redirection of terminal device 10 fails and the suppression condition is met, the redirection of terminal device 10 from the first network 20 to the second network 30 is suppressed according to the suppression duration. This avoids frequent redirection of terminal device 10 within a short period, thus preventing the data communication service of the foreground application from being interrupted when terminal device 10 frequently switches between the first network 20 and the second network 30, thereby improving network communication stability.

[0085] In one embodiment of this application, if terminal device 10 frequently fails to redirect again within a short period after exiting redirection suppression, it indicates that the access to the second network 30 is unstable, and the frequent redirection failures of terminal device 10 severely affect the data communication services of terminal device 10. This embodiment of the application can increase the suppression of redirection for terminal device 10 to improve network communication stability. Specifically, see... Figure 5 The diagram shown is a flowchart of a redirection control method in another embodiment of this application. The method specifically includes the following steps.

[0086] Step S501: Preset suppression parameters.

[0087] Unlike step S201 above, the reference is... Figure 6 The diagram shown illustrates a suppression parameter table in another embodiment of this application. The suppression parameter table includes an application, suppression conditions, a first suppression duration, a second suppression duration, and an aging duration. Each application corresponds to at least one suppression condition, a first suppression duration, a second suppression duration, and an aging duration. The aging duration represents the time from when the terminal device 10 exits redirection suppression until it meets the suppression conditions and needs to be redirected again. For example, if the aging duration is 10 minutes, it means that the time from when the terminal device 10 exits redirection suppression until it meets the suppression conditions again is 10 minutes. In this embodiment, if the terminal device 10 exits redirection suppression for the first suppression duration and meets the suppression conditions again within the aging duration, then the terminal device 10 is subjected to a second suppression duration of redirection suppression. In one embodiment of this application, the second suppression duration can be longer than the first suppression duration. In other embodiments, it can be set according to actual conditions, and this embodiment does not limit this.

[0088] In the embodiments of this application, the suppression conditions for each redirection suppression are the same. In other embodiments, the conditions for each redirection suppression can be set differently. Specifically, the suppression conditions for each redirection suppression can be preset or adjusted in the suppression parameter table, and this application does not impose any limitations on this.

[0089] Step S502: Connect to the first network.

[0090] Step S503: Detect the failure of the terminal device to redirect from the first network to the second network.

[0091] Step S504: Determine whether the redirection failure belongs to a preset type. In one embodiment of this application, if it is determined that the redirection failure belongs to a preset type, proceed to step S505; otherwise, if it is determined that the redirection failure does not belong to a preset type, proceed to step S503.

[0092] Step S505: Redirection failed.

[0093] Step S506: Obtain application information of the foreground application of the terminal device.

[0094] Step S507: Based on the application information of the foreground application, determine whether the foreground application corresponds to a preset suppression parameter. If the foreground application corresponds to the preset suppression parameter, proceed to step S508; if the foreground application does not correspond to the preset suppression parameter, proceed to step S509. In one embodiment of this application, the terminal device 10 can search for the preset suppression parameter based on the application information of the foreground application (e.g., ...). Figure 6 The terminal device 10 determines whether the foreground application corresponds to a preset suppression parameter (as shown in the suppression parameter table). If it is determined that there is an application in the suppression parameters that matches the name, application tag, or application identifier of the foreground application, the terminal device 10 determines that the foreground application corresponds to a preset suppression parameter; if it is determined that there is no application in the suppression parameters that matches the name, application tag, or application identifier of the foreground application, the terminal device 10 determines that the foreground application does not correspond to a preset suppression parameter.

[0095] Step S508: Determine the suppression conditions, the first suppression duration, and the second suppression duration corresponding to the application information of the foreground application.

[0096] Step S509: Determine the suppression conditions, the duration of the first suppression, and the duration of the second suppression for the general application.

[0097] Step S510: Determine whether the redirection failure of the terminal device meets the suppression condition. If the redirection failure meets the suppression condition, proceed to step S511; otherwise, if the redirection failure does not meet the suppression condition, re-execute step S503.

[0098] Step S511: Based on the first suppression duration, the suppression terminal device is redirected from the first network to the second network.

[0099] Step S512: When the duration of the suppression of the terminal device being redirected from the first network to the second network reaches the first suppression duration, the redirection suppression of the terminal device is terminated.

[0100] In one embodiment of this application, Figure 5 In the middle steps S501-S512 and Figure 2 For steps S201-S212, please refer to the implementation details of steps S501-S512. Figure 2 The descriptions of steps S201-S212 will not be repeated here.

[0101] Step S513: Determine whether the redirection failure of the terminal device within the aging time meets the suppression condition.

[0102] In one embodiment of this application, if the foreground application is a game application, the terminal device 10 determines whether the redirection failure of the terminal device 10 within the aging period meets the suppression condition of the game application. For example, if the terminal device 10 determines that the redirection failure of the terminal device 10 within the aging period meets the suppression condition of "the number of redirection failures occurring within 1 minute reaches 2 times", then it is determined that the redirection failure of the terminal device 10 has met the suppression condition again. If the redirection failure of the terminal device 10 meets the suppression condition again within the aging period, then step S514 is executed; otherwise, if the redirection failure of the terminal device 10 does not meet the suppression condition within the aging period, the process returns to step S503.

[0103] Step S514: Based on the second suppression duration, the suppression terminal device is redirected from the first network to the second network.

[0104] In one embodiment of this application, the specific implementation details of step S514 can be found here. Figure 2 The specific implementation details of step S211 will not be described in detail here.

[0105] Step S515: When the duration of the suppression of the terminal device being redirected from the first network to the second network reaches the second suppression duration, the redirection suppression of the terminal device is terminated.

[0106] If the terminal device 10 fails to redirect again and reaches the suppression condition again within the aging period after exiting the redirection suppression, the terminal device 10 will be subject to a second period of redirection suppression to increase the suppression of the redirection of the terminal device 10 and thus improve the stability of network communication.

[0107] In one embodiment of this application, the process returns to step S503 after step S515.

[0108] For example, taking a mobile phone as the terminal device 10, an LTE network as the first network 20, and an SA network as the second network, when the mobile phone is running a game application, the frequent redirection from the LTE network to the SA network can cause the game application to lag. In this embodiment, the mobile phone can preset suppression parameters, which include the game application, the suppression conditions for the game application, the first suppression duration, the second suppression duration, and the aging duration. After the mobile phone connects to the LTE network, it detects a redirection failure from the LTE network to the SA network and determines whether the redirection failure belongs to a preset type. If the mobile phone's redirection failure is a failure to access the network based on the searched network frequency, then the mobile phone's redirection failure is determined to be a preset type. The mobile phone records the occurrence time and the number of redirection failures. The mobile phone obtains the application information of the foreground application, which is the application information of the game application, and searches for the preset suppression parameters based on the application information of the game application to determine the suppression conditions, the first suppression duration, the second suppression duration, and the aging duration of the game application. If the number of redirection failures detected by the phone reaches the suppression condition of "two redirection failures within one minute", the phone is suppressed from redirecting from the LTE network to the SA network for a first suppression duration of 5 minutes. If the suppression duration for redirecting from the LTE network to the SA network reaches 5 minutes, the redirection suppression is terminated. If, within the aging time of the game application, the phone's redirection failures again reach the suppression condition of "two redirection failures within one minute", it indicates a serious access problem on the SA network. The phone then increases the redirection intensity for a second suppression duration of 60 minutes, thus avoiding frequent redirections from the LTE network to the SA network and preventing game application lag. When the suppression duration for redirecting from the LTE network to the SA network reaches 60 minutes, the redirection suppression is terminated. Finally, the phone continues to detect redirection failures from the LTE network to the SA network and repeats the above steps to determine if the phone's redirection failures reach the suppression condition of "two redirection failures within one minute". If so, the phone is suppressed for redirection according to the second suppression duration.

[0109] refer to Figure 7The diagram shown is a schematic of the suppression parameter table in another embodiment of this application. The suppression parameter table includes an application, a suppression condition, a first suppression duration, a second suppression duration, an aging duration, ..., an Nth suppression duration. Each application corresponds to one suppression condition, one first suppression duration, one second suppression duration, one aging duration, ..., an Nth suppression duration. N is an integer greater than 2, and the first suppression duration, second suppression duration, ..., Nth suppression duration increase sequentially. In the embodiments of this application, the aging duration for each application can be the same or different. In the embodiments of this application, if the terminal device 10 exits the redirection suppression of the first suppression duration and then meets the suppression condition again within the aging duration, then the terminal device 10 undergoes a second redirection suppression based on the second suppression duration. Similarly, if terminal device 10 exits the redirection suppression of the second suppression duration and meets the suppression condition again within the aging duration, then terminal device 10 is subjected to a third redirection suppression based on the third suppression duration, and the above steps are repeated until terminal device 10 is subjected to a redirection suppression of the Nth suppression duration or until terminal device 10 fails to meet the suppression condition within the aging duration. If terminal device 10 fails to meet the suppression condition within the aging duration, terminal device 10 returns to step S509. In one embodiment of this application, after step S514 is executed, the suppression duration in steps S513 and S514 is updated, and steps S512-S514 are executed cyclically until the duration of the suppression of terminal device 10 from the first network 20 to the second network 30 reaches the Nth suppression duration. At this point, terminal device 10 repeatedly determines whether the redirection failure of terminal device 10 meets the suppression condition. If it does, then the redirection suppression of terminal device 10 is repeated according to the Nth suppression duration.

[0110] refer to Figure 8 The diagram shown is a flowchart of a redirection control method according to an embodiment of this application. The method is applied in a terminal device 10. The terminal device 10 is connected to a first network 20. The method includes the following steps.

[0111] Step S801: The terminal device connects to the first network.

[0112] In one embodiment of this application, the implementation details of step S801 are as follows: Figure 2 The description of step S202 will not be repeated here.

[0113] Step S802: When the terminal device is running the first application, if the number of redirection failures of the terminal device from the first network to the second network reaches a first threshold, the terminal device is prevented from being redirected from the first network to the second network within a first suppression duration.

[0114] In one embodiment of this application, for details regarding the detection of a redirection failure where the terminal device 10 is redirected from the first network 20 to the second network 30, please refer to [link / reference needed]. Figure 2 The description of step S203.

[0115] In one embodiment of this application, when the terminal device 10 is running a first application, the foreground application of the terminal device 10 is determined to be the first application, and the suppression condition and the first suppression duration of the first application are determined according to the application information of the first application. The suppression condition of the first application is that the number of redirection failures of the terminal device 10 reaches a first threshold.

[0116] In one embodiment of this application, after detecting a redirection failure of terminal device 10 from first network 20 to second network 30, the method further includes: if it is determined that the redirection failure belongs to a preset type, recording the number of redirection failures; if it is determined that the redirection failure does not belong to a preset type, continuing to detect redirection failures of terminal device 10 from first network 20 to second network 30.

[0117] Step S803: When the terminal device is running the second application, if the number of redirection failures of the terminal device from the first network to the second network reaches the second threshold, the terminal device is suppressed from redirecting to the second network within the second suppression duration.

[0118] In this embodiment, the first application is more sensitive to latency than the second application, the first suppression duration is longer than the second suppression duration, and the first threshold and the second threshold may be the same as or different from each other. In one embodiment of this application, when the terminal device 10 is running the second application, the foreground application of the terminal device 10 is determined to be the second application, and the suppression condition and second suppression duration of the second application are determined based on the application information of the second application. The suppression condition of the second application is that the number of redirection failures of the terminal device 10 reaches the second threshold.

[0119] In one embodiment of this application, when the terminal device 10 is running a first application, the method further includes: if the number of redirection failures detected when the terminal device 10 is redirected from the first network 20 to the second network 30 has not reached a first threshold, continuing to detect new redirection failures when the terminal device 10 is redirected from the first network 20 to the second network 30; if it is determined that the new redirection failure belongs to a preset type, recording the number of redirection failures; obtaining the application information of the foreground application of the terminal device 10 to refresh the foreground application; if the foreground application is the first application, and the number of redirection failures of the terminal device 10 reaches the first threshold, suppressing the redirection of the terminal device 10 from the first network 20 to the second network 30 within a first suppression duration.

[0120] In one embodiment of this application, after obtaining the application information of the foreground application of the terminal device 10 to refresh the foreground application, the method further includes: if the foreground application is a second application, determining the suppression condition and second suppression duration of the second application; determining whether the redirection failure of the terminal device 10 meets the suppression condition of the second application; if the redirection failure of the terminal device 10 meets the suppression condition of the second application, suppressing the redirection of the terminal device 10 from the first network 20 to the second network 30 within the second suppression duration; if the redirection failure of the terminal device 10 does not meet the suppression condition of the second application, continuing to detect new redirection failures of the terminal device 10 from the first network 20 to the second network 30, until the redirection failure of the terminal device 10 meets the suppression condition of the foreground application.

[0121] In this embodiment of the application, when the terminal device 10 is running a first application, if the number of redirection failures detected by the terminal device 10 reaches a first threshold, the terminal device 10 is prevented from being redirected from the first network 20 to the second network 30 within a first suppression duration. Similarly, when the terminal device is running a second application, if the number of redirection failures detected by the terminal device 10 reaches a second threshold, the terminal device 10 is prevented from being redirected from the first network 20 to the second network 30 within a second suppression duration. Thus, this embodiment of the application can determine different suppression conditions based on the type of application running on the terminal device 10, and suppress redirection failures of the terminal device 10 according to the suppression conditions corresponding to the application. This avoids frequent redirection from the first network 20 to the second network 30 when the terminal device 10 is running applications, thereby solving the problem of data service lag caused by frequent network switching.

[0122] refer to Figure 9 The diagram shown is a flowchart of a redirection control method according to an embodiment of this application. The method includes the following steps.

[0123] Step S901: Preset suppression parameters.

[0124] refer to Figure 10 As shown, suppression parameters can be preset through a suppression parameter table. The suppression parameters include multiple types of redirection failure, the suppression conditions corresponding to each type of redirection failure, and the suppression duration.

[0125] Step S902: Connect to the first network.

[0126] Step S903: Detect the failure of the terminal device to redirect from the first network to the second network.

[0127] Step S904: Determine whether the redirection failure belongs to a preset type. In one embodiment of this application, if it is determined that the redirection failure belongs to a preset type, proceed to step S905; otherwise, if it is determined that the redirection failure does not belong to a preset type, proceed to step S903.

[0128] Step S905: Redirection failed.

[0129] In one embodiment of this application, Figure 9 In the middle steps S901-S905 and Figure 2 Steps S201-S205 correspond to steps S901-S905. Please refer to [link / reference needed] for the implementation details. Figure 2 The descriptions of steps S201-S205 will not be repeated here.

[0130] Step S906: Based on the type of redirection failure, find the suppression parameters and determine the suppression conditions and suppression duration corresponding to the type of redirection failure.

[0131] In embodiments of this application, the terminal device 10 can search for preset suppression parameters based on the type of redirection failure, and determine the suppression conditions and suppression duration corresponding to the type of redirection failure. The suppression parameters can be preset using a suppression parameter table. (See reference...) Figure 10 The suppression parameter table shown includes multiple types of redirection failures, along with the corresponding suppression conditions and durations for each type. For example, the suppression condition for the first type is "two redirection failures occur within one minute," and the suppression duration is 10 minutes; the suppression condition for the second type is "three redirection failures occur within one minute," and the suppression duration is 5 minutes. The first type occurs when terminal device 10 fails to search for network frequencies, and the second type occurs when terminal device 10 fails to access the network based on the searched network frequencies.

[0132] Step S907: Determine whether the redirection failure of the terminal device meets the suppression condition. If the redirection failure meets the suppression condition, proceed to step S908; otherwise, if the redirection failure does not meet the suppression condition, re-execute step S903. In one embodiment of this application, if the type of redirection failure is the first type, determine whether the redirection failure of the terminal device meets the suppression condition of the first type; if the suppression condition of the first type is met, proceed to step S908.

[0133] If the suppression condition of the first type is not met, proceed to step S903 to continue detecting redirection failures of terminal device 10 from the first network 20 to the second network 30. If a new redirection failure of the second type is detected, proceed to step S904; if the second type of redirection failure also belongs to the preset type, proceed to step S905 to record the occurrence time and number of redirection failures; after step S905 is completed, proceed to step S906 to find the suppression condition corresponding to the second type of redirection failure, which is "the number of redirection failures reaches 3 times in 1 minute", and the suppression duration is 5 minutes; determine whether the redirection failure of terminal device 10 meets the suppression condition of "the number of redirection failures reaches 3 times in 1 minute". If the above suppression condition is met, proceed to step S908; if not, re-execute step S903. If a new redirection failure is detected and is still of type 1, proceed to step S905, record the occurrence time and number of times the redirection failure occurred, skip step S906, proceed to step S907, determine whether the redirection failure of the terminal device meets the suppression condition of "the number of redirection failures in 1 minute reaches 2 times". If the suppression condition of "the number of redirection failures in 1 minute reaches 2 times" is met, proceed to step S908. If the suppression condition of "the number of redirection failures in 1 minute reaches 2 times" is not met, re-execute step S903.

[0134] Step S908: Based on the suppression duration, the suppression terminal device is redirected from the first network to the second network.

[0135] In one embodiment of this application, if the redirection failure is of the first type, the terminal device 10 suppresses the redirection from the first network 20 to the second network 30 according to the suppression duration of the first type. If the redirection failure is of the second type, the terminal device 10 suppresses the redirection from the first network 20 to the second network 30 according to the suppression duration of the second type.

[0136] Step S909: When the duration of the suppression of the terminal device being redirected from the first network to the second network reaches the suppression duration, the redirection suppression of the terminal device is terminated.

[0137] In one embodiment of this application, if the redirection failure is of the first type, the redirection suppression of the terminal device 10 is terminated when the duration of the suppression of the terminal device 10 from the first network 20 to the second network 30 reaches the suppression duration of the first type. If the redirection failure is of the second type, the redirection suppression of the terminal device 10 is terminated when the duration of the suppression of the terminal device 10 from the first network 20 to the second network 30 reaches the suppression duration of the second type.

[0138] If, within the aging period after exiting redirection suppression, the redirection failure of terminal device 10 again reaches the suppression condition, then another period of redirection suppression will be applied to terminal device 10 to increase the suppression of redirection and thus improve network communication stability.

[0139] refer to Figure 11 The diagram shown is a flowchart of a redirection control method according to an embodiment of this application. The method includes the following steps.

[0140] Step S1101: Preset suppression parameters.

[0141] In one embodiment of this application, suppression parameters can be preset by a suppression parameter table. The suppression parameter table includes multiple types of redirection failure, suppression conditions corresponding to each type of redirection failure, first suppression duration, and second suppression duration.

[0142] Step S1102: Connect to the first network.

[0143] Step S1103: Detect the failure of the terminal device to redirect from the first network to the second network.

[0144] Step S1104: Determine whether the redirection failure belongs to the preset failure. In one embodiment of this application, if it is determined that the redirection failure belongs to the preset failure, proceed to step S1105; otherwise, if it is determined that the redirection failure does not belong to the preset failure, proceed to step S1103.

[0145] Step S1105: Record redirection failed.

[0146] Step S1106: Based on the type of redirection failure, find the suppression parameters and determine the suppression conditions corresponding to the type of redirection failure, as well as the duration of the first suppression and the duration of the second suppression.

[0147] Step S1107: Determine whether the redirection failure of the terminal device meets the suppression condition. If the redirection failure meets the suppression condition, proceed to step S1108; otherwise, if the redirection failure does not meet the suppression condition, re-execute step S1103.

[0148] Step S1108: Redirect the terminal device from the first network to the second network according to the first suppression duration.

[0149] Step S1109: When the duration of the suppression of the terminal device being redirected from the first network to the second network reaches the first suppression duration, the redirection suppression of the terminal device is terminated.

[0150] For the specific implementation details of steps S1101-S1109 in this embodiment, please refer to [link / reference]. Figure 9The description of steps S901-S909.

[0151] Step S1110: Determine whether the redirection failure of the terminal device within the aging time meets the suppression condition.

[0152] If the redirection failure of terminal device 10 within the aging period meets the suppression condition again, then step S1111 is executed; otherwise, if the redirection failure of terminal device 10 within the aging period does not meet the suppression condition, step S1103 is executed again.

[0153] Step S1111: The terminal device is redirected from the first network to the second network according to the second suppression duration.

[0154] Step S1112: When the duration of the suppression of the terminal device being redirected from the first network to the second network reaches the second suppression duration, the redirection suppression of the terminal device is terminated.

[0155] Step S1112 is followed by step S1103.

[0156] If, within the aging period after exiting redirection suppression, the redirection failure of terminal device 10 again reaches the suppression condition, a second period of redirection suppression will be performed on terminal device 10 to increase the suppression of redirection and thus improve network communication stability. For the specific implementation details of steps S1110-S1112 in this embodiment, please refer to [reference needed]. Figure 5 The descriptions of steps S513-S515 will not be repeated here.

[0157] The terminal device 10 involved in the embodiments of this application will be described below. (Reference) Figure 12 The diagram shown is a schematic representation of the hardware structure of a terminal device 10 in one embodiment of this application.

[0158] In this embodiment, the terminal device 10 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.

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

[0160] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal device 10. In other embodiments of this application, the terminal device 10 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.

[0161] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0162] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0163] 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 the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

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

[0165] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the terminal device 10. In other embodiments of this application, the terminal device 10 may also employ different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.

[0166] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the terminal device 10. While charging the battery 142, the charging management module 140 can also supply power to the terminal device 10 via the power management module 141.

[0167] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0168] The wireless communication function of the terminal device 10 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0169] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 10 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0170] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the terminal device 10. 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 the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to the 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 the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0171] 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 an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0172] The wireless communication module 160 can provide solutions for wireless communication applications on the terminal device 10, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), 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.

[0173] In some embodiments, antenna 1 of terminal device 10 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling terminal device 10 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0174] Terminal device 10 implements display functions through a GPU, display screen 194, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0175] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a minimized display, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 10 may include one or N displays 194, where N is a positive integer greater than 1.

[0176] Terminal device 10 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0177] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0178] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the terminal device 10 may include one or N cameras 193, where N is a positive integer greater than 1.

[0179] A digital signal processor (DSP) is used to process digital signals. Besides digital image signals, it can also process other digital signals. For example, when the terminal device 10 selects a frequency, the DSP performs a Fourier transform on the frequency energy.

[0180] Video codecs are used to compress or decompress digital video. Terminal device 10 may support one or more video codecs. Thus, terminal device 10 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.

[0181] An NPU (Neural Processing Unit) is a neural network (NN) computing processor that, by borrowing from the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, rapidly processes input information and can continuously learn on its own. NPUs enable intelligent cognitive applications in terminal devices 10, such as image recognition, facial recognition, speech recognition, and text understanding.

[0182] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM).

[0183] Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, such as fifth-generation DDR SDRAM, which is generally called DDR5 SDRAM), etc.

[0184] Non-volatile memory can include disk storage devices and flash memory.

[0185] Flash memory can be classified according to its operating principle, including NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.; according to the level of the storage cell, including single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc.; and according to the storage specification, including universal flash storage (UFS) and embedded multimedia card (eMMC), etc.

[0186] The random access memory can be directly read and written by the processor 110. It can be used to store executable programs (such as machine instructions) of the operating system or other running programs, as well as user and application data.

[0187] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 110.

[0188] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the terminal device 10. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.

[0189] Internal memory 121 or external memory interface 120 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 110. The one or more computer programs include multiple instructions, which, when executed by the processor 110, can implement the redirection control method on the terminal device 10 in the above embodiments to achieve redirection control of the terminal device 10.

[0190] Terminal device 10 can implement audio functions, such as music playback and recording, through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, and an application processor.

[0191] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0192] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The terminal device 10 can listen to music or make hands-free calls through the speaker 170A.

[0193] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the terminal device 10 receives a phone call or voice message, the receiver 170B can be brought close to the listener's ear to receive the voice message.

[0194] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Terminal device 10 may be equipped with at least one microphone 170C. In some embodiments, terminal device 10 may be equipped with two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, terminal device 10 may be equipped with three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0195] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0196] Of course, the electronic device may also include one or more components such as button 190, motor 191, indicator 192 and SIM card interface 195, and the embodiments of this application do not impose any limitations on this.

[0197] This embodiment also provides a computer storage medium storing computer instructions. When the computer instructions are executed on the terminal device 10, the terminal device 10 performs the aforementioned related method steps to implement the redirection control method in the above embodiment.

[0198] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the redirection control method in the above embodiment.

[0199] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory. The memory is used to store computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory to cause the chip to execute the redirection control method in the above-described method embodiments.

[0200] In this embodiment, the terminal device 10, computer storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0201] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0202] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0203] 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 above preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions to the technical solutions of this application should not depart from the spirit and scope of the technical solutions of this application.

Claims

1. A redirection control method, applied to a terminal device, characterized in that, The terminal device presets suppression parameters or obtains the suppression parameters from a server. The suppression parameters include the correspondence between different application information, suppression conditions, and suppression durations. The suppression conditions include a threshold number of redirection failures for the terminal device. The method includes: Access to the first network; When the terminal device is running the first application, if the number of times the terminal device fails to redirect from the first network to the second network reaches a first threshold, the terminal device is prevented from redirecting from the first network to the second network within a first suppression duration. When the terminal device is running the second application, if the number of times the terminal device fails to redirect from the first network to the second network reaches a second threshold, the terminal device is prevented from redirecting from the first network to the second network for a second suppression period. Wherein, the first application is more sensitive to latency than the second application, the first suppression duration is longer than the second suppression duration, and the first threshold is the same as or different from the second threshold.

2. The redirection control method as described in claim 1, characterized in that, If the redirection of the terminal device from the first network to the second network fails, the method further includes: If it is determined that the redirection failure belongs to a preset type, the number of redirection failures is recorded; If it is determined that the redirection failure does not belong to a preset type, the system continues to detect redirection failures of the terminal device from the first network to the second network.

3. The redirection control method as described in claim 1, characterized in that, When the terminal device is running the first application, the method further includes: The foreground application of the terminal device is determined to be the first application, and the suppression condition and the first suppression duration of the first application are determined according to the application information of the first application. The suppression condition of the first application is that the number of redirection failures of the terminal device reaches the first threshold. When the terminal device is running the second application, the method further includes: The foreground application of the terminal device is determined to be the second application, and the suppression condition and the second suppression duration of the second application are determined according to the application information of the second application. The suppression condition of the second application is that the number of redirection failures of the terminal device reaches the second threshold.

4. The redirection control method as described in claim 3, characterized in that, The step of determining the suppression condition and the suppression duration of the first application based on the application information of the first application includes: Based on the application information of the first application, the suppression parameters are queried to determine the suppression conditions and the first suppression duration of the first application; The step of determining the suppression conditions and the suppression duration of the second application based on the application information of the second application includes: Based on the application information of the second application, the inhibition parameters are queried to determine the inhibition conditions and the second inhibition duration of the second application.

5. The redirection control method as described in claim 1, characterized in that, The method further includes: If the number of redirection failures detected when the terminal device is redirected from the first network to the second network does not reach the first threshold, continue to detect new redirection failures when the terminal device is redirected from the first network to the second network; If a new redirection failure is determined to be of a preset type, the number of such redirection failures is recorded; Obtain the application information of the foreground application of the terminal device to refresh the foreground application; If the foreground application is the first application, and the number of redirection failures of the terminal device reaches the first threshold, the terminal device is suppressed from being redirected from the first network to the second network within the first suppression duration.

6. The redirection control method as described in claim 5, characterized in that, After obtaining the application information of the foreground application of the terminal device to refresh the foreground application, the method further includes: If the foreground application is the second application, determine the suppression condition and the second suppression duration of the second application. The suppression condition of the second application is that the number of redirection failures of the terminal device reaches the second threshold. Determine whether the redirection failure of the terminal device meets the suppression condition of the second application; If the redirection of the terminal device fails and the suppression condition of the second application is met, the terminal device is suppressed from being redirected from the first network to the second network within the second suppression duration; If the redirection failure of the terminal device does not meet the suppression condition of the second application, the system continues to detect new redirection failures of the terminal device from the first network to the second network.

7. The redirection control method as described in claim 1, characterized in that, The step of suppressing the redirection of the terminal device from the first network to the second network during the first suppression duration includes: During the first suppression duration, disable the terminal device's ability to access the second network; The step of suppressing the redirection of the terminal device from the first network to the second network during the second suppression duration includes: The terminal device's ability to access the second network is disabled during the second suppression period.

8. The redirection control method as described in claim 1, characterized in that, The step of suppressing the redirection of the terminal device from the first network to the second network during the first suppression duration includes: During the first suppression period, the priority of accessing the second network is reduced, so that the priority of accessing the first network is higher than the priority of accessing the second network; The step of suppressing the redirection of the terminal device from the first network to the second network during the second suppression duration includes: During the second suppression period, the priority of accessing the second network is reduced, so that the priority of accessing the first network is higher than the priority of accessing the second network.

9. The redirection control method as described in claim 1, characterized in that, The method further includes: When the terminal device is running the first application, if the duration of suppressing the redirection of the terminal device from the first network to the second network reaches the first suppression duration, the redirection suppression of the terminal device is terminated. When the terminal device is running the second application, if the duration of suppressing the redirection of the terminal device from the first network to the second network reaches the second suppression duration, the redirection suppression of the terminal device is terminated.

10. The redirection control method as described in claim 9, characterized in that, After exiting the redirection suppression of the terminal device, the method further includes: When the terminal device runs the first application, If the number of redirection failures of the terminal device from the first network to the second network is detected within the first aging period reaches the first threshold, the redirection of the terminal device from the first network to the second network is suppressed according to the third suppression period; When the duration of suppressing the redirection of the terminal device from the first network to the second network reaches the third suppression duration, the redirection suppression of the terminal device is terminated; When the terminal device is running the second application, If the number of redirection failures of the terminal device from the first network to the second network is detected to reach the second threshold within the second aging period, the redirection of the terminal device from the first network to the second network is suppressed according to the fourth suppression period; When the duration of suppressing the redirection of the terminal device from the first network to the second network reaches the fourth suppression duration, the redirection suppression of the terminal device is terminated. Wherein, the third inhibition duration is greater than the first inhibition duration, and the fourth inhibition duration is greater than the second inhibition duration.

11. The redirection control method as described in claim 9, characterized in that, The exit suppression of redirection on the terminal device includes: Restore the terminal device's ability to access the second network; or, Increase the priority of accessing the second network so that the priority of accessing the second network is higher than the priority of accessing the first network.

12. The redirection control method as described in claim 9, characterized in that, After exiting the redirection suppression of the terminal device, the method further includes: The number of times the redirection to clear the record failed.

13. A terminal device, characterized in that, Includes a processor and a memory; wherein the processor is connected to the memory; The memory is used to store program instructions; The processor is configured to read the program instructions stored in the memory to implement the redirection control method as described in any one of claims 1 to 12.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program instructions that, when executed on an electronic device, cause the electronic device to perform the redirection control method as described in any one of claims 1 to 12.