CN108227892A - Power consumption management method, apparatus, storage medium and terminal device - Google Patents
Power consumption management method, apparatus, storage medium and terminal device Download PDFInfo
- Publication number
- CN108227892A CN108227892A CN201810005013.6A CN201810005013A CN108227892A CN 108227892 A CN108227892 A CN 108227892A CN 201810005013 A CN201810005013 A CN 201810005013A CN 108227892 A CN108227892 A CN 108227892A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- electricity
- user
- power consumption
- real time
- 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.)
- Pending
Links
Classifications
-
- 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/28—Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
-
- 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/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
-
- 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
-
- 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/0274—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
- H04W52/0277—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof according to available power supply, e.g. switching off when a low battery condition is detected
-
- 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
Abstract
A kind of power consumption management method, apparatus, storage medium and the terminal device provided in the embodiment of the present application, the real time electrical quantity value that this method passes through detection terminal equipment;Setting charge value is determined according to the pre-set electricity set information of user;If detecting that the real time electrical quantity value is less than or equal to the setting charge value, perform electricity and remind operation.By using above-mentioned technical proposal, the setting charge value that can be voluntarily set according to user is monitored the electricity of terminal device, performing electricity if necessary reminds operation to remind user that should charge to terminal device, it can prevent user from finding terminal device out of power when being badly in need of using terminal equipment, make troubles to the use of user.
Description
Technical field
The invention relates to field of computer technology more particularly to a kind of power consumption management method, apparatus, storage mediums
And terminal device.
Background technology
With the development of mobile intelligent terminal equipment, the function that terminal device can be realized is more and more, is increasingly becoming
People's daily life is essential, and portable tool.People can in all case using terminal equipment entertained,
The operation of communication, payment and online.But user is when needing using terminal equipment to perform important operation task, if at this time
The not enough power supply of terminal device, user are likely to that important operation task can not be completed by terminal device, can so give user
It brings more inconvenience or even brings loss to user.
Invention content
A kind of power consumption management method, apparatus provided by the embodiments of the present application, storage medium and terminal device, can carry in time
Awake user charges.
In a first aspect, the embodiment of the present application provides a kind of power consumption management method, including:
The real time electrical quantity value of detection terminal equipment;
Setting charge value is determined according to the pre-set electricity set information of user;
If detecting that the real time electrical quantity value is less than or equal to the setting charge value, perform electricity and remind operation.
Second aspect, the embodiment of the present application provide a kind of power consumption management device, including:
Real time electrical quantity detection module, for the real time electrical quantity value of detection terminal equipment;
Charge value determining module, for determining setting charge value according to the pre-set electricity set information of user;
Execution module is reminded, if for detecting that the real time electrical quantity value is less than or equal to the setting charge value,
It performs electricity and reminds operation.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence realizes the power consumption management method as described in the embodiment of the present application when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of terminal device, including memory, processor and are stored in storage
And can be in the computer program of processor operation on device, the processor is realized when performing the computer program as the application is real
Apply the power consumption management method described in example.
A kind of power consumption management scheme provided in the embodiment of the present application, passes through the real time electrical quantity value of detection terminal equipment;Root
Setting charge value is determined according to the pre-set electricity set information of user;If detect that the real time electrical quantity value is less than or equal to
The setting charge value then performs electricity and reminds operation.By using above-mentioned technical proposal, can voluntarily be set according to user
Setting charge value is monitored the electricity of terminal device, performs electricity if necessary and operation is reminded to remind user should be to end
End equipment charges, and can prevent user from finding terminal device out of power when being badly in need of using terminal equipment, to user's
Using making troubles.
Description of the drawings
Fig. 1 is a kind of flow diagram of power consumption management method provided by the embodiments of the present application;
Fig. 2 is the flow diagram of another power consumption management method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another power consumption management method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another power consumption management method provided by the embodiments of the present application;
Fig. 5 is the flow diagram of another power consumption management method provided by the embodiments of the present application;
Fig. 6 is a kind of schematic diagram of a scenario of power consumption management method provided by the embodiments of the present application;
Fig. 7 is a kind of structure diagram of power consumption management device provided by the embodiments of the present application;
Fig. 8 is a kind of structure diagram of terminal device provided by the embodiments of the present application;
Fig. 9 is the structure diagram of another terminal device provided by the embodiments of the present application.
Specific embodiment
Further illustrate the technical solution of the application below with reference to the accompanying drawings and specific embodiments.It is appreciated that
It is that specific embodiment described herein is used only for explaining the application rather than the restriction to the application.It further needs exist for illustrating
, part relevant with the application rather than entire infrastructure are illustrated only for ease of description, in attached drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing described as flow chart or method.Although each step is described as the processing of sequence, many of which by flow chart
Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation
The processing can be terminated during completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with
Corresponding to method, function, regulation, subroutine, subprogram etc..
Terminal device may include smart mobile phone, tablet computer and other equipment with operating system.With terminal device
On application program increase, the function that can be realized on the terminal device is also more and more, the power consumption rate of terminal device
It is getting faster.So need to be monitored the power consumption of the battery of terminal device, need to terminal device charge when
It waits and user is reminded to charge.
Fig. 1 is a kind of flow diagram of power consumption management method provided by the embodiments of the present application, and this method can be by electricity consumption
Managing device performs, and wherein the device can be generally integrated in terminal device, also may be used by software and or hardware realization
It is equipped in the equipment of operating system with being integrated in other.As shown in Figure 1, this method includes:
The real time electrical quantity value of S110, detection terminal equipment.
Wherein, the terminal device may include smart mobile phone, tablet computer and other equipment with operating system.Terminal
Equipment includes providing the battery of electric energy for the operation of terminal device, and the real time electrical quantity value is current for the battery of terminal device
Charge value.Optionally, the real time electrical quantity value of detection terminal equipment can continue the real time electrical quantity value of detection terminal equipment, example
Property, every the voltage value of a time cycle detection terminal equipment, to obtain the real time electrical quantity value of terminal device in time.
S111, setting charge value is determined according to the pre-set electricity set information of user.
The user can be the user of terminal device or the administrator of terminal device.User can set in advance
It puts in electricity set information to terminal device and is stored.The electricity set information can include performing electricity prompting operation pair
The setting condition answered, setting condition may include setting charge value.
Wherein, the setting charge value can be the charge value set according to the demand of user.It illustratively, can basis
The real time electrical quantity value of terminal device and the relationship of setting charge value judge whether that performing electricity reminds operation, if terminal device
Current real time electrical quantity value be less than or equal to the setting charge value, then it represents that the battery capacity value of terminal device compared with
It is low, the charge value of call user's attention battery is needed at this time.
Optionally, it is further included before the real time electrical quantity value of detection terminal equipment:Receive the pre-set of user setting
Electricity set information, that is, the execution electricity for receiving user setting remind the corresponding setting condition of operation.Illustratively, the execution
Electricity reminds the electricity consumption time demand information for operating that corresponding setting condition can be user.Electricity set information can also include
Corresponding setting charge value, i.e., setting charge value corresponding with setting condition.
Illustratively, if when user's using terminal equipment need persistently several hours outdoors, need terminal device
Reserved more electricity, so that user could be used that terminal device within follow-up several hours.So user can be according to its need
It asks and pre-sets electricity set information, corresponding setting charge value can be that can support user can within follow-up several hours
The electricity of using terminal equipment.It is alternatively possible to data and user setting are used according to the history of the battery of terminal device
Electricity set information is determined setting charge value.Illustratively, the electricity set information of user setting, which includes reserving, uses 4
The electricity of hour, the then electricity that reserve 4 hours determined according to the history of the battery of terminal device using data, setting electricity
Magnitude needs are set as at least 40%.When the real time electrical quantity value of terminal device is less than 40%, then performs electricity and remind operation, it can be with
The charge value for reminding user current, user can select to charge to terminal device in the case where there is charge condition, can also not have
Have under charge condition, close the task process run on terminal device according to demand or adjust the operational mode of terminal device
The pattern relatively low for power consumption.
If S112, detecting that the real time electrical quantity value is less than or equal to the setting charge value, electricity prompting is performed
Operation.
Wherein, the electricity that performs reminds operation that can include the prompting for reminding user's current electric quantity relatively low, specifically
Alerting pattern can be set for setting according to practical application, can also be configured according to the demand of user.Electricity is set
It may also comprise electricity corresponding with setting charge value in information and remind operation, user can set corresponding with different set charge value
Different electricity reminds operation.Illustratively, it can be reminded by the alarm clock function of terminal device, detect real-time electricity
When magnitude is less than or equal to the setting charge value, sound prompting is carried out to user by alarm clock function.
The real time electrical quantity value that the embodiment of the present application passes through detection terminal equipment;According to the pre-set electricity setting letter of user
Breath determines setting charge value;If detecting that the real time electrical quantity value is less than or equal to the setting charge value, electricity is performed
Remind operation.By using above-mentioned technical proposal, the setting charge value that can be voluntarily set according to user is to the electricity of terminal device
Amount is monitored, and performs electricity if necessary and operation is reminded to remind user that should charge to terminal device, can prevent
User has found terminal device out of power when being badly in need of using terminal equipment, makes troubles to the use of user.
Optionally, user can set electricity set information by the system alarm clock function interface of terminal device.Electricity is set
Determining information may include the setting charge value of user's selection and alarm clock type corresponding with setting charge value.Setting charge value can
To be 0% to 100%, voluntarily selection sets charge value and can voluntarily select according to demand corresponding user according to demand
Alarm clock type.User can also select to turn off or on power consumption management function by the system alarm clock function interface of terminal device.
Power consumption management function is closed, that is, the real time electrical quantity value of detection terminal equipment is not carried out and electricity is not carried out and reminds operation.
By setting electricity set information at system alarm clock function interface, user can be facilitated to be configured, improve the operation of user
Efficiency.
Fig. 2 is the flow diagram of another power consumption management method provided by the embodiments of the present application, in above-described embodiment institute
On the basis of the technical solution of offer, operation to the real time electrical quantity value of detection terminal equipment and pre-set according to user
Electricity set information determine setting charge value operation be optimized, optionally, as shown in Fig. 2, this method includes:
S120, in terminal device performance objective task, continue the real time electrical quantity value of detection terminal equipment.
Wherein, the goal task can be run on the physical memory (Physical memory) of terminal device
Task process, it may include the application program (Application) run on terminal device, the system performed on terminal device are appointed
Business or the operational mode of the terminal device.Terminal device is in performance objective task, accordingly also in consumption terminal device
The electricity of battery, and the electricity that different goal tasks is consumed is also different.It is generally desirable to carry out a large amount of data
The application of processing is opposite to consume larger electricity.Such as need to call central processing unit (CPU, the Central of terminal device
Processing Unit) or the 3d gaming that is rendered of graphics processor (GPU, Graphics Processing Unit)
Using often bringing larger power consumption to terminal device.And need persistently to call the GPS module of terminal device to carry out accordingly
Operation function or application program, larger power consumption can be also brought to terminal device.It is and a large amount of without carrying out at runtime
The power consumption of the application program of data processing is smaller, illustratively, the application program of such as local word read class, band when running
The power consumption come is relatively low.
The goal task can be the power consumption feelings of all task process run on the physical memory according to terminal device
Condition is determined, illustratively, can be by the most setting of power consumption in all task process of the operation on the terminal device
The task process of quantity is determined as goal task.
Goal task can also be the frequency of use according to the task process run on terminal device to be determined, example
Property, the task process that most frequent setting quantity is run in the task process run on terminal device can be determined as target
Task.
Goal task can also be to be configured according to the sets itself of user, and user can be individually by some task process
Labeled as goal task, the electricity consumption of terminal device can be detected when terminal device performs the goal task.Target is appointed
Business can also be configured according to the demand of other practical applications, and the embodiment of the present application is not limited thereto.
S121, setting electricity corresponding with the goal task is determined according to the pre-set electricity set information of user
Value.
The electric quantity consumption that terminal device is brought when performing different goal tasks, to the battery of terminal device is not yet
Together, so different goal tasks is also required to set different setting charge values.Illustratively, the higher goal task pair of power consumption
The setting charge value answered is higher, because the goal task power consumption is higher, needs to carry when reserving more setting charge value
Wake up user, so that user as early as possible charges to terminal device.
User can determine the charge value that user needs according to the goal task of system recommendation, be determined as goal task correspondence
Setting charge value.System can be true according to the history power consumption information of the goal task and goal task that user is voluntarily set
The corresponding setting charge value of the task that sets the goal.Optionally, user can also be configured according to sets itself goal task and
The corresponding setting charge value of goal task can be configured according to the sets itself of user, corresponding electricity set information includes
User pre-sets goal task and user pre-sets the corresponding setting charge value of goal task.
The corresponding setting charge value of goal task can also be configured according to the demand of other practical applications, and the application is real
Example is applied to be not limited thereto.
Corresponding setting charge value determined according to different goal tasks, further according to setting charge value and real time electrical quantity value
Relationship judges whether that performing electricity reminds operation.The embodiment of the present application is according to the power consumption difference of different target task or to user
Demand difference dynamically adjust setting charge value, can be according to the situation for performing different target task, on accurate opportunity pair
User carries out electricity prompting, and user can charge to terminal device on accurate opportunity, can improve user to electricity pipe
The efficiency of reason.
If S122, detecting that the real time electrical quantity value is less than or equal to the setting charge value, electricity prompting is performed
Operation.
Specific embodiment can refer to associated description above, and details are not described herein.
Fig. 3 is the flow diagram of another power consumption management method provided by the embodiments of the present application, in above-mentioned arbitrary implementation
On the basis of the technical solution that example is provided, optionally, as shown in figure 3, this method includes:
S130, electricity set information input by user is received;Wherein, the electricity set information includes goal task and sets
Determine the mapping relations of charge value.
Wherein it is possible to the default interface on the screen for passing through terminal device receives electricity set information input by user.Institute
The function interface that default interface can be stored in the system of terminal device is stated, and the screen for passing through terminal device is shown
Show.
User can set goal task and setting setting charge value corresponding with goal task by default interface,
And the mapping relations of goal task and setting charge value are subjected to storage as electricity set information.Terminal device is in the task of execution
During process, whether the task process that can judge to perform by electricity set information is goal task, if goal task is then
Operations described below can be performed.
The embodiment of the present application can select mesh according to the demand of user by receiving electricity set information input by user
Mark task and according to goal task setting it is corresponding setting charge value come to terminal device carry out power consumption management, can basis
The demand of user carries out electricity consumption prompting to user on suitable opportunity, further improves power consumption management of the user to terminal device
Efficiency.
S131, in terminal device performance objective task, persistently detect the real time electrical quantity value of the terminal device.
S132, setting electricity corresponding with the goal task is determined according to the pre-set electricity set information of user
Value.
If S133, detecting that the real time electrical quantity value is less than or equal to the setting charge value, electricity prompting is performed
Operation.
The specific embodiment of aforesaid operations can refer to associated description above, and details are not described herein.
Fig. 4 is the flow diagram of another power consumption management method provided by the embodiments of the present application, in above-mentioned arbitrary implementation
On the basis of the technical solution that example is provided, optionally, as shown in figure 4, this method includes:
The real time electrical quantity value of S140, detection terminal equipment.
S141, setting charge value is determined according to the pre-set electricity set information of user.
If S142, detecting that the real time electrical quantity value is less than or equal to the setting charge value, electricity prompting is performed
Operation.
The specific embodiment of aforesaid operations can refer to associated description above, and details are not described herein.
S143, after setting time, detecting whether the terminal device is charging.
If S144, the terminal device are not charging, the operational mode of the terminal device is switched to low power consumption
Pattern.
After above-mentioned execution electricity reminds operation, user can according to demand charge to terminal device.And if
After setting time, the terminal device is not charging yet, then may be that user forgets to charge or user does not have
Notice that electricity is reminded.So after setting time, detect that terminal device is not charging, it can be by the terminal device
Operational mode be switched to low power consumption mode, to reduce the power consumption of terminal device operation, postpone the usage time of terminal device.
Optionally, the low-power consumption mode includes closing or turn down high consumption by the function of power consumption high in terminal device
The working frequency of the function of electricity, the function of the high power consumption include:The power consumption brought in same preset period of time, which is higher than, to be set
Determine the function of electricity consumption value.
Illustratively, the low-power consumption mode includes the screen intensity of terminal device being reduced to setting brightness value, sets
Brightness value can be the minimum of the screen intensity of terminal device.The low-power consumption mode may also include raising one's voice terminal device
For device volume decrease down to setting volume value, setting volume value can be the minimum volume value of the loud speaker of terminal device.
Illustratively, the low-power consumption mode may include closing the locating module of terminal device, such as global positioning system
(GPS, Global Positioning System) module, because the need of work of GPS module is carried out with satellite
Communication, can bring larger power consumption to the battery of terminal device;The locating module of terminal device is closed, terminal device can be extended
Battery working time.
It, can be after performing electricity and reminding operation by the technical solution of the embodiment of the present application, user not to be noted carries
It wakes up and does not charge to terminal device or when user does not have the condition to charge terminal device, by the fortune of terminal device
Row mode adjustment is low-power consumption mode, can reduce the power consumption that terminal device operation is brought, extend the work of the battery of terminal device
Make the time,
Optionally, it after the operational mode of the terminal device is switched to low-power consumption mode, further includes:
If the goal task is high power consumption type, terminate the operation process of the goal task.
Wherein, the high power consumption type can be the power consumption brought in same preset period of time higher than setting power consumption
Task process.Illustratively, the 3d gaming application by image processing module progress Rendering operations is needed, in terminal device
During upper operation, very high power consumption can be brought to terminal device, 3d gaming, which is applied, just belongs to high power consumption type.If the target
Task is high power consumption type, and detects that terminal device is not charging, then can terminate the operation process of the goal task, keep away
The operation for exempting from the goal task of high power consumption type persistently brings high power consumption to terminal device, leads to the dead battery of terminal device,
Terminal device shuts down, and can not perform any task process.So fortune brought by terminating the goal task of high power consumption type
Traveling journey, further reduces power consumption, extends the working time of the battery of terminal device.
Fig. 5 is the flow diagram of another power consumption management method provided by the embodiments of the present application, in above-mentioned arbitrary implementation
On the basis of the technical solution that example is provided, operation is reminded to be optimized to performing electricity, optionally, as shown in figure 5, the party
Method includes:
The real time electrical quantity value of S150, detection terminal equipment.
S151, setting charge value is determined according to the pre-set electricity set information of user.
The specific embodiment of aforesaid operations can refer to associated description above, and details are not described herein.
If S152, detect that the real time electrical quantity value is less than or equal to the setting charge value, according to the target
Task determines corresponding type of reminders, and performs electricity according to the type of reminders and remind operation.
Wherein, the mapping relations of goal task and type of reminders are also included in electricity set information.It can be set according to electricity
Determine information and determine type of reminders corresponding to goal task.The type of reminders can be that can cause user on terminal device
The alerting pattern paid attention to, exemplary, type of reminders may include display alarm, sound prompting, sparkling prompting or vibration reminding etc..
The mode of the operation of goal task is different, and the type of reminders that user pays attention to can be caused also different.It is exemplary
Ground, if goal task for song is listened to apply, during user's using terminal equipment, it is likely that simply by terminal device loud speaker or
Person establishes the Headphone device of connection to listen to the music that song is listened to apply with terminal device, and user will not notice that terminal device
Screen, if type of reminders is display alarm, user is likely to will not notice that the electricity is reminded.So according to goal task
Type determines corresponding type of reminders, can improve the validity that electricity reminds the prompting of operation, allow users to pay attention to as early as possible
It reminds to electricity, is reminded without missing electricity.
Optionally, if the goal task is front stage operation type, it is determined that the type of reminders is display alarm;It is logical
Cross the screen that system broadcasts remind component that display alarm information is sent to terminal device.
Wherein, the front stage operation type includes carrying out the task process of lasting display by the screen of terminal device,
It can also be the task process that the screen by terminal device is interacted with user.If the goal task is front stage operation
Type, then it represents that user is paying attention to the screen of terminal device at this time, it may be determined that type of reminders is display alarm.
The display alarm is to carry out display alarm by the screen of terminal device.Component can be reminded by system broadcasts
Prompting message is sent to the screen of terminal device, the prompting message can be user reminding user's electricity text information,
Pictorial information or other display information.The system broadcasts prompting component can be performed for the function of the prompting of system level
Property component, illustratively, it can be radio receiver in Android (Android) system that system broadcasts, which remind component,
(BroadcastReceiver), radio receiver can be used for receiving the broadcast in system and application, and broadcast is pushed to end
The prompting that the screen of end equipment carries out system level is shown.
The prompting message of system level can be shown in the top layer of the screen of terminal device, that is, be covered in other just
It is shown above the goal task of operation.Illustratively, Fig. 6 is a kind of power consumption management side provided by the embodiments of the present application
The schematic diagram of a scenario of method, as shown in fig. 6, being carrying out the boundary of one game application of display on the screen 161 of terminal device 160
Face, the game application are goal task, the corresponding charge value that set as 50%, when system battery charge value less than 50%
When, it reminds component that display alarm information 162 " not enough power supply 50%, please charge in time " is sent to terminal by system broadcasts and sets
Standby screen is shown, is shown as shown in fig. 6, display alarm information is covered in above the interface of game application.Even if
User is when using the game application, it can also be noted that the electricity is reminded.By being front stage operation class in the goal task
During type, it is display alarm to determine the type of reminders;Remind component that display alarm information is sent to terminal by system broadcasts
The screen of equipment can improve the validity that electricity reminds the prompting of operation, allow users to notice that electricity is reminded as early as possible, and
Electricity prompting will not be missed.
The display alarm can also be that carrying out corresponding remind by other functional components on terminal device operates.Show
Example property, can display alarm be carried out by the display of the indicator light on terminal device.
Optionally, if the goal task is running background type, it is determined that the type of reminders for sound prompting or
Vibration reminding;Corresponding sound prompting or vibration reminding are performed by system alarm managing process.
Wherein, the running background type may include without being shown by the screen of terminal device, and occupied terminal
The task process of the physical memory operation of equipment.Illustratively, running background type may include the application program of music type, obtain
Take the application program of other background service types.If goal task is running background type, because without being set by terminal
Standby screen shown, the user of terminal device is likely at this moment and not to be noted terminal device, so by type of reminders
Being determined as sound prompting or vibration reminding, user being reminded with will pass through sound or sense of touch.
The system alarm managing process can be that the alarmmanager of Android system reminds component, alarmmanager
Component is reminded to can be used for, when meeting its setting condition, providing the prompting service of system level, illustratively, the prompting service
It can be the alarm clock function of systemic presupposition, corresponding sound prompting or vibration reminding can be carried out when performing alarm clock function.If
The goal task is running background type, it is determined that the type of reminders is sound prompting or vibration reminding;It is warned by system
Managing process is reported to perform corresponding sound prompting or vibration reminding, the validity that electricity reminds the prompting of operation can be improved, made
User can notice that electricity is reminded as early as possible, be reminded without missing electricity.
Fig. 7 is a kind of structure diagram of power consumption management device provided by the embodiments of the present application, which can perform electricity consumption
Management method, as shown in fig. 7, the device includes:
Real time electrical quantity detection module 210, for the real time electrical quantity value of detection terminal equipment;
Charge value determining module 211, for determining setting charge value according to the pre-set electricity set information of user;
Execution module 212 is reminded, if for detecting that the real time electrical quantity value is less than or equal to the setting charge value,
It then performs electricity and reminds operation.
A kind of power consumption management device, storage medium and the terminal device provided in the embodiment of the present application, passes through detection terminal
The real time electrical quantity value of equipment;Setting charge value is determined according to the pre-set electricity set information of user;If it detects described
Real time electrical quantity value is less than or equal to the setting charge value, then performs electricity and remind operation.It, can by using above-mentioned technical proposal
The electricity of terminal device is monitored with the setting charge value voluntarily set according to user, electricity is performed if necessary and reminds behaviour
Make to remind user that should charge to terminal device, can prevent user from finding terminal when being badly in need of using terminal equipment
Equipment out of power is made troubles to the use of user.
Optionally, real time electrical quantity detection module is specifically used for:
In terminal device performance objective task, the real time electrical quantity value of the terminal device is persistently detected;
Correspondingly, charge value determining module is specifically used for:
Setting charge value corresponding with the goal task is determined according to the pre-set electricity set information of user.
Optionally, it further includes:
Electricity sets receiving module, in the terminal device performance objective task, persistently detecting the terminal and setting
Before standby real time electrical quantity value, electricity set information input by user is received;Wherein, the electricity set information is appointed including target
Business and the mapping relations of setting charge value.
Optionally, it further includes:
Charge judgment module, for after performing electricity and reminding operation and after setting time, detecting the end
Whether end equipment is charging;
If do not charged for the terminal device, the operational mode of the terminal device is switched for power saving module
For low power consumption mode.
Optionally, execution module is reminded to be specifically used for:
Corresponding type of reminders is determined, and perform electricity according to the type of reminders and remind behaviour according to the goal task
Make.
Optionally, execution module is reminded to be specifically used for:
If the goal task is front stage operation type, it is determined that the type of reminders is display alarm;
Display alarm information is sent to the screen of terminal device by system broadcasts prompting component.
Optionally, execution module is reminded to be specifically used for:
If the goal task is running background type, it is determined that the type of reminders is carried for sound prompting or vibrations
It wakes up;
Corresponding sound prompting or vibration reminding are performed by system alarm managing process.
A kind of storage medium for including computer executable instructions that the embodiment of the present application is provided, computer can perform
The power consumption management operation being not limited to the described above is instructed, the power consumption management side that the application any embodiment is provided can also be performed
Relevant operation in method.
The embodiment of the present application also provides a kind of storage medium for including computer executable instructions, and the computer can perform
When being performed by computer processor for performing power consumption management method, this method includes for instruction:
The real time electrical quantity value of detection terminal equipment;
Setting charge value is determined according to the pre-set electricity set information of user;
If detecting that the real time electrical quantity value is less than or equal to the setting charge value, perform electricity and remind operation.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap
It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as
DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium
(such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can further include other
The memory or combination of type.In addition, storage medium can be located at program in the first computer system being wherein performed,
Or can be located in different second computer systems, second computer system is connected to the by network (such as internet)
One computer system.Second computer system can provide program instruction and be used to perform to the first computer." storage is situated between term
Matter " can include may reside in different location two of (such as in different computer systems by network connection) or
More storage mediums.Storage medium can store the program instruction that can be performed by one or more processors and (such as implement
For computer program).
The embodiment of the present application provides a kind of terminal device, and use provided by the embodiments of the present application can be integrated in the terminal device
Electric managing device.
Fig. 8 is a kind of structure diagram of terminal device provided by the embodiments of the present application, and the embodiment of the present application provides one
Kind of terminal device 30 including memory 31, processor 32 and is stored in the computer that can be run on memory 31 and in processor
Program, the processor realize the power consumption management method described in above-described embodiment when performing the computer program.The application is real
The terminal device of example offer is provided, the setting charge value that can be voluntarily set according to user is monitored the electricity of terminal device,
Performing electricity if necessary reminds operation to remind user that should charge to terminal device.
Fig. 9 is a kind of structure diagram of terminal device provided by the embodiments of the present application.As shown in figure 9, the terminal device
It can include:Housing (not shown), touch screen (not shown), touch key-press (not shown), memory 301,
Central processing unit (Central Processing Unit, CPU) 302 (also known as processor, hereinafter referred to as CPU), circuit board (figure
In be not shown) and power circuit (not shown).The circuit board is placed in the space interior that the housing surrounds;It is described
CPU302 and the memory 301 are arranged on the circuit board;The power circuit, for for each of the terminal device
Circuit or device power supply;The memory 301, for storing executable program code;The CPU302 described in reading by depositing
The executable program code stored in reservoir 301 runs computer program corresponding with the executable program code, with reality
Existing following steps:
The real time electrical quantity value of detection terminal equipment;
Setting charge value is determined according to the pre-set electricity set information of user;
If detecting that the real time electrical quantity value is less than or equal to the setting charge value, perform electricity and remind operation.
The terminal device further includes:Peripheral Interface 303, RF (Radio Frequency, radio frequency) circuit 305, audio-frequency electric
Road 306, loud speaker 311, power management chip 308, input/output (I/O) subsystem 309, touch screen 312, other input/controls
Control equipment 310 and outside port 304, these components are communicated by one or more communication bus or signal wire 307.
It should be understood that graphic terminal 300 is only an example of terminal device, and terminal device 300
Can have than more or less components shown in figure, two or more components can be combined or can be with
It is configured with different components.Various parts shown in figure can be including one or more signal processings and/or special
Hardware, software including integrated circuit are realized in the combination of hardware and software.
Just the terminal device provided in this embodiment for being used to implement power consumption management is described in detail below, which sets
For by taking mobile phone as an example.
Memory 301, the memory 301 can be by access such as CPU302, Peripheral Interfaces 303, and the memory 301 can
To include high-speed random access memory, nonvolatile memory can also be included, such as one or more disk memory,
Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU302 and deposited by Peripheral Interface 303, the Peripheral Interface 303
Reservoir 301.
I/O subsystems 309, the I/O subsystems 309 can be by the input/output peripherals in equipment, such as touch screen 312
With other input/control devicess 310, it is connected to Peripheral Interface 303.I/O subsystems 309 can include 3091 He of display controller
For controlling one or more input controllers 3092 of other input/control devicess 310.Wherein, one or more input controls
Device 3092 processed receives electric signal from other input/control devicess 310 or sends electric signal to other input/control devicess 310,
Other input/control devicess 310 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole clicks idler wheel.What deserves to be explained is input controller 3092 can with it is following any one connect:Keyboard, infrared port,
The indicating equipment of USB interface and such as mouse.
Touch screen 312, the touch screen 312 are the input interface and output interface between subscriber terminal equipment and user,
Visual output is shown to user, visual output can include figure, text, icon, video etc..
Display controller 3091 in I/O subsystems 309 receives electric signal from touch screen 312 or is sent out to touch screen 312
Electric signals.Touch screen 312 detects the contact on touch screen, and the contact detected is converted to and shown by display controller 3091
The interaction of user interface object on touch screen 312, that is, realize human-computer interaction, the user interface being shown on touch screen 312
Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light
Mouse, light mouse are the extensions for not showing the touch sensitive surface visually exported or the touch sensitive surface formed by touch screen.
RF circuits 305 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 305 receive and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 305 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications
Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 305 can include performing
The known circuit of these functions includes but not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one
A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 306 is mainly used for receiving audio data from Peripheral Interface 303, which is converted to telecommunications
Number, and the electric signal is sent to loud speaker 311.
Loud speaker 311 for the voice signal for receiving mobile phone from wireless network by RF circuits 305, is reduced to sound
And play the sound to user.
Power management chip 308, the hardware for being connected by CPU302, I/O subsystem and Peripheral Interface are powered
And power management.
Terminal device provided by the embodiments of the present application, can be according to the setting charge value that user is voluntarily set to terminal device
Electricity be monitored, perform electricity if necessary and remind operation to remind user that should charge to terminal device.
Power consumption management device, storage medium and the terminal device provided in above-described embodiment, which can perform the application, arbitrarily to be implemented
The power consumption management method that example is provided has and performs the corresponding function module of this method and advantageous effect.Not in above-described embodiment
In detailed description technical detail, reference can be made to the power consumption management method that the application any embodiment is provided.
Note that it above are only the preferred embodiment of the application and institute's application technology principle.It will be appreciated by those skilled in the art that
The application is not limited to specific embodiment described here, can carry out for a person skilled in the art it is various it is apparent variation,
The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out by above example to the application
It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also
It can include other more equivalent embodiments, and scope of the present application is determined by scope of the appended claims.
Claims (10)
- A kind of 1. power consumption management method, which is characterized in that including:The real time electrical quantity value of detection terminal equipment;Setting charge value is determined according to the pre-set electricity set information of user;If detecting that the real time electrical quantity value is less than or equal to the setting charge value, perform electricity and remind operation.
- 2. the method as described in claim 1, which is characterized in that the real time electrical quantity value of the detection terminal equipment includes:In terminal device performance objective task, the real time electrical quantity value of the terminal device is persistently detected;Correspondingly, it is described to determine that setting charge value includes according to the pre-set electricity set information of user:Setting charge value corresponding with the goal task is determined according to the pre-set electricity set information of user.
- 3. method as claimed in claim 2, which is characterized in that during the terminal device performance objective task, persistently detect institute Before the real time electrical quantity value for stating terminal device, further include:Receive electricity set information input by user;Wherein, the electricity set information includes goal task and setting charge value Mapping relations.
- 4. the method as described in claim 1, which is characterized in that after the execution electricity reminds operation, further include:After setting time, detecting whether the terminal device is charging;If the terminal device is not charging, the operational mode of the terminal device is switched to low power consumption mode.
- 5. such as Claims 1-4 any one of them method, which is characterized in that the execution electricity reminds operation to include:Corresponding type of reminders is determined, and perform electricity according to the type of reminders and remind operation according to the goal task.
- 6. method as claimed in claim 5, which is characterized in that described that corresponding type of reminders is determined according to the goal task Including:If the goal task is front stage operation type, it is determined that the type of reminders is display alarm;Correspondingly, performing electricity according to the type of reminders reminds operation to include:Display alarm information is sent to the screen of terminal device by system broadcasts prompting component.
- 7. method as claimed in claim 5, which is characterized in that described that corresponding prompting class is determined according to the goal task Type, including:If the goal task is running background type, it is determined that the type of reminders is sound prompting or vibration reminding;Correspondingly, it is described operation to be reminded to include according to type of reminders execution electricity:Corresponding sound prompting or vibration reminding are performed by system alarm managing process.
- 8. a kind of power consumption management device, which is characterized in that including:Real time electrical quantity detection module, for the real time electrical quantity value of detection terminal equipment;Charge value determining module, for determining setting charge value according to the pre-set electricity set information of user;Execution module is reminded, if for detecting that the real time electrical quantity value is less than or equal to the setting charge value, is performed Electricity reminds operation.
- 9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The power consumption management method as described in any one of claim 1-7 is realized during row.
- 10. a kind of terminal device, which is characterized in that including memory, processor and storage are on a memory and can be in processor The computer program of operation, which is characterized in that the processor realizes that claim 1-7 such as appoints when performing the computer program Power consumption management method described in one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810005013.6A CN108227892A (en) | 2018-01-03 | 2018-01-03 | Power consumption management method, apparatus, storage medium and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810005013.6A CN108227892A (en) | 2018-01-03 | 2018-01-03 | Power consumption management method, apparatus, storage medium and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108227892A true CN108227892A (en) | 2018-06-29 |
Family
ID=62642752
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810005013.6A Pending CN108227892A (en) | 2018-01-03 | 2018-01-03 | Power consumption management method, apparatus, storage medium and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108227892A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11202987A (en) * | 1998-01-19 | 1999-07-30 | Nec Data Terminal Ltd | Power source controller for electronic equipment |
CN103024204A (en) * | 2012-12-13 | 2013-04-03 | 广东欧珀移动通信有限公司 | Method and device for saving electricity for mobile terminal |
CN104219383A (en) * | 2014-08-20 | 2014-12-17 | 小米科技有限责任公司 | Terminal power information prompting method and device |
CN105530384A (en) * | 2014-09-28 | 2016-04-27 | 小米科技有限责任公司 | Method and device for power reminding based on alarm clock |
CN106131706A (en) * | 2016-06-27 | 2016-11-16 | 武汉斗鱼网络科技有限公司 | About the dynamic information push method of main broadcaster and device in a kind of mobile client application program |
CN106774774A (en) * | 2016-11-30 | 2017-05-31 | 北京小米移动软件有限公司 | The electric quantity display method and device of end cell |
CN107346167A (en) * | 2016-05-06 | 2017-11-14 | 中兴通讯股份有限公司 | The method and device of a kind of display control |
-
2018
- 2018-01-03 CN CN201810005013.6A patent/CN108227892A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11202987A (en) * | 1998-01-19 | 1999-07-30 | Nec Data Terminal Ltd | Power source controller for electronic equipment |
CN103024204A (en) * | 2012-12-13 | 2013-04-03 | 广东欧珀移动通信有限公司 | Method and device for saving electricity for mobile terminal |
CN104219383A (en) * | 2014-08-20 | 2014-12-17 | 小米科技有限责任公司 | Terminal power information prompting method and device |
CN105530384A (en) * | 2014-09-28 | 2016-04-27 | 小米科技有限责任公司 | Method and device for power reminding based on alarm clock |
CN107346167A (en) * | 2016-05-06 | 2017-11-14 | 中兴通讯股份有限公司 | The method and device of a kind of display control |
CN106131706A (en) * | 2016-06-27 | 2016-11-16 | 武汉斗鱼网络科技有限公司 | About the dynamic information push method of main broadcaster and device in a kind of mobile client application program |
CN106774774A (en) * | 2016-11-30 | 2017-05-31 | 北京小米移动软件有限公司 | The electric quantity display method and device of end cell |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109947498B (en) | Application program preloading method and device, storage medium and mobile terminal | |
CN109960539A (en) | Application program preloads method, apparatus, storage medium and mobile terminal | |
US20220035435A1 (en) | Management of near field communications using a low power express mode of an electronic device | |
CN109947497B (en) | Application program preloading method and device, storage medium and mobile terminal | |
US20190188005A1 (en) | Method for Preloading Application, Storage Medium, and Terminal Device | |
CN109960507A (en) | Compile optimization method, device, storage medium, intelligent terminal and server | |
CN108076507B (en) | Positioning mode control method and device, storage medium and mobile terminal | |
CN108132401A (en) | Charge abnormal detection method, device, storage medium and mobile terminal | |
CN107688638B (en) | Recommendation method and device for application list, storage medium and mobile terminal | |
CN209248468U (en) | Mobile device for the position monitoring based on state | |
JP2020537213A (en) | Methods for reducing terminal power consumption, and terminals | |
CN108076429A (en) | Localization method, device, storage medium and mobile terminal | |
CN108279861A (en) | volume adjusting method, device and storage medium | |
CN110554945A (en) | electric quantity control method, electronic equipment and computer readable storage medium | |
CN107526569B (en) | A kind of volume adjusting method, device, storage medium and mobile terminal | |
CN111080429A (en) | Virtual resource acquisition method, device and storage medium | |
CN108055644A (en) | Position control method, device, storage medium and terminal 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 | |
CN112400308A (en) | Charging prompting method and related product | |
JP2022008797A (en) | Method for reducing power consumption of terminal, and terminal | |
CN107888480A (en) | Prompting message processing method, device, storage medium and mobile terminal | |
CN108769232A (en) | Application resource method for pushing, device, equipment and storage medium | |
CN108112061A (en) | Position control method, device, storage medium and terminal device | |
CN110958352B (en) | Network signal display method, device, storage medium and mobile terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180629 |