CN101871985B - Method and device for metering electric quantity of powered device in power over Ethernet system - Google Patents

Method and device for metering electric quantity of powered device in power over Ethernet system Download PDF

Info

Publication number
CN101871985B
CN101871985B CN2010102246722A CN201010224672A CN101871985B CN 101871985 B CN101871985 B CN 101871985B CN 2010102246722 A CN2010102246722 A CN 2010102246722A CN 201010224672 A CN201010224672 A CN 201010224672A CN 101871985 B CN101871985 B CN 101871985B
Authority
CN
China
Prior art keywords
electric weight
storage space
message
obtains
receiving equipment
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
CN2010102246722A
Other languages
Chinese (zh)
Other versions
CN101871985A (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.)
New 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 CN2010102246722A priority Critical patent/CN101871985B/en
Publication of CN101871985A publication Critical patent/CN101871985A/en
Application granted granted Critical
Publication of CN101871985B publication Critical patent/CN101871985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a method and a device for metering electric quantity of a powered device (PD) in a power over Ethernet (POE) system. A packet switching equipment (PSE) controller periodically meters the electric quantity transmitted from a PSE power supply port to the powered equipment and sends the electric quantity metered in the current period and the electric quantity metered in a plurality of preset continuous periods before the current period to a central processing unit (CPU) through electric quantity messages; when acquiring N previously lost electric quantity messages, the CPU acquires the electric quantity metered in the current period and the electric quantity respectively metered in N continuous periods before the current period in the electric quantity messages and accumulates the acquired electric quantity with the stored electric quantity to acquire the power consumption of the PD, so that the metering of the power consumption of the PD in the POE system is realized.

Description

In the POE system power receiving equipment carried out the method and apparatus of electric quantity metering
Technical field
The present invention relates to the communications field, relate in particular in a kind of POE system method and apparatus that power receiving equipment is carried out electric quantity metering.
Background technology
POE (Power Over Ethernet; Pass through POE) refer to through 10base-T (Baseband; Twisted-pair feeder to), the power supply of 100BASE-TX, 1000BASE-T ethernet network; Promptly realize the power supply to the network equipment through netting twine, this power supply mode has realized centralized power power supply and easy to use, and the network equipment does not need external power supply.This technology is widely used at present, can be used for the power supply plan of IP phone, wireless aps (Access Point, access point), portable equipment charger, the POS, camera, data acquisition.
Current a lot of network equipment, POE function that for example switch is all integrated is given PD (Powered Device, power receiving equipment) purpose of power supply to reach through Ethernet.Usually the POE function specifically realizes that by the POE veneer cpu controller on the POE veneer generally all is buckled in or is inserted on the master communication circuit plate.CPU on cpu controller on the POE veneer and the master communication circuit plate communicates through standard serial port.
The POE system realizes according to international standard IEEE802.3af (low-power), IEEE802.3at (middle power) usually; Part manufacturer is by the PSE (Power-SourcingEquipment of the privately owned standard design that defines voluntarily; Power-supply unit) or PD equipment, be called non-standard POE equipment.
POE system works flow process of the prior art mainly comprises:
PD finds: PSE judges whether to be connected with PD;
The PD classification: when being connected with PD, PSE judges that the PD that connects is I class PD, or II class PD (IEEE802.3AT definition); If I class PD needs also further to judge that I class PD is which subclass in 0,1,2 and 3 subclasses (IEEE802.3AF definition);
Supply power to PD: PSE detect the PD of the above-mentioned type or the non-standard PD that supports after, supply power to PD;
Power supply management: comprise that maximum output power restriction, short circuit, mistake exceed under-voltage protection etc.;
Open circuit detects: PSE detects PD and leaves, and power supply state is switched back PD device discovery state.
During existing P OE system realizes, fairly perfect usually aspect function and security monitoring realization.The POE system is as an energy supplyystem, in new standard, and single port function even can reach 60W (4 pairs of lines).But, there is not the energy measurement function in the existing P OE system, can't realize metering to PD power consumption in the POE system.
Summary of the invention
The invention provides in a kind of POE system method and apparatus that power receiving equipment is carried out electric quantity metering, realized the metering of PD power consumption in the POE system.
The invention provides in a kind of POE system method of power receiving equipment being carried out electric quantity metering, this method is applied to comprise the POE system of power-supply unit PSE controller, PSE power supply port, power receiving equipment and CPU element, may further comprise the steps:
Said PSE controller cycle metering is through the electric weight of PSE power supply port to the power receiving equipment transmission; And report electric weight message to said CPU element; Carry the port numbers of PSE power supply port, the electric weight that the current period metering obtains in the said electric weight message, preset several consecutive periods before the current period measure electric weight and the message index that obtains respectively;
The message index that message index of carrying according to the current electric weight message that receives when said CPU element and the preceding electric weight message that once receives are carried is judged electric weight message when discontinuous, and said CPU element is confirmed the number N of losing of electric weight message;
Said CPU element is in the current electric weight message that receives; Obtain electric weight that current period metering obtains and N consecutive periods before the current period and measure the electric weight that obtains respectively; The electric weight that gets access to is added up with the corresponding electric weight of having stored of said port numbers, obtain the power consumption of power receiving equipment.
Also comprise: said CPU element is judged electric weight message consecutive hours, obtains the electric weight that said current period metering obtains, and the electric weight that gets access to is added up with the corresponding electric weight of having stored of said port numbers, obtains the power consumption of power receiving equipment.
Said method also comprises:
The power consumption that said CPU element obtains power receiving equipment according to adding up upgrades the corresponding electric weight of having stored of said port numbers.
The electric weight that gets access to is added up with the corresponding electric weight of having stored of said port numbers, and the power consumption that obtains power receiving equipment is specially:
Said CPU element reads main with the corresponding electric weight of storing in storage space and the slack storage space of said port numbers respectively; And confirming said mainly with the corresponding electric weight of the said port numbers of storage space and the storage of slack storage space all effectively the time, the electric weight that gets access to added up with the corresponding electric weight of port numbers described in the storage space with said master obtains the power consumption of power receiving equipment; Perhaps
Said CPU element reads main with the corresponding electric weight of storing in storage space and the slack storage space of said port numbers respectively; And confirming that said master is with one of them of the corresponding electric weight of the said port numbers of storage space or the storage of said slack storage space when effective; Said master is synchronized to another storage space with the effective electric weight in storage space or slack storage space, again the electric weight that gets access to is obtained the power consumption of power receiving equipment with said main adding up with the corresponding electric weight of port numbers described in the storage space.
The power consumption that said CPU element obtains power receiving equipment according to adding up upgrades the corresponding electric weight of having stored of said port numbers, is specially: the power consumption of the power receiving equipment that said CPU element obtains according to adding up upgrades said main with storage space and the corresponding electric weight of said slack storage space middle-end slogan successively.
Also comprise: the number that all consecutive periods before the current period measure the electric weight that obtains respectively is less than said present count, then in said electric weight message, carries electric weight that the current period metering obtains and all consecutive periods before the current period and measures the electric weight that obtains respectively.
The invention provides in a kind of POE system device that power receiving equipment is carried out electric quantity metering; This POE system comprises PSE controller, PSE supply power port, CPU element and power receiving equipment; Said device is arranged at said PSE controller, and said device comprises:
Transport module is used for transmitting electric weight through PSE power supply port to power receiving equipment;
Metering module is connected with said transport module, is used for the cycle to measure said transport module through the electric weight of PSE power supply port to the power receiving equipment transmission;
Reporting module; Be connected with said metering module; Be used for reporting electric weight message to said CPU element; Carry the port numbers of PSE power supply port, the electric weight that the current period metering obtains in the said electric weight message, preset several consecutive periods before the current period measure electric weight and the message index that obtains respectively, are obtained the power consumption of power receiving equipment according to said electric weight message by said CPU element.
Said reporting module also is used for:
The number that all consecutive periods before the current period measure the electric weight that obtains respectively is less than said present count, then in said electric weight message, carries electric weight that the current period metering obtains and all consecutive periods before the current period and measures the electric weight that obtains respectively.
The invention provides in a kind of POE system device that power receiving equipment is carried out electric quantity metering; This POE system comprises PSE controller, PSE supply power port, CPU element and power receiving equipment; Said device is arranged at said CPU element, and said device comprises:
Receiver module; Be used to receive the electric weight message that the PSE controller sends; Wherein, this electric weight message is carried the port numbers of PSE power supply port, electric weight, current period preset several consecutive periods before that the current period metering obtains measure electric weight and the message index that obtains respectively;
Judge module is connected with said receiver module, and the message index that message index that is used for carrying according to the current electric weight message that receives of said receiver module and the preceding electric weight message that once receives are carried judges whether electric weight message is continuous;
Acquisition module; Be connected with receiver module with said judge module; Be used for when the judged result of said judge module for not the time; Confirm the number N of losing of electric weight message, and in the current electric weight message that receives, obtain electric weight that the current period metering obtains and N consecutive periods before the current period and measure the electric weight that obtains respectively;
Memory module is used for the electric weight of storage port correspondence;
Update module is connected with said acquisition module, is used for the electric weight that said acquisition module is got access to and adds up with the corresponding electric weight of having stored of said port numbers, obtains the power consumption of power receiving equipment.
Said acquisition module also is used in the judged result of said judge module obtaining the electric weight that said current period metering obtains when being.
The power consumption that said update module also is used for obtaining power receiving equipment according to adding up upgrades the corresponding electric weight of said port numbers that said memory module is stored.
Said memory module comprises main with storage space and slack storage space, wherein, and said main electric weight with storage space and said slack storage space difference storage port correspondence;
Said update module; Be used for reading respectively the main corresponding electric weight of storing with storage space and slack storage space of said port numbers; And confirming said mainly with the corresponding electric weight of the said port numbers of storage space and the storage of slack storage space all effectively the time, the electric weight that gets access to added up with the corresponding electric weight of port numbers described in the storage space with said master obtains the power consumption of power receiving equipment; Perhaps confirming that said master is with one of them of the corresponding electric weight of the said port numbers of storage space or the storage of said slack storage space when effective; Said master is synchronized to another storage space with the effective electric weight in storage space or slack storage space, again the electric weight that gets access to is obtained the power consumption of power receiving equipment with said main adding up with the corresponding electric weight of port numbers described in the storage space.
Said update module also is used for upgrading the said main corresponding electric weight of storing with storage space and said slack storage space of port numbers successively according to the power consumption of the power receiving equipment that obtains of adding up.
Compared with prior art, the present invention has the following advantages at least:
Among the present invention; The metering of PSE controller cycle is through the electric weight of PSE power supply port to the power receiving equipment transmission; Electric weight, current period preset several consecutive periods before that the current period metering is obtained measure the electric weight that obtains respectively and send to CPU element through electric weight message; Before CPU element is known during the number N of electric weight information drop-out, CPU element obtains electric weight that the current period metering obtains in electric weight message and N consecutive periods before the current period measures the electric weight that obtains respectively, and electric weight that obtains and the electric weight stored are added up; Obtain the power consumption of power receiving equipment, thereby realized the metering of PD power consumption in the POE system.
Description of drawings
Fig. 1 is the structural representation of POE system among the present invention;
Fig. 2 is the schematic flow sheet that in the POE system power receiving equipment is carried out the method for electric quantity metering among the present invention;
Fig. 3 is the structural representation that in the POE provided by the invention system power receiving equipment is carried out the device of electric quantity metering;
Fig. 4 is the structural representation that in another POE system provided by the invention power receiving equipment is carried out the device of electric quantity metering.
Embodiment
In order more clearly to introduce the method for electric quantity metering in the POE provided by the invention system, at first introduce electric power numeral electric degree measurement technology of the prior art, this technology generally includes following function:
1) current sample: the series connection of high precision constant-resistance small resistor is inserted current supply circuit, extract small resistor voltage value at interval, be converted into AC current value and phase place with 1ms;
2) voltage sample: the big resistance parallel connection of high precision constant-resistance is inserted current supply circuit, extract big resistance voltage value at interval, be converted into alternating current voltage value and phase place with 1ms;
3) active power Factor Calculation: the cosine of alternating voltage and current and phase difference;
4) electric quantity acquisition calculates: powering quantity=electric current * voltage * time * active power factor.
Introduce in the POE provided by the invention system method of power receiving equipment being carried out electric quantity metering below; This method is applied to POE system as shown in Figure 1; This POE system comprises CPU element, PSE Controller (controller) and PSE power supply port; This POE system also comprises the PD that receives electric weight through PSE power supply port, and as shown in Figure 2, this method may further comprise the steps:
Step 201, the PSE Controller cycle measures through the electric weight of PSE power supply port to the PD transmission.
PSE Controller carries out the collection of real-time voltage and electric current, obtains through the electric weight of PSE power supply port to the PD transmission.Concrete, 48 volts of direct currents are supplied power to PD through each PSEPort (power supply port) through PSE Controller in the POE system, through electric current and voltage sensor, carry out the collection of real-time voltage and electric current at PSE Controller.Frequency acquisition can be adjusted, and frequency acquisition is high more, and precision is high more, and the electric weight number of times of promptly gathering in the unit interval is many more, but storing data volume one regularly, only can store the electric quantity data in the short period; On the contrary, frequency acquisition is low more, and precision is poor more, but the electric quantity data time corresponding Duan Yuechang of record; Preferably, this gathers every 10ms once.
Gathering a powering quantity with every 10ms is example, and the electric weight that PSE Controller collects each time is specially: electric weight=real-time voltage * real-time current * 10ms* active power factor.
PSE Controller is provided with the cycle of electric quantity metering, the electric weight that transmits to power receiving equipment in the acquisition cycle.For example, be one-period with 10S, PSE Controller adds up to the electric weight that every 10ms gathers, and with the electric weight of accumulation result as the one-period correspondence.After one-period is accomplished, the electric weight to the power receiving equipment transmission in the next 10S cycle of restarting to add up.Certainly, cycle length can be provided with according to actual needs flexibly, 5S or 20S etc. for example can also be set be one-period.Need to prove, store corresponding electric weight of a plurality of cycles in the PSEController simultaneously, when for example current period was the 6th cycle, can store the electric weight that the 6th cycle, the 5th cycle, the 4th cycle measure respectively in the PSEController.
Step 202; PSE Controller sends electric weight message to CPU element, port numbers, the current period that carries PSE power supply port in this electric weight message measures the electric weight that obtains, preset several consecutive periods before the current period measure electric weight and the message index that obtains respectively.
Metering cycle of every completion, PSE Controller will measure the result and send to CPU element through electric weight message.With this metering cycle is that 10S is an example; PSE Controller reports continuous data through electric weight message to CPU element; The continuous data content that reports comprises that mainly electric weight, M consecutive periods before the current period that the metering of port numbers, current period obtains measure the electric weight that obtains and message index etc. respectively; Wherein M is a preset times, and its occurrence can be provided with according to actual needs flexibly, for example is 2,4 etc.Wherein message index sign PSE Controller sends the order of electric weight message; 1,3,5...... or character etc. 1,2,3...... for example the message index in the electric weight message that at every turn reports is set:, can certainly for example add message index at interval: according to other modes according to the ascending order of natural number.Preferably, the message index in each electric weight message can be the positive integer of arranging according to the order of sequence.
Need to prove; When M be one confirm value the time; If PSE Controller accomplishes the number of times of metering cycle less than M+1; Then PSE Controller is sending metering as a result the time through electric weight message to CPU element, need in electric weight message, carry electric weight that the current period metering obtains and all consecutive periods before the current period and measure the electric weight that obtains respectively.For example current was the 3rd cycle, when the value of M confirms as 4, then need in the electric weight message that this cycle metering reports after accomplishing, carry the 1-3 cycle and measure the electric weight that obtains respectively.
In addition; PSE Controller adopts UART (Universal AsynchronousReceiver/Transmitter among the present invention; Universal asynchronous reception/dispensing device) technology reports electric weight message; PSEController is put into the electric weight message of preparing to report in the register of UART earlier, is sent to CPU element through FIFO (FirstInput First Output, First Input First Output) again.It should be understood by one skilled in the art that electric weight message also can report through the mode outside the UART technology, the present invention does not limit this.
The message index that message index that step 203, CPU element are carried according to the current electric weight message that receives and the preceding electric weight message that once receives are carried judges whether electric weight message is continuous, and judged result is a consecutive hours, execution in step 204; When judged result is discontinuous, execution in step 205.
Concrete, the message index that CPU element stored electric weight message is carried and the corresponding relation of port numbers.After receiving electric weight message; CPU element is according to the port numbers of carrying in the electric weight message; Search the corresponding relation of the port numbers and the message index of storage, obtain with electric weight message in the corresponding the last message index of port numbers of carrying, the message index that the electric weight message that once receives before is promptly carried; Through comparing two message index, know whether electric weight message is continuous.With the message index in each electric weight message is that positive integer is an example, if the difference of two message index is 1, explains that then electric weight message is continuous, execution in step 204; Otherwise, explained and lost electric weight message, execution in step 205.
Step 204, CPU element are obtained the corresponding electric weight of current period from electric weight message.
Step 205, CPU element are confirmed the number N of losing of electric weight message, in the current electric weight message that receives, obtain electric weight that current period metering obtains and N consecutive periods before the current period and measure the electric weight that obtains respectively.
Concrete; Still be that positive integer is an example with the message index; If the difference of two message index is 3; The number N of losing of then confirming electric weight message is 2, suppose current period be the 9th cycle, then CPU element from the current electric weight message that receives, obtain electric weight that the metering of the 9th cycle obtains and 2 electric weight that the cycles metering obtains before the 9th cycle.
What can know to those skilled in the art is; Can dispose accordingly the processing of PSE controller and CPU; Make CPU can know that according to configuration M consecutive periods before the 9th cycle in the electric weight message measures putting in order of the electric weight that obtains; Then CPU is according to the number N of losing of putting in order of knowing and electric weight message, obtains that N consecutive periods before the 9th cycle measures the electric weight that obtains respectively in the electric weight message.For example: when current period was the 9th cycle; It is 2 o'clock that electric weight is lost number; If when 3 consecutive periods before the 9th cycle measure the series arrangement that the electric weight that obtains increases progressively according to the cycle respectively, 2 consecutive periods (i.e. the 8th cycle and the 7th cycle) that CPU element then obtains before the 9th cycle according to order from back to front in 3 charge values measure the electric weight that obtains respectively; Vice versa; If when 3 consecutive periods before the 9th cycle measure the series arrangement that the electric weight that obtains successively decreases according to the cycle respectively, 2 consecutive periods (i.e. the 8th cycle and the 7th cycle) that CPU element then obtains before the 9th cycle according to order from front to back in 3 charge values measure the electric weight that obtains respectively.
Step 206, the corresponding electric weight of port numbers that CPU element will carry from electric weight message electric weight that gets access to and the electric weight message of having stored adds up, and obtains the power consumption of power receiving equipment, and the corresponding electric weight of the port numbers of updated stored.
Concrete; CPU element is kept at electric quantity data in the Flash storer; General data comprises that port numbers, the accumulative total corresponding with port numbers are with power consumption etc.; After getting access to electric weight from electric weight message, the electric weight that CPU element is corresponding with the port numbers of having stored with this electric weight adds up and obtains the power consumption of the corresponding power receiving equipment of port numbers.Need to prove the electric weight that CPU element can use active and standby storage space storage metering to obtain.This active and standby storage space specifically is made up of active and standby two parts data field mirror image.Carry out electric weight when adding up; CPU element respectively from the main storage area, be equipped with the memory block and read former record value; If find that the data in two districts are all invalid (can know according to preset sign by invalid judgement; CPU element at first reads the state that this sign is known data), send a warning message, this record is also by invalidation.If find that the data of one of them data field are invalid, then with the data in the data sync invalid data district in active data district.When the data in two districts are all effective; CPU element obtains the corresponding electric weight record of port numbers of main storage area record, gets access to the electric weight addition again the write-back Flash storer with this from electric weight message, at first writes the main storage area; Write backup area after the success again; When preventing to write Flash, power down suddenly causes legacy data to destroy by rush of water, and can't carry out follow-up electric quantity metering.
Those skilled in the art can carry out diversified powering quantity management according to the information about power of CPU element storage.
Concrete, this powering quantity management includes but not limited to following several kinds of modes:
A) NM server cooperates with CPU element, and NM server regularly reads in the CPU element each port and uses power consumption, grasps PD equipment actual consumption, impels user optimization PD electric power, thereby can make up communication network more energy-conservation, low-carbon (LC);
B) user's accounting server cooperates with CPU element, regularly obtains in the CPU element each port and uses power consumption, as to selecting POE value-added service user to carry out a reference frame of electric weight charge;
C) through the order line of PSE equipment, inquiry PSE powering quantity judges whether the work of extension PD power receiving equipment is correct down.
Need to prove; In the method provided by the invention; PSE Controller, PSE power supply port and CPU element can exist as separate equipment respectively; Also can PSE Controller and PSE power supply port as a separate equipment, CPU element as a separate equipment, perhaps the three is present in the equipment.For example, PSE Controller and PSE power supply port are the PD power supply as PSE, and CPU element is as the electric weight of each PD of memory device, stores.
Through adopting method provided by the invention; The metering of PSE controller cycle is through the electric weight of PSE power supply port to the power receiving equipment transmission; Electric weight, current period preset several consecutive periods before that the current period metering is obtained measure the electric weight that obtains respectively and send to CPU element through electric weight message; Before CPU element is known during the number N of electric weight information drop-out; CPU element obtains electric weight that current period metering obtains in electric weight message and N consecutive periods before the current period measures the electric weight that obtains respectively; And electric weight that obtains and the electric weight stored added up, obtain the power consumption of power receiving equipment, thereby realized the metering of PD power consumption in the POE system.
The present invention provides in a kind of POE system device that power receiving equipment is carried out electric quantity metering; This POE system comprises PSE controller, PSE supply power port, CPU element and power receiving equipment; Device is arranged at the PSE controller, and is as shown in Figure 3, and this device comprises:
Transport module 11 is used for transmitting electric weight through PSE power supply port to power receiving equipment;
Metering module 12 is connected with transport module 11, is used for cycle metering transport module through the electric weight of PSE power supply port to the power receiving equipment transmission;
Reporting module 13; Be connected with metering module 12; Be used for reporting electric weight message to CPU element; Port numbers, the current period that carries PSE power supply port in the electric weight message measures the electric weight that obtains, preset several consecutive periods before the current period measure electric weight and the message index that obtains respectively, obtained the power consumption of power receiving equipment according to electric weight message by CPU element.
Reporting module 13 also is used for:
The number that all consecutive periods before the current period measure the electric weight that obtains respectively is less than present count, then in electric weight message, carries electric weight that the current period metering obtains and all consecutive periods before the current period and measures the electric weight that obtains respectively.
The present invention also provides in a kind of POE system device that power receiving equipment is carried out electric quantity metering; This POE system comprises PSE controller, PSE supply power port, CPU element and power receiving equipment; Device is arranged at CPU element, and is as shown in Figure 4, and this device comprises:
Receiver module 21; Be used to receive the electric weight message that the PSE controller sends; Wherein, this electric weight message is carried the port numbers of PSE power supply port, electric weight, current period preset several consecutive periods before that the current period metering obtains measure electric weight and the message index that obtains respectively;
Judge module 22 is connected with receiver module 21, and the message index that message index that is used for carrying according to the current electric weight message that receives of receiver module and the preceding electric weight message that once receives are carried judges whether electric weight message is continuous;
Acquisition module 23; Be connected with receiver module 21 with judge module 22; Be used for when the judged result of judge module for not the time; Confirm the number N of losing of electric weight message, and in the current electric weight message that receives, obtain electric weight that the current period metering obtains and N consecutive periods before the current period and measure the electric weight that obtains respectively;
Memory module 24 is used for the electric weight of storage port correspondence;
Update module 25 is connected with memory module 24 with acquisition module 23, is used for the electric weight that acquisition module the is got access to electric weight corresponding with the port numbers of having stored and adds up, and obtains the power consumption of power receiving equipment.
Acquisition module 23 also is used in the judged result of judge module obtaining the electric weight that the current period metering obtains when being.
The corresponding electric weight of port numbers that the power consumption updated stored module that update module unit 25 also is used for obtaining power receiving equipment according to adding up is stored.
Memory module 24 comprises main with storage space and slack storage space, wherein, and main electric weight with storage space and slack storage space difference storage port correspondence; Accordingly; Update module 25; Be used for reading respectively the main corresponding electric weight of storing with storage space and slack storage space of port numbers; And confirming mainly with the corresponding electric weight of the port numbers of storage space and the storage of slack storage space all effectively the time, the electric weight that gets access to added up with the corresponding electric weight of storage space middle-end slogan with the master obtains the power consumption of power receiving equipment; Perhaps when confirming that main one of them with the corresponding electric weight of the port numbers of storage space or the storage of slack storage space is effective; Main effective electric weight with storage space or slack storage space is synchronized to another storage space, again the electric weight that gets access to is obtained the power consumption of power receiving equipment with main adding up with the corresponding electric weight of storage space middle-end slogan.
Update module 25 also is used for upgrading the main corresponding electric weight of storing with storage space and slack storage space of port numbers successively according to the power consumption of the power receiving equipment that obtains of adding up.
Those skilled in the art can according to techniques well known will lead with the corresponding electric weight of each port in storage space and the slack storage space show, various processing such as charging, transmission, be used to understand PD equipment actual consumption, impel user optimization PD electric power.
In addition; Can know through the above embodiment of the present invention; Main with storage space and reliable preservation and the renewal of making time spent assurance electric quantity data in the present invention of slack storage space; It is obvious that, and those skilled in the art also can only be provided with the electric weight that a storage space is used for the storage port correspondence, and only the electric quantity data in this storage space are upgraded.
Through the description of above embodiment, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (13)

1. in the POE system power receiving equipment carried out the method for electric quantity metering; This method is applied to comprise the POE system of power-supply unit PSE controller, PSE power supply port, power receiving equipment and CPU element; It is characterized in that, may further comprise the steps:
Said PSE controller cycle metering is through the electric weight of PSE power supply port to the power receiving equipment transmission; And report electric weight message to said CPU element, carry the port numbers of PSE power supply port, the electric weight that the current period metering obtains, preset several consecutive periods before the current period in the said electric weight message and measure electric weight and the message index that obtains respectively;
The message index that message index of carrying according to the current electric weight message that receives when said CPU element and the preceding electric weight message that once receives are carried is judged electric weight message when discontinuous, and said CPU element is confirmed the number N of losing of electric weight message;
Said CPU element is in the current electric weight message that receives; Obtain electric weight that current period metering obtains and N consecutive periods before the current period and measure the electric weight that obtains respectively; The electric weight that gets access to is added up with the corresponding electric weight of having stored of said port numbers, obtain the power consumption of power receiving equipment.
2. the method for claim 1; It is characterized in that; Also comprise: said CPU element is judged electric weight message consecutive hours; Obtain the electric weight that said current period metering obtains, the electric weight that gets access to is added up with the corresponding electric weight of having stored of said port numbers, obtain the power consumption of power receiving equipment.
3. according to claim 1 or claim 2 method is characterized in that said method also comprises:
The power consumption that said CPU element obtains power receiving equipment according to adding up upgrades the corresponding electric weight of having stored of said port numbers.
4. method according to claim 3 is characterized in that, the electric weight that gets access to is added up with the corresponding electric weight of having stored of said port numbers, and the power consumption that obtains power receiving equipment is specially:
Said CPU element reads main with the corresponding electric weight of storing in storage space and the slack storage space of said port numbers respectively; And confirming said mainly with the corresponding electric weight of the said port numbers of storage space and the storage of slack storage space all effectively the time, the electric weight that gets access to added up with the corresponding electric weight of port numbers described in the storage space with said master obtains the power consumption of power receiving equipment; Perhaps
Said CPU element reads main with the corresponding electric weight of storing in storage space and the slack storage space of said port numbers respectively; And confirming that said master is with one of them of the corresponding electric weight of the said port numbers of storage space or the storage of said slack storage space when effective; Said master is synchronized to another storage space with the effective electric weight in storage space or slack storage space, again the electric weight that gets access to is obtained the power consumption of power receiving equipment with said main adding up with the corresponding electric weight of port numbers described in the storage space.
5. method according to claim 4; It is characterized in that; The power consumption that said CPU element obtains power receiving equipment according to adding up upgrades the corresponding electric weight of having stored of said port numbers, is specially: the power consumption of the power receiving equipment that said CPU element obtains according to adding up upgrades said main with storage space and the corresponding electric weight of said slack storage space middle-end slogan successively.
6. method as claimed in claim 5; It is characterized in that; Also comprise: the number that all consecutive periods before the current period measure the electric weight that obtains respectively is less than said present count, then in said electric weight message, carries electric weight that the current period metering obtains and all consecutive periods before the current period and measures the electric weight that obtains respectively.
7. in the POE system power receiving equipment carried out the device of electric quantity metering; This POE system comprises power-supply unit PSE controller, PSE supply power port, CPU element and power receiving equipment; Said device is arranged at said PSE controller, it is characterized in that, said device comprises:
Transport module is used for transmitting electric weight through PSE power supply port to power receiving equipment;
Metering module is connected with said transport module, is used for the cycle to measure said transport module through the electric weight of PSE power supply port to the power receiving equipment transmission;
Reporting module; Be connected with said metering module; Be used for reporting electric weight message to said CPU element; Port numbers, the current period that carries PSE power supply port in the said electric weight message measures the electric weight that obtains, preset several consecutive periods before the current period measure electric weight and the message index that obtains respectively, obtained the power consumption of power receiving equipment according to said electric weight message by said CPU element.
8. device as claimed in claim 7; It is characterized in that; Said reporting module; When also being used for number that all consecutive periods before the current period measure the electric weight that obtains respectively, in said electric weight message, carrying electric weight that the current period metering obtains and all consecutive periods before the current period and measure the electric weight that obtains respectively less than said present count.
9. in the POE system power receiving equipment carried out the device of electric quantity metering; This POE system comprises power-supply unit PSE controller, PSE supply power port, CPU element and power receiving equipment; Said device is arranged at said CPU element, it is characterized in that, said device comprises:
Receiver module; Be used to receive the electric weight message that the PSE controller sends; Wherein, this electric weight message is carried the port numbers of PSE power supply port, electric weight, current period preset several consecutive periods before that the current period metering obtains measure electric weight and the message index that obtains respectively;
Judge module is connected with said receiver module, and the message index that message index that is used for carrying according to the current electric weight message that receives and the preceding electric weight message that once receives are carried judges whether electric weight message is continuous;
Acquisition module; Be connected with receiver module with said judge module; Be used for when the judged result of said judge module for not the time; Confirm the number N of losing of electric weight message, and in the current electric weight message that receives, obtain electric weight that the current period metering obtains and N consecutive periods before the current period and measure the electric weight that obtains respectively;
Memory module is used for the electric weight of storage port correspondence;
Update module is connected with said acquisition module, is used for the electric weight that said acquisition module is got access to and adds up with the corresponding electric weight of having stored of said port numbers, obtains the power consumption of power receiving equipment.
10. device as claimed in claim 9 is characterized in that, said acquisition module also is used in the judged result of said judge module obtaining the electric weight that said current period metering obtains when being.
11. device as claimed in claim 10 is characterized in that, the power consumption that said update module also is used for obtaining power receiving equipment according to adding up upgrades the corresponding electric weight of said port numbers that said memory module is stored.
12. device as claimed in claim 10 is characterized in that, said memory module comprises main with storage space and slack storage space, wherein, and said main electric weight with storage space and said slack storage space difference storage port correspondence;
Said update module; Be used for reading respectively the main corresponding electric weight of storing with storage space and slack storage space of said port numbers; And confirming said mainly with the corresponding electric weight of the said port numbers of storage space and the storage of slack storage space all effectively the time, the electric weight that gets access to added up with the corresponding electric weight of port numbers described in the storage space with said master obtains the power consumption of power receiving equipment; Perhaps confirming that said master is with one of them of the corresponding electric weight of the said port numbers of storage space or the storage of said slack storage space when effective; Said master is synchronized to another storage space with the effective electric weight in storage space or slack storage space, again the electric weight that gets access to is obtained the power consumption of power receiving equipment with said main adding up with the corresponding electric weight of port numbers described in the storage space.
13. device as claimed in claim 11 is characterized in that, said update module also is used for upgrading the said main corresponding electric weight of storing with storage space and said slack storage space of port numbers successively according to the power consumption of the power receiving equipment that obtains of adding up.
CN2010102246722A 2010-07-13 2010-07-13 Method and device for metering electric quantity of powered device in power over Ethernet system Active CN101871985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102246722A CN101871985B (en) 2010-07-13 2010-07-13 Method and device for metering electric quantity of powered device in power over Ethernet system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102246722A CN101871985B (en) 2010-07-13 2010-07-13 Method and device for metering electric quantity of powered device in power over Ethernet system

Publications (2)

Publication Number Publication Date
CN101871985A CN101871985A (en) 2010-10-27
CN101871985B true CN101871985B (en) 2012-09-26

Family

ID=42996971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102246722A Active CN101871985B (en) 2010-07-13 2010-07-13 Method and device for metering electric quantity of powered device in power over Ethernet system

Country Status (1)

Country Link
CN (1) CN101871985B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102983982B (en) * 2011-09-05 2016-08-03 中国电信股份有限公司 Average voltage distribution method, system and multiport power receiving equipment
CN102879637B (en) * 2012-09-26 2015-11-25 杭州华三通信技术有限公司 Energy consumption harvester and method in a kind of POE system
TWI594598B (en) * 2016-02-04 2017-08-01 九暘電子股份有限公司 Power source equipment and power supplying method for power over ethernet system (1)
EP3433976B1 (en) 2016-03-22 2020-11-04 Signify Holding B.V. Poe system providing measure of energy consumption
CN109164295A (en) * 2018-09-20 2019-01-08 广东电网有限责任公司 A method of power grid electric is calculated using power integral

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101305546A (en) * 2005-11-10 2008-11-12 美高森美股份有限公司-模拟混合信号集团有限公司 Enhanced classification for power over ethernet

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7886165B2 (en) * 2007-05-24 2011-02-08 Broadcom Corporation Power management for Power-over-Ethernet-capable switch
US7908495B2 (en) * 2007-10-11 2011-03-15 Broadcom Corporation System and method for implementing fairness in the powering of computing devices in a power over ethernet application
JP2009218752A (en) * 2008-03-07 2009-09-24 Nec Corp Electric power supply device, electric power supply method, electric power supply control program, and network system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101305546A (en) * 2005-11-10 2008-11-12 美高森美股份有限公司-模拟混合信号集团有限公司 Enhanced classification for power over ethernet

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2009-218752A 2009.09.24

Also Published As

Publication number Publication date
CN101871985A (en) 2010-10-27

Similar Documents

Publication Publication Date Title
CN101871985B (en) Method and device for metering electric quantity of powered device in power over Ethernet system
CN101794480A (en) Pre-purchased power controller
CN102892184B (en) One realizes Zigbee module list live wire or battery powered apparatus and method
CN205484454U (en) BLE bluetooth low -power consumption intelligent ammeter
CN202275498U (en) Prepaid meter reading system
CN108110898B (en) Remote intelligent power utilization management system based on Internet
CN103813356A (en) Flow management device and flow management method thereof
CN105915328A (en) Synchronization frame receiving processing method and device
CN102779376B (en) Data acquisition system for electricity vending system, self-upgrade type electricity vending system and upgrading method
CN106443171B (en) The metering system and metering method of electrical bus data when a kind of electrical equipment power down
CN208421066U (en) A kind of modularization framework of multicore intelligent electric energy meter
CN102156207A (en) Distributed intelligent electric energy recording system and detecting method thereof
CN105375614A (en) UPS device with network monitoring and external battery box information detection functions
CN2906784Y (en) Mobile communication data channel-based remote metering system
CN103138850A (en) Method and device for testing communication terminal
TW595127B (en) Method and apparatus for power management of electronic device
JP4523929B2 (en) Communication terminal device and watt-hour meter incorporating the device
CN210627477U (en) Low-power consumption environmental monitoring equipment based on 4G network
CN102879637B (en) Energy consumption harvester and method in a kind of POE system
CN209387715U (en) Remote user's intelligent electric meter takes control and abnormal electricity consumption early warning system
CN207799887U (en) A kind of remote data transmission system for meter reading
CN207124637U (en) Computer lab management apparatus and system based on Internet of Things
CN112527554A (en) PoE intelligent non-inductive PD restart
CN107543982A (en) Towards the non-intruding Fault Identification device of low-voltage customer
CN110867060A (en) Split type electric power data transmission system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.