CN117130464A - Electronic equipment power consumption control method and device, computer equipment and storage medium - Google Patents

Electronic equipment power consumption control method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN117130464A
CN117130464A CN202311291104.8A CN202311291104A CN117130464A CN 117130464 A CN117130464 A CN 117130464A CN 202311291104 A CN202311291104 A CN 202311291104A CN 117130464 A CN117130464 A CN 117130464A
Authority
CN
China
Prior art keywords
power consumption
temperature
preset
consumption state
processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311291104.8A
Other languages
Chinese (zh)
Inventor
徐克有
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ziguang Computer Technology Co Ltd
Original Assignee
Ziguang Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ziguang Computer Technology Co Ltd filed Critical Ziguang Computer Technology Co Ltd
Priority to CN202311291104.8A priority Critical patent/CN117130464A/en
Publication of CN117130464A publication Critical patent/CN117130464A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3296Power saving characterised by the action undertaken by lowering the supply or operating voltage
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention relates to the technical field of electronic information processing, and discloses a method and a device for controlling power consumption of electronic equipment, computer equipment and a storage medium, wherein the method for controlling the power consumption of the electronic equipment comprises the following steps: acquiring a first working temperature of a processor of the electronic equipment, a second working temperature of an input/output port and an environment temperature; determining an actual power consumption state of the electronic device based on the first operating temperature, the second operating temperature, and the ambient temperature; when the actual power consumption state is in the full-load power consumption state, the power consumption of the control processor is reduced by preset power consumption. The scheme of the invention limits the power consumption of the CPU to a safe level through software logic judgment, is realized only by changing the control parameters of the CPU, has the advantage of small workload during realization compared with the scheme of optimizing and changing the power transmission parameters and the firmware parameters of the input and output ports, and has no influence on the use of the input and output ports by users.

Description

Electronic equipment power consumption control method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of electronic information processing technologies, and in particular, to a method and apparatus for controlling power consumption of an electronic device, a computer device, and a storage medium.
Background
When the electronic equipment such as a notebook, a tablet and the like is subjected to safety regulation test, the processor and all the input and output interfaces are in the running working condition of full-load running; at this time, the power consumption provided by the power adapter and the power consumption provided by the battery generally cannot meet the test requirement, and power supply shortage is easily caused to cause sudden abnormal shutdown, so that safety test fails.
When the problems occur, the prior art generally achieves the purpose of protecting the power consumption of the system by limiting the power of the individual input/output ports; however, limiting the output power of individual IOs can affect user usage; for example, when charging using TypeC-U3, it is normally a power of 5V 3A; the limited power is only 5V1A, the charging speed is low, and the power transmission parameters and the firmware parameters of the input and output ports need to be optimally changed, so that the method is time-consuming and labor-consuming.
Disclosure of Invention
In view of the above, the present invention provides a method, apparatus, computer device and storage medium for controlling power consumption of electronic device, so as to solve the problem of limiting the use of power application users of individual input/output ports when the security test fails.
In a first aspect, the present invention provides a method for controlling power consumption of an electronic device, where the method includes: in an alternative embodiment, a first operating temperature of a processor of the electronic device, a second operating temperature of an input-output port, and an ambient temperature are obtained; in an alternative embodiment, determining an actual power consumption state of the electronic device based on the first operating temperature, the second operating temperature, and the ambient temperature; in an alternative embodiment, when the actual power consumption state is in a full power consumption state, controlling the power consumption of the processor to reduce the preset power consumption.
In an alternative embodiment, the determining the actual power consumption state of the electronic device based on the first operating temperature, the second operating temperature, and the ambient temperature includes: calculating a first temperature difference between the first operating temperature and the ambient temperature; calculating a second temperature difference between the second operating temperature and the ambient temperature; and when the first temperature difference value is larger than a first preset difference value and the second temperature difference value is larger than a second preset difference value, confirming that the actual power consumption state is in a full-load power consumption state.
In an alternative embodiment, the method for controlling power consumption of an electronic device further includes: acquiring a first variation trend of the first temperature difference value and a second variation trend of the second temperature difference value; and when the first change trend meets a first preset change trend and the second change trend meets a second preset change trend, confirming that the actual power consumption state meets a full-load power consumption state.
In an alternative embodiment, the method for controlling power consumption of an electronic device further includes: acquiring a first temperature curve of a first temperature difference value of the processor when the processor operates in a full power consumption state along with time; acquiring a second temperature curve of a second temperature difference value of the input/output port in a full power consumption state along with time change; determining the first preset change trend based on the first temperature curve; and determining the second preset change trend based on the second temperature curve.
In an alternative embodiment, the determining the actual power consumption state of the electronic device based on the first operating temperature, the second operating temperature, and the ambient temperature further includes: acquiring a third change trend of the first working temperature and a fourth change trend of the second working temperature; and when the third variation trend meets a third preset variation trend and the fourth variation trend meets a fourth preset variation trend, confirming that the actual power consumption state meets a full-load power consumption state.
In an alternative embodiment, the method for controlling power consumption of an electronic device further includes: acquiring a third temperature curve of the first working temperature of the processor, which changes along with time when the processor operates in a full power consumption state; acquiring a fourth temperature curve of the second working temperature of the input/output port in the full power consumption state along with the time change; determining the third preset change trend based on the third temperature curve; and determining the fourth preset change trend based on the fourth temperature curve.
In an alternative embodiment, the preset power consumption is positively correlated to the first temperature difference or the second temperature difference.
In a second aspect, the present invention provides a power consumption protection apparatus, the apparatus comprising: the temperature acquisition module is used for acquiring the first working temperature of the processor, the second working temperature of the input/output port and the ambient temperature; a power consumption determining module for determining an actual power consumption state of the computer based on the first operating temperature, the second operating temperature, and the ambient temperature; and the control module is used for controlling the power consumption of the processor to reduce preset power consumption when the actual power consumption state meets the full-load power consumption state.
In a third aspect, the present invention provides a computer device comprising: the electronic device comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions, so that the electronic device power consumption control method of the first aspect or any corresponding implementation mode of the first aspect is executed.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the electronic device power consumption control method of the first aspect or any one of the embodiments corresponding thereto.
The embodiment of the invention has the beneficial effects that the actual power consumption state of the electronic equipment is judged based on the working temperature and the environmental temperature of the processor of the electronic equipment; when the actual power consumption state is in the full-load power consumption state, controlling the power consumption of the processor to reduce preset power consumption; on one hand, the power consumption of the CPU is limited to a safe level through software logic judgment, so that the power consumption requirement is met when the electronic equipment performs safety rule test, and the problem that the safety rule test fails due to sudden abnormal shutdown caused by power supply shortage is avoided; on the other hand, the mode can be realized only by changing the control parameters of the CPU, has the advantage of small workload in the realization process relative to optimizing and changing the power transmission parameters and the firmware parameters of the input and output ports, and has no influence on the use of the input and output ports by users.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for controlling power consumption of an electronic device according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a motherboard of an electronic device according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for controlling power consumption of an electronic device according to an embodiment of the invention;
FIG. 4 is a flow chart of another method for controlling power consumption of an electronic device according to an embodiment of the invention;
FIG. 5 is a block diagram of a power consumption protection apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
When the electronic products such as notebooks, tablets and the like are subjected to safety regulation test, the processor and all the input and output interfaces are in the running working condition of full-load running; at this time, the power consumption provided by the power adapter and the power consumption provided by the battery generally cannot meet the test requirement, and power supply shortage is easily caused to cause sudden abnormal shutdown, so that safety test fails.
When the above problems occur, the related art generally achieves the purpose of protecting the system power consumption by limiting the power of the individual input/output ports; the inventor researches find that limiting the output power of individual IO can affect the use of users; for example, when charging using TypeC-U3, it is normally a power of 5V 3A; the limited power is only 5V1A, the charging speed is low, and the power transmission parameters and the firmware parameters of the input and output ports need to be optimally changed, so that the method is time-consuming and labor-consuming.
In order to solve the above problems, in a first aspect, the present invention provides a method for controlling power consumption of an electronic device. By way of example, the electronic device may include a cell phone, tablet computer, PC, or the like; fig. 1 is a flowchart of a method for controlling power consumption of an electronic device according to an embodiment of the present invention, as shown in fig. 1, the flowchart including the steps of:
step S101, acquiring a first operating temperature of a processor of the electronic device, a second operating temperature of the input/output port, and an ambient temperature.
The inventor researches and discovers that on one hand, the processor of the electronic equipment has an over-frequency function when in operation, the CPU is usually in over-frequency operation in the beginning stage of the safety test, and the CPU power consumption is read in the over-frequency operation stage so as to judge that the full load degree of the electronic equipment is possibly misjudged; on the other hand, considering the trend of thinning the electronic device, the direct reading of the voltage and current of the input/output port requires adding corresponding sensing devices and circuits on the motherboard, which results in the increase of the cost of the electronic device and the increase of the motherboard area, contrary to the trend of thinning the electronic product.
The inventor further finds that the temperature of the main board can climb along with the heat generation of the heating device on the main board during the safety test, so that the power consumption and the power consumption change trend can be reflected through the temperature difference; based on this, in the embodiment of the present invention, the operation condition of the corresponding device is determined by the operation temperature of the relevant device.
Specifically, fig. 2 is a schematic diagram of an electronic device motherboard according to an embodiment of the present invention, and as shown in fig. 2, the electronic device motherboard includes a first temperature sensor 21 disposed near a CPU, a second temperature sensor 22 disposed on the motherboard at a 5V inductance, and a third temperature sensor 23 disposed on the motherboard; wherein the temperature sensor comprises a thermocouple or a thermistor.
In the present embodiment, the first operating temperature of the processor of the electronic device is determined by acquiring the temperature detected by the first temperature sensor 21; determining a second operating temperature by acquiring the temperature detected by the second temperature sensor 22; the ambient temperature is determined by acquiring the temperature detected by the third temperature sensor 23.
The inventor finds that whether the CPU is in a full-load state or not can be judged through the change trend of the first working temperature, and whether the input and output ports are in the full-load state or not can be judged through the change trend of the second working temperature, so that the change trend of the first working temperature and the second working temperature is calculated after the first working temperature and the second working temperature are obtained as a possible implementation mode; the change trend may be a temperature change rate of temperature change with time, or may be a temperature rise change rate of temperature change rate with time.
Step S102, determining an actual power consumption state of the electronic device based on the first operating temperature, the second operating temperature and the ambient temperature.
As one possible implementation, determining an actual power consumption state of the electronic device based on the first operating temperature, the second operating temperature, and values of the ambient temperature and the preset temperature; in an alternative embodiment, the inventor finds that, during the safety rule test, a difference value between the working temperature and the ambient temperature can be calculated according to the first working temperature, the second working temperature and the ambient temperature, and then whether the processor is in a state of full power consumption operation is judged by comparing the difference value with a threshold value; in another alternative embodiment, the inventor finds that the variation trend of the working temperature and the environmental temperature has a preset variation trend during the safety test, so the variation trend of the working temperature and the environmental temperature can be calculated according to the first working temperature, the second working temperature and the environmental temperature, and then whether the processor is in a state of full power consumption operation is judged by comparing the variation trend with the preset variation trend.
Step S103, when the actual power consumption state is in the full power consumption state, controlling the power consumption of the processor to reduce the preset power consumption.
When the actual power consumption is in a full-load power consumption state, the continuous control of the processor to run with the full power consumption can cause that the electronic equipment cannot meet the requirements of safety regulation test, power supply shortage occurs and abnormal shutdown occurs, and further the safety regulation test fails; in order to avoid the above-described problem, in the present embodiment, the power consumption of the control processor is reduced by a preset power consumption; as one possible implementation manner, the processor may be controlled to reduce the power consumption by a fixed value of N, where N is a positive integer; as another possible implementation, the processor may be controlled to reduce power consumption by kxn, where k is positively correlated to the duration of time that the electronic device is in a full power consumption state.
When the actual power consumption state is in the full-load power consumption state, the power consumption of the control processor is reduced by the preset power consumption, on one hand, the power consumption of the CPU is limited to a safe level through software logic judgment, so that the electronic equipment meets the power consumption requirement when performing safety test, and the problem that the safety test fails due to sudden abnormal shutdown caused by power supply shortage is avoided; on the other hand, the mode can be realized only by changing the control parameters of the CPU, has the advantage of small workload in the realization process relative to optimizing and changing the power transmission parameters and the firmware parameters of the input and output ports, and has no influence on the use of the input and output ports by users.
The electronic device has a fixed difference between the CPU temperature and the ambient temperature and a fixed difference between the input/output port temperature and the ambient temperature when operating at full power consumption under the condition that the CPU model and the input/output port model are fixed. Based on this, fig. 3 is a flowchart of another method for controlling power consumption of an electronic device according to an embodiment of the present invention, as shown in fig. 3, in an alternative implementation, step S102, determining an actual power consumption state of the electronic device based on the first operating temperature, the second operating temperature and the ambient temperature includes:
in step S301, a first temperature difference between the first operating temperature and the ambient temperature is calculated.
In step S302, a second temperature difference between the second operating temperature and the ambient temperature is calculated.
In step S302, when the first temperature difference is greater than the first preset difference and the second temperature difference is greater than the second preset difference, the actual power consumption state is determined to be in the full power consumption state.
In this embodiment, the first preset difference value and the second preset difference value may be determined before the electronic device leaves the factory; specifically, before the electronic equipment leaves the factory, recording the temperature difference between the first working temperature and the environment temperature of the electronic equipment after the electronic equipment runs for a preset time with full power consumption as a first preset difference value, and the temperature difference between the second working temperature and the environment temperature as a second preset difference value; the value of the preset duration can be the operation duration of the problem that the safety test fails due to the fact that the electronic equipment is about to be shut down suddenly and abnormally due to the fact that power supply shortage is about to occur or just occurs when the electronic equipment operates.
It should be understood that in this embodiment, before shipment, the first preset difference values of the first working temperature and the ambient temperature after the electronic devices with different CPU models and different input/output port models operate with full power consumption for a preset period may be tested in advance, the second preset difference values of the second working temperature and the ambient temperature may be generated, a table of the CPU models and the input/output ports and the corresponding first preset difference values and the second preset difference values may be stored in the local memory or the cloud server, and the table may be read from the local memory or downloaded from the cloud server when determining the actual power consumption state of the electronic device, so as to obtain the first preset difference values and the second preset difference values.
In this embodiment, when the first temperature difference is greater than 30 ℃ and the second temperature difference is greater than 25 ℃, the actual power consumption state is determined to be in the full power consumption state, and at this time, continuing to control the processor to operate with full power consumption may cause the electronic device to fail to meet the requirements of the safety rule test, and power supply shortage may occur to cause abnormal shutdown, thereby causing the problem of failure of the safety rule test.
The inventor finds that, during the safety test, the first temperature difference value has a preset variation trend when the CPU is in full operation, and the second temperature difference value has a preset variation trend when the input/output port is in full operation, so in an alternative embodiment, the method for controlling power consumption of the electronic device further includes: acquiring a first variation trend of the first temperature difference value and a second variation trend of the second temperature difference value; when the first change trend meets the first preset change trend and the second change trend meets the second preset change trend, confirming that the actual power consumption state meets the full-load power consumption state.
In this embodiment, the first variation trend may be determined by calculation after the first temperature difference is obtained, and the second variation trend may be determined by calculation after the second temperature difference is obtained; specifically, after the first temperature difference value and the second temperature difference value are obtained, calculating an actual temperature change rate of the first temperature difference value or an actual temperature rise change rate representing a change condition of the actual temperature change rate as a first change trend; calculating the actual temperature change rate of the second temperature difference value or the actual temperature rise change rate representing the change condition of the actual temperature change rate as a second change trend;
for example, the first preset change trend may be determined before the electronic device leaves the factory; specifically, after a first temperature difference value between a first working temperature and an ambient temperature after the electronic equipment runs for a preset time period with full power consumption is recorded before the electronic equipment leaves a factory, calculating a temperature change rate or a temperature rise change rate of the first temperature difference value as a first preset change trend; after a second temperature difference value between a second working temperature and an ambient temperature is recorded after the electronic equipment runs for a preset time with full power consumption, calculating a temperature change rate or a temperature rise change rate of the second temperature difference value as a second preset change trend; when the first change trend meets the first preset change trend and the second change trend meets the second preset change trend, the fact that the actual power consumption state is in the full-load power consumption state is confirmed, at the moment, the processor is continuously controlled to run with full power consumption, the electronic equipment cannot meet the requirements of safety rule testing, power supply shortage occurs, abnormal shutdown occurs, and the safety rule testing fails.
When the CPU model of the electronic device is different, the input/output model is different, or the CPU model and the input/output model are different, the first preset variation trend and the second preset variation trend may also be different, and the first preset variation trend and the second preset variation trend are calculated for the electronic device with different CPU models, different input/output models, or different CPU models and different input/output models respectively before the electronic device leaves the factory, and corresponding relations including forms of tables, expressions and the like of the corresponding first preset variation trend and the corresponding second preset variation trend are generated, stored in a local server or a cloud server, and the first preset variation trend and the second preset variation trend are read from a local memory or downloaded from the cloud server when the actual power consumption state of the electronic device is determined.
In an alternative embodiment, the method for controlling power consumption of an electronic device further includes: acquiring a first temperature curve of a first temperature difference value of a processor in a full power consumption state along with time change; acquiring a second temperature curve of a second temperature difference value of the input/output port in a full power consumption state along with time change; determining a first preset change trend based on a first temperature curve; and determining a second preset change trend based on the second temperature curve.
In the present embodiment, the first temperature profile is y=a 1 x 2 +b 1 x+C 1 In which y represents temperature, x represents time, a 1 、b 1 And C 1 The value of (2) is changed with the different CPU models; the second temperature profile is y=a 2 x 2 +b 2 x+C 2 Form (iv); wherein y represents temperature, x represents time, a 2 、b 2 And C 2 The value of (2) is changed according to the different types of the input and output ports; illustratively, the first temperature profile trend may be:
y=(-9E-06)x 2 +0.0078x+21.486。
the inventor has found that, during the safety test, the first operating temperature has a preset trend when the CPU is in full operation, and the second operating temperature has a preset trend when the input/output port is in full operation, so in an alternative implementation, fig. 4 is a schematic flow chart of another method for controlling power consumption of an electronic device according to an embodiment of the present invention, as shown in fig. 4, step S102, determining an actual power consumption state of the electronic device based on the first operating temperature, the second operating temperature and the ambient temperature, and further includes:
step S401, acquiring a third variation trend of the first operating temperature and a fourth variation trend of the second operating temperature.
In step S402, when the third variation trend satisfies the third preset variation trend and the fourth variation trend satisfies the fourth preset variation trend, the actual power consumption state is confirmed to satisfy the full power consumption state.
In this embodiment, the third variation trend may be determined by calculation after the first working temperature is obtained, and the fourth variation trend may be determined by calculation after the second working temperature is obtained; specifically, after the first working temperature and the second working temperature are obtained, calculating an actual temperature change rate of the first working temperature or an actual temperature rise change rate representing a change condition of the actual temperature change rate as a third change trend; and calculating the actual temperature change rate of the second operating temperature or the actual temperature rise change rate representing the change condition of the actual temperature change rate as a fourth change trend.
The electronic equipment has a fixed change trend of the first working temperature and the second working temperature when running at full power consumption under the fixed CPU model and the fixed input/output port model; in this embodiment, the third preset change trend may be determined before the electronic device leaves the factory; specifically, after a first working temperature of the electronic equipment is recorded before the electronic equipment leaves the factory and after the electronic equipment runs for a preset time period with full power consumption, calculating a temperature change rate or a temperature rise change rate of the first working temperature as a third preset change trend; after the second working temperature of the electronic equipment is recorded after the electronic equipment runs for a preset time with full power consumption, calculating the temperature change rate or the temperature rise change rate of the second working temperature as a fourth preset change trend; when the third variation trend meets a third preset variation trend, confirming that the CPU is in a full-load state; when the fourth variation trend meets a fourth preset variation trend, confirming that the input and output ports are in a full-load state; when the CPU and the input/output port are in a full-load state at the same time, the actual power consumption state is confirmed to be in the full-load power consumption state, and at the moment, the processor is continuously controlled to run with the full power consumption, so that the electronic equipment cannot meet the requirements of safety testing, power supply shortage can occur, abnormal shutdown is caused, and the safety testing fails.
When the CPU model of the electronic device is different, the input/output port model is different, or the CPU model and the input/output port model are different, the third preset change trend and the fourth preset change trend may also be different, and for example, before the electronic device leaves the factory, the third preset change trend and the fourth preset change trend are calculated for the electronic device with different CPU models, different input/output port models, or different CPU models and different input/output port models, corresponding relations including forms of tables, expressions and the like of the corresponding third preset change trend and the fourth preset change trend are generated, the corresponding relations are stored in a local server or a cloud server, and the third preset change trend and the fourth preset change trend are read from a local memory or downloaded from the cloud server when the actual power consumption state of the electronic device is determined.
In an alternative embodiment, the method for controlling power consumption of an electronic device further includes:
acquiring a third temperature curve of the first working temperature changing along with time when the processor operates in a full power consumption state; acquiring a fourth temperature curve of the second working temperature of the input/output port in the full power consumption state along with the time change; determining a third preset change trend based on a third temperature curve; and determining a fourth preset change trend based on the fourth temperature curve.
In an alternative embodiment, the preset power consumption is positively correlated to the first temperature difference or the second temperature difference.
In the embodiment, the change of temperature with time is taken as the change of the CPU operation condition with time and the change of the input/output port operation condition with time; it should be appreciated that the greater the operating power consumption of the CPU or input-output port, the greater the first temperature difference or the second temperature difference over a fixed period of time; based on this, the preset power consumption is positively correlated with the first temperature difference or the second temperature difference.
It should be appreciated that the preset power consumption and the first temperature difference or the second temperature difference may be in a linear or nonlinear functional relationship with positive correlation.
The embodiment also provides a power consumption protection device, which is used for implementing the above embodiment and the preferred implementation manner, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides a power consumption protection apparatus, as shown in fig. 5, including:
the temperature acquisition module 501 is configured to acquire a first operating temperature of the processor, a second operating temperature of the input/output port, and an ambient temperature.
The power consumption determining module 502 is configured to determine an actual power consumption state of the computer based on the first operating temperature, the second operating temperature, and the ambient temperature.
And the control module 503 is configured to control the power consumption of the processor to reduce the preset power consumption when the actual power consumption state meets the full power consumption state.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The power consumption protection device in this embodiment is presented in the form of functional units, where the units refer to ASIC (Application Specific Integrated Circuit ) circuits, processors and memories executing one or more software or fixed programs, and/or other devices that can provide the above described functionality.
The embodiment of the invention also provides computer equipment, which is provided with the power consumption protection device shown in the figure 5.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 6, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 6.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform a method for implementing the embodiments described above.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (10)

1. The power consumption control method for the electronic equipment is characterized by comprising the following steps of:
acquiring a first working temperature of a processor of the electronic equipment, a second working temperature of an input/output port and an environment temperature;
determining an actual power consumption state of the electronic device based on the first operating temperature, the second operating temperature, and the ambient temperature;
and when the actual power consumption state is in a full-load power consumption state, controlling the power consumption of the processor to reduce preset power consumption.
2. The method of claim 1, wherein the determining the actual power consumption state of the electronic device based on the first operating temperature, the second operating temperature, and the ambient temperature comprises:
calculating a first temperature difference between the first operating temperature and the ambient temperature;
calculating a second temperature difference between the second operating temperature and the ambient temperature;
and when the first temperature difference value is larger than a first preset difference value and the second temperature difference value is larger than a second preset difference value, confirming that the actual power consumption state is in a full-load power consumption state.
3. The electronic device power consumption control method according to claim 2, characterized in that the electronic device power consumption control method further comprises:
acquiring a first variation trend of the first temperature difference value and a second variation trend of the second temperature difference value;
and when the first change trend meets a first preset change trend and the second change trend meets a second preset change trend, confirming that the actual power consumption state meets a full-load power consumption state.
4. The electronic device power consumption control method according to claim 3, characterized in that the electronic device power consumption control method further comprises:
acquiring a first temperature curve of a first temperature difference value of the processor when the processor operates in a full power consumption state along with time;
acquiring a second temperature curve of a second temperature difference value of the input/output port in a full power consumption state along with time change;
determining the first preset change trend based on the first temperature curve;
and determining the second preset change trend based on the second temperature curve.
5. The method of claim 1, wherein the determining the actual power consumption state of the electronic device based on the first operating temperature, the second operating temperature, and the ambient temperature, further comprises:
acquiring a third change trend of the first working temperature and a fourth change trend of the second working temperature;
and when the third variation trend meets a third preset variation trend and the fourth variation trend meets a fourth preset variation trend, confirming that the actual power consumption state meets a full-load power consumption state.
6. The method for controlling power consumption of an electronic device according to claim 5, further comprising:
acquiring a third temperature curve of the first working temperature of the processor, which changes along with time when the processor operates in a full power consumption state;
acquiring a fourth temperature curve of the second working temperature of the input/output port in the full power consumption state along with the time change;
determining the third preset change trend based on the third temperature curve;
and determining the fourth preset change trend based on the fourth temperature curve.
7. The method of claim 2, wherein the preset power consumption is positively correlated with the first temperature difference or the second temperature difference.
8. A power consumption protection apparatus, the apparatus comprising:
the temperature acquisition module is used for acquiring the first working temperature of the processor, the second working temperature of the input/output port and the ambient temperature;
a power consumption determining module for determining an actual power consumption state of the computer based on the first operating temperature, the second operating temperature, and the ambient temperature;
and the control module is used for controlling the power consumption of the processor to reduce preset power consumption when the actual power consumption state meets the full-load power consumption state.
9. A computer device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the electronic device power consumption control method of any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the electronic device power consumption control method according to any one of claims 1 to 7.
CN202311291104.8A 2023-10-08 2023-10-08 Electronic equipment power consumption control method and device, computer equipment and storage medium Pending CN117130464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311291104.8A CN117130464A (en) 2023-10-08 2023-10-08 Electronic equipment power consumption control method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311291104.8A CN117130464A (en) 2023-10-08 2023-10-08 Electronic equipment power consumption control method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117130464A true CN117130464A (en) 2023-11-28

Family

ID=88863011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311291104.8A Pending CN117130464A (en) 2023-10-08 2023-10-08 Electronic equipment power consumption control method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117130464A (en)

Similar Documents

Publication Publication Date Title
US10147048B2 (en) Storage device lifetime monitoring system and storage device lifetime monitoring method thereof
CN103377115A (en) System event log management system and system event log management method
CN102411526A (en) Test method of mainboard of blade server
CN111858122A (en) Fault detection method, device, equipment and storage medium of storage link
CN114151373B (en) Method, system, terminal and storage medium for regulating and controlling rotation speed of server fan
US20210089005A1 (en) Control device, control system, control method, and computer-readable storage medium
CN104699589A (en) Fan error detection system and method
US20220167527A1 (en) Temperature correction method and computer device implementing the same
US9645873B2 (en) Integrated configuration management and monitoring for computer systems
CN109185208B (en) Fan speed regulation method and related device
CN112328442A (en) Radiator detection method and device and computer readable storage medium
CN117130464A (en) Electronic equipment power consumption control method and device, computer equipment and storage medium
US10218722B2 (en) Method and system for developing an anomaly detector for detecting an anomaly parameter on network terminals in a distributed network
CN113900718B (en) Decoupling method, system and device for BMC and BIOS asset information
CN116011677A (en) Time sequence data prediction method and device, electronic equipment and storage medium
CN115729756A (en) Test-accompanied hard disk, and method and system for test-accompanied server based on test-accompanied hard disk
CN114326999A (en) Thermal imaging based heat dissipation regulation and control method, system, equipment and storage medium
CN114817010A (en) Python-based Redfish automatic testing method and device
US11775403B2 (en) Method and system for developing an anomaly detector for detecting an anomaly parameter on network terminals in a distributed network
CN111831510A (en) Function regulation and control method and device and computer readable storage medium
CN214670568U (en) Computer with self-checking and remote monitoring capabilities
CN114201021B (en) Temperature management method and system for storage system
WO2017107187A1 (en) Anomaly detection techniques for servers and data centers
CN111124804B (en) Test method and device
CN110596581B (en) Prerecording storage device and online test system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination