CN107342873B - Power consumption control method and device - Google Patents

Power consumption control method and device Download PDF

Info

Publication number
CN107342873B
CN107342873B CN201610281715.8A CN201610281715A CN107342873B CN 107342873 B CN107342873 B CN 107342873B CN 201610281715 A CN201610281715 A CN 201610281715A CN 107342873 B CN107342873 B CN 107342873B
Authority
CN
China
Prior art keywords
power consumption
devices
total
total power
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610281715.8A
Other languages
Chinese (zh)
Other versions
CN107342873A (en
Inventor
江海平
安云霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610281715.8A priority Critical patent/CN107342873B/en
Publication of CN107342873A publication Critical patent/CN107342873A/en
Application granted granted Critical
Publication of CN107342873B publication Critical patent/CN107342873B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

A power consumption control method and a power consumption control device are used for solving the problem of power consumption control of equipment which does not support a CPU frequency modulation function. The method comprises the following steps: detecting the total power consumption of the system; if the total power consumption of the system meets a preset condition, triggering a power consumption alarm; selecting M second devices from the N second devices; detecting power consumption of each of the M second devices; if at least one second device exists in the M second devices, for each second device in the at least one second device, the detected power consumption of the second device is not less than a preset first power consumption threshold of the second device, and then the power consumption of part or all of the second devices in the at least one second device is reduced; detecting the total power consumption of the system; and if the detected total power consumption of the system does not meet the preset condition, removing the power consumption alarm, and otherwise, returning to the step of selecting M second devices from the N second devices.

Description

Power consumption control method and device
Technical Field
The present invention relates to the field of wireless communications, and in particular, to a power consumption control method and apparatus.
Background
The power consumption of a device is typically controlled to meet the low power consumption requirements of the device. Taking a device supporting Power Over Ethernet (PoE) as an example, as shown in table one below, a PoE Power supply standard specifies that maximum allowed Power consumption corresponding to devices supporting different levels is also different, for example, the maximum allowed Power consumption of a device supporting level 1(CLASS 1) is 3.84w, and if the Power consumption of the device exceeds the corresponding maximum allowed Power consumption, a phenomenon that the switch is powered off to restart the device occurs, which seriously affects the use experience of a user, and therefore, it is very important to control the Power consumption of the device.
Figure BDA0000979529430000011
In the prior art, a Central Processing Unit (CPU) frequency modulation mode is adopted to control power consumption of a device, and the CPU frequency modulation is to reduce the frequency of the CPU of the device to control the power consumption of the device. However, the CPU frequency modulation requires that the applicable device supports the frequency modulation function, and for a device that does not support the frequency modulation function, the purpose of controlling the power consumption of the device cannot be achieved by using the CPU frequency modulation.
Disclosure of Invention
The embodiment of the invention provides a power consumption control method and a power consumption control device, which are used for solving the problem of power consumption control of equipment which does not support a CPU frequency modulation function.
The system applied to the technical scheme provided by the embodiment of the invention comprises a first device and N second devices connected with the first device, wherein N is a positive integer, and taking an internet phone system as an example, the internet phone system comprises an internet phone and devices such as an earphone, a handle, a loudspeaker and a Liquid Crystal Display (LCD) which are connected with the internet phone. Among them, the Internet Phone, also called a Voice over Internet Protocol (VoIP) technology, is an IP Phone or a broadband Phone, which performs real-time Voice transmission service through the Internet. The system applied to the technical solution provided in the embodiment of the present invention includes a system of a first device and N second devices connected to the first device, where N is a positive integer, and the system may be an internet phone system or other systems, which is not limited herein. The second device may be connected to the first device outside the first device, or may be connected to the first device inside the first device in an embedded manner, and the connection manner between the second device and the first device is not limited herein.
In one aspect, a power consumption control method provided in an embodiment of the present invention is applied to a system, where the system includes a first device and N second devices connected to the first device, where N is a positive integer, and the method includes:
detecting a total power consumption of the system, wherein the total power consumption of the system is equal to the sum of the power consumption of the first device and the power consumption of the N second devices;
if the total power consumption of the system meets a preset condition, triggering a power consumption alarm;
selecting M second devices from the N second devices, wherein M is a positive integer not greater than N;
detecting a power consumption of each of the M second devices;
if at least one second device exists in the M second devices, for each second device in the at least one second device, the detected power consumption of the second device is not less than a preset first power consumption threshold of the second device, and then the power consumption of part or all of the second devices in the at least one second device is reduced;
detecting a total power consumption of the system;
and if the detected total power consumption of the system does not meet the preset condition, removing the power consumption alarm, and otherwise, returning to the step of selecting M second devices from the N second devices.
In one possible design, the preset conditions include:
the total power consumption of the system is greater than or equal to a second power consumption threshold; alternatively, the first and second electrodes may be,
the total power consumption of the system is smaller than a second power consumption threshold and not smaller than a third power consumption threshold at a first time point, and the difference between the increase values of the total power consumption of the system in any two adjacent unit times after the first time point is not smaller than zero.
In one possible design, reducing power consumption of some or all of the at least one second device includes:
for each second device in part or all of the at least one second device, adopting a preset power consumption suppression strategy of the second device to start power consumption suppression of the second device so as to reduce the power consumption of the second device;
after the power consumption alarm is released, the method further comprises the following steps:
and for each second device starting power consumption suppression, adopting a preset power consumption suppression releasing strategy of the second device to release power consumption suppression of the second device.
In one possible design, after reducing power consumption of some or all of the at least one second device, the method further includes:
for each of part or all of the at least one second device, setting a first identifier for the second device, the first identifier indicating that the power consumption of the second device has been reduced;
after the power consumption alarm is released, the method further comprises the following steps:
and for each second device with the first identifier set, modifying the first identifier set for the second device into a second identifier, wherein the second identifier represents that the power consumption of the second device is not reduced.
In one possible design, the M second devices are some or all of the N second devices, and the setting of the power consumption of the second devices exceeds the standard, which may cause the total power consumption of the system to exceed the standard.
On the other hand, an apparatus for controlling power consumption provided in an embodiment of the present invention is applied to a system, where the system includes a first device and N second devices connected to the first device, where N is a positive integer, and the apparatus includes:
a power consumption detection module to: detecting the total power consumption of the system and the power consumption of second equipment according to the control of a power consumption control module, wherein the total power consumption of the system is equal to the sum of the power consumption of the first equipment and the power consumption of the N pieces of second equipment;
the power consumption control module is used for:
controlling the power consumption detection module to detect the total power consumption of the system; if the total power consumption of the system detected by the power consumption detection module meets a preset condition, triggering a power consumption alarm;
selecting M second devices from the N second devices, wherein M is a positive integer not greater than N;
controlling the power consumption detection module to detect the power consumption of each of the M second devices;
if at least one second device exists in the M second devices, for each second device in the at least one second device, when it is determined that the power consumption of the second device detected by the power consumption detection module is not less than a preset first power consumption threshold of the second device, reducing the power consumption of part or all of the at least one second device;
controlling the power consumption detection module to detect the total power consumption of the system; and if the detected total power consumption of the system does not meet the preset condition, removing the power consumption alarm, and otherwise, returning to the step of selecting M second devices from the N second devices.
In one possible design, the preset conditions include:
the total power consumption of the system is greater than or equal to a second power consumption threshold; alternatively, the first and second electrodes may be,
when the total power consumption of the system is smaller than a second power consumption threshold and not smaller than a third power consumption threshold at a first time point, and the difference between the increase values of the total power consumption of the system in any two adjacent unit times after the first time point is not smaller than zero.
In a possible design, the power consumption control module, when reducing the power consumption of some or all of the at least one second device, is specifically configured to:
for each second device in part or all of the at least one second device, adopting a preset power consumption suppression strategy of the second device to start power consumption suppression of the second device;
the power consumption control module is further configured to, after the power consumption alert is released:
and for each second device starting power consumption suppression, adopting a preset power consumption suppression releasing strategy of the second device to release power consumption suppression of the second device.
In one possible design, the power consumption control module, after reducing the power consumption of some or all of the at least one second device, is further configured to:
setting a first identifier for each of part or all of the at least one second device, the first identifier indicating that the power consumption of the second device has been reduced;
the power consumption control module is further configured to, after the power consumption alert is released:
and for each second device with the first identifier set, modifying the first identifier set for the second device into a second identifier, wherein the second identifier represents that the power consumption of the second device is not reduced.
In one possible design, the M second devices are some or all of the N second devices, and the setting of the power consumption of the second devices exceeds the standard, which may cause the total power consumption of the system to exceed the standard.
The technical scheme provided by the embodiment of the invention is applied to a system which comprises a first device and N second devices connected with the first device, wherein N is a positive integer, for example, an internet telephone system, the total power consumption of the system can be controlled, a power consumption alarm is triggered when the total power consumption of the system exceeds the standard, the total power consumption of the system is reduced by reducing the power consumption of partial or all risk devices which easily cause the total power consumption of the system to exceed the standard, and the power consumption alarm is released when the total power consumption of the system reaches the standard. The method provided by the embodiment of the invention can also realize the control of the total power consumption of the system for the system which does not support the CPU frequency reduction function; for a system which adopts a PoE power supply mode to supply power, the method provided by the embodiment of the invention is used for controlling power consumption, so that the problems of system power failure and influence on user experience caused by the over standard total power consumption of the system are solved.
Drawings
Fig. 1 is a schematic system diagram of an application of the technical solution provided by the embodiment of the present invention;
fig. 2 is a schematic flow chart of a power consumption control method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating preset conditions according to an embodiment of the present invention;
fig. 4A is a schematic structural diagram of a power consumption control apparatus according to an embodiment of the present invention;
fig. 4B is a schematic diagram of a connection structure between a power consumption control device and an internet system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
With the explosive growth of internet data and the high cost of communication tools in enterprises, internet phones are more and more widely applied in the field of enterprise business. The internet Phone, i.e., IP Phone, also known as a network Phone or a broadband Phone, is based on VoIP technology to perform real-time voice transmission service through the internet. The Internet telephone and the earphone, the handle, the loudspeaker, the LCD and other devices connected with the Internet telephone form an Internet telephone system.
POE refers to a technology that, without any change in the existing ethernet cat.5 wiring infrastructure, can provide dc power for some IP-based devices (e.g., IP Phone, wlan access point, network camera, etc.) while transmitting data signals for such devices. The internet telephone system supports a PoE power supply mode, and enterprises can select the PoE power supply mode to supply power to the internet telephone system in order to save power supply cost and unnecessary lines in the process of using the internet telephone system. Since the maximum allowed power consumption of the devices supporting different levels is different according to the PoE power supply standard, the total power consumption of the internet phone system is limited by the maximum allowed power consumption of the levels supported by the system, for example, when the internet phone system supports level 1(CLASS 1), the maximum allowed power consumption is 3.84w, so the maximum total power consumption of the internet phone system cannot exceed 3.84w, and if the actual power consumption of the devices exceeds the corresponding maximum allowed power consumption, a phenomenon that the switch is powered off to restart the system occurs, which seriously affects the use experience of the user.
An embodiment of the present invention provides a power consumption control method and apparatus, which are applied to a system, as shown in fig. 1, the system 100 includes a first device 101 and N second devices 102 connected to the first device 101, where N is a positive integer. The system may be the internet phone system, and may also be other systems, which are not limited herein. The second device may be connected to the first device outside the first device, or may be connected to the first device inside the first device in an embedded manner, and the connection manner between the second device and the first device is not limited herein.
When the technical scheme provided by the embodiment of the invention is applied to an internet Phone system, an internet Phone (IP Phone) is understood as the first device in the embodiment of the invention, and devices such as an earphone, a handle, a loudspeaker, an LCD and the like are understood as the N second devices in the embodiment of the invention.
The embodiment of the invention provides a power consumption control method and a power consumption control device, which are used for solving the problem of power consumption control of equipment which does not support a CPU frequency modulation function. The method and the device are based on the same inventive concept, and because the principles of solving the problems of the method and the device are similar, the implementation of the device and the method can be mutually referred, and repeated parts are not repeated.
The technical scheme provided by the embodiment of the invention is described in detail below.
It should be noted that the setting value, the threshold value, or the like in the embodiment of the present invention may be determined according to actual needs, may also be determined according to experimental data, and is not limited herein. In the embodiments of the present invention, "not less than" means greater than or equal to.
As shown in fig. 2, an embodiment of the present invention provides a power consumption control method, where the method is applied to a system, where the system includes a first device and N second devices connected to the first device, where N is a positive integer, and the method includes:
s201, detecting the total power consumption of a system, wherein the total power consumption of the system is equal to the sum of the power consumption of the first device and the power consumption of the N second devices.
Optionally, the total power consumption of the system is detected while the system is operating. Further, the total power consumption of the system is detected when the system starts a certain service.
Taking an internet telephone system as an example, when the internet telephone system starts a call service, the total power consumption of the internet telephone system is detected, wherein the total power consumption of the internet telephone system comprises the sum of the power consumption of an IP Phone and the power consumption of equipment such as a loudspeaker, an earphone and an LCD which are connected with the IP Phone; and stopping detecting the total power consumption of the Internet telephone system when the call service of the Internet telephone system is hung up.
S202, if the total power consumption of the system meets a preset condition, triggering a power consumption alarm.
Optionally, after detecting the total power consumption of the system, if the total power consumption of the system does not satisfy the preset condition, it is determined that a power consumption alarm does not need to be triggered.
Wherein, the preset condition can be set as:
when the detected total power consumption of the system is larger than or equal to the second power consumption threshold, judging that the total power consumption of the system meets a preset condition; alternatively, the first and second electrodes may be,
and if the total power consumption of the system detected at the first time point is less than the second power consumption threshold and not less than the third power consumption threshold, and if the total power consumption of the system periodically detected after the first time point does not have a weakening trend, judging that the total power consumption of the system meets a preset condition. Specifically, the total power consumption of the system detected at a first time point is smaller than a second power consumption threshold and not smaller than a third power consumption threshold, the total power consumption of the system at a plurality of detection times is periodically detected after the first time point, and when the difference between the increase values of the total power consumption of the system in any two adjacent unit times is not smaller than zero, the total power consumption of the system is judged to meet a preset condition.
Wherein the third power consumption threshold is less than or equal to the second power consumption threshold. The increase value of the total power consumption of the system in the unit time refers to the difference of the total power consumption of the system detected in two detection times, the unit time refers to the duration between the two detection times, and the unit time can be one detection period or a plurality of detection periods.
For example, as shown in fig. 3, if the total power consumption a of the currently detected system is smaller than the second power consumption threshold and not smaller than the third power consumption threshold, the total power consumption of the system at the four detection times of T1, T2, T3 and T4 after the moment of expiration is detected periodically as a1, a2, A3 and a4, respectively, and the duration between two adjacent detection times is one detection period. Taking a unit time as a detection cycle as an example, according to the chronological order, the increase values of the total power consumption of the system in the unit time are A2-A1, A3-A2 and A4-A3 in sequence, the difference between the increase values of the total power consumption of the system in two adjacent unit times is (A3-A2) - (A2-A1) and (A4-A3) - (A3-A2), if the (A3-A2) - (A2-A1) and the (A4-A3) - (A3-A2) are both greater than or equal to zero, and the situation that the total power consumption of the system does not have a decreasing trend after the detection time corresponding to the total power consumption A of the system is shown, the total power consumption of the system is judged to meet a preset condition, and a power consumption alarm is triggered.
S203, M second devices are selected from the N second devices, and M is a positive integer not larger than N.
And S204, detecting the power consumption of each of the M second devices.
The M second devices are part or all of the N second devices, and the set power consumption of the second devices exceeds the standard, so that the risk of exceeding the total power consumption of the system exists. Therefore, this setting of the second device is a risky device that easily causes the total power consumption of the system to exceed the standard. Risk equipment which easily causes the total power consumption of the system to exceed the standard can be determined according to experience, product configuration parameters and the like.
Setting that the power consumption of the second device exceeds the standard means detecting that the power consumption of the second device is not less than a preset first power consumption threshold of the second device, where the first power consumption threshold may be set as the maximum power consumption allowed to be reached by the second device, and the maximum power consumption allowed to be reached by different second devices may be different. And when the detected total power consumption of the system meets the preset condition, the total power consumption of the system exceeds the standard.
For example, an IP Phone (first device) in an internet Phone system is connected to N second devices such as an earphone, a speaker, and an LCD, and when the internet Phone system is in a call service, if there are a plurality of risk devices in the internet Phone system that easily cause the power consumption of the system to exceed the standard, the plurality of risk devices are determined as the set second devices, but when the current risk device in use for a call is only an earphone, it may be selected to detect only the power consumption of the earphone without detecting the power consumption of all risk devices.
S205, if at least one second device exists in the M second devices, and for each second device in the at least one second device, the detected power consumption of the second device is not less than a preset first power consumption threshold of the second device, reducing the power consumption of part or all of the second devices in the at least one second device.
Each second device corresponds to a first power consumption threshold, and the values of the first power consumption thresholds corresponding to different second devices may be the same or different. The preset first power consumption threshold of the second device is used to determine whether the detected power consumption of the second device exceeds the standard, and the preset first power consumption threshold of the second device may be set as the maximum power consumption allowed to be reached by the second device.
If at least one second device exists in the M second devices, for each second device in the at least one second device, the detected power consumption of the second device is not less than a preset first power consumption threshold of the second device, which indicates that the power consumption of the second device exceeds the standard, the power consumption of the second device needs to be reduced, and further, the total power consumption of a system where the second device is located is reduced.
In this embodiment, when a plurality of second devices with excessive power consumption are provided, the total power consumption of the system may be reduced by reducing the power consumption of some or all of the second devices with excessive power consumption, and in this embodiment, the power consumption of some second devices is allowed to exceed the standard under the condition that the total power consumption of the system reaches the standard.
Optionally, for each of some or all of the at least one second device (i.e., the second device that performs the power consumption reduction process), a preset power consumption suppression policy of the second device is adopted to start suppression of power consumption of the second device, so as to reduce power consumption of the second device. The power consumption suppression strategy is to achieve the purpose of suppressing the power consumption of the second equipment by performing function control on the second equipment.
The power consumption reduction strategy may be different for different second devices. For example, when the second device is a Digital Signal Processing (DSP) device, the power consumption suppression strategy of the DSP device includes: an Automatic Gain Control (AGC) function of the DSP device is started, and the maximum signal intensity of the DSP device is controlled within a specified range to avoid an excessive operational amplifier, thereby reducing the power consumption of the DSP device.
It should be noted that the preset power consumption suppression policy of the second device may adopt the prior art, and is not limited herein.
And S206, detecting the total power consumption of the system.
And S207, if the detected total power consumption of the system does not meet the preset condition, removing the power consumption alarm.
Optionally, after the power consumption alarm is released, the method further includes:
and for each second device with reduced power consumption, adopting a preset power consumption inhibition releasing strategy of the second device to release the inhibition of the power consumption of the second device. The power consumption inhibition releasing strategy is used for releasing the inhibition of the power consumption of the second equipment by releasing the function control of the second equipment.
And S208, if the detected total power consumption of the system still meets the preset condition, returning to continue executing the step S203, and selecting M second devices from the N second devices.
After the step of selecting M second devices from the N second devices is returned, the method shown in fig. 2 is continuously executed, the total power consumption of the system is reduced by reducing the power consumption of the second devices, and the power consumption alarm is released until the total power consumption of the system reaches the standard, namely the total power consumption of the system does not meet the preset condition.
After reducing the power consumption of part or all of the at least one second device, setting a first identifier for each of the part or all of the at least one second device, the first identifier indicating that the power consumption of the second device has been reduced;
and for each second device which reduces the power consumption and is provided with the first identifier, after the power consumption alarm is relieved, the suppression of the power consumption of the second device is relieved, and the first identifier arranged for the second device is modified into a second identifier which indicates that the power consumption of the second device is not reduced.
Optionally, in this embodiment, the processing identifier of the second device may be set as the first identifier or the second identifier, so as to indicate whether the second device has performed the power consumption reduction processing, thereby avoiding performing the power consumption reduction processing repeatedly on the second device.
In this embodiment, risk devices, which easily cause the total power consumption of the system to exceed the standard, in the second device may be registered in advance, and relevant information of the risk devices may be registered, where the relevant information includes, but is not limited to, one or a combination of the following information: the method comprises the steps of identifying equipment, allowing the equipment to reach maximum power consumption, inhibiting power consumption strategies, releasing the inhibiting power consumption strategies and processing identification. For example, the registered information may be in the form of table one. It should be noted that the present embodiment does not limit the existence form of the registered information.
Watch 1
Figure BDA0000979529430000111
In table one, the power consumption reduction policy and the power consumption reduction release policy may exist in the form of functions, for example, the power consumption reduction policy of the LCD may be expressed as controlLCDPower (…) and uncontrolllcdpower (…).
The power consumption control method provided by the embodiment of the invention is applied to a system, the system comprises a first device and N second devices connected with the first device, N is a positive integer, for example, an internet telephone system, the total power consumption of the system can be controlled, a power consumption alarm is triggered when the total power consumption of the system exceeds the standard, the total power consumption of the system is reduced by reducing the power consumption of part or all of the risk devices which easily cause the total power consumption of the system to exceed the standard, and the power consumption alarm is removed when the total power consumption of the system reaches the standard. The method provided by the embodiment of the invention can also realize the control of the total power consumption of the system for the system which does not support the CPU frequency reduction function; for a system which adopts a PoE power supply mode to supply power, the method provided by the embodiment of the invention is used for controlling the power consumption, so that the problems of system power failure and influence on user experience caused by the over standard total power consumption of the system are solved.
Based on the above embodiments, an embodiment of the present invention further provides a power consumption control apparatus, where the power consumption control apparatus is applied to a system, the system includes a first device and N second devices connected to the first device, where N is a positive integer.
The method provided by the embodiment corresponding to fig. 2 may be adopted in the power consumption control apparatus provided by the embodiment of the present invention, and referring to fig. 4A, the power consumption control apparatus 400 includes: a power consumption detection module 401 and a power consumption control module 402. Optionally, the power consumption control apparatus 400 may further include a main control module 403.
Taking the application of the power consumption control device provided by the embodiment of the invention to an internet phone system as an example, the functions of each module in the power consumption control device provided by the embodiment of the invention are described in detail below. As shown in fig. 4B, the main control module 403 of the power consumption control apparatus 400 may be connected to a service module 411 of the internet phone system 410 and N second devices 412, respectively, where the service module 411 is configured to process a service of the internet phone system 410, and during the process of processing the service, the service module includes applying for a hardware resource to be used and applying for a hardware resource to be released from the main control module 403 of the power consumption control apparatus 400, and the N second devices 412 include, but are not limited to, a headset, a handle, a speaker, an LCD, a DSP, and other devices (which may also be referred to as elements).
After the internet phone system 410 is started, the main control module 403 registers the second device that easily causes the total power consumption of the internet phone system 410 to exceed the standard and its related information (for example, table one) of the second device to the power consumption control module 402, and the power consumption control module 402 may maintain the registered information. Alternatively, the power consumption control module 402 indicates the registered second device to the power consumption detection module 401, so that the subsequent power consumption detection module 401 detects the power consumption of the second device.
When an internet phone system of an opposite terminal calls an internet phone system 410 of a home terminal, a service module 411 of the internet phone system 410 of the home terminal processes a call service, the service module 411 applies for using a hardware resource to a main control module 403, that is, applies for using part of second devices in the internet phone system 410, for example, the second devices include DSP devices, after the main control module 403 agrees to the resource application, the main control module 403 instructs a power consumption control module 402 to start a power consumption detection program, the power consumption control module 402 instructs a power consumption detection module 401 to detect the total power consumption of the internet phone system 410, and in the call process, the power consumption detection module 401 can periodically detect the total power consumption of the internet phone system 410.
When the power consumption detection module 401 detects that the total power consumption of the internet phone system 410 exceeds the standard, that is, the total power consumption of the internet phone system 410 meets a preset condition, the power consumption control module 402 triggers a power consumption alarm.
Wherein, the preset condition can be set as:
when the detected total power consumption of the system is larger than or equal to the second power consumption threshold, judging that the total power consumption of the system meets a preset condition; alternatively, the first and second electrodes may be,
and if the total power consumption of the system detected at the first time point is less than the second power consumption threshold and not less than the third power consumption threshold, and if the total power consumption of the system periodically detected after the first time point does not have a weakening trend, judging that the total power consumption of the system meets a preset condition. The total power consumption of the system detected at the first time point is smaller than the second power consumption threshold and not smaller than the third power consumption threshold, the total power consumption of the system at a plurality of detection times is periodically detected after the first time point, and when the difference between the increase values of the total power consumption of the system in any two adjacent unit times is not smaller than zero, the total power consumption of the system is judged to meet the preset condition.
After triggering the power consumption alarm, the power consumption control module 402 selects M second devices from the N second devices of the internet phone system 410, where M is a positive integer not greater than N; the power consumption control module 402 controls the power consumption detection module 401 to detect the power consumption of each of the M second devices;
the M second devices selected by the power consumption control module 402 are some or all of the N second devices, and there is a risk that the total power consumption of the system exceeds the standard when the power consumption of the second devices exceeds the standard.
If there is at least one second device in the M second devices, for each second device in the at least one second device, when it is determined that the power consumption of the second device detected by the power consumption detection module 401 is not less than the preset first power consumption threshold of the second device, it indicates that the power consumption of the second device exceeds the standard, and the power consumption control module 402 reduces the power consumption of part or all of the second devices in the at least one second device.
The second device selected by the power consumption control module 402 may be part or all of the registered second devices, and the preset first power consumption threshold of the second device may be the maximum power consumption that the second device is allowed to reach, for example, the maximum power consumption that the second device is allowed to reach registered in table one. Assuming that the second device selected by the power consumption control module 402 is a DSP device, the power consumption control module 402 instructs the power consumption detection module 402 to detect the power consumption of the DSP device. If the detected power consumption of the DSP device is greater than or equal to the preset first power consumption threshold of the DSP device, which indicates that the power consumption of the DSP device exceeds the standard, the power consumption control module 402 reduces the power consumption of the DSP device.
Reasons for exceeding the power consumption of the DSP apparatus may include: in the process of communication, an opposite-end user speaks loudly towards a microphone of the IP Phone, and the uplink signal value acquired by the DSP equipment of the opposite end exceeds the standard, so that the electric signal analyzed by the local end exceeds the operational amplifier power voltage value, the power consumption of the DSP equipment of the local end exceeds the standard, and finally the total power consumption of the Internet telephone system of the local end possibly exceeds the corresponding maximum power consumption in the PoE power supply standard.
When reducing the power consumption of some second devices, the power consumption control module 402 may start power consumption suppression for the second devices by using a preset power consumption suppression policy for the second devices, so as to reduce the power consumption of the second devices. For example, the power consumption control module 402 may perform power consumption suppression on the DSP device by using a power consumption suppression policy corresponding to the DSP device in table one.
Optionally, when the power consumption control module 402 reduces the power consumption of some second devices, the main control module 403 invokes a preset power consumption suppression policy of the second device, and instructs the power consumption control module 402 to perform power consumption suppression on the second device by using the invoked power consumption suppression policy.
Optionally, for each of some or all of the at least one second device that is power-consumption-reduced by the power consumption control module 402, the power consumption control module 402 sets a first identifier for the second device, where the first identifier indicates that the power consumption of the second device has been reduced.
After the power consumption control module 402 reduces part or all of the second devices with excessive power consumption, the power consumption control module 402 acquires the total power consumption of the internet telephone system 410 detected by the power consumption detection module 401; if the detected total power consumption of the internet phone system 410 does not meet the preset condition, the power consumption control module 402 removes the power consumption alarm, otherwise, the step of selecting M second devices from the N second devices is returned, the power consumption of the second devices with the power consumption exceeding the standard is continuously reduced until the total power consumption of the internet phone system 410 meets the preset condition, and the power consumption alarm is removed.
After the power consumption alarm is released, the power consumption control module 402 may release the power consumption suppression of each second device, for which the power consumption suppression is started, by using a preset power consumption suppression release policy of the second device. For example, the power consumption control module 402 may remove the power consumption suppression of the DSP device by using a power consumption suppression removal policy corresponding to the DSP device in table one.
Optionally, for each second device that has reduced power consumption and is set with the first identifier, after the power consumption alarm is removed, the power consumption control module 402 removes the suppression of the power consumption of the second device, and modifies the first identifier set for the second device into a second identifier, where the second identifier indicates that the power consumption of the second device is not reduced.
After the call is finished, the service module 411 of the home-end internet phone system 410 finishes the call service, the service module 411 applies for releasing resources to the main control module 403, and the main control module 403 determines that no risk device which easily causes the total power consumption of the internet phone system 410 to exceed the standard is currently used, then the main control module 403 notifies the power consumption control module 402 to stop the power consumption suppression processing, and the power consumption control module 402 notifies the power consumption detection module 401 to stop the power consumption detection.
It should be noted that, in the embodiment of the present invention, the function of the main control module 403 may be implemented by the power consumption control module 402.
The power consumption control device provided by the embodiment of the invention can realize the power consumption control method.
It should be noted that, the division of the modules in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation. In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (8)

1. A power consumption control method, applied to a system including a first device and N second devices connected to the first device, where N is a positive integer, the method comprising:
detecting a total power consumption of the system, wherein the total power consumption of the system is equal to the sum of the power consumption of the first device and the power consumption of the N second devices;
if the total power consumption of the system meets a preset condition, triggering a power consumption alarm;
selecting M second devices from the N second devices, wherein M is a positive integer not greater than N;
detecting a power consumption of each of the M second devices;
if at least one second device exists in the M second devices, for each second device in the at least one second device, the detected power consumption of the second device is not less than a preset first power consumption threshold of the second device, and then the power consumption of part or all of the second devices in the at least one second device is reduced;
detecting a total power consumption of the system;
if the detected total power consumption of the system does not meet the preset condition, removing the power consumption alarm, otherwise, returning to the step of selecting M second devices from the N second devices;
the preset conditions include: the total power consumption of the system is smaller than a second power consumption threshold and not smaller than a third power consumption threshold at a first time point, and the difference between the increase values of the total power consumption of the system in any two adjacent unit times after the first time point is not smaller than zero.
2. The method of claim 1, wherein reducing power consumption of some or all of the at least one second device comprises:
for each second device in part or all of the at least one second device, adopting a preset power consumption suppression strategy of the second device to start power consumption suppression of the second device;
after the power consumption alarm is released, the method further comprises the following steps:
and for each second device starting power consumption suppression, adopting a preset power consumption suppression releasing strategy of the second device to release power consumption suppression of the second device.
3. The method of claim 1 or 2, wherein after reducing power consumption of some or all of the at least one second device, further comprising:
for each of part or all of the at least one second device, setting a first identifier for the second device, the first identifier indicating that the power consumption of the second device has been reduced;
after the power consumption alarm is released, the method further comprises the following steps:
and for each second device with the first identifier set, modifying the first identifier set for the second device into a second identifier, wherein the second identifier represents that the power consumption of the second device is not reduced.
4. The method of claim 1 or 2, wherein the M second devices are some or all of the N second devices, and wherein the setting of the power consumption of the second devices is in risk of causing the total power consumption of the system to exceed the standard.
5. An apparatus for controlling power consumption, the apparatus being applied to a system including a first device and N second devices connected to the first device, N being a positive integer, the apparatus comprising:
a power consumption detection module to: detecting the total power consumption of the system and the power consumption of second equipment according to the control of a power consumption control module, wherein the total power consumption of the system is equal to the sum of the power consumption of the first equipment and the power consumption of the N pieces of second equipment;
the power consumption control module is used for:
controlling the power consumption detection module to detect the total power consumption of the system; if the total power consumption of the system detected by the power consumption detection module meets a preset condition, triggering a power consumption alarm;
selecting M second devices from the N second devices, wherein M is a positive integer not greater than N;
controlling the power consumption detection module to detect the power consumption of each of the M second devices;
if at least one second device exists in the M second devices, for each second device in the at least one second device, when it is determined that the power consumption of the second device detected by the power consumption detection module is not less than a preset first power consumption threshold of the second device, reducing the power consumption of part or all of the at least one second device;
controlling the power consumption detection module to detect the total power consumption of the system; if the detected total power consumption of the system does not meet the preset condition, removing the power consumption alarm, otherwise, returning to the step of selecting M second devices from the N second devices;
the preset conditions include: the total power consumption of the system is smaller than a second power consumption threshold and not smaller than a third power consumption threshold at a first time point, and the difference between the increase values of the total power consumption of the system in any two adjacent unit times after the first time point is not smaller than zero.
6. The apparatus of claim 5, wherein the power consumption control module, when reducing the power consumption of some or all of the at least one second device, is specifically configured to:
for each second device in part or all of the at least one second device, adopting a preset power consumption suppression strategy of the second device to start power consumption suppression of the second device;
the power consumption control module is further configured to, after the power consumption alert is released:
and for each second device starting power consumption suppression, adopting a preset power consumption suppression releasing strategy of the second device to release power consumption suppression of the second device.
7. The apparatus of claim 5 or 6, wherein the power consumption control module, after reducing the power consumption of some or all of the at least one second device, is further to:
for each of part or all of the at least one second device, setting a first identifier for the second device, the first identifier indicating that the power consumption of the second device has been reduced;
the power consumption control module is further configured to, after the power consumption alert is released:
and for each second device with the first identifier set, modifying the first identifier set for the second device into a second identifier, wherein the second identifier represents that the power consumption of the second device is not reduced.
8. The apparatus of claim 5 or 6, wherein the M second devices are some or all of the N second devices that set power consumption of the second devices at a risk of causing the total power consumption of the system to exceed the standard.
CN201610281715.8A 2016-04-29 2016-04-29 Power consumption control method and device Active CN107342873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610281715.8A CN107342873B (en) 2016-04-29 2016-04-29 Power consumption control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610281715.8A CN107342873B (en) 2016-04-29 2016-04-29 Power consumption control method and device

Publications (2)

Publication Number Publication Date
CN107342873A CN107342873A (en) 2017-11-10
CN107342873B true CN107342873B (en) 2020-09-11

Family

ID=60222796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610281715.8A Active CN107342873B (en) 2016-04-29 2016-04-29 Power consumption control method and device

Country Status (1)

Country Link
CN (1) CN107342873B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388541A (en) * 2018-09-30 2019-02-26 联想(北京)有限公司 A kind of control method and electronic equipment
CN111308180A (en) * 2020-03-17 2020-06-19 浙江正泰仪器仪表有限责任公司 Metering instrument power consumption abnormity detection method and metering instrument

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630192A (en) * 2008-06-30 2010-01-20 英特尔公司 Intervention of independent self-regulation of power consumption devices
CN102263645A (en) * 2011-07-04 2011-11-30 迈普通信技术股份有限公司 Power management method and power management system for communication equipment
CN102789220A (en) * 2012-08-03 2012-11-21 深圳市海亿达能源科技股份有限公司 System energy consumption process management device and system energy consumption process management control method
JP2013247847A (en) * 2012-05-29 2013-12-09 Kyocera Corp Demand information presentation apparatus and demand information presentation method
CN103457753A (en) * 2012-05-31 2013-12-18 成都勤智数码科技股份有限公司 Implementing method for energy consumption control in operation and maintenance guarantees
CN104184884A (en) * 2013-05-28 2014-12-03 中兴通讯股份有限公司 Device and method for managing and controlling power consumption of mobile terminal and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630192A (en) * 2008-06-30 2010-01-20 英特尔公司 Intervention of independent self-regulation of power consumption devices
CN102263645A (en) * 2011-07-04 2011-11-30 迈普通信技术股份有限公司 Power management method and power management system for communication equipment
JP2013247847A (en) * 2012-05-29 2013-12-09 Kyocera Corp Demand information presentation apparatus and demand information presentation method
CN103457753A (en) * 2012-05-31 2013-12-18 成都勤智数码科技股份有限公司 Implementing method for energy consumption control in operation and maintenance guarantees
CN102789220A (en) * 2012-08-03 2012-11-21 深圳市海亿达能源科技股份有限公司 System energy consumption process management device and system energy consumption process management control method
CN104184884A (en) * 2013-05-28 2014-12-03 中兴通讯股份有限公司 Device and method for managing and controlling power consumption of mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN107342873A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN103124941B (en) For monitor processor place power loss event during the method and apparatus of interruption
US20150080048A1 (en) Mobile terminal and abnormal call processing method therefor
JP2016532384A5 (en)
US8903097B2 (en) Information processing device and method and program
JP2017501617A (en) Method and apparatus for reducing power consumption in mobile electronic devices
TW201916712A (en) Method, terminal device and computer storage medium for switching bandwidth part
CN107342873B (en) Power consumption control method and device
US11264822B2 (en) Method for determining charger, related device, and system
CN103561435A (en) Multi-mode terminal and communication method
CN104618568A (en) Method and device for adjusting terminal profiles
US20180324857A1 (en) Method, apparatus, and system for sending and receiving information
US10111207B2 (en) Network device, terminal device, and voice service control method
EP3129851A1 (en) Bi-level bi-class thermal mitigation technique for single/multi-sim devices
US10368319B2 (en) Method and apparatus for adjusting transmit power in GSM
WO2014154077A1 (en) Call ending method, device and mobile terminal
WO2015109669A1 (en) Method and apparatus for terminal to optimize network resource, and storage medium
CN111107561B (en) DRX parameter obtaining and configuring method, user terminal, base station and readable storage medium
CN113316107B (en) Calling method, terminal and computer storage medium
CN112770413A (en) RRC state control method, device, mobile terminal and readable storage medium
CN113329436A (en) Connection control method, terminal and storage medium
CN104717346A (en) Call hanging-up method and device
WO2016110011A1 (en) Terminal, power saving method thereof, storage medium
WO2017206620A1 (en) Method and apparatus for setting state of application program
CN104980556A (en) Gateway and delayed ringing method thereof
JP2014225745A (en) Relay device, line control system, line control method, and line control program

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
GR01 Patent grant
GR01 Patent grant