CN114218006A - Remote program fault processing method and device, electronic equipment and storage medium - Google Patents

Remote program fault processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114218006A
CN114218006A CN202111552158.6A CN202111552158A CN114218006A CN 114218006 A CN114218006 A CN 114218006A CN 202111552158 A CN202111552158 A CN 202111552158A CN 114218006 A CN114218006 A CN 114218006A
Authority
CN
China
Prior art keywords
information
fault
program
initial
fault information
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
CN202111552158.6A
Other languages
Chinese (zh)
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111552158.6A priority Critical patent/CN114218006A/en
Publication of CN114218006A publication Critical patent/CN114218006A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a remote program fault processing method, a device, electronic equipment and a storage medium; a fault information collection request including an information collection parameter may be sent to a fault program, the fault program is triggered to send initial fault information to the fault processing server based on the information collection parameter, the initial fault information is acquired, the initial fault information is stored, when an information query instruction sent by a fault processing device is received, target fault information is searched from the stored fault information based on the information query instruction, the target fault information is sent to the fault processing device, the fault processing device is triggered to display based on the target fault information, and a fault processing instruction is sent to the fault program; under the condition that a user deletes logs in terminal storage, program fault related information can be obtained, user data privacy is protected, and computing resources and storage resources are saved.

Description

Remote program fault processing method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a remote program fault processing method, a remote program fault processing device, electronic equipment and a storage medium.
Background
With the rapid development of current economy, various application programs provide corresponding programs which can be used by users in devices such as terminals and the like. During the running process of the program, a log of the program is generated, and relevant information of the user using the program is recorded.
In some cases, a program used by a user may malfunction due to the program itself or user operation. At present, a main method adopted when dealing with a program failure is to acquire a program log stored in a terminal where a program is located by a technician and deal with the program failure. However, with this scheme, if the log of the program is cleared by the user, the log of the program cannot be collected, and the whole log of the program is acquired, which may cause the data privacy of the user to be leaked.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for processing a remote program fault, an electronic device, and a storage medium, which can only obtain information related to a program fault, protect user data privacy, and save computing resources and storage resources.
The embodiment of the invention provides a remote program fault processing method, which comprises the following steps:
sending a fault information collection request comprising information collection parameters to a fault program, and triggering the fault program to send initial fault information to the fault processing server based on the information collection parameters;
acquiring the initial fault information and storing the initial fault information;
when an information query instruction sent by fault processing equipment is received, target fault information is searched from stored fault information based on the information query instruction;
and sending the target fault information to the fault processing equipment, triggering the fault processing equipment to display based on the target fault information, and sending a fault processing instruction to the fault program.
Correspondingly, an embodiment of the present invention further provides a remote program fault handling apparatus, including:
an information request unit, configured to send a failure information collection request including an information collection parameter to a failure program, and trigger the failure program to send initial failure information to the failure processing server based on the information collection parameter;
the information storage unit is used for acquiring the initial fault information and storing the initial fault information;
the device comprises an information inquiry unit, a fault processing unit and a fault processing unit, wherein the information inquiry unit is used for searching target fault information from stored fault information based on an information inquiry instruction when the information inquiry instruction sent by the fault processing equipment is received;
and the information sending unit is used for sending the target fault information to the fault processing equipment, triggering the fault processing equipment to display based on the target fault information, and sending a fault processing instruction to the fault program.
Optionally, the information storage unit includes an information analysis unit, an index setting unit, and an information storage subunit, where the information analysis unit is configured to obtain the initial fault information, analyze the initial fault information, and obtain an analysis result of the initial fault information;
the index setting unit is used for setting an information index for the initial fault information based on the analysis result of the initial fault information;
the information storage subunit is used for storing the initial fault information with the information index set.
Optionally, the information analysis unit is configured to obtain the initial fault information, and read field information in the initial fault information;
constructing an information structure of the initial fault information based on the field information;
and according to the information structure, carrying out information conversion on the initial fault information to obtain an analysis result of the initial fault information.
Optionally, the information query unit is configured to generate an information query index based on the information query instruction;
and searching target fault information corresponding to the information query index from the stored fault information according to the information query index and the information index corresponding to the stored fault information.
Optionally, the index setting unit is configured to set a field index corresponding to field data based on the field information in the analysis result of the initial fault information and the field data of each field information;
and according to the information structure, carrying out index adjustment on the field index to obtain the information index of the initial fault information.
Optionally, the information collection parameter includes a fault information collection time and/or a fault information collection size, and the information request unit is configured to send a fault information collection request including the fault information collection time and the fault information collection size to a fault program, trigger the fault program to collect fault information at the fault information collection time, and/or collect fault information until the fault information collection size is reached, generate initial fault information, and send the initial fault information to the fault processing server.
Optionally, the information requesting unit is configured to send a failure information collection request including an information collection parameter to a failure program, and trigger the failure program to send a storage address of initial failure information to the failure processing server based on the information collection parameter;
and the information storage unit is used for receiving the storage address, acquiring the initial fault information from the storage address and storing the initial fault information.
Correspondingly, the embodiment of the invention also provides the electronic equipment, which comprises a memory and a processor; the memory stores an application program, and the processor is used for running the application program in the memory to execute the steps in any one of the remote program fault processing methods provided by the embodiments of the present invention.
Correspondingly, the embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in any one of the remote program fault handling methods provided by the embodiment of the present invention.
In addition, the embodiment of the present invention further provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the computer program or instructions implement the steps in any one of the remote program fault processing methods provided by the embodiment of the present invention.
By adopting the scheme of the embodiment of the invention, a fault information collection request comprising information collection parameters can be sent to a fault program, the fault program is triggered to send initial fault information to the fault processing server based on the information collection parameters, the initial fault information is acquired and stored, when an information query instruction sent by fault processing equipment is received, target fault information is searched from the stored fault information based on the information query instruction, the target fault information is sent to the fault processing equipment, the fault processing equipment is triggered to display based on the target fault information, and a fault processing instruction is sent to the fault program; because the initial fault information is collected after the fault program sends the fault information collection request in the embodiment of the invention, even if the user deletes the log in the terminal storage, the data related to the fault can be collected, and only the information related to the program fault is obtained, thereby protecting the privacy of the user data and saving the computing resources and the storage resources.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic view of a scenario of a remote program fault handling method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a remote program fault handling method provided by an embodiment of the invention;
FIG. 3 is a schematic diagram of a technical implementation of remote program fault handling provided by an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a remote program fault handling apparatus according to an embodiment of the present invention;
FIG. 5 is another schematic structural diagram of a remote program fault handling apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a remote program fault processing method and device, electronic equipment and a computer readable storage medium. Specifically, the embodiments of the present invention provide a remote program fault handling method suitable for a remote program fault handling apparatus, which may be integrated in an electronic device.
The electronic device may be a terminal or other devices, including but not limited to a mobile terminal and a fixed terminal, for example, the mobile terminal includes but is not limited to a smart phone, a smart watch, a tablet computer, a notebook computer, a smart car, and the like, wherein the fixed terminal includes but is not limited to a desktop computer, a smart television, and the like.
The electronic device may also be a device such as a server, and the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), and a big data and artificial intelligence platform, but is not limited thereto.
The remote program fault processing method of the embodiment of the invention can be realized by a server, and can also be realized by a terminal and the server together.
The method will be described below by taking an example in which the terminal and the server implement the remote program failure processing method together.
As shown in fig. 1, the remote program fault processing system provided by the embodiment of the present invention includes a terminal 10, a server 20, and the like; the terminal 10 and the server 20 are connected via a network, such as a wired or wireless network, wherein the terminal 10 may exist as a terminal for deploying the program.
The terminal 10 may be a terminal where a failure program is located, and is configured to send initial failure information to the server 20.
The server 20 may be configured to send a failure information collection request including an information collection parameter to a failure program, and trigger the failure program to send initial failure information to the failure processing server based on the information collection parameter.
The server 20 may obtain the initial fault information, store the initial fault information, when receiving an information query instruction sent by a fault processing device, search for target fault information from the stored fault information based on the information query instruction, send the target fault information to the fault processing device, trigger the fault processing device to display based on the target fault information, and send a fault processing instruction to the fault program.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Embodiments of the present invention apply to a fault handling server, which will be described from the perspective of a remote program fault handling device, which may be integrated in a server and/or a terminal in particular.
As shown in fig. 2, a specific flow of the remote program fault handling method of this embodiment may be as follows:
201. and sending a fault information collection request comprising information collection parameters to a fault program, and triggering the fault program to send initial fault information to the fault processing server based on the information collection parameters.
The fault program is a program which has a fault on the device of the user, and the fault type may include, but is not limited to, that the user cannot log in an account, that the program does not respond to a page switching operation of the user, that the program cannot connect to a network, and the like.
Specifically, the program may be an application client, an applet, a web page, and the like, and the embodiment of the present invention does not limit the form and the function of the program.
The information collection parameter may be a parameter that instructs the failed client to collect the failure information. For example, the information collection parameters may include the time of the failure information collection by the failed client, the size of the failure information collected by the failed client, and/or the operation sequence automatically performed by the failed client, and so on.
In some alternative examples, the fault information collection request may be generated at the instruction of a technician or sent to the fault program periodically by a remote program fault handling device. For example, it may be set to send a fault information request to a program that a user logs in but does not operate within 1 hour every 1 hour, and so on.
The fault handling server may be integrated in the same device as the fault handling device, or the fault handling server may be a different device from the fault handling device. The fault handling server may process and/or store the initial fault information, etc.
In some embodiments, the initial fault information is raw, collected fault procedure initial fault information. The initial fault information and the target fault information may be the same or different, and this is not limited in the embodiment of the present invention.
It can be understood that, in order to avoid the problem of user data leakage caused by interception of the initial failure information, the failure program may store the initial failure information in the terminal or other storage location, return the initial storage address to the failure processing server, and the like.
202. And acquiring the initial fault information and storing the initial fault information.
In the actual application process, the fault processing server may directly store the initial fault information in the fault processing server itself, or may perform distributed storage, and store the initial fault information in another storage server.
In the storage process, a cloud storage technology can be further utilized, cloud storage (cloud storage) is a new concept extended and developed on the cloud computing concept, and a distributed cloud storage system (hereinafter referred to as a storage system) refers to a storage system which integrates a large number of storage devices (storage devices are also referred to as storage nodes) of various different types in a network through application software or application interfaces to cooperatively work through functions of cluster application, grid technology, distributed storage file system and the like, and provides data storage and service access functions to the outside.
203. When an information query instruction sent by fault processing equipment is received, target fault information is searched from stored fault information based on the information query instruction.
The fault processing device is a device for a technician to send an information query instruction, and the fault processing server may be integrated with the fault processing device in the same device, or the fault processing server may be a different device from the fault processing device.
For example, a client installed with an application program on a terminal used by a user is a fault program. The fault handling server may send a fault information collection request including information collection parameters to the fault program, store initial fault information, and the like. A technician may use the fault handling device to query the target fault information from the fault handling server, and so on.
The information query instruction may instruct the fault processing server to perform a search operation of the target fault information. In some examples, the information query instruction may include a user identification of the target user and/or a program identification of the failed program, and/or the like.
The target user is a user who requests processing of the faulty program.
The stored fault information may include only initial fault information of a faulty program of a target user, fault information of some other users or other faulty programs, and the like.
The target fault information is fault information generated by a fault program of a target user. The target fault information may be all information acquired by the fault program in the fault information acquisition process, or may be processed initial fault information.
204. And sending the target fault information to the fault processing equipment, triggering the fault processing equipment to display based on the target fault information, and sending a fault processing instruction to the fault program.
In particular, the fault handling instructions may instruct the faulty program to repair. For example, the fault handling instruction may instruct the faulty program to restart, or instruct the faulty program to modify some operating parameter, and so on.
The following describes the initial failure information storage in detail with respect to the acquisition of the initial failure information in step 202.
In some optional embodiments, the step of "obtaining the initial fault information and storing the initial fault information" may specifically include:
acquiring the initial fault information, and analyzing the initial fault information to obtain an analysis result of the initial fault information;
setting an information index for the initial fault information based on the analysis result of the initial fault information;
and storing the initial fault information with the information index.
By setting the information index for the initial fault information, the subsequent fault processing server can search the initial fault information from the stored fault information conveniently. Meanwhile, the initial fault information may include operation information of different functions of the fault program, the information index may be set according to the functions, and only information related to a certain function in the initial fault information may be searched in subsequent search.
Specifically, the step of "obtaining the initial fault information, analyzing the initial fault information to obtain an analysis result of the initial fault information" may include:
acquiring the initial fault information, and reading field information in the initial fault information;
constructing an information structure of the initial fault information based on the field information;
and according to the information structure, carrying out information conversion on the initial fault information to obtain an analysis result of the initial fault information.
That is, in the embodiment of the present invention, the initial failure information may be parsed to obtain field information, named fields may be identified to construct structures, and these may be converted. For example, when the structure is constructed, the structure may be derived from unstructured data, during the information conversion process, the geographic coordinates may be decoded from the IP address, or Personal Identifiable Information (PII) data may be anonymized, sensitive fields may be completely excluded, and so on.
In an actual application process, the step "searching for target fault information from stored fault information based on the information query instruction" may specifically include:
generating an information query index based on the information query instruction;
and searching target fault information corresponding to the information query index from the stored fault information according to the information query index and the information index corresponding to the stored fault information.
The information query index may include a user identifier of a target user, a program identifier of a failed program, and/or a function index of the failed program, among others.
Specifically, the information query index may be matched with the information indexes corresponding to the stored fault information one by one, and the fault information may be used as the target fault information until the information index corresponding to a certain stored fault information is completely matched with the information query index.
The step of setting an information index for the initial fault information based on the analysis result of the initial fault information may specifically include:
setting a field index corresponding to field data based on the field information in the analysis result of the initial fault information and the field data of each field information;
and according to the information structure, carrying out index adjustment on the field index to obtain the information index of the initial fault information.
For example, the field indexes are index adjusted, the same field indexes can be merged, and the like.
In some optional embodiments, the information collection parameter may include a failure information collection time and/or a failure information collection size;
at this time, the step "sending a failure information collection request including an information collection parameter to a failure program, triggering the failure program to send initial failure information to the failure processing server based on the information collection parameter" may specifically include:
sending a fault information collection request comprising fault information collection time and fault information collection size to a fault program, triggering the fault program to collect fault information at the fault information collection time, and/or collecting the fault information until the fault information collection size is reached, generating initial fault information, and sending the initial fault information to the fault processing server.
It is understood that the information collection parameter may also include a request parameter, which triggers the faulty program to display a request prompt to the user, and the user may select whether to allow the faulty program to collect information according to the request prompt.
In other optional embodiments, the step of "sending a failure information collection request including an information collection parameter to a failure program, triggering the failure program to send initial failure information to the failure processing server based on the information collection parameter" includes:
sending a fault information collection request comprising information collection parameters to a fault program, and triggering the fault program to send a storage address of initial fault information to the fault processing server based on the information collection parameters;
correspondingly, the step of "obtaining the initial fault information and storing the initial fault information" may specifically include:
and receiving the storage address, acquiring the initial fault information from the storage address, and storing the initial fault information.
By means of sending the storage address, the problems of user data leakage and the like caused by interception of initial fault information can be avoided, and the fault program can store the initial fault information in the terminal or other storage positions and return the storage address of the initial fault information to the fault processing server.
As shown in fig. 3, a technician may set a log reporting parameter through an operation and maintenance management background, specify a client (fault program) on a user terminal to report a log, and specify a reporting time and a reporting size. And the fault program acquires the reported log parameters and collects logs according to the reported log parameters. The fault program stores the log compression package to a cloud end (a distributed file server) to obtain a file address, the fault program sends the file address to the cloud end to request the log to go to the cloud end, and the cloud end takes the log compression package through the file address to process the log compression package to generate an APP log file. The log collector (such as fileboards, etc.) collects the logs and sends the collected logs to a log formatting pipeline (such as a logstash filter), the logstash filter processes the data and sends the processed data to a search database (such as ES), the search database generates an index for each field, and a log analysis dashboard, such as Kibana, can query the logs through a query language.
As can be seen from the above, the embodiment of the present invention may send a fault information collection request including an information collection parameter to a fault program, trigger the fault program to send initial fault information to the fault processing server based on the information collection parameter, acquire the initial fault information, store the initial fault information, when receiving an information query instruction sent by a fault processing device, search for target fault information from the stored fault information based on the information query instruction, send the target fault information to the fault processing device, trigger the fault processing device to display based on the target fault information, and send a fault processing instruction to the fault program; because the initial fault information is collected after the fault information collection request is sent to the fault program in the embodiment of the invention, even if a user deletes logs in a terminal storage, data related to the fault can be collected, and only information related to the program fault is obtained, so that the data privacy of the user can be protected, and the computing resources and the storage resources are saved.
In order to better implement the method, correspondingly, the embodiment of the invention also provides a remote program fault processing device.
Referring to fig. 4, the apparatus includes:
an information request unit 401, configured to send a failure information collection request, which may include an information collection parameter, to a failure program, and trigger the failure program to send initial failure information to the failure processing server based on the information collection parameter;
an information storage unit 402, configured to obtain the initial fault information and store the initial fault information;
an information query unit 403, configured to, when receiving an information query instruction sent by a fault processing device, search for target fault information from stored fault information based on the information query instruction;
an information sending unit 404, configured to send the target failure information to the failure processing device, trigger the failure processing device to perform display based on the target failure information, and send a failure processing instruction to the failure program.
In some optional embodiments, as shown in fig. 5, the information storage unit 402 may include an information analysis unit 405, an index setting unit 406, and an information storage subunit 407, where the information analysis unit 405 may be configured to obtain the initial fault information, analyze the initial fault information, and obtain an analysis result of the initial fault information;
the index setting unit 406 may be configured to set an information index for the initial fault information based on an analysis result of the initial fault information;
the information storage subunit 407 may be configured to store initial failure information in which the information index is set.
In some optional embodiments, the information analysis unit 405 may be configured to obtain the initial fault information, and read field information in the initial fault information;
constructing an information structure of the initial fault information based on the field information;
and according to the information structure, carrying out information conversion on the initial fault information to obtain an analysis result of the initial fault information.
In some optional embodiments, the information query unit 403 may be configured to generate an information query index based on the information query instruction;
and searching target fault information corresponding to the information query index from the stored fault information according to the information query index and the information index corresponding to the stored fault information.
In some optional embodiments, the index setting unit 406 may be configured to set a field index corresponding to field data based on the field information in the analysis result of the initial fault information and the field data of each field information;
and according to the information structure, carrying out index adjustment on the field index to obtain the information index of the initial fault information.
In some optional embodiments, the information collection parameter may include a failure information collection time and/or a failure information collection size, and the information request unit 401 may be configured to send a failure information collection request, which may include a failure information collection time and a failure information collection size, to a failure program, trigger the failure program to collect failure information at the failure information collection time, and/or collect failure information until the failure information collection size is reached, generate initial failure information, and send the initial failure information to the failure processing server.
In some optional embodiments, the information requesting unit 401 may be configured to send a failure information collection request, which may include an information collection parameter, to a failure program, and trigger the failure program to send a storage address of initial failure information to the failure processing server based on the information collection parameter;
the information storage unit 402 may be configured to receive the storage address, obtain the initial failure information from the storage address, and store the initial failure information.
As can be seen from the above, by a remote program fault handling apparatus, a fault information collection request including an information collection parameter may be sent to a fault program, the fault program is triggered to send initial fault information to the fault handling server based on the information collection parameter, the initial fault information is acquired, the initial fault information is stored, when an information query instruction sent by a fault handling device is received, target fault information is searched from the stored fault information based on the information query instruction, the target fault information is sent to the fault handling device, the fault handling device is triggered to display based on the target fault information, and a fault handling instruction is sent to the fault program; because the initial fault information is collected after the fault information collection request is sent to the fault program in the embodiment of the invention, even if a user deletes logs in a terminal storage, data related to the fault can be collected, and only information related to the program fault is obtained, so that the data privacy of the user can be protected, and the computing resources and the storage resources are saved.
In addition, an embodiment of the present invention further provides an electronic device, where the electronic device may be a terminal or a server, and as shown in fig. 6, a schematic structural diagram of the electronic device according to the embodiment of the present invention is shown, specifically:
the electronic device may include Radio Frequency (RF) circuitry 601, memory 602 including one or more computer-readable storage media, input unit 603, display unit 604, sensor 605, audio circuitry 606, Wireless Fidelity (WiFi) module 607, processor 608 including one or more processing cores, and power supply 609. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 602 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. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 608, and can receive and execute commands sent by the processor 608. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 6 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The electronic device may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
Audio circuitry 606, a speaker, and a microphone may provide an audio interface between a user and the electronic device. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, which is then processed by the audio data output processor 608, and then passed through the RF circuit 601 to be sent to, for example, another electronic device, or output to the memory 602 for further processing. The audio circuitry 606 may also include an earbud jack to provide communication of a peripheral headset with the electronic device.
WiFi belongs to short-distance wireless transmission technology, and the electronic device can help the user send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 607, and it provides wireless broadband internet access for the user. Although fig. 6 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 608 is a control center of the electronic device, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the mobile phone. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The electronic device also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 608 via a power management system, such that the power management system may manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 608 in the electronic device loads an executable file corresponding to a process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, so as to implement various functions as follows:
sending a fault information collection request comprising information collection parameters to a fault program, and triggering the fault program to send initial fault information to the fault processing server based on the information collection parameters;
acquiring the initial fault information and storing the initial fault information;
when an information query instruction sent by fault processing equipment is received, target fault information is searched from stored fault information based on the information query instruction;
and sending the target fault information to the fault processing equipment, triggering the fault processing equipment to display based on the target fault information, and sending a fault processing instruction to the fault program.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the remote program fault handling methods provided by the embodiment of the present invention. For example, the instructions may perform the steps of:
sending a fault information collection request comprising information collection parameters to a fault program, and triggering the fault program to send initial fault information to the fault processing server based on the information collection parameters;
acquiring the initial fault information and storing the initial fault information;
when an information query instruction sent by fault processing equipment is received, target fault information is searched from stored fault information based on the information query instruction;
and sending the target fault information to the fault processing equipment, triggering the fault processing equipment to display based on the target fault information, and sending a fault processing instruction to the fault program.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any remote program fault processing method provided in the embodiment of the present invention, beneficial effects that can be achieved by any remote program fault processing method provided in the embodiment of the present invention can be achieved, for details, see the foregoing embodiments, and are not described herein again.
According to an aspect of the application, there is also provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the method provided in the various alternative implementations in the above embodiments.
The foregoing detailed description is directed to a method, an apparatus, an electronic device, and a storage medium for remote program fault handling provided by the embodiments of the present invention, and a specific example is applied in the present disclosure to explain the principles and embodiments of the present invention, and the descriptions of the foregoing embodiments are only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A remote program fault processing method is applied to a fault processing server and comprises the following steps:
sending a fault information collection request comprising information collection parameters to a fault program, and triggering the fault program to send initial fault information to the fault processing server based on the information collection parameters;
acquiring the initial fault information and storing the initial fault information;
when an information query instruction sent by fault processing equipment is received, target fault information is searched from stored fault information based on the information query instruction;
and sending the target fault information to the fault processing equipment, triggering the fault processing equipment to display based on the target fault information, and sending a fault processing instruction to the fault program.
2. The remote program fault handling method according to claim 1, wherein the obtaining the initial fault information and storing the initial fault information comprises:
acquiring the initial fault information, and analyzing the initial fault information to obtain an analysis result of the initial fault information;
setting an information index for the initial fault information based on the analysis result of the initial fault information;
and storing the initial fault information with the information index.
3. The method according to claim 2, wherein the obtaining the initial fault information and analyzing the initial fault information to obtain an analysis result of the initial fault information comprises:
acquiring the initial fault information, and reading field information in the initial fault information;
constructing an information structure of the initial fault information based on the field information;
and according to the information structure, carrying out information conversion on the initial fault information to obtain an analysis result of the initial fault information.
4. The method according to claim 2, wherein the searching for target failure information from the stored failure information based on the information query instruction comprises:
generating an information query index based on the information query instruction;
and searching target fault information corresponding to the information query index from the stored fault information according to the information query index and the information index corresponding to the stored fault information.
5. The remote program fault handling method according to claim 2, wherein the setting an information index for the initial fault information based on the analysis result of the initial fault information includes:
setting a field index corresponding to field data based on the field information in the analysis result of the initial fault information and the field data of each field information;
and according to the information structure, carrying out index adjustment on the field index to obtain the information index of the initial fault information.
6. The remote program failure processing method according to claim 1, wherein the information collection parameter includes a failure information collection time and/or a failure information collection size;
the sending a fault information collection request including information collection parameters to a fault program, triggering the fault program to send initial fault information to the fault processing server based on the information collection parameters, includes:
sending a fault information collection request comprising fault information collection time and fault information collection size to a fault program, triggering the fault program to collect fault information at the fault information collection time, and/or collecting the fault information until the fault information collection size is reached, generating initial fault information, and sending the initial fault information to the fault processing server.
7. The remote program fault handling method of claim 1, wherein the sending a fault information collection request including an information collection parameter to a faulty program, triggering the faulty program to send initial fault information to the fault handling server based on the information collection parameter, comprises:
sending a fault information collection request comprising information collection parameters to a fault program, and triggering the fault program to send a storage address of initial fault information to the fault processing server based on the information collection parameters;
the acquiring the initial fault information and storing the initial fault information includes:
and receiving the storage address, acquiring the initial fault information from the storage address, and storing the initial fault information.
8. A remote program fault handling apparatus, comprising:
an information request unit, configured to send a failure information collection request including an information collection parameter to a failure program, and trigger the failure program to send initial failure information to the failure processing server based on the information collection parameter;
the information storage unit is used for acquiring the initial fault information and storing the initial fault information;
the device comprises an information inquiry unit, a fault processing unit and a fault processing unit, wherein the information inquiry unit is used for searching target fault information from stored fault information based on an information inquiry instruction when the information inquiry instruction sent by the fault processing equipment is received;
and the information sending unit is used for sending the target fault information to the fault processing equipment, triggering the fault processing equipment to display based on the target fault information, and sending a fault processing instruction to the fault program.
9. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the steps of the remote program fault handling method according to any one of claims 1 to 7.
10. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the remote program fault handling method according to any one of claims 1 to 7.
11. A computer program product comprising computer programs or instructions, characterized in that the computer programs or instructions, when executed by a processor, implement the steps of the remote program fault handling method according to any of claims 1 to 7.
CN202111552158.6A 2021-12-17 2021-12-17 Remote program fault processing method and device, electronic equipment and storage medium Pending CN114218006A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111552158.6A CN114218006A (en) 2021-12-17 2021-12-17 Remote program fault processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111552158.6A CN114218006A (en) 2021-12-17 2021-12-17 Remote program fault processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114218006A true CN114218006A (en) 2022-03-22

Family

ID=80703755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111552158.6A Pending CN114218006A (en) 2021-12-17 2021-12-17 Remote program fault processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114218006A (en)

Similar Documents

Publication Publication Date Title
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
CN105429775B (en) Method and device for reporting log
CN107204964B (en) Authority management method, device and system
CN105824958A (en) Method, device and system for inquiring log
CN108039963B (en) Container configuration method and device and storage medium
CN103177217B (en) A kind of file scanning method, system and client and server
CN109002547B (en) Log file storage method, mobile terminal and computer readable storage medium
CN105610878B (en) Directory uploading method, data publishing method, terminal and server
CN108809805B (en) Information interaction method and system and public account client
CN112749074B (en) Test case recommending method and device
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN103824003B (en) application program protecting method, device and terminal
CN107766351B (en) File directory identification method and device
CN111177612B (en) Page login authentication method and related device
CN115065609A (en) B-end SaaS system hybrid deployment method and system
CN104717283A (en) File downloading control method, terminal and logic processing server
CN113852450A (en) Message push feedback method and device, electronic equipment and storage medium
CN114218006A (en) Remote program fault processing method and device, electronic equipment and storage medium
CN114707793A (en) Emergency plan generation method and device, storage medium and electronic equipment
CN109240986B (en) Log processing method and device and storage medium
CN114490307A (en) Unit testing method, device and storage medium
CN114189436B (en) Multi-cluster configuration deployment method and device, electronic equipment and storage medium
CN116266147A (en) Remote equipment fault processing method and device, electronic equipment and storage medium
CN112667868A (en) Data detection method and device
CN114363406B (en) Push message processing method, device, 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