Power consumption detection method and device, electronic equipment and storage medium
By calculating the input power and efficiency of the voltage conversion module using the output voltage and current of the fast charging cell in electronic devices, the problem of inaccurate power consumption detection under the influence of resistance is solved, thereby improving accuracy and cost-effectiveness.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2023-05-18
- Publication Date
- 2026-06-09
Smart Images

Figure CN116609581B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, specifically relating to a power consumption detection method, device, electronic equipment, and storage medium. Background Technology
[0002] Currently, electronic devices can perform efficiency statistics on voltage conversion modules to obtain their power consumption and thus determine their power loss. In related technologies, users can add test points at both ends of the voltage conversion module to determine its current loss and, consequently, its power consumption.
[0003] However, in the above method, since the test points are generally implemented by resistors, and the resistors themselves have a certain impedance, the output efficiency of the voltage conversion module detected by the electronic device is reduced. As a result, the power consumption of the voltage conversion module detected by the electronic device is inaccurate. Summary of the Invention
[0004] The purpose of this application is to provide a power consumption detection method, device, electronic device, and storage medium that can improve the accuracy of power consumption detection for voltage conversion modules.
[0005] In a first aspect, embodiments of this application provide a power consumption detection method for a voltage conversion module, applied to an electronic device. The electronic device includes a fast charging chip and a voltage conversion module connected to the fast charging chip. The power consumption detection method includes: determining the input power of the voltage conversion module at a target time point based on the output voltage and output current of the fast charging chip at a target time point; determining the voltage conversion efficiency of the voltage conversion module at the target time point based on the input power and the relationship between the input power of the voltage conversion module and the voltage conversion efficiency of the voltage conversion module; and determining the power consumption loss value of the voltage conversion module at the target time point based on the voltage conversion efficiency.
[0006] Secondly, embodiments of this application provide a power consumption detection device, which includes a fast charging cell and a voltage conversion module connected to the fast charging cell. The power consumption detection device includes a determination module and a processing module. The determination module is used to determine the input power of the voltage conversion module at the target time point based on the output voltage and output current of the fast charging cell at the target time point; and to determine the voltage conversion efficiency of the voltage conversion module at the target time point based on the input power and the relationship between the input power of the voltage conversion module and the voltage conversion efficiency of the voltage conversion module. The processing module is used to determine the power consumption loss value of the voltage conversion module at the target time point based on the voltage conversion efficiency.
[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0011] In this embodiment, the electronic device can determine the input power of the voltage conversion module at the target time point based on the output voltage and output current of the fast charging cell at the target time point. Based on the input power and the relationship between the input power of the voltage conversion module and the voltage conversion efficiency of the voltage conversion module, the voltage conversion efficiency of the voltage conversion module at the target time point is determined. Based on the voltage conversion efficiency, the power consumption loss value of the voltage conversion module at the target time point is determined. This avoids the influence of the resistance at the test point on the power consumption detection result of the voltage conversion module, and improves the accuracy of power consumption detection of the voltage conversion module. Attached Figure Description
[0012] Figure 1 This is one of the structural schematic diagrams of a charging module provided in the embodiments of this application;
[0013] Figure 2 This is a second schematic diagram of the structure of a charging module provided in the embodiments of this application;
[0014] Figure 3 This is one of the flowcharts of a power consumption detection method provided in the embodiments of this application;
[0015] Figure 4 This is a second flowchart of a power consumption detection method provided in an embodiment of this application;
[0016] Figure 5 This is the third flowchart of a power consumption detection method provided in the embodiments of this application;
[0017] Figure 6This is the fourth flowchart of a power consumption detection method provided in the embodiments of this application;
[0018] Figure 7 This is one of the structural schematic diagrams of a power consumption detection device provided in the embodiments of this application;
[0019] Figure 8 This is a second schematic diagram of the structure of a power consumption detection device provided in the embodiments of this application;
[0020] Figure 9 This is one of the hardware structure diagrams of an electronic device provided in the embodiments of this application;
[0021] Figure 10 This is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0022] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0023] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0024] The power consumption detection method for the voltage conversion module provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0025] With the development of electronic devices, the number of applications on these devices is increasing, and the functions of these applications are also expanding. Therefore, ensuring the battery life of electronic devices in this context is a pressing technical problem. Typically, electronic devices can be charged quickly by connecting fast charging cells in parallel, thus solving the battery life issue. However, because the fast charging cells are connected in parallel, the output voltage of the fast charging cells in the electronic device will double. To address the issue of this voltage doubling, electronic device manufacturers can use voltage conversion modules to convert the doubled voltage output by the fast charging cells into a normal voltage usable by the electronic device.
[0026] For example, such as Figure 1 As shown, the charging module 10 in the electronic device may include a charging module 11, a voltage conversion module 12, and a fast charging core 13; wherein, the charging module 11 can be connected to the voltage conversion module 12, the voltage conversion module 12 is bidirectionally connected to the fast charging core 13, and the voltage conversion module 12 is connected to other modules 14 in the electronic device; wherein, the fast charging core 13 is a pure battery cell, the charging module 11 is used to charge the fast charging core 13, in the discharging scenario, the fast charging core 13 supplies power to the electronic device, and in the charging scenario, the charging module 11 supplies power to both the fast charging core 13 and the electronic device.
[0027] Because electronic devices incorporate voltage conversion modules, they experience additional overall power consumption losses. Typically, users add test points at both ends of the voltage conversion module and then use ammeters to collect two sets of current data. After obtaining these two sets of current data, the electronic device can calculate the power consumption loss of the voltage conversion module by measuring the current loss at both ends.
[0028] For example, such as Figure 2 As shown, in conventional technology, users can add test points 15 at the front end and test points 16 at the back end of the voltage conversion module 12, so that electronic devices can determine the power consumption loss of the voltage conversion module based on the current passing through these two test points.
[0029] However, the addition of test points at both the front and rear ends of the voltage conversion module, typically implemented using resistors, can affect the stability of the original circuit and reduce voltage conversion efficiency. Secondly, the above solution cannot measure the efficiency of the voltage conversion module in real time. This is because real-time measurement would require adding an extra ammeter within the electronic device, increasing hardware costs. Even if a single ammeter is inexpensive, the cost becomes significant when applied to mass-produced electronic devices.
[0030] In this embodiment, the input power of the voltage conversion module at the target time point is determined based on the output voltage and output current of the fast charging cell at the target time point. Based on the input power and the relationship between the input power of the voltage conversion module and the voltage conversion efficiency of the voltage conversion module, the voltage conversion efficiency of the voltage conversion module at the target time point is determined. Based on the voltage conversion efficiency, the power consumption loss value of the voltage conversion module at the target time point is determined. This avoids the influence of the resistance at the test point on the power consumption detection result of the voltage conversion module, and improves the accuracy of power consumption detection of the voltage conversion module.
[0031] The power consumption detection method provided in this application can be implemented by a power consumption detection device, which can be an electronic device or a functional module within an electronic device. The electronic device includes a fast-charging core and a voltage conversion module connected to the fast-charging core. The following description uses an electronic device as an example to illustrate the technical solution provided in this application.
[0032] This application provides a power consumption detection method. Figure 3 A flowchart of a power consumption detection method provided in an embodiment of this application is shown. Figure 3 As shown, the power consumption detection method provided in this application embodiment may include the following steps 201 to 203.
[0033] Step 201: The electronic device determines the input power of the voltage conversion module at the target time point based on the output voltage and current of the fast charging chip. It can be understood that since the fast charging chip is directly connected to the voltage conversion module, the electronic device can obtain the output power of the fast charging chip based on its output voltage and current, and thus obtain the input power of the voltage conversion module.
[0034] In this embodiment, the target time point can be the current time point in the electronic device's system. This embodiment uses the target time point as an example to illustrate the calculation process of the power loss value of the voltage conversion module at each sampling time point.
[0035] In this embodiment of the application, the fast charging core can be a battery module in an electronic device.
[0036] In some embodiments of this application, the battery module can be a dual-cell or multi-cell module, wherein the number of multi-cell modules is greater than the number of dual-cell modules.
[0037] It is understood that, in related technologies, those skilled in the art can add a power testing module to the fast charging cell. This power testing module can measure the output power of the fast charging cell in real time. Therefore, this application can directly use the power testing module to obtain the output power of the voltage conversion module in real time, without the need to add additional hardware circuitry, thus saving hardware costs.
[0038] In this embodiment of the application, the electronic device marks the sampling period according to the sampling duration to evenly divide it into multiple sampling time periods, and determines each sampling time point, i.e. the aforementioned target time point, within each sampling time period.
[0039] In some embodiments of this application, the target time point can be any point corresponding to any location within a preset sampling period.
[0040] For example, the electronic device marks the sampling period according to the sampling duration to evenly divide it into multiple sampling time periods, and determines the target time point within each sampling time period.
[0041] Preferably, the target time point can be the point corresponding to the end of a sampling time period.
[0042] For example, assuming the current time is 18:00, the electronic device can take a 2-minute sampling period. Then, at 18:02, the electronic device can determine the input power of the voltage conversion module at 18:02 based on the output power of the fast charging cell obtained by the power testing module at 18:02.
[0043] It is understandable that electronic devices can uniformly sample the output voltage and output current of the fast charging cell in the electronic device according to the sampling time period, thereby obtaining the input power of the voltage conversion module at the target time point.
[0044] Optionally, in the embodiments of this application, combined with Figure 3 ,like Figure 4 As shown, step 201 can be implemented through steps 201a and 201b below.
[0045] Step 201a: When the electronic device is in discharge mode, the electronic device acquires the output voltage and output current of the fast charging cell at the target time point.
[0046] In this embodiment, since the voltage conversion module and the fast charging cell are connected, the input power of the voltage conversion module can be equivalently obtained by acquiring the output voltage and output current of the fast charging cell.
[0047] In some embodiments of this application, the output voltage and output current of the fast charging chip at the target time point can be obtained by a power testing module.
[0048] Step 201b: The electronic device determines the input power of the voltage conversion module at the target time point based on the output voltage and output current.
[0049] In this embodiment, after obtaining the output voltage and output current of the fast charging cell at the target time point, the electronic device can multiply the output voltage and output current of the fast charging cell to obtain the input power of the voltage conversion module at the target time point.
[0050] For example, the input power of the voltage conversion module at the target time point can be determined by the following formula 1 based on the output voltage and output current of the fast charging cell at the target time point:
[0051] P(battery) = V(battery) * I(battery) (Formula 1)
[0052] Where P(battery) is the input power of the voltage conversion module at the target time point, V(battery) is the output voltage of the fast charging cell at the target time point, and I(battery) is the output current of the fast charging cell at the target time point.
[0053] In this embodiment, the electronic device can obtain the input power of the voltage conversion module at the target time point by the output power of the fast charging cell at the target time point, without the need to add hardware structures on both sides of the voltage conversion module, thus reducing hardware costs.
[0054] Optionally, in the embodiments of this application, combined with Figure 3 ,like Figure 5 As shown, step 201 can be implemented through steps 201c and 201d as described below.
[0055] Step 201c: When the electronic device is in charging mode, the electronic device obtains the input power of the fast charging core at the target time point, and the output power of the charging module connected to the voltage conversion module at the target time point.
[0056] In this embodiment, the output power of the charging module can be determined by the output current and output voltage of the charging module, and the input power of the fast charging core can be determined by the input current and input voltage of the fast charging core.
[0057] For example, the output power of the above-mentioned charging module can be determined by the following formula 2, the specific formula being:
[0058] P(charger)= v(charge) * I(charge) (Formula 2)
[0059] Where P(charger) is the output power of the charging module, v(charge) is the output voltage of the charging module, and I(charge) is the output current of the charging module.
[0060] For example, the input power of the aforementioned fast charging cell can be determined by the following formula 3, specifically:
[0061] P(battery)= v(battery) * I(battery) (Formula 3)
[0062] Where P(battery) is the input power of the fast charging cell at the target time point, v(battery) is the input voltage of the fast charging cell at the target time point, and I(battery) is the input current of the fast charging cell at the target time point.
[0063] Step 201d: The electronic device determines the input power of the voltage conversion module at the target time point based on the difference between the output power of the charging module and the input power of the fast charging cell.
[0064] Specifically, after obtaining the output power of the charging module and the input power of the fast charging core, the electronic device can obtain the input power of the voltage conversion module according to the following formula 4:
[0065] P(input) = P(charger) – P(battery) (Formula 4)
[0066] Wherein, P(input) is the input power of the voltage conversion module, P(charger) is the output power of the charging module, and P(battery) is the input power of the fast charging cell.
[0067] In this embodiment, the electronic device can determine the input power of the voltage conversion module in different ways under different scenarios, thereby improving the flexibility of the electronic device in obtaining the input power of the voltage conversion module.
[0068] Step 202: The electronic device determines the voltage conversion efficiency of the voltage conversion module at the target time point based on the input power and the relationship between the input power of the voltage conversion module and the voltage conversion efficiency of the voltage conversion module.
[0069] In some embodiments of this application, the voltage conversion efficiency corresponding to the input power can be preset.
[0070] Specifically, before acquiring the input power of the voltage conversion module, the electronic device can acquire a first profile, which includes at least one input power and the voltage conversion efficiency corresponding to the at least one input power. After acquiring the input power, the electronic device can find the voltage conversion efficiency corresponding to the input power.
[0071] For example, the voltage conversion efficiency described above can be represented by discrete values, and the specific degree of dispersion can be determined by the relevant personnel.
[0072] Step 203: The electronic device determines the power consumption loss value of the voltage conversion module at the target time point based on the voltage conversion efficiency.
[0073] In this embodiment of the application, after obtaining the input power and the voltage conversion efficiency corresponding to the input power, the electronic device can multiply the input power and the voltage conversion efficiency corresponding to the input power to obtain the power consumption loss value of the voltage conversion module at the target time point.
[0074] For example, the power loss value corresponding to the target time point can be obtained through the following formulas 5 and 6:
[0075] P(module) = P(battery) * e(P(battery)) (Formula 5)
[0076] E(period) = P(module) * T(period) (Formula 6)
[0077] Where P(module) is the power consumption loss of the voltage conversion module, P(battery) is the input power of the voltage conversion module, e(P(battery)) is the voltage conversion efficiency corresponding to the input power, T(period) is the duration of the sampling period, and E(period) is the power consumption loss of the voltage conversion module at the target time point.
[0078] This application provides a power consumption detection method. An electronic device can determine the input power of a voltage conversion module at a target time point based on the output voltage and current of a fast charging cell at that time point. Based on the input power and the relationship between the input power and the voltage conversion efficiency of the voltage conversion module, the voltage conversion efficiency of the voltage conversion module at the target time point is determined. The power consumption loss value of the voltage conversion module at the target time point is then determined based on the voltage conversion efficiency. This method avoids the influence of the resistance at the test point on the power consumption detection results of the voltage conversion module, thus improving the accuracy of power consumption detection for the voltage conversion module.
[0079] Optionally, in the embodiments of this application, combined with Figure 3 ,like Figure 6 As shown, before step 202 above, the power consumption detection method provided in this application embodiment further includes steps 301 and 302 below, and step 202 above can be specifically implemented by step 202a below.
[0080] Step 301: The electronic device acquires the operating mode of the voltage conversion module at the target time point.
[0081] In this embodiment, the electronic device can determine the operating mode at the target time point based on the operating status of the voltage conversion module at the target time point.
[0082] In some embodiments of this application, the operating mode of the voltage conversion module can be associated with the output power of the voltage conversion module.
[0083] For example, assuming the current output power of the voltage conversion module is low, the electronic device can determine that the voltage conversion module is currently in an energy-saving operating mode.
[0084] It is understandable that the above implementation scheme takes into account the operating modes of the voltage conversion module. In fact, to improve operating efficiency under different input currents while ensuring operational stability, voltage conversion modules typically operate in different modes. For example, in high-current scenarios (a common engineering configuration is above 200mA), the ripple effect of the system circuit is relatively small, and to improve efficiency, the system often adopts a dynamic frequency modulation mode; in low-current scenarios, the ripple effect of the system circuit is relatively large, and to improve stability, the system often adopts a fixed frequency strategy, in which case the operating efficiency is lower.
[0085] Step 302: The electronic device obtains the relationship between the input power and voltage conversion efficiency of the voltage conversion module in the working mode.
[0086] In some embodiments of this application, the voltage conversion efficiency of the voltage conversion module varies under different operating modes at the same input power.
[0087] In some embodiments of this application, the electronic device can obtain the relationship between the input power and voltage conversion efficiency of the voltage conversion module in the operating mode according to the second configuration file.
[0088] Step 202a: The electronic device determines the voltage conversion efficiency of the voltage conversion module at the target time point based on the input efficiency and the relationship between the input power and voltage conversion efficiency of the voltage conversion module in the working mode.
[0089] In some embodiments of this application, the electronic device can obtain the voltage conversion efficiency that matches the operating mode under the current input power according to the second configuration file.
[0090] Specifically, before acquiring the input power of the voltage conversion module, the electronic device can acquire at least one second profile, each profile corresponding to a working mode. Each second profile includes at least one input power and the voltage conversion efficiency corresponding to at least one input power in that mode. After the electronic device acquires the input power, it can find the voltage conversion efficiency corresponding to that working mode based on the input power.
[0091] In this embodiment, the electronic device can obtain different voltage conversion efficiencies according to different operating modes of the voltage conversion module, thereby obtaining different power loss values, which improves the flexibility of the electronic device in obtaining power loss values.
[0092] Optionally, in the embodiments of this application, each sampling period includes at least two sampling time periods, and each sampling time period includes at least two time points; the power consumption detection method provided in the embodiments of this application further includes the following steps 401 and 402.
[0093] Step 401: The electronic device uses the power loss value of the voltage conversion module at the target time point as the power loss value of the voltage conversion module during the target sampling time period.
[0094] It is understandable that electronic devices can use the power loss value of the voltage conversion module at the target time point to reflect the power loss value of the voltage conversion module during the sampling time period to which the target time point belongs.
[0095] In some embodiments of this application, for each sampling time period, the electronic device may perform one or more uniform samplings in each sampling time period to obtain N power loss values, where N is a positive integer.
[0096] It should be noted that if uniform sampling is performed once within each sampling time period, then one power loss value directly corresponds to one sampling time period; if uniform sampling is performed multiple times within each sampling time period, then the average of the multiple power loss values is taken as the power loss value corresponding to that sampling time period.
[0097] In some embodiments of this application, the durations of the above-mentioned at least two sampling time periods may be equal or unequal.
[0098] In some embodiments of this application, the duration of the above-mentioned at least two sampling time periods can be preset by the user; or determined by the electronic device according to the sampling period.
[0099] Step 402: The electronic device determines the power consumption loss value of the voltage conversion module within the sampling period based on the power consumption loss value of the voltage conversion module within each sampling time period.
[0100] In this embodiment of the application, after obtaining the power loss value of the voltage conversion module in each sampling time period, the electronic device can sum the power loss values corresponding to each sampling time period to obtain the power loss value of the voltage conversion module in the sampling period.
[0101] In this embodiment, the electronic device can obtain the power loss value of the voltage conversion module in real time during the sampling period by using the power loss value in each sampling time period, so that the power consumption of the voltage conversion module at the current moment obtained by the electronic device is more accurate.
[0102] Optionally, in this embodiment of the application, step 402 can be implemented by step 402a as described below.
[0103] Step 402a: The electronic device calculates the sum of the power loss values of the voltage conversion module in each sampling time period to obtain the power loss value of the voltage conversion module in the sampling period.
[0104] For example, the electronic device can obtain the power consumption loss value of the voltage conversion module during the sampling period using the following formula 7:
[0105] E(sum) = SUM[P(module) * T(period)] (Formula 7)
[0106] Where E(sum) is the power consumption loss of the voltage conversion module during the sampling period, P(module) is the power loss value, and T(period) is the duration corresponding to the sampling time period.
[0107] It should be noted that Formula 7 above is the power loss value of the voltage conversion module obtained by the electronic device during the sampling period when the sampling time period is the same. If the sampling time periods are different, the electronic device can obtain the power loss value of the voltage conversion module at different target time points according to Formula 6 above, and then superimpose the power loss values of the voltage conversion module at different target time points to obtain the power loss value of the voltage conversion module during the sampling period.
[0108] In this embodiment, the electronic device can sum the power loss values within each sampling time period to obtain the power loss value of the voltage conversion module within the sampling period. In this way, the power consumption of the voltage conversion module at the current moment obtained by the electronic device is more accurate.
[0109] For example, the power consumption detection method provided in this application for an electronic device in a discharged state will be explained and illustrated below through specific examples.
[0110] Step 21: When the electronic device is in a discharging state and the system time of the electronic device matches the target time point, the electronic device can obtain the output power of the charging cell in real time and use the output power of the charging cell as the input power of the voltage conversion module.
[0111] In this embodiment of the application, the specific process can be implemented using the above formula 1.
[0112] Step 22: The electronic device obtains the efficiency of the voltage conversion module under different input powers in the discharge state.
[0113] In this embodiment, the electronic device can add the efficiency of the voltage conversion module under different input powers and different input powers to the configuration file, with one input power corresponding to one efficiency.
[0114] Step 23: The electronic device multiplies the input power of the voltage conversion module with the efficiency corresponding to that input power to obtain the efficiency loss value of the voltage conversion module at the target time point.
[0115] In some embodiments of this application, the aforementioned target time point is one or more.
[0116] Step 24: Superimpose the efficiency loss values at each target time point, and multiply the superimposed efficiency loss value by the duration of the sampling period to obtain the efficiency loss value of the voltage conversion module within the sampling period.
[0117] Optionally, in the embodiments of this application, step 22 above can be replaced by the electronic device obtaining the efficiency of the voltage conversion module under different modes and the corresponding different input powers in the discharge state.
[0118] In this embodiment, the electronic device can obtain the input power of the voltage conversion module through the output power of the charging cell, without the need to add hardware structures on both sides of the voltage conversion module, thus reducing hardware costs.
[0119] Furthermore, by way of example, the power consumption detection method provided in this application for an electronic device in a charging state will be explained and illustrated below through specific examples.
[0120] Step 31: When the electronic device is in a charging state and the system time of the electronic device matches the target time point, the electronic device can obtain the input power of the charging cell and the output power of the charging module in real time, and use the difference between the input power of the charging cell and the output power of the charging module as the input power of the voltage conversion module.
[0121] Step 32: The electronic device obtains the efficiency of the voltage conversion module under different input powers during the charging state.
[0122] In this embodiment, the electronic device can add the efficiency of the voltage conversion module under different input powers and different input powers to the configuration file, with one input power corresponding to one efficiency.
[0123] Step 33: The electronic device multiplies the input power of the voltage conversion module with the efficiency corresponding to that input power to obtain the efficiency loss value of the voltage conversion module at the target time point.
[0124] In this embodiment of the application, the aforementioned target time point can be one or more.
[0125] Step 34: The electronic device superimposes the efficiency loss values at each target time point and multiplies the superimposed efficiency loss value by the duration of the sampling time period to obtain the efficiency loss value of the voltage conversion module within the sampling period.
[0126] Optionally, in the embodiments of this application, step 32 above can be replaced by the electronic device obtaining the efficiency of the voltage conversion module under different modes and the corresponding different input powers in the charging state.
[0127] In this embodiment, the electronic device can determine the input power of the voltage conversion module in different ways under different scenarios, thereby improving the flexibility of the electronic device in obtaining the input power of the voltage conversion module.
[0128] It should be noted that the power consumption detection method provided in this application can be executed by a power consumption detection device, an electronic device, or a functional module or entity within an electronic device. This application uses a power consumption detection device executing the power consumption detection method as an example to illustrate the power consumption detection device provided in this application.
[0129] Figure 7 A schematic diagram of a possible structure of the power consumption detection device involved in an embodiment of this application is shown. For example... Figure 7 As shown, the power consumption detection device 70 may include a determination module 71 and a processing module 72.
[0130] The determining module 71 is used to determine the input power of the voltage conversion module at the target time point based on the output voltage and output current of the fast charging cell at the target time point; and to determine the voltage conversion efficiency of the voltage conversion module at the target time point based on the input power and the relationship between the input power and the voltage conversion efficiency of the voltage conversion module. The processing module 72 is used to determine the power consumption loss value of the voltage conversion module at the target time point based on the voltage conversion efficiency.
[0131] In some possible implementations, each sampling period includes at least two sampling time periods, and each sampling time period includes at least two time points; the determining module 71 is further configured to use the power loss value of the voltage conversion module at the target time point as the power loss value of the voltage conversion module in the target sampling time period; and determine the power loss value of the voltage conversion module in the sampling period based on the power loss value of the voltage conversion module in each sampling time period.
[0132] In some possible implementations, the aforementioned determining module 71 is specifically used to calculate the sum of the power loss values of the voltage conversion module in each sampling time period, so as to obtain the power loss value of the voltage conversion module in the sampling period.
[0133] In some possible implementations, combining Figure 7 ,like Figure 8 As shown, the power consumption detection device 70 provided in this embodiment further includes an acquisition module 73. The acquisition module 73 is used to acquire the operating mode of the voltage conversion module at the target time point before the determining module determines the voltage conversion efficiency of the voltage conversion module at the target time point based on the input power and the relationship between the input power and the voltage conversion efficiency of the voltage conversion module; and to acquire the relationship between the input power and the voltage conversion efficiency of the voltage conversion module in the operating mode. The determining module 71 is specifically used to determine the voltage conversion efficiency of the voltage conversion module at the target time point based on the input efficiency and the relationship between the input power and the voltage conversion efficiency of the voltage conversion module in the operating mode.
[0134] In some possible implementations, the power consumption detection device 70 provided in this application embodiment further includes: an acquisition module 73; the acquisition module 73 is used to acquire the output voltage and output current of the fast charging cell at a target time point when the electronic device is in discharge mode; and a determination module 71 is specifically used to determine the input power of the voltage conversion module at the target time point based on the output voltage and output current.
[0135] In some possible implementations, the aforementioned determining module 71 is specifically used to obtain the input power of the fast charging cell at the target time point and the output power of the charging module connected to the voltage conversion module at the target time point when the electronic device is in charging mode; and to determine the input power of the voltage conversion module at the target time point based on the difference between the output power of the charging module and the input power of the fast charging cell.
[0136] This application provides a power consumption detection device. The power consumption detection device can determine the input power of the voltage conversion module at the target time point based on the output voltage and output current of the fast charging cell at the target time point. Based on the input power and the relationship between the input power of the voltage conversion module and the voltage conversion efficiency of the voltage conversion module, the device determines the voltage conversion efficiency of the voltage conversion module at the target time point. Based on the voltage conversion efficiency, the device determines the power consumption loss value of the voltage conversion module at the target time point. This avoids the influence of the resistance at the test point on the power consumption detection results of the voltage conversion module, and improves the accuracy of power consumption detection of the voltage conversion module.
[0137] The power consumption detection device in this application embodiment can be a device, or a component, integrated circuit, or chip in an electronic device. The device can be a mobile electronic device or a non-mobile electronic device. For example, a mobile electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0138] The power consumption detection device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0139] The power consumption detection device provided in this application embodiment can implement all the processes implemented in the above method embodiments, and will not be described again here to avoid repetition.
[0140] Optionally, such as Figure 9As shown, this application embodiment also provides an electronic device 90, including a processor 91 and a memory 92. The memory 92 stores a program or instructions that can run on the processor 91. When the program or instructions are executed by the processor 91, they implement the various steps of the power consumption detection method embodiment of the voltage conversion module described above, and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0141] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0142] Figure 10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0143] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
[0144] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0145] The processor 110 is used to determine the input power of the voltage conversion module at the target time point based on the output voltage and output current of the fast charging cell at the target time point; and to determine the voltage conversion efficiency of the voltage conversion module at the target time point based on the input power and the relationship between the input power of the voltage conversion module and the voltage conversion efficiency of the voltage conversion module; and to determine the power consumption loss value of the voltage conversion module at the target time point based on the voltage conversion efficiency.
[0146] This application provides an electronic device that can determine the input power of a voltage conversion module at a target time point based on the output voltage and output current of a fast charging cell at that target time point. Based on the input power and the relationship between the input power and the voltage conversion efficiency of the voltage conversion module, the voltage conversion efficiency of the voltage conversion module at the target time point is determined. The power consumption loss value of the voltage conversion module at the target time point is then determined based on the voltage conversion efficiency. This avoids the influence of the resistance at the test point on the power consumption detection results of the voltage conversion module, thus improving the accuracy of power consumption detection for the voltage conversion module.
[0147] Optionally, in this embodiment of the application, each sampling period includes at least two sampling time periods, and each sampling time period includes at least two time points; the processor 110 is further configured to use the power loss value of the voltage conversion module at the target time point as the power loss value of the voltage conversion module in the target sampling time period; and determine the power loss value of the voltage conversion module in the sampling period based on the power loss value of the voltage conversion module in each sampling time period.
[0148] Optionally, in this embodiment of the application, the processor 110 is specifically used to calculate the sum of the power loss values of the voltage conversion module in each sampling time period, so as to obtain the power loss value of the voltage conversion module in the sampling period.
[0149] Optionally, in this embodiment, the input unit 104 is further configured to, before determining the voltage conversion efficiency of the voltage conversion module at the target time point based on the input power and the relationship between the input power and the voltage conversion efficiency of the voltage conversion module, obtain the operating mode of the voltage conversion module at the target time point; and obtain the relationship between the input power and the voltage conversion efficiency of the voltage conversion module in the operating mode. The processor 110 is specifically configured to determine the voltage conversion efficiency of the voltage conversion module at the target time point based on the input efficiency and the relationship between the input power and the voltage conversion efficiency of the voltage conversion module in the operating mode.
[0150] Optionally, in this embodiment of the application, the processor 110 is specifically used to acquire the output voltage and output current of the fast charging cell at a target time point when the electronic device is in discharge mode; and to determine the input power of the voltage conversion module at the target time point based on the output voltage and output current.
[0151] Optionally, in this embodiment of the application, the processor 110 is specifically configured to, when the electronic device is in charging mode, acquire the input power of the fast charging core at a target time point and the output power of the charging module connected to the voltage conversion module at the target time point; and determine the input power of the voltage conversion module at the target time point based on the difference between the output power of the charging module and the input power of the fast charging core.
[0152] The electronic device provided in this application embodiment can implement the various processes implemented in the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0153] For details on the beneficial effects of the various implementation methods in this embodiment, please refer to the beneficial effects of the corresponding implementation methods in the above method embodiments. To avoid repetition, these will not be repeated here.
[0154] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0155] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0156] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0157] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0158] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0159] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0160] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0161] This application provides a computer program product stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the power consumption detection method embodiment of the voltage conversion module described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0162] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0163] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0164] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A power consumption detection method, applied to an electronic device, the electronic device comprising a fast charging core and a voltage conversion module connected to the fast charging core, characterized in that, The method includes: The input power of the voltage conversion module at the target time point is determined based on the output voltage and output current of the fast charging cell at the target time point. Obtain the operating mode of the voltage conversion module at the target time point; Obtain the relationship between the input power and voltage conversion efficiency of the voltage conversion module in the operating mode; Based on the input power and the relationship between the input power and voltage conversion efficiency of the voltage conversion module in the operating mode, the voltage conversion efficiency of the voltage conversion module at the target time point is determined. The power consumption loss of the voltage conversion module at the target time point is determined based on the voltage conversion efficiency.
2. The method according to claim 1, characterized in that, Each sampling period includes at least two sampling time intervals, and each sampling time interval includes at least two time points; The method further includes: The power loss value of the voltage conversion module at the target time point is taken as the power loss value of the voltage conversion module during the target sampling time period; The power consumption loss of the voltage conversion module during the sampling period is determined based on the power consumption loss value of the voltage conversion module during each sampling time period.
3. The method according to claim 2, characterized in that, Determining the power consumption loss of the voltage conversion module within the sampling period based on the power consumption loss of the voltage conversion module within each sampling time period includes: The sum of the power loss values of the voltage conversion module in each sampling time period is calculated to obtain the power loss value of the voltage conversion module in the sampling period.
4. The method according to claim 1, characterized in that, The step of determining the input power of the voltage conversion module at the target time point based on the output voltage and output current of the fast charging cell at the target time point includes: When the electronic device is in discharge mode, the output voltage and output current of the fast charging cell at the target time point are obtained; The input power of the voltage conversion module at the target time point is determined based on the output voltage and the output current.
5. The method according to claim 1, characterized in that, The step of determining the input power of the voltage conversion module at the target time point based on the output voltage and output current of the fast charging cell at the target time point includes: When the electronic device is in charging mode, the input power of the fast charging core at the target time point and the output power of the charging module connected to the voltage conversion module at the target time point are obtained. The input power of the voltage conversion module at the target time point is determined based on the difference between the output power of the charging module and the input power of the fast charging core.
6. A power consumption detection device, the device comprising a fast charging core and a voltage conversion module connected to the fast charging core, characterized in that, The device includes: a determining module and a processing module; The determining module is used to determine the input power of the voltage conversion module at the target time point based on the output voltage and output current of the fast charging cell at the target time point; The device further includes: an acquisition module, configured to acquire the operating mode of the voltage conversion module at the target time point before the determining module determines the voltage conversion efficiency of the voltage conversion module at the target time point based on the input power and the relationship between the input power of the voltage conversion module and the voltage conversion efficiency of the voltage conversion module; and acquire the relationship between the input power and the voltage conversion efficiency of the voltage conversion module in the operating mode; The determining module is specifically used to determine the voltage conversion efficiency of the voltage conversion module at the target time point based on the input power and the relationship between the input power and voltage conversion efficiency of the voltage conversion module in the operating mode. The processing module is used to determine the power consumption loss value of the voltage conversion module at the target time point based on the voltage conversion efficiency.
7. The apparatus according to claim 6, characterized in that, Each sampling period includes at least two sampling time periods, and each sampling time period includes at least two time points; the determining module is further configured to use the power loss value of the voltage conversion module at the target time point as the power loss value of the voltage conversion module in the target sampling time period; and determine the power loss value of the voltage conversion module in the sampling period based on the power loss value of the voltage conversion module in each sampling time period.
8. The apparatus according to claim 7, characterized in that, The determining module is specifically used to calculate the sum of the power loss values of the voltage conversion module in each sampling time period, so as to obtain the power loss value of the voltage conversion module in the sampling period.
9. The apparatus according to claim 6, characterized in that, The device further includes: an acquisition module; the acquisition module is used to acquire the output voltage and output current of the fast charging core at the target time point when the electronic device is in discharge mode; The determining module is specifically used to determine the input power of the voltage conversion module at the target time point based on the output voltage and the output current.
10. The apparatus according to claim 6, characterized in that, The determining module is specifically used to obtain the input power of the fast charging core at the target time point and the output power of the charging module connected to the voltage conversion module at the target time point when the electronic device is in charging mode. The input power of the voltage conversion module at the target time point is determined based on the difference between the output power of the charging module and the input power of the fast charging core.
11. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the power consumption detection method as described in any one of claims 1 to 5.
12. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the power consumption detection method as described in any one of claims 1 to 5.