Power consumption control method of electronic equipment, storage medium and electronic equipment
By obtaining the operating status information of the electronic equipment and controlling the power supply circuit, and dynamically adjusting the power consumption by using the on-off adjustment structure and current adjustment components, the problem of poor power consumption control effect of electronic equipment in the low-power mode in the prior art is solved. It realizes both low power consumption control and high performance in different scenarios.
Patent Information
- Application Number
- CN202411131729.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-12-13
AI Technical Summary
The power consumption loss of existing electronic devices is large in low-power mode, resulting in the inability to effectively control the overall power consumption performance of electronic devices.
By obtaining the operating status information of the electronic device, determining the power consumption status based on the power and data processing volume, sending control instructions to the control circuit, controlling the current of the power supply circuit to adjust the power consumption, and using the on-off adjustment structure and current adjustment components to achieve power consumption dynamic control.
It realizes low power consumption control and switching of electronic devices in different working scenarios, reduces power consumption loss, and improves the overall power consumption performance of electronic devices.
Smart Images

Figure CN119126965A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the computer field, and more specifically, to a power consumption control method of an electronic device, a storage medium, and an electronic device. Background Art
[0002] At present, in the development and design of daily electronic equipment, the main functional modules of electronic equipment include power consumption design. Among them, low power consumption is a mainstream direction of power supply design, and the balance between comprehensive performance and power consumption loss has also become a key factor in electronic equipment design.
[0003] In the current power management of electronic devices, in order to ensure the performance of the circuit under heavy load and high-speed operation, priority is generally given to ensuring the competitiveness of the performance indicators of the electronic equipment, which will sacrifice power consumption performance to a certain extent. As a result, the power consumption loss of the power module of the electronic equipment in the low power consumption mode is large, which in turn affects the overall power consumption performance of the electronic equipment, and there is a problem of being unable to effectively control the power consumption of the electronic equipment. Summary of the invention
[0004] The embodiments of the present application provide a method for controlling power consumption of an electronic device, a storage medium, and an electronic device, so as to at least solve the problem in the related art that the power consumption of the electronic device cannot be effectively controlled.
[0005] According to an embodiment of the present application, a method for controlling power consumption of an electronic device is provided, which is applied to a power consumption control device, wherein the power consumption control device is connected to a control circuit, the control circuit is connected to a power supply circuit, the power supply circuit includes a power supply module, and the power supply module supplies power to the electronic device through the power supply circuit, and the method includes: obtaining operating status information of the electronic device; determining the power consumption state of the electronic device based on the operating status information, wherein the power consumption state corresponds to the power and data processing amount of the electronic device; when the power consumption state of the electronic device is a first power consumption state, sending a first control instruction to the control circuit to control the control circuit to be connected to the power supply circuit, wherein the control circuit is used to control the power consumption of the electronic device by controlling the current of the power supply circuit when connected to the power supply circuit, and the first power consumption state is a low power consumption state.
[0006] In an exemplary embodiment, the power consumption control device includes a power sensor and a processor, and the power sensor is connected to the electronic device to obtain the operating status information of the electronic device, including at least one of the following: measuring the power of the electronic device through the power sensor, and determining the operating status information based on the power; obtaining the data processor of the electronic device, and calculating the power consumption occupied by the data processing through the processor, and determining the operating status information based on the power consumption.
[0007] In an exemplary embodiment, the control circuit includes an on-off regulation structure and N first current regulation components, wherein one end of the on-off regulation structure is connected to the power supply circuit, and the other end is connected to the N first current regulation components, and the N first current regulation components are connected in series. When the power consumption state of the electronic device is the first power consumption state, a first control instruction is sent to the control circuit to control the control circuit to be connected to the power supply circuit, including: when the power consumption state of the electronic device is the first power consumption state, a control signal is sent to the on-off regulation structure to control the on-off regulation structure to be closed, so that the N current regulation components and the power supply circuit are connected; or, when the power consumption state of the electronic device is the first power consumption state, a low-level signal is transmitted to the on-off regulation structure to control the on-off regulation structure to be closed, so that the N current regulation components and the power supply circuit are connected; or, when the power consumption state of the electronic device is the first power consumption state, a low-level signal is transmitted to the on-off regulation structure to control the on-off regulation structure to be closed, so that the N current regulation components and the power supply circuit are connected; or, wherein, when the N first current regulation components and the power supply circuit are connected, the N first current regulation components are connected in parallel with the power supply circuit, and the N first current regulation components adjust the power consumption of the electronic device by adjusting the current of the power supply circuit, and N is a natural number greater than or equal to 1.
[0008] In an exemplary embodiment, the control circuit also includes a second current regulating component, which is connected to the power module and grounded, and is used to regulate the current of the control circuit so that the control circuit is in an operating state, wherein the second current regulating component and N first current regulating components are at least one of the following devices: a capacitor device, an inductor device, a resistor device, an electron tube, and a diode.
[0009] In an exemplary embodiment, the power supply circuit includes a first power supply device, a second power supply device and a third power supply device connected in sequence, the first power supply device is also connected to the power module and the on-off adjustment structure, and the third power supply device is connected to the electronic device; wherein the first power supply device includes a plurality of first capacitor devices in parallel, and the plurality of first capacitor devices are all connected to the power module for controlling the voltage and current changes of the power module; the first power supply device also includes a plurality of first resistor devices, the plurality of first resistor devices are connected in parallel and connected to the on-off adjustment structure, and the plurality of first resistor devices are used to be connected in parallel with the first current adjustment component when the on-off adjustment structure is turned on to adjust the current of the power supply circuit; the second power supply device is a DCDC power supply, The DCDC power supply is used to adjust the current and voltage transmitted to the third power supply device by adjusting the current and voltage transmitted by the first power supply device, so that the voltage and current transmitted to the electronic device are in a stable state; when the power consumption state of the electronic device is the first power consumption state, a low-level signal is transmitted to the on-off adjustment structure to control the on-off adjustment structure to close, and after N current adjustment components and the power supply circuit are turned on, the method also includes: when controlling the on-off adjustment structure to be turned on with the first power supply device, controlling the conversion interface in the DCDC power supply to output a low level, wherein when the conversion interface in the DCDC power supply outputs a low level, the third power supply device transmits a low-level signal to the electronic device to reduce the power consumption of the electronic device.
[0010] In an exemplary embodiment, the third power supply circuit includes: an inductor device, a second resistor device, a third resistor device and a plurality of second capacitor devices, wherein the inductor device and the second resistor device are both connected to the DCDC power supply, the inductor device is used to adjust the current transmitted to the electronic device by adjusting the change speed of the current transmitted by the DCDC power supply, the second resistor device and the third resistor device are connected in series to control and adjust the current transmitted by the DCDC power supply, and the plurality of second capacitor devices are connected in parallel to control the voltage and current changes of the DCDC power supply.
[0011] In an exemplary embodiment, when the power consumption state of the electronic device is a first power consumption state, after sending a first control instruction to the control circuit to control the control circuit to be connected to the power supply circuit, the method further includes: when the power consumption state of the electronic device is a second power consumption state, sending a second control instruction to the control circuit to control the control circuit to be disconnected from the power supply circuit, wherein the control circuit is used to control the power consumption of the electronic device by controlling the current of the power supply circuit when disconnected from the power supply circuit, and the second power consumption state is a high power consumption state.
[0012] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0013] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0014] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0015] Through the present application, a control circuit connected to a power supply circuit is utilized and connected to a power consumption control device. By acquiring and judging the operating status of the electronic device, the power consumption status of the electronic device is determined and a control instruction is sent to the control circuit to control the conduction between the control circuit and the power supply circuit, so that the specific state of the conduction of the circuit can be controlled according to the device state. Therefore, the problem in the related art that the power consumption of the electronic device cannot be effectively controlled can be solved, and the effect of controlling and switching the low power consumption of the electronic device in different working scenarios can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a hardware environment schematic diagram of a power consumption control method of an electronic device according to an embodiment of the present application;
[0017] Figure 2 is a flow chart of a method for controlling power consumption of an electronic device according to an embodiment of the present application;
[0018] Figure 3 is a schematic diagram of a circuit structure of a power consumption control device according to an embodiment of the present application;
[0019] Figure 4is a schematic diagram of the connection relationship between a power consumption control device and various devices according to an embodiment of the present application;
[0020] Figure 5 is a flow chart of a control switching working mode according to an embodiment of the present application;
[0021] Figure 6 It is a structural block diagram of a power consumption control device of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0024] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 Schematic diagram of the hardware environment of a method for controlling power consumption of an electronic device according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the power consumption control method of the electronic device in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0027] In this embodiment, a power consumption control method of an electronic device is provided, which is applied to a power consumption control device. The power consumption control device is connected to a control circuit. The control circuit is connected to a power supply circuit. The power supply circuit includes a power supply module. The power supply module supplies power to the electronic device through the power supply circuit. Figure 2 is a flow chart of a method for controlling power consumption of an electronic device according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0028] Step S202, obtaining the operating status information of the electronic device;
[0029] Step S204, determining a power consumption state of the electronic device based on the operation state information, wherein the power consumption state corresponds to the power and data processing amount of the electronic device;
[0030] Step S206, when the power consumption state of the electronic device is the first power consumption state, sending a first control instruction to the control circuit to control the above-mentioned control circuit to be connected with the power supply circuit, wherein the control circuit is used to control the power consumption of the electronic device by controlling the current of the power supply circuit when being connected with the power supply circuit, and the first power consumption state is a low power consumption state.
[0031] This embodiment includes but is not limited to low-power consumption scenarios of electronic products similar to power supply systems. For example, in the process of using the power of a solid-state drive (SSD) product, electronic devices are used to realize the power supply of the back-end circuit. When it is necessary to ensure the performance of the circuit under heavy load and high-speed operation, it is necessary to control the power module according to different working states. For example, when the electronic device is powered on normally, the power module works in a high-performance mode, giving priority to ensuring the normal operation of the electronic device, in order to ensure the optimal performance of the electronic device; when the electronic device is in a non-high-performance mode, the power consumption control device controller detects that the power consumption of the electronic device power consumption module is reduced to below the threshold, and outputs a control signal to the control circuit, and the control circuit controls the power supply mode of the power supply module device to achieve the purpose of reducing power consumption.
[0032] Optionally, the electronic devices in this embodiment include but are not limited to devices that require electricity, such as computers and tablet computers. The operating status information of the electronic device includes but is not limited to: power status, power-on status, operating temperature, the operating status and performance indicators of the central processing unit (CPU) memory, hard disk, graphics card and other hardware in the electronic device, the network connection status of the electronic device, the power of the electronic device, etc.
[0033] Optionally, the power module in this embodiment is a battery or power module that can be selected according to different usage scenarios and requirements when powering electronic devices. For example, a linear power module with stable output voltage and small ripple; a switching power module that uses high-frequency switching technology and switches through switching devices; a voltage-stabilized power module that maintains a stable output voltage, etc.
[0034] Optionally, the power consumption state of the electronic device in this embodiment refers to the state in which the electronic device consumes electrical energy during operation, which is related to the power and data processing volume of the electronic device. Under different power consumption states, the operating efficiency and performance of the device will be different. The power consumption state of the electronic device includes but is not limited to: static power consumption, when the electronic device is in standby or not in use, it still consumes a certain amount of electrical energy, and this power consumption is usually low because the main components of the device are not running at full speed; dynamic power consumption, when the electronic device is in working state, such as processing data, performing calculations or performing other tasks, its power consumption will increase; peak power consumption, under certain high-performance tasks or high loads, the power consumption of the electronic device may reach a peak; average power consumption, which is the average energy consumption of the electronic device over a period of time, which is usually used to evaluate the energy efficiency and performance of the device. For example, when the electronic device is in static power consumption, it enters a low power consumption state.
[0035] Optionally, the information in the first control instruction in this embodiment includes but is not limited to: circuit information of the control circuit. For example, when sending the first control instruction to the control circuit to control the conduction between the above-mentioned control circuit and the power supply circuit, the identification of the control circuit can be obtained according to the circuit information carried in the first control instruction to determine the identification of the control circuit; specify the conduction time of the control circuit; specify the voltage level, current limit, etc. of the control circuit.
[0036] Through the above steps, the control circuit connected to the power supply circuit is used and connected to the power consumption control device. By obtaining the operating status of the electronic device and judging it, the power consumption status of the electronic device is determined and a control instruction is sent to the control circuit to control the above control circuit and the power supply circuit to be turned on, so that the specific state of the circuit conduction can be controlled according to the device state. Therefore, the problem that the power consumption of the electronic device cannot be effectively controlled in the related technology can be solved, and the effect of controlling and switching the low power consumption of the electronic device in different working scenarios can be achieved.
[0037] In an exemplary embodiment, the power consumption control device includes a power sensor and a processor, and the power sensor is connected to the electronic device to obtain the operating status information of the electronic device, including at least one of the following: measuring the power of the electronic device through the power sensor, and determining the operating status information based on the power; obtaining the data processor of the electronic device, and calculating the power consumption occupied by the data processing amount through the processor, and determining the operating status information based on the power consumption.
[0038] Optionally, in this embodiment, the specific steps of determining the operating status information of the electronic device based on the power measured by the power sensor include:
[0039] S1, obtaining the type of power consumption mode of the electronic device according to the manual of the electronic device or online resources; setting a threshold value according to the range of power consumption of the electronic device obtained from the manual or online resources, so as to judge the operation state of the electronic device;
[0040] S2, comparing the power measured by the power sensor with the above-set threshold to determine the current operating state of the electronic device.
[0041] Optionally, in this embodiment, the operating status information of the electronic device is determined based on the power measured by the power sensor, and the power measured by the power sensor is compared with the above-set threshold to determine the current operating status of the electronic device. The power data can also be analyzed by training or using a preset algorithm. For example, a machine learning algorithm is used to learn the power consumption mode of the electronic device in different operating states, and the obtained operating status information of the electronic device is output.
[0042] Optionally, in this embodiment, the specific steps of calculating the power consumption occupied by the data processing amount by a data processor of the electronic device, and determining the operation status information based on the power consumption include:
[0043] S1, determining the power consumption range of the electronic device in different operating states; for example, the power consumption range of a computer in a standby state is 10-50W, the power consumption range in a low-load state is 50-150W, and the power consumption range in a high-load state is 150-300W (or higher, depending on the hardware configuration of the computer);
[0044] S2, determining the power consumption of a processor in the electronic device to calculate the data processing amount; a power consumption measurement tool (e.g., a power consumption analyzer) may be used to monitor the power consumption of the processor during task execution;
[0045] S3, the calculated power consumption is compared with the above power consumption range to determine the operation status information of the electronic device; for example, if the power consumption of the processor is between 150W and 300W, the processor is currently in a data processing state, and the processor can be considered to be in a high power consumption state. If the power consumption of the processor is between 10W and 50W, the processor is currently in a standby state, and the processor can be considered to be in a low power consumption state.
[0046] Optionally, the information included in the running status information of the electronic device in this embodiment has been described above and will not be repeated here.
[0047] Through the above steps, the operating status information of the electronic device can be determined according to the power measured by the power sensor, or the operating status information of the electronic device can be determined according to the power consumption occupied by the data processing amount calculated by the data processor. The corresponding device can be selected according to the actual characteristics of the electronic device to obtain the status information of the electronic device, which improves the flexibility of obtaining the operating status information of the electronic device and is conducive to the subsequent rapid switching of the power working mode of the electronic device.
[0048] In an exemplary embodiment, the control circuit includes an on-off regulation structure and N first current regulation components, one end of the on-off regulation structure is connected to the power supply circuit, and the other end is connected to the N first current regulation components, and the N first current regulation components are connected in series. When the power consumption state of the electronic device is the first power consumption state, a first control instruction is sent to the control circuit to control the control circuit to be turned on with the power supply circuit, including: when the power consumption state of the electronic device is the first power consumption state, a control signal is sent to the on-off regulation structure to control the on-off regulation structure to close. , turning on the N above-mentioned current regulating components and the above-mentioned power supply circuit; or, when the power consumption state of the above-mentioned electronic device is the first power consumption state, transmitting a low-level signal to the above-mentioned on-off regulating structure to control the above-mentioned on-off regulating structure to close, turning on the N above-mentioned current regulating components and the above-mentioned power supply circuit; or, wherein, when the N above-mentioned first current regulating components and the above-mentioned power supply circuit are turned on, the N above-mentioned first current regulating components are connected in parallel with the above-mentioned power supply circuit, and the N above-mentioned first current regulating components adjust the power consumption of the above-mentioned electronic device by adjusting the current of the above-mentioned power supply circuit, and the above-mentioned N is a natural number greater than or equal to 1.
[0049] Optionally, the information included in the first control instruction in this embodiment has been described above and will not be repeated here.
[0050] Optionally, in this embodiment, when the power consumption state of the electronic device is the first power consumption state, the on-off adjustment structure can be controlled to be closed by sending a control signal or transmitting a low-level signal. The on-off adjustment structure includes but is not limited to: a relay, a transistor, a microcontroller, an optical coupler, etc. For example, Figure 3 As shown, it is a schematic diagram of the circuit structure of the power consumption control device in this embodiment. When Q1 is a relay, a relay is used as an on-off adjustment structure, and the relay is controlled to be closed or released by sending a control signal. After the coil of the relay receives the control signal, it will close or release the contact, thereby realizing the on-off control of the circuit. When Q1 is a transistor, a transistor is used as an on-off adjustment structure, and the conduction or cutoff of the transistor is controlled by transmitting a low-level signal. When a low level is input, the transistor is turned on and the circuit is closed; when a high level is input, the transistor is cut off and the circuit is disconnected. When Q1 is a microcontroller, a microcontroller can also be used as an on-off adjustment structure, and the output pin of the microcontroller can be controlled by writing a program to realize the on-off control of the circuit. After receiving the control signal, the microcontroller can switch the level state of the output pin, thereby controlling the circuit elements connected to the output pin. The above embodiments can be selected and adjusted according to specific application scenarios and requirements.
[0051] Optionally, in this embodiment, when N first current regulating components and the power supply circuit are turned on, the N first current regulating components are connected in parallel with the power supply circuit. After the N first current regulating components are connected in parallel to the circuit, the current of the power supply circuit can be changed, and the power consumption of the electronic device can be further adjusted by adjusting the current of the power supply circuit. The value of N can be set based on the type of electronic device or a specific application scenario, for example, Figure 3 As shown, N=1, the first current regulating component is a resistor R4. When Q1 is turned on, R4 is connected in parallel with R3 in the above power supply circuit, thereby reducing the current of the power supply circuit.
[0052] Through the above steps, this embodiment controls the closing of the on-off adjustment structure when it is determined that the power consumption state of the electronic device is the first power consumption state, thereby adjusting the current in the power supply circuit, thereby changing the power consumption of the electronic device, achieving control of the power consumption of the electronic device, and reducing power consumption losses.
[0053] In an exemplary embodiment, the control circuit also includes a second current regulating component, which is connected to the power module and grounded, and is used to regulate the current of the control circuit so that the control circuit is in an operating state, wherein the second current regulating component and the N first current regulating components are at least one of the following devices: a capacitor device, an inductor device, a resistor device, an electron tube, and a diode.
[0054] Optionally, the second current regulating component and the first current regulating component in this embodiment can be a capacitor, an inductor, a resistor, an electron tube, a diode or a combination thereof. Figure 3 As shown, the second current regulating component is R5, which is grounded and always in a conductive state, thereby fixing the current of the control circuit and ensuring the operation of the control circuit.
[0055] Through the above steps, this embodiment adjusts the operation of the control circuit through the second current regulating component, which can ensure that the control circuit is always in a normal operating state, and thus can achieve real-time adjustment of the power supply circuit.
[0056] In an exemplary embodiment, the power supply circuit includes a first power supply device, a second power supply device and a third power supply device connected in sequence, the first power supply device is also connected to the power module and the on-off adjustment structure, and the third power supply device is connected to the electronic device; wherein the first power supply device includes a plurality of first capacitor devices connected in parallel, and the plurality of first capacitor devices are all connected to the power module for controlling the voltage and current changes of the power module; the first power supply device also includes a plurality of first resistor devices, the plurality of first resistor devices are connected in parallel and connected to the on-off adjustment structure, and the plurality of first resistor devices are used to be connected in parallel with the first current adjustment component when the on-off adjustment structure is turned on to adjust the current of the power supply circuit; the second power supply device is a DCDC power supply, and the The DCDC power supply is used to adjust the current and voltage transmitted to the third power supply device by adjusting the current and voltage transmitted by the first power supply device, so that the voltage and current transmitted to the electronic device are in a stable state; when the power consumption state of the electronic device is the first power consumption state, a low-level signal is transmitted to the on-off adjustment structure to control the on-off adjustment structure to close, and after the N current adjustment components and the power supply circuit are turned on, the method further includes: when the on-off adjustment structure is controlled to be turned on with the first power supply device, the conversion interface in the DCDC power supply is controlled to output a low level, wherein when the conversion interface in the DCDC power supply outputs a low level, the third power supply device transmits a low-level signal to the electronic device to reduce the power consumption of the electronic device.
[0057] Optionally, in this embodiment, the first capacitor devices are connected to the above-mentioned power supply module, and the capacitor devices can also be combined with other components to control the voltage and current changes of the above-mentioned power supply module as needed. The other combined components can be: variable capacitors (such as adjustable capacitors) to adjust the resonant frequency or filtering characteristics of the circuit, indirectly affecting the voltage and current; electronic controllers (such as microcontrollers or dedicated power management chips) to adjust the output of the power supply module as needed.
[0058] Optionally, the effects of the first capacitor on the power module in this embodiment include but are not limited to: reducing voltage fluctuations and noise in the circuit, smoothing the output voltage, reducing ripple, and providing a more stable voltage; it can store energy and release it quickly when needed, which helps to cope with instantaneous load changes and provide instantaneous current; it can reduce mutual interference between different circuit parts and maintain the stability and performance of the power module, etc.
[0059] Optionally, in this embodiment, the first resistor device can be connected in parallel with the first current regulating component when the on-off regulating structure is turned on. The parallel resistor is added to the circuit, which can increase the current in the main circuit and regulate the current of the power supply circuit.
[0060] For example, Figure 3 As shown, the plurality of first capacitors connected in parallel in the first power supply device may be C1 and C2, which are used to control the voltage and current changes of the power module. The plurality of first resistors included in the first power supply device may be R1, R2 and R3, and the connection relationship between R1, R2 and R3 is as shown in FIG. Figure 3 As shown, it is used to adjust the current of the power supply circuit in conjunction with R4 when Q1 is turned on. The second power supply device is a DCDC power supply U1, which is used to adjust the current and voltage transmitted by R1, R2, R3 and R4 so that the voltage and current transmitted to the electronic device are in a stable state.
[0061] Among them, U1 in this embodiment is a device that converts a DC voltage into another DC voltage, which is usually used for power management and voltage adjustment. Different types of U1 may have different pin configurations, such as Figure 3 As shown, the pins of U1 include: VIN1, VIN2, EN, VCC, MODE, SW, FB, and GND.
[0062] Both pins VIN1 and VIN2 are input voltage pins, which can be connected to different input voltage sources to select the appropriate input voltage according to needs.
[0063] EN (Enable) is the enable pin, which is used to control the start and stop of U1. When the EN pin receives a high-level signal, U1 starts working; when it receives a low-level signal, U1 stops working.
[0064] VCC is the power pin of U1, which provides the required power for the internal circuit.
[0065] MODE is the mode selection pin that allows the user to select different operating modes according to their needs, such as buck, boost or SEPIC.
[0066] SW is a switch pin, which is a switch node of U1 and is used to control the switching action of a switch element (such as MOSFET or IGBT) to achieve voltage conversion.
[0067] FB (Feedback) is a feedback pin used to receive the feedback signal from the output voltage and compare it with the internal reference voltage to achieve stable control of the output voltage.
[0068] GND is the ground pin, which is the common reference point of the circuit, and all other pins work relative to this pin.
[0069] In this embodiment, in the high-performance mode, U1 works in the FCCM mode to meet the working requirements of the high-performance, high-load and other scenarios of the system back-end electronic equipment; when the power supply circuit is continuously working, once the control circuit detects that the back-end electronic equipment is in a non-high-performance mode, U1 is controlled to output a high-level control signal to the control electrode of the N-MOS tube Q1. At this time, the MOS tube Q1 is turned on, and the resistors R4 and R3 are connected in parallel. The parallel impedance is less than the resistance value of R3. The test changes the voltage divider value of U1MODE, thereby changing the working mode of U1 (at this time, the working mode of U1 is switched from FCCM mode to DCM mode or PFM mode), thereby reducing the heat loss of the power module in this scenario. In the power supply circuit, capacitors C1-C2 and C5-C7 are respectively power input and output capacitors, resistor R1 is an enable signal pull-up resistor, R7 / R8 is a feedback resistor, L1 is an energy storage inductor, and R5 provides a stable working state for Q1.
[0070] When the electronic device needs to re-enter the high-performance mode, the controller U1 recognizes the external request for high-performance transmission, and changes the output level of U1 to lower the level of the control electrode of the N-MOS tube Q1, thereby disconnecting the entire path of Q1 emitter channel R4, and then restoring the level of U1's mode pin (at this time, U1's working mode is switched from DCM mode or PFM mode to FCCM mode), so that the power module returns to the high-performance working mode.
[0071] Through the above steps, this embodiment realizes the voltage and current changes of the power module through the first power supply device, the second power supply device and the third power supply device, and controls the voltage and current changes of the power module through the first capacitor device and the first resistor device, so as to timely adjust the voltage and current of the power module under different states of the electronic device, adjust the working mode of the power module, and achieve the effect of reducing the power consumption of the entire electronic device.
[0072] In an exemplary embodiment, the third power supply circuit includes: an inductor device, a second resistor device, a third resistor device and a plurality of second capacitor devices, wherein the inductor device and the second resistor device are both connected to the DC power supply, the inductor device is used to adjust the current transmitted to the electronic device by adjusting the speed of change of the current transmitted by the DCDC power supply, the second resistor device and the third resistor device are connected in series to control and adjust the current transmitted by the DCDC power supply, and the plurality of second capacitor devices are connected in parallel to control the voltage and current changes of the DCDC power supply.
[0073] Optionally, the inductor device in this embodiment is used to adjust the current transmitted to the electronic device by adjusting the change speed of the current transmitted by the DC power supply, and the inductor device includes but is not limited to: fixed inductor, adjustable inductor, air-core inductor, iron-core inductor, current transformer, etc.
[0074] For example, Figure 3 As shown, the inductor device is L1, the second resistor device is R7, the third resistor device is R8, and the plurality of second capacitor devices are C5, C6, and C7. R7 and R8 are feedback resistors, and L1 is an energy storage inductor. Each device is connected as shown in FIG. Figure 3 The connection relationship shown can effectively adjust the current transmitted by the above-mentioned DCDC power supply.
[0075] Through the above steps, this embodiment uses an inductor device to adjust the change speed of the current transmitted by the DCDC power supply, adjusts the current transmitted to the electronic device, thereby adjusting the voltage and current of the power supply module, and achieving the effect of controlling the current of the power supply circuit according to the specific usage scenario.
[0076] In an exemplary embodiment, when the power consumption state of the electronic device is a first power consumption state, after sending a first control instruction to the control circuit to control the control circuit to be connected with the power supply circuit, the method further includes: when the power consumption state of the electronic device is a second power consumption state, sending a second control instruction to the control circuit to control the control circuit to be disconnected from the power supply circuit, wherein the control circuit is used to control the power consumption of the electronic device by controlling the current of the power supply circuit when disconnected from the power supply circuit, and the second power consumption state is a high power consumption state.
[0077] Optionally, the information in the second control instruction in this embodiment includes but is not limited to: circuit information of the control circuit, when sending the second control instruction to the control circuit to control the above-mentioned control circuit to disconnect from the power supply circuit, obtaining the circuit identification according to the circuit information carried in the second control instruction, etc. for determining the identification of the controlled circuit; specifying the time for circuit disconnection, etc.
[0078] Optionally, in combination with the above embodiment, if the power consumption of the processor is between 150-300 W, indicating that the processor is currently in a data processing state, it can be considered that the processor is in a high power consumption state.
[0079] Optionally, in this embodiment, the control circuit is disconnected from the power supply circuit, and the current of the power supply circuit is controlled to make the electronic device return to the high-performance working mode. Figure 3As shown, when the electronic device needs to re-enter the high-performance mode, when the power consumption state of the electronic device is the second power consumption state, a second control instruction is sent to Q1, and the level state of the control electrode of the N-MOS tube Q1 is pulled down by changing the output level of U1, thereby disconnecting the entire path of the Q1 emitter channel R4, and then restoring the level state of U1 (at this time, the working mode of U1 is switched from the intermittent conduction mode or the pulse frequency modulation mode to the forced continuous conduction mode), so that the power module returns to the high-performance working mode.
[0080] Through the above steps, the embodiment disconnects the control circuit from the power supply circuit when the electronic device is in a high power consumption state, allowing the electronic device to return to a high-performance working mode, thereby realizing the conversion of the working mode of the electronic device and achieving the effect of balancing power consumption control and high performance.
[0081] The present application is described below in conjunction with specific embodiments:
[0082] This specific embodiment aims to solve the problem that the single-board power consumption control logic in the prior art is single and cannot realize scene-based control, and proposes an automatic control power consumption control device composed of power consumption monitoring and power consumption mode switching. Figure 4 As shown, it is a schematic diagram of the connection relationship between the power consumption control device and various devices. The device is connected to the control circuit, and the control circuit is connected to the power supply circuit. The power supply circuit includes a power module, and the power module supplies power to the electronic device through the power supply circuit. The control logic of the circuit of the device includes: when powered on normally, the power module works in a high-performance mode, giving priority to ensuring the normal operation of the electronic device, with optimal performance as the design goal; when the electronic device is in a non-high-performance mode, the control circuit monitors that the power consumption of the power consumption module is reduced to a certain threshold, and outputs a control signal to the control circuit; the control circuit controls the power supply mode of the power supply device to change, thereby achieving the purpose of reducing power consumption.
[0083] Combined with Figure 3 The circuit diagram of the power consumption control device shown in FIG. 1 is a circuit diagram of the power consumption control device shown in FIG. 1 , and the specific process of controlling the power supply mode in this specific embodiment is as follows: Figure 5 As shown, the following steps are included:
[0084] S501, when the electronic device is in high-performance mode, U1 works in FCCM mode (high level), and the power module meets the working requirements of high-performance, high-load and other scenarios of the electronic device;
[0085] S502, when the circuit is continuously working, the controller in the power consumption control device monitors whether the electronic device is in a low performance mode, if yes, go to S503, otherwise go to S506;
[0086] S503, when the electronic device is in the low performance mode, the controller outputs a high level control signal to the control electrode of the N-MOS tube Q1;
[0087] S504, MOS tube Q1 is turned on, resistors R4 and R3 are connected in parallel, and the parallel impedance is less than the resistance of R3. The test changes the voltage divider value of U1 MODE, thereby changing the working mode of U1.
[0088] S505, the working mode of U1 is switched from FCCM mode to DCM mode or PFM mode (i.e., low level mode), thereby reducing the heat loss of the power module in this scenario;
[0089] S506, when the electronic device is in the high-performance mode, the controller outputs a low-level control signal to the control electrode of the N-MOS tube Q1;
[0090] S507, MOS tube Q1 is disconnected and R3 is grounded;
[0091] S508, determines whether the electronic devices meet the high-performance mode. When the electronic devices need to re-enter the high-performance mode, go to S506, that is, when the controller recognizes the external request for high-performance transmission, it changes the output level of U1, pulls down the level state of the control electrode of the N-MOS tube Q1, thereby disconnecting the entire path of Q1 emitter channel R4, and then restores the level state of the mode pin of U1 (at this time, the working mode of U1 is switched from DCM mode or PFM mode to FCCM mode), so that the power module returns to the high-performance working mode.
[0092] It should be noted that, through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0093] In this embodiment, a power consumption control device for an electronic device is also provided. The power consumption control device is connected to a control circuit, and the control circuit is connected to a power supply circuit. The power supply circuit includes a power module, and the power module supplies power to the electronic device through the power supply circuit. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0094] Figure 6 is a structural block diagram of a power consumption control device of an electronic device according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:
[0095] A first acquisition module 62, used to acquire the operation status information of the electronic device;
[0096] A first determining module 64 is used to determine the power consumption state of the electronic device based on the operation state information, wherein the power consumption state corresponds to the power and data processing amount of the electronic device;
[0097] The first sending module 66 is used to send a first control instruction to the control circuit when the power consumption state of the electronic device is the first power consumption state, so as to control the control circuit to be connected with the power supply circuit, wherein the control circuit is used to control the power consumption of the electronic device by controlling the current of the power supply circuit when connected with the power supply circuit, and the first power consumption state is a low power consumption state.
[0098] In an exemplary embodiment, the power consumption control device includes a power sensor and a processor, the power sensor is connected to the electronic device to obtain the operating status information of the electronic device, and the first determination module 64 includes at least one of the following: a first determination unit, used to measure the power of the electronic device through the power sensor, and determine the operating status information based on the power; a second determination unit, used to obtain the data processor of the electronic device, calculate the power consumption occupied by the data processing amount through the processor, and determine the operating status information based on the power consumption.
[0099] In an exemplary embodiment, the control circuit includes an on-off regulation structure and N first current regulation components, one end of the on-off regulation structure is connected to the power supply circuit, and the other end is connected to the N first current regulation components, and the N first current regulation components are connected in series. When the power consumption state of the electronic device is the first power consumption state, a first control instruction is sent to the control circuit to control the control circuit to be turned on with the power supply circuit. The first sending module 66 includes: a first sending unit, which is used to send a control signal to the on-off regulation structure when the power consumption state of the electronic device is the first power consumption state, so as to control The on-off regulating structure is closed to conduct the N current regulating components and the power supply circuit; the second sending unit, when the power consumption state of the electronic device is the first power consumption state, transmits a low-level signal to the on-off regulating structure to control the closure of the on-off regulating structure to conduct the N current regulating components and the power supply circuit; wherein, when the N first current regulating components and the power supply circuit are conducted, the N first current regulating components are connected in parallel with the power supply circuit, and the N first current regulating components regulate the power consumption of the electronic device by regulating the current of the power supply circuit, and the N is a natural number greater than or equal to 1.
[0100] In an exemplary embodiment, the control circuit further includes a second current regulating component, which is connected to the power module and grounded. The device further includes: a first regulating unit, which is used to regulate the current of the control circuit so that the control circuit is in an operating state, wherein the second current regulating component and the N first current regulating components are at least one of the following devices: a capacitor, an inductor, a resistor, an electron tube, and a diode.
[0101] In an exemplary embodiment, the power supply circuit includes a first power supply device, a second power supply device and a third power supply device connected in sequence, the first power supply device is also connected to the power module and the on-off adjustment structure, and the third power supply device is connected to the electronic device; wherein the first power supply device includes a plurality of first capacitor devices connected in parallel, and the plurality of first capacitor devices are all connected to the power module for controlling the voltage and current changes of the power module; the first power supply device also includes a plurality of first resistor devices, the plurality of first resistor devices are connected in parallel and connected to the on-off adjustment structure, and the plurality of first resistor devices are used to be connected in parallel with the first current adjustment component when the on-off adjustment structure is turned on to adjust the current of the power supply circuit; the second power supply device is a DCDC power supply, and the D The CDC power supply is used to adjust the current and voltage transmitted to the third power supply device by adjusting the current and voltage transmitted by the first power supply device, so that the voltage and current transmitted to the electronic device are in a stable state; when the power consumption state of the electronic device is the first power consumption state, a low-level signal is transmitted to the on-off adjustment structure to control the on-off adjustment structure to close, and after the N current adjustment components and the power supply circuit are turned on, the device further includes: a control module, which is used to control the conversion interface in the DCDC power supply to output a low level when the on-off adjustment structure is controlled to be turned on with the first power supply device, wherein when the conversion interface in the DCDC power supply outputs a low level, the third power supply device transmits a low-level signal to the electronic device to reduce the power consumption of the electronic device.
[0102] In an exemplary embodiment, the third power supply circuit includes: an inductor, a second resistor, a third resistor and a plurality of second capacitors, wherein the inductor and the second resistor are both connected to the DC power supply, the inductor is used to adjust the current transmitted to the electronic device by adjusting the speed of change of the current transmitted by the DCDC power supply, the second resistor and the third resistor are connected in series to control and adjust the current transmitted by the DCDC power supply, and the plurality of second capacitors are connected in parallel to control the voltage and current changes of the DCDC power supply.
[0103] In an exemplary embodiment, when the power consumption state of the above-mentioned electronic device is the first power consumption state, after sending a first control instruction to the above-mentioned control circuit to control the above-mentioned control circuit to be connected with the above-mentioned power supply circuit, the above-mentioned first sending module 66 also includes: a third sending unit, which is used to send a second control instruction to the above-mentioned control circuit when the power consumption state of the above-mentioned electronic device is the second power consumption state, so as to control the above-mentioned control circuit to be disconnected from the above-mentioned power supply circuit, wherein the above-mentioned control circuit is used to control the power consumption of the above-mentioned electronic device by controlling the current of the above-mentioned power supply circuit when disconnected from the above-mentioned power supply circuit, and the above-mentioned second power consumption state is a high power consumption state.
[0104] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0105] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0106] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0107] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0108] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0109] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0110] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0111] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.
[0112] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0113] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0114] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for controlling power consumption of an electronic device, characterized in that: Applied to a power consumption control device, the power consumption control device is connected to a control circuit, the control circuit is connected to a power supply circuit, the power supply circuit includes a power supply module, and the power supply module supplies power to the electronic device through the power supply circuit. The method includes: Acquiring operating status information of the electronic device; Determining a power consumption state of the electronic device based on the operating state information, wherein the power consumption state corresponds to power and data processing capacity of the electronic device; When the power consumption state of the electronic device is a first power consumption state, a first control instruction is sent to the control circuit to control the control circuit to be connected with the power supply circuit, wherein the control circuit is used to control the power consumption of the electronic device by controlling the current of the power supply circuit when connected with the power supply circuit, and the first power consumption state is a low power consumption state.
2. The method according to claim 1, characterized in that The power consumption control device includes a power sensor and a processor. The power sensor is connected to the electronic device to obtain the operation status information of the electronic device, including at least one of the following: Measuring the power of the electronic device by the power sensor, and determining the operating status information based on the power; The data processor of the electronic device is obtained, and the power consumption occupied by the data processing amount is calculated by the processor, and the operation status information is determined based on the power consumption.
3. The method according to claim 1, characterized in that The control circuit includes an on-off regulation structure and N first current regulation components, one end of the on-off regulation structure is connected to the power supply circuit, and the other end is connected to the N first current regulation components, and the N first current regulation components are connected in series. When the power consumption state of the electronic device is the first power consumption state, a first control instruction is sent to the control circuit to control the control circuit to be turned on with the power supply circuit, including: When the power consumption state of the electronic device is the first power consumption state, a control signal is sent to the on-off regulating structure to control the on-off regulating structure to close and turn on the N current regulating components and the power supply circuit; or When the power consumption state of the electronic device is the first power consumption state, a low level signal is transmitted to the on-off regulating structure to control the on-off regulating structure to close and conduct the N current regulating components and the power supply circuit; or Among them, when N first current regulating components and the power supply circuit are turned on, N first current regulating components are connected in parallel with the power supply circuit, and N first current regulating components adjust the power consumption of the electronic device by adjusting the current of the power supply circuit, and N is a natural number greater than or equal to 1.
4. The method according to claim 3, characterized in that: The control circuit also includes a second current regulating component, which is connected to the power module and grounded, and is used to regulate the current of the control circuit so that the control circuit is in an operating state, wherein the second current regulating component and N first current regulating components are at least one of the following devices: a capacitor device, an inductor device, a resistor device, an electron tube, and a diode.
5. The method according to claim 3, characterized in that: The power supply circuit comprises a first power supply device, a second power supply device and a third power supply device connected in sequence, the first power supply device is also connected to the power module and the on-off adjustment structure, and the third power supply device is connected to the electronic device; The first power supply device includes a plurality of first capacitor devices connected in parallel, and the plurality of first capacitor devices are connected to the power module to control the voltage and current changes of the power module. The first power supply device also includes a plurality of first resistor devices, and the plurality of first resistor devices are connected in parallel and connected to the on-off regulating structure. The plurality of first resistor devices are used to be connected in parallel with the first current regulating component when the on-off regulating structure is turned on, so as to regulate the current of the power supply circuit. The second power supply device is a DCDC power supply, and the DCDC power supply is used to adjust the current and voltage transmitted to the third power supply device by adjusting the current and voltage transmitted by the first power supply device, so that the voltage and current transmitted to the electronic device are in a stable state; When the power consumption state of the electronic device is the first power consumption state, a low level signal is transmitted to the on-off regulation structure to control the on-off regulation structure to close, and after the N current regulation components and the power supply circuit are turned on, the method further includes: When the on-off regulating structure is controlled to be turned on with the first power supply device, the conversion interface in the DCDC power supply is controlled to output a low level, wherein when the conversion interface in the DCDC power supply outputs a low level, the third power supply device transmits a low level signal to the electronic device to reduce the power consumption of the electronic device.
6. The method according to claim 5, characterized in that The third power supply circuit includes: an inductor device, a second resistor device, a third resistor device and a plurality of second capacitor devices, wherein: The inductor device and the second resistor device are both connected to the DCDC power supply. The inductor device is used to adjust the current transmitted to the electronic device by adjusting the change speed of the current transmitted by the DCDC power supply. The second resistor device and the third resistor device are connected in series to control and adjust the current transmitted by the DCDC power supply. Multiple second capacitor devices are connected in parallel to control the voltage and current changes of the DCDC power supply.
7. The method according to claim 1, characterized in that When the power consumption state of the electronic device is the first power consumption state, after sending a first control instruction to the control circuit to control the control circuit to be connected to the power supply circuit, the method further includes: When the power consumption state of the electronic device is the second power consumption state, a second control instruction is sent to the control circuit to control the control circuit to disconnect from the power supply circuit, wherein the control circuit is used to control the power consumption of the electronic device by controlling the current of the power supply circuit when disconnected from the power supply circuit, and the second power consumption state is a high power consumption state.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
