Redirection control method, terminal equipment and storage medium

By setting suppression conditions and suppression time in the terminal device according to the application's delay sensitivity and the number of redirect failures, and suppression time is suppressed frequently switch between network redirection of terminal devices, the problem of data communication service lag caused by failed network redirection of terminal devices is solved. , improves communication stability.

CN119183174AActive Publication Date: 2024-12-24HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311404845.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-21
Publication Date
2024-12-24
Estimated Expiration
2043-06-21

AI Technical Summary

Technical Problem

When the terminal device fails to redirect the network frequently, the data communication service will be stuttered, and the prior art cannot effectively suppress this situation.

Method used

By implementing a redirect control method in the terminal device, the suppression conditions and suppression duration are set according to the application's sensitivity to delay and the number of redirection failures, the frequent switching of the terminal device from one network to another network is suppressed, and the frequency of redirection switching of the terminal device is prevented from being redirected from one network to another network, thereby avoiding the Data business is stuttering.

Benefits of technology

It effectively avoids frequent switching of terminal devices when network redirection fails, and improves the stability and user experience of data communication services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119183174A_ABST
    Figure CN119183174A_ABST
Patent Text Reader

Abstract

The invention relates to the field of communication, and provides a redirection control method, terminal equipment and a storage medium. And when the terminal device runs the first application, if it is detected that the number of failures of redirecting the terminal device from the first network to the second network reaches a first threshold value, redirecting the terminal device from the first network to the second network is inhibited within a first inhibition duration. And when the terminal device runs a second application, if it is detected that the number of failures of redirecting the terminal device from the first network to the second network reaches a second threshold value, redirecting the terminal device from the first network to the second network within a second suppression duration is suppressed. According to the application, different suppression conditions can be determined according to the type of the application operated by the terminal equipment, and the redirection failure of the terminal equipment is suppressed according to the suppression conditions corresponding to the application, so that frequent redirection from the first network to the second network when the terminal equipment operates the application is avoided, and the user experience is improved. Therefore, the problem of data service lagging caused by frequent network switching is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communications, and in particular to a redirection control method, a terminal device, and a storage medium. Background Art

[0002] In the field of communications, terminal devices will be redirected according to the configuration of the network. For example, after the terminal device turns on the switch of the 5G (fifth generation mobile communication technology, 5th Generation mobile networks) network, the terminal device is redirected from the 4G (fourth generation mobile communication technology, Fourth Generation Mobile Communication Technology) Long Term Evolution (Long Term Evolution, LTE) cell to the 5G standalone networking (Standalone, SA) cell for data communication services. If there are access problems in the SA cell (for example, weak signal or authentication errors, etc.), the terminal device will fail to redirect. However, since the network equipment in the network (such as base stations) cannot perceive the redirection failure, the network equipment will issue a redirection notification based on the report uploaded by the terminal device, resulting in frequent redirection failures of the terminal device, causing the user's data communication service to be stuck. 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 that frequent redirection failures of the terminal device cause the data communication service of the terminal device to become stuck.

[0004] In the first aspect, an embodiment of the present application provides a redirection control method, the method comprising: a terminal device accesses a first network; when the terminal device runs a first application, if it is detected that 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 inhibited from redirecting from the first network to the second network within a first inhibition time; when the terminal device runs a second application, if it is detected that the number of redirection failures of the terminal device from the first network to the second network reaches a second threshold, the terminal device is inhibited from redirecting from the first network to the second network within a second inhibition time; wherein, the sensitivity of the first application to delay is higher than the sensitivity of the second application to delay, the first inhibition time is greater than the second inhibition time, and the first threshold is the same as or different from the second threshold. The above scheme can determine different inhibition conditions according to the sensitivity of the application to time, and inhibit the redirection failure of the terminal device according to the inhibition conditions of the application running in the terminal device, so as to avoid the terminal device from frequently redirecting from the first network to the second network when running the application, and avoid frequent network switching causing data service jams. In addition, by setting the corresponding suppression conditions and suppression duration of the application according to the application's sensitivity to latency, it is possible to more accurately evaluate 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 the present application, after detecting that 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, recording the number of redirection failures; if it is determined that the redirection failure does not belong to the preset type, continuing to detect the redirection failure of the terminal device from the first network to the second network. In the above scheme, the terminal device records the redirection failure of the preset type, which can achieve the suppression of the redirection failure of the preset type.

[0006] In one embodiment of the present application, when the terminal device runs the 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 the first suppression duration of the first application 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 a first threshold; when the terminal device runs the 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 the second suppression duration of the second application 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 a second threshold. The above technical scheme can use the suppression condition of the foreground application as the judgment basis for the terminal device to suppress redirection, and suppress the terminal device from redirection when the number of redirection failures of the terminal device reaches the threshold, thereby avoiding the problem of data communication service of the foreground application being stuck when the terminal device frequently switches between the first network and the second network, and improving the stability of network communication.

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

[0008] In one embodiment of the present application, the method further includes: if it is detected that the number of redirection failures of the terminal device from the first network to the second network does not reach the first threshold, continue 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, record the number of redirection failures; obtain 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, suppress the terminal device from redirecting from the first network to the second network within the first suppression time. The above technical solution obtains 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, suppress the terminal device from redirecting from the first network to the second network within the first suppression time, so as to ensure that the terminal device always suppresses the redirection of the terminal device according to the suppression condition of the currently running foreground application.

[0009] In one embodiment of the present 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 the second application, determining the suppression condition and the second suppression duration of the second application, the suppression condition of the second application being that the number of redirection failures of the terminal device reaches a second threshold; judging whether the redirection failure of the terminal device reaches the suppression condition of the second application; if the redirection failure of the terminal device reaches the suppression condition of the second application, suppressing the terminal device from redirecting from the first network to the second network within the second suppression duration; if the redirection failure of the terminal device does not reach the suppression condition of the second application, continuing to detect a new redirection failure of the terminal device from redirecting from the first network to the second network. In the above technical solution, if the foreground application is the second application, determining the suppression condition and the second suppression duration of the second application, and if the redirection failure of the terminal device reaches the suppression condition of the second application, suppressing the terminal device from redirecting from the first network to the second network within the second suppression duration, so that 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 the present application, suppressing the terminal device from redirecting from the first network to the second network within the first suppression time period includes: shutting down the terminal device's access to the second network function within the first suppression time period; suppressing the terminal device from redirecting from the first network to the second network within the second suppression time period includes: shutting down the terminal device's access to the second network function within the second suppression time period. In the above technical solution, after shutting down the terminal device's access to the second network function within the suppression time period, the terminal device does not search for the second network, and the terminal device does not report to the first network after residing in the first network.

[0011] In one embodiment of the present application, suppressing the redirection of the terminal device from the first network to the second network within the first suppression time period includes: reducing the priority of accessing the second network within the first suppression time period, so that the priority of accessing the first network is higher than the priority of accessing the second network; suppressing the redirection of the terminal device from the first network to the second network within the second suppression time period includes: reducing the priority of accessing the second network within the second suppression time period, so that the priority of accessing the first network is higher than the priority of accessing the second network. In the above technical solution, after reducing the priority of accessing the second network within the suppression time period, so that the priority of accessing the first network is higher than the priority of accessing the second network, the terminal device can reside in the first network within the suppression time period.

[0012] In one embodiment of the present application, the method further includes: when the terminal device runs the first application, if the duration of suppressing the terminal device from redirecting from the first network to the second network reaches the first suppression duration, exiting the suppression of the redirection of the terminal device; when the terminal device runs the second application, if the duration of suppressing the terminal device from redirecting from the first network to the second network reaches the second suppression duration, exiting the suppression of the redirection of the terminal device. In the above technical solution, after the time of suppressing the terminal device from redirecting from the first network to the second network reaches the suppression duration, the function of the terminal device accessing the second network is restored, so that the terminal device can be redirected from the first network where it resides to the second network.

[0013] In one embodiment of the present application, after exiting the suppression of redirection of the terminal device, the method further includes: when the terminal device runs the first application, if it is detected within the first aging time that the number of redirection failures of the terminal device from the first network to the second network reaches a first threshold, according to the third suppression time, suppressing the terminal device from being redirected from the first network to the second network; when the time for suppressing the terminal device from being redirected from the first network to the second network reaches the third suppression time, exiting the suppression of redirection of the terminal device; when the terminal device runs the second application, if it is detected within the second aging time that the number of redirection failures of the terminal device from the first network to the second network reaches a second threshold, according to the fourth suppression time, suppressing the terminal device from being redirected from the first network to the second network; when the time for suppressing the terminal device from being redirected from the first network to the second network reaches the fourth suppression time, exiting the suppression of redirection of the terminal device; wherein, the third suppression time is greater than the first suppression time, and the fourth suppression time is greater than the second suppression time. In the above technical solution, if the redirection failure of the terminal device meets the suppression condition again within the aging time after the terminal device exits the redirection suppression, the terminal device will be subject to redirection suppression with a longer suppression time to increase the suppression intensity of the terminal device's redirection, thereby improving the stability of network communication.

[0014] In one embodiment of the present application, exiting the suppression of redirection of the terminal device includes: restoring the function of the terminal device 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 time for suppressing the redirection of the terminal device from the first network to the second network reaches the suppression duration, the function of the terminal device to access the second network is restored; or the priority of accessing the second network is increased so that the priority of accessing the second network is higher than the priority of accessing the first network, so that the terminal device can be redirected from the first network where it resides to the second network.

[0015] In one embodiment of the present application, after exiting the redirection suppression of the terminal device, the method further comprises: clearing the recorded number of redirection failures. The above technical solution can facilitate the terminal device to re-record the redirection failure by clearing the recorded number of redirection failures, and to judge again whether the terminal device needs to suppress redirection based on the re-recorded redirection failure.

[0016] In one embodiment of the present application, the method further includes: loading suppression parameters when the terminal device is powered on, the suppression parameters including the corresponding relationship between different application information, suppression conditions and suppression duration, the suppression conditions including the number of redirection failure thresholds of the terminal device. In the above technical solution, the suppression parameters are loaded when the terminal device is powered on, and the loaded suppression parameters can be called by the terminal device.

[0017] In a second aspect, an embodiment of the present application provides 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] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores program instructions. When the program instructions are executed by a processor, the above-mentioned redirection control method is executed.

[0019] In addition, the technical effects brought about by the second to third aspects can be found in the descriptions related to the methods of each design in the above method part, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 Schematic diagram of an application scenario of a redirection control method in an embodiment of the present application.

[0022] Figure 2 It is a flowchart of a redirection control method in one embodiment of the present application.

[0023] Figure 3 Schematic diagram of a suppression parameter table in an embodiment of the present application.

[0024] Figure 4 This is a schematic diagram of disabling the function of a terminal device accessing a second network in an embodiment of the present application.

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

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

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

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

[0029] Fig. 9 This is a flowchart of a redirection control method in one embodiment of the present application.

[0030] Fig.10 It is a schematic diagram of a suppression parameter table in another embodiment of the present application.

[0031] Fig.11 This is a flowchart of a redirection control method in one embodiment of the present application.

[0032] Fig.12 Schematic diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0033] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.

[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field in this application. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can represent A or B. "And / or" in this application is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations.

[0035] In the field of communications, after mobile phones and other terminal devices are turned on and registered on the network, if the mobile phone supports the 5G network and there is a 5G base station nearby, the data communication service may be redirected from the 4G LTE cell to the 5G SA cell to obtain a better data transmission experience. Due to insufficient signal coverage or signal interference in the SA cell, the mobile phone may fail to access 5G. After the access fails, the mobile phone will continue to search for other cells on the 5G network. After the search fails, the mobile phone returns to the 4G network corresponding to the 4G LTE cell. The above redirection process will last for several seconds, resulting in the interruption of the data communication service of the mobile phone, which affects the normal operation of the mobile phone's data and call and called services, resulting in the inability of the mobile phone's data communication service to proceed normally, and the user experience is poor.

[0036] To solve the above problems, the present application proposes a redirection control method. The method is applied in a terminal device. Figure 1 As shown, it is a schematic diagram of the application scenario of the redirection control method in one embodiment of the present application. The terminal device 10 can be redirected from the first network 20 where it currently resides to the second network 30. The method can formulate a redirection suppression strategy according to the cause of the redirection failure during the process of the terminal device 10 being redirected from the first network 20 to the second network 30, and suppress the redirection of the terminal device 10 according to the redirection suppression strategy. Since the terminal device 10 suppresses the redirection, the terminal device 10 will not report the measurement notification to the first network 20 when the redirection fails. Since the measurement notification is not received, the network device (such as a base station) of the first network 20 will not send a redirection notification to the terminal device 10, so that the terminal device 10 can avoid frequent redirection and avoid the problem of affecting the user's data communication service caused by the redirection failure. The redirection suppression in the present application means that when the terminal device 10 resides 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 The terminal device 10 in the example is a mobile phone, the first network 20 is an LTE network, and the second network 30 is an SA network to illustrate the application scenario of the redirection control method. The embodiment of the present application does not limit the types of the terminal device 10, the first network 20, and the second network 30. For example, in other embodiments of the present application, the terminal device 10 can also be a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, and a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) device, a virtual reality (virtual reality, VR) device, an artificial intelligence (artificial intelligence, AI) device, a wearable device, a vehicle-mounted device, a smart home device and / or a smart city device. 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 As shown, it is a flowchart of the redirection control method in an embodiment of the present application. The method disclosed in the embodiment of the present 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 with each other, and some steps can also be deleted. Some embodiments will be described below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments 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, wherein the suppression parameters at least include suppression conditions and suppression durations corresponding to different applications.

[0040] In one embodiment of the present application, the suppression parameters are preset in the terminal device 10 before the terminal device 10 leaves the factory, and the terminal device 10 loads the suppression parameters when it is powered on, and the loaded suppression parameters can be called 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 preset in the terminal device 10, and the terminal device 10 may obtain the suppression parameters from a server that is in communication with the terminal device 10 and call them.

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

[0042] refer to Figure 3 As shown, it is a schematic diagram of a suppression parameter table in an embodiment of the present application. The suppression parameter table includes multiple applications, and each application may correspond to at least one suppression condition and suppression duration. The application of the suppression parameter table may be represented by the name of the application or the application label or application identifier. The application label or application identifier may be a string composed of numbers or letters for distinguishing applications. The suppression condition indicates that when the number of redirection failures of the terminal device 10 reaches the preset number of failures within the preset time, the terminal device 10 is triggered to suppress the redirection. The preset time and the preset number of failures in the suppression condition may be set accordingly according to the needs of the user, or the types or specific attributes of different applications. For example, the suppression condition of the application may 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 the redirection of the terminal device 10 needs to be suppressed so as not to affect 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 may be set for different types of applications.

[0043] In one embodiment of the present application, the suppression condition and suppression duration in the above suppression parameters are related to the sensitivity of the application to latency. The sensitivity of the application to latency can be represented by the number of times the application freezes during the redirection process of the terminal device 10. The more times the application freezes during the redirection process of the terminal device 10, the more sensitive the application is to latency. For example, Figure 3 The suppression parameter table shown in FIG. 1 can sort applications according to their sensitivity to delay, and prioritize applications with high sensitivity to delay (such as Figure 3 Application A) Set the first suppression condition and the first suppression duration, and applications with low sensitivity to delay (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 of the first suppression condition is less than the preset number of failures of the second suppression condition. For example, the suppression condition set for an application that is highly sensitive to delay is that the number of redirection failures within 1 minute reaches 2 times, and the suppression condition set for an application that is less sensitive to delay is that the number of redirection failures within 2 minutes reaches 2 times; or the suppression condition set for an application that is highly sensitive to delay is that the number of redirection failures within 1 minute reaches 2 times, and the suppression condition set for an application that is less sensitive to delay is that the number of redirection failures within 1 minute reaches 3 times. In one embodiment of the present application, applications that are sensitive to delay may be recorded in a whitelist in the suppression parameter table for storage.

[0044] The suppression duration refers to the duration of suppressing the redirection of the terminal device 10. In one embodiment of the present application, the first suppression duration is longer than the second suppression duration. For example, the first suppression duration set for applications with high sensitivity to delay is 10 minutes, such as instant messaging applications, video call applications, game applications, etc. The second suppression duration set for applications with low sensitivity to delay is 5 minutes, such as weather applications, novel reader applications, news applications, etc. In the embodiment of the present application, different suppression conditions and suppression durations are set according to the sensitivity of applications to delay, which can ensure that the data communication services of different applications can run stably. The longer suppression duration set for applications with high sensitivity to delay can ensure that the data jamming caused by frequent redirection of the terminal device 10 is avoided. Since applications with low sensitivity to delay are not sensitive to data delay, data jamming will not or rarely occur when the terminal device 10 is redirected, so a shorter suppression duration can be set for applications with low sensitivity to delay.

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

[0046] Step S202: connecting to a first network.

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

[0048] Step S203: Detect whether redirection of the terminal device from the first network to the second network fails.

[0049] In one embodiment of the present application, if the terminal device 10 supports the second network 30, after the terminal device 10 is connected to the first network 20, the network device of the first network 20 sends a measurement notification of the 5G signal to the terminal device 10. In one embodiment of the present 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 performs measurement when receiving the 5G signal of the second network 30 according to the measurement notification. The terminal device 10 reports a measurement report to the first network 20 when the power of the measured 5G signal meets the preset threshold power.

[0050] In one embodiment, the measurement report includes a B1 measurement. In a 5G network, the B1 measurement may be that the terminal device 10 measures and evaluates the signal strength of a neighboring cell, and decides whether to switch to the cell based on the measurement result. The B1 measurement may include the power of the 5G signal. The B1 measurement can be used to determine the quality of the connection to ensure that the user has a better communication experience. After the network device of the first network 20 receives the B1 measurement sent by the terminal device 10, it may 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 there is an access problem with the second network 30 (for example, a weak signal or an authentication error, etc.), the terminal device 10 cannot access the second network 30. In the process of redirecting the terminal device 10 from the first network 20 to the second network 30, the terminal device 10 sends a first registration message to the network device of the second network 30. If the terminal device 10 does not receive a reply message from the network device of the second network 30, it is determined that the terminal device 10 has 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. The reason for the redirection failure is used to indicate the type of redirection failure. In another embodiment of the present application, when the terminal device 10 sends a first registration message to the network device of the second network 30, if the terminal device 10 does not receive a preset reply message from the network device of the second network 30 for the first registration message, it is determined that the terminal device 10 has 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 according to the searched network frequency. In an embodiment of the present application, the preset reply information is information that the network device of the second network 30 replies to the terminal device when determining that the terminal device 10 accesses the second network 30 through the network frequency.

[0052] Step S204, determining whether the redirection failure belongs to a preset type.

[0053] In one embodiment of the present 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 the present application, multiple types or conditions may be preset to determine whether the redirection failure of the terminal device 10 belongs to a target redirection failure of a preset type. In one embodiment of the present application, the preset type of redirection failure includes: a failure of the terminal device 10 to access the network according to the searched network frequency. If the redirection failure of the terminal device 10 belongs to a failure of the terminal device 10 to access the network according to the searched network frequency, it is determined that the redirection failure of the terminal device 10 is a target redirection failure, and the redirection failure belongs to a preset type.

[0055] In one embodiment, different redirection failures correspond to different reason values ​​according to the reason for the redirection failure, and the terminal device 10 determines whether the reason value for the redirection failure is the reason value for the target redirection failure. If the reason value for the redirection failure is 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 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, the reason value of the redirection failure corresponding to the failure of the terminal device 10 to search for the network frequency is 01, and the reason value of the redirection failure corresponding to the failure of the terminal device 10 to access the network according to the searched network frequency is 02, wherein the reason value 02 corresponds to the target redirection failure. If the reason for the redirection failure of the terminal device 10 is the failure of the terminal device 10 to search for the network frequency, the terminal device 10 compares the reason value of the redirection failure (the reason value of the redirection failure corresponds to 01) with the reason value of the target redirection failure (the reason value of the target redirection failure is 02), and determines that the redirection failure does not belong to the preset type when the comparison result is inconsistent. In one embodiment of the present 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 the redirection failure.

[0058] In one embodiment of the present application, when the redirection failure belongs to a preset type, the terminal device 10 records the redirection failure. Recording the redirection failure includes: recording the time when the redirection failure occurs and the number of times the redirection failure occurs. In this embodiment, the terminal device 10 records the redirection failure of the preset type so as to suppress the redirection failure of the preset type.

[0059] Step S206, obtaining application information of the foreground application of the terminal device.

[0060] In one embodiment of the present application, the terminal device 10 obtains application information corresponding to the application running in the terminal device 10, for example, application information of the foreground application. Since the foreground application is the application currently running on the terminal device 10, the redirection behavior of the terminal device 10 will affect the data communication service of the foreground application. Therefore, when the redirection fails, it is necessary to determine the corresponding suppression condition according to the foreground application, so as to evaluate whether to suppress the redirection behavior of the terminal device 10 according to the determined suppression condition, so as to ensure the stable operation of the data communication service of the terminal device 10.

[0061] In one embodiment of the present application, the application information of the foreground application includes the name or application label 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 may be the name of the game application. As follows, the specific implementation content of each step will be described by taking the game application as the foreground application as an example.

[0062] Step S207: judging whether the foreground application corresponds to a preset suppression parameter according to the application information of the foreground application.

[0063] In one embodiment of the present application, the terminal device 10 can search for preset suppression parameters (for example, Figure 3 ), and determines whether there is an application matching the application information of the game application in the suppression parameters. If the terminal device 10 searches for the suppression parameters according to the name, label, or application identifier of the game application, and if it is determined that there is an application matching the name, application label, or application identifier of the game application in the suppression parameters, the terminal device 10 determines that there is an application matching the application information of the game application in the suppression parameters; if it is determined that there is no application matching the name, application label, or application identifier of the game application in the suppression parameters, the terminal device 10 determines that there is no application matching the application information of the game application in the suppression parameters.

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

[0065] Step S208, determining the suppression condition and suppression duration corresponding to the foreground application. After step S208 is executed, step S210 is executed.

[0066] In one embodiment of the present application, if there is an application matching the application information of the game application in the suppression parameters, 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 within 1 minute reaches 2 times", and the suppression duration is 5 minutes. The terminal device 10 determines whether the terminal device suppresses the redirection of the terminal device 10 according to the above suppression conditions.

[0067] In one embodiment of the present application, the step of step S206 can be replaced by: obtaining application information of the background application of the terminal device. Accordingly, the step of step S206 is replaced by: judging whether the foreground application corresponds to the preset suppression parameters according to the application information of the foreground application. The step of step S208 can be replaced by: determining the suppression conditions and suppression duration corresponding to the background application. After determining the corresponding suppression conditions according to the background application, the above scheme also evaluates whether to suppress the redirection behavior of the terminal device 10 according to the determined suppression conditions, thereby ensuring the stable operation of the data communication service of the background application.

[0068] Step S209, determining the suppression conditions and suppression duration of the general application. After step S209 is completed, step S210 is executed.

[0069] In one embodiment of the present application, if the application information of the game application is not in the suppression parameters, the terminal device 10 uses the suppression condition of the general application as the suppression condition 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, and evaluates whether to suppress the redirection of the game application of the terminal device 10 based on the suppression condition and suppression duration of the general application, thereby ensuring the integrity and smoothness of the execution of the redirection control method.

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

[0071] Step S210, determining whether the redirection failure of the terminal device reaches a suppression condition.

[0072] In one embodiment of the present application, the terminal device 10 can determine whether the redirection failure of the terminal device 10 meets the suppression condition according to 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 meets the suppression condition of "the number of redirection failures within 1 minute reaches 2 times" according to the number of redirection failures and the occurrence time recorded, it is determined that the redirection failure meets the suppression condition. If the redirection failure meets the suppression condition, step S211 is executed. If the terminal device 10 determines that the terminal device 10 has 1 redirection failure within 1 minute according to the number of redirection failures and the occurrence time recorded, and does not meet the suppression condition of "the number of redirection failures within 1 minute reaches 2 times", the process returns to step S203, and continues to detect 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 the preset type, step S205 is executed to continue to record the occurrence time of the new redirection failure and the number of occurrences of all redirection failures. After executing step S205, step S206 is executed to continue to obtain the application information of the foreground application of the terminal device 10 to refresh the foreground application.

[0073] If the refreshed foreground application is still a game application, skip steps S207-S209 and execute step S210 to determine whether the redirection failure of the terminal device meets the suppression condition of the game application based on the occurrence time of the new redirection device and the number of occurrences of all redirection failures. If it is determined that the terminal device 10 meets the suppression condition of "the number of redirection failures within 1 minute reaches 2 times" based on the occurrence time of the new redirection device and the number of occurrences of all redirection failures, execute step S211. Otherwise, if it is determined that the terminal device 10 meets the suppression condition of "the number of redirection failures within 1 minute reaches 2 times" based on the occurrence time of the new redirection device and the number of occurrences of all redirection failures, return to step S203 again.

[0074] If the refreshed foreground application is not a game application, but is switched to other applications, such as a news application, then step S207 is executed to continue to determine whether the news application corresponds to the preset suppression parameters based on the application information of the news application. If there is an application matching the application information of the news application in the suppression parameters, step S208 is executed to determine the suppression condition and suppression duration corresponding to the news application. For example, the delay sensitivity of the news application is less than the delay sensitivity 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 within 2 minutes reaches 3 times", and the suppression duration corresponding to the news application is 10 minutes. If there is no application matching the application information of the news application in the suppression parameters, 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 within 2 minutes reaches 3 times", step S211 is executed. Step S211: According to the suppression duration, suppressing the terminal device from being redirected from the first network to the second network.

[0075] In one embodiment of the present application, if the foreground application is a game application, the terminal device 10 suppresses the terminal device 10 from redirecting from the first network 20 to the second network 30 according to the suppression time of the game application. If the foreground application is a news application, the terminal device 10 suppresses the terminal device 10 from redirecting from the first network 20 to the second network 30 according to the suppression time of the news application. In one embodiment of the present application, suppressing the terminal device 10 from redirecting from the first network 20 to the second network 30 according to the suppression time includes: shutting down the function of the terminal device 10 accessing the second network 30 within the suppression time. In one embodiment of the present application, after shutting down the function of the terminal device 10 accessing the second network 30 within the suppression time, 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 in the first network 20. 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 it is determined that the redirection failure reaches the suppression condition, the terminal device 10 generates an instruction to shut down the 5G network by turning off the 5G network switch within the suppression time. The terminal device 10 sends a second registration information to the LTE network according to the instruction to shut down the 5G network to indicate that the terminal device 10 has turned off the function of accessing the 5G network.

[0076] In one embodiment of the present application, according to the suppression duration, suppressing the redirection of the terminal device 10 from the first network 20 to the second network 30 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; when the terminal device 10 resides in the first network 20, not reporting the B1 measurement configured by the first network 20 for the second network 30 to the first network 20.

[0077] In one embodiment of the present application, according to the suppression duration, suppressing the redirection of the terminal device 10 from the first network 20 to the second network 30 includes: determining a suppression method according to the type of redirection failure of the terminal device 10; and suppressing the redirection of the 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 the redirection failure of the terminal device 10 is a failure of the terminal device 10 to search for a network frequency, then the suppression method of the terminal device 10 is determined to be shutting down the function of the terminal device 10 to access the second network 30. If it is determined that the type of the redirection failure of the terminal device 10 is a failure of the terminal device 10 to access the network according to the searched network frequency, then the suppression method of the 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 resides in the first network 20.

[0078] In the present application, during the process of redirecting the terminal device 10 from the first network 20 to the second network 30, if it is determined that the type of redirection failure of the terminal device 10 is a failure of the terminal device 10 to search for the network frequency of the second network 30, it indicates that there is no base station including the second network 30 near the terminal device 10 or the connection signal of the base station including the second network 30 is very weak. The terminal device 10 temporarily loses the ability to access the second network 30 by turning off the function of accessing the second network 30, does not search for the second network 30, and does not report the B1 measurement when the terminal device 10 accesses the first network 20, thereby completely suppressing the ability of the terminal device 10 to redirect from the first network 20 to the second network 30, thereby improving the ability to suppress the failure of the terminal device 10 to search for the network frequency of the second network 30. In the present application, during the process of redirecting the terminal device 10 from the first network 20 to the second network 30, if it is determined that the type of redirection failure of the terminal device 10 is that the terminal device 10 fails to access the network according to the searched network frequency, it indicates that there is a base station including the second network 30 near the terminal device 10, but the connection signal of the base station of the second network 30 is weak, so that the terminal device 10 cannot stably access the second network 30. The terminal device 10 reduces 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, so that the terminal device 10 retains the ability of accessing the second network 30 when the redirection is suppressed. In the embodiment of the present application, when the redirection failure of the terminal device 10 reaches the suppression condition, the terminal device 10 is suppressed from redirecting from the first network 20 to the second network 30 according to the suppression time, which can avoid the terminal device 10 from frequently redirecting in a short time, and thus can avoid the problem of data communication service of the foreground application being stuck when the terminal device 10 frequently switches between the first network 20 and the second network 30, thereby improving the stability of network communication.

[0079] Step S212: when the duration of suppressing the redirection of the terminal device from the first network to the second network reaches the suppression duration, exit the redirection suppression of the terminal device.

[0080] In one embodiment of the present application, after the time for suppressing the terminal device 10 from redirecting from the first network 20 to the second network 30 reaches the suppression time, the function of the terminal device 10 accessing the second network 30 is restored, so that the terminal device 10 can be redirected from the first network 20 where it resides to the second network 30. For example, after determining that the time for the terminal device 10 to redirect from the first network 20 to the second network 30 reaches the suppression time, the terminal device 10 turns on the 5G network switch to generate an instruction to turn on the 5G network, and the terminal device 10 sends the third registration information to the first network 20 according to the instruction to turn on the 5G network to indicate that the terminal device 10 has turned on the function of accessing the second network 30.

[0081] In another embodiment of the present application, after the time for suppressing the terminal device 10 from being redirected from the first network 20 to the second network 30 reaches the suppression time, 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 resides in the first network 20, the B1 measurement configured by the first network 20 for the second network 30 is reported 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 the present application, exiting the redirection suppression of the terminal device further includes: clearing the recorded time of occurrence of the redirection failure and the number of occurrences of the redirection failure. In this embodiment, by clearing the recorded time of occurrence of the redirection failure and the number of occurrences of the redirection failure, the terminal device 10 can re-record the redirection failure, and judge whether the terminal device 10 needs to suppress the redirection again based on the re-recorded redirection failure.

[0083] In an embodiment of the present application, when the duration of suppressing the redirection of the terminal device 10 from the first network 20 to the second network 30 reaches the suppression duration, the suppression of the terminal device 10 is exited, so that the terminal device 10 can access the second network 30 with a higher data transmission rate for communication, thereby improving the quality of data communication services.

[0084] In the embodiment of the present application, the suppression parameters can be preset in advance, the suppression parameters of the application can be set, and the suppression parameters can be searched according to the application information of the foreground application to determine the suppression conditions and suppression duration corresponding to the foreground application. When the redirection failure of the terminal device 10 reaches the suppression condition, the terminal device 10 is suppressed from redirecting from the first network 20 to the second network 30 according to the suppression duration, which can avoid the terminal device 10 from frequently redirecting in a short period of time, and thus can avoid the problem of data communication service of the foreground application being stuck when the terminal device 10 frequently switches between the first network 20 and the second network 30, thereby improving the stability of network communication.

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

[0086] Step S501, preset suppression parameters.

[0087] The difference from the above step S201 is that, Figure 6 As shown, it is a schematic diagram of a suppression parameter table in another embodiment of the present application. The suppression parameter table includes application, suppression condition, first suppression duration, second suppression duration, aging duration, and each application corresponds to at least one suppression condition, a first suppression duration, a second suppression duration, and an aging duration. The aging duration can represent the time from when the terminal device 10 starts timing after exiting redirection suppression to when the terminal device 10 meets the suppression condition and needs to perform redirection suppression again. For example, if the aging duration is 10 minutes, it means that the terminal device 10 starts timing from when it exits redirection suppression to when the terminal device 10 meets the suppression condition again. In the embodiment of the present application, if the terminal device 10 exits the redirection suppression of the first suppression duration and meets the suppression condition again within the aging duration, the terminal device 10 is suppressed from redirection for the second suppression duration. In one embodiment of the present application, the second suppression duration can be greater than the first suppression duration. In other embodiments, it can be set according to actual conditions, and the embodiment of the present application does not limit this.

[0088] In an embodiment of the present application, the suppression conditions for each redirection suppression are the same. In other embodiments, the conditions for each redirection suppression may also be set to be different. Specifically, the suppression conditions for each redirection suppression may be preset or adjusted in advance in the suppression parameter table, and the present application does not limit this.

[0089] Step S502: connecting to a first network.

[0090] Step S503: Detect that redirection of the terminal device from the first network to the second network fails.

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

[0092] Step S505: record the redirection failure.

[0093] Step S506, obtaining application information of the foreground application of the terminal device.

[0094] Step S507, judging whether the foreground application corresponds to the preset suppression parameters according to the application information of the foreground application. If the foreground application corresponds to the preset suppression parameters, executing step S508; if the foreground application does not correspond to the preset suppression parameters, executing step S509. In one embodiment of the present application, the terminal device 10 can search for the preset suppression parameters according to the application information of the foreground application (for example, Figure 6 The terminal device 10 determines whether the foreground application corresponds to the preset suppression parameters. If it is determined that there is an application in the suppression parameters that is consistent with the name, application label, or application identifier of the foreground application, the terminal device 10 determines that the foreground application corresponds to the preset suppression parameters; if it is determined that there is no application in the suppression parameters that is consistent with the name, application label, or application identifier of the foreground application, the terminal device 10 determines that the foreground application does not correspond to the preset suppression parameters.

[0095] Step S508, determining the suppression condition corresponding to the application information of the foreground application and the first suppression duration and the second suppression duration.

[0096] Step S509, determining the suppression condition, the first suppression duration, and the second suppression duration of the general application.

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

[0098] Step S511: According to the first suppression duration, suppress the terminal device from being redirected from the first network to the second network.

[0099] Step S512: when the duration of suppressing the redirection of the terminal device from the first network to the second network reaches the first suppression duration, exit the redirection suppression of the terminal device.

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

[0101] Step S513, determining whether the redirection failure of the terminal device within the aging time reaches the suppression condition.

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

[0103] Step S514: According to the second suppression duration, suppress the terminal device from being redirected from the first network to the second network.

[0104] In one embodiment of the present application, the specific implementation content of step S514 can be referred to Figure 2 The specific implementation content of step S211 will not be described in detail here.

[0105] Step S515: when the duration of suppressing the redirection of the terminal device from the first network to the second network reaches the second suppression duration, exit the suppression of the redirection of the terminal device.

[0106] If the redirection failure of the terminal device 10 reaches the suppression condition again within the aging time after the terminal device 10 exits the redirection suppression, the terminal device 10 is subjected to redirection suppression for a second time for increasing the suppression strength of the redirection of the terminal device 10, thereby improving the stability of network communication.

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

[0108] For example, taking the terminal device 10 as a mobile phone, the first network 20 as an LTE network, and the second network as an SA network as an example, when the mobile phone runs a game application, the frequent redirection of the mobile phone from the LTE network to the SA network will cause the game application to freeze. In an embodiment of the present application, the mobile phone can first preset suppression parameters, and the suppression parameters include game applications, suppression conditions of game applications, first suppression duration, second suppression duration, and aging duration. After the mobile phone is connected to the LTE network, the mobile phone detects that the redirection of the mobile phone from the LTE network to the SA network has failed, and determines whether the redirection failure belongs to a preset type. If the redirection failure of the mobile phone belongs to a failure to access the network according to the searched network frequency, it is determined that the redirection failure of the mobile phone is a preset type. The mobile phone records the time when the redirection failure occurs and the number of redirection failures. The mobile phone obtains the application information of the foreground application of the mobile phone as the application information of the game application, searches for the preset suppression parameters according to the application information of the game application, and determines the suppression conditions, first suppression duration, second suppression duration, and aging duration of the game application. If it is detected that the number of redirection failures of the mobile phone reaches the suppression condition of "the number of redirection failures within 1 minute reaches 2 times", the mobile phone will suppress the mobile phone from redirecting from the LTE network to the SA network according to the first suppression time of 5 minutes. If the suppression time of the mobile phone from redirecting from the LTE network to the SA network reaches 5 minutes, the suppression of redirection of the mobile phone will be exited. If the redirection failure of the mobile phone reaches the suppression condition of "the number of redirection failures within 1 minute reaches 2 times" again within the aging time of the game application, it means that the SA network has serious access problems. The mobile phone will increase the intensity of redirection of the mobile phone according to the second suppression time of 60 minutes, so as to avoid the frequent redirection of the mobile phone from the LTE network to the SA network and avoid causing the game application to freeze. When the suppression time of the mobile phone from redirecting from the LTE network to the SA network reaches 60 minutes, the suppression of redirection of the mobile phone will be exited. Finally, the mobile phone continues to detect the redirection failure from the LTE network to the SA network, and repeats the above steps to determine whether the redirection failure of the mobile phone reaches the suppression condition of "the number of redirection failures within 1 minute reaches 2 times". If it reaches, the mobile phone is suppressed from redirecting according to the second suppression time.

[0109] refer to Figure 7As shown, it is a schematic diagram of the suppression parameter table in another embodiment of the present application. The suppression parameter table includes application, suppression condition, first suppression duration, second suppression duration, aging duration, ..., Nth suppression duration, and each application corresponds to a suppression condition, a first suppression duration, a second suppression duration, an aging duration, ..., Nth suppression duration. Wherein N is an integer greater than 2, and the first suppression duration, the second suppression duration, ..., Nth suppression duration increase successively. In the embodiment of the present application, the aging duration of each application may be the same or different. In the embodiment of the present application, if the terminal device 10 exits from the redirection suppression of the first suppression duration and meets the suppression condition again within the aging duration, the terminal device 10 is subjected to a second redirection suppression according to the second suppression duration. Similarly, if the terminal device 10 exits the redirection suppression of the second suppression duration and meets the suppression condition again within the aging duration, the terminal device 10 is suppressed from redirection for the third time according to the third suppression duration, and the above steps are repeated until the terminal device 10 is suppressed from redirection for the Nth suppression duration or until the terminal device 10 does not meet the suppression condition within the aging duration. If the terminal device 10 does not meet the suppression condition within the aging duration, the terminal device 10 returns to step S509. In one embodiment of the present application, after step S514 is executed, the suppression durations in steps S513 and S514 are updated, and steps S512-S514 are executed cyclically until the duration of suppressing the redirection of the terminal device 10 from the first network 20 to the second network 30 reaches the Nth suppression duration, the terminal device 10 repeatedly determines whether the redirection failure of the terminal device 10 meets the suppression condition, and if so, the terminal device 10 is repeatedly suppressed from redirection according to the Nth suppression duration.

[0110] refer to Figure 8 FIG. 2 is a flowchart of a redirection control method in an embodiment of the present 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 accesses the first network.

[0112] In one embodiment of the present application, the implementation content of step S801 is shown in FIG. Figure 2 The description of step S202 will not be repeated here.

[0113] Step S802: When the terminal device runs the first application, if it is detected that the number of failed redirection of the terminal device from the first network to the second network reaches a first threshold, the terminal device is suppressed from redirecting from the first network to the second network within a first suppression time.

[0114] In one embodiment of the present application, the specific implementation content of detecting that the redirection failure of the terminal device 10 from the first network 20 to the second network 30 is detected can be found in Figure 2 Description content of step S203.

[0115] In one embodiment of the present application, when the terminal device 10 runs the 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 based on the application information of the first application, and 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 the present application, after detecting that the redirection failure of the terminal device 10 from the first network 20 to the second network 30 has occurred, the method further includes: if it is determined that the redirection failure is of a preset type, recording the number of redirection failures; if it is determined that the redirection failure is not of a preset type, continuing to detect the redirection failure of the terminal device 10 from the first network 20 to the second network 30.

[0117] Step S803, when the terminal device runs the second application, if it is detected that the number of failed redirection of the terminal device from the first network to the second network reaches a second threshold, the terminal device is suppressed from redirecting from the first network to the second network within a second suppression time.

[0118] Among them, the sensitivity of the first application to delay is higher than the sensitivity of the second application to delay, the first suppression duration is greater than the second suppression duration, and the first threshold is the same as or different from the second threshold. In one embodiment of the present application, when the terminal device 10 runs the second application, it is determined that the foreground application of the terminal device 10 is 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, and 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 the present application, when the terminal device 10 runs the first application, the method also includes: if it is detected that the number of redirection failures of the terminal device 10 from the first network 20 to the second network 30 does not reach the first threshold, continue to detect new redirection failures of the terminal device 10 from the first network 20 to the second network 30; if it is determined that the new redirection failure is of a preset type, record the number of redirection failures; obtain 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, suppress the terminal device 10 from redirecting from the first network 20 to the second network 30 within a first suppression time.

[0120] In one embodiment of the present application, after obtaining the application information of the foreground application of the terminal device 10 to refresh the foreground application, the method also includes: if the foreground application is a second application, determining the suppression condition and the second suppression duration of the second application; judging 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 terminal device 10 from redirecting 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, and until the redirection failure of the terminal device 10 meets the suppression condition of the foreground application.

[0121] In the embodiment of the present application, when the terminal device 10 runs the first application, if it is detected that the number of redirection failures of the terminal device 10 reaches the first threshold, the terminal device 10 is inhibited from redirecting from the first network 20 to the second network 30 within the first inhibition time; when the terminal device runs the second application, if it is detected that the number of redirection failures of the terminal device 10 reaches the second threshold, the terminal device 10 is inhibited from redirecting from the first network 20 to the second network 30 within the second inhibition time. In this way, the embodiment of the present application can determine different inhibition conditions according to the type of application running on the terminal device 10, and inhibit the redirection failure of the terminal device 10 according to the inhibition conditions corresponding to the application, so as to avoid the terminal device 10 from frequently redirecting from the first network 20 to the second network 30 when running the application, thereby solving the problem of data service jamming caused by frequent network switching.

[0122] refer to Fig. 9 FIG. 1 is a flow chart of a redirection control method in an embodiment of the present application. The method comprises the following steps.

[0123] Step S901, preset suppression parameters.

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

[0125] Step S902: connecting to a first network.

[0126] Step S903: Detect that redirection of the terminal device from the first network to the second network fails.

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

[0128] Step S905: record the redirection failure.

[0129] In one embodiment of the present application, Fig. 9 Steps S901-S905 and Figure 2 For the implementation of steps S901-S905, please refer to Figure 2 The description of steps S201-S205 will not be repeated here.

[0130] Step S906: Look up the suppression parameter according to the type of redirection failure, and determine the suppression condition and suppression duration corresponding to the type of redirection failure.

[0131] In an embodiment of the present application, the terminal device 10 may search for preset suppression parameters according to the type of redirection failure of the terminal device 10, and determine the suppression condition and suppression duration corresponding to the type of redirection failure. The suppression parameters may be preset in a suppression parameter table. Fig.10 The suppression parameter table shown includes multiple types of redirection failures, suppression conditions and suppression durations corresponding to each type of redirection failure. For example, the suppression condition corresponding to the first type is "the number of redirection failures reaches 2 times in 1 minute", and the suppression duration corresponding to the first type is 10 minutes; the suppression condition corresponding to the second type is "the number of redirection failures reaches 3 times in 1 minute", and the suppression duration corresponding to the second type is 5 minutes. The first type is the failure of the terminal device 10 to search for the network frequency, and the second type is the failure of the terminal device 10 to access the network according to the searched network frequency.

[0132] Step S907, determining whether the redirection failure of the terminal device meets the suppression condition. If the redirection failure meets the suppression condition, executing step S908, otherwise if the redirection failure does not meet the suppression condition, re-execute step S903. In one embodiment of the present application, if the type of the redirection failure is the first type, determining 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, executing step S908.

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

[0134] Step S908: According to the suppression duration, suppress the terminal device from being redirected from the first network to the second network.

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

[0136] Step S909: when the duration of suppressing the redirection of the terminal device from the first network to the second network reaches the suppression duration, exit the redirection suppression of the terminal device.

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

[0138] If the redirection failure of the terminal device 10 reaches the suppression condition again within the aging time after the terminal device 10 exits the redirection suppression, the terminal device 10 is subjected to redirection suppression for another suppression time to increase the suppression strength of the redirection of the terminal device 10, thereby improving the stability of network communication.

[0139] refer to Fig.11 FIG. 1 is a flow chart of a redirection control method in an embodiment of the present application. The method comprises the following steps.

[0140] Step S1101, preset suppression parameters.

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

[0142] Step S1102: connecting to a first network.

[0143] Step S1103: Detect that redirection of the terminal device from the first network to the second network fails.

[0144] Step S1104, determining whether the redirection failure is a preset failure. In one embodiment of the present application, if it is determined that the redirection failure is a preset failure, step S1105 is executed, otherwise, if it is determined that the redirection failure is not a preset failure, step S1103 is executed.

[0145] Step S1105, record the redirection failure.

[0146] Step S1106, searching for suppression parameters according to the type of redirection failure, and determining the suppression condition corresponding to the type of redirection failure and the first suppression duration and the second suppression duration.

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

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

[0149] Step S1109: when the duration of suppressing the redirection of the terminal device from the first network to the second network reaches the first suppression duration, exit the redirection suppression of the terminal device.

[0150] For the specific implementation contents of steps S1101-S1109 in this embodiment, please refer to Fig. 9The description content of steps S901-S909.

[0151] Step S1110, determining whether the redirection failure of the terminal device within the aging time reaches a suppression condition.

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

[0153] Step S1111: Suppressing the redirection of the terminal device from the first network to the second network according to the second suppression time.

[0154] Step S1112: when the duration of suppressing the redirection of the terminal device from the first network to the second network reaches the second suppression duration, exiting the redirection suppression of the terminal device.

[0155] Step S1103 is executed after step S1112.

[0156] If the redirection failure of the terminal device 10 reaches the suppression condition again within the aging time after the terminal device 10 exits the redirection suppression, the terminal device 10 is subjected to redirection suppression for a second time for the suppression time, so as to increase the suppression strength of the redirection of the terminal device 10, thereby improving the stability of network communication. Figure 5 The description of steps S513-S515 will not be repeated here.

[0157] The following is an introduction to the terminal device 10 involved in the embodiment of the present application. Fig.12 , which is a schematic diagram of the hardware structure of the terminal device 10 in one embodiment of the present 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0159] Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0160] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 10. In other embodiments of the present application, the terminal device 10 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0161] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0162] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0163] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

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

[0165] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device 10. In other embodiments of the present application, the terminal device 10 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0166] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 10. While the charging management module 140 is charging the battery 142, it may also power the terminal device 10 through the power management module 141.

[0167] The power management module 141 is used to connect 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, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

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

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

[0170] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the terminal device 10. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0171] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

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

[0173] In some embodiments, the antenna 1 of the terminal device 10 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 10 can communicate with the network and other devices through 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 technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0174] The terminal device 10 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change 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 or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 10 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0176] The terminal device 10 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0177] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0178] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the terminal device 10 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0179] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the terminal device 10 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0180] Video codecs are used to compress or decompress digital videos. The terminal device 10 may support one or more video codecs. Thus, the terminal device 10 may play or record videos in a variety of coding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0181] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the terminal device 10 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

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

[0183] Random access memory may 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, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.; non-volatile memory may include disk storage devices and flash memory.

[0184] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage unit potential level; universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.

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

[0186] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .

[0187] The external memory interface 120 can be used to connect to an external non-volatile memory to expand 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 implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.

[0188] The internal memory 121 or the 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. When the multiple instructions are executed by the processor 110, the redirection control method in the above embodiment can be executed on the terminal device 10 to implement the redirection control of the terminal device 10.

[0189] The terminal device 10 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.

[0190] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0191] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The terminal device 10 can listen to music or listen to a hands-free call through the speaker 170A.

[0192] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the terminal device 10 receives a call or voice message, the voice can be received by placing the receiver 170B close to the ear.

[0193] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The terminal device 10 can be provided with at least one microphone 170C. In other embodiments, the terminal device 10 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the terminal device 10 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.

[0194] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0195] Of course, the electronic device may further include one or more components such as a button 190 , a motor 191 , an indicator 192 , and a SIM card interface 195 , and the embodiment of the present application does not impose any limitation on this.

[0196] This embodiment also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on the terminal device 10, the terminal device 10 executes the above-mentioned related method steps to implement the redirection control method in the above-mentioned embodiment.

[0197] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the redirection control method in the above-mentioned embodiment.

[0198] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes the redirection control method in the above-mentioned method embodiments.

[0199] Among them, the terminal device 10, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

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

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

[0202] The above implementation modes are only used to illustrate the technical solutions of the present application and are not intended to limit the present application. Although the present application has been described in detail with reference to the above preferred implementation modes, a person skilled in the art should understand that the technical solutions of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. A redirection control method, applied to a terminal device, characterized in that: The terminal device includes a suppression parameter, the suppression parameter includes a correspondence between different application information, suppression conditions, and suppression durations, the suppression condition includes a threshold of the number of redirection failures of the terminal device, and the method includes: Accessing the first network; When the terminal device runs the first application, if it is detected that the number of times that the terminal device is redirected from the first network to the second network fails reaches a first threshold, suppressing the terminal device from being redirected from the first network to the second network within a first suppression time length; When the terminal device runs the second application, if it is detected that the number of times the terminal device is redirected from the first network to the second network fails reaches a second threshold, suppressing the terminal device from being redirected from the first network to the second network within a second suppression time period; The first application is more sensitive to delay than the second application, the first suppression time length is greater than the second suppression time length, and the first threshold is the same as or different from the second threshold.

2. The redirection control method according to claim 1, characterized in that: If it is detected that 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, continue to detect a redirection failure of the terminal device from the first network to the second network.

3. The redirection control method according to claim 1, characterized in that: When the terminal device runs the first application, the method further includes: Determining that the foreground application of the terminal device is the first application, and determining a suppression condition and the first suppression duration of the first application according to 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 the first threshold; When the terminal device runs the second application, the method further includes: Determine that the foreground application of the terminal device is the second application, and determine the suppression condition and the 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 the second threshold.

4. The redirection control method according to claim 3, characterized in that: The determining the suppression condition and the first suppression duration of the first application according to the application information of the first application includes: querying the suppression parameter according to the application information of the first application, and determining the suppression condition of the first application and the first suppression duration; The determining the suppression condition and the second suppression duration of the second application according to the application information of the second application includes: The suppression parameter is queried according to the application information of the second application to determine the suppression condition of the second application and the second suppression duration.

5. The redirection control method according to claim 1, characterized in that: The method further comprises: If it is detected that the number of redirection failures of the terminal device from the first network to the second network does not reach the first threshold, continue 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, the number of redirection failures is recorded; Acquire application information of a 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 time period.

6. The redirection control method according to 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, determining a suppression condition and a 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 the second threshold; Determining whether the redirection failure of the terminal device meets the suppression condition of the second application; If the redirection failure of the terminal device reaches 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 time period; If the redirection failure of the terminal device does not meet the suppression condition of the second application, continue to detect a new redirection failure of the terminal device from the first network to the second network.

7. The redirection control method according to claim 1, characterized in that: The step of suppressing the redirection of the terminal device from the first network to the second network within the first suppression time period includes: Disabling the function of the terminal device accessing the second network within the first suppression time period; The step of suppressing the redirection of the terminal device from the first network to the second network within the second suppression time period includes: The function of the terminal device accessing the second network is disabled within the second suppression time period.

8. The redirection control method according to claim 1, characterized in that: The step of suppressing the redirection of the terminal device from the first network to the second network within the first suppression time period includes: lowering the priority of accessing the second network within the first suppression time period 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 within the second suppression time period includes: The priority of accessing the second network is lowered within the second suppression time period, so that the priority of accessing the first network is higher than the priority of accessing the second network.

9. The redirection control method according to claim 1, characterized in that: The method further comprises: When the terminal device runs the first application, if the duration for suppressing the redirection of the terminal device from the first network to the second network reaches the first suppression duration, exiting the redirection suppression of the terminal device; When the terminal device runs the second application, if the duration for suppressing the terminal device from being redirected from the first network to the second network reaches the second suppression duration, the redirection suppression of the terminal device is exited.

10. The redirection control method according to 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 it is detected within the first aging time that the number of failed redirection of the terminal device from the first network to the second network reaches the first threshold, according to the third suppression time, suppressing the terminal device from being redirected from the first network to the second network; When the duration of suppressing the redirection of the terminal device from the first network to the second network reaches the third suppression duration, exiting the redirection suppression of the terminal device; When the terminal device runs the second application, If it is detected within the second aging time that the number of failed redirection of the terminal device from the first network to the second network reaches a second threshold, according to a fourth suppression time, suppressing the terminal device from being redirected from the first network to the second network; When the duration of suppressing the redirection of the terminal device from the first network to the second network reaches the fourth suppression duration, exiting the redirection suppression of the terminal device; The third inhibition time length is greater than the first inhibition time length, and the fourth inhibition time length is greater than the second inhibition time length.

11. The redirection control method according to claim 9, characterized in that: The exiting from the redirection suppression of the terminal device comprises: Restoring the function of the terminal device accessing the second network; or, The priority of accessing the second network is increased so that the priority of accessing the second network is higher than the priority of accessing the first network.

12. The redirection control method according to claim 9, characterized in that: After exiting the redirection suppression of the terminal device, the method further includes: Clears the number of redirect failures that were logged.

13. A terminal device, characterized in that: It 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 used to read the program instructions stored in the memory to implement the redirection control method according to any one of claims 1 to 12.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program instructions, and when the program instructions are executed on the electronic device, the electronic device executes the redirection control method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Method and system for optimizing inter-operation of 3G network and 4G network

    CN104581855A

  • Network access method and device, terminal equipment and storage medium

    CN113613294A

  • Saccadic redirection for virtual reality locomotion

    US20190012824A1

  • Automated selection of ddos countermeasures using statistical analysis

    US20220078205A1

  • Communication system for improving phone call success rate under sa network and user equipment

    WO2022252725A1