Fault determination method and device, electronic device, and storage medium

CN117370049BActive Publication Date: 2026-10-16BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210773044.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2026-10-16
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

[0002]在智能电子设备领域,若电子设备处于正常运行的状态下,其运行功耗则较为平稳,常处于一定范围内;但若电子设备中存在硬件出现故障或异常,而未能及时发现进行修理,硬件处于故障状态下进行工作,使得电子设备的功耗出现大幅波动,加速硬件损坏,不仅会缩短电子设备的使用寿命,还会影响用户使用体验

Benefits of technology

[0059] As can be seen from the above embodiments, the technical solution provided by this disclosure, by obtaining the first power consumption range of each component in the electronic device under normal operation in the target scenario, and the second power consumption range after each component malfunctions, determines the total power consumption range of the electronic device under normal operation in the target scenario based on the first power consumption range. If the actual total power consumption value of the electronic device under the target scenario is outside the total power consumption range, the target component that malfunctions is determined based on the first power consumption range, the second power consumption range, and the total power consumption range. Thus, in this embodiment of the disclosure, the electronic device is determined to have a component malfunction based on the total power consumption range of each component under normal operation in the target scenario and the actual total power consumption value of the electronic device. When the actual total power consumption value of the electronic device exceeds the total power consumption range under normal operation, that is, when it is determined that a component in the electronic device has malfunctioned, the target component with malfunction is determined by the first power consumption range of each component under normal operation, the second power consumption range after malfunction, and the corresponding total power consumption range. This achieves component detection of the electronic device, extends the service life of the electronic device, improves the user experience, prevents the occurrence of power consumption abnormalities caused by hardware component malfunctions, and extends the battery life of the electronic device to a certain extent. It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117370049B_ABST
    Figure CN117370049B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a fault determination method and device, electronic equipment and storage medium. The fault determination method comprises: obtaining a first power consumption range of each device in an electronic equipment under a target scene when the electronic equipment is working normally, and a second power consumption range of each device after the device respectively appears a fault; determining a total power consumption range of the electronic equipment working normally under the target scene according to the first power consumption range; collecting an actual total power consumption value of the electronic equipment under the target scene, and judging whether the actual total power consumption value is outside the total power consumption range; if the actual total power consumption value is outside the total power consumption range, determining a target device appearing a fault among each device based on the first power consumption range, the second power consumption range and the total power consumption range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of electronic equipment, and more particularly to a fault determination method and apparatus, electronic equipment, and storage medium. Background Technology

[0002] In the field of smart electronic devices, when an electronic device is operating normally, its power consumption is relatively stable and usually stays within a certain range. However, if a hardware malfunction or abnormality occurs in the electronic device and is not detected and repaired in time, the hardware will continue to operate in a faulty state, causing significant fluctuations in power consumption and accelerating hardware damage. This not only shortens the lifespan of the electronic device but also affects the user experience. Currently, common management strategies and key development directions for fault detection are focused on the battery cells themselves within the electronic device. Summary of the Invention

[0003] This disclosure provides a fault determination method and apparatus, an electronic device, and a storage medium.

[0004] According to a first aspect of the present disclosure, a fault determination method is provided, comprising:

[0005] Obtain the first power consumption range of each component in the electronic device under the target scenario when it is working normally, and the second power consumption range after each component fails.

[0006] Based on the first power consumption range, determine the total power consumption range of the electronic device under normal operation in the target scenario;

[0007] Collect the actual total power consumption value of the electronic device in the target scenario, and determine whether the actual total power consumption value is outside the total power consumption range;

[0008] If the actual total power consumption value is outside the total power consumption range, then the target device that has failed among the various devices is determined based on the first power consumption range, the second power consumption range, and the total power consumption range.

[0009] Based on the above scheme, determining the target device that has failed among the various devices based on the first power consumption range, the second power consumption range, the actual total power consumption value, and the total power consumption range includes:

[0010] By traversing through the devices, any one or several devices among the devices are identified as candidate devices, and the devices among the devices other than the candidate devices are identified as the remaining devices.

[0011] The second power consumption range corresponding to the candidate device and the first power consumption range corresponding to the remaining device are summed to obtain the simulated power consumption range.

[0012] If the simulated power consumption range is outside the total power consumption range, and the actual total power consumption value is within the simulated power consumption range, then the candidate device is identified as the target device that has failed.

[0013] Based on the above scheme, obtaining the first power consumption range of each component in the electronic device under normal operation in the target scenario, and the second power consumption range after each component malfunctions, includes:

[0014] Acquire a first type of historical power consumption data and a second type of historical power consumption data of multiple electronic devices. The first type of historical power consumption data is the power consumption data of the electronic devices when they are working normally in the target scenario. The second type of historical power consumption data is the power consumption data of the electronic devices when any component of the electronic devices fails in the target scenario.

[0015] Based on the first type of historical power consumption data and the second type of historical power consumption data, the first power consumption range of each device in the electronic device under the target scenario when it is working normally, and the second power consumption range after each device fails.

[0016] Based on the above scheme, the step of collecting the actual total power consumption value of the electronic device in the target scenario includes:

[0017] According to a preset time period, the actual total power consumption of the electronic device in the target scenario is collected periodically.

[0018] Based on the above scheme, the step of collecting the actual total power consumption value of the electronic device in the target scenario includes:

[0019] Once the electronic device is detected to be in a preset state, the actual total power consumption of the electronic device in the target scenario is collected.

[0020] Based on the above scheme, the step of collecting the actual total power consumption value of the electronic device in the target scenario includes:

[0021] Upon receiving a fault diagnosis request from the cloud platform, the actual total power consumption of the electronic device in the target scenario is collected.

[0022] Based on the above scheme, after determining whether the actual total power consumption value is outside the total power consumption range, the method further includes:

[0023] If the actual total power consumption value is determined to be within the total power consumption range, then it is determined that all devices are in normal working condition, and information indicating that the electronic device is working normally is output.

[0024] Based on the above scheme, after determining the target device that has failed among the various devices based on the first power consumption range, the second power consumption range, and the total power consumption range, the method further includes:

[0025] Based on the type of the target device, determine the troubleshooting operations for the target device;

[0026] The troubleshooting operations include one or a combination of the following:

[0027] Turn off the target device;

[0028] The electronic device displays a warning message.

[0029] Send fault diagnosis results to the preset terminal.

[0030] A fault determination apparatus is provided according to a second aspect of the present disclosure, comprising:

[0031] The acquisition module is used to acquire the first power consumption range of each device in the electronic device under the target scenario when it is working normally, and the second power consumption range after each device fails.

[0032] The first determining module is used to determine the total power consumption range of the electronic device under normal operation in the target scenario based on the first power consumption range;

[0033] The acquisition module is used to acquire the actual total power consumption value of the electronic device in the target scenario and determine whether the actual total power consumption value is outside the total power consumption range.

[0034] The second determining module is used to determine the target device that has failed among the various devices based on the first power consumption range, the second power consumption range, and the total power consumption range if the actual total power consumption value is outside the total power consumption range.

[0035] Based on the above scheme, the second determining module is specifically used for:

[0036] By traversing through the devices, any one or several devices among the devices are identified as candidate devices, and the devices among the devices other than the candidate devices are identified as the remaining devices.

[0037] The second power consumption range corresponding to the candidate device and the first power consumption range corresponding to the remaining device are summed to obtain the simulated power consumption range.

[0038] If the simulated power consumption range is outside the total power consumption range, and the actual total power consumption value is within the simulated power consumption range, then the candidate device is identified as the target device that has failed.

[0039] Based on the above scheme, the acquisition module is specifically used for:

[0040] Acquire a first type of historical power consumption data and a second type of historical power consumption data of multiple electronic devices. The first type of historical power consumption data is the power consumption data of the electronic devices when they are working normally in the target scenario. The second type of historical power consumption data is the power consumption data of the electronic devices when any component of the electronic devices fails in the target scenario.

[0041] Based on the first type of historical power consumption data and the second type of historical power consumption data, the first power consumption range of each device in the electronic device under the target scenario when it is working normally, and the second power consumption range after each device fails.

[0042] Based on the above scheme, the acquisition module is specifically used to periodically collect the actual total power consumption value of the electronic device in the target scenario according to a preset time period.

[0043] Based on the above scheme, the acquisition module is specifically used to acquire the actual total power consumption value of the electronic device in the target scenario after detecting that the electronic device is in a preset state.

[0044] Based on the above scheme, the acquisition module is specifically used to acquire the actual total power consumption value of the electronic device in the target scenario after receiving a fault diagnosis request sent by the cloud platform.

[0045] Based on the above scheme, the acquisition module is further used for:

[0046] If the actual total power consumption value is determined to be within the total power consumption range, then it is determined that all devices are in normal working condition, and information indicating that the electronic device is working normally is output.

[0047] Based on the above scheme, the device further includes: a third determining module;

[0048] The third determining module is used to determine the fault resolution operation for the target device based on the type of the target device;

[0049] The troubleshooting operations include one or a combination of the following:

[0050] Turn off the target device;

[0051] The electronic device displays a warning message.

[0052] Send fault diagnosis results to the preset terminal.

[0053] A third aspect of the present disclosure provides an electronic device, comprising:

[0054] Memory used to store processor-executable instructions;

[0055] The processor is connected to the memory;

[0056] The processor is configured to execute the fault determination method described above.

[0057] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, which, when instructions in the storage medium are executed by a computer's processor, enables the computer to perform the fault determination method described above.

[0058] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0059] As can be seen from the above embodiments, the technical solution provided by this disclosure, by obtaining the first power consumption range of each component in the electronic device under normal operation in the target scenario, and the second power consumption range after each component malfunctions, determines the total power consumption range of the electronic device under normal operation in the target scenario based on the first power consumption range. If the actual total power consumption value of the electronic device under the target scenario is outside the total power consumption range, the target component that malfunctions is determined based on the first power consumption range, the second power consumption range, and the total power consumption range. Thus, in this embodiment of the disclosure, the electronic device is determined to have a component malfunction based on the total power consumption range of each component under normal operation in the target scenario and the actual total power consumption value of the electronic device. When the actual total power consumption value of the electronic device exceeds the total power consumption range under normal operation, that is, when it is determined that a component in the electronic device has malfunctioned, the target component with malfunction is determined by the first power consumption range of each component under normal operation, the second power consumption range after malfunction, and the corresponding total power consumption range. This achieves component detection of the electronic device, extends the service life of the electronic device, improves the user experience, prevents the occurrence of power consumption abnormalities caused by hardware component malfunctions, and extends the battery life of the electronic device to a certain extent. It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0060] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0061] Figure 1 This is a flowchart illustrating a fault determination method according to an exemplary embodiment;

[0062] Figure 2 This is a flowchart illustrating another fault determination method according to an exemplary embodiment;

[0063] Figure 3 This is a schematic structural block diagram illustrating a fault determination method according to an exemplary embodiment;

[0064] Figure 4 This is a flowchart illustrating another fault determination method according to an exemplary embodiment;

[0065] Figure 5 This is a structural block diagram of a fault determination device according to an exemplary embodiment;

[0066] Figure 6 This is a structural block diagram illustrating an apparatus for fault determination according to an exemplary embodiment. Detailed Implementation

[0067] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses consistent with some aspects of this disclosure as detailed in the appended claims.

[0068] The terminology used in this embodiment of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the invention. The singular forms “a,” “the,” and “the” as used in the embodiments of the invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0069] It should be understood that although the terms first, second, third, etc., may be used to describe various information in embodiments of the present invention, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of embodiments of the present invention, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."

[0070] like Figure 1 As shown in the embodiments of this disclosure, a fault determination method is provided, including:

[0071] 101: Obtain the first power consumption range of each component in the electronic device under the target scenario when it is working normally, and the second power consumption range after each component fails;

[0072] 102: Based on the first power consumption range, determine the total power consumption range of the electronic device under normal operation in the target scenario;

[0073] 103: Collect the actual total power consumption value of the electronic device in the target scenario, and determine whether the actual total power consumption value is outside the total power consumption range;

[0074] 104: If the actual total power consumption value is outside the total power consumption range, then the target device that has failed among the various devices is determined based on the first power consumption range, the second power consumption range, and the total power consumption range.

[0075] In this embodiment of the disclosure, the method is applied to a cloud platform, including but not limited to at least one of the following: a server, a server cluster, or other such platform; the electronic device includes but is not limited to at least one of the following: a mobile phone, a tablet computer, a television, or a game console, or other such terminal device.

[0076] In step 101, the target scenario can be any scenario during the operation of the electronic device. For example, the target scenario is determined based on the application running on the electronic device and / or the current state of the electronic device.

[0077] The target scenario varies depending on the application running on the electronic device; for example, a call application, a camera application, a game application, or a video application, etc.

[0078] And / or,

[0079] The target scenario differs depending on the current state of the electronic device.

[0080] For example, the current status of the electronic device may include: the remaining battery power of the electronic device, the temperature of the electronic device, and / or the load rate of the central processing unit (CPU) of the electronic device.

[0081] The various devices are the components involved when the electronic device executes the running application; the first power consumption range may be the power consumption range value of each device in a fault-free normal operating state;

[0082] In some embodiments, the first power consumption range may be the default operating power consumption range determined at the time of device manufacturing; the second power consumption range may be the default possible failure power consumption range determined at the time of device manufacturing.

[0083] For example, the minimum value of the first power consumption range when multiple devices are operating normally is added together to obtain the minimum value of the total power consumption range, and the maximum value of the first power consumption range when multiple devices are operating normally is added together to obtain the maximum value of the total power consumption range, etc.

[0084] For example, the median values ​​of the first power consumption range when multiple devices are working normally are added together to obtain a sum, and then a predetermined value is added to or subtracted from this sum to obtain the total power consumption range.

[0085] In other embodiments, the first power consumption range and the second power consumption range may be determined by the cloud platform through learning and training on the power consumption and usage of each device.

[0086] In step 101, obtaining the first power consumption range of each component in the electronic device under normal operation in the target scenario, and the second power consumption range after each component malfunctions, includes:

[0087] Acquire a first type of historical power consumption data and a second type of historical power consumption data of multiple electronic devices. The first type of historical power consumption data is the power consumption data of the electronic devices when they are working normally in the target scenario. The second type of historical power consumption data is the power consumption data of the electronic devices when any component of the electronic devices fails in the target scenario.

[0088] Based on the first type of historical power consumption data and the second type of historical power consumption data, the first power consumption range of each device in the electronic device under the target scenario when it is working normally, and the second power consumption range after each device fails.

[0089] Specifically, the plurality of electronic devices are all terminal devices with the same model as the electronic device; the cloud platform can pre-store the default first power consumption range and second power consumption range determined when the device leaves the factory, and continuously acquire the power consumption data of each device in the plurality of electronic devices in the target scenario when it is working normally, i.e., the first type of historical power consumption data; and acquire the power consumption data of each device in the plurality of electronic devices in the target scenario when it sends a fault, i.e., the second type of historical power consumption data.

[0090] In one embodiment, the first type of historical power consumption data includes: device name, device usage time, device remaining lifespan, and power consumption range of the device when it is working normally in the target scenario; the second type of historical power consumption data includes: device name, device usage time, device remaining lifespan, and power consumption data of the device when it fails in the target scenario.

[0091] Based on the first type and the second type of historical power consumption data, learning and training are performed to determine the first power consumption range of the electronic device when each component is working normally in the target scenario, and the second power consumption range after each component malfunctions. Here, the first power consumption range and the second power consumption range are related to the usage time and remaining lifespan of the components. In some embodiments, the first power consumption range and the second power consumption range are automatically and dynamically updated by the cloud platform according to the usage of the components. In other embodiments, the cloud platform detects whether the components have been replaced. If the components have been replaced, the first power consumption range and the second power consumption range of the components are updated. In this way, the error caused by the failure to update the first power consumption range in a timely manner due to component aging or replacement can be reduced, and the accuracy of the first power consumption range when the components are not faulty in the target scenario can be improved, thereby improving the accuracy of judging whether the electronic device has a component malfunction.

[0092] In step 102, after determining the first power consumption range of each component involved in the electronic device under the target scenario when they are working normally, the first power consumption range of each component is summed to determine the total power consumption range of the electronic device when it is working normally and without faults under the target scenario.

[0093] In step 103, in this embodiment, the actual total power consumption value is represented by P. k P represents the system power consumption value of the electronic device collected at time K; k =U k I k △T; where U k The voltage sample value at time K; I k ΔT represents the current sample value at time K; ΔT is the sampling time interval.

[0094] Here, for example, the sampling time interval can be 100 milliseconds, 0.1 seconds, 1 second, or 10 seconds, etc. Preferably, the sampling time interval can be any value within 0.1 to 1 second. It should be noted that the sampling time interval here can be the default value set by the system, or it can be customized by the user or dynamically adjusted, and no specific limitation is made here.

[0095] In some embodiments, if the actual total power consumption value is within the total power consumption range, it indicates that the actual total power consumption value of the electronic device in the target scenario is within the normal range, that is, there is no fault or abnormality in the electronic device, and step 101 is continued.

[0096] In step 104, if the actual total power consumption value is outside the total power consumption range, it indicates that the current power consumption value of the electronic device in the target scenario is in an abnormal state, that is, there is a device fault or abnormality in the electronic device. Then, based on the first power consumption range, the second power consumption range and the total power consumption range, the target device that has the fault is determined among the various devices.

[0097] In this embodiment of the disclosure, step 104 includes: determining any one or several devices among the various devices as candidate devices by traversal, and determining the devices other than the candidate devices among the various devices as remaining devices; accumulating the second power consumption range corresponding to the candidate devices and the first power consumption range corresponding to the remaining devices to obtain a simulated power consumption range; if the simulated power consumption range is outside the total power consumption range, and the actual total power consumption value is within the simulated power consumption range, then the candidate device is determined as the target device that has failed.

[0098] In one embodiment, assuming that there are N devices in the working state of the electronic device in the target scenario, M candidate devices, and NM remaining devices; here, N is a positive integer greater than 0, and M is a positive integer greater than 0 and less than or equal to N; then the simulated power consumption range is the sum of the second power consumption range corresponding to the M candidate devices and the first power consumption range corresponding to the NM remaining devices.

[0099] The second power consumption range can be the power consumption range value of the device under fault conditions; the simulated power consumption range is the power consumption range that may occur among the N devices involved in the electronic device in the target scenario.

[0100] Specifically, if the actual total power consumption value is outside the total power consumption range, then the possible fault power consumption ranges of the N devices involved in the electronic device in the target scenario are traversed. The second power consumption range when M candidate devices in the N devices are faulty and the first power consumption range when the NM remaining devices are not faulty are summed to determine the possible fault power consumption range, i.e., the simulated power consumption range. If the simulated power consumption range is also outside the total power consumption range, it indicates that the working state of the N devices corresponding to the simulated power consumption range does not meet the total power consumption range when the electronic device is working normally in the target scenario, i.e., the simulated power consumption range is the fault power consumption range.

[0101] At this point, the actual total power consumption value of the collected electronic device is compared one by one with the simulated power consumption range that is not within the total power consumption range. If the actual total power consumption value is within the simulated power consumption range, it indicates that the actual power consumption value of the electronic device in the target scenario is close to the simulated power consumption range, that is, it is determined that M out of the N devices involved in the electronic device in the target scenario have failed.

[0102] Here, N can be equal to 1, or a positive integer such as 5 or 10; M can be any positive integer less than or equal to N. In some embodiments, when N is 2, M can be 1 or 2; in other embodiments, when N is 3, M can be 1, 2, or 3.

[0103] For example, when N is 2 and M equals 1, the N devices of the electronic device in the target scenario are referred to as device A and device B, respectively. The candidate device can be A, and the remaining devices are device B. The simulated power consumption range P1 is equal to the sum of the second power consumption range of device A and the first power consumption range of device B. Alternatively, the candidate device can be device B, and the remaining devices are device A. The simulated power consumption range P2 is equal to the sum of the second power consumption range of device B and the first power consumption range of device A. When N is 2 and M is also 2, the candidate devices can be device A and device B. The simulated power consumption range P3 is equal to the sum of the second power consumption range of device A and the second power consumption range of device B. The total power consumption range P is equal to the sum of the first power consumption range of device A and the first power consumption range of device B. If P1, P2, and P3 are all outside the total power consumption range, the actual total power consumption value collected is compared with the possible simulated power consumption ranges P1, P2, and P3 one by one. If the actual total power consumption value is within the simulated power consumption range P1, then candidate device A and the target device that has failed are determined.

[0104] This disclosure provides a fault determination method. Based on the total power consumption range of each device when it is working normally in a target scenario and the actual total power consumption value of the electronic device, it determines whether the electronic device has a device fault. When it is determined that the actual total power consumption value of the electronic device exceeds the total power consumption range of normal operation, that is, when it is determined that a device in the electronic device has a fault, the target device with the fault is determined by the first power consumption range of each device in the electronic device when it is working normally, the second power consumption range after the fault occurs, and the total power consumption range to which it belongs. This realizes device detection of the electronic device, extends the service life of the electronic device, improves the user experience, prevents the occurrence of power consumption abnormality problems caused by hardware device failure, and extends the battery life of the electronic device to a certain extent.

[0105] In some embodiments, collecting the actual total power consumption of the electronic device in the target scenario includes: periodically collecting the actual total power consumption of the electronic device in the target scenario according to a preset time period.

[0106] Specifically, the preset time period can be a default value set by the system, or it can be customized by the user or dynamically adjusted, without being specifically limited here; for example, the preset time period can be 5 minutes, 10 minutes, or 30 minutes, etc.

[0107] In some embodiments, collecting the actual total power consumption of the electronic device in the target scenario includes: collecting the actual total power consumption of the electronic device in the target scenario after detecting that the electronic device is in a preset state.

[0108] Specifically, in one embodiment, the preset state can be that the device temperature is too high during the current operating state of the electronic device. The device temperature can be obtained through a temperature sensor. When the device temperature of the electronic device exceeds a first threshold, it is determined that the electronic device is in the preset state. Here, the first threshold can be the default threshold of the electronic device at the factory, or it can be a custom value, experimental value, or empirical value dynamically adjusted by the user. In another embodiment, the preset state can also be that the electronic device is experiencing lag or delay.

[0109] In some embodiments, collecting the actual total power consumption of the electronic device in the target scenario includes: after receiving a fault diagnosis request sent by the cloud platform, collecting the actual total power consumption of the electronic device in the target scenario.

[0110] Specifically, the fault diagnosis request can be sent by the cloud platform after obtaining permission from the electronic device user, or it can be sent after receiving a fault diagnosis request from the electronic device user. After receiving the fault diagnosis request from the cloud platform, the electronic device collects the actual total power consumption value under the target scenario and sends it to the cloud platform.

[0111] In this embodiment, after determining whether the actual total power consumption value is outside the total power consumption range, the method further includes: if it is determined that the actual total power consumption value is within the total power consumption range, then it is determined that each device is in normal working condition, and information about the normal operation of the electronic device is output.

[0112] In this embodiment of the disclosure, after determining the target device that has failed among the various devices based on the first power consumption range, the second power consumption range, and the total power consumption range, the method further includes:

[0113] Based on the type of the target device, determine the troubleshooting operations for the target device;

[0114] The troubleshooting operations include one or a combination of the following: turning off the target device; displaying a warning message on the electronic device; and sending the fault diagnosis result to a preset terminal.

[0115] In one embodiment, the preset terminal can be an after-sales system.

[0116] Specifically, after determining that M devices in the electronic device are faulty, fault response operations can be determined based on the identified faulty devices. These operations include disabling the corresponding function of the target device in the electronic device, outputting an abnormal prompt message for the target device in the electronic device, and sending fault diagnosis results to the after-sales system. In this way, disabling the faulty target device can reduce the abnormal power consumption caused by device failure in the electronic device and improve the service life of the electronic device. Outputting an abnormal prompt message for the faulty target device can effectively enable users to perform hardware repairs in a timely manner, reducing the negative user experience caused by hardware damage.

[0117] For example, based on the type of the target device, a troubleshooting operation is determined for the target device, specifically as follows:

[0118] When the fault type of the target device is the first type, determine to shut down the target device, or determine to shut down the target device and report to the after-sales system;

[0119] When the fault type of the target device is the second type, output the abnormal prompt information of the target device, or output the abnormal prompt information of the target device and report it to the after-sales system.

[0120] The severity of the first type of failure is higher than that of the second type of failure.

[0121] For example, typical first-type faults include, but are not limited to, leakage current and / or short circuits.

[0122] This disclosure provides another fault determination method, which is executed by the electronic device itself, such as... Figure 2 As shown, the method includes:

[0123] 200: Obtain the first power consumption range of each component in the electronic device under the target scenario when it is working normally, and the second power consumption range after each component fails;

[0124] Specifically, the electronic device obtains from the cloud platform the first power consumption range of each component in the electronic device when it is working normally in the target scenario, and the second power consumption range after each component fails; it should be noted that step 200 refers to the description in step 101 above, and will not be repeated here.

[0125] 201: Based on the first power consumption range, determine the total power consumption range for the electronic device to operate normally in the target scenario;

[0126] Specifically, after obtaining the first power consumption range of each component involved in the electronic device under the target scenario sent by the cloud platform when working normally, the electronic device sums up the first power consumption range of each component to determine the total power consumption range when working normally and without faults under the target scenario.

[0127] 202: Collect the actual total power consumption value under the target scenario, and determine whether the actual total power consumption value is outside the total power consumption range;

[0128] 202a: Collect the actual total power consumption value under the target scenario periodically according to the preset time period.

[0129] Specifically, the preset time period can be a default value set by the system, or it can be customized by the user or dynamically adjusted, without being specifically limited here; for example, the preset time period can be 5 minutes, 10 minutes, or 30 minutes, etc.

[0130] 202b: When the electronic device is detected to be in a preset state, the actual total power consumption of the electronic device in the target scenario is collected.

[0131] Specifically, in one embodiment, the preset state can be that the device temperature is too high during the current operating state of the electronic device. The device temperature can be obtained through a temperature sensor. When the device temperature of the electronic device exceeds a first threshold, it is determined that the electronic device is in the preset state. Here, the first threshold can be the default threshold of the electronic device at the factory, or it can be a custom value, experimental value, or empirical value dynamically adjusted by the user. In another embodiment, the preset state can also be that the electronic device is experiencing lag or delay.

[0132] 202c: After receiving a fault diagnosis request from the cloud platform, collect the actual total power consumption of the electronic device in the target scenario.

[0133] Specifically, the fault diagnosis request can be sent by the cloud platform after obtaining permission from the electronic device user, or it can be sent after receiving a fault diagnosis request from the electronic device user. After receiving the fault diagnosis request from the cloud platform, the electronic device collects the actual total power consumption value of the electronic device in the target scenario.

[0134] In this embodiment, the specific process of collecting the actual total power consumption value of the electronic device in the target scenario is as follows: the actual total power consumption value is represented by P... k P represents the system power consumption value of the electronic device collected at time K; k =U k I k △T; where U kThe voltage sample value at time K; I k ΔT represents the current sample value at time K; ΔT is the sampling time interval.

[0135] Here, for example, the sampling time interval can be 100 milliseconds, 0.1 seconds, 1 second, or 10 seconds, etc. Preferably, the sampling time interval can be any value within 0.1 to 1 second. It should be noted that the sampling time interval here can be the default value set by the system, or it can be customized by the user or dynamically adjusted, and no specific limitation is made here.

[0136] 203: If the actual total power consumption value is determined to be within the total power consumption range, then it is determined that each device is in normal working condition, and normal working information is output.

[0137] 204: If the actual total power consumption value is outside the total power consumption range, then the target device that has failed among the various devices is determined based on the first power consumption range, the second power consumption range, and the total power consumption range.

[0138] Specifically, if the electronic device determines that the actual total power consumption value is outside the total power consumption range, it indicates that the current power consumption value of the electronic device in the target scenario is in an abnormal state, that is, there is a device fault or abnormality in the electronic device, then step 204a is executed.

[0139] 204a: By traversing through the devices, any one or several devices among the devices are identified as candidate devices, and the devices among the devices other than the candidate devices are identified as the remaining devices;

[0140] The second power consumption range corresponding to the candidate device and the first power consumption range corresponding to the remaining device are summed to obtain the simulated power consumption range.

[0141] If the simulated power consumption range is outside the total power consumption range, and the actual total power consumption value is within the simulated power consumption range, then the candidate device is identified as the target device that has failed.

[0142] It should be noted that step 204a is explained in step 104 above, and will not be repeated here.

[0143] 205: Based on the type of the target device, determine the fault resolution operation for the target device; the fault resolution operation includes one or a combination of the following: shutting down the target device; displaying a warning message; sending the fault diagnosis result to a preset terminal.

[0144] 206: Perform troubleshooting operations.

[0145] Specifically, after determining that M devices in the electronic device are faulty, fault response operations can be determined based on the identified faulty devices. These operations include disabling the corresponding function of the target device, outputting abnormal prompts for the target device, and sending fault diagnosis results to the after-sales system. In this way, disabling the faulty target device can reduce abnormal power consumption caused by device failure in the electronic device and improve the service life of the electronic device. Outputting abnormal prompts for the faulty target device can effectively enable users to perform hardware repairs in a timely manner, reducing the negative user experience caused by hardware damage.

[0146] For example, based on the type of the target device, a troubleshooting operation is determined for the target device, specifically as follows:

[0147] When the fault type of the target device is the first type, determine to shut down the target device, or determine to shut down the target device and report to the after-sales system;

[0148] When the fault type of the target device is the second type, output the abnormal prompt information of the target device, or output the abnormal prompt information of the target device and report it to the after-sales system.

[0149] The severity of the first type of failure is higher than that of the second type of failure.

[0150] For example, typical first-type faults include, but are not limited to, leakage current and / or short circuits.

[0151] This disclosure provides a fault determination method. Based on the power consumption range of each component when it is fault-free in a target scenario and the actual power consumption value of the electronic device, it determines whether the electronic device has a component fault. When it is determined that a component in the electronic device has a fault, the target component with the fault is determined by the power consumption range of each component in the electronic device when it is faulty. This enables component detection of the electronic device, extends the service life of the electronic device, improves the user experience, prevents abnormal power consumption caused by hardware component failure, and extends the battery life of the electronic device to a certain extent.

[0152] The fault determination method provided in this disclosure will be further illustrated below through specific embodiments.

[0153] This disclosure provides a fault determination method, which is executed by a cloud platform and includes a terminal device and a cloud platform system, as shown in the structural block diagram below. Figure 3 As shown, the specific process of this method is as follows: Figure 4 As shown; the terminal device includes: a power consumption acquisition unit; the cloud platform system includes: a power consumption storage and learning unit, a power consumption anomaly analysis unit, and an anomaly device reporting unit; wherein,

[0154] During the data collection phase, the power consumption acquisition unit is used to collect the usage scenario of the terminal device and determine the various components involved in the usage scenario, the first power consumption range when each component is working normally without faults, and the second power consumption range when each component malfunctions. During the fault determination phase, the power consumption acquisition unit is used to determine the current usage scenario of the terminal device and the actual power consumption value under the current usage scenario according to a preset frequency or acquisition command.

[0155] The power consumption acquisition unit sends the collected data on the terminal device's usage scenario, the various components involved in the usage scenario, the first power consumption range when each component is working normally without faults, and the second power consumption range when each component malfunctions to the power consumption storage and learning unit of the cloud platform.

[0156] The power consumption storage and learning unit is used to store the usage scenarios of the terminal devices, the various devices involved in each usage scenario, the first power consumption range when each device is working normally without faults, and the second power consumption range when each device malfunctions, which are collected by the power consumption acquisition unit during the data collection phase. It can also be used to monitor the usage time of each device and dynamically update the first power consumption range when it is working normally without faults and the second power consumption range when it malfunctions based on the usage time of each device. Alternatively, when it is detected that a device has been replaced, it updates the first power consumption range when it is working normally without faults and the second power consumption range when it malfunctions.

[0157] During the fault determination phase, the power consumption storage and learning unit sends the device and its power consumption information corresponding to the usage scenario of the terminal device determined by the power consumption anomaly analysis unit to the power consumption anomaly analysis unit.

[0158] The power consumption anomaly analysis unit is used to receive the actual power consumption value sent by the terminal device and its current usage scenario; during the fault determination stage, it sends the current usage scenario information to the power consumption storage and learning unit to receive the devices involved in the terminal device corresponding to the current usage scenario, the first power consumption range when the devices are working normally without faults, and the second power consumption range when each device malfunctions, and performs anomaly location; after locating the abnormal device, it reports the abnormal device information to the abnormal device reporting unit.

[0159] The abnormal device reporting unit is used to receive reported abnormal device information and report it to the after-sales system. Simultaneously, based on the abnormal device information, it analyzes and formulates emergency response procedures when an emergency fault is detected, and sends these procedures to the terminal device for execution. For example, if the cloud platform determines that the WiFi chip in a mobile device has overheated and burned out, a WiFi shutdown command can be sent to the mobile device to disable the WiFi connection via software and output a WiFi chip malfunction message. This serves to remind the user to upgrade the software or visit an experience store for hardware upgrades, preventing device damage and a poor user experience. The types of emergency faults can be categorized according to the actual situation.

[0160] The fault determination method may include the following steps:

[0161] Step 1: The terminal device determines the target scenario and the actual total power consumption under the target scenario;

[0162] Step 1.1: The terminal device determines the currently running application information, identifies the current usage scenario (i.e., the target scenario), and generates target scenario information to be sent to the cloud platform.

[0163] Step 1.2: Determine the actual total power consumption in the target scenario;

[0164] Specifically, the cloud platform periodically samples the actual total power consumption of the terminal device in the target scenario according to a preset time period, and the terminal device determines the actual total power consumption value according to the preset time period. Here, the preset time period can be a default value set by the system, or it can be customized by the user or dynamically adjusted, and there is no specific limitation here. For example, the preset time period can be 5 minutes, 10 minutes, or 30 minutes, etc.

[0165] The actual total power consumption is represented by P. i Indicates the system power consumption value collected at time I; P i =U i I i △T; where U i The voltage sample value at time I; I i ΔT represents the current sample value at time I; ΔT represents the sampling time interval.

[0166] Here, for example, the sampling time interval can be 100 milliseconds, 0.1 seconds, 1 second, or 10 seconds, etc. Preferably, the sampling time interval can be any value within 0.1 to 1 second. It should be noted that the sampling time interval here can be the default value set by the system, or it can be customized by the user or dynamically adjusted, and no specific limitation is made here.

[0167] Step 1.3: Combine the target scene information and the actual total power consumption value Pi Send to the cloud platform.

[0168] Specifically, the terminal device sends the scenario information and the actual total power consumption value to the cloud platform via cellular mobile communication, such as 4G / 5G.

[0169] Step 2: The cloud platform receives the scene information and actual total power consumption value P sent by the terminal device. i ;

[0170] Here, the scene information includes at least the target scene information, which indicates the application information currently running on the terminal device.

[0171] Step 3: The cloud platform determines the fault.

[0172] Step 3.1: Determine the target scene based on the target scene information;

[0173] Step 3.2: Based on the target scenario, determine the total power consumption range of the terminal device under the normal operation of the target scenario;

[0174] Step 3.2.1: Based on the target scenario, determine the N devices involved in the terminal device under the stored target scenario, the first power consumption range when the N devices are working normally without faults, and the second power consumption range when the N devices malfunction.

[0175] Step 3.2.2: Sum the first power consumption ranges of the N devices to determine the total power consumption range when the N devices are fault-free, which is the normal power consumption value of the terminal device in the target scenario.

[0176] Step 3.3: Combine the total power consumption range with the actual total power consumption value P. i Compare the components to determine if there are any device malfunctions.

[0177] Step 3.3.1: Determine whether the actual total power consumption value is outside the range of total power consumption;

[0178] If the actual total power consumption value is outside the total power consumption range, it indicates that the current power consumption value of the electronic device in the target scenario is in an abnormal state, that is, there is a device fault or abnormality in the electronic device, then step 3.3.2 is executed.

[0179] If the actual total power consumption value is within the total power consumption range, it indicates that the actual total power consumption value of the electronic device in the target scenario is within the normal range, that is, there is no fault or abnormality in the electronic device. Then, the terminal device normal operation information is reported, and step 1 is continued.

[0180] Step 3.3.2: By traversing through the data, M devices are identified as candidate devices, and the remaining NM devices are identified as remaining devices; the second power consumption range corresponding to the candidate devices and the first power consumption range corresponding to the remaining devices are summed to obtain the simulated power consumption range; wherein, M is a positive integer less than or equal to N;

[0181] Specifically, M is a positive integer from 1 to N. It iterates through the possible fault power consumption ranges of the N devices involved in the electronic device in the target scenario, and sums the second power consumption range when the M candidate devices in the N devices are faulty and the first power consumption range when the NM remaining devices are not faulty to determine the possible fault power consumption range, i.e., the simulated power consumption range.

[0182] Step 3.3.3: When the simulated power consumption range is outside the total power consumption range, determine the actual total power consumption value P. i To determine if the power consumption is within the simulated power range, the faulty device will be identified.

[0183] Specifically, the actual total power consumption value of the collected electronic device is compared one by one with the simulated power consumption range that is not within the total power consumption range. If the actual total power consumption value is within the simulated power consumption range, it indicates that the actual power consumption value of the electronic device in the target scenario is close to the simulated power consumption range. That is, it is determined that M out of the N devices involved in the electronic device in the target scenario have failed, and step 3.4 is executed.

[0184] If the actual total power consumption value P i If the power consumption is outside the simulated power consumption range, then determine the actual total power consumption value P. i The deviation from the current simulated power consumption range is large, so continue with step 3.3.2.

[0185] Step 3.4: Report the faulty device information and formulate fault response procedures.

[0186] Specifically, when it is determined that there are M abnormal devices in the terminal device, it is determined whether the M abnormal devices affect the target operating scenario of the terminal device. If they affect the target operating scenario of the terminal device, it indicates that the terminal device has an emergency fault, and a fault response operation is formulated and step 3.5 is executed; if they do not affect the target operating scenario of the terminal device, step 3.6 is executed.

[0187] After identifying the faulty device, assess the urgency of the current fault. If the fault is affecting the application corresponding to the target scenario of the terminal device, such as leakage and / or short circuit, formulate fault response procedures. For example, send a command to the terminal device to shut down the corresponding function of the faulty device or control the terminal device to output an abnormal prompt message for the faulty target device. In this way, we can avoid the hardware fault from causing a bad user experience and promptly remind the user to perform hardware repair.

[0188] Step 3.5: The terminal device executes the fault response operation sent by the cloud platform.

[0189] Step 3.6: Report to the after-sales system.

[0190] Reporting fault information to the after-sales system provides data support for after-sales maintenance, enables rapid location of faulty components, and improves after-sales and maintenance efficiency.

[0191] Figure 5 This is a structural block diagram illustrating a fault determination device according to an exemplary embodiment. (Refer to...) Figure 5 The fault determination device 500 may include: an acquisition module 510, a first determination module 520, and a second determination module 540, wherein...

[0192] The acquisition module 510 is used to acquire the first power consumption range of each device in the electronic device under the target scenario when it is working normally, and the second power consumption range after each device fails.

[0193] The first determining module 520 is used to determine the total power consumption range of the electronic device under normal operation in the target scenario based on the first power consumption range.

[0194] The acquisition module 530 is used to acquire the actual total power consumption value of the electronic device in the target scenario and determine whether the actual total power consumption value is outside the total power consumption range.

[0195] The second determining module 540 is used to determine the target device that has failed among the various devices based on the first power consumption range, the second power consumption range, and the total power consumption range if the actual total power consumption value is outside the total power consumption range.

[0196] In some embodiments, the second determining module 540 is specifically used for:

[0197] By traversing through the devices, any one or several devices among the devices are identified as candidate devices, and the devices among the devices other than the candidate devices are identified as the remaining devices.

[0198] The second power consumption range corresponding to the candidate device and the first power consumption range corresponding to the remaining device are summed to obtain the simulated power consumption range.

[0199] If the simulated power consumption range is outside the total power consumption range, and the actual total power consumption value is within the simulated power consumption range, then the candidate device is identified as the target device that has failed.

[0200] In some embodiments, the acquisition module 510 is specifically used for:

[0201] Acquire a first type of historical power consumption data and a second type of historical power consumption data of multiple electronic devices. The first type of historical power consumption data is the power consumption data of the electronic devices when they are working normally in the target scenario. The second type of historical power consumption data is the power consumption data of the electronic devices when any component of the electronic devices fails in the target scenario.

[0202] Based on the first type of historical power consumption data and the second type of historical power consumption data, the first power consumption range of each device in the electronic device under the target scenario when it is working normally, and the second power consumption range after each device fails.

[0203] In some embodiments, the acquisition module 530 is specifically used to periodically acquire the actual total power consumption value of the electronic device in the target scenario according to a preset time period.

[0204] In some embodiments, the acquisition module 530 is specifically used to acquire the actual total power consumption value of the electronic device in the target scenario after detecting that the electronic device is in a preset state.

[0205] In some embodiments, the acquisition module 530 is specifically used to acquire the actual total power consumption value of the electronic device in the target scenario after receiving a fault diagnosis request sent by the cloud platform.

[0206] In some embodiments, the acquisition module 530 is further configured to:

[0207] If the actual total power consumption value is determined to be within the total power consumption range, then it is determined that all devices are in normal working condition, and information indicating that the electronic device is working normally is output.

[0208] In some embodiments, the apparatus further includes: a third determining module 550;

[0209] The third determining module 550 is used to determine the fault resolution operation for the target device based on the type of the target device;

[0210] The troubleshooting operations include one or a combination of the following:

[0211] Turn off the target device;

[0212] The electronic device displays a warning message.

[0213] Send fault diagnosis results to the preset terminal.

[0214] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0215] In an exemplary embodiment, the acquisition module 510, the first determination module 520, the acquisition module 530, the second determination module 540, and the third determination module 550 may be implemented by one or more central processing units (CPUs), graphics processing units (GPUs), baseband processors (BPs), application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.

[0216] Figure 6 This is a block diagram illustrating a fault determination device 600 according to an exemplary embodiment. For example, device 600 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0217] Reference Figure 6 The device 600 may include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, and a communication component 616.

[0218] Processing component 602 typically controls the overall operation of device 600, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 602 may include one or more modules to facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.

[0219] Memory 604 is configured to store various types of data to support operation of device 700. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, etc. Memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0220] Power supply component 606 provides power to various components of device 600. Power supply component 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 600.

[0221] Multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 608 includes a front-facing camera and / or a rear-facing camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0222] Audio component 610 is configured to output and / or input audio signals. For example, audio component 610 includes a microphone (MIC) configured to receive external audio signals when device 600 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.

[0223] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0224] Sensor assembly 614 includes one or more sensors for providing status assessments of various aspects of device 600. For example, sensor assembly 614 may detect the on / off state of device 600, the relative positioning of components such as the display and keypad of device 600, changes in the position of device 600 or a component of device 600, the presence or absence of user contact with device 600, the orientation or acceleration / deceleration of device 600, and temperature changes of device 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0225] Communication component 616 is configured to facilitate wired or wireless communication between device 600 and other devices. Device 600 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 616 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0226] In an exemplary embodiment, the apparatus 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0227] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, which can be executed by a processor 620 of the device 600 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0228] After the instruction is executed by the processor, it can perform the following operations:

[0229] Obtain the first power consumption range of each component in the electronic device under the target scenario when it is working normally, and the second power consumption range after each component fails.

[0230] Based on the first power consumption range, determine the total power consumption range of the electronic device under normal operation in the target scenario;

[0231] Collect the actual total power consumption value of the electronic device in the target scenario, and determine whether the actual total power consumption value is outside the total power consumption range;

[0232] If the actual total power consumption value is outside the total power consumption range, then the target device that has failed among the various devices is determined based on the first power consumption range, the second power consumption range, and the total power consumption range.

[0233] Understandably, determining the target device that has failed among the various devices based on the first power consumption range, the second power consumption range, the actual total power consumption value, and the total power consumption range includes:

[0234] By traversing through the devices, any one or several devices among the devices are identified as candidate devices, and the devices among the devices other than the candidate devices are identified as the remaining devices.

[0235] The second power consumption range corresponding to the candidate device and the first power consumption range corresponding to the remaining device are summed to obtain the simulated power consumption range.

[0236] If the simulated power consumption range is outside the total power consumption range, and the actual total power consumption value is within the simulated power consumption range, then the candidate device is identified as the target device that has failed.

[0237] Understandably, obtaining the first power consumption range of each component in the electronic device under normal operation in the target scenario, and the second power consumption range after each component malfunctions, includes:

[0238] Acquire a first type of historical power consumption data and a second type of historical power consumption data of multiple electronic devices. The first type of historical power consumption data is the power consumption data of the electronic devices when they are working normally in the target scenario. The second type of historical power consumption data is the power consumption data of the electronic devices when any component of the electronic devices fails in the target scenario.

[0239] Based on the first type of historical power consumption data and the second type of historical power consumption data, the first power consumption range of each device in the electronic device under the target scenario when it is working normally, and the second power consumption range after each device fails.

[0240] Understandably, the acquisition of the actual total power consumption of the electronic device in the target scenario includes:

[0241] According to a preset time period, the actual total power consumption of the electronic device in the target scenario is collected periodically.

[0242] Understandably, the acquisition of the actual total power consumption of the electronic device in the target scenario includes:

[0243] Once the electronic device is detected to be in a preset state, the actual total power consumption of the electronic device in the target scenario is collected.

[0244] Understandably, the acquisition of the actual total power consumption of the electronic device in the target scenario includes:

[0245] Upon receiving a fault diagnosis request from the cloud platform, the actual total power consumption of the electronic device in the target scenario is collected.

[0246] Understandably, after determining whether the actual total power consumption value is outside the total power consumption range, the method further includes:

[0247] If the actual total power consumption value is determined to be within the total power consumption range, then it is determined that all devices are in normal working condition, and information indicating that the electronic device is working normally is output.

[0248] Understandably, after determining the target device that has failed among the various devices based on the first power consumption range, the second power consumption range, and the total power consumption range, the method further includes:

[0249] Based on the type of the target device, determine the troubleshooting operations for the target device;

[0250] The troubleshooting operations include one or a combination of the following:

[0251] Turn off the target device;

[0252] The electronic device displays a warning message.

[0253] Send fault diagnosis results to the preset terminal.

[0254] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the claims.

[0255] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A fault determination method, characterized in that, The method includes: The first power consumption range of each component in the electronic device under normal operation in the target scenario is obtained, and the second power consumption range after each component fails; wherein, the target scenario is different if the current state of the electronic device is different, and the current state of the electronic device includes at least one of the following: the remaining power of the electronic device, the temperature of the electronic device, and the load rate of the central processing unit (CPU) of the electronic device. Based on the first power consumption range, determine the total power consumption range of the electronic device under normal operation in the target scenario; Collect the actual total power consumption value of the electronic device in the target scenario, and determine whether the actual total power consumption value is outside the total power consumption range; If the actual total power consumption value is outside the total power consumption range, then the target device that has failed among the various devices is determined based on the first power consumption range, the second power consumption range, and the total power consumption range. The step of determining the target device that has failed among the various devices based on the first power consumption range, the second power consumption range, and the total power consumption range includes: By traversing through the devices, any one or several devices among the devices are identified as candidate devices, and the devices among the devices other than the candidate devices are identified as the remaining devices. The second power consumption range corresponding to the candidate device and the first power consumption range corresponding to the remaining device are summed to obtain the simulated power consumption range. If the simulated power consumption range is outside the total power consumption range, and the actual total power consumption value is within the simulated power consumption range, then the candidate device is identified as the target device that has failed.

2. The method according to claim 1, characterized in that, The process of obtaining the first power consumption range of each component in the electronic device under normal operation in the target scenario, and the second power consumption range after each component malfunctions, includes: Acquire a first type of historical power consumption data and a second type of historical power consumption data of multiple electronic devices. The first type of historical power consumption data is the power consumption data of the electronic devices when they are working normally in the target scenario. The second type of historical power consumption data is the power consumption data of the electronic devices when any component of the electronic devices fails in the target scenario. Based on the first type of historical power consumption data and the second type of historical power consumption data, the first power consumption range of each device in the electronic device under the target scenario when it is working normally, and the second power consumption range after each device fails.

3. The method according to claim 1, characterized in that, The process of collecting the actual total power consumption of the electronic device in the target scenario includes: According to a preset time period, the actual total power consumption of the electronic device in the target scenario is collected periodically.

4. The method according to claim 1, characterized in that, The process of collecting the actual total power consumption of the electronic device in the target scenario includes: Once the electronic device is detected to be in a preset state, the actual total power consumption of the electronic device in the target scenario is collected.

5. The method according to claim 1, characterized in that, The process of collecting the actual total power consumption of the electronic device in the target scenario includes: Upon receiving a fault diagnosis request from the cloud platform, the actual total power consumption of the electronic device in the target scenario is collected.

6. The method according to claim 1, characterized in that, After determining whether the actual total power consumption value is outside the total power consumption range, the method further includes: If the actual total power consumption value is determined to be within the total power consumption range, then it is determined that all devices are in normal working condition, and information indicating that the electronic device is working normally is output.

7. The method according to claim 1, characterized in that, After determining the target device that has failed among the various devices based on the first power consumption range, the second power consumption range, and the total power consumption range, the method further includes: Based on the type of the target device, determine the troubleshooting operations for the target device; The troubleshooting operations include one or a combination of the following: Turn off the target device; The electronic device displays a warning message. Send fault diagnosis results to the preset terminal.

8. A fault determination device, characterized in that, include: The acquisition module is used to acquire the first power consumption range of each component in the electronic device under normal operation in the target scenario, and the second power consumption range after each component fails; wherein, the target scenario is different if the current state of the electronic device is different, and the current state of the electronic device includes at least one of the following: the remaining power of the electronic device, the temperature of the electronic device, and the load rate of the central processing unit (CPU) of the electronic device. The first determining module is used to determine the total power consumption range of the electronic device under normal operation in the target scenario based on the first power consumption range; The acquisition module is used to acquire the actual total power consumption value of the electronic device in the target scenario and determine whether the actual total power consumption value is outside the total power consumption range. The second determining module is used to determine the target device that has failed among the various devices based on the first power consumption range, the second power consumption range, and the total power consumption range if the actual total power consumption value is outside the total power consumption range. The second determining module is specifically used for: By traversing through the devices, any one or several devices among the devices are identified as candidate devices, and the devices among the devices other than the candidate devices are identified as the remaining devices. The second power consumption range corresponding to the candidate device and the first power consumption range corresponding to the remaining device are summed to obtain the simulated power consumption range. If the simulated power consumption range is outside the total power consumption range, and the actual total power consumption value is within the simulated power consumption range, then the candidate device is identified as the target device that has failed.

9. The apparatus according to claim 8, characterized in that, The acquisition module is specifically used for: Acquire a first type of historical power consumption data and a second type of historical power consumption data of multiple electronic devices. The first type of historical power consumption data is the power consumption data of the electronic devices when they are working normally in the target scenario. The second type of historical power consumption data is the power consumption data of the electronic devices when any component of the electronic devices fails in the target scenario. Based on the first type of historical power consumption data and the second type of historical power consumption data, the first power consumption range of each device in the electronic device under the target scenario when it is working normally, and the second power consumption range after each device fails.

10. The apparatus according to claim 8, characterized in that, The acquisition module is specifically used to periodically collect the actual total power consumption value of the electronic device in the target scenario according to a preset time period.

11. The apparatus according to claim 8, characterized in that, The acquisition module is specifically used to acquire the actual total power consumption of the electronic device in the target scenario after detecting that the electronic device is in a preset state.

12. The apparatus according to claim 8, characterized in that, The acquisition module is specifically used to acquire the actual total power consumption of the electronic device in the target scenario after receiving a fault diagnosis request sent by the cloud platform.

13. The apparatus according to claim 8, characterized in that, The acquisition module is also specifically used for: If the actual total power consumption value is determined to be within the total power consumption range, then it is determined that all devices are in normal working condition, and information indicating that the electronic device is working normally is output.

14. The apparatus according to claim 8, characterized in that, The device further includes: a third determining module; The third determining module is used to determine the fault resolution operation for the target device based on the type of the target device; The troubleshooting operations include one or a combination of the following: Turn off the target device; The electronic device displays a warning message. Send fault diagnosis results to the preset terminal.

15. An electronic device, characterized in that, include: Memory used to store processor-executable instructions; The processor is connected to the memory; The processor is configured to perform the fault determination method provided in any one of claims 1 to 7.

16. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a computer, enable the computer to perform any one of the fault determination methods as claimed in claims 1 to 7.

Citation Information

Patent Citations

  • Self-diagnostic apparatus and method for electric device

    CN103197166A