CN110795267B - Hierarchical automatic recovery method and related equipment - Google Patents

Hierarchical automatic recovery method and related equipment Download PDF

Info

Publication number
CN110795267B
CN110795267B CN201911040497.9A CN201911040497A CN110795267B CN 110795267 B CN110795267 B CN 110795267B CN 201911040497 A CN201911040497 A CN 201911040497A CN 110795267 B CN110795267 B CN 110795267B
Authority
CN
China
Prior art keywords
hierarchy
layer
control module
master control
abnormality diagnosis
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.)
Active
Application number
CN201911040497.9A
Other languages
Chinese (zh)
Other versions
CN110795267A (en
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201911040497.9A priority Critical patent/CN110795267B/en
Publication of CN110795267A publication Critical patent/CN110795267A/en
Application granted granted Critical
Publication of CN110795267B publication Critical patent/CN110795267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0709Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/30Network data restoration; Network data reliability; Network data fault tolerance

Abstract

The application discloses a layering automatic recovery method and related equipment, which are applied to electronic equipment, wherein a communication subsystem framework of the electronic equipment comprises a plurality of layering, the electronic equipment comprises a master control module, and the method comprises the following steps: the master control module receives an abnormality diagnosis result sent by a first hierarchy, wherein the plurality of hierarchies comprise the first hierarchy; the master control module determines a second hierarchy to be restored based on the abnormality diagnosis result, the plurality of hierarchies including the second hierarchy; and the master control module informs the second layering to automatically recover. By adopting the embodiment of the application, the communication abnormity problem can be solved through a layered automatic recovery mechanism.

Description

Hierarchical automatic recovery method and related equipment
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a hierarchical automatic recovery method and related devices.
Background
The communication subsystem is one of the subsystems of an electronic device, such as a smart phone or the like. The communication subsystem architecture of the electronic device is designed in a layered manner, the layered design simplifies the realization of a complex system, each layer performs its own role, and the communication is performed through the interlayer interfaces of the upper layer and the lower layer. An abnormality in layering may cause communication abnormality, so it is necessary how to solve the communication abnormality caused by the layering abnormality.
Disclosure of Invention
The embodiment of the application provides a layered automatic recovery method and related equipment, which are used for solving the problem of communication abnormality through a layered automatic recovery mechanism.
In a first aspect, an embodiment of the present application provides an automatic recovery method, applied to an electronic device, where a communication subsystem architecture of the electronic device includes a plurality of layers, and the electronic device includes a master control module, where the method includes:
the master control module receives an abnormality diagnosis result sent by a first hierarchy, wherein the plurality of hierarchies comprise the first hierarchy;
the master control module determines a second hierarchy to be restored based on the abnormality diagnosis result, the plurality of hierarchies including the second hierarchy;
and the master control module informs the second layering to automatically recover.
In a second aspect, an embodiment of the present application provides an automatic recovery apparatus applied to an electronic device, where a communication subsystem architecture of the electronic device includes a plurality of layers, the apparatus includes:
the system comprises a master control module, a first hierarchical layer and a second hierarchical layer, wherein the master control module is used for receiving an abnormality diagnosis result sent by the first hierarchical layer; determining a second hierarchy to be restored based on the abnormality diagnosis result, the plurality of hierarchies including the second hierarchy; and notifying the second layering to automatically restore.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing steps in the method described in the first aspect of the embodiment of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to perform some or all of the steps described in the method according to the first aspect of the embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps described in the method according to the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, the master control module of the electronic device receives the abnormal diagnosis result sent by the first layer, then determines the second layer to be recovered based on the abnormal diagnosis result, and finally notifies the second layer to perform automatic recovery, so as to solve the problem of communication abnormality. In addition, the layering to be recovered is comprehensively determined through the master control module, so that the accuracy of layered recovery is improved, and the accuracy of solving communication abnormality is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 1B is a schematic diagram of communication between a master control module and a communication subsystem architecture according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a hierarchical automatic recovery method according to an embodiment of the present application;
FIG. 3 is a flowchart of another hierarchical auto-recovery method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a layered automatic restoration device according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
The following will describe in detail.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims of this application and in the drawings, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In the following, some terms in the present application are explained for easy understanding by those skilled in the art.
The electronic device may include various handheld devices, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of User Equipment (UE), mobile Station (MS), terminal devices (terminal devices), etc.
As shown in fig. 1A, fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device includes a processor, memory, signal processor, communication interface, display screen, speaker, microphone, random access memory (Random Access Memory, RAM), camera, sensor, and the like. The device comprises a memory, a signal processor, a display screen, a loudspeaker, a microphone, a RAM, a camera and a sensor, wherein the memory, the signal processor, the display screen, the loudspeaker, the microphone, the RAM, the camera and the sensor are connected with the processor, and a communication interface is connected with the signal processor.
The display screen may be a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), an Active Matrix Organic Light-Emitting Diode panel (AMOLED), or the like.
The camera may be a normal camera or an infrared camera, which is not limited herein. The camera may be a front camera or a rear camera, which is not limited herein.
Wherein the sensor comprises at least one of: light sensing sensors, gyroscopes, infrared proximity sensors, fingerprint sensors, pressure sensors, etc. Wherein a light sensor, also called ambient light sensor, is used to detect the ambient light level. The light sensor may comprise a photosensitive element and an analog-to-digital converter. The photosensitive element is used for converting the collected optical signals into electric signals, and the analog-to-digital converter is used for converting the electric signals into digital signals. Optionally, the optical sensor may further include a signal amplifier, where the signal amplifier may amplify the electrical signal converted by the photosensitive element and output the amplified electrical signal to the analog-to-digital converter. The photosensitive element may include at least one of a photodiode, a phototransistor, a photoresistor, and a silicon photocell.
The processor is a control center of the electronic device, and is connected with various parts of the whole electronic device by various interfaces and lines, and executes various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory and calling data stored in the memory, so that the electronic device is monitored as a whole.
The processor may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The memory is used for storing software programs and/or modules, and the processor executes the software programs and/or modules stored in the memory so as to execute various functional applications of the electronic device and data processing. The memory may mainly include a memory program area and a memory data area, wherein the memory program area may store an operating system, a software program required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The communication subsystem architecture of the electronic device comprises a plurality of layers, wherein the layers comprise an application layer, a service framework layer, an interface layer, a protocol stack upper layer, a protocol stack lower layer, a driving layer and a hardware layer. The electronic device further comprises a master control module, and the master control module is a virtual module. The master control module can communicate with each layer, and a communication schematic diagram between the master control module and the communication subsystem architecture is shown in fig. 1B.
The embodiments of the present application are described in detail below.
As shown in fig. 2, the method for automatically recovering layering provided in the embodiment of the present application is applied to an electronic device, where a communication subsystem architecture of the electronic device includes a plurality of layering, and the electronic device includes a master control module, and specifically includes the following steps:
step 201: the master control module receives an abnormality diagnosis result sent by a first hierarchy, and the plurality of hierarchies comprise the first hierarchy.
The first hierarchical layer may be, for example, an application layer, a service framework layer, an interface layer, a protocol stack upper layer, a protocol stack lower layer, a driver layer, and a hardware layer.
In one implementation of the present application, each of the tiers has abnormality diagnostic capabilities, and abnormality diagnostics performed by each of the tiers are independent. That is, the abnormality diagnosis by each of the layers is not mutually interfered.
It can be seen that in the embodiment of the present application, each layer can be diagnosed individually, so that interference between layers can be avoided, and accuracy of anomaly diagnosis is improved.
In one implementation of the present application, before an anomaly diagnosis is performed by a third hierarchy, the third hierarchy determines a state of a fourth hierarchy, the plurality of hierarchies including the third hierarchy and the fourth hierarchy, the third hierarchy being higher than the fourth hierarchy. That is, the higher layer determines the state of the lower layer (e.g., the higher layer reads the state of the lower layer through the interlayer interface) before performing the abnormality diagnosis. For example, assuming that the third layer is an application layer and the fourth layer is a service framework layer, the application layer needs to determine the state of the service framework layer before performing the anomaly diagnosis.
It can be seen that in the embodiment of the present application, before the higher layer performs the anomaly diagnosis, the state of the lower layer is determined, so that it can be determined whether the higher layer needs the anomaly diagnosis, thereby avoiding the useless anomaly diagnosis and reducing the power consumption of the electronic device.
In an implementation manner of the present application, when the state of the third hierarchy is abnormal and the state of the fourth hierarchy is normal, the third hierarchy is automatically restored. That is, when the state of the higher layer is abnormal and the state of the lower layer is normal, the higher layer is automatically restored. For example, assuming that the third layer is an application layer and the fourth layer is a service framework layer, if the state of the application layer is abnormal and the state of the service framework layer is normal, the application layer automatically resumes.
It can be seen that in the embodiment of the present application, when the higher layer determines that the layer to be restored is self, the higher layer directly performs the automatic restoration operation, without the control of the master control module, so that the signaling overhead is reduced, and the power consumption of the electronic device is reduced.
In an implementation manner of the present application, the abnormality diagnosis result is obtained by performing abnormality diagnosis on the first hierarchy under a condition that a state of a fifth hierarchy is abnormal and the state of the first hierarchy is normal, where the plurality of hierarchies includes the fifth hierarchy, and the fifth hierarchy is higher than the first hierarchy. That is, when the state of the higher layer is abnormal and the state of the lower layer is also abnormal, the lower layer performs abnormality diagnosis, and informs the master control module of the diagnosis result of the abnormality diagnosis, and the master control module decides the hierarchy to be recovered. For example, assuming that the fifth layer is an application layer, the first layer is a service framework layer, if the state of the application layer is abnormal, and the state of the service framework layer is abnormal, the service framework layer performs abnormality diagnosis to obtain the abnormality diagnosis result, and informs the master control module of the diagnosis result of the abnormality diagnosis, and the master control module determines the layer to be recovered.
The abnormality diagnosis of the first hierarchy is performed by informing the first hierarchy when the master control module detects that the state of the fifth hierarchy is abnormal and the state of the first hierarchy is abnormal.
In an implementation manner of the present application, the abnormality diagnosis result is sent by the first hierarchy in a case where the abnormality diagnosis result is that the electronic device processes an abnormality or a temporary network abnormality.
Further, if the abnormality diagnosis result is a fixed network environment reason, the first hierarchy does not send the abnormality diagnosis result to the master control module, that is, does not trigger hierarchy automatic recovery.
Step 202: the master control module determines a second hierarchy to be restored based on the abnormality diagnosis result, the plurality of hierarchies including the second hierarchy.
In an implementation manner of the present application, the master control module determines a second hierarchical layer to be restored based on the abnormality diagnosis result, including: the master control module determines a second hierarchy to be recovered based on a first mapping relation and the abnormal diagnosis result, wherein the first mapping relation is associated with the abnormal diagnosis result and the hierarchy to be recovered, and the first mapping relation is shown in table 1.
TABLE 1
Abnormality diagnosis result To-be-restored layering
Electronic device handling exceptions High-rise building
Temporary network anomalies Low layer
...... ......
For example, assuming that the fifth hierarchy is an application layer, the first hierarchy is a service framework layer, if the anomaly diagnosis result sent by the service framework layer is a temporary network anomaly, the hierarchy to be recovered is obtained through table 1, and the lower hierarchy is the service framework layer in the application layer and the service framework layer, so that the obtained second hierarchy is determined to be the service framework layer. For another example, assuming that the fifth layer is an application layer, the first layer is a service framework layer, if the abnormality diagnosis result sent by the service framework layer is that the electronic device processes the abnormality, the layer to be recovered is obtained through table 1, and the upper layer in the application layer and the service framework layer is the application layer, so that the obtained second layer is determined to be the application layer.
In an implementation manner of the present application, the determining, by the master control module of the electronic device, a second hierarchy based on the abnormality diagnosis result includes:
the master control module acquires the states of the multiple layers;
the master control module determines a second hierarchy based on the status of the plurality of hierarchies and the anomaly diagnostic result.
In an implementation of the present application, the master control module determines a second hierarchy based on the states of the plurality of hierarchies and the abnormality diagnosis result, including:
the master control module determines a second hierarchy to be recovered based on a second mapping relationship, states of the plurality of hierarchies and the abnormality diagnosis result, wherein the second mapping relationship is associated with the hierarchy states, the abnormality diagnosis result and the hierarchy to be recovered, and the second mapping relationship is shown in table 2.
TABLE 2
Figure BDA0002252690630000071
For example, assuming that the plurality of layers include an application layer, a service frame layer, an interface layer, an upper protocol stack layer, a lower protocol stack layer, a driving layer and a hardware layer, if the state of the application layer is abnormal, the state of the service frame layer is abnormal, the state of the interface layer is normal, the state of the upper protocol stack layer is normal, the state of the lower protocol stack layer is normal, the state of the driving layer is normal, and the state of the hardware layer is normal, the abnormal diagnosis result sent by the service frame layer is a temporary network abnormality, the layer to be recovered is a lower layer, and the lower layer is the service frame layer in the application layer and the service frame layer, so that the obtained second layer is the service frame layer. For example, assuming that the plurality of layers includes an application layer, a service frame layer, an interface layer, a protocol stack upper layer, a protocol stack lower layer, a driving layer, and a hardware layer, if the state of the application layer is abnormal, the state of the service frame layer is abnormal, the state of the interface layer is normal, the state of the protocol stack upper layer is normal, the state of the protocol stack lower layer is normal, the state of the driving layer is normal, and the state of the hardware layer is normal, the abnormality diagnosis result sent by the service frame layer is that the electronic device processes the abnormality, the layer to be recovered is a higher layer, and the higher layer is the application layer in the application layer and the service frame layer, so that the obtained second layer is determined to be the application layer.
In an implementation manner of the present application, the determining, by the master control module of the electronic device, a second hierarchy based on the abnormality diagnosis result includes:
the master control module acquires a communication connection record of the electronic equipment;
the master control module analyzes the communication connection record to obtain the communication connection characteristics of the electronic equipment;
the overall control module determines a second hierarchy based on the communication connection characteristics and the anomaly diagnostic result.
The communication connection record is a communication connection record of the electronic device within a first time period (such as within 10min, within 30min, within 1h, within 3h, etc.).
Wherein the communication connection feature is used to characterize a communication connection condition of the electronic device in the first period. The communication connection feature is, for example, always in a connected state, reconnected 3 times, reconnected 1 time, network switch (e.g., switch from a mobile network to a WIFI network, switch from a WIFI network to a mobile network, etc.), etc.
In an implementation manner of the present application, the master control module determines a second hierarchy based on the communication connection feature and the abnormality diagnosis result, including:
the master control module determines a second hierarchy to be recovered based on a third mapping relationship, the communication connection feature and the abnormality diagnosis result, wherein the third mapping relationship is associated with the communication connection feature, the abnormality diagnosis result and the hierarchy to be recovered, and the second mapping relationship is shown in table 3.
TABLE 3 Table 3
Figure BDA0002252690630000081
For example, assuming that the states of the application layer and the service framework layer in the plurality of layers are abnormal, and the states of the other layers are normal, if the abnormality diagnosis result sent by the service framework layer is a temporary network abnormality, the communication connection characteristic is always in a connection state, and the layer to be restored is a higher layer, and the higher layer in the application layer and the service framework layer is the application layer, it is determined that the obtained second layer is the application layer. For example, if the state of the application layer and the service framework layer in the plurality of layers is abnormal, and if the abnormality diagnosis result sent by the service framework layer is a temporary network abnormality, the communication connection characteristic is reconnection 3 times, the layer to be restored is obtained as a lower layer through table 2, and the lower layer in the application layer and the service framework layer is the service framework layer, so that the obtained second layer is determined to be the service framework layer.
Step 203: and the master control module informs the second layering to automatically recover.
The specific implementation mode of the automatic recovery of the second layering comprises the following steps: the second hierarchical layer retrieves an automatic recovery file corresponding to the second hierarchical layer from the first cache file to perform automatic recovery operation. The automatic recovery files corresponding to different tiers are different.
It can be seen that, in the embodiment of the present application, the master control module of the electronic device receives the abnormal diagnosis result sent by the first layer, then determines the second layer to be recovered based on the abnormal diagnosis result, and finally notifies the second layer to perform automatic recovery, so as to solve the problem of abnormal layering. In addition, the layering to be recovered is comprehensively determined through the master control module, so that the accuracy of layered recovery is improved, and the accuracy of solving communication abnormality is further improved.
In an implementation manner of the present application, after the second hierarchical layer performs automatic recovery, the method further includes:
and if the communication abnormality of the electronic equipment still exists, the master control module informs the second layering to resume automatic recovery.
Optionally, after the second hierarchical re-automatic recovery is completed, the method further comprises:
and if the communication abnormality of the electronic equipment still exists, the master control module informs the layers except the second layer to automatically recover.
Optionally, after the automatic recovery of the layers of the plurality of layers other than the second layer is completed, the method further comprises:
if the communication abnormality of the electronic equipment still exists, the electronic equipment sends first information to a background server, wherein the first information carries at least one of automatic recovery information of all layers, states of all layers and an abnormality diagnosis result, and the first information is used for requesting to solve the problem of the communication abnormality;
the electronic equipment receives second information sent by the background server, wherein the second information is sent for the first information, and the second information carries a communication abnormity solution;
the electronic device processes a communication abnormality based on the second information.
Optionally, before the electronic device sends the first information to the background server, the method further includes:
the electronic equipment determines a foreground interface;
and the electronic equipment determines the foreground interface as a setting interface.
Further, the method further comprises:
and if the foreground interface is not the setting interface, restarting the electronic equipment.
The setting interface includes, for example, a video playing interface, an audio playing interface, a game interface, a shopping interface, a voice chat interface, a text reading interface, and the like.
Optionally, before the electronic device sends the first information to the background server, the method further includes:
the electronic equipment determines a foreground application;
the electronic device determines the foreground application as a setting application.
Further, the method further comprises:
and if the foreground interface is not the set application, the electronic equipment performs restarting operation.
The setting application includes, for example, a video playing application, an audio playing application, a game application, a shopping application, an instant messaging application, a text reading application, a downloading application, and the like.
Optionally, before the electronic device sends the first information to the background server, the method further includes:
the electronic equipment determines the currently processed service;
and the electronic equipment determines the currently processed service as a set service.
Further, the method further comprises:
and if the currently processed service is not the set service, the electronic equipment performs restarting operation.
Among these setting services are, for example, file download service, video play service, audio play service, game service, payment service, text reading service, interface browsing service, online voice chat service, online video chat service, and so on.
Optionally, before the electronic device sends the first information to the background server, the method further includes:
the electronic equipment acquires the total data amount transmitted in the second time period;
the electronic device determines that the total data amount is greater than or equal to a first threshold.
Further, the method further comprises:
and if the total data amount is smaller than the first threshold value, the electronic equipment performs restarting operation.
The second time period is, for example, 1min, 3min, 6min, 8min, 10min, 1h, 2h, or other values.
The first threshold is, for example, 510MB, 10MB, 13MB, 20MB, 50MB, or other value.
Optionally, before the electronic device sends the first information to the background server, the method further includes:
the electronic equipment outputs first prompt information which is used for prompting whether restarting operation is needed to solve the problem of communication abnormality;
the electronic device determines that a negative operation for the first prompt message is detected.
Further, the method further comprises:
and if the confirmation operation aiming at the first prompt information is detected, the electronic equipment performs restarting operation.
The first prompt information may be output through voice or may be output through a dialog box, which is not limited herein.
Optionally, before the electronic device performs the restart operation, the method further includes:
the electronic device determines that the set period does not include the current system time.
Wherein the set period is, for example, 9:00am to 12:00am,14:00pm to 12:00pm, etc.
Optionally, after the automatic recovery of the layers of the plurality of layers other than the second layer is completed, the method further comprises:
if the communication abnormality of the electronic equipment still exists, the electronic equipment invokes an automatic recovery file of the communication subsystem from a second cache file;
the electronic device performs an automatic recovery operation based on the automatic recovery file of the communication subsystem.
It can be seen that in the embodiment of the application, under the condition that the hierarchical automatic recovery does not solve the problem of communication abnormality, the electronic device solves the problem of communication abnormality in other ways, so that the performance of the electronic device is improved.
Referring to fig. 3, fig. 3 is a flow chart of another hierarchical automatic recovery method provided in the embodiment of the present application, which is consistent with the embodiment shown in fig. 2, and is applied to an electronic device, where a communication subsystem architecture of the electronic device includes a plurality of hierarchies, and the electronic device includes a master control module, and specifically includes the following steps:
step 301: the master control module receives an abnormality diagnosis result sent by a first hierarchy, and the plurality of hierarchies comprise the first hierarchy.
Step 302: and the master control module acquires the states of the multiple layers.
Step 303: the master control module determines a second hierarchy based on the status of the plurality of hierarchies and the abnormality diagnostic result, the plurality of hierarchies including the second hierarchy.
Step 304: and the master control module informs the second layering to automatically recover.
It should be noted that, the specific implementation process of this embodiment may refer to the specific implementation process described in the foregoing method embodiment, which is not described herein.
In accordance with the embodiments shown in fig. 2 and 3, referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, where a communication subsystem architecture of the electronic device includes a plurality of layers, and the electronic device includes a master control module, as shown in the drawings, and includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps:
controlling the master control module to receive an abnormality diagnosis result sent by a first hierarchy, wherein the plurality of hierarchies comprise the first hierarchy;
controlling the master control module to determine a second hierarchy to be restored based on the abnormality diagnosis result, wherein the plurality of hierarchies comprise the second hierarchy;
and controlling the master control module to inform the second layering to automatically recover.
It can be seen that, in the embodiment of the present application, the master control module of the electronic device receives the abnormal diagnosis result sent by the first layer, then determines the second layer to be recovered based on the abnormal diagnosis result, and finally notifies the second layer to perform automatic recovery, so as to solve the problem of abnormal layering. In addition, the layering to be recovered is comprehensively determined through the master control module, so that the accuracy of layered recovery is improved, and the accuracy of solving communication abnormality is further improved.
In one implementation of the present application, each of the tiers has abnormality diagnostic capabilities, and abnormality diagnostics performed by each of the tiers are independent.
In one implementation of the present application, before an anomaly diagnosis is performed by a third hierarchy, the third hierarchy determines a state of a fourth hierarchy, the plurality of hierarchies including the third hierarchy and the fourth hierarchy, the third hierarchy being higher than the fourth hierarchy.
In an implementation manner of the present application, when the state of the third hierarchy is abnormal and the state of the fourth hierarchy is normal, the third hierarchy is automatically restored.
In an implementation manner of the present application, the abnormality diagnosis result is obtained by performing abnormality diagnosis on the first hierarchy under a condition that a state of a fifth hierarchy is abnormal and the state of the first hierarchy is normal, where the plurality of hierarchies includes the fifth hierarchy, and the third hierarchy is higher than the first hierarchy.
In an implementation manner of the present application, the abnormality diagnosis result is sent by the first hierarchy in a case where the abnormality diagnosis result is that the electronic device processes an abnormality or a temporary network abnormality.
In an implementation manner of the present application, in determining, by the master control module, the second hierarchical aspect based on the abnormality diagnosis result, the above program includes instructions specifically for performing the following steps:
controlling the master control module to acquire the states of the multiple layers;
and controlling the master control module to determine a second hierarchy based on the states of the plurality of hierarchies and the abnormality diagnosis result.
It should be noted that, the specific implementation process of this embodiment may refer to the specific implementation process described in the foregoing method embodiment, which is not described herein.
Referring to fig. 5, fig. 5 is a layered automatic restoration device provided in an embodiment of the present application, which is applied to an electronic device, where a communication subsystem architecture of the electronic device includes a plurality of layers, and the device includes:
the master control module 501 is configured to receive an abnormality diagnosis result sent by a first hierarchy, where the multiple hierarchies include the first hierarchy; determining a second hierarchy to be restored based on the abnormality diagnosis result, the plurality of hierarchies including the second hierarchy; and notifying the second layering to automatically restore.
It can be seen that, in the embodiment of the present application, the master control module of the electronic device receives the abnormal diagnosis result sent by the first layer, then determines the second layer to be recovered based on the abnormal diagnosis result, and finally notifies the second layer to perform automatic recovery, so as to solve the problem of abnormal layering. In addition, the layering to be recovered is comprehensively determined through the master control module, so that the accuracy of layered recovery is improved, and the accuracy of solving communication abnormality is further improved.
In one implementation of the present application, each of the tiers has abnormality diagnostic capabilities, and abnormality diagnostics performed by each of the tiers are independent.
In one implementation of the present application, before an anomaly diagnosis is performed by a third hierarchy, the third hierarchy determines a state of a fourth hierarchy, the plurality of hierarchies including the third hierarchy and the fourth hierarchy, the third hierarchy being higher than the fourth hierarchy.
In an implementation manner of the present application, when the state of the third hierarchy is abnormal and the state of the fourth hierarchy is normal, the third hierarchy is automatically restored.
In an implementation manner of the present application, the abnormality diagnosis result is obtained by performing abnormality diagnosis on the first hierarchy under a condition that a state of a fifth hierarchy is abnormal and the state of the first hierarchy is normal, where the plurality of hierarchies includes the fifth hierarchy, and the third hierarchy is higher than the first hierarchy.
In an implementation manner of the present application, the abnormality diagnosis result is sent by the first hierarchy in a case where the abnormality diagnosis result is that the electronic device processes an abnormality or a temporary network abnormality.
In an implementation of the present application, in determining the second hierarchical aspect based on the abnormality diagnosis result, the overall control module 501 is specifically configured to:
acquiring states of the plurality of layers;
a second hierarchy is determined based on the status of the plurality of hierarchies and the anomaly diagnostic result.
The present application also provides a computer readable storage medium, where the computer readable storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to perform some or all of the steps described in the electronic device in the method embodiment above.
Embodiments of the present application also provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described by an electronic device in the above method. The computer program product may be a software installation package.
The steps of a method or algorithm described in the embodiments of the present application may be implemented in hardware, or may be implemented by executing software instructions by a processor. The software instructions may be comprised of corresponding software modules that may be stored in random access Memory (Random Access Memory, RAM), flash Memory, read Only Memory (ROM), erasable programmable Read Only Memory (Erasable Programmable ROM), electrically Erasable Programmable Read Only Memory (EEPROM), registers, hard disk, a removable disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may reside in an access network device, a target network device, or a core network device. It is of course also possible that the processor and the storage medium reside as discrete components in an access network device, a target network device, or a core network device.
Those of skill in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application may be implemented, in whole or in part, in software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a digital video disc (Digital Video Disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing embodiments have been provided for the purpose of illustrating the embodiments of the present application in further detail, and it should be understood that the foregoing embodiments are merely illustrative of the embodiments of the present application and are not intended to limit the scope of the embodiments of the present application, and any modifications, equivalents, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application are included in the scope of the embodiments of the present application.

Claims (7)

1. A hierarchical automatic recovery method, applied to an electronic device, wherein a communication subsystem architecture of the electronic device includes a plurality of hierarchies, and the electronic device includes a master control module, the method comprising:
the master control module receives an abnormality diagnosis result sent by a first hierarchy, wherein the plurality of hierarchies comprise the first hierarchy; the abnormality diagnosis result is obtained by performing abnormality diagnosis on the first hierarchy under the condition that the state of a fifth hierarchy is abnormal and the state of the first hierarchy is abnormal, wherein the plurality of hierarchies comprise the fifth hierarchy, and the fifth hierarchy is higher than the first hierarchy;
the master control module determines a second hierarchy to be restored based on the abnormality diagnosis result, the plurality of hierarchies including the second hierarchy;
the master control module informs the second layering to automatically recover;
before abnormality diagnosis is performed on a third hierarchy, the third hierarchy determining a state of a fourth hierarchy, the plurality of hierarchies including the third hierarchy and the fourth hierarchy, the third hierarchy being higher than the fourth hierarchy;
and under the condition that the state of the third layering is abnormal and the state of the fourth layering is normal, the third layering is automatically recovered.
2. The method of claim 1, wherein each of the tiers has abnormality diagnostic capabilities, and wherein abnormality diagnosis by each of the tiers is independent.
3. The method according to claim 1 or 2, wherein the abnormality diagnosis result is sent by the first hierarchy in case the abnormality diagnosis result is that the electronic device handles an abnormality or a temporary network abnormality.
4. The method of claim 1 or 2, wherein the master control module determines a second hierarchy to be restored based on the anomaly diagnosis results, comprising:
the master control module acquires the states of the multiple layers;
the master control module determines a second hierarchy based on the status of the plurality of hierarchies and the anomaly diagnostic result to be restored.
5. A layered automatic restoration apparatus for an electronic device, the communication subsystem architecture of the electronic device comprising a plurality of layers, the apparatus comprising:
the system comprises a master control module, a first hierarchical layer and a second hierarchical layer, wherein the master control module is used for receiving an abnormality diagnosis result sent by the first hierarchical layer; the abnormality diagnosis result is obtained by performing abnormality diagnosis on the first hierarchy under the condition that the state of a fifth hierarchy is abnormal and the state of the first hierarchy is abnormal, wherein the plurality of hierarchies comprise the fifth hierarchy, and the fifth hierarchy is higher than the first hierarchy; determining a second hierarchy to be restored based on the abnormality diagnosis result, the plurality of hierarchies including the second hierarchy; notifying the second hierarchical layer to automatically restore; before abnormality diagnosis is performed on a third layer, the third layer determines the state of a fourth layer, the layers comprise the third layer and the fourth layer, the third layer is higher than the fourth layer, and under the condition that the state of the third layer is abnormal and the state of the fourth layer is normal, the third layer automatically restores.
6. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-4.
7. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, wherein the computer program is processed to perform the method according to any of claims 1-4.
CN201911040497.9A 2019-10-29 2019-10-29 Hierarchical automatic recovery method and related equipment Active CN110795267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911040497.9A CN110795267B (en) 2019-10-29 2019-10-29 Hierarchical automatic recovery method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911040497.9A CN110795267B (en) 2019-10-29 2019-10-29 Hierarchical automatic recovery method and related equipment

Publications (2)

Publication Number Publication Date
CN110795267A CN110795267A (en) 2020-02-14
CN110795267B true CN110795267B (en) 2023-07-07

Family

ID=69441925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911040497.9A Active CN110795267B (en) 2019-10-29 2019-10-29 Hierarchical automatic recovery method and related equipment

Country Status (1)

Country Link
CN (1) CN110795267B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116185787B (en) * 2023-04-25 2023-08-15 深圳市四格互联信息技术有限公司 Self-learning type monitoring alarm method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106444425A (en) * 2016-10-24 2017-02-22 南京航空航天大学 Design method of DCS controlled TTP/C bus controller catering to aeroengine
CN107315690A (en) * 2016-04-26 2017-11-03 广达电脑股份有限公司 The record repaired after analyzing and packaging and the method and system used
CN109901007A (en) * 2019-03-21 2019-06-18 国家电网有限公司 Low current method for locating single-phase ground fault based on Hierarchical Agent intelligent decision
CN110209579A (en) * 2019-05-28 2019-09-06 Oppo广东移动通信有限公司 Test method and electronic device
CN110380907A (en) * 2019-07-26 2019-10-25 京信通信系统(中国)有限公司 A kind of network fault diagnosis method, device, the network equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315690A (en) * 2016-04-26 2017-11-03 广达电脑股份有限公司 The record repaired after analyzing and packaging and the method and system used
CN106444425A (en) * 2016-10-24 2017-02-22 南京航空航天大学 Design method of DCS controlled TTP/C bus controller catering to aeroengine
CN109901007A (en) * 2019-03-21 2019-06-18 国家电网有限公司 Low current method for locating single-phase ground fault based on Hierarchical Agent intelligent decision
CN110209579A (en) * 2019-05-28 2019-09-06 Oppo广东移动通信有限公司 Test method and electronic device
CN110380907A (en) * 2019-07-26 2019-10-25 京信通信系统(中国)有限公司 A kind of network fault diagnosis method, device, the network equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孟海宾等.指挥控制系统软件自动检查恢复方法.《火力与指挥控制》.2012,第37卷(第s1期),158-161. *

Also Published As

Publication number Publication date
CN110795267A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN107329559B (en) Application program control method, device, terminal and storage medium
CN109346071A (en) Wake up processing method, device and electronic equipment
EP3579375A1 (en) Charging method, charging device and terminal
US10712798B2 (en) Sensor processing method of mobile terminal, storage medium, and electronic device
CN108153647A (en) log processing method, device, terminal device and storage medium
US9621986B2 (en) Electronic device, audio device, and method for supplying power to the audio device
US20220022139A1 (en) Control method for doze mode of mobile terminal, storage medium and mobile terminal
KR102262218B1 (en) Method of Recognizing Ear Jack and Electronic Device supporting the same
CN110795267B (en) Hierarchical automatic recovery method and related equipment
US20220300328A1 (en) Application optimization method and device, storage medium, and electronic equipment
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN108762983B (en) Multimedia data recovery method and device
CN107832191B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN113033584B (en) Data processing method and related equipment
CN108737655A (en) Image processing method and relevant apparatus
CN110825396B (en) Exception handling method and related equipment
WO2018084573A1 (en) Electronic device for providing battery information and operation method thereof
CN111240729B (en) Software updating method, electronic device and medium
CN110187893B (en) Method for deleting application, mobile terminal and computer readable storage medium
CN112764969A (en) Application software exception handling method and related equipment
CN107766210B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN110830495A (en) Network access management method and related equipment
WO2020113390A1 (en) Alarm clock playback method and apparatus, and electronic device
CN111984107B (en) Method and device for processing power supply abnormity of terminal equipment
CN117033084B (en) Virtual machine backup method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant