Equipment endurance analysis method and device, storage medium and electronic equipment

By obtaining user-related habit data of the device, calculating standby and usage power consumption, combined with the nominal battery capacity, it solves the problem in the existing technology that the device endurance analysis is out of touch with the actual usage scenario, improves the reliability of the analysis, and achieves more accurate Evaluation of battery life.

CN118748693APending Publication Date: 2024-10-08SHENZHEN TCL NEW-TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410777264.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing device battery life analysis methods are divorced from users' actual usage scenarios and cannot truly reflect users' battery life pain points, resulting in poor analysis reliability.

Method used

By obtaining user-related habit data of the device, including standby habit data and usage habit data, the standby power consumption and usage power consumption are calculated, and the battery life of the device is calculated based on the nominal battery capacity, thereby improving the reliability of the analysis.

Benefits of technology

It effectively reflects the device battery life under users' actual usage habits and improves the reliability of device battery life analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748693A_ABST
    Figure CN118748693A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment endurance analysis method and device, a storage medium and electronic equipment, and relates to the technical field of electronic equipment.The method comprises the steps that user related habit data and nominal battery capacity of to-be-verified equipment are obtained, and the user related habit data comprise equipment standby habit data and equipment use habit data; calculating power consumption according to the equipment standby habit data to obtain standby power consumption; calculating power consumption according to the equipment use habit data to obtain use power consumption; and performing calculation based on the standby power consumption, the use power consumption and the nominal battery capacity to obtain the endurance time of the to-be-verified equipment. The method can effectively improve the analysis reliability of the cruising ability of the equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a device life analysis method, device, storage medium and electronic equipment. Background Art

[0002] As people become more and more dependent on mobile phones and other devices for various tasks, such as making calls, surfing the Internet, social media, and entertainment, consumers have higher and higher requirements for the battery life of their devices. Reliable analysis of device battery life is of great significance to users and manufacturers alike.

[0003] Currently, when analyzing the battery life of a device in related technologies, the device is usually set in a fixed scene for a long-term test. For example, the device is used to play videos, music or games for a long time to obtain the battery life of the device.

[0004] Under the current method, the test of device battery life is essentially divorced from actual user usage and cannot truly reflect the user's battery life pain points. In other words, the current analysis of device battery life is less reliable. Summary of the invention

[0005] The embodiment of the present application provides a device battery life analysis solution, which can effectively improve the reliability of the analysis of device battery life.

[0006] The embodiments of the present application provide the following technical solutions:

[0007] According to one embodiment of the present application, a device battery life analysis method includes: obtaining user-related habit data and nominal battery capacity of a device to be verified, wherein the user-related habit data includes device standby habit data and device usage habit data; calculating power consumption according to the device standby habit data to obtain standby power consumption; calculating power consumption according to the device usage habit data to obtain usage power consumption; and calculating based on the standby power consumption, the usage power consumption and the nominal battery capacity to obtain the battery life of the device to be verified.

[0008] In some embodiments of the present application, the device standby habit data includes static standby habit data and dynamic standby habit data; the power consumption is calculated according to the terminal standby habit data to obtain the standby power consumption, including: obtaining a first standby power consumption according to the static standby habit data; obtaining a second standby power consumption according to the dynamic standby habit data; and summing the first standby power consumption and the second standby power consumption to obtain the standby power consumption.

[0009] In some embodiments of the present application, the dynamic standby habit data includes the average standby power consumption current of at least one dynamic standby running application; obtaining the second standby power consumption based on the dynamic standby habit data includes: determining the usage weight of the at least one dynamic standby running application; weightedly summing the average standby power consumption current and the usage weight of the at least one dynamic standby running application to obtain the second standby power consumption.

[0010] In some embodiments of the present application, the device usage habit data includes an average current of power consumption of at least one user using an application; the power consumption calculation based on the device usage habit data to obtain the power consumption includes: determining a usage weight of the at least one user using the application; and weighted summing the average current of power consumption of the at least one user using the application and the usage weight to obtain the power consumption.

[0011] In some embodiments of the present application, the calculation based on the standby power consumption, the usage power consumption and the nominal battery capacity is used to obtain the battery life of the device to be tested, including: calculating according to the standby power consumption and the usage power consumption to obtain the total power consumption in a unit time period; dividing the nominal battery capacity by the total power consumption to obtain the battery life of the device to be tested.

[0012] In some embodiments of the present application, dividing the nominal battery capacity by the total power consumption to obtain the battery life of the device to be checked includes: multiplying the nominal battery capacity by a predetermined adjustment coefficient to obtain an adjusted battery capacity; dividing the adjusted battery capacity by the total power consumption to obtain the battery life of the device to be checked.

[0013] In some embodiments of the present application, after obtaining the battery life of the device to be checked by calculation based on the standby power consumption, the usage power consumption and the nominal battery capacity, the method further includes: comparing the battery life with the standard time to obtain a comparison result; and determining whether there is a battery life abnormality of the device to be checked based on the comparison result.

[0014] According to one embodiment of the present application, a device for analyzing device battery life includes: a data acquisition module, used to acquire user-related habit data and a nominal battery capacity of a device to be verified, wherein the user-related habit data includes device standby habit data and device usage habit data; a first calculation module, used to calculate power consumption according to the device standby habit data to obtain standby power consumption; a second calculation module, used to calculate power consumption according to the device usage habit data to obtain usage power consumption; and a duration calculation module, used to calculate based on the standby power consumption, the usage power consumption and the nominal battery capacity to obtain the battery life duration of the device to be verified.

[0015] In some embodiments of the present application, the device standby habit data includes static standby habit data and dynamic standby habit data; the first calculation module is used to: obtain a first standby power consumption according to the static standby habit data; obtain a second standby power consumption according to the dynamic standby habit data; sum the first standby power consumption and the second standby power consumption to obtain the standby power consumption.

[0016] In some embodiments of the present application, the dynamic standby habit data includes the average standby power consumption current of at least one dynamic standby running application; the first calculation module is used to: determine the usage weight of the at least one dynamic standby running application; and perform weighted summation of the average standby power consumption current and the usage weight of the at least one dynamic standby running application to obtain the second standby power consumption.

[0017] In some embodiments of the present application, the device usage habit data includes the average power consumption current of at least one user using an application; the second calculation module is used to: determine the usage weight of the at least one user using the application; and perform weighted summation of the average power consumption current of the at least one user using the application and the usage weight to obtain the power consumption.

[0018] In some embodiments of the present application, the duration calculation module is used to: calculate according to the standby power consumption and the usage power consumption to obtain the total power consumption in a unit time period; divide the nominal battery capacity by the total power consumption to obtain the battery life of the device to be verified.

[0019] In some embodiments of the present application, the duration calculation module is used to: multiply the nominal battery capacity by a predetermined adjustment coefficient to obtain an adjusted battery capacity; divide the adjusted battery capacity by the total power consumption to obtain the battery life of the device to be verified.

[0020] In some embodiments of the present application, after the battery life of the device to be checked is obtained by calculation based on the standby power consumption, the usage power consumption and the nominal battery capacity, the device also includes an abnormality judgment module, which is used to: compare the battery life with the standard time to obtain a comparison result; and determine whether there is a battery life abnormality in the device to be checked based on the comparison result.

[0021] According to another embodiment of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by a processor of a computer, the computer executes the method described in the embodiment of the present application.

[0022] According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.

[0023] According to another embodiment of the present application, a computer program product or a computer program 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 method provided in various optional implementations described in the embodiments of the present application.

[0024] In an embodiment of the present application, user-related habit data and a nominal battery capacity of a device to be verified are obtained, wherein the user-related habit data include device standby habit data and device usage habit data; power consumption is calculated based on the device standby habit data to obtain the standby power consumption; power consumption is calculated based on the device usage habit data to obtain the usage power consumption; and calculation is performed based on the standby power consumption, the usage power consumption and the nominal battery capacity to obtain the battery life of the device to be verified.

[0025] In this way, by obtaining the user-related habit data and the nominal battery capacity of the device to be verified, the standby power consumption and usage power consumption are calculated respectively according to the device standby habit data and the device usage habit data included in the user-related habit data, and the battery life of the device to be verified is further calculated in combination with the nominal battery capacity. The obtained battery life can effectively reflect the battery life of the device under the user's actual usage habits, and effectively improve the reliability of the analysis of the device's battery life. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0027] Figure 1 A flow chart of a device battery life analysis method according to an embodiment of the present application is shown.

[0028] Figure 2 A flowchart of standby power consumption calculation according to an embodiment of the present application is shown.

[0029] Figure 3 A flowchart of power consumption calculation according to an embodiment of the present application is shown.

[0030] Figure 4 A block diagram of a device battery life analysis apparatus according to an embodiment of the present application is shown.

[0031] Figure 5 A block diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0032] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than providing all embodiments for implementing the present disclosure. In the absence of conflict, the technical solutions recorded in the embodiments of the present disclosure can be implemented in any combination.

[0033] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements in the method or apparatus including the element (such as a step in the method or a unit in the apparatus, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.).

[0034] For example, the device battery life analysis method provided in the embodiment of the present disclosure includes a series of steps, but the device battery life analysis method provided in the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the device battery life analysis device provided in the embodiment of the present disclosure includes a series of units, but the device provided in the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units required to obtain relevant information or perform processing based on the information.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.

[0036] It is understandable that in the specific implementation of this application, related data such as user-related habit data are involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0037] Figure 1The flowchart of the device battery life analysis method according to an embodiment of the present application is schematically shown. The execution subject of the device battery life analysis method can be any device or server with processing capabilities, wherein the device is such as a television, a computer, a mobile phone, a smart watch, and a home appliance. The server is such as a physical server or a cloud server. For example, in one implementation scenario, the execution subject of the device battery life analysis method is the device to be verified, and the device to be verified is specifically a mobile phone.

[0038] like Figure 1 As shown, the device battery life analysis method may include steps S110 to S140.

[0039] Step S110, obtaining user-related habit data and nominal battery capacity of the device to be verified, wherein the user-related habit data includes device standby habit data and device usage habit data; Step S120, calculating power consumption according to the device standby habit data to obtain standby power consumption; Step S130, calculating power consumption according to the device usage habit data to obtain usage power consumption; Step S140, calculating based on the standby power consumption, the usage power consumption and the nominal battery capacity to obtain the battery life of the device to be verified.

[0040] The user-related habit data of the device to be verified may include device standby habit data and device usage habit data. The device standby habit data and device usage habit data may be collected by setting data collection points in advance in the device to be verified.

[0041] The device standby habit data is the habit data related to the standby of the device to be verified. For example, the device standby habit data may include the applications that the user allows to run (such as running in the background or hanging up the screen, etc.) when the device is in standby mode and the average current of the standby power consumption of the applications. The device usage habit data is the habit data related to the use of the device to be verified. For example, the device usage habit data may include the applications that the user uses (such as browsing pages, making calls, playing music, etc.) when the device is not in standby mode and the average current of the application's usage power consumption.

[0042] The power consumption is calculated based on the device standby habit data to obtain the standby power consumption, which is the power consumption of the device when it is on standby. The device standby habit data can be specifically within a predetermined unit time period, and the standby power consumption is specifically the power consumption when it is on standby within the predetermined unit time period. For example, the predetermined unit time period is specifically one day (that is, 24 hours), and the total standby time of the device to be verified in one day is 18.5 hours, then the standby power consumption is the total power consumption of the 18.5 hours.

[0043] The power consumption can be calculated based on the device usage habit data, and the usage power consumption can be obtained. The usage power consumption is the power consumption when the device is in use. The device usage habit data can be specifically within a predetermined unit time period, and the usage power consumption is specifically the power consumption when the device is used within the predetermined unit time period. For example, the predetermined unit time period is specifically one day (that is, 24 hours), and the total usage time of the device to be verified in one day is 5.5 hours, then the usage power consumption is the total power consumption of the 5.5 hours.

[0044] The battery life of the device to be verified can be accurately calculated based on the standby power consumption and the power consumption in use within the predetermined unit time period and the nominal battery capacity. For example, the predetermined unit time period is one day (that is, 24 hours), and the battery life is N days. The nominal battery capacity is the rated battery capacity of the battery in the device to be verified, and the nominal battery capacity is the battery capacity value indicated by the battery manufacturer when the battery leaves the factory.

[0045] In this way, based on steps S110 to S140, by acquiring the user-related habit data and the nominal battery capacity of the device to be verified, the standby power consumption and the usage power consumption are calculated respectively according to the device standby habit data and the device usage habit data included in the user-related habit data, and the battery life of the device to be verified is further estimated and calculated in combination with the nominal battery capacity. The obtained battery life can effectively reflect the battery life of the device under the user's actual usage habits, and effectively improve the reliability of the analysis of the device's battery life.

[0046] Described below Figure 1 When performing device life analysis under the embodiment, further optional specific embodiments are provided under each step performed.

[0047] In one embodiment, see Figure 2 The device standby habit data includes static standby habit data and dynamic standby habit data; the power consumption calculation based on the terminal standby habit data to obtain the standby power consumption may include: step S210, obtaining the first standby power consumption based on the static standby habit data; step S220, obtaining the second standby power consumption based on the dynamic standby habit data; step S230, summing the first standby power consumption and the second standby power consumption to obtain the standby power consumption.

[0048] The equipment standby habit data may include static standby habit data and dynamic standby habit data. The static standby habit data may specifically be the standby data when the static standby in the equipment to be verified exceeds the predetermined first time, for example, the standby data of the equipment to be verified in static standby for 10 hours at night, and the static standby habit data may include the average current of the standby power consumption of at least one static standby running application. The dynamic standby habit data may specifically be the standby data when the dynamic standby after using an application in the equipment to be verified is shorter than the predetermined second time, for example, the standby data when the equipment to be verified is in short standby for 10 minutes after using a certain application, and the total duration of multiple short standby times is the total duration of dynamic standby, and the dynamic standby habit data includes the average current of the standby power consumption of at least one dynamic standby running application.

[0049] The first standby power consumption in a predetermined unit time period can be calculated based on the static standby habit data; the second standby power consumption in a predetermined unit time period can be calculated based on the dynamic standby habit data. The first standby power consumption and the second standby power consumption are summed to accurately obtain the standby power consumption of the device to be verified when it is in standby mode.

[0050] For example, the predetermined unit time period is one day (that is, 24 hours), and the total standby time of the equipment to be checked in one day is 18.5 hours, of which the total static standby time is 10 hours, then the first standby power consumption is the total power consumption of the 10 hours, and the total dynamic standby time is 8.5 hours, then the second standby power consumption is the total power consumption of the 8.5 hours. By adding the first standby power consumption and the second standby power consumption, we can accurately obtain the standby power consumption with a total standby time of 18.5 hours.

[0051] The first standby power consumption and the second standby power consumption are calculated respectively according to the static standby habit data and the dynamic standby habit data. The power consumption can be calculated according to the two situations of static standby and dynamic standby respectively, and the standby power consumption of the device to be checked is summed up to further improve the accuracy of the standby power consumption.

[0052] A corresponding usage weight may be set for each application in the device to be verified. The usage weight of each application may be set in advance based on experience or based on the usage duration of the application.

[0053] In one embodiment, the static standby habit data may include the average standby power consumption current of at least one static standby running application; according to the static standby habit data, the first standby power consumption is obtained, which may specifically include: determining the usage weight of the at least one static standby running application; weightedly summing the average standby power consumption current and the usage weight of the at least one static standby running application to obtain the first standby power consumption.

[0054] The average standby power consumption current of the static standby running application can specifically be the average power consumption current of the static standby running application in a sub-unit time. For example, if the sub-unit time is 1 hour, the average standby power consumption current of the static standby running application can specifically be the average power consumption current of the static standby running application in 1 hour.

[0055] After determining the usage weight of at least one static standby application, the average current of the at least one static standby application and the usage weight are weighted and summed to obtain the first sub-standby power consumption in the sub-unit time. Then, the first sub-standby power consumption is multiplied by the total duration of static standby to obtain the first standby power consumption. For example, if the total duration of static standby is 10 hours, the first standby power consumption = first sub-standby power consumption * 10 hours.

[0056] In one embodiment, the dynamic standby habit data includes the average standby power consumption current of at least one dynamic standby running application; obtaining the second standby power consumption based on the dynamic standby habit data may include: determining the usage weight of the at least one dynamic standby running application; weightedly summing the average standby power consumption current and the usage weight of the at least one dynamic standby running application to obtain the second standby power consumption.

[0057] The average standby power consumption current of the dynamic standby application may specifically be the average power consumption current of the dynamic standby application in a sub-unit time. For example, if the sub-unit time is 1 hour, the average standby power consumption current of the dynamic standby application may specifically be the average power consumption current of the dynamic standby application in 1 hour.

[0058] After determining the usage weight of at least one dynamic standby application, the average current of the standby power consumption of at least one dynamic standby application and the usage weight are weighted and summed to obtain the second sub-standby power consumption in the sub-unit time. Then, the second sub-standby power consumption is multiplied by the total duration of dynamic standby to obtain the second standby power consumption. For example, if the total duration of dynamic standby is 8.5 hours, the second standby power consumption = second sub-standby power consumption * 8.5 hours.

[0059] In one embodiment, see Figure 3 The device usage habit data includes an average current of power consumption of at least one user using an application; the power consumption calculation based on the device usage habit data to obtain the power consumption may include: step S310, determining the usage weight of the at least one user using the application; step S320, weighted summing the average current of power consumption of the at least one user using the application and the usage weight to obtain the power consumption.

[0060] The device usage habit data includes the average power consumption current of at least one user's application. The average power consumption current of the user's application may specifically be the average power consumption current when the user uses the application in a sub-unit time. For example, if the sub-unit time is 1 hour, the average power consumption current of the user's application may specifically be the average power consumption current when the user uses the application in 1 hour.

[0061] After determining the usage weight of at least one user's application, the average current and usage weight of the at least one user's application are weighted and summed to obtain the third sub-standby power consumption in the sub-unit time. Then, the third sub-standby power consumption is multiplied by the total usage time to obtain the usage power consumption. For example, if the total usage time is 5.5 hours, the usage power consumption = the third sub-standby power consumption * 5.5 hours.

[0062] In one embodiment, the calculation based on the standby power consumption, the usage power consumption and the nominal battery capacity to obtain the battery life of the device to be verified may include: calculating according to the standby power consumption and the usage power consumption to obtain the total power consumption in a unit time period; dividing the nominal battery capacity by the total power consumption to obtain the battery life of the device to be verified.

[0063] By summing up the standby power consumption and the usage power consumption, the total power consumption in a unit time period (for example, 1 day) can be obtained. Then, the nominal battery capacity is divided by the total power consumption to obtain the battery life of the device to be verified.

[0064] In a specific embodiment, dividing the nominal battery capacity by the total power consumption to obtain the battery life of the device to be tested may include: multiplying the nominal battery capacity by a predetermined adjustment coefficient to obtain an adjusted battery capacity; dividing the adjusted battery capacity by the total power consumption to obtain the battery life of the device to be tested.

[0065] Due to various reasons, the actual power of the battery in the device to be tested may not reach the nominal battery capacity. The nominal battery capacity is multiplied by a predetermined adjustment coefficient to obtain the adjusted battery capacity. The adjusted battery capacity is divided by the total power consumption to further accurately obtain the battery life of the device to be tested.

[0066] The predetermined adjustment coefficient can be set according to actual conditions. For example, in one example, the predetermined adjustment coefficient is 0.95. Then, the battery life of the device to be verified = nominal battery capacity * 0.95 ÷ total power consumption of 24 hours / 1 day.

[0067] It can be understood that in other embodiments, the battery life of the device to be verified = nominal battery capacity ÷ total power consumption of 24 hours / 1 day.

[0068] Furthermore, after calculating based on the standby power consumption, the usage power consumption and the nominal battery capacity to obtain the battery life of the device to be checked, the method may also include: comparing the battery life with the standard time to obtain a comparison result; and determining whether the device to be checked has a battery life abnormality based on the comparison result.

[0069] A standard duration is set in advance, and the battery life duration is compared with the standard duration to obtain a comparison result. According to the comparison result, it can be accurately determined whether the device to be verified has a battery life abnormality. For example, if the comparison result is that the battery life duration is less than the standard duration, it is determined that the device to be verified has a battery life abnormality. Otherwise, it is determined that the device to be verified does not have a battery life abnormality.

[0070] In order to facilitate better implementation of the device battery life analysis method provided in the embodiment of the present application, the embodiment of the present application also provides a device battery life analysis device based on the above device battery life analysis method. The meanings of the terms are the same as those in the above device battery life analysis method, and the specific implementation details can refer to the description in the method embodiment. Figure 4 A block diagram of a device battery life analysis apparatus according to an embodiment of the present application is shown.

[0071] like Figure 4 As shown, the device battery life analysis apparatus 400 may include: a data acquisition module 410 may be used to acquire user-related habit data and a nominal battery capacity of the device to be verified, wherein the user-related habit data include device standby habit data and device usage habit data; a first calculation module 420 may be used to calculate power consumption according to the device standby habit data to obtain standby power consumption; a second calculation module 430 may be used to calculate power consumption according to the device usage habit data to obtain usage power consumption; a duration calculation module 440 may be used to calculate based on the standby power consumption, the usage power consumption and the nominal battery capacity to obtain the battery life duration of the device to be verified.

[0072] In some embodiments of the present application, the device standby habit data includes static standby habit data and dynamic standby habit data; the first calculation module is used to: obtain a first standby power consumption according to the static standby habit data; obtain a second standby power consumption according to the dynamic standby habit data; sum the first standby power consumption and the second standby power consumption to obtain the standby power consumption.

[0073] In some embodiments of the present application, the dynamic standby habit data includes the average standby power consumption current of at least one dynamic standby running application; the first calculation module is used to: determine the usage weight of the at least one dynamic standby running application; and perform weighted summation of the average standby power consumption current and the usage weight of the at least one dynamic standby running application to obtain the second standby power consumption.

[0074] In some embodiments of the present application, the device usage habit data includes the average power consumption current of at least one user using an application; the second calculation module is used to: determine the usage weight of the at least one user using the application; and perform weighted summation of the average power consumption current of the at least one user using the application and the usage weight to obtain the power consumption.

[0075] In some embodiments of the present application, the duration calculation module is used to: calculate according to the standby power consumption and the usage power consumption to obtain the total power consumption in a unit time period; divide the nominal battery capacity by the total power consumption to obtain the battery life of the device to be verified.

[0076] In some embodiments of the present application, the duration calculation module is used to: multiply the nominal battery capacity by a predetermined adjustment coefficient to obtain an adjusted battery capacity; divide the adjusted battery capacity by the total power consumption to obtain the battery life of the device to be verified.

[0077] In some embodiments of the present application, after the battery life of the device to be checked is obtained by calculation based on the standby power consumption, the usage power consumption and the nominal battery capacity, the device also includes an abnormality judgment module, which is used to: compare the battery life with the standard time to obtain a comparison result; and determine whether there is a battery life abnormality in the device to be checked based on the comparison result.

[0078] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0079] In addition, the present application also provides an electronic device, such as Figure 5 As shown, Figure 5 A block diagram of an electronic device according to an embodiment of the present application is shown, specifically:

[0080] The electronic device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0081] in:

[0082] The processor 501 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 502 and calling data stored in the memory 502, it executes various functions of the computer device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.

[0083] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0084] The electronic device also includes a power supply 503 for supplying power to each component. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 503 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0085] The electronic device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0086] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 501 in the electronic device will load the executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 will run the computer program stored in the memory 502, thereby realizing various functions in the aforementioned embodiments of the present application, such as the processor 501 may perform the following steps:

[0087] Obtain user-related habit data and nominal battery capacity of the device to be verified, wherein the user-related habit data includes device standby habit data and device usage habit data; calculate power consumption according to the device standby habit data to obtain standby power consumption; calculate power consumption according to the device usage habit data to obtain usage power consumption; calculate based on the standby power consumption, the usage power consumption and the nominal battery capacity to obtain the battery life of the device to be verified.

[0088] In some embodiments of the present application, the device standby habit data includes static standby habit data and dynamic standby habit data; the power consumption is calculated according to the terminal standby habit data to obtain the standby power consumption, including: obtaining a first standby power consumption according to the static standby habit data; obtaining a second standby power consumption according to the dynamic standby habit data; and summing the first standby power consumption and the second standby power consumption to obtain the standby power consumption.

[0089] In some embodiments of the present application, the dynamic standby habit data includes the average standby power consumption current of at least one dynamic standby running application; obtaining the second standby power consumption based on the dynamic standby habit data includes: determining the usage weight of the at least one dynamic standby running application; weightedly summing the average standby power consumption current and the usage weight of the at least one dynamic standby running application to obtain the second standby power consumption.

[0090] In some embodiments of the present application, the device usage habit data includes an average current of power consumption of at least one user using an application; the power consumption calculation based on the device usage habit data to obtain the power consumption includes: determining a usage weight of the at least one user using the application; and weighted summing the average current of power consumption of the at least one user using the application and the usage weight to obtain the power consumption.

[0091] In some embodiments of the present application, the calculation based on the standby power consumption, the usage power consumption and the nominal battery capacity is used to obtain the battery life of the device to be tested, including: calculating according to the standby power consumption and the usage power consumption to obtain the total power consumption in a unit time period; dividing the nominal battery capacity by the total power consumption to obtain the battery life of the device to be tested.

[0092] In some embodiments of the present application, dividing the nominal battery capacity by the total power consumption to obtain the battery life of the device to be checked includes: multiplying the nominal battery capacity by a predetermined adjustment coefficient to obtain an adjusted battery capacity; dividing the adjusted battery capacity by the total power consumption to obtain the battery life of the device to be checked.

[0093] In some embodiments of the present application, after obtaining the battery life of the device to be checked by calculation based on the standby power consumption, the usage power consumption and the nominal battery capacity, the method further includes: comparing the battery life with the standard time to obtain a comparison result; and determining whether there is a battery life abnormality of the device to be checked based on the comparison result.

[0094] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0095] To this end, an embodiment of the present application further provides a storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any method provided in the embodiment of the present application.

[0096] The storage medium may be a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0097] Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0098] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0099] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.

Claims

1. A device life analysis method, characterized in that: include: Obtaining user-related habit data and nominal battery capacity of the device to be verified, wherein the user-related habit data includes device standby habit data and device usage habit data; Calculate the power consumption according to the standby habit data of the device to obtain the standby power consumption; Calculate the power consumption according to the device usage habit data to obtain the power consumption; The battery life of the device to be verified is obtained by performing calculation based on the standby power consumption, the usage power consumption and the nominal battery capacity.

2. The method according to claim 1, characterized in that The device standby habit data includes static standby habit data and dynamic standby habit data; The calculating power consumption according to the terminal standby habit data to obtain the standby power consumption includes: Obtaining a first standby power consumption according to the static standby habit data; obtaining a second standby power consumption according to the dynamic standby habit data; The first standby power consumption and the second standby power consumption are summed to obtain the standby power consumption.

3. The method according to claim 2, characterized in that The dynamic standby habit data includes an average current of standby power consumption of at least one dynamic standby running application; The obtaining, according to the dynamic standby habit data, a second standby power consumption comprises: determining a usage weight of the at least one dynamic standby running application; The second standby power consumption is obtained by weighted summing the average standby power consumption current and the usage weight of the at least one dynamic standby running application.

4. The method according to claim 1, characterized in that: The device usage habit data includes an average current consumed by at least one application used by a user; The calculating power consumption according to the device usage habit data to obtain the power consumption includes: Determining a usage weight of the at least one user using the application; The power consumption is obtained by performing a weighted summation on the average power consumption current and the usage weight of the at least one application used by the user.

5. The method according to claim 1, characterized in that The calculating based on the standby power consumption, the usage power consumption and the nominal battery capacity to obtain the battery life of the device to be verified includes: Calculate the total power consumption in a unit time period according to the standby power consumption and the usage power consumption; Divide the nominal battery capacity by the total power consumption to obtain the battery life of the device to be verified.

6. The method according to claim 5, characterized in that The step of dividing the nominal battery capacity by the total power consumption to obtain the battery life of the device to be verified includes: Multiplying the nominal battery capacity by a predetermined adjustment coefficient to obtain an adjusted battery capacity; The adjusted battery capacity is divided by the total power consumption to obtain the battery life of the device to be verified.

7. The method according to any one of claims 1 to 6, characterized in that: After obtaining the battery life of the device to be verified by calculating based on the standby power consumption, the usage power consumption and the nominal battery capacity, the method further includes: Comparing the endurance time with the standard time to obtain a comparison result; Determine whether the device to be verified has a battery life abnormality according to the comparison result.

8. A device for analyzing equipment life, characterized in that: include: A data acquisition module, used to acquire user-related habit data and nominal battery capacity of the device to be verified, wherein the user-related habit data includes device standby habit data and device usage habit data; A first calculation module, configured to calculate power consumption according to the device standby habit data to obtain standby power consumption; A second calculation module is used to calculate the power consumption according to the device usage habit data to obtain the usage power consumption; The duration calculation module is used to calculate based on the standby power consumption, the usage power consumption and the nominal battery capacity to obtain the battery life of the device to be verified.

9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 7.