Log processing method and device
By automatically dumping log files at fault detection points and limiting the number of dumps, the problem of low collection effectiveness caused by oversized log files in the cloud system is solved, and the efficiency of troubleshooting and user experience are improved.
Patent Information
- Application Number
- CN202310973930.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-03
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2043-08-03
AI Technical Summary
In cloud systems, the rapid growth of log data results in extremely large client log files and short problem log times, resulting in low effectiveness of log collection and reducing the efficiency of troubleshooting.
By obtaining the dump switch identification of the fault scenario, downloading the configuration file from the server, automatically dumping the log file of the fault detection point, and sending the log file to the server after receiving the user upload instruction, avoiding timeliness issues and limiting the number of log dumps. Improve the effectiveness of log files.
It improves the efficiency of handling user feedback problems, ensures the validity of log files, and improves user experience.
Smart Images

Figure CN117687880B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and in particular to a log processing method and device. Background Art
[0002] Log refers to a collection of certain operations and their results of the objects specified by the system in a time-ordered manner. Log files record the information of the interaction between the system and its users. It is a data collection method that automatically captures the type, content or time of the interaction between people and system terminals. In modern cloud systems, a large amount of log data is generated every day. This data can be used to complete error diagnosis, user behavior modeling, system performance analysis, potential security risk warning and other functions. As the scale of the system expands, the scale of the corresponding log data is also growing rapidly.
[0003] At present, when a commercial user encounters a problem, the cloud can collect the log files of the client during operation through remote log collection to reproduce and handle the problem, so as to achieve the purpose of monitoring and analyzing the client's operating status and failures. However, in problem areas such as communication, there is too much log record information and the log files are too large. Since the client has limitations on the size and number of files, the time for recording problem logs is short. When users do not feedback problems in a timely manner or the user's perception is inconsistent with the network situation, the collected logs will have low effectiveness, causing the client to repeatedly feedback log files, thereby reducing the efficiency of handling user feedback problems. Summary of the invention
[0004] The present application provides a log processing method and device, which can improve the efficiency of processing fault problems reported by users.
[0005] In a first aspect, the present application provides a log processing method, including: obtaining a first fault scenario; determining a first dump switch identifier corresponding to the first fault scenario; downloading a first configuration file corresponding to the first fault scenario from a server according to the first dump switch identifier; the first configuration file includes one or more detection scenarios for the first fault scenario, and a detection scenario includes one or more fault detection points; detecting whether a fault detection point in the one or more detection scenarios fails; dumping a first log file, the first log file being a log file when a fault occurs at the first fault detection point, and the first fault detection point being a fault detection point where a fault occurs in the one or more detection scenarios; receiving a log upload instruction input by a user; and sending the first log file to the server based on the log upload instruction.
[0006] Based on the method described in the first aspect, by detecting the fault monitoring points in the one or more first fault scenarios, if a fault detection point (such as the first fault detection point) fails, the log file (i.e., the first log file) at the time of the first fault detection point failing can be automatically dumped, and after receiving the log upload instruction input by the commercial user, the first log file can be sent to the server. Since the first log file is automatically dumped when the first fault detection point fails, the timeliness of the recorded problem log is avoided, the validity of the collected log files is guaranteed, which is conducive to improving the efficiency of handling fault problems reported by users and improving user experience.
[0007] In a possible implementation, the first configuration file also includes a first dump times threshold value, and the number of times the log file is dumped within the first preset time is less than or equal to the first dump times threshold value. Based on this approach, the number of log file dumps is limited to prevent frequent log dumps.
[0008] In a possible implementation, the first configuration file also includes a second dump count threshold value corresponding to the first fault scenario, and the number of times the first log file is dumped is less than or equal to the second dump count threshold value. Based on this approach, limiting the number of log file dumps can prevent frequent log dumps.
[0009] In a possible implementation, obtaining the first fault scenario includes: after obtaining the user's authorization for the server to collect logs, displaying an intelligent detection interface, the intelligent detection interface including a problem feedback option; if a trigger operation for the problem feedback option is detected, displaying a problem feedback interface, the problem feedback interface including one or more fault type options; if a trigger operation for the first fault type option among the one or more fault type options is detected, displaying a fault scenario classification box, the fault scenario classification box including one or more fault scenario options and a confirmation option; if a trigger operation for the first fault scenario option among the one or more fault scenario options is detected, determining the fault scenario corresponding to the first fault scenario option as the first fault scenario. Based on this method, the visual display of self-problem feedback can be achieved, while improving the accuracy of problem feedback.
[0010] In a possible implementation, the fault scenario classification box further includes a confirmation option, and the method further includes: if a trigger operation for the confirmation option is detected, a fault diagnosis mode for the first fault scenario is enabled; and determining a first dump switch identifier corresponding to the first fault scenario includes: determining the first dump switch identifier corresponding to the first fault scenario in the fault diagnosis mode of the first fault scenario. Based on this method, a visual display of enabling the fault diagnosis mode can be achieved.
[0011] In a possible implementation, obtaining the first fault scenario includes: receiving a log collection request from a server, the log collection request including the first fault scenario. Based on this approach, the first fault scenario can be dynamically indicated, thereby improving the flexibility of the first fault scenario.
[0012] In a possible implementation, before determining the first dump switch identifier corresponding to the first fault scenario, the method further includes: receiving a diagnostic verification code from a server; if the user authorizes the server to collect logs, then displaying an intelligent detection interface, the intelligent detection interface including a diagnostic analysis option; if a trigger operation for the diagnostic analysis option is detected, then displaying a diagnostic analysis interface, the diagnostic analysis interface including a verification code input box; after obtaining the first verification code in the verification code input box, if the first verification code is the same as the diagnostic verification code, then turning on the fault diagnosis mode for the first fault scenario; determining the first dump switch identifier corresponding to the first fault scenario, including: determining the first dump switch identifier corresponding to the first fault scenario in the fault diagnosis mode of the first fault scenario. Based on this method, a visual display of turning on the fault diagnosis mode can be achieved, and at the same time, due to the increase in the verification process of the verification code, the security of fault detection can also be improved.
[0013] In a possible implementation, based on the log upload instruction, the first log file is sent to the server, including: obtaining the problem description information fed back by the user, the multimedia information fed back by the user, the problem occurrence time information fed back by the user, and the problem occurrence probability information fed back by the user; based on the log upload instruction, the first log file, the problem description information, the multimedia information, the problem occurrence time information, and the problem occurrence probability information are packaged to obtain a fault log file; and the fault log file is sent to the server. Based on this method, the visualization of the last log file can be realized, and the accuracy of handling the fault problem fed back by the user can be improved.
[0014] In a possible implementation, the method further includes: receiving first information from a server, the first information being a mapping relationship between a fault scenario and a dump switch identifier; and determining a first dump switch identifier corresponding to the first fault scenario, including: determining the first dump switch identifier corresponding to the first fault scenario based on the mapping relationship. Based on this approach, the accuracy of determining the first dump switch identifier can be improved.
[0015] In a possible implementation, the fault scenario in the first information belongs to one or more secondary fault scenario types, and one secondary fault scenario type belongs to one primary fault scenario type. Based on this approach, it is helpful to improve the accuracy of fault scenario classification.
[0016] In a possible implementation, the method further includes: receiving second information from a server, the second information being information updated from the first information; and adjusting the first information to the second information. Based on this approach, the flexibility and accuracy of the first information can be guaranteed.
[0017] In a possible implementation, the method further includes: receiving a second configuration file corresponding to the first fault scenario from a server, the second configuration file being a configuration file updated from the first configuration file; and adjusting the first configuration file to the second configuration file. Based on this approach, the flexibility and accuracy of the first configuration file can be guaranteed.
[0018] In a second aspect, the present application provides a log processing method, including: receiving a first dump switch identifier corresponding to a first fault scenario from a terminal device; sending a first configuration file corresponding to the first fault scenario to the terminal device based on the first dump switch identifier corresponding to the first fault scenario; the first configuration file includes one or more detection scenarios for the first fault scenario, and a detection scenario includes one or more fault detection points; receiving a first log file from the terminal device; the first log file is a log file when a fault occurs at the first fault detection point, and the first fault detection point is a fault detection point where a fault occurs in the one or more detection scenarios.
[0019] The beneficial effects of the possible implementation methods of the second aspect can be found in the beneficial effects of the possible implementation methods of the first aspect, and will not be repeated here.
[0020] In a possible implementation, the first configuration file further includes a first dump times threshold value, and the number of times the log file is dumped within the first preset time is less than or equal to the first dump times threshold value.
[0021] In a possible implementation, the first configuration file further includes a second dump times threshold value corresponding to the first fault scenario, and the number of times the first log file is dumped is less than or equal to the second dump times threshold value.
[0022] In a possible implementation, before sending a first configuration file corresponding to the first fault scenario to a terminal device according to a first dump switch identifier corresponding to the first fault scenario, the method further includes: obtaining the first fault scenario; and sending a log collection request to the terminal device, the log collection request including the first fault scenario.
[0023] In a possible implementation, before obtaining the first fault scenario, the method further includes: displaying a remote log acquisition interface, the remote log acquisition interface including a new task option; if a trigger operation for the new task option is detected, displaying a new task interface, the new task interface including a task number box, a task name box, a fault scenario option, and a save option; obtaining the first fault scenario, including: obtaining the first fault scenario selected for the fault scenario option, the task number information in the task number box, and the task name information in the task name box; if a trigger operation for the save option is detected, generating a diagnostic verification code; and sending the diagnostic verification code to the terminal device. Based on this method, a visual display of the creation of a remote log collection task can be achieved, and because the verification process for the verification code is added, the security of fault detection can also be improved.
[0024] In one possible implementation, receiving the first log file from the terminal device includes: receiving a fault log file from the terminal device, wherein the fault log file is obtained by packaging the first log file, problem description information fed back by a user, multimedia information fed back by the user, problem occurrence time information fed back by the user, and problem occurrence probability information fed back by the user.
[0025] In a possible implementation manner, the method further includes: sending first information to the terminal device, where the first information is a mapping relationship between the fault scenario and the dump switch identifier.
[0026] In a possible implementation, the fault scenario in the first information belongs to one or more secondary fault scenario types, and one secondary fault scenario type belongs to one primary fault scenario type.
[0027] In a possible implementation, the method further includes: when it is detected that the first information is updated, sending second information to the terminal device, where the second information is updated information of the first information.
[0028] In a possible implementation, the method further includes: when it is detected that the first configuration file is updated, sending a second configuration file corresponding to the first fault scenario to the terminal device, where the second configuration file is a configuration file after the first configuration file is updated.
[0029] In a third aspect, the present application provides a log processing device, which may be a terminal device, or a device in a terminal device, or a device that can be used in combination with a terminal device; wherein the log processing device may also be a chip system, and the log processing device may execute the method executed by the terminal device in the first aspect. The functions of the log processing device may be implemented by hardware, or by hardware executing corresponding software implementations. The hardware or software includes one or more units corresponding to the above functions. The unit may be software and / or hardware. The operations and beneficial effects performed by the log processing device may refer to the methods and beneficial effects described in the first aspect above, and the repeated parts will not be repeated.
[0030] In a fourth aspect, the present application provides a log processing device, which may be a server, or a device in a server, or a device that can be used in combination with a server; wherein, the log processing device may also be a chip system, and the log processing device may execute the method executed by the terminal device in the second aspect. The functions of the log processing device may be implemented by hardware, or by hardware executing corresponding software implementations. The hardware or software includes one or more units corresponding to the above functions. The unit may be software and / or hardware. The operations and beneficial effects performed by the log processing device may refer to the methods and beneficial effects described in the second aspect above, and the repeated parts will not be repeated.
[0031] In a fifth aspect, the present application provides a log processing device, comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the log processing device executes the log processing method in any possible implementation of the first aspect or the second aspect.
[0032] In a sixth aspect, the present application provides a log processing device, which includes a function or unit for executing the method as described in any one of the first aspect or the second aspect.
[0033] In the seventh aspect, the present application provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions. When the program instructions are run on a log processing device, the log processing device executes the log processing method in any possible implementation of the first aspect or the second aspect above.
[0034] In an eighth aspect, the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the log processing method in any possible implementation of the first aspect or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a system architecture diagram of a communication system provided in an embodiment of the present application;
[0036] Figure 2 It is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;
[0037] Figure 3 It is a software structure block diagram of a terminal device provided in an embodiment of the present application;
[0038] Figure 4 It is a schematic diagram of a log processing method provided in an embodiment of the present application;
[0039] Figure 5 It is a flow chart of a log processing method provided in an embodiment of the present application;
[0040] Fig. 6A is a schematic diagram of an intelligent detection authorization interface provided in an embodiment of the present application;
[0041] Figure 6B is a schematic diagram of an intelligent detection interface provided in an embodiment of the present application;
[0042] Figure 6C is a schematic diagram of a problem feedback interface provided in an embodiment of the present application;
[0043] Fig.6D is a schematic diagram of a fault scenario classification frame provided in an embodiment of the present application;
[0044] Fig. 6E is a schematic diagram of a fault diagnosis mode interface provided in an embodiment of the present application;
[0045] Fig. 7A It is a schematic diagram of a remote log acquisition interface provided by an embodiment of the present application;
[0046] Figure 7B is a schematic diagram of a new task interface provided in an embodiment of the present application;
[0047] Figure 7C It is a schematic diagram of a verification code prompt box provided in an embodiment of the present application;
[0048] Fig. 8A is a schematic diagram of another intelligent detection interface provided in an embodiment of the present application;
[0049] Figure 8B is a schematic diagram of a diagnostic analysis interface provided in an embodiment of the present application;
[0050] Fig. 9It is a schematic diagram of a log upload interface provided in an embodiment of the present application;
[0051] Fig. 10A is a schematic diagram of a smart detection notification card provided in an embodiment of the present application;
[0052] Fig. 10B is a schematic diagram of a feedback question interface provided in an embodiment of the present application;
[0053] Fig.11 It is a flowchart of another log processing method provided in an embodiment of the present application;
[0054] Fig.12 It is a structural schematic diagram of a log processing device provided in an embodiment of the present application;
[0055] Fig.13 It is a structural schematic diagram of another log processing device provided in an embodiment of the present application;
[0056] Fig.14 It is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0058] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0059] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on the terminal device, and finally presented as content that the user can recognize. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of a terminal device.
[0060] In order to better understand the embodiment of the present application, the communication system 10 involved in the embodiment of the present application is first introduced below:
[0061] Figure 1 FIG. 1 shows a system architecture diagram of a communication system 10 provided in an embodiment of the present application. The communication system 10 may include at least one terminal device and at least one server. Figure 1 Take the communication system 10 including a terminal device 100 and a server 200 as an example. The terminal device 100 and the server 200 can establish a communication connection. It should be understood that Figure 1 The system structure diagram of the communication system provided in the embodiment of the present application is only a schematic diagram, and does not constitute a specific limitation on the communication system 10. The communication system 10 may include more or fewer devices than shown in the figure, which is not limited here.
[0062] 1. Terminal equipment
[0063] The terminal device can be a mobile phone, a tablet computer, a laptop computer, a desktop computer, a wireless terminal in a smart home, a wearable terminal device with wireless communication function (such as a smart watch), etc., but is not limited to this. The terminal device can install the application used by the user, that is, the client (also referred to as the user end). The so-called client refers to an application corresponding to the server that provides local services to customers and can cooperate with the server to run. In an embodiment of the present application, the terminal device can be configured with a display screen and installed with a preset application (application, APP). The user can use the preset APP (such as a smart detection APP) to perform fault detection on the terminal device, such as fault identification, log collection, diagnostic analysis, etc.
[0064] The hardware structure of the terminal device 100 is introduced below. Figure 2 , Figure 2 It is a schematic diagram of the hardware structure of the terminal device 100 provided in an embodiment of the present application.
[0065] The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0066] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0067] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0068] The controller may be the nerve center and command center of the terminal device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0069] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system. The processor 110 calls the instructions or data stored in the memory, so that the terminal device 100 executes the motion effect processing method executed by the terminal device in the following method embodiment.
[0070] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0071] The charging management module 140 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.
[0072] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. In some other embodiments, the power management module 141 can also be set in the processor 110.
[0073] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0074] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0075] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0076] The modulation and demodulation processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor.
[0077] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), bluetooth (BT), BLE broadcast, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0078] In some embodiments, antenna 1 of terminal device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that terminal device 100 can communicate with the network and other devices through wireless communication technology.
[0079] The terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0080] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0081] The terminal device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor. The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture static images or videos. The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. The video codec is used to compress or decompress digital videos. The terminal device 100 can support one or more video codecs.
[0082] NPU is a neural-network (NN) computing processor. It can quickly process input information by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, and can also continuously self-learn.
[0083] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.
[0084] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the terminal device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function), etc. The data storage area may store data (such as audio data) created during the use of the terminal device 100, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as a flash memory device, etc.
[0085] The terminal device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0086] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0087] Speaker 170A, also known as "speaker", is used to convert audio electrical signals into sound signals. Receiver 170B, also known as "earpiece", is used to convert audio electrical signals into sound signals. Microphone 170C, also known as "microphone" and "microphone", is used to convert sound signals into electrical signals. Headphone interface 170D is used to connect wired headphones. Pressure sensor 180A is used to sense pressure signals and can convert pressure signals into electrical signals. In some embodiments, pressure sensor 180A can be set on display screen 194. Gyroscope sensor 180B can be used to determine the motion posture of terminal device 100. Air pressure sensor 180C is used to measure air pressure. Magnetic sensor 180D includes Hall sensor. Acceleration sensor 180E can detect the magnitude of acceleration of terminal device 100 in various directions (generally three axes). Distance sensor 180F is used to measure distance. Proximity light sensor 180G can include, for example, light emitting diode (LED) and light detector. Ambient light sensor 180L is used to sense ambient light brightness. Fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect the temperature. The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The bone conduction sensor 180M can obtain vibration signals. The buttons 190 include a power button, a volume button, etc. The motor 191 can generate vibration prompts. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card.
[0088] In addition, the software system of the terminal device 100 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the terminal device 100. Figure 3 1 is a software structure diagram of the terminal device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
[0089] The application layer can include a series of application packages. Figure 3 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, smart detection, etc.
[0090] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0091] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0092] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0093] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0094] The phone manager is used to provide communication functions of the terminal device 100, such as management of call status (including connection, disconnection, etc.).
[0095] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0096] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.
[0097] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0098] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0099] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0100] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0101] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0102] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats.
[0103] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0104] A 2D graphics engine is a drawing engine for 2D drawings.
[0105] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0106] 2. Server
[0107] The server 200 can be an independent physical server, or a server cluster composed of multiple servers, or a cloud computing center (such as a cloud server). Among them, the so-called cloud server is a simple, efficient, safe and reliable computing service, and its management method is simpler and more efficient than that of a physical server; it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and basic cloud computing services such as big data and artificial intelligence platforms. In the embodiment of the present application, the server 200 can enable remote log collection, create fault diagnosis tasks, issue or update fault scenario classification information, generate fault diagnosis verification codes, update the configuration file of the dump switch, etc., which are not limited here.
[0108] In order to facilitate understanding of the solution provided by the embodiment of the present application, the following introduces the relevant concepts involved in the embodiment of the present application:
[0109] 1. Log
[0110] A log is a collection of certain operations and their results of the objects specified by the system in a time-ordered manner. Log files record the information of the interaction between the system and its users, and are a data collection method that automatically captures the type, content or time of interaction between people and system terminals. For web search, a log is an electronic record of the interaction between a user who uses a web search engine to search for information and the web search engine during the search. In modern cloud systems, a large number of log files are generated every day. The data in these files can be used to complete functions such as error diagnosis, user behavior modeling, system performance analysis, and potential security risk warning. As the scale of the system expands, the size of the corresponding log files is also growing rapidly.
[0111] 2. Log Collection
[0112] Log collection refers to obtaining various types of log information generated when the application is running by various means, and storing this information in a specific place for subsequent analysis and use. Usually, these log files include system operation status, error information, user operation records, etc. By statistics and analysis of this information, the operation status of the application can be effectively monitored, and problems can be discovered and solved in a timely manner. It should be noted that the two words "collect" and "collect" can also be directly replaced. For example, "log collection" and "log collection" can both represent the same or similar meanings, which are not limited in the embodiments of the present application.
[0113] In the embodiment of the present application, remote log collection refers to that the server initiates a remote log collection task to the terminal device through the network, and the terminal device can transfer the log file when the application is running to the server for analysis and processing, so as to achieve the purpose of monitoring and analyzing the operation status and faults of the client. Remote log collection can not only monitor the operation of the terminal device in real time, but also help users quickly locate and solve various network problems. For example, when a commercial user has a fault problem, the server can collect the log file when the client is running through the remote log collection method to reproduce and process the problem. However, there is too much log record information in the field of problems such as communication, and the log file is too large. Since the client has the limitation of maintaining the file size and number, the problem log time that can be recorded is short. When the user feedback problem is not timely or the user perception is inconsistent with the network situation, the problem of low effectiveness of the collected log will appear, causing the client to repeatedly feedback the log file, thereby reducing the processing efficiency of the fault problem reported by the user, and seriously reducing user satisfaction.
[0114] Therefore, in order to improve the efficiency of processing fault problems reported by users and improve user experience, the present application provides a log processing method and device. The log processing method and device provided in the embodiments of the present application are further described in detail below.
[0115] Figure 4 Schematic diagram of a log processing method provided by an embodiment of the present application. Figure 4 As shown, the framework of the log processing method is divided into a server side (which can be considered as a cloud side) and a terminal device side. Among them, the server side includes a remote log collection module 401 and a cloud configuration platform module 404. The terminal device side includes an intelligent detection module 402, a log engine module 403 and a communication diagnosis module 405.
[0116] (1) Remote log collection module 401
[0117] The remote log collection module 401 can provide a remote log acquisition interface and an interface for interacting with the terminal device side. Specifically, after receiving the fault problem reported by the commercial user (which can be understood as the user on the terminal device side), the customer service staff (who can be understood as the user on the server side) can create a remote log collection task in the remote log acquisition interface, and can select the fault scenario according to the fault problem in the remote log acquisition interface, that is, perform scenario classification. For example, assuming that the problem reported by the commercial user is a problem in the communication field, the corresponding fault scenario can be selected in the secondary directory of the communication scenario type. The remote log collection module 401 can also initiate a remote log collection task to the terminal device after obtaining the fault scenario, and can carry information indicating the fault scenario (such as a secondary fault code).
[0118] (2) Intelligent detection module 402
[0119] The intelligent detection module 402 is responsible for starting the remote log collection process, privacy and other tasks. The intelligent detection module 402 can be an application (i.e., a client) installed on the terminal device. Specifically, the intelligent detection module 402 can receive a remote log collection task initiated by the remote log collection module 401 or initiate a remote log collection task on its own (i.e., self-feedback mode). After the commercial user authorizes the server to collect logs, the log switch can be turned on (i.e., controlling the start and end of log collection) through the intelligent detection module 402, and the fault diagnosis mode can be turned on; and the dump switch identifier corresponding to the fault scenario can be sent to the log engine module 403.
[0120] (3) Log Engine Module 403
[0121] The log engine module 403 is responsible for providing the analysis and logic execution of the extended digital subscriber line (DSL) switch type, and is responsible for the opening and closing of the dump switch and other actions. Specifically, the log engine module 403 can receive the dump switch identifier corresponding to the fault scenario sent by the intelligent detection module 402, can download the configuration file corresponding to the dump switch identifier from the cloud configuration platform module 404 or update the configuration file corresponding to the dump switch identifier (i.e., the configuration file corresponding to the fault scenario, specifically including the fault detection points in one or more detection scenarios), can also download the configuration file for automatic dumping of communication fault logs from the cloud configuration platform module 404, can also obtain or update the dump switch identifier, the classification of the fault scenario, the mapping relationship between the fault scenario and the dump switch identifier, etc. from the cloud configuration platform module 404, can also send a dynamic dump switch command (i.e., broadcast notification to open fault identification and log dump) to the communication diagnosis module 405, etc.
[0122] (4) Cloud Configuration Platform Module 404
[0123] The cloud configuration platform module 404 provides access to and archives configuration files corresponding to the dynamic dump switch, and provides an interface for downloading configuration files on the terminal device side. Specifically, the cloud configuration platform module 404 can publish and dynamically update configuration files corresponding to the dump switch identifier, can also publish configuration files for automatic dumping of communication fault logs, can also update the dump switch identifier, the classification of fault scenarios, the mapping relationship between fault scenarios and dump switch identifiers, etc., can also allow the terminal device to download the corresponding configuration files according to the dump switch identifier, etc.
[0124] (5) Communication diagnostic module 405
[0125] The communication diagnosis module 405 is responsible for receiving the dynamic dump switch command (i.e. broadcasting notification to enable fault identification and log dump) sent by the log engine module 403, reading the configuration file corresponding to the dump switch identifier from the log engine module 403, parsing the content of the configuration file, and enabling the log scenario identification and log dump features corresponding to the fault point. Specifically, when a fault occurs at the detection fault point of the detection scenario in the configuration file corresponding to the fault scenario, the log file at the time of the fault at the detection fault point can be automatically dumped.
[0126] Based on the above, Figure 5 Schematic diagram of a log processing method provided by an embodiment of the present application. Figure 5 As shown, the log processing method includes the following steps S501 to S507. Figure 5 The method execution subject shown can be the terminal device and server mentioned above. Or, Figure 5The execution entity of the method shown may be a chip in a terminal device and a chip in a server, which is not limited in the embodiments of the present application. Figure 5 The method is described by taking a terminal device and a server as the execution subjects as an example.
[0127] S501. A terminal device obtains a first fault scenario.
[0128] In an embodiment of the present application, when a commercial user (which can be understood as a user on the terminal device side) has a fault problem, the fault problem can be fed back to the customer service staff (which can be understood as a user on the server side) by calling the service hotline, or the fault problem can be fed back by the intelligent detection module of the terminal device. The fault problems here can be divided into reliability categories (such as failure to boot, restart, upgrade, etc.), performance categories (such as freeze, slow startup, etc.), communication categories (such as calls, signals, text messages, etc.), applications (such as communication social networking, multimedia, etc.), device categories (such as sensors, fingerprints, screens, infrared rays, etc.), etc., which are not limited here. The embodiment of the present application is explained by taking the fault problem as a communication problem as an example.
[0129] Different types of fault problems can be further divided into different fault scenarios. Taking the fault problem of communication as an example, as shown in Table 1 below, communication problems can be divided into four fault scenarios, namely signal problems, call failure / dropped calls, voice quality problems and network problems. For "signal problems", it can be further divided into: unable to register 4G / 5G, signal downgraded to 2G / 3G, no signal, poor signal. For "call failure / dropped calls", it can be further divided into: call failure, dropped call problems. For "signal quality problems", it can be further divided into: silent voice, intermittent voice. For "network problems", it can be further divided into: unable to access the Internet, slow network speed, SIM card cannot be recognized.
[0130] Table 1
[0131]
[0132] Of course, communication-related fault problems may also include other fault scenarios, and each fault scenario may also be subdivided into other types of scenarios, which are not limited here.
[0133] In a possible implementation manner, the specific implementation manner in which the terminal device obtains the first fault scenario may adopt one of the following two manners.
[0134] Method 1: The commercial user can report the fault problem by himself through the intelligent detection module of the terminal device (such as the intelligent detection module 402 mentioned above). Specifically, the following steps s11 to s14 are included. Based on this method, the self-feedback mode can be turned on to realize the visual display of self-feedback and improve the accuracy of problem feedback.
[0135] Among them, the intelligent detection module can be regarded as a preset APP, which can provide intelligent detection services, such as equipment fault diagnosis, fault repair, problem feedback and log feedback.
[0136] s11. After obtaining the user's authorization for the server to collect logs, the terminal device displays an intelligent detection interface, which includes a problem feedback option.
[0137] s12. If the terminal device detects a triggering operation for the problem feedback option, a problem feedback interface is displayed, and the displayed problem feedback interface includes one or more fault type options.
[0138] s13. If the terminal device detects a trigger operation for a first fault type option among the one or more fault type options, a fault scenario classification box is displayed, and the fault scenario classification box includes one or more fault scenario options.
[0139] s14. If the terminal device detects a triggering operation for a first fault scenario option among the one or more fault scenario options, the fault scenario corresponding to the first fault scenario option is determined as the first fault scenario.
[0140] like Fig. 6A As shown, Fig. 6A It is a schematic diagram of a smart detection authorization interface provided by an embodiment of the present application. The smart detection authorization interface includes an explanation of the smart detection service, an application that needs to apply for permission to start the smart detection service, a cancellation option, and an agreement option. Among them, the explanation of the smart detection service is: this service provides equipment fault diagnosis, fault repair, problem feedback, and log feedback functions. In order to ensure normal operation, the applications that need to apply for permission to start the smart detection service include Bluetooth (for reading the Bluetooth status information of the device), camera (for reading the camera status information of the device), microphone (for detecting microphone function), storage (for maintaining relevant diagnostic result reports and diagnostic data information), address book (for detecting abnormal problems of contacts), and application list (for detecting abnormal problems of applications). Of course, the smart detection service can also apply for permissions of other applications, which is not limited here.
[0141] It should be noted that the intelligent detection service needs to be connected to the Internet, obtain device information, location information, network information, application information, communication information and data actively uploaded by commercial users, switch wireless local area network (wireless local area network, WLAN), for detecting hardware functions, calling operators, and for communication detection. When a commercial user clicks "agree option", it means that the commercial user agrees to the intelligent detection user agreement and is aware of the statement about intelligent detection and privacy, that is, the commercial user agrees to authorize the intelligent detection service (at this time, it can be considered that the commercial user agrees to authorize the server to collect logs). It can be understood that the data involved in the intelligent detection service are all obtained after user authorization. In addition, when the embodiment of the present application is applied to a specific product or technology, the data involved in the use needs to obtain user permission or consent, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions. When a commercial user clicks "cancel option", it means that the commercial user does not agree to authorize the intelligent detection service.
[0142] After the commercial user agrees to authorize the smart detection service (i.e., obtains the commercial user's authorization server to collect logs), the smart detection interface (such as Figure 6B The intelligent detection interface includes diagnostic analysis options, remote service options, problem feedback options, etc. When a commercial user clicks the problem feedback option, the problem feedback interface (as shown) is displayed. Figure 6C The problem feedback interface includes one or more fault type options, such as reliability options, performance options, communication options, application options, device options, power consumption options, etc. Assuming that a commercial user clicks the communication option (i.e., the first fault scenario option), a fault scenario classification box (such as Fig.6D The fault scenario classification box includes one or more fault scenario options, such as a signal problem option, a call failure / dropped call option, a voice quality problem option, a network problem option, and other communication problem options. Assuming that the user clicks the call failure / dropped call option, "call failure / dropped call" is determined as the first fault scenario.
[0143] Optionally, the fault scenario classification box further includes a confirmation option, and the method further includes: if a trigger operation for the confirmation option is detected, then starting the fault diagnosis mode for the first fault scenario. Based on this approach, a visual display of starting the fault diagnosis mode can be achieved.
[0144] Another example Fig.6D As shown, the fault scenario classification box also includes a confirmation option and a cancel option. When the commercial user clicks the confirmation option, it means that the terminal device turns on the fault diagnosis mode for the first fault scenario through the intelligent detection module and displays the fault diagnosis mode interface (such as Fig. 6EAs shown). The fault diagnosis mode can be automatically exited after a preset time. For example, if the fault diagnosis mode is turned on, it can be automatically exited after 6 hours. In addition, the interface of the fault diagnosis mode also includes prompt information, which prompts commercial users: after the problem reappears, please click "Feedback Problem" on the "Smart Detection" notification card in the notification bar to feedback the fault information.
[0145] Method 2: Feedback the fault problem to the customer service staff (which can be understood as the user on the server side) by calling the service hotline. Specifically, the following steps s21 and s22 may be included. Based on this method, the first fault scenario can be dynamically indicated, thereby improving the flexibility of the first fault scenario.
[0146] s21. The server obtains the first fault scenario.
[0147] In a specific implementation, when a commercial user (which can be understood as a user on the terminal device side) encounters a fault problem, the fault problem can be reported to the customer service staff (which can be understood as a user on the server side) by calling a service hotline. After receiving the fault problem reported by the commercial user, the customer service staff can create a remote log collection task through the remote log acquisition interface provided by the remote log collection module in the server (such as the above remote log collection module 401), and select a fault scenario according to the fault problem in the remote log acquisition interface, that is, perform scenario classification; the server determines the fault scenario selected by the customer service staff as the first fault scenario.
[0148] In a possible implementation, the specific implementation process of creating a remote log collection task in the remote log acquisition interface may include the following steps a to e. Based on this approach, a visual display of the creation of a remote log collection task can be achieved, and the security of fault detection can be improved.
[0149] Step a: Before the server obtains the first fault scenario, it displays a remote log acquisition interface, which includes a new task option.
[0150] Step b: If the server detects a trigger operation for the new task option, a new task interface is displayed, which includes a task order number box, a task name box, a fault scenario option, and a save option.
[0151] Step c: The server obtains the first fault scenario selected for the fault scenario option, the task order number information in the task order number box, and the task name information in the task name box.
[0152] Among them, step c is a specific implementation method of step s21 (ie, the server obtains the first fault scenario).
[0153] Step d: If the server detects a trigger operation for the save option, a diagnostic verification code is generated.
[0154] Step e: The server sends the diagnosis verification code to the terminal device.
[0155] like Fig. 7A As shown, Fig. 7A : is a schematic diagram of a remote log acquisition interface provided by an embodiment of the present application. The remote log acquisition interface can display various remote log collection tasks, and a remote log collection task can be searched by triggering the search option in the remote log acquisition interface. In addition, the remote log acquisition interface also includes a new task option. When the customer service staff triggers the new task option, the new task interface (such as Figure 7B As shown), the new task interface includes a task number box, a task name box, a timeout duration box, a fault type option, a fault scenario option, a save option, etc.
[0156] Customer service personnel can fill in the task number information (such as SRZ20230728) in the task number box, or the server can automatically generate the task number information in the task number box, without limitation. Customer service personnel can fill in the task name information (such as TASK_2023_01) in the task name box, or the server can automatically generate the task name information in the task name box, without limitation. Customer service personnel can fill in the timeout duration information (such as 6 hours) in the timeout duration box, or use the default timeout duration information, without limitation.
[0157] The customer service staff can select the fault scenario option, and use the fault scenario corresponding to the fault scenario option selected by the customer service staff as the first fault scenario. The new task interface includes one or more fault type options (which can be considered as first-level fault scenario type options), such as reliability options, performance options, communication options, application options, device options, power consumption options, etc. Assuming that a commercial user clicks on the communication option, the communication option further includes one or more fault scenario options (which can be considered as second-level fault scenario type options), such as signal problem options, caller failure / dropped call options, voice quality problem options, network problem options, and other communication problem options. Among them, the signal problem option can be subdivided into scenarios such as failure to register 4G / 5G, signal reduction to 2G / 3G, no signal, and poor signal; the caller failure / dropped call option can be subdivided into scenarios such as failure to make or receive calls, dropped calls, etc.; the voice quality problem option can be subdivided into scenarios such as silent voice and intermittent voice; the network problem option can be subdivided into scenarios such as inability to access the Internet, slow network speed, and SIM card unrecognizable. Assuming that the customer service staff selects the option of calling failure / dropped call, "calling failure / dropped call" is determined as the first fault scenario.
[0158] After the server obtains the first fault scenario selected for the fault scenario option, the task number information in the task number box, the task name information in the task name box, and the timeout duration information in the timeout duration box (e.g., the first fault scenario is the failure of the primary called party / dropped call, the task number information is SRZ20230728, the task name information is TASK_2023_01, and the timeout duration information is 6 hours), when the customer service staff triggers the save option, it is considered that the remote log collection task is created. At this time, the server generates a diagnostic verification code (e.g., 123456) and displays the diagnostic verification code in the verification code prompt box of the new task interface (e.g., Figure 7C As shown). The customer service staff can also close the verification code prompt box by clicking the close button in the verification code prompt box. At the same time, the server will also send the diagnostic verification code to the terminal device so that the terminal device can use the diagnostic verification code to safely start the fault diagnosis mode.
[0159] s22. The server sends a log collection request to the terminal device. Correspondingly, the terminal device receives the log collection request from the server.
[0160] In a specific implementation, after the server starts the remote log collection task, it will send a log collection request to the terminal device, and the log collection request includes the first fault scenario. Optionally, the log collection request includes a secondary fault code corresponding to the first fault scenario. Commercial users can turn on the fault diagnosis mode through a preset APP (such as an intelligent detection APP) to collect logs for the first fault scenario. The preset APP here can be considered to be the intelligent detection module 402 in the terminal device mentioned above, and the intelligent detection module 402 can provide intelligent detection services, such as equipment fault diagnosis, fault repair, problem feedback, and log feedback.
[0161] In a possible implementation, the specific implementation process of enabling the fault diagnosis mode of the terminal device may include the following steps 1 to 4. Based on this approach, a visual display of enabling the fault diagnosis mode may be achieved, and the safety of fault detection may be improved.
[0162] Step 1: The terminal device receives a diagnostic verification code from the server.
[0163] Step 2: If the user authorizes the server to collect logs, the terminal device displays an intelligent detection interface, which includes a diagnostic analysis option.
[0164] Step 3: If the terminal device detects a trigger operation for the diagnostic analysis option, a diagnostic analysis interface is displayed, which includes a verification code input box.
[0165] Step 4: After the terminal device obtains the first verification code in the verification code input box, if the first verification code is the same as the diagnosis verification code, a fault diagnosis mode for the first fault scenario is started.
[0166] After the commercial user agrees to authorize the intelligent detection service (i.e. obtain the commercial user's authorization server to collect logs) (such as Fig. 6A As shown), the intelligent detection interface is displayed (as shown Fig. 8A The intelligent detection interface includes diagnostic analysis options, remote service options, problem feedback options, etc. When a commercial user clicks the diagnostic analysis option, the diagnostic analysis interface (as shown) is displayed. Figure 8B The diagnostic analysis interface includes a verification code input box. Commercial users can contact customer service personnel by calling a hotline to send a diagnostic verification code to the terminal device, and then enter the verification code in the verification code input box. When the first verification code entered by the commercial user is the same as the diagnostic verification code obtained by the terminal device from the server, the fault diagnosis mode for the first fault scenario can be enabled, and the fault diagnosis mode interface (as shown in FIG. Fig. 6E As shown). The fault diagnosis mode can be automatically exited after a preset time (i.e., timeout duration information). For example, assuming that the fault diagnosis mode has been turned on, the fault diagnosis mode can be automatically exited after 6 hours. In addition, the interface of the fault diagnosis mode also includes prompt information, which prompts commercial users: After the problem reappears, please click "Feedback Problem" on the "Smart Detection" notification card in the notification bar to feedback the fault information.
[0167] S502: The terminal device determines a first dump switch identifier corresponding to the first fault scenario.
[0168] In an embodiment of the present application, different fault scenarios correspond to different dump switch identifiers. The intelligent detection module in the terminal device (such as the intelligent detection module 402 mentioned above) can further determine the first dump switch identifier corresponding to the first fault scenario, so that the first configuration file corresponding to the first fault scenario can be downloaded according to the first dump switch identifier, thereby controlling the timing of the terminal device dumping the log file.
[0169] In a possible implementation, the method further includes: the server sends first information to the terminal device, the first information being a mapping relationship between a fault scenario and a dump switch identifier. Accordingly, the terminal device receives the first information from the server; the terminal device determines a first dump switch identifier corresponding to the first fault scenario, including: determining the first dump switch identifier corresponding to the first fault scenario based on the mapping relationship.
[0170] That is, the intelligent detection module in the terminal device can receive the mapping relationship between each fault scenario and the dump switch identifier from the cloud configuration platform module in the server in advance, and after receiving the first fault scenario, the first dump switch identifier corresponding to the first fault scenario can be found according to the mapping relationship. Based on this method, the accuracy of determining the first dump switch identifier can be improved.
[0171] For example, assuming that the mapping relationship between the fault scenario and the dump switch identifier (i.e., the first information) is: the dump switch identifier corresponding to fault scenario A is 1, the dump switch identifier corresponding to fault scenario B is 2, and the dump switch identifier corresponding to fault scenario C is 3. If the first fault scenario is fault scenario A, then according to the mapping relationship, it can be determined that the first dump switch identifier corresponding to the first fault scenario is 1.
[0172] In a possible implementation, when the terminal device determines the first dump switch identifier corresponding to the first fault scenario, the specific implementation may be: determining the first dump switch identifier corresponding to the first fault scenario in the fault diagnosis mode of the first fault scenario. That is, after the intelligent detection module turns on the fault diagnosis mode for the first fault scenario, it determines the first dump switch identifier corresponding to the first fault scenario in the fault diagnosis mode of the first fault scenario.
[0173] Optionally, the fault scenario in the first information belongs to one or more secondary fault scenario types, and one secondary fault scenario type belongs to one primary fault scenario type. That is, the classification of the fault scenario in the first information is the same as the method of classifying the fault problems reported by commercial users in step S501, that is, the fault scenario in the first information can belong to one or more secondary fault scenario types, and one secondary fault scenario type belongs to one primary fault scenario type. Based on this method, it is beneficial to improve the accuracy of fault scenario classification.
[0174] For example, assume that the mapping relationship between the fault scenario and the dump switch identifier (i.e., the first information) is: the dump switch identifier corresponding to fault scenario A is 1, the dump switch identifier corresponding to fault scenario B is 2, and the dump switch identifier corresponding to fault scenario C is 3. Among them, fault scenario A belongs to caller failure / dropped call, which belongs to communication problems; fault scenario B belongs to no signal, which belongs to communication problems; fault scenario C belongs to slow startup, which belongs to performance problems. It can be seen that caller failure / dropped call, no signal, and slow startup are secondary fault scenario types, and communication problems and performance problems are primary fault scenario types.
[0175] Optionally, the method further includes: when the server detects that the first information is updated, sending second information to the terminal device, the second information being information after the first information is updated. Accordingly, the terminal device receives the second information from the server and adjusts the first information to the second information.
[0176] That is to say, the first information can be adjusted in the cloud configuration platform module and updated in real time to take effect. When the cloud configuration platform module in the server detects that the mapping relationship between the fault scenario and the dump switch identifier (i.e., the first information) is updated, the updated first information (i.e., the second information) can be sent to the terminal device. After receiving it, the intelligent detection module of the terminal device needs to adjust and update the first information previously obtained, that is, update the previous first information to the second information. Based on this method, the flexibility and accuracy of the first information can be guaranteed.
[0177] S503: The terminal device downloads the first configuration file corresponding to the first fault scenario from the server according to the first dump switch identifier. Accordingly, the server receives the first dump switch identifier from the terminal device and sends the first configuration file corresponding to the first fault scenario to the terminal device according to the first dump switch identifier.
[0178] In an embodiment of the present application, the first configuration file includes one or more detection scenarios for the first fault scenario, and a detection scenario includes one or more fault detection points. After the terminal device determines the first dump switch identifier corresponding to the first fault scenario, the first dump switch identifier can be passed to the log engine module in the terminal device (such as the log engine module 403 mentioned above), and the log engine module can download the first configuration file corresponding to the first fault scenario from the server according to the first dump switch identifier through the file download interface provided by the cloud configuration platform module in the server (such as the cloud configuration platform module 404 mentioned above).
[0179] For example, it is assumed that the configuration file corresponding to the first dump switch identifier 1 is configuration file a, the configuration file corresponding to the first dump switch identifier 2 is configuration file b, and the configuration file corresponding to the first dump switch identifier 3 is configuration file c. The terminal device determines that the first dump switch identifier corresponding to the first fault scenario is 1, and then the configuration file corresponding to the first dump switch identifier 1, that is, configuration file a, can be downloaded from the cloud configuration platform module in the server. Configuration file a here is the first configuration file corresponding to the first fault scenario.
[0180] Optionally, the method further includes: the server sends a second configuration file corresponding to the first fault scenario to the terminal device, the second configuration file being a configuration file updated from the first configuration file. Accordingly, the terminal device receives the second configuration file from the server and adjusts the first configuration file to the second configuration file.
[0181] That is to say, the first configuration file can be adjusted in the cloud configuration platform module and updated in real time to take effect. When the cloud configuration platform module in the server detects that the first configuration file corresponding to the first fault scenario is updated, the updated first configuration file (i.e., the second configuration file) can be sent to the terminal device. After the intelligent detection module of the terminal device receives the second configuration file, it is necessary to adjust and update the first configuration file obtained previously, that is, to update the previous first configuration file to the second configuration file. Based on this method, the flexibility and accuracy of the first configuration file can be guaranteed.
[0182] S504: The terminal device detects whether a fault occurs at a fault detection point in the one or more detection scenarios.
[0183] In an embodiment of the present application, after the log engine module in the terminal device downloads the first configuration file corresponding to the first fault scenario from the cloud configuration platform module in the server, it further sends a dynamic dump switch command (i.e., broadcasts a notification to turn on fault identification and log dump) to the communication diagnosis module in the terminal device (such as the communication diagnosis module 405 mentioned above). After receiving the dynamic dump switch command, the communication diagnosis module can read the first configuration file corresponding to the first fault scenario from the log engine module, and parse the content of the first configuration file, so as to detect the fault detection points in the one or more detection scenarios and the characteristics of the log dump, that is, to detect the fault detection points in the one or more detection scenarios included in the first configuration file, and detect whether the fault detection points in the one or more detection scenarios fail.
[0184] S505: The terminal device dumps the first log file.
[0185] In an embodiment of the present application, the first log file is a log file when a fault occurs at the first fault detection point, and the first fault detection point is a fault detection point where a fault occurs in the one or more detection scenarios. That is to say, the communication diagnosis module in the terminal device (such as the communication diagnosis module 405 mentioned above) detects the fault detection points in the one or more detection scenarios included in the first configuration file. Assuming that when a fault occurs at the first fault detection point, the log file when the first fault detection point fails is automatically dumped, that is, the first log file. Among them, the first fault detection point can be one or more, that is, the fault detection point where a fault occurs in the one or more detection scenarios can be one or more. Accordingly, the first log file dumped by the communication diagnosis module is also one or more.
[0186] In a possible implementation, when the same fault problem occurs frequently, in order to prevent frequent log dumping, the number of log file dumps can be limited. Specifically, the method for limiting the number of log file dumps can adopt one of the following three methods. Of course, the method for limiting the number of log file dumps can also adopt other strategies, which are not limited here.
[0187] Mode 1: The first configuration file also includes a first dump times threshold value, and the number of times the log file is dumped within the first preset time is less than or equal to the first dump times threshold value.
[0188] In a specific implementation, the first preset time can be a preset time period, and can be counted from the first dump of the first log file, or can be counted from the time when the fault diagnosis mode is turned on, without limitation here. The number of times the log file is dumped within the first preset time needs to be less than or equal to the first dump count threshold value. It should be noted that the first dump count threshold value configured in the configuration files corresponding to all fault scenarios can be the same.
[0189] For example, assuming that the first configuration file also configures the first dump times threshold to be 10. If the first preset time is set to 10 minutes, the number of log file dumps within each 10 minutes needs to be less than or equal to 10 starting from the first dump of the first log file.
[0190] Mode 2: The first configuration file also includes a second dump times threshold value corresponding to the first fault scenario, and the number of times the first log file is dumped is less than or equal to the second dump times threshold value.
[0191] In a specific implementation, a second dump count threshold value for each fault scenario can be configured in the configuration file corresponding to the fault scenario. From the time the fault diagnosis mode is turned on to the time the fault diagnosis mode is turned off, it is necessary to ensure that the total number of dump log files is less than or equal to the second dump count threshold value. It should be noted that the third dump count threshold values configured in the configuration files corresponding to all fault scenarios can be the same or different.
[0192] For example, assuming that the second dump count threshold corresponding to the first fault scenario is also configured in the first configuration file as 300. The period from enabling the fault diagnosis mode to disabling the fault diagnosis mode is 6 hours, and it is necessary to ensure that the number of dumps of the first log file is less than or equal to 300 within these 6 hours.
[0193] Mode 3: The first configuration file also includes a third dump times threshold value, and the number of times the log file is dumped is less than or equal to the third dump times threshold value.
[0194] In a specific implementation, a third dump count threshold value can be configured in the configuration file corresponding to each fault scenario. From the time the fault diagnosis mode is turned on to the time the fault diagnosis mode is turned off, it is necessary to ensure that the total number of dump log files is less than or equal to the third dump count threshold value. It should be noted that the third dump count threshold value configured in the configuration files corresponding to all fault scenarios can be the same.
[0195] For example, assuming that the third dump times threshold is also configured in the first configuration file as 300. The period from enabling the fault diagnosis mode to disabling the fault diagnosis mode is 6 hours, and it is necessary to ensure that the number of dumps of the first log file is less than or equal to 300 within these 6 hours.
[0196] It should be noted that the first configuration file not only includes the fault detection points in one or more detection scenarios for the first fault scenario, but may also include configurations such as the number of dump log files, the number of dump log files, and the size of the dumped log files, which are not limited here.
[0197] Exemplarily, the following may be in the form of a table to reflect the relationship between the fault scenario, the fault detection points in the one or more detection scenarios, and the dumped first log file. As shown in Table 2, for the caller failure / dropped call in the communication problem, "caller failure / dropped call" can be subdivided into two scenarios, namely, the call failure and the call drop problem. The call failure includes two fault causes, namely, the called failure and the calling failure; wherein, the called failure corresponds to three detection scenarios, namely, detection scenario 1, detection scenario 2, and detection scenario 3, detection scenario 1 includes three fault detection points (namely, fault detection point a, fault detection point b, fault detection point c), detection scenario 2 includes two fault detection points (namely, fault detection point d, fault detection point e), and detection scenario 3 includes one fault detection point (namely, fault detection point f); the calling failure corresponds to two detection scenarios, namely, fault scenario 4 and fault scenario 5, fault scenario 4 includes fault detection point g and fault detection point h, and fault scenario 5 includes fault detection point i. The call drop problem includes one fault cause, namely, call drop; wherein, the call drop corresponds to one detection scenario, namely, detection scenario 6, and detection scenario 6 includes fault detection point j.
[0198] For voice quality problems in communication problems, "voice quality problems" can be divided into two scenarios, namely, silent voice and intermittent voice. Silent voice includes one fault cause, namely, silent call; similarly, silent call can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points. Intermittent voice includes one fault cause, namely, intermittent noise; similarly, intermittent noise can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points, which will not be described here.
[0199] Regarding the signal problem in communication problems, it can be subdivided into 4 scenarios in "Signal Problem", namely, unable to register 4G / 5G, signal downgraded to 2G / 3G, no signal and poor signal. There are two reasons for the failure to register 4G / 5G, namely, standalone (SA) escape and radio resource control (RRC) abnormality; similarly, SA escape can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points; RRC abnormality can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points, which will not be repeated here. There are two reasons for the failure of the signal downgraded to 2G / 3G, namely, unable to return to 4G signal and network attached storage (NAS) abnormality; similarly, unable to return to 4G signal can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points; NAS abnormality can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points, which will not be repeated here. There are two reasons for no signal, namely, the network drop reason value and modem crash; similarly, the network drop reason value can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points; modem crash can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points, which will not be elaborated here. There are two reasons for poor signal, namely, low signal grid number and signal strength; similarly, low signal grid number can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points; signal strength can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points, which will not be elaborated here.
[0200] For network problems in communication problems, they can be subdivided into three scenarios in "Network Problems", namely, Internet access failure, slow network speed, and SIM card unrecognition. There are three reasons for Internet access failure, namely, protocol data unit (PDU) bearer activation abnormality, network no response triggering data recovery mechanism (doRecovery), and data link abnormal disconnection; similarly, PDU bearer activation abnormality can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points; network no response triggering doRecovery can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points; data link abnormal disconnection can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points, which will not be repeated here. There are two reasons for slow network speed, namely, application layer and protocol stack delay; similarly, the application layer can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points; protocol stack delay can also correspond to multiple detection scenarios, each detection scenario can include one or more fault detection points, which will not be repeated here. The failure reason for the SIM card not being able to be recognized includes one, that is, the SIM card is abnormal; similarly, the SIM card abnormality can also correspond to multiple detection scenarios, and each detection scenario can include one or more fault detection points.
[0201] Assuming that the first fault scenario is the failure of the primary called party / dropped call, the communication diagnosis module of the terminal device needs to detect fault detection point a, fault detection point b, fault detection point c in detection scenario 1, fault detection point d, fault detection point e in detection scenario 2, fault detection point f in detection scenario 3, fault detection point g, fault detection point h in detection scenario 4, fault detection point i in detection scenario 5, and fault detection point j in detection scenario 6.
[0202] In the process of detecting the fault detection points included in each detection scenario, it is identified that fault detection point a in detection scenario 1 fails and fault detection point f in detection scenario 3 fails. Then the communication diagnosis module needs to dump the log file when fault detection point a in detection scenario 1 fails and the log file when fault detection point f in detection scenario 3 fails (i.e., the two first log files).
[0203] Table 2
[0204]
[0205]
[0206] S506: The terminal device receives a log upload instruction input by the user.
[0207] S507: The terminal device sends the first log file to the server based on the log upload instruction. Accordingly, the server receives the first log file from the terminal device.
[0208] In an embodiment of the present application, the communication diagnostic module (such as the communication diagnostic module 405 mentioned above) in the terminal device sends the first log file dumped to the log engine module (such as the log engine module 403 mentioned above). When the log engine module receives the log upload instruction input by the user, it is necessary to send the first log file to the server. If the first log file is multiple, it is necessary to package the multiple first log files, and then send the packaged multiple first log files to the server.
[0209] like Fig. 9 As shown, Fig. 9 : This is a schematic diagram of a log upload interface provided by an embodiment of the present application. The log upload interface includes a problem log box, a save option, and a submit option. The problem log box displays the first log file that was successfully packaged before. When the commercial user clicks the "Submit option" (that is, the terminal device receives the log upload instruction input by the user), the first log file can be sent to the server. Of course, the commercial user can also click the "Save option" to save the information in the current log upload interface.
[0210] In a possible implementation, when the terminal device sends the first log file to the server based on the log upload instruction, the specific implementation may include the following steps s31 to s33. Based on this method, the last log file can be visualized and the accuracy of handling the fault problem reported by the user can be improved.
[0211] s31. The terminal device obtains the problem description information fed back by the user, the multimedia information fed back by the user, the time information of the problem fed back by the user, and the probability information of the problem fed back by the user.
[0212] In a specific implementation, the intelligent detection module of the terminal device (such as the intelligent detection module 402 mentioned above) can obtain the problem description information fed back by the user, the multimedia information fed back by the user, the time information of the problem fed back by the user, and the probability information of the problem fed back by the user.
[0213] s32. Based on the log upload instruction, the terminal device packages the first log file, the problem description information, the multimedia information, the problem occurrence time information and the problem occurrence probability information to obtain a fault log file.
[0214] s33. The terminal device sends the fault log file to the server. Correspondingly, the server receives the fault log file from the terminal device.
[0215] Optionally, the terminal device packages the first log file, the problem description information, the multimedia information, the problem occurrence time information and the problem occurrence probability information based on the log upload instruction to obtain the fault log file. The specific implementation method may be: the terminal device packages the problem description information, the multimedia information, the problem occurrence time information and the problem occurrence probability information to obtain feedback problem information; and packages the feedback problem information and the first log file to obtain the fault log file.
[0216] That is to say, the intelligent detection module of the terminal device can package the problem description information fed back by the user, the multimedia information fed back by the user, the problem occurrence time information fed back by the user, and the problem occurrence probability information fed back by the user to obtain feedback problem information; and then send the feedback problem information to the log engine module of the terminal device; the log engine module can then package the first log file previously obtained from the communication diagnosis module and the feedback problem information together and send them to the server.
[0217] Optionally, when there are multiple first log files, the terminal device packages the first log file, the problem description information, the multimedia information, the problem occurrence time information and the problem occurrence probability information based on the log upload instruction to obtain a fault log file. The specific implementation method may be: the terminal device packages the multiple first log files to obtain multiple packaged first log files; packages the problem description information, the multimedia information, the problem occurrence time information and the problem occurrence probability information to obtain feedback problem information; packages the feedback problem information and the packaged multiple first log files to obtain a fault log file.
[0218] That is to say, the intelligent detection module of the terminal device can package the problem description information fed back by the user, the multimedia information fed back by the user, the problem occurrence time information fed back by the user, and the problem occurrence probability information fed back by the user to obtain feedback problem information; and then send the feedback problem information to the log engine module of the terminal device; the log engine module can then package the multiple packaged first log files and the feedback problem information previously obtained from the communication diagnosis module together and send them to the server.
[0219] like Fig. 10AAs shown, the terminal device can view the smart detection notification card in the notification bar, which includes notification information, exit options and feedback problem options. The notification information notifies commercial users: "The diagnostic mode has been turned on and will automatically exit at 5:01 pm on July 6, 2023. Please click Feedback Problem to provide relevant information after the problem reappears." Commercial users can click the Feedback Problem option multiple times within the feedback time to provide log feedback. The feedback time here can be a preset time period from the start of the fault diagnosis mode, or it can be the period from the start of the fault diagnosis mode to the end of the fault diagnosis mode, or it can be a preset time period after the fault diagnosis mode is turned off, and there is no limitation here. Of course, commercial users can also click the exit option to exit the smart detection notification box.
[0220] When a commercial user clicks the feedback option within the feedback time, the feedback interface (such as Fig. 10B As shown). The feedback problem interface includes a problem description box, a multimedia information addition box, a problem occurrence time column, a problem occurrence probability column, a problem log box, a save option and a submit option. Commercial users can enter the problem description information (i.e., the problem description information reported by the user) in the problem description box, and can specifically describe the details of the problem encountered. Commercial users can add multimedia information (i.e., multimedia information reported by the user) in the multimedia information addition box, such as pictures, videos, icons of applications with problems, etc., which are not limited here. Commercial users can select the time when the problem occurred in the problem occurrence time column (i.e., the problem occurrence time information reported by the user), such as 11:07 am on July 6, 2023. Commercial users can select the probability of the problem occurring in the problem occurrence probability column (i.e., the problem occurrence probability information reported by the user), such as occasionally, frequently, etc. The first log file that was successfully packaged before can be displayed in the problem log box. When the commercial user clicks "Submit Option" (i.e., the terminal device receives the log upload instruction entered by the user), the first log file can be sent to the server. Of course, commercial users can also click "Save Option" to save the information in the current feedback problem interface.
[0221] In general, if Fig.11 As shown, the implementation process of the log processing method is explained below with a complete example. The implementation process of the log processing method may include the implementation process on the server side and the implementation process on the terminal device side. Specifically, it includes the following steps s41 to s415, wherein steps s41 to s43 are the implementation process executed on the server side, and steps s44 to s415 are the implementation process executed on the terminal device side. It should be noted that steps s41 to s43 may not be executed, that is, the terminal device initiates the remote log collection task by itself to realize the self-feedback mode.
[0222] s41. Receive user feedback on fault issues.
[0223] The customer service personnel on the server side (which can be understood as the users on the server side) can receive fault problems reported by commercial users (which can be understood as the users on the terminal device side) through a telephone hotline.
[0224] s42. Select the problem category.
[0225] The customer service personnel on the server side further classifies the fault problem through the remote log collection module in the server, that is, selects a fault scenario according to the fault problem. The server determines the fault scenario selected by the customer service personnel as the first fault scenario. For details, please refer to the description in the above step S501, which will not be repeated here.
[0226] s43. Enable remote log collection.
[0227] After the remote log collection module in the server obtains the first fault scenario selected by the customer service personnel, it can start a remote log collection task for the first fault scenario for the terminal device, specifically by sending a log collection request to the terminal device, and the log collection request can include the first fault scenario. For details, please refer to the description in the above step S501, which will not be repeated here.
[0228] s44. Commercial users enable fault diagnosis mode.
[0229] Commercial users (which can be understood as users on the terminal device side) can enable the fault diagnosis mode through the intelligent detection module in the terminal device. For details, please refer to the description in the above step S501, which will not be repeated here.
[0230] s45. The intelligent detection module turns on the log switch and sends a first dump switch identifier corresponding to the first fault scenario to the log engine module.
[0231] The intelligent detection module controls the start and end of log collection by turning on the log switch. In the fault diagnosis mode, the intelligent detection module further determines the first dump switch identifier corresponding to the first fault scenario, and sends the first dump switch identifier corresponding to the first fault scenario to the log engine module. For details, please refer to the description in the above step S502, which will not be repeated here.
[0232] s46. The log engine module downloads the first configuration file corresponding to the first fault scenario from the cloud configuration platform module in the server according to the first dump switch identifier.
[0233] Accordingly, the configuration platform module sends the first configuration file corresponding to the first fault scenario to the log engine module. For details, please refer to the description in the above step S503, which will not be repeated here.
[0234] s47. The log engine module sends an automatic dump instruction to the communication diagnosis module.
[0235] Correspondingly, after receiving the automatic dump instruction, the communication diagnosis module reads the first configuration file corresponding to the first fault scenario from the log engine module. For details, please refer to the description in the above step S504, which will not be repeated here.
[0236] s48. The communication diagnosis module parses the first configuration file and enables the features of fault identification and log dump.
[0237] After the communication diagnosis module reads the first configuration file corresponding to the first fault scenario, it can parse the content in the first configuration file, including one or more detection scenarios, each detection scenario including one or more fault detection points. Then, fault detection can be started for the fault detection points in the one or more detection scenarios. For details, please refer to the description in the above step S504, which will not be repeated here.
[0238] s49. The communication diagnosis module detects that a fault occurs at the first fault detection point.
[0239] s410. The communication diagnosis module automatically dumps the first log file when a fault occurs at the first fault detection point.
[0240] s411. The communication diagnosis module packages and dumps the first log file and sends it to the log engine module.
[0241] Among them, the specific details of steps s49 to s411 can refer to the description of the above step S505, and will not be repeated here.
[0242] s412. Commercial users report and feedback problem information through the intelligent detection module.
[0243] s413. The intelligent detection module calls the packaging process to package the feedback problem information and send it to the log engine module.
[0244] s414. The log engine module packages the first log file and the feedback problem information to obtain a fault log file.
[0245] s415. The log engine module sends the fault log file to the server.
[0246] Among them, the specific details of steps s412 to s415 can refer to the description of the above steps S506 and S507, and will not be repeated here.
[0247] It can be seen that based on the method described above, after the terminal device obtains the first fault scenario, the terminal device can automatically download the first configuration file corresponding to the first fault scenario from the configuration platform according to the dump switch identifier corresponding to the first fault scenario. The first configuration file includes one or more detection scenarios for the first fault scenario, and each detection scenario includes one or more fault detection points. The terminal device detects the fault monitoring points in the one or more first fault scenarios. If a fault detection point (such as the first fault detection point) fails, the log file (i.e., the first log file) when the first fault detection point fails can be automatically dumped. After receiving the log upload instruction input by the commercial user, the first log file can be sent to the server. Since the first log file is automatically dumped when the first fault detection point fails, the timeliness of the recorded problem log is avoided, the validity of the collected log files is guaranteed, and it is conducive to improving the efficiency of handling fault problems reported by users and improving user experience.
[0248] See also Fig.12 , Fig.12 A structural schematic diagram of a log processing device 1200 according to an embodiment of the present application is shown. Fig.12 The log processing device shown may be a terminal device, or a device in a terminal device, or a device that can be used in conjunction with a terminal device; or Fig.12 The log processing device shown may be a server, or a device in a server, or a device that can be used in conjunction with a server. Fig.12 The log processing device shown may include a communication unit 1201 and a processing unit 1202. Specifically, the processing unit 1202 is used to process data, which may be data received by the communication unit 1201, and the processed data may also be sent by the communication unit 1201.
[0249] In one implementation, the log processing device 1200 is a terminal device, or may be a device in the terminal device, or a device that can be used in conjunction with the terminal device, wherein:
[0250] The communication unit 1201 is used to obtain a first fault scenario;
[0251] The processing unit 1202 is configured to determine a first dump switch identifier corresponding to the first fault scenario;
[0252] The processing unit 1202 is configured to download a first configuration file corresponding to the first fault scenario from the server according to the first dump switch identifier; the first configuration file includes one or more detection scenarios for the first fault scenario, and one detection scenario includes one or more fault detection points;
[0253] The processing unit 1202 is used to detect whether a fault detection point in the one or more detection scenarios fails;
[0254] The processing unit 1202 is used to dump a first log file, where the first log file is a log file when a first fault detection point fails, where the first fault detection point is a fault detection point where a fault occurs in the one or more detection scenarios;
[0255] The communication unit 1201 is used to receive a log upload instruction input by a user;
[0256] The communication unit 1201 is used to send the first log file to the server based on the log upload instruction.
[0257] In a possible implementation, the first configuration file further includes a first dump times threshold value, and the number of times the log file is dumped within the first preset time is less than or equal to the first dump times threshold value.
[0258] In a possible implementation, the first configuration file further includes a second dump times threshold value corresponding to the first fault scenario, and the number of times the first log file is dumped is less than or equal to the second dump times threshold value.
[0259] In one possible implementation, the processing unit 1202, when acquiring the first fault scenario, is specifically used to: after obtaining the user's authorization for the server to collect logs, display an intelligent detection interface, which includes a problem feedback option; if a trigger operation for the problem feedback option is detected, display a problem feedback interface, which includes one or more fault type options; if a trigger operation for a first fault type option among the one or more fault type options is detected, display a fault scenario classification box, which includes one or more fault scenario options and a confirmation option; if a trigger operation for a first fault scenario option among the one or more fault scenario options is detected, determine the fault scenario corresponding to the first fault scenario option as the first fault scenario.
[0260] In one possible implementation, the fault scenario classification box also includes a confirmation option, and the processing unit 1202 is also used to: if a trigger operation for the confirmation option is detected, start the fault diagnosis mode for the first fault scenario; determine the first dump switch identifier corresponding to the first fault scenario, including: determining the first dump switch identifier corresponding to the first fault scenario in the fault diagnosis mode of the first fault scenario.
[0261] In a possible implementation, when acquiring the first fault scenario, the processing unit 1202 is specifically configured to: receive a log collection request from a server, where the log collection request includes the first fault scenario.
[0262] In one possible implementation, the processing unit 1202, before determining the first dump switch identifier corresponding to the first fault scenario, is further used to: receive a diagnostic verification code from the server; if the user authorizes the server to collect logs, display an intelligent detection interface, which includes a diagnostic analysis option; if a trigger operation for the diagnostic analysis option is detected, display a diagnostic analysis interface, which includes a verification code input box; after obtaining the first verification code in the verification code input box, if the first verification code is the same as the diagnostic verification code, start the fault diagnosis mode for the first fault scenario; the processing unit 1202, when determining the first dump switch identifier corresponding to the first fault scenario, is specifically used to: determine the first dump switch identifier corresponding to the first fault scenario in the fault diagnosis mode of the first fault scenario.
[0263] In one possible implementation, the processing unit 1202, when sending the first log file to the server based on the log upload instruction, is specifically used to: obtain problem description information fed back by the user, multimedia information fed back by the user, problem occurrence time information fed back by the user, and problem occurrence probability information fed back by the user; based on the log upload instruction, package the first log file, the problem description information, the multimedia information, the problem occurrence time information, and the problem occurrence probability information to obtain a fault log file; and send the fault log file to the server.
[0264] In a possible implementation, the communication unit 1201 is further used to receive first information from the server, where the first information is a mapping relationship between a fault scenario and a dump switch identifier; the processing unit 1202, when determining the first dump switch identifier corresponding to the first fault scenario, is specifically used to: determine the first dump switch identifier corresponding to the first fault scenario based on the mapping relationship.
[0265] In a possible implementation, the fault scenario in the first information belongs to one or more secondary fault scenario types, and one secondary fault scenario type belongs to one primary fault scenario type.
[0266] In a possible implementation, the communication unit 1201 is further used to receive second information from the server, where the second information is updated information of the first information; and the processing unit 1202 is further used to adjust the first information to the second information.
[0267] In a possible implementation, the communication unit 1201 is further used to receive a second configuration file corresponding to the first fault scenario from the server, where the second configuration file is a configuration file after the first configuration file is updated; the processing unit 1202 is further used to adjust the first configuration file to the second configuration file.
[0268] In one implementation, the log processing device 1200 is a server, or a device in a server, or a device that can be used in conjunction with a server, wherein:
[0269] The processing unit 1202 is configured to receive a first dump switch identifier corresponding to a first fault scenario from a terminal device;
[0270] The communication unit 1201 is configured to send a first configuration file corresponding to the first fault scenario to the terminal device according to the first dump switch identifier corresponding to the first fault scenario; the first configuration file includes one or more detection scenarios for the first fault scenario, and one detection scenario includes one or more fault detection points;
[0271] The communication unit 1201 is used to receive a first log file from a terminal device; the first log file is a log file when a first fault detection point fails, and the first fault detection point is a fault detection point where a fault occurs in the one or more detection scenarios.
[0272] In a possible implementation, the first configuration file further includes a first dump times threshold value, and the number of times the log file is dumped within the first preset time is less than or equal to the first dump times threshold value.
[0273] In a possible implementation, the first configuration file further includes a second dump times threshold value corresponding to the first fault scenario, and the number of times the first log file is dumped is less than or equal to the second dump times threshold value.
[0274] In one possible implementation, before sending the first configuration file corresponding to the first fault scenario to the terminal device according to the first dump switch identifier corresponding to the first fault scenario, the processing unit 1202 is also used to obtain the first fault scenario; the communication unit 1201 is also used to send a log collection request to the terminal device, and the log collection request includes the first fault scenario.
[0275] In one possible implementation, the processing unit 1202, before obtaining the first fault scenario, is also used to: display a remote log acquisition interface, which includes a new task option; if a trigger operation for the new task option is detected, a new task interface is displayed, which includes a task order number box, a task name box, a fault scenario option and a save option; when obtaining the first fault scenario, the processing unit 1202 is specifically used to: obtain the first fault scenario selected for the fault scenario option, the task order number information in the task order number box, and the task name information in the task name box; if a trigger operation for the save option is detected, a diagnostic verification code is generated; the communication unit 1201 is also used to send the diagnostic verification code to the terminal device.
[0276] In one possible implementation, the communication unit 1201, when receiving the first log file from the terminal device, is specifically used to: receive a fault log file from the terminal device, wherein the fault log file is obtained by packaging the first log file, problem description information fed back by the user, multimedia information fed back by the user, problem occurrence time information fed back by the user, and problem occurrence probability information fed back by the user.
[0277] In a possible implementation, the communication unit 1201 is further configured to: send first information to the terminal device, where the first information is a mapping relationship between a fault scenario and a dump switch identifier.
[0278] In a possible implementation, the fault scenario in the first information belongs to one or more secondary fault scenario types, and one secondary fault scenario type belongs to one primary fault scenario type.
[0279] In a possible implementation, the communication unit 1201 is further configured to: when it is detected that the first information is updated, send second information to the terminal device, where the second information is updated information of the first information.
[0280] In a possible implementation, the communication unit 1201 is further configured to: when it is detected that the first configuration file is updated, send a second configuration file corresponding to the first fault scenario to the terminal device, where the second configuration file is a configuration file after the first configuration file is updated.
[0281] Fig.13 A structural diagram of another log processing device is given. The log processing device 1300 can be a terminal device or server in the above method embodiment, or a chip, chip system, or processor that supports the terminal device or server to implement the above method. The log processing device can be used to implement the method described in the above method embodiment, and the details can be referred to the description in the above method embodiment.
[0282] The log processing device 1300 may include one or more processors 1301. The processor 1301 may be a general-purpose processor or a dedicated processor, etc. For example, it may be a baseband processor or a central processing unit. The baseband processor may be used to process the communication protocol and communication data, and the central processing unit may be used to control the log processing device (such as a base station, a baseband chip, a terminal, a terminal chip, a DU or a CU, etc.), execute a software program, and process the data of the software program.
[0283] Optionally, the log processing device 1300 may include one or more memories 1302, on which instructions 1304 may be stored, and the instructions may be executed on the processor 1301, so that the log processing device 1300 performs the method described in the above method embodiment. Optionally, data may also be stored in the memory 1302. The processor 1301 and the memory 1302 may be provided separately or integrated together.
[0284] Optionally, the log processing device 1300 may further include a transceiver 1305 and an antenna 1306. The transceiver 1305 may be referred to as a transceiver unit, a transceiver, or a transceiver circuit, etc., for implementing a transceiver function. The transceiver 1305 may include a receiver and a transmitter. The receiver may be referred to as a receiver or a receiving circuit, etc., for implementing a receiving function; the transmitter may be referred to as a transmitter or a transmitting circuit, etc., for implementing a transmitting function. Among them, Fig.12 The processing unit 1202 shown may be a processor 1301. The communication unit 1201 may be a transceiver 1305.
[0285] In another possible design, the processor 1301 may include a transceiver for implementing the receiving and sending functions. For example, the transceiver may be a transceiver circuit, or an interface, or an interface circuit. The transceiver circuit, interface, or interface circuit for implementing the receiving and sending functions may be separate or integrated. The above-mentioned transceiver circuit, interface, or interface circuit may be used for reading and writing code / data, or the above-mentioned transceiver circuit, interface, or interface circuit may be used for transmitting or delivering signals.
[0286] In another possible design, optionally, the processor 1301 may store an instruction 1303, and the instruction 1303 runs on the processor 1301, which can enable the log processing device 1300 to perform the method described in the above method embodiment. The instruction 1303 may be solidified in the processor 1301, in which case the processor 1301 may be implemented by hardware.
[0287] In another possible design, the log processing device 1300 may include a circuit that can implement the functions of sending, receiving or communicating in the aforementioned method embodiment. The processor and transceiver described in the embodiments of the present application can be implemented in an integrated circuit (IC), an analog IC, a radio frequency integrated circuit RFIC, a mixed signal IC, an application specific integrated circuit (ASIC), a printed circuit board (PCB), an electronic device, etc. The processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal oxide semiconductor (CMOS), N-type metal oxide semiconductor (nMetal-oxide-semiconductor, NMOS), P-type metal oxide semiconductor (positive channelmetal oxide semiconductor, PMOS), bipolar junction transistor (Bipolar Junction Transistor, BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
[0288] The log processing device described in the above embodiments may be a terminal device or a server, but the scope of the log processing device described in the embodiments of the present application is not limited thereto, and the structure of the log processing device may not be limited thereto. Fig.13 The log processing device may be an independent device or may be part of a larger device. For example, the log processing device may be:
[0289] (1) Independent integrated circuit IC, or chip, or chip system or subsystem;
[0290] (2) having a set of one or more ICs, and optionally, the IC set may also include a storage component for storing data and instructions;
[0291] (3) ASIC, such as modem (MSM);
[0292] (4) Modules that can be embedded in other devices;
[0293] (5) Receivers, terminals, smart terminals, cellular phones, wireless devices, handheld devices, mobile units, vehicle-mounted devices, network devices, cloud devices, artificial intelligence devices, etc.;
[0294] (6)Others
[0295] For the case where the log processing device can be a chip or a chip system, see Fig.14 Schematic diagram of the chip structure shown. Fig.14 The chip 1400 shown includes a processor 1401 and an interface 1402. Optionally, it may also include a memory 1403. The number of the processor 1401 may be one or more, and the number of the interface 1402 may be multiple.
[0296] For the case where the chip is used to implement a terminal device or a server in the embodiment of the present application:
[0297] The interface 1402 is used to receive or output signals;
[0298] The processor 1401 is used to execute data processing operations of the terminal device or the server.
[0299] It is understandable that some optional features in the embodiments of the present application may be implemented independently in certain scenarios without relying on other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects. They may also be combined with other features according to needs in certain scenarios. Accordingly, the log processing device provided in the embodiments of the present application may also implement these features or functions accordingly, which will not be elaborated here.
[0300] It should be understood that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0301] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0302] The present application also provides a computer-readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed on a log processing device, the functions of any of the above method embodiments are implemented.
[0303] The present application also provides a computer program product. When the computer program product is executed on a computer, the computer can implement the functions of any of the above method embodiments.
[0304] The present application provides a communication system, which includes a terminal device and a server; wherein the terminal device is used to execute the method executed by the terminal device in the above embodiment, and the server is used to execute the method executed by the server in the above embodiment.
[0305] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can 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 the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. 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 a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0306] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A log processing method, characterized in that: The method comprises: Obtaining a first fault scenario; the first fault scenario is a fault scenario corresponding to the first fault scenario option when a trigger operation for a first fault scenario option among one or more fault scenario options is detected; or, the first fault scenario is a fault scenario indicated by a log collection request from a server; Determine a first dump switch identifier corresponding to the first fault scenario; Downloading a first configuration file corresponding to the first fault scenario from a server according to the first dump switch identifier; the first configuration file includes one or more detection scenarios for the first fault scenario, and one detection scenario includes one or more fault detection points; Detecting whether a fault detection point in the one or more detection scenarios fails; Dumping a first log file, where the first log file is a log file when a first fault detection point fails, and the first fault detection point is a fault detection point where a fault occurs in the one or more detection scenarios; Receive log upload instructions input by the user; Based on the log upload instruction, the first log file is sent to the server.
2. The method according to claim 1, characterized in that: The first configuration file also includes a first dump times threshold value, and the number of times the log file is dumped within a first preset time is less than or equal to the first dump times threshold value.
3. The method according to claim 1, characterized in that The first configuration file also includes a second dump times threshold value corresponding to the first fault scenario, and the number of times the first log file is dumped is less than or equal to the second dump times threshold value.
4. The method according to any one of claims 1 to 3, characterized in that The obtaining of the first fault scenario includes: After obtaining the user's authorization for the server to collect logs, an intelligent detection interface is displayed, wherein the intelligent detection interface includes a problem feedback option; If a trigger operation for the problem feedback option is detected, a problem feedback interface is displayed, wherein the problem feedback interface includes one or more fault type options; If a trigger operation for a first fault type option among the one or more fault type options is detected, a fault scenario classification box is displayed, wherein the fault scenario classification box includes one or more fault scenario options; If a trigger operation for a first fault scenario option among the one or more fault scenario options is detected, the fault scenario corresponding to the first fault scenario option is determined as the first fault scenario.
5. The method according to claim 4, characterized in that The fault scenario classification box also includes a confirmation option, and the method further includes: If a trigger operation for the confirmation option is detected, a fault diagnosis mode for the first fault scenario is started; The determining a first dump switch identifier corresponding to the first fault scenario includes: A first dump switch identifier corresponding to the first fault scenario is determined in a fault diagnosis mode of the first fault scenario.
6. The method according to any one of claims 1 to 3, characterized in that Before determining the first dump switch identifier corresponding to the first fault scenario, the method further includes: receiving a diagnostic verification code from the server; If the user authorizes the server to collect logs, an intelligent detection interface is displayed, wherein the intelligent detection interface includes a diagnostic analysis option; If a trigger operation for the diagnostic analysis option is detected, a diagnostic analysis interface is displayed, wherein the diagnostic analysis interface includes a verification code input box; After obtaining the first verification code in the verification code input box, if the first verification code is the same as the diagnosis verification code, starting the fault diagnosis mode for the first fault scenario; The determining a first dump switch identifier corresponding to the first fault scenario includes: A first dump switch identifier corresponding to the first fault scenario is determined in a fault diagnosis mode of the first fault scenario.
7. The method according to any one of claims 1 to 3, characterized in that The sending the first log file to the server based on the log upload instruction includes: Obtaining problem description information fed back by users, multimedia information fed back by users, time information of problem occurrence fed back by users, and probability information of problem occurrence fed back by users; Based on the log upload instruction, the first log file, the problem description information, the multimedia information, the problem occurrence time information and the problem occurrence probability information are packaged to obtain a fault log file; The fault log file is sent to the server.
8. The method according to any one of claims 1 to 3, characterized in that The method further comprises: receiving first information from the server, where the first information is a mapping relationship between a fault scenario and a dump switch identifier; The determining a first dump switch identifier corresponding to the first fault scenario includes: A first dump switch identifier corresponding to the first fault scenario is determined based on the mapping relationship.
9. The method according to claim 8, characterized in that The fault scenario in the first information belongs to one or more secondary fault scenario types, and one secondary fault scenario type belongs to one primary fault scenario type.
10. The method according to claim 8, characterized in that The method further comprises: receiving second information from the server, where the second information is updated information of the first information; The first information is adjusted to the second information.
11. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Receiving a second configuration file corresponding to the first fault scenario from the server, where the second configuration file is a configuration file obtained by updating the first configuration file; The first configuration file is adjusted to the second configuration file.
12. A log processing method, characterized in that: The method comprises: Receiving a first dump switch identifier corresponding to a first fault scenario from a terminal device; the first fault scenario is a fault scenario corresponding to the first fault scenario option when the terminal device detects a trigger operation for a first fault scenario option among one or more fault scenario options; or, the first fault scenario is a fault scenario indicated by the server to the terminal device through a log collection request; Sending a first configuration file corresponding to the first fault scenario to the terminal device according to a first dump switch identifier corresponding to the first fault scenario; the first configuration file includes one or more detection scenarios for the first fault scenario, and one detection scenario includes one or more fault detection points; A first log file is received from the terminal device; the first log file is a log file when a first fault detection point fails, and the first fault detection point is a fault detection point where a fault occurs in the one or more detection scenarios.
13. The method according to claim 12, characterized in that The first configuration file also includes a first dump times threshold value, and the number of times the log file is dumped within a first preset time is less than or equal to the first dump times threshold value.
14. The method according to claim 12, characterized in that The first configuration file also includes a second dump times threshold value corresponding to the first fault scenario, and the number of times the first log file is dumped is less than or equal to the second dump times threshold value.
15. The method according to any one of claims 12 to 14, characterized in that: Before sending the first configuration file corresponding to the first fault scenario to the terminal device according to the first dump switch identifier corresponding to the first fault scenario, the method further includes: Displaying a remote log acquisition interface, wherein the remote log acquisition interface includes a new task option; If a trigger operation for the new task option is detected, a new task interface is displayed, wherein the new task interface includes a task number box, a task name box, a fault scenario option, and a save option; Acquire the first fault scenario selected for the fault scenario option, the task order number information in the task order number box, and the task name information in the task name box; If a triggering operation for the saving option is detected, a diagnostic verification code is generated; The diagnostic verification code is sent to the terminal device.
16. The method according to any one of claims 12 to 14, characterized in that: The receiving a first log file from the terminal device includes: A fault log file is received from the terminal device, wherein the fault log file is obtained by packaging the first log file, problem description information fed back by the user, multimedia information fed back by the user, problem occurrence time information fed back by the user, and problem occurrence probability information fed back by the user.
17. The method according to any one of claims 12 to 14, characterized in that: The method further comprises: Sending first information to the terminal device, where the first information is a mapping relationship between a fault scenario and a dump switch identifier.
18. The method according to claim 17, characterized in that The fault scenario in the first information belongs to one or more secondary fault scenario types, and one secondary fault scenario type belongs to one primary fault scenario type.
19. The method according to claim 17, characterized in that The method further comprises: When it is detected that the first information is updated, second information is sent to the terminal device, where the second information is the updated information of the first information.
20. The method according to any one of claims 12 to 14, characterized in that The method further comprises: When it is detected that the first configuration file is updated, a second configuration file corresponding to the first fault scenario is sent to the terminal device, where the second configuration file is a configuration file after the first configuration file is updated.
21. A log processing device, characterized in that: include: One or more processors, one or more memories; wherein the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program code, the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the log processing device executes the method as described in any one of claims 1-11 or claims 12-20.
22. A chip, characterized in that: It comprises a processor and an interface, wherein the processor and the interface are coupled; the interface is used to receive or output signals, and the processor is used to execute code instructions so that the method described in any one of claims 1 to 11 is executed, or so that the method described in any one of claims 12 to 20 is executed.
23. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed on the log processing device, the log processing device executes the method according to any one of claims 1 to 11 or claims 12 to 20.
24. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to perform the method according to any one of claims 1 to 11 or claims 12 to 20.
