Power management method, device and storage medium

文档序号:1908074 发布日期:2021-11-30 浏览:20次 中文

阅读说明:本技术 电源功率管理方法、装置及存储介质 (Power management method, device and storage medium ) 是由 项力领 于 2021-07-16 设计创作,主要内容包括:本申请实施例提供一种电源功率管理方法、装置及存储介质。在本申请实施例中,基于PSE可提供的最大输出功率、多个已上电PD的实际消耗功率和分级功率检测PSE是否可以为下电后的PD重新上电,也即检测PoE系统的供电稳定性。若检测出PSE不可以为PD重新上电,则基于多个已上电PD设备连接网线端口的优先级,从多个已上电PD中选择一个或多个目标PD下电。在目标PD下电后,多个已上电PD中除目标PD之外的其他PD下电后还可以重新上电,进而实现改善PoE系统的供电稳定性。(The embodiment of the application provides a power management method, a power management device and a storage medium. In the embodiment of the present application, whether the PSE can be powered up again for the powered-down PD is detected based on the maximum output power that the PSE can provide, the actual consumed power of the plurality of powered-up PDs, and the classification power, that is, the power supply stability of the PoE system is detected. And if the PSE is detected not to be capable of powering up the PD again, selecting one or more target PDs from the plurality of powered-up PDs to power down based on the priority of the plurality of powered-up PD devices connected with the network cable port. After the target PD is powered off, other PDs except the target PD in the plurality of powered-on PDs can be powered off again, and therefore power supply stability of the PoE system is improved.)

1. A power supply power management method is applied to Power Supply Equipment (PSE), and comprises the following steps:

acquiring the maximum output power which can be provided by the PSE;

acquiring actual consumed power and classification power of a plurality of Powered Devices (PD);

acquiring a first difference value between the sum of the actual consumed powers of the plurality of powered-on PDs and the minimum actual consumed power in the actual consumed powers of the plurality of powered-on PDs;

if the second difference between the maximum output power and the first difference is smaller than the maximum classification power in the classification powers of the plurality of electrified PDs, selecting a target PD with the actual consumption power larger than or equal to the third difference between the maximum classification power and the minimum actual consumption power from the plurality of electrified PDs according to the priority of the plurality of electrified PD equipment connected with the network cable port, and powering down the target PD.

2. The method of claim 1, further comprising, before obtaining the maximum output power that can be provided by the PSE:

when detecting that a target network cable port on the PSE is accessed to a PD to be powered on, determining the loss power of a network cable connected between the target port and the PD to be powered on;

if the difference between the current residual power supply power and the loss power of the PSE is smaller than the classification power of the PD to be powered on, judging whether powered-on PDs with the priority smaller than that of the PD to be powered on exist in the current powered-on PDs or not;

if yes, performing an operation of acquiring the maximum output power which can be provided by the PSE and other subsequent operations; and after the target PD is powered off, carrying out power-on operation on the PD to be powered on.

3. The method of claim 1 or 2, wherein selecting a target PD from the plurality of powered-up PDs that actually consumes power greater than or equal to a third difference between the maximum classification power and the minimum actual consumed power according to the priority of the plurality of powered-up PD devices connecting to the network port comprises:

determining candidate PDs with the priority lower than that of the PDs to be electrified according to the priorities of the plurality of electrified PD connection network cable interfaces;

selecting one or more PDs having an actual consumption power greater than the third difference value and a minimum classification power as a target PD from the candidate PDs.

4. The method of claim 2, further comprising:

after the power-on operation is executed on the PD to be powered on, determining the current residual power supply power of the PSE according to the actual power supply power of each current powered-on PD;

and if the difference between the current residual power supply power of the PSE and the loss power of the network cable between the target PD is larger than the classification power of the target PD, the target PD is powered on again.

5. The method of claim 2, further comprising:

and if the difference between the current residual power supply power of the PSE and the loss power is larger than or equal to the grading power of the PD to be powered on, directly executing the power-on operation on the PD to be powered on.

6. A power management device for a power supply, comprising: a memory and a processor;

the memory for storing a computer program;

the processor, coupled with the memory, to execute the computer program to:

acquiring the maximum output power which can be provided by the PSE;

acquiring actual consumed power and classification power of a plurality of Powered Devices (PD);

acquiring a first difference value between the sum of the actual consumed powers of the plurality of powered-on PDs and the minimum actual consumed power in the actual consumed powers of the plurality of powered-on PDs;

if the second difference between the maximum output power and the first difference is smaller than the maximum classification power in the classification powers of the plurality of electrified PDs, selecting a target PD with the actual consumption power larger than or equal to the third difference between the maximum classification power and the minimum actual consumption power from the plurality of electrified PDs according to the priority of the plurality of electrified PD equipment connected with the network cable port, and powering down the target PD.

7. The apparatus of claim 6, wherein before obtaining the maximum output power providable by the PSE, the processor is further configured to:

when detecting that a target network cable port on the PSE is accessed to a PD to be powered on, determining the loss power of a network cable connected between the target port and the PD to be powered on;

if the difference between the current residual power supply power and the loss power of the PSE is smaller than the classification power of the PD to be powered on, judging whether powered-on PDs with the priority smaller than that of the PD to be powered on exist in the current powered-on PDs or not;

if yes, performing an operation of acquiring the maximum output power which can be provided by the PSE and other subsequent operations; and after the target PD is powered off, carrying out power-on operation on the PD to be powered on.

8. The apparatus according to claim 7 or 6, wherein the processor, when selecting the target PD, is specifically configured to:

determining candidate PDs with the priority lower than that of the PDs to be electrified according to the priorities of the plurality of electrified PD connection network cable interfaces;

selecting one or more PDs having an actual consumption power greater than the third difference value and a minimum classification power as a target PD from the candidate PDs.

9. The apparatus of claim 7, wherein the processor is further configured to:

after the power-on operation is executed on the PD to be powered on, determining the current residual power supply power of the PSE according to the actual power supply power of each current powered-on PD;

and if the difference between the current residual power supply power of the PSE and the loss power of the network cable between the target PD is larger than the classification power of the target PD, the target PD is powered on again.

10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 5.

Technical Field

The present disclosure relates to the field of power supply technologies, and in particular, to a power management method and apparatus, and a storage medium.

Background

With the development of power over ethernet (PoE) technology, PoE systems are increasingly used to supply power. Generally, referring to fig. 1, a POE system includes a Power Sourcing Equipment (PSE) and a Powered Device (PD), and a network port of the PSE is connected to a network port of the PD by a twisted pair. The PSE may be a network device such as a switch, a router, etc. supporting a PoE function, and supplies power to the PD while transmitting data to the PD through a twisted pair in an ethernet network, and in addition, manages power supply power of the entire PoE system. The PD receives power from the PSE, and may be an ethernet device such as an Internet Protocol (IP) phone, a network security camera, a palm computer, and a mobile phone charger.

In practice, the number of PDs receiving power from the PSE (i.e., powered-up PDs) is increasing over time. At present, when some powered PDs are plugged and then accessed into the PSE or the original normally powered PDs are powered off and then accessed into the PSE again, the current residual power supply of the PSE is insufficient to be the phenomenon that the PDs are powered on again, and the power supply stability of a PoE system is poor.

Disclosure of Invention

Aspects of the present disclosure provide a power management method, apparatus, and storage medium for improving power stability of a PoE system.

The embodiment of the application provides a power supply power management method, which is applied to power supply equipment PSE and comprises the following steps:

acquiring the maximum output power which can be provided by the PSE;

acquiring actual consumed power and classification power of a plurality of Powered Devices (PD);

acquiring a first difference value between the sum of actual consumed power of a plurality of powered-on PDs and the minimum actual consumed power of the plurality of powered-on PDs;

if the second difference between the maximum output power and the first difference is smaller than the maximum classification power in the classification powers of the plurality of electrified PDs, selecting a target PD with the actual consumption power larger than or equal to the third difference between the maximum classification power and the minimum actual consumption power from the plurality of electrified PDs according to the priority of the plurality of electrified PD equipment connected with the network cable port, and powering down the target PD.

An embodiment of the present application further provides a power management device, including: a memory and a processor;

a memory for storing a computer program;

a processor coupled with the memory for executing the computer program for:

acquiring the maximum output power which can be provided by the PSE;

acquiring actual consumed power and classification power of a plurality of Powered Devices (PD);

acquiring a first difference value between the sum of actual consumed power of a plurality of powered-on PDs and the minimum actual consumed power of the plurality of powered-on PDs;

if the second difference between the maximum output power and the first difference is smaller than the maximum classification power in the classification powers of the plurality of electrified PDs, selecting a target PD with the actual consumption power larger than or equal to the third difference between the maximum classification power and the minimum actual consumption power from the plurality of electrified PDs according to the priority of the plurality of electrified PD equipment connected with the network cable port, and powering down the target PD.

Embodiments of the present application further provide a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to execute the steps in the power management method of the power supply provided in the embodiments of the present application.

In the embodiment of the present application, the PSE detects whether the PSE can re-power up the powered-down PD based on the maximum output power that the PSE can provide, the actual power consumption of the plurality of powered-up PDs, and the classification power, that is, detects the power supply stability of the PoE system. And if the PSE is detected not to be capable of powering up the PD again, selecting one or more target PDs from the plurality of powered-up PDs to power down based on the priority of the plurality of powered-up PD devices connected with the network cable port. After the target PD is powered off, other PDs except the target PD in the plurality of powered-on PDs can be powered off again, and therefore power supply stability of the PoE system is improved.

Drawings

The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:

fig. 1 is a schematic structural diagram of an exemplary POE system;

FIG. 2 is a flow chart of a method for power management of a power supply according to an exemplary embodiment of the present application;

fig. 3 is a schematic structural diagram of a power management apparatus according to another exemplary embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, 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 application.

The power management strategy of the existing POE power supply system is as follows: and judging whether the current residual power supply power of the PSE is larger than the classification power of the PD to be electrified or not aiming at the PD to be electrified, if so, supplying power to the PD to be electrified by the PSE. And if not, the PSE refuses to supply power to the PD to be powered on. However, the power management method of the power source may cause a phenomenon that when some powered PDs are plugged and then connected to the PSE or when the original normally powered PDs are powered off and restarted and then connected to the PSE, the current remaining power of the PSE is insufficient to power up the PDs again, and the power supply stability of the PoE system is poor.

For example: one PSE power supply may provide 185W of maximum output power, with 6 PD of class4 (29W actual power consumed) and one PD of class3 (5W actual power consumed). First accessing 5 class4 PDs and 1 class3 PDs, and powering up all the PDs, wherein the current remaining power supply of the PSE is as follows: 185-29 x 5-5 w, and a PD of class4 is accessed, the PD of class4 will also be powered up because the current remaining power supply of the PSE is greater than the classification power of class 4. In the above situation, when the PD of class3 is powered down and then connected to the POE power supply system again, since the current remaining power supply of the PSE is 185-29 × 6 — 11W, the power-up condition of class power (15.4W) of class3 cannot be met, and the PD of class3 cannot be powered up.

In order to solve the foregoing technical problems, embodiments of the present application provide a power management method and apparatus, and a storage medium. In the embodiment of the present application, whether the PSE can be powered up again for the powered-down PD is detected based on the maximum output power that the PSE can provide, the actual consumed power of the plurality of powered-up PDs, and the classification power, that is, the power supply stability of the PoE system is detected. And if the PSE is detected not to be capable of powering up the PD again, selecting one or more target PDs from the plurality of powered-up PDs to power down based on the priority of the plurality of powered-up PD devices connected with the network cable port. After the target PD is powered off, other PDs except the target PD in the plurality of powered-on PDs can be powered off again, and therefore power supply stability of the PoE system is improved.

For ease of understanding, taking the IEEE802.3af (poe) ethernet power over ethernet standard as an example, the process of PSE powering a PD is described:

1. and (3) detection: at first, the PSE outputs a low voltage to detect whether the PD complies with the ieee802.3af standard before supplying power to the PD.

2. Grading: when the PSE detects that the PD meets the standard, the output voltage is further increased to classify the PD. Wherein the classifications include class0, class1, class2, class3, and class 4. Wherein, the classification power corresponding to class0 is 15.4W, class1, the classification power corresponding to class 4W, class2 is 15.4W, the classification power corresponding to class 7W, class3 is 15.4W, and the classification power corresponding to class4 is 30W.

3. Power supply: after confirming classification, the PSE outputs 48V dc to the PD and confirms the corresponding classification power that the PD currently and actually consumes no more power.

The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.

Fig. 1 is a flowchart of a power management method according to an exemplary embodiment of the present application. The method is applied to a PSE, and referring to fig. 1, the power management method of the power supply may include the steps of:

101. the maximum output power that can be provided by the PSE is obtained.

102. The actual consumed power and classification power of the plurality of powered devices PD are obtained.

103. A first difference value between a sum of actual consumed powers of the plurality of powered-on PDs and a minimum actual consumed power among the actual consumed powers of the plurality of powered-on PDs is obtained.

104. If the second difference between the maximum output power and the first difference is smaller than the maximum classification power in the classification powers of the plurality of electrified PDs, selecting a target PD with the actual consumption power larger than or equal to the third difference between the maximum classification power and the minimum actual consumption power from the plurality of electrified PDs according to the priority of the plurality of electrified PD equipment connected with the network cable port, and powering down the target PD.

Specifically, the PSE may obtain the maximum output power that the PSE can provide by reading its own power supply parameters. The PSE determines classification power corresponding to each PD before powering on the PD, and detects actual consumed power of the PD in real time after powering on each PD. It should be understood that the actual power consumed by each PD is less than or equal to its corresponding classification power.

After the PD with the minimum actual power consumption in the actual power consumption of the multiple powered PDs is powered off, if the current remaining power supply power of the PSE is greater than the maximum classification power in the classification power of the multiple powered PDs, it is indicated that after any PD in the multiple powered PDs is powered off, the current remaining power supply power of the PSE is greater than the classification power of the PD, that is, the current remaining power supply power of the PSE can meet the power requirement required by the re-powering on of the PD, at this time, the power supply stability of the system is good, and it is possible to avoid the occurrence of a phenomenon that when some powered-on PDs are plugged into the PSE or when original normally powered PDs are powered off and re-powered on, the current remaining power supply power of the PSE is insufficient to re-power the PD.

On the contrary, after powering down the PD with the minimum actual power consumption in the actual power consumptions of the multiple powered PDs, if the current remaining power supply power of the PSE is smaller than the maximum classification power in the classification powers of the multiple powered PDs, it is indicated that the current remaining power supply power of the PSE is smaller than the classification power of the PD after powering down a certain PD in the multiple powered PDs, that is, the current remaining power supply power of the PSE cannot meet the power requirement required by re-powering up the PD, at this time, the power supply stability of the PoE system is poor, when the powered PD is plugged into the PSE again or when the powered PD which is originally normally powered is powered down and re-accessed, the current remaining power supply power of the PSE is insufficient to take the occurrence of the phenomenon that the PD is re-powered up.

For ease of understanding, assume that the maximum output power available from the PSE is denoted as PmaxThe actual power consumption of the ith powered-up PD is denoted as PiThe minimum actual power consumption among the actual power consumptions of the plurality of powered-on PDs is denoted as PminThe maximum classification power among the classification powers of the plurality of powered-on PDs is denoted as Pa-maxThe number of powered-up PDs is denoted as n, which is a positive integer. By this is meant that when the number of currently powered-up PDs changes, n also changes.

In particular, PSE determination xWhether or not this is true. If the current is true, the power supply stability of the PoE system is better. If the PoE system is not established, the power supply stability of the PoE system is poor.

It is to be understood that,namely, the first difference value can be understood as the sum of the actual consumed powers of (n-1) powered-up PDs after powering down the PD with the smallest consumed power among the n currently powered-up PDs.

I.e. the second difference, which may be understood as the current remaining power supply of the PSE after powering down the PD with the least consumed power.

It can be understood that the current remaining power supply power of the PSE after powering down the PD with the minimum power consumption is smaller than the current remaining power supply power of the PSE after powering down other PDs, wherein the other PDs are any one of the n powered-up PDs except the PD with the minimum power consumption.

It is understood that if the current remaining power of the PSE after powering down the PD with the smallest power consumption can be greater than the maximum classification power of the classification powers of the plurality of powered PDs, the current remaining power of the PSE after powering down the other PDs can be greater than the maximum classification power of the classification powers of the plurality of powered PDs.

Thus, the PSE can be judged xAnd judging the power supply stability of the PoE system if the PoE system is established. When the PSE determines that the power supply stability of the PoE system is poor, the PSE needs to perform power-down processing on one or more PDs of the n powered PDs for the purpose of maintaining the power supply stability of the PoE system until it is determined that the PoE system can ensure better power supply stability.

In practical application, the PSE sets the priority of each network cable port in advance. The priority levels are Critical, High and Low in order from High to Low. In one aspect, the higher the priority of a network cable port, the more preferred the PSE is to power the PD connected to that network cable port. On the other hand, the lower the priority of a network cable port, the more preferentially the PSE powers down the network cable port connection PD.

For example, the PSE detects that network port 1, network port 2, and network port 3 all have access to a PD at the same time. Because the priority of the network cable port 1 is Low, the priority of the network cable port 2 is Critical, and the priority of the network cable port 3 is High; at this time, the PSE first powers up the PD connected to the network cable port 2, and if the PD connected to the network cable port 2 can meet the power requirement of the PD connected to the network cable port 3 after being powered up, the PSE powers up the PD connected to the network cable port 3; if the power requirement of the PD connected to the network cable port 1 can be met by the PSE after the PD connected to the network cable port 3 is powered on, the PD connected to the network cable port 1 is powered on by the PSE.

Continuing with the above example, if the PSE needs to power down the PD, the powered-up PD connected to the network cable port 1 is powered down first; if the PSE still needs to power down the PD, the powered-up PD connected with the network cable port 3 is powered down; if the PSE still needs to power down the PD, the powered-up PD connected to the network cable port 2 is powered down.

Therefore, in selecting a target PD to be selected from the plurality of powered-on PDs, it is necessary to select a target PD having a lower priority than other PDs from the plurality of powered-on PDs in combination with the priorities of the plurality of powered-on PD devices connected to the network cable port. Wherein the other PDs are powered-up PDs of the plurality of powered-up PDs except the target PD.

If the actual consumed power corresponding to the selected one or more target PDs is greater than the third difference between the maximum classification power and the minimum actual consumed power, the PSE may determine that the one or more target PDs are powered offThe establishment is resumed, i.e. the PoE system returns to better power stability.

Following the above assumption, Pa-max-PminIs expressed as a third difference between the maximum classification power and the minimum actual consumed power. By pairsAnalysis ofIt is understood that if the actual consumed power corresponding to the target PD to be powered down is greater than or equal to the third difference Pa-max-PmThen the PoE system can certainly enable the target PD to be powered downIs established, i.e. such thatThis is true.

Therefore, in some optional embodiments, when the PSE needs to perform power-down processing on one or more PDs in the n powered-up PDs, a target PD whose actual power consumption is greater than or equal to the third difference value may be selected from the plurality of powered-up PDs according to priorities of the plurality of powered-up PD devices connected to the network cable port, and the target PD is subjected to power-down processing.

It is to be noted that, after the target PD is powered down, if other PDs that are still powered up are powered down, other PDs that are subsequently powered down may also be powered up again. For example, the plurality of powered PDs includes: PD1, PD2, PD3, and PD 4. The target PD is PD4, and if PD4 is not powered down, any PD of PD1, PD2, and PD3 may not be powered up again after being powered down. If the PD4 is powered down, any one of the PD1, the PD2 and the PD3 can be powered up again after being powered down.

Over time, the number of PDs receiving power from the PSE changes so that the current remaining power from the PSE can also meet the power requirements of the target PD that has been powered down. It is understood that the smaller the classification power of the target PD, the greater the probability that the target PD is successfully powered up again.

Therefore, in an optional implementation manner, the implementation process of selecting the target PD based on the priority of the network port and the third difference between the maximum classification power and the minimum actual power consumption is specifically: determining candidate PDs with the priority lower than that of the PDs to be electrified according to the priorities of the plurality of electrified PDs connected with the network cable interface; one or more PDs, which actually consume power larger than the third difference and have the smallest classification power, are selected as the target PDs from the candidate PDs.

The embodiment of the application provides a power management method, which detects whether a Power Source Equipment (PSE) can be powered up again for a powered-down PD based on the maximum output power provided by the PSE, the actual consumed power of a plurality of powered-up PDs and the classification power, namely detects the power supply stability of a power over Ethernet (PoE) system. And if the PSE is detected not to be capable of powering up the PD again, selecting one or more target PDs from the plurality of powered-up PDs to power down based on the priority of the plurality of powered-up PD devices connected with the network cable port. After the target PD is powered off, other PDs except the target PD in the plurality of powered-on PDs can be powered off again, and therefore power supply stability of the PoE system is improved.

In the above or following embodiments of the present application, in consideration of practical applications, the PSE may provide a plurality of network ports, where each network port accesses the PD at an indefinite time, some network ports access the PD at an earlier time, and some network ports access the PD at a later time. A PD with a later access time may not be powered up because the current remaining power supply of the PSE cannot meet the power requirement of the PD. However, actual traffic demands require that the PD be powered up. At this time, before powering on the PD, the power management method provided in the embodiment shown in fig. 1 may be performed, and after powering off the target PD, the PD to be powered on may be powered on.

Since the PSE and the PD are connected via the network cable, the current flows through the network cable so that the network cable consumes a certain supply power. The power supply power consumed by the network cable is also the loss power of the network cable, and the loss power can be calculated based on the output current of the PSE and the resistance of the network cable. For example, if the output current of the PSE with a wire resistance of 20 Ω is 0.35A, the power loss P is 0.35 × 20 — 2.45W. By this is meant that the output voltage of the PSE to the network cable port is known and the output current for different output voltages is also known. For example, when the PSE is required to provide an output voltage of 44V to the network cable port, the corresponding output current is 0.35A.

In the above or following embodiments of the present application, the current remaining power supply power of the PSE and the power loss of the network cable are considered at the same time, so as to more accurately identify whether the PSE can currently meet the power requirement of the PD to be powered on. Specifically, whether the PSE currently meets the power requirement of the PD to be powered on is identified by analyzing the comparison result of the difference between the current residual power supply power and the loss power of the PSE and the classification power of the PD to be powered on. If the difference between the current residual power supply power and the loss power of the PSE is greater than or equal to the classification power of the PD to be powered on, the PSE is indicated whether the current power requirement of the PD to be powered on is met, and at the moment, the PSE can directly perform power-on operation on the PD to be powered on. On the contrary, if the difference between the current remaining power supply power and the power loss of the PSE is smaller than the classification power of the PD to be powered on, it indicates that the PSE cannot meet the power requirement of the PD to be powered on at present temporarily, and if the priority of the PD to be powered on is higher, the priority can be made lower than the power-off of the powered-on PD of the PD to be powered on so as to increase the current remaining power supply power that the PSE can provide, so that the PSE with the increased current remaining power supply can meet the power requirement of the PD to be powered on.

Thus, in an optional embodiment, before obtaining the maximum output power that can be provided by the PSE, the power management method may further include: when a target network cable port on the PSE is detected to be accessed to a PD to be electrified, determining the loss power of a network cable connected between the target port and the PD to be electrified; if the difference between the current residual power supply power and the loss power of the PSE is smaller than the classification power of the PD to be electrified, judging whether the electrified PD with the priority smaller than that of the PD to be electrified exists in each electrified PD; if yes, performing an operation of acquiring the maximum output power which can be provided by the PSE and other subsequent operations; and after powering down the target PD, performing a power-up operation on the PD to be powered up. Wherein the target PD is one PD of a plurality of powered-on PDs.

In the above or following embodiments of the present application, considering that the target PD is forced to be powered down due to the fact that the PD to be powered up needs to be powered up, and the actual consumed power of the PD to be powered up after being powered up is likely to be smaller than the classification power of the PD to be powered up, so that the PSE may currently meet the power requirement of powering down and powering up again for the target PD after the target PD is powered down and the PD to be powered up is powered up.

Therefore, in an optional embodiment, after the power-on operation is performed on the PD to be powered on, the current remaining power supply power of the PSE is determined according to the actual power supply power of each currently powered-on PD; and if the difference between the current residual power supply power of the PSE and the loss power of the network cable between the target PD is larger than the classification power of the target PD, the target PD is powered on again.

It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subjects of step 201 to step 204 may be device a; for another example, the execution subject of steps 201 and 202 may be device a, and the execution subject of step 203 may be device B; and so on.

In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 201, 202, etc., are merely used for distinguishing different operations, and the sequence numbers do not represent any execution order per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.

Fig. 3 is a schematic structural diagram of a power management apparatus according to an exemplary embodiment of the present application. As shown in fig. 3, the apparatus includes:

a memory 301 and a processor 302;

the memory 301 is used for storing computer programs and can be configured to store other various data to support the operation on the power management device. Examples of such data include instructions for any application or method operating on the power management device, contact data, phonebook data, messages, pictures, videos, and the like.

The memory 301 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.

A processor 302, coupled to the memory 301, for executing a computer program for:

acquiring the maximum output power which can be provided by the PSE;

acquiring actual consumed power and classification power of a plurality of Powered Devices (PD);

acquiring a first difference value between the sum of actual consumed power of a plurality of powered-on PDs and the minimum actual consumed power of the plurality of powered-on PDs;

if the second difference between the maximum output power and the first difference is smaller than the maximum classification power in the classification powers of the plurality of electrified PDs, selecting a target PD with the actual consumption power larger than or equal to the third difference between the maximum classification power and the minimum actual consumption power from the plurality of electrified PDs according to the priority of the plurality of electrified PD equipment connected with the network cable port, and powering down the target PD.

In some optional embodiments, before obtaining the maximum output power that can be provided by the PSE, the processor 302 is further configured to:

when a target network cable port on the PSE is detected to be accessed to a PD to be electrified, determining the loss power of a network cable connected between the target port and the PD to be electrified;

if the difference between the current residual power supply power and the loss power of the PSE is smaller than the classification power of the PD to be electrified, judging whether the electrified PD with the priority smaller than that of the PD to be electrified exists in each electrified PD;

if yes, performing an operation of acquiring the maximum output power which can be provided by the PSE and other subsequent operations; and after powering down the target PD, performing a power-up operation on the PD to be powered up.

In some optional embodiments, when the processor 302 selects the target PD, it is specifically configured to:

determining candidate PDs with the priority lower than that of the PDs to be electrified according to the priorities of the plurality of electrified PDs connected with the network cable interface;

one or more PDs, which actually consume power larger than the third difference and have the smallest classification power, are selected as the target PDs from the candidate PDs.

In some optional embodiments, the processor 302 is further configured to:

after the power-on operation is executed on the PD to be powered on, determining the current residual power supply power of the PSE according to the actual power supply power of each current powered-on PD;

and if the difference between the current residual power supply power of the PSE and the loss power of the network cable between the target PD is larger than the classification power of the target PD, the target PD is powered on again.

In some optional embodiments, the processor 302 is further configured to:

and if the difference between the current residual power supply power and the loss power of the PSE is greater than or equal to the grading power of the PD to be powered on, directly executing the power-on operation on the PD to be powered on.

Further, as shown in fig. 3, the power management apparatus further includes: communication components 303, display 304, power components 305, audio components 306, and the like. Only some of the components are schematically shown in fig. 3, and it is not meant that the power management device of the power supply includes only the components shown in fig. 3.

The communication component of fig. 3 described above is configured to facilitate communication between the device in which the communication component is located and other devices in a wired or wireless manner. The device where the communication component is located can access a wireless network based on a communication standard, such as a WiFi, a 2G, 3G, 4G/LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

The display in fig. 3 described above includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

The power supply assembly of fig. 3 described above provides power to the various components of the device in which the power supply assembly is located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.

The audio component of fig. 3 described above may be configured to output and/or input audio signals. For example, the audio component includes a Microphone (MIC) configured to receive an external audio signal when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 301 or transmitted via the communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals.

Accordingly, the present application also provides a computer readable storage medium storing a computer program, where the computer program is capable of implementing the steps that can be executed by the power management apparatus in the foregoing method embodiments when executed.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. 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.

In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.

It should also be noted that 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 the process, method, article, or apparatus that comprises the element.

The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种集束电缆分布式供电的解决方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!