WO2025149028A1 - 故障处理方法及相关装置 - Google Patents

故障处理方法及相关装置

Info

Publication number
WO2025149028A1
WO2025149028A1 PCT/CN2025/071721 CN2025071721W WO2025149028A1 WO 2025149028 A1 WO2025149028 A1 WO 2025149028A1 CN 2025071721 W CN2025071721 W CN 2025071721W WO 2025149028 A1 WO2025149028 A1 WO 2025149028A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
fault
action
network
fault repair
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2025/071721
Other languages
English (en)
French (fr)
Inventor
石勇
高雨桐
徐自翔
孙伟光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Publication of WO2025149028A1 publication Critical patent/WO2025149028A1/zh
Anticipated expiration legal-status Critical
Pending legal-status Critical Current

Links

Classifications

    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W24/00—Supervisory, monitoring or testing arrangements
    • H04W24/04—Arrangements for maintaining operational condition
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W36/00—Hand-off or reselection arrangements
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W36/00—Hand-off or reselection arrangements
    • H04W36/0005—Control or signalling for completing the hand-off
    • H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/00837—Determination of triggering parameters for hand-off
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W36/00—Hand-off or reselection arrangements
    • H04W36/0005—Control or signalling for completing the hand-off
    • H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085—Hand-off measurements
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W36/00—Hand-off or reselection arrangements
    • H04W36/24—Reselection being triggered by specific parameters
    • H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W36/00—Hand-off or reselection arrangements
    • H04W36/24—Reselection being triggered by specific parameters
    • H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
    • H04W36/305—Handover due to radio link failure

Definitions

  • the embodiments of the present application provide a fault handling method and related devices, which are applied in the field of terminal technology and are helpful in shortening the fault duration.
  • an embodiment of the present application provides a fault handling method, which is applied to an electronic device, the method comprising: when a network fault of the electronic device is a first fault type and a movement speed of the electronic device is a first speed, the electronic device performs a first fault repair action, wherein the first fault type corresponds to a first fault repair action list, and the first fault repair action includes actions in the first fault repair action list that are not used to trigger network switching; when the network fault of the electronic device is the first fault type and the movement speed of the electronic device is a second speed, the electronic device performs a second fault repair action, wherein the second fault repair action includes actions in the first fault repair action list that are used to trigger network switching, and the second speed is less than the first speed.
  • the first fault type may be any fault type preset in the electronic device, which is not limited in the embodiment of the present application.
  • the movement speed of the electronic device is the first speed, which means that the electronic device is in a high-speed scene. If the first fault repair list includes an action that triggers a network switch, and the probability of the action that triggers a network switch repairing the fault is low, the electronic device may not perform the action that triggers a network switch. In this way, the first fault repair action does not include the action that triggers a network switch.
  • the movement speed of the electronic device is the second speed, which means that the electronic device is in a non-high-speed scene. If the first fault repair list includes an action that triggers a network switch, and the probability of the action that triggers a network switch repairing the fault is high, the electronic device may perform the action that triggers a network switch. In this way, the first fault repair action may include the action that triggers a network switch.
  • the electronic device may not perform actions that affect the network rate in addition to not performing actions that trigger network switching. In this way, the first fault repair action may not include actions that affect the network rate.
  • the electronic device may not perform actions that affect the network rate.
  • the second fault repair action may not include actions that affect the network rate.
  • the electronic device when the network fault of the electronic device is of the first fault type and the movement speed of the electronic device is of the first speed, the electronic device is still in an idle state, and the first fault repair action does not include actions in the first fault repair action list that cannot be performed in the idle state, and the idle state is used to indicate that a link between the electronic device and the connected network device has not been established.
  • the electronic device is in a service state, indicating that the electronic device is successfully connected to the network, which is conducive to the implementation of various fault repair actions.
  • the electronic device executes the actions in the first fault repair list, which is conducive to increasing the probability of repairing the fault and shortening the fault duration.
  • the first fault repair action includes the fourth action in the first fault repair action list, and when the movement speed of the electronic device is the first speed, the probability of successfully repairing the fault with the fourth action is greater than or equal to the first preset probability, and the number of times the fault is repaired is greater than or equal to the first preset number of times, the fourth action is a preset action, the second action is not a preset action, and the impact of the fourth action is greater than the impact of the first action and the second action; the method also includes: after executing the first action, if the network fault of the electronic device is still the first fault type, executing the fourth action.
  • the duration between each fault repair action in the first fault repair action and the last execution of each fault repair action is greater than or equal to the first duration corresponding to each fault repair action; the duration between each fault repair action in the second fault repair action and the last execution of each fault repair action is greater than or equal to the second duration corresponding to each fault repair action.
  • Each fault repair action has a corresponding duration, which can be called the protection time. During this duration, the fault repair action cannot be executed repeatedly to avoid repeated state switching, which affects the success rate of repairing the fault.
  • the method includes: when the network fault of the electronic device is a second fault type and the network signal strength to which the electronic device is connected is less than a strength threshold, the electronic device does not perform actions in a second fault repair action list, the second fault type corresponds to the second fault repair list, and the second fault repair list includes actions different from those in the first fault repair list.
  • fault repair actions are performed.
  • the probability of successfully repairing the fault is low, and it may also cause the inability to use a better network when the network signal is good. Therefore, in an environment with poor network signals, not performing fault repair actions is beneficial to shorten the duration of the fault.
  • the method includes: when the network fault of the electronic device is a third fault type and the electronic device is still in a connected state, the electronic device executes an action in a third fault repair action list, the third fault type corresponds to the third fault repair list, the third fault repair list includes actions different from those in the first fault repair list, and the connection state is used to indicate that a link is established between the electronic device and the network device to which it is connected.
  • the electronic device is in a connected state, which is conducive to the execution of fault repair actions.
  • the network fault of the sub-device is the third fault type, and the third fault type corresponds to the third fault repair list.
  • the electronic device can execute the actions in the third fault repair action list, which is conducive to shortening the fault duration.
  • the method includes: when the network failure of the electronic device is a fourth failure type and the electronic device is still in a no-service state, the electronic device does not execute actions in a fourth failure repair action list, the fourth failure type corresponds to a fourth failure repair list, the no-service state is used to indicate that the electronic device has failed to stay on the network, and the fourth failure repair list includes actions different from those in the first failure repair list.
  • the electronic device is in a no-service state, indicating that the electronic device has failed to access the network. At this time, it is not conducive to the execution of fault repair actions.
  • the network failure of the electronic device is the fourth fault type.
  • the fourth fault type corresponds to the fourth fault repair list.
  • the electronic device may not execute the actions in the fourth fault repair action list. This is conducive to shortening the fault duration.
  • an embodiment of the present application provides a fault handling method, which is applied to an electronic device, and the method includes: when the network fault of the electronic device is of a first fault type, obtaining a first fault repair action list and a first scenario in which the electronic device is located, wherein the first scenario is distinguished based on one or more of the following parameters: the movement speed of the electronic device, the network signal strength to which the electronic device is connected, the interface content displayed by the electronic device, the link status between the electronic device and the connected network device, or the network status of the electronic device; screening a first target fault repair action that meets the first scenario in the first fault repair action list; and executing the first target fault repair action.
  • the movement speed of the electronic device is used to distinguish whether it is a high-speed scenario
  • the network signal strength to which the electronic device is connected is used to distinguish whether it is a weak field environment
  • the interface content displayed by the electronic device is used to distinguish whether it is a rate-sensitive scenario
  • the link status between the electronic device and the network device to which it is connected is used to distinguish whether it is in an idle state or a connected state
  • the network status of the electronic device is used to distinguish whether there is no service or service.
  • Different fault repair actions can be applicable to different scenarios.
  • the first target fault repair action that meets the first scenario is selected from the first fault repair action list; when the first target fault repair action is executed, unreasonable or invalid fault repair actions may not be executed, which is conducive to shortening the fault duration.
  • This method may refer to S508 and S509 in Figure 5. In this way, unreasonable or invalid fault repair actions may not be performed, which is conducive to shortening the fault duration.
  • This method may refer to S506 and S507 in Figure 5. In this way, unreasonable or invalid fault repair actions may not be performed, which is conducive to shortening the fault duration.
  • the first target fault repair action that meets the first scenario is screened in the first fault repair action list, including: if the electronic device is in an idle state, in the first fault repair action list, delete the action that cannot be performed in the idle state to obtain the first target fault repair action, and the idle state is used to indicate that the link between the electronic device and the connected network device is not established.
  • the method can refer to S705 and S706 in Figure 7, and the action performed in the connection state is used to indicate the action that cannot be performed in the space state.
  • Switching cells may refer to a process in which a communication link between an electronic device and a current network device is migrated to another network device.
  • the current location of the electronic device can be covered by multiple cells at the same time.
  • the electronic device can select one of the multiple cells to reside in, and access the cellular network (such as the long-term evolution (LTE) network or the new radio (NR) network).
  • LTE long-term evolution
  • NR new radio
  • the switching cell can be implemented by adding a black cell or specifying a registered cell.
  • the switching cell may also be called a bar cell or a black cell, which is not limited in the embodiments of the present application.
  • Suppressing SA may also be referred to as shutting down SA, downgrading the new wireless NR, or changing the domain, which is not limited in the embodiments of the present application.
  • Suppressing SA is used to indicate that the electronic device turns off the network using the independent networking mode, and after the electronic device turns off SA, it can use the network using the non-stand alone (NSA) mode.
  • NSA non-stand alone
  • 5G fifth-generation mobile communication technology
  • 4G fourth-generation mobile communication technology
  • the electronic device can repair the failure by suppressing SA.
  • the embodiments of the present application use suppressed SA to indicate the change of mobile communication technology, for example, changing from the sixth-generation mobile communication technology (6G) to 5G, from 5G to 4G, etc.
  • the embodiments of the present application do not limit the name.
  • an electronic device when an electronic device fails to use a cellular network due to interruption or instability of communication between the electronic device and a network device, the electronic device can repair the failure by re-registering.
  • Restarting the radio function can be used to indicate that the electronic device restarts the communication function of the electronic device to restore the normal working state of the electronic device.
  • the radio device When the radio device is used for a long time or encounters a fault, it may work abnormally or the connection is unstable. At this time, restarting the radio device can clear possible software or hardware faults, reinitialize the device parameters, and restore it to normal working state.
  • At least one of a, b, or c can represent: a, b, c, a-b, a--c, b-c, or a-b-c, where a, b, c can be single or multiple.
  • the electronic devices of the embodiments of the present application may include handheld devices with cellular communication functions, vehicle-mounted devices, etc.
  • some electronic devices are: mobile phones, tablet computers, PDAs, laptop computers, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, etc.
  • the present invention relates to wireless terminals in a smart city, wireless terminals in a smart home, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDA), handheld devices with wireless communication functions, computing devices or other processing devices connected to a wireless modem, vehicle-mounted devices, wearable devices, terminal devices in a 5G network, or terminal devices in a public land mobile network (PLMN) to be evolved in the future, etc.
  • PLMN public land mobile network
  • the electronic device can also be a terminal device in the Internet of Things (IoT) system.
  • IoT Internet of Things
  • Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network that interconnects people and machines and things.
  • the electronic devices in the embodiments of the present application may also be referred to as: terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.
  • UE user equipment
  • MS mobile station
  • MT mobile terminal
  • access terminal user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.
  • the network device may be an access network (AN) device, or may be referred to as a radio access network (RAN) device.
  • the RAN device may provide access functions for electronic devices, and is responsible for functions such as radio resource management, quality of service (QoS) management, data compression and encryption on the air interface side.
  • QoS quality of service
  • the RAN device may include 5G, such as a gNB in an NR system, or one or a group of antenna panels (including multiple antenna panels) of a base station in a 5G system, or a network node constituting a gNB, a transmission point (TRP or transmission point, TP) or a transmission measurement function (TMF), such as a building base band unit (BBU), or a centralized unit (CU) or a distributed unit (DU), an RSU with a base station function, or a wired access gateway, or a core network element of a 5G system.
  • 5G such as a gNB in an NR system, or one or a group of antenna panels (including multiple antenna panels) of a base station in a 5G system, or a network node constituting a gNB, a transmission point (TRP or transmission point, TP) or a transmission measurement function (TMF), such as a building base band unit (BBU), or a centralized unit (CU) or a distributed
  • the RAN device may also include an access point (AP) in a wireless fidelity (WiFi) system, a wireless relay node, a wireless backhaul node, various forms of macro base stations, micro base stations (also called small stations), relay stations, access points, wearable devices, vehicle-mounted devices, etc.
  • AP access point
  • WiFi wireless fidelity
  • the RAN device may also include a next-generation mobile communication system, such as a 6G access network device, such as a 6G base station, or in the next-generation mobile communication system, the network device may also have other naming methods, which are all covered within the protection scope of the embodiments of the present application, and the present application does not make any limitation thereto.
  • the electronic device is preset with a series of self-healing actions to be performed when a fault occurs.
  • a fault occurs when the electronic device uses a cellular network
  • the electronic device can recover from the fault through this series of self-healing actions.
  • this series of actions is triggered step by step according to the degree of impact of the self-healing action.
  • the degree of impact is used to indicate the degree of impact on the user and/or the ability to recover from the fault.
  • the self-healing action may include one or more of switching cells, suppressing SA, re-registering, turning on and off data switches, restarting radio functions, or restarting the modem.
  • Fig. 1 shows a schematic flow chart of a multi-stage self-healing of an electronic device. As shown in Fig. 1, the method may include the following steps:
  • the default self-healing action may include one or more self-healing actions, which is not limited in the present embodiment.
  • the default self-healing action includes multiple self-healing actions
  • the multiple self-healing actions have a preset order, and the order is based on the degree of influence of the self-healing actions.
  • the electronic device may perform a self-healing action.
  • the electronic device After the electronic device performs this self-healing action, it evaluates whether the fault still exists.
  • Returning that the self-healing is successful may indicate that the electronic device outputs that the self-healing is successful.
  • the electronic device may output FALL or reject, where FALL or reject indicates that the self-healing is unsuccessful.
  • next level of self-healing action is executed, after the electronic device executes the self-healing action, it is evaluated whether the fault still exists, that is, the above S103 is executed.
  • an embodiment of the present application provides a fault handling method and related devices, which determine the corresponding self-healing actions based on the fault type, and can adjust the execution order of these self-healing actions, or delete invalid self-healing actions, which is beneficial to increase the probability of successful self-healing actions, and further help reduce the probability of a long fault duration.
  • the method provided in the embodiment of the present application can be executed by an electronic device.
  • the hardware structure of the electronic device provided in the embodiment of the present application is first introduced.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc.
  • different processing units may be independent devices or integrated in one or more processors.
  • the modem can provide cellular communication capabilities, and the electronic device can use the modem to realize a series of cellular communication functions such as sending and receiving text messages, 5G related functions, making calls, and answering calls.
  • the application layer can include a series of application packages, and the application layer runs applications by calling the application programming interface (API) provided by the application framework layer.
  • API application programming interface
  • the application package can include applications such as browsers, phones, games, and videos.
  • the application framework layer provides an API and a programming framework for the applications of the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a view system, a content provider, and a fault handling module, etc.
  • the fault handling module can determine the type of fault when a fault occurs when an electronic device uses a cellular network, and determine a self-healing action list corresponding to the fault type based on the fault type, and adjust the order of the self-healing actions in the self-healing action list according to the rules provided in the embodiments of the present application, and/or delete the self-healing actions in the self-healing action list to obtain an updated self-healing action list.
  • the process ends.
  • fault handling module being located at the application framework layer is merely an example, and the fault handling module may also be located at other layers or other chips, which is not limited in the embodiments of the present application.
  • the purpose of the HAL layer is to abstract the hardware, and can provide a unified interface for querying hardware devices for upper-layer applications, or can also provide data storage services for upper-layer applications.
  • the HAL layer can include a display driver module and sensor hardware abstraction.
  • the kernel layer is a layer between hardware and software.
  • the kernel layer is used to drive the hardware to make it work.
  • the kernel layer may include one or more of the following: display driver and sensor driver.
  • the modem can provide cellular communication functions and perform some related self-healing actions.
  • the layers implementing the same function may be called by other names, or the layers that can implement the functions of multiple layers may be regarded as one layer, or the layers that can implement the functions of multiple layers may be divided into multiple layers. This embodiment of the application does not limit this.
  • the electronic device presets a correspondence between the fault type and the self-healing action.
  • the self-healing action corresponding to the fault type can be obtained based on the fault type.
  • the default self-healing action may include one or more self-healing actions, which is not limited in the embodiments of the present application.
  • the default self-healing action includes multiple self-healing actions, there is a preset order for these multiple self-healing actions, and the order is sorted according to the degree of influence of the self-healing action.
  • the self-healing action that the electronic device can perform may include suppressing SA.
  • the electronic device switches from an idle state (i.e., not executing data services) to a service state (i.e., executing data services), and before executing cellular data services, the link with the network device may be activated. If an activation failure occurs, the electronic device may determine that the fault type is a data activation failure. When the fault type is a data activation failure, the self-healing actions that the electronic device may perform may include suppressing SA, re-registering, and restarting the radio function.
  • the fault type is determined, and a default self-healing action is obtained based on the corresponding relationship between the fault type and Table 1.
  • the default self-healing action may also be referred to as a default self-healing action list or a self-healing action list, which is not limited in the embodiments of the present application.
  • the electronic device filters the default self-healing action based on the user scenario, the prior information, and one or more pieces of information in the link information to obtain an updated self-healing action.
  • the electronic device can filter the default self-healing actions based on user scenarios, prior information, and one or more information in the link information to delete unreasonable or invalid self-healing actions, and can adjust the execution order of the self-healing actions, which is conducive to shortening the time to repair the fault.
  • the electronic device when an electronic device fails to use a cellular network, the electronic device is in the process of downloading a game application and displays a download rate. If the default self-healing action includes suppressing SA, switching from 5G to 4G may reduce the download rate. The electronic device displays the reduced download rate, which will affect the user experience. In this scenario, the electronic device can delete the suppressing SA in the default self-healing action.
  • switching cells causes the cell where the electronic device is located to change due to the movement of the electronic device, resulting in no benefit from the self-healing action.
  • Suppressing SA causes the electronic device to have no 4G signal at its location due to the movement of the electronic device, resulting in no benefit from the self-healing action. Therefore, if the default self-healing action includes switching cells or suppressing SA, the electronic device can delete the switching cells or suppressing SA.
  • the electronic device may adjust the execution order of the self-healing actions according to one or more of the following rules:
  • the self-healing action will be deleted, where S 2 is less than S 1 ;
  • Each self-healing action is set with a protection time. After the self-healing action is executed, it cannot be executed again within the corresponding protection time.
  • the suppression SA is set with a 5-minute protection time.
  • the re-registration is set with a 15-minute protection time.
  • the restart radio function is set with a 30-minute protection time.
  • the protection time may be fixed or adjustable, which is not limited in the embodiments of the present application. If the protection time is adjustable, the protection time may change according to the change of the environment in which the electronic device is located, which is more flexible.
  • the electronic device can start a timer when each self-healing action is executed, and record the cell where the electronic device is located and the operating status of the electronic device, and can count the success rate of the self-healing action based on whether the self-healing action is successful.
  • Link information is used to indicate the link status between the electronic device and the network device.
  • link information may include no service, current service status, the cell is in idle state, the cell is in connected state, and network status, etc.
  • no service is used to indicate that the electronic device has failed to be networked.
  • the current service status is used to indicate that the electronic device has successfully been networked.
  • the idle state is used to indicate that the communication link between the electronic device and the network device has not been successfully established.
  • the connected cell is used to indicate that the communication link between the electronic device and the network device has been successfully established.
  • the network status is used to indicate the type of network signal in the cell where the electronic device is located.
  • the electronic device can determine the connection status between the electronic device and the network device based on the link information, and can delete invalid self-healing actions included in some default actions.
  • the network signal type of the cell where the electronic device is located is 4G, and the suppression of SA cannot take effect, so the electronic device can intercept the suppression of SA in the default self-healing action.
  • the user scenario is a weak field environment, it means that the network signal is weak and the environment is unstable. At this time, the self-healing action cannot repair the fault.
  • the electronic device can intercept all self-healing actions. In this way, the updated self-healing action does not include any self-healing action. In this case, when the user scenario is in a non-weak field environment, the fault of the electronic device is repaired.
  • FIG5 shows a schematic flow chart of a fault handling method provided in an embodiment of the present application. As shown in FIG5 , the method may include the following steps:
  • S501 The electronic device receives a self-healing request, where the self-healing request is used to request execution of a self-healing action.
  • the electronic device may detect the user scenario in real time or periodically, and may store the user scenario in a memory or storage, and the electronic device may read the user scenario in the memory or storage.
  • the electronic device may detect the user scenario in the following manner:
  • the network signal strength may include one or more of the reference signal received power (RSRP), the reference signal received quality (RSRQ), or the signal to noise ratio (SNR).
  • RSRP reference signal received power
  • RSRQ reference signal received quality
  • SNR signal to noise ratio
  • the electronic device may determine whether the electronic device is in a weak field environment based on the strength of RSRP, the strength of RSRQ, and the strength of SNR.
  • the threshold values corresponding to the RSRP strength, the RSRQ strength, and the SNR strength may be shown in Table 3.
  • the range of RSRP is (-157, 30) decibel milliwatts (dBm)
  • the range of RSRQ is (-43.5, 20) dB
  • the range of SNR is (-23.5, 40) dB.
  • the electronic device can determine that the electronic device is in a weak field environment. If such conditions are not met, the electronic device can determine that the electronic device is in a non-weak field environment.
  • the electronic device can determine that the electronic device is in a weak field environment. If such conditions are not met, the electronic device can determine that the electronic device is in a non-weak field environment.
  • the electronic device can identify whether it is in a rate-sensitive scenario by determining whether the application running on the electronic device is in the whitelist.
  • the electronic device may be preset with a whitelist, which may include one or more applications.
  • the applications in the whitelist may be applications for testing the operating speed of the electronic device, or applications for displaying the operating speed of the electronic device.
  • the whitelist may include one or more of the application's identifier, name, or application package name, which is not limited in the embodiments of the present application. If the application running on the electronic device can be found in the whitelist, the electronic device can determine that the electronic device is in a rate-sensitive scenario. If the application running on the electronic device is not found in the whitelist, the electronic device can determine that the electronic device is in a non-rate-sensitive scenario.
  • the electronic device can obtain the application package names of the applications running on the electronic device, and determine whether there are application package names included in the whitelist that are the same as these application package names. If there are, it means that the application running on the electronic device can be found in the whitelist, and the electronic device can determine that the electronic device is in a rate-sensitive scenario. If not, it means that the application running on the electronic device is not found in the whitelist, and the electronic device can determine that the electronic device is in a non-rate-sensitive scenario.
  • identifying whether a high-speed scene is in progress by judging whether the sensor data meets a threshold is merely an example, and the embodiments of the present application do not limit the specific method of identifying a high-speed scene.
  • the electronic device can intercept the default self-healing action, that is, not perform the self-healing action.
  • the electronic device can intercept the self-healing action that affects the rate, for example, the electronic device can intercept and suppress SA.
  • the electronic device can obtain a default self-healing action that may include switching cells -> suppressing SA -> re-registering -> restarting the radio function.
  • the application running in the electronic device includes an application store for downloading applications, and the application store is downloading a game application
  • the user scenario includes a rate-sensitive scenario
  • the electronic device intercepts the self-healing action of suppressing SA, so that the updated self-healing action includes switching cells -> re-registering -> restarting the radio function.
  • the user scenario may be a general scenario, and the screening rule corresponding to the general scenario is the default self-healing action, that is, any action in the default self-healing action is not intercepted, and the next step of screening may be performed.
  • the next step of screening may be that the electronic device screens the default self-healing action based on the prior information and/or the link information.
  • the electronic device performs the next step of screening, which is only an example. In other examples, if the user scenario does not include a high-speed scenario, or after intercepting the self-healing action that actively triggers the network switching, the electronic device can perform the above S403 to S409.
  • the electronic device filters the default self-healing action based on the user scenario, prior information and one or more information in the link information to obtain the updated self-healing action may include: the electronic device filters the default self-healing action based on the prior information to obtain the updated self-healing action.
  • the electronic device can adjust the order of self-healing actions based on prior information to obtain updated self-healing actions.
  • Fig. 6 shows a schematic flow chart of a fault handling method provided in an embodiment of the present application. As shown in Fig. 6, the method may include the following steps:
  • S601 The electronic device reads a self-healing action in a default self-healing action.
  • S604 If the number of self-healing actions has not reached T times, or the success rate is not greater than S 1 , the electronic device may determine whether the number of self-healing actions has reached T times, and whether the success rate is greater than S 2 .
  • the self-healing action can be deleted.
  • T is 5
  • S1 is 90%
  • S2 is 5%. If the electronic device continues to freeze when playing a video, and the electronic device detects that the fault type is data freeze, in the example shown in Table 1 above, the electronic device can obtain a default self-healing action that may include switching cells -> suppressing SA -> re-registering -> restarting the radio function.
  • the self-healing action is not within its corresponding protection time, the self-healing action will not be adjusted, and the next self-healing action in the default self-healing action can be read, and the above S602 to S607 processes are repeated for the next self-healing action until all the self-healing actions in the default self-healing action are read.
  • the electronic device may delete the self-healing action, ie, execute S605.
  • the electronic device can obtain a default self-healing action that may include switching cells -> suppressing SA -> re-registering -> restarting the radio function. If the self-healing action read by the electronic device is to suppress SA, and the suppression of SA is within its corresponding protection time of 5 minutes, the electronic device can delete the suppression of SA and obtain the switching cells -> re-registering -> restarting the radio function.
  • the fault handling method provided in the embodiment of the present application can sort the default self-healing actions based on prior information, so as to facilitate the subsequent execution of self-healing actions that have a higher probability of repairing the fault, which is conducive to shortening the time to repair the fault.
  • the method shown in FIG6 above introduces filtering the default self-healing action based on prior information to obtain an updated self-healing action.
  • the electronic device may also filter the default self-healing action based on the user scenario and prior information to obtain an updated self-healing action.
  • the electronic device may filter the self-healing action obtained based on the method shown in FIG. 5 based on prior information to obtain an updated self-healing action.
  • the electronic device may filter the self-healing actions obtained based on the method shown in FIG. 6 based on the user scenario to obtain updated self-healing actions.
  • the electronic device filters the default self-healing action based on the user scenario, prior information and one or more information in the link information to obtain the updated self-healing action may include: the electronic device filters the default self-healing action based on the link information to obtain the updated self-healing action.
  • the electronic device can delete invalid actions based on the link information to obtain updated self-healing actions.
  • the link information may include no service, current service status, the cell is in idle state, the cell is in connected state, and network status.
  • Fig. 7 shows a schematic flow chart of a fault handling method provided in an embodiment of the present application. As shown in Fig. 7, the method may include the following steps:
  • S701 The electronic device reads a default self-healing action in a configuration file.
  • This step may refer to the above-mentioned S502 and will not be described in detail here.
  • S702 The electronic device reads the current link status.
  • the electronic device can monitor the link status between the electronic device and the network device and store the monitored link status in a memory or storage. After reading the default self-healing action, the electronic device can read the current link status to filter the default self-healing action according to the current link status.
  • S703 The electronic device determines whether the current link status is no service.
  • the current link status is no service, it means that the electronic device has not successfully accessed the network. At this time, the probability that all self-healing actions can repair the fault is small, so the electronic device can intercept the default self-healing action, so that the electronic device does not need to perform the self-healing action.
  • the electronic device may determine whether the cell where the electronic device is located is in an idle state.
  • the electronic device can determine whether the cell where the electronic device is located is in an idle state, that is, whether the communication link between the electronic device and the network device is not successfully established. Among them, the communication link needs to be established before the service data is transmitted.
  • the electronic device intercepts the self-healing action performed in the connected state.
  • the self-healing action performed in the connected state may include switching cells. If the electronic device continues to freeze when playing a video, the electronic device detects that the fault type is data freeze. In the example shown in Table 1 above, the electronic device may obtain a default self-healing action that may include switching cells -> suppressing SA -> re-registering -> restarting the radio function. If the cell where the electronic device is located is in an idle state, the electronic device intercepts the switching cell, that is, deletes the switching cell, and obtains an updated self-healing action of: suppressing SA -> re-registering -> restarting the radio function.
  • the electronic device determines whether the network signal type of the cell where the electronic device is located is a 5G signal.
  • the cell where the electronic device is located is not in an idle state, it means that the cell where the electronic device is located is in a connected state, and the communication link between the electronic device and the network device is successfully established.
  • the electronic device can determine whether the network signal type of the cell is a 5G signal.
  • the electronic device determining whether the network signal type of the cell where the electronic device is located is a 5G signal is only an example. In other examples, the electronic device may determine whether the network signal type of the cell where the electronic device is located is a 6G signal or a 4G signal. The embodiments of the present application do not limit this.
  • the electronic device intercepts the self-healing action related to the 5G signal. For example, the electronic device can intercept and suppress SA.
  • the electronic device can perform the next step of screening.
  • the next step of screening can be for the electronic device to screen the default self-healing action based on prior information and/or user scenarios.
  • the electronic device can perform the next step of screening, which is just an example. In other examples, if the network signal type of the cell where the electronic device is located is a 5G signal, or after intercepting the self-healing action related to the 5G signal, the electronic device can perform the above S403 to S409.
  • the fault handling method provided in the embodiment of the present application screens the default self-healing actions based on the link information to delete unreasonable or invalid self-healing actions, which is beneficial to improving the probability of successful self-healing and further beneficial to shortening the time to repair the fault.
  • the fault handling method may include: when the network fault of the electronic device is a first fault type and the movement speed of the electronic device is a first speed, the electronic device performs a first fault repair action, wherein the first fault type corresponds to a first fault repair action list, and the first fault repair action includes actions in the first fault repair action list that are not used to trigger network switching; when the network fault of the electronic device is a first fault type and the movement speed of the electronic device is a second speed, the electronic device performs a second fault repair action, wherein the second fault repair action includes actions in the first fault repair action list that are used to trigger network switching, and the second speed is less than the first speed.
  • the network fault of the electronic device is a first fault type and the movement speed of the electronic device is a first speed
  • information reflecting the network rate is also displayed in the electronic device, and the first fault repair action does not include actions in the first fault repair action list that affect the network rate.
  • the electronic device when the network failure of the electronic device is of the first failure type and the movement speed of the electronic device is of the first speed, the electronic device is still in an idle state, and the first fault repair action does not include actions in the first fault repair action list that cannot be performed in the idle state.
  • the idle state is used to indicate that a link between the electronic device and the connected network device has not been established.
  • the electronic device when the network failure of the electronic device is of the first failure type and the movement speed of the electronic device is of the first speed, the electronic device is still in a service state, and the service state is used to indicate that the electronic device is successfully stationed on the network.
  • module names involved in the embodiments of the present application can be defined as other names as long as the functions of each module can be achieved, and there is no specific restriction on the names of the modules.
  • the user information including but not limited to user device information, user personal information, etc.
  • data including but not limited to data used for analysis, stored data, displayed data, etc.
  • the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
  • FIG8 is a schematic diagram of the structure of a chip provided in an embodiment of the present application.
  • a chip 80 includes one or more (including two) processors 801 , a communication line 802 , a communication interface 803 and a memory 804 .
  • the method for processing network jams described in the above embodiment of the present application can be applied to the processor 801, or implemented by the processor 801.
  • the processor 801 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method for processing network jams can be completed by an integrated logic circuit of hardware or software instructions in the processor 801.
  • the above processor 801 can be a general processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components.
  • the processor 801 can implement or execute the methods, steps and logic block diagrams related to each processing disclosed in the embodiment of the present application.
  • the steps of the method for processing network freezes disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM).
  • the storage medium is located in the memory 804, and the processor 801 reads the information in the memory 804 and completes the steps of the above method in combination with its hardware.
  • the processor 801 , the memory 804 , and the communication interface 803 may communicate with each other via the communication line 802 .
  • the fault handling method provided in the embodiment of the present application can be applied to electronic devices with communication functions.
  • the electronic devices include terminal devices, and the specific device form of the terminal devices can refer to the above related descriptions, which will not be repeated here.
  • An embodiment of the present application provides a terminal device, which includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the terminal device to execute the above-mentioned fault handling method.
  • the embodiment of the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program or instruction.
  • the above-mentioned fault handling method is implemented when the computer program or instruction is executed by an electronic device.
  • the fault handling method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium.
  • Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another.
  • the storage medium may be any target medium that can be accessed by a computer.
  • each flow process and/or box in the flow chart and/or block diagram and the combination of the flow chart and/or box in the flow chart and/or block diagram can be realized by computer program instructions.
  • These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable device to produce a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart or multiple flows and/or one box or multiple boxes of the block chart.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例提供一种故障处理方法及相关装置,涉及终端技术领域。该方法包括:在电子设备的网络故障为第一故障类型的情况下,获取第一故障修复动作列表和电子设备所处的第一场景,其中,第一场景依据下述一项或多项参数进行区分:电子设备的运动速度、电子设备所接入的网络信号强度、电子设备所显示的界面内容、电子设备与所接入的网络设备之间的链路状态、或电子设备的驻网状态;在第一故障修复动作列表中筛选符合第一场景的第一目标故障修复动作;执行第一目标故障修复动作。这样,可以去除掉一些无效或者不合理的故障修复动作,有利于缩短故障时长。

Description

故障处理方法及相关装置
本申请要求于2024年01月10日提交中国国家知识产权局、申请号为202410046036.7、申请名称为“故障处理方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种故障处理方法及相关装置。
背景技术
目前,电子设备使用蜂窝网络时,容易出现故障时长较长的现象。例如,在游戏或者视频播放过程中,会出现卡顿时间较长的现象。在通话场景中,会出现一直通话呼叫失败的现象。
发明内容
本申请实施例提供一种故障处理方法及相关装置,应用于终端技术领域,有利于缩短故障时长。
第一方面,本申请实施例提供一种故障处理方法,应用于电子设备,该方法包括:在电子设备的网络故障为第一故障类型,且电子设备的运动速度为第一速度的情况下,电子设备执行第一故障修复动作,其中,第一故障类型对应于第一故障修复动作列表,第一故障修复动作包括第一故障修复动作列表中不用于触发网络切换的动作;在电子设备的网络故障为第一故障类型,且电子设备的运动速度为第二速度的情况下,电子设备执行第二故障修复动作,其中,第二故障修复动作包括第一故障修复动作列表中用于触发网络切换的动作,第二速度小于第一速度。
电子设备可以预设有一种或多种故障类型,每种故障类型可以对应有一个故障修复动作列表,故障修复动作列表中可以包括一个或多个故障修复动作。故障修复动作也可以称为自愈动作,本申请实施例对此不做限定。在本申请实施例中,电子设备可以预设有表一所示的对应的关系。
在电子设备的网络故障为第一故障类型的情况下,可以获取第一故障类型对应的第一故障修复动作列表。第一故障类型可以是电子设备中预设的任一种故障类型,本申请实施例对此不做限定。
第一故障修复动作列表中可能存在无效或者不合理的故障修复动作,可以根据不同的场景去除无效或者不合理的故障修复动作。
电子设备的运动速度为第一速度,说明电子设备处于高速场景,若第一故障修复列表中包括触发网络切换的动作,而触发网络切换的动作修复故障的概率较小,故电子设备可以不执行触发网络切换的动作,这样,第一故障修复动作中不包括触发网络切换的动作。电子设备的运动速度为第二速度,说明电子设备处于非高速场景,若第一故障修复列表中包括触发网络切换的动作,而触发网络切换的动作修复故障的概率较高,故电子设备可以执行触发网络切换的动作,这样,第一故障修复动作中可以包括触发网络切换的动作。
这样,在电子设备处于高速场景下,不执行第一故障修复动作列表中无效或者不合理的故障修复动作,有利于缩短故障时长。
在一种可能的实现方式中,在电子设备的网络故障为第一故障类型,且电子设备的运动速度为第一速度的情况下,电子设备中还显示有用于反映网络速率的信息,第一故障修复动作中还不包括第一故障修复动作列表中影响网络速率的动作。
电子设备中显示有用于反映网络速率的信息,说明电子设备处于速率敏感场景。在一些示例中,电子设备显示有用于反映网络速率的信息,可以说明电子设备显示有下载速率或者显示或者运行有测试网络速率的应用。
若电子设备处于高速场景,且处于速率敏感场景,则电子设备除不执行触发网络切换的动作之外,还可以不执行影响网络速率的动作。这样,第一故障修复动作中还可以不包括影响网络速率的动作。
可以理解的是,若电子设备处于非高速场景,且处于速率敏感场景,则电子设备可以不执行影响网络速率的动作。这样,第二故障修复动作中可以不包括影响网络速率的动作。
这样,在电子设备处于高速场景,且处于速率敏感场景下,不执行影响网络速率的动作,有利于缩短故障时长。
在一种可能的实现方式中,在电子设备的网络故障为第一故障类型,且电子设备的运动速度为第一速度的情况下,电子设备所接入的网络信号强度大于或等于强度阈值。
电子设备所接入的网络信号强度大于或等于强度阈值,说明网络信号良好,为非弱场换将,有利于各种故障修复动作的实现。电子设备执行第一故障修复列表中的动作,有利于提高修复故障的概率,缩短故障时长。
在一种可能的实现方式中,在电子设备的网络故障为第一故障类型,且电子设备的运动速度为第一速度的情况下,电子设备还处于空闲态,第一故障修复动作中还不包括第一故障修复动作列表中不能在空闲态执行的动作,空闲态用于表示电子设备与所接入的网络设备之间的链路未建立。
若第一故障动作修复列表中存在不能在空闲态执行的动作,而此时,电子设备处于空闲态,则可以不执行不能在空闲态执行的动作,这样,第一故障修复动作中还不包括第一故障修复动作列表中不能在空闲态执行的动作,有利于提高修复故障的概率,缩短故障时长。
在一种可能的实现方式中,在电子设备的网络故障为第一故障类型,且电子设备的运动速度为第一速度的情况下,电子设备还处于有服务状态,有服务状态用于表示电子设备驻网成功。
电子设备处于有服务状态,说明电子设备驻网成功,有利于各种故障修复动作的实现。电子设备执行第一故障修复列表中的动作,有利于提高修复故障的概率,缩短故障时长。
在一种可能的实现方式中,第一故障修复动作包括第一故障修复动作列表中的第一动作和第二动作;第一动作在电子设备的运动速度为第一速度的情况下,成功修复故障的概率小于第一预设概率,或者,修复故障的次数小于第一预设次数;第二动作在电子设备的运动速度为第一速度的情况下,成功修复故障的概率大于或等于第一预设概率,且修复故障的次数大于或等于第一预设次数;电子设备执行第一故障修复动作,包括:电子设备执行第二动作;若执行完成第二动作之后,电子设备的网络故障仍为第一故障类型,则电子设备执行第一动作。
根据先验信息,可以得到第一动作和第二动作成功修复故障的概率和修复故障的次数,若第二动作比第一动作修复故障的成功率大,则第二动作的执行顺序在第一动作之前。
这样,有利于提高修复故障的成功率,缩短故障时长。
在一种可能的实现方式中,第一故障修复动作中没有第一故障修复动作列表中的第三动作,第三动作在电子设备的运动速度为第一速度的情况下,成功修复故障的次数大于第一预设次数,且成功修复故障的概率小于第二预设概率,第二预设概率小于第一预设概率。
根据先验信息,第三动作修复故障的成功率较小,电子设备可以不执行。这样,有利于提高修复故障的成功率,缩短故障时长。
在一种可能的实现方式中,第一故障修复动作包括第一故障修复动作列表中的第四动作,第四动作在电子设备的运动速度为第一速度的情况下,成功修复故障的概率大于或等于第一预设概率,且修复故障的次数大于或等于第一预设次数,第四动作为预设动作,第二动作不是预设动作,第四动作的影响程度大于第一动作和第二动作的影响程度;方法还包括:在执行完成第一动作之后,若电子设备的网络故障仍为第一故障类型,则执行第四动作。
第四动作为预设动作,说明虽然修复故障的成功率较大,但是第四动作的影响程度较大,故不能先执行,第二动作不是预设动作,说明第二动作在成功率较大的情况下可以先执行,故第二动作在第一动作之前,第四动作在第一动作之后。
这样,可以在缩短故障时长的情况下,降低对用户和设备的影响程度。
在一种可能的实现方式中,第一故障修复动作中的每个故障修复动作与上一次执行每个故障修复动作之间的时长大于或等于每个故障修复动作对应的第一时长;第二故障修复动作中的每个故障修复动作与上一次执行每个故障修复动作之间的时长大于或等于每个故障修复动作对应的第二时长。
每个故障修复动作均对应有一个时长,这个时长可以称为保护时间,在这个时长内,该故障修复动作不可以重复执行,避免状态反复切换,影响修复故障的成功率。
在一种可能的实现方式中,方法包括:在电子设备的网络故障为第二故障类型,且电子设备所接入的网络信号强度小于强度阈值的情况下,电子设备不执行第二故障修复动作列表中的动作,第二故障类型对应于第二故障修复列表,第二故障修复列表中包括与第一故障修复列表中不同的动作。
第二故障类型与第一故障类型不同。电子设备所接入的网络信号强度小于强度阈值,说明处于弱场环境中,网络信号较差,这样不利于故障修复动作的执行,电子设备可以不执行故障修复动作。在电子设备的网络故障为第二故障类型,第二故障类型对应于第二故障修复列表,嗲你这边可以不执行第二故障修复动作列表中的动作。
在网络信号较差的环境下,执行故障修复动作,故障修复动作修复故障成功的概率较低,有可能还会造成网络信号好时不能使用较好的网络,故在网络信号较差的环境下,不执行故障修复动作,有利于缩短故障时长。
在一种可能的实现方式中,方法包括:在电子设备的网络故障为第三故障类型,且电子设备还处于连接态,电子设备执行第三故障修复动作列表中的动作,第三故障类型对应于第三故障修复列表,第三故障修复列表中包括与第一故障修复列表中不同的动作,连接态用于表示电子设备与所接入的网络设备之间建立有链路。
电子设备处于连接态,有利于故障修复动作的执行,此时,子设备的网络故障为第三故障类型,第三故障类型对应于第三故障修复列表,电子设备可以执行第三故障修复动作列表中的动作,有利于缩短故障时长。
在一种可能的实现方式中,方法包括:在电子设备的网络故障为第四故障类型,且电子设备还处于无服务状态,电子设备不执行第四故障修复动作列表中的动作,第四故障类型对应于第四故障修复列表,无服务状态用于表示电子设备驻网失败,第四故障修复列表中包括与第一故障修复列表中不同的动作。
电子设备处于无服务状态,说明电子设备驻网失败,此时,不利于故障修复动作的执行,电子设备的网络故障为第四故障类型,第四故障类型对应于第四故障修复列表,电子设备可以不执行第四故障修复动作列表中的动作,这样,有利于缩短故障时长。
第二方面,本申请实施例提供一种故障处理方法,应用于电子设备,该方法包括:在电子设备的网络故障为第一故障类型的情况下,获取第一故障修复动作列表和电子设备所处的第一场景,其中,第一场景依据下述一项或多项参数进行区分:电子设备的运动速度、电子设备所接入的网络信号强度、电子设备所显示的界面内容、电子设备与所接入的网络设备之间的链路状态、或电子设备的驻网状态;在第一故障修复动作列表中筛选符合第一场景的第一目标故障修复动作;执行第一目标故障修复动作。
电子设备的运动速度用于区分是否为高速场景,电子设备所接入的网络信号强度用于区分是否为弱场环境,电子设备所显示的界面内容用于区分是否为速率敏感场景,电子设备与所接入的网络设备之间的链路状态用于区分是否是空闲态或者连接态,电子设备的驻网状态用于区分是否为无服务或者有服务。
在本申请实施例中,该方法可以参考图4,这些场景可以参考用户场景和链路信息。
不同的故障修复动作可以适用于不同的场景,在电子设备的网络故障为第一故障类型的情况下,在第一故障修复动作列表中筛选符合第一场景的第一目标故障修复动作;执行第一目标故障修复动作,可以不执行不合理或者无效的故障修复动作,有利于缩短故障时长。
在一种可能的实现方式中,若第一场景依据电子设备的运动速度进行区分,则在第一故障修复动作列表中筛选符合第一场景的第一目标故障修复动作,包括:若电子设备的运动速度满足预设条件,在第一故障修复动作列表中,删除用于触发网络切换的动作,得到第一目标故障修复动作。
该方法可以参考图5中的S508和S509。这样,可以不执行不合理或者无效的故障修复动作,有利于缩短故障时长。
在一种可能的实现方式中,若第一场景依据电子设备所显示的界面内容进行区分,则在第一故障修复动作列表中筛选符合第一场景的第一目标故障修复动作,包括:若电子设备显示有用于反映网络速率的信息,则在第一故障修复动作列表中,删除影响网络速率的动作,得到第一目标故障修复动作。
该方法可以参考图5中的S506和S507。这样,可以不执行不合理或者无效的故障修复动作,有利于缩短故障时长。
在一种可能的实现方式中,若第一场景依据电子设备所接入的网络信号强度进行区分,则在第一故障修复动作列表中筛选符合第一场景的第一目标故障修复动作,包括:若电子设备所接入的网络信号强度小于或等于强度阈值,则第一故障修复动作列表中没有第一目标故障修复动作。该方法可以参考图5中的S504和S505。
在一种可能的实现方式中,若第一场景依据电子设备与所接入的网络设备之间的链路状态进行区分,则在第一故障修复动作列表中筛选符合第一场景的第一目标故障修复动作,包括:若电子设备处于空闲态,在第一故障修复动作列表中,删除不能在空闲态执行的动作,得到第一目标故障修复动作,空闲态用于表示电子设备与所接入的网络设备之间的链路未建立。该方法可以参考图7中的S705和S706,在连接态执行的动作用于表示不能在空间态执行的动作。
在一种可能的实现方式中,若第一场景依据电子设备的驻网状态进行区分,则在第一故障修复动作列表中筛选符合第一场景的第一目标故障修复动作,包括:若电子设备处于无服务状态,则第一故障修复动作列表中没有第一目标故障修复动作,无服务状态用于表示电子设备驻网失败。该方法可以参考图7中的S703和S704。
在一种可能的实现方式中,第一故障修复动作列表中包括第一动作和第二动作,第一动作在第二动作之前;在第一故障修复动作列表中筛选符合第一场景的第一目标故障修复动作,包括:将第二动作调整在第一动作之前,得到第一目标故障修复动作;其中,第一动作在电子设备的网络故障为第一故障类型的情况下,成功修复故障的概率小于第一预设概率,或者,修复故障的次数小于第一预设次数;第二动作在电子设备的网络故障为第一故障类型的情况下,成功修复故障的概率大于或等于第一预设概率,且修复故障的次数大于或等于第一预设次数。该方法可以参考图6中的S602和S603。
在一种可能的实现方式中,第一目标故障修复动作中没有第一故障修复动作列表中的第三动作,第三动作在电子设备的网络故障为第一故障类型的情况下,成功修复故障的次数大于第一预设次数,且成功修复故障的概率小于第二预设概率,第二预设概率小于第一预设概率。该方法可以参考图6中的S604和S605。
在一种可能的实现方式中,第一故障修复动作列表中还包括第四动作,第二动作在第四动作之前;第一目标故障修复动作还包括第四动作,则在第一目标故障修复动作中,第二动作在第一动作之前,第一动作在第四动作之前;其中,第四动作在电子设备的网络故障为第一故障类型的情况下,成功修复故障的概率大于或等于第一预设概率,修复故障的次数大于或等于第一预设次数,且第四动作为预设动作。
在一种可能的实现方式中,第一目标故障修复动作中的每个故障修复动作与上一次执行每个故障修复动作之间的时长大于或等于每个故障修复动作对应的时长。
在一种可能的实现方式中,方法包括:在电子设备的网络故障为第二故障类型的情况下,获取第二故障修复动作列表和电子设备所处的第二场景,其中,第二场景依据下述一项或多项参数进行区分:电子设备的运动速度、电子设备所接入的网络信号强度、电子设备所显示的界面内容、电子设备与所接入的网络设备之间的链路状态、或电子设备的驻网状态;第二故障修复列表中包括与第一故障修复列表中不同的动作;在第二故障修复动作列表中筛选符合第二场景的第二目标故障修复动作;执行第二目标故障修复动作。
不同的故障类型可以对应有不同的故障修复列表,有利于针对不同的故障类型进行有针对的修复,有利于提高故障修复概率,缩短故障时长。
第三方面,本申请实施例提供一种故障修复装置,该故障修复装置可以是电子设备,也可以是电子设备内的芯片或者芯片系统。该故障修复装置可以包括处理单元。该处理单元实现任一方面或任一方面的任意一种可能的实现方式中描述的一种故障修复方法。当该故障修复装置是电子设备时,该处理单元可以是处理器。该故障修复装置还可以包括存储单元,该存储单元可以是存储器。该存储单元用于存储指令,该处理单元执行该存储单元所存储的指令,以使该电子设备实现任一方面或任一方面的任意一种可能的实现方式中描述的一种故障修复方法。当该故障修复装置是电子设备内的芯片或者芯片系统时,该处理单元可以是处理器。该处理单元执行存储单元所存储的指令,以使该电子设备实现任一方面或任一方面的任意一种可能的实现方式中描述的一种故障修复方法。该存储单元可以是该芯片内的存储单元(例如,寄存器、缓存等),也可以是该电子设备内的位于该芯片外部的存储单元(例如,只读存储器、随机存取存储器等)。
在一种可能的实现方式中,处理单元,用于在故障处理装置的网络故障为第一故障类型,且故障处理装置的运动速度为第一速度的情况下,执行第一故障修复动作,其中,第一故障类型对应于第一故障修复动作列表,第一故障修复动作包括第一故障修复动作列表中不用于触发网络切换的动作;在故障处理装置的网络故障为第一故障类型,且故障处理装置的运动速度为第二速度的情况下,执行第二故障修复动作,其中,第二故障修复动作包括第一故障修复动作列表中用于触发网络切换的动作,第二速度小于第一速度。
在一种可能的实现方式中,在故障处理装置的网络故障为第一故障类型,且故障处理装置的运动速度为第一速度的情况下,故障处理装置中还显示有用于反映网络速率的信息,第一故障修复动作中还不包括第一故障修复动作列表中影响网络速率的动作。
在一种可能的实现方式中,在故障处理装置的网络故障为第一故障类型,且故障处理装置的运动速度为第一速度的情况下,故障处理装置所接入的网络信号强度大于或等于强度阈值。
在一种可能的实现方式中,在故障处理装置的网络故障为第一故障类型,且故障处理装置的运动速度为第一速度的情况下,故障处理装置还处于空闲态,第一故障修复动作中还不包括第一故障修复动作列表中不能在空闲态执行的动作,空闲态用于表示故障处理装置与所接入的网络设备之间的链路未建立。
在一种可能的实现方式中,在故障处理装置的网络故障为第一故障类型,且故障处理装置的运动速度为第一速度的情况下,故障处理装置还处于有服务状态,有服务状态用于表示故障处理装置驻网成功。
在一种可能的实现方式中,第一故障修复动作包括第一故障修复动作列表中的第一动作和第二动作;第一动作在故障处理装置的运动速度为第一速度的情况下,成功修复故障的概率小于第一预设概率,或者,修复故障的次数小于第一预设次数;第二动作在故障处理装置的运动速度为第一速度的情况下,成功修复故障的概率大于或等于第一预设概率,且修复故障的次数大于或等于第一预设次数;处理单元还用于:执行第二动作;若执行完成第二动作之后,故障处理装置的网络故障仍为第一故障类型,则执行第一动作。
在一种可能的实现方式中,第一故障修复动作中没有第一故障修复动作列表中的第三动作,第三动作在故障处理装置的运动速度为第一速度的情况下,成功修复故障的次数大于第一预设次数,且成功修复故障的概率小于第二预设概率,第二预设概率小于第一预设概率。
在一种可能的实现方式中,第一故障修复动作包括第一故障修复动作列表中的第四动作,第四动作在故障处理装置的运动速度为第一速度的情况下,成功修复故障的概率大于或等于第一预设概率,且修复故障的次数大于或等于第一预设次数,第四动作为预设动作,第二动作不是预设动作,第四动作的影响程度大于第一动作和第二动作的影响程度;处理单元还用于:在执行完成第一动作之后,若故障处理装置的网络故障仍为第一故障类型,则执行第四动作。
在一种可能的实现方式中,第一故障修复动作中的每个故障修复动作与上一次执行每个故障修复动作之间的时长大于或等于每个故障修复动作对应的第一时长;第二故障修复动作中的每个故障修复动作与上一次执行每个故障修复动作之间的时长大于或等于每个故障修复动作对应的第二时长。
在一种可能的实现方式中,处理单元还用于:在故障处理装置的网络故障为第二故障类型,且故障处理装置所接入的网络信号强度小于强度阈值的情况下,不执行第二故障修复动作列表中的动作,第二故障类型对应于第二故障修复列表,第二故障修复列表中包括与第一故障修复列表中不同的动作。
在一种可能的实现方式中,处理单元还用于:在故障处理装置的网络故障为第三故障类型,且故障处理装置还处于连接态,执行第三故障修复动作列表中的动作,第三故障类型对应于第三故障修复列表,第三故障修复列表中包括与第一故障修复列表中不同的动作,连接态用于表示故障处理装置与所接入的网络设备之间建立有链路。
在一种可能的实现方式中,处理单元还用于:在故障处理装置的网络故障为第四故障类型,且故障处理装置还处于无服务状态,不执行第四故障修复动作列表中的动作,第四故障类型对应于第四故障修复列表,无服务状态用于表示故障处理装置驻网失败,第四故障修复列表中包括与第一故障修复列表中不同的动作。
在另一种可能的实现方式中,处理单元用于:在故障修复装置的网络故障为第一故障类型的情况下,获取第一故障修复动作列表和故障修复装置所处的第一场景,其中,第一场景依据下述一项或多项参数进行区分:故障修复装置的运动速度、故障修复装置所接入的网络信号强度、故障修复装置所显示的界面内容、故障修复装置与所接入的网络设备之间的链路状态、或故障修复装置的驻网状态;在第一故障修复动作列表中筛选符合第一场景的第一目标故障修复动作;执行第一目标故障修复动作。
在一种可能的实现方式中,若第一场景依据故障修复装置的运动速度进行区分,则处理单元具体用于:若故障修复装置的运动速度满足预设条件,在第一故障修复动作列表中,删除用于触发网络切换的动作,得到第一目标故障修复动作。
在一种可能的实现方式中,若第一场景依据故障修复装置所显示的界面内容进行区分,则处理单元具体用于:若故障修复装置显示有用于反映网络速率的信息,则在第一故障修复动作列表中,删除影响网络速率的动作,得到第一目标故障修复动作。
在一种可能的实现方式中,若第一场景依据故障修复装置所接入的网络信号强度进行区分,则处理单元具体用于:若故障修复装置所接入的网络信号强度小于或等于强度阈值,则第一故障修复动作列表中没有第一目标故障修复动作。
在一种可能的实现方式中,若第一场景依据故障修复装置与所接入的网络设备之间的链路状态进行区分,则处理单元具体用于:若故障修复装置处于空闲态,在第一故障修复动作列表中,删除不能在空闲态执行的动作,得到第一目标故障修复动作,空闲态用于表示故障修复装置与所接入的网络设备之间的链路未建立。
在一种可能的实现方式中,若第一场景依据故障修复装置的驻网状态进行区分,则处理单元具体用于:若故障修复装置处于无服务状态,则第一故障修复动作列表中没有第一目标故障修复动作,无服务状态用于表示故障修复装置驻网失败。
在一种可能的实现方式中,第一故障修复动作列表中包括第一动作和第二动作,第一动作在第二动作之前;在处理单元具体用于:将第二动作调整在第一动作之前,得到第一目标故障修复动作;其中,第一动作在故障修复装置的网络故障为第一故障类型的情况下,成功修复故障的概率小于第一预设概率,或者,修复故障的次数小于第一预设次数;第二动作在故障修复装置的网络故障为第一故障类型的情况下,成功修复故障的概率大于或等于第一预设概率,且修复故障的次数大于或等于第一预设次数。
在一种可能的实现方式中,第一目标故障修复动作中没有第一故障修复动作列表中的第三动作,第三动作在故障修复装置的网络故障为第一故障类型的情况下,成功修复故障的次数大于第一预设次数,且成功修复故障的概率小于第二预设概率,第二预设概率小于第一预设概率。
在一种可能的实现方式中,第一故障修复动作列表中还包括第四动作,第二动作在第四动作之前;第一目标故障修复动作还包括第四动作,则在第一目标故障修复动作中,第二动作在第一动作之前,第一动作在第四动作之前;其中,第四动作在故障修复装置的网络故障为第一故障类型的情况下,成功修复故障的概率大于或等于第一预设概率,修复故障的次数大于或等于第一预设次数,且第四动作为预设动作。
在一种可能的实现方式中,第一目标故障修复动作中的每个故障修复动作与上一次执行每个故障修复动作之间的时长大于或等于每个故障修复动作对应的时长。
在一种可能的实现方式中,处理单元还用于:在故障修复装置的网络故障为第二故障类型的情况下,获取第二故障修复动作列表和故障修复装置所处的第二场景,其中,第二场景依据下述一项或多项参数进行区分:故障修复装置的运动速度、故障修复装置所接入的网络信号强度、故障修复装置所显示的界面内容、故障修复装置与所接入的网络设备之间的链路状态、或故障修复装置的驻网状态;第二故障修复列表中包括与第一故障修复列表中不同的动作;在第二故障修复动作列表中筛选符合第二场景的第二目标故障修复动作;执行第二目标故障修复动作。
第四方面,本申请实施例提供一种电子设备,包括一个或多个处理器和存储器;存储器与一个或多个处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,一个或多个处理器调用计算机指令以使得电子设备执行任一方面或任一方面的任意一种可能的实现方式中描述的方法。
第五方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序或指令,当计算机程序或指令在电子设备上运行时,使得电子设备执行任一方面或任一方面的任意一种可能的实现方式中描述的方法。
第六方面,本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机程序代码,当计算机程序代码在电子设备上运行时,使得电子设备执行任一方面或任一方面的任意一种可能的实现方式中描述的方法。
第七方面,本申请实施例提供一种芯片或者芯片系统,该芯片或者芯片系统应用于电子设备,该芯片或者芯片系统包括至少一个或多个处理器,一个或多个处理器用于调用计算机指令以执行任一方面或任一方面的任意一种可能的实现方式中描述的方法。
在一种可能的实现中,本申请实施例中上述描述的芯片或者芯片系统还包括至少一个存储器,该至少一个存储器中存储有指令。该存储器可以为芯片内部的存储单元,例如,寄存器、缓存等,也可以是该芯片的存储单元(例如,只读存储器、随机存取存储器等)。
应当理解的是,本申请实施例的第三方面至第七方面与本申请实施例的任一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。
附图说明
图1是一种电子设备进行多级自愈的示意性流程图;
图2是本申请实施例提供的一种电子设备的硬件结构示意图;
图3是本申请实施例提供的一种电子设备的软件架构的示意图;
图4是本申请实施例提供的一种故障处理方法的示意性流程图;
图5是本申请实施例提供的另一种故障处理方法的示意性流程图;
图6是本申请实施例提供的又一种故障处理方法的示意性流程图;
图7是本申请实施例提供的另一种故障处理方法的示意性流程图;
图8是本申请实施例提供的一种芯片的示意性框图。
具体实施方式
为了便于清楚描述本申请实施例的技术方案,以下,对本申请实施例中所涉及的部分术语和技术进行简单介绍:
1、切换小区
切换小区可以指电子设备与当前网络设备之间的通信链路迁移到另一网络设备的过程。
电子设备当前所处位置,可以同时被多个小区覆盖。在电子设备需要进行无线通信时,可以在多个小区中选取一个进行驻留,实现对蜂窝网络(例如长期演进技术(long term evolution,LTE)网络或者新无线(new radio,NR)网络)的接入。电子设备在驻留小区使用蜂窝网络出现故障时,可以从驻留小区切换至其他小区,以获得较好的信号质量和更快的网络速度,有利于对故障进行修复。
在一些示例中,切换小区可以通过添加黑小区或者指定注册小区的方式实现。切换小区也可以称为bar小区或者黑小区,本申请实施例对此不作限定。
2、抑制独立组网(stand alone,SA)
抑制SA也可以称为关闭SA、降新无线NR或者换域,本申请实施例对此不做限定。
抑制SA用于表示电子设备关闭采用独立的组网模式的网络,且在电子设备关闭SA之后,可以使用采用非独立组网模式(non stand alone,NSA)的网络。例如,第五代移动通信技术(fifth-generation mobile communication technology,5G)网络为独立组网模式的网络,第四代移动通信技术(fourth-generation mobile communication technology,4G)网络为非独立组网模式的网络。电子设备关闭5G网络后可以使用4G网络进行通信。
这样,在电子设备由于使用5G网络出现故障时,电子设备可以通过抑制SA对故障进行修复。
可以理解的是,本申请实施例使用抑制SA,用于表示更换移动通信技术,例如,从第六代移动通信技术(sixth-generation mobile communication technology,6G)更换为5G,从5G更换为4G等,本申请实施例对名称不做限定。
3、重注册
重注册也可以称为重新注册,可以用于表示电子设备在网络设备上重新进行注册的过程,以便实现与网络设备进行通信。重注册通常发生在电子设备与网络设备之间的通信中断或不稳定的情况下。通过重新注册,电子设备可以重新建立与网络设备的连接,并重新获得访问网络设备的权限。
例如,电子设备由于电子设备与网络设备之间的通信中断或不稳定导致使用蜂窝网络故障时,电子设备可以通过重注册对故障进行修复。
4、开关数据开关
开关数据开关用于表示关闭数据开关后,再打开数据开关。其中,关闭数据开关用于表示电子设备使用蜂窝数据网络的能力关闭。打开数据开关用于表示电子设备使用蜂窝数据网络的能力打开。其中,蜂窝数据网络用于表示使用蜂窝网络实现数据业务。
5、重启无线电功能(restart radio)
重启无线电功能可以用于表示电子设备重新开启电子设备的通信功能,以恢复电子设备的正常工作状态。无线电设备在长时间使用或遇到故障时,可能会出现工作异常或连接不稳定的情况。此时,重启无线电设备可以清除可能的软件或硬件故障,重新初始化设备参数,使其恢复正常工作状态。
重启无线电功能可以包括关闭无线电设备,等待一段时间(例如几秒钟),然后重新启动设备。这个过程可以手动执行,也可以设置电子设备在特定时间自动重启。在一些示例中,重启无线电功能也可以称为开关飞行模式。
例如,电子设备由于无线电设备长时间使用或遇到故障导致使用蜂窝网络卡顿时,电子设备可以通过打开飞行模式,等待几秒钟,再关闭飞行模式实现重启无线电功能,有利于对卡顿进行修复。
6、重启调制解调器(modem)
重启modem可以指将关闭modem,等待一段时间后再重新打开。电子设备包括modem,modem可以为电子设备提供蜂窝通信能力,当电子设备使用蜂窝网络出现故障时,电子设备可以通过重启modem对故障进行恢复。
7、驻网
驻网是指电子设备通过网络连接到运营商的网络设备上。
8、其他术语
在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一故障类型和第二故障类型仅仅是为了区分不同的故障类型,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a--c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。
9、电子设备
本申请实施例的电子设备可以包括具有蜂窝通信功能的手持式设备、车载设备等。例如,一些电子设备为:手机(mobile phone)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、蜂窝电话、无绳电话、会话启动协议(session initiation protocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备,5G网络中的终端设备或者未来演进的公用陆地移动通信网络(public land mobile network,PLMN)中的终端设备等,本申请实施例对此并不限定。
此外,在本申请实施例中,电子设备还可以是物联网(internet of things,IoT)系统中的终端设备,IoT是未来信息技术发展的重要组成部分,其主要技术特点是将物品通过通信技术与网络连接,从而实现人机互连,物物互连的智能化网络。
本申请实施例中的电子设备也可以称为:终端设备、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置等。
10、网络设备
网络设备可以为接入网(access network,AN)设备,或可以称为无线接入网设备(radio access network,RAN)设备。RAN设备可以为电子设备提供接入功能,负责空口侧的无线资源管理、服务质量(quality of service,QoS)管理、数据压缩和加密等功能。RAN设备可以包括5G,如NR系统中的gNB,或,5G中的基站的一个或一组(包括多个天线面板)天线面板,或者,还可以为构成gNB、传输点(transmission and reception point,TRP或者transmission point,TP)或传输测量功能(transmission measurement function,TMF)的网络节点,如基带单元(building base band unit,BBU),或,集中单元(centralized unit,CU)或分布单元(distributed unit,DU)、具有基站功能的RSU,或者有线接入网关,或者5G的核心网网元。或者,RAN设备还可以包括无线保真(wireless fidelity,WiFi)系统中的接入点(access point,AP),无线中继节点、无线回传节点、各种形式的宏基站、微基站(也称为小站)、中继站、接入点、可穿戴设备、车载设备等等。或者,RAN设备也可以包括下一代移动通信系统,例如6G的接入网设备,例如6G基站,或者在下一代移动通信系统中,该网络设备也可以有其他命名方式,其均涵盖在本申请实施例的保护范围以内,本申请对此不做任何限定。
目前,电子设备使用蜂窝网络时,容易出现故障时长较长的现象。例如,在游戏或者视频播放过程中,会出现卡顿时间较长的现象。在通话场景中,会出现一直通话呼叫失败的现象。
电子设备预设有出现故障时所执行的一系列自愈动作,当电子设备使用蜂窝网络出现故障时,电子设备可以通过这一系列自愈动作对故障进行恢复。其中,这一系列动作是按照自愈动作的影响程度逐级触发的。影响程度用于表示对用户的影响程度和/或对故障的恢复能力。自愈动作可以包括切换小区、抑制SA、重注册、开关数据开关、重启无线电功能、或者重启modem中的一个或多个。
示例性地,图1示出了一种电子设备进行多级自愈的示意性流程图。如图1所示,该方法可以包括如下步骤:
S101、电子设备使用蜂窝网络出现故障时,读取默认的自愈动作。
默认的自愈动作可以包括一个或者多个自愈动作,本申请实施例对此不做限定。当默认的自愈动作包括多个自愈动作时,这多个自愈动作存在预设的排序,排序是按照自愈动作的影响程度排序的。
S102、电子设备可以执行自愈动作。
若默认的自愈动作包括一个自愈动作,则电子设备可以执行这个自愈动作。若默认的自愈动作包括多个自愈动作,这多个自愈动作存在预设排序,则电子设备可以按照预设排序执行多个自愈动作中的第一个自愈动作,第一个自愈动作为这多个自愈动作中影响程度最小的自愈动作。
S103、在执行自愈动作之后,电子设备开始评估。
电子设备执行这个自愈动作之后,评估是否仍然存在故障。
S104、电子设备判断是否自愈成功。
若电子设备仍存在故障,则说明自愈不成功电子设备可以判断是否执行下一级自愈动作,即执行S106。
若电子设备不存在故障,则说明自愈成功,电子设备可以返回自愈成功,即执行S105。
S105、若自愈成功,则电子设备返回自愈成功。
返回自愈成功,可以表示电子设备输出自愈成功。
在一种示例中,若自愈成功,电子设备可以输出SUCCESS,通过SUCCESS表示自愈成功。
S106、若自愈不成功,则电子设备判断是否执行下一级自愈动作。
判断是否执行下一级自愈动作,用于表示判断是否还有其他自愈动作。
若默认的自愈动作包括一个自愈动作,则说明没有其他自愈动作可执行,电子设备可以不执行下一级自愈动作。若默认的自愈动作包括多个自愈动作,则说明存在其他自愈动作可执行,则电子设备可以执行多个自愈动作中的第二个自愈动作。第二个自愈动作可以称为第一个自愈动作的下一级动作。第二个自愈动作的影响程度比第一个自愈动作的影响程度大,但比多个自愈动作中的其他自愈动作的影响程度小。
S107、若不执行下一级自愈动作,则电子设备返回自愈不成功。
返回自愈不成功,可以表示电子设备输出自愈成功。
在一种示例中,若不执行下一级自愈动作,电子设备可以输出FALL或者reject,通过FALL或者reject表示自愈不成功。
S108、若执行下一级自愈动作,则电子设备执行下一级自愈动作。
若执行下一级自愈动作,电子设备执行这个自愈动作之后,评估是否仍然存在故障,即执行上述S103。
为了更好地理解图1所示的方法,下面结合具体的示例进行说明。
示例性地,电子设备使用蜂窝网络时出现故障,可执行的自愈流程包括:1)抑制SA;2)开关数据开关;3)重启无线电功能;4)重启modem。
也就是说,电子设备在出现故障时,先执行抑制SA;在执行抑制SA之后,若仍存在数据故障,则执行开关数据开关;在执行开关数据开关之后,若仍存在故障,则执行重启无线电功能;在执行重启无线电功能之后,若仍存在故障,则执行重启modem。
这种实现方式,之所以会出现故障时长较长的现象,是因为默认的自愈动作可能存在一些不合理或者无效的自愈动作,导致不能及时地修复故障,造成故障时长较长的现象。另外,默认的自愈动作是固定的,不会根据实际情况调整,灵活性较差。
有鉴于此,本申请实施例提供一种故障处理方法及相关装置,基于故障类型,确定相对应的自愈动作,并可以对这些自愈动作的执行顺序进行调整,或者可以对无效的自愈动作进行删除,有利于提高自愈动作成功的概率,进而有利于降低出现故障时长较长的概率。
本申请实施例提供的方法可以由电子设备执行。为了便于理解,首先对本申请实施例提供的电子设备的硬件结构进行介绍。
示例性地,图2示出了本申请实施例提供的一种电子设备的硬件结构示意图。如图2所示,电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
可选地,上述传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备的具体限定。在本申请另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器(modem),图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,modem可以提供蜂窝通信能力,电子设备可以通过modem实现收发短信、5G相关功能、拨打电话、接听电话等一系列蜂窝通信功能。
SIM卡接口195用于插入SIM卡,本申请实施例中描述的SIM卡可以理解为在蜂窝网络中提供用户信息、或者使用移动蜂窝网络的模块。例如,具备SIM卡插槽以及读卡装置的终端设备可以通过插入SIM卡注册移动蜂窝网络。其中,该SIM卡可以为实体卡(或称为硬卡),也可以为虚拟SIM卡(或称为软卡),例如eSIM等,本申请实施例中对该SIM卡的具体形态不做限定。
电子设备部署有SIM卡时,处理器110可以使用SIM卡进行驻网,驻网成功后,可以使用蜂窝网络。在使用蜂窝网络出现故障的情况下,处理器110可以基于故障类型获取其对应的自愈动作,并可以对这些自愈动作的执行顺序进行调整,或者可以对无效的自愈动作进行删除,得到所需执行的自愈动作,然后执行相应的自愈动作,以修复故障。
电子设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。分层架构可以采用安卓(Android)系统,也可以采用苹果(IOS)系统,还可以采用其他操作系统,本申请实施例对此不作限定。下面以分层架构的Android系统为例,示例性说明本申请实施例提供的电子设备的软件架构。
图3示出了本申请实施例提供的一种电子设备的软件架构的示意图。如图3所示,分层架构将电子设备的软件架构分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,可以将Android系统分为多层,从上到下依次为应用程序层(applications)、应用程序框架层(application framework)、硬件抽象层(hardware abstraction layer,HAL)、内核层(kernel)以及modem。
应用程序层可以包括一系列应用程序包,应用程序层通过调用应用程序框架层所提供的应用程序接口(application programming interface,API)运行应用程序。如图3所示,应用程序包可以包括浏览器、电话、游戏以及视频等应用程序。
应用程序框架层为应用程序层的应用程序提供API和编程框架。应用程序框架层包括一些预先定义的函数。如图3所示,应用程序框架层可以包括视图系统,内容提供器,以及故障处理模块等。其中,故障处理模块可以在电子设备使用蜂窝网络出现故障时,确定故障类型,并基于故障类型确定该故障类型所对应的自愈动作列表,并根据本申请实施例提供的规则,对自愈动作列表中的自愈动作的顺序进行调整,和/或,对自愈动作列表中的自愈动作进行删除,得到更新后的自愈动作列表。
电子设备可以执行更新后的自愈动作列表中影响程度最小的自愈动作,在执行该自愈动作之后,若仍存在故障,故障类型与执行该自愈动作之前的故障类型相同,且该自愈动作存在下一级自愈动作,则执行该自愈动作的下一级自愈动作。
在执行该自愈动作之后,若仍存在故障,故障类型与执行该自愈动作之前的故障类型相同,且该自愈动作没有下一级自愈动作,则结束。
在执行该自愈动作之后,若仍存在故障,故障类型与执行该自愈动作之前的故障类型不同,则基于目前的故障类型确定该故障类型所对应的自愈动作列表,重复上述步骤。
需要说明的是,该故障处理模块处于应用程序框架层仅仅为一个示例,故障处理模块还可以处于其他层或者其他芯片,本申请实施例对此不做限定。
HAL层的目的在于将硬件抽象化,可以为上层的应用提供一个统一的查询硬件设备的接口,或也可以为上层应用提供数据存储服务。如图3所示,该HAL层可以包括显示驱动模块和传感器硬件抽象。
内核层是硬件和软件之间的层。内核层用于驱动硬件,使得硬件工作。如图3所示,该内核层中可以包括下述一种或多种:显示驱动和传感器驱动。
modem可以提供蜂窝通信功能,并执行一些相关的自愈动作。
应理解,在一些实施例中,可以将实现相同功能的层称为其他名称,或者将能够实现多个层的功能的层作为一层,或者将能够实现多个层的功能的层划分为多层。本申请实施例对此不做限定。
上面结合图2和图3,介绍了本申请实施例中电子设备的软硬件结构,下面介绍应用于该电子设备的方法。
示例性地,图4示出了本申请实施例提供的一种故障处理方法的示意性流程图。如图4所示,该方法400可以包括如下步骤:
S401、电子设备使用蜂窝网络出现故障时,基于故障类型,读取默认的自愈动作。
电子设备预设有故障类型和自愈动作之间的对应关系,当出现故障时,可以基于故障类型,获取故障类型所对应的自愈动作。默认的自愈动作可以包括一个或者多个自愈动作,本申请实施例对此不做限定。当默认的自愈动作包括多个自愈动作时,这多个自愈动作存在预设的排序,排序是按照自愈动作的影响程度排序的。
示例性地,表一示出了一种故障类型与自愈动作之间的对应关系的示意图。
表一
如表一所示,故障类型可以包括通话信令异常、数据卡顿、弱信号以及数据激活失败。其中,电子设备在以下场景下,可以确定故障类型为通话信令异常:电子设备响应于通话需求,向网络设备发送请求消息,而网络设备由于一些原因拒绝了请求消息,引起通话失败。当故障类型为通话信令异常时,电子设备可以执行的自愈动作可以包括切换小区和抑制SA。
电子设备执行蜂窝数据业务时发生卡顿,可以确定故障类型为数据卡顿。其中,电子设备执行蜂窝数据业务可以理解为电子设备使用蜂窝网络打开网页、播放视频或者音乐、或者下载应用程序等业务。当故障类型为数据卡顿时,电子设备可以执行的自愈动作可以包括切换小区、抑制SA、重注册以及重启无线电功能。
电子设备使用的蜂窝网络为5G,且检测到5G信号较弱时,可以确定故障类型为弱信号。当故障类型为弱信号时,电子设备可以执行的自愈动作可以包括抑制SA。
电子设备从空闲态(即没有执行数据业务)切换到业务态(即执行数据业务),在执行蜂窝数据业务之前,可以先激活与网络设备之间的链路。若出现激活失败,则电子设备可以确定故障类型为数据激活失败。当故障类型为数据激活失败时,电子设备可以执行的自愈动作可以包括抑制SA、重注册以及重启无线电功能。
在表一所示的示例中,电子设备使用蜂窝网络出现故障时,确定故障类型,并基于故障类型和表一所示的对应关系,得到默认的自愈动作。默认的自愈动作也可以称为默认的自愈动作列表或者自愈动作列表,本申请实施例对此不做限定。
S402、电子设备基于用户场景、先验信息以及链路信息中的一个或多个信息,对默认的自愈动作进行筛选,得到更新后的自愈动作。
为了降低默认的自愈动作中包括不合理或者无效的自愈动作的概率,电子设备可以基于用户场景、先验信息以及链路信息中的一个或多个信息,对默认的自愈动作进行筛选,以删除不合理或者无效的自愈动作,并可以调整自愈动作的执行顺序,有利于缩短修复故障的时长。
1)用户场景
用户场景用于表示电子设备所处的环境或者电子设备所处的状态。在本申请实施例中,用户场景可以包括弱场环境、速度敏感场景、或者高速场景中的一个或多个。
其中,弱场环境用于表示电子设备所处位置的网络信号较差,网络信号可以为5G信号或者4G信号等。在弱场环境下,电子设备出现故障是由环境导致的,电子设备所执行的自愈动作修复故障的概率较小,有的自愈动作还会造成当电子设备处于非弱场环境下时出现上网慢的情况,导致负收益增大。因此,当电子设备处于弱场环境时,拦截所有的自愈动作,即将默认的自愈动作均删除。
速率敏感场景用于表示电子设备运行的应用包括体现运行速率的应用,体现运行速率的应用包括用于测试电子设备运行速率的应用和显示运行速率的应用等。例如,测试电子设备的配置和性能的应用可以测试电子设备的运行速率。用于下载应用程序的应用可以显示下载速率。在速率敏感场景下,默认的自愈动作中可能包含一些影响速率的自愈动作,为了降低对运功速率的影响,电子设备可以删除默认的自愈动作中影响速率的自愈动作。
示例性,电子设备使用蜂窝网络出现故障时,电子设备处于下载游戏应用过程中,显示有下载速率,若默认的自愈动作中有抑制SA,由5G切换为4G,可能会降低下载速率,电子设备显示降低后的下载速率,会影响用户的使用体验。在该场景中,电子设备可以将默认的自愈动作中的抑制SA删除。
高速场景用于表示电子设备的位置处于较快的移动状态。例如,电子设备处于高铁或者汽车上。在高速场景中,网络波动剧烈,有些自愈动作没有收益,成为无效的自愈动作。电子设备可以删除默认的自愈动作中无效的自愈动作。
例如,切换小区由于电子设备的位置移动而使得电子设备所处的位置的小区变化,导致自愈动作没有收益。抑制SA由于电子设备的位置移动而使得电子设备所处的位置没有4G信号,导致自愈动作没有收益。故若默认的自愈动作中包括切换小区或者抑制SA,电子设备可以删除切换小区或者抑制SA。
2)先验信息
先验信息用于表示自愈动作的历史执行情况,例如,自愈动作执行时电子设备所处的小区、自愈动作执行时电子设备所处的运行状态,自愈动作是否自愈成功,自愈动作的影响程度,以及上一次的执行时间等等。
电子设备可以根据以下一个或多个规则调整自愈动作的执行顺序:
在相同小区和相同运动状态下自愈次数达到T次,且成功率大于S1门限,将自愈动作提前;
在相同小区和相同运动状态下自愈次数达到T次,且成功率小于S2门限,将自愈动作删除,其中,S2小于S1;
对于影响程度比较大的自愈动作,例如重启无线电功能和重启modem,不调整自愈动作的顺序;或者,
每个自愈动作均设定有一个保护时间,当该自愈动作执行之后,在所对应的保护时间内不能再次执行该自愈动作,例如,抑制SA设定有5分钟保护时间。重注册设定有15分钟保护时间。重启无线电功能设置有30分钟保护时间。
保护时间可以是固定的,也可以是可调整的,本申请实施例对此不做限定。若保护时间是可调整的,保护时间可以根据电子设备所处的环境的变化而变化,这样,灵活性更强。
在一些示例中,自愈动作的保护时间可以与自愈动作的影响程度成正相关,即自愈动作的影响程度越大,自愈动作的保护时间越长。
可以理解的是,电子设备可以在每个自愈动作执行时,开启定时器,并记录电子设备所处的小区和电子设备所处的运行状态,并可以根据自愈动作是否自愈成功,统计自愈动作的成功率。
3)链路信息
链路信息用于表示电子设备与网络设备之间的链路状态。例如,链路信息可以包括无服务、当前服务状态、所在小区处于空闲态、所在小区处于连接态以及网络情况等等。其中,无服务用于表示电子设备驻网失败。当前服务状态用于表示电子设备驻网成功。所在处于空闲态用于表示电子设备与网络设备之前的通信链路未建立成功。所在小区处于连接态用于表示电子设备与网络设备之前的通信链路建立成功。网络情况用于表示电子设备所处小区的网络信号类型。
电子设备根据链路信息,可以确定电子设备与网络设备之间的连接状态,可以将一些默认动作中包括的无效自愈动作删除。
示例性地,电子设备使用蜂窝网络出现故障时,电子设备所在小区处于空闲态,切换小区仅能支持在连接态执行,故在默认的自愈动作中包括切换小区的情况下,电子设备可以将默认的自愈动作中的切换小区删除。
示例性地,电子设备处于无服务时,切换小区、抑制SA、重注册等自愈动作均不能生效,故电子设备可以拦截默认的自愈动作中切换小区、抑制SA以及重注册等自愈动作。
示例性地,电子设备所处小区的网络信号类型为4G,抑制SA不能生效,故电子设备可以拦截默认的自愈动作中的抑制SA。
S403、电子设备可以执行自愈动作。
若更新后的自愈动作包括一个自愈动作,则电子设备可以执行这个自愈动作。若更新后的自愈动作包括多个自愈动作,这多个自愈动作存在排序,则电子设备可以执行多个自愈动作中的第一个自愈动作。
S404、在执行自愈动作之后,电子设备开始评估。
电子设备执行这个自愈动作之后,评估是否仍然存在故障。
S405、电子设备判断是否自愈成功。
若电子设备仍存在故障,则说明自愈不成功,电子设备可以判断故障类型与执行自愈动作之前的故障类型是否相同。若故障类型与执行自愈动作之前的故障类型相同,电子设备可以判断是否执行下一级自愈动作,即执行S409。若故障类型与执行自愈动作之前的故障类型不同,电子设备可以基于此次的故障类型得到其所对应的自愈动作,并执行上述S402。
若电子设备不存在故障,则说明自愈成功,电子设备可以返回自愈成功,即执行S406。
S406、若自愈成功,则电子设备返回自愈成功。
S407、若自愈不成功,则电子设备判断是否执行下一级自愈动作。
S408、若不执行下一级自愈动作,则电子设备返回自愈不成功。
S409、若执行下一级自愈动作,则电子设备执行下一级自愈动作。
S406至S409可以参考上述S105至S108,此处不再赘述。
本申请实施例提供的故障处理方法,不同的故障类型,默认的自愈动作所包括的自愈动作不同,针对不同的故障,使用相对应的自愈动作,有利于提高自愈成功的概率,进而有利于缩短故障时长。另外,基于用户场景、先验信息以及链路信息中的一个或多个信息,对自愈动作进行筛选,以删除不合理或者无效的自愈动作,并可以调整自愈动作的执行顺序,有利于提高自愈成功的概率,进而有利于缩短修复故障的时长。
上述S402、电子设备基于用户场景、先验信息以及链路信息中的一个或多个信息,对自愈动作进行筛选,得到更新后的自愈动作,可以包括:电子设备基于用户场景,对自愈动作进行筛选,得到更新后的自愈动作。其中,用户场景包括弱场环境、速度敏感场景、高速场景以及通用场景。其中,通用场景可以为除弱场环境、速度敏感场景以及高速场景之外的场景。
电子设备在不同的场景下,筛选的规则不同。示例性地,表二示出了一种用户场景与筛选规则的对应关系。其中,筛选规则也可以称为自愈动作管理,本申请实施例对此不做限定。
表二
如表二所示,若用户场景为通用场景,则说明网络稳定,电子设备可以不对自愈动作进行筛选,更新后的自愈动作与默认的自愈动作相同。
若用户场景为弱场环境,则说明网络信号弱,环境不稳定,此时,自愈动作不能修复故障,电子设备可以拦截所有自愈动作,这样,更新后的自愈动作中不包括任何自愈动作。这种情况下,当用户场景处于非弱场环境下时,电子设备的故障修复。
若用户场景为速率敏感场景,则说明期望驻留高制式网络,此时,抑制SA为不合理的自愈动作,电子设备可以拦截抑制SA,这样,更新后的自愈动作中不包括抑制SA。
若用户场景为高速场景,则说明网络波动剧烈,此时,主动触发网络切换的自愈动作(例如切换小区和抑制SA)不能生效,电子设备可以主动触发网络切换的自愈动作,这样,更新后的自愈动作中不包括主动触发网络切换的自愈动作。
为了更好地理解该方法,下面结合图5进行说明。
图5示出了本申请实施例提供的一种故障处理方法的示意性流程图。如图5所示,该方法可以包括如下步骤:
S501、电子设备收到自愈请求,自愈请求用于请求执行自愈动作。
电子设备可以在使用蜂窝网络出现故障时,收到自愈请求。在一些实现中,自愈请求可以包括故障类型。
S502、电子设备读取配置文件中默认的自愈动作。
电子设备可以基于自愈请求,从配置文件中获取默认的自愈动作。配置文件中可以包括各种自愈动作,且这些自愈动作按照影响程度排序。
在一些示例中,配置文件中保存有上述表一所示的对应关系。电子设备可以基于自愈请求中的故障类型,从配置文件中得到此故障类型对应的自愈动作。
S503、电子设备读取用户场景。
电子设备可以实时或者周期性地检测用户场景,并可以将用户场景存储在内存或者存储器中,电子设备可以在内存或者存储器中读取用户场景。
用户场景包括弱场环境、速率敏感场景、或者高速场景中的一个或多个。除弱场环境、速率敏感场景、以及高速场景之外,用户场景还可以包括通用场景。
电子设备检测用户场景的方式可以如下:
1)电子设备可以通过判断网络信号强度,识别是否处于弱场环境。其中,网络信号强度可以包括参考信号的接收功率(reference signal received power,RSRP)的强度、参考信号的接收质量(reference signal received quality,RSRQ)的强度、或者信噪比(signal to noise ratio,SNR)的强度中的一个或多个。
示例性地,电子设备可以基于RSRP的强度判断电子设备是否处于弱场环境。若RSRP的强度大于或等于门限值S,则说明电子设备处于非弱场环境。若RSRP的强度小于门限值S,则说明电子设备处于弱场环境。在一些示例中,S可以为-115或者-110,本申请实施例对此不做限定。
示例性地,电子设备可以基于RSRP的强度、RSRQ的强度以及SNR的强度,判断电子设备是否处于弱场环境。
RSRP的强度、RSRQ的强度以及SNR的强度各自对应的门限值可以如表三所示。
表三
如表三所示,RSRP的范围为(-157,30)分贝毫瓦(dBm),RSRQ的范围为(-43.5,20)dB,SNR的范围为(-23.5,40)dB。
若电子设备与网络设备之间的通信技术采用微波(mmWave)技术,网络信号的RSRP<-115,网络信号的RSRQ<-16,且网络信号的SNR<5,则电子设备可以确定电子设备处于弱场环境。若不满足这样的条件,电子设备可以确定电子设备处于非弱场环境。
若电子设备与网络设备之间的通信技术采用Sub 6Ghz技术,网络信号的RSRP<-115,网络信号的RSRQ<-16,且网络信号的SNR<5,则电子设备可以确定电子设备处于弱场环境。若不满足这样的条件,电子设备可以确定电子设备处于非弱场环境。
若电子设备与网络设备之间的通信技术采用Sub 1Ghz技术,网络信号的RSRP<-115,网络信号的RSRQ<-16,且网络信号的SNR<5,则电子设备可以确定电子设备处于弱场环境。若不满足这样的条件,电子设备可以确定电子设备处于非弱场环境。
需要说明的是,在上述表三中,不同通信技术所对应的门限相同只是一个示例,不同通信技术所对应的门限也可以不同,本申请实施例对此不做限定。
2)电子设备可以通过判断电子设备运行的应用是否在白名单中,识别是否处于速率敏感场景。
电子设备可以预设有白名单,白名单中可以包括一个或多个应用,白名单中的应用可以是测试电子设备运行速率的应用,或者是显示电子设备运行速率的应用。
白名单中可以包括应用的标识、名称或者应用包名中的一个或多个,本申请实施例对此不做限定。若电子设备运行的应用可以在白名单中查询到,电子设备可以确定电子设备处于速率敏感场景。若电子设备运行的应用没有在白名单中查询到,电子设备可以确定电子设备处于非速率敏感场景。
示例性地,电子设备可以获取电子设备运行的应用的应用包名,并判断白名单中包括的应用包名是否存在与这些应用包名相同的包名,若存在,则说明电子设备运行的应用可以在白名单中查询到,电子设备可以确定电子设备处于速率敏感场景。若不存在,则说明电子设备运行的应用没有在白名单中查询到,电子设备可以确定电子设备处于非速率敏感场景。
3)电子设备可以通过判断传感器数据是否满足门限,识别是否处于高速场景。
在一些实现中,传感器数据可以包括加速度数据和/或速度数据。电子设备可以预设有门限,当加速度数据和/或速度数据满足门限时,电子设备确定电子设备处于高速场景。当加速度数据和/或速度数据没有满足门限时,电子设备确定电子设备处于非高速场景。
需要说明的是,通过判断传感器数据是否满足门限,识别是否处于高速场景,仅仅是一种示例,本申请实施例不限定识别高速场景的具体方式。
S504、电子设备判断用户场景是否包括弱场环境。
S505、若用户场景包括弱场环境,则电子设备拦截默认的自愈动作。
如上述表二所示,若用户场景包括弱场环境,弱场环境对应的筛选规则为拦截所有自愈动作,则电子设备可以拦截默认的自愈动作,即不执行自愈动作。
示例性地,若电子设备在播放视频时持续卡顿出现故障,电子设备检测到故障类型为数据卡顿,在上述表一所示的示例中,电子设备可以得到默认的自愈动作可以包括切换小区—>抑制SA—>重注册—>重启无线电功能。若RSRP的强度小于门限值S,用户场景包括弱场环境,则电子设备拦截默认的自愈动作,即不执行切换小区、抑制SA、重注册以及重启无线电功能。
S506、若用户场景不包括弱场环境,则电子设备判断用户场景是否包括速率敏感场景。
S507、若用户场景包括速率敏感场景,则电子设备拦截影响速率的自愈动作。
如上述表二所示,若用户场景包括速率敏感场景,速率敏感场景对应的筛选规则为拦截影响速率的自愈动作,则电子设备可以拦截影响速率的自愈动作,例如,电子设备可以拦截抑制SA。
示例性地,若电子设备在播放视频时持续卡顿出现故障,电子设备检测到故障类型为数据卡顿,在上述表一所示的示例中,电子设备可以得到默认的自愈动作可以包括切换小区—>抑制SA—>重注册—>重启无线电功能。若电子设备运行的应用中包括用于下载应用程序的应用商店,该应用商店正在下载游戏应用,则用户场景包括速率敏感场景,电子设备拦截抑制SA的自愈动作,这样,更新后的自愈动作包括切换小区—>重注册—>重启无线电功能。
S508、若用户场景不包括速率敏感场景,或者,在拦截影响速率的自愈动作之后,电子设备判断是否为高速场景。
S509、若用户场景包括高速场景,则拦截主动触发网络切换的自愈动作。
如上述表二所示,若用户场景包括高速场景,高速场景对应的筛选规则为拦截主动触发网络切换的自愈动作,则电子设备可以拦截主动触发网络切换的自愈动作,例如,电子设备可以拦截切换小区和抑制SA。
示例性地,在拦截影响速率的自愈动作之后,更新后的自愈动作包括切换小区—>重注册—>重启无线电功能。若用户场景包括高速场景,则电子设备可以拦截切换小区和抑制SA,这样,再次更新后的自愈动作包括重注册—>重启无线电功能。
S510、若用户场景不包括高速场景,或者,在拦截主动触发网络切换的自愈动作之后,电子设备进行下一步筛选。
在一些示例中,若用户场景不包括高速场景,用户场景可以为通用场景,通用场景对应的筛选规则为默认自愈动作,即不拦截默认的自愈动作中的任何动作,可以进行下一步筛选。其中,下一步筛选可以为电子设备基于先验信息和/或链路信息对默认的自愈动作进行筛选。
在另一些示例中,在拦截主动触发网络切换的自愈动作之后,电子设备可以进行下一步筛选。
若用户场景不包括高速场景,或者,在拦截主动触发网络切换的自愈动作之后,电子设备进行下一步筛选,仅仅为一个示例。在另一些示例中,若用户场景不包括高速场景,或者,在拦截主动触发网络切换的自愈动作之后,电子设备可以执行上述S403至S409。
本申请实施例提供的故障处理方法,基于用户场景对默认的自愈动作进行筛选,以删除不合理或者无效的自愈动作,有利于提高自愈成功的概率,进而有利于缩短修复故障的时长。
上述S402、电子设备基于用户场景、先验信息以及链路信息中的一个或多个信息,对默认的自愈动作进行筛选,得到更新后的自愈动作,可以包括:电子设备基于先验信息,对默认的自愈动作进行筛选,得到更新后的自愈动作。
电子设备可以基于先验信息,调整自愈动作的顺序,得到更新后的自愈动作。
为了更好地理解该方法,下面结合图6进行说明。
示例性地,图6示出了本申请实施例提供的一种故障处理方法的示意性流程图。如图6所示,该方法可以包括如下步骤:
S601、电子设备读取默认的自愈动作中的一个自愈动作。
电子设备基于先验信息对自愈动作进行筛选时,可以对默认的自愈动作进行遍历,依次读取默认的自愈动作中的每一个自愈动作。
读取默认的自愈动作中的一个自愈动作,其中,这个自愈动作可以是默认的自愈动作中的任一个自愈动作,本申请实施例对此不做限定。
S602、电子设备判断自愈动作的自愈次数是否达到T次,且成功率是否大于S1。
电子设备可以判断自愈动作在相同小区和相同运动状态下自愈次数是否达到T次,且成功率是否大于S1门限。若满足条件,电子设备可以执行S603。若不满足条件,电子设备可以执行S604。
S603、若自愈动作的自愈次数达到T次,且成功率大于S1,则电子设备调整排序,将自愈动作提前。
若在相同小区和相同运动状态下自愈次数达到T次,且成功率大于S1,则说明该自愈动作能够修复故障的概率较高,可以将该自愈动作的执行顺序提前。其中,若该自愈动作是第一个满足条件的自愈动作,电子设备可以将该自愈动作调整为默认的自愈动作中的第一个自愈动作。若该自愈动作不是第一个满足条件的自愈动作,电子设备可以将其调整在上一个满足条件的自愈动作之后。
示例性地,T为5,S1为90%。若电子设备在播放视频时持续卡顿出现故障,电子设备检测到故障类型为数据卡顿,在上述表一所示的示例中,电子设备可以得到默认的自愈动作可以包括切换小区—>抑制SA—>重注册—>重启无线电功能。若电子设备读取的自愈动作为抑制SA,且抑制SA在相同小区和相同运动状态下自愈次数达到5次,且成功率大于90%,则电子设备将抑制SA调整到切换小区之前,得到更新后的自愈动作为:抑制SA—>切换小区—>重注册—>重启无线电功能。
可选地,若自愈动作的自愈次数达到T次,且成功率大于S1,则电子设备调整排序,将自愈动作提前,可以包括:自愈动作的自愈次数达到T次,且成功率大于S1,则电子设备判断该自愈动作是否为预设自愈动作,若不是预设自愈动作,则将自愈动作提前。其中,预设自愈动作为影响程度比较大的自愈动作。若是预设自愈动作,则电子设备不将自愈动作提前。
在一些示例中,预设自愈动作为重启无线电功能和/或重启modem。若抑制SA的自愈次数达到T次,且成功率大于S1,则电子设备判断抑制SA是否为预设自愈动作。抑制SA不是预设自愈动作,则将抑制SA提前。若重启无线电功能的自愈次数达到T次,且成功率大于S1,则电子设备判断重启无线电功能是否为预设自愈动作。重启无线电功能是预设自愈动作,则不将抑制重启无线电功能提前,也就是说,重启无线电功能的执行顺序不变。
这样,可以在考虑提高修复故障的同时,还考虑对用户的影响程度。
S604、若自愈动作的自愈次数没有达到T次,或者成功率没有大于S1,则电子设备可以判断自愈动作的自愈次数是否达到T次,且成功率是否大于S2。
若在相同小区和相同运动状态下自愈次数没有达到T次,且成功率没有大于S1,则电子设备可以判断该自愈动作在相同小区和相同运动状态下自愈次数是否达到T次,且成功率是否小于S2。
S605、若自愈动作的自愈次数达到T次,且成功率小于S2,则电子设备删除自愈动作。
若自愈动作的自愈次数达到T次,且成功率小于S2,可以说明该自愈动作能够修复故障的概率较低,可以将该自愈动作删除。
示例性地,T为5,S1为90%,S2为5%。若电子设备在播放视频时持续卡顿出现故障,电子设备检测到故障类型为数据卡顿,在上述表一所示的示例中,电子设备可以得到默认的自愈动作可以包括切换小区—>抑制SA—>重注册—>重启无线电功能。若电子设备读取的自愈动作为切换小区,切换小区在相同小区和相同运动状态下成功率没有大于90%,同时,切换小区在相同小区和相同运动状态下自愈动作的自愈次数达到T次,且成功率小于5%,则电子设备将删除切换小区,得到更新后的自愈动作为:抑制SA—>重注册—>重启无线电功能。
S606、若自愈动作的自愈次数没有达到T次,且成功率没有小于S2,则电子设备可以判断该自愈动作是否在其对应的保护时间内。
每个自愈动作均对应有一个保护时间,在该保护时间内,自愈动作不会重复执行,故电子设备可以判断该自愈动作是否在其对应的保护时间内,以决定是否要执行该自愈动作。
S607、若自愈动作不在其对应的保护时间内,则读取默认的自愈动作中的下一个自愈动作。
若自愈动作不在其对应的保护时间内,则不对该自愈动作调整,可以继续读取默认的自愈动作中的下一个自愈动作,对下一个自愈动作重复上述S602至S607的过程,直至读取完默认的自愈动作中所有的自愈动作。
若自愈动作在其对应的保护时间内,电子设备可以将该自愈动作删除,即执行S605。
示例性地,若电子设备在播放视频时持续卡顿出现故障,电子设备检测到故障类型为数据卡顿,在上述表一所示的示例中,电子设备可以得到默认的自愈动作可以包括切换小区—>抑制SA—>重注册—>重启无线电功能。若电子设备读取的自愈动作为抑制SA,且抑制SA在其对应的保护时间5分钟内,电子设备可以将抑制SA删除,得到切换小区—>重注册—>重启无线电功能。
本申请实施例提供的故障处理方法,可以基于先验信息对默认的自愈动作进行排序,以便于后续先执行能够修复故障概率较大的自愈动作,有利于缩短修复故障的时长。
上述图6所示的方法,介绍基于先验信息,对默认的自愈动作进行筛选,得到更新后的自愈动作。在另一种示例中,电子设备还可以基于用户场景和先验信息对默认的自愈动作进行筛选,得到更新后的自愈动作。
在一种实现中,电子设备可以基于先验信息对基于上述图5所示的方法得到的自愈动作进行筛选,得到更新后的自愈动作。
在另一种实现中,电子设备可以基于用户场景对基于上述图6所示的方法得到的自愈动作进行筛选,得到更新后的自愈动作。
这样,更有利于缩短修复故障的时长。
上述S402、电子设备基于用户场景、先验信息以及链路信息中的一个或多个信息,对默认的自愈动作进行筛选,得到更新后的自愈动作,可以包括:电子设备基于链路信息,对默认的自愈动作进行筛选,得到更新后的自愈动作。
电子设备可以基于链路信息,对无效的动作进行删除,得到更新后的自愈动作。其中,链路信息可以包括无服务、当前服务状态、所在小区处于空闲态、所在小区处于连接态以及网络情况等等。
为了更好地理解该方法,下面结合图7进行说明。
示例性地,图7示出了本申请实施例提供的一种故障处理方法的示意性流程图。如图7所示,该方法可以包括如下步骤:
S701、电子设备读取配置文件中默认的自愈动作。
该步骤可以参考上述S502,此处不再赘述。
S702、电子设备读取当前链路状态。
电子设备可以监控电子设备与网络设备之间的链路状态,并将监控的链路状态存储在内存或者存储器中。电子设备在读取默认的自愈动作之后,可以读取当前链路状态,以根据当前链路状态,对默认的自愈动作进行筛选。
S703、电子设备判断当前链路状态是否为无服务。
S704、若当前链路状态为无服务,则电子设备可以拦截默认的自愈动作。
若当前链路状态为无服务,说明电子设备未驻网成功,此时所有的自愈动作能够修复故障的概率较小,故电子设备可以拦截默认的自愈动作,这样,电子设备不需要执行自愈动作。
S705、若当前链路状态不是无服务,则电子设备可以判断电子设备所在小区是否处于空闲态。
若当前链路状态不是无服务,则说明驻网成功,电子设备可以判断电子设备所在小区是否处于空闲态,即判断电子设备与网络设备之前的通信链路是否未建立成功。其中,通信链路是在进行业务数据传输之前需要建立的。
S706、若电子设备所在小区处于空闲态,则电子设备拦截在连接态执行的自愈动作。
若电子设备所在小区处于空闲态,则说明电子设备与网络设备之前的通信链路未建立成功,此时,在连接态能够执行的自愈动作是无效的,执行了也不能实现自愈成功,故电子设备拦截在连接态执行的自愈动作。
示例性地,在连接态执行的自愈动作可以包括切换小区。若电子设备在播放视频时持续卡顿出现故障,电子设备检测到故障类型为数据卡顿,在上述表一所示的示例中,电子设备可以得到默认的自愈动作可以包括切换小区—>抑制SA—>重注册—>重启无线电功能。若电子设备所在小区处于空闲态,则电子设备拦截切换小区,即删除切换小区,得到更新后的自愈动作为:抑制SA—>重注册—>重启无线电功能。
S707、若电子设备所在小区未处于空闲态,则电子设备判断电子设备所处小区的网络信号类型是否为5G信号。
若电子设备所在小区未处于空闲态,说明电子设备所在小区处于连接态,电子设备与网络设备之前的通信链路建立成功,电子设备可以判断所处小区的网络信号类型是否为5G信号。
需要说明的是,电子设备判断电子设备所处小区的网络信号类型是否为5G信号仅仅为一种示例,在其他示例中,电子设备可以判断电子设备所处小区的网络信号类型是否为6G信号或者4G信号,本申请实施例对此不做限定。
S708、若电子设备所处小区的网络信号类型不是5G信号,则电子设备拦截与5G信号相关的自愈动作。
若电子设备所处小区的网络信号类型不是5G信号,则与5G信号相关的自愈动作是无效的,执行了也不能实现自愈成功,故电子设备拦截与5G信号相关的自愈动作。例如,电子设备可以拦截抑制SA。
若电子设备所处小区的网络信号类型是5G信号,或者,在拦截5G信号相关的自愈动作之后,电子设备可以进行下一步筛选。其中,下一步筛选可以为电子设备基于先验信息和/或用户场景对默认的自愈动作进行筛选。
若电子设备所处小区的网络信号类型是5G信号,或者,在拦截5G信号相关的自愈动作之后,电子设备可以进行下一步筛选,仅仅为一个示例。在另一些示例中,若电子设备所处小区的网络信号类型是5G信号,或者,在拦截5G信号相关的自愈动作之后,电子设备可以执行上述S403至S409。
本申请实施例提供的故障处理方法,基于链路信息对默认的自愈动作进行筛选,以删除不合理或者无效的自愈动作,有利于提高自愈成功的概率,进而有利于缩短修复故障的时长。
上面从电子设备具体实现的角度介绍本申请实施例提供的方法,下面将结合应用场景对本申请实施例提供的方法进行介绍。
示例性地,本申请实施例提供的故障处理方法可以包括:在电子设备的网络故障为第一故障类型,且电子设备的运动速度为第一速度的情况下,电子设备执行第一故障修复动作,其中,第一故障类型对应于第一故障修复动作列表,第一故障修复动作包括第一故障修复动作列表中不用于触发网络切换的动作;在电子设备的网络故障为第一故障类型,且电子设备的运动速度为第二速度的情况下,电子设备执行第二故障修复动作,其中,第二故障修复动作包括第一故障修复动作列表中用于触发网络切换的动作,第二速度小于第一速度。
这样,在电子设备处于高速场景下,不执行第一故障修复动作列表中无效或者不合理的故障修复动作,有利于缩短故障时长。
可选地,在电子设备的网络故障为第一故障类型,且电子设备的运动速度为第一速度的情况下,电子设备中还显示有用于反映网络速率的信息,第一故障修复动作中还不包括第一故障修复动作列表中影响网络速率的动作。
这样,在电子设备处于高速场景,且处于速率敏感场景下,不执行影响网络速率的动作,有利于缩短故障时长。
可选地,在电子设备的网络故障为第一故障类型,且电子设备的运动速度为第一速度的情况下,电子设备所接入的网络信号强度大于或等于强度阈值。
可选地,在电子设备的网络故障为第一故障类型,且电子设备的运动速度为第一速度的情况下,电子设备还处于空闲态,第一故障修复动作中还不包括第一故障修复动作列表中不能在空闲态执行的动作,空闲态用于表示电子设备与所接入的网络设备之间的链路未建立。
可选地,在电子设备的网络故障为第一故障类型,且电子设备的运动速度为第一速度的情况下,电子设备还处于有服务状态,有服务状态用于表示电子设备驻网成功。
需要说明的是,本申请实施例所涉及的模块名称均可以定义为其他的名称,能够实现各模块的作用即可,不对模块的名称做具体限制。
需要说明的是,本申请实施例所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,并且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准,并提供有相应的操作入口,供用户选择授权或者拒绝。
上面已对本申请实施例的故障处理方法进行了说明,下面对本申请实施例提供的执行上述方法的装置进行描述。本领域技术人员可以理解,方法和装置可以相互结合和引用,本申请实施例提供的相关装置可以执行上述故障处理方法中的步骤。
图8为本申请实施例提供的一种芯片的结构示意图。如图8所示,芯片80包括一个或两个以上(包括两个)处理器801、通信线路802、通信接口803和存储器804。
在一些实施方式中,存储器804存储了如下的元素:可执行模块或者数据结构,或者他们的子集,或者他们的扩展集。
上述本申请实施例描述的网络卡顿的处理方法可以应用于处理器801中,或者由处理器801实现。处理器801可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述网络卡顿的处理方法的各步骤可以通过处理器801中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器801可以是通用处理器(例如,微处理器或常规处理器)、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门、晶体管逻辑器件或分立硬件组件,处理器801可以实现或者执行本申请实施例中的公开的各处理相关的方法、步骤及逻辑框图。
结合本申请实施例所公开的网络卡顿的处理方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。其中,软件模块可以位于随机存储器、只读存储器、可编程只读存储器或带电可擦写可编程存储器(electrically erasable programmable read only memory,EEPROM)等本领域成熟的存储介质中。该存储介质位于存储器804,处理器801读取存储器804中的信息,结合其硬件完成上述方法的步骤。
处理器801、存储器804以及通信接口803之间可以通过通信线路802进行通信。
在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。
本申请实施例提供的故障处理方法,可以应用在具备通信功能的电子设备中。电子设备包括终端设备,终端设备的具体设备形态等可以参照上述相关说明,此处不再赘述。
本申请实施例提供一种终端设备,该终端设备包括:包括:一个或多个处理器和存储器;存储器与一个或多个处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,一个或多个处理器调用计算机指令以使得终端设备执行上述故障处理方法。
本申请实施例提供一种芯片。芯片或者芯片系统,该芯片或者芯片系统应用于电子设备,该芯片或者芯片系统包括至少一个或多个处理器,一个或多个处理器用于调用计算机指令以执行上述实施例中的故障处理方法。其实现原理和技术效果与上述相关实施例类似,此处不再赘述。
本申请实施例还提供了一种计算机可读存储介质。计算机可读存储介质存储有计算机程序或指令。计算机程序或指令被电子设备执行时实现上述故障处理方法。上述实施例中描述的故障处理方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。如果在软件中实现,则功能可以作为一个或多个指令或代码存储在计算机可读介质上或者在计算机可读介质上传输。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。
一种可能的实现方式中,计算机可读介质可以包括RAM,ROM,只读光盘(compact disc read-only memory,CD-ROM)或其它光盘存储器,磁盘存储器或其它磁存储设备,或目标于承载的任何其它介质或以指令或数据结构的形式存储所需的程序代码,并且可由计算机访问。而且,任何连接被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,数字用户线(Digital Subscriber Line,DSL)或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘,激光盘,光盘,数字通用光盘(Digital Versatile Disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。上述的组合也应包括在计算机可读介质的范围内。
本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机程序,当计算机程序代码在电子设备上运行时,使得电子设备执行上述故障处理方法。
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
以上的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。

Claims (27)

  1. 一种故障处理方法,其特征在于,应用于电子设备,所述方法包括:
    在所述电子设备的网络故障为第一故障类型,且所述电子设备的运动速度为第一速度的情况下,所述电子设备执行第一故障修复动作,其中,所述第一故障类型对应于第一故障修复动作列表,所述第一故障修复动作包括所述第一故障修复动作列表中不用于触发网络切换的动作;
    在所述电子设备的网络故障为所述第一故障类型,且所述电子设备的运动速度为第二速度的情况下,所述电子设备执行第二故障修复动作,其中,所述第二故障修复动作包括第一故障修复动作列表中用于触发网络切换的动作,所述第二速度小于所述第一速度。
  2. 根据权利要求1所述的方法,其特征在于,在所述电子设备的网络故障为所述第一故障类型,且所述电子设备的运动速度为所述第一速度的情况下,所述电子设备中还显示有用于反映网络速率的信息,所述第一故障修复动作中还不包括所述第一故障修复动作列表中影响网络速率的动作。
  3. 根据权利要求1或2所述的方法,其特征在于,在所述电子设备的网络故障为所述第一故障类型,且所述电子设备的运动速度为所述第一速度的情况下,所述电子设备所接入的网络信号强度大于或等于强度阈值。
  4. 根据权利要求1所述的方法,其特征在于,在所述电子设备的网络故障为所述第一故障类型,且所述电子设备的运动速度为所述第一速度的情况下,所述电子设备还处于空闲态,所述第一故障修复动作中还不包括所述第一故障修复动作列表中不能在所述空闲态执行的动作,所述空闲态用于表示所述电子设备与所接入的网络设备之间的链路未建立。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,在所述电子设备的网络故障为所述第一故障类型,且所述电子设备的运动速度为所述第一速度的情况下,所述电子设备还处于有服务状态,所述有服务状态用于表示所述电子设备驻网成功。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述第一故障修复动作包括所述第一故障修复动作列表中的第一动作和第二动作;所述第一动作在所述电子设备的运动速度为所述第一速度的情况下,成功修复故障的概率小于第一预设概率,或者,修复故障的次数小于第一预设次数;所述第二动作在所述电子设备的运动速度为所述第一速度的情况下,成功修复故障的概率大于或等于所述第一预设概率,且修复故障的次数大于或等于所述第一预设次数;
    所述电子设备执行第一故障修复动作,包括:
    所述电子设备执行所述第二动作;
    若执行完成所述第二动作之后,所述电子设备的网络故障仍为所述第一故障类型,则所述电子设备执行所述第一动作。
  7. 根据权利要求6所述的方法,其特征在于,所述第一故障修复动作中没有所述第一故障修复动作列表中的第三动作,所述第三动作在所述电子设备的运动速度为所述第一速度的情况下,成功修复故障的次数大于所述第一预设次数,且成功修复故障的概率小于第二预设概率,所述第二预设概率小于所述第一预设概率。
  8. 根据权利要求6或7所述的方法,其特征在于,所述第一故障修复动作包括所述第一故障修复动作列表中的第四动作,所述第四动作在所述电子设备的运动速度为所述第一速度的情况下,成功修复故障的概率大于或等于所述第一预设概率,且修复故障的次数大于或等于所述第一预设次数,所述第四动作为预设动作,所述第二动作不是所述预设动作,所述第四动作的影响程度大于所述第一动作和所述第二动作的影响程度;
    所述方法还包括:
    在执行完成所述第一动作之后,若所述电子设备的网络故障仍为所述第一故障类型,则执行所述第四动作。
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述第一故障修复动作中的每个故障修复动作与上一次执行所述每个故障修复动作之间的时长大于或等于所述每个故障修复动作对应的第一时长;
    所述第二故障修复动作中的每个故障修复动作与上一次执行所述每个故障修复动作之间的时长大于或等于所述每个故障修复动作对应的第二时长。
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,所述方法包括:
    在所述电子设备的网络故障为第二故障类型,且所述电子设备所接入的网络信号强度小于强度阈值的情况下,所述电子设备不执行第二故障修复动作列表中的动作,所述第二故障类型对应于所述第二故障修复列表,所述第二故障修复列表中包括与所述第一故障修复列表中不同的动作。
  11. 根据权利要求1至10中任一项所述的方法,其特征在于,所述方法包括:
    在所述电子设备的网络故障为第三故障类型,且所述电子设备还处于连接态,所述电子设备执行第三故障修复动作列表中的动作,所述第三故障类型对应于所述第三故障修复列表,所述第三故障修复列表中包括与所述第一故障修复列表中不同的动作,所述连接态用于表示所述电子设备与所接入的网络设备之间建立有链路。
  12. 根据权利要求1至11中任一项所述的方法,其特征在于,所述方法包括:
    在所述电子设备的网络故障为第四故障类型,且所述电子设备还处于无服务状态,所述电子设备不执行第四故障修复动作列表中的动作,所述第四故障类型对应于所述第四故障修复列表,所述无服务状态用于表示所述电子设备驻网失败,所述第四故障修复列表中包括与所述第一故障修复列表中不同的动作。
  13. 一种故障处理方法,其特征在于,应用于电子设备,所述方法包括:
    在所述电子设备的网络故障为第一故障类型的情况下,获取第一故障修复动作列表和所述电子设备所处的第一场景,其中,所述第一场景依据下述一项或多项参数进行区分:所述电子设备的运动速度、所述电子设备所接入的网络信号强度、所述电子设备所显示的界面内容、所述电子设备与所接入的网络设备之间的链路状态、或所述电子设备的驻网状态;
    在所述第一故障修复动作列表中筛选符合所述第一场景的第一目标故障修复动作;
    执行所述第一目标故障修复动作。
  14. 根据权利要求13所述的方法,其特征在于,若所述第一场景依据所述电子设备的运动速度进行区分,则所述在所述第一故障修复动作列表中筛选符合所述第一场景的第一目标故障修复动作,包括:
    若所述电子设备的运动速度满足预设条件,在所述第一故障修复动作列表中,删除用于触发网络切换的动作,得到所述第一目标故障修复动作。
  15. 根据权利要求13或14所述的方法,其特征在于,若所述第一场景依据所述电子设备所显示的界面内容进行区分,则所述在所述第一故障修复动作列表中筛选符合所述第一场景的第一目标故障修复动作,包括:
    若所述电子设备显示有用于反映网络速率的信息,则在所述第一故障修复动作列表中,删除影响网络速率的动作,得到所述第一目标故障修复动作。
  16. 根据权利要求13至15中任一项所述的方法,其特征在于,若所述第一场景依据所述电子设备所接入的网络信号强度进行区分,则所述在所述第一故障修复动作列表中筛选符合所述第一场景的第一目标故障修复动作,包括:
    若所述电子设备所接入的网络信号强度小于或等于强度阈值,则所述第一故障修复动作列表中没有所述第一目标故障修复动作。
  17. 根据权利要求13至16中任一项所述的方法,其特征在于,若所述第一场景依据所述电子设备与所接入的网络设备之间的链路状态进行区分,则所述在所述第一故障修复动作列表中筛选符合所述第一场景的第一目标故障修复动作,包括:
    若所述电子设备处于空闲态,在所述第一故障修复动作列表中,删除不能在所述空闲态执行的动作,得到所述第一目标故障修复动作,所述空闲态用于表示所述电子设备与所接入的网络设备之间的链路未建立。
  18. 根据权利要求13至17中任一项所述的方法,其特征在于,若所述第一场景依据所述电子设备的驻网状态进行区分,则所述在所述第一故障修复动作列表中筛选符合所述第一场景的第一目标故障修复动作,包括:
    若所述电子设备处于无服务状态,则所述第一故障修复动作列表中没有所述第一目标故障修复动作,所述无服务状态用于表示所述电子设备驻网失败。
  19. 根据权利要求13至18中任一项所述的方法,其特征在于,所述第一故障修复动作列表中包括第一动作和第二动作,第一动作在第二动作之前;
    所述在所述第一故障修复动作列表中筛选符合所述第一场景的第一目标故障修复动作,包括:
    将所述第二动作调整在所述第一动作之前,得到所述第一目标故障修复动作;其中,所述第一动作在所述电子设备的网络故障为所述第一故障类型的情况下,成功修复故障的概率小于第一预设概率,或者,修复故障的次数小于第一预设次数;所述第二动作在所述电子设备的网络故障为所述第一故障类型的情况下,成功修复故障的概率大于或等于所述第一预设概率,且修复故障的次数大于或等于所述第一预设次数。
  20. 根据权利要求19所述的方法,其特征在于,所述第一目标故障修复动作中没有所述第一故障修复动作列表中的第三动作,所述第三动作在所述电子设备的网络故障为所述第一故障类型的情况下,成功修复故障的次数大于所述第一预设次数,且成功修复故障的概率小于第二预设概率,所述第二预设概率小于所述第一预设概率。
  21. 根据权利要求19或20所述的方法,其特征在于,所述第一故障修复动作列表中还包括第四动作,所述第二动作在所述第四动作之前;
    所述第一目标故障修复动作还包括所述第四动作,则在所述第一目标故障修复动作中,所述第二动作在所述第一动作之前,所述第一动作在所述第四动作之前;
    其中,所述第四动作在所述电子设备的网络故障为所述第一故障类型的情况下,成功修复故障的概率大于或等于所述第一预设概率,修复故障的次数大于或等于所述第一预设次数,且所述第四动作为预设动作。
  22. 根据权利要求13至21中任一项所述的方法,其特征在于,所述第一目标故障修复动作中的每个故障修复动作与上一次执行所述每个故障修复动作之间的时长大于或等于所述每个故障修复动作对应的时长。
  23. 根据权利要求13至22中任一项所述的方法,其特征在于,所述方法包括:
    在所述电子设备的网络故障为第二故障类型的情况下,获取第二故障修复动作列表和所述电子设备所处的第二场景,其中,所述第二场景依据下述一项或多项参数进行区分:所述电子设备的运动速度、所述电子设备所接入的网络信号强度、所述电子设备所显示的界面内容、所述电子设备与所接入的网络设备之间的链路状态、或所述电子设备的驻网状态;所述第二故障修复列表中包括与所述第一故障修复列表中不同的动作;
    在所述第二故障修复动作列表中筛选符合所述第二场景的第二目标故障修复动作;
    执行所述第二目标故障修复动作。
  24. 一种电子设备,其特征在于,所述电子设备包括:一个或多个处理器和存储器;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行如权利要求1至12中任一项所述的方法,或者,使得所述电子设备执行如权利要求13至23中任一项所述的方法。
  25. 一种芯片系统,其特征在于,所述芯片系统应用于电子设备,所述芯片系统包括一个或多个处理器,所述一个或多个处理器用于调用计算机指令以使得所述电子设备执行如权利要求1至12中任一项所述的方法,或者,使得所述电子设备执行如权利要求13至23中任一项所述的方法。
  26. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至12中任一项所述的方法,或者,使得所述电子设备执行如权利要求13至23中任一项所述的方法。
  27. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码在电子设备上运行时,使得所述电子设备执行如权利要求1至12中任一项所述的方法,或者,使得所述电子设备执行如权利要求13至23中任一项所述的方法。
PCT/CN2025/071721 2024-01-10 2025-01-10 故障处理方法及相关装置 Pending WO2025149028A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410046036.7A CN120343597A (zh) 2024-01-10 2024-01-10 故障处理方法及相关装置
CN202410046036.7 2024-01-10

Publications (1)

Publication Number Publication Date
WO2025149028A1 true WO2025149028A1 (zh) 2025-07-17

Family

ID=96354627

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2025/071721 Pending WO2025149028A1 (zh) 2024-01-10 2025-01-10 故障处理方法及相关装置

Country Status (2)

Country Link
CN (1) CN120343597A (zh)
WO (1) WO2025149028A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009096883A1 (en) * 2008-01-18 2009-08-06 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for radio link failure recovery in a telecommunication system
CN114025373A (zh) * 2021-10-12 2022-02-08 维沃移动通信有限公司 网络故障处理方法及装置
CN116662101A (zh) * 2022-10-28 2023-08-29 荣耀终端有限公司 电子设备的故障修复方法和电子设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009096883A1 (en) * 2008-01-18 2009-08-06 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for radio link failure recovery in a telecommunication system
CN114025373A (zh) * 2021-10-12 2022-02-08 维沃移动通信有限公司 网络故障处理方法及装置
CN116662101A (zh) * 2022-10-28 2023-08-29 荣耀终端有限公司 电子设备的故障修复方法和电子设备

Also Published As

Publication number Publication date
CN120343597A (zh) 2025-07-18

Similar Documents

Publication Publication Date Title
US11991049B2 (en) Communication method, apparatus, and system
US12418463B2 (en) Information acquisition method and apparatus, storage medium, and electronic apparatus
US9491690B2 (en) Efficient searching for communications networks
CN112449361B (zh) 检测方法、装置及系统
US11936541B2 (en) Method and apparatus for prediction of device failure
US12464442B2 (en) Detecting UE ping-ponging between different network nodes
US20230232360A1 (en) Method and system for binding information service
WO2015151248A1 (ja) 通信システム及び通信方法
US12574985B2 (en) Methods and apparatuses for policy control
CN107770789A (zh) 确定寻呼区域的方法及装置
EP4492868A1 (en) Ursp rule optimization methods and apparatuses, terminal, network side device and medium
CN107404728A (zh) 一种网络问题定位的方法及装置
CN117715130A (zh) 网络切换方法、装置、终端及存储介质
CN120603005B (zh) 一种基于多模态eSIM端侧不同运营商信源自动切网方法
US20160309411A1 (en) Dynamic ungrouping of ip packets before cellular transmission
CN115088290A (zh) 无线接入技术间小区测量
CN117014922A (zh) 行为处理方法、装置、终端、网络侧设备及介质
CN117835347A (zh) 网络搜索方法、装置、设备及存储介质
CN120343597A (zh) 故障处理方法及相关装置
CN112584408B (zh) 无线链路失败重建的方法、装置和电子设备
CN117062099A (zh) 辅助终端选网的方法、装置及存储介质
CN116846771A (zh) 业务操作方法、装置、终端及可读存储介质
CN107864483B (zh) 接入结果的检测方法、装置及计算机存储介质
KR20220024814A (ko) 이동성 상태 평가 방법 및 단말 장비
CN113748703B (zh) 用于配置终端设备的监视的方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 25738555

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE