[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107425986A - A kind of method and device of POE power protection - Google Patents

A kind of method and device of POE power protection Download PDF

Info

Publication number
CN107425986A
CN107425986A CN201710640569.8A CN201710640569A CN107425986A CN 107425986 A CN107425986 A CN 107425986A CN 201710640569 A CN201710640569 A CN 201710640569A CN 107425986 A CN107425986 A CN 107425986A
Authority
CN
China
Prior art keywords
power
equipment
power supply
pse
output power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710640569.8A
Other languages
Chinese (zh)
Inventor
莫剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201710640569.8A priority Critical patent/CN107425986A/en
Publication of CN107425986A publication Critical patent/CN107425986A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/10Current supply arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

The application provides a kind of method and device of POE power protection, and applied to PSE device, methods described includes:Periodically read the output power that the PSE chips are write in the register of the PSE device;Wherein, the output power is the power required for the PD equipment of each supply port of access;The output power for being then based on reading calculates the power supply general power of the PSE device, and determines whether the power supply general power is more than the maximum rated power of the PSE device;If the power supply general power is more than the maximum rated power, default power safeguard measure is performed for the PSE device.The application is effectively prevented from POE system and is in overload condition, protects the power of each PD equipment.

Description

A kind of method and device of POE power protection
Technical field
The application is related to field of computer technology, more particularly to a kind of method and device of POE power protection.
Background technology
POE (Power Over Ethernet, active Ethernet) refers to not change in existing Ethernet Wiring architecture In the case of, for some IP-based terminal devices (such as:IP telephone machine, web camera etc.) transmit the same of data-signal When, the technology of direct current supply is also provided for such terminal device.
One complete POE system includes PSE (Power Sourcing Equipment, end equipment of powering) equipment and PD (Powered Device, receiving end equipment) equipment two parts.The electric energy for the PD equipment docked with PSE device is all set by PSE Standby power supply provides, therefore, once the overall power requirement powered in whole network exceedes the peak power that PSE device can provide, Electricity shortage occurs in the terminal device of whole network.If being chronically at overload condition, terminal device may be caused frequently to weigh Open, or even burn terminal device.
The content of the invention
In view of this, the application provides a kind of method and device of POE power protection, for being set to each PD in POE system Standby power is protected.
Specifically, the application is achieved by the following technical solution:
A kind of method of POE power protection, applied to power supply end equipment PSE device, the PSE device includes being based on CPU The I2C buses that simulate of GPIO pins, wherein the I2C buses are connected with the PSE chips of the PSE device, the PSE is set It is standby to include multiple supply ports for being powered to receiving end PD equipment;Including:
Periodically read the output power that the PSE chips are write in the register of the PSE device;Wherein, the confession Electrical power is the power required for the PD equipment of each supply port of access;
The power supply general power of the PSE device is calculated based on the output power read, and determines the power supply general power Whether the maximum rated power of the PSE device is more than;
If the power supply general power is more than the maximum rated power, default power is performed for the PSE device Safeguard measure.
In the method for POE power protection, the power supply that the PSE device is calculated based on the output power read is total Power, including:
If in current period, there is the PD equipment newly accessed, then the PD accessed by recorded output power and newly The output power of equipment is added to obtain power supply general power;
If in current period, recorded output power is then added and supplied by the PD equipment that does not access newly Electric general power;
If in current period, the PD equipment for having upper electricity exits, then sets the PD of recorded other upper electricity Standby output power is added to obtain power supply general power.
In the method for POE power protection, if described in current period, there is the PD equipment newly accessed, then will Recorded output power is added to obtain power supply general power with the output power of the PD equipment newly accessed, including:
If in current period, the register is received in interrupt signal, reading caused by new PD equipment access The PSE chips are taken to write the output power of PD equipment new in the register;
The output power of pre-recorded output power, and new PD equipment is added, obtains the power supply general power;
The power safeguard measure that budget is performed for the PSE device, including:
New PD equipment is kept to be in power-down state.
In the method for POE power protection, methods described also includes:
It is new PD device powers if the power supply general power is not more than the maximum rated power.
In the method for POE power protection, if described in current period, the PD equipment for having upper electricity exits, Then the output power of the PD equipment of recorded other upper electricity is added to obtain power supply general power, including:
If in current period, receive register PD equipment electric on and exit caused interruption letter Number, then the output power of the PD equipment of recorded other upper electricity is added to obtain power supply general power.
In the method for POE power protection, methods described also includes:
Selection carries out electricity in the PD equipment of power-down state so that power supply general power after upper electricity still no more than it is described most High nominal powers.
In the method for POE power protection, the interrupt signal includes interrupt signal caused by hardware interrupts;Its In, the hardware interrupts are configured for highest priority in system kernel.
In the method for POE power protection, if in current period, the PD equipment that does not access newly;The pin Default power safeguard measure is performed to the PSE device, including:
Upper electric PD equipment carries out lower electricity for selection, until power supply general power is not more than the maximum rated power.
A kind of device of POE power protection, applied to power supply end equipment PSE device, the PSE device includes being based on CPU The I2C buses that simulate of GPIO pins, wherein the I2C buses are connected with the PSE chips of the PSE device, the PSE is set It is standby to include multiple supply ports for being powered to receiving end PD equipment;Including:
Reading unit, the power supply work(write for periodically reading the PSE chips in the register of the PSE device Rate;Wherein, the output power is the power required for the PD equipment of each supply port of access;
Computing unit, for calculating the power supply general power of the PSE device based on the output power read, and determine institute State the maximum rated power whether power supply general power is more than the PSE device;
Processing unit, if being more than the maximum rated power for the power supply general power, held for the PSE device The default power safeguard measure of row.
In the device of POE power protection, the computing unit, it is further used for:
If in current period, there is the PD equipment newly accessed, then the PD accessed by recorded output power and newly The output power of equipment is added to obtain power supply general power;
If in current period, recorded output power is then added and supplied by the PD equipment that does not access newly Electric general power;
If in current period, the PD equipment for having upper electricity exits, then sets the PD of recorded other upper electricity Standby output power is added to obtain power supply general power.
In the device of POE power protection, the computing unit, it is further used for:
If in current period, the register is received in interrupt signal, reading caused by new PD equipment access The PSE chips are taken to write the output power of PD equipment new in the register;
The output power of pre-recorded output power, and new PD equipment is added, obtains the power supply general power;
The processing unit, is further used for:
New PD equipment is kept to be in power-down state.
In the device of POE power protection, the processing unit, it is further used for:
It is new PD device powers if the power supply general power is not more than the maximum rated power.
In the device of POE power protection, the computing unit, it is further used for:
If in current period, receive register PD equipment electric on and exit caused interruption letter Number, then the output power of the PD equipment of recorded other upper electricity is added to obtain power supply general power.
In the device of POE power protection, the processing unit, it is further used for:
Selection carries out electricity in the PD equipment of power-down state so that power supply general power after upper electricity still no more than it is described most High nominal powers.
In the device of POE power protection, the interrupt signal includes interrupt signal caused by hardware interrupts;Its In, the hardware interrupts are configured for highest priority in system kernel.
In the device of POE power protection, if in current period, the PD equipment that does not access newly;
The processing unit, is further used for:
Upper electric PD equipment carries out lower electricity for selection, until power supply general power is not more than the maximum rated power.
In the embodiment of the present application, PSE device simulates I2C buses including the GPIO pins based on CPU, wherein described I2C buses are connected with the PSE chips of the PSE device, and the PSE device includes multiple confessions for being powered to PD equipment Electric port;The PSE device periodically reads the output power that the PSE chips are write in the register of the PSE device;Its In, the output power is the output power that the PSE device provides to the PD equipment for accessing each supply port;The PSE is set It is standby the power supply general power of the PSE device to be calculated based on the output power read, and determine that the power supply general power is The no maximum rated power more than the PSE device;If the power supply general power is more than the maximum rated power, for institute State PSE device and perform default power safeguard measure;
Because in the embodiment of the present application, the CPU of the PSE device simulates I2C buses and PSE chips by GPIO pins Connection, POE power can be more quickly managed, and when it is determined that power supply general power is more than maximum rated power, performed default Power safeguard measure, so that the power supply general power after processing is not more than the maximum rated power, and then it is effectively prevented from POE System is in overload condition, protects the power of each PD equipment.
Brief description of the drawings
Fig. 1 is a kind of Organization Chart of POE system of prior art;
Fig. 2 is a kind of flow chart of the method for POE power protection shown in the application;
Fig. 3 is a kind of embodiment block diagram of the device of POE power protection shown in the application;
Fig. 4 is a kind of hardware structure diagram of the device of POE power protection shown in the application.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make of the invention real Apply the above-mentioned purpose of example, feature and advantage can be more obvious understandable, below in conjunction with the accompanying drawings to prior art and the present invention Technical scheme in embodiment is described in further detail.
It is a kind of Organization Chart of POE system of prior art, as shown in figure 1, PSE device (POE interchangers) referring to Fig. 1 Except transmitting data-signal for PD equipment (IP phone, wireless aps, network shooting monitoring, network access, wireless Wi-fi etc.), also Power supply is provided for PD equipment.
Because the power supply of PD equipment all relies on PSE device, so when the general power powered in POE system is more than PSE During the rated power that equipment can be provided, PD equipment electricity shortages are may result in.If POE system is for a long time in overload shape State, then the PD equipment of electricity shortage can be caused frequently to restart, setting causes PD equipment to break down.
In view of this, in the embodiment of the present application, the output power of each PD equipment of access PSE device is periodically detected, And power supply general power is calculated, then compare power supply general power and maximum rated power;It is more than maximum rated work(in power supply general power In the case of rate, default power safeguard measure is performed for PSE device, avoids POE system from being in overload condition.
Referring to Fig. 2, for a kind of flow chart of the method for POE power protection shown in the application, methods described is applied to PSE Equipment, the PSE device include the I2C buses that the GPIO pins based on CPU simulate, wherein the I2C buses and the PSE The PSE chips connection of equipment, the PSE device include multiple supply ports for being powered to receiving end PD equipment;Institute The method of stating comprises the following steps:
Step 201:Periodically read the output power that the PSE chips are write in the register of the PSE device;Its In, the output power is the power required for the PD equipment of each supply port of access.
Step 202:The power supply general power of the PSE device is calculated based on the output power read, and determines the confession Whether electric general power is more than the maximum rated power of the PSE device.
Step 203:If the power supply general power is more than the maximum rated power, performed for the PSE device pre- If power safeguard measure.
Wherein, above-mentioned PSE device based on CPU GPIO (General Purpose Input Output, universal input/ Delivery outlet) pin simulates I2C (Inter-Integrated Circuit) bus, and the I2C buses and above-mentioned PSE device PSE chips be directly connected to so that CPU software directly controls I2C buses;It is total with common I2C compared to controller under normal circumstances For line connection PSE chips, interacting between CPU and PSE chips can be realized more quickly.
In addition, when PD equipment electric in new PD equipment access PSE device or exits POE system, PSE device is posted Storage can upload hardware interrupt, so that CPU can detect the power supply general power after POE system change in time.To protect Card CPU is received after hardware interrupt can be with the changed power situation of priority treatment POE system, in system kernel, can be with Highest priority is set for hardware interrupt so that the CPU of PSE device is when receiving the message of multiple business, preferentially Power supply general power after changing to POE system is handled.
In the embodiment of the present application, after PD equipment accesses PSE device by the port of PSE device, the POE of the machine can be reported Grade, the POE grades can characterize the power bracket of the PD equipment.Such as:POE grades can be divided into, 5 watts, 10 watts, 15 watts, 20 watts Deng.After the PSE chips of above-mentioned PSE device obtain the POE grades, the maximum output power of the PD equipment can be predicted, so as to right The power supply general power of POE system has preliminary judgement after PD equipment access.
After follow-up PD device powers, PSE chips can obtain the actual power of the PD equipment based on corresponding port, and more In the new extremely register of above-mentioned PSE device.Such as:PSE chips can be by corresponding to the output power and port-mark of each port Mapping relations are established, and are write in register.
Therefore, above-mentioned CPU is the current electric power thus supplied of detection POE system in time, can be based on the default cycle (such as: 200 milliseconds) read the output power that above-mentioned PSE chips are write in the register of above-mentioned PSE device.Wherein, output power is to connect Enter the power required for the PD equipment of each supply port.In actual applications, the work periodically read can be by software Disconnected, timer or the mode of process scheduling are realized.
In a kind of embodiment shown, above-mentioned CPU is after the completion of each read, it may be determined that the PD equipment of upper electricity Corresponding port is supply port, and establishes supply port set, to preserve the port-mark of above-mentioned port.Read next time When taking, above-mentioned CPU can be read in a register with the port-mark in the saved supply port set of direct basis The output power of the PD equipment of electricity.Accordingly, if above-mentioned CPU, which is any PD equipment, carries out lower electric treatment, can delete Port-mark corresponding to the PD equipment preserved, when reading next time, without reading the output power of the PD equipment of lower electricity.
By the measure, above-mentioned CPU when being periodically detected, can rapidly obtain the power supply work(of the PD equipment of upper electricity Rate.
In the embodiment of the present application, above-mentioned CPU can be based on after output power corresponding with each supply port is read The output power read calculates the power supply general power of above-mentioned PSE device, it is then determined that whether above-mentioned power supply general power is more than upper State the maximum rated power of PSE device.
In addition, in a kind of embodiment shown, above-mentioned CPU is reading output power corresponding with each supply port When, output power corresponding with each supply port can be recorded, after subsequently received interrupt signal, according to recorded Output power, handled accordingly more quickly.
Complete, can update having preserved with each supply port pair it is pointed out that above-mentioned CPU is read in every second periodicity The output power answered.
In the embodiment of the present application, above-mentioned CPU calculates the power supply total work of above-mentioned PSE device based on the output power read During rate, three kinds of situations can be divided into:
On the one hand, if in current period, the PD equipment that does not access newly then can be by recorded output power Addition obtains general power of powering.
On the other hand, if in current period, there is the PD equipment newly accessed, then can be by recorded output power It is added to obtain power supply general power with the output power of the PD equipment newly accessed.
Another further aspect, if in current period, the PD equipment for having upper electricity exits, then can will be recorded other The output power of the PD equipment of upper electricity is added to obtain power supply general power.
In the embodiment of the present application, if in current period, the PD equipment that does not access newly, and above-mentioned power supply general power More than above-mentioned maximum rated power, then above-mentioned CPU can be for the default power safeguard measure of above-mentioned PSE device execution.
Specifically, above-mentioned CPU can select the PD equipment for accessing each supply port to carry out lower electricity, until powering general power not More than above-mentioned maximum rated power.
Such as:The maximum rated power of PSE device is 90 watts, and the output power of each PD equipment is respectively 5 watts, 12 watts, 13 watts, 20 watts, 22 watts, 17 watts and 23 watts, power supply general power is 112 watts;Then the CPU of PSE device can be randomly chosen power supply Power is that 5 watts and 17 watts of PD equipment carries out lower electricity, and now, power supply general power is 90 watts, and POE system is in normal power supply shape State, be not in the problem of PD equipment is frequently restarted.
In a kind of embodiment shown, above-mentioned CPU can be based on the big of output power corresponding with each supply port It is small, lower electricity is carried out to the PD equipment for accessing each supply port successively, until power supply general power is not more than above-mentioned maximum rated power.
Such as:The maximum rated power of PSE device is 90 watts, and the output power of each PD equipment is respectively 5 watts, 12 watts, 13 watts, 20 watts, 22 watts, 17 watts and 23 watts, power supply general power is 112 watts;Then the CPU of PSE device can be based on output power Size, the PD equipment for selecting output power maximum first carry out lower electricity, whether then compare power supply general power more than maximum rated Power, if power supply general power still greater than maximum rated power, can with so that select second largest PD equipment of output power to carry out Lower electricity;In this example, output power is under 23 watts of PD equipment after electricity by CPU, and power supply general power is 89 watts, and POE system is in Normal power supply state.
By the measure in above-mentioned embodiment, in the case where occurring overloading, when CPU selections PD equipment carries out lower electric, The minimum number for the PD equipment chosen, reduces the influence to PD equipment.
In addition, above-mentioned CPU can also be by port shutdown POE functions corresponding to the PD equipment after lower electricity.Subsequently reopen After the POE functions of above-mentioned port, if PD equipment accesses, then above-mentioned register can upload interrupt signal to above-mentioned CPU.
In the embodiment of the present application, new PD equipment accesses PSE device by the port of PSE device or the PD of upper electricity is set For when exiting POE system, above-mentioned register can upload interrupt signal to above-mentioned CPU.
Above-mentioned CPU receives the interrupt signal, can travel through each port of above-mentioned PSE device, and judgement is that have new PD The PD equipment that equipment access still has upper electricity exits.
Specifically, when above-mentioned CPU travels through each port, the power supply state and access state of each port record are read;Wherein, Power supply state includes upper electric and lower electricity, and access state includes access and exited.Above-mentioned CPU can be based on the power supply state read Judge whether each port has the access of PD equipment, whether is PD device powers and whether has PD equipment to exit with access state.
If the power supply state of either port is upper electricity, access state is access, then can determine that there is PD equipment the port Access, and above-mentioned PSE device is just powered for the PD equipment.
If the power supply state of either port is upper electricity, access state can then determine PD equipment from the end to exit Mouth exits;Above-mentioned interrupt signal is exactly therefore triggering.
If the power supply state of either port is lower electricity, access state for access, then can determine new PD equipment from The port is accessed;Above-mentioned interrupt signal is exactly therefore triggering.
If the power supply state of either port is lower electricity, access state can then determine the port without PD equipment to exit Access, in idle state.
It should be noted that power supply state and access state can not be recorded by closing the port of POE states.
In the embodiment of the present application, if above-mentioned CPU is based on power supply state and access state determines that above-mentioned interrupt signal is New PD equipment accesses what is triggered during above-mentioned PSE device, then can determine in current period there is the PD equipment newly accessed, on Stating CPU can be added with the output power of the PD newly accessed equipment recorded output power to obtain power supply general power.
Specifically, above-mentioned CPU can according to corresponding to new PD equipment port-mark, read from above-mentioned register new The maximum output power of PD equipment.
Above-mentioned CPU, can be by pre-recorded with each supply port pair after the output power of new PD equipment is read The output power answered, and the output power of above-mentioned new PD equipment are added, and obtain general power of powering.The power supply general power characterizes Be for after above-mentioned new PD device powers, above-mentioned PSE device is the general power of all PD equipment power supply.
Above-mentioned CPU can determine that above-mentioned power supply is total by above-mentioned power supply general power compared with above-mentioned maximum rated power Whether power is more than above-mentioned maximum rated power.
On the one hand, if above-mentioned power supply general power is more than above-mentioned maximum rated power, can determine if to new PD Device power, then POE system overload occurs.Therefore, above-mentioned CPU can be directed to above-mentioned PSE device and perform default power guarantor Shield measure.Specifically, above-mentioned CPU can keep new PD equipment to be in power-down state, i.e., do not give above-mentioned new PD device powers.
On the other hand, if above-mentioned power supply general power is not more than above-mentioned maximum rated power, can determine if to new PD device powers, POE system is still in normal power supply state.Therefore, above-mentioned CPU can give above-mentioned new PD device powers.
In the embodiment of the present application, if above-mentioned CPU is based on power supply state and access state determines that above-mentioned interrupt signal is Trigger, then can determine in current period when the PD equipment of upper electricity exits, the PD equipment for having upper electricity exits, above-mentioned The output power of the PD equipment of recorded other upper electricity can be added to obtain power supply general power by CPU.
In addition, above-mentioned CPU can the port-mark based on supply port corresponding to the PD equipment, delete preserved with this Output power corresponding to port-mark.
In a kind of embodiment shown, above-mentioned CPU can subtract above-mentioned power supply general power with maximum rated power, obtain Obtain output power surplus.
Above-mentioned CPU can be based on the output power surplus, and from the port for having had PD equipment to access, selection is in lower electricity The PD equipment of state carries out electricity;The output power for the PD equipment chosen and the output power surplus must be not more than.
Because above-mentioned CPU is after by electricity under PD equipment, the POE functions of port corresponding to above-mentioned PD equipment can be closed, are being selected When selecting the PD equipment in power-down state, the POE functions of above-mentioned port can be restarted first.If still there is PD equipment above-mentioned port Access, then register can upload interrupt signal to above-mentioned CPU.After above-mentioned CPU receives interrupt signal, each port is traveled through, is read The power supply state and access state of each port record are taken, then selects power supply state as end that lower electricity and access state are access Mouth, the maximum output power of each PD equipment in power-down state is read from above-mentioned register based on port-mark.
Such as:The maximum rated power of PSE device be 90 watts, PSE device has 10 ports, wherein, port 1, port 2, Port 3, port 4 and PD equipment corresponding to port 5 are in power-up state, the output power of each PD equipment is respectively 7 watts, 20 watts, 22 watts, 17 watts and 25 watts.When the PD equipment that output power is 17 watts exits, the CPU of PSE device, which is opened, is turned off POE functions The POE functions of port.CPU receives interrupt signal, then travels through each port, determines that port 7, port 8 and port 9 are in down The PD equipment access of electricity condition.Port-marks of the above-mentioned CPU based on above-mentioned port is read from register is respectively in power-down state The maximum output power of PD equipment be respectively 16 watts, 8 watts and 9 watts.Above-mentioned CPU can be the PD that maximum output power is 16 watts Device power, or maximum output power is 8 watts and 9 watts of PD device powers.
By above-mentioned measure, when, upper electric PD equipment exits POE system, and above-mentioned CPU can obtain output power in time Surplus, and choose the PD equipment in power-down state to carry out upper electricity based on the output power surplus so that PSE device is in non-overloading In the case of, make full use of maximum rated power to be powered for PD equipment as far as possible.
In summary, in the embodiment of the present application, PSE device simulates I2C buses including the GPIO pins based on CPU, The PSE chips connection of wherein above-mentioned I2C buses and PSE device so that CPU can be interacted quickly with PSE chips, and quickly Ground is scanned to each port of PSE device, so as in time POE system power supply general power be more than PSE device maximum POE power safeguard measures are performed during rated power;
The CPU of PSE device can periodically read the power supply that the PSE chips are write in the register of the PSE device Power;Wherein, the output power is the power required for the PD equipment of each supply port of access;CPU can be based on reading Output power calculate power supply general power, and determine it is described power supply general power whether be more than the PSE device maximum rated work( Rate;If the power supply general power is more than the maximum rated power, performs default power protection for above-mentioned PSE device and arrange Apply;
Because above-mentioned CPU can be periodically detected the power supply general power of POE system, and it is more than maximum in power supply general power When determining power, by electricity under the PD equipment of upper electricity, avoid POE system and be in overload condition;In addition, during above-mentioned CPU is received After break signal, it may be determined that it is that new PD equipment accesses or the PD equipment of upper electricity exits, if new PD equipment access, Then need to determine to avoid because newly just to the PD device powers when power supply general power after PD equipment access be not more than rating data PD equipment access and cause POE system to overload;
If the PD equipment of upper electricity exits, then the PD device powers in power-down state can be selected so that PSE is set It is standby that maximum rated power can be made full use of to be powered for PD equipment in the case of non-overloading.
Corresponding with the embodiment of the method for foregoing POE power protection, present invention also provides the device of POE power protection Embodiment.
Referring to Fig. 3, for a kind of embodiment block diagram of the device of POE power protection shown in the application:
As shown in figure 3, the device 30 of POE power protection includes:
Reading unit 310, the power supply write for periodically reading the PSE chips in the register of the PSE device Power;Wherein, the output power is the power required for the PD equipment of each supply port of access.
Computing unit 320, for calculating the power supply general power of the PSE device based on the output power read, and really Whether the fixed power supply general power is more than the maximum rated power of the PSE device.
Processing unit 330, if being more than the maximum rated power for the power supply general power, set for the PSE It is standby to perform default power safeguard measure.
In this example, institute's computing unit 320, is further used for:
If in current period, there is the PD equipment newly accessed, then the PD accessed by recorded output power and newly The output power of equipment is added to obtain power supply general power;
If in current period, recorded output power is then added and supplied by the PD equipment that does not access newly Electric general power;
If in current period, the PD equipment for having upper electricity exits, then sets the PD of recorded other upper electricity Standby output power is added to obtain power supply general power.
In this example, the computing unit 320, is further used for:
If in current period, the register is received in interrupt signal, reading caused by new PD equipment access The PSE chips are taken to write the output power of PD equipment new in the register;
The output power of pre-recorded output power, and new PD equipment is added, obtains the power supply general power;
The processing unit 330, is further used for:
New PD equipment is kept to be in power-down state.
In this example, the processing unit 330, is further used for:
It is new PD device powers if the power supply general power is not more than the maximum rated power.
In this example, the computing unit 320, is further used for:
If in current period, receive register PD equipment electric on and exit caused interruption letter Number, then the output power of the PD equipment of recorded other upper electricity is added to obtain power supply general power.
In this example, the processing unit 330, is further used for:
Selection carries out electricity in the PD equipment of power-down state so that power supply general power after upper electricity still no more than it is described most High nominal powers.
In this example, the interrupt signal includes interrupt signal caused by hardware interrupts;Wherein, the hardware interrupts are being Highest priority is configured in system kernel.
In this example, if in current period, the PD equipment that does not access newly;
The processing unit 330, is further used for:
Upper electric PD equipment carries out lower electricity for selection, until power supply general power is not more than the maximum rated power.
The embodiment of the device of the application POE power protection can be applied in PSE device.Device embodiment can pass through Software is realized, can also be realized by way of hardware or software and hardware combining.Exemplified by implemented in software, anticipated as a logic Device in justice, it is by corresponding computer program instructions in nonvolatile memory by the processor of PSE device where it Read what operation in internal memory was formed.For hardware view, as shown in figure 4, the device place for the protection of the application POE power A kind of hardware structure diagram of PSE device, except the processor shown in Fig. 4, internal memory, network interface and nonvolatile memory Outside, the actual functional capability for the device that the PSE device in embodiment where device is protected generally according to the POE power, it can also wrap Other hardware are included, this is repeated no more.
The function of unit and the implementation process of effect specifically refer to and step are corresponded in the above method in said apparatus Implementation process, it will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Need to select some or all of module therein to realize the purpose of application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, not limiting the application, all essences in the application God any modification, equivalent substitution and improvements done etc., should be included within the scope of the application protection with principle.

Claims (16)

1. a kind of method of POE power protection, applied to power supply end equipment PSE device, the PSE device is included based on CPU's The I2C buses that GPIO pins simulate, wherein the I2C buses are connected with the PSE chips of the PSE device, the PSE device Including multiple supply ports for being powered to receiving end PD equipment;It is characterised in that it includes:
Periodically read the output power that the PSE chips are write in the register of the PSE device;Wherein, the power supply work( Rate is the power required for the PD equipment of each supply port of access;
The power supply general power of the PSE device is calculated based on the output power read, and whether determines the power supply general power More than the maximum rated power of the PSE device;
If the power supply general power is more than the maximum rated power, performing default power for the PSE device protects Measure.
2. according to the method for claim 1, it is characterised in that the PSE device is calculated based on the output power read Power supply general power, including:
If in current period, there is the PD equipment newly accessed, then the PD equipment accessed by recorded output power and newly Output power be added to obtain power supply general power;
If in current period, the PD equipment that does not access newly, then recorded output power is added to obtain power supply total Power;
If in current period, the PD equipment for having upper electricity exits, then by the PD equipment of recorded other upper electricity Output power is added to obtain power supply general power.
3. according to the method for claim 2, it is characterised in that if described in current period, there is the PD newly accessed to set It is standby, then recorded output power is added with the output power of the PD equipment newly accessed to obtain power supply general power, including:
If in current period, the register is received in interrupt signal, reading institute caused by new PD equipment access State the output power that PSE chips write PD equipment new in the register;
The output power of pre-recorded output power, and new PD equipment is added, obtains the power supply general power;
The power safeguard measure that budget is performed for the PSE device, including:
New PD equipment is kept to be in power-down state.
4. according to the method for claim 3, it is characterised in that methods described also includes:
It is new PD device powers if the power supply general power is not more than the maximum rated power.
5. according to the method for claim 2, it is characterised in that if described in current period, the PD for having upper electricity is set It is standby to exit, then the output power of the PD equipment of recorded other upper electricity is added to obtain power supply general power, including:
If in current period, receive register PD equipment electric on and exit caused interrupt signal, then The output power of the PD equipment of recorded other upper electricity is added to obtain power supply general power.
6. according to the method for claim 5, it is characterised in that methods described also includes:
PD equipment of the selection in power-down state carries out electricity so that the power supply general power after upper electricity is still not more than the maximum Determine power.
7. the method according to claim 3 or 5, it is characterised in that during the interrupt signal is included caused by hardware interrupts Break signal;Wherein, the hardware interrupts are configured for highest priority in system kernel.
8. according to the method for claim 2, it is characterised in that if in current period, the PD equipment that does not access newly; It is described to perform default power safeguard measure for the PSE device, including:
Upper electric PD equipment carries out lower electricity for selection, until power supply general power is not more than the maximum rated power.
9. a kind of device of POE power protection, applied to power supply end equipment PSE device, the PSE device is included based on CPU's The I2C buses that GPIO pins simulate, wherein the I2C buses are connected with the PSE chips of the PSE device, the PSE device Including multiple supply ports for being powered to receiving end PD equipment;It is characterised in that it includes:
Reading unit, the output power write for periodically reading the PSE chips in the register of the PSE device;Its In, the output power is the power required for the PD equipment of each supply port of access;
Computing unit, for calculating the power supply general power of the PSE device based on the output power read, and determine the confession Whether electric general power is more than the maximum rated power of the PSE device;
Processing unit, if being more than the maximum rated power for the power supply general power, performed for the PSE device pre- If power safeguard measure.
10. device according to claim 9, it is characterised in that the computing unit, be further used for:
If in current period, there is the PD equipment newly accessed, then the PD equipment accessed by recorded output power and newly Output power be added to obtain power supply general power;
If in current period, the PD equipment that does not access newly, then recorded output power is added to obtain power supply total Power;
If in current period, the PD equipment for having upper electricity exits, then by the PD equipment of recorded other upper electricity Output power is added to obtain power supply general power.
11. device according to claim 10, it is characterised in that the computing unit, be further used for:
If in current period, the register is received in interrupt signal, reading institute caused by new PD equipment access State the output power that PSE chips write PD equipment new in the register;
The output power of pre-recorded output power, and new PD equipment is added, obtains the power supply general power;
The processing unit, is further used for:
New PD equipment is kept to be in power-down state.
12. device according to claim 11, it is characterised in that the processing unit, be further used for:
It is new PD device powers if the power supply general power is not more than the maximum rated power.
13. device according to claim 10, it is characterised in that the computing unit, be further used for:
If in current period, receive register PD equipment electric on and exit caused interrupt signal, then The output power of the PD equipment of recorded other upper electricity is added to obtain power supply general power.
14. device according to claim 13, it is characterised in that the processing unit, be further used for:
PD equipment of the selection in power-down state carries out electricity so that the power supply general power after upper electricity is still not more than the maximum Determine power.
15. the device according to claim 11 or 13, it is characterised in that the interrupt signal is included caused by hardware interrupts Interrupt signal;Wherein, the hardware interrupts are configured for highest priority in system kernel.
16. device according to claim 10, it is characterised in that if in current period, the PD not accessed newly is set It is standby;
The processing unit, is further used for:
Upper electric PD equipment carries out lower electricity for selection, until power supply general power is not more than the maximum rated power.
CN201710640569.8A 2017-07-31 2017-07-31 A kind of method and device of POE power protection Pending CN107425986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710640569.8A CN107425986A (en) 2017-07-31 2017-07-31 A kind of method and device of POE power protection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710640569.8A CN107425986A (en) 2017-07-31 2017-07-31 A kind of method and device of POE power protection

Publications (1)

Publication Number Publication Date
CN107425986A true CN107425986A (en) 2017-12-01

Family

ID=60431584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710640569.8A Pending CN107425986A (en) 2017-07-31 2017-07-31 A kind of method and device of POE power protection

Country Status (1)

Country Link
CN (1) CN107425986A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110518582A (en) * 2019-08-20 2019-11-29 普联技术有限公司 Power supply system and its control method
CN110571783A (en) * 2019-08-20 2019-12-13 普联技术有限公司 Power receiving apparatus, control method thereof, and power receiving system
CN111817863A (en) * 2020-06-19 2020-10-23 新华三信息安全技术有限公司 Power management method and equipment
CN113363986A (en) * 2020-03-06 2021-09-07 瑞昱半导体股份有限公司 Power supply system for power over Ethernet and power supply method thereof
CN115396243A (en) * 2022-10-27 2022-11-25 武汉思创易控科技有限公司 PoE power supply control method, storage medium and terminal
CN115442165A (en) * 2021-06-04 2022-12-06 厦门文子数饭科技有限公司 Ethernet power supply architecture and power distribution method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820348A (en) * 2010-03-09 2010-09-01 武汉烽火网络有限责任公司 Method and device for carrying out overload protection on equipment in POE system
CN103944739A (en) * 2014-03-26 2014-07-23 深圳市迈腾电子有限公司 Intelligent POE power source supplying system and efficient POE power source managing method thereof
CN105323076A (en) * 2014-06-27 2016-02-10 中兴通讯股份有限公司 Method for supplying power to power device (PD) through PSE (power supply equipment), and Ethernet PSE
CN105812147A (en) * 2016-04-28 2016-07-27 博为科技有限公司 POE (Power Over Ethernet) power supply control method for communication equipment
CN106341237A (en) * 2015-07-06 2017-01-18 北京东土科技股份有限公司 POE (Power Over Ethernet) system based PSE (Power Sourcing Equipment) power supply method and device
EP3182641A1 (en) * 2015-12-17 2017-06-21 Microsemi P.O.E. Ltd. Remote powering system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820348A (en) * 2010-03-09 2010-09-01 武汉烽火网络有限责任公司 Method and device for carrying out overload protection on equipment in POE system
CN103944739A (en) * 2014-03-26 2014-07-23 深圳市迈腾电子有限公司 Intelligent POE power source supplying system and efficient POE power source managing method thereof
CN105323076A (en) * 2014-06-27 2016-02-10 中兴通讯股份有限公司 Method for supplying power to power device (PD) through PSE (power supply equipment), and Ethernet PSE
CN106341237A (en) * 2015-07-06 2017-01-18 北京东土科技股份有限公司 POE (Power Over Ethernet) system based PSE (Power Sourcing Equipment) power supply method and device
EP3182641A1 (en) * 2015-12-17 2017-06-21 Microsemi P.O.E. Ltd. Remote powering system and method
CN105812147A (en) * 2016-04-28 2016-07-27 博为科技有限公司 POE (Power Over Ethernet) power supply control method for communication equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
杨博等: "电信级以太网交换机的供电机制及实现 ", 《计算机与现代化》 *
杨博等: "电信级以太网交换机的供电机制及实现", 《计算机与现代化》 *
秦晓红等: "《微型计算机原理及应用》", 31 October 2014 *
陈泰红等: "《手把手教你学DSP 基于TMS320C55x 第2版》", 28 February 2016 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110518582A (en) * 2019-08-20 2019-11-29 普联技术有限公司 Power supply system and its control method
CN110571783A (en) * 2019-08-20 2019-12-13 普联技术有限公司 Power receiving apparatus, control method thereof, and power receiving system
CN110518582B (en) * 2019-08-20 2021-06-04 普联技术有限公司 Power supply system and control method thereof
CN110571783B (en) * 2019-08-20 2021-06-04 普联技术有限公司 Power receiving apparatus, control method thereof, and power receiving system
CN113363986A (en) * 2020-03-06 2021-09-07 瑞昱半导体股份有限公司 Power supply system for power over Ethernet and power supply method thereof
CN113363986B (en) * 2020-03-06 2024-09-03 瑞昱半导体股份有限公司 Power supply system for power over Ethernet and power supply method thereof
CN111817863A (en) * 2020-06-19 2020-10-23 新华三信息安全技术有限公司 Power management method and equipment
CN115442165A (en) * 2021-06-04 2022-12-06 厦门文子数饭科技有限公司 Ethernet power supply architecture and power distribution method thereof
CN115442165B (en) * 2021-06-04 2024-01-23 厦门文子数饭科技有限公司 Power over Ethernet architecture and power distribution method thereof
CN115396243A (en) * 2022-10-27 2022-11-25 武汉思创易控科技有限公司 PoE power supply control method, storage medium and terminal

Similar Documents

Publication Publication Date Title
CN107425986A (en) A kind of method and device of POE power protection
JP6379162B2 (en) PoE-based power supply method and PSE
CA2615570C (en) Apparatus and methods for managing power distribution over ethernet
JP7487166B2 (en) Adapter test apparatus, method and computer storage medium
CN102750248B (en) A kind of USB device Working mode switching method and USB device
US10042583B2 (en) Device management method, device, and device management controller
US9645954B2 (en) Embedded microcontroller and buses
US20150082063A1 (en) Baseboard management controller state transitions
CN105811506B (en) Method for charging electronic device and electronic device
CN104137473B (en) POE method, device, equipment and system
WO2016177214A1 (en) Power consumption control method and device, and mobile terminal
CN110166994B (en) Data time-sharing transmission interoperability method, system, mobile terminal and storage medium
CN104954145A (en) Method for power over Ethernet, power sourcing equipment and system for power over Ethernet
CN107332208A (en) A kind of protection circuit, mainboard guard method and terminal
US20130166896A1 (en) Management system for network card
CN109862583A (en) A kind of method and device reporting exception information
JP7191083B2 (en) Charging device test board, test system and test method
CN104469970A (en) Method and device for reconnecting data network
CN110837456A (en) Control method and device and electronic equipment
CN109412819A (en) Method and device for warning device power down
CN102938699B (en) Balanced power supply method and device
CN117331423A (en) Power supply method and device of PCIE equipment, storage medium and electronic device
CN115543062B (en) Server interrupt operation execution method and device
WO2014089984A1 (en) Terminal and method for implementing power adaptation of same
JP6537085B2 (en) Self-loop detection method and apparatus for charging device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171201

RJ01 Rejection of invention patent application after publication