CN105302275B - The method and terminal of a kind of power energy allocation - Google Patents

The method and terminal of a kind of power energy allocation Download PDF

Info

Publication number
CN105302275B
CN105302275B CN201510629032.2A CN201510629032A CN105302275B CN 105302275 B CN105302275 B CN 105302275B CN 201510629032 A CN201510629032 A CN 201510629032A CN 105302275 B CN105302275 B CN 105302275B
Authority
CN
China
Prior art keywords
electricity
operating system
distribution
terminal
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510629032.2A
Other languages
Chinese (zh)
Other versions
CN105302275A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201510629032.2A priority Critical patent/CN105302275B/en
Publication of CN105302275A publication Critical patent/CN105302275A/en
Application granted granted Critical
Publication of CN105302275B publication Critical patent/CN105302275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The present invention provides a kind of method and terminal of power energy allocation, and the method for wherein power energy allocation includes:Obtain the real time electrical quantity of each operating system in terminal and distributed to the distribution electricity of each operating system, the distribution electricity summation of multiple operating systems is less than or equal to the total electricity of end cell;If the real time electrical quantity of currently used operating system reaches threshold value, produce one and remind currently used operating system to need to feed the prompting instruction of electricity;Obtain the response of the determination supply electricity for reminding instruction to return;According to response, supply electricity is obtained in the dump energy beyond the distribution electricity of currently used operating system.So when the real time electrical quantity of currently used operating system reaches threshold value, only need after prompting instruction is received, supply electricity is carried out from other dump energies, the problem of in the absence of energy saver mode reduction Consumer's Experience is switched to, and user is it is also known that continuation of the journey progress reasonable arrangement, improves Consumer's Experience effect.

Description

The method and terminal of a kind of power energy allocation
Technical field
The present invention relates to the communications field, more particularly to the method and terminal of a kind of power energy allocation.
Background technology
With developing rapidly for mobile terminal, mobile terminal gradually penetrates into various aspects, on the live and work of people All it is closely connected with mobile terminal.
More and more large-scale highly energy-consumings, applying for high power consumption are run in terminal, and the thing followed is mobile terminal standby The too short problem of duration.Power consumption is too fast, standby time denounced as maximum less than one day, drastically influence the experience of user.Especially It is when outgoing, and playing youngster's big game or can see video, just be difficult to support the darg time.At present, for movement Terminal solves the inconvenience brought because power consumption is too fast, mainly by increasing battery capacity, being equipped with portable power source, using fast charge skill The hardware aspects such as art are started with.Meanwhile optimization is have also been made in software aspects, as user can select to enter battery saving mode, pass through drop Low screen intensity, the means such as bluetooth or wifi are closed to reach the purpose of reduction power consumption.
The existing scheme for improving endurance, which has, sets multiple operating systems, and one of operating system is normal use Pattern, another operating system are energy saver modes.Section can be switched in normal use pattern when electricity reaches certain threshold value Energy pattern, but such switching can cause user inconvenient for use, reduce Consumer's Experience.
The content of the invention
The purpose of the embodiment of the present invention is the method and terminal for providing a kind of power energy allocation, more in the prior art to solve The problem of user is inconvenient for use caused by operating system switches and Consumer's Experience reduces.
To achieve these goals, the method for a kind of power energy allocation provided in an embodiment of the present invention, including:
Obtain the real time electrical quantity of each operating system in terminal and distributed to the distribution electricity of each operating system, institute The distribution electricity summation for stating multiple operating systems is less than or equal to the total electricity of the end cell;
If the real time electrical quantity of currently used operating system reaches threshold value, produce one and remind the currently used operation System needs to feed the prompting instruction of electricity;
Obtain the response for the determination for reminding instruction the to return supply electricity;
According to the response, supply electricity is obtained in the dump energy beyond the distribution electricity of currently used operating system Amount.
The embodiment of the present invention also provides a kind of terminal, including:
First acquisition module, for obtaining the real time electrical quantity of each operating system in terminal and having distributed to each operation The distribution electricity of system, the distribution electricity summation of multiple operating systems of the terminal are less than or equal to the total of the end cell Electricity;
Generation module, if the real time electrical quantity for currently used operating system reaches threshold value, produce described in a prompting Currently used operating system needs to feed the prompting instruction of electricity;
Second acquisition module, for obtaining the response for the determination for reminding instruction the to return supply electricity;
First control module, for according to the response, remaining beyond electricity to be distributed from currently used operating system Supply electricity is obtained in remaining electricity.
The above-mentioned technical proposal of the embodiment of the present invention has the beneficial effect that:
In the scheme of the embodiment of the present invention, it is less than preset threshold value in the real time electrical quantity of the currently used operating system of terminal When, whether will produce the currently used operating system of a prompting needs to feed the prompting instruction of electricity, need to carry out really Electricity is fed, so as to which when needing to carry out supply electricity, the residue beyond the distribution electricity of currently used operating system is electric Supply electricity is obtained in amount.So when the real time electrical quantity of currently used operating system reaches threshold value, it is only necessary to receiving Remind instruction after, carry out supply electricity from other dump energies, in the absence of be switched to energy saver mode reduce Consumer's Experience the problem of, And user is it is also known that continuation of the journey carries out reasonable arrangement (whether see from other dump energies carry out supply electricity);It also ensure that terminal There is available power to be supported for important thing;Appearance be also avoid because of using terminal without limit, preventing from causing delay causes last electricity The problem of amount exhausts and influences important thing;User is improved to the independence of terminal control and the experience effect of user simultaneously.
Brief description of the drawings
Fig. 1 is the step schematic diagram of the method for the power energy allocation of first embodiment of the invention;
Fig. 2 is the step schematic diagram of the method for the power energy allocation of second embodiment of the invention;
Fig. 3 is the step schematic diagram of the method for the power energy allocation of third embodiment of the invention;
Fig. 4 is the step schematic diagram of the method for the power energy allocation of fourth embodiment of the invention;
Fig. 5 is the step schematic diagram of the method for the power energy allocation of fifth embodiment of the invention;
Fig. 6 is the step schematic diagram of the method for the power energy allocation of sixth embodiment of the invention;
Fig. 7 is one of overall implementation process figure of the embodiment of the present invention;
Fig. 8 is the step schematic diagram of the method for the power energy allocation of seventh embodiment of the invention;
Fig. 9 is one of overall implementation process figure of the embodiment of the present invention;
Figure 10 is the structural representation between the modules of the terminal of eighth embodiment of the invention.
Embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and tool Body embodiment is described in detail.
The embodiment of the present invention is for multiple operating systems are to terminal in the prior art, in normal use pattern In can be switched to energy saver mode when electricity reaches certain threshold value, but such switching can cause user inconvenient for use, reduce The problem of Consumer's Experience, there is provided the method and terminal of a kind of power energy allocation.
First embodiment
As shown in figure 1, the method for the power energy allocation, can include:
Step 11, obtain the real time electrical quantity of each operating system in terminal and distributed to the distribution of each operating system Electricity, the distribution electricity summation of the multiple operating system are less than or equal to the total electricity of the end cell;
Here terminal can have multiple operating systems, it is necessary to be set in advance to each operating system identical or different Distribute electricity.It is relatively-stationary electricity to distribute electricity, can't be changed with the real time electrical quantity that terminal uses.When wherein one When there is no real time electrical quantity in individual operating system, obtained from other operating systems, it is more by the way that the total electricity of terminal is distributed Place, not only facilitate user and independently distribute the use electricity of different operating system, and be also convenient for user and fed electricity.
Above-mentioned distribution electricity can obtain the electricity needed for each operating system according to user's request or commercial measurement Value.It can be typically allocated according to the percentage of total electricity:For example terminal shares three operating systems, to first operation The 25% of system distribution total electricity, the 40% of second operating system distribution total electricity, the 3rd operating system distribution total electricity 35%;Certainly each operating system can also directly distribute charge value, such as terminal total electricity is 2000mA, distribution now 600mA gives A operating systems, and distribution 900mA gives B operating systems, and distribution 500mA give C operating systems;Further, each operating system Can also mean allocation total electricity, such as terminal total electricity is 2100mA, distributes 700mA now and gives A operating systems, distributes 700mA gives B operating systems, and distribution 700mA give C operating systems, and being merely illustrative each operating system above certainly is distributed Charge value, the method for salary distribution of the concrete application embodiment of the present invention belongs to the protection domain of the embodiment of the present invention, differs herein One citing.
Step 12, if the real time electrical quantity of currently used operating system reaches threshold value, the prompting of generation one is described currently to be made Operating system needs to feed the prompting instruction of electricity;
Preset threshold value mentioned here be according to user's request be configured, it is necessary to threshold value when feeding electricity;Typically The preset threshold value has been according to the one percentage electricity of electric quantity consumption for distributing to the operating system and a numerical value setting, by In distributing to the electricity of the operating system determined according to user's request, therefore the preset threshold value is also true according to user's request Fixed, preset electricity when such user can be allocated electricity and remind according to self-demand can so as to improve user Operability and Consumer's Experience effect.
In addition, supply electricity mentioned here can also be set according to user's request, can be that how many electricity consumed Amount, then feed how many electricity.But if the numerical value of preset threshold value setting differs few with original distribution electricity, gone according to consumption The mode of supply, the prompting for needing to feed electricity is easily frequently occurred, can also influence Consumer's Experience.Therefore the embodiment of the present invention can Be preferably according to user's request select supply electricity so not only meet user current supply demand, and can also one Secondary supply in place, avoids and repeatedly receives prompting instruction, and such Consumer's Experience can be more preferable.
Step 13, the response for the determination for reminding instruction the to return supply electricity is obtained;
When reminding, user can choose whether to allow to supplement electricity, can also select to be switched to other operation systems System.This step obtains the selection of user, when user allows to supplement electricity, obtains the finger for allowing to feed electricity that user returns Order.
Step 14, according to the response, obtained in the dump energy beyond the distribution electricity of currently used operating system Take supply electricity.
In first embodiment of the invention, when the real time electrical quantity of the currently used operating system of terminal is less than preset threshold value, Whether the currently used operating system of a prompting, which will be produced, is needed to feed the prompting instruction (step 12) of electricity, need really Supply electricity is carried out, so as to which when needing to carry out supply electricity, remaining beyond electricity is distributed from currently used operating system Supply electricity (step 14) is obtained in remaining electricity.When the real time electrical quantity of currently used operating system reaches threshold value, actually The real time electrical quantity of currently used operating system is still not zero.The real time electrical quantity of currently used operating system simply distributes electricity A part of electricity.The electricity outside distribution electricity in currently used operating system does not include the reality of current operation system When electricity.Dump energy beyond the distribution electricity of currently used operating system is also real-time not comprising current operation system Electricity.Only need after receiving and reminding instruction, supply electricity is carried out from other dump energies, in the absence of being switched to energy saver mode The problem of reducing Consumer's Experience, and user (sees whether mended from other dump energies it is also known that continuation of the journey carries out reasonable arrangement To electricity);It also ensure that terminal has available power to be supported for important thing;Appearance be also avoid because without limit using eventually End, prevent from causing delay the problem of causing last electricity to exhaust and influence important thing;Improve simultaneously user to terminal control from Main property and the experience effect of user.
Above-mentioned first embodiment applicating example is specifically directed to, such as when user is playing game or seeing video, because It is full frame to check current remaining electricity in real time, it is unclear to the endurance of terminal, and now currently used operation system During the electric quantity consumption of system to preset threshold value, prompting instruction will be sent, is so decided whether to feed electricity by user, from And would not appear in user it is ignorant in the case of using terminal and the situation that causes electricity to exhaust always.
Second embodiment
As shown in Fig. 2 including the first operating system and the second operating system in the operating system, the present invention second is implemented The method of the power energy allocation of example, can include:
Step 111, it is retrieved as the first distribution electricity of the first operating system distribution;
Step 112, the second distribution electricity of the second operating system distribution is retrieved as, wherein the first distribution electricity It is equal to the total electricity with the summation of the described second distribution electricity;
Here terminal includes the first operating system and the second operating system, i.e. terminal is dual operating systems.Deposited in terminal In dual operating systems, each operating system can be set to identical or different distribution electricity.So wherein one operation It when system does not have electricity, can be obtained from another operating system, so not only facilitate user and distribute electricity, be also convenient for User feeds electricity, it is not necessary to individually carries mobile hardware supply electricity, also saves the trip space for taking user, Jin Erye Improve the experience effect of user.
Distribution electricity in step 111 and step 112 can be allocated electricity according to preset ratio value, for example give First operating system and the second operating system, it is corresponding to distribute electricity according to the first ratio value of terminal total electricity and the second ratio value Amount, wherein first ratio value is 1 with the second ratio value summation.Here the first ratio value and the second ratio value difference To occupy terminal total electricity percent value, and pre-assigned first distribution electricity and the second distribution electricity sum are total Electricity, such as first ratio value are 60%, then the second ratio value is 40%, then the first ratio value is with the second ratio value sum 100%.Certainly the numerical values recited of the first ratio value and the second ratio value more than is merely illustrative, any distribution electricity Mode belongs to the protection domain of the embodiment of the present invention, and differ a citing herein.
Step 12, if the real time electrical quantity of currently used operating system reaches threshold value, the prompting of generation one is described currently to be made Operating system needs to feed the prompting instruction of electricity;
Preset threshold value mentioned here be according to user's request be configured, it is necessary to threshold value when feeding electricity;Typically The preset threshold value has been according to the one percentage electricity of electric quantity consumption for distributing to the operating system and a numerical value setting, by In distributing to the electricity of the operating system determined according to user's request, therefore the preset threshold value is also true according to user's request Fixed, preset electricity when such user can be allocated electricity and remind according to self-demand can so as to improve user Operability and Consumer's Experience effect.
In addition, supply electricity mentioned here can also be set according to user's request, can be that how many electricity consumed Amount, then feed how many electricity.But if the numerical value of preset threshold value setting differs few with original distribution electricity, gone according to consumption The mode of supply, the prompting for needing to feed electricity is easily frequently occurred, can also influence Consumer's Experience.Therefore the embodiment of the present invention can Be preferably according to user's request select supply electricity so not only meet user current supply demand, and can also one Secondary supply in place, avoids and repeatedly receives prompting instruction, and such Consumer's Experience can be more preferable.
Step 13, the response for the determination for reminding instruction the to return supply electricity is obtained;
When reminding, user can choose whether to allow to supplement electricity, can also select to be switched to other operation systems System.This step obtains the selection of user, when user allows to supplement electricity, obtains the finger for allowing to feed electricity that user returns Order.
Step 14, according to the response, obtained in the dump energy beyond the distribution electricity of currently used operating system Take supply electricity.
In second embodiment of the invention, by the total electricity of terminal being given into the first operating system and the second operating system is entered Row storage, according to previously according to user's request, operated to the distribution electricity of above-mentioned first operating system distribution first and above-mentioned second System distribution the second distribution electricity, so can independently distribute electricity, and need to carry out in user in advance according to user's request When feeding electricity, supply electricity can be obtained from the second operating system of terminal, is given without individually carrying mobile hardware First operating system feeds electricity, has saved the trip space for taking user, and then also improve the experience effect of user.
3rd embodiment
As shown in figure 3, the operating system includes the first operating system and the second operating system, the side of the power energy allocation Method, it can include:
Step 111, it is retrieved as the first distribution electricity of the first operating system distribution;
Step 112, the second distribution electricity of the second operating system distribution is retrieved as, wherein the first distribution electricity It is equal to the total electricity with the summation of the described second distribution electricity;
Here terminal includes the first operating system and the second operating system, i.e. terminal is dual operating systems.Deposited in terminal In dual operating systems, each operating system can be set to identical or different distribution electricity.So wherein one operation It when system does not have electricity, can be obtained from another operating system, so not only facilitate user and distribute electricity, be also convenient for User feeds electricity, it is not necessary to individually carries mobile hardware supply electricity, also saves the trip space for taking user, Jin Erye Improve the experience effect of user.
Distribution electricity in step 111 and step 112 can be allocated electricity according to preset ratio value, for example give First operating system and the second operating system, it is corresponding to distribute electricity according to the first ratio value of terminal total electricity and the second ratio value Amount, wherein first ratio value is 1 with the second ratio value summation.Here the first ratio value and the second ratio value difference To occupy terminal total electricity percent value, and pre-assigned first distribution electricity and the second distribution electricity sum are total Electricity, such as first ratio value are 60%, then the second ratio value is 40%, then the first ratio value is with the second ratio value sum 100%.Certainly the numerical values recited of the first ratio value and the second ratio value more than is merely illustrative, any distribution electricity Mode belongs to the protection domain of the embodiment of the present invention, and differ a citing herein.
Step 12, if the real time electrical quantity of currently used operating system reaches threshold value, the prompting of generation one is described currently to be made Operating system needs to feed the prompting instruction of electricity;
Above-mentioned steps 12 can be specially:The first distribution electricity in currently used operating system for the first operating system When reaching preset threshold value, the real time electrical quantity of the second operating system is obtained;When the real time electrical quantity of the second operating system is more than zero, production The first operating system of a raw prompting needs to feed the prompting instruction of electricity;It thus is avoided that the first operating system needs of terminal occur Electricity is fed, but other operating systems do not have electricity yet, and user does not know that situation also asks to feed the situation of electricity;So exist Other-end does not have electricity yet, then avoids the need for user and goes for supplement again to electricity, it is unnecessary can so to reduce user Operation.
It can also include for above-mentioned steps 12:When the real time electrical quantity of above-mentioned second operating system is zero, produce one after The continuous above-mentioned first operating system electricity of consumption can power consumption instruction;According to it is above-mentioned can power consumption instruction, above-mentioned first operating system after Continuous consumption self electric quantity, until when above-mentioned first operating system consumes self electric quantity to zero, closes above-mentioned first operating system.This Sample can avoid the situation of the distribution such as user's sky supply electricity from occurring, and allow user to feed process to the electricity of terminal, and increase is more Understanding, improve the operability of user.
Further, preset threshold value mentioned here be according to user's request be configured, it is necessary to threshold value when feeding electricity The general preset threshold value has been one percentage electricity and a number setting according to the electric quantity consumption for distributing to the operating system Value, the electricity due to distributing to the operating system is determined according to user's request, therefore the preset threshold value is also according to user Demand determines that such user can be allocated preset electricity when electricity and prompting according to self-demand, so as to improve use The operability and Consumer's Experience effect at family.
In addition, supply electricity mentioned here can also be set according to user's request, can be that how many electricity consumed Amount, then feed how many electricity.But if the numerical value of preset threshold value setting differs few with original distribution electricity, gone according to consumption The mode of supply, the prompting for needing to feed electricity is easily frequently occurred, can also influence Consumer's Experience.Therefore the embodiment of the present invention can Be preferably according to user's request select supply electricity so not only meet user current supply demand, and can also one Secondary supply in place, avoids and repeatedly receives prompting instruction, and such Consumer's Experience can be more preferable.
Step 13, the response for the determination for reminding instruction the to return supply electricity is obtained;
When reminding, user can choose whether to allow to supplement electricity, can also select to be switched to other operation systems System.This step obtains the selection of user, when user allows to supplement electricity, obtains the finger for allowing to feed electricity that user returns Order.
Step 141, according to described in response to determining that currently used operating system is the first operating system, and described second grasps When making the real time electrical quantity of system more than zero, distribution is obtained from the real time electrical quantity of second operating system to the described first operation The supply electricity of system.
Above-mentioned steps 141 be for the real time electrical quantity for judging the second operating system be ensure the second operating system real time electrical quantity More than zero, the first operating system distribution electricity can be given;If the pre-assigned second distribution electricity of the second operating system was not used, Then above-mentioned real time electrical quantity is the second distribution electricity, if the second operating system is allocating the post consumption mistake of the second distribution electricity in advance, Then above-mentioned real time electrical quantity is the above-mentioned remaining electricity of second operating system.The consumption can refer to carry to the first operating system For an electricity or the second operating system opened the self electric quantity of consumption.
Certain above-mentioned first operating system needs supply electricity simply to be illustrated for convenience of description;Similarly, the second operation System needs the process for feeding electricity the first operating system and the second operating system identical with the first operating system and above-mentioned Can be any operating system, differ a citing herein.
In third embodiment of the invention, stored by the way that the total electricity of terminal is given into two operating systems, in user When needing to carry out supply electricity, when only the second operating system also has real time electrical quantity, so as to from the second operating system of terminal Supply electricity is obtained, so can independently distribute electricity in advance according to user's request;When user needs to carry out supply electricity, only Can be that the first operating system feeds electricity by the second operating system when thering is the second operating system to also have real time electrical quantity, without Need individually to carry mobile hardware and give the first operating system supply electricity, also save the trip space for taking user, Jin Erye Improve the experience effect of user.
Fourth embodiment
As shown in figure 4, the operating system includes at least two operating systems, two of which operating system is respectively first Operating system and the second operating system, the method for the power energy allocation, can include:
Step 113, it is retrieved as the 3rd distribution electricity of the first operating system distribution;
Step 114, the 4th distribution electricity of the second operating system distribution is retrieved as, wherein the 3rd distribution electricity It is less than the total electricity with the summation of the described 4th distribution electricity;
Here terminal includes the first operating system and the second operating system, i.e. terminal is dual operating systems;Deposited in terminal In dual operating systems, each operating system can be distributed to electricity, can when so an operating system does not have electricity wherein To be obtained from another operating system, so not only facilitate user and distribute electricity, be also convenient for user and fed electricity, be not required to Mobile hardware supply electricity is individually carried, also saves the trip space for taking user, and then also improve the experience of user Effect.
Step 115, terminal remaining standby electricity in addition to the described 3rd distribution electricity and the 4th distribution electricity is obtained Amount;
Distribution electricity in above-mentioned steps 113, step 114 and step 115 can be allocated according to preset ratio value Electricity, such as to the first operating system and the second operating system, it is corresponding according to the 3rd ratio value of terminal total electricity and the 4th Ratio value distributes electricity, wherein the 3rd ratio value is less than 1 with the 4th ratio value summation;
Here the 3rd ratio value and the 4th ratio value is respectively a percent value for occupying terminal total electricity, and advance 3rd distribution electricity of distribution is less than total electricity with the 4th distribution electricity sum, for example the 3rd ratio value is 350%, then and the 4th Ratio value is 45%, then the 3rd ratio value and the 4th ratio value sum are 80%, and dump energy is used as standby for the 20% of total electricity Power consumption, such as terminal total electricity are 2000mA, distribute 1000mA now and give A operating systems, and distribution 800mA give B operating systems, Standby electricity is 200mA.Certainly the numerical values recited of the 3rd ratio value and the 4th ratio value more than is merely illustrative, any The mode of distribution electricity belongs to the protection domain of the embodiment of the present invention, and differ a citing herein.
Also:Above-mentioned second operating system and above-mentioned first operating system storage total electricity sum, remaining electricity conduct Standby electricity, the distribution of specific electricity are relevant with user's request.But being generally preferred to above-mentioned terminal distribution has standby electricity, this After if the standby electricity is disposably finished by sample user, supply electricity can also be obtained from other operating systems.By drawing Divide multiple storing electricities, user is when in use, it is not required that the dump energy after used in calculating again, but directly from another Obtained in one operating system, facilitate user and directly obtain electricity.It should be noted that the electricity in the present embodiment is the 3rd distribution The summation of electricity, the 4th distribution electricity and standby electricity.Real time electrical quantity in first operating system, i.e. the first operating system remain Remaining electricity, for the part in the 3rd distribution electricity;The residue of real time electrical quantity in second operating system, i.e. the second operating system Electricity, for a part for the 4th distribution electricity;The dump energy of two operating systems is not admitted to standby electricity.First operation system System can obtain from standby electricity feeds electricity, the residue electricity after the supply electricity that standby electricity is obtained by the first operating system Amount is also only used as a part for standby electricity, is not assigned in the first operating system or the second operating system as two behaviour Make a part of dump energy of system.
Step 12, if the real time electrical quantity of currently used operating system reaches threshold value, the prompting of generation one is described currently to be made Operating system needs to feed the prompting instruction of electricity;
Preset threshold value mentioned here be according to user's request be configured, it is necessary to threshold value when feeding electricity;Typically The preset threshold value has been according to the one percentage electricity of electric quantity consumption for distributing to the operating system and a numerical value setting, by In distributing to the electricity of the operating system determined according to user's request, therefore the preset threshold value is also true according to user's request Fixed, preset electricity when such user can be allocated electricity and remind according to self-demand can so as to improve user Operability and Consumer's Experience effect.
In addition, supply electricity mentioned here can also be set according to user's request, can be that how many electricity consumed Amount, then feed how many electricity.But if the numerical value of preset threshold value setting differs few with original distribution electricity, gone according to consumption The mode of supply, the prompting for needing to feed electricity is easily frequently occurred, can also influence Consumer's Experience.Therefore the embodiment of the present invention can Be preferably according to user's request select supply electricity so not only meet user current supply demand, and can also one Secondary supply in place, avoids and repeatedly receives prompting instruction, and such Consumer's Experience can be more preferable.
Above-mentioned steps 12 can be specially:The first distribution electricity in currently used operating system for the first operating system When reaching preset threshold value, the real time electrical quantity of the second operating system is obtained;When the real time electrical quantity of the second operating system is more than zero, production The first operating system of a raw prompting needs to feed the prompting instruction of electricity;It thus is avoided that the first operating system needs of terminal occur Electricity is fed, but other operating systems do not have electricity yet, and user does not know that situation also asks to feed the situation of electricity;So exist Other-end does not have electricity yet, then avoids the need for user and goes for supplement again to electricity, it is unnecessary can so to reduce user Operation.
It can also include for above-mentioned steps 12:When the real time electrical quantity of above-mentioned second operating system is zero, produce one after The continuous above-mentioned first operating system electricity of consumption can power consumption instruction;According to it is above-mentioned can power consumption instruction, above-mentioned first operating system after Continuous consumption self electric quantity, until when above-mentioned first operating system consumes self electric quantity to zero, closes above-mentioned first operating system.This Sample can avoid the situation of the distribution such as user's sky supply electricity from occurring, and allow user to feed process to the electricity of terminal, and increase is more Understanding, improve the operability of user.
Step 13, the response for the determination for reminding instruction the to return supply electricity is obtained;
When reminding, user can choose whether to allow to supplement electricity, can also select to be switched to other operation systems System.This step obtains the selection of user, when user allows to supplement electricity, obtains the finger for allowing to feed electricity that user returns Order.
Step 14, according to the response, obtained in the dump energy beyond the distribution electricity of currently used operating system Take supply electricity.
In fourth embodiment of the invention, by the way that the total electricity many places of terminal are stored, and carried out in advance according to user's request Distribution, so improves user's independence;When user needs to carry out supply electricity, benefit can be not only obtained from standby electricity To electricity, and supply electricity can be obtained from the second operating system, the multiple choices for giving user carry out electricity supply, entered And also improve the experience effect of user.
5th embodiment
As shown in figure 5, the method for the power energy allocation, can include:
Step 113, it is retrieved as the 3rd distribution electricity of the first operating system distribution;
Step 114, the 4th distribution electricity of the second operating system distribution is retrieved as, wherein the 3rd distribution electricity It is less than the total electricity with the summation of the described 4th distribution electricity;
Here terminal includes the first operating system and the second operating system, i.e. terminal is dual operating systems;Deposited in terminal In dual operating systems, each operating system can be distributed to electricity, can when so an operating system does not have electricity wherein To be obtained from another operating system, so not only facilitate user and distribute electricity, be also convenient for user and fed electricity, be not required to Mobile hardware supply electricity is individually carried, also saves the trip space for taking user, and then also improve the experience of user Effect.
Step 115, terminal remaining standby electricity in addition to the described 3rd distribution electricity and the 4th distribution electricity is obtained Amount;
Distribution electricity in above-mentioned steps 113, step 114 and step 115 can be allocated according to preset ratio value Electricity, such as to the first operating system and the second operating system, it is corresponding according to the 3rd ratio value of terminal total electricity and the 4th Ratio value distributes electricity, wherein the 3rd ratio value is less than 1 with the 4th ratio value summation;
Here the 3rd ratio value and the 4th ratio value is respectively a percent value for occupying terminal total electricity, and advance 3rd distribution electricity of distribution is less than total electricity with the 4th distribution electricity sum, for example the 3rd ratio value is 350%, then and the 4th Ratio value is 45%, then the 3rd ratio value and the 4th ratio value sum are 80%, and dump energy is used as standby for the 20% of total electricity Power consumption, such as terminal total electricity are 2000mA, distribute 1000mA now and give A operating systems, and distribution 800mA give B operating systems, Standby electricity is 200mA.Certainly the numerical values recited of the 3rd ratio value and the 4th ratio value more than is merely illustrative, any The mode of distribution electricity belongs to the protection domain of the embodiment of the present invention, and differ a citing herein.
Also:Above-mentioned second operating system and above-mentioned first operating system storage total electricity sum, remaining electricity conduct Standby electricity, the distribution of specific electricity are relevant with user's request.But being generally preferred to above-mentioned terminal distribution has standby electricity, this After if the standby electricity is disposably finished by sample user, supply electricity can also be obtained from other operating systems.By drawing Divide multiple storing electricities, user is when in use, it is not required that the dump energy after used in calculating again, but directly from another Obtained in one operating system, facilitate user and directly obtain electricity.It should be noted that the electricity in the present embodiment is the 3rd distribution The summation of electricity, the 4th distribution electricity and standby electricity.Real time electrical quantity in first operating system, i.e. the first operating system remain Remaining electricity, for the part in the 3rd distribution electricity;The residue of real time electrical quantity in second operating system, i.e. the second operating system Electricity, for a part for the 4th distribution electricity;The dump energy of two operating systems is not admitted to standby electricity.First operation system System can obtain from standby electricity feeds electricity, the residue electricity after the supply electricity that standby electricity is obtained by the first operating system Amount is also only used as a part for standby electricity, is not assigned in the first operating system or the second operating system as two behaviour Make a part of dump energy of system.
Step 12, if the real time electrical quantity of currently used operating system reaches threshold value, the prompting of generation one is described currently to be made Operating system needs to feed the prompting instruction of electricity;
Preset threshold value mentioned here be according to user's request be configured, it is necessary to threshold value when feeding electricity;Typically The preset threshold value has been according to the one percentage electricity of electric quantity consumption for distributing to the operating system and a numerical value setting, by In distributing to the electricity of the operating system determined according to user's request, therefore the preset threshold value is also true according to user's request Fixed, preset electricity when such user can be allocated electricity and remind according to self-demand can so as to improve user Operability and Consumer's Experience effect.
In addition, supply electricity mentioned here can also be set according to user's request, can be that how many electricity consumed Amount, then feed how many electricity.But if the numerical value of preset threshold value setting differs few with original distribution electricity, gone according to consumption The mode of supply, the prompting for needing to feed electricity is easily frequently occurred, can also influence Consumer's Experience.Therefore the embodiment of the present invention can Be preferably according to user's request select supply electricity so not only meet user current supply demand, and can also one Secondary supply in place, avoids and repeatedly receives prompting instruction, and such Consumer's Experience can be more preferable.
Above-mentioned steps 12 can be specially:The first distribution electricity in currently used operating system for the first operating system When reaching preset threshold value, the real time electrical quantity of the second operating system is obtained;When the real time electrical quantity of the second operating system is more than zero, production The first operating system of a raw prompting needs to feed the prompting instruction of electricity;It thus is avoided that the first operating system needs of terminal occur Electricity is fed, but other operating systems do not have electricity yet, and user does not know that situation also asks to feed the situation of electricity;So exist Other-end does not have electricity yet, then avoids the need for user and goes for supplement again to electricity, it is unnecessary can so to reduce user Operation.
It can also include for above-mentioned steps 12:When the real time electrical quantity of above-mentioned second operating system is zero, produce one after The continuous above-mentioned first operating system electricity of consumption can power consumption instruction;According to it is above-mentioned can power consumption instruction, above-mentioned first operating system after Continuous consumption self electric quantity, until when above-mentioned first operating system consumes self electric quantity to zero, closes above-mentioned first operating system.This Sample can avoid the situation of the distribution such as user's sky supply electricity from occurring, and allow user to feed process to the electricity of terminal, and increase is more Understanding, improve the operability of user.
Step 13, the response for the determination for reminding instruction the to return supply electricity is obtained;
When reminding, user can choose whether to allow to supplement electricity, can also select to be switched to other operation systems System.This step obtains the selection of user, when user allows to supplement electricity, obtains the finger for allowing to feed electricity that user returns Order.
Step 142, judged described standby in response to determining that currently used operating system is the first operating system according to described Whether electricity is zero;
Step 143, when the standby electricity is not zero, distribution is obtained from the standby electricity to the described first operation The supply electricity of system;Or
Step 144, be zero in the standby electricity, and the real time electrical quantity of second operating system be more than zero when, from institute State and distribution is obtained in the real time electrical quantity of the second operating system to the supply electricity of first operating system.
Here standby electricity measurer body is exemplified below:For example it is to the 3rd distribution electricity of the operating system of terminal first distribution The 60% of total electricity, the 4th distribution electricity that can give the distribution of the second operating system is the 20% of total electricity, is so using the During one operating system deficiency, 20% can be obtained from the standby electricity of dump energy, the embodiment of the present invention is simply with the first behaviour Make the explanation carried out exemplified by system, be not limited herein;So using the first operating system or the second operating system electricity not It when sufficient, can be obtained from standby electricity, facilitate the first operating system and the second operating system timely feeds electricity, this hair Bright embodiment is the explanation carried out by taking the first operating system as an example, is not limited herein.
Further, when the standby electricity of above-mentioned standby electricity is zero, it is zero to refer to that standby electricity repeatedly feeds post consumption.
Fifth embodiment of the invention, by the way that the total electricity many places of terminal are stored, needed in user to the first operating system When supply electricity is provided, standby electricity is seen if there is first, is more than zero if there is standby electricity and standby electricity, then by standby Power consumption provides supply electricity;After if standby electricity is zero, then is provided by the second operating system and feed electricity;If standby Power consumption is present, and also first provides supply electricity by the second operating system, then after the second operating system consumes electricity when in use, Also electricity is obtained from standby electricity to be fed, too many idle work has so been done equivalent to terminal, therefore pass through this hair Bright 5th embodiment, it is possible to reduce repeatedly useless operation, allow user it is more efficient use electricity, improve Consumer's Experience effect Fruit.
Sixth embodiment
As shown in fig. 6, the method for the power energy allocation, can include:
Step 113, it is retrieved as the 3rd distribution electricity of the first operating system distribution;
Step 114, the 4th distribution electricity of the second operating system distribution is retrieved as, wherein the 3rd distribution electricity It is less than the total electricity with the summation of the described 4th distribution electricity;
Here terminal includes the first operating system and the second operating system, i.e. terminal is dual operating systems;Deposited in terminal In dual operating systems, each operating system can be distributed to electricity, can when so an operating system does not have electricity wherein To be obtained from another operating system, so not only facilitate user and distribute electricity, be also convenient for user and fed electricity, be not required to Mobile hardware supply electricity is individually carried, also saves the trip space for taking user, and then also improve the experience of user Effect.
Step 115, terminal remaining standby electricity in addition to the described 3rd distribution electricity and the 4th distribution electricity is obtained Amount;
Here the 3rd ratio value and the 4th ratio value is respectively a percent value for occupying terminal total electricity, and advance 3rd distribution electricity of distribution, the 4th distribute the total electricity of electricity and standby electricity sum for terminal, such as first ratio value For 30%, then the second ratio value is 40%, dump energy for total electricity 30% (100% subtracts 30%, then subtracts 40%), i.e., Above-mentioned 4th distribution electricity, the first ratio value and the second ratio value sum are less than 100%.
Step 12, if the real time electrical quantity of currently used operating system reaches threshold value, the prompting of generation one is described currently to be made Operating system needs to feed the prompting instruction of electricity;
Preset threshold value mentioned here be according to user's request be configured, it is necessary to threshold value when feeding electricity;Typically The preset threshold value has been according to the one percentage electricity of electric quantity consumption for distributing to the operating system and a numerical value setting, by In distributing to the electricity of the operating system determined according to user's request, therefore the preset threshold value is also true according to user's request Fixed, preset electricity when such user can be allocated electricity and remind according to self-demand can so as to improve user Operability and Consumer's Experience effect.
In addition, supply electricity mentioned here can also be set according to user's request, can be that how many electricity consumed Amount, then feed how many electricity.But if the numerical value of preset threshold value setting differs few with original distribution electricity, gone according to consumption The mode of supply, the prompting for needing to feed electricity is easily frequently occurred, can also influence Consumer's Experience.Therefore the embodiment of the present invention can Be preferably according to user's request select supply electricity so not only meet user current supply demand, and can also one Secondary supply in place, avoids and repeatedly receives prompting instruction, and such Consumer's Experience can be more preferable.
Step 13, the response for the determination for reminding instruction the to return supply electricity is obtained;
When reminding, user can choose whether to allow to supplement electricity, can also select to be switched to other operation systems System.This step obtains the selection of user, when user allows to supplement electricity, obtains the finger for allowing to feed electricity that user returns Order.
Step 142, judged described standby in response to determining that currently used operating system is the first operating system according to described Whether electricity is zero;
Step 143, when the standby electricity is not zero, distribution is obtained from the standby electricity to the described first operation The supply electricity of system;Or
Step 1441, when the standby electricity is zero, obtaining second operating system has for the described first operation System provides the authority of electricity, and when the real time electrical quantity of second operating system is more than zero, from second operating system Real time electrical quantity in obtain distribution to first operating system supply electricity.
It should be noted that:Here the second operating system can run the operating system of the second default application, so Just there is the operating system authority for providing electricity and limitation to provide the authority of electricity, when the standby electricity is zero, obtain When second operating system for first operating system with power supply authority is limited, stop obtaining from the real time electrical quantity The supply electricity, for the supply electricity needed for first operating system distribution.
Specifically, when user needs electricity consumption, by judging whether the demand of itself can provide electricity, then to first Operating system feeds electricity or limited feeds electricity to the first operating system, and such second operating system can be protected by authority Electricity has been stayed, has prevented after user excessively shuts down because of electricity consumption, delays the important stroke of user, and then influence asking for Consumer's Experience Topic, reduces the inconvenience brought to user.
Sixth embodiment of the invention, during if there is no standby electricity, only exist the second operating system or by the second behaviour When making system and being powered to the first operating system, because the authority for providing electricity be present and limitation provides electricity in the second operating system The authority of amount, it can so control whether to power for the first operating system, so as to have the authority of limitation offer electricity in user When, the electricity of the second operating system cannot be finished, it is ensured that the important application of the second operating system is remained on into shape State.So user does not just know that continuation of the journey, and user can instruct according to reminding, rational to arrange, it can also be ensured that user is whole Important thing has enough electricity supports in the operating system of end, improves the experience effect of user.
As shown in fig. 7, the embodiment of the present invention applies the overall implementation process in dual operating systems terminal to be exemplified below.
Step 201, the total electricity of terminal is obtained, and prompts the cruising time that can be supported with current running environment.(carry The time that can be continued a journey for real time electrical quantity, guiding user make rational electricity point for the first operating system and the second operating system Match somebody with somebody.)
Step 202, power threshold is set according to demands of individuals, respectively the first operating system and the second operating system.
Step 203, when the electricity for detecting the first operating system reaches preset threshold value, user determines whether to continue to make With first operating system, if it is not, representing that user abandons current all operations, then step 208 is performed.
If so, representing that user wants to retain or continues current operation, then step 204 is performed.
Step 204, judge currently whether to have that standby electricity can be distributed.
Know according to the power energy allocation result of last time is available, if so, then distribution is arbitrarily less than or waited from dump energy In the electricity of dump energy, if not being fully allocated to first operating system, remaining electricity is used to reallocate next time.Hold Row step 205;If it is not, then perform step 206.
Step 205, user is continuing with first operating system.
User is continuing with first operating system, when detecting that the electricity used in the first operating system reaches preset threshold Value, that is, jump to step 203.
Step 206, judge whether the second operating system real time electrical quantity is more than zero, if so, then performing step 207;When no, then Perform step 208.
Step 207, the electricity of the second operating system is redistributed, and performs step 205.
Obtaining redistributing first operating system of electricity will continue to run with, that is, jump to step 206.
Step 208, first operating system is out of service.
It is manual allocation charge value in the embodiment, according to the charge value that can apply for distribution, user is according to required autonomous point Match somebody with somebody.
7th embodiment
As shown in figure 8, the operating system includes the first operating system and the second operating system, the side of the power energy allocation Method, it can include:
Step 11, obtain the real time electrical quantity of each operating system in terminal and distributed to the distribution of each operating system Electricity, the distribution electricity summation of the multiple operating system are less than or equal to the total electricity of the end cell;
Here terminal can have multiple operating systems, it is necessary to be set in advance to each operating system identical or different Distribute electricity.It is relatively-stationary electricity to distribute electricity, can't be changed with the real time electrical quantity that terminal uses.When wherein one When there is no real time electrical quantity in individual operating system, obtained from other operating systems, it is more by the way that the total electricity of terminal is distributed Place, not only facilitate user and independently distribute the use electricity of different operating system, and be also convenient for user and fed electricity.
Above-mentioned distribution electricity can obtain the electricity needed for each operating system according to user's request or commercial measurement Value.It can be typically allocated according to the percentage of total electricity:For example terminal shares three operating systems, to first operation The 25% of system distribution total electricity, the 40% of second operating system distribution total electricity, the 3rd operating system distribution total electricity 35%;Certainly each operating system can also directly distribute charge value;Further, each operating system can also mean allocation it is always electric Amount, it is merely illustrative the charge value that each operating system is distributed, the distribution of the concrete application embodiment of the present invention above certainly Mode belongs to the protection domain of the embodiment of the present invention, and differ a citing herein.
Step 12, if the real time electrical quantity of currently used operating system reaches threshold value, the prompting of generation one is described currently to be made Operating system needs to feed the prompting instruction of electricity;
Preset threshold value mentioned here be according to user's request be configured, it is necessary to threshold value when feeding electricity;Typically The preset threshold value has been according to the one percentage electricity of electric quantity consumption for distributing to the operating system and a numerical value setting, by In distributing to the electricity of the operating system determined according to user's request, therefore the preset threshold value is also true according to user's request Fixed, preset electricity when such user can be allocated electricity and remind according to self-demand can so as to improve user Operability and Consumer's Experience effect.
In addition, supply electricity mentioned here can also be set according to user's request, can be that how many electricity consumed Amount, then feed how many electricity.But if the numerical value of preset threshold value setting differs few with original distribution electricity, gone according to consumption The mode of supply, the prompting for needing to feed electricity is easily frequently occurred, can also influence Consumer's Experience.Therefore the embodiment of the present invention can Be preferably according to user's request select supply electricity so not only meet user current supply demand, and can also one Secondary supply in place, avoids and repeatedly receives prompting instruction, and such Consumer's Experience can be more preferable.
Step 13, the response for the determination for reminding instruction the to return supply electricity is obtained;
When reminding, user can choose whether to allow to supplement electricity, can also select to be switched to other operation systems System.This step obtains the selection of user, when user allows to supplement electricity, obtains the finger for allowing to feed electricity that user returns Order.
Step 145, obtain first operating system the first default application program and second operating system the Two default application programs;
Step 146, the weight of the more described first default application program and the second default application program;
Step 147, according to the weight, judge whether first operating system is weight highest operating system;
Above-mentioned weight highest operating system it should be noted that:It is more default than first in the first operating system as described above to answer Include the entertainment selections such as game, music and video with program, and the second default application program in the second operating system includes making a noise Clock and memorandum etc. remind project, then the second operating system can be judged as weight highest operating system, such first behaviour Electricity can be finished by making system, and the second operating system is then forced to retain electricity, and such second operating system can be normal Operation, there are enough electricity to support the second operating system, avoid makes troubles to user, improves the experience effect of user.
From the foregoing, the size of weight and the weight of operating system are directly proportional here.
Step 148, when first operating system is the weight highest operating system, one is set to maintain described the One operating system continues the preset electricity of storage of normal operation, wherein the preset electricity of the storage for first operating system from A part in the distribution electricity of body or the electricity obtained from second operating system.
After above-mentioned steps 148, in addition to step 149:Do not grasped in first operating system for the weight highest When making the authority of system or second operating system with limitation offer electricity, and in first operating system itself electricity When amount is consumed to zero, first operating system is closed.
Mentioned here, there is above-mentioned second operating system limitation to provide the authority of electricity or second operating system Electricity be zero, when the limitation of such second operating system provides the authority of electricity, it is ensured that can preset electricity, so can be with Avoid user is immoderate from using electricity;When allowing the second operating system to be zero, it can meet user according to situation is realized Make rational planning for.
, can be intelligent by judging the weight of the first operating system and the second operating system in seventh embodiment of the invention Operating system that weight is higher store preset electricity, such user can be finished with the electricity of the low operating system of weight, will The high operating system of weight has enough electricity support normal works, avoids appearance because of using terminal without limit, and causes The problem of last electricity exhausts and influences important thing, does not interfere with user yet and is continuing with, give user's branch of bigger authority Power distributing amount ability, improve the experience effect of user.
As shown in figure 9, the embodiment of the present invention applies the overall implementation process in dual operating systems terminal to be exemplified below.
Step 301, the total electricity of terminal is obtained, and prompts the cruising time that can be supported with current running environment.
Step 302, the pre- of electricity is distributed automatically according to demands of individuals, respectively the first operating system and the second operating system Put threshold value.
Step 303, when detecting that the electricity used in the first operating system reaches preset threshold value, user determine whether to after It is continuous to use first operating system.
If it is not, then jumping to step 308, first operating system is out of service.
If so, then sending the application of distribution electricity to dump energy, step 304 is performed.
Step 304, judge currently whether to have that standby electricity can be distributed.
Step 305, if so, then distributing the electricity of self-defined apportioning cost, first operating system for first operating system Continue to run with, jump to step 303.If dump energy is less than self-defined apportioning cost, dump energy is just fully allocated to by that First operating system;If dump energy is more than or equal to self-defined apportioning cost, first operating system is distributed to certainly The electricity of definition value;If it is not, then sending application to the second operating system, step 306 is performed.
Step 306, judge whether the second operating system real time electrical quantity is more than zero.
If so, after performing step 305, step 303 is jumped to.If dump energy is less than self-defined apportioning cost, that is just Dump energy is fully allocated to first operating system;If dump energy is more than or equal to self-defined apportioning cost, divide The electricity of dispensing the first operating system self-defining value.
If it is not, then jumping to step 308, first operating system is out of service.
Need to pre-set self-defined apportioning cost in the example above, when detecting that the first operating system reaches preset threshold value When, the charge value distributed to dump energy or the second operating system application is self-defining value, without re-defining application point every time The size matched somebody with somebody.
8th embodiment
As shown in Figure 10, the terminal of eighth embodiment of the invention, can include:
First acquisition module 41, for obtaining the real time electrical quantity of each operating system in terminal and having distributed to each behaviour Make the distribution electricity of system, the distribution electricity summation of multiple operating systems of the terminal is less than or equal to the end cell Total electricity;
Here terminal can have multiple operating systems, it is necessary to be set in advance to each operating system identical or different Distribute electricity.It is relatively-stationary electricity to distribute electricity, can't be changed with the real time electrical quantity that terminal uses.When wherein one When there is no real time electrical quantity in individual operating system, obtained from other operating systems, it is more by the way that the total electricity of terminal is distributed Place, not only facilitate user and independently distribute the use electricity of different operating system, and be also convenient for user and fed electricity.
Above-mentioned distribution electricity can obtain the electricity needed for each operating system according to user's request or commercial measurement Value.It can be typically allocated according to the percentage of total electricity:For example terminal shares three operating systems, to first operation The 25% of system distribution total electricity, the 40% of second operating system distribution total electricity, the 3rd operating system distribution total electricity 35%;Certainly each operating system can also directly distribute charge value, such as terminal total electricity is 2000mA, distribution now 600mA gives A operating systems, and distribution 900mA gives B operating systems, and distribution 500mA give C operating systems;Further, each operating system Can also mean allocation total electricity, such as terminal total electricity is 2100mA, distributes 700mA now and gives A operating systems, distributes 700mA gives B operating systems, and distribution 700mA give C operating systems, and being merely illustrative each operating system above certainly is distributed Charge value, the method for salary distribution of the concrete application embodiment of the present invention belongs to the protection domain of the embodiment of the present invention, differs herein One citing.
Generation module 42, if the real time electrical quantity for currently used operating system reaches threshold value, produce one and remind institute Stating currently used operating system needs to feed the prompting instruction of electricity;
Preset threshold value mentioned here be according to user's request be configured, it is necessary to threshold value when feeding electricity;Typically The preset threshold value has been according to the one percentage electricity of electric quantity consumption for distributing to the operating system and a numerical value setting, by In distributing to the electricity of the operating system determined according to user's request, therefore the preset threshold value is also true according to user's request Fixed, preset electricity when such user can be allocated electricity and remind according to self-demand can so as to improve user Operability and Consumer's Experience effect.
In addition, supply electricity mentioned here can also be set according to user's request, can be that how many electricity consumed Amount, then feed how many electricity.But if the numerical value of preset threshold value setting differs few with original distribution electricity, gone according to consumption The mode of supply, the prompting for needing to feed electricity is easily frequently occurred, can also influence Consumer's Experience.Therefore the embodiment of the present invention can Be preferably according to user's request select supply electricity so not only meet user current supply demand, and can also one Secondary supply in place, avoids and repeatedly receives prompting instruction, and such Consumer's Experience can be more preferable.
Second acquisition module 43, for obtaining the response for the determination for reminding instruction the to return supply electricity;
When reminding, user can choose whether to allow to supplement electricity, can also select to be switched to other operation systems System.This step obtains the selection of user, when user allows to supplement electricity, obtains the finger for allowing to feed electricity that user returns Order.
First control module 44, for according to the response, beyond the distribution electricity of currently used operating system Supply electricity is obtained in dump energy.
In eighth embodiment of the invention, when the real time electrical quantity of the currently used operating system of terminal is less than preset threshold value, Whether the currently used operating system of a prompting, which will be produced, is needed to feed the prompting instruction of electricity, need to be fed really Electricity, so that when needing to carry out supply electricity, in the dump energy beyond the distribution electricity of currently used operating system Obtain supply electricity.When the real time electrical quantity of currently used operating system reaches threshold value, actually currently used operation system The real time electrical quantity of system is still not zero.The real time electrical quantity of currently used operating system is to distribute a part of electricity of electricity. The electricity outside distribution electricity in currently used operating system does not include the real time electrical quantity of current operation system.Make from currently Dump energy beyond the distribution electricity of operating system does not include the real time electrical quantity of current operation system yet.Only need connecing After receiving prompting instruction, supply electricity is carried out from other dump energies, Consumer's Experience is reduced in the absence of energy saver mode is switched to Problem, and user is it is also known that continuation of the journey carries out reasonable arrangement (whether see from other dump energies carry out supply electricity);Also ensure that Terminal has available power to be supported for important thing;Appearance be also avoid because of using terminal without limit, preventing from causing delay causes The problem of last electricity exhausts and influences important thing;User is improved to the independence of terminal control and the experience of user simultaneously Effect.
It should be noted that terminal provided by the invention is using the terminal of the method for above-mentioned power energy allocation, then above-mentioned electricity All embodiments for measuring the method for distribution are applied to the terminal, and can reach same or analogous beneficial effect.
Terminal of the ninth embodiment of the invention on the basis of the 8th embodiment, the operating system include the first operating system With the second operating system, first acquisition module includes:
First acquisition submodule, for being retrieved as the first distribution electricity of the first operating system distribution;
Second acquisition submodule, for being retrieved as the second distribution electricity of the second operating system distribution, wherein described The summation of first distribution electricity and the second distribution electricity is equal to the total electricity.
Terminal on the basis of the embodiment of tenth embodiment of the invention the 9th, first control module include:
First control submodule, for according to described in response to determining that currently used operating system is the first operating system, And the real time electrical quantity of second operating system be more than zero when, from the real time electrical quantity of second operating system obtain distribution to The supply electricity of first operating system.
Terminal of the eleventh embodiment of the invention on the basis of the 8th embodiment, the operating system include at least two behaviour Make system, two of which operating system is respectively the first operating system and the second operating system, and first acquisition module includes:
3rd acquisition submodule, for being retrieved as the 3rd distribution electricity of the first operating system distribution;
4th acquisition submodule, for being retrieved as the 4th distribution electricity of the second operating system distribution, wherein described The summation of 3rd distribution electricity and the 4th distribution electricity is less than the total electricity;
5th acquisition submodule, remained for obtaining terminal in addition to the described 3rd distribution electricity and the 4th distribution electricity Remaining standby electricity.
Terminal of the twelveth embodiment of the invention on the basis of the 11st embodiment, first control module include:
Judging submodule, for according to described in response to determining that currently used operating system be the first operating system, judgement Whether the standby electricity is zero;
Second control submodule, for when the standby electricity is not zero, obtained from the standby electricity distribution to The supply electricity of first operating system;Or
Be zero in the standby electricity, and the real time electrical quantity of second operating system be more than zero when, from described second behaviour Make to obtain distribution in the real time electrical quantity of system to the supply electricity of first operating system.
Terminal of the thriteenth embodiment of the invention on the basis of the 8th embodiment, the operating system include the first operation and are System and the second operating system, first control module include:
6th acquisition submodule, the first default application program and second behaviour for obtaining first operating system Make the second default application program of system;
Comparison sub-module, for the more described first default application program and the weight of the second default application program;
Judging submodule, for according to the weight, judging whether first operating system is the operation of weight highest System;
3rd control submodule, for when first operating system is the weight highest operating system, setting One maintains first operating system to continue the preset electricity of storage of normal operation, wherein the preset electricity of storage is described the A part in the distribution electricity of one operating system itself or the electricity obtained from second operating system.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can use complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can use one or more wherein include computer can With in the computer-usable storage medium (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal device (system) and computer program The flow chart and/or block diagram of product describes.It should be understood that can be by computer program instructions implementation process figure and/or block diagram In each flow and/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These can be provided Computer program instructions are set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to produce a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction is produced for realizing in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames The device for the function of specifying.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing terminal equipments In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory produces bag The manufacture of command device is included, the command device is realized in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base This creative concept, then other change and modification can be made to these embodiments.So appended claims are intended to be construed to Including preferred embodiment and fall into having altered and changing for range of embodiment of the invention.
It should also be noted that, herein, such as first and second or the like relational terms are used merely to one Entity or operation make a distinction with another entity or operation, and not necessarily require or imply between these entities or operation Any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to contain Lid nonexcludability includes, so that process, method, article or terminal device including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of terminal device.In the absence of more restrictions, the key element limited by sentence "including a ...", and It is not precluded within the process including the key element, method, article or terminal device and other identical element is also present.
Described above is the preferred embodiment of the present invention, it is noted that for those skilled in the art For, on the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these improvements and modifications It should be regarded as protection scope of the present invention.

Claims (12)

  1. A kind of 1. method of power energy allocation, applied to the terminal for including multiple operating systems, it is characterised in that including:
    Obtain the real time electrical quantity of each operating system in terminal and distributed to the distribution electricity of each operating system, it is described more The distribution electricity summation of individual operating system is less than or equal to the total electricity of the end cell;
    If the real time electrical quantity of currently used operating system reaches threshold value, produce one and remind the currently used operating system The prompting for feeding electricity is needed to instruct;
    Obtain the response for the determination for reminding instruction the to return supply electricity;
    According to the response, supply electricity is obtained in the dump energy beyond the distribution electricity of currently used operating system.
  2. 2. the method for power energy allocation according to claim 1, it is characterised in that the operating system includes the first operation and is System and the second operating system, it is described to obtain the real time electrical quantity of each operating system in terminal and distributed to each operating system Distribution electricity the step of, including:
    It is retrieved as the first distribution electricity of the first operating system distribution;
    The second distribution electricity of second operating system distribution is retrieved as, wherein the first distribution electricity and described second point The summation of power distributing amount is equal to the total electricity.
  3. 3. the method for power energy allocation according to claim 2, it is characterised in that it is described according to the response, make from currently The step of supply electricity being obtained in dump energy beyond the distribution electricity of operating system, including:
    According to described in response to determining that currently used operating system is the first operating system, and second operating system is real-time When electricity is more than zero, distribution is obtained from the real time electrical quantity of second operating system to the supply electricity of first operating system Amount.
  4. 4. the method for power energy allocation according to claim 1, it is characterised in that the operating system includes at least two behaviour Make system, two of which operating system is respectively the first operating system and the second operating system, each in the acquisition terminal The real time electrical quantity of operating system and the step of distributed to the distribution electricity of each operating system, including:
    It is retrieved as the 3rd distribution electricity of the first operating system distribution;
    The 4th distribution electricity of second operating system distribution is retrieved as, wherein the 3rd distribution electricity and described 4th point The summation of power distributing amount is less than the total electricity;
    Obtain terminal remaining standby electricity in addition to the described 3rd distribution electricity and the 4th distribution electricity.
  5. 5. the method for power energy allocation according to claim 4, it is characterised in that it is described according to the response, make from currently The step of supply electricity being obtained in dump energy beyond the distribution electricity of operating system, including:
    According to described in response to determining that currently used operating system is the first operating system, judge the standby electricity whether be Zero;
    When the standby electricity is not zero, distribution is obtained from the standby electricity to the supply electricity of first operating system Amount;Or
    Be zero in the standby electricity, and the real time electrical quantity of second operating system be more than zero when, from described second operation system Distribution is obtained in the real time electrical quantity of system to the supply electricity of first operating system.
  6. 6. the method for power energy allocation according to claim 1, it is characterised in that the operating system includes the first operation and is System and the second operating system, described according to the response, the residue electricity beyond the distribution electricity of currently used operating system The step of supply electricity is obtained in amount, including:
    Obtain the first default application program of first operating system and the second of second operating system is preset and apply journey Sequence;
    Compare the weight of the described first default application program and the second default application program;
    According to the weight, judge whether first operating system is weight highest operating system;
    When first operating system is the weight highest operating system, set one maintain first operating system after The preset electricity of storage of continuous normal operation, wherein the preset electricity of storage is the distribution electricity of first operating system itself In a part or the electricity that is obtained from second operating system.
  7. A kind of 7. terminal for power energy allocation, it is characterised in that including:
    First acquisition module, for obtaining the real time electrical quantity of each operating system in terminal and having distributed to each operating system Distribution electricity, the distribution electricity summation of multiple operating systems of the terminal is less than or equal to total electricity of the end cell Amount;
    Generation module, if the real time electrical quantity for currently used operating system reaches threshold value, it is described current to produce a prompting The operating system used needs to feed the prompting instruction of electricity;
    Second acquisition module, for obtaining the response for the determination for reminding instruction the to return supply electricity;
    First control module, for according to the response, the residue beyond the distribution electricity of currently used operating system to be electric Supply electricity is obtained in amount.
  8. 8. terminal according to claim 7, it is characterised in that the operating system includes the first operating system and the second behaviour Make system, first acquisition module includes:
    First acquisition submodule, for being retrieved as the first distribution electricity of the first operating system distribution;
    Second acquisition submodule, for being retrieved as the second distribution electricity of the second operating system distribution, wherein described first The summation of distribution electricity and the second distribution electricity is equal to the total electricity.
  9. 9. terminal according to claim 8, it is characterised in that first control module includes:
    First control submodule, for according to described in response to determining that currently used operating system is the first operating system, and institute When stating the real time electrical quantity of the second operating system more than zero, obtain and distributed to described from the real time electrical quantity of second operating system The supply electricity of first operating system.
  10. 10. terminal according to claim 7, it is characterised in that the operating system includes at least two operating systems, its In two operating systems be respectively the first operating system and the second operating system, first acquisition module includes:
    3rd acquisition submodule, for being retrieved as the 3rd distribution electricity of the first operating system distribution;
    4th acquisition submodule, for being retrieved as the 4th distribution electricity of the second operating system distribution, wherein the described 3rd The summation of distribution electricity and the 4th distribution electricity is less than the total electricity;
    5th acquisition submodule, for obtain terminal except the described 3rd distribution electricity and it is described 4th distribution electricity in addition to it is remaining Standby electricity.
  11. 11. terminal according to claim 10, it is characterised in that first control module includes:
    Judging submodule, it is described in response to determining that currently used operating system is the first operating system, described in judgement for basis Whether standby electricity is zero;
    Second control submodule, for when the standby electricity is not zero, obtaining and being distributed to described from the standby electricity The supply electricity of first operating system;Or
    Be zero in the standby electricity, and the real time electrical quantity of second operating system be more than zero when, from described second operation system Distribution is obtained in the real time electrical quantity of system to the supply electricity of first operating system.
  12. 12. terminal according to claim 7, it is characterised in that the operating system includes the first operating system and second Operating system, first control module include:
    6th acquisition submodule, the first default application program and the second operation system for obtaining first operating system The default application program of the second of system;
    Comparison sub-module, for the more described first default application program and the weight of the second default application program;
    Judging submodule, for according to the weight, judging whether first operating system is weight highest operating system;
    3rd control submodule, for when first operating system is the weight highest operating system, setting one-dimensional The preset electricity of storage that first operating system continues normal operation is held, wherein the preset electricity of storage is the described first behaviour Make the part in the distribution electricity of system itself or the electricity obtained from second operating system.
CN201510629032.2A 2015-09-25 2015-09-25 The method and terminal of a kind of power energy allocation Active CN105302275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510629032.2A CN105302275B (en) 2015-09-25 2015-09-25 The method and terminal of a kind of power energy allocation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510629032.2A CN105302275B (en) 2015-09-25 2015-09-25 The method and terminal of a kind of power energy allocation

Publications (2)

Publication Number Publication Date
CN105302275A CN105302275A (en) 2016-02-03
CN105302275B true CN105302275B (en) 2018-03-20

Family

ID=55199635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510629032.2A Active CN105302275B (en) 2015-09-25 2015-09-25 The method and terminal of a kind of power energy allocation

Country Status (1)

Country Link
CN (1) CN105302275B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105974825B (en) * 2016-02-18 2018-07-10 青岛克路德机器人有限公司 Fire-fighting robot method for managing power supply
CN107483751B (en) * 2017-07-05 2020-10-02 Oppo广东移动通信有限公司 Terminal device, electric quantity distribution method thereof and computer-readable storage medium
CN108762463A (en) * 2018-04-28 2018-11-06 上海爱优威软件开发有限公司 A kind of application management method and terminal based on electricity
CN111107619B (en) * 2019-12-27 2023-05-16 深圳市联洲国际技术有限公司 Power control method of communication system, communication system and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976112A (en) * 2010-10-26 2011-02-16 浙江大学 Energy-consumption protection method for mobile phone with MeeGo operation system
CN102144344A (en) * 2008-10-24 2011-08-03 波音公司 Intelligent energy management architecture

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW594576B (en) * 2003-06-17 2004-06-21 Acer Inc Operation mode control system and method
EP1562126A1 (en) * 2004-02-03 2005-08-10 Sap Ag A database management system and a method of managing a database

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102144344A (en) * 2008-10-24 2011-08-03 波音公司 Intelligent energy management architecture
CN101976112A (en) * 2010-10-26 2011-02-16 浙江大学 Energy-consumption protection method for mobile phone with MeeGo operation system

Also Published As

Publication number Publication date
CN105302275A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN105302275B (en) The method and terminal of a kind of power energy allocation
CN102255350B (en) Charging device, charging controlling unit, charging controlling method, and charging receiving method
CN103522994B (en) Automatic group optimization system for power battery boxes in EV battery swap stations and operating method thereof
CN106992544B (en) Microgrid energy real-time management control method
CN102934320B (en) Battery supply set and the control method of power thereof
CN105556786A (en) Power-storage-cell management device, power-storage cell, method for managing power-storage cell, and program
CN104377741B (en) The method and mobile terminal of the mutual wireless charging of mobile terminal
CN102307260A (en) Mobile phone double cell electric quantity management system and method thereof
CN107147106B (en) Micro-grid energy real-time management control device
US20130229057A1 (en) Control apparatus
EP3706280A1 (en) Method and apparatus for testing charging and discharging of lithium battery
CN113067370B (en) Charging control method and device of V2G charging station, server and storage medium
CN110176784A (en) A kind of distributed mobile energy storage distribution network control method and system
CN114179667B (en) Electric automobile charging control method and device, electronic equipment and medium
US20220060035A1 (en) Shared charging cabinet and ejecting control method thereof
CN108235795A (en) Charging method, device, terminal device and computer readable storage medium
CN109066745A (en) Electric energy-storage system and its progress control method, device, system
CN116207830A (en) Power distribution method, system, equipment and storage medium for battery-changing cabinet
CN108631310A (en) A kind of orderly charging management method in residential area, apparatus and system
CN109606191A (en) Method for controlling power supply, device, computer equipment and storage medium
CN105978058A (en) Method and apparatus for calculating charging efficiency of battery swap station
Sheng et al. Energy management for solar battery charging station
TWI568137B (en) Intelligent charging device and charging scheduling control method thereof
CN102801197A (en) Terminal and charge control method thereof
CN105576649A (en) Power utilization scheduling method and system for microgrid

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant