Power consumption measurement circuit, power consumption measurement chip, and terminal device
By designing a power consumption detection circuit in a terminal device and using the current channel and processing module to detect the current value, the problem that the existing technology cannot detect the battery life of the terminal device in real time is solved, and the precise detection and independent operation capability of the terminal device power consumption is achieved .
Patent Information
- Application Number
- PCT/CN2023/134803
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-29
- Filing Date
- 2023-11-28
- Publication Date
- 2024-11-14
AI Technical Summary
The prior art is difficult to detect the battery life of terminal equipment in real time, and traditional power consumption testing instruments are bulky and inconvenient, so they cannot be tested in real time in actual application scenarios.
Design a power consumption detection circuit, including multiple current channels and processing modules, by detecting the current value in the current channel, calculating the power consumption of the load module, and integrating it into the terminal device to achieve real-time battery life detection, which can be used in the terminal device. Run independently under shutdown.
It realizes accurate detection of the power consumption of each load module of the terminal device, provides a more realistic battery life assessment, reduces detection costs, and can still operate independently when the terminal device is shut down.
Smart Images

Figure CN2023134803_14112024_PF_FP_ABST
Abstract
Description
Power consumption detection circuit, power consumption detection chip and terminal equipment
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 29, 2023, with application number 202310321092.2 and application name “Power consumption detection circuit, power consumption detection chip and terminal device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of circuit technology, and in particular to a power consumption detection circuit, a power consumption detection chip and a terminal device. Background Art
[0003] Terminal devices include mobile phones, tablets, and laptops. They typically include multiple load modules, each consisting of a voltage conversion unit and a load unit connected in series. Load units can include, for example, a central processing unit (CPU), a graphics processor (GPU), a baseband processor, a speaker, and a display. With the advancement of science and technology, terminal devices are becoming increasingly versatile and applicable in a wide range of scenarios. Therefore, to improve the battery life of terminal devices, a power consumption detection circuit is urgently needed to monitor the battery life of terminal devices in real time.
[0004] Summary of the Invention
[0005] This application provides a power consumption detection circuit, a power consumption detection chip, and a terminal device. When the power consumption detection circuit is applied to the terminal device, it can detect the power consumption of each load module in the terminal device, thereby enabling real-time detection of the battery life of the terminal device. The technical solution is as follows:
[0006] In a first aspect, a power consumption detection circuit is provided. The power consumption detection circuit is applied to a terminal device. The terminal device includes an energy storage module and multiple load modules. Each load module includes a voltage conversion unit and a load unit connected in series. In each load module, the voltage conversion unit is connected between the energy storage module and the load unit, so that the electrical energy output by the energy storage module to the load module is output to the load unit through the voltage conversion unit.
[0007] The power consumption detection circuit includes multiple current channels and a processing module. The number of current channels is equal to the number of load modules in the terminal device, and the multiple current channels correspond one-to-one with the multiple load modules. The input terminals of the multiple current channels are all used to connect to the energy storage module, and the output terminal of each current channel is used to connect to the input terminal of the corresponding load module. In other words, the energy storage module supplies power to the corresponding load module through the current channels.
[0008] The detection terminal of the processing module is connected to each current channel. The processing module is configured to detect the current value of each of the multiple current channels and determine the power consumption of the corresponding load module based on the current value of each current channel. Thus, when the power consumption detection circuit is implemented in a terminal device, it can detect the power consumption of each load module in the terminal device. Based on this, the battery life of the terminal device can be monitored in real time. Furthermore, when implemented in a terminal device, the power consumption detection circuit detects the power consumption of each load module, namely, the total power consumption of the voltage conversion unit and the load unit. Because the voltage conversion unit connected to the load unit also needs to operate when the load unit is operating, detecting the total power consumption of the voltage conversion unit and the load unit provides more accurate power consumption data than detecting only the power consumption of the load unit, thereby more accurately detecting the battery life of the terminal device. The power consumption detection circuit integrates a processing module, eliminating the need for the power consumption detection circuit to operate independently of the system-on-chip in the terminal device. This allows the power consumption detection circuit to operate independently even when the terminal device is powered off.
[0009] In some embodiments, the processing module is configured to: if a third instruction is received, detect the current value of each current channel, and determine the power consumption of the corresponding load module based on the current value of each current channel; and if a fourth instruction is received, stop detecting the current value of each current channel. The third instruction is configured to instruct the processing module to start detecting the power consumption of the load module corresponding to each current channel. The fourth instruction is configured to instruct the processing module to stop detecting the power consumption of the load module corresponding to each current channel. That is, in this embodiment, the processing module will detect the current value of each current channel and determine the power consumption of the corresponding load module based on the current value of each current channel only after receiving the third instruction. After receiving the fourth instruction, the processing module will stop detecting the current value of each current channel, and at this time, the processing module will no longer detect the power consumption of the load module corresponding to each current channel.
[0010] In some embodiments, the load module corresponding to any one of the multiple current channels includes a voltage conversion unit and multiple load units. The output end of a current channel is used to connect to the input end of a voltage conversion unit, and the output end of a voltage conversion unit is connected to multiple load units. The processing module is also used to: when multiple load units are working simultaneously, determine the power consumption of one load unit among the multiple load units based on the current value of one current channel and a preset ratio. The preset ratio is the ratio of the power consumption of one load unit to the power consumption of the load module corresponding to one current channel when multiple load units are working simultaneously. In this way, a load module can include multiple load units, which can reduce the number of current channels to achieve the purpose of cost saving.
[0011] The following describes the specific structure and working process of the power consumption detection circuit from two possible implementation methods.
[0012] In a first possible implementation, any one of the multiple current channels includes a sampling resistor, a first end of which is connected to the energy storage module, and a second end of which is connected to an input end of a load module corresponding to the current channel.
[0013] In this embodiment, the processing module includes a current sensing unit and a processing unit. The detection terminal of the current sensing unit is connected to a sampling resistor, and the output terminal of the current sensing unit is connected to an input terminal of the processing unit. The current sensing unit is configured to detect the voltage value of the sampling resistor, determine the current value of the current channel based on the voltage value of the sampling resistor, and transmit the current value of the current channel to the processing unit. The processing unit is configured to determine the power consumption of the corresponding load module based on the current value of the current channel.
[0014] In some embodiments, the power consumption of the load module may be at least one of the current value of the load module, the power of the load module, and the electrical energy used by the load module within a preset time period.
[0015] When the power consumption of a load module is the current value of the load module, as previously described, the output of each current channel is connected to the input of the corresponding load module. In other words, the current value of each current channel is the current value of the corresponding load module. Therefore, the current value of any current channel is the power consumption of the corresponding load module.
[0016] When the power consumption of the load module is the power of the load module and the electrical energy used by the load module within a preset time period, the processing unit is also used to: detect the input voltage value of a current channel, and determine the power consumption of the corresponding load module based on the current value and input voltage value of a current channel.
[0017] Specifically, when the power consumption of the load module is the power of the load module, the processing unit may include a multiplier. A first input terminal of the multiplier is used to input the current value of a current channel, and a second input terminal of the multiplier is used to input the input voltage value of the current channel. The multiplier is used to multiply the current value of the current channel and the input voltage value to obtain the power of the corresponding load module, that is, to obtain the power consumption of the corresponding load module.
[0018] When the power consumption of a load module is the electrical energy used by the load module within a preset duration, the processing unit may include a multiplier and an integrator. The first input of the multiplier is used to input the current value of a current channel, the second input of the multiplier is used to input the input voltage value of a current channel, and the output of the multiplier is connected to the input of the integrator. The multiplier is used to multiply the current value of a current channel and the input voltage value to obtain the power of the corresponding load module, and the integrator is used to integrate the power of the load module to obtain the electrical energy used by the load module within the preset duration, that is, to obtain the power consumption of the load module.
[0019] In a second possible implementation, any one of the multiple current channels includes a first shunt unit, a first end of which is connected to the energy storage module, and a second end of which is connected to an input end of a load module corresponding to the current channel.
[0020] In this embodiment, the processing module includes a second shunt unit, a voltage regulating unit, a sampling resistor, a current sensing unit, and a processing unit. The first end of the second shunt unit is connected to the first end of the first shunt unit. The first end of the voltage regulating unit is connected to the second end of the first shunt unit, and the second end of the voltage regulating unit is connected to the second end of the second shunt unit. When the processing module is operating, the voltage values of the first and second ends of the voltage regulating unit are the same. The first end of the sampling resistor is connected to the second end of the second shunt unit, and the second end of the sampling resistor is connected to a ground line. The detection end of the current sensing unit is connected to the sampling resistor, and the output end of the current sensing unit is connected to the input end of the processing unit.
[0021] The current sensing unit is configured to detect the voltage value of the sampling resistor, determine the current value of the sampling resistor based on the voltage value of the sampling resistor, determine the current value of the current channel based on the current value of the sampling resistor and a target ratio, and send the current value of the current channel to the processing unit. The processing unit is configured to determine the power consumption of the corresponding load module based on the current value of the current channel.
[0022] The target ratio is the ratio of the current value of the first shunt unit to the current value of the second shunt unit. When the processing unit "determines the current value of the current channel based on the current value of the sampling resistor and the target ratio," the processing unit may multiply the current value of the sampling resistor by the target ratio to obtain the current value of the current channel.
[0023] In some embodiments, any current channel further includes a switching device. The switching device is connected in series with other devices in the current channel. That is, when any current channel includes a sampling resistor and a switching device, the sampling resistor and the switching device in the current channel are connected in series. When any current channel includes a first shunt unit and a switching device, the first shunt unit and the switching device in the current channel are connected in series.
[0024] The control terminal of the switching device is connected to the output terminal of the processing module. The processing module is further configured to: upon receiving a first instruction, control the switching device to conduct; upon receiving a second instruction, control the switching device to shut down. The first instruction is used to instruct the terminal device to power on or to instruct the load module corresponding to the current channel to operate. The second instruction is used to instruct the terminal device to power off or to instruct the load module corresponding to a current channel to terminate operation.
[0025] In some embodiments, the power consumption detection circuit also includes a power supply channel. The input end of the power supply channel is connected to the energy storage module, and the output end of the power supply channel is connected to the power supply terminal of the processing module. In other words, the processing module in the power consumption detection circuit is powered separately by the energy storage module, and the power consumption of the power consumption detection circuit itself is not included in the power consumption of the load module detected by the processing module. In this way, the power consumption data of each load module when the terminal device is in operation can be obtained more accurately, thereby more precisely detecting the battery life of the terminal device.
[0026] In a second aspect, a power consumption detection chip is provided, comprising the power consumption detection circuit according to any one of the first aspects. The power consumption detection chip may be a chip encapsulating the power consumption detection circuit according to any one of the first aspects.
[0027] In a third aspect, a terminal device is provided, comprising an energy storage module, a plurality of load modules, and a power consumption detection circuit as in any one of the first aspect or a power consumption detection chip as in the second aspect.
[0028] In some embodiments, the load unit of any one of the multiple load modules includes one of a central processing unit, a graphics processor, a baseband processor, a speaker, and a display screen. The voltage conversion units in the multiple load modules constitute a power management module.
[0029] The technical effects obtained in the above-mentioned second and third aspects are similar to the technical effects obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] FIG1 is a schematic diagram of the appearance of an electronic device provided in an embodiment of the present application;
[0031] FIG2 is a schematic diagram of an exploded structure of an electronic device provided in an embodiment of the present application;
[0032] FIG3 is a schematic diagram of the internal structure of a terminal device in the related art;
[0033] FIG4 is a schematic diagram of the internal structure of a terminal device provided in an embodiment of the present application;
[0034] FIG5 is a schematic diagram of the internal structure of a second terminal device provided in an embodiment of the present application;
[0035] FIG6 is a schematic diagram of the internal structure of a third terminal device provided in an embodiment of the present application;
[0036] FIG7 is a schematic diagram of the internal structure of a fourth terminal device provided in an embodiment of the present application;
[0037] FIG8 is a schematic diagram of a connection between a current sensing unit and a sampling resistor provided in an embodiment of the present application;
[0038] FIG9 is a schematic diagram of the internal structure of a fifth terminal device provided in an embodiment of the present application;
[0039] FIG10 is a simplified diagram of the internal structure of a terminal device provided in an embodiment of the present application;
[0040] FIG11 is a schematic structural diagram of a first power consumption detection circuit provided in an embodiment of the present application;
[0041] FIG12 is a schematic structural diagram of a second power consumption detection circuit provided in an embodiment of the present application;
[0042] FIG13 is a schematic structural diagram of a third power consumption detection circuit provided in an embodiment of the present application;
[0043] FIG14 is a circuit diagram of a first power consumption detection circuit provided in an embodiment of the present application;
[0044] FIG15 is a circuit diagram of a second power consumption detection circuit provided in an embodiment of the present application;
[0045] FIG16 is a circuit diagram of a third power consumption detection circuit provided in an embodiment of the present application;
[0046] FIG17 is a schematic diagram of the internal structure of a sixth terminal device provided in an embodiment of the present application;
[0047] Figure 18 is a schematic diagram of the internal structure of the seventh terminal device provided in an embodiment of the present application.
[0048] The meanings of the figures are as follows:
[0049] This application: 10. Terminal device; 110. Display screen; 120. Back cover; 130. Middle frame; 131. Metal plate; 132. Top frame; 133. Bottom frame; 134. Left frame; 135. Right frame; 140. Circuit board; 150. Energy storage module; 162. Front camera; 164. Rear camera; 30. Power consumption detection circuit; 310. Processing module; 312. Processing unit; 3122. Multiplier; 3124. Integrator; 3126. Analog-to-digital converter; 314. Current sensing unit; 316. Control unit; 317. Second shunt unit; 319. Voltage regulating unit; 320. Power supply channel; 332. First shunt unit; 40. Load module; 410. First load module; 420. Second load module; 430. Third load module; 440. Fourth load module; 450. i-th load module;
[0050] Related technologies: 20. Terminal device; 210. Energy storage module; 220. Load module; 222. First load module; 224. Second load module; 226. Third load module; 228. Nth load module. DETAILED DESCRIPTION
[0051] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0052] To facilitate the clear description of the technical solutions of this application, the words "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or order of execution, and the words "first" and "second" do not necessarily mean different.
[0053] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of the present application include a particular feature, structure, or characteristic described in conjunction with that embodiment. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in different places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0054] Before explaining the power consumption detection circuit provided in the embodiment of the present application in detail, the application scenario of the power consumption detection circuit is first explained.
[0055] The power consumption detection circuit is applied to a terminal device. The terminal device here may be, for example, a mobile phone, a tablet computer, a wearable device, an augmented reality (AR) or virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiments of the present application do not impose any restrictions on the specific type of the terminal device.
[0056] The terminal device in the embodiments of the present application may also be referred to as: electronic device, user equipment (UE), mobile station (MS), mobile terminal (MT), mobile intelligent terminal device, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.
[0057] For example, FIG1 is a schematic diagram of the appearance of a terminal device 10 provided in an embodiment of the present application, and FIG2 is a schematic diagram of the exploded structure of a terminal device 10 provided in an embodiment of the present application. As shown in FIG1 and FIG2, the terminal device 10 includes: a display screen 110, a back cover 120, a middle frame 130, a circuit board 140 and an energy storage module 150. The energy storage module 150 is a battery. Among them, the middle frame 130, the circuit board 140 and the energy storage module 150 are arranged between the display screen 110 and the back cover 120. The circuit board 140 and the energy storage module 150 can be arranged on the middle frame 130, for example, the circuit board 140 and the energy storage module 150 are arranged on the side of the middle frame 130 facing the back cover 120. In other embodiments, the circuit board 140 and the energy storage module 150 can also be arranged on the side of the middle frame 130 facing the display screen 110.
[0058] The energy storage module 150 can be connected to other devices through a power management unit (PMU) (not shown in the figure). The PMU can receive the power output by the energy storage module 150 and power the processor, internal memory, external memory, display screen 110, camera, speaker and communication module in the terminal device 10. The processor here includes a central processing unit (CPU), a graphics processing unit (GPU), a baseband processor, etc. The PMU can also be used to detect parameters such as the capacity, number of cycles, and health status (leakage, impedance) of the energy storage module 150. In some embodiments, the PMU can be integrated into the circuit board 140.
[0059] The display screen 110 may be an organic light emitting diode (OLED) display screen or a liquid crystal display (LCD). It should be understood that the display screen 110 may include a display and a touch control device, where the display is used to output display content to the user, and the touch control device is used to receive touch events input by the user on the display screen 110.
[0060] The back cover 120 may be a metal back cover, a glass back cover, a plastic back cover, or a ceramic back cover. In the embodiment of the present application, the material of the back cover 120 is not limited.
[0061] The middle frame 130 may include a metal plate 131 and a frame. The frame is arranged around the outer edge of the metal plate 131. Generally speaking, the frame may be a square frame. For example, as shown in Figure 2, the frame may include a top frame 132 and a bottom frame 133 arranged opposite each other, as well as a left frame 134 and a right frame 135 located between the top frame 132 and the bottom frame 133 and arranged opposite each other. In this embodiment, the side surface of the middle frame 130 is the surface surrounded by the top frame 132, the bottom frame 133, the left frame 134, and the right frame 135. The metal plate 131 may be an aluminum plate, an aluminum alloy, or a magnesium alloy. The frames may be metal frames, ceramic frames, or glass frames. The metal middle frame 130 and the frames may be welded, snap-fitted, or integrally formed, or the metal middle frame 130 and the frames may be connected by injection molding of plastic parts.
[0062] The circuit board 140 is one of the important components of the terminal device and is a necessary carrier for software implementation. The circuit board 140 includes: a substrate, functional devices mounted on the substrate, and other components mounted on the substrate. Functional devices include but are not limited to: a PMU for converting voltage, a power amplifier (PA) for signal amplification, a processor for signal processing, a memory for data storage, sensors (such as pressure sensors, gyroscope sensors, air pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity light sensors, temperature sensors, ambient light sensors, bone conduction sensors, etc.), and can also be a timing controller for controlling the display of the display screen 110, or a device for controlling the implementation of other functions (such as charging functions, etc.). The embodiments of the present application do not limit the specific functions of the functional devices. Other components include but are not limited to resistors, capacitors, inductors, memory cards, sensors or shielding plates, etc. The circuit board 140 may also include accessories such as nuts and bolts for fixing. The components can be mounted on the substrate through solder joints.
[0063] It is understood that the circuit board 140 may have raised and / or recessed positions based on different components. The specific shape of the circuit board 140, the position and size of the components, etc. are related to the design layout of the terminal device and are not specifically limited in this embodiment of the application.
[0064] In some embodiments, as shown in FIG2 , the terminal device 10 may further include a camera and a flash (not shown). The camera may include a front camera 162 and a rear camera 164. The rear camera 164 and the flash may be arranged on the side of the metal plate 131 facing the rear cover 120, and the rear cover 120 may have mounting holes for the flash and the rear camera 164. The front camera 162 may be arranged on the side of the metal plate 131 facing the display screen 110. In some embodiments, the front camera 162 provided in the terminal device 10 may include one or more cameras, and the rear camera 164 may also include one or more cameras.
[0065] The relevant technologies of this application are described below.
[0066] FIG3 is a schematic diagram of the internal structure of a terminal device 20 in the related art. As shown in FIG3 , the terminal device 20 includes an energy storage module 210 and multiple load modules 220. The multiple load modules 220 shown in the figure include a first load module 222, a second load module 224, a third load module 226, ..., and an Nth load module 228. Each load module 220 includes a voltage conversion unit and a load unit connected in series. Specifically, the first load module 222 includes a voltage conversion unit B1 and a load unit C1 connected in series, the second load module 224 includes a voltage conversion unit B2 and a load unit C2 connected in series, the third load module 226 includes a voltage conversion unit B3 and a load unit C3 connected in series, ... and the Nth load module 228 includes a voltage conversion unit BN and a load unit CN connected in series. Generally, in the terminal device 20, multiple voltage conversion units (including voltage conversion units B1, B2, B3, ..., BN) collectively constitute a PMU. Alternatively, the PMU includes multiple voltage conversion units. Each of the multiple load units (including load units C1, C2, C3...CN) can be one of a CPU, a GPU, a baseband processor, an internal memory, an external memory, a display screen, a camera, a speaker, and a communication module.
[0067] In the related art, the process of testing the battery life of a terminal device 20 is as follows: before the terminal device 20 is assembled, the power consumption of the load unit located on the circuit board is tested using a power consumption tester. Taking the terminal device 20 shown in Figure 3 as an example, in the related art, the current value of load unit C1 is usually tested at point F1 to obtain the power consumption of load unit C1; the current value of load unit C2 is tested at point F2 to obtain the power consumption of load unit C2; the current value of load unit C3 is tested at point F3 to obtain the power consumption of load unit C3... and the current value of load unit CN is tested at point FN to obtain the power consumption of load unit CN.
[0068] However, in the related art, when testing the battery life of the terminal device 20, the power consumption test instrument used has the problem of being large, bulky and inconvenient to carry. Therefore, this process can only be carried out in the laboratory, and it is not possible to achieve real-time detection of the battery life of the terminal device 20. With the development of science and technology, the functions of the terminal device 20 are becoming more and more abundant, and the application scenarios are also increasing. In this case, the laboratory scenario is increasingly unable to represent the actual application scenario of the user. Based on this, in order to improve the battery life experience of the terminal device 20, there is an urgent need for a power consumption detection circuit for real-time detection of the battery life of the terminal device 20.
[0069] To this end, an embodiment of the present application provides a power consumption detection circuit, a power consumption detection chip and a terminal device. The power consumption detection circuit is applied to the terminal device, and can detect the power consumption of each load module in the terminal device, thereby performing real-time detection of the battery life of the terminal device.
[0070] The power consumption detection circuit provided in the embodiment of the present application is explained in detail below. The power consumption detection circuit provided in the embodiment of the present application can be applied to the terminal device as shown in Figure 3 to detect the power consumption of each load module in the terminal device. In the embodiment of the present application, the connection between two electronic devices or / and electrical units is an electrical connection, and the electrical connection here refers to the ability to transmit electrical signals between the two electronic devices or / and electrical units through the connection. In addition, the electrical connection between the two electronic devices or / and electrical units can be a direct connection through a wire, or it can be an indirect connection through other electronic devices or / and electrical units.
[0071] FIG4 is a schematic diagram of the internal structure of a terminal device 10 provided in an embodiment of the present application. As shown in FIG4 , a power consumption detection circuit 30 is applied to the terminal device 10. The terminal device 10 includes an energy storage module 150 and multiple load modules 40. The multiple load modules 40 shown in the figure include a first load module 410, a second load module 420, a third load module 430, and so on, an Nth load module 440. Each load module 40 includes a voltage conversion unit and a load unit connected in series. Generally, in the terminal device 10, the multiple voltage conversion units can be presented as a whole, namely, a PMU.
[0072] The power consumption detection circuit 30 includes multiple current channels and a processing module 310. The number of current channels is equal to the number of load modules 40 in the terminal device 10, and the multiple current channels correspond one-to-one to the multiple load modules 40. Each current channel has an input end and an output end. The input ends of the multiple current channels are used to connect to the energy storage module 150 so that the energy storage module 150 can output current to each current channel. The output end of each current channel is used to connect to the input end of the corresponding load module 40. In any load module 40, the input end of the voltage conversion unit is the input end of the load module 40, and the output end of the voltage conversion unit is connected to the load unit so that the electric energy output by the energy storage module 150 to the load module 40 is output to the load unit through the voltage conversion unit.
[0073] Specifically, the current channels shown in FIG4 include current channel A1, current channel A2, current channel A3, and so on, to current channel AN. Current channel A1 corresponds to the first load module 410. The input of current channel A1 is connected to the energy storage module 150, and the output of current channel A1 is connected to the input of the first load module 410. In other words, the output of current channel A1 is connected to the input of voltage conversion unit B1. The output of voltage conversion unit B1 is connected to load unit C1. Current channel A2 corresponds to the second load module 420. The input of current channel A2 is connected to the energy storage module 150, and the output of current channel A2 is connected to the input of the second load module 420. In other words, the output of current channel A2 is connected to the input of voltage conversion unit B2. The output of voltage conversion unit B2 is connected to load unit C2. Current channel A3 corresponds to the third load module 430. The input of current channel A3 is connected to energy storage module 150, and the output of current channel A3 is connected to the input of third load module 430. In other words, the output of current channel A3 is connected to the input of voltage conversion unit B3. The output of voltage conversion unit B3 is connected to load unit C3. Current channel AN corresponds to the Nth load module 440. The input of current channel AN is connected to energy storage module 150, and the output of current channel AN is connected to the input of Nth load module 440. In other words, the output of current channel AN is connected to the input of voltage conversion unit BN. The output of voltage conversion unit BN is connected to load unit CN.
[0074] The processing module 310 has a detection terminal. The detection terminal of the processing module 310 is connected to each current channel. When the processing module 310 is in operation, it is used to perform the following steps S100 to S200.
[0075] S100 , the processing module 310 detects the current value of each current channel among a plurality of current channels.
[0076] The processing module 310 detects the current value of each current channel through the detection terminal. In an embodiment of the present application, the processing module 310 may have multiple detection terminals. The number of detection terminals of the processing module 310 may be equal to the number of current channels, and the multiple detection terminals correspond to the multiple current channels one-to-one, and each detection terminal is used to detect the current value of the corresponding current channel. Specifically, the detection terminals of the processing module 310 shown in Figure 4 include detection terminal a, detection terminal b, detection terminal c, and detection terminal n. Among them, the detection terminal a of the processing module 310 is connected to the current channel A1 for detecting the current value of the current channel A1. The detection terminal b of the processing module 310 is connected to the current channel A2 for detecting the current value of the current channel A2. The detection terminal c of the processing module 310 is connected to the current channel A3 for detecting the current value of the current channel A3. The detection terminal n of the processing module 310 is connected to the current channel AN for detecting the current value of the current channel AN.
[0077] S200 , the processing module 310 determines the power consumption of the corresponding load module 40 according to the current value of each current channel.
[0078] The power consumption of the load module 40 may be at least one of the current value of the load module 40, the power of the load module 40, and the electrical energy used by the load module 40 within a preset time period. The power of the load module 40 refers to the electrical energy used by the load module 40 per unit time (e.g., 1 second); the preset time period may be, for example, 10 seconds, 30 seconds, or 60 seconds.
[0079] Taking the example of the power consumption of load module 40 being the power of load module 40, after detecting the current value of current channel A1 via detection terminal a, processing module 310 multiplies the current value of current channel A1 by the input voltage value of current channel A1 to obtain the power consumption of first load module 410 corresponding to current channel A1. In this embodiment, since the current input to first load module 410 necessarily flows through current channel A1 when first load module 410 is operating, to obtain more accurate power consumption data, the power consumption of first load module 410 calculated using the input voltage value of current channel A1 actually also includes the power consumption of current channel A1. In other embodiments, the power consumption of first load module 410 can also be obtained by multiplying the current value of current channel A1 by the output voltage value of current channel A1. In this case, the calculated power consumption of first load module 410 does not include the power consumption of current channel A1 and is not further described.
[0080] Using the same operational logic, the processing module 310 multiplies the current value of current channel A2 by the input voltage value of current channel A2 to obtain the power consumption of the second load module 420 corresponding to current channel A2. The processing module 310 multiplies the current value of current channel AN by the input voltage value of current channel AN to obtain the power consumption of the Nth load module 440 corresponding to current channel AN. The input voltage values of current channel A1, current channel A2, and current channel AN are all output voltage values of the energy storage module 150. The processing module 310 can obtain the output voltage value of the energy storage module 150 through detection.
[0081] If the power consumption of the load module 40 is the electrical energy used by the load module 40 within a preset duration, then after detecting the current value of current channel A1 through detection terminal a, the processing module 310 multiplies the current value of current channel A1 by the input voltage value of current channel A1 to obtain the power of the first load module 410. The power of the first load module 410 is then multiplied by the preset duration to obtain the power consumption of the first load module 410 corresponding to current channel A1. In other embodiments, after obtaining the power of the first load module 410, the processing module 310 may also integrate the power of the first load module 410 to obtain the power consumption of the first load module 410, which will not be further described.
[0082] According to the same calculation logic, the processing module 310 multiplies the current value of the current channel A2 by the input voltage value of the current channel A2 to obtain the power of the second load module 420, and then multiplies the power of the second load module 420 by the preset time length to obtain the power consumption of the second load module 420 corresponding to the current channel A2... The processing module 310 multiplies the current value of the current channel AN by the input voltage value of the current channel AN to obtain the power of the Nth load module 440, and then multiplies the power of the Nth load module 440 by the preset time length to obtain the power consumption of the Nth load module 440 corresponding to the current channel AN.
[0083] When the power consumption detection circuit 30 provided in the embodiment of the present application is applied to a terminal device 10, it can detect the power consumption of each load module 40 in the terminal device 10. Based on this, the battery life of the terminal device 10 can be detected in real time. In addition, when the power consumption detection circuit 30 is applied to the terminal device 10, it detects the power consumption of each load module 40, that is, the total power consumption of the voltage conversion unit and the load unit in each load module 40. Because the voltage conversion unit connected to the load unit needs to operate when the load unit is operating, detecting the total power consumption of the voltage conversion unit and the load unit can obtain more accurate power consumption data compared to detecting only the power consumption of the load unit, thereby more accurately detecting the battery life of the terminal device 10. The power consumption detection circuit 30 integrates a processing module 310, so that the power consumption detection circuit 30 does not rely on the system-on-chip in the terminal device 10. In this way, the power consumption detection circuit 30 can also operate independently when the terminal device 10 is in the off state. When the power consumption detection circuit 30 is operating, the processing module 310 can simultaneously detect the current value of each of the multiple current channels, thereby obtaining the power consumption of the load module 40 corresponding to each current channel. This ensures that the sum of the multiple current values detected by the processing module 310 is equal to the total current value output by the energy storage module 150 to each load module 40, thereby more accurately detecting the endurance of the terminal device 10.
[0084] Generally, in the terminal device 10, the voltage conversion units in the PMU are all step-down conversion (BUCK) units. That is to say, for any voltage conversion unit, the input voltage of the voltage conversion unit is greater than the output voltage. When the power of the load unit remains unchanged, the input current of the voltage conversion unit is less than the output current of the voltage conversion unit. Based on this, compared with the case where the current channel is connected between the output end of the voltage conversion unit and the load unit, when the current channel is connected between the energy storage module 150 and the input end of the voltage conversion unit, the power loss caused by the current channel is less. Taking the load unit C1 as the CPU as an example, the input voltage of the voltage conversion unit B1 is approximately 3.5V (volts) to 4.5V; the output voltage of the voltage conversion unit B1 is approximately 0.5V. At this time, without considering the power loss of the voltage conversion unit B1, there are:
[0085] Among them, I1 is the input current value of the voltage conversion unit B1, P C1 is the power of the load unit C1, U1 is the input voltage of the voltage conversion unit B1, I2 is the output current of the voltage conversion unit B1, and U2 is the output voltage of the voltage conversion unit B1.
[0086] Since the voltage conversion unit B1 is a BUCK unit, that is, U1>U2, it can be obtained that I1<I2.
[0087] When the current channel A1 is connected between the energy storage module 150 and the input terminal of the voltage conversion unit B1, the power loss caused by the current channel A1 is: When the current channel A1 is connected between the output terminal of the voltage conversion unit B1 and the load unit C1, the power loss caused by the current channel A1 is: Where R is the resistance of current channel A1. Since I1<I2, P1<P2. That is, when current channel A1 is connected between the energy storage module 150 and the input terminal of the voltage conversion unit B1, the power loss caused by current channel A1 is smaller.
[0088] It is understood that in the embodiments of the present application, an electrical module (such as the load module 40) or an electrical unit (such as the voltage conversion unit, the load unit) may include multiple electronic devices, and these electronic devices are interconnected. However, in the terminal device 10, the multiple electronic devices in an electrical module or electrical unit are not necessarily packaged together. For example, the voltage conversion unit and the load unit in any load module 40 are not necessarily packaged together; it is also possible that multiple voltage conversion units are packaged together to form a PMU.
[0089] It should be understood that in the above embodiment, for ease of understanding, the energy storage module 150 and the load module 40 are introduced to describe the connection method and operation process of the power consumption detection circuit 30 provided in the embodiment of the present application. In fact, the power consumption detection circuit 30 provided in the embodiment of the present application does not include the energy storage module 150 and the load module 40. In other words, the energy storage module 150 and the load module 40 exist as environmental elements relative to the power consumption detection circuit 30 provided in the embodiment of the present application, and should not be understood as limiting the power consumption detection circuit 30 provided in the embodiment of the present application.
[0090] In some embodiments, the processing module 310 is further configured to execute the following steps S001 and S002 when in operation.
[0091] S001: If the processing module 310 receives the third instruction, the processing module 310 executes steps S100 and S200.
[0092] S002: If the processing module 310 receives the fourth instruction, the processing module 310 stops executing step S100.
[0093] The third instruction instructs the processing module 310 to begin detecting the power consumption of the load module 40 corresponding to each current channel. The fourth instruction instructs the processing module 310 to stop detecting the power consumption of the load module 40 corresponding to each current channel. The processing module 310 will only execute steps S100 and S200 after receiving the third instruction. That is, only after receiving the third instruction will the processing module 310 begin detecting the current value of each current channel and determine the power consumption of the corresponding load module 40 based on the current value of each current channel. After receiving the fourth instruction, the processing module 310 will stop executing step S100. That is, after receiving the fourth instruction, the processing module 310 will stop detecting the current value of each current channel and no longer detect the power consumption of the load module 40 corresponding to each current channel. In this way, the processing module starts operating upon receiving the third instruction and stops operating upon receiving the fourth instruction, thereby avoiding energy waste caused by the processing module 310 continuously operating. In other embodiments, the third instruction can also be used to instruct the processing module 310 to begin detecting the power consumption of the load module 40 corresponding to any one or more current channels. In this case, upon receiving the third instruction, the processing module 310 may detect the current values of any one or more current channels according to the third instruction, and then determine the power consumption of the corresponding load module 40 based on the detected current values of the current channels. The fourth instruction may also be used to instruct the processing module 310 to stop detecting the power consumption of the load module 40 corresponding to any one or more current channels. In this case, upon receiving the fourth instruction, the processing module 310 may stop detecting the current values of any one or more current channels according to the fourth instruction.
[0094] In some embodiments, any load module 40 may include a voltage conversion unit and multiple load units. The term "multiple" here refers to an integer of two or more. FIG5 is a schematic diagram of the internal structure of another terminal device 10 provided in an embodiment of the present application, illustrating a scenario in which the first load module 410 includes two load units.
[0095] Specifically, in the embodiment shown in FIG5 , the first load module 410 includes a voltage conversion unit B1, a load unit C1A, and a load unit C1B. The output of current channel A1 is connected to the input of voltage conversion unit B1, and the output of voltage conversion unit B1 is connected to load units C1A and C1B. In other words, load units C1A and C1B are both connected in series with voltage conversion unit B1.
[0096] In this case, if only load unit C1A is operating at the same time, the processing module 310 can execute steps S100 and S200 to obtain the power consumption of the first load module 410 when load unit C1A is operating. If only load unit C1B is operating at the same time, the processing module 310 can execute steps S100 and S200 to obtain the power consumption of the first load module 410 when load unit C1B is operating.
[0097] In this embodiment, the processing module 310 is further configured to execute the following step S003 when operating: when the load unit C1A and the load unit C1B operate simultaneously, the power consumption of the load unit C1A is determined according to the current value of the current channel A1 and the first preset ratio, and the power consumption of the load unit C1B is determined according to the current value of the current channel A1 and the second preset ratio.
[0098] The first preset ratio is the ratio of the power consumption of load unit C1A to the power consumption of the first load module 410 when load units C1A and C1B are operating simultaneously. The second preset ratio is the ratio of the power consumption of load unit C1B to the power consumption of the first load module 410 when load units C1A and C1B are operating simultaneously. The first preset ratio and the second preset ratio can be pre-stored in the processing module 310. In this way, when a load module 40 includes multiple load units and multiple load units are operating simultaneously, the power consumption of each load unit can also be calculated. Including multiple load units in a load module 40 can reduce the number of current channels, thereby achieving cost savings.
[0099] In some embodiments, when the processing module 310 is operating, each time the power consumption of the load module 40 corresponding to any current channel is obtained, the power consumption of each load module 40 obtained each time can be associated with time. In this way, when the power consumption detection circuit is applied to the terminal device 10, it can facilitate the terminal device 10 to display the relationship between the power consumption of each load module 40 and time.
[0100] FIG6 is a schematic diagram of the internal structure of another terminal device 10 provided in an embodiment of the present application. As shown in FIG6 , in some embodiments, the processing module 310 further includes a power supply terminal h, which is used to input electrical energy. The power consumption detection circuit 30 may also include a power supply channel 320. The input end of the power supply channel 320 is connected to the energy storage module 150, and the output end of the power supply channel 320 is connected to the power supply terminal h of the processing module 310. In this way, the power module can supply power to the processing module 310 through the power supply channel 320. In some specific embodiments, the power supply channel 320 may be a voltage conversion unit other than the voltage conversion unit B1, the voltage conversion unit B2, the voltage conversion unit B3, ..., the voltage conversion unit BN. The power supply channel 320 may be a boost conversion (BOOST) unit or a buck unit, without limitation. It is understood that when the processing module 310 includes multiple electrical units or / and electronic components that require power, the power supply channel 320 can supply power to all electrical units or / and electronic components in the processing module 310 that require power when in operation.
[0101] In this embodiment, the processing module 310 in the power consumption detection circuit 30 is powered independently through the power supply channel 320, rather than through the current path. In other words, the processing module 310 in the power consumption detection circuit 30 is powered independently by the energy storage module 150, and the power consumption of the power consumption detection circuit 30 itself is not included in the power consumption of the load module 40 detected by the processing module 310. This allows for more accurate and reliable data on the power consumption of each load module 40 when the terminal device 10 is operating, thereby more accurately detecting the endurance of the terminal device 10.
[0102] The specific structure and working process of the power consumption detection circuit 30 are explained in detail below from two possible implementation modes with reference to the accompanying drawings.
[0103] 1. In a first possible implementation, any current channel includes a sampling resistor.
[0104] Figure 7 is a schematic diagram of the internal structure of another terminal device 10 provided in an embodiment of the present application. As shown in Figure 7, the current channel may include a sampling resistor. The first end of the sampling resistor is used to connect to the energy storage module 150, and the second end of the sampling resistor is used to connect to the input terminal of the load module 40 corresponding to the current channel.
[0105] Specifically, as shown in Figure 7, current channel A1 may include a sampling resistor R1; current channel A2 may include a sampling resistor R2; current channel A3 may include a sampling resistor R3, and current channel AN may include a sampling resistor RN. In this case, the first ends of sampling resistors R1, R2, R3, and RN are all connected to the energy storage module 150. The second end of sampling resistor R1 is connected to the input of the first load module 410. The second end of sampling resistor R2 is connected to the input of the second load module 420. The second end of sampling resistor R3 is connected to the input of the third load module 430. The second end of sampling resistor RN is connected to the input of the Nth load module 440.
[0106] In this embodiment, processing module 310 includes a current sensing unit 314 and a processing unit 312. Current sensing unit 314 has a detection terminal and an output terminal d. The detection terminal of current sensing unit 314 is connected to a sampling resistor in each current channel, and the output terminal d of current sensing unit 314 is connected to an input terminal e of processing unit 312. When operating, current sensing unit 314 is configured to execute the following steps S112 to S116.
[0107] S112 , the current sensing unit 314 detects the voltage value of the sampling resistor.
[0108] S114 , the current sensing unit 314 determines the current value of the current channel according to the voltage value of the sampling resistor.
[0109] S116 , the current sensing unit 314 sends the current value of the current channel to the processing unit 312 .
[0110] The current sensing unit 314 can detect the voltage value of the sampling resistor in each current channel through the detection terminal, and determine the current value of the current channel based on the voltage value of the sampling resistor in each current channel. In other words, the detection terminal of the current sensing unit 314 is the detection terminal of the processing module 310. In the embodiment of the present application, in order to detect the voltage value of the sampling resistor in each current channel, the current sensing unit 314 can have multiple detection terminals. The number of detection terminals of the current sensing unit 314 can be equal to the number of current channels, and the multiple detection terminals correspond to the multiple current channels one-to-one, and each detection terminal is used to detect the voltage value of the sampling resistor in the corresponding current channel. Specifically, the detection terminals of the current value sensing unit shown in Figure 7 include detection terminal a1, detection terminal b1, detection terminal c1, and detection terminal n1. Among them, the detection terminal a1 of the current sensing unit 314 is connected to the sampling resistor R1 in the current channel A1, and is used to detect the voltage value of the sampling resistor R1. The current sensing unit 314 may be preset with the resistance value of the sampling resistor R1. Thus, after detecting the voltage across the sampling resistor R1, the current sensing unit 314 divides the voltage across the sampling resistor R1 by the resistance value of the sampling resistor R1 to obtain the current value of current channel A1. Based on the same principle, the current sensing unit 314 can also obtain the current values of current channels A2, A3, and AN. After obtaining the current value of any current channel, the current sensing unit 314 outputs the current value of that channel to the processing unit 312.
[0111] It should be understood that the connection line between the detection terminal a1 of the current sensing unit 314 and the sampling resistor R1 in FIG7 is merely used to indicate a connection relationship between the two, and is not used to specifically define the connection method between the detection terminal a1 of the current sensing unit 314 and the sampling resistor R1. In some specific embodiments, the connection method between the detection terminal a1 of the current sensing unit 314 and the sampling resistor R1 can be as shown in FIG8. That is, the detection terminal a1 of the current sensing unit 314 includes a port a11 and a port a12. Port a11 is connected to the first end of the sampling resistor R1, and port a12 is connected to the second end of the sampling resistor R1 to detect the voltage value of the sampling resistor R1. Similarly, the connection lines between the other detection terminals of the current sensing unit 314 (including the detection terminal b1, the detection terminal c1, and the detection terminal n1) and the sampling resistors in the corresponding current channels in FIG7 are also merely used to indicate the connection relationship.
[0112] The processing unit 312 is configured to execute the following step S212 : the processing unit 312 determines the power consumption of the corresponding load module 40 according to the current value of the current channel.
[0113] As mentioned above, the power consumption of the load module 40 may be at least one of the current value of the load module 40 , the power of the load module 40 , and the electric energy used by the load module 40 within a preset time period.
[0114] In the first embodiment, the power consumption of the load module 40 is the current value of the load module 40. At this time, after receiving the current value of the current channel, the processing unit 312 can directly determine the current value of the current channel as the corresponding power consumption of the load module 40, which is not repeated here.
[0115] In the second embodiment, the power consumption of the load module 40 is the power of the load module 40. In this case, when the processing unit 312 executes step S212, specifically, the processing unit 312 detects the input voltage value of a current channel, and determines the power consumption of the corresponding load module 40 according to the current value and the input voltage value of the current channel.
[0116] In this embodiment, the processing unit 312 can detect the voltage value at the first terminal of any one of the sampling resistors R1, R2, R3, ..., and RN via the current sensing unit 314, which is the input voltage value of each current channel. After obtaining the current value and input voltage value of any current channel, the processing unit 312 multiplies the current value and input voltage value of the current channel to obtain the power consumption of the load module 40 corresponding to the current channel.
[0117] The implementation of the above-mentioned step S212 can be realized by the processing unit 312 through a software algorithm, or can be realized through a hardware structure. When step S212 is realized through a hardware structure, the processing unit 312 can be a multiplier formed by a multiplication circuit. The first input terminal of the multiplier is connected to the output terminal d of the current sensing unit 314, and is used to input the current value of a current channel. The second input terminal of the multiplier is used to input the input voltage value of a current channel. When the multiplier is working, it can multiply the data input by the first input terminal and the data input by the second input terminal, that is, multiply the current value and the input voltage value of the current channel, so as to obtain the power of the corresponding load module 40, that is, the power consumption of the corresponding load module 40. When step S212 is realized through a hardware structure, the power consumption generated when the processing unit 312 is working can be reduced.
[0118] In the third embodiment, the power consumption of the load module 40 is the electrical energy used by the load module 40 within a preset time period. At this time, when the processing unit 312 executes step S212, it can be specifically as follows: the processing unit 312 detects the input voltage value of a current channel, and determines the power consumption of the corresponding load module 40 according to the current value and input voltage value of a current channel. In this embodiment, the processing unit 312 can multiply the current value and the input voltage value of the current channel to obtain the power of the load module 40 corresponding to the current channel, and then integrate the power of the load module 40 to obtain the electrical energy used by the load module 40 within the preset time period, that is, to obtain the power consumption of the load module 40. This step can also be implemented by the processing unit 312 through a software algorithm, or it can be implemented through a hardware structure. When this step is implemented through a hardware structure, the internal structure of the terminal device 10 can be as shown in Figure 9.
[0119] As shown in FIG9 , the processing unit 312 may include a multiplier 3122 and an integrator 3124. The first input terminal p of the multiplier 3122 is connected to the output terminal d of the current sensing unit 314 and is used to input the current value of a current channel. The second input terminal q of the multiplier 3122 is used to input the input voltage value of a current channel. The output terminal r of the multiplier 3122 is connected to the input terminal t of the integrator 3124. The multiplier 3122 is used to multiply the current value of a current channel by the input voltage value to obtain the power of the corresponding load module 40. The integrator 3124 is used to integrate the power of the load module 40 to obtain the electrical energy used by the load module 40 within a preset time period, that is, the power consumption of the load module 40. In this embodiment, the second input terminal q of the multiplier 3122 can also detect the voltage value of the first terminal of any one of the sampling resistors R1, R2, R3, ..., and RN through the current sensing unit 314 to obtain the input voltage value of each current channel. This will not be further described.
[0120] It is understood that the specific implementation of the sampling resistor is not limited in the embodiments of the present application. In some embodiments, the sampling resistor can be a fixed-resistance resistor. In other embodiments, the sampling resistor can also be a piece of copper, copper wire, iron wire, aluminum wire, etc.
[0121] 2. In a second possible implementation, any current channel includes a first shunt unit 332 .
[0122] Figure 10 is a simplified diagram of the internal structure of a terminal device 10 provided in an embodiment of the present application, in which the multiple load modules 40 in Figure 4 are simplified into an i-th load module 450, and the multiple current channels in Figure 4 are simplified into a current channel Ai. The i-th load module 450 can be any one of the first load module 410, the second load module 420, the third load module 430...the N-th load module 440. The i-th load module 450 includes a voltage conversion unit Bi and a load unit Ci connected in series. The current channel Ai can be any one of the current channel A1, the current channel A2, the current channel A3...the current channel AN. The current channel Ai corresponds to the i-th load module 450. The processing module 310 has a detection terminal i, and the detection terminal i of the processing module 310 is connected to the current channel Ai for detecting the current value of the current channel Ai. It is understood that in the embodiment shown in FIG10 , the connection line between the detection terminal i of the processing module 310 and the current channel Ai is only used to indicate that there is a connection relationship between the two, and is not used to specifically define the connection method between the detection terminal i and the current channel Ai of the processing module 310. In this possible implementation, the structure of the terminal device 10 shown in FIG10 is used as an example to illustrate the specific structure and operation process of the current channel in the power consumption detection circuit 30 and the processing module 310.
[0123] Figure 11 is a schematic diagram of the structure of a power consumption detection circuit 30 provided in an embodiment of the present application. As shown in Figure 11, current channel Ai includes a first shunt unit 332. The first end of the first shunt unit 332 is connected to the energy storage module 150, and the second end of the first shunt unit 332 is connected to the input end of the i-th load module 450. The i-th load module 450 is the load module 40 corresponding to current channel Ai.
[0124] In this embodiment, the processing module 310 includes a second current dividing unit 317 , a voltage regulating unit 319 , a sampling resistor Ri, a current sensing unit 314 , and a processing unit 312 .
[0125] The first end of the second shunt unit 317 is connected to the first end of the first shunt unit 332, thereby making the voltage value at the first end of the second shunt unit 317 equal to the voltage value at the first end of the first shunt unit 332. The voltage regulating unit 319 has a first end m and a second end n. When the processing module 310 is in operation, the voltage values at the first end m and the second end n of the voltage regulating unit 319 are equal. The second end of the first shunt unit 332 is connected to the first end m of the voltage regulating unit 319, and the second end of the second shunt unit 317 is connected to the second end n of the voltage regulating unit 319. In other words, when the voltage regulating unit 319 is in operation, the voltage value at the second end of the first shunt unit 332 is equal to the voltage value at the second end of the second shunt unit 317. Thus, when the processing module 310 is in operation, the voltage value at both ends of the first shunt unit 332 is equal to the voltage value at both ends of the second shunt unit 317.
[0126] In this case, when the processing module 310 is working, the current value of the first diversion unit 332 is: Among them, I a is the current value of the first shunt unit 332, that is, the input current value of the voltage conversion unit Bi, U is the voltage value at both ends of the first shunt unit 332, R a is the resistance of the first shunt unit 332 .
[0127] The current value of the second shunt unit 317 is: Among them, I b is the current value of the second shunt unit 317, U is the voltage value across the second shunt unit 317, and is equal to the voltage value across the first shunt unit 332, R b is the resistance of the second shunt unit 317 .
[0128] At this time, the ratio of the current value of the first shunt unit 332 to the current value of the second shunt unit 317 is: For ease of description, the ratio of the current value of the first shunt unit 332 to the current value of the second shunt unit 317 is referred to as the target ratio. In other words, the current value of the first shunt unit 332 can be calculated based on the current value of the second shunt unit 317 and the target ratio. The target ratio is related only to the resistance values of the first shunt unit 332 and the second shunt unit 317.
[0129] The first end of the sampling resistor Ri is connected to the second end of the second shunt unit 317, and the second end of the sampling resistor Ri is used to be connected to the ground line GND. In this way, when the processing module 310 is in operation, a path can be formed starting from the first end of the second shunt unit 317, passing through the second shunt unit 317 and the sampling resistor Ri to the ground line GND. In other words, the second shunt unit 317 is connected in series with the sampling resistor Ri, and there are no other branches in the circuit formed by the second shunt unit 317 and the sampling resistor Ri in series. In this case, the current value of the sampling resistor Ri is equal to the current value of the second shunt unit 317. The current sensing unit 314 has a detection terminal i1 and an output terminal d. The detection terminal i1 of the current sensing unit 314 is connected to the sampling resistor Ri, and the output terminal d of the current sensing unit 314 is connected to the input terminal e of the processing unit 312. When the current sensing unit 314 is in operation, it is used to perform the following steps S122 to S128.
[0130] S122 , the current sensing unit 314 detects the voltage value of the sampling resistor Ri.
[0131] S124 , the current sensing unit 314 determines the current value of the sampling resistor Ri according to the voltage value of the sampling resistor Ri.
[0132] The current sensing unit 314 can detect the voltage value of the sampling resistor Ri through the detection terminal i1 and determine the current value of the sampling resistor Ri based on the voltage value of the sampling resistor Ri. In the embodiment of the present application, the detection terminal i1 of the current sensing unit 314 may include a port i11 and a port i12. Port i11 is connected to the first end of the sampling resistor Ri, and port i12 is connected to the second end of the sampling resistor Ri, so that the current sensing unit 314 can detect the voltage value of the sampling resistor Ri. The current sensing unit 314 can be provided with the resistance value of the sampling resistor Ri. In this way, after the current sensing unit 314 detects the voltage value of the sampling resistor Ri, it divides the voltage value of the sampling resistor Ri by the resistance value of the sampling resistor Ri to obtain the current value of the sampling resistor Ri.
[0133] S126 , the current sensing unit 314 determines the current value of the current channel Ai according to the current value of the sampling resistor Ri and the target ratio.
[0134] S128 , the current sensing unit 314 sends the current value of the current channel Ai to the processing unit 312 .
[0135] As previously described, the current value of the sampling resistor Ri is known to be equal to the current value of the second shunt unit 317, and the target ratio is the ratio of the current value of the first shunt unit 332 to the current value of the second shunt unit 317. Therefore, the current sensing unit 314 multiplies the current value of the sampling resistor Ri by the target ratio to obtain the current value of the first shunt unit 332, and thus the current value of the current channel Ai. After obtaining the current value of the current channel Ai, the current sensing unit 314 outputs the current value of the current channel Ai to the processing unit 312.
[0136] The processing unit 312 is configured to execute the following step S222 : the processing unit 312 determines the power consumption of the i-th load module 450 according to the current value of the current channel Ai.
[0137] As mentioned above, the power consumption of the load module 40 may be at least one of the current value of the load module 40 , the power of the load module 40 , and the electric energy used by the load module 40 within a preset time period.
[0138] In the first embodiment, the power consumption of the i-th load module 450 is the current value of the i-th load module 450. In this case, after obtaining the current value of the current channel Ai, the processing unit 312 can directly determine the current value of the current channel Ai as the power consumption of the i-th load module 450, which is not further described.
[0139] In the second embodiment, the power consumption of the i-th load module 450 is the power of the i-th load module 450. In this case, when the processing unit executes step S222, specifically, the processing unit 312 detects the input voltage value of the current channel Ai, and determines the power consumption of the i-th load module 450 based on the current value and the input voltage value of the current channel Ai.
[0140] In this embodiment, the processing unit 312 can detect the output voltage of the energy storage module 150 using an analog-to-digital converter, which is the input voltage of the current channel Ai. After obtaining the current value and input voltage of the current channel Ai, the processing unit 312 multiplies the current value and input voltage of the current channel Ai by the value to obtain the power consumption of the i-th load module 450.
[0141] This step can be implemented by the processing unit 312 through a software algorithm or through a hardware structure. When this step is implemented through a hardware structure, the structure of the power consumption detection circuit 30 can be as shown in Figure 12. As shown in Figure 12, the processing unit 312 includes an analog-to-digital converter 3126 and a multiplier 3122. The first input terminal p of the multiplier 3122 is connected to the output terminal d of the current sensing unit 314, and is used to input the current value of the current channel Ai. The second input terminal q of the multiplier 3122 can detect the input voltage value of the current channel Ai through the analog-to-digital converter 3126. When the multiplier 3122 is working, it can multiply the data input by the first input terminal p and the data input by the second input terminal q, that is, multiply the current value of the current channel Ai and the input voltage value, so as to obtain the power of the i-th load module 450, that is, the power consumption of the i-th load module 450.
[0142] In the third embodiment, the power consumption of the i-th load module 450 is the power consumed by the i-th load module 450 within a preset time period, which will not be described in detail. In this embodiment, if step S222 is implemented by hardware, the structure of the power consumption detection circuit 30 can be as shown in FIG. 13 .
[0143] The following describes in detail the circuit structure and working principle of the power consumption detection circuit 30 in this implementation from three possible situations in conjunction with the accompanying drawings, and also describes in detail the process of the processing unit 312 determining the target ratio in step S126.
[0144] (1) In the first possible case, the target ratio is a constant value.
[0145] Figure 14 is a circuit diagram of a power consumption detection circuit 30 provided in an embodiment of the present application. As shown in Figure 14, in some embodiments, the second shunt unit 317 includes a first transistor T1. The first electrode of the first transistor T1 is connected to the first end of the first shunt unit 332. In other words, the first electrode of the first transistor T1 is the first end of the second shunt unit 317. The second electrode of the first transistor T1 is connected to the second end n of the voltage adjustment unit 319. In other words, the second electrode of the first transistor T1 is the second end of the second shunt unit 317.
[0146] The first shunt unit 332 includes multiple transistors. The term "multiple" here refers to an integer of two or more. For example, the first shunt unit 332 may include two transistors, five transistors, or eight transistors. In the embodiment shown in FIG14 , the first shunt unit 332 includes a second transistor T2, a third transistor T3, a fourth transistor T4, ..., and an eleventh transistor T11, for a total of ten transistors. The first electrodes of the multiple transistors in the first shunt unit 332 are all connected to the first end of the second shunt unit 317 and are used to connect to the energy storage module 150. In other words, the first electrodes of the multiple transistors in the first shunt unit 332 are connected together to form the first end of the first shunt unit 332. The second electrodes of the multiple transistors in the first shunt unit 332 are all connected to the first end m of the voltage regulation unit 319 and are used to connect to the input end of the i-th load module 450. In other words, the second electrodes of the multiple transistors in the first shunt unit 332 are all connected together to form the second end of the first shunt unit 332. In this possible scenario, the first transistor T1 , the second transistor T2 , the third transistor T3 , the fourth transistor T4 . . . the eleventh transistor T11 are all P-type MOSFETs.
[0147] The voltage regulating unit 319 includes an operational amplifier OA1 and a switching transistor T0. The first input terminal of the operational amplifier OA1 is connected to the second terminal of the first shunt unit 332. In other words, the first input terminal of the operational amplifier OA1 is the first terminal m of the voltage regulating unit 319. The second input terminal of the operational amplifier OA1 is connected to the second terminal of the second shunt unit 317 and the first terminal of the sampling resistor Ri. In other words, the second input terminal of the operational amplifier OA1 is the second terminal n of the voltage regulating unit 319. In the embodiment shown in FIG14 , the first input terminal of the operational amplifier OA1 is the inverting input terminal of the operational amplifier OA1, which is represented by the symbol "-". The second input terminal of the operational amplifier OA1 is the non-inverting input terminal of the operational amplifier OA1, which is represented by the symbol "+". The output terminal of the operational amplifier OA1 is connected to the control terminal of the switching transistor T0. The second terminal of the sampling resistor Ri is connected to the first terminal of the switching transistor T0, and the second terminal of the switching transistor T0 is connected to the ground line GND. The switching transistor T0 is an N-type MOSFET.
[0148] When the power consumption detection circuit 30 is operating, current flows from the energy storage module 150 through the on-state transistor in the first shunt unit 332 of the current channel Ai and into the i-th load module 450, forming a first current path. Current also flows from the energy storage module 150 through the second shunt unit 317, the sampling resistor Ri, and the switching transistor T0 and into the ground line GND, forming a second current path.
[0149] When the voltage regulating unit 319 is operating, if the voltage at the non-inverting input of the operational amplifier OA1 is greater than the voltage at the inverting input of the operational amplifier OA1, it indicates that the current flowing through the first transistor T1 is too small. In this case, the operational amplifier OA1 will output a high-level signal, thereby increasing the conductivity of the switch transistor T0, that is, increasing the current flowing through the first transistor T1. This will cause the voltage at the non-inverting input of the operational amplifier OA1 to decrease until the voltage at the non-inverting input of the operational amplifier OA1 is equal to the voltage at the inverting input of the operational amplifier OA1. Conversely, when the voltage at the non-inverting input of the operational amplifier OA1 is less than the voltage at the inverting input of the operational amplifier OA1, it indicates that the current flowing through the first transistor T1 is too large. In this case, the operational amplifier OA1 will output a low-level signal, thereby reducing the conductivity of the switch transistor T0, that is, reducing the current flowing through the first transistor T1. This will cause the voltage at the non-inverting input of the operational amplifier OA1 to increase until the voltage at the non-inverting input of the operational amplifier OA1 is equal to the voltage at the inverting input of the operational amplifier OA1.
[0150] In this embodiment, the current sensing unit 314 further has an output terminal k1 and an output terminal k2. The output terminal k1 of the current sensing unit 314 is connected to the control electrode of the first transistor T1 (the connection relationship is not shown in the figure). When the processing module 310 is operating, the output terminal k1 of the current sensing unit 314 can output a level signal, thereby controlling the first transistor T1 in the second shunt unit 317 to be turned on. The output terminal k2 of the current sensing unit 314 is connected to the control electrode of each of the multiple transistors in the first shunt unit 332 (the connection relationship is not shown in the figure). When the processing module 310 is operating, the output terminal k2 of the current sensing unit 314 can output a level signal, thereby controlling all transistors in the first shunt unit 332 to be turned on.
[0151] As can be seen from the above description, when the processing module 310 is working, the target ratio is:
[0152] For any transistor, the resistance between its first and second terminals is: Among them, R T is the resistance between the first and second electrodes of the transistor, μ is the carrier mobility of the transistor channel, Cox is the gate capacitance per unit area of the transistor, W is the channel width of the transistor, L is the channel length of the transistor, V GS is the voltage difference between the control electrode and the first electrode of the transistor, V THis the turn-on voltage of the transistor. In the embodiment of the present application, all transistors of the first shunt unit 332 and the second shunt unit 317 can be formed on the same silicon wafer, so that the carrier mobility, turn-on voltage, etc. of each transistor in the first shunt unit 332 and the second shunt unit 317 are substantially the same. In this case, the gate capacitance per unit area of all transistors in the first shunt unit 332 and the second shunt unit 317 is controlled to be the same, and the voltage difference between the control electrode and the first electrode of all transistors in the first shunt unit 332 and the second shunt unit 317 is the same when the processing module 310 is working, so that the target ratio is only related to the ratio of the channel width to the channel length of each transistor.
[0153] Combine and 14 , when the ratio of the channel width to the channel length of all transistors in the first shunt unit 332 and the second shunt unit 317 is the same, the target ratio is 10. In this embodiment, since the target ratio is a fixed value, the target ratio can be pre-stored in the current sensing unit 314 so that the current sensing unit 314 can call the target ratio when executing step S126.
[0154] In this possible case, in some embodiments not shown, the second shunt unit 317 may also include multiple transistors connected in parallel. When the processing module 310 is working, all the multiple transistors in the second shunt unit 317 are turned on, which will not be described in detail.
[0155] (2) In the second possible case, the target ratio is a non-constant value.
[0156] Figure 15 is a circuit diagram of another power consumption detection circuit 30 provided in an embodiment of the present application. In the embodiment shown in Figure 15, the structures of the first shunt unit 332, the second shunt unit 317, and the voltage adjustment unit 319 are the same as those in the embodiment shown in Figure 14 and are not described again.
[0157] Unlike the embodiment shown in FIG14 , in the embodiment shown in FIG15 , the current sensing unit 314 has multiple output terminals. The number of output terminals of the current sensing unit 314 is equal to the sum of the number of transistors in the first shunt unit 332 and the second shunt unit 317. Specifically, the current sensing unit 314 has output terminals k1, k2, k3, k4, and k11. The output terminal k1 of the current sensing unit 314 is connected to the control electrode of the first transistor T1 (the connection relationship is not shown in the figure); the output terminal k2 of the current sensing unit 314 is connected to the control electrode of the second transistor T2; the output terminal k3 of the current sensing unit 314 is connected to the control electrode of the third transistor T3; the output terminal k4 of the current sensing unit 314 is connected to the control electrode of the fourth transistor T4, and the output terminal k11 of the current sensing unit 314 is connected to the control electrode of the eleventh transistor T11. In this way, the current sensing unit 314 can control the on / off state of each of the multiple transistors in the first shunt unit 332. When the current sensing unit 314 is operating, the output terminal k1 of the current sensing unit 314 can output a level signal, thereby controlling the conduction of the first transistor T1 in the second shunt unit 317. At least one of the output terminals k2, k3, k4, ..., k11 of the current sensing unit 314 outputs a level signal, thereby controlling the conduction of at least one of the second transistor T2, third transistor T3, fourth transistor T4, ..., eleventh transistor T11 in the first shunt unit 332.
[0158] In this embodiment, when the current sensing unit 314 is operating, a target ratio can be determined based on the number of transistors in the first shunt unit 332 that are in a conductive state. Still assuming that the channel width to channel length ratios of all transistors in the first shunt unit 332 and the second shunt unit 317 are the same, the target ratio is 2 when two transistors in the first shunt unit 332 are conductive; 3 when three transistors in the first shunt unit 332 are conductive; and 10 when ten transistors in the first shunt unit 332 are conductive.
[0159] In this embodiment, the current sensing unit 314 is further configured to adjust the number of transistors in the first shunt unit 332 that are in an on-state according to the voltage of the sampling resistor Ri. By adjusting the number of transistors in the first shunt unit 332 that are in an on-state, the target ratio can be adjusted.
[0160] The current sensing unit 314 can maintain the voltage of the sampling resistor Ri within a preset voltage range by adjusting the number of transistors in the first shunt unit 332 that are in a conductive state, that is, by adjusting the target ratio. Specifically, a preset voltage range can be pre-set within the current sensing unit 314, which is the target voltage range of the sampling resistor Ri. That is, when the processing module 310 is operating, it is necessary to control the voltage of the sampling resistor Ri within the preset voltage range. When the current sensing unit 314 detects a large voltage across the sampling resistor Ri, it indicates that a large current is flowing through the sampling resistor Ri, that is, a large current is flowing through the first shunt unit 332. In this case, while the current flowing through the first shunt unit 332 remains unchanged, the current sensing unit 314 can increase the target ratio by increasing the number of transistors in the first shunt unit 332 that are in a conductive state, thereby reducing the current flowing through the sampling resistor Ri, and thus reducing the voltage across the sampling resistor Ri, thereby maintaining the voltage of the sampling resistor Ri within the preset voltage range. In this way, current detection accuracy can be guaranteed while energy loss caused by the sampling resistor Ri can be reduced. Similarly, when the voltage across the sampling resistor Ri detected by the current sensing unit 314 is low, this indicates that the current flowing through the sampling resistor Ri is low, and therefore the current flowing through the first shunt unit 332 is low. In this case, while the current flowing through the first shunt unit 332 remains unchanged, the current sensing unit 314 can reduce the target ratio by reducing the number of transistors in the first shunt unit 332 that are in the on state, thereby increasing the current flowing through the sampling resistor Ri and, therefore, increasing the voltage across the sampling resistor Ri, thereby maintaining the voltage across the sampling resistor Ri within a preset voltage range. In this way, current detection accuracy can be guaranteed.
[0161] In this possible case, in some embodiments not shown, at least two of the multiple transistors in the first shunt unit 332 may have different ratios of channel width to channel length.
[0162] (3) In the third possible case, the target ratio is a non-constant value.
[0163] FIG16 is a circuit diagram of another power consumption detection circuit 30 provided in an embodiment of the present application. Unlike the embodiment shown in FIG15 , in the embodiment shown in FIG16 , the second shunt unit 317 includes, in addition to the first transistor T1, a twelfth transistor T12 and a thirteenth transistor T13. The first electrodes of the first transistor T1, the twelfth transistor T12, and the thirteenth transistor T13 are connected together to form a first end of the second shunt unit 317; the second electrodes of the first transistor T1, the twelfth transistor T12, and the thirteenth transistor T13 are connected together to form a second end of the second shunt unit 317. The current sensing unit 314 further has output terminals k12 and k13. The output terminal k12 of the current sensing unit 314 is connected to the control terminal of the twelfth transistor T12, and the output terminal k13 of the current sensing unit 314 is connected to the control terminal of the thirteenth transistor T13. In this embodiment, the current sensing unit 314 is configured to adjust the target ratio by adjusting the number of transistors in the first shunt unit 332 that are in an on-state, and / or by adjusting the number of transistors in the second shunt unit 317 that are in an on-state. This increases the adjustment range of the target ratio.
[0164] In this embodiment, when the current sensing unit 314 is in operation, it is further configured to determine a target ratio according to the number of transistors in the first shunt unit 332 that are in the on state and the number of transistors in the second shunt unit 317 that are in the on state.
[0165] Figures 17 and 18 are schematic diagrams of the internal structures of two different terminal devices 10 provided in embodiments of the present application. As shown in Figures 17 and 18, in some embodiments, any current channel further includes a switching device. The switching device is connected in series with other devices in the current channel.
[0166] Specifically, the terminal device 10 shown in FIG17 builds upon the structure shown in FIG7 , with a switch device added to each current channel. As shown in FIG17 , when any current channel includes a sampling resistor and a switch device, the sampling resistor and switch device in that current channel are connected in series. Taking current channel A1 as an example, current channel A1 may include a sampling resistor R1 and a switch device K1. The switch device K1 is a three-terminal switch device. The switch device K1 has a first terminal, a second terminal, and a control terminal. The first terminal of the switch device K1 is connected to the energy storage module 150, and the second terminal of the switch device K1 is connected to the first terminal of the sampling resistor R1. In other words, the first terminal of the sampling resistor R1 is connected to the energy storage module 150 via the switch device K1. The control terminal of the switch device K1 is connected to the processing module 310, enabling the processing module 310 to control the on and off of the switch device K1. Thus, when the processing module 310 controls the switch device K1 to turn on, the energy storage module 150 can supply power to the first load module 410 through the current channel A1. When the processing module 310 controls the switch device K1 to turn off, the energy storage module 150 cannot supply power to the first load module 410. Similarly, the current channel A2 can also include a sampling resistor R2 and a switch device K2 connected in series; the current channel A3 can also include a sampling resistor R3 and a switch device K3 connected in series, and the current channel AN can also include a sampling resistor RN and a switch device KN connected in series. The processing module 310 can independently control the conduction and disconnection of any of the switch devices K1, K2, K3, ..., and KN.
[0167] In some specific embodiments, the switching device may be a metal oxide semiconductor field effect transistor (MOSFET), for example, a P-type MOSFET. In this case, the first terminal of the switching device is the source of the P-type MOSFET, the second terminal of the switching device is the drain of the P-type MOSFET, and the control terminal of the switching device is the gate of the P-type MOSFET.
[0168] In this embodiment, the processing module 310 is further configured to execute the following steps S310 and S320 when in operation.
[0169] S310 , if the processing module 310 receives the first instruction, the processing module 310 controls the switch device to be turned on.
[0170] S320: If the processing module 310 receives the second instruction, the processing module 310 controls the switch device to turn off.
[0171] Steps S310 and S320 are not sequential. The first instruction is used to instruct the terminal device 10 to power on or to instruct the load module 40 corresponding to the current channel to operate. That is, in the first possible scenario, when the processing module 310 receives the instruction to power on the terminal device 10, the processing module 310 can control the switching devices in each current channel to conduct, and the energy storage module 150 then supplies power to all load modules 40. In the second possible scenario, when the processing module 310 receives the instruction to operate the load module 40 corresponding to the current channel, the processing module 310 can control the switching devices in the current channel to conduct, and the energy storage module 150 then supplies power to the load module 40 that needs to operate. For example, when the processing module 310 receives the instruction to operate the first load module 410, it controls the switching device K1 to conduct, thereby causing the energy storage module 150 to supply power to the first load module 410 through the current channel A1, and the processing module 310 can detect the power consumption of the first load module 410. When the processing module 310 receives an instruction for the Nth load module 440 to operate, it controls the switch device KN to turn on, so that the energy storage module 150 supplies power to the Nth load module 440 through the current channel AN, and the processing module 310 can detect the power consumption of the Nth load module 440.
[0172] The second instruction is used to instruct the terminal device 10 to shut down or instruct the load module 40 corresponding to a current channel to terminate operation. That is, in the first possible scenario, when the processing module 310 receives the instruction to "shut down the terminal device 10," the processing module 310 may control the switching devices in each current channel to turn off. In this case, the energy storage module 150 cannot supply power to all load modules 40. In the second possible scenario, when the processing module 310 receives the instruction to "terminate the operation of the load module 40 corresponding to the current channel," the processing module 310 may control the switching devices in that current channel to turn off. In this case, the energy storage module 150 no longer supplies power to the load module 40 that has terminated operation. For example, when the processing module 310 receives the instruction to terminate the operation of the first load module 410, it controls the switching device K1 to turn off, thereby preventing the energy storage module 150 from supplying power to the first load module 410 through current channel A1. When the processing module 310 receives the instruction to terminate the operation of the Nth load module 440, it controls the switching device KN to turn off, thereby preventing the energy storage module 150 from supplying power to the Nth load module 440 through current channel AN.
[0173] In some embodiments, as shown in FIG17 , to perform steps S310 and S320, processing module 310 further includes a control unit 316 connected to processing unit 312. Processing unit 312 has an output terminal f. Control unit 316 has an input terminal g and an output terminal. Output terminal f of processing unit 312 is connected to input terminal g of control unit 316, and the output terminal of control unit 316 is connected to the control terminal of the switching device in each current channel.
[0174] In this embodiment, the control unit 316 may have multiple output terminals. For example, in the embodiment shown in FIG17 , the output terminals of the control unit 316 include output terminal a2, output terminal b2, output terminal c2, and output terminal n2. For example, if the switch devices K1, K2, K3, ..., and KN are all P-type MOSFETs, then when the processing module 310 is operating, in the first possible scenario, the processing unit 312 receives a command to "power on the terminal device 10." In this case, the processing unit 312 may output a first signal to the control unit 316. Upon receiving the first signal, the control unit 316 outputs low-level signals from output terminals a2, b2, c2, and n2 to control the switch devices K1, K2, K3, and KN to conduct, thereby causing the energy storage module 150 to supply power to all load modules 40. In the second possible scenario, the processing unit 312 receives an instruction to activate the first load module 410 (corresponding to current channel A1). At this point, the processing unit 312 can output a second signal to the control unit 316. Upon receiving the second signal, the control unit 316 outputs a low-level signal from output terminal a2 to control the switch K1 to conduct, thereby enabling the energy storage module 150 to supply power to the first load module 410 via current channel A1. In a third possible scenario, the processing unit 312 receives a command to shut down the terminal device 10. At this point, the processing unit 312 can output a third signal to the control unit 316. Upon receiving the third signal, the control unit 316 outputs high-level signals from output terminals a2, b2, c2, and n2 to control the switches K1, K2, K3, and KN to shut down, thereby preventing the energy storage module 150 from supplying power to all load modules 40. In a fourth possible scenario, the processing unit 312 receives a command (corresponding to current channel A1) for the first load module 410 to terminate operation. At this point, the processing unit 312 can output a fourth signal to the control unit 316. When the control unit 316 receives the fourth signal, it outputs a high level signal from the output terminal a2 to control the switch device K1 to turn off, so that the energy storage module 150 no longer supplies power to the first load module 410 through the current channel A1.
[0175] In some specific embodiments, when the processing unit 312 receives a command to "shut down the terminal device 10," it can also control the current sensing unit 314 and the control unit 316 to stop operating. In this case, only the circuit in the processing unit 312 that receives the command to "power on the terminal device 10" (i.e., the power-on trigger circuit) is operational. In other words, when the processing unit 312 receives a command to "shut down the terminal device 10," only the power-on trigger function remains active, and other functions cease operation. This maximizes energy conservation.
[0176] The power consumption detection circuit 30 in the terminal device 10 shown in Figure 18 is based on the structure shown in Figure 11, with a switching device added to each current channel. As shown in Figure 18, when the current channel Ai includes a first shunt unit 332 and a switching device Ki, the first shunt unit 332 and the switching device Ki in the current channel Ai are connected in series. Similarly, the switching device Ki is a three-terminal switching device. The switching device Ki has a first terminal, a second terminal, and a control terminal. The first terminal of the switching device Ki is connected to the energy storage module 150, and the second terminal of the switching device Ki is connected to the first terminal of the first shunt unit 332. In other words, the first terminal of the first shunt unit 332 is connected to the energy storage module 150 through the switching device Ki. The control terminal of the switching device Ki is connected to the processing module 310, so that the processing module 310 can control the conduction and shutdown of the switching device Ki. Thus, when the processing module 310 controls the switch device Ki and the first current diversion unit 332 to be turned on, the energy storage module 150 can supply power to the i-th load module 450 through the current channel Ai. When the processing module 310 controls the switch device Ki to be turned off, the energy storage module 150 cannot supply power to the i-th load module 450. The switch device Ki can also be a P-type MOSFET, which will not be described in detail.
[0177] In this embodiment, the processing module 310 is also used to execute the above steps S310 to S320 when in operation. In this case, step S310 specifically includes: when the processing module 310 receives a command to "power on the terminal device 10" or a command to "start the i-th load module 450", the processing module 310 controls the switch device Ki to turn on. Step S320 specifically includes: when the processing module 310 receives a command to "power off the terminal device 10" or a command to "stop the i-th load module 450", the processing module 310 controls the switch device Ki to turn off.
[0178] In some embodiments, as shown in FIG18 , to perform steps S310 and S320 described above, the processing module 310 further includes a control unit 316 connected to the processing unit 312. The processing unit 312 has an output terminal f. The control unit 316 has an input terminal g and an output terminal i2. The output terminal i2 of the control unit 316 is connected to the control terminal of the switching device Ki in the current channel Ai. For example, if the switching device Ki is a P-type MOSFET, when the processing module 310 is operating, in the first possible scenario, the processing unit 312 receives a command to "power on the terminal device 10" or a command to "start operation of the i-th load module 450." In this case, the processing unit 312 may output a fifth signal to the control unit 316. Upon receiving the fifth signal, the control unit 316 outputs a low-level signal from the output terminal i2 to turn on the switching device Ki. Simultaneously, the current sensing unit 314 controls the first shunt unit 332 and the second shunt unit 317 to turn on, thereby enabling the energy storage module 150 to supply power to the i-th load module 450. In the second possible scenario, the processing unit 312 receives a command to "shut down the terminal device 10" or a command to "stop the i-th load module 450." In this case, the processing unit 312 may output a sixth signal to the control unit 316. Upon receiving the sixth signal, the control unit 316 outputs a high-level signal from output terminal i2 to control the switching device Ki to turn off. Simultaneously, the current sensing unit 314 controls the first shunt unit 332 and the second shunt unit 317 to turn off, thereby preventing the energy storage module 150 from supplying power to the i-th load module 450 via the current channel Ai.
[0179] In this embodiment, the processing unit 312 can also output a signal to the current sensing unit 314. For example, the input terminal e of the processing unit 312 can also function as an output signal, and the output terminal d of the current sensing unit 314 can also function as an input signal. While the processing unit 312 outputs the fifth signal to the control unit 316, it also outputs the seventh signal to the current sensing unit 314. Upon receiving the seventh signal, the current sensing unit 314 begins operating to control the first shunt unit 332 and the second shunt unit 317 to conduct. While the processing unit 312 outputs the sixth signal to the control unit 316, it also outputs the eighth signal to the current sensing unit 314. Upon receiving the eighth signal, the current sensing unit 314 controls the first shunt unit 332 and the second shunt unit 317 to shut down.
[0180] It is understood that in the terminal device 10 shown in FIG18 , when the circuit structure of the power consumption detection circuit 30 is as shown in FIG14 , FIG15 , or FIG16 , and the processing unit 312 can also output a signal to the current sensing unit 314 , the on-off control of the current channel Ai can be achieved even without the switch device Ki provided in the current channel Ai. Specifically, in the first possible scenario, the processing unit 312 receives a command to "power on the terminal device 10" or a command to "start operation of the i-th load module 450." In this case, the processing unit 312 can output a seventh signal to the current sensing unit 314. Upon receiving the seventh signal, the current sensing unit 314 controls the first shunt unit 332 and the second shunt unit 317 to conduct. In the second possible scenario, the processing unit 312 receives a command to "power off the terminal device 10" or a command to "stop operation of the i-th load module 450." In this case, the processing unit 312 can output an eighth signal to the current sensing unit 314. When the current sensing unit 314 receives the eighth signal, it controls the first shunt unit 332 and the second shunt unit 317 to be turned off.
[0181] The power consumption detection circuit 30 provided in the embodiment of the present application has at least the following beneficial effects: (1) The power consumption detection circuit 30 can be applied to the terminal device 10 to detect the power consumption of each load module 40 in the terminal device 10. Based on this, the endurance of the terminal device 10 can be detected in real time. (2) When the power consumption detection circuit 30 is applied to the terminal device 10, what is detected is the power consumption of each load module 40, that is, the total power consumption of the voltage conversion unit and the load unit. Since the voltage conversion unit connected to the load unit needs to work when the load unit is working, compared with only detecting the power consumption of the load unit, detecting the total power consumption of the voltage conversion unit and the load unit can obtain more real and accurate power consumption data, thereby more accurately detecting the endurance of the terminal device 10. (3) The power consumption detection circuit 30 is internally integrated with a processing module 310, so that the operation of the power consumption detection circuit 30 does not need to rely on the system-level chip in the terminal device 10. In this way, when the terminal device 10 is in the off state, the power consumption detection circuit 30 can also operate independently. (4) When the power consumption detection circuit 30 is working, the processing module 310 can simultaneously detect the current value of each current channel in the multiple current channels, thereby obtaining the power consumption of the load module 40 corresponding to each current channel. In this way, it can be ensured that the sum of the multiple current values detected by the processing module 310 is equal to the total current value output by the energy storage module 150 to each load module 40, so that the endurance of the terminal device 10 can be detected more accurately. (5) The current channel in the power consumption detection circuit 30 is connected between the energy storage module 150 and the input end of the voltage conversion unit, and the power loss is less. (6) When the processing unit 312 receives the instruction of "shut down the terminal device 10", only the power-on trigger function is retained, and other functions stop working. In this way, power can be saved to the maximum extent. (7) The processing module 310 in the power consumption detection circuit 30 is powered separately by the energy storage module 150, and the power consumption of the power consumption detection circuit 30 itself is not included in the power consumption of the load module 40 detected by the processing module 310. In this way, the power consumption data of each load module 40 when the terminal device 10 is working can be obtained more realistically and accurately, thereby more accurately detecting the endurance of the terminal device 10. (8) When the target ratio of the first shunt unit 332 to the second shunt unit 317 is greater than 1, the current value in the second shunt unit 317 is less than the current value in the first shunt unit 332. In this case, compared with directly detecting the current value of the first shunt unit 332, the loss caused by the sampling resistor can be reduced by detecting the current value of the second shunt unit 317 and calculating the current value of the first shunt unit 332 accordingly. At the same time, when the target ratio of the first shunt unit 332 to the second shunt unit 317 is adjustable, the current detection accuracy can also be guaranteed. (9) The calculation process of the processing module 310 can be implemented by a hardware structure, which can save electric energy and reduce the power consumption of the power consumption detection circuit 30 compared to the implementation through a software algorithm.(10) The processing module 310 can be triggered to start working by the third instruction and to end working by the fourth instruction, thereby avoiding the waste of power caused by the continuous operation of the processing module 310. (11) In a load module 40, a voltage conversion unit can be connected to multiple load units, which can reduce the number of current channels and achieve the purpose of cost saving.
[0182] The present application also provides a power consumption detection chip, including the power consumption detection circuit 30 described in any of the above embodiments. The power consumption detection chip can be a chip that encapsulates the power consumption detection circuit 30 described in any of the above embodiments. The power consumption detection chip has the advantages of small size, low cost, and high accuracy.
[0183] Specifically, the power consumption detection circuit 30 is applied to a terminal device 10. The terminal device 10 includes an energy storage module 150 and multiple load modules 40. Each load module 40 includes a voltage conversion unit and a load unit connected in series. In each load module 40, the voltage conversion unit is connected between the energy storage module 150 and the load unit, so that the electrical energy output by the energy storage module 150 to the load module 40 is output to the load unit through the voltage conversion unit.
[0184] The power consumption detection circuit 30 includes multiple current channels and a processing module 310. The number of current channels is equal to the number of load modules 40 in the terminal device 10, and the multiple current channels correspond one-to-one to the multiple load modules 40. The input terminals of the multiple current channels are all used to connect to the energy storage module 150, and the output terminal of each current channel is used to connect to the input terminal of the corresponding load module 40. In other words, the energy storage module 150 supplies power to the corresponding load module 40 through the current channels.
[0185] The detection terminal of the processing module 310 is connected to each current channel. The processing module 310 is used to detect the current value of each current channel among the multiple current channels and determine the power consumption of the corresponding load module 40 according to the current value of each current channel.
[0186] In some embodiments, the processing module 310 is configured to: if a third instruction is received, detect the current value of each current channel and determine the power consumption of the corresponding load module 40 based on the current value of each current channel; and if a fourth instruction is received, stop detecting the current value of each current channel. The third instruction is used to instruct the processing module 310 to start detecting the power consumption of the load module 40 corresponding to each current channel. The fourth instruction is used to instruct the processing module 310 to stop detecting the power consumption of the load module 40 corresponding to each current channel. That is, in this embodiment, the processing module 310 will detect the current value of each current channel and determine the power consumption of the corresponding load module 40 based on the current value of each current channel only after receiving the third instruction. After receiving the fourth instruction, the processing module 310 will stop detecting the current value of each current channel, and at this time, the processing module 310 no longer detects the power consumption of the load module 40 corresponding to each current channel.
[0187] In some embodiments, the load module 40 corresponding to any one of the multiple current channels includes a voltage conversion unit and multiple load units. The output end of a current channel is used to connect to the input end of a voltage conversion unit, and the output end of a voltage conversion unit is connected to multiple load units. The processing module 310 is also used to: when multiple load units are working simultaneously, determine the power consumption of one load unit among the multiple load units based on the current value of a current channel and a preset ratio. The preset ratio is the ratio of the power consumption of one load unit to the power consumption of the load module 40 corresponding to one current channel when multiple load units are working simultaneously. In this way, a load module 40 can include multiple load units, which can reduce the number of current channels to achieve the purpose of cost saving.
[0188] The specific structure and working process of the power consumption detection circuit 30 are described below from two possible implementation modes.
[0189] In a first possible implementation, any one of the multiple current channels includes a sampling resistor, a first end of which is connected to the energy storage module 150 , and a second end of which is connected to an input end of the load module 40 corresponding to the current channel.
[0190] In this embodiment, the processing module 310 includes a current sensing unit 314 and a processing unit 312. The detection terminal of the current sensing unit 314 is connected to the sampling resistor, and the output terminal of the current sensing unit 314 is connected to the input terminal of the processing unit 312. The current sensing unit 314 is configured to detect the voltage value of the sampling resistor, determine the current value of the current channel based on the voltage value of the sampling resistor, and send the current value of the current channel to the processing unit 312. The processing unit 312 is configured to determine the power consumption of the corresponding load module 40 based on the current value of the current channel.
[0191] In some embodiments, the power consumption of the load module 40 may be at least one of the current value of the load module 40 , the power of the load module 40 , and the electrical energy used by the load module 40 within a preset time period.
[0192] When the power consumption of the load module 40 is the current value of the load module 40, as previously described, the output of each current channel is connected to the input of the corresponding load module 40. In other words, the current value of each current channel is the current value of the corresponding load module 40. Therefore, the current value of any current channel is the power consumption of the corresponding load module 40.
[0193] When the power consumption of the load module 40 is the power of the load module 40 and the electrical energy used by the load module 40 within a preset time period, the processing unit 312 is also used to: detect the input voltage value of a current channel, and determine the power consumption of the corresponding load module 40 based on the current value and input voltage value of a current channel.
[0194] Specifically, when the power consumption of the load module 40 is the power of the load module 40, the processing unit 312 may include a multiplier. The first input terminal of the multiplier is used to input the current value of a current channel, and the second input terminal of the multiplier is used to input the input voltage value of the current channel. The multiplier is used to multiply the current value of the current channel and the input voltage value to obtain the power of the corresponding load module 40, that is, the power consumption of the corresponding load module 40.
[0195] When the power consumption of the load module 40 is the electrical energy used by the load module 40 within a preset duration, the processing unit 312 may include a multiplier and an integrator. The first input of the multiplier is used to input the current value of a current channel, the second input of the multiplier is used to input the input voltage value of a current channel, and the output of the multiplier is connected to the input of the integrator. The multiplier is used to multiply the current value of a current channel and the input voltage value to obtain the power of the corresponding load module 40. The integrator is used to integrate the power of the load module 40 to obtain the electrical energy used by the load module 40 within the preset duration, that is, to obtain the power consumption of the load module 40.
[0196] In a second possible implementation, any one of the multiple current channels includes a first shunt unit 332. A first end of the first shunt unit 332 is used to connect to the energy storage module 150, and a second end of the first shunt unit 332 is used to connect to the input end of the load module 40 corresponding to the current channel.
[0197] In this embodiment, the processing module 310 includes a second shunt unit 317, a voltage regulating unit 319, a sampling resistor, a current sensing unit 314, and a processing unit 312. The first end of the second shunt unit 317 is connected to the first end of the first shunt unit 332. The first end of the voltage regulating unit 319 is connected to the second end of the first shunt unit 332, and the second end of the voltage regulating unit 319 is connected to the second end of the second shunt unit 317. When the processing module 310 is operating, the first and second ends of the voltage regulating unit 319 have the same voltage value. The first end of the sampling resistor is connected to the second end of the second shunt unit 317, and the second end of the sampling resistor is connected to the ground line GND. The detection end of the current sensing unit 314 is connected to the sampling resistor, and the output end of the current sensing unit 314 is connected to the input end of the processing unit 312.
[0198] The current sensing unit 314 is configured to detect the voltage value of the sampling resistor, determine the current value of the sampling resistor based on the voltage value of the sampling resistor, determine the current value of the current channel based on the current value of the sampling resistor and a target ratio, and send the current value of the current channel to the processing unit 312. The processing unit 312 is configured to determine the power consumption of the corresponding load module 40 based on the current value of the current channel.
[0199] The target ratio is the ratio of the current value of the first shunt unit 332 to the current value of the second shunt unit 317. When "determining the current value of the current channel based on the current value of the sampling resistor and the target ratio," the processing unit 312 may multiply the current value of the sampling resistor by the target ratio to obtain the current value of the current channel.
[0200] In some embodiments, any current channel further includes a switching device. The switching device is connected in series with other devices in the current channel. That is, when any current channel includes a sampling resistor and a switching device, the sampling resistor and the switching device in the current channel are connected in series. When any current channel includes a first shunt unit 332 and a switching device, the first shunt unit 332 and the switching device in the current channel are connected in series.
[0201] The control terminal of the switching device is connected to the output terminal of the processing module 310. The processing module 310 is further configured to: upon receiving a first instruction, control the switching device to conduct; upon receiving a second instruction, control the switching device to shut down. The first instruction is used to instruct the terminal device 10 to power on or to instruct the load module 40 corresponding to the current channel to operate. The second instruction is used to instruct the terminal device 10 to power off or to instruct the load module 40 corresponding to a current channel to terminate operation.
[0202] In some embodiments, the power consumption detection circuit 30 further includes a power supply channel 320. The input end of the power supply channel 320 is connected to the energy storage module 150, and the output end of the power supply channel 320 is connected to the power supply end of the processing module 310. In other words, the processing module 310 in the power consumption detection circuit 30 is powered solely by the energy storage module 150, and the power consumption of the power consumption detection circuit 30 itself is not included in the power consumption of the load module 40 detected by the processing module 310. In this way, the power consumption data of each load module 40 when the terminal device 10 is in operation can be obtained more accurately, thereby more precisely detecting the endurance of the terminal device 10.
[0203] The present application also provides a terminal device 10, comprising an energy storage module 150, a plurality of load modules 40, and a power consumption detection circuit 30 or a power consumption detection chip as in any of the above embodiments. Each load module 40 comprises a voltage conversion unit and a load unit connected in series. The plurality of voltage conversion units constitute a PMU. Any one of the plurality of load units may be a CPU, a GPU, a baseband processor, an internal memory, an external memory, a display screen, a camera, a speaker, or a communication module.
[0204] The terminal device 10, which uses the power consumption detection circuit 30 or power consumption detection chip in the above embodiment, can detect the power consumption of each load module 40. Based on this, the power consumption of each application (APP) in the terminal device 10 can be detected when it is working, and the power consumption of the terminal device 10 in any working scenario (such as gaming scenario, video playback scenario, e-book reading scenario, lock screen listening to music scenario, etc.) can also be detected.
[0205] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A power consumption detection circuit, applied to a terminal device, wherein the terminal device comprises an energy storage module and a plurality of load modules, wherein each of the plurality of load modules comprises a voltage conversion unit and a load unit connected in series; It is characterized in that The power consumption detection circuit comprises: a plurality of current channels and a processing module; The multiple current channels correspond to the multiple load modules one by one, the input ends of the multiple current channels are all used to connect to the energy storage module, and the output end of each current channel in the multiple current channels is used to connect to the input end of the corresponding load module; The detection end of the processing module is connected to each of the multiple current channels, and the processing module is used to: detect the current value of each of the multiple current channels, and determine the power consumption of the corresponding load module according to the current value of each current channel.
2. The power consumption detection circuit according to claim 1, characterized in that: Any one of the multiple current channels includes a sampling resistor, a first end of the sampling resistor is used to be connected to the energy storage module, and a second end of the sampling resistor is used to be connected to an input end of a load module corresponding to the one current channel.
3. The power consumption detection circuit according to claim 2, characterized in that: The processing module includes: a current sensing unit and a processing unit; The detection end of the current sensing unit is connected to the sampling resistor, and the output end of the current sensing unit is connected to the input end of the processing unit; The current sensing unit is used to: detect the voltage value of the sampling resistor, determine the current value of the one current channel according to the voltage value of the sampling resistor, and send the current value of the one current channel to the processing unit; The processing unit is used to determine the power consumption of the corresponding load module according to the current value of the one current channel.
4. The power consumption detection circuit according to claim 3, characterized in that: The processing unit is also used to: detect the input voltage value of the current channel, and determine the power consumption of the corresponding load module according to the current value and input voltage value of the current channel; the power consumption of the load module includes at least one of the power of the load module and the electric energy used by the load module within a preset time period.
5. The power consumption detection circuit according to claim 4, characterized in that: The processing unit includes: a multiplier, wherein the first input terminal of the multiplier is used to input the current value of the current channel, the second input terminal of the multiplier is used to input the input voltage value of the current channel, and the multiplier is used to multiply the current value of the current channel and the input voltage value to obtain the power of the corresponding load module.
6. The power consumption detection circuit according to claim 4, characterized in that: The processing unit includes: a multiplier and an integrator; The first input terminal of the multiplier is used to input the current value of the one current channel, the second input terminal of the multiplier is used to input the input voltage value of the one current channel, and the output terminal of the multiplier is connected to the input terminal of the integrator; The multiplier is used to multiply the current value of the current channel and the input voltage value to obtain the power of the corresponding load module, and the integrator is used to integrate the power of the load module to obtain the electric energy used by the load module within a preset time length.
7. The power consumption detection circuit according to claim 1, characterized in that: Any one of the multiple current channels includes a first shunt unit, a first end of the first shunt unit is used to connect to the energy storage module, and a second end of the first shunt unit is used to connect to an input end of a load module corresponding to the one current channel.
8. The power consumption detection circuit according to claim 7, characterized in that: The processing module includes: a second current shunting unit, a voltage regulating unit, a sampling resistor, a current sensing unit and a processing unit; The first end of the second shunt unit is connected to the first end of the first shunt unit; the first end of the voltage regulating unit is connected to the second end of the first shunt unit, and the second end of the voltage regulating unit is connected to the second end of the second shunt unit; when the processing module is working, the voltage value of the first end and the second end of the voltage regulating unit is the same; the first end of the sampling resistor is connected to the second end of the second shunt unit, and the second end of the sampling resistor is used to be connected to the ground wire; The detection end of the current sensing unit is connected to the sampling resistor, and the output end of the current sensing unit is connected to the input end of the processing unit; The current sensing unit is used to: detect the voltage value of the sampling resistor, determine the current value of the sampling resistor according to the voltage value of the sampling resistor, determine the current value of the one current channel according to the current value of the sampling resistor and a target ratio, wherein the target ratio is the ratio of the current value of the first shunt unit to the current value of the second shunt unit, and send the current value of the one current channel to the processing unit; The processing unit is used to determine the power consumption of the corresponding load module according to the current value of the one current channel.
9. The power consumption detection circuit according to claim 8, characterized in that: The processing unit is used for: multiplying the current value of the sampling resistor by the target ratio to obtain the current value of the one current channel.
10. The power consumption detection circuit according to any one of claims 2 to 9, characterized in that: The one current channel further includes a switch device, and the switch device is connected in series with other devices in the one current channel; The control end of the switch device is connected to the output end of the processing module, and the processing module is also used to: if a first instruction is received, control the switch device to be turned on, and the first instruction is used to instruct the terminal device to turn on or instruct the load module corresponding to the one current channel to work.
11. The power consumption detection circuit according to claim 10, characterized in that: The processing module is further configured to: control the switch device to turn off if a second instruction is received, wherein the second instruction is configured to instruct the terminal device to shut down or instruct a load module corresponding to the one current channel to terminate operation.
12. The power consumption detection circuit according to any one of claims 1 to 9, characterized in that: The processing module is used to: if a third instruction is received, detect the current value of each current channel, determine the power consumption of the corresponding load module according to the current value of each current channel, and the third instruction is used to instruct the processing module to start detecting the power consumption of the load module corresponding to each current channel.
13. The power consumption detection circuit according to any one of claims 1 to 9, characterized in that: The processing module is further configured to stop detecting the current value of each current channel if a fourth instruction is received, wherein the fourth instruction is configured to instruct the processing module to stop detecting the power consumption of the load module corresponding to each current channel.
14. The power consumption detection circuit according to any one of claims 1 to 9, characterized in that: The load module corresponding to any one of the multiple current channels includes a voltage conversion unit and multiple load units, the output end of the one current channel is used to be connected to the input end of the one voltage conversion unit, and the output end of the one voltage conversion unit is connected to the multiple load units; The processing module is also used to: when the multiple load units are working simultaneously, determine the power consumption of one load unit among the multiple load units according to the current value of the one current channel and a preset ratio, and the preset ratio is the ratio of the power consumption of the one load unit to the power consumption of the load module corresponding to the one current channel when the multiple load units are working simultaneously.
15. The power consumption detection circuit according to any one of claims 1 to 9, characterized in that: The power consumption detection circuit further includes: a power supply channel, an input end of the power supply channel is used to be connected to the energy storage module, and an output end of the power supply channel is connected to a power supply end of the processing module.
16. A power consumption detection chip, characterized in that: The method comprises a power consumption detection circuit as claimed in any one of claims 1 to 15.
17. A terminal device, characterized in that: It comprises an energy storage module, a plurality of load modules, and a power consumption detection circuit as described in any one of claims 1 to 15 or a power consumption detection chip as described in claim 16.
18. The terminal device according to claim 17, characterized in that: The load unit of any one of the multiple load modules includes one of a central processing unit, a graphics processor, a baseband processor, a speaker, and a display screen; The voltage conversion units in the plurality of load modules constitute a power management module.
19. A power consumption detection circuit, applied to a terminal device, the terminal device being a mobile phone or a tablet computer, the terminal device comprising an energy storage module and a plurality of load modules, each of the plurality of load modules comprising a voltage conversion unit and a load unit connected in series; It is characterized in that The power consumption detection circuit comprises: a plurality of current channels and a processing module; The multiple current channels correspond to the multiple load modules one by one, the input ends of the multiple current channels are all used to connect to the energy storage module, and the output end of each current channel in the multiple current channels is used to connect to the input end of the corresponding load module; The detection end of the processing module is connected to each current channel of the multiple current channels, and the processing module is used to: simultaneously detect the current value of each current channel of the multiple current channels, and detect the input voltage value of any current channel of the multiple current channels; multiply the current value of each current channel by the input voltage value of any current channel to obtain the power consumption of the load module corresponding to each current channel; wherein the power consumption of any load module obtained includes the power consumption of the current channel corresponding to any load module, and the power consumption of each load module of the multiple load modules is used to determine the battery life of the terminal device.
20. The power consumption detection circuit according to claim 19, characterized in that: Any one of the multiple current channels includes a sampling resistor, a first end of the sampling resistor is used to be connected to the energy storage module, and a second end of the sampling resistor is used to be connected to an input end of a load module corresponding to the one current channel.
21. The power consumption detection circuit according to claim 20, characterized in that: The processing module includes: a current sensing unit and a processing unit; The detection end of the current sensing unit is connected to the sampling resistor, and the output end of the current sensing unit is connected to the input end of the processing unit; The current sensing unit is used to: detect the voltage value of the sampling resistor, determine the current value of the one current channel according to the voltage value of the sampling resistor, and send the current value of the one current channel to the processing unit; The processing unit is used to: detect the input voltage value of the current channel, and multiply the current value of the current channel by the input voltage value of the current channel to obtain the power consumption of the load module corresponding to the current channel.
22. The power consumption detection circuit according to claim 21, characterized in that: The processing unit includes: a multiplier, wherein the first input terminal of the multiplier is used to input the current value of the current channel, the second input terminal of the multiplier is used to input the input voltage value of the current channel, and the multiplier is used to multiply the current value of the current channel and the input voltage value to obtain the power of the corresponding load module.
23. The power consumption detection circuit according to claim 19, characterized in that: Any one of the multiple current channels includes a first shunt unit, a first end of the first shunt unit is used to connect to the energy storage module, and a second end of the first shunt unit is used to connect to an input end of a load module corresponding to the one current channel.
24. The power consumption detection circuit according to claim 23, characterized in that: The processing module includes: a second current shunting unit, a voltage regulating unit, a sampling resistor, a current sensing unit and a processing unit; The first end of the second shunt unit is connected to the first end of the first shunt unit; the first end of the voltage regulating unit is connected to the second end of the first shunt unit, and the second end of the voltage regulating unit is connected to the second end of the second shunt unit; when the processing module is working, the voltage value of the first end and the second end of the voltage regulating unit is the same; the first end of the sampling resistor is connected to the second end of the second shunt unit, and the second end of the sampling resistor is used to be connected to the ground wire; The detection end of the current sensing unit is connected to the sampling resistor, and the output end of the current sensing unit is connected to the input end of the processing unit; The current sensing unit is used to: detect the voltage value of the sampling resistor, determine the current value of the sampling resistor according to the voltage value of the sampling resistor, determine the current value of the one current channel according to the current value of the sampling resistor and a target ratio, wherein the target ratio is the ratio of the current value of the first shunt unit to the current value of the second shunt unit, and send the current value of the one current channel to the processing unit; The processing unit is used to: detect the input voltage value of the current channel, and multiply the current value of the current channel by the input voltage value of the current channel to obtain the power consumption of the load module corresponding to the current channel.
25. The power consumption detection circuit according to claim 24, characterized in that: The current sensing unit is used to: multiply the current value of the sampling resistor by the target ratio to obtain the current value of the one current channel.
26. The power consumption detection circuit according to any one of claims 20 to 25, characterized in that: The one current channel further includes a switch device, and the switch device is connected in series with other devices in the one current channel; The control end of the switch device is connected to the output end of the processing module, and the processing module is also used to: if a first instruction is received, control the switch device to be turned on, and the first instruction is used to instruct the terminal device to turn on or instruct the load module corresponding to the one current channel to work.
27. The power consumption detection circuit according to claim 26, characterized in that: The processing module is further configured to: control the switch device to turn off if a second instruction is received, wherein the second instruction is configured to instruct the terminal device to shut down or instruct a load module corresponding to the one current channel to terminate operation.
28. The power consumption detection circuit according to any one of claims 19 to 25, characterized in that: The processing module is used to: if a third instruction is received, detect the current value of each current channel, determine the power consumption of the corresponding load module according to the current value of each current channel, and the third instruction is used to instruct the processing module to start detecting the power consumption of the load module corresponding to each current channel.
29. The power consumption detection circuit according to any one of claims 19 to 25, characterized in that: The processing module is further configured to stop detecting the current value of each current channel if a fourth instruction is received, wherein the fourth instruction is configured to instruct the processing module to stop detecting the power consumption of the load module corresponding to each current channel.
30. The power consumption detection circuit according to any one of claims 19 to 25, characterized in that: The load module corresponding to any one of the multiple current channels includes a voltage conversion unit and multiple load units, the output end of the one current channel is used to be connected to the input end of the one voltage conversion unit, and the output end of the one voltage conversion unit is connected to the multiple load units; The processing module is also used to: when the multiple load units are working simultaneously, determine the power consumption of one load unit among the multiple load units according to the current value of the one current channel and a preset ratio, and the preset ratio is the ratio of the power consumption of the one load unit to the power consumption of the load module corresponding to the one current channel when the multiple load units are working simultaneously.
31. The power consumption detection circuit according to any one of claims 19 to 25, characterized in that: The power consumption detection circuit further includes: a power supply channel, an input end of the power supply channel is used to be connected to the energy storage module, and an output end of the power supply channel is connected to a power supply end of the processing module.
