Mobile terminal and method for detecting power consumption of mobile terminal
By integrating a power consumption measurement circuit into the mobile terminal, and utilizing resistors, multiplexers, and analog-to-digital converters, the problem of difficulty in measuring the power consumption of multiple mobile terminals by external devices is solved, enabling convenient internal power consumption measurement and management, and reducing the energy consumption for power consumption detection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SAMSUNG SEMICON CHINA RES & DEV
- Filing Date
- 2023-03-24
- Publication Date
- 2026-06-12
AI Technical Summary
Existing technologies make it difficult to conveniently measure the power consumption of multiple mobile terminals in different locations, and external devices are not convenient for batch measurement and are difficult to use in multiple locations.
The power consumption measurement circuit, including resistors, multiplexers, and analog-to-digital converters, is integrated into the mobile terminal. Through the collaborative work of the microprocessor and application processor, it enables the measurement and management of internal power consumption data.
It enables convenient measurement of mobile terminal power consumption without external devices, reduces power consumption for power data detection, and facilitates batch and multi-location measurements.
Smart Images

Figure CN116430113B_ABST
Abstract
Description
Technical Field
[0001] The disclosure relates to a power consumption test circuit and a method for performing power consumption tests, and more specifically, to a mobile terminal having a power consumption measurement circuit and a method for performing power consumption tests in the mobile terminal. Background Technology
[0002] As the performance of mobile devices continues to improve, power consumption has become extremely important. Typically, external power measurement devices are used to measure the power consumption of mobile devices. However, external power measurement devices may not be convenient for simultaneously measuring the power consumption of a large number of mobile devices, nor for measuring the power consumption of mobile devices in different locations.
[0003] Therefore, a technology is needed to easily measure the power consumption of mobile terminals. Summary of the Invention
[0004] According to the disclosed aspects, a mobile terminal is provided, the mobile terminal comprising: a power consumption measurement circuit configured to: measure the power consumption of one or more hardware modules among a plurality of hardware modules of the mobile terminal; an application processor configured to: send a detection command for detecting the power consumption of a first hardware module among the plurality of hardware modules; and a microprocessor configured to: obtain first power consumption data corresponding to the first hardware module from the power consumption measurement circuit based on the detection command received from the application processor.
[0005] The power consumption measurement circuit includes: a plurality of resistors, each connected to the plurality of hardware modules; at least one multiplexer, connected to the plurality of resistors; and at least one analog-to-digital converter, each connected to the at least one multiplexer, and configured to detect a first voltage data corresponding to a first resistor among the plurality of resistors connected to a first hardware module.
[0006] The first power consumption data includes the first voltage data corresponding to the first resistor connected to the first hardware module, or the power value obtained based on the first voltage data corresponding to the first resistor connected to the first hardware module and the resistance value of the first resistor connected to the first hardware module.
[0007] The step of obtaining the first power consumption data corresponding to the first hardware module from the power consumption measurement circuit includes: connecting a target analog-to-digital converter to a target resistor via a target multiplexer to detect the voltage data corresponding to the target resistor, wherein the target resistor is the first resistor among the plurality of resistors connected to the first hardware module, the target multiplexer is the first multiplexer among the at least one multiplexer connected to the target resistor, and the target analog-to-digital converter is the first analog-to-digital converter among the at least one analog-to-digital converter connected to the target multiplexer.
[0008] The power consumption measurement circuit includes multiple multiplexers and multiple analog-to-digital converters, wherein the multiple resistors are divided into multiple resistor groups, and each multiplexer is connected to each resistor in a corresponding resistor group and a corresponding analog-to-digital converter in the multiple analog-to-digital converters.
[0009] By alternately connecting the corresponding analog-to-digital converter of the same target multiplexer to multiple target resistors, voltage data corresponding to each of the multiple target resistors can be detected.
[0010] The microprocessor is also configured to send first power consumption data to an external device outside the mobile terminal via an application processor.
[0011] The microprocessor includes: memory configured to store initial power consumption data.
[0012] The microprocessor is also configured to: send a transmission command to the application processor when the amount of first power consumption data stored in the memory is greater than a first predetermined amount; and send a transmission command to the application processor based on receiving a command to stop detecting the first power consumption data.
[0013] The microprocessor is also configured to: continue acquiring first power consumption data when the application processor enters sleep mode; and wake up the application processor and send a transmission command to the application processor when the remaining storage capacity of the memory is less than a second predetermined amount.
[0014] The application processor is also configured to send first power consumption data stored in memory to memory outside the mobile terminal based on a transmission command.
[0015] According to another aspect of the disclosure, a power consumption detection method for a mobile terminal is provided. The mobile terminal includes an application processor, a microprocessor, and a power consumption measurement circuit. The power consumption detection method includes: sending a detection command through the application processor, the detection command being used to detect the power consumption of a first hardware module among a plurality of hardware modules of the mobile terminal; and obtaining first power consumption data corresponding to the first hardware module from the power consumption measurement circuit based on the detection command received from the application processor through the microprocessor.
[0016] The power consumption measurement circuit includes: a plurality of resistors respectively connected to the plurality of hardware modules; at least one multiplexer connected to the plurality of resistors; and at least one analog-to-digital converter respectively connected to the at least one multiplexer, wherein the step of obtaining first power consumption data corresponding to the first hardware module from the power consumption measurement circuit includes: detecting first voltage data corresponding to the first resistor among the plurality of resistors connected to the first hardware module by means of the at least one analog-to-digital converter.
[0017] The first power consumption data includes the first voltage data corresponding to the first resistor connected to the first hardware module, or the power value obtained based on the first voltage data corresponding to the first resistor connected to the first hardware module and the resistance value of the first resistor connected to the first hardware module.
[0018] The step of obtaining the first power consumption data corresponding to the first hardware module through the power consumption measurement circuit includes: connecting the target analog-to-digital converter to the target resistor through the target multiplexer to detect the voltage data corresponding to the target resistor, wherein the target resistor is the first resistor among the plurality of resistors connected to the first hardware module, the target multiplexer is the first multiplexer among the at least one multiplexer connected to the target resistor, and the target analog-to-digital converter is the first analog-to-digital converter among the at least one analog-to-digital converter connected to the target multiplexer.
[0019] The power consumption measurement circuit includes multiple multiplexers and multiple analog-to-digital converters, wherein the multiple resistors are divided into multiple resistor groups, and each multiplexer is connected to each resistor in a corresponding resistor group and a corresponding analog-to-digital converter in the multiple analog-to-digital converters.
[0020] The step of detecting the first voltage data corresponding to the target resistor includes: alternately connecting the corresponding analog-to-digital converter of the same target multiplexer to a plurality of target resistors through the same target multiplexer to detect the voltage data corresponding to each of the plurality of target resistors.
[0021] According to some example embodiments, a mobile terminal includes: a power consumption measurement circuit; an application processor configured to: send a detection command for detecting power consumption data corresponding to at least one of a plurality of hardware modules of the mobile terminal; and a microprocessor configured to: acquire power consumption data corresponding to the at least one hardware module through the power consumption measurement circuit based on the detection command received from the application processor.
[0022] The power consumption measurement circuit may include: a plurality of resistors, each connected to the plurality of hardware modules; at least one multiplexer (MUX), connected to the plurality of resistors; and at least one analog-to-digital converter (ADC), each connected to the at least one MUX, and configured to detect voltage data corresponding to at least one of the plurality of resistors connected to the at least one hardware module.
[0023] The power consumption data corresponding to each of the at least one hardware modules can be the voltage data corresponding to the resistor connected to each hardware module, or the power value obtained based on the voltage data corresponding to the resistor connected to each hardware module and the resistance value of the resistor connected to each hardware module.
[0024] The step of obtaining power consumption data corresponding to the at least one hardware module through a power consumption measurement circuit may include: for any of the at least one hardware modules, connecting a target ADC to a target resistor through a target MUX to detect voltage data corresponding to the target resistor, wherein the target resistor may be a resistor connected to any of the plurality of resistors, the target MUX may be a MUX connected to the target resistor among the at least one MUX, and the target ADC may be an ADC connected to the target MUX among the at least one ADC.
[0025] The power consumption measurement circuit may include multiple MUXs and multiple ADCs. The multiple resistors may be divided into multiple resistor groups, and each MUX may be connected to each resistor in the corresponding resistor group and the corresponding ADC in the multiple ADCs.
[0026] When detecting voltage data corresponding to multiple target resistors connected to the same target MUX, the corresponding ADC of the same target MUX can be alternately connected to the multiple target resistors through the same target MUX to detect voltage data corresponding to each of the multiple target resistors.
[0027] Each of the plurality of resistors may be connected in series between a power supply for powering the corresponding hardware module among the plurality of hardware modules and the power interface of the corresponding hardware module.
[0028] The voltage data corresponding to each of the at least one resistor may include: the voltage difference between a first terminal and a second terminal of each of the at least one resistor and the voltage difference between a first terminal of each of the at least one resistor and a ground terminal, wherein the first terminal of each of the at least one resistor may represent the terminal with the higher voltage of the two terminals of the resistor, and the second terminal of each of the at least one resistor may represent the terminal with the lower voltage of the two terminals of the resistor.
[0029] The microprocessor can also be configured to send power consumption data to an external device via an application processor.
[0030] Application processors and microprocessors can be separate processors.
[0031] The microprocessor may include: memory for temporarily storing power consumption data.
[0032] The microprocessor can also be configured to send a transmission command to the application processor when the amount of power consumption data stored in the memory exceeds a first predetermined threshold; the microprocessor can also be configured to send a transmission command to the application processor in response to receiving a command to stop detecting power consumption data.
[0033] The microprocessor can also be configured to: continue acquiring power consumption data when the application processor enters a sleep mode while the microprocessor acquires power consumption data through the power consumption measurement circuit; and wake up the application processor and send a transmission command to the application processor when the remaining storage capacity of the memory is less than a second predetermined threshold.
[0034] The application processor can also be configured to send power consumption data stored in memory to memory outside the mobile terminal in response to a transfer command.
[0035] According to some example embodiments, a power consumption detection method for a mobile terminal including an application processor, a microprocessor, and a power consumption measurement circuit includes: sending a detection command through the application processor, the detection command being used to detect power consumption data corresponding to at least one of a plurality of hardware modules of the mobile terminal; and obtaining the power consumption data corresponding to the at least one hardware module through the power consumption measurement circuit based on the detection command received from the application processor by the microprocessor.
[0036] The power consumption measurement circuit may include: a plurality of resistors, each connected to the plurality of hardware modules; at least one MUX, connected to the plurality of resistors; and at least one ADC, each connected to the at least one MUX, wherein the step of obtaining power consumption data corresponding to the at least one hardware module by means of the power consumption measurement circuit may include: detecting voltage data corresponding to at least one resistor among the plurality of resistors connected to the at least one hardware module by means of the at least one ADC.
[0037] The power consumption data corresponding to each of the at least one hardware modules can be the voltage data corresponding to the resistor connected to each hardware module, or the power value obtained based on the voltage data corresponding to the resistor connected to each hardware module and the resistance value of the resistor connected to each hardware module.
[0038] The step of obtaining power consumption data corresponding to the at least one hardware module through a power consumption measurement circuit may include: for any of the at least one hardware modules, connecting a target ADC to a target resistor through a target MUX to detect voltage data corresponding to the target resistor, wherein the target resistor may be a resistor connected to any of the plurality of resistors, the target MUX may be a MUX connected to the target resistor among the at least one MUX, and the target ADC may be an ADC connected to the target MUX among the at least one ADC.
[0039] The power consumption measurement circuit may include multiple MUXs and multiple ADCs. The multiple resistors may be divided into multiple resistor groups, and each MUX may be connected to each resistor in the corresponding resistor group and the corresponding ADC in the multiple ADCs.
[0040] The step of detecting voltage data corresponding to a target resistor may include: when detecting voltage data corresponding to multiple target resistors connected to the same target MUX, alternately connecting the corresponding ADC of the same target MUX to the multiple target resistors through the same target MUX to detect voltage data corresponding to each of the multiple target resistors.
[0041] The mobile terminal and the power consumption detection method of the mobile terminal according to some exemplary embodiments of the present invention can measure the power consumption of the mobile terminal without external power consumption measurement equipment, and can reduce the power consumption required to detect power consumption data.
[0042] Additional aspects and / or advantages will be set forth in part in the description which follows, and in part will be obvious from the description and / or may be learned through implementation of various exemplary embodiments. Attached Figure Description
[0043] The above and other objects, features and advantages disclosed will become clearer from the following detailed description taken in conjunction with the accompanying drawings, in which:
[0044] Figure 1 This is a block diagram illustrating a mobile terminal according to a disclosed example embodiment.
[0045] Figure 2 This is a block diagram illustrating a microprocessor according to a disclosed example embodiment.
[0046] Figure 3 This is a block diagram illustrating a power consumption measurement circuit according to a disclosed example embodiment.
[0047] Figure 4 This is a flowchart illustrating a power consumption detection method for a mobile terminal according to a disclosed example embodiment.
[0048] Figure 5 This is a flowchart of a microprocessor-controlled power consumption measurement circuit acquiring power consumption data according to a publicly disclosed example embodiment.
[0049] Figure 6 This is an illustration of a mobile terminal according to another example embodiment. Detailed Implementation
[0050] The following detailed description is provided to assist the reader in gaining a comprehensive understanding of the methods, apparatus, and / or systems described herein. However, upon understanding the disclosure of this application, various changes, modifications, and equivalents of the methods, apparatus, and / or systems described herein will become apparent. For example, the order of operations described herein is merely illustrative and is not limited to those orders set forth herein, except for those that must occur in a specific order, but may be changed as will become clear upon understanding the disclosure of this application. Furthermore, for clarity and brevity, descriptions of features known in the art may be omitted.
[0051] The features described herein may be implemented in different forms and should not be construed as limited to the examples described herein. Rather, the examples described herein have been provided merely to illustrate some of the many feasible ways of implementing the methods, apparatus, and / or systems described herein that will be clear upon understanding the disclosure of this application.
[0052] The structural or functional descriptions of the examples disclosed herein are intended for illustrative purposes only, and the examples may be implemented in various forms. The examples are not intended to be limiting, but rather to include various modifications, equivalents, and substitutions within the scope of the claims.
[0053] Although the terms "first" or "second" are used to explain various components, the components are not limited to the terms. These terms should only be used to distinguish one component from another. For example, within the scope of the rights according to the disclosed concept, a "first" component may be referred to as a "second" component, or similarly, a "second" component may be referred to as a "first" component.
[0054] It will be understood that when a component is referred to as being "connected to" another component, the component may be directly connected to or combined with the other component, or there may be an intermediate component.
[0055] As used herein, unless the context clearly indicates otherwise, the singular form is intended to include the plural form as well. It should also be understood that when the terms “comprising” and / or “including” are used in this specification, they indicate the presence of the stated features, wholes, steps, operations, elements, components, or combinations thereof, but do not preclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or groups thereof. As used herein, expressions such as “…at least one” modify the entire list of elements, not individual elements within the list. For example, the expression “at least one of a, b, and c” should be understood to include only a, only b, only c, both a and b, both a and c, both b and c, or all of a, b, and c.
[0056] Unless otherwise defined, all terms used herein (including technical or scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the examples pertain. It will also be understood that, unless expressly defined herein, terms (such as those defined in a general dictionary) shall be interpreted as having a meaning consistent with their meaning in the context of the relevant field and shall not be interpreted in an idealized or overly formalized manner.
[0057] The examples will be described in detail below with reference to the accompanying drawings. Regarding the reference numerals assigned to the elements in the drawings, it should be noted that the same elements will be represented by the same reference numerals, and redundant descriptions will be omitted.
[0058] Figure 1 This is a block diagram illustrating a mobile terminal according to a disclosed example embodiment.
[0059] The mobile terminal according to the various example embodiments disclosed may be, for example, a mobile phone, a tablet PC, a laptop computer, etc. However, the disclosure is not limited thereto.
[0060] Reference Figure 1 According to the disclosed example embodiments, the mobile terminal 100 may include an application processor (AP) 110, a microprocessor (MPU) 120, and a power consumption measurement circuit 130.
[0061] AP 110 can send a detection command to MPU 120. The detection command is used to detect power consumption data corresponding to at least one of a plurality of hardware modules of the mobile terminal. Here, the hardware module of the mobile terminal can be a hardware circuit of the mobile terminal configured to perform a specific function. For example, the hardware circuit can be a circuit for capturing images (i.e., a camera function). However, the disclosure is not limited thereto; thus, according to another example embodiment, the hardware circuit can be a circuit configured to perform various other functions of the mobile terminal.
[0062] For example, AP 110 can generate detection commands based on user commands or preset parameters. User commands can be input to mobile terminal 100 via an input interface using a specific type of input. For example, commands can be input via, but not limited to, a touchscreen, keyboard, microphone, gesture sensor, etc. The input interface can include, but is not limited to, touch input, keyboard input, voice input, gesture input, etc.
[0063] According to the example embodiment, preset parameters can be stored in the mobile terminal. For example, preset parameters can be pre-stored in the memory of the mobile terminal 100. For example, preset parameters may include relevant information about the hardware module to be detected, the time when power consumption data detection begins, the scenario for detecting power consumption data, the frequency of power consumption data detection, and the duration of power consumption data detection. However, the disclosure is not limited thereto. According to another example embodiment, preset parameters may include other information related to the hardware module to be detected or other standards related to the detection of power consumption data.
[0064] According to an example embodiment, the detection command may include parameters for detecting power consumption data, such as, but not limited to, information related to the hardware module to be detected, the scenario for detecting power consumption data, the frequency of detecting power consumption data, and the duration of detecting power consumption data. However, the disclosure is not limited thereto, and as according to another example embodiment, the detection command may include other parameters related to the hardware module to be detected or other standards related to the detection of power consumption data. According to an example embodiment, the scenario for detecting power consumption data may include the mode or state of the mobile terminal. For example, the scenario for detecting power consumption data may be idle mode, sleep mode, or running mode.
[0065] According to one or more example embodiments, when the detection command does not include a duration or when the detection command includes a duration set to 0, the AP 110 can generate a stop command to stop detecting power consumption data based on a user command or preset parameters, and the MPU 120 can stop detecting power consumption data based on the stop command received from the AP 110. When the detection command includes a duration set to a non-zero value (or time), the MPU 120 automatically stops detecting power consumption data after the duration has been reached. That is, when the duration set in the detection command expires, the MPU 120 automatically stops detecting the power consumption data of the mobile terminal 100.
[0066] According to one or more example embodiments, AP 110 can generate detection commands or stop commands based on user commands or preset parameters. According to one or more example embodiments, AP 110 can receive power consumption data from MPU 120 and send the power consumption data to an external device outside the mobile terminal. According to example embodiments, the external device can be a memory, server, other mobile terminal, etc., external to the mobile terminal. For example, the memory external to the mobile terminal can be non-volatile memory (such as UFS memory cards, Compact Flash (CF) memory cards, Secure Digital (SD) memory cards, micro-SD memory cards, mini-SD memory cards, xD memory cards, Memory Sticks, etc.). However, the disclosure is not limited thereto, and therefore, the external device may include other devices.
[0067] The MPU 120 can acquire power consumption data corresponding to at least one hardware module via the power consumption measurement circuit 130 based on the detection command received from the AP 110. Furthermore, the MPU 120 can send the power consumption data to an external memory of the mobile terminal via the AP 110.
[0068] In one example embodiment, AP 110 and MPU 120 are independent processors.
[0069] MPU 120 may include memory for temporarily storing power consumption data. In one example embodiment, the memory of MPU 120 may be volatile memory (such as static random access memory (SRAM), dynamic random access memory (DRAM), etc.) or non-volatile memory. Reference will be made below. Figure 2 Detailed description of MPU 120.
[0070] The power consumption measurement circuit 130 can measure power consumption data corresponding to at least one hardware module.
[0071] According to one or more example embodiments, the power consumption measurement circuit 130 may include a plurality of resistors, at least one multiplexer (MUX), and at least one analog-to-digital converter (ADC).
[0072] Each resistor can be connected to a corresponding hardware module among multiple hardware modules. For example, each resistor can be connected in series between the power supply used to power the corresponding hardware module and the power interface of the corresponding hardware module.
[0073] At least one MUX can be connected to multiple resistors.
[0074] At least one ADC can be connected to at least one MUX. The at least one ADC can detect voltage data corresponding to at least one resistor among a plurality of resistors connected to at least one hardware module. Here, the voltage data corresponding to the resistor may include a first voltage difference between the first and second terminals of the resistor and a second voltage difference between the first terminal of the resistor and a ground terminal. Here, the first terminal of the resistor represents the terminal with the higher voltage of the two terminals of the resistor, and the second terminal of the resistor represents the terminal with the lower voltage of the two terminals of the resistor. (Refer to the following...) Figure 3 Detailed description of power consumption measurement circuit 130.
[0075] For example, MPU 120 can transmit voltage data corresponding to the resistor connected to the hardware module as power consumption data corresponding to the hardware module to an external device of the mobile terminal via AP 110. In another example, MPU 120 can calculate a power value as power consumption data corresponding to the hardware module based on the voltage data corresponding to the resistor connected to the hardware module and the resistance value of the resistor connected to the hardware module, and transmit the power consumption data to a memory external to the mobile terminal via AP 110. In one example, the value of the current flowing through the hardware module can be calculated using a first voltage difference and the resistance value of the resistor, and the power value can be calculated based on the obtained current value and a second voltage difference. According to the example embodiment, the value of the current flowing through the hardware module can be the ratio of the first voltage difference to the resistance value, and the power value can be the product of the current value and the second voltage difference.
[0076] In another example embodiment, the mobile terminal 100 may also include a communication module, an input interface, and a memory.
[0077] The communication module can be used to communicate with external devices via wired or wireless means to transmit power consumption data to the outside of the mobile terminal. The communication module can be implemented using hardware components such as communication circuitry. The communication module can communicate via various wireless communication protocols, including but not limited to Code Division Multiple Access (CDMA), Global System for Mobile Communications (GSM), North American Digital Communications (NADC), Extended Time Division Multiple Access (E-TDMA), Wideband CDMA (WCDMA), CDMA2000, Wi-Fi, Muni Wi-Fi, Bluetooth, Digital Enhanced Cordless Telecommunications (DECT), Wireless Universal Serial Bus (Wireless USB), Fast Low Latency Access Orthogonal Frequency Division Multiplexing with Seamless Switching (Flash-OFDM), and IEEE... Communication can be made using 802.20, General Packet Radio Service (GPRS), iBurst, WiBro, WiMAX, WiMAX Advanced, Universal Mobile Telecommunications Service - Time Division Duplex (UMTS-TDD), High-Speed Packet Access (HSPA), Evolved Data Optimized (EVDO), LTE-Advanced, Multichannel Multipoint Distribution Service (MMDS), 5G, 6G, etc., or wired communication protocols such as, but not limited to, High Definition Multimedia Interface (HDMI), Advanced Technology Attachment (ATA), Serial ATA (SATA), External Serial ATA (e-SATA), Small Computer System Interface (SCSI), Serial SCSI (SAS), External Device Interconnect (PCI), PCI express (PCIe), NVMe, IEEE 1394, Universal Serial Bus (USB), Secure Digital Card (SD) interface, Multimedia Card (MMC) interface, Embedded Multimedia Card (eMMC) interface, UFS interface, Embedded UFS (eUFS) interface, and Compact Flash (CF) card interface, etc.
[0078] The input interface is configured to receive various input information and control signals, and to send the input information and control signals to AP 110. The input interface can be implemented through various input devices such as a touch screen, keyboard, microphone, and attitude sensor; however, the example embodiment is not limited thereto.
[0079] The memory may include volatile memory and / or non-volatile memory. The memory may store various data generated and used by the mobile terminal. For example, the memory may store the operating system, applications, etc., used to control the operation of the mobile terminal. AP 110 can control the overall operation of the mobile terminal and can control some or all of the internal components of the mobile terminal. AP 110 may also be replaced by a general-purpose processor, application-specific integrated circuit, field-programmable gate array, etc., but the example embodiments are not limited thereto.
[0080] Figure 2 This is a block diagram illustrating a microprocessor according to a disclosed example embodiment.
[0081] Reference Figure 2 The microprocessor 120 may include a controller 121, a memory 122, and an input / output (I / O) port 123.
[0082] The microprocessor 120 may acquire power consumption data via the power consumption measurement circuit 130 based on a detection command received from the AP 110, and then stop detecting the power consumption data. Alternatively, the microprocessor 120 may acquire power consumption data via the power consumption measurement circuit 130 based on a detection command received from the AP 110, and then stop detecting the power consumption data based on a stop command received from the AP 110.
[0083] According to one or more example embodiments, controller 121 can send data to or receive data from power consumption measurement circuit 130 via I / O port 123. For example, the I / O port can be a serial port supporting the I2C protocol; however, the example embodiments are not limited thereto, and the I / O port can also be a port supporting other protocols.
[0084] According to one or more example embodiments, controller 121 can control power measurement circuit 130 to acquire power consumption data in a scenario indicated by a detection command (e.g., sleep mode) via I / O port 123. For example, controller 121 can control power measurement circuit 130 to acquire power consumption data in sleep mode. Controller 121 can control power measurement circuit 130 to acquire power consumption data via I / O port 123 based on a frequency parameter included in the detection command. Controller 121 can control power measurement circuit 130 to acquire power consumption data via I / O port 123 based on a duration included in the detection command. For example, when the detection command includes a duration set to a non-zero value (or time), controller 121 can control power measurement circuit 130 to acquire power consumption data for the duration via I / O port 123. In another example, when the detection command does not include a duration or when the detection command includes a duration set to 0, controller 121 controls power measurement circuit 130 to stop acquiring power consumption data via I / O port 123 based on a stop command sent from AP 110.
[0085] According to one or more example embodiments, the controller 121 may temporarily store the acquired power consumption data in the memory 122. For example, the power consumption data may be stored in a ring buffer.
[0086] In one example embodiment, when the amount of power consumption data stored in memory 122 exceeds a first threshold, controller 121 may send a transmission command to AP 110. According to the example embodiment, the first threshold may be a predetermined percentage (e.g., 80%) of the storage capacity of the memory.
[0087] In another example embodiment, when a stop command is received from AP 110, controller 121 sends a transmission command to AP 110.
[0088] According to one or more example embodiments, while the controller 121 is acquiring power consumption data, it can continue acquiring power consumption data even when the AP 110 enters sleep mode. In this case, when the remaining storage capacity of the memory 122 is less than a second threshold, the controller 121 can wake up the AP 110 and send a transmission command to the AP 110. The second threshold can be a predetermined percentage of the storage capacity of the memory.
[0089] According to one or more example embodiments, AP 110 may, in response to a transmission command, send power consumption data stored in memory to a memory external to the mobile terminal.
[0090] In the following text, reference will be made to Figure 3 and Figure 5 A detailed description of an example embodiment in which the microprocessor 120 acquires power consumption data through the power consumption measurement circuit 130.
[0091] According to one or more of the disclosed example embodiments, acquiring power consumption data from a power consumption measurement circuit via a microprocessor (instead of an application processor) can reduce the power consumption required to detect power consumption data.
[0092] Figure 3 This is a block diagram illustrating a power consumption measurement circuit according to a disclosed example embodiment.
[0093] Reference Figure 3 The power consumption measurement circuit 130 may include multiple resistors 131_11 to 131_mn, at least one MUX 132_1 to 132_m, at least one ADC 133_1 to 133_m, and I / O ports 134 (where m is an integer greater than or equal to 1, and n is an integer greater than 1). However, the number of resistors, MUXs, and ADCs included in the power consumption measurement circuit 130, as well as the connection relationships between them, are not limited to... Figure 3 The diagram shows the number of resistors, MUXs, and ADCs, as well as the connections between them.
[0094] According to one or more example embodiments, the power consumption measurement circuit 130 can receive commands from the MPU 120 via I / O port 134 for controlling at least one MUX 132_1 to 132_m and at least one ADC 133_1 to 133_m to detect power consumption data. Furthermore, the power consumption measurement circuit 130 can transmit the detected power consumption data to the MPU 120 via I / O port 134. For example, I / O port 134 can be a serial port, but is not limited thereto.
[0095] Each of the plurality of resistors 131_11 to 131_mn can be connected in series to a corresponding hardware module of the mobile terminal 100. For example, resistor 131_11 can be connected to a first hardware module, such as hardware circuitry that performs an image capture (or photo taking) function. For example, the plurality of resistors 131_11 to 131_mn can be current sensing resistors. For example, the resistance value of each of the plurality of resistors 131_11 to 131_mn can be one of a resistance value between 10mΩ and 100mΩ.
[0096] At least one MUX 132_1 to 132_m can be connected to a resistor 131_11 to 131_mn, and at least one ADC 133_1 to 133_m can be connected to at least one MUX 132_1 to 132_m respectively.
[0097] According to one or more example embodiments, in order to obtain power consumption data corresponding to a target hardware module in at least one hardware module, the MPU 120 can control the target MUX to connect the target ADC to a target resistor and control the target ADC to detect voltage data corresponding to the target resistor. Here, the target resistor is a resistor among a plurality of resistors connected to the target hardware module, the target MUX is a MUX among at least one MUX connected to the target resistor, and the target ADC is an ADC among at least one ADC connected to the target MUX.
[0098] According to the example embodiment, in order to obtain power consumption data corresponding to the first hardware module, the MPU 120 can control the MUX132_1 to connect the ADC 133_1 to the resistor 131_11, and control the ADC 133_1 to detect the voltage data corresponding to the resistor 131_11, and obtain the power consumption data corresponding to the first hardware module based on the voltage data corresponding to the resistor 131_11.
[0099] For example, the voltage data corresponding to resistor 131_11 may include a first voltage difference between the first terminal and the second terminal of resistor 131_11 and a second voltage difference between the first terminal of resistor 131_11 and the ground terminal.
[0100] For example, ADC 133_1 can sample the first voltage difference between the first and second terminals of resistor 131_11, and sample the second voltage difference between the first terminal of resistor 131_11 and the ground terminal to obtain voltage data corresponding to resistor 131_11. Here, the first terminal of resistor 131_11 represents the terminal with the higher voltage of the two terminals of resistor 131_11, and the second terminal of resistor 131_11 represents the terminal with the lower voltage of the two terminals of resistor 131_11.
[0101] For example, MPU 120 can determine the voltage data corresponding to resistor 131_11 as the power consumption data corresponding to the first hardware module. As another example, MPU 120 can calculate the power value based on the voltage data corresponding to resistor 131_11 and the resistance value of resistor 131_11, and determine the calculated power value as the power consumption data corresponding to the first hardware module.
[0102] In one example embodiment, the power consumption measurement circuit 130 may include multiple MUXs and multiple ADCs, with multiple resistors divided into multiple resistor groups, and each MUX connected to each resistor in a corresponding resistor group and a corresponding ADC in a multiple ADC.
[0103] For example, the power consumption measurement circuit 130 may include multiple MUXs 132_1 to 132_m and multiple ADCs 133_1 to 133_m. Multiple resistors 131_11 to 131_mn may be divided into a first resistor group to an m-th resistor group, where the first resistor group may include resistors 131_11 to 131_1n, the second resistor group may include resistors 131_21 to 131_2n, and the m-th resistor group may include resistors 131_m1 to 131_mn. MUX 132_1 may be connected to each resistor in the first resistor group and connected to ADC 133_1; MUX 132_2 may be connected to each resistor in the second resistor group and connected to ADC 133_2; and MUX 132_m may be connected to each resistor in the m-th resistor group and connected to ADC 133_m.
[0104] In another example embodiment, the power consumption measurement circuit 130 may include a MUX and an ADC, wherein the MUX may be connected between multiple resistors and the ADC.
[0105] According to one or more example embodiments, in order to detect voltage data corresponding to multiple resistors connected to the same MUX, the MPU 120 can alternately connect the corresponding ADC of the same MUX to multiple resistors through the same MUX to detect voltage data corresponding to each of the multiple resistors.
[0106] For example, in order to detect voltage data corresponding to the multiple resistors 131_11 to 131_1n connected to the MUX 132_1, the MPU 120 can alternately connect the corresponding ADC 133_1 of the MUX 132_1 to the multiple resistors 131_11 to 131_1n via the MUX 132_1 to detect voltage data corresponding to each of the multiple resistors 131_11 to 131_1n.
[0107] Those skilled in the art will understand that any known method for measuring power consumption using a current-sensing resistor can be used, and the present invention makes no limitation thereto.
[0108] In the disclosed method, by placing the power consumption measurement circuit inside the mobile terminal, the power consumption of the mobile terminal can be measured without the need for an external power consumption measurement device. This facilitates batch measurement of the power consumption of mobile terminals and allows for measurement of the power consumption of mobile terminals under different test environments.
[0109] In the public disclosure, by measuring the power consumption data corresponding to each hardware module of the mobile terminal, it is easy to identify hardware modules with power consumption problems or those with high power consumption.
[0110] Figure 4 This is a flowchart illustrating a power consumption detection method for a mobile terminal according to a disclosed example embodiment.
[0111] Reference Figure 4 In operation S110, the AP 110 sends a detection command to detect data corresponding to at least one of the multiple hardware modules of the mobile terminal 100. According to an example, the AP 110 may send a first detection command corresponding to a first hardware module and a second detection command corresponding to a second hardware module. Thus, the AP 110 can send multiple detection commands corresponding to at least one of the multiple hardware modules of the mobile terminal 100.
[0112] AP 110 can generate detection commands based on user commands or preset parameters. According to an example embodiment, AP 110 can generate detection commands in response to user commands or preset parameters. For example, the detection command may include parameters for detecting power consumption data (e.g., the scenario for detecting power consumption data, the frequency of detecting power consumption data, and the duration of detecting power consumption data). However, the disclosure is not limited thereto, and the parameters may include other standards for detecting power consumption data.
[0113] In operation S120, the MPU 120 acquires power consumption data corresponding to at least one hardware module through the power consumption measurement circuit 130 based on the detection command received from the AP 110.
[0114] In response to a detection command received from AP 110, MPU 120 acquires power consumption data corresponding to at least one hardware module via power consumption measurement circuit 130. For example, MPU 120 may control power consumption measurement circuit 130 to acquire power consumption data in a scenario indicated by the detection command (e.g., sleep mode). For example, MPU 120 may control power consumption measurement circuit 130 to acquire power consumption data using a frequency parameter included in the detection command. For example, MPU 120 may control power consumption measurement circuit 130 to acquire power consumption data based on the duration included in the detection command.
[0115] According to one or more example embodiments, the MPU 120 may temporarily store power consumption data acquired by the power consumption measurement circuit in the memory 122 of the MPU 120 in the form of a ring buffer.
[0116] According to one or more example embodiments, the power consumption measurement circuit 130 may include a plurality of resistors, at least one MUX, and at least one ADC. Each resistor may be connected in series to a corresponding hardware module among a plurality of hardware modules, the at least one MUX may be connected to the plurality of resistors, and the at least one ADC may be connected to the at least one MUX. The at least one ADC may detect voltage data corresponding to the at least one resistor among the plurality of resistors connected to the at least one hardware module.
[0117] Here, the voltage data corresponding to the resistor may include a first voltage difference between the first terminal and the second terminal of the resistor and a second voltage difference between the first terminal of the resistor and the ground terminal, wherein the first terminal of the resistor represents the terminal with the higher voltage of the two terminals of the resistor, and the second terminal of the resistor represents the terminal with the lower voltage of the two terminals of the resistor.
[0118] According to the example embodiment, the power consumption data corresponding to the hardware module may be voltage data corresponding to the resistor connected to the hardware module, or a power value calculated based on the voltage data corresponding to the resistor connected to the hardware module and the resistance value of the resistor connected to the hardware module. Furthermore, the MPU 120 can send the power consumption data to an external memory of the mobile terminal via the AP 110.
[0119] According to an example embodiment, the MPU 120 can connect the ADC to a resistor connected to each hardware module via a MUX to detect voltage data corresponding to the resistor connected to each hardware module, and obtain power consumption data corresponding to each hardware module based on the voltage data corresponding to the resistor connected to each hardware module. Therefore, power consumption data corresponding to each of at least one hardware module can be obtained.
[0120] In the case where the power consumption measurement circuit 130 includes multiple MUXs and multiple ADCs, the multiple resistors can be divided into multiple resistor groups, and each MUX is connected to each resistor in the corresponding resistor group and the corresponding ADC in the multiple ADCs. In the case where the power consumption measurement circuit 130 includes one MUX and one ADC, the MUX is connected between the multiple resistors and the ADC.
[0121] According to the example embodiment, in order to detect voltage data corresponding to multiple resistors connected to the same MUX, the MPU120 can alternately connect the corresponding ADC of the same MUX to multiple resistors through the same MUX to detect voltage data corresponding to each of the multiple resistors.
[0122] Figure 5 This is a flowchart of a microprocessor-controlled power consumption measurement circuit acquiring power consumption data according to a publicly disclosed example embodiment.
[0123] In operation S210, the MPU 120 can generate control commands for controlling the MUX, ADC and ports included in the power consumption measurement circuit 130 based on the detection commands received from the AP 110, and send the control commands to the power consumption measurement circuit 130.
[0124] According to one or more example embodiments, the MPU 120 can generate a first control command based on relevant information of the hardware module under test indicated by a detection command. The first control command is used to control a target MUX to connect a target resistor to a target ADC and enable the target ADC. In other words, the relevant information of the hardware module under test includes information for determining the target resistor, target MUX, and target ADC corresponding to the hardware module under test. Here, the target resistor is the resistor in the power consumption measurement circuit that is connected to the hardware module under test; the target MUX is the MUX in the power consumption measurement circuit that is connected to the target resistor; and the target ADC is the ADC in the power consumption measurement circuit that is connected to the target MUX.
[0125] According to one or more example embodiments, the relevant information of the hardware module to be detected may include the identifier of the target MUX, the identifier of the target resistor, and the identifier of the target ADC. In this case, AP 110 can determine the identifier of the target resistor, the identifier of the target MUX, and the identifier of the target ADC corresponding to the identifier of the hardware module to be detected, based on the identifier of the hardware module to be detected included in the user's command or preset parameters, and based on a mapping table between the identifier of the hardware module to be detected and the identifiers of the target resistor, the target MUX, and the target ADC, and include or add the determined identifiers of the target resistor, the target MUX, and the target ADC as relevant information of the hardware module to be detected in the detection command. Alternatively, AP 100 can directly include or add the identifiers of the target resistor, the target MUX, and the target ADC corresponding to the identifier of the hardware module to be detected, included in the user's command or preset parameters, as relevant information of the hardware module to be detected in the detection command.
[0126] According to one or more example embodiments, the relevant information of the hardware module to be detected may include the identifier of the hardware module to be detected. The MPU may determine the identifier of the target resistor, the identifier of the target MUX, and the identifier of the target ADC corresponding to the identifier of the hardware module to be detected, based on the identifier of the hardware module to be detected and based on a mapping table of the identifier of the hardware module to be detected and the identifiers of the target resistor, the target MUX, and the target ADC.
[0127] For example, when the hardware module to be tested is the first hardware module, the MPU 120 can generate a first control command to control the MUX 132_1 to connect the ADC 133_1 to the resistor 131_11 and enable the ADC 133_1.
[0128] According to one or more example embodiments, MPU 120 may send a first control command to power consumption measurement circuit 130 when a detection command is indicated. Alternatively, MPU 120 may set the mobile terminal to the scenario indicated by the detection command and send the first control command to power consumption measurement circuit 130.
[0129] According to one or more example embodiments, MPU 120 may generate and send a first control command at a frequency indicated by the detection command to control power consumption measurement circuit 130 to detect power consumption data at the frequency indicated by the detection command.
[0130] According to one or more example embodiments, MPU 120 may generate a second control command for disabling the target ADC after the power consumption measurement circuit 130 has detected power consumption data for a specified duration, based on the duration indicated by the detection command. Alternatively, MPU 120 may generate the second control command based on a stop command received from AP 110.
[0131] In operation S220, MPU 120 can read voltage data from power consumption measurement circuit 130 and obtain power consumption data based on the voltage data.
[0132] According to one or more example embodiments, the MPU 120 can read voltage data from the target ADC via I / O port 134.
[0133] For example, the MPU 120 can read voltage data from the target ADC at the frequency indicated by the detection command.
[0134] For example, MPU 120 may stop reading voltage data after reading voltage data from the target ADC for the duration indicated by the detection command. Alternatively, MPU 120 may stop reading voltage data after receiving a stop command from AP 110.
[0135] According to one or more example embodiments, the MPU 120 may determine the voltage data read from the target ADC as power consumption data corresponding to the hardware module under test. Alternatively, the MPU 120 may calculate a power value based on the voltage data read from the target ADC and the resistance value of the target resistor, and determine the calculated power value as the power consumption data corresponding to the hardware module under test.
[0136] Figure 6 This is an illustration of a mobile terminal according to another example embodiment. Figure 6 The mobile terminal 1000 can generally be, for example, a portable communication terminal (e.g., a mobile phone), a smartphone, a tablet PC, a wearable device, a healthcare device, or an Internet of Things (IoT) device. However, Figure 6 The mobile terminal 1000 is not limited to this; it can be a laptop computer, server, media player, or automotive device (e.g., navigation device).
[0137] Reference Figure 6 The mobile terminal 1000 may include an access point (AP) 1100, a memory (e.g., 1200a and 1200b), and a storage device (e.g., 1300a and 1300b). Furthermore, the mobile terminal 1000 may include at least one of an image capture device 1410, a user input device 1420, a sensor 1430, a communication device 1440, a display 1450, a speaker 1460, a power supply device 1470, and a connection interface 1480.
[0138] AP 1100 can control all operations of mobile terminal 1000, and more specifically, it can control the operations of other components included in mobile terminal 1000. AP 1100 can be replaced by a general-purpose processor, a dedicated processor, etc. AP 1100 can perform the above-mentioned operations. Figure 1 The operations performed by the described AP 110. Furthermore, the mobile terminal 1000 may also include a microprocessor (e.g., see reference 110). Figure 2 The microprocessor described) and power consumption measurement circuit (e.g., reference) Figure 3 (Described power consumption measurement circuit). Therefore, the mobile terminal 1000 can be a device capable of detecting its own power consumption data.
[0139] AP 1100 can control memories 1200a and 1200b and / or storage devices 1300a and 1300b.
[0140] Memory 1200a and 1200b can be used as the main storage device of mobile terminal 1000. Although memory 1200a and 1200b can each include volatile memory, such as static random access memory (SRAM) and / or dynamic random access memory (DRAM), they can also include non-volatile memory, such as flash memory, phase-change random access memory (PRAM), and / or resistive random access memory (RRAM). Memory 1200a and 1200b can be implemented in the same package as AP 1100.
[0141] Storage devices 1300a and 1300b can be used as non-volatile storage devices configured to store data regardless of whether they are powered on, and have a larger storage capacity than memories 1200a and 1200b. Storage devices 1300a and 1300b may each include memory controllers (STRG CTRL) 1310a and 1310b and non-volatile memory (NVM) 1320a and 1320b, configured to store data under the control of memory controllers 1310a and 1310b. Although NVMs 1320a and 1320b may include V-NAND flash memory with a two-dimensional (2D) or three-dimensional (3D) structure, NVMs 1320a and 1320b may include other types of NVMs, such as PRAM and / or RRAM, etc.
[0142] Storage devices 1300a and 1300b may be physically separate from AP 1100 and included in mobile terminal 1000, or they may be implemented in the same package as AP 1100. Additionally, storage devices 1300a and 1300b may be of the type of solid-state devices (SSDs) or memory cards, and may be removably coupled to other components of mobile terminal 1000 via an interface such as connection interface 1480, which will be described later. Storage devices 1300a and 1300b may be devices that apply standard protocols such as Universal Flash Memory (UFS), embedded multimedia card (eMMC), or NVMe, but are not limited thereto.
[0143] Image capture device 1410 can capture still images or moving images. Image capture device 1410 may include a camera, a portable video camera, and / or a webcam, etc.
[0144] User input device 1420 can receive various types of data input by the user of mobile terminal 1000, and includes touchpad, keypad, keyboard, mouse and microphone, etc.
[0145] Sensor 1430 can detect various types of physical quantities that can be obtained from the outside of mobile terminal 1000 and convert the detected physical quantities into electrical signals. Sensor 1430 may include temperature sensors, pressure sensors, illuminance sensors, position sensors, acceleration sensors, biosensors, and / or gyroscope sensors, etc.
[0146] The communication device 1440 can be used for wired or wireless communication with the outside world.
[0147] The display 1450 and the speaker 1460 can be used as output devices, which are configured to output visual information and auditory information to the user of the mobile terminal 1000, respectively.
[0148] The power supply device 1470 can appropriately convert the power supplied from the battery and / or external power source embedded in the mobile terminal 1000 and supply the converted power to each component of the mobile terminal 1000.
[0149] The connection interface 1480 provides a connection between the mobile terminal 1000 and an external device that connects to the mobile terminal 1000 and can send and receive data to and from the mobile terminal 1000. The connection interface 1480 can be implemented using various interface schemes, such as High Definition Multimedia Interface (HDMI), Advanced Technology Attachment (ATA), Serial ATA (SATA), External Serial ATA (e-SATA), Small Computer System Interface (SCSI), Serial SCSI (SAS), External Device Interconnect (PCI), PCI Express (PCIe), NVMe, IEEE 1394, Universal Serial Bus (USB) interface, Secure Digital Card (SD) interface, Multimedia Card (MMC) interface, Embedded Multimedia Card (eMMC) interface, UFS interface, Embedded UFS (eUFS) interface, and Compact Flash (CF) card interface, etc.
[0150] The devices, units, modules, and other components described herein are implemented by hardware components. Examples of hardware components that can be used to perform the operations described herein include, where appropriate, controllers, sensors, generators, drivers, memories, comparators, arithmetic logic units, adders, subtractors, multipliers, dividers, integrators, and any other electronic components configured to perform the operations described herein. In other examples, one or more of the hardware components performing the operations described herein are implemented by computing hardware (e.g., by one or more processors or computers). The processor or computer may be implemented by one or more processing elements, such as logic gate arrays, controllers and arithmetic logic units, digital signal processors, microcomputers, programmable logic controllers, field-programmable gate arrays, programmable logic arrays, microprocessors, or any other means or combination of means configured to respond to and execute instructions in a defined manner to achieve a desired result. In one example, the processor or computer includes or is connected to one or more memories storing instructions or software executed by the processor or computer. The hardware components implemented by the processor or computer can execute instructions or software (such as an operating system (OS) and one or more software applications running on the OS) for performing the operations described herein. Hardware components can also access, manipulate, process, create, and store data in response to the execution of instructions or software. For simplicity, the singular terms "processor" or "computer" are used in the description of the examples described in this application; however, in other examples, multiple processors or computers may be used, or a processor or computer may include multiple processing elements, or multiple types of processing elements, or both. For example, a single hardware component, or two or more hardware components, may be implemented by a single processor, or two or more processors, or a processor and a controller. One or more hardware components may be implemented by one or more processors, or a processor and a controller, and one or more other hardware components may be implemented by one or more other processors, or another processor and another controller. One or more processors, or a processor and a controller, may implement a single hardware component, or two or more hardware components. Hardware components may have any one or more different processing configurations, examples of which include: a single processor, a standalone processor, a parallel processor, single-instruction single-data (SISD) multiple processing, single-instruction multiple-data (SIMD) multiple processing, multiple-instruction single-data (MISD) multiple processing, and multiple-instruction multiple-data (MIMD) multiple processing.
[0151] The methods for performing the operations described in this application are executed by computing hardware (e.g., by one or more processors or a computer), which is implemented to execute instructions or software as described above to perform the operations performed by the methods described in this application. For example, a single operation, or two or more operations, may be performed by a single processor, or two or more processors, or a processor and a controller. One or more operations may be performed by one or more processors, or a processor and a controller, and one or more other operations may be performed by one or more other processors, or another processor and another controller. One or more processors, or a processor and a controller, may perform a single operation, or two or more operations.
[0152] Instructions or software for controlling a processor or computer to implement hardware components and perform the methods described above can be written as computer programs, code segments, instructions, or any combination thereof to individually or collectively instruct or configure the processor or computer to operate as a machine or special-purpose computer to perform operations performed by the hardware components and methods described above. In one example, the instructions and / or software include machine code (such as machine code generated by a compiler) that is directly executed by the processor or computer. In another example, the instructions or software include high-level code that is executed by the processor or computer using an interpreter. Those skilled in the art or programmers can readily write the instructions and / or software based on the block diagrams and flowcharts shown in the accompanying drawings and the corresponding descriptions in the specification, which disclose algorithms for performing operations performed by the hardware components and methods described above.
[0153] Instructions or software used to control a processor or computer to implement hardware components and perform the methods described above, along with any associated data, data files, and data structures, are recorded, stored, or fixed in, or on, one or more non-transitory computer-readable storage media. Examples of non-transitory computer-readable storage media include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disc storage devices, hard disk drive (HDD), solid-state drive (SSD), flash memory, card memory (such as multimedia cards or microcards (e.g., Secure Digital (SD) or Extreme Digital (XD))), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid-state drive, and at least one of any other device, any other device configured to store instructions or software and any associated data, data files and data structures in a non-transitory manner and to provide instructions or software and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the instructions.
[0154] Although various exemplary embodiments have been described, those skilled in the art will understand that various changes in form and detail may be made thereto without departing from the spirit and scope of the disclosure as defined by the claims.
Claims
1. A mobile terminal, comprising: The power consumption measurement circuit is configured to measure the power consumption of one or more hardware modules among a plurality of hardware modules of the mobile terminal. The application processor is configured to send a detection command, which is used to detect the power consumption of the first hardware module among the plurality of hardware modules; as well as The microprocessor is configured to: obtain first power consumption data corresponding to the first hardware module from the power consumption measurement circuit based on a detection command received from the application processor. The power consumption measurement circuit includes: Multiple resistors are connected to the multiple hardware modules respectively; At least one multiplexer is connected to the plurality of resistors; and At least one analog-to-digital converter is connected to the at least one multiplexer and configured to detect first voltage data corresponding to a first resistor among the plurality of resistors connected to the first hardware module.
2. The mobile terminal according to claim 1, wherein, The first power consumption data includes the first voltage data corresponding to the first resistor connected to the first hardware module, or the power value obtained based on the first voltage data corresponding to the first resistor connected to the first hardware module and the resistance value of the first resistor connected to the first hardware module.
3. The mobile terminal according to claim 1, wherein, The step of obtaining the first power consumption data corresponding to the first hardware module from the power consumption measurement circuit includes: connecting the target analog-to-digital converter to the target resistor through the target multiplexer to detect the voltage data corresponding to the target resistor. Wherein, the target resistor is the first resistor among the plurality of resistors connected to the first hardware module, the target multiplexer is the first multiplexer among the at least one multiplexer connected to the target resistor, and the target analog-to-digital converter is the first analog-to-digital converter among the at least one analog-to-digital converter connected to the target multiplexer.
4. The mobile terminal according to claim 3, wherein, The power consumption measurement circuit includes multiple multiplexers and multiple analog-to-digital converters. The plurality of resistors are divided into a plurality of resistor groups. Each of the plurality of multiplexers is connected to each resistor in the corresponding resistor group in the plurality of resistor groups and to the corresponding analog-to-digital converter in the plurality of analog-to-digital converters.
5. The mobile terminal according to claim 3, wherein, By alternately connecting the corresponding analog-to-digital converter of the same target multiplexer to multiple target resistors, voltage data corresponding to each of the multiple target resistors can be detected.
6. The mobile terminal according to claim 1, wherein, Each of the plurality of resistors is connected in series between the power supply for powering the corresponding hardware module among the plurality of hardware modules and the power interface of the corresponding hardware module.
7. The mobile terminal according to claim 1, wherein, The first voltage data corresponding to the first resistor includes: the voltage difference between the first terminal and the second terminal of the first resistor and the voltage difference between the first terminal of the first resistor and the ground terminal, wherein the first terminal of the first resistor represents the terminal with the higher voltage of the two terminals of the first resistor, and the second terminal of the first resistor represents the terminal with the lower voltage of the two terminals of the first resistor.
8. The mobile terminal according to claim 1, wherein, The microprocessor is also configured to send first power consumption data to an external device outside the mobile terminal via an application processor.
9. The mobile terminal according to claim 1, wherein, Application processors and microprocessors are separate processors.
10. The mobile terminal according to claim 1, wherein, Microprocessors include: The memory is configured to store the first power consumption data.
11. The mobile terminal according to claim 10, in, The microprocessor is also configured to send a transmission command to the application processor when the amount of first power consumption data stored in the memory is greater than a first predetermined amount; as well as In response to receiving a command to stop detecting the first power consumption data, a transmission command is sent to the application processor.
12. The mobile terminal according to claim 10, wherein, The microprocessor is also configured to: continue acquiring first power consumption data when the application processor enters sleep mode; and wake up the application processor and send a transmission command to the application processor when the remaining storage capacity of the memory is less than a second predetermined amount.
13. The mobile terminal according to claim 12, wherein, The application processor is also configured to send first power consumption data stored in memory to memory outside the mobile terminal based on a transmission command.
14. A power consumption detection method for a mobile terminal, the mobile terminal including an application processor, a microprocessor, and a power consumption measurement circuit, the power consumption detection method comprising: The application processor sends a detection command to detect the power consumption of the first hardware module among the multiple hardware modules of the mobile terminal. as well as The microprocessor, based on the detection command received from the application processor, obtains first power consumption data corresponding to the first hardware module from the power consumption measurement circuit. The power consumption measurement circuit includes: multiple resistors connected to the multiple hardware modules; at least one multiplexer connected to the multiple resistors; and at least one analog-to-digital converter connected to the at least one multiplexer. The step of obtaining the first power consumption data corresponding to the first hardware module from the power consumption measurement circuit includes: detecting the first voltage data corresponding to the first resistor among the plurality of resistors connected to the first hardware module through the at least one analog-to-digital converter.
15. The power consumption detection method according to claim 14, wherein, The first power consumption data includes the first voltage data corresponding to the first resistor connected to the first hardware module, or the power value obtained based on the first voltage data corresponding to the first resistor connected to the first hardware module and the resistance value of the first resistor connected to the first hardware module.
16. The power consumption detection method according to claim 14, wherein, The step of obtaining the first power consumption data corresponding to the first hardware module through the power consumption measurement circuit includes: connecting the target analog-to-digital converter to the target resistor through the target multiplexer to detect the voltage data corresponding to the target resistor. Wherein, the target resistor is the first resistor among the plurality of resistors connected to the first hardware module, the target multiplexer is the first multiplexer among the at least one multiplexer connected to the target resistor, and the target analog-to-digital converter is the first analog-to-digital converter among the at least one analog-to-digital converter connected to the target multiplexer.
17. The power consumption detection method according to claim 16, wherein, The power consumption measurement circuit includes multiple multiplexers and multiple analog-to-digital converters. The plurality of resistors are divided into a plurality of resistor groups. Each of the plurality of multiplexers is connected to each resistor in the corresponding resistor group in the plurality of resistor groups and to the corresponding analog-to-digital converter in the plurality of analog-to-digital converters.
18. The power consumption detection method according to claim 16, wherein, The step of detecting the first voltage data corresponding to the target resistor includes: alternately connecting the corresponding analog-to-digital converter of the same target multiplexer to a plurality of target resistors through the same target multiplexer to detect the voltage data corresponding to each of the plurality of target resistors.