Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide method for controlling power supply, the device, equipment of a kind of low cost
And readable storage medium storing program for executing.
In a first aspect, a kind of method for controlling power supply, which comprises
Obtain the voltage value of equipment;The equipment is powered using collection of energy power supply mode;
According to the current working phase of the power consumption table of the preset equipment and the equipment, the target of the equipment is determined
Target charge value needed for working stage;The power consumption table be stored with the equipment the different operating stage and the different operating
The corresponding relationship of charge value needed for stage;The target operation stage include current working phase described in the power consumption table it
At least one working stage afterwards;
When the voltage value matches the target charge value, then the equipment is controlled into the target operation rank
Section.
In one of the embodiments, when the current working phase of the equipment is inactive stage, the target operation
When stage includes multiple startup stages after the inactive stage described in the power consumption table;
It is described according to the power consumption table of the preset equipment and the current working phase of the equipment, determine the equipment
Target charge value needed for the target operation stage, comprising:
According to the power consumption table of the preset equipment, charge value needed for obtaining the multiple startup stage;
The sum of charge value needed for calculating the multiple startup stage, as the electricity of target needed for the target operation stage
Magnitude;
It is described when the voltage value matches the target charge value, then control the equipment into the target work
Make the stage, comprising:
When the voltage value matches the target charge value, then the equipment is started according to default Booting sequence.
In one of the embodiments, the method also includes:
When the voltage value mismatches the target charge value, then the electricity according to needed for the multiple startup stage
Magnitude starts the equipment stage by stage.
In one of the embodiments, when the current working phase of the equipment is to have been turned on stage, the target operation
When stage includes at least one business processing stage after having been turned on the stage described in the power consumption table;
It is described when the voltage value matches the target charge value, then control the equipment into the target work
Make the stage, comprising:
When the target charge value needed for the voltage value matches the business processing stage, then the equipment is controlled
Handle the business processing stage corresponding business.
The control equipment handles the business processing stage corresponding business, packet in one of the embodiments,
It includes:
According to target charge value needed for the business processing stage and preset safety coefficient, the business processing is determined
Safe charge value needed for stage;
When the voltage value is less than the safe charge value, then by reducing the equipment in processing business process
In duty ratio handle the business to control the equipment.
In one of the embodiments, the method also includes:
When the voltage value mismatches the target charge value, then controls the equipment and enter dormant period.
In one of the embodiments, after controlling the equipment and entering dormant period, the method also includes:
The electricity difference between the target charge value and the voltage value is obtained, and according to the electricity difference
With the preset energy collection rate of the collection of energy power supply mode, expected dormancy time is determined;
When the expected dormancy time reach when, execute it is described obtain equipment voltage value the step of.
Second aspect, a kind of power supply control apparatus, described device include:
Electricity obtains module, for obtaining the voltage value of equipment;The equipment using collection of energy power supply mode into
Row power supply;
Target charge value determining module, for the work at present according to the power consumption table and the equipment of the preset equipment
Stage, target charge value needed for the target operation stage for determining the equipment;The power consumption table is stored with the equipment not
With the corresponding relationship of working stage and charge value needed for the different operating stage;The target operation stage includes the function
Consume at least one working stage after current working phase described in table;
Power control module, for when the voltage value matches the target charge value, then controlling the equipment
Into the target operation stage.
The third aspect, a kind of equipment, including collection of energy power supply unit, business execution unit, memory and processor, institute
It states memory and is stored with computer program, the collection of energy power supply unit is used to be supplied using collection of energy power supply mode
Electricity, the business execution unit perform the steps of when executing the computer program for executing business, the processor
Obtain the voltage value of equipment;The equipment is powered using collection of energy power supply mode;
According to the current working phase of the power consumption table of the preset equipment and the equipment, the target of the equipment is determined
Target charge value needed for working stage;The power consumption table be stored with the equipment the different operating stage and the different operating
The corresponding relationship of charge value needed for stage;The target operation stage include current working phase described in the power consumption table it
At least one working stage afterwards;
When the voltage value matches the target charge value, then the equipment is controlled into the target operation rank
Section.
Fourth aspect, a kind of readable storage medium storing program for executing are stored thereon with computer program, and the computer program is by processor
It is performed the steps of when execution
Obtain the voltage value of equipment;The equipment is powered using collection of energy power supply mode;
According to the current working phase of the power consumption table of the preset equipment and the equipment, the target of the equipment is determined
Target charge value needed for working stage;The power consumption table be stored with the equipment the different operating stage and the different operating
The corresponding relationship of charge value needed for stage;The target operation stage include current working phase described in the power consumption table it
At least one working stage afterwards;
When the voltage value matches the target charge value, then the equipment is controlled into the target operation rank
Section.
Above-mentioned method for controlling power supply, device, equipment and readable storage medium storing program for executing are powered for using collection of energy power supply mode
Equipment, since collection of energy power supply mode power supply capacity and stability are insufficient, if powered according to traditional in charging
Mode, then it is possible that the unexpected power down of equipment, voltage value can not holding equipment completely start or can not support to set
Standby complete situations such as executing current business, therefore the present embodiment is using the strategy for starting operation stage by stage and according to current
Charge value judges whether the steady power supply strategy for capableing of support target working stage, and be specifically as follows: the control unit of equipment is real
When obtain the voltage value of equipment, and according to the current working phase of equipment, the mesh of equipment is obtained from preset power consumption table
Target charge value needed for marking working stage, when voltage value matches the target charge value, control equipment enters the mesh
Working stage is marked, avoids needed for disposably starting running equipment that target charge value is excessively high to cause equipment to be chronically at waiting shape
State, at the same avoid the unexpected power down of above equipment, voltage value can not holding equipment completely start or can not holding equipment
Complete situations such as executing current business;In addition, the present embodiment is mainly the improvement of software aspects, thus compared to traditional scheme and
Speech, reduces costs, the scene suitable for low cost.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Method for controlling power supply provided by the present application can be applied in application environment as shown in Figure 1.Wherein, in Fig. 1
Equipment may include: collection of energy power supply unit 11, control unit 12, energy assessment unit 13 and business execution unit 14;Energy
Amount collects power supply unit and is used to charge by collection of energy modes such as solar energy, luminous energy, RF energy power supplies, and simultaneously to other
Unit is powered, charge value of the energy assessment unit for power supply in check and evaluation collection of energy power supply unit, and is fed back to
Control unit;Control unit according to the charge value of power supply for controlling the start or stop and process of service execution of equipment in real time;Business
Execution unit is used to execute the business of the equipment, if the equipment is antenna equipment, business predominantly detects antenna operation
Data are simultaneously reported to upper management equipment, if the equipment is server, business is mainly that user accesses business.
In one embodiment, as shown in Fig. 2, providing a kind of method for controlling power supply, it is applied in Fig. 1 in this way
It is illustrated for control unit, comprising the following steps:
S201 obtains the voltage value of equipment;The equipment is powered using collection of energy power supply mode.
It is understood that the current electric quantity of equipment can for equipment be currently able to using electric energy charge value.Work as institute
When the collection of energy power supply unit for stating equipment includes multiple power supplys, the current electric quantity of the available the multiple power supply of control unit
Value, and sum and obtain the voltage value of the equipment.
The charge value of the equipment, which can be above-mentioned energy assessment unit and detect to assess after the power supply of the equipment, to be obtained simultaneously
Control unit is fed back to, is also possible to control unit and directly assesses obtain;Evaluation process may include: to obtain working as power supply
Preceding voltage value calculates the charge value of the equipment according to the current voltage value and default power parameter.Illustratively, equipment
Power supply be capacitive energy storage element, then charge value E=1/2C (U1 2-U2 2), wherein C is the capacitance of power supply, U1For working as power supply
Preceding voltage value, U2For the safe voltage value of power supply;The safe voltage value is greater than or equal to the minimum value of power supply, power supply
Minimum value be power supply itself security feature determine;Similarly, which is greater than or equal to equipment institute
The minimum value needed avoids the occurrence of device looses power and the problems such as business is unable to complete.Wherein, control unit is available
The current voltage analog signal of power supply, and the current voltage analog signal is subjected to analog-to-digital conversion, obtain working as the power supply
Preceding voltage value.Optionally, control unit can obtain the voltage value of equipment according to predetermined period.
The equipment can charge to power supply using collection of energy modes such as solar energy, luminous energy, RF energy power supplies,
Therefore the charge value of the equipment may increase in real time when equipment is in hibernation.
S202 determines the equipment according to the current working phase of the power consumption table of the preset equipment and the equipment
The target operation stage needed for target charge value;The power consumption table be stored with the equipment the different operating stage and it is described not
With the corresponding relationship of charge value needed for working stage;The target operation stage includes work at present described in the power consumption table
At least one working stage after stage.
Referring to shown in following table, show a kind of schematic diagram of power consumption table, be stored with the equipment the different operating stage and
The corresponding relationship of charge value needed for the different operating stage:
Wherein, in the power consumption table of above-mentioned example working stage be from top to bottom according to it is preset execute it is tactic,
Inactive stage, one or more startup stages, one or more business processing stages and closed stage can be generally included.
The target operation stage may include N number of working stage after current working phase described in the power consumption table, and N is big
In or be equal to 1, can be set according to actual needs;Different values can also be set according to different current working phases, with
Adapt to different scenes demand.Wherein, when the target operation stage includes multiple working stages, the target operation of the equipment is determined
Target charge value needed for stage, comprising: multiple electricity needed for obtaining the target operation stage corresponding multiple working stages
Magnitude is simultaneously summed, using summed result as target charge value needed for the target operation stage.Illustratively, if work at present
Stage was the first business processing stage, then the target operation stage can be at least one work after the first business processing stage
Stage, such as the second business processing stage or second and third business processing stage;Correspondingly, needed for the target operation stage
Target charge value be respectively as follows: 2mWh or 7mWh.
It is understood that charge value needed for the different operating stage of the equipment can measure acquisition in advance;Specifically
Ground, such as the operating current I for a certain business processing stage, when available business executesi, operating voltage Ui, and execute
Time ti, then charge value W needed for the business processing stagei=UiIiti。
It should be noted that the current working phase of the equipment can be according to the current work of equipment in a kind of implementation
Make the electrical parameters such as voltage or working current value to determine.
S203 then controls the equipment into the target when the voltage value matches the target charge value
Working stage.
Illustratively, the voltage value matches the target charge value, may include: that the voltage value is greater than
Or it is equal to the target charge value;It may include: that the difference of the voltage value and the target charge value is greater than or equal to
Preset safe charge value;May include: the voltage value and the target charge value ratio be greater than or equal to it is default
Safety coefficient, wherein safe charge value or safety coefficient be in view of power source life, power safety or power supply safety etc. because
Set by element.For example, safety coefficient can be 1.5, i.e., as E >=1.5W, control unit determines that voltage value matches mesh
Mark charge value.In one embodiment, the power consumption table is also stored with the different operating stage corresponding difference of the equipment
Safety coefficient or different safe charge values;For example, the security requirement in business processing stage is higher than startup stage, then business processing
The safety coefficient in stage or safe charge value are higher than the analog value of startup stage.
It is understood that when the voltage value matches the target charge value, it is meant that the electricity of current device
Source can then control the equipment into the target operation stage with holding equipment electricity needed for the target operation stage.It can
With understanding, at the end of the target operation stage, the equipment can be waited, and recycled according to predetermined period and executed institute
Step 201-203 is stated, i.e. starting operation by stages.Because the collection of energy power supply unit of equipment can constantly be filled to power supply
Electricity, therefore when power supply sufficient (voltage value matches target charge value), it can control the equipment into the target work
Make the stage;When power supply deficient (voltage value mismatches target charge value), it can control the equipment waiting and poll set
Standby power supply, until power supply is sufficient.
In short, the method for controlling power supply of the present embodiment, for the equipment using the power supply of collection of energy power supply mode, due to energy
Amount collects power supply mode power supply capacity and stability is insufficient, if by it is traditional in charging while power in the way of, possibility
Will appear the unexpected power down of equipment, voltage value can not holding equipment completely start or can not holding equipment completely execute currently
Situations such as business, therefore the present embodiment judges whether using the strategy for starting operation stage by stage and according to voltage value
It is capable of the steady power supply strategy of support target working stage, be specifically as follows: the control unit of equipment obtains working as equipment in real time
Preceding charge value, and according to the current working phase of equipment, needed for the target operation stage for obtaining equipment in preset power consumption table
Target charge value, voltage value match the target charge value when, control equipment enter the target operation stage, avoid
Target charge value is excessively high needed for disposable starting running equipment causes equipment to be chronically at wait state, while avoiding above-mentioned
The unexpected power down of equipment, voltage value can not holding equipment completely start or can not holding equipment completely execute current business etc.
Situation;In addition, the present embodiment is mainly the improvement of software aspects, therefore for traditional scheme, is reduced costs, it is applicable in
In the scene of low cost.
Optionally, referring to shown in Fig. 3, the present embodiment is related to the power supply control process of the startup stage of the equipment;Specifically
Ground, when the current working phase of the equipment is the inactive stage, the target operation stage includes described in the power consumption table
When multiple startup stages after the inactive stage, the power supply control process of the startup stage may include:
S301, according to the power consumption table of the preset equipment, charge value needed for obtaining the multiple startup stage.
Illustratively, referring to the power consumption table of above-mentioned example, when current working phase is the inactive stage, and the target work
When making the stage including the first startup stage and the second startup stage, charge value needed for the multiple startup stage, comprising: described
Charge value needed for first startup stage and charge value needed for second startup stage.Wherein, the stage of the starting of equipment
Number it is generally fixed, viewing system complexity and power consumption condition are determined, it is proposed that are no more than 5 stages.
It is understood that control unit can establish when the current working phase of the equipment is the inactive stage
Good basic operation context, establishes the running environment of power supply control program, then executes power supply control program and realizes this reality
Apply the method for controlling power supply of example.
In one embodiment, before the S301, the available preset entire starting rank of described control unit
The starting charge value of Duan Suoxu;When the voltage value matches the starting charge value, then started according to preset standard
Equipment described in flow startup;When the voltage value mismatches the starting charge value, then into the S301 the step of,
Started stage by stage.
S302, the sum of charge value needed for calculating the multiple startup stage, as needed for the target operation stage
Target charge value.
It is understood that illustratively, target charge value needed for the above-mentioned target operation stage is above-mentioned first starting
The sum of charge value needed for stage and charge value needed for second startup stage, i.e. 0.5+0.3=0.8mWh.
S303, when the voltage value matches the target charge value, then according to the starting of default Booting sequence
Equipment.
Illustratively, when the voltage value matches the target charge value, then according to first startup stage
Corresponding default Booting sequence starts the equipment, and after first startup stage, according to second starting
Stage, corresponding default Booting sequence started the equipment.
Generally, the starting work that equipment needs to carry out during startup multiple stages is needed by taking the divided antenna of room as an example
It initialized, load the start-up courses such as main program, configuration work parameter.Therefore, illustratively, above-mentioned first startup stage pair
The default Booting sequence answered may include the process of initialization, and the second startup stage corresponding default Booting sequence may include adding
The process of main program is carried, third startup stage corresponding default Booting sequence may include the process of configuration work parameter.
It is understood that then being opened according to the multiple when the voltage value mismatches the target charge value
Charge value needed for the dynamic stage, starts the equipment stage by stage.Such as the example for the above-mentioned target operation stage, work as when described
When charge value needed for preceding charge value matches first startup stage, then opened according to first startup stage corresponding preset
Equipment described in dynamic flow startup, that is, initialized;After the equipment waits for a period of time, reacquire voltage value with
And charge value needed for second startup stage, the electricity needed for the voltage value matches second startup stage
When value, then the equipment is started according to second startup stage corresponding default Booting sequence.
The method for controlling power supply of the present embodiment can avoid disposable in the start-up course of equipment by starting stage by stage
Target charge value is excessively high needed for starting running equipment causes equipment to be chronically at wait state, while avoiding voltage value
Can not holding equipment completely start cause waste electricity the case where.
Optionally, the present embodiment is related to the power supply control process in the business processing stage of the equipment;Specifically, when described
The current working phase of equipment is to have been turned on the stage, and the target operation stage includes having been turned on the stage described in the power consumption table
When at least one business processing stage later, the power supply control process in the business processing stage may include: that work as when described
When target charge value needed for preceding charge value matches the business processing stage, then controls the equipment and handle the business processing
Stage corresponding business.Specifically, control unit can send the mark in the target operation stage to business execution unit, with
Indicate that the business execution unit executes the business processing stage corresponding with the mark according to the mark.The confession of the present embodiment
Electric control method can cause equipment to be chronically at waiting to avoid target charge value is excessively high needed for disposably executing all business
State, at the same avoid voltage value can not holding equipment completely execute all business cause waste electricity the case where and industry
Situations such as business stops suddenly.In addition, the target charge value needed for the voltage value mismatches the business processing stage
When, then it can postpone or cancel the business in the business processing stage.
In one embodiment, business needed for the described control unit available preset entire business processing stage
Handle charge value;When the voltage value matches the business processing charge value, then handled according to preset benchmark service
Equipment described in Row control carries out business processing;When the voltage value mismatches the business processing charge value, then hold
The process of the row treatment by stages business.
Specifically, referring to shown in Fig. 4, the control equipment handles the business processing stage corresponding business, tool
Body may include:
S401 determines the industry according to target charge value needed for the business processing stage and preset safety coefficient
Safe charge value needed for business processing stage.
For different business processing stage, safety coefficient can be different.It illustratively, is the when the business processing stage
When two business processing stages, above-mentioned preset safety coefficient can be 1.5, and safe charge value is 5 × 1.5=7.5mWh at this time.
S402, when the voltage value is less than the safe charge value, then by reducing the equipment in processing industry
Duty ratio during business handles the business to control the equipment.
At this point, the voltage value is greater than the target charge value, for example, 6mWh, but voltage value is less than at this time
The safe charge value, then meaning equipment, there are still can not completely execute business within execution the second business processing stage
Larger possibility, duty ratio of equipment during processing business can be reduced to control the equipment and handle the industry
Business, wherein duty ratio can be understood as equipment within the business processing stage, carry out working times of the operations such as high power consumption with
The ratio of total time needed for the business processing stage.Illustratively, for the divided antenna equipment of room, active part master
If monitoring control business, needs periodically to carry out the detection of antenna operating parameter and be communicated with upper management equipment, report ginseng
Number receives instruction, therefore can turn down the frequency for reporting parameter, is such as once reduced to 5 minutes once by 1 minute.
In one embodiment, control unit can reduce the duty ratio during processing business according to preset step-length.
It is understood that reducing duty ratio is equivalent to the electric quantity consumption speed for reducing equipment during processing business
Rate, therefore can take precautions against and execute power consumption increased risk suddenly in business procedure, avoid increasing suddenly because of power consumption cause because
The case where not enough power supply business stops suddenly.
Optionally, when the present embodiment is related to voltage value mismatch target charge value, control unit controls equipment and enters
The process of dormant period;It can specifically include: when the voltage value mismatches the target charge value, then being set described in control
It is standby to enter dormant period.When the voltage value mismatches the target charge value, it is meant that the power supply of current device can not
Holding equipment electricity needed for the target operation stage is easy to draw if controlling the equipment into the target operation stage
The problems such as now device looses power and business are unable to complete is issued, therefore control unit control equipment enters dormant period, and equipment is avoided to consume
The increase of electricity, while the collection of energy power supply unit of equipment can be constantly to power source charges, it is possible to reduce when the waiting of equipment
Between.
In one embodiment, referring to Figure 5, after controlling the equipment and entering dormant period, the method is also
May include:
S501 obtains the electricity difference between the target charge value and the voltage value, and according to the electricity
The preset energy collection rate of difference and the collection of energy power supply mode is measured, determines expected dormancy time.
Above-mentioned preset energy collection rate when can be control unit according to dormant period the equipment in different time
Charge value, the charge value rate of change being calculated are also possible to the pre- collection of energy rate for first passing through test and obtaining.A kind of reality
It applies in mode, control unit can be according to the preset energy collection rate of above-mentioned electricity difference and the collection of energy power supply mode
Ratio, obtain expected dormancy time.In addition, control unit be also conceivable to above-mentioned safety coefficient or safe charge value etc. because
Element extends above-mentioned expected dormancy time.
S502, when the expected dormancy time reach when, execute it is described obtain equipment voltage value the step of.
When above-mentioned expected dormancy time reaches, it is meant that electricity is abundant, above-mentioned because voltage value mismatches target electricity
The step of target operation stage that magnitude causes equipment that can not carry out can carry out, execute the 201-203;Compared to
For scheme of the predetermined period to carry out 201-203, the method for controlling power supply of the present embodiment is guaranteeing expected dormancy time
It is able to carry out when arrival on the basis of the above-mentioned target operation stage, reduces dormancy time, while reducing excessively frequent progress
Caused by 201-202 step the problem of waste electricity.
It should be understood that although each step in the flow chart of Fig. 2-5 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-5
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
In one embodiment, as shown in fig. 6, providing a kind of power supply control apparatus, comprising: electricity acquisition module 61,
Target charge value determining module 62 and power control module 63, in which:
Electricity obtains module 61, for obtaining the voltage value of equipment;The equipment uses collection of energy power supply mode
It is powered;
Target charge value determining module 62, for according to the power consumption table of the preset equipment and the current work of the equipment
Make the stage, target charge value needed for the target operation stage for determining the equipment;The power consumption table is stored with the equipment
The corresponding relationship of charge value needed for different operating stage and the different operating stage;The target operation stage includes described
At least one working stage after current working phase described in power consumption table;
Power control module 63, for when the voltage value matches the target charge value, then being set described in control
It is standby to enter the target operation stage.
Optionally, referring to shown in Fig. 7, on the basis of Fig. 6, when the current working phase of the equipment is inactive rank
Section, when the target operation stage includes multiple startup stages after the inactive stage described in the power consumption table;The mesh
Marking charge value determining module 62 may include:
Start charge value acquiring unit 621 and obtains the multiple starting for the power consumption table according to the preset equipment
Charge value needed for stage;
First object charge value determination unit 622 is made for the sum of charge value needed for calculating the multiple startup stage
For target charge value needed for the target operation stage;
The power control module 63 may include:
Start control unit 631, for when the voltage value matches the target charge value, then opening according to default
Equipment described in dynamic flow startup.
Optionally, referring to shown in Fig. 7, described device can also include:
Starting module 64 stage by stage are used for when the voltage value mismatches the target charge value, then according to institute
Charge value needed for stating multiple startup stages starts the equipment stage by stage.
Optionally, referring to shown in Fig. 7, when the current working phase of the equipment is to have been turned on stage, the target operation
When stage includes at least one business processing stage after having been turned on the stage described in the power consumption table;The power supply control mould
Block 63 may include:
Business processing control unit 632, for the mesh needed for the voltage value matches the business processing stage
When marking charge value, then controls the equipment and handle the business processing stage corresponding business.
Optionally, the business processing control unit is specifically used for the target electricity according to needed for the business processing stage
Value and preset safety coefficient, safe charge value needed for determining the business processing stage;When the voltage value is less than
When the safe charge value, then handled by reducing duty ratio of equipment during processing business to control the equipment
The business.
Optionally, described device can also include:
Suspend mode control module 65 then controls the equipment when the voltage value mismatches the target charge value
Into dormant period.
Optionally, after controlling the equipment and entering dormant period, described device can also include:
Dormancy time determining module 66, it is poor for obtaining the electricity between the target charge value and the voltage value
Value, and according to the preset energy collection rate of the electricity difference and the collection of energy power supply mode, determine expected suspend mode
Time;
Suspend mode stopping modular 67, for executing the current electricity for obtaining equipment when the expected dormancy time reaches
The step of magnitude.
In short, the power supply control apparatus of the present embodiment can be to avoid target charge value needed for disposable starting running equipment
It is excessively high that equipment is caused to be chronically at wait state, at the same avoid the unexpected power down of above equipment, voltage value can not be supported to set
Standby complete starting can not holding equipment situations such as completely executing current business;In addition, the present embodiment is mainly software aspects
Improvement reduce costs therefore for traditional scheme, the scene suitable for low cost.
Specific about power supply control apparatus limits the restriction that may refer to above for method for controlling power supply, herein not
It repeats again.Modules in above-mentioned power supply control apparatus can be realized fully or partially through software, hardware and combinations thereof.On
Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form
In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of equipment, including collection of energy power supply unit, memory and processor, institute are provided
It states memory and is stored with computer program, the collection of energy power supply unit is used to be supplied using collection of energy power supply mode
Electricity, the business execution unit perform the steps of when executing the computer program for executing business, the processor
Obtain the voltage value of equipment;The equipment is powered using collection of energy power supply mode;
According to the current working phase of the power consumption table of the preset equipment and the equipment, the target of the equipment is determined
Target charge value needed for working stage;The power consumption table be stored with the equipment the different operating stage and the different operating
The corresponding relationship of charge value needed for stage;The target operation stage include current working phase described in the power consumption table it
At least one working stage afterwards;
When the voltage value matches the target charge value, then the equipment is controlled into the target operation rank
Section.
In one embodiment, when the current working phase of the equipment is inactive stage, the target operation stage
When including multiple startup stages after the inactive stage described in the power consumption table;Processor goes back reality when executing computer program
Existing following steps: according to the power consumption table of the preset equipment, charge value needed for obtaining the multiple startup stage;Calculate institute
The sum of charge value needed for stating multiple startup stages, as target charge value needed for the target operation stage;Work as when described
When preceding charge value matches the target charge value, then the equipment is started according to default Booting sequence.
In one embodiment, it also performs the steps of when processor executes computer program when the voltage value
When mismatching the target charge value, then the charge value according to needed for the multiple startup stage, starts the equipment stage by stage.
In one embodiment, when the current working phase of the equipment is to have been turned on stage, the target operation stage
When including having been turned at least one business processing stage after the stage described in the power consumption table;Processor executes computer journey
When also performing the steps of the target charge value needed for the voltage value matches the business processing stage when sequence, then
It controls the equipment and handles the business processing stage corresponding business.
In one embodiment, it also performs the steps of when processor executes computer program according to the business processing
Target charge value and preset safety coefficient needed for stage, safe charge value needed for determining the business processing stage;When
When the voltage value is less than the safe charge value, then by reducing duty ratio of equipment during processing business
The business is handled to control the equipment.
In one embodiment, it also performs the steps of when processor executes computer program when the voltage value
When mismatching the target charge value, then controls the equipment and enter dormant period.
In one embodiment, also performed the steps of when processor executes computer program control the equipment into
After entering dormant period, the electricity difference between the target charge value and the voltage value is obtained, and according to the electricity
The preset energy collection rate of difference and the collection of energy power supply mode is measured, determines expected dormancy time;When the expection is stopped
Sleep the time reach when, execute it is described obtain equipment voltage value the step of.
Referring to shown in Fig. 8, show the schematic diagram of above equipment, wherein processor 81 can by bus 82 with it is described
Memory 83, the collection of energy power supply unit 84, the business execution unit 85 connection;The collection of energy power supply unit is also
It is powered by the bus 82.The collection of energy power supply unit may include energy conversion circuit, power-switching circuit,
Capacitive energy storage component etc..Optionally, the equipment is internet of things equipment.It is understood that above-mentioned processor and memory
The control unit being equivalent in Fig. 1;Above equipment can also include the energy assessment unit in Fig. 1.
It will be understood by those skilled in the art that structure shown in Fig. 8, only part relevant to application scheme is tied
The block diagram of structure, does not constitute the restriction for the equipment being applied thereon to application scheme, and specific equipment may include than figure
Shown in more or fewer components, perhaps combine certain components or with different component layouts.
In one embodiment, a kind of readable storage medium storing program for executing is provided, computer program, computer program are stored thereon with
It is performed the steps of when being executed by processor
Obtain the voltage value of equipment;The equipment is powered using collection of energy power supply mode;
According to the current working phase of the power consumption table of the preset equipment and the equipment, the target of the equipment is determined
Target charge value needed for working stage;The power consumption table be stored with the equipment the different operating stage and the different operating
The corresponding relationship of charge value needed for stage;The target operation stage include current working phase described in the power consumption table it
At least one working stage afterwards;
When the voltage value matches the target charge value, then the equipment is controlled into the target operation rank
Section.
In one embodiment, when the current working phase of the equipment is inactive stage, the target operation stage
When including multiple startup stages after the inactive stage described in the power consumption table;When computer program is executed by processor also
Perform the steps of the power consumption table according to the preset equipment, charge value needed for obtaining the multiple startup stage;It calculates
The sum of charge value needed for the multiple startup stage, as target charge value needed for the target operation stage;When described
When voltage value matches the target charge value, then the equipment is started according to default Booting sequence.
In one embodiment, it also performs the steps of when computer program is executed by processor when the current electric quantity
When value mismatches the target charge value, then the charge value according to needed for the multiple startup stage, sets described in starting stage by stage
It is standby.
In one embodiment, when the current working phase of the equipment is to have been turned on stage, the target operation stage
When including having been turned at least one business processing stage after the stage described in the power consumption table;Computer program is by processor
When also performing the steps of the target charge value needed for the voltage value matches the business processing stage when execution,
It then controls the equipment and handles the business processing stage corresponding business.
In one embodiment, it also performs the steps of when computer program is executed by processor according at the business
Target charge value and preset safety coefficient needed for the reason stage, safe charge value needed for determining the business processing stage;
When the voltage value is less than the safe charge value, then by reducing duty of equipment during processing business
Than handling the business to control the equipment.
In one embodiment, it also performs the steps of when computer program is executed by processor when the current electric quantity
When value mismatches the target charge value, then controls the equipment and enter dormant period.
In one embodiment, it is also performed the steps of when computer program is executed by processor and is controlling the equipment
Into after dormant period, the electricity difference between the target charge value and the voltage value is obtained, and according to described
The preset energy collection rate of electricity difference and the collection of energy power supply mode determines expected dormancy time;When the expection
Dormancy time reach when, execute it is described obtain equipment voltage value the step of.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.