Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention realThe above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present inventionCase is described in further detail.
Referring to Figure 1, Fig. 1 is a kind of flow diagram of method of supplying power to provided in an embodiment of the present invention, as shown in Figure 1,The method of supplying power to may comprise steps of:
Step 101, when needing for the power supply of target PD equipment, and remaining output power consumption is less than the work function of target PD equipmentTime-consuming judges in the PD equipment of itself connection powered on the presence or absence of the PD equipment for opening auxiliary device.If so, going to stepRapid 102;Otherwise, terminate current process.
In the embodiment of the present invention, the above method can be using the PSE device for supporting POE power supply, such as NVR (NetworkVideo Recorder, that is, network hard disk video recorder).For ease of description, for following executing subject in the above way is NVRIt is illustrated, however, it should be understood that PSE device is not limited to NVR in the embodiment of the present invention, the embodiment of the present invention is subsequent no longer multipleIt states.
In the embodiment of the present invention, target PD equipment and the PD equipment for being not specific to a certain fixation, but may refer to access PSEAny PD equipment of equipment.Wherein, when PSE device is NVR, which can be IPC (IP Camera, network shootingMachine), i.e., in embodiments of the present invention, it is illustrated so that PD equipment is IPC as an example, however, it should be understood that in the embodiment of the present inventionPD equipment is not limited to IPC, and the embodiment of the present invention is subsequent no longer to be repeated.
In the embodiment of the present invention, when NVR detects that Target IP C is accessed by the port POE, and determine that the IPC supports POE to supplyWhen electric, NVR can estimate the operating power consumption of Target IP C, and judge whether remaining output power consumption is less than the work function of Target IP CConsumption.Wherein, the operating power consumption of Target IP C is the basic power consumption (being not turned on the power consumption under auxiliary device state) and mesh of Target IP CMark the sum of the power consumption of auxiliary device in the open state in IPC.
Preferably, when IPC is initially accessed NVR, it can be not turned on any auxiliary device of itself, to guarantee NVR as far as possibleThere are enough output power consumptions to meet the work requirements of IPC.
If the remaining output power consumption of NVR judgement is less than the operating power consumption of Target IP C, NVR can't directly stop as itself companyConnect powered on and priority lower (the POE port numbers of such as POE port numbers relative target IPC are higher) IPC power supply, butIt needs first to judge in the IPC of itself connection powered on the presence or absence of the IPC for opening auxiliary device;Wherein, the auxiliary deviceIt may include the auxiliary device (such as infrared lamp) with infrared function or the auxiliary device with heating function that IPC is integratedDeng.
It is worth noting that in embodiments of the present invention, when NVR needs for Target IP C power supply, and remaining output small power consumptionIn the operating power consumption of Target IP C, while there is no when the IPC for opening auxiliary device, NVR can refuse to power for Target IP C,Or it is handled according to other strategies.
In addition, when NVR needs to power for Target IP C, and remaining output power consumption is greater than or equal to the operating power consumption of Target IP CWhen, NVR can directly power for Target IP C, or be handled according to other strategies, and it is not limited in the embodiment of the present invention.
Step 102 judges whether the sum of the sum of the power consumption of auxiliary device in the open state and residue output power consumption are bigIn or equal to target PD equipment operating power consumption.If so, going to step 103;Otherwise, terminate current process.
In the embodiment of the present invention, auxiliary device is opened when existing in the IPC powered on that NVR judges itself connectionWhen IPC, NVR can further judge that the power consumption of auxiliary device in the open state exports whether the sum of power consumption is greater than with residueOr the operating power consumption equal to Target IP C equipment, that is, it determines and closes part or be completely in after the auxiliary device of open stateWhether residue output power consumption meets the operating power consumption demand for Target IP C.
In order to achieve the above object, in embodiments of the present invention, NVR needs to know that the IPC of itself connection powered on is setThe power consumption of the open state of standby auxiliary device and each auxiliary device.
As an alternative embodiment, method of supplying power to provided in an embodiment of the present invention can with the following steps are included:
11) logon message for having powered on PD equipment of itself connection, is received, includes having powered on PD equipment in the logon messageThe power consumption of the open state of each auxiliary device and each auxiliary device;
12) power consumption of the open state for having powered on each auxiliary device of PD equipment and each auxiliary device, is recorded.
In this embodiment, NVR is accessed when IPC passes through the port POE, and NVR is successfully after IPC powers, IPC can rootIt carries according to information such as the open state (opening or closing) of itself each auxiliary device, each auxiliary device power consumptions and is sent out in logon messageGive NVR;After NVR receives the logon message, the unlatching of each auxiliary device of the IPC carried in the available logon messageThe power consumption of state and each auxiliary device, and record itself connection each auxiliary device for having powered on IPC open state andThe power consumption of each auxiliary device, for example, NVR can safeguard an auxiliary device state power consumption table, auxiliary device state power consumption tableEach list item record have the mark (as number) of each auxiliary device for having powered on IPC equipment of a NVR connection, power consumption andOpen state etc..
When NVR needs for Target IP C power supply, and remaining output power consumption is less than the operating power consumption of Target IP C, NVR can be withJudge that itself is connected according to the open state for each auxiliary device for having powered on IPC of self record and the power consumption of each auxiliary deviceThe IPC that powered on whether there is and open the IPC of auxiliary device and the power consumption of auxiliary device in the open state and remainingExport the operating power consumption whether the sum of power consumption is greater than or equal to Target IP C.
Step 103 sends auxiliary device out code to the PD equipment for partly or entirely opening auxiliary device, so that attachedBelong to the power consumption that the remaining output power consumption after equipment is closed is greater than or equal to target PD equipment;Wherein, auxiliary device out code is usedAuxiliary device in the open state is closed in the PD equipment that instruction opens auxiliary device.
In the embodiment of the present invention, when NVR judges having powered on to exist in IPC and opening the IPC of auxiliary device for itself connection,And the sum of the power consumption of auxiliary device in the open state and remaining output power consumption are greater than or equal to the operating power consumption of Target IP CWhen, NVR can send auxiliary device out code to the IPC for partly or entirely opening auxiliary device, to increase remaining outputPower consumption guarantees that remaining output work consumption can satisfy the work requirements of Target IP C.
It wherein, may include the mark (as numbered) of auxiliary device in auxiliary device out code, IPC receives attached setAfter standby out code, corresponding be in can be closed according to the mark for the auxiliary device for including in the auxiliary device out codeThe auxiliary device of open state.
But it is worth noting that can not also include attached set in auxiliary device out code in embodiments of the present inventionStandby mark after IPC receives auxiliary device out code, will close itself institute in the open state in this caseThere is auxiliary device, specific implementation repeats no more herein.
In the embodiment of the present invention, NVR instruction IPC is closed after auxiliary device in the open state, needs to update itselfThe open state of the auxiliary device for having powered on IPC of itself connection of record.
In a kind of optional embodiment, IPC receives the auxiliary device out code of NVR transmission, and closes attachedAfter equipment, an auxiliary device can be returned to NVR and closes response message, which closes in response message and carryThe mark for the auxiliary device this time closed in process, so that itself connection of NVR update self record has powered on the attached of IPCThe open state of equipment.
It should be noted that in embodiments of the present invention, when NVR judge the power consumption of auxiliary device in the open state withWhen the sum of residue output power consumption is less than the operating power consumption of Target IP C, that is, close all auxiliary devices in the open state still notWhen being able to satisfy the work requirements of Target IP C, after NVR can close all auxiliary devices in the open state, further according to certainlyBody connection each IPC powered on priority, according to priority from low to high sequence (the POE port numbers of such as IPC connection fromArrive small sequence greatly) stop be priority of the priority lower than Target IP C IPC power supply, until the remaining output power consumption of NVR is bigIn or equal to Target IP C operating power consumption;Alternatively, NVR can also be directly according to the preferential of each IPC of itself connection powered onGrade, the IPC for stopping the priority for priority lower than Target IP C according to the sequence of priority from low to high power, until NVRResidue output power consumption is greater than or equal to the operating power consumption of Target IP C, and does not have to specially go to close auxiliary device.
Wherein, when the priority in the IPC of NVR itself connection powered on there is no priority lower than Target IP CWhen the IPC of the priority of IPC or priority lower than Target IP C cannot still power after being turned off for Target IP C, NVR can stopFor Target IP C power supply.
Step 104 is powered for target PD equipment.
In the embodiment of the present invention, when NVR is by the auxiliary device for the IPC of closing itself connection powered on, so that remainingAfter exporting operating power consumption of the power consumption more than or equal to Target IP C, NVR can be attempted as Target IP C power supply.
Power supply success rate when further, in embodiments of the present invention, in order to guarantee that IPC accesses NVR, IPC initially connectWhen entering NVR, it can be not turned on any auxiliary device, to reduce operating power consumption.
Correspondingly, power supply plan provided in an embodiment of the present invention can with the following steps are included:
21) the auxiliary device unlatching request that the PD equipment of itself connection powered on is sent, is received, which opensRequest includes having powered on the mark and power consumption of the target auxiliary device of PD device request unlatching;
22), the power consumption that judgement exports power consumption and whether be greater than or equal to target auxiliary device when it is remaining;If so, going to stepRapid 23;Otherwise, step 24 is gone to;
23) this, is allowed to power on PD opening of device target auxiliary device;
24) this, is forbidden to power on PD opening of device target auxiliary device.
Specifically, in embodiments of the present invention, when IPC accesses NVR, and after power successfully, if certain is attached for the desired unlatching of IPCEquipment, IPC can send auxiliary device to NVR and open request, and it may include that IPC request is opened which, which opens in request,Auxiliary device (referred to herein as target auxiliary device) mark (as number) and power consumption.
After the auxiliary device that NVR receives IPC transmission opens request, remaining output power consumption and the auxiliary device can be comparedThe power consumption for the target auxiliary device for including in request is opened, if remaining output power consumption is greater than or equal to the function of target auxiliary deviceConsumption, i.e., remaining output power consumption are sufficient for the work requirements of target auxiliary device, then NVR can be returned to IPC and be allowed to open meshThe response of auxiliary device is marked, so that IPC opens target auxiliary device;Otherwise, NVR can be returned to IPC forbids unlatching target attachedThe response for belonging to equipment forbids IPC to open target auxiliary device.
Further, as an alternative embodiment, if remaining output power consumption is less than the power consumption of target auxiliary device,Before above-mentioned steps 24, can with the following steps are included:
Step 221) judges in the PD equipment of itself connection powered on the presence or absence of in the open state and priorityLower than the auxiliary device of the priority of target auxiliary device;
Step 222), if it exists then sends auxiliary device out code to corresponding PD equipment, until remaining output power consumptionMore than or equal to the power consumption of target auxiliary device;
Step 223) above-mentioned forbids the step of having powered on PD opening of device target auxiliary device otherwise, it determines executing.
Preferably, the priority of each auxiliary device can be pre-defined, POE port numbers as connected are smallThe priority of the auxiliary device of IPC equipment is higher than the priority of the auxiliary device of the big IPC equipment of connected POE port numbers;Alternatively, the priority of auxiliary device can be determined according to the working environment of IPC and the function of auxiliary device, such as when the time is inWhen the period for needing to illuminate, such as evening 8:00 to morning 6:00, the priority of the auxiliary device of illumination functions is higher than heating functionThe auxiliary device etc. of energy.
Correspondingly, when the NVR auxiliary device for target auxiliary device for receiving IPC transmission opens request, and residuePower consumption be less than target auxiliary device power consumption when, NVR can first judge whether there is it is in the open state, and priority be lower than meshMark the auxiliary device of the priority of auxiliary device;If it exists, NVR can send auxiliary device out code to corresponding IPC, withSo that corresponding IPC is closed corresponding auxiliary device, improve remaining output power consumption, until remaining output power consumption is greater than or equal to targetThe power consumption of auxiliary device;Otherwise, NVR can forbid the unlatching of target auxiliary device.
Wherein, in this embodiment, NVR is closed in the open state, and priority is excellent lower than target auxiliary deviceBefore the auxiliary device of first grade, it can also first judge that this is in the open state, and priority is preferential lower than target auxiliary deviceWhether the sum of the auxiliary device of grade and remaining output power consumption are greater than or equal to the power consumption of target auxiliary device;If so, on executingState close it is in the open state, and priority lower than target auxiliary device priority auxiliary device operation;Otherwise, forbidThe unlatching of target auxiliary device.
As it can be seen that in the method flow described in Fig. 1, when needing for Target IP C power supply, and remaining output power consumption is less than meshWhen marking the operating power consumption of IPC, it can first attempt by closing auxiliary device in the open state, rather than directly close IPCMode, to improve remaining output power consumption, to meet the work requirements of Target IP C, under the premise of gross output is fixed, energyIt is enough to power as far as possible for more IPC, improve power supply efficiency.
Fig. 2 is referred to, Fig. 2 is the flow diagram of another method of supplying power to provided in an embodiment of the present invention, such as Fig. 2 instituteShow, which may comprise steps of:
Step 201, when needing for the power supply of target PD equipment, and remaining output power consumption is less than the work function of target PD equipmentTime-consuming judges in the PD equipment of itself connection powered on the presence or absence of the PD equipment for opening auxiliary device.If so, going to stepRapid 202;Otherwise, step 205 is gone to.
Step 202 judges whether the sum of the sum of the power consumption of auxiliary device in the open state and residue output power consumption are bigIn or equal to target PD equipment operating power consumption.If so, going to step 203;Otherwise, step 205 is gone to.
Step 203 sends auxiliary device out code to the PD equipment for partly or entirely opening auxiliary device, so that attachedBelong to the power consumption that the remaining output power consumption after equipment is closed is greater than or equal to target PD equipment;Wherein, auxiliary device out code is usedAuxiliary device in the open state is closed in the PD equipment that instruction opens auxiliary device.
Step 204 is powered for target PD equipment.
In the embodiment of the present invention, the specific implementation of step 201~step 204 may refer to 101~step 104 of above-mentioned stepsIn associated description, details are not described herein for the embodiment of the present invention.
The sequence of the POE port numbers that step 205, the PD equipment powered on connected according to itself are connected from big to small is stoppedOnly the POE port numbers to have powered on, and having been connected are greater than the PD equipment power supply for the POE port numbers that target PD equipment is connected, directlyIt is greater than or equal to the operating power consumption of the target PD equipment to remaining output power consumption, alternatively, the port POE for having powered on and having been connectedNumber being greater than the PD equipment of POE port numbers that target PD equipment is connected has stopped powering.
In the embodiment of the present invention, when there is no the IPC for opening auxiliary device or in the open state is attached for NVR judgementWhen the sum of power consumption and the residue output power consumption for belonging to equipment are less than the operating power consumption of Target IP C, that is, close and be completely in open stateAuxiliary device when being still insufficient for the operating power consumption of Target IP C, NVR can not go specially to close in the open state attachedBelong to equipment, but can first judge whether there is connected POE port numbers greater than the Target IP C POE port numbers connectedIPC, and if it exists, then NVR can stop according to the sequence of the POE port numbers connected from big to small to have powered on, and be connectedPOE port numbers be greater than the PD equipment power supplies of the POE port numbers that are connected of Target IP C, until remaining output power consumption is greater than or waitsIn the operating power consumption of Target IP C, or power on and the POE port numbers that are connected are greater than the POE port numbers that Target IP C is connectedPD equipment with stop power supply.
The IPCn as an example it is assumed that NVR has connected IPC1, IPC2, IPC4 ..., wherein n >=5, and IPC1, IPC2,(i.e. IPC1 is connected to No. 1 port POE to the POE port numbers one-to-one correspondence that IPC4 ... IPCn is connected with NVR, and IPC2 is connected to No. 2The port POE);If a certain moment, NVR, which is detected, has plugged IPC3 on No. 3 ports POE, and NVR determines that remaining output power consumption is less thanThe operating power consumption of IPC3, meanwhile, the sum of the power consumption of auxiliary device in the open state and remaining output power consumption are less than IPC3'sOperating power consumption, at this point, NVR can first stop powering to IPCn, and attempt to be that IPC3 powers, if power supply is failed, furtherStop powering to IPCn-1, then attempts to power successfully up to for IPC3, or stop after powering for IPC4 still for IPC3 power supplyUntil cannot successfully powering for IPC3.
Through above description as can be seen that in technical solution provided in an embodiment of the present invention, when needing to set for target PDAvailable electricity, and when the remaining operating power consumption for exporting power consumption less than target PD equipment, pass through the PD powered on for judging itself connectionWith the presence or absence of opening the PD equipment of auxiliary device in equipment, and when it is present, further judge in the open state attachedThe operating power consumption whether the sum of the power consumption of equipment and remaining output power consumption are greater than or equal to target PD equipment is being judged as in turnWhen being, to the equipment side the PD auxiliary device out code for partly or entirely opening auxiliary device, so that after auxiliary device is closedRemaining output power consumption be greater than or equal to the operating power consumption of target PD equipment, and in the prior art directly by stopping as priorityLower IPC power supply is compared to be embodied as the scheme of the higher IPC power supply of priority, under the premise of gross output is fixed,It can power as far as possible for more IPC, improve power supply efficiency.
Fig. 3 is referred to, is a kind of structural schematic diagram of power supply unit provided in an embodiment of the present invention, wherein this is for DensoThe PSE device that can be applied in above method embodiment, such as NVR are set, as shown in figure 3, the power supply unit may include:
Power supply unit 310, for powering for power supply accepting device PD equipment;
Judging unit 320, for needing to power for target PD equipment when said supply unit 310, and remaining output power consumptionLess than the target PD equipment operating power consumption when, judge itself connection the PD equipment powered in the presence or absence of open it is attachedBelong to the PD equipment of equipment;
The judging unit 320, is also used to if it exists, then judges the power consumption and residue of auxiliary device in the open stateExport the operating power consumption whether the sum of power consumption is greater than or equal to the target PD equipment;
Transmission unit 330, for judging the power consumption of the auxiliary device in the open state when the judging unit 320When with the remaining operating power consumption for exporting the sum of power consumption more than or equal to the target PD equipment, opened to partly or entirely describedThe PD equipment of auxiliary device sends auxiliary device out code, so that the remaining output power consumption after auxiliary device is closed is greater than or waitsIn the operating power consumption of the target PD equipment;Wherein, the auxiliary device out code, which is used to indicate, opens auxiliary devicePD equipment closes auxiliary device in the open state;
Said supply unit 310 is also used to as target PD equipment power supply.
In an alternative embodiment, said supply unit 310 can be also used for opening when the judging unit 320 judgement is inWhen the sum of power consumption and the residue output power consumption for opening the auxiliary device of state are less than the operating power consumption of the target PD equipment, according to certainlyThe sequence of the Power over Ethernet POE port numbers that the PD equipment of body connection powered on is connected from big to small stops to have powered on,And the POE port numbers connected are greater than the PD equipment power supply for the POE port numbers that target PD equipment is connected, until remaining output workConsumption is greater than or equal to the operating power consumption of the target PD equipment, or has powered on and the POE port numbers that are connected are greater than target PDThe PD equipment for the POE port numbers that equipment is connected has stopped powering.
It referring to Figure 4 together, is the structural schematic diagram of another power supply unit provided in an embodiment of the present invention, the embodimentOn the basis of aforementioned embodiment illustrated in fig. 3, power supply unit shown in Fig. 4 can also include:
First receiving unit 340, for receiving the logon message for having powered on PD equipment of itself connection, the logon messageIn include described having powered on the open state of each auxiliary device of PD equipment and the power consumption of each auxiliary device;
Recording unit 350, for recording the open state for having powered on each auxiliary device of PD equipment and each attached settingStandby power consumption.
Please refer to fig. 5, for the structural schematic diagram of another power supply unit provided in an embodiment of the present invention, the embodimentOn the basis of aforementioned embodiment illustrated in fig. 3, power supply unit shown in Fig. 5 can also include:
Second receiving unit 360, the auxiliary device for having powered on the transmission of PD equipment for receiving itself connection open request,The auxiliary device opens the mark and power consumption that request includes the target auxiliary device for having powered on the unlatching of PD device request;
Correspondingly, the judging unit 320 can be also used for judging whether remaining output power consumption is greater than or equal to the meshMark the power consumption of auxiliary device;
Said supply unit 310, if can be also used for remaining output power consumption is greater than or equal to the target auxiliary devicePower consumption, then permission is described has powered on target auxiliary device described in PD opening of device;Otherwise, PD opening of device has been powered on described in forbiddingThe target auxiliary device.
It should be noted that in the concrete realization, the function of the first receiving unit 340 and the second receiving unit 360 can be withIt is realized by the same module, details are not described herein for the embodiment of the present invention.
In an alternative embodiment, the judging unit 320 can be also used for, when residue output power consumption is attached less than the targetWhen belonging to the power consumption of equipment, judge low with the presence or absence of in the open state and priority in the PD equipment of itself connection powered onIn the auxiliary device of the priority of the target auxiliary device;
The transmission unit 330 can be also used for existing when in the PD equipment of itself connection powered in opening stateState and priority lower than the priority of the target auxiliary device auxiliary device when, send and attached set to corresponding PD equipmentStandby out code, until remaining output power consumption is greater than or equal to the power consumption of the target auxiliary device;
Said supply unit 310 can be specifically used for when there is no be in open in the PD equipment of itself connection powered onOpen state and priority lower than the auxiliary device of the priority of the target auxiliary device, forbid described having powered on PD equipment and openingOpen the target auxiliary device.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatusRealization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method realityApply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unitThe unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be withIt is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actualThe purpose for needing to select some or all of the modules therein to realize the present invention program.Those of ordinary skill in the art are not payingOut in the case where creative work, it can understand and implement.
As seen from the above-described embodiment, when needing for the power supply of target PD equipment, and remaining output power consumption is less than target PD equipmentOperating power consumption when, set with the presence or absence of the PD for opening auxiliary device in the PD equipment powered on by judging itself connectionIt is standby, and when it is present, further judge whether the sum of power consumption and residue output power consumption of auxiliary device in the open state are bigIn or equal to target PD equipment operating power consumption, in turn, when being judged as YES, to the PD for partly or entirely opening auxiliary deviceEquipment side's auxiliary device out code, so that the remaining output power consumption after auxiliary device is closed is greater than or equal to target PD equipmentOperating power consumption, and in the prior art directly by stopping being that the lower IPC of priority powers and to be embodied as the higher IPC of priorityThe scheme of power supply is compared, and under the premise of gross output is fixed, can be powered as far as possible for more IPC, be improved power supplyEfficiency.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention itsIts embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes orPerson's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present inventionOr conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by followingClaim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, andAnd various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.