CN102508761B - The management method of terminal power and terminal - Google Patents

The management method of terminal power and terminal Download PDF

Info

Publication number
CN102508761B
CN102508761B CN201110365005.0A CN201110365005A CN102508761B CN 102508761 B CN102508761 B CN 102508761B CN 201110365005 A CN201110365005 A CN 201110365005A CN 102508761 B CN102508761 B CN 102508761B
Authority
CN
China
Prior art keywords
power consumption
terminal
application program
consumption intensity
unloaded
Prior art date
Application number
CN201110365005.0A
Other languages
Chinese (zh)
Other versions
CN102508761A (en
Inventor
杜立剑
Original Assignee
宇龙计算机通信科技(深圳)有限公司
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 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Priority to CN201110365005.0A priority Critical patent/CN102508761B/en
Publication of CN102508761A publication Critical patent/CN102508761A/en
Application granted granted Critical
Publication of CN102508761B publication Critical patent/CN102508761B/en

Links

Classifications

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

Abstract

The invention provides a kind of management method of terminal power, comprising: step 202, when application program launching, obtain the power consumption intensity of described application program; Step 204, according to the numerical value of described power consumption intensity, carries out graphic software platform by described power consumption intensity in described terminal.Correspondingly, the invention allows for a kind of terminal.By technical scheme of the present invention, can mode intuitively be passed through, understand the power consumption condition of each application program run in terminal in real time, thus the electric quantity consumption of terminal is effectively managed.

Description

The management method of terminal power and terminal
Technical field
The present invention relates to managing electric quantity technology, in particular to a kind of management method and a kind of terminal of terminal power.
Background technology
Along with the raising of cpu frequency, present mobile phone terminal is more and more tending towards intelligent, and the application program that can run also gets more and more, becomes increasingly complex, and the various application program how managed on mobile phone and power consumption also more and more important.It is the voltage measuring battery two ends that method for measuring battery dump energy on current mobile phone mainly contains following two kinds: one, and this is also the simplest the most common method, but the dump energy level of reaction cell that can only be rough; Two is use the mode of current integration to measure the electricity size flowing into or flow out battery, but is easily subject to the impact of the factor such as temperature and cell degradation; The measurement as carried out electricity based on impedance track formula voltameter chip can be used at present; as shown in Figure 1; voltameter chip is packaged with in battery; primary processor is while managing the parts such as transceiver, internal memory; under the protective effect of protection module; from battery, read the average current, dump energy etc. of both end voltage, inflow/outflow by voltameter chip, then in conjunction with managing electric quantity module, the electricity in battery and change information thereof etc. are obtained timely and accurately and processed.
In addition, for current mobile phone, user over time, become, can only understand the electricity that certain application program has consumed, and also cannot understand the power consumption condition of each application program in real time.
Therefore, need a kind of administrative skill of new terminal power, can mode intuitively be passed through, understand the power consumption condition of each application program run in terminal in real time, thus the electric quantity consumption of terminal is effectively managed.
Summary of the invention
The present invention, just based on the problems referred to above, proposes a kind of administrative skill of new terminal power, can pass through mode intuitively, understand the power consumption condition of each application program run in terminal in real time, thus effectively manage the electric quantity consumption of terminal.
In view of this, the present invention proposes a kind of management method of terminal power, comprising: step 102, when application program launching, obtain the power consumption intensity of described application program; Step 104, according to the numerical value of described power consumption intensity, shows described power consumption intensity in described terminal.In this technical scheme, the power consumption intensity of application program reflects the power consumption ability of this application program, and such as same terminal, certain application program can consume the electricity of 5% for 5 minutes, and Another application program can consume the electricity of 10% for 5 minutes.The power consumption intensity of application program is associated with the numerical value of multiple attribute, and as the size of electric current required when it runs, the electric current namely needed is larger, then mean that its power consumption intensity is stronger.Simultaneously, here power consumption intensity refers to the real-time power consumption condition of application program, such as terminal in stand-by mode with under normal mode, or when working procedure and when setting after suspending, power consumption for same application program is obviously different, and the power consumption intensity of application program is shown intuitively, then the real-time condition of user to terminal can be made to understand, and and then application programs carry out managing fast and effectively.
In technique scheme, preferably, described step 102 also comprises: obtain unloaded power consumption intensity when described terminal does not start application program; And described step 104 also comprises: according to the numerical value of described unloaded power consumption intensity, described unloaded power consumption intensity is shown in described terminal.In this technical scheme, for terminal, even without running application, but with regard to the operating system of himself, also need to consume a part of electricity, and power consumption intensity time unloaded for operating system is substantially constant, thus may be used for comparing with the power consumption intensity of other application programs, the power consumption intensity making user correspond to program has one to get information about.
In technique scheme, preferably, the process obtaining the described power consumption intensity of described application program comprises: before will starting described application program, reads the first average current of described terminal; After the described application program of startup, read the second average current of described terminal; And preset transformational relation according to described second average current and the difference of described first average current and first between size of current and power consumption intensity, obtain the numerical value of the power consumption intensity of described application program; And the process obtaining described unloaded power consumption intensity comprises: when not starting application program, read the unloaded average current of described terminal, size and described first according to described unloaded average current presets transformational relation, obtains the numerical value of described unloaded power consumption intensity.In this technical scheme, there is certain transformational relation in the change of the size of current in the power consumption intensity of application program and terminal, thus know the size of power consumption intensity by the change of measuring size of current.Such as terminal obtain certain application program need to carry out the information started time, in the front and back of this application program launching, respectively the average current value in terminal to be measured, thus the difference of this twice current value, is necessarily caused by this application program.Unloaded power consumption intensity then can carry out the measurement of current value when such as just having started terminal, the now generation of electric current is only produced by the operation of unloaded terminal, can directly be converted to unloaded power consumption intensity.
In technique scheme, preferably, also comprise: the power consumption intensity of described application program and/or described unloaded power consumption intensity are carried out graphic software platform, specifically comprise: preset transformational relation according to second between numerical value and graphic feature, by the numerical value of the numerical value of the power consumption intensity of described application program and/or described unloaded power consumption intensity, the graphic feature that described terminal demonstrates is utilized to represent; Or calculate the numerical value of power consumption intensity of described application program and/or the ratio of the numerical value of described unloaded power consumption intensity and default power consumption intensity threshold value, transformational relation is preset according to described second, the graphic feature that described terminal demonstrates is utilized to represent described ratio, wherein, described graphic feature comprises the length of figure, area, volume, color and/or brightness.In this technical scheme, the numerical value of power consumption intensity is converted to graphic feature, power consumption intensity numerical value also can be used to change compared to the relative value of predetermined threshold value.By patterned mode, power consumption intensity can be made more directly perceived.Power consumption intensity is carried out patterned mode to be comprised a variety of, such as uses change of the depth of the volume of the length of lines or color lump, cake chart, 3-D view, different colours, same color or brightness etc. etc.Simultaneously, in order to indicate the direct corresponding relation between power consumption intensity and application program, need on the side of the power consumption intensity gone out by graphic software platform, demonstrate the mark of application program, and the mark of application program here obviously also can be shown by patterned mode.Certainly, patterned process is not necessary, such as directly demonstrates the title of application program or the numerical value of power consumption intensity, and user also can be made to understand actual conditions, but patterned mode is obviously more lively.
In technique scheme, preferably, also comprise: when the change of described application program to the occupation condition of processor exceedes default resource occupation threshold value, read the variable-current of described terminal, and described variable-current is superposed in described difference, obtain changing difference, using the variable quantity numerical value of described change difference as the power consumption intensity of described application program.In this technical scheme, the state of application program may change, as application program be in operation, suspend or terminal is in normally, dormancy etc. when, its power consumption intensity all can change.And when the state of application program changes, the change of its power consumption intensity, be then embodied directly in it in the occupation condition of processor.So for certain application program, assuming that the resource occupation threshold value preset is 5%, then when this application program changes more than 5% the resources occupation rate of processor, then think that its state there occurs change, or also can when Application Status changes, different zone bits is set, when such as certain application program enters holding state, just mode bit is write as 1, and enter normal condition just mode bit is write 0 from standby, other programs just can read the change of this mode bit to judge whether that state changes like this, now the power consumption intensity of this application program is measured in real time, as read the curent change that it causes, here curent change just can be, also can be negative, when then original difference being superposed, the change difference obtained may be larger than original difference, also may diminish.In addition, except monitoring the change of occupation condition, all right preset time threshold, as 5s, when namely judging that the continuous time that the change of application program to the occupation condition of processor exceedes default resource occupation threshold value exceedes preset time threshold, if the continuous time of change more than 5% is more than 5s, then think that the state of this application program there occurs change.
In technique scheme, preferably, also comprise: the dump energy obtaining the battery in described terminal, calculate the excess time that described dump energy can maintain under the described power consumption intensity and described unloaded power consumption intensity of described application program, and show described excess time in described terminal.In this technical scheme, for under different power consumption intensity, identical electricity obviously correspond to different excess times, thus here by the measurement to the power consumption intensity of terminal, thus obtain the time that end cell can maintain terminal operating, bring to user and get information about.
According to another aspect of the invention, also proposed a kind of terminal, comprising: judge module, judged whether that application program needs to start; Acquisition module, when described judge module judges have application program to need to start, obtains the power consumption intensity of described application program; Display module, according to the numerical value of the described power consumption intensity that described acquisition module obtains, shows described power consumption intensity in described terminal.In this technical scheme, the power consumption intensity of application program reflects the power consumption ability of this application program, and such as same terminal, certain application program can consume the electricity of 5% for 5 minutes, and Another application program can consume the electricity of 10% for 5 minutes.The power consumption intensity of application program is associated with the numerical value of multiple attribute, and as the size of electric current required when it runs, the electric current namely needed is larger, then mean that its power consumption intensity is stronger.Simultaneously, here power consumption intensity refers to the real-time power consumption condition of application program, such as terminal in stand-by mode with under normal mode, or when working procedure and when setting after suspending, power consumption for same application program is obviously different, and the power consumption intensity of application program is shown by mode intuitively, then the real-time condition of user to terminal can be made to understand, and and then application programs carry out managing fast and effectively.
In technique scheme, preferably, also comprise: described judge module also for: judge in described terminal, whether to there is the application program started; Described acquisition module also for: when described judge module judges the application program do not started, obtain the unloaded power consumption intensity of described terminal; And the numerical value of described unloaded power consumption intensity that described display module obtains according to described acquisition module, described unloaded power consumption intensity is shown in described terminal.In this technical scheme, for terminal, even without running application, but with regard to the operating system of himself, also need to consume a part of electricity, and power consumption intensity time unloaded for operating system is substantially constant, thus may be used for comparing with the power consumption intensity of other application programs, the power consumption intensity making user correspond to program has one to get information about.
In technique scheme, preferably, the process that described acquisition module obtains the described power consumption intensity of described application program comprises: before will starting described application program, reads the first average current of described terminal; After the described application program of startup, read the second average current of described terminal; And preset transformational relation according to described second average current and the difference of described first average current and first between size of current and power consumption intensity, obtain the numerical value of the power consumption intensity of described application program; And the process of the described unloaded power consumption intensity of described acquisition module acquisition comprises: when not starting application program, read the unloaded average current of described terminal, size and described first according to described unloaded average current presets transformational relation, obtains the numerical value of described unloaded power consumption intensity.In this technical scheme, there is certain transformational relation in the change of the size of current in the power consumption intensity of application program and terminal, thus know the size of power consumption intensity by the change of measuring size of current.Such as terminal obtain certain application program need to carry out the information started time, in the front and back of this application program launching, respectively the average current value in terminal to be measured, thus the difference of this twice current value, is necessarily caused by this application program.Unloaded power consumption intensity then can carry out the measurement of current value when such as just having started terminal, the now generation of electric current is only produced by the operation of unloaded terminal, can directly be converted to unloaded power consumption intensity.
In technique scheme, preferably, also comprise: processing module, calculate the ratio of the numerical value of the power consumption intensity of described application program and/or the numerical value of described unloaded power consumption intensity and default power consumption intensity threshold value; And described display module carries out graphic software platform to the power consumption intensity of described application program and/or described unloaded power consumption intensity, specifically comprise: preset transformational relation according to second between numerical value and graphic feature, by the numerical value of the numerical value of the power consumption intensity of described application program and/or described unloaded power consumption intensity, the graphic feature that described terminal demonstrates is utilized to represent; Or preset transformational relation according to described second, utilize the graphic feature that described terminal demonstrates to represent described ratio, wherein, described graphic feature comprises the length of figure, area, volume, color and/or brightness.In this technical scheme, the numerical value of power consumption intensity is converted to graphic feature, power consumption intensity numerical value also can be used to change compared to the relative value of predetermined threshold value.By patterned mode, power consumption intensity can be made more directly perceived.Power consumption intensity is carried out patterned mode to be comprised a variety of, such as uses change of the depth of the volume of the length of lines or color lump, cake chart, 3-D view, different colours, same color or brightness etc. etc.Simultaneously, in order to indicate the direct corresponding relation between power consumption intensity and application program, need on the side of the power consumption intensity gone out by graphic software platform, demonstrate the mark of application program, and the mark of application program here obviously also can be shown by patterned mode.Certainly, patterned process is not necessary, such as directly demonstrates the title of application program or the numerical value of power consumption intensity, and user also can be made to understand actual conditions, but patterned mode is obviously more lively.
In technique scheme, preferably, also comprise: described acquisition module also for: when the change of described application program to the occupation condition of processor exceedes default resource occupation threshold value, read the variable-current of described terminal, and described variable-current is superposed in described difference, obtain changing difference, using the variable quantity numerical value of described change difference as the power consumption intensity of described application program.In this technical scheme, the state of application program may change, as application program be in operation, suspend or terminal is in normally, dormancy etc. when, its power consumption intensity all can change.And when the state of application program changes, the change of its power consumption intensity, be then embodied directly in it in the occupation condition of processor.So for certain application program, assuming that the resource occupation threshold value preset is 5%, then when this application program changes more than 5% the resources occupation rate of processor, then think that its state there occurs change, or also can when Application Status changes, different zone bits is set, when such as certain application program enters holding state, just mode bit is write as 1, and enter normal condition just mode bit is write 0 from standby, other programs just can read the change of this mode bit to judge whether that state changes like this, now the power consumption intensity of this application program is measured in real time, as read the curent change that it causes, here curent change just can be, also can be negative, when then original difference being superposed, the change difference obtained may be larger than original difference, also may diminish.In addition, except monitoring the change of occupation condition, all right preset time threshold, as 5s, when namely judging that the continuous time that the change of application program to the occupation condition of processor exceedes default resource occupation threshold value exceedes preset time threshold, if the continuous time of change more than 5% is more than 5s, then think that the state of this application program there occurs change.
In technique scheme, preferably, also comprise: described acquisition module is also for the dump energy that obtains the battery in described terminal; Described processing module also for: calculate the excess time that described dump energy can maintain under the described power consumption intensity and described unloaded power consumption intensity of described application program; And described display module also for: in described terminal, show described excess time.In this technical scheme, for under different power consumption intensity, identical electricity obviously correspond to different excess times, thus here by the measurement to the power consumption intensity of terminal, thus obtain the time that end cell can maintain terminal operating, bring to user and get information about.
By above technical scheme, can patterned way intuitively be passed through, understand the power consumption condition of each application program run in terminal in real time, thus the electric quantity consumption of terminal is effectively managed.
Accompanying drawing explanation
Fig. 1 shows the structural representation of the power consumption detection circuitry in correlation technique;
Fig. 2 shows the process flow diagram of the management method of terminal power according to an embodiment of the invention;
Fig. 3 shows the block diagram of terminal according to an embodiment of the invention;
Fig. 4 shows the particular flow sheet of the management method of terminal power according to an embodiment of the invention;
Fig. 5 A shows the schematic diagram of terminal power management according to an embodiment of the invention;
Fig. 5 B shows the schematic diagram of terminal power management according to an embodiment of the invention; And
Fig. 5 C shows the schematic diagram of terminal power management according to an embodiment of the invention.
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.
Set forth a lot of detail in the following description so that fully understand the present invention, but the present invention can also adopt other to be different from other modes described here and implement, and therefore, the present invention is not limited to the restriction of following public specific embodiment.
Fig. 2 shows the process flow diagram of the management method of terminal power according to an embodiment of the invention.
As shown in Figure 2, the management method of terminal power, comprising: step 202 according to an embodiment of the invention, when application program launching, obtains the power consumption intensity of application program; Step 204, according to the numerical value of power consumption intensity, shows power consumption intensity in terminal.In this technical scheme, the power consumption intensity of application program reflects the power consumption ability of this application program, and such as same terminal, certain application program can consume the electricity of 5% for 5 minutes, and Another application program can consume the electricity of 10% for 5 minutes.The power consumption intensity of application program is associated with the numerical value of multiple attribute, and the size as electric current required when it runs embodies, and the electric current namely needed is larger, then mean that its power consumption intensity is stronger.Simultaneously, here power consumption intensity refers to the real-time power consumption condition of application program, such as terminal in stand-by mode with under normal mode, or when working procedure and when setting after suspending, power consumption for same application program is obviously different, and the power consumption intensity of application program is shown intuitively, then the real-time condition of user to terminal can be made to understand, and and then application programs carry out managing fast and effectively.
In technique scheme, step 202 also comprises: acquisition terminal does not start unloaded power consumption intensity during application program; And step 204 also comprises: according to the numerical value of unloaded power consumption intensity, unloaded power consumption intensity is shown in described terminal.In this technical scheme, for terminal, even without running application, but with regard to the operating system of himself, also need to consume a part of electricity, and power consumption intensity time unloaded for operating system is substantially constant, thus may be used for comparing with the power consumption intensity of other application programs, the power consumption intensity making user correspond to program has one to get information about.
In technique scheme, the process obtaining the power consumption intensity of application program comprises: before will starting application program, the first average current of reading terminals; After startup application program, the second average current of reading terminals; And preset transformational relation, the numerical value of the power consumption intensity of the program that is applied according to the second average current and the difference of the first average current and first between size of current and power consumption intensity; And the process obtaining unloaded power consumption intensity comprises: when not starting application program, the unloaded average current of reading terminals, the size and described first according to unloaded average current presets transformational relation, obtains the numerical value of unloaded power consumption intensity.In this technical scheme, there is certain transformational relation in the change of the size of current in the power consumption intensity of application program and terminal, thus know the size of power consumption intensity by the change of measuring size of current.Such as terminal obtain certain application program need to carry out the information started time, in the front and back of this application program launching, respectively the average current value in terminal to be measured, thus the difference of this twice current value, is necessarily caused by this application program.Unloaded power consumption intensity then can carry out the measurement of current value when such as just having started terminal, the now generation of electric current is only produced by the operation of unloaded terminal, can directly be converted to unloaded power consumption intensity.
In technique scheme, also comprise: the power consumption intensity of application program and/or unloaded power consumption intensity are carried out graphic software platform, specifically comprise: preset transformational relation according to second between numerical value and graphic feature, by the numerical value of the numerical value of the power consumption intensity of described application program and/or described unloaded power consumption intensity, the graphic feature that described terminal demonstrates is utilized to represent; Or the ratio of the numerical value of the numerical value of the power consumption intensity of computing application program and/or unloaded power consumption intensity and default power consumption intensity threshold value, transformational relation is preset according to described second, the graphic feature that described terminal demonstrates is utilized by ratio to represent, wherein, described graphic feature comprises the length of figure, area, volume, color and/or brightness.In this technical scheme, the numerical value of power consumption intensity is converted to graphic feature, power consumption intensity numerical value also can be used to change compared to the relative value of predetermined threshold value.By patterned mode, power consumption intensity can be made more directly perceived.Power consumption intensity is carried out patterned mode to be comprised a variety of, such as uses change of the depth of the volume of the length of lines or color lump, cake chart, 3-D view, different colours, same color or brightness etc. etc.Simultaneously, in order to indicate the direct corresponding relation between power consumption intensity and application program, need on the side of the power consumption intensity gone out by graphic software platform, demonstrate the mark of application program, and the mark of application program here obviously also can be shown by patterned mode.Certainly, patterned process is not necessary, such as directly demonstrates the title of application program or the numerical value of power consumption intensity, and user also can be made to understand actual conditions, but patterned mode is obviously more lively.
In technique scheme, also comprise: when the change of application program to the occupation condition of processor exceedes default resource occupation threshold value, the variable-current of reading terminals, and variable-current is superposed in difference, obtain changing difference, using the variable quantity numerical value of change difference as the power consumption intensity of application program.In this technical scheme, the state of application program may change, as application program be in operation, suspend or terminal is in normally, dormancy etc. when, its power consumption intensity all can change.And when the state of application program changes, the change of its power consumption intensity, be then embodied directly in it in the occupation condition of processor.So for certain application program, assuming that the resource occupation threshold value preset is 5%, then when this application program changes more than 5% the resources occupation rate of processor, then think that its state there occurs change, or also can when Application Status changes, different zone bits is set, when such as certain application program enters holding state, just mode bit is write as 1, and enter normal condition just mode bit is write 0 from standby, other programs just can read the change of this mode bit to judge whether that state changes like this, now the power consumption intensity of this application program is measured in real time, as read the curent change that it causes, here curent change just can be, also can be negative, when then original difference being superposed, the change difference obtained may be larger than original difference, also may diminish.In addition, except monitoring the change of occupation condition, all right preset time threshold, as 5s, when namely judging that the continuous time that the change of application program to the occupation condition of processor exceedes default resource occupation threshold value exceedes preset time threshold, if the continuous time of change more than 5% is more than 5s, then think that the state of this application program there occurs change.
In technique scheme, also comprise: the dump energy obtaining the battery in terminal, calculate the excess time that dump energy can maintain under the power consumption intensity and unloaded power consumption intensity of application program, and in terminal, show described excess time.In this technical scheme, for under different power consumption intensity, identical electricity obviously correspond to different excess times, thus here by the measurement to the power consumption intensity of terminal, thus obtain the time that end cell can maintain terminal operating, bring to user and get information about.
Fig. 3 shows the block diagram of terminal according to an embodiment of the invention.
As shown in Figure 3, terminal 300 according to an embodiment of the invention, comprising: judge module 302, has judged whether that application program needs to start; Acquisition module 304, when judge module 302 judges have application program to need to start, obtains the power consumption intensity of application program; Display module 306, according to the numerical value of the power consumption intensity that acquisition module 304 obtains, shows power consumption intensity in terminal 300.In this technical scheme, the power consumption intensity of application program reflects the power consumption ability of this application program, and such as same terminal, certain application program can consume the electricity of 5% for 5 minutes, and Another application program can consume the electricity of 10% for 5 minutes.The power consumption intensity of application program is associated with the numerical value of multiple attribute, and the size as electric current required when it runs embodies, and the electric current namely needed is larger, then mean that its power consumption intensity is stronger.Simultaneously, here power consumption intensity refers to the real-time power consumption condition of application program, such as terminal in stand-by mode with under normal mode, or when working procedure and when setting after suspending, power consumption for same application program is obviously different, and the power consumption intensity of application program is shown by mode intuitively, then the real-time condition of user to terminal can be made to understand, and and then application programs carry out managing fast and effectively.
In technique scheme, also comprise: judge module 302 also for: judge in terminal 300, whether to there is the application program started; Acquisition module 304 also for: when judge module 302 judges the application program do not started, obtain the unloaded power consumption intensity of terminal 300; And the numerical value of unloaded power consumption intensity that display module 306 obtains according to acquisition module 304, unloaded power consumption intensity is shown in terminal 300.In this technical scheme, for terminal, even without running application, but with regard to the operating system of himself, also need to consume a part of electricity, and power consumption intensity time unloaded for operating system is substantially constant, thus may be used for comparing with the power consumption intensity of other application programs, the power consumption intensity making user correspond to program has one to get information about.
In technique scheme, the process that acquisition module 304 obtains the power consumption intensity of application program comprises: before will starting application program, the first average current of reading terminals 300; After startup application program, the second average current of reading terminals 300; And preset transformational relation, the numerical value of the power consumption intensity of the program that is applied according to the second average current and the difference of the first average current and first between size of current and power consumption intensity; And the process that acquisition module 304 obtains unloaded power consumption intensity comprises: when not starting application program, the unloaded average current of reading terminals 300, the size and first according to unloaded average current presets transformational relation, obtains the numerical value of unloaded power consumption intensity.In this technical scheme, there is certain transformational relation in the change of the size of current in the power consumption intensity of application program and terminal, thus know the size of power consumption intensity by the change of measuring size of current.Such as terminal obtain certain application program need to carry out the information started time, in the front and back of this application program launching, respectively the average current value in terminal to be measured, thus the difference of this twice current value, is necessarily caused by this application program.Unloaded power consumption intensity then can carry out the measurement of current value when such as just having started terminal, the now generation of electric current is only produced by the operation of unloaded terminal, can directly be converted to unloaded power consumption intensity.
In technique scheme, also comprise: processing module 308, the ratio of the numerical value of the power consumption intensity of computing application program and/or the numerical value of unloaded power consumption intensity and default power consumption intensity threshold value; And the power consumption intensity of display module 306 application programs and/or unloaded power consumption intensity carry out graphic software platform, specifically comprise: preset transformational relation according to second between numerical value and graphic feature, by the numerical value of the numerical value of the power consumption intensity of application program and/or unloaded power consumption intensity, the graphic feature that terminal 300 demonstrates is utilized to represent; Or preset transformational relation according to described second, utilize the graphic feature that described terminal demonstrates to represent described ratio, wherein, described graphic feature comprises the length of figure, area, volume, color and/or brightness.In this technical scheme, the numerical value of power consumption intensity is converted to graphic feature, power consumption intensity numerical value also can be used to change compared to the relative value of predetermined threshold value.By patterned mode, power consumption intensity can be made more directly perceived.Power consumption intensity is carried out patterned mode to be comprised a variety of, such as uses change of the depth of the volume of the length of lines or color lump, cake chart, 3-D view, different colours, same color or brightness etc. etc.Simultaneously, in order to indicate the direct corresponding relation between power consumption intensity and application program, need on the side of the power consumption intensity gone out by graphic software platform, demonstrate the mark of application program, and the mark of application program here obviously also can be shown by patterned mode.Certainly, patterned process is not necessary, such as directly demonstrates the title of application program or the numerical value of power consumption intensity, and user also can be made to understand actual conditions, but patterned mode is obviously more lively.
In technique scheme, also comprise: acquisition module 304 also for: when the change of application program to the occupation condition of processor exceedes default resource occupation threshold value, the variable-current of reading terminals 300, and variable-current is superposed in difference, obtain changing difference, using the numerical value of change difference as the power consumption intensity variable quantity of application program.In this technical scheme, the state of application program may change, as application program be in operation, suspend or terminal is in normally, dormancy etc. when, its power consumption intensity all can change.And when the state of application program changes, the change of its power consumption intensity, be then embodied directly in it in the occupation condition of processor.So for certain application program, assuming that the resource occupation threshold value preset is 5%, then when this application program changes more than 5% the resources occupation rate of processor, then think that its state there occurs change, or also can when Application Status changes, different zone bits is set, when such as certain application program enters holding state, just mode bit is write as 1, and enter normal condition just mode bit is write 0 from standby, other programs just can read the change of this mode bit to judge whether that state changes like this, now the power consumption intensity of this application program is measured in real time, as read the curent change that it causes, here curent change just can be, also can be negative, when then original difference being superposed, the change difference obtained may be larger than original difference, also may diminish.In addition, except monitoring the change of occupation condition, all right preset time threshold, as 5s, when namely judging that the continuous time that the change of application program to the occupation condition of processor exceedes default resource occupation threshold value exceedes preset time threshold, if the continuous time of change more than 5% is more than 5s, then think that the state of this application program there occurs change.
In technique scheme, also comprise: acquisition module 304 is also for the dump energy that obtains the battery in terminal 300; Processing module 308 also for: calculate dump energy excess time that can maintain under the power consumption intensity and unloaded power consumption intensity of application program; And display module 306 also for: in terminal 300, show excess time.In this technical scheme, for under different power consumption intensity, identical electricity obviously correspond to different excess times, thus here by the measurement to the power consumption intensity of terminal, thus obtain the time that end cell can maintain terminal operating, bring to user and get information about.
Fig. 4 shows the particular flow sheet of the management method of terminal power according to an embodiment of the invention.
As shown in Figure 4, the execution step of the management method of terminal power is specific as follows according to an embodiment of the invention:
Whether step 402, judges whether to exist the application program wishing to carry out starting, such as wish to start application A, if exist, then enter step 404, otherwise judge always.
Step 404, terminal obtain application A need to carry out the information started time, first obtain when not starting application A, average current I current in terminal aV1, here for the acquisition of average current, can in several ways, the electric quantity consumption in the such as inspection unit time, then calculates average current, or directly detects the inflow/outflow electric current of such as battery, or other mode feasible arbitrarily.
Step 406, starts this application A.
Step 408, after application A starts, obtains average current I current in terminal aV2, the average current I now obtained aV2with the average current I obtained in step 404 before aV1compare, between difference be obviously because the startup of application A causes, also just can reflect the power consumption intensity of application A, i.e. its power consumption ability.
Step 410, the power consumption intensity I of computing application program A aV2-I aV1, the difference due to average current is because the startup of application A causes, and thus for its power consumption intensity, obviously can be represented by the difference of average current.
Step 412, the power consumption intensity of display application program A, due in step 410 using the power consumption intensity of the difference of average current as application A, but it is obviously not directly perceived directly to demonstrate current value, thus the difference of this average current and a certain default threshold value can be compared, assuming that the difference of average current is now 5mA, and the threshold value preset is 100mA, then using the ratio of 5mA and 100mA that is 5% as display numerical value, and various ways is existed for the display of the numerical value of this " 5% " here, such as can directly show " 5% " or " 5 ", also can using the screen width of terminal as length threshold, demonstrate the figure of the length of 5% of this length threshold as line segment or color block, as the power consumption intensity of application A, or employing cake chart, other modes such as column diagram.In addition, here " threshold value preset " can also substitute with other numerical value, when being unloaded as being not activated any application program in sense terminals, its unloaded average current, then the difference of average current obtained in calculation procedure 410 and the ratio of this unloaded average current, and the display of numerical value after this ratio is used for or figure etc.
Step 414, judge whether the state of application A changes, here change refers to for application program, such as a game, user when carrying out amusement and user sets after time-out, owing to needing to carry out the sequence of operations such as graphical analysis, sound broadcasting, action recognition during amusement, its power consumption intensity is obviously different, even if or the state of directly not carrying out application program changes, it is normally opened for terminal or under holding state, power consumption intensity is also obviously different.And for application A, the change of its state is for the impact of power consumption intensity, mainly be embodied in the aspects such as its occupation condition for processor, thus can be monitored by its occupation condition etc. to processor, if change exceed certain threshold value as 5% time, be then judged to there occurs state change.In addition, except monitoring the change of occupation condition, all right preset time threshold, as 5s, when namely judging that the continuous time that the change of application program to the occupation condition of processor exceedes default resource occupation threshold value exceedes preset time threshold, if the continuous time of change more than 5% is more than 5s, then think that the state of this application program there occurs change.
Step 416, reads the changes delta I of average current aV, here because the running status of application program is arbitrarily change, thus power consumption intensity may grow or die down, thus for Δ I aV, just may be, also may be negative.
Step 418, correction power consumption intensity is I aV2-I aV1+ Δ I aV, here mainly in the difference of average current before, the variable-current that the change being superimposed with running status causes, thus the real-time power consumption intensity of the program that is applied.
Step 420, judges whether to close application A, if close, then terminates the management to this application A, otherwise return step 414, and continues the situation of change judging its running status.
Procedure for displaying below in conjunction with the power consumption intensity of Fig. 5 A, Fig. 5 B and Fig. 5 C application programs is described in detail, and wherein, Fig. 5 A shows the schematic diagram of terminal power management according to an embodiment of the invention; Fig. 5 B shows the schematic diagram of terminal power management according to an embodiment of the invention; And Fig. 5 C shows the schematic diagram of terminal power management according to an embodiment of the invention.
As shown in Figure 5A, to the embodiment that terminal power manages in task manager, adopt and manage in task manager, because task manager itself is for demonstrating all application programs run, thus in task manager to the application program run demonstrated, the power consumption intensity of its correspondence in interpolation, obviously can be very directly perceived, convenient, is conducive to promoting Consumer's Experience.
Specifically, in display interface 502, comprise system icon 504, and correspond to the power consumption intensity 506 of system icon 504, here system icon 504 refers in terminal the state be not activated when any application program is unloaded, and power consumption intensity is now substantially constant, the effect thus detecting this and show, be conducive to it can be used as comparison other, thus learn that whether the power consumption intensity of other application programs is excessive.Meanwhile, in the below of display interface 502, also comprising dump energy district 508, enough maintaining the time of system for demonstrating dump energy, is now such as " 20 hours 40 minutes " in the unloaded state.
In figure 5b, comprise multiple application icon 510 and correspond respectively to the power consumption intensity 512 of application program of these application icons 510.It should be noted that: on the one hand, here use application icon 510 represents application program, when this number of applications comprised in the terminal is very many, obviously be conducive to user and be directly acquainted with application program corresponding to power consumption intensity, on the other hand, power consumption intensity 506 in the power consumption intensity 512 of application program here and Fig. 5 A is undertaken representing by the length of color block, certainly, this is not obviously unique representation, such as can show the numerical value of the number percent taken, or adopt cake chart, histogram etc. various ways.In addition, in figure, switching icons 514 is also comprised, for user being thought the excessive application program of power consumption intensity is directly closed.And for the dump energy district 508 below interface, now demonstrate dump energy and enough maintain the time of system for " 10 hours 25 minutes ".
Fig. 5 C is relative to Fig. 5 B, close an application program, now for dump energy district 508, demonstrate dump energy and enough maintain the time of system for " 12 hours 50 minutes ", can find out, the system held time for dump energy is also carry out in real time monitoring and adjusting according to the unlatching of application program or closedown, thus gives user with real-time dynamic information more accurately.
More than be described with reference to the accompanying drawings technical scheme of the present invention, considered in correlation technique, user over time, become, can only understand the electricity that certain application program has consumed, and also cannot understand the power consumption condition of each application program in real time.Therefore, the invention provides a kind of management method of terminal power and a kind of terminal, can mode intuitively be passed through, understand the power consumption condition of each application program run in terminal in real time, thus the electric quantity consumption of terminal is effectively managed.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a management method for terminal power, is characterized in that, comprising:
Step 202, when application program launching, obtains the power consumption intensity of described application program;
Step 204, according to the numerical value of described power consumption intensity, shows described power consumption intensity in described terminal; And
The process obtaining the described power consumption intensity of described application program comprises:
Before will starting described application program, read the first average current of described terminal;
After the described application program of startup, read the second average current of described terminal; And
Preset transformational relation according to described second average current and the difference of described first average current and first between size of current and power consumption intensity, obtain the numerical value of the power consumption intensity of described application program.
2. the management method of terminal power according to claim 1, is characterized in that, described step 202 also comprises: obtain unloaded power consumption intensity when described terminal does not start application program; And
Described step 204 also comprises: according to the numerical value of described unloaded power consumption intensity, described unloaded power consumption intensity is shown in described terminal.
3. the management method of terminal power according to claim 2, is characterized in that, the process obtaining described unloaded power consumption intensity comprises:
When not starting application program, read the unloaded average current of described terminal, the size and described first according to described unloaded average current presets transformational relation, obtains the numerical value of described unloaded power consumption intensity.
4. the management method of terminal power according to claim 3, is characterized in that, also comprises:
The power consumption intensity of described application program and/or described unloaded power consumption intensity are carried out graphic software platform, specifically comprise:
Preset transformational relation according to second between numerical value and graphic feature, by the numerical value of the numerical value of the power consumption intensity of described application program and/or described unloaded power consumption intensity, utilize the graphic feature that described terminal demonstrates to represent;
Or calculate the numerical value of power consumption intensity of described application program and/or the ratio of the numerical value of described unloaded power consumption intensity and default power consumption intensity threshold value, transformational relation is preset according to described second, the graphic feature that described terminal demonstrates is utilized to represent described ratio, wherein, described graphic feature comprises the length of figure, area, volume, color and/or brightness.
5. the management method of terminal power according to claim 4, is characterized in that, also comprises:
Obtain the dump energy of the battery in described terminal, calculate the excess time that described dump energy can maintain under the described power consumption intensity and described unloaded power consumption intensity of described application program, and show described excess time in described terminal.
6. a management devices for terminal power, is characterized in that, comprising:
Judge module, has judged whether that application program needs to start;
Acquisition module, when described judge module judges have application program to need to start, obtains the power consumption intensity of described application program;
Display module, according to the numerical value of the described power consumption intensity that described acquisition module obtains, shows described power consumption intensity in described terminal; And
Described acquisition module specifically for:
Before will starting described application program, read the first average current of described terminal, after the described application program of startup, read the second average current of described terminal, and preset transformational relation according to described second average current and the difference of described first average current and first between size of current and power consumption intensity, obtain the numerical value of the power consumption intensity of described application program.
7. the management devices of terminal power according to claim 6, is characterized in that, also comprises:
Described judge module also for: judge in described terminal, whether to there is the application program started;
Described acquisition module also for: when described judge module judges the application program do not started, obtain the unloaded power consumption intensity of described terminal; And
The numerical value of the described unloaded power consumption intensity that described display module obtains according to described acquisition module, shows described unloaded power consumption intensity in described terminal.
8. the management devices of terminal power according to claim 7, is characterized in that, described acquisition module concrete also for:
When not starting application program, read the unloaded average current of described terminal, the size and described first according to described unloaded average current presets transformational relation, obtains the numerical value of described unloaded power consumption intensity.
9. the management devices of terminal power according to claim 8, is characterized in that, also comprises:
Processing module, calculates the ratio of the numerical value of the power consumption intensity of described application program and/or the numerical value of described unloaded power consumption intensity and default power consumption intensity threshold value; And
Described display module carries out graphic software platform to the power consumption intensity of described application program and/or described unloaded power consumption intensity, specifically comprises:
Preset transformational relation according to second between numerical value and graphic feature, by the numerical value of the numerical value of the power consumption intensity of described application program and/or described unloaded power consumption intensity, utilize the graphic feature that described terminal demonstrates to represent;
Or preset transformational relation according to described second, utilize the graphic feature that described terminal demonstrates to represent described ratio, wherein, described graphic feature comprises the length of figure, area, volume, color and/or brightness.
10. the management devices of terminal power according to claim 9, is characterized in that, also comprises:
Described acquisition module is also for the dump energy that obtains the battery in described terminal;
Described processing module also for: calculate the excess time that described dump energy can maintain under the described power consumption intensity and described unloaded power consumption intensity of described application program; And
Described display module also for: in described terminal, show described excess time.
CN201110365005.0A 2011-11-17 2011-11-17 The management method of terminal power and terminal CN102508761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110365005.0A CN102508761B (en) 2011-11-17 2011-11-17 The management method of terminal power and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110365005.0A CN102508761B (en) 2011-11-17 2011-11-17 The management method of terminal power and terminal

Publications (2)

Publication Number Publication Date
CN102508761A CN102508761A (en) 2012-06-20
CN102508761B true CN102508761B (en) 2015-11-25

Family

ID=46220853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110365005.0A CN102508761B (en) 2011-11-17 2011-11-17 The management method of terminal power and terminal

Country Status (1)

Country Link
CN (1) CN102508761B (en)

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9189055B2 (en) 2012-07-17 2015-11-17 Mediatek Inc. Method for performing power consumption management, and associated apparatus
CN103810093A (en) * 2012-11-13 2014-05-21 联想(北京)有限公司 Application detection method and device
CN103914365B (en) * 2012-12-31 2017-03-15 北京金山安全软件有限公司 Obtain the method and device of mobile terminal application power consumption
CN104281510A (en) * 2013-07-05 2015-01-14 贝壳网际(北京)安全技术有限公司 Application program power consumption degree obtaining method and system, and energy saving method and system
CN104281513B (en) * 2013-07-05 2017-06-06 贝壳网际(北京)安全技术有限公司 A kind of application program power consumption quantity measuring method and system
CN104346256B (en) * 2013-07-23 2018-06-01 贝壳网际(北京)安全技术有限公司 Acquisition methods, device and the mobile terminal of application program power consumption information
CN104346262B (en) * 2013-07-23 2018-04-27 贝壳网际(北京)安全技术有限公司 Acquisition methods, device and the mobile terminal of application program power consumption information
CN104375929B (en) * 2013-08-12 2017-12-01 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN103500002B (en) * 2013-09-17 2016-08-03 小米科技有限责任公司 The method of application program management, device and terminal unit
CN103605591A (en) * 2013-11-27 2014-02-26 华为技术有限公司 Method and device for controlling memory initialization of terminal system
CN103701970A (en) * 2013-12-04 2014-04-02 中国科学院深圳先进技术研究院 Power consumption prompting method and device for mobile terminal and mobile terminal
CN105187608B (en) * 2014-06-17 2019-08-13 腾讯科技(深圳)有限公司 The method and apparatus of application program power consumption on a kind of acquisition mobile terminal
CN104049217B (en) * 2014-06-30 2019-02-15 努比亚技术有限公司 Battery dump energy uses the detection method and device of time
CN104090240A (en) * 2014-06-30 2014-10-08 深圳市中兴移动通信有限公司 Method and device for updating left service time of battery and mobile terminal
CN104182337B (en) * 2014-08-15 2017-07-11 广东欧珀移动通信有限公司 A kind of power consumption test method, device and mobile terminal
CN105467202B (en) 2014-08-22 2020-07-10 深圳市中兴微电子技术有限公司 Electric quantity detection method and device and terminal
CN104503276A (en) * 2014-11-24 2015-04-08 东莞宇龙通信科技有限公司 Intelligent power utilization method, device and terminal
CN104796518A (en) * 2015-05-08 2015-07-22 北京天宇朗通通信设备股份有限公司 Method for obtaining battery life of terminal and terminal
CN105100406A (en) * 2015-05-26 2015-11-25 青岛海信移动通信技术股份有限公司 Method and device for displaying sustainable time of terminal application
CN106470266B (en) * 2015-08-19 2021-01-22 中兴通讯股份有限公司 Method and device for acquiring power consumption data of equipment in terminal
CN105095057A (en) * 2015-08-20 2015-11-25 百度在线网络技术(北京)有限公司 Method and device for detecting power consumption of application
CN105373482A (en) * 2015-12-23 2016-03-02 北京金山安全软件有限公司 Method and device for detecting power consumption abnormity of application programs and electronic device
CN105528055B (en) * 2015-12-30 2018-11-23 小米科技有限责任公司 Run the processing method and processing device of object
CN105467329B (en) * 2016-01-25 2018-09-28 上海斐讯数据通信技术有限公司 A kind of terminal continuation of the journey test system and method
US10826310B2 (en) 2016-03-29 2020-11-03 Huawei Technologies Co., Ltd. Resource statistics collection method and apparatus and terminal
CN106227645A (en) * 2016-07-21 2016-12-14 北京小米移动软件有限公司 electric quantity display method and device
CN106095649A (en) * 2016-08-03 2016-11-09 广东欧珀移动通信有限公司 A kind of icon display method, device and mobile terminal
WO2018032424A1 (en) * 2016-08-17 2018-02-22 陈银芳 Mobile phone power-saving reminding method and system
CN106771562B (en) * 2017-02-23 2019-10-18 上海与德信息技术有限公司 A kind of power consumption test method and device of terminal
CN107592410A (en) * 2017-08-25 2018-01-16 珠海市魅族科技有限公司 A kind of information displaying method and device, terminal and readable storage medium storing program for executing
CN107796984A (en) * 2017-10-19 2018-03-13 维沃移动通信有限公司 A kind of information cuing method and mobile terminal
CN110264184A (en) * 2019-06-28 2019-09-20 Oppo(重庆)智能科技有限公司 Pay control method and Related product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1810058A (en) * 2003-07-02 2006-07-26 维夫康姆公司 Method for estimating the remaining working life of a battery for a radiocommunication device
CN101923381A (en) * 2009-06-10 2010-12-22 联想(新加坡)私人有限公司 Electronic device, battery remaining time displaying method and computer executable program
CN102089731A (en) * 2008-07-15 2011-06-08 三美电机株式会社 Mobile device, cell pack, semiconductor device, display control method, and display control program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006350481A (en) * 2005-06-13 2006-12-28 Matsushita Electric Ind Co Ltd Terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1810058A (en) * 2003-07-02 2006-07-26 维夫康姆公司 Method for estimating the remaining working life of a battery for a radiocommunication device
CN102089731A (en) * 2008-07-15 2011-06-08 三美电机株式会社 Mobile device, cell pack, semiconductor device, display control method, and display control program
CN101923381A (en) * 2009-06-10 2010-12-22 联想(新加坡)私人有限公司 Electronic device, battery remaining time displaying method and computer executable program

Also Published As

Publication number Publication date
CN102508761A (en) 2012-06-20

Similar Documents

Publication Publication Date Title
CN105183137B (en) A kind of mobile terminal and its wake-up lock control method and control system
CN103440029B (en) Extend method and the mobile terminal of the service time of mobile terminal under low electricity
CN104967201B (en) Fast charge method, mobile terminal and the source adapter that can directly charge
CN103376859B (en) The control method of chip performance and device
CN103199311B (en) The battery power saving method of portable type electronic product, equipment and mobile terminal
CN104298335B (en) Program process method for cleaning, device and the mobile terminal of mobile terminal
CN103188277B (en) load energy consumption management system, method and server
CN102298119B (en) Battery electric quantity display device and method
US6704877B2 (en) Dynamically changing the performance of devices in a computer platform
CN102098392B (en) Energy-saving device and method for portable terminal
CN103262620B (en) Processing involving multiple sensors
Kerasiotis et al. Battery lifetime prediction model for a WSN platform
US20120016608A1 (en) Method and system for monitoring residential appliances
CN104422137B (en) Water heater preengages heat-production control method and system
CN103645796B (en) Based on high-performance hydrographic water resource telemetering terminal and the power consumption control method thereof of ARM framework
CN104615037B (en) A kind of CAN bus based mobile unit Rouser and method
CN102819313B (en) Operating method of terminal equipment and terminal equipment
US20130231880A1 (en) Battery detection and user experience
US20120254633A1 (en) Power control manager and method
CN104301122B (en) A kind of method and apparatus for waking up node
WO2015007247A1 (en) Method and device for obtaining abnormal power consumption application and mobile terminal
CN104967200B (en) A kind of fast charge method and mobile terminal
CN102033590B (en) Method, device and data processing equipment for supplying power to communication interface
CN102834999A (en) Portable electronic device power manager with current limit feedback control loop modification for stabilizing an external power supply
EP2197123B1 (en) Power line communication apparatus and method for controlling the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant