Terminal diagnosis method and device, terminal and storage medium

By introducing the composite decision -making query interface in the terminal diagnostic module, combined with the second diagnosis results, the first diagnosis result is determined to solve the problem of reduction of diagnostic accuracy caused by the independence of diagnostic modules in existing technologies, realizing a higher diagnostic accuracy rate And more comprehensive fault diagnosis analysis.

CN119377018AInactive Publication Date: 2025-01-28GUANG DONG MING CHUANG SOFTWARE TECH CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310924002.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-25
Publication Date
2025-01-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the diagnostic modules of the terminal are independent of each other, ignoring the possible mutual influence relationship between special items, resulting in a decrease in the accuracy of the diagnostic results.

Method used

By relying on the second diagnostic item, first call the second diagnostic module to perform the second diagnostic item, then call the first diagnostic module to perform the first diagnostic item, and query the second diagnosis of the second diagnosis through a composite decision -making interface. As a result, the first diagnosis results were determined in combination with the second diagnosis results.

Benefits of technology

The accuracy of diagnosis items has been improved, and the occurrence of misdiagnosis has been reduced, and a more comprehensive and reasonable terminal fault diagnosis analysis mechanism is provided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119377018A_ABST
    Figure CN119377018A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a terminal diagnosis method and device, a terminal and a storage medium, and belongs to the technical field of computers.The method comprises the steps that under the condition that a first diagnosis item depends on the second diagnosis item, a second diagnosis module is called to execute the second diagnosis item, and then a first diagnosis module is called to execute the first diagnosis item; through the first diagnosis module, a composite decision query interface is called to query a second diagnosis result of the second diagnosis item, the composite decision query interface is used for cross-module query of diagnosis results of diagnosis items executed by other diagnosis modules, and the other diagnosis modules comprise diagnosis modules except the first diagnosis module; and determining a first diagnosis result of the first diagnosis item through the first diagnosis module in combination with the second diagnosis result. According to the method, cross-diagnosis-module diagnosis logic can be executed, and the accuracy of terminal diagnosis is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a terminal diagnosis method, device, terminal and storage medium. Background Art

[0002] The terminal is usually equipped with a diagnostic program, and the terminal can run the diagnostic program to diagnose the terminal's faults. The diagnostic program includes multiple diagnostic modules, and each diagnostic module is divided according to specialization, for example, a performance-specific diagnostic module, a stability-specific diagnostic module, a charging-specific diagnostic module, a heating-specific diagnostic module, a communication-specific diagnostic module, an imaging-specific diagnostic module, etc.

[0003] In related technologies, the diagnostic logic is only implemented inside the diagnostic module, and the diagnostic modules are independent of each other. The diagnostic module only focuses on the analysis and location of the fault causes in the project, ignoring the possible mutual influence between projects.

[0004] For example, the performance-specific diagnostic module can execute the diagnostic items of "frame loss", "interface freeze", and "slow response", and the stability-specific diagnostic module can execute the "application freeze" diagnostic item. "Application freeze" will affect the diagnostic results of the three diagnostic items of "frame loss", "interface freeze", and "slow response".

[0005] It can be seen that the methods in the related art, in which each diagnosis module is independent of each other, will reduce the accuracy of the diagnosis result. Summary of the invention

[0006] The embodiment of the present application provides a terminal diagnosis method, device, terminal and storage medium. The technical solution is as follows:

[0007] According to one aspect of the present application, a terminal diagnosis method is provided, the method being executed by a terminal, the method comprising:

[0008] In the case where the first diagnostic item depends on the second diagnostic item, first calling the second diagnostic module to execute the second diagnostic item, and then calling the first diagnostic module to execute the first diagnostic item;

[0009] By means of the first diagnostic module, a composite decision query interface is called to query and obtain a second diagnostic result of the second diagnostic item, wherein the composite decision query interface is used to query the diagnostic results of the diagnostic items executed by other diagnostic modules across modules, wherein the other diagnostic modules include diagnostic modules other than the first diagnostic module;

[0010] A first diagnostic result of the first diagnostic item is determined by combining the first diagnostic module with the second diagnostic result.

[0011] According to another aspect of the present application, a terminal diagnosis device is provided, the device comprising:

[0012] a task management module, configured to first call the second diagnostic module to execute the second diagnostic item, and then call the first diagnostic module to execute the first diagnostic item, when the first diagnostic item depends on the second diagnostic item;

[0013] The first diagnostic module is used to call a composite decision query interface to query and obtain a second diagnostic result of the second diagnostic item, wherein the composite decision query interface is used to cross-module query the diagnostic results of the diagnostic items executed by other diagnostic modules, wherein the other diagnostic modules include diagnostic modules other than the first diagnostic module;

[0014] The first diagnostic module is used to determine a first diagnostic result of the first diagnostic item in combination with the second diagnostic result.

[0015] According to another aspect of the present application, a terminal is provided, the terminal comprising a processor and a memory, the memory storing at least one instruction, the instruction being loaded and executed by the processor to implement a terminal diagnostic method as provided in the implementation of the present application.

[0016] According to another aspect of the present application, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement a terminal diagnosis method as provided in the implementation of the present application.

[0017] The beneficial effects brought by the technical solution provided by the embodiments of the present application may include:

[0018] According to the dependency relationship between the diagnostic items, the second diagnostic module is first called to execute the dependent second diagnostic item, and then the first diagnostic module is called to call the first diagnostic item that depends on the second diagnostic item. When the first diagnostic module executes the first diagnostic item, it can query the second diagnostic result of the second diagnostic item executed by the second diagnostic module through the composite decision query interface, and generate the first diagnostic result of the first diagnostic item in combination with the second diagnostic result of the second diagnostic item. Since the first diagnostic result refers to the second diagnostic result of the second diagnostic item associated with it, the diagnostic accuracy of the first diagnostic item can be improved. This method provides a composite diagnostic decision mechanism across diagnostic modules, provides an implementation method for cross-module diagnostic logic, associates diagnostic logics of different special projects with associated relationships, and provides a more comprehensive and reasonable terminal fault diagnosis and analysis mechanism. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly introduce the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 is a schematic diagram of a terminal provided by an exemplary embodiment of the present application;

[0021] Figure 2 is a flow chart of a terminal diagnosis method provided by an exemplary embodiment of the present application;

[0022] Figure 3 is a schematic diagram of a diagnostic item provided by an exemplary embodiment of the present application;

[0023] Figure 4 is a flow chart of another terminal diagnosis method provided by another exemplary embodiment of the present application;

[0024] Figure 5 is a schematic diagram of a dependency tree provided by an exemplary embodiment of the present application;

[0025] Figure 6 is an architectural diagram of a diagnostic program provided by an exemplary embodiment of the present application;

[0026] Figure 7 is a flow chart of another terminal diagnosis method provided by another exemplary embodiment of the present application;

[0027] Figure 8 is a flowchart of another terminal diagnosis method provided by another exemplary embodiment of the present application;

[0028] Fig. 9 is a structural block diagram of a terminal diagnostic device provided by an exemplary embodiment of the present application;

[0029] Fig.10 It is a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0031] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0032] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0033] First, some terms involved in this application are introduced and explained. The following introduction and explanation as optional solutions can be arbitrarily combined with the technical solutions of the embodiments of this application, and they all belong to the protection scope of the embodiments of this application.

[0034] Diagnostic repair service: A system application that comes with the terminal and provides the core functions of terminal diagnosis. For example, it provides the core services that remote diagnosis, user self-diagnosis and PC (Personal Computer) diagnosis at after-sales outlets rely on.

[0035] Routine testing (Health Diagnostic apk): The mystock component application that comes with the terminal is used for user self-diagnosis.

[0036] Remote diagnosis: The user makes a call, and the telephone customer service connects to the user's terminal through the remote web (network) to perform diagnosis.

[0037] Composite decision-making diagnosis: A diagnostic method that combines the diagnostic results of other diagnostic modules to execute the diagnostic items of this diagnostic module.

[0038] Special project: A classification formed by dividing the terminal functional characteristics according to certain standards, similar to the concept of field.

[0039] Diagnostic accuracy: A measure of whether the fault diagnosed by the diagnostic program is consistent with the actual fault. The more consistent with the actual fault, the higher the diagnostic accuracy, up to 100%.

[0040] In the related technologies, the diagnostic modules and diagnostic logics in the mobile phone or IoT (Internet of Things) industry are divided according to special projects, such as performance special projects, stability special projects, charging special projects, heating special projects, communication special projects, imaging special projects, etc. The diagnostic logic is only implemented within the special projects, and there is no connection between the special projects. For example, the diagnostic logics of the performance special project, stability special project, and communication special project are independent of each other. For another example, the diagnostic logics of the camera special project and the short-distance communication special project in a certain intelligent detection program are also unrelated.

[0041] The diagnostic logic in related technologies is independent of each other and relatively simple. It only focuses on fault cause analysis and location within the project, while ignoring the possible connections between projects. At the same time, the diagnostic framework does not provide cross-project diagnostic capabilities. If there are diagnostic items with certain correlations between projects, there is no way to make a correct and comprehensive judgment, which can easily lead to some misdiagnosis problems.

[0042] For example, the performance item includes several diagnostic items: "frame loss", "interface freeze", and "slow response". There is a certain connection between these diagnostic items and the "application freeze" diagnostic item of the stability item. The occurrence of "application freeze" will also affect the diagnostic results of the "frame loss", "interface freeze", and "slow response" diagnostic items.

[0043] Based on this, an embodiment of the present application provides a terminal diagnosis method, so that the diagnosis module can combine the diagnosis results of other modules to obtain the diagnosis results of the diagnosis items of this module.

[0044] Figure 1 A terminal schematic diagram provided by an exemplary embodiment of the present application is shown.

[0045] Exemplarily, the terminal diagnosis method shown in the embodiment of the present application can be applied in a terminal, and the terminal 120 has a terminal diagnosis function. The terminal may include a mobile phone, a tablet computer, a notebook computer, a laptop computer, a desktop computer, an all-in-one computer, an Internet of Things device, an intelligent robot workstation, a television, a set-top box, smart glasses, a smart watch, a digital camera, an MP4 player terminal, an MP5 player terminal, a learning machine, a point-reading machine, an electronic paper book, an electronic dictionary, a vehicle terminal, a virtual reality (English: Virtual Reality, abbreviated: VR) player terminal or an augmented reality (English: Augmented Reality, abbreviated: AR) player terminal, etc.

[0046] Exemplarily, the terminal 120 is installed with a diagnostic program 102 , and when the terminal diagnostic function needs to be used, the terminal can run the diagnostic program to execute the corresponding diagnostic item.

[0047] The terminal 120 includes a first memory and a first processor. The first memory stores a terminal diagnostic algorithm; the terminal diagnostic algorithm is called and executed by the first processor to implement the terminal diagnostic method provided in the present application. The first memory may include but is not limited to the following: Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), and Electric Erasable Programmable Read-Only Memory (EEPROM).

[0048] The first processor may be composed of one or more integrated circuit chips. Optionally, the first processor may be a general-purpose processor, such as a central processing unit (CPU) or a network processor (NP). Optionally, the first processor may implement the terminal diagnosis method provided in the present application by running a program or code.

[0049] Please refer to Figure 2 , Figure 2 is a flow chart of a terminal diagnosis method provided by an exemplary embodiment of the present application. The terminal diagnosis method can be applied in a terminal, and the terminal can be the above-mentioned Figure 1 The terminal shown. Figure 2 In the terminal diagnosis method, the terminal diagnosis method includes:

[0050] Step 210 , when the first diagnostic item depends on the second diagnostic item, first call the second diagnostic module to execute the second diagnostic item, and then call the first diagnostic module to execute the first diagnostic item.

[0051] Optionally, a diagnostic program (or a client of the diagnostic program) is installed on the terminal. The method provided in the embodiment of the present application can be implemented by running the diagnostic program. Alternatively, the method provided in the embodiment of the present application can be executed by the client of the diagnostic program.

[0052] The diagnostic module (including the first diagnostic module, the second diagnostic module and other diagnostic modules mentioned later) refers to a program module, program unit, plug-in, component or program code in the diagnostic program. The diagnostic program includes at least two diagnostic modules, and different diagnostic modules are used to perform different special diagnostic items.

[0053] That is, the diagnostic module can be divided according to the special project, and one special project corresponds to one diagnostic module. Special projects refer to professional fields, for example, special projects may include: imaging special projects, charging special projects, performance special projects, stability special projects, display special projects, communication special projects, etc. The diagnostic module is used to execute at least one diagnostic item included in the special project.

[0054] Alternatively, the diagnosis module may also be divided according to at least one of the following dimensions: target software for diagnosis, target hardware for diagnosis, terminal function for diagnosis, and the like.

[0055] For example, the target software for diagnosis may include: system software, application software, video software, shopping software, etc. When the diagnosis modules are divided according to the target software for diagnosis, one type of software may correspond to one diagnosis module, or one software may correspond to one diagnosis module.

[0056] For another example, the target hardware for diagnosis may include: battery, display screen, processor, graphics card, network card, etc.

[0057] For another example, the terminal functions of diagnosis may include: camera function, communication function, network function, display function, touch function, microphone function, audio function, etc.

[0058] Each diagnostic module can perform at least one diagnostic item, which refers to a specific diagnostic item in a project. Figure 3 As shown, the performance-specific diagnostic module 301 can perform the following seven diagnostic items: click response speed, frame loss, interface freeze, boot speed, startup speed, memory, screen on and off speed. Alternatively, the battery diagnostic module can perform the following diagnostic items: battery power consumption speed, battery temperature, total battery power, battery loss, etc.

[0059] Optionally, one diagnostic item corresponds to one diagnostic module, and the diagnostic module includes the diagnostic logic or program code of the diagnostic item. Then, the diagnostic module includes the program code of at least one diagnostic item, and when the diagnostic module receives a diagnostic instruction of a diagnostic item, it can run the corresponding program code to execute the diagnostic item to obtain a diagnostic result.

[0060] Optionally, the diagnostic program also includes a diagnostic framework and / or a task management module, and the diagnostic framework and / or the task management module are used to schedule the diagnostic model to execute the diagnostic item. Optionally, the diagnostic framework and / or the task management module stores the corresponding relationship between the diagnostic item and the diagnostic module. When deciding to execute a diagnostic item, the diagnostic framework and / or the task management module can query the diagnostic module corresponding to the diagnostic item, send the diagnostic instruction of the diagnostic item to the diagnostic module, and call the diagnostic module to execute the diagnostic item.

[0061] The first diagnostic item is a diagnostic item executed by a first diagnostic module, and the second diagnostic module is a diagnostic item executed by a second diagnostic module, wherein the first diagnostic module and the second diagnostic module are different diagnostic modules.

[0062] Exemplarily, the second diagnostic item may refer to one diagnostic item or multiple diagnostic items; when the second diagnostic item refers to multiple diagnostic items, the second diagnostic module refers to the diagnostic modules corresponding to the multiple diagnostic items respectively, the multiple diagnostic items may correspond to different diagnostic modules respectively, and at least two diagnostic items among the multiple diagnostic items may correspond to the same diagnostic module. That is, when the second diagnostic item is multiple diagnostic items, the number of the second diagnostic modules may be multiple or one, but no matter whether the number of the second diagnostic modules is multiple or one, the second diagnostic module is a diagnostic module different from the first diagnostic module.

[0063] The first diagnostic item being dependent on the second diagnostic item means that: the second diagnostic result of the second diagnostic item will affect the diagnosis of the first diagnostic item, or the second diagnostic result will affect the first diagnostic result of the first diagnostic item, or the first diagnostic result of the first diagnostic item is generated based on the second diagnostic result.

[0064] For example, the first diagnostic item includes multiple determination thresholds, different second diagnostic results correspond to different determination thresholds, the first diagnostic module selects a determination threshold from the multiple determination thresholds according to the second diagnostic result, and performs a diagnostic determination of the first diagnostic item based on the selected determination threshold.

[0065] Alternatively, the diagnosis result of the first diagnosis item is a numerical value, which is calculated using the numerical value of the second diagnosis result.

[0066] Alternatively, the determination condition of the first diagnostic item includes the second diagnostic result. For example, when the second diagnostic result satisfies the first determination condition and the first parameter measured by the first diagnostic item satisfies the second determination condition, the first diagnostic result is determined as the first result; when the second diagnostic result satisfies the third determination condition and the first parameter measured by the first diagnostic item satisfies the fourth determination condition, the first diagnostic result is determined as the second result.

[0067] The first diagnostic item being dependent on the second diagnostic item may also be referred to as: a first diagnostic result of the first diagnostic item being dependent on a second diagnostic result of the second diagnostic item, or the first diagnostic item being associated with the second diagnostic item.

[0068] For example, when the terminal needs to execute the first diagnostic item, it queries whether the first diagnostic item depends on other diagnostic items for execution. If it is found that the first diagnostic item depends on the second diagnostic item, the second diagnostic module of the second diagnostic item is preferentially called to execute the second diagnostic item. After the second diagnostic item obtains the second diagnostic result, the first diagnostic module of the first diagnostic item is called to execute the first diagnostic item. In this way, when the first diagnostic module executes the first diagnostic item, it can directly query the second diagnostic result of the second diagnostic item through the composite decision query interface.

[0069] Exemplarily, step 210 is a step performed by the task management module of the diagnostic program. The task management module calling the first diagnostic module may refer to: the task management module sends a first call instruction to the first diagnostic module, and the first call instruction includes the diagnostic item code of the first diagnostic item. After receiving the first call instruction, the first diagnostic module can execute the first diagnostic item according to the diagnostic item code. The task management module calling the second diagnostic module may refer to: the task management module sends a second call instruction to the second diagnostic module, and the second call instruction includes the diagnostic item code of the second diagnostic item. After receiving the second call instruction, the second diagnostic module can execute the second diagnostic item according to the diagnostic item code.

[0070] Exemplarily, after completing the second diagnostic item, the second diagnostic module may return diagnostic item completion feedback to the task management module. The diagnostic item completion feedback is used to indicate that the second diagnostic item has been completed, and / or the diagnostic item completion feedback may carry the second diagnostic result of the second diagnostic item.

[0071] Step 220, through the first diagnostic module, call the composite decision query interface to query and obtain the second diagnostic result of the second diagnostic item. The composite decision query interface is used to cross-module query the diagnostic results of the diagnostic items executed by other diagnostic modules, and the other diagnostic modules include diagnostic modules other than the first diagnostic module.

[0072] Optionally, when the first diagnostic module receives the first calling instruction sent by the task management module, the first diagnostic module first determines whether the first diagnostic item depends on other diagnostic items. If it is found that the first diagnostic item depends on the second diagnostic item, the first diagnostic module calls the compound decision query interface to query the second diagnostic result of the second diagnostic item.

[0073] Optionally, the first diagnostic module can call the composite decision query interface to execute a first query instruction, which may include: the diagnostic code of the first diagnostic item, the diagnostic item code of the second diagnostic item, the module identifier of the first diagnostic module that executes the first diagnostic item, and the module identifier of the second diagnostic module that executes the second diagnostic item.

[0074] The compound decision query interface can return the diagnostic result of the second diagnostic item to the first diagnostic module. For example, the compound decision query interface can return the query result to the first diagnostic module, and the query result can include at least one of the following information: the diagnostic item code of the second diagnostic item, the data list of the second diagnostic result, the module identification of the second diagnostic module that executes the second diagnostic item, the query failure indication, the query success indication, and the query time.

[0075] Exemplarily, the composite decision query interface may be an interface provided by a diagnostic framework of a diagnostic program. The composite decision query interface is used to query the diagnostic results of diagnostic items across diagnostic modules.

[0076] Optionally, the diagnostic results of other diagnostic items can be stored in their respective diagnostic modules, and the composite decision query interface can query the diagnostic results of the diagnostic items in the corresponding diagnostic modules. The diagnostic results of other diagnostic items can also be stored in the task management module, and the composite decision query interface can query the diagnostic results of the diagnostic items in the task management module.

[0077] Step 230: Determine a first diagnostic result of the first diagnostic item by combining the second diagnostic result with the first diagnostic module.

[0078] Optionally, after obtaining the second diagnostic result through query, the first diagnostic module performs diagnosis on the first diagnostic item according to the second diagnostic result to obtain the first diagnostic result. The method of determining the first diagnostic result in combination with the second diagnostic result can refer to the above example.

[0079] Exemplarily, after completing the first diagnostic item, the first diagnostic module may return diagnostic item completion feedback to the task management module. The diagnostic item completion feedback is used to indicate that the first diagnostic item has been completed, and / or the diagnostic item completion feedback may carry the first diagnostic result of the first diagnostic item.

[0080] In summary, the terminal diagnosis method provided in this embodiment, according to the dependency relationship between diagnostic items, first calls the second diagnostic module to execute the dependent second diagnostic item, and then calls the first diagnostic module to call the first diagnostic item that depends on the second diagnostic item. When the first diagnostic module executes the first diagnostic item, it can query the second diagnostic result of the second diagnostic item executed by the second diagnostic module through the composite decision query interface, and generate the first diagnostic result of the first diagnostic item in combination with the second diagnostic result of the second diagnostic item. Since the first diagnostic result refers to the second diagnostic result of the second diagnostic item associated with it, the diagnostic accuracy of the first diagnostic item can be improved. This method provides a composite diagnostic decision mechanism across diagnostic modules, provides an implementation method for cross-module diagnostic logic, associates diagnostic logics of different special projects with associated relationships, and provides a more comprehensive and reasonable terminal fault diagnosis and analysis mechanism.

[0081] Exemplarily, an embodiment of performing a diagnostic task using the terminal diagnostic method provided in an embodiment of the present application is provided.

[0082] See also Figure 4 , Figure 4 is a flow chart of a terminal diagnosis method provided by another exemplary embodiment of the present application. The terminal diagnosis method can be applied in a terminal, which can be the above-mentioned Figure 1 The terminal shown. Based on Figure 2 In the illustrated embodiment, step 210 also includes step 201 and step 202 , step 210 includes step 211 and step 212 , step 220 also includes step 213 , and step 220 includes step 221 .

[0083] Step 201, receiving a registration request sent by a first diagnostic module, the registration request is used to request registration of a dependency of a first diagnostic item, the dependency including the first diagnostic item being dependent on a second diagnostic item; according to the registration request, storing the dependency between the first diagnostic item and the second diagnostic item in a dependency list.

[0084] Optionally, the task management module may store dependencies between different diagnostic items. Each diagnostic module may send a registration request to the task management module to register the dependencies between the diagnostic items in the module and the diagnostic items of other modules. A diagnostic item may depend on at least one diagnostic item.

[0085] The registration request may include at least one set of dependencies. A set of dependencies may include at least one of the following information: a diagnostic item code of a diagnostic item in the current module, a diagnostic item code of at least one diagnostic item in other diagnostic modules other than the current module, a target parameter in the dependent diagnostic result, and a dependency number.

[0086] Among them, the first diagnostic item can only depend on some parameters in the second diagnostic result. When registering the dependency, the part of the parameters can be specified as the target parameters. When querying the dependency, the composite decision query interface can only return the target parameters in the second diagnostic result to the first diagnostic module. In this way, the security of the second diagnostic result can be guaranteed, and cross-module composite decision diagnosis can be realized.

[0087] Optionally, each diagnostic module may also send an adjustment request to the task management module to adjust the dependency between the diagnostic items in the module and the diagnostic items of other modules. The adjustment request may include at least one of the following information: the dependency number of the dependency to be adjusted, the diagnostic item number of the diagnostic item on which the adjustment depends, and the target parameter in the diagnostic result on which the adjustment depends.

[0088] The dependency list stores the dependency relationships between all different diagnostic items. The diagnostic relationship list may include at least one set of dependencies, wherein a set of dependencies includes a first field and a second field, wherein the first field includes the diagnostic item code of the target diagnostic item, and the second field includes the diagnostic item code of the diagnostic item on which the target diagnostic item depends. For example, the first field stores the diagnostic item code of the first diagnostic item, and the second field stores the diagnostic item code of the second diagnostic item.

[0089] Alternatively, at least one directed vector is stored in the dependency list, the starting point of the directed vector is a diagnostic item that depends on other diagnostic items (eg, the first diagnostic item), and the remaining points in the directed vector are dependent diagnostic items (eg, the second diagnostic item).

[0090] Optionally, the dependency list may also store diagnostic module identifiers corresponding to the diagnostic items. For example, the dependency list may include: diagnostic module identifiers of diagnostic items that depend on other diagnostic items (for example, the first diagnostic module identifier), and diagnostic module identifiers of the dependent diagnostic items (for example, the second diagnostic module identifier).

[0091] Step 202: Acquire a diagnostic task, where the diagnostic task includes at least one diagnostic item.

[0092] Optionally, when the user uses the self-service diagnosis function, the diagnosis program can receive the user's operation of selecting a diagnosis task and execute the diagnosis task selected by the user.

[0093] When the remote diagnosis function is used, the diagnosis program can receive a diagnosis instruction sent remotely through the network, and the diagnosis instruction includes a diagnosis task.

[0094] When other applications call the diagnostic program to perform diagnostic tasks, the diagnostic program can determine the diagnostic tasks that need to be performed based on the calling instructions.

[0095] Optionally, the diagnostic task includes a diagnostic item code of at least one diagnostic item. For example, the diagnostic task includes a diagnostic item code of a first diagnostic item. The diagnostic task may be a collection of diagnostic items.

[0096] The diagnostic items in a diagnostic task may correspond to the same diagnostic module or to different diagnostic modules.

[0097] Step 211, determine a dependency tree corresponding to at least one diagnostic item based on a dependency list; the at least one diagnostic item includes a first diagnostic item; the dependency list is used to store dependencies between different diagnostic items; the dependency tree is a tree structure determined based on at least one diagnostic item and its dependencies, and the diagnostic item at the parent node in the dependency tree depends on the diagnostic item of the child node connected to it.

[0098] Optionally, a dependency list is stored in the task management module. After obtaining the diagnostic task, the task management module can query the dependency list to see whether each diagnostic item in the diagnostic task depends on other diagnostic items, and then generate a dependency tree corresponding to the diagnostic task based on the queried dependency results.

[0099] When determining the dependency tree, the dependent diagnostic items in the dependency relationship are taken as child nodes, and the diagnostic items that depend on other diagnostic items are taken as parent nodes.

[0100] It should be noted that a dependency tree of a diagnostic task may include at least one tree structure, that is, includes at least one root node.

[0101] For example, the diagnostic task includes diagnostic item 1 and diagnostic item 6. The task management module queries whether diagnostic item 1 and diagnostic item 6 have a corresponding dependency relationship, and the query result is: diagnostic item 1 depends on diagnostic item 2 and diagnostic item 3, and diagnostic item 6 does not depend on other diagnostic items. The task management module continues to query whether diagnostic item 2 and diagnostic item 3 have a corresponding dependency relationship, and the query result is: diagnostic item 2 depends on diagnostic item 4 and diagnostic item 5, and diagnostic item 3 does not depend on other diagnostic items. The task management module continues to query whether diagnostic item 4 and diagnostic item 5 have a corresponding dependency relationship, and the query result is: diagnostic item 4 and diagnostic item 5 do not depend on other diagnostic items. The task management module can then obtain the following: Figure 5 The dependency tree shown shows that diagnostic item 1 depends on diagnostic item 2 and diagnostic item 3, and diagnostic item 2 depends on diagnostic item 4 and diagnostic item 5. Among them, diagnostic item 1 and diagnostic item 6 are both root nodes, and diagnostic item 4, diagnostic item 5, diagnostic item 3, and diagnostic item 6 are all leaf nodes. Diagnostic item 1 is the parent node of diagnostic item 2 and diagnostic item 3, and diagnostic item 2 is the parent node of diagnostic item 4 and diagnostic item 5.

[0102] Step 212, according to the dependency tree, call the diagnostic module corresponding to the leaf node to execute the diagnostic items of the leaf node, and the diagnostic items of the leaf node include the second diagnostic items; according to the dependency tree, call the diagnostic module corresponding to the parent node to execute the diagnostic items of the parent node, and the diagnostic items of the parent node include the first diagnostic items.

[0103] Exemplarily, a leaf node refers to a node that is not a parent node in the dependency tree. The diagnostic item of the leaf node does not depend on other diagnostic items, and the other diagnostic items include diagnostic items other than the current diagnostic item (the diagnostic item corresponding to the leaf node).

[0104] Optionally, the task management module can determine the execution order of each diagnostic item in the dependency tree according to the dependency tree. The execution order can be determined according to the following principle: the diagnostic items of the leaf nodes are executed first, and the diagnostic items of the parent node are executed after all the diagnostic items of the child nodes corresponding to the parent node are executed. Figure 5 According to the dependency tree shown, the execution order determined by the task management module can be: first execute diagnostic item 4, diagnostic item 5, diagnostic item 3 and diagnostic item 6; after diagnostic item 4 and diagnostic item 5 are executed, execute diagnostic item 2; after diagnostic item 2 and diagnostic item 3 are executed, execute diagnostic item 1.

[0105] Optionally, the leaf node includes a first-type leaf node, and the diagnostic module corresponding to the first-type leaf node is different from the diagnostic module corresponding to its parent node; when the leaf node is a first-type leaf node, the diagnostic module corresponding to the leaf node is called to execute the diagnostic item of the leaf node.

[0106] That is, if the diagnostic items of the child node and the parent node are executed by different diagnostic modules, it is necessary to first call the diagnostic module of the child node to execute the diagnostic items of the child node, and then call the diagnostic module of the parent node to execute the diagnostic items of the parent node.

[0107] Optionally, the leaf node also includes a second-type leaf node, and the diagnostic module corresponding to the second-type leaf node is the same as the diagnostic module corresponding to its parent node; when the leaf node is a second-type leaf node, after executing the diagnostic items of the first-type leaf node, the diagnostic module corresponding to the leaf node is called to execute the diagnostic items of the leaf node and the parent node of the leaf node.

[0108] That is, if the diagnosis items of the child node and the parent node are executed by the same diagnosis module, the diagnosis module can be called at the same time to execute the diagnosis items of the child node and the parent node. The diagnosis module can refer to the diagnosis result of the child node according to the diagnosis logic inside the module to generate the diagnosis result of the parent node.

[0109] Step 213, when the second diagnostic item does not depend on other diagnostic items, the second diagnostic item is executed by the second diagnostic module according to the diagnostic logic in the second diagnostic module to obtain a second diagnostic result, and the other diagnostic items include diagnostic items other than the second diagnostic item.

[0110] For example, after receiving the diagnostic instruction, the diagnostic module needs to query whether the diagnostic item indicated by the diagnostic instruction depends on other diagnostic items. If it does not depend on other diagnostic items, the diagnostic item can be directly executed according to the diagnostic logic inside the module to obtain the diagnostic result without the need for compound decision making. Compound decision making refers to the diagnostic process that needs to be combined with the diagnostic results of other diagnostic modules for diagnosis.

[0111] Step 221, when the first diagnostic item depends on the second diagnostic item and the second diagnostic item is not a diagnostic item executed by the first diagnostic module, the first diagnostic module calls the composite decision query interface to query and obtain a second diagnostic result of the second diagnostic item.

[0112] Exemplarily, after receiving the diagnostic instruction, the diagnostic module needs to query whether the diagnostic item indicated by the diagnostic instruction depends on other diagnostic items. If it depends on other diagnostic items, it further determines whether the dependent diagnostic item is a diagnostic item executed in this module. If so, this module can be triggered to execute the dependent diagnostic item, and then perform the diagnosis of the current diagnostic item according to the diagnostic result of the dependent diagnostic item. If not, call the composite decision query interface to query the diagnostic result of the dependent diagnostic item, and then perform the diagnosis of the current diagnostic item according to the diagnostic result of the dependent diagnostic item.

[0113] Step 230: Determine a first diagnostic result of the first diagnostic item by combining the second diagnostic result with the first diagnostic module.

[0114] In summary, the terminal diagnosis method provided in this embodiment can improve the diagnostic accuracy of the diagnostic items, reduce the occurrence of misdiagnosis, and facilitate after-sales engineers to more accurately locate the problems of the equipment. At present, the composite decision-making solution has been implemented in the performance project, solving the misdiagnosis problems of the performance project in diagnostic items such as frame loss, interface freeze, and slow response, and improving the diagnostic accuracy.

[0115] For example, Figure 6As shown, a schematic diagram of the architecture of a diagnostic program 300 is given. The diagnostic program is used to provide diagnostic repair services. The diagnostic program includes a host program 306 and a diagnostic plug-in 305. The host program is used to receive diagnostic tasks, and the diagnostic plug-in is used to execute diagnostic tasks. The diagnostic plug-in includes a task management module 301. The task management module 301 is used to schedule and manage diagnostic modules. The diagnostic modules may include: a performance diagnostic module 302, a stability diagnostic module 303, a communication diagnostic module 304, etc. The first diagnostic module in the above embodiment may be Figure 6 Any one of the diagnostic modules, the second diagnostic module can be Figure 6 Any diagnostic module that is different from the first diagnostic module.

[0116] See also Figure 7 , Figure 7 is a flow chart of a terminal diagnosis method provided by another exemplary embodiment of the present application. The terminal diagnosis method can be applied in a terminal, which can be the above-mentioned Figure 1 The terminal shown in FIG.

[0117] Step 501: The terminal starts the diagnostic framework of the diagnostic program. Each diagnostic module in the diagnostic program registers other diagnostic item codes that each diagnostic item in its own module depends on with the diagnostic framework.

[0118] Among them, the diagnostic framework can be Figure 6 The program framework of the diagnostic plug-in in the diagnostic program shown.

[0119] Step 502: The diagnostic framework receives the diagnostic task and first schedules the execution of the leaf node diagnostic items that are not dependent on other diagnostic items according to the diagnostic items included in the diagnostic task, and then calls the diagnostic module to execute other diagnostic items.

[0120] Step 503: After receiving the diagnosis instruction, the diagnosis module first determines whether the current diagnosis item indicated in the diagnosis instruction needs to execute a composite decision. If it needs to execute a composite decision, step 504 is executed, otherwise step 506 is executed.

[0121] Step 504 , the diagnosis module calls the composite decision query interface provided by the diagnosis framework to query the diagnosis results of other diagnosis items that the current diagnosis item depends on, and makes a composite decision for the current diagnosis item based on the diagnosis results of other diagnosis items.

[0122] Step 505: The diagnosis module obtains a more comprehensive and accurate diagnosis result through compound decision processing.

[0123] Step 506, within the diagnosis module, execute according to the original diagnosis logic and return the diagnosis result.

[0124] In an optional embodiment, if Figure 8As shown, an exemplary embodiment of a composite decision-making process is given. The method includes the following steps.

[0125] Step 601 , the diagnosis module determines whether the current diagnosis item needs to execute a composite decision. If so, step 602 is executed; if not, step 605 is executed.

[0126] Step 602: The diagnosis module calls the composite decision query interface to query the diagnosis results of the associated diagnosis items.

[0127] Step 603 , the diagnosis module determines whether the diagnosis result of the associated diagnosis item is abnormal, and if so, executes step 604 ; if normal, executes step 605 .

[0128] Step 604, taking the current diagnostic item used to detect terminal jamming as an example, the diagnostic module determines whether the number of jamming times is greater than the first jamming threshold. If it is greater, the diagnostic result is determined to be a failed diagnosis (a fault exists); if it is less than, the diagnostic result is determined to be a passed diagnosis (no fault exists). Among them, the first jamming threshold is the threshold corresponding to when the diagnostic result of the associated diagnostic item is abnormal. The first jamming threshold may be less than the second jamming threshold.

[0129] Step 605: The diagnosis module executes the current diagnosis item according to the diagnosis logic inside the diagnosis module.

[0130] Step 606, taking the current diagnostic item used to detect terminal freeze as an example, the diagnostic module determines whether the freeze times are greater than the second freeze threshold. If greater, the diagnostic result is determined to be a failed diagnosis (fault present), and if less, the diagnostic result is determined to be a passed diagnosis (no fault present). The second diagnostic threshold is the threshold corresponding to when the diagnostic result of the associated diagnostic item is normal, or the second diagnostic threshold is the threshold corresponding to when the current diagnostic item does not depend on other diagnostic items.

[0131] In summary, the terminal diagnosis method provided in this embodiment is different from the previous diagnosis logic of each special project diagnosing its own diagnosis item, and explores the correlation between different special projects. A composite decision-making mechanism is implemented to associate the diagnosis logic of different special projects with certain correlations, and the influencing factors between different special projects are uniformly considered, providing a more comprehensive and reasonable equipment fault diagnosis and analysis mechanism.

[0132] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0133] Please refer to Fig. 9 , Fig. 9This is a block diagram of a terminal diagnostic device provided by an exemplary embodiment of the present application. The terminal diagnostic device can be implemented as all or part of the terminal through software, hardware, or a combination of both. The device includes:

[0134] The task management module 701 is used to first call the second diagnostic module to execute the second diagnostic item, and then call the first diagnostic module to execute the first diagnostic item when the first diagnostic item depends on the second diagnostic item;

[0135] The first diagnosis module 702 is used to call a composite decision query interface to query and obtain a second diagnosis result of the second diagnosis item, wherein the composite decision query interface is used to cross-module query the diagnosis results of the diagnosis items executed by other diagnosis modules, wherein the other diagnosis modules include diagnosis modules other than the first diagnosis module;

[0136] The first diagnosis module 702 is configured to determine a first diagnosis result of the first diagnosis item in combination with the second diagnosis result.

[0137] In an optional embodiment, the task management module 701 is used to determine a dependency tree corresponding to at least one diagnostic item based on a dependency list; the at least one diagnostic item includes the first diagnostic item; the dependency list is used to store dependencies between different diagnostic items; the dependency tree is a tree structure determined based on the at least one diagnostic item and its dependencies, and the diagnostic item at the parent node in the dependency tree depends on the diagnostic item of the child node connected to it;

[0138] The task management module 701 is used to call the diagnosis module corresponding to the leaf node to execute the diagnosis item of the leaf node according to the dependency tree, and the diagnosis item of the leaf node includes the second diagnosis item;

[0139] The task management module 701 is used to call the diagnosis module corresponding to the parent node to execute the diagnosis items of the parent node according to the dependency tree, and the diagnosis items of the parent node include the first diagnosis items.

[0140] In an optional embodiment, the leaf node includes a first type of leaf node, and the diagnosis module corresponding to the first type of leaf node is different from the diagnosis module corresponding to its parent node;

[0141] The task management module 701 is used to call the diagnosis module corresponding to the leaf node to execute the diagnosis item of the leaf node when the leaf node is the first type of leaf node.

[0142] In an optional embodiment, the leaf node further includes a second type of leaf node, and the diagnosis module corresponding to the second type of leaf node is the same as the diagnosis module corresponding to its parent node;

[0143] The task management module 701 is used to call the diagnostic module corresponding to the leaf node to execute the diagnostic items of the leaf node and the parent node of the leaf node after executing the diagnostic items of the first type of leaf node when the leaf node is the second type of leaf node.

[0144] In an optional embodiment, the task management module 701 is used to obtain a diagnostic task, where the diagnostic task includes the at least one diagnostic item.

[0145] In an optional embodiment, the task management module 701 is used to receive a registration request sent by the first diagnosis module, where the registration request is used to request registration of a dependency relationship of the first diagnosis item, where the dependency relationship includes that the first diagnosis item is dependent on the second diagnosis item;

[0146] The task management module 701 is used to store the dependency relationship between the first diagnosis item and the second diagnosis item in a dependency relationship list according to the registration request.

[0147] In an optional embodiment, the first diagnostic module 702 is used to call the composite decision query interface to query and obtain a second diagnostic result of the second diagnostic item when the first diagnostic item is dependent on the second diagnostic item and the second diagnostic item is not a diagnostic item executed by the first diagnostic module.

[0148] In an optional embodiment, the second diagnostic module 703 is used to execute the second diagnostic item according to the diagnostic logic within the second diagnostic module to obtain a second diagnostic result when the second diagnostic item is independent of other diagnostic items, and the other diagnostic items include diagnostic items other than the second diagnostic item.

[0149] It should be noted that: when the terminal diagnostic device provided in the above embodiment executes the terminal diagnostic method, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the terminal diagnostic device provided in the above embodiment and the terminal diagnostic method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0150] The present application also provides a terminal, which includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the terminal diagnosis method provided by each of the above method embodiments. It should be noted that the terminal can be as follows Fig.10 The terminal provided.

[0151] Fig.10 The structure block diagram of a terminal 1000 provided by an exemplary embodiment of the present application is shown. The terminal 1000 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, a laptop computer or a desktop computer. The terminal 1000 may also be called a user account device, a portable terminal, a laptop terminal, a desktop terminal or other names.

[0152] Typically, the terminal 1000 includes a processor 1001 and a memory 1002 .

[0153] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit, terminal diagnostics), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0154] The memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, which is used to be executed by the processor 1001 to implement the terminal diagnosis method provided in the method embodiment of the present application.

[0155] In some embodiments, the terminal 1000 may further optionally include: a peripheral device interface 1003 and at least one peripheral device. The processor 1001, the memory 1002 and the peripheral device interface 1003 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1003 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1004, a display screen 1005, a camera assembly 1006, an audio circuit 1007, and a power supply 1009.

[0156] The peripheral device interface 1003 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002, and the peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral device interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0157] The radio frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1004 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1004 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Exemplarily, the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user account identity module card, and the like. The radio frequency circuit 1004 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1004 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0158] The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 also has the ability to collect touch signals on the surface or above the surface of the display screen 1005. The touch signal can be input to the processor 1001 as a control signal for processing. At this time, the display screen 1005 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1005 can be one, and the front panel of the terminal 1000 is set; in other embodiments, the display screen 1005 can be at least two, which are respectively set on different surfaces of the terminal 1000 or are folded; in some other embodiments, the display screen 1005 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 1000. Even, the display screen 1005 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1005 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0159] The camera assembly 1006 is used to capture images or videos. Exemplarily, the camera assembly 1006 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0160] The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user account and the environment, and convert the sound waves into electrical signals and input them into the processor 1001 for processing, or input them into the radio frequency circuit 1004 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1000. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1007 may also include a headphone jack.

[0161] The power supply 1009 is used to power various components in the terminal 1000. The power supply 1009 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1009 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0162] In some embodiments, the terminal 1000 further includes one or more sensors 1010 . The one or more sensors 1010 include, but are not limited to: an acceleration sensor 1011 , a gyroscope sensor 1012 , a pressure sensor 1013 , an optical sensor 1015 , and a proximity sensor 1016 .

[0163] The acceleration sensor 1011 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1000. For example, the acceleration sensor 1011 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1001 can control the display screen 1005 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 can also be used to collect motion data of games or user accounts.

[0164] The gyro sensor 1012 can detect the body direction and rotation angle of the terminal 1000, and the gyro sensor 1012 can cooperate with the acceleration sensor 1011 to collect the 3D actions of the user account on the terminal 1000. The processor 1001 can implement the following functions based on the data collected by the gyro sensor 1012: motion sensing (such as changing the UI according to the tilt operation of the user account), image stabilization during shooting, game control, and inertial navigation.

[0165] The pressure sensor 1013 can be set on the side frame of the terminal 1000 and / or the lower layer of the display screen 1005. When the pressure sensor 1013 is set on the side frame of the terminal 1000, the holding signal of the user account on the terminal 1000 can be detected, and the processor 1001 performs left and right hand recognition or shortcut operations according to the holding signal collected by the pressure sensor 1013. When the pressure sensor 1013 is set on the lower layer of the display screen 1005, the processor 1001 controls the operability controls on the UI interface according to the pressure operation of the user account on the display screen 1005. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0166] The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the display screen 1005 according to the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is reduced. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 according to the ambient light intensity collected by the optical sensor 1015.

[0167] The proximity sensor 1016, also called a distance sensor, is usually arranged on the front panel of the terminal 1000. The proximity sensor 1016 is used to collect the distance between the user account and the front of the terminal 1000. In one embodiment, when the proximity sensor 1016 detects that the distance between the user account and the front of the terminal 1000 is gradually decreasing, the processor 1001 controls the display screen 1005 to switch from the screen-on state to the screen-off state; when the proximity sensor 1016 detects that the distance between the user account and the front of the terminal 1000 is gradually increasing, the processor 1001 controls the display screen 1005 to switch from the screen-off state to the screen-on state.

[0168] Those skilled in the art will understand that Fig.10 The structure shown in the figure does not constitute a limitation on the terminal 1000, and the terminal 1000 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0169] The memory also includes one or more programs, which are stored in the memory and include a program for performing the terminal diagnosis method provided in the embodiment of the present application.

[0170] The present application also provides a computer device, which includes: a processor and a memory, wherein the storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the terminal diagnostic method provided by the above-mentioned method embodiments.

[0171] The present application also provides a computer-readable storage medium, which stores at least one instruction, at least one program, code set or instruction set. The at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the terminal diagnostic method provided by the above-mentioned method embodiments.

[0172] The present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the terminal diagnosis method provided in the above optional implementation.

[0173] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0174] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0175] The above description is only an illustrative embodiment that can be implemented in the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

[0176] It should be noted that before collecting relevant data of users and during the process of collecting relevant data of users, this application can display a prompt interface, pop-up window or output voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining relevant data of users after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining relevant data of users are terminated, that is, the relevant data of users are not obtained. In other words, all user data collected by this application are collected with the consent and authorization of the user, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions.

Claims

1. A terminal diagnosis method, characterized in that: The method is executed by a terminal, and includes: In the case where the first diagnostic item depends on the second diagnostic item, first calling the second diagnostic module to execute the second diagnostic item, and then calling the first diagnostic module to execute the first diagnostic item; By means of the first diagnostic module, a composite decision query interface is called to query and obtain a second diagnostic result of the second diagnostic item, wherein the composite decision query interface is used to query the diagnostic results of the diagnostic items executed by other diagnostic modules across modules, wherein the other diagnostic modules include diagnostic modules other than the first diagnostic module; A first diagnostic result of the first diagnostic item is determined by combining the first diagnostic module with the second diagnostic result.

2. The method according to claim 1, characterized in that: In the case where the first diagnostic item depends on the second diagnostic item, first calling the second diagnostic module to execute the second diagnostic item, and then calling the first diagnostic module to execute the first diagnostic item, includes: Determine a dependency tree corresponding to at least one diagnostic item based on a dependency list; the at least one diagnostic item includes the first diagnostic item; the dependency list is used to store dependencies between different diagnostic items; the dependency tree is a tree structure determined based on the at least one diagnostic item and its dependencies, and the diagnostic item at a parent node in the dependency tree depends on the diagnostic item of a child node connected to it; According to the dependency tree, calling a diagnostic module corresponding to a leaf node to execute a diagnostic item of the leaf node, wherein the diagnostic item of the leaf node includes the second diagnostic item; According to the dependency tree, a diagnostic module corresponding to the parent node is called to execute diagnostic items of the parent node, where the diagnostic items of the parent node include the first diagnostic items.

3. The method according to claim 2, characterized in that The leaf nodes include first-type leaf nodes, and the diagnosis module corresponding to the first-type leaf nodes is different from the diagnosis module corresponding to the parent node; The step of calling the diagnosis module corresponding to the leaf node to execute the diagnosis item of the leaf node according to the dependency tree, wherein the diagnosis item of the leaf node includes the second diagnosis item, comprises: In the case where the leaf node is the first type of leaf node, the diagnosis module corresponding to the leaf node is called to execute the diagnosis item of the leaf node.

4. The method according to claim 3, characterized in that The leaf nodes also include a second type of leaf nodes, and the diagnostic module corresponding to the second type of leaf nodes is the same as the diagnostic module corresponding to its parent node; the method also includes: In the case where the leaf node is the second type of leaf node, after executing the diagnostic items of the first type of leaf nodes, the diagnostic module corresponding to the leaf node is called to execute the diagnostic items of the leaf node and the parent node of the leaf node.

5. The method according to claim 2, characterized in that: The method further comprises: A diagnosis task is acquired, where the diagnosis task includes the at least one diagnosis item.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: receiving a registration request sent by the first diagnostic module, wherein the registration request is used to request registration of a dependency relationship of a first diagnostic item, wherein the dependency relationship includes that the first diagnostic item is dependent on the second diagnostic item; According to the registration request, a dependency relationship between the first diagnosis item and the second diagnosis item is stored in a dependency relationship list.

7. The method according to any one of claims 1 to 5, characterized in that: The step of invoking the composite decision query interface to query and obtain the second diagnosis result of the second diagnosis item through the first diagnosis module includes: When the first diagnostic item depends on the second diagnostic item and the second diagnostic item is not a diagnostic item executed by the first diagnostic module, the first diagnostic module calls the composite decision query interface to query and obtain a second diagnostic result of the second diagnostic item.

8. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the second diagnostic item is independent of other diagnostic items, the second diagnostic item is executed by the second diagnostic module according to the diagnostic logic within the second diagnostic module to obtain a second diagnostic result, and the other diagnostic items include diagnostic items other than the second diagnostic item.

9. A terminal diagnostic device, characterized in that: The device is executed by a terminal, and the device includes: a task management module, configured to first call the second diagnostic module to execute the second diagnostic item, and then call the first diagnostic module to execute the first diagnostic item, when the first diagnostic item depends on the second diagnostic item; The first diagnostic module is used to call a composite decision query interface to query and obtain a second diagnostic result of the second diagnostic item, wherein the composite decision query interface is used to cross-module query the diagnostic results of the diagnostic items executed by other diagnostic modules, wherein the other diagnostic modules include diagnostic modules other than the first diagnostic module; The first diagnostic module is used to determine a first diagnostic result of the first diagnostic item in combination with the second diagnostic result.

10. A terminal, characterized in that: The terminal includes a processor, a memory connected to the processor, and program instructions stored in the memory. When the processor executes the program instructions, the terminal diagnosis method according to any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium, wherein program instructions are stored in the storage medium, characterized in that: When the program instructions are executed by the processor, the terminal diagnosis method as described in any one of claims 1 to 8 is implemented.