CN107483751A - Terminal device and its power energy allocation method, computer-readable recording medium - Google Patents
Terminal device and its power energy allocation method, computer-readable recording medium Download PDFInfo
- Publication number
- CN107483751A CN107483751A CN201710540221.1A CN201710540221A CN107483751A CN 107483751 A CN107483751 A CN 107483751A CN 201710540221 A CN201710540221 A CN 201710540221A CN 107483751 A CN107483751 A CN 107483751A
- Authority
- CN
- China
- Prior art keywords
- application program
- terminal device
- power consumption
- electricity
- period
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
- H04M1/73—Battery saving arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0264—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Power Sources (AREA)
Abstract
The invention discloses a kind of terminal device and its power energy allocation method, computer-readable recording medium, the power energy allocation method of the terminal device includes:The current electric quantity of detection terminal equipment;When the current electric quantity of terminal device is less than preset value, power consumption of the application program in special time period is obtained;Ratio according to the power consumption of application program carries out power energy allocation to application program.Through the above way, the present invention can make terminal device reasonable distribution electricity, unreasonable electricity consumption is avoided to cause terminal device out of power and can not work on, simultaneously, moreover it is possible to avoid terminal device electricity consumption too fast and so that terminal device temperature rises so high and triggers problem safe to use.
Description
Technical field
The present invention relates to terminal control technical field, more particularly to a kind of terminal device, the power energy allocation of terminal device
Method and computer-readable recording medium.
Background technology
With the development of terminal device, mobile phone has become an indispensable part in people's work and life.At present,
All be present the problem of power consumption is excessive in most smart mobile phone, simultaneously as the development of current battery technology relatively lags behind, cause
The smart mobile phone for possessing power does not often have the desired endurance of people, especially when mobile phone electricity is relatively low, due to
Irrational distribution electricity, cause too fast be depleted of mobile phone electricity and can not be continuing with, the live and work of people is caused
Influence.
The content of the invention
The embodiment of the present invention provides a kind of terminal device and its power energy allocation method, computer-readable recording medium, with solution
Certainly the unreasonable distribution electricity of terminal device existing for prior art causes electricity too fast the problem of being depleted.
First aspect of the embodiment of the present invention provides a kind of power energy allocation method of terminal device, and this method includes:Detection
The current electric quantity of the terminal device;When the current electric quantity of the terminal device is less than preset value, application program is obtained in spy
The power consumption fixed time in section;Ratio according to the power consumption of the application program carries out power energy allocation to the application program.
Second aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, is stored thereon with computer journey
Sequence, the step of computer program realizes following methods when being executed by processor:Detect the current electric quantity of the terminal device;When
When the current electric quantity of the terminal device is less than preset value, power consumption of the application program in special time period is obtained;According to institute
The ratio for stating the power consumption of application program carries out power energy allocation to the application program.
The third aspect of the embodiment of the present invention provides a kind of terminal device, and the terminal device includes memory, processor and
Store on a memory and can be realized by the computer program of computing device described in the computing device during computer program
The step of following methods:Detect the current electric quantity of the terminal device;When the current electric quantity of the terminal device is less than preset value
When, obtain power consumption of the application program in special time period;Ratio according to the power consumption of the application program is answered described
Power energy allocation is carried out with program.
Fourth aspect of the embodiment of the present invention provides a kind of terminal device, and the terminal device includes electric power detection module, consumption
Electricity acquisition module and power energy allocation module, wherein, electric power detection module is used for the electricity for detecting the terminal device;Power consumption
Acquisition module is used for when the electricity of the terminal device is less than preset value, obtains power consumption of the application program in special time period
Amount;Power energy allocation module is used to carry out power energy allocation to the application program according to the ratio of the power consumption of the application program.
The embodiment of the present invention is by when the electricity of terminal device is less than preset value, according to applying journey in special time period
The ratio of the power consumption of sequence is come to application assigned electricity, it can be ensured that these application programs are normally transported when electricity is relatively low
OK, unreasonable electricity consumption can be avoided to cause terminal device out of power and can not work on, simultaneously, moreover it is possible to avoid terminal device electricity consumption
It is too fast and cause terminal device temperature rise so high, thus, the embodiment of the present invention reduces terminal device to a certain extent
Temperature rise, guarantee is provided for the safe handling of terminal device.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the power energy allocation embodiment of the method for terminal device provided by the invention;
Fig. 2 is a kind of schematic flow sheet of another embodiment of power energy allocation method of terminal device provided by the invention;
Fig. 3 is a kind of schematic flow sheet of the another embodiment of power energy allocation method of terminal device provided by the invention;
Fig. 4 is a kind of schematic flow sheet of another embodiment of power energy allocation method of terminal device provided by the invention;
Fig. 5 is a kind of schematic flow sheet of the another embodiment of power energy allocation method of terminal device provided by the invention;
Fig. 6 is a kind of schematic flow sheet of another embodiment of power energy allocation method of terminal device provided by the invention;
Fig. 7 is a kind of terminal device embodiment entity apparatus structural representation provided by the invention;
Fig. 8 is a kind of composition structural representation of terminal device embodiment provided by the invention;
Fig. 9 is a kind of composition structural representation of another embodiment of terminal device provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes.It is understood that specific embodiment described herein is only used for explaining the present invention, rather than the limit to the present invention
It is fixed.It also should be noted that for the ease of description, part related to the present invention illustrate only in accompanying drawing and not all knot
Structure.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made
Every other embodiment, belongs to the scope of protection of the invention.
In addition, term " comprising " and " having " and their any deformations, it is intended that cover non-exclusive include.Such as
Contain the step of process, method, system, product or the equipment of series of steps or unit is not limited to list or list
Member, but alternatively also including the step of not listing or unit, or alternatively also include for these processes, method, product
Or the intrinsic other steps of equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can wrap in conjunction with the embodiments
In at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
The executive agent of the power energy allocation method of terminal device provided in an embodiment of the present invention, can be the embodiment of the present invention
The mobile terminal (for example notebook, tablet personal computer, mobile phone, wearable device etc.) of offer, the mobile terminal can use hard
The mode of part or software is realized.
Referring to Fig. 1, Fig. 1 is a kind of flow signal of the power energy allocation embodiment of the method for terminal device provided by the invention
Figure.Power energy allocation method shown in Fig. 1 includes:
S101, detection terminal equipment current electric quantity.
Can be the current electricity of the batteries of detection terminal equipment such as the coulometer chip in terminal device in step S101
Amount, specific detection method will not enumerate herein in the range of the understanding of those skilled in the art.
S102, when the current electric quantity of terminal device is less than preset value, obtain consumption of the application program in special time period
Electricity.
Specifically, in step S102, preset value is the threshold value pre-set, and the preset value can be, for example,
50%, 40%, 30% or 20% etc..
Special time period can be a period before the current electric quantity of terminal device is less than preset value, for example,
Within two hours before the electricity of terminal device is less than 40%, or in three hours etc..Special time period is set as
Period before electricity is less than preset value, it can ensure that user is continuing with after subsequent step S103 distributes electricity
Its currently used application program.Certainly, in some embodiments, it is also possible to are in advance divided into multiple times the time of one day
Section, the electricity of terminal device is less than the period residing when 40% and is defined as special time period.
The power consumption of application program can be the electricity that application program consumes within the period, it is possible to understand that ground, the electricity
Amount is relevant with the time that the power consumption in the application program unit interval and the application program use in the special time period.
Power consumption of the application program within the unit interval is bigger, and the duration used in the special time period is longer, then the application program exists
The electricity of consumption is more in the period.
For example, in step S102, preset value 40%, special time period is reduced to 40% for the electricity of terminal device
In two hours before, power consumption of the application program within two hours is respectively:Social class application program, e.g., wechat,
50%;Music class application program, e.g., Netease's cloud music, 35%;News category application program, e.g., today's tops, 10%;Depending on
Frequency class application program, e.g., iqiyi.com, 5%.
S103, according to application program power consumption ratio to application program carry out power energy allocation.
In step S103, specifically, due to the consumption in electricity and unit interval that in special time period, application program consumes
Electricity and application program it is relevant using duration, therefore, by special time period, the ratio of the electricity of application program consumption
Come to the remaining electricity of application assigned, when can avoid causing some units according only to the power consumption of unit interval to distribute
Between power consumption it is low, but the problem of the electricity of conventional application assigned is inadequate, can also avoid according only to using duration
Distribution causes some in special time period using less, but the electricity that the high application assigned of time per electricity arrives
The problem of amount is difficult to support the application program to run.
For example, the ratio of the power consumption of each application program is understood according to the power consumption of the step S102 each application programs obtained
For wechat:Netease's cloud music:Today's tops:Iqiyi.com=50%:35%:10%:5%.Therefore, remaining 40% electricity
In electricity, the electricity that wechat, Netease's cloud music, today's tops and iqiyi.com are assigned to is remaining 40% electricity respectively:
50%, 35%, 10% and 5%, i.e. four kinds of application assigneds to electricity be respectively:20%, 14%, 4% and 2%.
The embodiment of the present invention is by when the electricity of terminal device is less than preset value, according to applying journey in special time period
The ratio of the power consumption of sequence is come to application assigned electricity, it can be ensured that these application programs are normally transported when electricity is relatively low
OK, unreasonable electricity consumption is avoided to cause terminal device out of power and can not work on, simultaneously, moreover it is possible to avoid terminal device electricity consumption too fast
And make it that terminal device temperature rises so high, thus, the present invention reduces the temperature rise of terminal device to a certain extent, is terminal
The safe handling of equipment provides safeguard.
Referring to Fig. 2, Fig. 2 is a kind of flow of another embodiment of power energy allocation method of terminal device provided by the invention
Schematic diagram.
S201, the time of one day is divided into multiple periods, and counts the power consumption of application program in each period
Information.
Wherein, the division methods of period can have a variety of, can be divided into multiple periods the time of one day,
The time of one day will can be accustomed to divide according to user's daily life.For example, user is lived item daily
Separation of the separation as each period.Such as:
First time period:9 points to the morning of at 11 points in proxima luce (prox. luc) evening is divided into a first time period, in the period generally
It is the time of having a rest.
Second time period:By the morning, 9 points are divided into a period to 12 noon, and the period is to go to work in user's morning
Time, the application program used in the time that is on duty is relatively more fixed, for example, for wechat for being linked up with client, colleague etc. and work
Be used as correlation application program it is more, and iqiyi.com etc. entertain class application program be used less.
3rd period:12 noon to 2 pm be a period, the period is the time of having a rest, it is conventional should
It may be then the other application program such as wechat or Netease's cloud music with program.
4th period:2 pm to 6 pm is a period, and the period is the work hours in the afternoon, conventional
Application program may be identical in second time period.
5th period:7 points to 11 points at night are a period at night, and the application program that the period may be commonly used is then
It is probably the application program of other amusement classes.
Therefore, the division period in the method, in each period in one day, conventional application program can deposit
In obvious difference.
It is to be appreciated that in step S201, the power consumption information of application program can be to some day in daily life
Each period is counted.It is of course also possible to the power consumption information of the application program of each period in more days is entered
Row statistics, then for each period in more days, the power consumption of application program is averaged, so as to obtain daily use journey
Power consumption information of the sequence within each period.
For example, in 30 days, the power consumption information of the application program of every day each period has been counted respectively.Example
Such as, in being recorded in this 30 days, in 30 the 4th periods, the power consumption of wechat is M1, M2 ... ..., M30 respectively.Then, by this
The power consumption information of each period in 30 days is summed and is averaged, e.g., the total power consumption of the wechat of the 4th period in 30 days
Information is M=M1+M2+ ...+M30, is therefore deduced that, the average power consumption m=M/30 of the wechat of daily 4th period.
Gone out using same method statistic in daily 4th period, the average power consumption of Netease's cloud music is n, and today's tops is averaged
Power consumption is x, and the average power consumption of iqiyi.com is y.
In some other embodiment, the power consumption information of application program can also be carried out daily in each period
Statistics, and be updated daily, so as to cause the power consumption information on the premise of day-to-day, moreover it is possible to according to recent user
Use state upgrade in time so that needs of the electricity of subsequent allocations closer to active user.
It is noted that in further embodiments, it can also be respectively divided according to classification such as working day, day offs
Period.
S202, the power consumption information for preserving application program in each period.
Step S202 protects to the power consumption information of the application program in each period for having been counted in step S201
Deposit, in order to the calling of down-stream.If period division has the division of classification on working day and day off respectively, this two kinds
The power consumption information of application program can be preserved respectively in dividing mode.
S203, detection terminal equipment current electric quantity.
S204, when the current electric quantity of terminal device is less than preset value, detect current time.
For example, when the current electric quantity of terminal device is less than 40%, it is at 3 points in afternoon to detect current time.
S205, the period for determining to be presently according to current time.
Which of the period divided in step s 201 according to residing for current time can determine current time time
Section, the period is the special time period in the present embodiment.
For example, current time is at 3 points in afternoon, hence, it can be determined that current time was in for the 4th period.
S206, the power consumption for obtaining from the power consumption information of preservation application program in the period being presently in.
For example, the consumption of corresponding application program in the 4th period is obtained in the power consumption information preserved from step S202
Electricity, i.e. wechat, Netease's cloud music, the power consumption of today's tops and iqiyi.com in the 4th period are m, n, x, y respectively.
S207, according to application program power consumption ratio to application program carry out power energy allocation.
For example, according to m:n:x:Y ratio is distributed wechat, Netease's cloud music, today's tops and iqiyi.com remaining
40% electricity.
In the present embodiment, when the electricity of terminal device is less than preset value, learnt according to statistical result, user is daily
The application program that 4th period was commonly used is wechat, and the electricity of stage wechat consumption is more, according to the power consumption of application program
To distribute remaining electricity, thus wechat will be assigned to more electricity, and to ensure wechat energy normal operation, and remaining is
The application program that four periods were of little use then is assigned to relatively small number of electricity, so as to avoid the application being of little use in the period
The application program that program consumes excessive electricity and causes user to commonly use can not continue normal use.Ensure rational utilization of electricity, for
The work and life at family provide facility.
Referring to Fig. 3, Fig. 3 is a kind of flow of the another embodiment of power energy allocation method of terminal device provided by the invention
Schematic diagram.
S301, the time of one day is divided into multiple periods, and counts the power consumption of application program in each period
Information.
S302, the power consumption information for preserving application program in each period.
S303, detection terminal equipment current electric quantity.
S304, when the current electric quantity of terminal device is less than preset value, detect current time.
S305, the period for determining to be presently according to current time.
S306, the power consumption for obtaining from the power consumption information of preservation application program in the period being presently in.
S307, according to application program power consumption ratio to application program carry out power energy allocation.
Wherein, step S301 to step S307 can be will not be repeated here with same as the previously described embodiments.
S308, when destination application by assigned electric quantity consumption to the greatest extent when, send whether be continuing with the target should
With the prompting of program, and obtain the instruction for whether being continuing with the destination application.
Terminal device persistently detects the Expenditure Levels of the electricity of each application program, when the electricity for detecting a certain application program
When running out, then prompt the user whether to be continuing with the destination application.
Wherein, prompt user mode can have it is a variety of, for example, pop-up dialogue box prompting or voice message etc..
The mode of the instruction for whether being continuing with the destination application that terminal device obtains selected by user can be:
The button for being continuing with and not being continuing with for user's selection is provided in the dialog box of ejection, or, by gathering user's language
Sound judges etc..Specifically, when prompting the electricity of user's destination application to exhaust, prompt the user to input whether simultaneously
It is continuing with the mode of the instruction of the destination application.
For example, when the electricity assigned by Netease's cloud music is used up, terminal device can pass through voice message user:" net
The electricity of easy cloud music has been used up, if being continuing with the application program, ' Yes ' please be answered, if not continuing to apply journey using this
Sequence, it please answer ' No '." user then answered according to prompting, terminal device then is to continue with using according to the answer of user identification
Still the instruction not being continuing with.
If S309, acquisition are continuing with the instruction of the destination application, the power energy allocation of other application program is given
The destination application, and continue to run with the destination application.
If the instruction that terminal device recognizes user's input is to be continuing with the instruction of the destination application, terminal device
The destination application is then continued to run with, now, the electricity of destination application consumption is to distribute to other application programs
Electricity, specifically, with being continuing with for the destination application, the available power of the other application program gradually decreases.
If S310, acquisition do not continue to the instruction using the destination application, the destination application is closed.
In step S310, terminal device recognizes the instruction of user's input not use the destination application, then eventually
End equipment closes the destination application automatically, and the unspent application program of other electricity can continue to run with.
Referring to Fig. 4, Fig. 4 is a kind of flow of another embodiment of power energy allocation method of terminal device provided by the invention
Schematic diagram.
Specifically, the step S401 of the present embodiment is same as the previously described embodiments to step S410, the present embodiment and above-mentioned reality
The difference for applying example is, before step S409, can also include:
The utilization rate of S408a, statistics application program in special time period.
Wherein, the special time period in step S408a is consistent with the period being presently in step S405.Pass through system
The utilization rate for counting application program in the special time period would know which application program is used more within the period, and which should
Must be lacked with program use, may thereby determine that by which application assigned to electricity be reallocated to and exhausted the application of electricity
Program.
For example, within the 4th daily period, the utilization rate of application program is as follows, wechat:M ', Netease's cloud sound
It is happy:N ', today's tops:X ', iqiyi.com:y’.Wherein, m ' > n ' > x ' > y '.
The difference of the present embodiment and above-described embodiment also resides in, and step S409 is:
If S409, acquisition are continuing with the instruction of the application program, by utilization rate in special time period less than default
The power energy allocation of the application program of utilization rate threshold value gives the destination application.
In step S409, a utilization rate threshold value can be preset, and by the application program counted in step S408a at this
Utilization rate in special time period is compared with the utilization rate threshold value, and so as to obtain in the special time period, utilization rate is low
In the specific application program of utilization rate threshold value.
It is less than the application program of utilization rate threshold value for utilization rate, it is believed that within the period ensuing time,
The possibility that these application programs are used is relatively low, thus by utilization rate less than utilization rate threshold value application program power energy allocation
The destination application is given, is influenceed with reducing terminal device electricity not enough to caused by user.
For example, the utilization rate threshold value can be z.In step S409, obtained application journey will be counted in step S408 respectively
Compared with the utilization rate threshold value, comparative result is the utilization rate of sequence:M ' > n ' > x ' > z > y '.It is assigned to when wechat
, then can be by the electricity assigned by iqiyi.com point because the utilization rate y ' of iqiyi.com is less than utilization rate threshold value z when electricity exhausts
Dispensing wechat.
It is understood that when the application program less than utilization rate threshold value has multiple, can be in utilization rate less than use
In the application program of rate threshold value, according to the order of utilization rate from low to high successively by the power energy allocation of application program to intended application
Program.
It is noted that in certain embodiments, the rank of some application programs power consumption in statistics special time period
Duan Zhong, had not been used in special time period, thus, the electricity that these application programs are assigned in step S 407 is 0,
That is, these application programs are not assigned to electricity, and these application programs are defined as particular application by the present embodiment.
After step S407, in addition to:If obtaining the instruction of operation particular application, will make in special time period
The particular application is given with power energy allocation of the rate less than the application program of default utilization rate threshold value.
Specifically, can be by by the electricity of other application program when user opens particular application within the period
Amount distributes to the particular application, to run the particular application.Specifically, utilization rate can be less than default use
The power energy allocation of the application program of rate threshold value gives the particular application.
For example, in 30 days of power consumption information in statistics application program within each period, with per family not the 4th
Taobao's application program is opened in period, thus Taobao's application program is not assigned to electricity in the 4th period.And follow-up
Some day in, user opens Taobao's application program within the 4th period, then can borrow utilization rate and be less than utilization rate threshold value
The electricity of iqiyi.com application program run Taobao's application program.
As shown in figure 5, Fig. 5 is a kind of flow of the another embodiment of power energy allocation method of terminal device provided by the invention
Schematic diagram.
In the present embodiment, step S501 to step S510 can be with same as the previously described embodiments, the present embodiment and above-mentioned implementation
The difference of example is, after step S509, in addition to:
S511, reduce current occupancy electricity of the utilization rate less than the application program of utilization rate threshold value.
The utilization rate y ' of iqiyi.com is less than utilization rate threshold value z, shows that iqiyi.com is very short using duration within the period,
Therefore, the current occupancy electricity of iqiyi.com can be reduced, so as to reduce the power consumption of the low application program of the utilization rate, is entered
And more electricity can be retained so that application program of the utilization rate higher than utilization rate threshold value uses.
Current occupancy electricity can be specifically reduced by the following method:
If iqiyi.com application program in foreground normal operation, reduces iqiyi.com application program memory source consumption electricity,
Reduce the frequency of the iqiyi.com region of normal operation in read/write memory.If internal memory reaches to be allowed using the system of operation
Minimum frequency when, continue to reduce its hard disk resources consumption electricity, that is, reduce the frequency of iqiyi.com region in reading writing harddisk.
Or the electricity of screen intensity occupancy can also be reduced.Or when iqiyi.com application program is not in front stage operation, can be with
Close iqiyi.com application program etc..
As shown in fig. 6, Fig. 6 is a kind of flow of another embodiment of power energy allocation method of terminal device provided by the invention
Schematic diagram.
S601, the discharge cycle of terminal device is divided into multiple periods, and counts application program in each period
Power consumption information;Wherein, the electric quantity change amount of terminal device is identical in each period.
Specifically, in step S601, discharge cycle can be that electricity is filled to electricity and exhausts the undergone time.Wherein,
Due to different use intensities, terminal device from electricity is filled to electricity, and to exhaust undergone time different, therefore, can be according to
Identical electric quantity change amount divides the period, and now, the duration in two periods can be different.
For example, the period of the present embodiment division is as follows:
First time period drops to 80% for the electricity of terminal device from 100%;
Second time period drops to 60% for the electricity of terminal device from 80%;
3rd period dropped to 40% for the electricity of terminal device from 60%;
4th period dropped to 20% for the electricity of terminal device from 40%;
5th period dropped to 0 for the electricity of terminal device from 20%.
Wherein, first time period can include 8 hours ... ..., and the 4th period can include 2 hours, when the 5th
Between section can include 1 hour etc., the duration of specific each period change because of use intensity.
The present embodiment can determine the electricity distribution of each period according to the discharge characteristic curve of battery, for example, the 4th
The electricity of period is the electricity in this section of 40%-20%, and the 5th period was the electricity in this section of 20%-0.
It can know by the division of above-mentioned period and to the statistics of the power consumption of each application program in the period, use
Family uses the custom of application program within the period.For example, if user is within the 4th less period of terminal device electricity,
It is more using wechat, and iqiyi.com is hardly used, thus, within the period, the power consumption m of wechat is more than the consumption of iqiyi.com
Electricity y.
S602, the power consumption information for preserving application program in each period.
S603, detection terminal equipment current electric quantity.
S604, when the current electric quantity of terminal device is less than preset value, determined according to the current electric quantity of terminal device current
The residing period.
For example, when preset value is 40%, if the current electric quantity of terminal device is 30%, it is known that the current electricity of terminal device
Amount is less than preset value, and it is possible to learn that current electric quantity is located in 40%-20% section, thus, then can according to it is above-mentioned when
Between section division, it is determined that being currently at for the 4th period.
S605, the power consumption for obtaining from the power consumption information of preservation application program in the period being presently in.
S606, according to application program power consumption ratio to application program carry out power energy allocation.
The present embodiment divides the period according to certain variable quantity of the electricity of terminal device, it may be determined that in the every of electricity
The power consumption situation of each application program in the section of individual identical change amount, may thereby determine that in the electricity section, user couple
The use habit of each application program, and then electricity can be distributed according to the power consumption situation of each application program, to meet user
Use habit.
For example, in step S601, by statistics it is known that the power consumption of wechat is m, the power consumption of iqiyi.com is y, because
This, according to m:Y ratio carries out power energy allocation to wechat and iqiyi.com.Because the power consumption m of wechat is more than the power consumption of iqiyi.com
Y is measured, thus the electricity that wechat can be assigned to is also more than the electricity that iqiyi.com is assigned to, accordingly, it is capable to meet user in the period
It is more than the use habit of iqiyi.com using wechat.
Present invention also offers a kind of computer-readable recording medium, computer program is stored thereon with, the computer journey
The step of power energy allocation method of any of the above-described embodiment is realized when sequence is executed by processor.As those skilled in the art manage
Solution, the storage device can be the virtual storage mediums such as the physical storage mediums such as USB flash disk, CD or server.
As shown in fig. 7, Fig. 7 is a kind of terminal device embodiment entity apparatus structural representation provided by the invention.
Specifically, the terminal device 900 of the present embodiment includes RF circuits 910, memory 920, input block 930, display
Unit 940, sensor 950, voicefrequency circuit 960, wifi module 970, processor 980 and power supply 990 etc..Wherein, RF circuits
910th, memory 920, input block 930, display unit 940, sensor 950, voicefrequency circuit 960 and wifi module 970 are divided
It is not connected with processor 980;Power supply 990 is used to provide electric energy for whole mobile terminal 900.
Specifically, RF circuits 910 are used for sending and receiving signal;Input block 930 is used to input information, can specifically include touching
Other input equipments 932 of control panel 931 and Cao Zuoanjian etc.;Display unit 940 can then include display panel 941 etc.;Pass
Sensor 950 includes infrared sensor, laser sensor etc., for detecting user's approach signal, distance signal etc.;Loudspeaker 961
And microphone (or microphone) 962 is connected by voicefrequency circuit 960 with processor 980, for sending and receiving voice signal;wifi
Module 970 is then used to receive and launch wifi signals.
There is the computer program that can be performed by processor 980 on memory 920;Processor 980 performs the computer journey
The step of power energy allocation method of any of the above-described embodiment is realized during sequence.
Referring to Fig. 8, Fig. 8 is a kind of composition structural representation of terminal device embodiment provided by the invention.
Terminal device 700 as depicted in figure 8 includes electric power detection module 710, power consumption acquisition module 720 and power energy allocation mould
Block 730, wherein, electric power detection module 710 and power energy allocation module 730 are connected with power consumption acquisition module 720.
Specifically, electric power detection module 710 is used for the electricity of detection terminal equipment 700.Power consumption acquisition module 720 is used
In when the electricity of terminal device 700 is less than preset value, power consumption of the application program in special time period is obtained.Wherein, it is special
Section of fixing time can be that the electricity of terminal device 700 is less than a period before preset value.Power energy allocation module 730 is used to press
Power energy allocation is carried out to application program according to the ratio of the power consumption of application program.
In some other embodiment, as shown in figure 9, Fig. 9 is another embodiment of a kind of terminal device provided by the invention
Composition structural representation.Terminal device 800 is except including electric power detection module 810, power consumption acquisition module 820 and electricity point
Outside module 830, statistical module 840 and preserving module 850 can also be included.
Statistical module 840 is used to the time of one day being divided into multiple periods, and counts in each period and apply journey
The power consumption information of sequence.
Preserving module 850 is connected with statistical module 840, and the power consumption for preserving application program in each period is believed
Breath.
Electric power detection module 810 is used for the electricity of detection terminal equipment 800.
Power consumption acquisition module 820 is connected with electric power detection module 810, pre- for being less than in the electricity of terminal device 800
If during value, obtain power consumption of the application program in special time period.
Wherein, power consumption acquisition module 820 specifically includes time detecting module 822, determination module 824 and acquisition module
826, time detecting module 822 and acquisition module 826 are connected with determination module 824, and time detecting module 822 is used to detect and worked as
Preceding time, determination module 824 are used for the period being presently according to current time determination, and acquisition module 826 is also with preserving mould
Block 850 connects, for obtaining the power consumption of application program in the period being presently in from the power consumption information of preservation.
Power energy allocation module 830 is used to carry out power energy allocation to application program according to the ratio of the power consumption of application program.
It should be understood that in the embodiment of mobile terminal, the electricity of its specific implementation principle and step and terminal device
It is similar to measure the embodiment of distribution method, repeats no more here.
In several embodiments provided by the present invention, it should be understood that disclosed method and equipment, Ke Yitong
Other modes are crossed to realize.For example, equipment embodiment described above is only schematical, for example, the division of module,
Only a kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can be with
With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.
The module illustrated as separating component can be or may not be physically separate, be shown as module
Part can be or may not be physical module, you can with positioned at a place, or can also be distributed to multiple networks
On unit.Some or all of module therein can be selected to realize the mesh of present embodiment scheme according to the actual needs
's.
In addition, each functional module in each embodiment of the present invention can be integrated in a processing module, also may be used
To be that modules are individually physically present, can also two or more modules be integrated in a module.It is above-mentioned integrated
Module can both be realized in the form of hardware, can also be realized in the form of software function module.
In summary, the present invention can make terminal device reasonable distribution electricity, avoid unreasonable electricity consumption from causing terminal device not have
Electricity and can not work on, simultaneously, moreover it is possible to avoid terminal device electricity consumption too fast and so that terminal device temperature rises so high and drawn
Send out problem safe to use.
The section Example of the present invention is the foregoing is only, is not thereby limited the scope of the invention, every utilization
The equivalent device or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, be included within the scope of the present invention.
Claims (11)
1. a kind of power energy allocation method of terminal device, it is characterised in that including:
Detect the current electric quantity of the terminal device;
When the current electric quantity of the terminal device is less than preset value, power consumption of the application program in special time period is obtained;
Ratio according to the power consumption of the application program carries out power energy allocation to the application program.
2. power energy allocation method according to claim 1, it is characterised in that the acquisition application program is in special time period
In the step of interior power consumption, when the special time period is less than one before the preset value for the electricity of the terminal device
Between section.
3. power energy allocation method according to claim 1, it is characterised in that the current electricity of the detection terminal device
Include before the step of amount:
The time of one day is divided into multiple periods, and counts the power consumption information of the application program in each period;
Preserve the power consumption information of the application program in each period;
Described the step of obtaining power consumption of the application program in special time period, includes:
Detect current time;
The period for determining to be presently according to the current time;
The power consumption of the application program in the period being presently in is obtained from the power consumption information of preservation.
4. power energy allocation method according to claim 1, it is characterised in that the current electricity of the detection terminal device
Include before the step of amount:
The discharge cycle of the terminal device is divided into multiple periods, and counts the application program in each period
Power consumption information;Wherein, the electric quantity change amount of the terminal device is identical in each period;
Preserve the power consumption information of the application program in each period;
Described the step of obtaining power consumption of the application program in special time period, includes:
The period for determining to be presently according to the current electric quantity of the terminal device;
The power consumption of the application program in the period being presently in is obtained from the power consumption information of preservation.
5. the power energy allocation method according to any one of claim 2 to 4, it is characterised in that described to apply journey according to described
After the step of ratio of the power consumption of sequence carries out power energy allocation to the application program, in addition to:
When destination application is most by assigned electric quantity consumption, sends and whether be continuing with carrying for the destination application
Show, and obtain the instruction for whether being continuing with the destination application;
If obtaining the instruction for being continuing with the destination application, the power energy allocation of other application program is given to the intended application
Program, and continue to run with the destination application;
If obtaining the instruction not continued to using the destination application, the destination application is closed.
6. power energy allocation method according to claim 5, it is characterised in that the power energy allocation by other application program
Before the step of destination application, in addition to:
Count utilization rate of the application program in special time period;
The power energy allocation by other application program includes to the step of destination application:By in the special time period
Utilization rate gives the destination application less than the power energy allocation of the application program of default utilization rate threshold value.
7. power energy allocation method according to claim 6, it is characterised in that the definition consumption according to the application program
The application program that the ratio of electricity is 0 to the electricity in the step of application program progress power energy allocation, being assigned to is special
Application program;
After the step of ratio of the power consumption according to the application program carries out power energy allocation to the application program, also
Including:
If obtaining the instruction for running the particular application, utilization rate in the special time period is less than default use
The power energy allocation of the application program of rate threshold value gives the particular application.
8. power energy allocation method according to claim 7, it is characterised in that the power consumption according to the application program
Ratio to the application program carry out power energy allocation the step of after, in addition to:
Reduce current occupancy electricity of the utilization rate less than the application program of the utilization rate threshold value.
9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program is located
The step of reason device realizes any one of claim 1 to 8 methods described when performing.
10. a kind of terminal device, it is characterised in that including memory, processor and be stored on the memory and can be by institute
The computer program of computing device is stated, realizes any one of claim 1 to 8 described in the computing device during computer program
The step of methods described.
A kind of 11. terminal device, it is characterised in that including:
Electric power detection module, for detecting the electricity of the terminal device;
Power consumption acquisition module, for when the electricity of the terminal device is less than preset value, application program is obtained when specific
Between power consumption in section;
Power energy allocation module, the ratio for the power consumption according to the application program carry out electricity point to the application program
Match somebody with somebody.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710540221.1A CN107483751B (en) | 2017-07-05 | 2017-07-05 | Terminal device, electric quantity distribution method thereof and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710540221.1A CN107483751B (en) | 2017-07-05 | 2017-07-05 | Terminal device, electric quantity distribution method thereof and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107483751A true CN107483751A (en) | 2017-12-15 |
CN107483751B CN107483751B (en) | 2020-10-02 |
Family
ID=60595475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710540221.1A Expired - Fee Related CN107483751B (en) | 2017-07-05 | 2017-07-05 | Terminal device, electric quantity distribution method thereof and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107483751B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108112063A (en) * | 2017-12-21 | 2018-06-01 | 珠海市魅族科技有限公司 | Electric quantity managing method, power management device, terminal and readable storage medium storing program for executing |
CN108921544A (en) * | 2018-07-09 | 2018-11-30 | 蒋兴德 | Payment devices electronics Hua Zhang mechanism |
CN108990105A (en) * | 2018-06-12 | 2018-12-11 | Oppo广东移动通信有限公司 | Wireless communication transmission method, device, mobile terminal and computer-readable storage medium |
CN109739334A (en) * | 2018-12-26 | 2019-05-10 | 孙海 | Data volume cloud platform assessment system and method |
CN109745596A (en) * | 2019-01-11 | 2019-05-14 | 王冬萍 | Adaptive drop velocity modulation section platform |
CN110619259A (en) * | 2019-01-07 | 2019-12-27 | 邓继红 | Data verification system based on face recognition |
CN111082462A (en) * | 2020-01-21 | 2020-04-28 | 南方电网科学研究院有限责任公司 | Standardized new forms of energy management system that is incorporated into power networks |
WO2020133389A1 (en) * | 2018-12-29 | 2020-07-02 | 深圳市欢太科技有限公司 | Application grouping adjustment method and apparatus, and storage medium and electronic device |
CN113268131A (en) * | 2020-02-14 | 2021-08-17 | 北京小米移动软件有限公司 | Method, apparatus and medium for predicting endurance information |
EP3842896A4 (en) * | 2018-09-25 | 2021-12-01 | Huawei Technologies Co., Ltd. | User-habit-based power control method, and terminal |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103364727A (en) * | 2012-03-29 | 2013-10-23 | 宇龙计算机通信科技(深圳)有限公司 | Electrical quantity detection method and terminal |
CN103455410A (en) * | 2012-05-30 | 2013-12-18 | 宇龙计算机通信科技(深圳)有限公司 | Application icon display method and communication terminal thereof |
JP2014003356A (en) * | 2012-06-15 | 2014-01-09 | Junichi Kakumoto | Voice coil, magnetic circuit, speaker, sound playback system and its application device |
CN104065835A (en) * | 2014-07-10 | 2014-09-24 | 深圳市中兴移动通信有限公司 | Mobile terminal and power saving method and device thereof |
CN104375618A (en) * | 2013-08-12 | 2015-02-25 | 联想(北京)有限公司 | Power management method, power management device and electronic device |
CN105072292A (en) * | 2015-08-04 | 2015-11-18 | 深圳市金立通信设备有限公司 | Application control method and terminal |
CN105100505A (en) * | 2015-07-17 | 2015-11-25 | 中国联合网络通信集团有限公司 | Method and system for assigning battery level to terminal applications |
CN105302275A (en) * | 2015-09-25 | 2016-02-03 | 维沃移动通信有限公司 | Electric quantity distribution method and terminal |
-
2017
- 2017-07-05 CN CN201710540221.1A patent/CN107483751B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103364727A (en) * | 2012-03-29 | 2013-10-23 | 宇龙计算机通信科技(深圳)有限公司 | Electrical quantity detection method and terminal |
CN103455410A (en) * | 2012-05-30 | 2013-12-18 | 宇龙计算机通信科技(深圳)有限公司 | Application icon display method and communication terminal thereof |
JP2014003356A (en) * | 2012-06-15 | 2014-01-09 | Junichi Kakumoto | Voice coil, magnetic circuit, speaker, sound playback system and its application device |
CN104375618A (en) * | 2013-08-12 | 2015-02-25 | 联想(北京)有限公司 | Power management method, power management device and electronic device |
CN104065835A (en) * | 2014-07-10 | 2014-09-24 | 深圳市中兴移动通信有限公司 | Mobile terminal and power saving method and device thereof |
CN105100505A (en) * | 2015-07-17 | 2015-11-25 | 中国联合网络通信集团有限公司 | Method and system for assigning battery level to terminal applications |
CN105072292A (en) * | 2015-08-04 | 2015-11-18 | 深圳市金立通信设备有限公司 | Application control method and terminal |
CN105302275A (en) * | 2015-09-25 | 2016-02-03 | 维沃移动通信有限公司 | Electric quantity distribution method and terminal |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108112063A (en) * | 2017-12-21 | 2018-06-01 | 珠海市魅族科技有限公司 | Electric quantity managing method, power management device, terminal and readable storage medium storing program for executing |
CN108112063B (en) * | 2017-12-21 | 2020-03-31 | 珠海市魅族科技有限公司 | Power management method, power management device, terminal and readable storage medium |
CN108990105B (en) * | 2018-06-12 | 2021-10-19 | Oppo广东移动通信有限公司 | Wireless communication transmission method, device, mobile terminal and computer readable storage medium |
CN108990105A (en) * | 2018-06-12 | 2018-12-11 | Oppo广东移动通信有限公司 | Wireless communication transmission method, device, mobile terminal and computer-readable storage medium |
CN108921544A (en) * | 2018-07-09 | 2018-11-30 | 蒋兴德 | Payment devices electronics Hua Zhang mechanism |
CN108921544B (en) * | 2018-07-09 | 2021-10-19 | 湖南工商大学 | Payment equipment electron draws account mechanism |
US11481014B2 (en) | 2018-09-25 | 2022-10-25 | Huawei Technologies Co., Ltd. | Power control method based on user habit and terminal |
EP3842896A4 (en) * | 2018-09-25 | 2021-12-01 | Huawei Technologies Co., Ltd. | User-habit-based power control method, and terminal |
CN109739334A (en) * | 2018-12-26 | 2019-05-10 | 孙海 | Data volume cloud platform assessment system and method |
WO2020133389A1 (en) * | 2018-12-29 | 2020-07-02 | 深圳市欢太科技有限公司 | Application grouping adjustment method and apparatus, and storage medium and electronic device |
CN110619259A (en) * | 2019-01-07 | 2019-12-27 | 邓继红 | Data verification system based on face recognition |
CN109745596A (en) * | 2019-01-11 | 2019-05-14 | 王冬萍 | Adaptive drop velocity modulation section platform |
CN111082462A (en) * | 2020-01-21 | 2020-04-28 | 南方电网科学研究院有限责任公司 | Standardized new forms of energy management system that is incorporated into power networks |
CN113268131A (en) * | 2020-02-14 | 2021-08-17 | 北京小米移动软件有限公司 | Method, apparatus and medium for predicting endurance information |
CN113268131B (en) * | 2020-02-14 | 2024-01-09 | 北京小米移动软件有限公司 | Method, device and medium for predicting endurance information |
Also Published As
Publication number | Publication date |
---|---|
CN107483751B (en) | 2020-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107483751A (en) | Terminal device and its power energy allocation method, computer-readable recording medium | |
EP3502880A1 (en) | Method for preloading application, storage medium, and terminal device | |
CN106648747A (en) | Method and device for processing pre-loading of process | |
CN108733342A (en) | volume adjusting method, mobile terminal and computer readable storage medium | |
CN107610695A (en) | Driver's voice wakes up the dynamic adjusting method of instruction word weight | |
WO2019062342A9 (en) | Background application cleaning method and apparatus, and storage medium and electronic device | |
CN107889203A (en) | A kind of electricity saving method, device, computer installation and computer-readable recording medium | |
CN106951057A (en) | The control method and mobile terminal of application | |
CN107861603A (en) | Power consumption control method and equipment | |
CN107193598A (en) | One kind application startup method, mobile terminal and computer-readable recording medium | |
CN107402804B (en) | background process control method and device, storage medium and electronic equipment | |
CN104636024A (en) | Touch screen shortcut button control method and device and mobile terminal | |
CN107832141A (en) | Application program progress control method and equipment | |
CN107506017A (en) | Charging reminding method and device, electronic equipment and computer-readable recording medium | |
CN108304274A (en) | A kind of method of information exchange, server and computer-readable medium | |
CN105610682A (en) | Method and device for adding contact person into group in instant message application | |
CN110245021A (en) | EMS memory management process, system, electronic equipment and the storage medium of mobile terminal | |
CN109884427A (en) | Electrostatic detection methods and relevant apparatus | |
CN106650409B (en) | A kind of terminal control method and terminal | |
CN107748697A (en) | Using method for closing, device, storage medium and electronic equipment | |
CN113439435A (en) | Video playing method and device, storage medium and electronic equipment | |
CN113064677A (en) | Application running method and device, storage medium and electronic device | |
CN107704364A (en) | Background application management-control method, device, storage medium and electronic equipment | |
CN113439263A (en) | Application cleaning method and device, storage medium and electronic equipment | |
CN107870811B (en) | Application cleaning method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201002 |
|
CF01 | Termination of patent right due to non-payment of annual fee |