CN107483751B - Terminal device, electric quantity distribution method thereof and computer-readable storage medium - Google Patents

Terminal device, electric quantity distribution method thereof and computer-readable storage medium Download PDF

Info

Publication number
CN107483751B
CN107483751B CN201710540221.1A CN201710540221A CN107483751B CN 107483751 B CN107483751 B CN 107483751B CN 201710540221 A CN201710540221 A CN 201710540221A CN 107483751 B CN107483751 B CN 107483751B
Authority
CN
China
Prior art keywords
application program
time period
electric quantity
power consumption
power
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.)
Expired - Fee Related
Application number
CN201710540221.1A
Other languages
Chinese (zh)
Other versions
CN107483751A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710540221.1A priority Critical patent/CN107483751B/en
Publication of CN107483751A publication Critical patent/CN107483751A/en
Application granted granted Critical
Publication of CN107483751B publication Critical patent/CN107483751B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/73Battery saving arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing 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 terminal device, an electric quantity distribution method thereof and a computer readable storage medium, wherein the electric quantity distribution method of the terminal device comprises the following steps: detecting the current electric quantity of the terminal equipment; when the current electric quantity of the terminal equipment is lower than a preset value, acquiring the electric consumption of the application program in a specific time period; and distributing the electric quantity of the application program according to the proportion of the electric quantity consumption of the application program. Through the mode, the terminal equipment can reasonably distribute the electric quantity, the phenomenon that the terminal equipment cannot work continuously due to power shortage caused by unreasonable power utilization is avoided, and meanwhile, the problem of safety in use caused by overhigh temperature of the terminal equipment due to overhigh power utilization of the terminal equipment can be avoided.

Description

Terminal device, electric quantity distribution method thereof and computer-readable storage medium
Technical Field
The present invention relates to the field of terminal control technologies, and in particular, to a terminal device, a power distribution method for the terminal device, and a computer-readable storage medium.
Background
With the development of terminal devices, mobile phones have become an indispensable part of people's work and life. At present, most smart phones have the problem of overlarge power consumption, meanwhile, due to the fact that the development of the current battery technology is relatively delayed, smart phones with powerful functions often have no cruising ability expected by people, and especially when the electric quantity of the mobile phone is low, the electric quantity of the mobile phone is too fast exhausted due to unreasonable electric quantity distribution, so that the smart phones cannot be continuously used, and the life and work of people are affected.
Disclosure of Invention
The embodiment of the invention provides a terminal device, an electric quantity distribution method thereof and a computer readable storage medium, which are used for solving the problem that the electric quantity is exhausted too fast due to unreasonable electric quantity distribution of the terminal device in the prior art.
A first aspect of an embodiment of the present invention provides a method for allocating electric quantity to a terminal device, where the method includes: detecting the current electric quantity of the terminal equipment; when the current electric quantity of the terminal equipment is lower than a preset value, acquiring the electric consumption of an application program in a specific time period; and distributing the electric quantity of the application program according to the proportion of the electric quantity of the application program.
A second aspect of embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method: detecting the current electric quantity of the terminal equipment; when the current electric quantity of the terminal equipment is lower than a preset value, acquiring the electric consumption of an application program in a specific time period; and distributing the electric quantity of the application program according to the proportion of the electric quantity of the application program.
A third aspect of the embodiments of the present invention provides a terminal device, where the terminal device includes a memory, a processor, and a computer program stored in the memory and executable by the processor, and the processor implements the following steps when executing the computer program: detecting the current electric quantity of the terminal equipment; when the current electric quantity of the terminal equipment is lower than a preset value, acquiring the electric consumption of an application program in a specific time period; and distributing the electric quantity of the application program according to the proportion of the electric quantity of the application program.
A fourth aspect of the embodiments of the present invention provides a terminal device, where the terminal device includes an electric quantity detection module, an electric quantity acquisition module, and an electric quantity distribution module, where the electric quantity detection module is configured to detect an electric quantity of the terminal device; the power consumption acquisition module is used for acquiring the power consumption of the application program in a specific time period when the electric quantity of the terminal equipment is lower than a preset value; and the electric quantity distribution module is used for distributing the electric quantity to the application program according to the proportion of the electric consumption of the application program.
According to the embodiment of the invention, when the electric quantity of the terminal equipment is lower than the preset value, the electric quantity is distributed to the application program according to the proportion of the electric quantity of the application program in the specific time period, so that the normal running of the application programs can be ensured when the electric quantity is lower, the phenomenon that the terminal equipment cannot work continuously due to the fact that the terminal equipment is out of power caused by unreasonable power utilization can be avoided, and meanwhile, the phenomenon that the temperature of the terminal equipment is raised too high due to the fact that the terminal equipment is too fast in power utilization can be avoided.
Drawings
Fig. 1 is a schematic flowchart of an embodiment of a power distribution method for a terminal device according to the present invention;
fig. 2 is a schematic flowchart of another embodiment of a power distribution method for a terminal device according to the present invention;
fig. 3 is a schematic flowchart of a power distribution method of a terminal device according to another embodiment of the present invention;
fig. 4 is a schematic flowchart of another embodiment of a power distribution method for a terminal device according to the present invention;
fig. 5 is a schematic flowchart of a power distribution method of a terminal device according to another embodiment of the present invention;
fig. 6 is a schematic flowchart of another embodiment of a method for allocating power of a terminal device according to the present invention;
fig. 7 is a schematic structural diagram of an entity apparatus of an embodiment of a terminal device provided in the present invention;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another embodiment of a terminal device provided in the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The execution main body of the power distribution method of the terminal device provided by the embodiment of the invention can be a mobile terminal (such as a notebook, a tablet computer, a mobile phone, a wearable device, and the like) provided by the embodiment of the invention, and the mobile terminal can be implemented in a hardware or software mode.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an embodiment of a method for allocating power of a terminal device according to the present invention. The power distribution method shown in fig. 1 includes:
s101, detecting the current electric quantity of the terminal equipment.
In step S101, the coulomb meter chip in the terminal device may detect the current electric quantity of the battery of the terminal device, and the specific detection method is within the understanding range of those skilled in the art, and is not listed here.
S102, when the current electric quantity of the terminal equipment is lower than a preset value, the electric consumption of the application program in a specific time period is obtained.
Specifically, in step S102, the preset value is a preset threshold, and the preset value may be, for example, 50%, 40%, 30%, 20%, or the like.
The specific time period may be a time period before the current power of the terminal device is lower than a preset value, for example, within two hours before the power of the terminal device is lower than 40%, or within three hours, etc. Setting the specific time period as the time period before the power amount is lower than the preset value can ensure that the user continues to use the application program currently used by the user after the power amount is distributed in the subsequent step S103. Of course, in some embodiments, the time of day may be divided into a plurality of time periods in advance, and the time period in which the power of the terminal device is lower than 40% may be determined as the specific time period.
The power consumption of an application may be the amount of power consumed by the application during the time period, which may be understood to relate to the power consumption of the application per time unit and the time the application is used during the particular time period. The greater the power consumption of an application per unit time, the longer the duration of use within that particular time period, and the more power that the application consumes within that time period.
For example, in step S102, the preset value is 40%, the specific time period is two hours before the electric quantity of the terminal device is reduced to 40%, and the electric power consumption of the application program in the two hours is respectively: social applications, e.g., WeChat, 50%; music playing application programs, such as internet music, 35%; news applications, such as today's headlines, 10%; video applications, e.g., love art, 5%.
And S103, distributing the electric quantity to the application program according to the proportion of the electric quantity of the application program.
In step S103, specifically, since the amount of power consumed by the application in the specific time period is related to the amount of power consumed in the unit time and the usage duration of the application, allocating the remaining amount of power to the application according to the proportion of the amount of power consumed by the application in the specific time period can avoid the problem that the power consumption per unit time is low but the amount of power allocated to the commonly used application is not enough due to allocation according to the amount of power consumed per unit time, and can also avoid the problem that the power allocated to the application with high power consumption per unit time is hard to support the operation of the application due to allocation according to the usage duration.
For example, from the power consumption amount of each application acquired in step S102, it is known that the ratio of the power consumption amount of each application is, WeChat: and (3) network music: the head item of today: aiqi art is 50%: 35%: 10%: 5 percent. Therefore, in the remaining 40% of the electricity, the electricity allocated to WeChat, Internet-friendly cloud music, today's headline and love art is the remaining 40% of the electricity: 50%, 35%, 10% and 5%, i.e., the four applications are allocated the following amounts of power: 20%, 14%, 4% and 2%.
According to the embodiment of the invention, when the electric quantity of the terminal equipment is lower than the preset value, the electric quantity is distributed to the application program according to the proportion of the electric consumption of the application program in a specific time period, so that the normal running of the application programs can be ensured when the electric quantity is lower, the phenomenon that the terminal equipment cannot work continuously due to the fact that the terminal equipment is out of power caused by unreasonable power utilization is avoided, and meanwhile, the phenomenon that the temperature of the terminal equipment is raised too high due to the fact that the terminal equipment is too fast in power utilization can be avoided, therefore, the temperature rise of the terminal equipment is reduced to a certain extent, and the safe.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a method for allocating electric power to a terminal device according to another embodiment of the present invention.
S201, dividing the time of a day into a plurality of time periods, and counting the power consumption information of the application program in each time period.
The time periods can be divided into a plurality of time periods, the time of a day can be divided into a plurality of time periods on average, the time of a day can be divided according to the daily living habits of the users, and the like. For example, the dividing point of daily life activities of the user is used as the dividing point of each time slot. For example:
a first time period: the first day, 11 pm to 9 am, is divided into a first time period, which is usually a rest period.
A second time period: the time period from 9 am to 12 am is divided into a time period, the time period is the morning work time of the user, the application programs used in the morning work time are fixed, for example, the application programs related to work, such as WeChat for communicating with clients and colleagues, are used more, and the entertainment application programs, such as the entertainment application programs, are used less.
A third time period: the time period from 12 am to 2 pm is a rest time, and the commonly used application program may be other application programs such as WeChat or Internet-accessible cloud music.
And a fourth time period: one time period from 2 pm to 6 pm, which is the afternoon work hour, the common applications may be the same in the second time period.
A fifth time period: the time period from 7 pm to 11 pm is a time period, and the application program which may be commonly used in the time period may be other entertainment application programs.
Thus, according to the time division of the method, there may be a significant difference in the commonly used applications in each time period of the day.
It is to be understood that, in step S201, the power consumption amount information of the application program may be counted for each time period of a certain day in daily life. Of course, the power consumption amount information of the application program in each time period in multiple days may be counted, and then the power consumption amount of the application program in each time period in multiple days is averaged, so as to obtain the power consumption amount information of the daily application program in each time period.
For example, in 30 days, the power consumption information of the application program in each time period of each day is counted respectively. For example, the power consumption of the WeChat in the 30 fourth time periods recorded on the 30 days was M1, M2, … …, and M30, respectively. Then, the power consumption amount information of each time period in the 30 days is summed and averaged, for example, the total power consumption amount information of the wechat in the fourth time period in the 30 days is M1+ M2+ … … + M30, from which it can be derived that the average power consumption amount M of the wechat in the fourth time period per day is M/30. And in the fourth time period every day, the average power consumption of the Internet music is counted to be n, the average power consumption of the top line of the day is counted to be x, and the average power consumption of the love art is counted to be y.
In other embodiments, the power consumption information of the application program in each time period can be counted every day and updated every day, so that the power consumption information can be updated in time according to the use state of the recent user on the premise of daily increase, and the subsequently distributed power is closer to the needs of the current user.
It is worth mentioning that in other embodiments, the time periods may be divided according to the classification of working days, resting days, and the like.
And S202, saving the power consumption information of the application program in each time period.
Step S202 stores the power consumption amount information of the application program in each time slot counted in step S201, so as to facilitate the call of the subsequent program. If the time period division includes the classification of working days and rest days, the power consumption information of the application programs in the two division modes can be stored respectively.
S203, detecting the current electric quantity of the terminal equipment.
And S204, detecting the current time when the current electric quantity of the terminal equipment is lower than a preset value.
For example, when the current power of the terminal device is lower than 40%, the current time is detected to be 3 pm.
And S205, determining the current time period according to the current time.
It is possible to determine which time period, i.e., a specific time period in the present embodiment, of the time periods divided in step S201 the current time is in, based on the current time.
For example, the current time is 3 pm, and thus, it may be determined that the current time is in the fourth period.
And S206, acquiring the power consumption of the application program in the current time period from the stored power consumption information.
For example, the power consumption of the application program corresponding to the fourth time period is obtained from the power consumption information saved in step S202, that is, the power consumption of the WeChat, the Internet-accessible music, the today' S headline and the love art in the fourth time period are m, n, x and y, respectively.
And S207, distributing the electric quantity to the application program according to the proportion of the electric quantity of the application program.
For example, the rest 40% of the electricity is allocated to WeChat, Internet-friendly cloud music, today's headlines and love art according to the ratio of m: n: x: y.
In this embodiment, when the electric quantity of the terminal device is smaller than the preset value, it is known according to the statistical result that the application program frequently used by the user in the fourth time period every day is the WeChat, the electric quantity consumed by the WeChat at this stage is large, and the remaining electric quantity is allocated according to the electric consumption of the application program, so that the WeChat will be allocated with large electric quantity to ensure that the WeChat can normally operate, and the remaining application programs not frequently used in the fourth time period are allocated with relatively small electric quantity, so that the situation that the application programs frequently used by the user cannot be continuously and normally used due to excessive electric quantity consumed by the application programs not frequently used in the time period is avoided. Ensure reasonable power utilization and provide convenience for the work and life of users.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a power allocation method of a terminal device according to another embodiment of the present invention.
S301, dividing the time of day into a plurality of time periods, and counting the power consumption information of the application program in each time period.
And S302, saving the power consumption information of the application program in each time period.
And S303, detecting the current electric quantity of the terminal equipment.
And S304, detecting the current time when the current electric quantity of the terminal equipment is lower than a preset value.
And S305, determining the current time period according to the current time.
And S306, acquiring the power consumption of the application program in the current time period from the stored power consumption information.
And S307, distributing the electric quantity to the application program according to the proportion of the electric quantity of the application program.
Steps S301 to S307 may be the same as the above embodiments, and are not described herein again.
S308, when the distributed electric quantity is consumed by the target application program, sending a prompt whether to continue using the target application program, and acquiring an instruction whether to continue using the target application program.
The terminal device continuously detects the consumption condition of the electric quantity of each application program, and when the electric quantity of a certain application program is detected to be consumed, the terminal device prompts a user whether to continuously use the target application program.
The user may be prompted in various ways, for example, by a pop-up dialog prompt or a voice prompt.
The manner for the terminal device to obtain the instruction whether to continue using the target application program selected by the user may be: providing buttons for the user to select continuous use and non-continuous use in a pop-up dialog box, or judging by collecting the voice of the user, and the like. Specifically, when the user is prompted to run out of power of the target application program, the user is prompted to input a mode whether to continue using the target application program.
For example, when the power amount allocated to the internet music is used up, the terminal device may prompt the user through voice: "the power of the internet music is exhausted, if the application program is continuously used, please answer 'Yes', and if the application program is not continuously used, please answer 'No'. The user answers according to the prompt, and the terminal equipment identifies whether the user continues to use or does not continue to use according to the answer of the user.
S309, if the instruction of continuing to use the target application program is obtained, distributing the electric quantity of other application programs to the target application program, and continuing to run the target application program.
If the terminal device recognizes that the instruction input by the user is an instruction to continue using the target application program, the terminal device continues to run the target application program, at this time, the power consumed by the target application program is the power allocated to other application programs, and specifically, the available power of the other application programs gradually decreases as the target application program continues to be used.
S310, if the instruction of no longer using the target application program is obtained, closing the target application program.
In step S310, the terminal device recognizes that the instruction input by the user is no longer to use the target application, and then the terminal device automatically closes the target application, and other applications whose power is not exhausted can continue to run.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating an electric quantity distribution method of a terminal device according to another embodiment of the present invention.
Specifically, steps S401 to S410 of the present embodiment are the same as those of the above embodiment, and the present embodiment differs from the above embodiment in that before step S409, the method may further include:
and S408a, counting the utilization rate of the application program in a specific time period.
Here, the specific time period in step S408a coincides with the current time period in step S405. By counting the usage rate of the application programs in the specific time period, it can be known which application programs are used more and which application programs are used less in the specific time period, so that it can be determined which application programs are allocated to power to be reallocated to the application programs which have exhausted power.
For example, during the fourth time period of each day, the usage rate of the application is as follows, WeChat: m', internet music: n ', today's headlines: x', ai qi yi: y'. Wherein m '> n' > x '> y'.
The present embodiment is further different from the above embodiments in that step S409 is:
and S409, if an instruction for continuing to use the application program is obtained, distributing the electric quantity of the application program of which the utilization rate is lower than a preset utilization rate threshold value in a specific time period to the target application program.
In step S409, a usage threshold may be preset, and the usage of the application counted in step S408a in the specific time period is compared with the usage threshold, so as to obtain a specific application with a usage lower than the usage threshold in the specific time period.
For the applications with the usage rate lower than the usage rate threshold, it can be considered that the applications are less likely to be used in the time period next to the time period, and therefore, the power of the applications with the usage rate lower than the usage rate threshold is allocated to the target application, so as to reduce the influence of the insufficient power of the terminal device on the user.
For example, the usage threshold may be z. In step S409, the usage rates of the application programs counted in step S408 are respectively compared with the usage rate threshold, and the comparison result is: m '> n' > x '> z > y'. When the amount of power allocated to the WeChat is exhausted, since the usage rate y' of the Aiqi art is lower than the usage rate threshold z, the amount of power allocated to the Aiqi art can be allocated to the WeChat.
It is understood that, when there are a plurality of applications below the usage threshold, the power of the applications may be allocated to the target applications in the order of the usage from low to high in the applications with the usage below the usage threshold.
It should be noted that, in some embodiments, some applications are not used in a specific time period in the stage of counting the power consumption in the specific time period, and therefore, the power allocated to the applications in step S407 is 0, that is, the applications are not allocated to the power, and the embodiments define the applications as special applications.
After step S407, the method further includes: and if the instruction for running the special application program is acquired, distributing the electric quantity of the application program of which the utilization rate is lower than a preset utilization rate threshold value in a specific time period to the special application program.
Specifically, when the user opens a special application within the time period, the special application can be run by allocating power of other applications to the special application. Specifically, the power of the application with the usage rate lower than the preset usage rate threshold may be allocated to the specific application.
For example, in 30 days of the power consumption information of the statistical application in each time period, the user does not open the treasure panning application in the fourth time period, and thus the treasure panning application does not allocate power in the fourth time period. And in the following certain day, the user opens the Taobao application program in the fourth time period, and the power of the love art application program with the utilization rate lower than the utilization rate threshold value can be borrowed to run the Taobao application program.
As shown in fig. 5, fig. 5 is a schematic flowchart of a power distribution method of a terminal device according to another embodiment of the present invention.
In this embodiment, steps S501 to S510 may be the same as the above embodiment, and the present embodiment is different from the above embodiment in that after step S509, the method further includes:
and S511, reducing the current occupied electric quantity of the application program with the utilization rate lower than the utilization rate threshold value.
The use rate y' of the Aichi art is smaller than the use rate threshold value z, which indicates that the use time of the Aichi art in the time period is very short, so that the current electricity consumption of the Aichi art can be reduced, the electricity consumption of the application program with low use rate can be reduced, and more electricity can be reserved for the application program with the use rate higher than the use rate threshold value.
The current occupied electric quantity can be reduced by the following method:
if the Aiqi skill application program normally runs in the foreground, the power consumption of the memory resource of the Aiqi skill application program is reduced, namely, the frequency of reading and writing the area of the Aiqi skill which normally runs in the memory is reduced. And if the memory reaches the minimum frequency allowed by the system for application operation, the consumption of the hard disk resources is continuously reduced, namely the frequency of the region where the love art in the read-write hard disk is located is reduced. Or, the electric quantity occupied by the screen brightness can be reduced. Or when the love art application program does not run in the foreground, the love art application program can be closed, and the like.
As shown in fig. 6, fig. 6 is a schematic flowchart of another embodiment of a method for allocating power of a terminal device according to the present invention.
S601, dividing a discharge cycle of the terminal equipment into a plurality of time periods, and counting power consumption information of an application program in each time period; and the electric quantity variation of the terminal equipment in each time period is the same.
Specifically, in step S601, the discharge period may be the time elapsed from the full charge to the end of the charge. The time from the full charge to the exhaustion of the terminal device is different due to different use strengths, and therefore, the time periods may be divided according to the same charge variation amount, and at this time, the time lengths in the two time periods may be different.
For example, the time periods divided by the present embodiment are as follows:
the first time period is that the electric quantity of the terminal equipment is reduced from 100% to 80%;
the second time period is that the electric quantity of the terminal equipment is reduced from 80% to 60%;
the third time period is that the electric quantity of the terminal equipment is reduced from 60% to 40%;
the fourth time period is that the electric quantity of the terminal equipment is reduced from 40% to 20%;
and the fifth time period is that the power of the terminal equipment is reduced from 20% to 0.
Wherein, the first time period may include 8 hours, … …, the fourth time period may include 2 hours, the fifth time period may include 1 hour, etc., and the duration of each time period varies according to the intensity of usage.
The present embodiment may determine the power distribution of each time period according to the discharge characteristic curve of the battery, for example, the power of the fourth time period is 40% -20% of the power of the fourth time period, and the power of the fifth time period is 20% -0 of the power of the fifth time period.
The habit of the user using the application program in the time period can be known through the division of the time period and the statistics of the power consumption of each application program in the time period. For example, if the user uses more WeChat and hardly uses the Aiqi art during the fourth time period in which the power of the terminal device is small, the power consumption m of the WeChat is greater than the power consumption y of the Aiqi art during the time period.
And S602, saving the power consumption information of the application program in each time period.
And S603, detecting the current electric quantity of the terminal equipment.
And S604, when the current electric quantity of the terminal equipment is lower than a preset value, determining the current time period according to the current electric quantity of the terminal equipment.
For example, when the preset value is 40%, if the current power of the terminal device is 30%, it is known that the current power of the terminal device is lower than the preset value, and it can be known that the current power is in an interval of 40% -20%, and therefore, it can be determined that the current power is in the fourth time period according to the division of the time periods.
And S605, acquiring the power consumption of the application program in the current time period from the stored power consumption information.
And S606, distributing the electric quantity to the application program according to the electric quantity proportion of the application program.
In this embodiment, the time periods are divided according to a certain variation of the electric quantity of the terminal device, and the power consumption situation of each application program in each interval with the same variation of the electric quantity can be determined, so that the usage habit of the user on each application program in the electric quantity interval can be determined, and the electric quantity can be distributed according to the power consumption situation of each application program, so as to meet the usage habit of the user.
For example, in step S601, it can be statistically known that the power consumption of the WeChat is m and the power consumption of the Aiqi art is y, so that the WeChat and the Aiqi art are allocated according to the ratio of m to y. Since the power consumption m of the WeChat is greater than the power consumption y of the Aiqi art, the WeChat can be allocated more power than the Aiqi art, and thus, the use habit that the user uses the WeChat more than the Aiqi art in the time period can be satisfied.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the power distribution method of any of the above embodiments. As will be understood by those skilled in the art, the storage device may be a physical storage medium such as a usb disk and an optical disk, or may be a virtual storage medium such as a server.
As shown in fig. 7, fig. 7 is a schematic structural diagram of an entity apparatus of an embodiment of a terminal device provided in the present invention.
Specifically, the terminal device 900 of the present embodiment includes an RF circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wifi module 970, a processor 980, a power supply 990, and the like. Wherein the RF circuit 910, the memory 920, the input unit 930, the display unit 940, the sensor 950, the audio circuit 960, and the wifi module 970 are respectively connected with the processor 980; the power supply 990 is used to supply power to the entire mobile terminal 900.
Specifically, the RF circuit 910 is used for transmitting and receiving signals; the input unit 930 is used for inputting information, and may specifically include a touch panel 931 and other input devices 932 such as operation keys; the display unit 940 may include a display panel 941; the sensor 950 includes an infrared sensor, a laser sensor, etc. for detecting a user approach signal, a distance signal, etc.; a speaker 961 and a microphone 962 are connected to the processor 980 through the audio circuit 960 for emitting and receiving sound signals; the wifi module 970 is then used for receiving and transmitting wifi signals.
The memory 920 stores computer programs executable by the processor 980; the steps of the power allocation method of any of the above embodiments are implemented when the computer program is executed by the processor 980.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
The terminal device 700 shown in fig. 8 includes a power amount detection module 710, a power consumption amount acquisition module 720, and a power amount distribution module 730, wherein the power amount detection module 710 and the power amount distribution module 730 are connected to the power consumption amount acquisition module 720.
Specifically, the power detection module 710 is configured to detect the power of the terminal device 700. The power consumption obtaining module 720 is configured to obtain the power consumption of the application program in a specific time period when the power consumption of the terminal device 700 is lower than a preset value. The specific time period may be a time period before the power of the terminal device 700 is lower than a preset value. The power distribution module 730 is configured to distribute power to the application according to a ratio of power consumption of the application.
In some other embodiments, as shown in fig. 9, fig. 9 is a schematic structural diagram of another embodiment of a terminal device provided in the present invention. Terminal device 800 may include a statistics module 840 and a saving module 850 in addition to power amount detection module 810, power consumption amount acquisition module 820, and power amount distribution module 830.
The counting module 840 is configured to divide a time of day into a plurality of time periods, and count power consumption information of the application program in each time period.
The saving module 850 is connected to the counting module 840, and is configured to save the power consumption information of the application program in each time period.
The power detection module 810 is used for detecting the power of the terminal device 800.
The power consumption obtaining module 820 is connected to the power detection module 810, and is configured to obtain power consumption of the application program in a specific time period when the power of the terminal device 800 is lower than a preset value.
The power consumption obtaining module 820 specifically includes a time detecting module 822, a determining module 824, and an obtaining module 826, where the time detecting module 822 and the obtaining module 826 are both connected to the determining module 824, the time detecting module 822 is configured to detect a current time, the determining module 824 is configured to determine a current time period according to the current time, and the obtaining module 826 is further connected to the saving module 850 and is configured to obtain power consumption of the application program in the current time period from the saved power consumption information.
The power distribution module 830 is configured to distribute power to the application according to a ratio of power consumption of the application.
It can be understood that, in the embodiment of the mobile terminal, the specific implementation principle and steps thereof are similar to those of the embodiment of the power distribution method of the terminal device, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed method and apparatus can be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
In conclusion, the invention can reasonably distribute the electric quantity of the terminal equipment, avoid the phenomenon that the terminal equipment cannot work continuously due to no electricity caused by unreasonable electricity consumption, and simultaneously avoid the problem of safety in use caused by overhigh temperature of the terminal equipment due to overhigh electricity consumption of the terminal equipment.
The above description is only a part of the embodiments of the present invention, and not intended to limit the scope of the present invention, and all equivalent devices or equivalent processes performed by the present invention through the contents of the specification and the drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A method for distributing electric quantity of terminal equipment is characterized by comprising the following steps:
dividing the time of a day into a plurality of time periods, and counting the power consumption information of the application program in each time period;
saving power consumption information of the application program in each time period;
detecting the current electric quantity of the terminal equipment;
when the current electric quantity of the terminal equipment is lower than a preset value, acquiring the electric consumption of an application program in a specific time period; the step of obtaining the power consumption of the application program in the specific time period specifically includes: detecting the current time; determining the current time period according to the current time; acquiring the power consumption of the application program in the current time period from the saved power consumption information;
distributing the electric quantity of the application program according to the proportion of the electric quantity of the application program;
when the target application program consumes the distributed electric quantity, sending a prompt whether to continuously use the target application program, and acquiring an instruction whether to continuously use the target application program;
if an instruction to continue using the target application is obtained,
counting the utilization rate of the application program in a specific time period;
distributing the electric quantity of the application program with the utilization rate lower than a preset utilization rate threshold value in the specific time period to the target application program, and continuing to run the target application program;
and if the instruction that the target application program is not used any more is obtained, closing the target application program.
2. The power distribution method according to claim 1, wherein in the step of obtaining the power consumption of the application program in a specific time period, the specific time period is a time period before the power consumption of the terminal device is lower than the preset value.
3. The method according to claim 1, wherein in the step of allocating the power consumption of the application program according to the ratio of the power consumption of the application program, the application program allocated with the power consumption of 0 is defined as a special application program;
after the step of allocating the power consumption of the application program according to the proportion of the power consumption of the application program, the method further comprises the following steps:
and if the instruction for operating the special application program is acquired, distributing the electric quantity of the application program of which the utilization rate is lower than a preset utilization rate threshold value in the specific time period to the special application program.
4. The method of claim 3, wherein the step of allocating the power of the application program in proportion to the power consumption of the application program is followed by the step of:
and reducing the current occupied electric quantity of the application programs with the utilization rate lower than the utilization rate threshold value.
5. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
6. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable by the processor, the processor implementing the steps of the method of any one of claims 1 to 4 when executing the computer program.
7. A terminal device, comprising:
the statistical module is used for dividing the time of a day into a plurality of time periods and counting the power consumption information of the application program in each time period;
the saving module is used for saving the power consumption information of the application program in each time period;
the electric quantity detection module is used for detecting the electric quantity of the terminal equipment;
the power consumption acquisition module is used for acquiring the power consumption of the application program in a specific time period when the electric quantity of the terminal equipment is lower than a preset value;
the time detection module is used for detecting the current time;
the judging module is used for determining the current time period according to the current time;
the acquisition module is used for acquiring the power consumption of the application program in the current time period from the stored power consumption information;
the electric quantity distribution module is used for distributing the electric quantity of the application program according to the proportion of the electric consumption of the application program;
when the target application program consumes the distributed electric quantity, sending a prompt whether to continuously use the target application program, and acquiring an instruction whether to continuously use the target application program;
if an instruction to continue using the target application is obtained,
counting the utilization rate of the application program in a specific time period;
distributing the electric quantity of the application program with the utilization rate lower than a preset utilization rate threshold value in the specific time period to the target application program, and continuing to run the target application program;
and if the instruction that the target application program is not used any more is obtained, closing the target application program.
CN201710540221.1A 2017-07-05 2017-07-05 Terminal device, electric quantity distribution method thereof and computer-readable storage medium Expired - Fee Related CN107483751B (en)

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 CN107483751A (en) 2017-12-15
CN107483751B true 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)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108921544B (en) * 2018-07-09 2021-10-19 湖南工商大学 Payment equipment electron draws account mechanism
CN110941320A (en) 2018-09-25 2020-03-31 华为技术有限公司 Electric quantity control method and terminal based on user habits
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
CN110619259B (en) * 2019-01-07 2020-05-22 厦门熙重电子科技有限公司 Data verification system based on face recognition
CN109745596B (en) * 2019-01-11 2021-02-19 张颖颖 Self-adaptive dripping speed adjusting platform
CN111082462B (en) * 2020-01-21 2022-02-25 南方电网科学研究院有限责任公司 Standardized new forms of energy management system that is incorporated into power networks
CN113268131B (en) * 2020-02-14 2024-01-09 北京小米移动软件有限公司 Method, device and medium for predicting endurance information
CN118312028B (en) * 2024-06-11 2024-09-24 麒麟软件有限公司 Application power consumption management and control method and system of android system

Citations (8)

* Cited by examiner, † Cited by third party
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN107483751A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN107483751B (en) Terminal device, electric quantity distribution method thereof and computer-readable storage medium
US11397590B2 (en) Method for preloading application, storage medium, and terminal
CN108595228B (en) Application program prediction model establishing method and device, storage medium and mobile terminal
US10720791B2 (en) Charging method, charging device and terminal
JP6955092B2 (en) Methods for reducing terminal power consumption, and terminals
KR102182319B1 (en) Electronic device and method for providing information of battery in the electronic device
CN106598646A (en) Program update method and terminal
CN109947496A (en) Application program preloads method, apparatus, storage medium and mobile terminal
CN106569585A (en) Method and terminal of managing application program process
US10956176B2 (en) Processing method, device and storage medium for implementing automatic startup
CN108196482B (en) Power consumption control method and device, storage medium and electronic equipment
CN108282410A (en) Background traffic control method, device, storage medium and user terminal
CN106851016A (en) Broadcast the message method, device and the terminal queued up
WO2020061824A1 (en) Charging prompt method and related product
CN106650409B (en) A kind of terminal control method and terminal
CN108287605A (en) charge control method, device, terminal device and storage medium
CN107479744A (en) Adjust method, apparatus, terminal and the storage medium of touch-screen dispatching priority
CN108155693B (en) Charging control method and device of mobile terminal, storage medium and mobile terminal
CN108038050B (en) Performance adjusting method and device, storage medium and electronic equipment
WO2020133408A1 (en) Application program priority level adjustment method and apparatus, and storage medium and electronic device
CN107291213B (en) Mode selection method, device, terminal and computer readable storage medium
CN107277906B (en) Mode selecting method, device, terminal and computer readable storage medium
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment
CN106503543A (en) A kind of method and apparatus of management application program
CN113439435A (en) Video playing 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
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.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201002