Network exception processing method and device, storage medium and program product
By configuring specific network exception detection and optimization parameters for the application, high accuracy identification and processing of network exceptions is achieved, and the problem of low accuracy of network exception recognition in the prior art is solved, which improves user experience and network stability.
Patent Information
- Application Number
- CN202510505875.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-22
- Publication Date
- 2025-06-13
AI Technical Summary
In the prior art, the accuracy of network abnormality recognition is low, resulting in users often encountering problems such as call interruption, unclear sound quality, slow web page loading, and large game delays in complex network environments.
By configuring configuration parameters related to network exception detection for different applications or application activities, using these parameters to perform network exception detection, and perform optimization processing such as cell changes or network standard changes based on configuration parameters related to network optimization when an exception is detected.
It improves the accuracy of network exception recognition, enhances the optimization processing capability in network exception situations, thereby improving user experience and reducing service interruptions and delays caused by network exceptions.
Smart Images

Figure CN120151901A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technologies, and particularly relates to a method, device, storage medium, and program product for handling network anomalies. Background Art
[0002] With the accelerating construction and upgrading of networks, base stations under different network systems not only have problems in network layout and compatibility themselves, but also have problems in network layout and compatibility when jointly networking with other base stations.
[0003] In an increasingly complex network environment for mobile devices, users are more likely to encounter communication anomalies during daily use. For example, in a business district, airport, station with a large flow of people, or a remote mountain village, there may be anomalies such as frequent call establishment failures, unclear call voice quality, stuttering and disconnection when browsing web pages, watching live broadcasts, browsing short videos, and high game latency due to network anomalies.
[0004] Currently, most methods for identifying network anomalies are implemented at the application layer or framework layer, but the accuracy of network anomaly identification is not high. Summary of the Invention
[0005] The objective of the embodiments of this application is to provide a method, device, storage medium, and program product for handling network anomalies, which can solve the problem of low accuracy in existing network anomaly identification.
[0006] In a first aspect, the embodiments of this application provide a method for handling network anomalies, which is applied to an electronic device. The method includes:
[0007] Obtain first configuration information corresponding to a first object, where the first object includes a first application or a first application activity, the first configuration information includes a first configuration parameter and a second configuration parameter, the first configuration parameter is used to detect whether the network of the first object is abnormal, and the second configuration parameter is a network optimization parameter when the network of the first object is abnormal;
[0008] In the case where it is detected according to the first configuration parameter that the network of the first object is abnormal, perform target processing according to the second parameter configuration; where the target processing includes at least one of the following: cell change; network system change.
[0009] In a second aspect, the embodiments of this application provide an electronic device, including:
[0010] A baseband chip is used to obtain first configuration information corresponding to a first object. The first object includes a first application or a first application activity. The first configuration information includes a first configuration parameter and a second configuration parameter. The first configuration parameter is used to detect whether there is an abnormality in the network of the first object, and the second configuration parameter is a network optimization parameter when there is an abnormality in the network of the first object.
[0011] When it is detected according to the first configuration parameter that there is a network abnormality in the first object, target processing is performed according to the second configuration parameter. Among them, the target processing includes at least one of the following: cell change; network mode change.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the method for processing network abnormality described in the first aspect are implemented.
[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method for processing network abnormality described in the first aspect are implemented.
[0014] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method for processing network abnormality described in the first aspect.
[0015] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method for processing network abnormality described in the first aspect.
[0016] In the embodiment of the present application, based on the configuration parameters related to network abnormality detection configured for different applications or application activities, network abnormality detection is performed using the configuration parameters, which can improve the accuracy of network abnormality recognition; and when a network abnormality is detected, corresponding optimization processing is performed based on the configuration parameters related to network optimization, so as to improve the success rate of getting out of the network abnormality. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a schematic flowchart of the method for processing network abnormality provided by the embodiment of the present application;
[0018] Figure 2 is a schematic flowchart of the distribution process of parameter configuration for abnormality detection and processing provided by the embodiment of the present application;
[0019] Figure 3 It is a schematic diagram of the parameter distribution process corresponding to different switch combinations provided by an embodiment of the present application;
[0020] Figure 4 It is one of the schematic diagrams of the update process of parameter configuration for anomaly detection and handling provided by an embodiment of the present application;
[0021] Figure 5 It is the second of the schematic diagrams of the update process of parameter configuration for anomaly detection and handling provided by an embodiment of the present application;
[0022] Figure 6 It is a schematic diagram of the shutdown process of parameter configuration for anomaly detection and handling provided by an embodiment of the present application;
[0023] Figure 7 It is a schematic diagram of the process of anomaly detection and handling provided by an embodiment of the present application;
[0024] Figure 8 It is a schematic diagram of the modules of an electronic device provided by an embodiment of the present application;
[0025] Figure 9 It is one of the schematic diagrams of the hardware structure of an electronic device provided by an embodiment of the present application;
[0026] Figure 10 It is the second of the schematic diagrams of the hardware structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0027] Next, the technical solutions in the embodiments of the present application will be clearly described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0028] The terms "first", "second", etc. in the specification of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification means at least one of the connected objects, and the character " / ", generally represents an "or" relationship between the associated objects before and after.
[0029] Currently, most of the methods for identifying network anomalies are implemented at the application layer or the framework layer, but the efficiency and accuracy of network anomaly identification are both low.
[0030] When a user browses short videos using a certain application, if the wireless network signal is poor, the video browsing will be slow to load or freeze. After the application layer recognizes the anomaly, it can perform the action of banning the cell (preventing the terminal from camping on the cell where the anomaly occurs). If the application layer fails to recognize that it is a network anomaly, it cannot perform a quick data recovery action for this anomaly scenario, but can only recognize it after a period of time when the problem occurs, and the recovery action will be relatively slow.
[0031] If the underlying layer (such as the modem of the baseband chip) implements anomaly detection and recognizes a network anomaly, it can attempt to switch or reselect to other cells, thereby improving the user experience (such as the video browsing experience), that is, enabling the user to escape from the abnormal cell without awareness. However, although the underlying layer can implement anomaly detection, it cannot distinguish the service types of the application layer. For example, browsing the web using a browser, watching short videos using an application, watching a live broadcast, or browsing products for shopping are only known to the application layer, and the underlying layer cannot accurately identify network anomaly scenarios.
[0032] To solve the above technical problems, the present application provides a method, device, storage medium, and program product for handling network anomalies. Among them, the method and the device are based on the same inventive concept. Since the principles of the method and the device for solving problems are similar, the implementation of the device and the method can be referred to each other, and the repeated parts will not be elaborated.
[0033] The following will, with reference to the accompanying drawings, elaborate in detail on the method for handling network anomalies provided by the embodiments of the present application through specific embodiments and their application scenarios.
[0034] As Figure 1 shown, it is a schematic flowchart of the method for handling network anomalies provided by the embodiments of the present application. The method specifically includes:
[0035] Step 101, obtain first configuration information corresponding to a first object, where the first object includes a first application or a first application activity, the first configuration information includes a first configuration parameter and a second configuration parameter, the first configuration parameter is used to detect whether the network of the first object has an anomaly, and the second configuration parameter is a network optimization parameter when the network of the first object has an anomaly;
[0036] It should be understood that an application includes multiple application activities (Activity), and an application activity can correspond to one or more application pages, and each application activity carries a corresponding application function. For example, for the same application A, web browsing, short video playing, live streaming upload, etc. all belong to the application activities of the application A.
[0037] Among them, the configuration parameters for detecting whether the network of the application / application activity is abnormal, that is, the first configuration parameters include set parameters or set parameter conditions. For example, the set parameters may include abnormal detection time, bearer type (data bearer, voice bearer), network mode, uplink packet data convergence protocol (PDCP) layer packet loss rate, downlink PDCP layer packet loss rate, serving cell signal strength, serving cell signal-to-noise ratio, neighbor cell signal strength, neighbor cell signal-to-noise ratio, uplink transmit power margin, uplink bit error rate, downlink bit error rate, uplink rate, downlink rate, uplink data volume to be sent, etc. The set parameter conditions may include, but are not limited to: the current value of the uplink PDCP packet loss rate is greater than or equal to the set condition value, and the corresponding network abnormal scenario is uplink congestion, or, the current value of the uplink authorization is greater than or equal to the set condition value, and the current value of the uplink data to be sent is greater than or equal to the set condition value, and the corresponding network abnormal scenario is uplink congestion, or, the current value of the uplink rate is greater than or equal to the set condition value, and the current value of the uplink data to be sent is greater than or equal to the set condition value, and the corresponding network abnormal scenario is uplink congestion; the current value of the downlink PDCP packet loss rate is greater than or equal to the set condition value, and the corresponding network abnormal scenario is downlink congestion, or, the current value of the uplink rate is greater than or equal to the set condition value, and the current value of the downlink rate is greater than or equal to the set condition value, and the corresponding network abnormal scenario is downlink congestion; the current value of the uplink bit error rate is greater than or equal to the set condition value, and the current value of the uplink scheduling frequency is greater than or equal to the set condition value, and the corresponding network abnormal scenario is high bit error, or, the current value of the downlink bit error rate is greater than or equal to the set condition value, and the current value of the downlink scheduling frequency is greater than or equal to the set condition value, and the corresponding network abnormal scenario is high bit error; the current value of the serving cell signal strength is less than the set condition value, and the current value of the serving cell signal-to-noise ratio is less than the set condition value, and the current value of the power margin is less than the set condition value, and the current value of the uplink bit error rate is greater than or equal to the set condition value, and the corresponding network abnormal scenario is high interference, or, the current value of the serving cell signal strength is less than the set condition value, and the current value of the serving cell signal-to-noise ratio is less than the set condition value, and the current value of the power margin is less than the set condition value, and the current value of the downlink bit error rate is greater than or equal to the set condition value, and the corresponding network abnormal scenario is high interference.
[0038] The network optimization parameters when the network of the application / application activity is abnormal, that is, the second configuration parameters may include parameters corresponding to the set processing strategies or optimization actions corresponding to the processing strategies. For example, the parameters corresponding to the set processing strategies may include the time of prohibiting cells during handover and redirection, the time of prohibiting cells during reconstruction, etc. The optimization actions corresponding to the set processing strategies may include only allowing handover and redirection, only allowing reconstruction, allowing handover, redirection and reconstruction, allowing network mode switching, etc.
[0039] Step 102, when it is detected according to the first configuration parameter that the network of the first object is abnormal, perform target processing according to the second configuration parameter; wherein, the target processing includes at least one of the following: cell change; network mode change.
[0040] As can be seen from step 101, according to the first configuration parameter, network abnormality detection is performed on the first object. If network abnormality is detected, the corresponding network abnormality scenario can also be determined. This can improve the accuracy of network abnormality recognition. Specifically, the parameters or conditions set in the first configuration parameter can be used to perform network abnormality detection on the first object.
[0041] It should be noted that there is an associated relationship between the network abnormality scenario and the processing strategy. For example, the processing strategy associated with uplink congestion is cell change, and the corresponding processing strategy for downlink congestion is cell change, etc.
[0042] Performing the target processing according to the second configuration parameter can specifically be:
[0043] Perform the target processing according to the optimization actions corresponding to the processing strategy set in the second configuration parameter. For example, cell change is achieved through handover, cell change is achieved through redirection, or cell change is achieved through reconstruction, etc.
[0044] The method for processing network abnormality in the embodiment of the present invention, based on the configuration parameters related to network abnormality detection configured for different applications or application activities, uses the configuration parameters to perform network abnormality detection, which can improve the accuracy of network abnormality recognition; and when network abnormality is detected, corresponding optimization processing is performed based on the configuration parameters related to network optimization, thereby being able to improve the success rate of getting out of network abnormality.
[0045] In some embodiments, the above step 101, obtaining the first configuration information corresponding to the first object, includes:
[0046] When the framework layer of the electronic device recognizes that the first object enters the foreground or establishes a call, the baseband chip of the electronic device receives the first configuration information sent by the framework layer.
[0047] Here, the framework layer inside the electronic device issues the configuration information of the application / application activity.
[0048] Specifically, the framework layer can configure different configuration information for applications of different service types. For example, four types of whitelist applications, namely video applications, social applications, game applications, and general applications, can be configured. Since the characteristics of each type of application are different and the requirements for data transmission over the network are also different, different configuration information can be configured for applications of different service types. This can improve the accuracy of network abnormality recognition.
[0049] The framework layer can also configure different configuration information for different types of application activities. For example, for the same application, such as browsing the web, watching short videos, and live streaming upstream, the requirements for uplink and downlink rates are different, and there are differences in detection metrics such as scheduling resources, rate, and cached data volume. Therefore, differential configuration can be performed according to the type of application activity, which can improve the accuracy of network anomaly recognition.
[0050] Among them, when the first object enters the foreground or establishes a call, it indicates that an event related to the first object is currently being executed. Therefore, the framework layer needs to send parameter configuration (i.e., the first configuration information) for anomaly detection and handling (referring to the optimization handling when an anomaly occurs).
[0051] Here, a case-by-case description is given based on whether the first object is a data-bearing object or a voice-bearing object. When the first object is a data-bearing object, if the framework layer recognizes that the first object enters the foreground, the framework layer sends the first configuration information to the underlying layer (such as the baseband chip), and the baseband chip receives the first configuration information sent by the framework layer. When the first object is a voice-bearing object, if the framework layer recognizes that the first object establishes a call, the framework layer sends the first configuration information to the underlying layer (such as the baseband chip), and the baseband chip receives the first configuration information sent by the framework layer.
[0052] It should be noted that the framework layer has a parameter configuration function for anomaly detection and handling, and this function can be enabled or disabled by the framework layer. Specifically, the parameter configuration function for anomaly detection and handling can include the parameter configuration function for anomaly detection and handling related to data bearing, and the parameter configuration function for anomaly detection and handling related to voice bearing.
[0053] Specifically, when the framework layer recognizes that the first object enters the foreground or establishes a call, and determines that the parameter configuration function for anomaly detection and handling is enabled, the baseband chip receives the first configuration information sent by the framework layer.
[0054] Next, an example is used to illustrate the sending of configuration parameters for anomaly detection and handling.
[0055] Example 1
[0056] Only the data card enables the parameter configuration function for anomaly detection and handling related to data bearing. When the same application is in the foreground and the data service is closed, the parameter configuration function for anomaly detection and handling related to data bearing is closed. After the data service is enabled and it is determined that the application is in the foreground, the framework layer sends the configuration parameters corresponding to the application for anomaly detection and handling.
[0057] Among them, after the data card is switched, the configuration parameters related to the exception detection and handling of the data bearer need to be redownloaded. Examples are as follows:
[0058] Subscriber Identity Module (SIM) 1 Data + SIM 2, which means that SIM 1 is used as the data card, and the configuration parameters related to the exception detection and handling of the data bearer are downloaded for SIM 1, while the configuration parameters related to the exception detection and handling of the data bearer for SIM 2 are deactivated; after the data is switched: SIM 1 + SIM 2 Data, then the configuration parameters related to the exception detection and handling of the data bearer are downloaded for SIM 2, and the configuration parameters related to the exception detection and handling of the data bearer for SIM 1 are deactivated.
[0059] In addition, when a call is established, the configuration parameters related to the exception detection and handling of the voice bearer are enabled, and the configuration parameters related to the exception detection and handling of the data bearer are deactivated; when the call ends, the configuration parameters related to the exception detection and handling of the data bearer are enabled, and the configuration parameters related to the exception detection and handling of the voice bearer are deactivated.
[0060] Example 2
[0061] See Figure 2 , which describes the process of downloading the configuration parameters for exception detection and handling.
[0062] Step 201, the application enters the foreground;
[0063] Step 202, the framework layer recognizes that the application has entered the foreground and sends a first request to the modem. This first request carries the configuration parameters for exception detection and handling;
[0064] Step 203, the modem sends a first response to the framework layer.
[0065] Here, the first response is used to feedback the result. For example, the modem successfully receives the first request.
[0066] Example 3
[0067] The framework layer can configure three switches. One is the total switch for whether to enable the parameter configuration function for exception detection and handling. One is the first switch for whether to enable the parameter configuration function for exception detection and handling related to the data bearer. One is the second switch for whether to enable the parameter configuration function for exception detection and handling related to the voice bearer.
[0068] See Figure 3 , which describes the parameter download process corresponding to different switch combinations.
[0069] Step 301, open the data bearer application or the voice bearer application;
[0070] Step 302, the terminal determines the states of the three switches configured in the framework layer;
[0071] Step 303, in Case 1, only the parameter configuration function for anomaly detection and handling related to data bearer is enabled;
[0072] Step 304, determine whether the data is enabled;
[0073] If yes, execute Step 305; if no, execute Step 307.
[0074] Step 305, the framework layer sends down the configuration parameters for anomaly detection and handling related to data bearer;
[0075] Step 306, the modem enables the configuration parameters for anomaly detection and handling related to data bearer;
[0076] Step 307, determine whether the configuration parameters for anomaly detection and handling related to data bearer or the configuration parameters for anomaly detection and handling related to voice bearer are enabled;
[0077] If yes, execute Step 308.
[0078] Step 308, deactivate the enabled configuration parameters;
[0079] Step 309, in Case 2, only the parameter configuration function for anomaly detection and handling related to voice bearer is enabled;
[0080] Step 310, determine whether a call is established;
[0081] If yes, execute Step 311; if no, execute Step 307.
[0082] Step 311, the framework layer sends down the configuration parameters for anomaly detection and handling related to voice bearer;
[0083] Step 312, the modem enables the configuration parameters for anomaly detection and handling related to voice bearer;
[0084] Step 313, in Case 3, the parameter configuration function for anomaly detection and handling related to both data bearer and voice bearer is enabled;
[0085] Step 314, determine whether the data is enabled or a call is established;
[0086] If yes, execute Step 315; if no, execute Step 307.
[0087] Step 315, the framework layer sends down the configuration parameters for anomaly detection and handling related to data bearer or the configuration parameters for anomaly detection and handling related to voice bearer;
[0088] Step 316, the modem enables configuration parameters related to abnormal detection and handling for the data bearer or configuration parameters related to abnormal detection and handling for the voice bearer;
[0089] Step 317, in case 4, the main switch is turned off;
[0090] Step 318, the modem deactivates the enabled configuration parameters.
[0091] In some embodiments, the method of the present application further includes:
[0092] In the case of an object switch, obtain second configuration information corresponding to the switched second object, where the second object includes a second application or a second application activity, and the second configuration information includes a third configuration parameter and a fourth configuration parameter, the third configuration parameter is used to detect whether an abnormality occurs in the network of the second object, and the fourth configuration parameter is a network optimization parameter when an abnormality occurs in the network of the second object;
[0093] Enable the second configuration information corresponding to the switched second object, and deactivate the first configuration information corresponding to the first object.
[0094] As an optional embodiment, in the case of an object switch, obtaining the second configuration information corresponding to the switched second object may include:
[0095] When the framework layer of the electronic device recognizes that the first object in the foreground switches to the second object, the baseband chip of the electronic device receives the second configuration information corresponding to the second object sent by the framework layer;
[0096] That is, when the framework layer recognizes that the object in the foreground has switched, it issues the configuration parameters of the switched object (i.e., the second configuration information corresponding to the second object), and the baseband chip receives the second configuration information sent by the framework layer.
[0097] Optionally, the second object is of a different type or has a different service scenario from the first object.
[0098] Correspondingly, enabling the second configuration information corresponding to the switched second object and deactivating the first configuration information corresponding to the first object includes:
[0099] The baseband chip of the electronic device enables the second configuration information corresponding to the switched second object and deactivates the first configuration information corresponding to the first object.
[0100] It should be noted that different objects have different requirements for data transmission over the network. Therefore, when the object is switched, the configuration information corresponding to the switched object should be enabled in a timely manner, and the configuration information corresponding to the previous object should be disabled, which can improve the real-time accuracy of network anomaly recognition.
[0101] The following uses an example to illustrate the switching of configuration parameters for anomaly detection and handling.
[0102] Example 4
[0103] See Figure 4 to illustrate one of the switching processes of the configuration parameters for anomaly detection and handling.
[0104] Step 401, switch the application;
[0105] Step 402, the framework layer recognizes the application switch in the foreground and sends a configuration parameter switch request to the modem. The configuration parameter switch request carries the configuration parameters for anomaly detection and handling corresponding to the switched application;
[0106] Step 403, the modem sends a configuration parameter switch response to the framework layer.
[0107] Here, the configuration parameter switch response is used to feedback the result, such as the modem completing the switching of the configuration parameters.
[0108] Example 5
[0109] For the scenario of enabling the parameter configuration function for anomaly detection and handling related to data bearer, data bearer applications can be divided into several categories, such as game category, short video category, web page category, live broadcast category or general category. For different application categories or different business scenarios, the framework layer issues different configuration parameters. If the application or business scenario is switched, the corresponding configuration parameters are also switched in real time.
[0110] See Figure 5 to illustrate another switching process of the configuration parameters for anomaly detection and handling.
[0111] Step 501, the foreground application / application activity is switched;
[0112] Step 502, the terminal determines whether the total switch configured by the framework layer is turned on and whether the parameter configuration function for anomaly detection and handling related to data bearer is turned on;
[0113] If yes, execute step 503; if no, execute step 511.
[0114] Step 503, determine whether the foreground application / application activity is in the whitelist;
[0115] If so, execute step 504; if not, execute step 512.
[0116] Step 504: Determine whether the configuration parameters to be sent this time are the same as those sent last time.
[0117] If so, execute step 511; if not, execute step 505.
[0118] It should be noted that if the type of the application / application activity after this switch is the same as that before the switch, the configuration parameters to be sent this time are the same as those sent last time. If the type of the application / application activity after this switch is different from that before the switch, the configuration parameters to be sent this time are different from those sent last time.
[0119] In one example, if the configuration parameters are distinguished according to the application type (that is, different application types have different configuration parameters), it can be:
[0120] The first category is social applications, such as [WeChat] and [QQ].
[0121] The second category is short video applications, such as [Douyin], [Kwai], and [Xiaohongshu].
[0122] The third category is game applications, such as [Honor of Kings] and [Peace Elite].
[0123] The fourth category is general applications, and all other applications share a set of common parameters.
[0124] If the configuration parameters are distinguished according to the application activity type (that is, different application activity types have different configuration parameters), it can be:
[0125] The first category is chat Activity, such as [WeChat] chat Activity and [QQ] chat Activity.
[0126] The second category is video Activity, including [Douyin] short video Activity, [Kwai] short video Activity, [Xiaohongshu] short video Activity, and [Toutiao] Activity.
[0127] The third category is live broadcast Activity, such as [Douyin] live broadcast Activity, [Kwai] live broadcast Activity, and [Tencent Video] live broadcast Activity.
[0128] The fourth category is game Activity, such as [Honor of Kings] Activity and [Peace Elite] Activity.
[0129] The fifth category is web page Activity, such as [browser] Activity, [WeChat] official account Activity, and [Tencent News] Activity.
[0130] Step 505, determine whether the foreground application / application activity is of the first type;
[0131] If not, execute Step 506; if so, execute Step 509.
[0132] Step 506, determine whether the foreground application / application activity is of the second type;
[0133] If not, execute Step 507; if so, execute Step 509.
[0134] Step 507, determine whether the foreground application / application activity is of the third type;
[0135] If not, execute Step 508; if so, execute Step 509.
[0136] Step 508, determine whether the foreground application / application activity is of the fourth type;
[0137] If so, execute Step 509;
[0138] Step 509, the framework layer issues the configuration parameters of the corresponding type;
[0139] Step 510, the modem enables the configuration parameters issued by the framework layer;
[0140] Step 511, the framework layer cancels the issuance of the current configuration parameters;
[0141] Step 512, determine whether the last issued one is the shutdown function;
[0142] If so, end; if not, execute Step 513 to issue the parameters of the shutdown function. Then, the modem enables the parameters of the shutdown function.
[0143] In some embodiments, the method of the present application further includes:
[0144] In the case where the first object is a data bearer object, if the first condition is satisfied, the first configuration information is deactivated; wherein, the first condition includes any one of the following: the first object enters the background; the data service is turned off; a call is established;
[0145] In the case where the first object is a voice bearer object, if the call ends, the first configuration information is deactivated.
[0146] As an optional embodiment, deactivating the first configuration information may include:
[0147] When the framework layer of the electronic device recognizes that the first object enters the background, closes the data service, establishes a call, or the call ends, the baseband chip of the electronic device deactivates the first configuration information in response to the deactivation request sent by the framework layer.
[0148] Specifically, the first object is a data-bearing object. When the framework layer recognizes that the first object enters the background, closes the data service, or establishes a call, the baseband chip deactivates the first configuration information in response to the deactivation request sent by the framework layer.
[0149] The first object entering the background, closing the data service, or establishing a call indicates that the first object temporarily does not need data transmission.
[0150] The first object is a voice-bearing object. When the framework layer recognizes that the call of the first object ends, it indicates that the first object temporarily does not need voice service, and the baseband chip deactivates the first configuration information in response to the deactivation request sent by the framework layer.
[0151] In the case of not needing data transmission or voice service, deactivating the corresponding configuration parameters can reduce the processing power consumption of the modem and achieve the effect of energy saving.
[0152] The following uses an example to illustrate the deactivation of the configuration parameters for anomaly detection and handling.
[0153] Example Six
[0154] See Figure 6 to illustrate the deactivation process of the configuration parameters for anomaly detection and handling.
[0155] Step 601, the application enters the background / closes the data service / communication is established;
[0156] Step 602, the framework layer recognizes that the application enters the background / closes the data service / communication is established, and sends a configuration parameter deactivation request to the modem;
[0157] Step 603, the modem sends a configuration parameter deactivation response to the framework layer.
[0158] In some embodiments, after step 101, the method of the present application further includes:
[0159] Performing network anomaly detection on the first object according to the first parameter configuration.
[0160] Further, performing network anomaly detection on the first object according to the first parameter configuration may include:
[0161] Obtaining a plurality of parameter values according to the parameters set in the first parameter configuration;
[0162] Here, network measurements are performed according to the parameters set in the first parameter configuration to obtain a measurement report. Among them, the measurement report includes multiple parameter values corresponding to the set parameters.
[0163] For example, the set parameters may include anomaly detection time, bearer type (data bearer, voice bearer), network mode, uplink PDCP layer packet loss rate, downlink PDCP layer packet loss rate, serving cell signal strength, serving cell signal-to-noise ratio, neighboring cell signal strength, neighboring cell signal-to-noise ratio, uplink transmit power margin, uplink bit error rate, downlink bit error rate, uplink rate, downlink rate, uplink data volume to be sent, etc.
[0164] According to the parameter conditions set in the first parameter configuration, determine whether there is a target parameter value among the multiple parameter values that meets the parameter conditions;
[0165] Here, the set parameter conditions may include but are not limited to: the current value of the uplink PDCP packet loss rate is greater than or equal to the set condition value, and the corresponding network anomaly scenario is uplink congestion, or the current value of the uplink grant is greater than or equal to the set condition value, and the current value of the uplink data to be sent is greater than or equal to the set condition value, and the corresponding network anomaly scenario is uplink congestion, or the current value of the uplink rate is greater than or equal to the set condition value, and the current value of the uplink data to be sent is greater than or equal to the set condition value, and the corresponding network anomaly scenario is uplink congestion; the current value of the downlink PDCP packet loss rate is greater than or equal to the set condition value, and the corresponding network anomaly scenario is downlink congestion, or the current value of the uplink rate is greater than or equal to the set condition value, and the current value of the downlink rate is greater than or equal to the set condition value, and the corresponding network anomaly scenario is downlink congestion; the current value of the uplink bit error rate is greater than or equal to the set condition value, and the current value of the uplink scheduling frequency is greater than or equal to the set condition value, and the corresponding network anomaly scenario is high bit error, or the current value of the downlink bit error rate is greater than or equal to the set condition value, and the current value of the downlink scheduling frequency is greater than or equal to the set condition value, and the corresponding network anomaly scenario is high bit error; the current value of the serving cell signal strength is less than the set condition value, and the current value of the serving cell signal-to-noise ratio is less than the set condition value, and the current value of the power margin is less than the set condition value, and the current value of the uplink bit error rate is greater than or equal to the set condition value, and the corresponding network anomaly scenario is high interference, or the current value of the serving cell signal strength is less than the set condition value, and the current value of the serving cell signal-to-noise ratio is less than the set condition value, and the current value of the power margin is less than the set condition value, and the current value of the downlink bit error rate is greater than or equal to the set condition value, and the corresponding network anomaly scenario is high interference.
[0166] If not, determine that there is no network anomaly;
[0167] If there is, determine that there is a network anomaly.
[0168] In some embodiments, the method of the present application further includes:
[0169] In the case where a network anomaly of the first object is detected according to the first configuration parameter, determine a network anomaly scenario according to the detected anomaly parameter value;
[0170] Correspondingly, in step 102, performing target processing according to the second configuration parameter includes:
[0171] Obtain a target configuration parameter in the second configuration parameter that matches the network anomaly scenario;
[0172] Perform target processing according to the target configuration parameter.
[0173] For example, the anomaly parameter values for determining the existence of a network anomaly include the serving cell signal strength, the serving cell signal-to-noise ratio, the power headroom, and the downlink bit error rate; and, the current value of the serving cell signal strength is less than the set condition value, and the current value of the serving cell signal-to-noise ratio is less than the set condition value, and the current value of the power headroom is less than the set condition value, and the current value of the downlink bit error rate is greater than or equal to the set condition value, and the corresponding network anomaly scenario is high interference.
[0174] The following shows the detailed information of the configuration parameters for anomaly detection and processing through the example in Table 1.
[0175] Table 1
[0176]
[0177]
[0178]
[0179] For the action configuration of op, see Table 2.
[0180] Table 2
[0181]
[0182] As an optional embodiment, determining a network anomaly scenario according to the detected anomaly parameter value includes:
[0183] Determine a bit mask, where the bit mask includes a parameter field corresponding to each parameter value among the detected multiple parameter values, and the value of each parameter field is used to represent the anomaly state corresponding to the parameter value, and the multiple parameter values include the anomaly parameter value;
[0184] Determine a network anomaly scenario according to the bit mask.
[0185] It should be noted that the network anomaly scenario can be determined by one or more parameters that meet the set conditions. This embodiment provides an implementable way, that is, by using the bit mask BitMask to determine.
[0186] Refer to Table 3 for the detailed information configured for BitMask. That is, a combination of bit positions (bit mask) is set, and each bit represents whether a specific parameter condition is met. The bit configuration of the conditions is shown in the following table:
[0187] Table 3
[0188]
[0189] Here, the value of each parameter field included in the bit mask corresponds to the anomaly status corresponding to the detected parameter value, and is represented by "0" or "1".
[0190] If any one of the condition sets that meet any of the following network anomaly scenarios (the anomaly scenarios support subsequent expansion) is satisfied, cell change is determined, that is, cell change is executed. Among them, the optimization action corresponding to the cell change is determined by op:
[0191] Three cases of uplink congestion:
[0192] (1) The current value of the uplink PDCP packet loss rate is greater than or equal to the set condition value;
[0193] (2) The current value of the uplink grant is greater than or equal to the set condition value, and the current value of the uplink data to be sent is greater than or equal to the set condition value;
[0194] (3) The current value of the uplink rate is greater than or equal to the set condition value, and the current value of the uplink data to be sent is greater than or equal to the set condition value.
[0195] Two cases of downlink congestion:
[0196] (1) The current value of the downlink PDCP packet loss rate is greater than or equal to the set condition value;
[0197] (2) The current value of the uplink rate is greater than or equal to the set condition value, and the current value of the downlink rate is greater than or equal to the set condition value.
[0198] Two cases of high bit error:
[0199] (1) The current value of the uplink bit error rate is greater than or equal to the set condition value, and the current value of the uplink scheduling frequency is greater than or equal to the set condition value;
[0200] (2) The current value of the downlink bit error rate is greater than or equal to the set condition value, and the current value of the downlink scheduling frequency is greater than or equal to the set condition value.
[0201] Two situations of high interference:
[0202] (1) The current value of the serving cell signal strength is less than the set condition value, the current value of the serving cell signal-to-noise ratio is less than the set condition value, the current value of the power headroom is less than the set condition value, and the current value of the uplink bit error rate is greater than or equal to the set condition value;
[0203] (2) The current value of the serving cell signal strength is less than the set condition value, the current value of the serving cell signal-to-noise ratio is less than the set condition value, the current value of the power headroom is less than the set condition value, and the current value of the downlink bit error rate is greater than or equal to the set condition value.
[0204] RAT anomaly:
[0205] (1) LTE RAT anomaly
[0206] If the total number of anomalies of uplink congestion, downlink congestion, high bit error, and high interference that occur in LTE for a certain period of time (det_time) is greater than or equal to the set condition value, then switch the RAT to NR;
[0207] (2) NR RAT anomaly
[0208] If the total number of anomalies of uplink congestion, downlink congestion, high bit error, and high interference that occur in NR for a certain period of time (det_time) is greater than or equal to the set condition value, then switch the RAT to LTE.
[0209] The above is the determination of network anomaly scenarios. It mainly judges whether the current value meets the set condition value through the parameters configured in the framework layer, and when a specific combination of conditions is met, it determines that a specific network anomaly scenario is satisfied, and then continues to judge whether there is a suitable neighboring cell. If there is a suitable neighboring cell, actions such as handover, redirection, and reconstruction are implemented through a common interface to change the cell.
[0210] In some embodiments, performing target processing according to the target configuration parameters includes:
[0211] Accumulating the total number of occurrences of network anomaly scenarios corresponding to cell changes within a preset duration;
[0212] When the total number is less than the preset number, perform cell change according to the target configuration parameters corresponding to the current network anomaly scenario;
[0213] When the total number is greater than or equal to the preset number, perform cell change according to the target configuration parameters, and the target configuration parameters correspond to all relevant network anomaly scenarios.
[0214] See Figure 7 , briefly describe the process of anomaly detection and processing.
[0215] Step 701, enter the anomaly detection;
[0216] After the modem receives the configuration parameters for anomaly detection and handling, enter the anomaly detection process.
[0217] Step 702, determine the network anomaly scenarios that meet the anomaly conditions.
[0218] The network anomaly scenarios determined after anomaly detection may include: uplink congestion, downlink congestion, high bit error rate, high interference, RAT anomaly.
[0219] Step 703, enter the cell / RAT change process.
[0220] Step 704, the cell / RAT change is completed.
[0221] Step 705, prohibit the abnormal cell / RAT for a period of time.
[0222] Step 706, the data disconnection recovery is successful.
[0223] It should be noted that the functions of the method of the present application can be implemented by designing a system suite. The system suite may include anomaly recognition functions such as uplink congestion recognition, downlink congestion recognition, high bit error rate recognition, high interference recognition, and network mode anomaly recognition, and after an anomaly is recognized, a measurement report can be constructed to change the cell or network mode.
[0224] As Figure 8 shown, the embodiment of the present application also provides an electronic device, and the electronic device 800 may include:
[0225] A baseband chip 810, configured to obtain first configuration information corresponding to a first object, where the first object includes a first application or a first application activity, the first configuration information includes a first configuration parameter and a second configuration parameter, the first configuration parameter is used to detect whether the network of the first object has an anomaly, and the second configuration parameter is a network optimization parameter when the network of the first object has an anomaly;
[0226] In the case where it is detected according to the first configuration parameter that the network of the first object has an anomaly, perform a target process according to the second configuration parameter; wherein, the target process includes at least one of the following: cell change; network mode change.
[0227] In some embodiments, the electronic device of the present application further includes:
[0228] A framework layer 820; wherein, when the framework layer 820 recognizes that the first object enters the foreground or establishes a call, the baseband chip 810 receives the first configuration information sent by the framework layer 820.
[0229] In some embodiments, the baseband chip 810 is further configured to:
[0230] In the case of object switching, obtain second configuration information corresponding to a second object after switching, where the second object includes a second application or a second application activity, and the second configuration information includes a third configuration parameter and a fourth configuration parameter. The third configuration parameter is used to detect whether there is an abnormality in the network of the second object, and the fourth configuration parameter is a network optimization parameter when there is an abnormality in the network of the second object;
[0231] Enable the second configuration information corresponding to the switched second object, and disable the first configuration information corresponding to the first object.
[0232] In some embodiments, when the framework layer 820 recognizes that a first object in the foreground is switched to a second object, the baseband chip 810 is further configured to: receive the second configuration information corresponding to the second object sent by the framework layer 820;
[0233] Enable the second configuration information corresponding to the switched second object, and disable the first configuration information corresponding to the first object.
[0234] In some embodiments, the baseband chip 810 is further configured to:
[0235] In the case where the first object is a data bearer object, if a first condition is satisfied, disable the first configuration information; where the first condition includes any one of the following: the first object enters the background; the data service is turned off; a call is established;
[0236] In the case where the first object is a voice bearer object, if the call ends, disable the first configuration information.
[0237] In some embodiments, when the framework layer 820 recognizes that the first object enters the background, turns off the data service, establishes a call, or the call ends, the baseband chip 810 is further configured to: in response to a disable request sent by the framework layer 820, disable the first configuration information.
[0238] In some embodiments, the baseband chip 810 is further configured to:
[0239] In the case where it is detected according to the first configuration parameter that there is a network abnormality in the first object, determine a network abnormality scenario according to the detected abnormal parameter value;
[0240] Obtain a target configuration parameter in the second configuration parameter that matches the network abnormality scenario;
[0241] Perform a target process according to the target configuration parameter.
[0242] In some embodiments, the baseband chip 810 is further configured to:
[0243] Determine a bit mask,
[0244] The bit mask includes a parameter field corresponding to each parameter value among a plurality of detected parameter values, and the value of each parameter field is used to characterize the abnormal state corresponding to the parameter value. The plurality of parameter values include the abnormal parameter value;
[0245] Determine a network anomaly scenario according to the bit mask.
[0246] The electronic device provided by the embodiments of the present application, based on configuration parameters related to network anomaly detection configured for different applications or application activities, uses the configuration parameters to perform network anomaly detection, which can improve the accuracy of network anomaly recognition; and when a network anomaly is detected, based on configuration parameters related to network optimization, corresponding optimization processing is performed, so as to improve the success rate of getting rid of the network anomaly.
[0247] The electronic device in the embodiments of the present application can be a terminal or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0248] The electronic device in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an IOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.
[0249] The electronic device provided by the embodiments of the present application can implement Figures 1 to 7 each process implemented by the method embodiments. To avoid repetition, it will not be elaborated here.
[0250] Optionally, as Figure 9As shown in the figure, an embodiment of the present application further provides an electronic device 900, including a processor 901 and a memory 902. A program or instruction that can run on the processor 901 is stored on the memory 902. When the program or instruction is executed by the processor 901, it implements each step of the above-mentioned embodiment of the method for processing network exceptions and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0251] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0252] Figure 10 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.
[0253] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and a baseband chip 1011, etc.
[0254] Those skilled in the art can understand that the electronic device 1000 may further include a power supply (such as a battery) for supplying power to each component. The power supply can be logically connected to the processor 1010 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 10 The structure of the electronic device shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0255] Among them, the baseband chip 1011 is used to obtain first configuration information corresponding to a first object, the first object includes a first application or a first application activity, the first configuration information includes a first configuration parameter and a second configuration parameter, the first configuration parameter is used to detect whether the network of the first object appears abnormal, and the second configuration parameter is a network optimization parameter when the network of the first object appears abnormal; in the case where it is detected according to the first configuration parameter that the network of the first object is abnormal, target processing is performed according to the second configuration parameter; wherein, the target processing includes at least one of the following: cell change; network mode change.
[0256] In this way, based on the configuration parameters related to network exception detection configured for different applications or application activities, using the configuration parameters for network exception detection can improve the accuracy of network exception recognition; and when a network exception is detected, based on the configuration parameters related to network optimization, corresponding optimization processing is performed, so as to improve the success rate of getting out of the network exception.
[0257] It should be understood that in the embodiments of the present application, the input unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042. The GPU 10041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. The other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.
[0258] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 1009 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.
[0259] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor 1012 and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 1010 either.
[0260] In some embodiments, when the application processor 1012 recognizes that the first object enters the foreground or establishes a call, the baseband chip 1011 receives the first configuration information sent by the application processor 1012.
[0261] In some embodiments, the baseband chip 1011 is further configured to:
[0262] In the case of object switching, obtain the second configuration information corresponding to the switched second object, where the second object includes a second application or a second application activity, and the second configuration information includes a third configuration parameter and a fourth configuration parameter. The third configuration parameter is used to detect whether there is an abnormality in the network of the second object, and the fourth configuration parameter is a network optimization parameter when there is an abnormality in the network of the second object;
[0263] Enable the second configuration information corresponding to the switched second object, and disable the first configuration information corresponding to the first object.
[0264] In some embodiments, when the application processor 1012 recognizes that the first object in the foreground is switched to the second object, the baseband chip 1011 receives the second configuration information corresponding to the second object sent by the application processor 1012; the baseband chip 1011 enables the second configuration information corresponding to the switched second object, and disables the first configuration information corresponding to the first object.
[0265] In some embodiments, the baseband chip 1011 is further configured to:
[0266] In the case where the first object is a data bearer object, if a first condition is satisfied, disable the first configuration information; where the first condition includes any one of the following: the first object enters the background; the data service is turned off; a call is established;
[0267] In the case where the first object is a voice bearer object, if the call ends, disable the first configuration information.
[0268] In some embodiments, when the application processor 1012 recognizes that the first object enters the background, the data service is turned off, a call is established, or the call ends, the baseband chip 1011 disables the first configuration information in response to the disable request sent by the application processor 1012.
[0269] In some embodiments, the baseband chip 1011 is further configured to:
[0270] In the case where it is detected according to the first configuration parameter that there is a network abnormality in the first object, determine a network abnormality scenario according to the detected abnormal parameter value;
[0271] Obtain a target configuration parameter in the second configuration parameter that matches the network abnormality scenario;
[0272] Perform a target process according to the target configuration parameter.
[0273] In some embodiments, the baseband chip 1011 is further configured to:
[0274] Determine a bit mask, where the bit mask includes parameter fields corresponding to each of the detected multiple parameter values, and the value of each parameter field is used to characterize the abnormal state corresponding to the parameter value, and the multiple parameter values include the abnormal parameter value;
[0275] Determine a network anomaly scenario according to the bit mask.
[0276] The electronic device provided by the embodiments of the present application performs network anomaly detection using configuration parameters based on configuration parameters related to network anomaly detection configured for different applications or application activities, which can improve the accuracy of network anomaly recognition; and when a network anomaly is detected, corresponding optimization processing is performed based on configuration parameters related to network optimization, so as to improve the success rate of getting out of the network anomaly.
[0277] The embodiments of the present application further provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above-mentioned embodiment of the network anomaly processing method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0278] Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer-readable storage media such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disc, etc.
[0279] The embodiments of the present application further provide a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement each process of the above-mentioned embodiment of the network anomaly processing method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0280] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0281] The embodiments of the present application provide a computer program product, which is stored in a storage medium and is executed by at least one processor to implement each process of the above-mentioned embodiment of the network anomaly processing method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0282] It should be noted that in this text, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device including a series of elements not only includes those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the presence of additional identical elements in the process, method, article or device including such element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0283] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0284] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.
Claims
1. A method for processing network anomalies, applied to electronic equipment, characterized in that: include: Acquire first configuration information corresponding to a first object, where the first object includes a first application or a first application activity, and the first configuration information includes a first configuration parameter and a second configuration parameter, where the first configuration parameter is used to detect whether a network of the first object is abnormal, and the second configuration parameter is a network optimization parameter when a network of the first object is abnormal; In the case where a network anomaly of the first object is detected according to the first configuration parameter, target processing is performed according to the second configuration parameter; wherein the target processing includes at least one of the following: cell change; network standard change.
2. The method according to claim 1, characterized in that The obtaining first configuration information corresponding to the first object includes: When the framework layer of the electronic device recognizes that the first object enters the foreground or establishes a call, the baseband chip of the electronic device receives the first configuration information sent by the framework layer.
3. The method according to claim 1, characterized in that The method further comprises: In the case of object switching, obtaining second configuration information corresponding to the second object after the switching, where the second object includes a second application or a second application activity, and the second configuration information includes a third configuration parameter and a fourth configuration parameter, where the third configuration parameter is used to detect whether an abnormality occurs in the network of the second object, and the fourth configuration parameter is a network optimization parameter when an abnormality occurs in the network of the second object; The second configuration information corresponding to the second object after switching is enabled, and the first configuration information corresponding to the first object is disabled.
4. The method according to claim 3, characterized in that The acquiring, when an object switching occurs, second configuration information corresponding to a second object after the switching includes: When the framework layer of the electronic device recognizes that the first object in the foreground is switched to the second object, the baseband chip of the electronic device receives the second configuration information corresponding to the second object sent by the framework layer; The enabling the second configuration information corresponding to the second object after the switching, and disabling the first configuration information corresponding to the first object, includes: The baseband chip of the electronic device enables the second configuration information corresponding to the second object after switching, and disables the first configuration information corresponding to the first object.
5. The method according to claim 1, characterized in that The method further comprises: In the case where the first object is a data bearer class object, if a first condition is met, the first configuration information is deactivated; wherein the first condition includes any one of the following: the first object enters the background; the data service is turned off; a call is established; In the case where the first object is a voice bearer type object, if the call ends, the first configuration information is deactivated.
6. The method according to claim 5, characterized in that The deactivating the first configuration information includes: When the framework layer of the electronic device recognizes that the first object enters the background, turns off the data service, establishes a call, or ends the call, the baseband chip of the electronic device deactivates the first configuration information in response to a deactivation request sent by the framework layer.
7. The method according to claim 1, characterized in that The method further comprises: In the case where a network anomaly of the first object is detected according to the first configuration parameter, determining a network anomaly scenario according to the detected anomaly parameter value; The performing target processing according to the second configuration parameter comprises: Acquire a target configuration parameter in the second configuration parameter that matches the network abnormality scenario; Target processing is performed according to the target configuration parameters.
8. The method according to claim 7, characterized in that Determining the network abnormality scenario according to the detected abnormal parameter value includes: Determine a bit mask, the bit mask comprising a parameter field corresponding to each parameter value of a plurality of detected parameter values, the value of each parameter field being used to characterize an abnormal state corresponding to the parameter value, the plurality of parameter values including the abnormal parameter value; According to the bit mask, a network abnormality scenario is determined.
9. An electronic device, characterized in that: include: A baseband chip, used to obtain first configuration information corresponding to a first object, where the first object includes a first application or a first application activity, and the first configuration information includes a first configuration parameter and a second configuration parameter, where the first configuration parameter is used to detect whether a network of the first object is abnormal, and the second configuration parameter is a network optimization parameter when the network of the first object is abnormal; In a case where a network anomaly of the first object is detected according to the first configuration parameter, target processing is performed according to the second configuration parameter, wherein the target processing includes at least one of the following: cell change; network standard change.
10. The electronic device according to claim 9, characterized in that: Also includes: Framework layer; wherein, when the framework layer recognizes that the first object enters the foreground or establishes a call, the baseband chip receives the first configuration information sent by the framework layer.
11. The electronic device according to claim 9, characterized in that: The baseband chip is also used for: In the case of object switching, obtaining second configuration information corresponding to the second object after the switching, where the second object includes a second application or a second application activity, and the second configuration information includes a third configuration parameter and a fourth configuration parameter, where the third configuration parameter is used to detect whether an abnormality occurs in the network of the second object, and the fourth configuration parameter is a network optimization parameter when an abnormality occurs in the network of the second object; The second configuration information corresponding to the second object after switching is enabled, and the first configuration information corresponding to the first object is disabled.
12. The electronic device according to claim 11, characterized in that: When the framework layer identifies that the first object in the foreground is switched to the second object, the baseband chip is further used to: receive second configuration information corresponding to the second object sent by the framework layer; The second configuration information corresponding to the second object after switching is enabled, and the first configuration information corresponding to the first object is disabled.
13. The electronic device according to claim 9, characterized in that: The baseband chip is also used for: In the case where the first object is a data bearer class object, if a first condition is met, the first configuration information is deactivated; wherein the first condition includes any one of the following: the first object enters the background; the data service is turned off; a call is established; In the case where the first object is a voice bearer type object, if the call ends, the first configuration information is deactivated.
14. The electronic device according to claim 13, characterized in that: When the framework layer recognizes that the first object enters the background, closes the data service, establishes a call, or ends the call, the baseband chip is further used to: deactivate the first configuration information in response to a deactivation request sent by the framework layer.
15. The electronic device according to claim 9, characterized in that: The baseband chip is also used for: In the case where a network anomaly of the first object is detected according to the first configuration parameter, determining a network anomaly scenario according to the detected anomaly parameter value; Acquire a target configuration parameter in the second configuration parameter that matches the network abnormality scenario; Target processing is performed according to the target configuration parameters.
16. The electronic device according to claim 15, characterized in that: The baseband chip is also used for: Determine a bit mask, the bit mask comprising a parameter field corresponding to each parameter value of a plurality of detected parameter values, the value of each parameter field being used to characterize an abnormal state corresponding to the parameter value, the plurality of parameter values including the abnormal parameter value; According to the bit mask, a network abnormality scenario is determined.
17. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method for processing network anomalies according to any one of claims 1 to 8 are implemented.
18. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method for processing network anomalies according to any one of claims 1 to 8 are implemented.
19. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps in the method for processing network anomalies according to any one of claims 1 to 8.