CN101871985A - 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
CN101871985A
CN101871985A CN201010224672A CN201010224672A CN101871985A CN 101871985 A CN101871985 A CN 101871985A CN 201010224672 A CN201010224672 A CN 201010224672A CN 201010224672 A CN201010224672 A CN 201010224672A CN 101871985 A CN101871985 A CN 101871985A
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.)
Granted
Application number
CN201010224672A
Other languages
Chinese (zh)
Other versions
CN101871985B (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 is carried out the method and apparatus of electric quantity metering
Technical field
The present invention relates to the communications field, relate in particular to the method and apparatus that in a kind of POE system power receiving equipment is carried out electric quantity metering.
Background technology
POE (Power Over Ethernet, pass through POE) refer to by 10base-T (Baseband, twisted-pair feeder to), the power supply of 100BASE-TX, 1000BASE-T ethernet network, promptly by the power supply of netting twine realization to the network equipment, 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, machine for punching the card, 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 by 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 by 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);
Power to PD: PSE detect the PD of the above-mentioned type or the non-standard PD that supports after, 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 the method and apparatus that in a kind of POE system power receiving equipment is carried out electric quantity metering, realized the metering of PD power consumption in the POE system.
The invention provides the method for in a kind of POE system 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:
Described PSE controller cycle metering is by the electric weight of PSE power supply port to the power receiving equipment transmission, and report electric weight message to described CPU element, carry the port numbers of PSE power supply port, the electric weight that the current period metering obtains in the described electric weight message, default 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 described CPU element and the preceding electric weight message that once receives are carried is judged electric weight message when discontinuous, and described CPU element is determined the number N of losing of electric weight message;
Described 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 electric weight corresponding with the described port numbers of having stored that gets access to added up, obtain the power consumption of power receiving equipment.
Also comprise: described CPU element is judged electric weight message consecutive hours, obtains the electric weight that described current period metering obtains, and the electric weight electric weight corresponding with the described port numbers of having stored that gets access to added up, and obtains the power consumption of power receiving equipment.
Described method also comprises:
The power consumption that described CPU element obtains power receiving equipment according to adding up upgrades the electric weight of the described port numbers correspondence of having stored.
The electric weight electric weight corresponding with the described port numbers of having stored that gets access to added up, and the power consumption that obtains power receiving equipment is specially:
Described CPU element reads main with the corresponding electric weight of storing in storage space and the slack storage space of described port numbers respectively, and at the electric weight of determining described main described port numbers correspondence with 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 described master obtains the power consumption of power receiving equipment; Perhaps
Described CPU element reads main with the corresponding electric weight of storing in storage space and the slack storage space of described port numbers respectively, and determining that described master is with one of them of the electric weight of the described port numbers correspondence of storage space or the storage of described slack storage space when effective, described 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 described main adding up with the corresponding electric weight of port numbers described in the storage space.
The power consumption that described CPU element obtains power receiving equipment according to adding up upgrades the electric weight of the described port numbers correspondence of having stored, is specially: the power consumption of the power receiving equipment that described CPU processing unit obtains according to adding up upgrades described main with storage space and the corresponding electric weight of described 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 described present count, then carries electric weight that the current period metering obtains and all consecutive periods before the current period and measure the electric weight that obtains respectively in described electric weight message.
The invention provides the device that in a kind of POE system power receiving equipment is carried out electric quantity metering, this POE system comprises PSE controller, PSE power port, CPU element and power receiving equipment, described device is arranged at described PSE controller, and described device comprises:
Transport module is used for transmitting electric weight by PSE power supply port to power receiving equipment;
Metering module is connected with described transport module, is used for the cycle to measure described transport module by the electric weight of PSE power supply port to the power receiving equipment transmission;
Reporting module, be connected with described metering module, be used for reporting electric weight message to described CPU element, carry the port numbers of PSE power supply port, the electric weight that the current period metering obtains in the described electric weight message, default 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 described electric weight message by described CPU element.
Described 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 described present count, then carries electric weight that the current period metering obtains and all consecutive periods before the current period and measure the electric weight that obtains respectively in described electric weight message.
The invention provides the device that in a kind of POE system power receiving equipment is carried out electric quantity metering, this POE system comprises PSE controller, PSE power port, CPU element and power receiving equipment, described device is arranged at described CPU element, and described 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 default 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 described receiver module, is used for the message index that the message index of carrying according to the current electric weight message that receives of described receiver module and the preceding electric weight message that once receives are carried, and judges whether electric weight message is continuous;
Acquisition module, be connected with receiver module with described judge module, be used for when the judged result of described judge module for not the time, determine the number N of losing of electric weight message, and 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;
Memory module is used for the electric weight of storage port correspondence;
Update module is connected with described acquisition module, is used for the electric weight that described acquisition module the is got access to electric weight corresponding with the described port numbers of having stored and adds up, and obtains the power consumption of power receiving equipment.
Described acquisition module also is used in the judged result of described judge module obtaining the electric weight that described current period metering obtains when being.
Described update module also is used for upgrading according to the power consumption that obtains power receiving equipment of adding up the electric weight of the described port numbers correspondence that described memory module stores.
Described memory module comprises main with storage space and slack storage space, wherein, and described main electric weight with storage space and described slack storage space difference storage port correspondence;
Described update module, be used for reading respectively the main corresponding electric weight of storing with storage space and slack storage space of described port numbers, and at the electric weight of determining described main described port numbers correspondence with 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 described master obtains the power consumption of power receiving equipment; Perhaps determining that described master is with one of them of the electric weight of the described port numbers correspondence of storage space or the storage of described slack storage space when effective, described 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 described main adding up with the corresponding electric weight of port numbers described in the storage space.
Described update module also is used for upgrading described main with the port numbers corresponding electric weight of storage space with the storage of described slack storage space 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 by the electric weight of PSE power supply port to the power receiving equipment transmission, current period is measured the electric weight that obtains, default several consecutive periods before the current period measure the electric weight that obtains respectively and send to CPU element by electric weight message, before CPU element is known during the number N of electric weight information drop-out, CPU element is obtained electric weight and the consecutive periods of the N before the current period that current period metering obtains and is measured the electric weight that obtains respectively in electric weight message, and the electric weight that obtains and the electric weight of having stored 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 watt metering 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 both end voltage value at interval, be converted into AC current value and phase place with 1ms;
2) voltage sample: with the big resistance of the high precision constant-resistance current supply circuit that inserts in parallel, extract big resistance both end voltage value at interval, be converted into alternating current voltage value and phase place with 1ms;
3) the active power factor calculates: 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 the method for in the POE provided by the invention system 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 by PSE power supply port, as shown in Figure 2, this method may further comprise the steps:
Step 201, the PSE Controller cycle measures by 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 by the electric weight of PSE power supply port to the PD transmission.Concrete, 48 volts of direct currents are powered to PD by each PSEPort (power supply port) through PSE Controller in the POE system, by 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 promptly the electric weight number of times of 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 finished, 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 the electric weight of a plurality of cycle correspondences 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, default several consecutive periods before the current period measure electric weight and the message index that obtains respectively.
Whenever finish a metering cycle, PSE Controller will measure the result and send to CPU element by electric weight message.With this metering cycle is that 10S is an example, PSE Controller reports continuous data by 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, 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 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 determine value the time, if PSE Controller finishes the number of times of metering cycle less than M+1, then PSE Controller is sending metering as a result the time by electric weight message to CPU element, need 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 in electric weight message.For example current was the 3rd cycle, when the value of M is defined as 4, then carried the 1-3 cycle in the electric weight message that need report after this cycle, metering was finished and measured 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, be sent to CPU element by 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 by 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 is promptly carried, by 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, illustrates that then electric weight message is continuous, execution in step 204; Otherwise, illustrated and lost electric weight message, execution in step 205.
Step 204, CPU element are obtained the electric weight of current period correspondence from electric weight message.
Step 205, CPU element are determined 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 determining 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.
For those skilled in the art as can be known be, 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) CPU element then obtained for the 9th cycle according to order from back to front in 3 charge values before 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) CPU element then obtained for the 9th cycle according to order from front to back in 3 charge values before measure the electric weight that obtains respectively.
Step 206, the corresponding electric weight of port numbers that CPU element will be carried 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 electric weight of the port numbers correspondence 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 CPU element electric weight that this electric weight is corresponding with the port numbers of having stored 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 default 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 is obtained the electric weight record of the port numbers correspondence of main storage area record, get access to the electric weight addition again the write-back Flash storer with this from electric weight message, at first write 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 mode:
A) NM server cooperates with CPU element, and NM server regularly reads each port power consumption in the CPU element, 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 each port power consumption in the CPU element, as a reference frame selection POE value-added service user being carried out the electric weight charge;
C) by 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.
By adopting method provided by the invention, the metering of PSE controller cycle is by the electric weight of PSE power supply port to the power receiving equipment transmission, current period is measured the electric weight that obtains, default several consecutive periods before the current period measure the electric weight that obtains respectively and send to CPU element by electric weight message, before CPU element is known during the number N of electric weight information drop-out, CPU element is obtained electric weight and the consecutive periods of the N before the current period that current period metering obtains and is measured the electric weight that obtains respectively in electric weight message, and the electric weight that obtains and the electric weight of having stored added up, obtain the power consumption of power receiving equipment, thereby realized the metering of PD power consumption in the POE system.
The invention provides the device that in a kind of POE system power receiving equipment is carried out electric quantity metering, this POE system comprises PSE controller, PSE power port, CPU element and power receiving equipment, device is arranged at the PSE controller, and as shown in Figure 3, this device comprises:
Transport module 11 is used for transmitting electric weight by PSE power supply port to power receiving equipment;
Metering module 12 is connected with transport module 11, is used for cycle metering transport module by 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, default 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 carries electric weight that the current period metering obtains and all consecutive periods before the current period and measure the electric weight that obtains respectively in electric weight message.
The present invention also provides the device that in a kind of POE system power receiving equipment is carried out electric quantity metering, this POE system comprises PSE controller, PSE power port, CPU element and power receiving equipment, device is arranged at CPU element, and as shown in Figure 4, 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 default 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, is used for the message index that the message index of carrying according to the current electric weight message that receives of receiver module and the preceding electric weight message that once receives are carried, and 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, determine the number N of losing of electric weight message, and 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;
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.
Update module unit 25 also is used for the electric weight of the port numbers correspondence of storing according to the power consumption updated stored module that obtains power receiving equipment of adding up.
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 at the electric weight of determining main port numbers correspondence with 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 one of them of the electric weight of determining main port numbers correspondence with 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 main with the port numbers corresponding electric weight of storage space with the storage of slack storage space 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 storage space electric weight corresponding with each port in 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, by the above embodiment of the present invention as can be known, 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 evident that 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 is upgraded.
Through the above description of the embodiments, 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 embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be a 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 enforcement 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 disclosed only be 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 is 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:
Described PSE controller cycle metering is by the electric weight of PSE power supply port to the power receiving equipment transmission, and report electric weight message to described CPU element, carry the port numbers of PSE power supply port, the electric weight that the current period metering obtains, default several consecutive periods before the current period in the described 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 described CPU element and the preceding electric weight message that once receives are carried is judged electric weight message when discontinuous, and described CPU element is determined the number N of losing of electric weight message;
Described 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 electric weight corresponding with the described port numbers of having stored that gets access to added up, obtain the power consumption of power receiving equipment.
2. the method for claim 1, it is characterized in that, also comprise: described CPU element is judged electric weight message consecutive hours, obtain the electric weight that described current period metering obtains, the electric weight electric weight corresponding with the described port numbers of having stored that gets access to added up, obtain the power consumption of power receiving equipment.
3. method as claimed in claim 1 or 2 is characterized in that, described method also comprises:
The power consumption that described CPU element obtains power receiving equipment according to adding up upgrades the electric weight of the described port numbers correspondence of having stored.
4. method according to claim 3 is characterized in that, the electric weight electric weight corresponding with the described port numbers of having stored that gets access to added up, and the power consumption that obtains power receiving equipment is specially:
Described CPU element reads main with the corresponding electric weight of storing in storage space and the slack storage space of described port numbers respectively, and at the electric weight of determining described main described port numbers correspondence with 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 described master obtains the power consumption of power receiving equipment; Perhaps
Described CPU element reads main with the corresponding electric weight of storing in storage space and the slack storage space of described port numbers respectively, and determining that described master is with one of them of the electric weight of the described port numbers correspondence of storage space or the storage of described slack storage space when effective, described 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 described 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 described CPU element obtains power receiving equipment according to adding up upgrades the electric weight of the described port numbers correspondence of having stored, is specially: the power consumption of the power receiving equipment that described CPU processing unit obtains according to adding up upgrades described main with storage space and the corresponding electric weight of described 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 described present count, then carries electric weight that the current period metering obtains and all consecutive periods before the current period and measure the electric weight that obtains respectively in described electric weight message.
7. in the POE system power receiving equipment is carried out the device of electric quantity metering, this POE system comprises PSE controller, PSE power port, CPU element and power receiving equipment, described device is arranged at described PSE controller, it is characterized in that, described device comprises:
Transport module is used for transmitting electric weight by PSE power supply port to power receiving equipment;
Metering module is connected with described transport module, is used for the cycle to measure described transport module by the electric weight of PSE power supply port to the power receiving equipment transmission;
Reporting module, be connected with described metering module, be used for reporting electric weight message to described CPU element, port numbers, the current period that carries PSE power supply port in the described electric weight message measures the electric weight that obtains, default 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 described electric weight message by described CPU element.
8. device as claimed in claim 7, it is characterized in that, described reporting module, when also being used for number that all consecutive periods before current period measure the electric weight that obtains respectively, in described 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 described present count.
9. in the POE system power receiving equipment is carried out the device of electric quantity metering, this POE system comprises PSE controller, PSE power port, CPU element and power receiving equipment, described device is arranged at described CPU element, it is characterized in that, described 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 default 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 described receiver module, is used for the message index that the message index of carrying according to the current electric weight message that receives and the preceding electric weight message that once receives are carried, and judges whether electric weight message is continuous;
Acquisition module, be connected with receiver module with described judge module, be used for when the judged result of described judge module for not the time, determine the number N of losing of electric weight message, and 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;
Memory module is used for the electric weight of storage port correspondence;
Update module is connected with described acquisition module, is used for the electric weight that described acquisition module the is got access to electric weight corresponding with the described port numbers of having stored and adds up, and obtains the power consumption of power receiving equipment.
10. device as claimed in claim 9 is characterized in that, described acquisition module also is used in the judged result of described judge module obtaining the electric weight that described current period metering obtains when being.
11. device as claimed in claim 10 is characterized in that, described update module also is used for upgrading according to the power consumption that obtains power receiving equipment of adding up the electric weight of the described port numbers correspondence that described memory module stores.
12. device as claimed in claim 10 is characterized in that, described memory module comprises main with storage space and slack storage space, wherein, and described main electric weight with storage space and described slack storage space difference storage port correspondence;
Described update module, be used for reading respectively the main corresponding electric weight of storing with storage space and slack storage space of described port numbers, and at the electric weight of determining described main described port numbers correspondence with 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 described master obtains the power consumption of power receiving equipment; Perhaps determining that described master is with one of them of the electric weight of the described port numbers correspondence of storage space or the storage of described slack storage space when effective, described 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 described 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, described update module also is used for upgrading described main with the port numbers corresponding electric weight of storage space with the storage of described slack storage space 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 true CN101871985A (en) 2010-10-27
CN101871985B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102879637A (en) * 2012-09-26 2013-01-16 杭州华三通信技术有限公司 Acquisition device and method for energy consumption in POE (power over Ethernet) system
CN102983982A (en) * 2011-09-05 2013-03-20 中国电信股份有限公司 A method, a system, and a multi-port powered device for equal voltage distribution
CN107040386A (en) * 2016-02-04 2017-08-11 九旸电子股份有限公司 Power supply equipment and power supply method of Ethernet power supply system
CN109164295A (en) * 2018-09-20 2019-01-08 广东电网有限责任公司 A method of power grid electric is calculated using power integral
US10985930B2 (en) 2016-03-22 2021-04-20 Signify Holding B.V. PoE system providing measure of energy consumption

Citations (4)

* 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
US20080294917A1 (en) * 2007-05-24 2008-11-27 Broadcom Corporation Power Management for Power-Over-Ethernet-Capable Switch
US20090100274A1 (en) * 2007-10-11 2009-04-16 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 (4)

* 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
US20080294917A1 (en) * 2007-05-24 2008-11-27 Broadcom Corporation Power Management for Power-Over-Ethernet-Capable Switch
US20090100274A1 (en) * 2007-10-11 2009-04-16 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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102983982A (en) * 2011-09-05 2013-03-20 中国电信股份有限公司 A method, a system, and a multi-port powered device for equal voltage distribution
CN102983982B (en) * 2011-09-05 2016-08-03 中国电信股份有限公司 Average voltage distribution method, system and multiport power receiving equipment
CN102879637A (en) * 2012-09-26 2013-01-16 杭州华三通信技术有限公司 Acquisition device and method for energy consumption in POE (power over Ethernet) system
CN102879637B (en) * 2012-09-26 2015-11-25 杭州华三通信技术有限公司 Energy consumption harvester and method in a kind of POE system
CN107040386A (en) * 2016-02-04 2017-08-11 九旸电子股份有限公司 Power supply equipment and power supply method of Ethernet power supply system
CN107040386B (en) * 2016-02-04 2020-02-21 九旸电子股份有限公司 Power supply equipment and power supply method of Ethernet power supply system
US10985930B2 (en) 2016-03-22 2021-04-20 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

Also Published As

Publication number Publication date
CN101871985B (en) 2012-09-26

Similar Documents

Publication Publication Date Title
CN101871985B (en) Method and device for metering electric quantity of powered device in power over Ethernet system
CN101794480B (en) Pre-purchased power controller
CN105467202B (en) Electric quantity detection method and device and terminal
CN104992548A (en) Remote meter reading system
CN102176628A (en) Method and apparatus for monitoring energy storage devices
CN103813356A (en) Flow management device and flow management method thereof
CN205484454U (en) BLE bluetooth low -power consumption intelligent ammeter
CN108110898B (en) Remote intelligent power utilization management system based on Internet
CN201886078U (en) Acquisition device of multi-loop electric energy data
CN103443811A (en) Energy consumption monitoring system, method, and computer program
CN107832247B (en) The data concentrator of adaptive communications
CN103067426A (en) System and method of remote intelligent meter reading and instrument front-end collecting device
CN202275498U (en) Prepaid meter reading system
CN107994999B (en) PoE power management method and device
CN105915328A (en) Synchronization frame receiving processing method and device
KR100850639B1 (en) Watt-hour meter with wireless remote meter reading function
CN107994406A (en) Intelligent socket and its control method based on Internet of Things
KR20090026029A (en) Electricity demand management method using electric charging and discharging and electricity demand management server
CN102779376A (en) Data acquisition system for electricity vending system, self-upgrade type electricity vending system and upgrading method
CN102156207A (en) Distributed intelligent electric energy recording system and detecting method thereof
CN104908464A (en) Intelligent tag printing device
CN2906784Y (en) Mobile communication data channel-based remote metering system
TW595127B (en) Method and apparatus for power management of electronic device
CN204845165U (en) Intelligent label printing device
CN101193173B (en) Intelligent charger device

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.