CN107994999B - PoE power management method and device - Google Patents

PoE power management method and device Download PDF

Info

Publication number
CN107994999B
CN107994999B CN201711225456.8A CN201711225456A CN107994999B CN 107994999 B CN107994999 B CN 107994999B CN 201711225456 A CN201711225456 A CN 201711225456A CN 107994999 B CN107994999 B CN 107994999B
Authority
CN
China
Prior art keywords
consumption mode
power consumption
power
switching
powered
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
CN201711225456.8A
Other languages
Chinese (zh)
Other versions
CN107994999A (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 H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201711225456.8A priority Critical patent/CN107994999B/en
Publication of CN107994999A publication Critical patent/CN107994999A/en
Application granted granted Critical
Publication of CN107994999B publication Critical patent/CN107994999B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application discloses a POE power management method and device. The method comprises the following steps: acquiring device information of a powered device and remaining power of a power supply device, wherein the device information includes a device type; when detecting that the residual power of the power supply equipment is smaller than a first preset power, switching the powered equipment in a normal power consumption mode to a low power consumption mode according to a preset type sequence and the equipment type; and when detecting that the residual power of the power supply equipment is greater than a second preset power, switching the powered equipment in the low power consumption mode to a normal power consumption mode according to a reverse sequence of a preset type sequence and the equipment type. According to the power distribution method and device, under the condition that the power supply power of the power supply equipment is not changed, the power of the power supply equipment is distributed more reasonably, and the power receiving equipment works normally as much as possible.

Description

PoE power management method and device
Technical Field
The present application relates to the field of remote power supply technologies, and in particular, to a POE power management method and apparatus.
Background
PoE (Power over Ethernet) means that a Power supply Device remotely supplies Power to an external PD (Powered Device) through an Ethernet port by using a twisted pair.
Fig. 1 is a schematic diagram of a PoE system, which includes a PSE (Power Sourcing Equipment) and a PD, as described in fig. 1. Referring to fig. 1, the PSE is provided with a PI (Power Interface) through which the PSE connects and Power manages the PD, detects whether the connection with the PD is disconnected, and the like.
Along with the demand in market, the function of PD is more and more, and the consumption of PD is bigger and bigger, and PSE power supply rated power is certain, and PSE can not be for all PD supplies power that have the needs, if guarantee all that have the PD that needs can receive the electricity simultaneously, need promote the power of PSE power and solve this problem, can increase equipment cost.
Disclosure of Invention
The application provides a POE power management method and device, which aim to solve the problem that in the prior art, under the condition that the PSE power supply power is not changed, the PSE power supply power is unreasonably distributed.
In order to achieve the purpose, the technical scheme of the application is realized as follows:
in one aspect, the present application provides a POE power management method, which is applied to an ethernet device, and the method includes:
acquiring device information of a powered device and remaining power of a power supply device, wherein the device information includes a device type;
when detecting that the residual power of the power supply equipment is smaller than a first preset power, switching the powered equipment in a normal power consumption mode to a low power consumption mode according to a preset type sequence and the equipment type;
when the fact that the remaining power of the power supply equipment is larger than a second preset power is detected, switching the powered equipment in a low power consumption mode to a normal power consumption mode according to a reverse sequence of a preset type sequence and the equipment type, wherein the second preset power is larger than the first preset power.
On the other hand, this application provides a POE power management device, is applied to ethernet equipment, the device includes:
an acquisition unit configured to acquire device information of a power receiving device and remaining power of a power supply device, wherein the device information includes a device type;
the switching unit is used for switching the powered device in a normal power consumption mode to a low power consumption mode according to a preset type sequence and the device type when detecting that the residual power of the power supply device is smaller than a first preset power; when the fact that the remaining power of the power supply equipment is larger than a second preset power is detected, switching the powered equipment in a low power consumption mode to a normal power consumption mode according to a reverse sequence of a preset type sequence and the equipment type, wherein the second preset power is larger than the first preset power.
In another aspect, the present application provides a POE power management device, comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the above POE power management method is performed.
In another aspect, the present application provides a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the above POE power management method is performed.
The beneficial effect of this application is: the Ethernet equipment dynamically acquires the residual power of the PSE and the equipment type of each PD managed by the residual power and the equipment type of each PD, and switches and controls the power consumption mode of the PD by comparing the residual power of the PSE with the preset power according to the comparison result and combining the equipment type of the PD so as to reasonably distribute the power of the PSE and ensure that the PDs work normally as much as possible.
Drawings
Fig. 1 is a schematic diagram of a PoE system according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a PoE power management method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a data format of a Power Via MDI TLV specified by IEEE802.3 in accordance with an embodiment of the present application;
FIG. 4 is a data format schematic diagram of a modified Power Via MDI TLV shown in an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a connection relationship between a switch, a PSE and a PD according to an embodiment of the present application;
fig. 6 is a block diagram illustrating a structure of a PoE power management device according to an embodiment of the present application;
fig. 7 is a schematic hardware structure diagram of a PoE power management device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 2 is a flowchart of a PoE power management method shown in an embodiment of the present application, where the method of the present embodiment is applied to an ethernet device, the ethernet device in the embodiment of the present application includes but is not limited to network devices such as a router and a switch, and the ethernet device controls a PSE to allocate power to a PD by interacting with the PSE. The PSE in the embodiment of the present application may be a part of an ethernet device, for example, the PSE may be a buckle in a switch, and the PSE may also be a separate module connected to the ethernet device. The PD in the embodiment of the present application includes, but is not limited to, an IP phone, a wireless AP (Access Point), a portable device charger, a POS machine, a network camera, and the like. As shown in fig. 2, the PoE power management method of this embodiment includes:
s210, acquiring device information of the PD and the remaining power of the PSE, wherein the device information comprises a device type.
The ethernet device in the embodiment of the application may obtain the device information of the PD in an active manner, for example, send a request message to the PD, the PD replies a notification message carrying the device information to the ethernet device according to the received request message, and the ethernet device obtains the device information of the PD according to the notification message; the ethernet device in this embodiment may also obtain the device information of the PD in a passive manner, for example, after each PD accesses the PSE, the PD actively sends a notification message to the ethernet device, and the ethernet device obtains the device information of each PD managed by the ethernet according to the notification message.
S220, when detecting that the remaining power of the PSE is smaller than a first preset power, switching the PD in the normal power consumption mode to the low power consumption mode according to the preset type sequence and the equipment type.
The first preset power in the embodiment of the application can be set according to a power value required by the PSE to maintain the basic operation of the PSE, if a boundary power value of the PSE in an overload state and a normal state can be set as the first preset power, when the remaining power of the PSE is less than the first preset power, the PSE is in the overload state, and the powered device in the normal power consumption mode is switched to a low power consumption mode, so that the PSE maintains the basic operation by using the saved power.
As to the preset type sequence in the embodiment of the present application, it can be understood that the preset type sequence in the embodiment of the present application may be set according to information such as whether the PD supports power consumption mode switching, a power receiving priority of the PD, a rated power of the PD, an operating scenario of the PD, and an operating environment of the PD. Whether the power consumption mode switching is supported or not refers to whether the PD has the capability of performing power consumption switching between a normal power consumption mode and a low power consumption mode or not, and whether the PD supports the capability of performing power consumption mode switching or not, a capability mark is carried in a notification message sent by the PD to an Ethernet device, if the value of the capability mark is a first preset value, the PD sending the notification message is indicated to have the capability of performing power consumption mode switching, the PD can be subjected to power consumption switching through the Ethernet device, and if the value of the capability mark is a second preset value, the PD sending the notification message is indicated not to have the capability of performing power consumption mode switching; the power receiving priority indicates whether the PD is allowed to be in a low power consumption mode.
And S230, when detecting that the remaining power of the PSE is greater than a second preset power, switching the PD in the low power consumption mode to a normal power consumption mode according to a reverse sequence of a preset type sequence and the device type, wherein the second preset power is greater than the first preset power.
The second preset power in the embodiment of the application may be set according to a power value required by the PSE to maintain the basic operation of the PSE and a rated power value of the PD, for example, referring to a boundary power value of the PSE in an overload state and a normal state and a rated power value of the PD in a low power consumption mode, a sum of the boundary power value and the rated power value of the PD is set as the second preset power, and when the remaining power of the PSE is greater than the second preset power, the remaining power of the PSE may provide power for the PD in the low power consumption mode to operate in the normal power consumption mode.
The Ethernet equipment of the embodiment of the application can dynamically detect the residual power of the PSE, dynamically acquire the power consumption mode and the equipment type of each PD, and switch and control the power consumption mode of the PD by comparing the residual power of the PSE with the preset power according to the comparison result and combining the equipment type of the PD and the power consumption mode of the PD, so that the power of the PSE is reasonably distributed, and the normal work of the PD as much as possible is ensured.
In an embodiment of the present application, the PD may be configured into at least two groups according to information such as a working scenario and a working environment of the PD, and a corresponding relationship between the group and a preset type sequence applied by the group is stored in the ethernet device, where the preset type sequence applied by the group may be configured according to the working scenario and the working environment of each group and a device type of the PD. Illustratively, the present embodiment configures PDs into two groups, the PDs including an IP phone, a wireless AP, and a webcam, where group a corresponds to an office scene, group B corresponds to a monitoring mode, a preset type sequence applied to group a is wireless AP-webcam-IP phone, and a preset type sequence applied to group B is wireless AP-IP phone-webcam; namely, when the remaining power of the PSE is less than a first preset power, a part of PDs needs to be selected to be switched to a low power consumption mode, for a group a, a wireless AP is switched first according to a preset type sequence, then a network camera is switched, and finally an IP phone is switched, and when the remaining power of the PSE is greater than a second preset power, the IP phone is switched to a normal power consumption mode in the group a in advance according to a reverse sequence of the preset type sequence corresponding to the group a, then the network camera is switched, and finally the wireless AP is switched.
At this time, the ethernet device according to the embodiment of the present application performs switching control on the power consumption mode of the PD by the following method:
acquiring a preset type sequence configured for a group;
when detecting that the remaining power of the PSE is smaller than a first preset power, switching the PD in the normal power consumption mode to a low power consumption mode according to a preset type sequence corresponding to the group and the device type of the PD contained in the group; and when detecting that the remaining power of the PSE is greater than the second preset power, switching the powered device in the low power consumption mode to a normal power consumption mode according to the reverse order of the preset type order corresponding to the group and the device types of the PDs contained in the group.
In an embodiment of the present application, the ethernet device further performs switching management on the power consumption mode of the PD according to the messaging condition of the PD. Illustratively, the ethernet device of the present embodiment switches the power consumption mode of the PD by the following scheme:
detecting the message receiving and sending conditions of the PD;
when the idle time of the PD in the normal power consumption state is overtime, the PD in the normal power consumption mode is switched to a low power consumption mode; after the PD is switched to the low power consumption mode, if the other low-priority PDs are switched to the low power consumption mode due to overload before the PSE, the power saved by switching the idle state PD to the low power consumption mode is distributed to the other low-priority PDs for use so as to reasonably distribute the power of the PSE; if overload has not occurred before the PSE, the power consumption of the ethernet device may be reduced by switching the idle state PD to a low power mode.
When the remaining power of the PSE is larger than the rated power of the powered device needing to receive and transmit the data message, switching the PD in the low power consumption mode to the normal power consumption mode for the PD needing to receive and transmit the data message; and when the residual power of the PSE is less than the rated power of the powered device needing to receive and transmit the data message, discarding the data message needing to be received and transmitted.
The ethernet device in the embodiment of the present application performs data interaction with the PD based on LLDP (Link Layer Discovery Protocol).
Illustratively, the ethernet device in the embodiment of the present application obtains the device type of the PD according to the device type carried in the notification message by receiving the notification message carrying the device type and sent by the PD and based on the LLDP. The Ethernet equipment switches the PD in the normal power consumption mode to the low power consumption mode by sending a first switching message of the LLDP to the PD in the normal power consumption mode; and the Ethernet equipment switches the PD in the low power consumption mode to the normal power consumption mode by sending a second switching message of the LLDP to the PD in the low power consumption mode.
The Power Via MDI TLV specified by IEEE802.3 comprises a data head TLV head and a data body TLV information string, wherein the data head comprises the type of the Power Via MDI TLV and the length information of the data body, the data body comprises a port type, MDI Power, a device type, an MDI Power supply state, a Power supply line pair control capability and a Power supply line pair Power supply level analysis.
In the embodiment of the application, when the implementation is carried out, the Power Via MDI TLV data (Power Via Media Dependent Interface Power Type-Length-Value, ternary format of Power message of Media independent Interface) specified by IEEE802.3 is reconfigured; the data format of the Power Via MDI TLV specified in IEEE802.3 is shown in fig. 3, the data format of the Power Via MDI TLV specified in the embodiment of the present application is shown in fig. 4, and compared with fig. 3 and fig. 4, the embodiment of the present application further adds a Power switch control field in the Power Via MDI TLV data specified in IEEE802.3, where the Power switch control field is exemplarily 1byte in length and includes 3 valid bits, namely bit0, bit1, and bit 2.
Illustratively, where bit0 and bit1 are the operation bits, bit2 bit status bits; the bit0 value being 0 indicates that the PD requests the Ethernet equipment to perform power consumption mode switching, and the bit0 value being 1 indicates that the Ethernet equipment notifies the PD to perform power consumption mode switching; the bit1 with the value of 0 indicates that the PD or the Ethernet equipment performs corresponding setting, and the bit0 with the value of 1 indicates the response of the Ethernet equipment or the PD; a bit2 value of 0 indicates a low power consumption mode, and a bit2 value of 1 indicates a normal power consumption mode.
Based on the above assumptions, the Power Via MDI TLV message of the present application includes 8 types, specifically see table 1 below:
Figure BDA0001487169760000071
Figure BDA0001487169760000081
referring to fig. 4, in the embodiment of the present application, bit4 is added to a Power consumption support (MDI Power support) field of Power Via MDI TLV data specified in IEEE802.3, and bit4 is used to indicate whether Power consumption mode switching is supported, for example, if a value of bit4 is 0, it indicates that Power consumption mode switching is not supported, and if a value of bit4 is 1, it indicates that Power consumption mode switching is supported. The PoE power management method of the embodiment of the application mainly manages the PD supporting power consumption mode switching. In addition, the embodiment of the application further redefines the Type/source/priority field in the Power Via MDI TLV data specified by IEEE802.3, where the redefined Type/source/priority field includes the device Type of the PD and the packet where the PD is located.
Since the embodiment of the application adds the Power switch control field in the Power Via MDI TLV data, the length information of the Power Via MDI TLV message needs to be modified, and since the length of the newly added Power switch control field in the embodiment is 1byte, and the length of the Power Via MDI TLV data specified by IEEE802.3 is 12 bytes, the length of the reconfigured Power Via MDI TLV data in the embodiment should be 13 bytes.
In the present application, the detailed description is made on the switching control process of the Power consumption mode of the PD by the ethernet device through the specific embodiment in conjunction with the above-described LLDP packet carrying the reconfigured Power Via MDI TLV data.
The ethernet device in this embodiment is a switch, and the PSE is a buckle in the switch. Fig. 5 is a schematic diagram of a connection relationship between the switch, the PSE, and the PD provided in this embodiment, as shown in fig. 5, a CPU of the switch is respectively connected to the PSE board card and the network card, the network card and the PSE board card are respectively connected to the PD through a network port, a port part of the network port is used for supplying power to the PD through the PSE board card, and a part of the port is used for performing POE power supply control on the PD by the CPU; namely, the PSE board supplies power to the PD through partial sub-ports of the network port; the CPU performs message interaction with the PD through partial sub-ports of the network port, and performs power consumption mode switching control on the PD.
After the PD accesses the PSE, the CPU of the switch controls the PD based on LLDP as follows:
in an application scenario of this embodiment, the switch sends a request packet in an LLDP format to the PD, and at this time, both the bit corresponding to the device Type and the bit corresponding to the device packet in the Type/source/priority field in the request packet may be set to 0, which indicates that the device Type and the device packet of the PD are requested to be acquired. The present embodiment also sets the Power switch control field in the request message to 0, indicating that the Power consumption mode switching processing is not required. Bit4 of the MDI power support in the request message may also be set to 0, indicating that the switch requests to obtain whether the PD supports power mode switching.
And after receiving the request message sent by the switch, the PD replies a notification message to the switch. After receiving the request message, the PD sets the bit of the device Type and the bit value of the device group in the Type/source/priority field according to the LLDP protocol. Exemplarily, assuming that the PD includes an IP phone and a wireless AP, if a bit of the switch device Type takes a value of 1, the PD is an IP phone, and takes a value of 2, the wireless AP is represented, and bits of the device Type in the Type/source/priority field are assigned in sequence; exemplarily, it is assumed that the PD is divided into two groups, group a and group B, respectively, and if the bit value of the device group is 1, it indicates that the PD is in group a, and if the bit value of the device group is 2, it indicates that the PD is in group B. The PD sets bit4 of the MDI Power support to 1 according to the LLDP protocol, which indicates that the PD supports Power consumption mode switching, sets the Power switch control field to 0, which indicates that Power consumption mode switching is not needed, and forms a notification message after the PD performs the setting and sends the notification message to the switch.
And the switch receives and analyzes the notification message and prepares for subsequent power management according to an analysis result.
In another application scenario of this embodiment, the switch detects a message transceiving condition of the PD, and when the idle time of the PD in a normal power consumption state is exceeded, sends a first switching message to the PD to notify the PD to enter a low power consumption mode; at this time, the Power switch control field in the first switching message is 4, which indicates that the switch notifies the PD of performing Power consumption mode switching and notifies the PD of switching to the low Power consumption mode.
The PD sends a switching notification message to the switch according to the first switching message sent by the switch, and notifies the PD to enter a low power consumption mode; at this time, the Power switch control field in the switch notification message is 6, which indicates that the PD replies that the switch PD has entered the low Power consumption mode after the switch notifies the PD to perform the Power consumption mode switch.
After the switch receives the switching notification message, the current power consumption mode of the PD is recorded, and whether the PD needs to receive and transmit the data message is detected.
The application scenario is particularly suitable for power overload before the PSE occurs, the low-priority PD stops supplying power, the power consumption is saved by switching the PD in an idle state into a low-power consumption mode, and the saved power consumption is distributed to the low-priority PD for use so as to reasonably distribute the power of the PSE; when the PSE is not overloaded, the power consumption of the Ethernet device is reduced by switching the PD in an idle state into a low power consumption mode.
In another application scenario of this embodiment, the switch detects whether the PD in the low Power consumption mode needs to receive and transmit a data packet, and when the remaining Power of the PSE is greater than the rated Power of the PD that needs to receive and transmit the data packet, sends a second switching packet to the PD, where a Power switch control field in the second switching packet is 5, which indicates that the switch notifies the PD to perform Power consumption mode switching, and notifies the PD to switch to the normal Power consumption mode. And when the remaining power of the PSE is not more than the rated power of the PD which needs to receive and transmit the data message, discarding the data message which needs to be received and transmitted.
The PD sends a switching notification message to the switch according to a second switching message sent by the switch, and notifies the PD to enter a normal power consumption mode; at this time, the Power switch control field in the switch notification message is 7, which indicates that the PD replies that the switch PD has entered the normal Power consumption mode after the switch notifies the PD to perform the Power consumption mode switch.
And after receiving the switching notification message, the switch records the current power consumption mode of the PD and detects the idle time of the PD for receiving and transmitting the data message.
In another application scenario of this embodiment, when the PD operates in the low Power consumption mode and a peripheral device of the PD activates the PD, the PD sends a switch request message to the switch based on the LLDP to request to enter the normal Power consumption mode, and at this time, a Power switch control field in the switch request message is 1, which indicates that the PD requests the switch to perform Power consumption mode switching and requests the switch to be switched to the normal Power consumption mode.
The switch receives and analyzes the switching request message, and judges whether the PD is allowed to enter a normal power consumption mode according to the residual power of the PSE and the rated power of the PD; when the difference value between the remaining Power of the PSE and the rated Power of the PD is larger than a first preset Power, the switch indicates the PD to be switched to a normal Power consumption mode to a first switching message of the PD, and at the moment, a Power switch control field in the first switching message is 3, which indicates that the PD allows the PD to enter the normal Power consumption mode after the PD requests the switch to perform Power consumption mode switching; and the PD receives and analyzes the first switching message and enters a normal power consumption mode. When the difference value between the remaining Power of the PSE and the rated Power of the PD is smaller than the first preset Power, the switch sends a second switching message to the PD to indicate that the PD keeps a low Power consumption mode, and at the moment, a Power switch control field in the second switching message is 2 to indicate that the PD allows the PD to enter the low Power consumption mode after requesting the switch to perform Power consumption mode switching; and the PD receives and analyzes the second switching message and keeps a low power consumption mode.
Corresponding to the PoE power management method, the application also provides a PoE power management device.
Fig. 6 is a block diagram of a PoE power management device according to an embodiment of the present application, where the PoE power management device 60 according to the embodiment of the present application is applied to an ethernet device, and the PoE power management device 60 according to the embodiment of the present application includes:
the acquisition unit 61 is configured to acquire device information of a power receiving device and remaining power of a power supply device, where the device information includes a device type;
the switching unit 62 is configured to switch the PD in the normal power consumption mode to the low power consumption mode according to a preset type sequence and a device type when detecting that the remaining power of the PSE is smaller than a first preset power; and when detecting that the residual power of the PSE is greater than a second preset power, switching the PD in the low power consumption mode to a normal power consumption mode according to a reverse sequence of a preset type sequence and the equipment type, wherein the second preset power is greater than the first preset power.
The PD in the embodiment of the present application is configured as at least two groups, and a memory of the ethernet device stores a correspondence between the group and a preset type order applied by the group; correspondingly, the obtaining unit 61 is configured to obtain a preset type sequence configured for the group; the switching unit 62 is configured to switch the PD in the normal power consumption mode to the low power consumption mode according to the preset type sequence corresponding to the group and the device type of the PD included in the group; and switching the PD in the low power consumption mode to a normal power consumption mode according to the reverse order of the preset type order corresponding to the group and the equipment types of the PDs contained in the group.
In one embodiment of the present application, the PoE power management device 60 further comprises: a detection unit and a control unit;
the detection unit is used for detecting the message receiving and sending conditions of the PD;
the switching unit 62 is configured to switch the PD in the normal power consumption mode to the low power consumption mode when the idle time of the PD in the normal power consumption state is exceeded; when the remaining power of the PSE is greater than the rated power of the PD which needs to receive and transmit the data message, the PD in the low power consumption mode is switched to the normal power consumption mode for the PD which needs to receive and transmit the data message;
the control unit is used for discarding the data message needing to be received and transmitted when the remaining power of the PSE is less than the rated power of the PD needing to receive and transmit the data message; the control unit in this embodiment may be a central controller of the ethernet device.
In another embodiment of the present application, the PoE power management device 60 further comprises: a receiving unit and a transmitting unit;
the receiving unit is used for receiving a notification message sent by a PD and based on a link layer discovery protocol LLDP, wherein the notification message carries a device type;
the obtaining unit 61 is configured to obtain a device type carried in the notification message;
the sending unit is used for sending a first switching message of the LLDP to the PD in the normal power consumption mode so as to switch the PD in the normal power consumption mode to the low power consumption mode; and sending a second switching message of the LLDP to the PD in the low power consumption mode so as to switch the PD in the low power consumption mode to the normal power consumption mode.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The PoE power management device provided by the application can be realized through software, or can be realized through hardware or a mode of combining the hardware and the software. Taking a software implementation as an example, referring to fig. 7, the PoE power management device 60 provided by the present application can include a processor 701 and a machine-readable storage medium 702 storing machine-executable instructions. The processor 701 and the machine-readable storage medium 702 may communicate via a system bus 703. Also, by reading and executing machine-executable instructions in the machine-readable storage medium 702 corresponding to the PoE power management logic, the processor 701 can perform the PoE power management methods described above.
The machine-readable storage medium 702 referred to in this application may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., a compact disk, a DVD, etc.), or similar storage medium, or a combination thereof.
There is also provided, in accordance with an example disclosed herein, a machine-readable storage medium, such as machine-readable storage medium 702 in fig. 7, comprising machine-executable instructions executable by processor 701 in PoE power management device 60 to implement the PoE power management methodology described above.
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. 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.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. A PoE power management method, applied to an ethernet device, the method comprising:
acquiring device information of a powered device and remaining power of a power supply device, wherein the device information includes a device type;
when detecting that the residual power of the power supply equipment is smaller than a first preset power, switching the powered equipment in a normal power consumption mode to a low power consumption mode according to a preset type sequence and the equipment type;
when detecting that the remaining power of the power supply equipment is greater than a second preset power, switching the powered equipment in a low power consumption mode to a normal power consumption mode according to a reverse order of a preset type order and the equipment type, wherein the second preset power is greater than the first preset power, the powered equipment is configured into at least two groups, and a corresponding relation between the groups and the preset type order applied to the groups is stored in the Ethernet equipment;
the switching the powered device in the normal power consumption mode to the low power consumption mode according to the preset type sequence and the device type includes:
acquiring a preset type sequence configured for the group;
and switching the powered device in the normal power consumption mode to a low power consumption mode according to the preset type sequence corresponding to the group and the device type of the powered device contained in the group.
2. The method of claim 1, wherein switching the powered device in the low power consumption mode to the normal power consumption mode according to the preset type order and the device type comprises:
and switching the powered device in the low power consumption mode to a normal power consumption mode according to the reverse order of the preset type order corresponding to the group and the device type of the powered device contained in the group.
3. The method of claim 1, further comprising:
detecting the message receiving and sending conditions of the powered device;
when the idle time of the powered device in the normal power consumption state is overtime, switching the powered device in the normal power consumption mode to a low power consumption mode;
when the residual power of the power supply equipment is greater than the rated power of the powered equipment needing to receive and transmit the data message, switching the powered equipment in the low power consumption mode to a normal power consumption mode for the powered equipment needing to receive and transmit the data message;
and when the residual power of the power supply equipment is less than the rated power of the power receiving equipment needing to receive and transmit the data message, discarding the data message needing to be received and transmitted.
4. The method according to any one of claims 1 to 3, wherein the obtaining device information of the powered device comprises:
receiving a notification message sent by a powered device and based on a Link Layer Discovery Protocol (LLDP), wherein the notification message carries a device type;
acquiring the device type carried in the notification message;
the switching of the powered device in the normal power consumption mode to the low power consumption mode specifically includes:
sending a first switching message of LLDP to the powered device in a normal power consumption mode to switch the powered device in the normal power consumption mode to a low power consumption mode;
the switching of the powered device in the low power consumption mode to the normal power consumption mode specifically includes:
and sending a second switching message of the LLDP to the powered device in the low power consumption mode so as to switch the powered device in the low power consumption mode to the normal power consumption mode.
5. A PoE power management device, applied to an ethernet device, the device comprising:
an acquisition unit configured to acquire device information of a power receiving device and remaining power of a power supply device, wherein the device information includes a device type;
the switching unit is used for switching the powered device in a normal power consumption mode to a low power consumption mode according to a preset type sequence and the device type when detecting that the residual power of the power supply device is smaller than a first preset power; when detecting that the remaining power of the power supply device is greater than a second preset power, switching a powered device in a low power consumption mode to a normal power consumption mode according to a reverse order of a preset type order and the device type, wherein the second preset power is greater than the first preset power, the powered device is configured into at least two groups, and a memory of the ethernet device stores a corresponding relationship between the groups and a preset type order applied by the groups;
the acquiring unit is used for acquiring a preset type sequence configured for the group;
the switching unit is configured to switch the powered device in the normal power consumption mode to the low power consumption mode according to the preset type sequence corresponding to the group and the device type of the powered device included in the group.
6. The PoE power management device of claim 5,
the switching unit is further configured to switch the powered device in the low power consumption mode to the normal power consumption mode according to a reverse order of a preset type order corresponding to the group and a device type of the powered device included in the group.
7. The PoE power management device of claim 5, further comprising: a detection unit and a control unit;
the detection unit is used for detecting the message receiving and sending conditions of the powered device;
the switching unit is used for switching the powered device in the normal power consumption mode to the low power consumption mode when the idle time of the powered device in the normal power consumption state is overtime; when the residual power of the power supply equipment is greater than the rated power of the powered equipment needing to receive and transmit the data message, switching the powered equipment in the low power consumption mode to a normal power consumption mode for the powered equipment needing to receive and transmit the data message;
the control unit is configured to discard the data packet that needs to be received and transmitted when the remaining power of the power sourcing equipment is less than the rated power of the powered device that needs to receive and transmit the data packet.
8. PoE power management device according to any of claims 5-7, characterized in that it further comprises a receiving unit and a transmitting unit;
the receiving unit is configured to receive a notification message sent by a powered device and based on a link layer discovery protocol LLDP, where the notification message carries a device type;
the obtaining unit is configured to obtain a device type carried in the notification message;
the sending unit is configured to send a first switching message of an LLDP to a powered device in a normal power consumption mode, so as to switch the powered device in the normal power consumption mode to a low power consumption mode; and sending a second switching message of the LLDP to the powered device in the low power consumption mode to switch the powered device in the low power consumption mode to the normal power consumption mode.
9. A PoE power management device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: a PoE power management method as recited in any one of claims 1 to 4.
10. A machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: a PoE power management method as recited in any one of claims 1 to 4.
CN201711225456.8A 2017-11-29 2017-11-29 PoE power management method and device Active CN107994999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711225456.8A CN107994999B (en) 2017-11-29 2017-11-29 PoE power management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711225456.8A CN107994999B (en) 2017-11-29 2017-11-29 PoE power management method and device

Publications (2)

Publication Number Publication Date
CN107994999A CN107994999A (en) 2018-05-04
CN107994999B true CN107994999B (en) 2021-05-28

Family

ID=62034413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711225456.8A Active CN107994999B (en) 2017-11-29 2017-11-29 PoE power management method and device

Country Status (1)

Country Link
CN (1) CN107994999B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989057A (en) * 2018-08-02 2018-12-11 深圳市丰润达科技有限公司 A kind of AI intelligent power supply method of POE interchanger
CN109193653B (en) * 2018-10-31 2021-06-18 新华三技术有限公司 Power distribution method and device
CN110113174B (en) * 2019-03-28 2021-06-25 普联技术有限公司 Ethernet power supply equipment
CN113363986A (en) 2020-03-06 2021-09-07 瑞昱半导体股份有限公司 Power supply system for power over Ethernet and power supply method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014101110A1 (en) * 2012-12-28 2014-07-03 华为技术有限公司 Ethernet power supply method, apparatus, device and system
CN106209388A (en) * 2015-04-30 2016-12-07 华为技术有限公司 The power management method of a kind of POE, power supply unit and power receiving equipment
CN106444454A (en) * 2016-11-02 2017-02-22 珠海格力电器股份有限公司 Energy control method and control device for electricity consumption system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8205102B2 (en) * 2009-01-05 2012-06-19 Hewlett-Packard Development Company, L.P. Intelligent power management of an intermediate network device switching circuitry and PoE delivery

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014101110A1 (en) * 2012-12-28 2014-07-03 华为技术有限公司 Ethernet power supply method, apparatus, device and system
CN106209388A (en) * 2015-04-30 2016-12-07 华为技术有限公司 The power management method of a kind of POE, power supply unit and power receiving equipment
CN106444454A (en) * 2016-11-02 2017-02-22 珠海格力电器股份有限公司 Energy control method and control device for electricity consumption system

Also Published As

Publication number Publication date
CN107994999A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
CN107994999B (en) PoE power management method and device
US7886165B2 (en) Power management for Power-over-Ethernet-capable switch
EP1964309B1 (en) Providing detailed information on powered device in system for supplying power over communication link
US9173116B2 (en) Method, apparatus and system for controlling access points
JP5444906B2 (en) Plant monitoring system, plant monitoring device, terminal device
US8924746B2 (en) Apparatus and medium for associating device with socket
TW200929935A (en) System and method for power over ethernet provisioning for a computing device using a network profile
CN102984419A (en) Power-saving mode deactivation apparatus, relay device, and power-saving mode deactivation method
US8892910B2 (en) Method and system for providing dynamic power sharing to network devices
CN104429020A (en) Power over ethernet supervision
US20030033548A1 (en) Uninterruptible power supply management network system
CN101105709B (en) Transferring data in a portable electronic device
US9609590B2 (en) Eco-friendly power over ethernet
US9847886B2 (en) Sleeping link waking method and apparatus
CN101902341B (en) Method and device for supplying power for powered device
CN101871985B (en) Method and device for metering electric quantity of powered device in power over Ethernet system
US20120011384A1 (en) Network Apparatus Having Routing Function and Power Management Method Thereof
US9374238B2 (en) Multicast group transmission method and wireless network apparatus using the same
CN102098177A (en) Network management system and method for monitoring power supply thereof
US8050681B2 (en) System and method for controlling connections between a wireless router and unlicensed mobile access capable mobile phones
US10104609B2 (en) Switch, system for power management and method for power management
CN109287051A (en) Strong power controller and its strong power management method
JP2003209939A (en) Power supply controller provided with proxy response function and power supply control program
CN111061355B (en) Power supply data acquisition method and equipment
CN109698755B (en) Power supply control method, power supply device and power receiving device

Legal Events

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