CN110120875B - Power supply method and device, power supply equipment and storage medium - Google Patents

Power supply method and device, power supply equipment and storage medium Download PDF

Info

Publication number
CN110120875B
CN110120875B CN201810118976.7A CN201810118976A CN110120875B CN 110120875 B CN110120875 B CN 110120875B CN 201810118976 A CN201810118976 A CN 201810118976A CN 110120875 B CN110120875 B CN 110120875B
Authority
CN
China
Prior art keywords
power
powered
preset
equipment
threshold
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
CN201810118976.7A
Other languages
Chinese (zh)
Other versions
CN110120875A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201810118976.7A priority Critical patent/CN110120875B/en
Publication of CN110120875A publication Critical patent/CN110120875A/en
Application granted granted Critical
Publication of CN110120875B publication Critical patent/CN110120875B/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/10Current supply arrangements

Abstract

The embodiment of the invention provides a power supply method, a power supply device, power supply equipment and a storage medium, wherein the power supply method comprises the following steps: acquiring the total power of power supply equipment; if the total power is greater than the preset power-down threshold power, the power-receiving equipment powered by the power-down power supply equipment is powered down according to a preset power-down rule; and if the total power is not greater than the preset power-down threshold power and not less than the preset power-up threshold power, prohibiting the power supply equipment from supplying power to the unpowered powered equipment, wherein a power difference value between the preset power-down threshold power and the preset power-up threshold power is greater than the preset power supply power of the powered equipment. When the total power is not greater than the preset power-down threshold power and not less than the preset power-up threshold power, the power supply equipment is forbidden to supply power to the powered equipment which is not supplied with power, repeated power-up and power-down of the powered equipment of which the power supply power is not greater than the preset power-up threshold power can be prevented at least, the repeated power-up and power-down situation can be reduced, the service lives of the powered equipment and the powered equipment are prolonged, and the system resources are saved.

Description

Power supply method and device, power supply equipment and storage medium
Technical Field
The present invention relates to the field of power supply technologies, and in particular, to a power supply method and apparatus, a power supply device, and a storage medium.
Background
POE (Power Over Ethernet ) is a technology that can provide dc Power supply for some terminals based on IP (Internet Protocol), such as IP phones, APs (Access points), webcams, etc., while transmitting data signals, without changing the existing Ethernet wiring infrastructure. The POE technology can ensure the safety of the existing structured wiring and ensure the normal operation of the existing network, thereby reducing the cost to the maximum extent. A complete POE system includes two parts, PSE (Power Sourcing equipment) and PD (Powered Device). The PSE device is a device for supplying power to the ethernet client device, and is also a manager of the entire POE power supply process. And the PD device is a PSE load that accepts power, i.e., a client device of the POE system.
In a POE system, in order to prevent the power supply device from being damaged due to the fact that the power of the power supply device is too high, a power threshold is set in the related art, the power supply device calculates the total power of the power supply device according to the power of the power class of each powered device in the related protocol, and if the current total power of the power supply device is greater than the power threshold, the powered device is selected to power down.
However, with the above method, when the total power of the powered device is not much different from the power threshold, for example, when the total power of the powered device is equal to the power threshold, for any powered device requesting power supply, repeated power up and power down may be caused, which affects the service lives of the powered device and the powered device, and at the same time, repeated power up and power down may waste system resources.
Disclosure of Invention
An embodiment of the present invention provides a power supply method, a power supply apparatus, a power supply device, and a storage medium, so as to reduce repeated power-on and power-off. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a power supply method, where the method includes:
acquiring the total power of power supply equipment;
if the total power is greater than the preset power-down threshold power, powering down the powered device powered by the power supply device according to a preset power-down rule;
and if the total power is not greater than the preset power-down threshold power and not less than the preset power-up threshold power, prohibiting the power supply equipment from supplying power to the unpowered powered equipment, wherein a power difference value between the preset power-down threshold power and the preset power-up threshold power is greater than the preset power supply power of the powered equipment.
Optionally, the obtaining the total power of the power supply device includes:
respectively acquiring the output power of each power supply port in the power supply equipment;
and calculating the sum of the output power of each power supply port in the power supply equipment as the total power of the power supply equipment.
Optionally, if the total power is greater than a preset power-down threshold power, the powered device powered by the power supply device is powered down according to a preset power-down rule, including:
if the total power is greater than a preset power-off threshold power, judging whether powered-on powered equipment powered by the power supply equipment comprises newly powered-on powered equipment or not, wherein the newly powered-on powered equipment is powered-on equipment of which the power-on time is less than a preset power-on time threshold;
if the new powered-on powered device is included, according to a preset priority of the powered device, powering down the new powered-on powered device with the lowest priority of the powered-off powered device;
and if the newly powered-on powered device is not included, powering down the powered device with the lowest priority of the powered-on powered devices according to a preset priority of the powered devices.
Optionally, the power supply method according to the embodiment of the present invention further includes:
and if the total power is less than the preset power-on threshold power, supplying power to the unpowered powered device.
Optionally, the supplying power to the unpowered power receiving device includes:
according to the priority of the current powered devices, sequentially powering on the powered devices requesting power supply according to the priority of the powered devices from high to low until all the powered devices are powered on, or until the total power of the power supply devices is not greater than the preset power-down threshold power and not less than the preset power-up threshold power.
Optionally, the power supply method according to the embodiment of the present invention further includes:
selecting a powered device with the power-up and power-down times reaching the preset power-up and power-down times within the preset time as an oscillation powered device;
and setting the power receiving state of the oscillation power receiving equipment to be a locking state, wherein the oscillation power receiving equipment in the locking state is not powered on.
Optionally, after the oscillating powered device is locked, the method further includes:
judging whether the oscillation powered equipment in the locked state meets a preset unlocking condition or not, wherein when the total power is smaller than a preset unlocking threshold power or the locking time of the oscillation powered equipment in the locked state is not smaller than a preset locking time threshold, judging that the oscillation powered equipment in the locked state meets the preset unlocking condition, and the unlocking threshold power is smaller than the preset power-on threshold power;
if the oscillation powered device in the locked state meets the preset unlocking condition, the powered state of the oscillation powered device is set to be a common state, wherein the oscillation powered device in the common state can be powered on.
In a second aspect, an embodiment of the present invention provides a power supply apparatus, including:
the power acquisition module is used for acquiring the total power of the power supply equipment;
the device power-off module is used for powering off the powered device which is powered by the power supply device according to a preset power-off rule if the total power is greater than a preset power-off threshold power;
and the power supply locking module is used for forbidding the power supply equipment to supply power to the power receiving equipment which is not powered if the total power is not greater than the preset power-off threshold power and not less than the preset power-on threshold power, wherein a power difference value between the preset power-off threshold power and the preset power-on threshold power is greater than the preset power supply power of the power receiving equipment.
Optionally, the power obtaining module includes:
the port power acquisition submodule is used for respectively acquiring the output power of each power supply port in the power supply equipment;
and the total power calculating submodule is used for calculating the sum of the output power of each power supply port in the power supply equipment as the total power of the power supply equipment.
Optionally, the device power down module includes:
the device determination submodule is configured to determine whether a newly powered-on powered device is included in powered devices that are powered by the power supply device if the total power is greater than a preset power-off threshold power, where the newly powered-on powered device is a powered device whose power-on time is less than a preset power-on time threshold;
a first lower electronic module, configured to, if the new powered device is included, power down the new powered device with the lowest priority according to a preset priority of the powered device;
and the second lower electronic module is used for powering down the powered device with the lowest priority of the powered devices according to the preset priority of the powered devices if the newly powered device is not included.
Optionally, the power supply device according to the embodiment of the present invention further includes:
and the equipment power-on module is used for supplying power to the power-supplied equipment which is not powered if the total power is less than the preset power-on threshold power.
Optionally, the device power-on module is specifically configured to:
according to the priority of the current powered devices, sequentially powering on the powered devices requesting power supply according to the priority of the powered devices from high to low until all the powered devices are powered on, or until the total power of the power supply devices is not greater than the preset power-down threshold power and not less than the preset power-up threshold power.
Optionally, the power supply device according to the embodiment of the present invention further includes:
the oscillation equipment judgment module is used for selecting the power receiving equipment with the power-up and power-down times reaching the preset power-up and power-down times within the preset time as oscillation power receiving equipment;
and the locking module is used for setting the power receiving state of the oscillation power receiving equipment to be a locking state, wherein the oscillation power receiving equipment in the locking state is not electrified.
Optionally, the power supply device according to the embodiment of the present invention further includes:
an unlocking determination module, configured to determine whether the oscillation powered device in the locked state meets a preset unlocking condition, where when the total power is smaller than a preset unlocking threshold power, or when the locking time of the oscillation powered device in the locked state is not smaller than a preset locking time threshold, it is determined that the oscillation powered device in the locked state meets the preset unlocking condition, and the unlocking threshold power is smaller than the preset power-on threshold power;
and the unlocking module is used for setting the power receiving state of the oscillation power receiving equipment to be a common state if the oscillation power receiving equipment in the locking state meets the preset unlocking condition, wherein the oscillation power receiving equipment in the common state can be powered on.
In a third aspect, an embodiment of the present invention provides a power supply device, including a processor and a memory, where the memory is used for storing a computer program; the processor is configured to implement the power supply method according to any one of the first aspect described above when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the power supply method according to any one of the first aspect.
The power supply method, the power supply device, the power supply equipment and the storage medium provided by the embodiment of the invention obtain the total power of the power supply equipment; if the total power is greater than the preset power-down threshold power, powering down the powered device powered by the power supply device according to a preset power-down rule; and if the total power is not greater than the preset power-down threshold power and not less than the preset power-up threshold power, prohibiting the power supply equipment from supplying power to the unpowered powered equipment, wherein a power difference value between the preset power-down threshold power and the preset power-up threshold power is greater than the preset power supply power of the powered equipment. When the total power is not greater than the preset power-down threshold power and not less than the preset power-up threshold power, the power supply equipment is forbidden to supply power to the powered equipment which is not supplied with power, repeated power-up and power-down of the powered equipment of which the power supply power is not greater than the preset power-up threshold power can be prevented at least, the repeated power-up and power-down situation can be reduced, the service lives of the powered equipment and the powered equipment are prolonged, and the system resources are saved. Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a power supply method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a threshold power relationship of a power supply method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a power supply apparatus according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a power supply apparatus according to an embodiment of the invention;
fig. 5 is another schematic diagram of the power supply apparatus according to the 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.
In the related POE technology, in order to prevent the power supply device from being damaged due to the fact that the power of the power supply device is too high, a power threshold is set, the power supply device calculates the total power of the power supply device according to the power of the power class of each powered device corresponding to the power class in the related protocol, and if the current total power of the power supply device is greater than the power threshold, the powered device is selected to power down. However, with the above method, when the total power of the powered device is not much different from the power threshold, for example, when the total power of the powered device is equal to the power threshold, for any powered device requesting power supply, repeated power up and power down may be caused, which affects the service lives of the powered device and the powered device, and at the same time, repeated power up and power down may waste system resources.
In view of this, an embodiment of the present invention provides a power supply method, and referring to fig. 1, the method includes:
s101, acquiring the total power of the power supply equipment.
The power supply method in the embodiment of the invention can be realized by a power supply system, and the power supply system is any system capable of realizing the power supply method in the embodiment of the invention. For example:
the power supply system may be an apparatus comprising: a processor, a memory, a communication interface, and a bus; the processor, the memory and the communication interface are connected through a bus and complete mutual communication; the memory stores executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the power supply method of the embodiment of the present invention. For example, the power supply system is the above power supply apparatus.
The power supply system may also be an application program for executing the power supply method of the embodiment of the present invention when running.
The power supply system may also be a storage medium for storing executable code for performing the power supply method of the embodiment of the present invention.
The power supply system obtains the total power of the power supply device, may obtain, for the power supply system, the power level of each powered device (e.g., PD device including an IP telephone, an AP, a network camera, and the like) that the power supply device (e.g., POE switch) has supplied power, and calculate the total power of the power supply device according to the power level of each powered device. For example, the POE switch already supplies power to two PD devices, the power levels of the two PD devices are Class1 and Class2, respectively, and the preset power level table is queried, as shown in table 1, it is known that the maximum PD power corresponding to Class1 is 3.84W, and the maximum PD power corresponding to Class is 6.49W, and then the total power of the POE switch is 3.84W +6.49W is 10.33W.
TABLE 1
Power level Maximum achievable power of PD
Class 0 13.0W
Class 1 3.84W
Class 2 6.49W
Class 3 13.0W
Class 4 25.5W
Optionally, the obtaining the total power of the power supply device includes:
step one, respectively acquiring the output power of each power supply port in the power supply equipment.
The method comprises the steps of obtaining the voltage and the current of each power supply port in the power supply equipment, and respectively calculating the product of the voltage and the current of each power supply port to obtain the output power of each power supply port.
And step two, calculating the sum of the output power of each power supply port in the power supply equipment as the total power of the power supply equipment.
For example, the power supply device has 16 power supply ports, wherein the output powers of two power supply ports are 10W and 5W, respectively, and the output powers of the remaining power supply ports are both 0, so that the total power of the power supply device is 10W +5W, which is 15W.
In the embodiment of the present invention, the total power of the power sourcing equipment is determined according to the output power of each power sourcing port of the power sourcing equipment, and compared with calculating the total power by using the maximum power of the power class corresponding to each powered device in a related protocol, for example, IEEE (Institute of Electrical and Electronics Engineers) 802.at protocol or IEEE802.3af protocol, the obtained total power has higher authenticity and can improve the power utilization rate of the power sourcing equipment.
And S102, if the total power is greater than a preset power-down threshold power, powering down the powered device powered by the power supply device according to a preset power-down rule.
The preset power-off threshold power is an arbitrary power value, but in order to ensure the safety of the power supply equipment, the preset power-off threshold power should be smaller than the maximum output power that the power supply equipment can bear, and in order to ensure the utilization rate of the power supply equipment, the preset power-off threshold power is too small to be set. The preset power-off rule is the rule of any powered device powered off. For example, a power receiving apparatus with the highest actual power is preferentially powered off according to the actual power of each power receiving apparatus to which power is supplied; or a power receiving apparatus that gives priority to power-off and power-supply time from the power supply time of each power receiving apparatus that has supplied power.
And S103, if the total power is not greater than the preset power-down threshold power and not less than the preset power-up threshold power, prohibiting the power supply device from supplying power to a non-powered device, where a power difference between the preset power-down threshold power and the preset power-up threshold power is greater than a preset power supply of the powered device.
The preset power-down threshold power is greater than the preset power-up threshold power, and the difference between the preset power-down threshold power and the preset power-up threshold power is greater than the preset power supply power of the powered device. When the total power of the power supply equipment is not greater than the preset power-down threshold power and not less than the preset power-up threshold power, the power supply equipment is forbidden to supply power to the power receiving equipment which is not supplied with power, and repeated power up and power down of the power receiving equipment of which the power supply power is not greater than the preset power supply power of the power receiving equipment can be at least prevented. Optionally, the power difference between the preset lower power threshold power and the preset upper power threshold power may be set to 5W.
The power difference between the preset power-down threshold power and the preset power-up threshold power is obtained according to the minimum power level of the PD device of 3.84W. The value of Class1 in the power Class of IEEE802.3af is 3.84W, and a preset first threshold amount is added to 3.84W to obtain a power difference value between a preset lower power threshold and a preset upper power threshold. The preset first threshold amount is an arbitrary value, and is set according to actual conditions, for example, 1W, 1.16W, or 2W. The preset first threshold amount may be set to 1.16W for computational convenience. According to the formula: the preset power-on threshold power is equal to the preset power-off threshold power- (3.84+ the preset first threshold amount), and the preset power-on threshold power can be calculated. The power difference value between the preset power-off threshold power and the preset power-on threshold power is set to be 5W, so that the power utilization rate can be effectively improved under the condition that the powered device is repeatedly powered on and powered off.
In the embodiment of the invention, the situation of repeated power supply and power off can be reduced, so that the service lives of the power supply equipment and the powered equipment are prolonged, and the system resources are saved.
Optionally, if the total power is greater than a preset power-down threshold power, powering down the powered device powered by the power supply device according to a preset power-down rule, including:
step one, if the total power is larger than a preset power-down threshold power, calculating a difference value between the total power and the preset power-down threshold power as a power-down waiting power value.
And step two, acquiring the output power of each power supply port in the power supply equipment, and selecting the power supply port with the output power larger than the power value to be powered down and closest to the power value to be powered down as the power port to be powered down.
The method comprises the steps of obtaining the voltage and the current of each power supply port in the power supply equipment, and respectively calculating the product of the voltage and the current of each power supply port to obtain the output power of each power supply port. And selecting the output power larger than the power value to be powered off, calculating the difference between the output power larger than the power value to be powered off and the power value to be powered off, and selecting the power supply port with the minimum difference as the port to be powered off.
And step three, powering down the powered device of the port to be powered down.
In the embodiment of the invention, the power receiving equipment with the power larger than the power waiting value and closest to the power waiting value is powered off, so that the utilization rate of the power supply equipment can be increased under the condition that the total power of the power supply equipment is not more than the preset power threshold power.
Optionally, if the total power is greater than a preset power-down threshold power, powering down the powered device powered by the power supply device according to a preset power-down rule, including:
step one, if the total power is greater than a preset power-down threshold power, determining whether a new powered-on powered device is included in powered devices powered by the power supply device, where the new powered-on powered device is a powered device whose power-on time is less than a preset power-on time threshold.
The preset power-on time threshold is any time, and can be set according to the actual situation, for example, set to 3 minutes, 4 minutes, or 5 minutes.
And step two, if the new powered-on powered device is included, according to the preset priority of the powered device, powering down the new powered-on powered device with the lowest priority of the powered device.
The preset priority of the powered device is set to be any priority, and can be set according to the actual application environment. For example, a powered device applied to public safety has a higher priority than a powered device applied to personal entertainment. Alternatively, the priority may also be set according to the power level of the powered device, for example, the higher the power level of the powered device, the higher the priority.
And step three, if the newly powered-on powered device is not included, powering down the powered device with the lowest priority of the powered device according to the preset priority of the powered device.
In the embodiment of the invention, when the newly powered-on powered device is included, the newly powered-on powered device is powered off first, so that the normal work of the powered device with the power-on time larger than the preset power-on time threshold value can be ensured. And the power is cut off according to the priority of the power receiving equipment, so that the normal work of the power receiving equipment with high priority can be ensured.
Optionally, the power supply method according to the embodiment of the present invention further includes:
and if the total power is less than the preset power-on threshold power, supplying power to the unpowered powered device.
When the total power is less than the preset power-on threshold power. The power supply system controls the power supply apparatus to supply power to the power receiving apparatus that is not supplying power. When a new powered device is accessed to the power supply device, whether the current total power is smaller than the preset power-on threshold power or not is judged, and if the total power is smaller than the preset power-on threshold power, power is supplied to the newly accessed powered device.
In the embodiment of the invention, when the total power is less than the preset power-on threshold power, the power is supplied to the power-receiving equipment which is not supplied with power, so that the normal power-on of the power-receiving equipment is ensured.
Optionally, the above supplying power to the unpowered power receiving device includes:
and for a plurality of current power receiving equipment requesting power supply, sequentially powering on each power receiving equipment requesting power supply according to a preset power receiving equipment priority and a sequence from high to low of the power receiving equipment priority until all the power receiving equipment is powered on, or until the total power of the power supply equipment is not more than the preset power-down threshold power and not less than the preset power-up threshold power.
When the power supply device is connected to a plurality of power receiving devices at the same time, for example, when the power supply device is connected to a plurality of power receiving devices before being turned on, the power supply device sequentially supplies power to the power receiving devices in the order of priority from high to low. In the power-up process, each time the power supply system completes the power-up of one powered device, the current total power of the power supply device needs to be compared with the preset power-down threshold power and the preset power-up threshold power. If the current total power of the power supply equipment is smaller than the preset power-on threshold power, continuing to power on the powered equipment; if the current total power of the power supply equipment is greater than the preset power-down threshold power, powering down the powered-down equipment which has been powered down according to a preset power-down rule; and if the current total power of the power supply equipment is not greater than the preset power-down threshold power and not less than the preset power-up threshold power, stopping supplying power to the power receiving equipment which is not supplied with power.
In the embodiment of the invention, each powered device is powered on according to the priority of the powered device, so that the powered device with high priority is ensured to be powered on preferentially.
Optionally, the power supply method according to the embodiment of the present invention further includes:
step one, selecting the powered device with the power-up and power-down times reaching the preset power-up and power-down times within the preset time as an oscillation powered device.
The preset time is an arbitrary time period and may be set according to actual conditions, for example, 10 minutes, 15 minutes, or 20 minutes. The powered device is powered off after being powered on, and is regarded as being powered on and powered off once, the preset power on and power off times are any values, and can be set according to actual conditions, for example, set to be 3 times, 4 times or 5 times.
And step two, setting the power receiving state of the oscillation power receiving equipment to be a locking state, wherein the oscillation power receiving equipment in the locking state is not powered on.
The power receiving state of the power receiving apparatus is divided into a normal state and a locked state. The powered device in the normal state can be powered on, and the powered device in the locked state cannot be powered on.
In the embodiment of the invention, the power receiving state of the oscillation power receiving equipment is set to be the locking state, so that the oscillation power receiving equipment can be prevented from being repeatedly powered on and off, the service lives of the power supply equipment and the power receiving equipment are prolonged, and system resources are saved.
Optionally, after the oscillating powered device is locked, the method further includes:
step one, judging whether the oscillation powered device in the locked state meets a preset unlocking condition, wherein when the total power is smaller than a preset unlocking threshold power or the locking time of the oscillation powered device in the locked state is not smaller than a preset locking time threshold, judging that the oscillation powered device in the locked state meets the preset unlocking condition, and the unlocking threshold power is smaller than the preset power-on threshold power.
The preset unlocking threshold power is any value of power, but the preset unlocking threshold power is ensured to be smaller than the preset power-on threshold power. The preset locking time threshold is any time period, and can be set according to actual conditions, for example, set to 20 minutes, 30 minutes, 40 minutes, and the like. Optionally, referring to fig. 2, P1 is a preset power-down threshold power, P2 is a preset power-up threshold power, and P3 is a preset unlocking threshold power. The power difference value between the preset power-down threshold power and the preset power-up threshold power is 5W, and the value is obtained according to the minimum power level of 3.84W of the PD equipment; the difference value between the preset power-down threshold power and the preset unlocking threshold power is 30W, and the value is obtained according to the maximum power level 25.5W of the PD equipment.
The Class4 value in the power Class of IEEE802.3af is 25.5W, and a preset second threshold value and a difference between the preset power-down threshold power and the preset unlocking threshold power are added to 25.5W. The preset second threshold amount is an arbitrary value, and is set according to actual conditions, for example, 1W, 4.5W, or 5W. The preset second threshold amount may be set to 4.5W for computational convenience. According to the formula: the preset power-off threshold power is equal to the preset unlocking threshold power- (25.5+ the second threshold amount), and the preset unlocking threshold power can be obtained through calculation. The power difference value between the preset power-off threshold power and the preset unlocking threshold power is set to be 30W, so that the situation that the powered device is powered on and powered off repeatedly can be reduced.
And step two, if the oscillation powered device in the locking state meets the preset unlocking condition, setting the powered state of the oscillation powered device to be a common state, wherein the oscillation powered device in the common state can be powered on.
In the embodiment of the invention, the power receiving state of the oscillation power receiving equipment meeting the preset unlocking condition is set to be the common state, so that the oscillation power receiving equipment is ensured to be powered on at an opportunity.
An embodiment of the present invention further provides a power supply device, and referring to fig. 3, the device includes:
a power obtaining module 301, configured to obtain a total power of the power supply device;
an equipment power-down module 302, configured to power down a powered device powered by the power supply device according to a preset power-down rule if the total power is greater than a preset power-down threshold power;
a power supply locking module 303, configured to prohibit the power supply device from supplying power to a non-powered device if the total power is not greater than the preset power-down threshold power and not less than the preset power-up threshold power, where a power difference between the preset power-down threshold power and the preset power-up threshold power is greater than a preset power supply power of the powered device.
In the embodiment of the invention, the situation of repeated power supply and power off can be reduced, so that the service lives of the power supply equipment and the powered equipment are prolonged, and the system resources are saved.
Optionally, the power obtaining module 301 includes:
the port power acquisition submodule is used for respectively acquiring the output power of each power supply port in the power supply equipment;
and the total power calculating submodule is used for calculating the sum of the output power of each power supply port in the power supply equipment as the total power of the power supply equipment.
In the embodiment of the present invention, the total power of the power sourcing equipment is determined according to the output power of each power sourcing port of the power sourcing equipment, and compared with calculating the total power by using the maximum power of the power class corresponding to each powered device in the related protocol (for example, 802.at protocol or 802.3af protocol), the reality of the obtained total power is higher, and the power utilization rate of the power sourcing equipment can be improved.
Optionally, the power down module 302 of the above apparatus includes:
the device determination submodule is configured to determine whether a newly powered-on powered device is included in powered devices that are powered by the power supply device if the total power is greater than a preset power-off threshold power, where the newly powered-on powered device is a powered device whose power-on time is less than a preset power-on time threshold;
a first lower electronic module, configured to, if the new powered device includes the above-mentioned new powered device, power down the new powered device with the lowest priority according to a preset priority of the powered device;
and the second lower electronic module is used for powering down the powered device with the lowest priority of the powered devices according to the preset priority of the powered devices if the newly powered device is not included.
In the embodiment of the invention, when the newly powered-on powered device is included, the newly powered-on powered device is powered off first, so that the normal work of the powered device with the power-on time larger than the preset power-on time threshold value can be ensured. And the power is cut off according to the priority of the power receiving equipment, so that the normal work of the power receiving equipment with high priority can be ensured.
Optionally, the power supply device according to the embodiment of the present invention further includes:
and the equipment power-on module is used for supplying power to the power receiving equipment which is not supplied with power if the total power is less than the preset power-on threshold power.
In the embodiment of the invention, when the total power is less than the preset power-on threshold power, the power is supplied to the power-receiving equipment which is not supplied with power, so that the normal power-on of the power-receiving equipment is ensured.
Optionally, the device power-on module is specifically configured to:
and for a plurality of current power receiving equipment requesting power supply, sequentially powering on each power receiving equipment requesting power supply according to a preset power receiving equipment priority and a sequence from high to low of the power receiving equipment priority until all the power receiving equipment is powered on, or until the total power of the power supply equipment is not more than the preset power-down threshold power and not less than the preset power-up threshold power.
In the embodiment of the invention, each powered device is powered on according to the priority of the powered device, so that the powered device with high priority is ensured to be powered on preferentially.
Optionally, the power supply device according to the embodiment of the present invention further includes:
the oscillation equipment judgment module is used for selecting the power receiving equipment with the power-up and power-down times reaching the preset power-up and power-down times within the preset time as oscillation power receiving equipment;
and the locking module is used for setting the power receiving state of the oscillation power receiving equipment to be a locking state, wherein the oscillation power receiving equipment in the locking state is not electrified.
In the embodiment of the invention, the power receiving state of the oscillation power receiving equipment is set to be the locking state, so that the oscillation power receiving equipment can be prevented from being repeatedly powered on and off, the service lives of the power supply equipment and the power receiving equipment are prolonged, and system resources are saved.
Optionally, the power supply device according to the embodiment of the present invention further includes:
an unlocking determination module, configured to determine whether the oscillation powered device in the locked state meets a preset unlocking condition, where when the total power is smaller than a preset unlocking threshold power, or when the locking time of the oscillation powered device in the locked state is not smaller than a preset locking time threshold, it is determined that the oscillation powered device in the locked state meets the preset unlocking condition, and the unlocking threshold power is smaller than the preset power-on threshold power;
and the unlocking module is used for setting the power receiving state of the oscillation power receiving equipment to be a common state if the oscillation power receiving equipment in the locking state meets the preset unlocking condition, wherein the oscillation power receiving equipment in the common state can be powered on.
In the embodiment of the invention, the power receiving state of the oscillation power receiving equipment meeting the preset unlocking condition is set to be the common state, so that the oscillation power receiving equipment is ensured to be powered on at an opportunity.
An embodiment of the present invention further provides a power supply device, see fig. 4, including a processor 401 and a memory 402, where the memory 402 is used to store a computer program; the processor 401, when executing the program stored in the memory 402, implements the following steps:
acquiring the total power of power supply equipment;
if the total power is greater than the preset power-down threshold power, the power-receiving equipment powered by the power-down power supply equipment is powered down according to a preset power-down rule;
and if the total power is not greater than the preset power-down threshold power and not less than the preset power-up threshold power, prohibiting the power supply equipment from supplying power to the unpowered powered equipment, wherein a power difference value between the preset power-down threshold power and the preset power-up threshold power is greater than the preset power supply power of the powered equipment.
In the embodiment of the invention, the situation of repeated power supply and power off can be reduced, so that the service lives of the power supply equipment and the powered equipment are prolonged, and the system resources are saved.
Optionally, when the processor 401 is configured to execute the program stored in the memory 402, any of the above power supply methods may be implemented.
Optionally, the power supply device is a POE switch, see fig. 5, and includes:
processor 401, memory 402, PSE control chip 403, and PD port 404;
the memory 402 for storing a computer program;
the PD port 404 is used for connecting PD equipment;
the processor 401 is configured to control whether the PSE control chip 403 outputs power to the PD port 404 when executing the program stored in the memory 402, so as to implement any one of the power supply methods.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the following steps:
acquiring the total power of power supply equipment;
if the total power is greater than the preset power-down threshold power, the power-receiving equipment powered by the power-down power supply equipment is powered down according to a preset power-down rule;
and if the total power is not greater than the preset power-down threshold power and not less than the preset power-up threshold power, prohibiting the power supply equipment from supplying power to the unpowered powered equipment, wherein a power difference value between the preset power-down threshold power and the preset power-up threshold power is greater than the preset power supply power of the powered equipment.
In the embodiment of the invention, the situation of repeated power supply and power off can be reduced, so that the service lives of the power supply equipment and the powered equipment are prolonged, and the system resources are saved.
Optionally, the computer program can further implement any one of the above power supply methods when executed by a processor.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the power supply device and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (16)

1. A method of supplying power, the method comprising:
acquiring the total power of power supply equipment;
if the total power is greater than the preset power-down threshold power, powering down the powered device powered by the power supply device according to a preset power-down rule;
and if the total power is not greater than the preset power-down threshold power and not less than the preset power-up threshold power, prohibiting the power supply equipment from supplying power to the unpowered powered equipment, wherein a power difference value between the preset power-down threshold power and the preset power-up threshold power is greater than the preset power supply power of the powered equipment.
2. The method of claim 1, wherein the obtaining the total power of the power sourcing equipment comprises:
respectively acquiring the output power of each power supply port in the power supply equipment;
and calculating the sum of the output power of each power supply port in the power supply equipment as the total power of the power supply equipment.
3. The method according to claim 1, wherein powering down the powered device powered by the power supply device according to a preset power-down rule if the total power is greater than a preset power-down threshold power comprises:
if the total power is greater than a preset power-off threshold power, judging whether powered-on powered equipment powered by the power supply equipment comprises newly powered-on powered equipment or not, wherein the newly powered-on powered equipment is powered-on equipment of which the power-on time is less than a preset power-on time threshold;
if the new powered-on powered device is included, according to a preset priority of the powered device, powering down the new powered-on powered device with the lowest priority of the powered-off powered device;
and if the newly powered-on powered device is not included, powering down the powered device with the lowest priority of the powered-on powered devices according to a preset priority of the powered devices.
4. The method of claim 1, further comprising:
and if the total power is less than the preset power-on threshold power, supplying power to the unpowered powered device.
5. The method of claim 4, wherein the supplying power to the unpowered powered device comprises:
according to the priority of the current powered devices, sequentially powering on the powered devices requesting power supply according to the priority of the powered devices from high to low until all the powered devices are powered on, or until the total power of the power supply devices is not greater than the preset power-down threshold power and not less than the preset power-up threshold power.
6. The method of claim 1, further comprising:
selecting a powered device with the power-up and power-down times reaching the preset power-up and power-down times within the preset time as an oscillation powered device;
and setting the power receiving state of the oscillation power receiving equipment to be a locking state, wherein the oscillation power receiving equipment in the locking state is not powered on.
7. The method of claim 6, wherein after the locking the oscillating powered device, the method further comprises:
judging whether the oscillation powered equipment in the locked state meets a preset unlocking condition or not, wherein when the total power is smaller than a preset unlocking threshold power or the locking time of the oscillation powered equipment in the locked state is not smaller than a preset locking time threshold, judging that the oscillation powered equipment in the locked state meets the preset unlocking condition, and the unlocking threshold power is smaller than the preset power-on threshold power;
if the oscillation powered device in the locked state meets the preset unlocking condition, the powered state of the oscillation powered device is set to be a common state, wherein the oscillation powered device in the common state can be powered on.
8. A power supply apparatus, characterized in that the apparatus comprises:
the power acquisition module is used for acquiring the total power of the power supply equipment;
the device power-off module is used for powering off the powered device which is powered by the power supply device according to a preset power-off rule if the total power is greater than a preset power-off threshold power;
and the power supply locking module is used for forbidding the power supply equipment to supply power to the power receiving equipment which is not powered if the total power is not greater than the preset power-off threshold power and not less than the preset power-on threshold power, wherein a power difference value between the preset power-off threshold power and the preset power-on threshold power is greater than the preset power supply power of the power receiving equipment.
9. The apparatus of claim 8, wherein the power harvesting module comprises:
the port power acquisition submodule is used for respectively acquiring the output power of each power supply port in the power supply equipment;
and the total power calculating submodule is used for calculating the sum of the output power of each power supply port in the power supply equipment as the total power of the power supply equipment.
10. The apparatus of claim 8, wherein the device powering module comprises:
the device determination submodule is configured to determine whether a newly powered-on powered device is included in powered devices that are powered by the power supply device if the total power is greater than a preset power-off threshold power, where the newly powered-on powered device is a powered device whose power-on time is less than a preset power-on time threshold;
a first lower electronic module, configured to, if the new powered device is included, power down the new powered device with the lowest priority according to a preset priority of the powered device;
and the second lower electronic module is used for powering down the powered device with the lowest priority of the powered devices according to the preset priority of the powered devices if the newly powered device is not included.
11. The apparatus of claim 8, further comprising:
and the equipment power-on module is used for supplying power to the power-supplied equipment which is not powered if the total power is less than the preset power-on threshold power.
12. The apparatus according to claim 11, wherein the device power-on module is specifically configured to:
according to the priority of the current powered devices, sequentially powering on the powered devices requesting power supply according to the priority of the powered devices from high to low until all the powered devices are powered on, or until the total power of the power supply devices is not greater than the preset power-down threshold power and not less than the preset power-up threshold power.
13. The apparatus of claim 8, further comprising:
the oscillation equipment judgment module is used for selecting the power receiving equipment with the power-up and power-down times reaching the preset power-up and power-down times within the preset time as oscillation power receiving equipment;
and the locking module is used for setting the power receiving state of the oscillation power receiving equipment to be a locking state, wherein the oscillation power receiving equipment in the locking state is not electrified.
14. The apparatus of claim 13, further comprising:
an unlocking determination module, configured to determine whether the oscillation powered device in the locked state meets a preset unlocking condition, where when the total power is smaller than a preset unlocking threshold power, or when the locking time of the oscillation powered device in the locked state is not smaller than a preset locking time threshold, it is determined that the oscillation powered device in the locked state meets the preset unlocking condition, and the unlocking threshold power is smaller than the preset power-on threshold power;
and the unlocking module is used for setting the power receiving state of the oscillation power receiving equipment to be a common state if the oscillation power receiving equipment in the locking state meets the preset unlocking condition, wherein the oscillation power receiving equipment in the common state can be powered on.
15. A power supply device comprising a processor, a memory, wherein the memory is configured to store a computer program; the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-7.
16. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
CN201810118976.7A 2018-02-06 2018-02-06 Power supply method and device, power supply equipment and storage medium Active CN110120875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810118976.7A CN110120875B (en) 2018-02-06 2018-02-06 Power supply method and device, power supply equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810118976.7A CN110120875B (en) 2018-02-06 2018-02-06 Power supply method and device, power supply equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110120875A CN110120875A (en) 2019-08-13
CN110120875B true CN110120875B (en) 2021-02-05

Family

ID=67519461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810118976.7A Active CN110120875B (en) 2018-02-06 2018-02-06 Power supply method and device, power supply equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110120875B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660101B (en) * 2020-05-12 2022-10-18 华为技术有限公司 Port matching method, power-on method, equipment and system
CN111679601B (en) * 2020-05-28 2021-11-19 深圳市信锐网科技术有限公司 Control method of multi-board card device, multi-board card device and medium
CN112255949B (en) * 2020-10-26 2022-07-26 北京车和家信息技术有限公司 Control architecture and control method of vehicle
CN112737023B (en) * 2020-12-25 2024-01-26 珠海格力电器股份有限公司 Power receiving equipment control method and device in quick charging mode and power receiving equipment
CN115550081A (en) * 2021-06-30 2022-12-30 华为技术有限公司 Power management method and device of power supply equipment
CN115378048A (en) * 2022-08-24 2022-11-22 珠海录看数字技术有限公司 Distributed POE power supply self-adaptive scheduling system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100518069C (en) * 2007-05-25 2009-07-22 杭州华三通信技术有限公司 Power management method, system, main control board and intelligent interface board
CN101820348A (en) * 2010-03-09 2010-09-01 武汉烽火网络有限责任公司 Method and device for carrying out overload protection on equipment in POE system
CN102404829B (en) * 2011-12-07 2016-08-10 华为技术有限公司 The method and device that power controls
CN103543765B (en) * 2012-07-13 2017-02-08 中兴通讯股份有限公司 Method and device for controlling temperature of power over Ethernet system
CN105323076A (en) * 2014-06-27 2016-02-10 中兴通讯股份有限公司 Method for supplying power to power device (PD) through PSE (power supply equipment), and Ethernet PSE
CN105048439B (en) * 2015-08-10 2018-10-12 福建星网锐捷网络有限公司 A kind of method for controlling power supply and device

Also Published As

Publication number Publication date
CN110120875A (en) 2019-08-13

Similar Documents

Publication Publication Date Title
CN110120875B (en) Power supply method and device, power supply equipment and storage medium
US7509505B2 (en) Method and system for managing power delivery for power over Ethernet systems
US11025443B2 (en) Power sourcing equipment, and method and apparatus for power over ethernet
US10756910B2 (en) Dynamic power management
CN104137473B (en) POE method, device, equipment and system
US8301919B2 (en) System and method for implementing fairness in the powering of computing devices in a power over Ethernet application
US10999085B2 (en) Power control method, device and electronic equipment in ethernet power supply system
US20100153750A1 (en) Method and system for providing dynamic power sharing to network devices
US7565555B2 (en) Uninterruptible power supply resource sharing for multiple power sourcing equipment network devices
EP2060059B1 (en) Programmable constant power foldback
US11368321B2 (en) Power sourcing equipment and energy saving method for power over ethernet
US20090327766A1 (en) Power Over Ethernet Reclassification
CN109005041B (en) Local side equipment, reverse power supply system and method
US20170230080A1 (en) Power Source Equipment and Power Supplying Method for Power over Ethernet system
CN113589913B (en) CPU performance adjusting method, device and medium
US20200204382A1 (en) Method and device for controlling device activation
CN107979474B (en) Network device and power supply method
CN107749796B (en) Power supply power distribution method and device of PoE system
US11119551B2 (en) Power consumption sensing for power over ethernet (PoE) power sourcing equipment (PSE) system
WO2021098497A1 (en) Power supply system, power supply method, power supply apparatus, and terminal device
CN112558748B (en) Method, device and equipment for limiting power consumption of server and readable storage medium
US8046602B2 (en) Controlling connection status of network adapters
CN110048859B (en) POE power supply method, equipment and storage medium
Vaisband et al. Dynamic power management with power network-on-chip
CN110752935B (en) POE self-adaptive power supply system, method and device

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