CN112034376B - Power management apparatus and method - Google Patents

Power management apparatus and method Download PDF

Info

Publication number
CN112034376B
CN112034376B CN202010857061.5A CN202010857061A CN112034376B CN 112034376 B CN112034376 B CN 112034376B CN 202010857061 A CN202010857061 A CN 202010857061A CN 112034376 B CN112034376 B CN 112034376B
Authority
CN
China
Prior art keywords
power
power supply
data acquisition
operation parameters
management device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010857061.5A
Other languages
Chinese (zh)
Other versions
CN112034376A (en
Inventor
刘君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zeku Technology Beijing Corp Ltd
Original Assignee
Zeku Technology Beijing Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zeku Technology Beijing Corp Ltd filed Critical Zeku Technology Beijing Corp Ltd
Priority to CN202010857061.5A priority Critical patent/CN112034376B/en
Publication of CN112034376A publication Critical patent/CN112034376A/en
Priority to PCT/CN2021/106496 priority patent/WO2022042116A1/en
Application granted granted Critical
Publication of CN112034376B publication Critical patent/CN112034376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M3/00Conversion of dc power input into dc power output
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • H02M1/0003Details of control, feedback or regulation circuits
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Power Sources (AREA)

Abstract

The application provides a power management device and a method, wherein the power management device comprises a test unit, the test unit comprises at least one data acquisition module and at least one data analysis module, the data acquisition module acquires the operation parameters of a power supply in the power management device and transmits the operation parameters to the data analysis module, and the data analysis module manages and analyzes the operation parameters output by the data acquisition module to obtain analysis results; because the test unit is arranged in the power management device, the operation parameters of each power supply of the power management device can be measured in real time and in a lossless manner, and a measuring circuit does not need to be developed outside the power management device in the later period, so that the workload of later development is reduced.

Description

Power management apparatus and method
Technical Field
The present application relates to the field of circuits, and in particular, to a power management apparatus and method.
Background
With the development of technology and the improvement of living standard of people, various electrical systems are commonly used in daily production and living. In various electrical systems, measurement, calculation and analysis of current and power consumption are always unavoidable and relatively difficult problems.
At present, the measurement schemes of the electrical system by various manufacturers are not completely consistent, but the thought is basically similar, as shown in fig. 1, additional measurement ports or circuits are added outside the core hardware product of the electrical system, the current of a single path or a few paths in the core hardware product is measured through the measurement ports or circuits by using a monitoring device or a data acquisition card, and then the corresponding power or efficiency is manually calculated through a data processing tool.
As shown in FIG. 1, the measurement process includes hardware design of a circuit board, construction of a test system, post analysis of measurement data, and the like, which results in large workload of post development of the measurement system, and the measurement result cannot be subjected to embedded association analysis with various software behaviors of the system.
Disclosure of Invention
The embodiment of the application provides a power management device and a method, which can measure the data of a power supply in the power management device in real time and without damage and reduce the workload of later development.
In a first aspect, a power management apparatus includes a test unit including at least one data acquisition module and at least one data analysis module;
the data acquisition module is used for acquiring the operation parameters of the power supply in the power supply management device;
the data analysis module is used for performing management analysis on the operation parameters output by the data acquisition module to obtain an analysis result; the analysis results include a first timestamp for alignment with a second timestamp in the software trace results.
In one embodiment, the at least one data acquisition module comprises a linear low dropout power supply LDO data acquisition module and/or a direct current power supply converter DCDC data acquisition module;
the LDO data acquisition module is used for acquiring the operation parameters of the LDO in the power management device;
the DCDC data acquisition module is used for acquiring the operation parameters of DCDC in the power management device.
In one embodiment, the LDO data collection module is further configured to collect an operating parameter of a system total power supply in the power management device.
In one embodiment, the LDO data acquisition module includes at least one of a current sensor, a voltage sensor, and a current mirror circuit.
In one embodiment, the DCDC data acquisition module includes a current mirror circuit.
In one embodiment, the DCDC data acquisition module is further configured to obtain a third timestamp, and calibrate an internal clock of the DCDC data acquisition module according to the third timestamp; the third timestamp is a timestamp for collecting the operation parameters of the DCDC.
In one embodiment, the at least one data analysis module comprises a current analysis module and/or a power consumption analysis module;
the current analysis module is used for analyzing current data in the operation parameters output by the data acquisition modules;
the power consumption analysis module is used for calculating the power consumption of each power supply according to the operation parameters output by each data acquisition module.
In one embodiment, the current analysis module is configured to analyze current data in the operation parameters output by each data acquisition module, and includes:
the current analysis module is used for acquiring current data of each power supply in the power supply management device according to the operation parameters output by each data acquisition module, analyzing the current data of each power supply according to a preset format, and generating a current measurement information table.
In one embodiment, the power consumption analysis module is configured to calculate power consumption of each power supply according to the operation parameter output by each data acquisition module, and includes:
the power consumption analysis module is used for determining the operation parameters of the power supplies according to the operation parameters output by the data acquisition modules, determining the target power consumption calculation models of the power supplies according to the corresponding relation between the types of the power supplies and the power consumption calculation models, inputting the operation parameters of the power supplies into the corresponding target power consumption calculation models to perform power consumption calculation, and obtaining the power consumption of the power supplies.
In one embodiment, the test unit further includes a storage module, where the storage module is configured to store configuration information of each of the data acquisition modules, configuration information of each of the data analysis modules, and operation parameters acquired by each of the data acquisition modules.
A second aspect is a power management method applied to the power management apparatus of any one of the first aspects, the power management method including:
collecting operation parameters of each power supply in the power supply management device;
performing management analysis on the operation parameters of each power supply to obtain analysis results; the analysis results include a first timestamp for alignment with a second timestamp in the software trace results. In one embodiment, the collecting the operation parameters of each power supply in the power supply management device includes:
and collecting operation parameters of at least one power supply of LDO, DCDC and a system total power supply in the power management device.
In one embodiment, the power management method further comprises:
acquiring a third timestamp; the third timestamp is a timestamp for collecting the operation parameters of the DCDC;
and calibrating the internal clock of the DCDC data acquisition module according to the third timestamp.
In one embodiment, the performing management analysis on the operation parameters of each power supply includes:
analyzing current data in the operation parameters of the power supplies; and/or the number of the groups of groups,
and calculating the power consumption of each power supply according to the operation parameters of each power supply.
In one embodiment, the analyzing the current data in the operation parameters of each power supply includes:
acquiring current data of each power supply from the operation parameters of each power supply;
and analyzing the current data of each power supply according to a preset format to generate a current measurement information table.
In one embodiment, the calculating the power consumption of each power supply according to the operation parameters of each power supply includes:
determining a target power consumption calculation model of each power supply according to the corresponding relation between the type of the power supply and the power consumption calculation model;
and inputting the operation parameters of the power supplies into corresponding target power consumption calculation models to calculate the power consumption, so as to obtain the power consumption of the power supplies.
In one embodiment, the method further comprises:
outputting the analysis result to an external device; the analysis result comprises current information and/or power consumption information carrying the first timestamp; and the external equipment is used for aligning the first timestamp with a second timestamp in the software tracking result, and determining and displaying current information and/or power consumption information of a corresponding power supply in the execution process of each task.
The power management device comprises a test unit, wherein the test unit comprises at least one data acquisition module and at least one data analysis module, the data acquisition module acquires the operation parameters of a power supply in the power management device and transmits the operation parameters to the data analysis module, and the data analysis module manages and analyzes the operation parameters output by the data acquisition module to obtain analysis results; because the test unit is arranged in the power management device, the operation parameters of each power supply of the power management device can be measured in real time and in a lossless manner, and a measuring circuit does not need to be developed outside the power management device in the later period, so that the workload of later development is reduced. In addition, as the analysis result comprises the first time stamp, the alignment can be carried out according to the first time stamp and the second time stamp in the software tracking result, and the measured operation data of each power supply and various software behaviors of the system are subjected to embedded association analysis.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an electrical measurement system in one embodiment;
FIG. 2 is a schematic diagram of a power management device according to an embodiment;
FIG. 3 is a schematic diagram of a power management device according to an embodiment;
FIG. 4 is a schematic diagram of a power management device according to an embodiment;
FIG. 5 is a schematic diagram of a power management device according to an embodiment;
FIG. 6 is a flow chart of a power management method provided by one embodiment;
FIG. 7 is a flow chart of a power management method provided by one embodiment;
fig. 8 is a flowchart of a power management method according to an embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
FIG. 2 is a schematic diagram of a power management device according to one embodiment, as shown in FIG. 2, the power management device includes a test unit 1, where the test unit 1 includes at least one data acquisition module 11 and at least one data analysis module 12; the data acquisition module 11 is used for acquiring the operation parameters of the power supply in the power supply management device; the data analysis module 12 is used for performing management analysis on the operation parameters output by the data acquisition module to obtain analysis results; the analysis results include a first timestamp for alignment with a second timestamp in the software trace results.
In this embodiment, a power management device is provided, which may be a power management integrated circuit (Power Management Integration Circuit, PMIC), where the PMIC includes a test unit 1, that is, the test unit 1 is integrated inside the PMIC, and the test unit 1 may measure an operation parameter of each power supply in the PMIC, and may perform management analysis on the operation parameter of each power supply.
The test unit 1 comprises at least one data acquisition module 11 and at least one data analysis module 12, wherein different data acquisition modules 11 measure different power supplies to acquire the operating parameters of the different power supplies, and the different data analysis modules 12 can perform management analysis on the different operating parameters. As shown in fig. 2, two data acquisition modules 11 and two data analysis modules 12 are shown, where the two data acquisition modules 11 respectively measure the operation parameters of different power sources, for example, one data acquisition module 11 measures the input, output current, voltage, time stamp, etc. of a linear low dropout power source (Low Dropout Regulator, LDO), and the other data acquisition module 11 measures the input, output current, voltage, time stamp, etc. of a dc power converter (Direct circuit to Direct circuit Convertor, DCDC); one data analysis module 12 is responsible for categorizing and counting the input and output currents of all power sources, and the other data analysis module 12 is responsible for calculating power consumption from the current measurements.
The data analysis module 12 performs management analysis on the operation parameters output by each data acquisition module 11 to obtain an analysis result, for example, the data analysis module 12 may perform classification statistics according to timestamps generated when each operation parameter is acquired, perform classification statistics on current and voltage of each power supply according to time sequence of the timestamps, or calculate power consumption of each power supply at each timestamp according to the current and the voltage, and then use the classified information such as current, voltage and power consumption with the timestamps as the analysis result, and align the timestamps in the analysis result with the timestamps in the software tracking result, thereby achieving the purpose of performing embedded association analysis on the measurement result of the power supply of the PMIC and various software behaviors of the system.
It should be noted that the test unit 1 may further include a data acquisition module 11 and a data analysis module 12 for measuring other circuits and calculating and analyzing other operating parameters, which is not limited in the embodiment of the present application.
In this embodiment, since the test unit 1 is built in the PMIC, the current and power measured by the test unit 1 have characteristics of non-destructive and real-time measurement compared with those measured by a measuring device provided outside the PMIC, and thus the test unit 1 can be regarded as a non-destructive real-time current and power measuring unit (Lossless Runtime Current and Power Measurement unit, LRCPM) system.
The power management device provided by the embodiment of the application comprises a test unit, wherein the test unit comprises at least one data acquisition module and at least one data analysis module, the data acquisition module acquires the operation parameters of a power supply in the power management device and transmits the operation parameters to the data analysis module, and the data analysis module manages and analyzes the operation parameters output by the data acquisition module to obtain analysis results; because the test unit is arranged in the power management device, the operation parameters of each power supply of the power management device can be measured in real time and in a lossless manner, and a measuring circuit does not need to be developed outside the power management device in the later period, so that the workload of later development is reduced. In addition, as the analysis result comprises the first time stamp, the alignment can be carried out according to the first time stamp and the second time stamp in the software tracking result, and the measured operation data of each power supply and various software behaviors of the system are subjected to embedded association analysis.
FIG. 3 is a schematic diagram of a power management apparatus according to an embodiment, as shown in FIG. 3, at least one data acquisition module 11 includes an LDO data acquisition module 111 and/or a DCDC data acquisition module 112; the LDO data acquisition module 111 is used for acquiring the operation parameters of the LDO in the power management device; the DCDC data acquisition module 112 is configured to acquire an operation parameter of the DCDC in the power management device.
It should be noted that, in fig. 3, an LDO data acquisition module 111 and a DCDC data acquisition module 112 are shown, and in an actual scenario, the test unit 1 may include the LDO data acquisition module 111, the DCDC data acquisition module 112, two modules including the LDO data acquisition module 111 and the DCDC data acquisition module 112, and a data acquisition module for measuring other power sources.
Typically, the power management device includes both LDO and DCDC type power supplies. LDOs tend to provide low noise, better input and output linearity, and less loaded and more efficient power supplies; while DCDC tends to provide drive to larger loads, both frequency modulation and pulse width are provided to cope with different conditions of the load, thereby improving power efficiency and quality. Therefore, in this embodiment, the LDO data acquisition module 111 and/or the DCDC data acquisition module 112 may be set in the test unit 1 according to actual requirements.
The LDO data acquisition module 111 is specially designed to cope with the characteristics of the LDO power supply, the beginning of measurement can be triggered by a register, the current and voltage states of the input and output of the LDO power supply can be monitored, and the measurement result is transmitted to the next stage data analysis module 12 to be used as the calculation input of the next step.
Optionally, the LDO data acquisition module 111 is further configured to acquire an operation parameter of a system total power supply in the power management device. LDO data collection module 111 also monitors information on the total power supply (e.g., battery) of the system as a calculation input for total current and power consumption.
Illustratively, the LDO data collection module 111 includes at least one of a current sensor, a voltage sensor, and a current mirror circuit. Different measuring devices can be arranged according to the characteristics of LDO current, for example, different measuring device combination modes can be adopted to finish monitoring tasks in the face of large current or small current, so that proper measuring device combination modes are selected according to different currents, and measuring accuracy and scene universality are improved.
The DCDC data acquisition module 112 is specifically designed to cope with the characteristics of DCDC and can monitor the current and voltage conditions of the input and output of the DCDC power supply. Because of the switching characteristics of the DCDC power supply, the data from the DCDC data acquisition module 112 may be further clocked and sent to the data analysis module 12 for final processing. But for a low power consumption mode of DCDC (e.g. PWM) its data may also be picked up directly by the data analysis module 12. Other functions of the DCDC test circuit module 12 are similar to the LDO data acquisition module 111.
Optionally, the DCDC data acquisition module 112 includes a current mirror circuit. The measurement mode of the DCDC data acquisition module 112 is more preferable to a current mirror circuit because the input and output power of DCDC is generally larger and the current mirror circuit is more suitable for measuring current.
Further, the DCDC data acquisition module 112 is further configured to obtain a third timestamp, and calibrate an internal clock of the DCDC data acquisition module according to the third timestamp; the third timestamp is a timestamp of the acquisition of the operating parameters of the DCDC.
In this embodiment, because the DCDC data acquisition module 112 has a specific internal clock due to the switching characteristic of the DCDC power supply, the DCDC data acquisition module 112 outputs a third timestamp while acquiring data, the DCDC data acquisition module 112 can compare the third timestamp with the timestamp of the system clock, and if the timestamp deviation between the third timestamp and the system clock is found to be larger, the internal clock of the DCDC data acquisition module 112 can be calibrated. The internal clock of the DCDC data acquisition module 112 and the system total clock are ensured to be kept synchronous, and the accuracy of data acquisition and the reliability of embedded association analysis of various software behaviors of a later stage and a system are further ensured.
Optionally, a calibration module may be further configured to calibrate the internal clock of the DCDC data acquisition module according to the third timestamp.
In this embodiment, an LDO data acquisition module 111 and/or a DCDC data acquisition module 112 may be set in the test unit, the operation parameters of the LDO in the power management device may be acquired by the LDO data acquisition module 111, the operation parameters of the DCDC in the power management device may be acquired by the DCDC data acquisition module 112, the LRCPM system may be configured according to the requirements of the project, the product or the use case, the measurement content may be flexibly configured, the measurement process may be efficiently completed in real time, and the customized measurement may be implemented.
As shown in fig. 4, at least one data analysis module 12 includes a current analysis module 121 and/or a power consumption analysis module 122; the current analysis module 121 is used for analyzing current data in the operation parameters output by each data acquisition module; the power consumption analysis module 122 is configured to calculate power consumption of each power supply according to the operation parameters output by each data acquisition module.
It should be noted that, in fig. 4, a current analysis module 121 and a power consumption analysis module 122 are shown, and in an actual scenario, the test unit 1 may include the current analysis module 121, the power consumption analysis module 122, two modules including the current analysis module 121 and the power consumption analysis module 122, and a data analysis module for managing other test parameters, which is not limited in the embodiment of the present application.
In this embodiment, the current analysis module 121 is responsible for calculating all current measurement results, including input and output current data of LDO, DCDC and system total power supply, for example, calculating total current of each power supply in a period of time, counting current of each power supply at each time, etc.
Further, the current analysis module 121 is configured to analyze current data in the operation parameters output by the data acquisition modules, and includes: the current analysis module 121 is configured to obtain current data of each power supply in the power management device according to the operation parameters output by each data acquisition module, analyze the current data of each power supply according to a preset format, and generate a current measurement information table.
In this embodiment, a special current processing circuit module 121 is provided to process current, on one hand, different clock frequencies can be set for different data acquisition modules, so as to improve the accuracy of data acquisition; on the other hand, the current analysis module 121 may generate a special current measurement information report according to the current results measured by the data acquisition modules, where the current measurement report may include current measurement results of multiple power sources, and may perform comprehensive analysis, display the current of each power source, and so on. The data of the current analysis module 121 may be accessed through the PMIC internal bus to save area of the current analysis module 121. In addition, the current analysis module 121 can synchronize with the system clock when calculating each path of power supply current, and further map to the behavior of the system software, thereby providing better assistance for system analysis.
The power consumption analysis module 122 is responsible for power consumption calculations for all modules, including input and output power consumption for LDO, DCDC, and total power supply. However, the LDO and DCDC require different models to calculate the measurement results of different data acquisition modules due to different characteristics.
Further, the power consumption analysis module 122 is configured to calculate power consumption of each power supply according to the operation parameters output by each data acquisition module, and includes: the power consumption analysis module 122 is configured to determine an operation parameter of each power supply according to the operation parameter output by each data acquisition module, determine a target power consumption calculation model of each power supply according to a corresponding relationship between a type of the power supply and the power consumption calculation model, and input the operation parameter of each power supply to the corresponding target power consumption calculation model to perform power consumption calculation, so as to obtain power consumption of each power supply.
In this embodiment, a correspondence between the type of the power supply and the power consumption calculation model may be preset, after the power consumption analysis module 122 obtains the operation parameters of each power supply measured by each data acquisition module, the target power consumption calculation model of each power supply is determined according to the correspondence, and the operation parameters of each power supply are input into the corresponding target power consumption calculation model to perform power consumption calculation, so as to obtain the power consumption of each power supply. Different power consumption calculation models are set for different power supply types, so that the accuracy of power consumption calculation is improved.
Further, the current analysis module 121 and the power consumption analysis module 122 can perform parallel calculation, thereby improving the calculation efficiency.
In the embodiment of the application, the test unit comprises the current analysis module 121 and/or the power consumption analysis module 122, the current analysis module analyzes the current data in the operation parameters output by each data acquisition module, the power consumption analysis module calculates the power consumption of each power supply according to the operation parameters output by each data acquisition module, and the current analysis module 121 and the power consumption analysis module 122 realize the measurement and calculation of full-automatic current and power consumption, thereby effectively improving the efficiency of system measurement and analysis and effectively avoiding the workload of later development. In addition, the current analysis module 121 and the power consumption analysis module 122 in this embodiment can utilize the programmability of the LRCPM system, and can set the measured power branches and different report forms according to the requirements of projects, so as to improve the flexibility of system power consumption and analysis of other problems.
As shown in fig. 5, the test unit 1 further includes a storage module 13, where the storage module 13 is configured to store configuration information of each data acquisition module, configuration information of each data analysis module, and operation parameters acquired by each data acquisition module.
In this embodiment, the storage module 13 may be implemented by using a register, for example, a register may be set for each module in the test unit 1, so as to store configuration information of each module, configuration information of each data analysis module, and operation parameters collected by each data collection module. Optionally, the storage module may be connected to an external device, where the external device may access the register via the register bus, for example, the external device may input a measurement signal to the register via the register bus, and the register receives the measurement signal to trigger the corresponding data acquisition module to measure an operating parameter of the power supply. For example, when the input/output current of the LDO power supply needs to be measured, the external device inputs an LDO measurement signal to the storage module, the storage module finds a register of the LDO data acquisition module according to the LDO measurement signal, and triggers the LDO data acquisition module to perform a test by modifying the value of the register. The external equipment can trigger the corresponding data acquisition module to test through the register in the storage module according to actual measurement requirements, the process is simple, and additional circuit design is not required to be added.
In this embodiment, the registers are mapped into the whole PMIC register list, and the registers of each module in the PMIC can be checked through the PMIC register list. In addition, some registers are mapped to system state indication for indicating some running states of PMIC for later analysis; there are also registers for temporarily storing the measurements of their respective data acquisition modules for delayed access by the system processor.
Optionally, as shown in fig. 5, the test unit further includes a clock module 14, and the clock module 13 is configured to output a clock signal to each module of each PMIC.
In this embodiment, the clock module 14 is responsible for clock management of the entire PMIC, the clock module 13 receives a clock configuration signal input by an external device, and outputs a corresponding clock signal to other modules of the PMIC according to the clock configuration signal, for example, the clock module 13 outputs clock signals to each data acquisition module 11 and each data analysis module 12 according to the clock configuration signal, so as to implement unified management of clocks of each module in the entire power management apparatus.
Further, the clock module 14 is specifically configured to output clock signals with different frequencies to different modules of the PMIC according to a clock configuration signal input by an external device.
In this embodiment, the clock module 14 may set, turn on or turn off clocks of other modules, and may provide different clock frequencies for different modules according to clock configuration signals, for example, the data acquisition module needs real-time measurement, may configure a high-speed clock frequency for the data acquisition module, the data analysis module may calculate and analyze multiple measurement data together, may configure a low-speed clock frequency for the data analysis module, and so on, which is not limited in this embodiment.
In this embodiment, the clock module outputs clock signals with different frequencies to each module of the PMIC according to the clock configuration signal input by the external device, so as to provide high-speed or low-speed modes for different modules, and change the sampling granularity of the PMIC, so as to improve the measurement accuracy. Because the PMIC is built in the chip, the measurement at a short distance can be realized, and the nondestructive and real-time measurement effect is ensured by adopting the measurement mode of the short distance and the synchronization with the system clock. Moreover, the clock module uniformly configures clocks of all modules, which is equivalent to measurement based on a system clock, and the system processor can synchronize the tracking result of system software with the measurement results of current, power consumption and the like of the PMIC, so that problems are presented and analyzed, and the efficiency of analyzing the system problems can be greatly improved.
Fig. 6 is a flowchart of a power management method according to an embodiment, which is applied to the power management apparatus according to any one of the embodiments of fig. 2 to 5, and as shown in fig. 6, the power management method may include the following steps:
s601, collecting operation parameters of each power supply in the power supply management device.
The power management device may include a plurality of power sources, and the plurality of power sources may be different types of power sources or the same type of power sources. The operating parameters may include input current, output current, voltage, remaining power, temperature, etc. of the power supply.
In this embodiment, as shown in any one of fig. 2 to 5, a plurality of data acquisition modules may be disposed in a test unit of the power management device to respectively acquire operation parameters of each power supply. For example, one data acquisition module 11 measures the input, output current, voltage, time stamp, etc. of a linear low dropout power supply (Low Dropout Regulator, LDO), and the other data acquisition module 11 measures the input, output current, voltage, time stamp, etc. of a dc power converter (Direct circuit to Direct circuit Convertor, DCDC).
S602, performing management analysis on the operation parameters of each power supply to obtain an analysis result; the analysis results include a first timestamp for alignment with a second timestamp in the software trace results.
The analysis result includes a first timestamp, which may be a timestamp of the operation data collected by each data collection module. The software tracking result is obtained by measuring various operation parameters of the software in the software operation process, and the second timestamp is a timestamp for measuring the operation parameters of the software.
In this embodiment, management analysis may be performed on the collected operation parameters of each power supply to obtain an analysis result carrying the first timestamp. For example, classification statistics can be performed according to a first timestamp generated when each operation parameter is collected, and classification statistics can be performed on current and voltage of each power supply according to time sequence of the first timestamp, or power consumption of each power supply at each first timestamp is obtained through calculation according to current and voltage, and then information such as classified current, voltage and power consumption with the first timestamp is used as an analysis result, and the first timestamp in the analysis result is aligned with a second timestamp in a software tracking result, so that the purpose of performing embedded association analysis on measurement results of the power supply of the PMIC and various software behaviors of the system is achieved.
The power management method provided by the embodiment of the application collects the operation parameters of the power supply in the power management device, manages and analyzes the operation parameters of each power supply to obtain analysis results, and because the power management method is applied to the power management device, the power management device comprises the test unit which is arranged in the power management device, the operation parameters of each power supply of the power management device can be measured in real time and in a lossless manner, a measuring circuit is not required to be developed outside the power management device in the later period, and the later development workload is reduced. In addition, as the analysis result comprises the first time stamp, the alignment can be carried out according to the first time stamp and the second time stamp in the software tracking result, and the measured operation data of each power supply and various software behaviors of the system are subjected to embedded association analysis.
Typically, the power management device includes LDOs, DCDCs, a system total power supply, and the like. Optionally, step S601 "collect operation parameters of each power supply in the power management device", including: and collecting operation parameters of at least one power supply of LDO, DCDC and system total power supply in the power management device.
In this embodiment, as shown in any one of fig. 2 to 5, different data acquisition modules may be set for different types of power sources, for example, the LDO data acquisition module 111 is specifically designed to cope with the characteristics of the LDO power source, the current and voltage states of the input and output of the LDO power source are monitored by the LDO data acquisition module 111, and the operation parameters of the total power source of the system in the power management device may also be acquired by the LDO data acquisition module 111. The DCDC data acquisition module 112 is specifically designed to cope with the characteristics of DCDC and can monitor the current and voltage conditions of the input and output of the DCDC power supply.
Further, the power management method further includes: acquiring a third timestamp; the third timestamp is a timestamp for collecting the operation parameters of the DCDC; and calibrating the internal clock of the DCDC data acquisition module according to the third timestamp.
In this embodiment, due to the switching characteristic of the DCDC power supply, a third timestamp for collecting the operating parameter of the DCDC may be obtained while the operating parameter of the DCDC is collected, and the third timestamp is compared with the timestamp of the system total clock, and if the timestamp deviation between the third timestamp and the system total clock is found to be larger, the internal clock of the DCDC data collecting module may be calibrated. The internal clock of the DCDC data acquisition module 112 and the system total clock are ensured to be kept synchronous, and the accuracy of data acquisition and the reliability of embedded association analysis of various software behaviors of a later stage and a system are further ensured.
In one embodiment, step S602, "manage and analyze the operation parameters of each power supply," includes: analyzing current data in the operation parameters of each power supply; and/or calculating the power consumption of each power supply according to the operation parameters of each power supply.
In this embodiment, different types of data in the operation parameters of each power supply may be analyzed, or different types of data may be combined for analysis, for example, current data in the operation parameters of each power supply may be analyzed, voltage data in the operation parameters of each power supply may be analyzed, or power consumption of each power supply may be calculated according to current and voltage in the operation parameters of each power supply.
Further, as shown in fig. 7, the step of "analyzing the current data in the operation parameters of each power supply" includes:
s701, current data of each power supply are obtained from operation parameters of each power supply.
S702, analyzing the current data of each power supply according to a preset format to generate a current measurement information table.
In this embodiment, input and output current data of power sources such as LDO, DCDC, and a system total power source may be analyzed, for example, total current of each power source in a period of time may be calculated, current at each time of each power source may be counted, and a specific current measurement information report may be generated according to the counted result, where the current measurement report may include current measurement results of a plurality of power sources, and comprehensive analysis may be performed, and current of each power source may be displayed. In this embodiment, the current measurement information is generated according to the preset values, so that the current of each power supply can be conveniently displayed and analyzed on other external devices, and the current of each power supply and the software behavior in the software tracking result can be conveniently subjected to joint analysis.
Further, as shown in fig. 8, the step of "calculating the power consumption of each power supply according to the operation parameters of each power supply" includes:
s801, determining a target power consumption calculation model of each power supply according to the corresponding relation between the type of the power supply and the power consumption calculation model.
S802, inputting the operation parameters of each power supply into a corresponding target power consumption calculation model to calculate the power consumption, and obtaining the power consumption of each power supply.
In this embodiment, since the power characteristics of LDO, DCDC, system main power supply, etc. are different, different power consumption models are required for calculating the power consumption for the operation parameters of different power supplies. The corresponding relation between the type of each power supply and the power consumption calculation model can be preset, after the operation parameters of each power supply are obtained, the target power consumption calculation model of each power supply is determined according to the corresponding relation, and the operation parameters of each power supply are input into the corresponding target power consumption calculation model to carry out power consumption calculation, so that the power consumption of each power supply is obtained. Different power consumption calculation models are set for different power supply types, so that the accuracy of power consumption calculation is improved.
On the basis of the embodiment, in order to better perform joint analysis on the analysis result of the power supply and the software tracking result, the analysis result may be output to an external device. Optionally, the power management method further includes: outputting the analysis result to the external device; the analysis result comprises current information and/or power consumption information carrying a first time stamp; the external device is used for aligning the first time stamp with the second time stamp in the software tracking result, and determining and displaying current information and/or power consumption information of the corresponding power supply in the execution process of each task.
In this embodiment, when the operation parameters of each power supply of the power supply management device are measured and analyzed, tracking measurement is performed on the software of the system, and a software tracking result is obtained. And outputting analysis results of the operation parameters of each power supply to external equipment, and carrying out joint analysis on the operation parameters of the power supply and the software tracking results by the external equipment, for example, aligning the first time stamp with the second time stamp, correspondingly displaying and analyzing the aligned power supply data of the first time stamp and the software operation data of the second time stamp, facilitating the user to check the software operation state, and analyzing whether faults and the like occur in the software operation process according to the aligned power supply data of the first time stamp and the aligned software operation data of the second time stamp, so that the joint analysis is carried out on the analysis results of the operation parameters of the power supply and the software tracking results, and the reliability of the software operation is ensured.
It should be understood that, although the steps in the flowcharts of fig. 6 to 8 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps of fig. 6-8 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (11)

1. The power management device is characterized by comprising a test unit, wherein the test unit comprises at least one data acquisition module and at least one data analysis module;
the data acquisition module is used for acquiring the operation parameters of the power supply in the power supply management device;
the at least one data analysis module comprises a current analysis module and/or a power consumption analysis module;
the power consumption analysis module is used for determining the operation parameters of the power supplies according to the operation parameters output by the data acquisition modules, determining target power consumption calculation models of the power supplies according to the corresponding relation between the types of the power supplies and the power consumption calculation models, inputting the operation parameters of the power supplies into the corresponding target power consumption calculation models to perform power consumption calculation, and obtaining the power consumption of the power supplies, wherein the power consumption measurement information table and the power consumption of the power supplies are used as analysis results; the analysis results include a first timestamp for alignment with a second timestamp in the software trace results.
2. The power management device of claim 1, wherein the at least one data acquisition module comprises a linear low dropout power LDO data acquisition module and/or a dc power converter DCDC data acquisition module;
the LDO data acquisition module is used for acquiring the operation parameters of the LDO in the power management device;
the DCDC data acquisition module is used for acquiring the operation parameters of DCDC in the power management device.
3. The power management device of claim 2, wherein the LDO data collection module is further configured to collect operating parameters of a system total power supply in the power management device.
4. The power management device of claim 2 or 3, wherein the LDO data acquisition module comprises at least one of a current sensor, a voltage sensor, and a current mirror circuit.
5. A power management device according to claim 2 or 3, wherein the DCDC data acquisition module comprises a current mirror circuit.
6. A power management device according to claim 2 or 3, wherein the DCDC data acquisition module is further configured to obtain a third timestamp, and calibrate an internal clock of the DCDC data acquisition module according to the third timestamp; the third timestamp is a timestamp for collecting the operation parameters of the DCDC.
7. The power management device according to claim 1 or 2, wherein the test unit further comprises a storage module for storing configuration information of each of the data acquisition modules, configuration information of each of the data analysis modules, and operation parameters acquired by each of the data acquisition modules.
8. A power management method, wherein the power management method is applied to the power management apparatus according to any one of claims 1 to 7, the power management method comprising:
collecting operation parameters of each power supply in the power supply management device;
acquiring current data of each power supply from the operation parameters of each power supply, and analyzing the current data of each power supply according to a preset format to generate a current measurement information table; and/or determining a target power consumption calculation model of each power supply according to the corresponding relation between the type of the power supply and the power consumption calculation model, inputting the operation parameters of each power supply into the corresponding target power consumption calculation model to perform power consumption calculation, and obtaining the power consumption of each power supply, wherein the current measurement information table and the power consumption of each power supply are used as analysis results; the analysis results include a first timestamp for alignment with a second timestamp in the software trace results.
9. The method of claim 8, wherein the step of collecting the operation parameters of each power supply in the power management device comprises:
and collecting operation parameters of at least one power supply of LDO, DCDC and a system total power supply in the power management device.
10. The power management method according to claim 9, characterized in that the power management method further comprises:
acquiring a third timestamp; the third timestamp is a timestamp for collecting the operation parameters of the DCDC;
and calibrating the internal clock of the DCDC data acquisition module according to the third timestamp.
11. The method of power management according to claim 8, further comprising:
outputting the analysis result to an external device; the analysis result comprises current information and/or power consumption information carrying the first timestamp; and the external equipment is used for aligning the first timestamp with a second timestamp in the software tracking result, and determining and displaying current information and/or power consumption information of a corresponding power supply in the execution process of each task.
CN202010857061.5A 2020-08-24 2020-08-24 Power management apparatus and method Active CN112034376B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010857061.5A CN112034376B (en) 2020-08-24 2020-08-24 Power management apparatus and method
PCT/CN2021/106496 WO2022042116A1 (en) 2020-08-24 2021-07-15 Power management apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010857061.5A CN112034376B (en) 2020-08-24 2020-08-24 Power management apparatus and method

Publications (2)

Publication Number Publication Date
CN112034376A CN112034376A (en) 2020-12-04
CN112034376B true CN112034376B (en) 2023-08-29

Family

ID=73580504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010857061.5A Active CN112034376B (en) 2020-08-24 2020-08-24 Power management apparatus and method

Country Status (2)

Country Link
CN (1) CN112034376B (en)
WO (1) WO2022042116A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112034376B (en) * 2020-08-24 2023-08-29 哲库科技(北京)有限公司 Power management apparatus and method

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008067576A (en) * 2006-09-11 2008-03-21 Fuji Xerox Co Ltd Power supply monitoring device
CN201570893U (en) * 2009-11-03 2010-09-01 中兴通讯股份有限公司 Power supply device
WO2010105087A1 (en) * 2009-03-11 2010-09-16 Enfora, Inc. Power consumption for battery-operated devices
CN202421477U (en) * 2011-12-14 2012-09-05 中国广东核电集团有限公司 Device for detecting power supply reliability of nuclear power station
CN102842915A (en) * 2012-08-23 2012-12-26 天津大学 Grid-connected inverter with information integration function
CN103165201A (en) * 2011-12-14 2013-06-19 中国广东核电集团有限公司 Nuclear power station power supply detection system and method
CN105093080A (en) * 2015-08-27 2015-11-25 国家电网公司 Distributed wireless synchronous zinc oxide lightning arrester online monitoring apparatus
CN105470590A (en) * 2014-09-05 2016-04-06 宇龙计算机通信科技(深圳)有限公司 Method and device for managing battery parameters
JP2016062351A (en) * 2014-09-18 2016-04-25 日本電気株式会社 Monitor circuit, logic analysis terminal and system, and delay measuring method and program
CN107121645A (en) * 2017-03-23 2017-09-01 国家电网公司 A kind of high-tension switch gear and electrical power monitoring device
CN108521837A (en) * 2016-12-20 2018-09-11 深圳市浩博高科技有限公司 A kind of method for managing power supply, device and micro-energy charger based on micro-energy acquisition
JP6403351B1 (en) * 2017-04-07 2018-10-10 株式会社ミニ・ソリューション Power monitoring system
CN109557447A (en) * 2018-09-13 2019-04-02 深圳市卓精微智能机器人设备有限公司 A kind of power management class IC test macro
WO2019138425A1 (en) * 2018-01-10 2019-07-18 Ramanujan Kadambi Sarangapani Networked battery for high energy applications
CN110943796A (en) * 2019-11-19 2020-03-31 深圳市道通智能航空技术有限公司 Timestamp alignment method, timestamp alignment device, storage medium and equipment
CN111142008A (en) * 2019-12-31 2020-05-12 京信通信系统(中国)有限公司 Circuit board power parameter testing system and method

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050060403A1 (en) * 2003-09-11 2005-03-17 Bernstein David R. Time-based correlation of non-translative network segments
US7385797B1 (en) * 2004-05-27 2008-06-10 Sun Microsystems, Inc. Power problem diagnosis
JP4926857B2 (en) * 2007-06-29 2012-05-09 中国電力株式会社 Power feeding system and method for controlling power feeding system
US8254868B2 (en) * 2009-03-11 2012-08-28 Enfora, Inc. Methods and apparatus for modeling, monitoring, estimating and controlling power consumption in battery-operated devices
US9158720B2 (en) * 2013-08-11 2015-10-13 Qualcomm Incorporated System and method for scalable trace unit timestamping
US10436825B2 (en) * 2017-07-26 2019-10-08 Panoramic Power Ltd. System and method for transmission of time stamps of current samples sampled by a self-powered power sensor
CN107359688B (en) * 2017-08-18 2020-08-25 华为技术有限公司 Fault processing method and device for power supply equipment
US20190069047A1 (en) * 2017-08-25 2019-02-28 Volley Media, Llc Methods and systems for sharing live stream media content
CN110263535B (en) * 2019-06-18 2021-03-30 长安大学 Embedded hardware assisted tracking track synchronization method in distributed environment
CN112034376B (en) * 2020-08-24 2023-08-29 哲库科技(北京)有限公司 Power management apparatus and method
CN113176973B (en) * 2021-05-14 2023-04-25 山东英信计算机技术有限公司 PSU power supply black box log time stamp recording method, device, equipment and medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008067576A (en) * 2006-09-11 2008-03-21 Fuji Xerox Co Ltd Power supply monitoring device
WO2010105087A1 (en) * 2009-03-11 2010-09-16 Enfora, Inc. Power consumption for battery-operated devices
CN201570893U (en) * 2009-11-03 2010-09-01 中兴通讯股份有限公司 Power supply device
CN202421477U (en) * 2011-12-14 2012-09-05 中国广东核电集团有限公司 Device for detecting power supply reliability of nuclear power station
CN103165201A (en) * 2011-12-14 2013-06-19 中国广东核电集团有限公司 Nuclear power station power supply detection system and method
CN102842915A (en) * 2012-08-23 2012-12-26 天津大学 Grid-connected inverter with information integration function
CN105470590A (en) * 2014-09-05 2016-04-06 宇龙计算机通信科技(深圳)有限公司 Method and device for managing battery parameters
JP2016062351A (en) * 2014-09-18 2016-04-25 日本電気株式会社 Monitor circuit, logic analysis terminal and system, and delay measuring method and program
CN105093080A (en) * 2015-08-27 2015-11-25 国家电网公司 Distributed wireless synchronous zinc oxide lightning arrester online monitoring apparatus
CN108521837A (en) * 2016-12-20 2018-09-11 深圳市浩博高科技有限公司 A kind of method for managing power supply, device and micro-energy charger based on micro-energy acquisition
CN107121645A (en) * 2017-03-23 2017-09-01 国家电网公司 A kind of high-tension switch gear and electrical power monitoring device
JP6403351B1 (en) * 2017-04-07 2018-10-10 株式会社ミニ・ソリューション Power monitoring system
WO2019138425A1 (en) * 2018-01-10 2019-07-18 Ramanujan Kadambi Sarangapani Networked battery for high energy applications
CN109557447A (en) * 2018-09-13 2019-04-02 深圳市卓精微智能机器人设备有限公司 A kind of power management class IC test macro
CN110943796A (en) * 2019-11-19 2020-03-31 深圳市道通智能航空技术有限公司 Timestamp alignment method, timestamp alignment device, storage medium and equipment
CN111142008A (en) * 2019-12-31 2020-05-12 京信通信系统(中国)有限公司 Circuit board power parameter testing system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
阿申登.电源.《VHDL嵌入式数字系统设计教程》.北京航空航天大学出版社,2011, *

Also Published As

Publication number Publication date
WO2022042116A1 (en) 2022-03-03
CN112034376A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
Hackenberg et al. Power measurement techniques on standard compute nodes: A quantitative comparison
Prieto et al. Self-powered wireless sensor applied to gear diagnosis based on acoustic emission
Ilsche et al. Power measurements for compute nodes: Improving sampling rates, granularity and accuracy
CN106405460A (en) Electronic instrument voltage detection calibration system and calibration method
US9696353B2 (en) Measuring power consumption of circuit component operating in run mode
CN106093838A (en) Gate energy meter remote online method of calibration and system
CN103235176A (en) Method and server for acquiring component power consumption
CN112034376B (en) Power management apparatus and method
WO2016134573A1 (en) System and method for testing power consumption of integrated circuit
CN108267703A (en) Electric quantity metering accuracy checking method, its device and computer storage media
CN116955045B (en) Remote JTAG multiplexing test method and system
US20110106498A1 (en) Status detecting device for iepe piezoelectric acceleration sensor
US9032129B2 (en) Advanced energy profiler
US20130158912A1 (en) Apparatus for Measuring the State of Health of a Cell Pack
US11175325B2 (en) Power analyzer system as well as power analyzer setup
Meyer et al. An energy measurement system for characterization of energy harvesting systems
RU142950U1 (en) UNINTERRUPTIBLE POWER SUPPLY LAYOUT TEST DEVICE
CN105159277B (en) The testing calibration method of electric steering engine detection device
US20240128527A1 (en) Monitoring server, authentication system, monitoring method, and non-transitory storage medium
EP4283754A1 (en) Diagnostic device, diagnostic method, and program
CN112526363B (en) Detection method and detection device for equipment working time, terminal and storage medium
KR200361355Y1 (en) The digital voltage-current measure controller
CN212386716U (en) General inspection tester for relieving output end pulse
KR101301460B1 (en) Intergration measurement device having the function of spectrum analysis and power metering for rf signal
CN105403766B (en) The determination method and apparatus of unit electric quantity consumption

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20201211

Address after: Room 1501, 15 / F, building 2, No. 10 yard, Chaoyang Park South Road, Chaoyang District, Beijing

Applicant after: Zheku Technology (Beijing) Co.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant